1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
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$ECHO in
557X*--fallback-echo)
558  # Remove one level of quotation (which was required for Make).
559  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560  ;;
561esac
562
563echo=${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 <<EOF
582$*
583EOF
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 "$ECHO"; then
592if 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       echo_test_string=`eval $cmd` &&
598       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599    then
600      break
601    fi
602  done
603fi
604
605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607   test "X$echo_testing_string" = "X$echo_test_string"; then
608  :
609else
610  # The Solaris, AIX, and Digital Unix default echo programs unquote
611  # backslashes.  This makes it impossible to quote backslashes using
612  #   echo "$something" | sed 's/\\/\\\\/g'
613  #
614  # So, first we look for a working echo in the user's PATH.
615
616  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617  for dir in $PATH /usr/ucb; do
618    IFS="$lt_save_ifs"
619    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622       test "X$echo_testing_string" = "X$echo_test_string"; then
623      echo="$dir/echo"
624      break
625    fi
626  done
627  IFS="$lt_save_ifs"
628
629  if test "X$echo" = Xecho; then
630    # We didn't find a better echo, so look for alternatives.
631    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633       test "X$echo_testing_string" = "X$echo_test_string"; then
634      # This shell has a builtin print -r that does the trick.
635      echo='print -r'
636    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637	 test "X$CONFIG_SHELL" != X/bin/ksh; then
638      # If we have ksh, try running configure again with it.
639      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640      export ORIGINAL_CONFIG_SHELL
641      CONFIG_SHELL=/bin/ksh
642      export CONFIG_SHELL
643      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644    else
645      # Try using printf.
646      echo='printf %s\n'
647      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649	 test "X$echo_testing_string" = "X$echo_test_string"; then
650	# Cool, printf works
651	:
652      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653	   test "X$echo_testing_string" = 'X\t' &&
654	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655	   test "X$echo_testing_string" = "X$echo_test_string"; then
656	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657	export CONFIG_SHELL
658	SHELL="$CONFIG_SHELL"
659	export SHELL
660	echo="$CONFIG_SHELL $0 --fallback-echo"
661      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662	   test "X$echo_testing_string" = 'X\t' &&
663	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664	   test "X$echo_testing_string" = "X$echo_test_string"; then
665	echo="$CONFIG_SHELL $0 --fallback-echo"
666      else
667	# maybe with a smaller string...
668	prev=:
669
670	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672	  then
673	    break
674	  fi
675	  prev="$cmd"
676	done
677
678	if test "$prev" != 'sed 50q "$0"'; then
679	  echo_test_string=`eval $prev`
680	  export echo_test_string
681	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682	else
683	  # Oops.  We lost completely, so just stick with echo.
684	  echo=echo
685	fi
686      fi
687    fi
688  fi
689fi
690fi
691
692# Copy echo and quote the copy suitably for passing to libtool from
693# the Makefile, instead of quoting the original, which is used later.
694ECHO=$echo
695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697fi
698
699
700
701
702tagnames=${tagnames+${tagnames},}CXX
703
704tagnames=${tagnames+${tagnames},}F77
705
706exec 7<&0 </dev/null 6>&1
707
708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713#
714# Initializations.
715#
716ac_default_prefix=/usr/local
717ac_clean_files=
718ac_config_libobj_dir=.
719LIBOBJS=
720cross_compiling=no
721subdirs=
722MFLAGS=
723MAKEFLAGS=
724SHELL=${CONFIG_SHELL-/bin/sh}
725
726# Identity of this package.
727PACKAGE_NAME=
728PACKAGE_TARNAME=
729PACKAGE_VERSION=
730PACKAGE_STRING=
731PACKAGE_BUGREPORT=
732
733ac_unique_file="configure.ac"
734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
737#ifdef HAVE_SYS_TYPES_H
738# include <sys/types.h>
739#endif
740#ifdef HAVE_SYS_STAT_H
741# include <sys/stat.h>
742#endif
743#ifdef STDC_HEADERS
744# include <stdlib.h>
745# include <stddef.h>
746#else
747# ifdef HAVE_STDLIB_H
748#  include <stdlib.h>
749# endif
750#endif
751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753#  include <memory.h>
754# endif
755# include <string.h>
756#endif
757#ifdef HAVE_STRINGS_H
758# include <strings.h>
759#endif
760#ifdef HAVE_INTTYPES_H
761# include <inttypes.h>
762#endif
763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
767# include <unistd.h>
768#endif"
769
770ac_subst_vars='SHELL
771PATH_SEPARATOR
772PACKAGE_NAME
773PACKAGE_TARNAME
774PACKAGE_VERSION
775PACKAGE_STRING
776PACKAGE_BUGREPORT
777exec_prefix
778prefix
779program_transform_name
780bindir
781sbindir
782libexecdir
783datarootdir
784datadir
785sysconfdir
786sharedstatedir
787localstatedir
788includedir
789oldincludedir
790docdir
791infodir
792htmldir
793dvidir
794pdfdir
795psdir
796libdir
797localedir
798mandir
799DEFS
800ECHO_C
801ECHO_N
802ECHO_T
803LIBS
804build_alias
805host_alias
806target_alias
807INSTALL_PROGRAM
808INSTALL_SCRIPT
809INSTALL_DATA
810CYGPATH_W
811PACKAGE
812VERSION
813ACLOCAL
814AUTOCONF
815AUTOMAKE
816AUTOHEADER
817MAKEINFO
818install_sh
819STRIP
820INSTALL_STRIP_PROGRAM
821mkdir_p
822AWK
823SET_MAKE
824am__leading_dot
825AMTAR
826am__tar
827am__untar
828CC
829CFLAGS
830LDFLAGS
831CPPFLAGS
832ac_ct_CC
833EXEEXT
834OBJEXT
835DEPDIR
836am__include
837am__quote
838AMDEP_TRUE
839AMDEP_FALSE
840AMDEPBACKSLASH
841CCDEPMODE
842am__fastdepCC_TRUE
843am__fastdepCC_FALSE
844CPP
845GREP
846EGREP
847build
848build_cpu
849build_vendor
850build_os
851host
852host_cpu
853host_vendor
854host_os
855SED
856LN_S
857ECHO
858AR
859RANLIB
860CXX
861CXXFLAGS
862ac_ct_CXX
863CXXDEPMODE
864am__fastdepCXX_TRUE
865am__fastdepCXX_FALSE
866CXXCPP
867F77
868FFLAGS
869ac_ct_F77
870LIBTOOL
871HAVE_GNOME_MOZ_REMOTE
872MKINSTALLDIRS
873USE_NLS
874MSGFMT
875GMSGFMT
876XGETTEXT
877MSGMERGE
878GLIBC2
879ALLOCA
880GLIBC21
881INTL_MACOSX_LIBS
882HAVE_POSIX_PRINTF
883HAVE_ASPRINTF
884HAVE_SNPRINTF
885HAVE_WPRINTF
886LIBICONV
887LTLIBICONV
888INTLBISON
889BUILD_INCLUDED_LIBINTL
890USE_INCLUDED_LIBINTL
891CATOBJEXT
892DATADIRNAME
893INSTOBJEXT
894GENCAT
895INTLOBJS
896INTL_LIBTOOL_SUFFIX_PREFIX
897INTLLIBS
898LIBINTL
899LTLIBINTL
900POSUB
901PTHREAD_LIBS
902PKG_CONFIG
903GTK_CFLAGS
904GTK_LIBS
905GLIB_CFLAGS
906GLIB_LIBS
907GTHREADS_CFLAGS
908GTHREADS_LIBS
909SNDFILE_CFLAGS
910SNDFILE_LIBS
911OGG_CFLAGS
912OGG_LIBS
913VORBIS_CFLAGS
914VORBIS_LIBS
915VORBISFILE_LIBS
916VORBISENC_LIBS
917SPEEX_CFLAGS
918SPEEX_LIBS
919MAD_LIBS
920SAMPLERATE_CFLAGS
921SAMPLERATE_LIBS
922ALSA_CFLAGS
923ALSA_LIBS
924PACKAGE_DATA_DIR
925PACKAGE_PLUGIN_DIR
926EXPORT_DYNAMIC_FLAGS
927LIBOBJS
928LTLIBOBJS'
929ac_subst_files=''
930      ac_precious_vars='build_alias
931host_alias
932target_alias
933CC
934CFLAGS
935LDFLAGS
936LIBS
937CPPFLAGS
938CPP
939CXX
940CXXFLAGS
941CCC
942CXXCPP
943F77
944FFLAGS
945PKG_CONFIG
946GTK_CFLAGS
947GTK_LIBS
948GLIB_CFLAGS
949GLIB_LIBS
950GTHREADS_CFLAGS
951GTHREADS_LIBS
952SNDFILE_CFLAGS
953SNDFILE_LIBS
954SAMPLERATE_CFLAGS
955SAMPLERATE_LIBS
956ALSA_CFLAGS
957ALSA_LIBS'
958
959
960# Initialize some variables set by options.
961ac_init_help=
962ac_init_version=false
963# The variables have the same names as the options, with
964# dashes changed to underlines.
965cache_file=/dev/null
966exec_prefix=NONE
967no_create=
968no_recursion=
969prefix=NONE
970program_prefix=NONE
971program_suffix=NONE
972program_transform_name=s,x,x,
973silent=
974site=
975srcdir=
976verbose=
977x_includes=NONE
978x_libraries=NONE
979
980# Installation directory options.
981# These are left unexpanded so users can "make install exec_prefix=/foo"
982# and all the variables that are supposed to be based on exec_prefix
983# by default will actually change.
984# Use braces instead of parens because sh, perl, etc. also accept them.
985# (The list follows the same order as the GNU Coding Standards.)
986bindir='${exec_prefix}/bin'
987sbindir='${exec_prefix}/sbin'
988libexecdir='${exec_prefix}/libexec'
989datarootdir='${prefix}/share'
990datadir='${datarootdir}'
991sysconfdir='${prefix}/etc'
992sharedstatedir='${prefix}/com'
993localstatedir='${prefix}/var'
994includedir='${prefix}/include'
995oldincludedir='/usr/include'
996docdir='${datarootdir}/doc/${PACKAGE}'
997infodir='${datarootdir}/info'
998htmldir='${docdir}'
999dvidir='${docdir}'
1000pdfdir='${docdir}'
1001psdir='${docdir}'
1002libdir='${exec_prefix}/lib'
1003localedir='${datarootdir}/locale'
1004mandir='${datarootdir}/man'
1005
1006ac_prev=
1007ac_dashdash=
1008for ac_option
1009do
1010  # If the previous option needs an argument, assign it.
1011  if test -n "$ac_prev"; then
1012    eval $ac_prev=\$ac_option
1013    ac_prev=
1014    continue
1015  fi
1016
1017  case $ac_option in
1018  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019  *)	ac_optarg=yes ;;
1020  esac
1021
1022  # Accept the important Cygnus configure options, so we can diagnose typos.
1023
1024  case $ac_dashdash$ac_option in
1025  --)
1026    ac_dashdash=yes ;;
1027
1028  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029    ac_prev=bindir ;;
1030  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031    bindir=$ac_optarg ;;
1032
1033  -build | --build | --buil | --bui | --bu)
1034    ac_prev=build_alias ;;
1035  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036    build_alias=$ac_optarg ;;
1037
1038  -cache-file | --cache-file | --cache-fil | --cache-fi \
1039  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040    ac_prev=cache_file ;;
1041  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043    cache_file=$ac_optarg ;;
1044
1045  --config-cache | -C)
1046    cache_file=config.cache ;;
1047
1048  -datadir | --datadir | --datadi | --datad)
1049    ac_prev=datadir ;;
1050  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051    datadir=$ac_optarg ;;
1052
1053  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054  | --dataroo | --dataro | --datar)
1055    ac_prev=datarootdir ;;
1056  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058    datarootdir=$ac_optarg ;;
1059
1060  -disable-* | --disable-*)
1061    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062    # Reject names that are not valid shell variable names.
1063    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1064      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1065   { (exit 1); exit 1; }; }
1066    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1067    eval enable_$ac_feature=no ;;
1068
1069  -docdir | --docdir | --docdi | --doc | --do)
1070    ac_prev=docdir ;;
1071  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072    docdir=$ac_optarg ;;
1073
1074  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075    ac_prev=dvidir ;;
1076  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077    dvidir=$ac_optarg ;;
1078
1079  -enable-* | --enable-*)
1080    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081    # Reject names that are not valid shell variable names.
1082    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084   { (exit 1); exit 1; }; }
1085    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1086    eval enable_$ac_feature=\$ac_optarg ;;
1087
1088  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090  | --exec | --exe | --ex)
1091    ac_prev=exec_prefix ;;
1092  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094  | --exec=* | --exe=* | --ex=*)
1095    exec_prefix=$ac_optarg ;;
1096
1097  -gas | --gas | --ga | --g)
1098    # Obsolete; use --with-gas.
1099    with_gas=yes ;;
1100
1101  -help | --help | --hel | --he | -h)
1102    ac_init_help=long ;;
1103  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104    ac_init_help=recursive ;;
1105  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106    ac_init_help=short ;;
1107
1108  -host | --host | --hos | --ho)
1109    ac_prev=host_alias ;;
1110  -host=* | --host=* | --hos=* | --ho=*)
1111    host_alias=$ac_optarg ;;
1112
1113  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114    ac_prev=htmldir ;;
1115  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116  | --ht=*)
1117    htmldir=$ac_optarg ;;
1118
1119  -includedir | --includedir | --includedi | --included | --include \
1120  | --includ | --inclu | --incl | --inc)
1121    ac_prev=includedir ;;
1122  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123  | --includ=* | --inclu=* | --incl=* | --inc=*)
1124    includedir=$ac_optarg ;;
1125
1126  -infodir | --infodir | --infodi | --infod | --info | --inf)
1127    ac_prev=infodir ;;
1128  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129    infodir=$ac_optarg ;;
1130
1131  -libdir | --libdir | --libdi | --libd)
1132    ac_prev=libdir ;;
1133  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134    libdir=$ac_optarg ;;
1135
1136  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137  | --libexe | --libex | --libe)
1138    ac_prev=libexecdir ;;
1139  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140  | --libexe=* | --libex=* | --libe=*)
1141    libexecdir=$ac_optarg ;;
1142
1143  -localedir | --localedir | --localedi | --localed | --locale)
1144    ac_prev=localedir ;;
1145  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146    localedir=$ac_optarg ;;
1147
1148  -localstatedir | --localstatedir | --localstatedi | --localstated \
1149  | --localstate | --localstat | --localsta | --localst | --locals)
1150    ac_prev=localstatedir ;;
1151  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153    localstatedir=$ac_optarg ;;
1154
1155  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156    ac_prev=mandir ;;
1157  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158    mandir=$ac_optarg ;;
1159
1160  -nfp | --nfp | --nf)
1161    # Obsolete; use --without-fp.
1162    with_fp=no ;;
1163
1164  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165  | --no-cr | --no-c | -n)
1166    no_create=yes ;;
1167
1168  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170    no_recursion=yes ;;
1171
1172  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174  | --oldin | --oldi | --old | --ol | --o)
1175    ac_prev=oldincludedir ;;
1176  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179    oldincludedir=$ac_optarg ;;
1180
1181  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182    ac_prev=prefix ;;
1183  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184    prefix=$ac_optarg ;;
1185
1186  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187  | --program-pre | --program-pr | --program-p)
1188    ac_prev=program_prefix ;;
1189  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191    program_prefix=$ac_optarg ;;
1192
1193  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194  | --program-suf | --program-su | --program-s)
1195    ac_prev=program_suffix ;;
1196  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198    program_suffix=$ac_optarg ;;
1199
1200  -program-transform-name | --program-transform-name \
1201  | --program-transform-nam | --program-transform-na \
1202  | --program-transform-n | --program-transform- \
1203  | --program-transform | --program-transfor \
1204  | --program-transfo | --program-transf \
1205  | --program-trans | --program-tran \
1206  | --progr-tra | --program-tr | --program-t)
1207    ac_prev=program_transform_name ;;
1208  -program-transform-name=* | --program-transform-name=* \
1209  | --program-transform-nam=* | --program-transform-na=* \
1210  | --program-transform-n=* | --program-transform-=* \
1211  | --program-transform=* | --program-transfor=* \
1212  | --program-transfo=* | --program-transf=* \
1213  | --program-trans=* | --program-tran=* \
1214  | --progr-tra=* | --program-tr=* | --program-t=*)
1215    program_transform_name=$ac_optarg ;;
1216
1217  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218    ac_prev=pdfdir ;;
1219  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220    pdfdir=$ac_optarg ;;
1221
1222  -psdir | --psdir | --psdi | --psd | --ps)
1223    ac_prev=psdir ;;
1224  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225    psdir=$ac_optarg ;;
1226
1227  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228  | -silent | --silent | --silen | --sile | --sil)
1229    silent=yes ;;
1230
1231  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232    ac_prev=sbindir ;;
1233  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234  | --sbi=* | --sb=*)
1235    sbindir=$ac_optarg ;;
1236
1237  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239  | --sharedst | --shareds | --shared | --share | --shar \
1240  | --sha | --sh)
1241    ac_prev=sharedstatedir ;;
1242  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245  | --sha=* | --sh=*)
1246    sharedstatedir=$ac_optarg ;;
1247
1248  -site | --site | --sit)
1249    ac_prev=site ;;
1250  -site=* | --site=* | --sit=*)
1251    site=$ac_optarg ;;
1252
1253  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254    ac_prev=srcdir ;;
1255  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256    srcdir=$ac_optarg ;;
1257
1258  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259  | --syscon | --sysco | --sysc | --sys | --sy)
1260    ac_prev=sysconfdir ;;
1261  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263    sysconfdir=$ac_optarg ;;
1264
1265  -target | --target | --targe | --targ | --tar | --ta | --t)
1266    ac_prev=target_alias ;;
1267  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268    target_alias=$ac_optarg ;;
1269
1270  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271    verbose=yes ;;
1272
1273  -version | --version | --versio | --versi | --vers | -V)
1274    ac_init_version=: ;;
1275
1276  -with-* | --with-*)
1277    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278    # Reject names that are not valid shell variable names.
1279    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280      { echo "$as_me: error: invalid package name: $ac_package" >&2
1281   { (exit 1); exit 1; }; }
1282    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1283    eval with_$ac_package=\$ac_optarg ;;
1284
1285  -without-* | --without-*)
1286    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287    # Reject names that are not valid shell variable names.
1288    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289      { echo "$as_me: error: invalid package name: $ac_package" >&2
1290   { (exit 1); exit 1; }; }
1291    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1292    eval with_$ac_package=no ;;
1293
1294  --x)
1295    # Obsolete; use --with-x.
1296    with_x=yes ;;
1297
1298  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299  | --x-incl | --x-inc | --x-in | --x-i)
1300    ac_prev=x_includes ;;
1301  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303    x_includes=$ac_optarg ;;
1304
1305  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307    ac_prev=x_libraries ;;
1308  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310    x_libraries=$ac_optarg ;;
1311
1312  -*) { echo "$as_me: error: unrecognized option: $ac_option
1313Try \`$0 --help' for more information." >&2
1314   { (exit 1); exit 1; }; }
1315    ;;
1316
1317  *=*)
1318    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319    # Reject names that are not valid shell variable names.
1320    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1321      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1322   { (exit 1); exit 1; }; }
1323    eval $ac_envvar=\$ac_optarg
1324    export $ac_envvar ;;
1325
1326  *)
1327    # FIXME: should be removed in autoconf 3.0.
1328    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1332    ;;
1333
1334  esac
1335done
1336
1337if test -n "$ac_prev"; then
1338  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339  { echo "$as_me: error: missing argument to $ac_option" >&2
1340   { (exit 1); exit 1; }; }
1341fi
1342
1343# Be sure to have absolute directory names.
1344for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345		datadir sysconfdir sharedstatedir localstatedir includedir \
1346		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347		libdir localedir mandir
1348do
1349  eval ac_val=\$$ac_var
1350  case $ac_val in
1351    [\\/$]* | ?:[\\/]* )  continue;;
1352    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1353  esac
1354  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1355   { (exit 1); exit 1; }; }
1356done
1357
1358# There might be people who depend on the old broken behavior: `$host'
1359# used to hold the argument of --host etc.
1360# FIXME: To remove some day.
1361build=$build_alias
1362host=$host_alias
1363target=$target_alias
1364
1365# FIXME: To remove some day.
1366if test "x$host_alias" != x; then
1367  if test "x$build_alias" = x; then
1368    cross_compiling=maybe
1369    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1370    If a cross compiler is detected then cross compile mode will be used." >&2
1371  elif test "x$build_alias" != "x$host_alias"; then
1372    cross_compiling=yes
1373  fi
1374fi
1375
1376ac_tool_prefix=
1377test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378
1379test "$silent" = yes && exec 6>/dev/null
1380
1381
1382ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383ac_ls_di=`ls -di .` &&
1384ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385  { echo "$as_me: error: Working directory cannot be determined" >&2
1386   { (exit 1); exit 1; }; }
1387test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388  { echo "$as_me: error: pwd does not report name of working directory" >&2
1389   { (exit 1); exit 1; }; }
1390
1391
1392# Find the source files, if location was not specified.
1393if test -z "$srcdir"; then
1394  ac_srcdir_defaulted=yes
1395  # Try the directory containing this script, then the parent directory.
1396  ac_confdir=`$as_dirname -- "$0" ||
1397$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398	 X"$0" : 'X\(//\)[^/]' \| \
1399	 X"$0" : 'X\(//\)$' \| \
1400	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1401echo X"$0" |
1402    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403	    s//\1/
1404	    q
1405	  }
1406	  /^X\(\/\/\)[^/].*/{
1407	    s//\1/
1408	    q
1409	  }
1410	  /^X\(\/\/\)$/{
1411	    s//\1/
1412	    q
1413	  }
1414	  /^X\(\/\).*/{
1415	    s//\1/
1416	    q
1417	  }
1418	  s/.*/./; q'`
1419  srcdir=$ac_confdir
1420  if test ! -r "$srcdir/$ac_unique_file"; then
1421    srcdir=..
1422  fi
1423else
1424  ac_srcdir_defaulted=no
1425fi
1426if test ! -r "$srcdir/$ac_unique_file"; then
1427  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1429   { (exit 1); exit 1; }; }
1430fi
1431ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432ac_abs_confdir=`(
1433	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1434   { (exit 1); exit 1; }; }
1435	pwd)`
1436# When building in place, set srcdir=.
1437if test "$ac_abs_confdir" = "$ac_pwd"; then
1438  srcdir=.
1439fi
1440# Remove unnecessary trailing slashes from srcdir.
1441# Double slashes in file names in object file debugging info
1442# mess up M-x gdb in Emacs.
1443case $srcdir in
1444*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445esac
1446for ac_var in $ac_precious_vars; do
1447  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448  eval ac_env_${ac_var}_value=\$${ac_var}
1449  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451done
1452
1453#
1454# Report the --help message.
1455#
1456if test "$ac_init_help" = "long"; then
1457  # Omit some internal or obsolete options to make the list less imposing.
1458  # This message is too long to be a string in the A/UX 3.1 sh.
1459  cat <<_ACEOF
1460\`configure' configures this package to adapt to many kinds of systems.
1461
1462Usage: $0 [OPTION]... [VAR=VALUE]...
1463
1464To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465VAR=VALUE.  See below for descriptions of some of the useful variables.
1466
1467Defaults for the options are specified in brackets.
1468
1469Configuration:
1470  -h, --help              display this help and exit
1471      --help=short        display options specific to this package
1472      --help=recursive    display the short help of all the included packages
1473  -V, --version           display version information and exit
1474  -q, --quiet, --silent   do not print \`checking...' messages
1475      --cache-file=FILE   cache test results in FILE [disabled]
1476  -C, --config-cache      alias for \`--cache-file=config.cache'
1477  -n, --no-create         do not create output files
1478      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1479
1480Installation directories:
1481  --prefix=PREFIX         install architecture-independent files in PREFIX
1482			  [$ac_default_prefix]
1483  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1484			  [PREFIX]
1485
1486By default, \`make install' will install all the files in
1487\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1488an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489for instance \`--prefix=\$HOME'.
1490
1491For better control, use the options below.
1492
1493Fine tuning of the installation directories:
1494  --bindir=DIR           user executables [EPREFIX/bin]
1495  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1496  --libexecdir=DIR       program executables [EPREFIX/libexec]
1497  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1498  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1499  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1500  --libdir=DIR           object code libraries [EPREFIX/lib]
1501  --includedir=DIR       C header files [PREFIX/include]
1502  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1503  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1504  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1505  --infodir=DIR          info documentation [DATAROOTDIR/info]
1506  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1507  --mandir=DIR           man documentation [DATAROOTDIR/man]
1508  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1509  --htmldir=DIR          html documentation [DOCDIR]
1510  --dvidir=DIR           dvi documentation [DOCDIR]
1511  --pdfdir=DIR           pdf documentation [DOCDIR]
1512  --psdir=DIR            ps documentation [DOCDIR]
1513_ACEOF
1514
1515  cat <<\_ACEOF
1516
1517Program names:
1518  --program-prefix=PREFIX            prepend PREFIX to installed program names
1519  --program-suffix=SUFFIX            append SUFFIX to installed program names
1520  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1521
1522System types:
1523  --build=BUILD     configure for building on BUILD [guessed]
1524  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1525_ACEOF
1526fi
1527
1528if test -n "$ac_init_help"; then
1529
1530  cat <<\_ACEOF
1531
1532Optional Features:
1533  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1534  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1535  --disable-dependency-tracking  speeds up one-time build
1536  --enable-dependency-tracking   do not reject slow dependency extractors
1537  --enable-shared[=PKGS]  build shared libraries [default=yes]
1538  --enable-static[=PKGS]  build static libraries [default=yes]
1539  --enable-fast-install[=PKGS]
1540                          optimize for fast installation [default=yes]
1541  --disable-libtool-lock  avoid locking (might break parallel builds)
1542  --disable-nls           do not use Native Language Support
1543  --disable-rpath         do not hardcode runtime library paths
1544  --enable-experimental   enable building of experimental code
1545  --disable-oggvorbis     disable Ogg Vorbis support
1546  --disable-speex         disable Speex support
1547  --disable-oggtest       Do not try to compile and run a test Ogg program
1548  --disable-vorbistest       Do not try to compile and run a test Vorbis program
1549  --disable-speextest       Do not try to compile and run a test Speex program
1550  --disable-mad           disable libmad (MPEG audio loading) support
1551  --disable-src            enable secret rabbit code (libsamplerate)
1552  --disable-alsa           Disable ALSA, and enable use of OSS
1553  --enable-gcc-werror     enable -Werror in all Makefiles
1554
1555Optional Packages:
1556  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1557  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1558  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1559  --with-pic              try to use only PIC/non-PIC objects [default=use
1560                          both]
1561  --with-tags[=TAGS]      include additional configurations [automatic]
1562  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1563  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1564  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1565  --with-included-gettext use the GNU gettext library included here
1566  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1567  --without-libintl-prefix     don't search for libintl in includedir and libdir
1568  --with-ogg=PFX   Prefix where libogg is installed (optional)
1569  --with-ogg-libraries=DIR   Directory where libogg library is installed (optional)
1570  --with-ogg-includes=DIR   Directory where libogg header files are installed (optional)
1571  --with-vorbis=PFX   Prefix where libvorbis is installed (optional)
1572  --with-vorbis-libraries=DIR   Directory where libvorbis library is installed (optional)
1573  --with-vorbis-includes=DIR   Directory where libvorbis header files are installed (optional)
1574  --with-speex=PFX   Prefix where libspeex is installed (optional)
1575  --with-speex-libraries=DIR   Directory where libspeex library is installed (optional)
1576  --with-speex-includes=DIR   Directory where libspeex header files are installed (optional)
1577
1578Some influential environment variables:
1579  CC          C compiler command
1580  CFLAGS      C compiler flags
1581  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1582              nonstandard directory <lib dir>
1583  LIBS        libraries to pass to the linker, e.g. -l<library>
1584  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585              you have headers in a nonstandard directory <include dir>
1586  CPP         C preprocessor
1587  CXX         C++ compiler command
1588  CXXFLAGS    C++ compiler flags
1589  CXXCPP      C++ preprocessor
1590  F77         Fortran 77 compiler command
1591  FFLAGS      Fortran 77 compiler flags
1592  PKG_CONFIG  path to pkg-config utility
1593  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1594  GTK_LIBS    linker flags for GTK, overriding pkg-config
1595  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1596  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1597  GTHREADS_CFLAGS
1598              C compiler flags for GTHREADS, overriding pkg-config
1599  GTHREADS_LIBS
1600              linker flags for GTHREADS, overriding pkg-config
1601  SNDFILE_CFLAGS
1602              C compiler flags for SNDFILE, overriding pkg-config
1603  SNDFILE_LIBS
1604              linker flags for SNDFILE, overriding pkg-config
1605  SAMPLERATE_CFLAGS
1606              C compiler flags for SAMPLERATE, overriding pkg-config
1607  SAMPLERATE_LIBS
1608              linker flags for SAMPLERATE, overriding pkg-config
1609  ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1610  ALSA_LIBS   linker flags for ALSA, overriding pkg-config
1611
1612Use these variables to override the choices made by `configure' or to help
1613it to find libraries and programs with nonstandard names/locations.
1614
1615_ACEOF
1616ac_status=$?
1617fi
1618
1619if test "$ac_init_help" = "recursive"; then
1620  # If there are subdirs, report their specific --help.
1621  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1622    test -d "$ac_dir" || continue
1623    ac_builddir=.
1624
1625case "$ac_dir" in
1626.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627*)
1628  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1629  # A ".." for each directory in $ac_dir_suffix.
1630  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1631  case $ac_top_builddir_sub in
1632  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1634  esac ;;
1635esac
1636ac_abs_top_builddir=$ac_pwd
1637ac_abs_builddir=$ac_pwd$ac_dir_suffix
1638# for backward compatibility:
1639ac_top_builddir=$ac_top_build_prefix
1640
1641case $srcdir in
1642  .)  # We are building in place.
1643    ac_srcdir=.
1644    ac_top_srcdir=$ac_top_builddir_sub
1645    ac_abs_top_srcdir=$ac_pwd ;;
1646  [\\/]* | ?:[\\/]* )  # Absolute name.
1647    ac_srcdir=$srcdir$ac_dir_suffix;
1648    ac_top_srcdir=$srcdir
1649    ac_abs_top_srcdir=$srcdir ;;
1650  *) # Relative name.
1651    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1652    ac_top_srcdir=$ac_top_build_prefix$srcdir
1653    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1654esac
1655ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1656
1657    cd "$ac_dir" || { ac_status=$?; continue; }
1658    # Check for guested configure.
1659    if test -f "$ac_srcdir/configure.gnu"; then
1660      echo &&
1661      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1662    elif test -f "$ac_srcdir/configure"; then
1663      echo &&
1664      $SHELL "$ac_srcdir/configure" --help=recursive
1665    else
1666      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667    fi || ac_status=$?
1668    cd "$ac_pwd" || { ac_status=$?; break; }
1669  done
1670fi
1671
1672test -n "$ac_init_help" && exit $ac_status
1673if $ac_init_version; then
1674  cat <<\_ACEOF
1675configure
1676generated by GNU Autoconf 2.61
1677
1678Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16792002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1680This configure script is free software; the Free Software Foundation
1681gives unlimited permission to copy, distribute and modify it.
1682_ACEOF
1683  exit
1684fi
1685cat >config.log <<_ACEOF
1686This file contains any messages produced by compilers while
1687running configure, to aid debugging if configure makes a mistake.
1688
1689It was created by $as_me, which was
1690generated by GNU Autoconf 2.61.  Invocation command line was
1691
1692  $ $0 $@
1693
1694_ACEOF
1695exec 5>>config.log
1696{
1697cat <<_ASUNAME
1698## --------- ##
1699## Platform. ##
1700## --------- ##
1701
1702hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1703uname -m = `(uname -m) 2>/dev/null || echo unknown`
1704uname -r = `(uname -r) 2>/dev/null || echo unknown`
1705uname -s = `(uname -s) 2>/dev/null || echo unknown`
1706uname -v = `(uname -v) 2>/dev/null || echo unknown`
1707
1708/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1709/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1710
1711/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1712/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1713/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1714/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1715/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1716/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1717/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1718
1719_ASUNAME
1720
1721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722for as_dir in $PATH
1723do
1724  IFS=$as_save_IFS
1725  test -z "$as_dir" && as_dir=.
1726  echo "PATH: $as_dir"
1727done
1728IFS=$as_save_IFS
1729
1730} >&5
1731
1732cat >&5 <<_ACEOF
1733
1734
1735## ----------- ##
1736## Core tests. ##
1737## ----------- ##
1738
1739_ACEOF
1740
1741
1742# Keep a trace of the command line.
1743# Strip out --no-create and --no-recursion so they do not pile up.
1744# Strip out --silent because we don't want to record it for future runs.
1745# Also quote any args containing shell meta-characters.
1746# Make two passes to allow for proper duplicate-argument suppression.
1747ac_configure_args=
1748ac_configure_args0=
1749ac_configure_args1=
1750ac_must_keep_next=false
1751for ac_pass in 1 2
1752do
1753  for ac_arg
1754  do
1755    case $ac_arg in
1756    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1757    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1758    | -silent | --silent | --silen | --sile | --sil)
1759      continue ;;
1760    *\'*)
1761      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1762    esac
1763    case $ac_pass in
1764    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1765    2)
1766      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1767      if test $ac_must_keep_next = true; then
1768	ac_must_keep_next=false # Got value, back to normal.
1769      else
1770	case $ac_arg in
1771	  *=* | --config-cache | -C | -disable-* | --disable-* \
1772	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1773	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1774	  | -with-* | --with-* | -without-* | --without-* | --x)
1775	    case "$ac_configure_args0 " in
1776	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1777	    esac
1778	    ;;
1779	  -* ) ac_must_keep_next=true ;;
1780	esac
1781      fi
1782      ac_configure_args="$ac_configure_args '$ac_arg'"
1783      ;;
1784    esac
1785  done
1786done
1787$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1788$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1789
1790# When interrupted or exit'd, cleanup temporary files, and complete
1791# config.log.  We remove comments because anyway the quotes in there
1792# would cause problems or look ugly.
1793# WARNING: Use '\'' to represent an apostrophe within the trap.
1794# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1795trap 'exit_status=$?
1796  # Save into config.log some information that might help in debugging.
1797  {
1798    echo
1799
1800    cat <<\_ASBOX
1801## ---------------- ##
1802## Cache variables. ##
1803## ---------------- ##
1804_ASBOX
1805    echo
1806    # The following way of writing the cache mishandles newlines in values,
1807(
1808  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1809    eval ac_val=\$$ac_var
1810    case $ac_val in #(
1811    *${as_nl}*)
1812      case $ac_var in #(
1813      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1814echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1815      esac
1816      case $ac_var in #(
1817      _ | IFS | as_nl) ;; #(
1818      *) $as_unset $ac_var ;;
1819      esac ;;
1820    esac
1821  done
1822  (set) 2>&1 |
1823    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1824    *${as_nl}ac_space=\ *)
1825      sed -n \
1826	"s/'\''/'\''\\\\'\'''\''/g;
1827	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1828      ;; #(
1829    *)
1830      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1831      ;;
1832    esac |
1833    sort
1834)
1835    echo
1836
1837    cat <<\_ASBOX
1838## ----------------- ##
1839## Output variables. ##
1840## ----------------- ##
1841_ASBOX
1842    echo
1843    for ac_var in $ac_subst_vars
1844    do
1845      eval ac_val=\$$ac_var
1846      case $ac_val in
1847      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1848      esac
1849      echo "$ac_var='\''$ac_val'\''"
1850    done | sort
1851    echo
1852
1853    if test -n "$ac_subst_files"; then
1854      cat <<\_ASBOX
1855## ------------------- ##
1856## File substitutions. ##
1857## ------------------- ##
1858_ASBOX
1859      echo
1860      for ac_var in $ac_subst_files
1861      do
1862	eval ac_val=\$$ac_var
1863	case $ac_val in
1864	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1865	esac
1866	echo "$ac_var='\''$ac_val'\''"
1867      done | sort
1868      echo
1869    fi
1870
1871    if test -s confdefs.h; then
1872      cat <<\_ASBOX
1873## ----------- ##
1874## confdefs.h. ##
1875## ----------- ##
1876_ASBOX
1877      echo
1878      cat confdefs.h
1879      echo
1880    fi
1881    test "$ac_signal" != 0 &&
1882      echo "$as_me: caught signal $ac_signal"
1883    echo "$as_me: exit $exit_status"
1884  } >&5
1885  rm -f core *.core core.conftest.* &&
1886    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1887    exit $exit_status
1888' 0
1889for ac_signal in 1 2 13 15; do
1890  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1891done
1892ac_signal=0
1893
1894# confdefs.h avoids OS command line length limits that DEFS can exceed.
1895rm -f -r conftest* confdefs.h
1896
1897# Predefined preprocessor variables.
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_NAME "$PACKAGE_NAME"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_VERSION "$PACKAGE_VERSION"
1911_ACEOF
1912
1913
1914cat >>confdefs.h <<_ACEOF
1915#define PACKAGE_STRING "$PACKAGE_STRING"
1916_ACEOF
1917
1918
1919cat >>confdefs.h <<_ACEOF
1920#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1921_ACEOF
1922
1923
1924# Let the site file select an alternate cache file if it wants to.
1925# Prefer explicitly selected file to automatically selected ones.
1926if test -n "$CONFIG_SITE"; then
1927  set x "$CONFIG_SITE"
1928elif test "x$prefix" != xNONE; then
1929  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1930else
1931  set x "$ac_default_prefix/share/config.site" \
1932	"$ac_default_prefix/etc/config.site"
1933fi
1934shift
1935for ac_site_file
1936do
1937  if test -r "$ac_site_file"; then
1938    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1939echo "$as_me: loading site script $ac_site_file" >&6;}
1940    sed 's/^/| /' "$ac_site_file" >&5
1941    . "$ac_site_file"
1942  fi
1943done
1944
1945if test -r "$cache_file"; then
1946  # Some versions of bash will fail to source /dev/null (special
1947  # files actually), so we avoid doing that.
1948  if test -f "$cache_file"; then
1949    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1950echo "$as_me: loading cache $cache_file" >&6;}
1951    case $cache_file in
1952      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1953      *)                      . "./$cache_file";;
1954    esac
1955  fi
1956else
1957  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1958echo "$as_me: creating cache $cache_file" >&6;}
1959  >$cache_file
1960fi
1961
1962# Check that the precious variables saved in the cache have kept the same
1963# value.
1964ac_cache_corrupted=false
1965for ac_var in $ac_precious_vars; do
1966  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1967  eval ac_new_set=\$ac_env_${ac_var}_set
1968  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1969  eval ac_new_val=\$ac_env_${ac_var}_value
1970  case $ac_old_set,$ac_new_set in
1971    set,)
1972      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1973echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1974      ac_cache_corrupted=: ;;
1975    ,set)
1976      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1977echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1978      ac_cache_corrupted=: ;;
1979    ,);;
1980    *)
1981      if test "x$ac_old_val" != "x$ac_new_val"; then
1982	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1983echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1984	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1985echo "$as_me:   former value:  $ac_old_val" >&2;}
1986	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1987echo "$as_me:   current value: $ac_new_val" >&2;}
1988	ac_cache_corrupted=:
1989      fi;;
1990  esac
1991  # Pass precious variables to config.status.
1992  if test "$ac_new_set" = set; then
1993    case $ac_new_val in
1994    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1995    *) ac_arg=$ac_var=$ac_new_val ;;
1996    esac
1997    case " $ac_configure_args " in
1998      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1999      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2000    esac
2001  fi
2002done
2003if $ac_cache_corrupted; then
2004  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2005echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2006  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2007echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2008   { (exit 1); exit 1; }; }
2009fi
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027ac_ext=c
2028ac_cpp='$CPP $CPPFLAGS'
2029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031ac_compiler_gnu=$ac_cv_c_compiler_gnu
2032
2033
2034am__api_version="1.9"
2035ac_aux_dir=
2036for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2037  if test -f "$ac_dir/install-sh"; then
2038    ac_aux_dir=$ac_dir
2039    ac_install_sh="$ac_aux_dir/install-sh -c"
2040    break
2041  elif test -f "$ac_dir/install.sh"; then
2042    ac_aux_dir=$ac_dir
2043    ac_install_sh="$ac_aux_dir/install.sh -c"
2044    break
2045  elif test -f "$ac_dir/shtool"; then
2046    ac_aux_dir=$ac_dir
2047    ac_install_sh="$ac_aux_dir/shtool install -c"
2048    break
2049  fi
2050done
2051if test -z "$ac_aux_dir"; then
2052  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2053echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2054   { (exit 1); exit 1; }; }
2055fi
2056
2057# These three variables are undocumented and unsupported,
2058# and are intended to be withdrawn in a future Autoconf release.
2059# They can cause serious problems if a builder's source tree is in a directory
2060# whose full name contains unusual characters.
2061ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2062ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2063ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2064
2065
2066# Find a good install program.  We prefer a C program (faster),
2067# so one script is as good as another.  But avoid the broken or
2068# incompatible versions:
2069# SysV /etc/install, /usr/sbin/install
2070# SunOS /usr/etc/install
2071# IRIX /sbin/install
2072# AIX /bin/install
2073# AmigaOS /C/install, which installs bootblocks on floppy discs
2074# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2075# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2076# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2077# OS/2's system install, which has a completely different semantic
2078# ./install, which can be erroneously created by make from ./install.sh.
2079{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2080echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2081if test -z "$INSTALL"; then
2082if test "${ac_cv_path_install+set}" = set; then
2083  echo $ECHO_N "(cached) $ECHO_C" >&6
2084else
2085  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086for as_dir in $PATH
2087do
2088  IFS=$as_save_IFS
2089  test -z "$as_dir" && as_dir=.
2090  # Account for people who put trailing slashes in PATH elements.
2091case $as_dir/ in
2092  ./ | .// | /cC/* | \
2093  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2094  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2095  /usr/ucb/* ) ;;
2096  *)
2097    # OSF1 and SCO ODT 3.0 have their own names for install.
2098    # Don't use installbsd from OSF since it installs stuff as root
2099    # by default.
2100    for ac_prog in ginstall scoinst install; do
2101      for ac_exec_ext in '' $ac_executable_extensions; do
2102	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2103	  if test $ac_prog = install &&
2104	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2105	    # AIX install.  It has an incompatible calling convention.
2106	    :
2107	  elif test $ac_prog = install &&
2108	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2109	    # program-specific install script used by HP pwplus--don't use.
2110	    :
2111	  else
2112	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2113	    break 3
2114	  fi
2115	fi
2116      done
2117    done
2118    ;;
2119esac
2120done
2121IFS=$as_save_IFS
2122
2123
2124fi
2125  if test "${ac_cv_path_install+set}" = set; then
2126    INSTALL=$ac_cv_path_install
2127  else
2128    # As a last resort, use the slow shell script.  Don't cache a
2129    # value for INSTALL within a source directory, because that will
2130    # break other packages using the cache if that directory is
2131    # removed, or if the value is a relative name.
2132    INSTALL=$ac_install_sh
2133  fi
2134fi
2135{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2136echo "${ECHO_T}$INSTALL" >&6; }
2137
2138# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2139# It thinks the first close brace ends the variable substitution.
2140test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2141
2142test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2143
2144test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2145
2146{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2147echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2148# Just in case
2149sleep 1
2150echo timestamp > conftest.file
2151# Do `set' in a subshell so we don't clobber the current shell's
2152# arguments.  Must try -L first in case configure is actually a
2153# symlink; some systems play weird games with the mod time of symlinks
2154# (eg FreeBSD returns the mod time of the symlink's containing
2155# directory).
2156if (
2157   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2158   if test "$*" = "X"; then
2159      # -L didn't work.
2160      set X `ls -t $srcdir/configure conftest.file`
2161   fi
2162   rm -f conftest.file
2163   if test "$*" != "X $srcdir/configure conftest.file" \
2164      && test "$*" != "X conftest.file $srcdir/configure"; then
2165
2166      # If neither matched, then we have a broken ls.  This can happen
2167      # if, for instance, CONFIG_SHELL is bash and it inherits a
2168      # broken ls alias from the environment.  This has actually
2169      # happened.  Such a system could not be considered "sane".
2170      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2171alias in your environment" >&5
2172echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2173alias in your environment" >&2;}
2174   { (exit 1); exit 1; }; }
2175   fi
2176
2177   test "$2" = conftest.file
2178   )
2179then
2180   # Ok.
2181   :
2182else
2183   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2184Check your system clock" >&5
2185echo "$as_me: error: newly created file is older than distributed files!
2186Check your system clock" >&2;}
2187   { (exit 1); exit 1; }; }
2188fi
2189{ echo "$as_me:$LINENO: result: yes" >&5
2190echo "${ECHO_T}yes" >&6; }
2191test "$program_prefix" != NONE &&
2192  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2193# Use a double $ so make ignores it.
2194test "$program_suffix" != NONE &&
2195  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2196# Double any \ or $.  echo might interpret backslashes.
2197# By default was `s,x,x', remove it if useless.
2198cat <<\_ACEOF >conftest.sed
2199s/[\\$]/&&/g;s/;s,x,x,$//
2200_ACEOF
2201program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2202rm -f conftest.sed
2203
2204# expand $ac_aux_dir to an absolute path
2205am_aux_dir=`cd $ac_aux_dir && pwd`
2206
2207test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2208# Use eval to expand $SHELL
2209if eval "$MISSING --run true"; then
2210  am_missing_run="$MISSING --run "
2211else
2212  am_missing_run=
2213  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2214echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2215fi
2216
2217if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2218  # We used to keeping the `.' as first argument, in order to
2219  # allow $(mkdir_p) to be used without argument.  As in
2220  #   $(mkdir_p) $(somedir)
2221  # where $(somedir) is conditionally defined.  However this is wrong
2222  # for two reasons:
2223  #  1. if the package is installed by a user who cannot write `.'
2224  #     make install will fail,
2225  #  2. the above comment should most certainly read
2226  #     $(mkdir_p) $(DESTDIR)$(somedir)
2227  #     so it does not work when $(somedir) is undefined and
2228  #     $(DESTDIR) is not.
2229  #  To support the latter case, we have to write
2230  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2231  #  so the `.' trick is pointless.
2232  mkdir_p='mkdir -p --'
2233else
2234  # On NextStep and OpenStep, the `mkdir' command does not
2235  # recognize any option.  It will interpret all options as
2236  # directories to create, and then abort because `.' already
2237  # exists.
2238  for d in ./-p ./--version;
2239  do
2240    test -d $d && rmdir $d
2241  done
2242  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2243  if test -f "$ac_aux_dir/mkinstalldirs"; then
2244    mkdir_p='$(mkinstalldirs)'
2245  else
2246    mkdir_p='$(install_sh) -d'
2247  fi
2248fi
2249
2250for ac_prog in gawk mawk nawk awk
2251do
2252  # Extract the first word of "$ac_prog", so it can be a program name with args.
2253set dummy $ac_prog; ac_word=$2
2254{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2256if test "${ac_cv_prog_AWK+set}" = set; then
2257  echo $ECHO_N "(cached) $ECHO_C" >&6
2258else
2259  if test -n "$AWK"; then
2260  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2261else
2262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263for as_dir in $PATH
2264do
2265  IFS=$as_save_IFS
2266  test -z "$as_dir" && as_dir=.
2267  for ac_exec_ext in '' $ac_executable_extensions; do
2268  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2269    ac_cv_prog_AWK="$ac_prog"
2270    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271    break 2
2272  fi
2273done
2274done
2275IFS=$as_save_IFS
2276
2277fi
2278fi
2279AWK=$ac_cv_prog_AWK
2280if test -n "$AWK"; then
2281  { echo "$as_me:$LINENO: result: $AWK" >&5
2282echo "${ECHO_T}$AWK" >&6; }
2283else
2284  { echo "$as_me:$LINENO: result: no" >&5
2285echo "${ECHO_T}no" >&6; }
2286fi
2287
2288
2289  test -n "$AWK" && break
2290done
2291
2292{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2293echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2294set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2295if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2296  echo $ECHO_N "(cached) $ECHO_C" >&6
2297else
2298  cat >conftest.make <<\_ACEOF
2299SHELL = /bin/sh
2300all:
2301	@echo '@@@%%%=$(MAKE)=@@@%%%'
2302_ACEOF
2303# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2304case `${MAKE-make} -f conftest.make 2>/dev/null` in
2305  *@@@%%%=?*=@@@%%%*)
2306    eval ac_cv_prog_make_${ac_make}_set=yes;;
2307  *)
2308    eval ac_cv_prog_make_${ac_make}_set=no;;
2309esac
2310rm -f conftest.make
2311fi
2312if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2313  { echo "$as_me:$LINENO: result: yes" >&5
2314echo "${ECHO_T}yes" >&6; }
2315  SET_MAKE=
2316else
2317  { echo "$as_me:$LINENO: result: no" >&5
2318echo "${ECHO_T}no" >&6; }
2319  SET_MAKE="MAKE=${MAKE-make}"
2320fi
2321
2322rm -rf .tst 2>/dev/null
2323mkdir .tst 2>/dev/null
2324if test -d .tst; then
2325  am__leading_dot=.
2326else
2327  am__leading_dot=_
2328fi
2329rmdir .tst 2>/dev/null
2330
2331# test to see if srcdir already configured
2332if test "`cd $srcdir && pwd`" != "`pwd`" &&
2333   test -f $srcdir/config.status; then
2334  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2335echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2336   { (exit 1); exit 1; }; }
2337fi
2338
2339# test whether we have cygpath
2340if test -z "$CYGPATH_W"; then
2341  if (cygpath --version) >/dev/null 2>/dev/null; then
2342    CYGPATH_W='cygpath -w'
2343  else
2344    CYGPATH_W=echo
2345  fi
2346fi
2347
2348
2349# Define the identity of the package.
2350 PACKAGE=sweep
2351 VERSION=0.9.3
2352
2353
2354cat >>confdefs.h <<_ACEOF
2355#define PACKAGE "$PACKAGE"
2356_ACEOF
2357
2358
2359cat >>confdefs.h <<_ACEOF
2360#define VERSION "$VERSION"
2361_ACEOF
2362
2363# Some tools Automake needs.
2364
2365ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2366
2367
2368AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2369
2370
2371AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2372
2373
2374AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2375
2376
2377MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2378
2379install_sh=${install_sh-"$am_aux_dir/install-sh"}
2380
2381# Installed binaries are usually stripped using `strip' when the user
2382# run `make install-strip'.  However `strip' might not be the right
2383# tool to use in cross-compilation environments, therefore Automake
2384# will honor the `STRIP' environment variable to overrule this program.
2385if test "$cross_compiling" != no; then
2386  if test -n "$ac_tool_prefix"; then
2387  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2388set dummy ${ac_tool_prefix}strip; ac_word=$2
2389{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391if test "${ac_cv_prog_STRIP+set}" = set; then
2392  echo $ECHO_N "(cached) $ECHO_C" >&6
2393else
2394  if test -n "$STRIP"; then
2395  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2396else
2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400  IFS=$as_save_IFS
2401  test -z "$as_dir" && as_dir=.
2402  for ac_exec_ext in '' $ac_executable_extensions; do
2403  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2405    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406    break 2
2407  fi
2408done
2409done
2410IFS=$as_save_IFS
2411
2412fi
2413fi
2414STRIP=$ac_cv_prog_STRIP
2415if test -n "$STRIP"; then
2416  { echo "$as_me:$LINENO: result: $STRIP" >&5
2417echo "${ECHO_T}$STRIP" >&6; }
2418else
2419  { echo "$as_me:$LINENO: result: no" >&5
2420echo "${ECHO_T}no" >&6; }
2421fi
2422
2423
2424fi
2425if test -z "$ac_cv_prog_STRIP"; then
2426  ac_ct_STRIP=$STRIP
2427  # Extract the first word of "strip", so it can be a program name with args.
2428set dummy strip; ac_word=$2
2429{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2431if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2432  echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434  if test -n "$ac_ct_STRIP"; then
2435  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2436else
2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440  IFS=$as_save_IFS
2441  test -z "$as_dir" && as_dir=.
2442  for ac_exec_ext in '' $ac_executable_extensions; do
2443  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2444    ac_cv_prog_ac_ct_STRIP="strip"
2445    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446    break 2
2447  fi
2448done
2449done
2450IFS=$as_save_IFS
2451
2452fi
2453fi
2454ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2455if test -n "$ac_ct_STRIP"; then
2456  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2457echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2458else
2459  { echo "$as_me:$LINENO: result: no" >&5
2460echo "${ECHO_T}no" >&6; }
2461fi
2462
2463  if test "x$ac_ct_STRIP" = x; then
2464    STRIP=":"
2465  else
2466    case $cross_compiling:$ac_tool_warned in
2467yes:)
2468{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2469whose name does not start with the host triplet.  If you think this
2470configuration is useful to you, please write to autoconf@gnu.org." >&5
2471echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2472whose name does not start with the host triplet.  If you think this
2473configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2474ac_tool_warned=yes ;;
2475esac
2476    STRIP=$ac_ct_STRIP
2477  fi
2478else
2479  STRIP="$ac_cv_prog_STRIP"
2480fi
2481
2482fi
2483INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2484
2485# We need awk for the "check" target.  The system "awk" is bad on
2486# some platforms.
2487# Always define AMTAR for backward compatibility.
2488
2489AMTAR=${AMTAR-"${am_missing_run}tar"}
2490
2491am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2492
2493
2494
2495
2496
2497ac_config_headers="$ac_config_headers config.h"
2498
2499
2500DEPDIR="${am__leading_dot}deps"
2501
2502ac_config_commands="$ac_config_commands depfiles"
2503
2504
2505am_make=${MAKE-make}
2506cat > confinc << 'END'
2507am__doit:
2508	@echo done
2509.PHONY: am__doit
2510END
2511# If we don't find an include directive, just comment out the code.
2512{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2513echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2514am__include="#"
2515am__quote=
2516_am_result=none
2517# First try GNU make style include.
2518echo "include confinc" > confmf
2519# We grep out `Entering directory' and `Leaving directory'
2520# messages which can occur if `w' ends up in MAKEFLAGS.
2521# In particular we don't look at `^make:' because GNU make might
2522# be invoked under some other name (usually "gmake"), in which
2523# case it prints its new name instead of `make'.
2524if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2525   am__include=include
2526   am__quote=
2527   _am_result=GNU
2528fi
2529# Now try BSD make style include.
2530if test "$am__include" = "#"; then
2531   echo '.include "confinc"' > confmf
2532   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2533      am__include=.include
2534      am__quote="\""
2535      _am_result=BSD
2536   fi
2537fi
2538
2539
2540{ echo "$as_me:$LINENO: result: $_am_result" >&5
2541echo "${ECHO_T}$_am_result" >&6; }
2542rm -f confinc confmf
2543
2544# Check whether --enable-dependency-tracking was given.
2545if test "${enable_dependency_tracking+set}" = set; then
2546  enableval=$enable_dependency_tracking;
2547fi
2548
2549if test "x$enable_dependency_tracking" != xno; then
2550  am_depcomp="$ac_aux_dir/depcomp"
2551  AMDEPBACKSLASH='\'
2552fi
2553
2554
2555if test "x$enable_dependency_tracking" != xno; then
2556  AMDEP_TRUE=
2557  AMDEP_FALSE='#'
2558else
2559  AMDEP_TRUE='#'
2560  AMDEP_FALSE=
2561fi
2562
2563
2564
2565ac_ext=c
2566ac_cpp='$CPP $CPPFLAGS'
2567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2569ac_compiler_gnu=$ac_cv_c_compiler_gnu
2570if test -n "$ac_tool_prefix"; then
2571  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2572set dummy ${ac_tool_prefix}gcc; ac_word=$2
2573{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2575if test "${ac_cv_prog_CC+set}" = set; then
2576  echo $ECHO_N "(cached) $ECHO_C" >&6
2577else
2578  if test -n "$CC"; then
2579  ac_cv_prog_CC="$CC" # Let the user override the test.
2580else
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584  IFS=$as_save_IFS
2585  test -z "$as_dir" && as_dir=.
2586  for ac_exec_ext in '' $ac_executable_extensions; do
2587  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2589    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590    break 2
2591  fi
2592done
2593done
2594IFS=$as_save_IFS
2595
2596fi
2597fi
2598CC=$ac_cv_prog_CC
2599if test -n "$CC"; then
2600  { echo "$as_me:$LINENO: result: $CC" >&5
2601echo "${ECHO_T}$CC" >&6; }
2602else
2603  { echo "$as_me:$LINENO: result: no" >&5
2604echo "${ECHO_T}no" >&6; }
2605fi
2606
2607
2608fi
2609if test -z "$ac_cv_prog_CC"; then
2610  ac_ct_CC=$CC
2611  # Extract the first word of "gcc", so it can be a program name with args.
2612set dummy gcc; ac_word=$2
2613{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2615if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2616  echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
2618  if test -n "$ac_ct_CC"; then
2619  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2620else
2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622for as_dir in $PATH
2623do
2624  IFS=$as_save_IFS
2625  test -z "$as_dir" && as_dir=.
2626  for ac_exec_ext in '' $ac_executable_extensions; do
2627  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628    ac_cv_prog_ac_ct_CC="gcc"
2629    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630    break 2
2631  fi
2632done
2633done
2634IFS=$as_save_IFS
2635
2636fi
2637fi
2638ac_ct_CC=$ac_cv_prog_ac_ct_CC
2639if test -n "$ac_ct_CC"; then
2640  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2641echo "${ECHO_T}$ac_ct_CC" >&6; }
2642else
2643  { echo "$as_me:$LINENO: result: no" >&5
2644echo "${ECHO_T}no" >&6; }
2645fi
2646
2647  if test "x$ac_ct_CC" = x; then
2648    CC=""
2649  else
2650    case $cross_compiling:$ac_tool_warned in
2651yes:)
2652{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2653whose name does not start with the host triplet.  If you think this
2654configuration is useful to you, please write to autoconf@gnu.org." >&5
2655echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2656whose name does not start with the host triplet.  If you think this
2657configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2658ac_tool_warned=yes ;;
2659esac
2660    CC=$ac_ct_CC
2661  fi
2662else
2663  CC="$ac_cv_prog_CC"
2664fi
2665
2666if test -z "$CC"; then
2667          if test -n "$ac_tool_prefix"; then
2668    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2669set dummy ${ac_tool_prefix}cc; ac_word=$2
2670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2672if test "${ac_cv_prog_CC+set}" = set; then
2673  echo $ECHO_N "(cached) $ECHO_C" >&6
2674else
2675  if test -n "$CC"; then
2676  ac_cv_prog_CC="$CC" # Let the user override the test.
2677else
2678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679for as_dir in $PATH
2680do
2681  IFS=$as_save_IFS
2682  test -z "$as_dir" && as_dir=.
2683  for ac_exec_ext in '' $ac_executable_extensions; do
2684  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685    ac_cv_prog_CC="${ac_tool_prefix}cc"
2686    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687    break 2
2688  fi
2689done
2690done
2691IFS=$as_save_IFS
2692
2693fi
2694fi
2695CC=$ac_cv_prog_CC
2696if test -n "$CC"; then
2697  { echo "$as_me:$LINENO: result: $CC" >&5
2698echo "${ECHO_T}$CC" >&6; }
2699else
2700  { echo "$as_me:$LINENO: result: no" >&5
2701echo "${ECHO_T}no" >&6; }
2702fi
2703
2704
2705  fi
2706fi
2707if test -z "$CC"; then
2708  # Extract the first word of "cc", so it can be a program name with args.
2709set dummy cc; ac_word=$2
2710{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2712if test "${ac_cv_prog_CC+set}" = set; then
2713  echo $ECHO_N "(cached) $ECHO_C" >&6
2714else
2715  if test -n "$CC"; then
2716  ac_cv_prog_CC="$CC" # Let the user override the test.
2717else
2718  ac_prog_rejected=no
2719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720for as_dir in $PATH
2721do
2722  IFS=$as_save_IFS
2723  test -z "$as_dir" && as_dir=.
2724  for ac_exec_ext in '' $ac_executable_extensions; do
2725  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2727       ac_prog_rejected=yes
2728       continue
2729     fi
2730    ac_cv_prog_CC="cc"
2731    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732    break 2
2733  fi
2734done
2735done
2736IFS=$as_save_IFS
2737
2738if test $ac_prog_rejected = yes; then
2739  # We found a bogon in the path, so make sure we never use it.
2740  set dummy $ac_cv_prog_CC
2741  shift
2742  if test $# != 0; then
2743    # We chose a different compiler from the bogus one.
2744    # However, it has the same basename, so the bogon will be chosen
2745    # first if we set CC to just the basename; use the full file name.
2746    shift
2747    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2748  fi
2749fi
2750fi
2751fi
2752CC=$ac_cv_prog_CC
2753if test -n "$CC"; then
2754  { echo "$as_me:$LINENO: result: $CC" >&5
2755echo "${ECHO_T}$CC" >&6; }
2756else
2757  { echo "$as_me:$LINENO: result: no" >&5
2758echo "${ECHO_T}no" >&6; }
2759fi
2760
2761
2762fi
2763if test -z "$CC"; then
2764  if test -n "$ac_tool_prefix"; then
2765  for ac_prog in cl.exe
2766  do
2767    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771if test "${ac_cv_prog_CC+set}" = set; then
2772  echo $ECHO_N "(cached) $ECHO_C" >&6
2773else
2774  if test -n "$CC"; then
2775  ac_cv_prog_CC="$CC" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780  IFS=$as_save_IFS
2781  test -z "$as_dir" && as_dir=.
2782  for ac_exec_ext in '' $ac_executable_extensions; do
2783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2785    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786    break 2
2787  fi
2788done
2789done
2790IFS=$as_save_IFS
2791
2792fi
2793fi
2794CC=$ac_cv_prog_CC
2795if test -n "$CC"; then
2796  { echo "$as_me:$LINENO: result: $CC" >&5
2797echo "${ECHO_T}$CC" >&6; }
2798else
2799  { echo "$as_me:$LINENO: result: no" >&5
2800echo "${ECHO_T}no" >&6; }
2801fi
2802
2803
2804    test -n "$CC" && break
2805  done
2806fi
2807if test -z "$CC"; then
2808  ac_ct_CC=$CC
2809  for ac_prog in cl.exe
2810do
2811  # Extract the first word of "$ac_prog", so it can be a program name with args.
2812set dummy $ac_prog; ac_word=$2
2813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2815if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2816  echo $ECHO_N "(cached) $ECHO_C" >&6
2817else
2818  if test -n "$ac_ct_CC"; then
2819  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824  IFS=$as_save_IFS
2825  test -z "$as_dir" && as_dir=.
2826  for ac_exec_ext in '' $ac_executable_extensions; do
2827  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828    ac_cv_prog_ac_ct_CC="$ac_prog"
2829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830    break 2
2831  fi
2832done
2833done
2834IFS=$as_save_IFS
2835
2836fi
2837fi
2838ac_ct_CC=$ac_cv_prog_ac_ct_CC
2839if test -n "$ac_ct_CC"; then
2840  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2841echo "${ECHO_T}$ac_ct_CC" >&6; }
2842else
2843  { echo "$as_me:$LINENO: result: no" >&5
2844echo "${ECHO_T}no" >&6; }
2845fi
2846
2847
2848  test -n "$ac_ct_CC" && break
2849done
2850
2851  if test "x$ac_ct_CC" = x; then
2852    CC=""
2853  else
2854    case $cross_compiling:$ac_tool_warned in
2855yes:)
2856{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2857whose name does not start with the host triplet.  If you think this
2858configuration is useful to you, please write to autoconf@gnu.org." >&5
2859echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2860whose name does not start with the host triplet.  If you think this
2861configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2862ac_tool_warned=yes ;;
2863esac
2864    CC=$ac_ct_CC
2865  fi
2866fi
2867
2868fi
2869
2870
2871test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2872See \`config.log' for more details." >&5
2873echo "$as_me: error: no acceptable C compiler found in \$PATH
2874See \`config.log' for more details." >&2;}
2875   { (exit 1); exit 1; }; }
2876
2877# Provide some information about the compiler.
2878echo "$as_me:$LINENO: checking for C compiler version" >&5
2879ac_compiler=`set X $ac_compile; echo $2`
2880{ (ac_try="$ac_compiler --version >&5"
2881case "(($ac_try" in
2882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883  *) ac_try_echo=$ac_try;;
2884esac
2885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886  (eval "$ac_compiler --version >&5") 2>&5
2887  ac_status=$?
2888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889  (exit $ac_status); }
2890{ (ac_try="$ac_compiler -v >&5"
2891case "(($ac_try" in
2892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893  *) ac_try_echo=$ac_try;;
2894esac
2895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896  (eval "$ac_compiler -v >&5") 2>&5
2897  ac_status=$?
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); }
2900{ (ac_try="$ac_compiler -V >&5"
2901case "(($ac_try" in
2902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903  *) ac_try_echo=$ac_try;;
2904esac
2905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906  (eval "$ac_compiler -V >&5") 2>&5
2907  ac_status=$?
2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); }
2910
2911cat >conftest.$ac_ext <<_ACEOF
2912/* confdefs.h.  */
2913_ACEOF
2914cat confdefs.h >>conftest.$ac_ext
2915cat >>conftest.$ac_ext <<_ACEOF
2916/* end confdefs.h.  */
2917
2918int
2919main ()
2920{
2921
2922  ;
2923  return 0;
2924}
2925_ACEOF
2926ac_clean_files_save=$ac_clean_files
2927ac_clean_files="$ac_clean_files a.out a.exe b.out"
2928# Try to create an executable without -o first, disregard a.out.
2929# It will help us diagnose broken compilers, and finding out an intuition
2930# of exeext.
2931{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2932echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2933ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2934#
2935# List of possible output files, starting from the most likely.
2936# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2937# only as a last resort.  b.out is created by i960 compilers.
2938ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2939#
2940# The IRIX 6 linker writes into existing files which may not be
2941# executable, retaining their permissions.  Remove them first so a
2942# subsequent execution test works.
2943ac_rmfiles=
2944for ac_file in $ac_files
2945do
2946  case $ac_file in
2947    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2948    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2949  esac
2950done
2951rm -f $ac_rmfiles
2952
2953if { (ac_try="$ac_link_default"
2954case "(($ac_try" in
2955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956  *) ac_try_echo=$ac_try;;
2957esac
2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959  (eval "$ac_link_default") 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); }; then
2963  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2964# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2965# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2966# so that the user can short-circuit this test for compilers unknown to
2967# Autoconf.
2968for ac_file in $ac_files ''
2969do
2970  test -f "$ac_file" || continue
2971  case $ac_file in
2972    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2973	;;
2974    [ab].out )
2975	# We found the default executable, but exeext='' is most
2976	# certainly right.
2977	break;;
2978    *.* )
2979        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2980	then :; else
2981	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2982	fi
2983	# We set ac_cv_exeext here because the later test for it is not
2984	# safe: cross compilers may not add the suffix if given an `-o'
2985	# argument, so we may need to know it at that point already.
2986	# Even if this section looks crufty: it has the advantage of
2987	# actually working.
2988	break;;
2989    * )
2990	break;;
2991  esac
2992done
2993test "$ac_cv_exeext" = no && ac_cv_exeext=
2994
2995else
2996  ac_file=''
2997fi
2998
2999{ echo "$as_me:$LINENO: result: $ac_file" >&5
3000echo "${ECHO_T}$ac_file" >&6; }
3001if test -z "$ac_file"; then
3002  echo "$as_me: failed program was:" >&5
3003sed 's/^/| /' conftest.$ac_ext >&5
3004
3005{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3006See \`config.log' for more details." >&5
3007echo "$as_me: error: C compiler cannot create executables
3008See \`config.log' for more details." >&2;}
3009   { (exit 77); exit 77; }; }
3010fi
3011
3012ac_exeext=$ac_cv_exeext
3013
3014# Check that the compiler produces executables we can run.  If not, either
3015# the compiler is broken, or we cross compile.
3016{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3017echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3018# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3019# If not cross compiling, check that we can run a simple program.
3020if test "$cross_compiling" != yes; then
3021  if { ac_try='./$ac_file'
3022  { (case "(($ac_try" in
3023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024  *) ac_try_echo=$ac_try;;
3025esac
3026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027  (eval "$ac_try") 2>&5
3028  ac_status=$?
3029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030  (exit $ac_status); }; }; then
3031    cross_compiling=no
3032  else
3033    if test "$cross_compiling" = maybe; then
3034	cross_compiling=yes
3035    else
3036	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3037If you meant to cross compile, use \`--host'.
3038See \`config.log' for more details." >&5
3039echo "$as_me: error: cannot run C compiled programs.
3040If you meant to cross compile, use \`--host'.
3041See \`config.log' for more details." >&2;}
3042   { (exit 1); exit 1; }; }
3043    fi
3044  fi
3045fi
3046{ echo "$as_me:$LINENO: result: yes" >&5
3047echo "${ECHO_T}yes" >&6; }
3048
3049rm -f a.out a.exe conftest$ac_cv_exeext b.out
3050ac_clean_files=$ac_clean_files_save
3051# Check that the compiler produces executables we can run.  If not, either
3052# the compiler is broken, or we cross compile.
3053{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3054echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3055{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3056echo "${ECHO_T}$cross_compiling" >&6; }
3057
3058{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3059echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3060if { (ac_try="$ac_link"
3061case "(($ac_try" in
3062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063  *) ac_try_echo=$ac_try;;
3064esac
3065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066  (eval "$ac_link") 2>&5
3067  ac_status=$?
3068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069  (exit $ac_status); }; then
3070  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3071# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3072# work properly (i.e., refer to `conftest.exe'), while it won't with
3073# `rm'.
3074for ac_file in conftest.exe conftest conftest.*; do
3075  test -f "$ac_file" || continue
3076  case $ac_file in
3077    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3078    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3079	  break;;
3080    * ) break;;
3081  esac
3082done
3083else
3084  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3085See \`config.log' for more details." >&5
3086echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3087See \`config.log' for more details." >&2;}
3088   { (exit 1); exit 1; }; }
3089fi
3090
3091rm -f conftest$ac_cv_exeext
3092{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3093echo "${ECHO_T}$ac_cv_exeext" >&6; }
3094
3095rm -f conftest.$ac_ext
3096EXEEXT=$ac_cv_exeext
3097ac_exeext=$EXEEXT
3098{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3099echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3100if test "${ac_cv_objext+set}" = set; then
3101  echo $ECHO_N "(cached) $ECHO_C" >&6
3102else
3103  cat >conftest.$ac_ext <<_ACEOF
3104/* confdefs.h.  */
3105_ACEOF
3106cat confdefs.h >>conftest.$ac_ext
3107cat >>conftest.$ac_ext <<_ACEOF
3108/* end confdefs.h.  */
3109
3110int
3111main ()
3112{
3113
3114  ;
3115  return 0;
3116}
3117_ACEOF
3118rm -f conftest.o conftest.obj
3119if { (ac_try="$ac_compile"
3120case "(($ac_try" in
3121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122  *) ac_try_echo=$ac_try;;
3123esac
3124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125  (eval "$ac_compile") 2>&5
3126  ac_status=$?
3127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128  (exit $ac_status); }; then
3129  for ac_file in conftest.o conftest.obj conftest.*; do
3130  test -f "$ac_file" || continue;
3131  case $ac_file in
3132    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3133    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3134       break;;
3135  esac
3136done
3137else
3138  echo "$as_me: failed program was:" >&5
3139sed 's/^/| /' conftest.$ac_ext >&5
3140
3141{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3142See \`config.log' for more details." >&5
3143echo "$as_me: error: cannot compute suffix of object files: cannot compile
3144See \`config.log' for more details." >&2;}
3145   { (exit 1); exit 1; }; }
3146fi
3147
3148rm -f conftest.$ac_cv_objext conftest.$ac_ext
3149fi
3150{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3151echo "${ECHO_T}$ac_cv_objext" >&6; }
3152OBJEXT=$ac_cv_objext
3153ac_objext=$OBJEXT
3154{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3155echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3156if test "${ac_cv_c_compiler_gnu+set}" = set; then
3157  echo $ECHO_N "(cached) $ECHO_C" >&6
3158else
3159  cat >conftest.$ac_ext <<_ACEOF
3160/* confdefs.h.  */
3161_ACEOF
3162cat confdefs.h >>conftest.$ac_ext
3163cat >>conftest.$ac_ext <<_ACEOF
3164/* end confdefs.h.  */
3165
3166int
3167main ()
3168{
3169#ifndef __GNUC__
3170       choke me
3171#endif
3172
3173  ;
3174  return 0;
3175}
3176_ACEOF
3177rm -f conftest.$ac_objext
3178if { (ac_try="$ac_compile"
3179case "(($ac_try" in
3180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181  *) ac_try_echo=$ac_try;;
3182esac
3183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184  (eval "$ac_compile") 2>conftest.er1
3185  ac_status=$?
3186  grep -v '^ *+' conftest.er1 >conftest.err
3187  rm -f conftest.er1
3188  cat conftest.err >&5
3189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190  (exit $ac_status); } && {
3191	 test -z "$ac_c_werror_flag" ||
3192	 test ! -s conftest.err
3193       } && test -s conftest.$ac_objext; then
3194  ac_compiler_gnu=yes
3195else
3196  echo "$as_me: failed program was:" >&5
3197sed 's/^/| /' conftest.$ac_ext >&5
3198
3199	ac_compiler_gnu=no
3200fi
3201
3202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203ac_cv_c_compiler_gnu=$ac_compiler_gnu
3204
3205fi
3206{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3207echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3208GCC=`test $ac_compiler_gnu = yes && echo yes`
3209ac_test_CFLAGS=${CFLAGS+set}
3210ac_save_CFLAGS=$CFLAGS
3211{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3212echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3213if test "${ac_cv_prog_cc_g+set}" = set; then
3214  echo $ECHO_N "(cached) $ECHO_C" >&6
3215else
3216  ac_save_c_werror_flag=$ac_c_werror_flag
3217   ac_c_werror_flag=yes
3218   ac_cv_prog_cc_g=no
3219   CFLAGS="-g"
3220   cat >conftest.$ac_ext <<_ACEOF
3221/* confdefs.h.  */
3222_ACEOF
3223cat confdefs.h >>conftest.$ac_ext
3224cat >>conftest.$ac_ext <<_ACEOF
3225/* end confdefs.h.  */
3226
3227int
3228main ()
3229{
3230
3231  ;
3232  return 0;
3233}
3234_ACEOF
3235rm -f conftest.$ac_objext
3236if { (ac_try="$ac_compile"
3237case "(($ac_try" in
3238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239  *) ac_try_echo=$ac_try;;
3240esac
3241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3242  (eval "$ac_compile") 2>conftest.er1
3243  ac_status=$?
3244  grep -v '^ *+' conftest.er1 >conftest.err
3245  rm -f conftest.er1
3246  cat conftest.err >&5
3247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248  (exit $ac_status); } && {
3249	 test -z "$ac_c_werror_flag" ||
3250	 test ! -s conftest.err
3251       } && test -s conftest.$ac_objext; then
3252  ac_cv_prog_cc_g=yes
3253else
3254  echo "$as_me: failed program was:" >&5
3255sed 's/^/| /' conftest.$ac_ext >&5
3256
3257	CFLAGS=""
3258      cat >conftest.$ac_ext <<_ACEOF
3259/* confdefs.h.  */
3260_ACEOF
3261cat confdefs.h >>conftest.$ac_ext
3262cat >>conftest.$ac_ext <<_ACEOF
3263/* end confdefs.h.  */
3264
3265int
3266main ()
3267{
3268
3269  ;
3270  return 0;
3271}
3272_ACEOF
3273rm -f conftest.$ac_objext
3274if { (ac_try="$ac_compile"
3275case "(($ac_try" in
3276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277  *) ac_try_echo=$ac_try;;
3278esac
3279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280  (eval "$ac_compile") 2>conftest.er1
3281  ac_status=$?
3282  grep -v '^ *+' conftest.er1 >conftest.err
3283  rm -f conftest.er1
3284  cat conftest.err >&5
3285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286  (exit $ac_status); } && {
3287	 test -z "$ac_c_werror_flag" ||
3288	 test ! -s conftest.err
3289       } && test -s conftest.$ac_objext; then
3290  :
3291else
3292  echo "$as_me: failed program was:" >&5
3293sed 's/^/| /' conftest.$ac_ext >&5
3294
3295	ac_c_werror_flag=$ac_save_c_werror_flag
3296	 CFLAGS="-g"
3297	 cat >conftest.$ac_ext <<_ACEOF
3298/* confdefs.h.  */
3299_ACEOF
3300cat confdefs.h >>conftest.$ac_ext
3301cat >>conftest.$ac_ext <<_ACEOF
3302/* end confdefs.h.  */
3303
3304int
3305main ()
3306{
3307
3308  ;
3309  return 0;
3310}
3311_ACEOF
3312rm -f conftest.$ac_objext
3313if { (ac_try="$ac_compile"
3314case "(($ac_try" in
3315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316  *) ac_try_echo=$ac_try;;
3317esac
3318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319  (eval "$ac_compile") 2>conftest.er1
3320  ac_status=$?
3321  grep -v '^ *+' conftest.er1 >conftest.err
3322  rm -f conftest.er1
3323  cat conftest.err >&5
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); } && {
3326	 test -z "$ac_c_werror_flag" ||
3327	 test ! -s conftest.err
3328       } && test -s conftest.$ac_objext; then
3329  ac_cv_prog_cc_g=yes
3330else
3331  echo "$as_me: failed program was:" >&5
3332sed 's/^/| /' conftest.$ac_ext >&5
3333
3334
3335fi
3336
3337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338fi
3339
3340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341fi
3342
3343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344   ac_c_werror_flag=$ac_save_c_werror_flag
3345fi
3346{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3347echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3348if test "$ac_test_CFLAGS" = set; then
3349  CFLAGS=$ac_save_CFLAGS
3350elif test $ac_cv_prog_cc_g = yes; then
3351  if test "$GCC" = yes; then
3352    CFLAGS="-g -O2"
3353  else
3354    CFLAGS="-g"
3355  fi
3356else
3357  if test "$GCC" = yes; then
3358    CFLAGS="-O2"
3359  else
3360    CFLAGS=
3361  fi
3362fi
3363{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3364echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3365if test "${ac_cv_prog_cc_c89+set}" = set; then
3366  echo $ECHO_N "(cached) $ECHO_C" >&6
3367else
3368  ac_cv_prog_cc_c89=no
3369ac_save_CC=$CC
3370cat >conftest.$ac_ext <<_ACEOF
3371/* confdefs.h.  */
3372_ACEOF
3373cat confdefs.h >>conftest.$ac_ext
3374cat >>conftest.$ac_ext <<_ACEOF
3375/* end confdefs.h.  */
3376#include <stdarg.h>
3377#include <stdio.h>
3378#include <sys/types.h>
3379#include <sys/stat.h>
3380/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3381struct buf { int x; };
3382FILE * (*rcsopen) (struct buf *, struct stat *, int);
3383static char *e (p, i)
3384     char **p;
3385     int i;
3386{
3387  return p[i];
3388}
3389static char *f (char * (*g) (char **, int), char **p, ...)
3390{
3391  char *s;
3392  va_list v;
3393  va_start (v,p);
3394  s = g (p, va_arg (v,int));
3395  va_end (v);
3396  return s;
3397}
3398
3399/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3400   function prototypes and stuff, but not '\xHH' hex character constants.
3401   These don't provoke an error unfortunately, instead are silently treated
3402   as 'x'.  The following induces an error, until -std is added to get
3403   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3404   array size at least.  It's necessary to write '\x00'==0 to get something
3405   that's true only with -std.  */
3406int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3407
3408/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3409   inside strings and character constants.  */
3410#define FOO(x) 'x'
3411int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3412
3413int test (int i, double x);
3414struct s1 {int (*f) (int a);};
3415struct s2 {int (*f) (double a);};
3416int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3417int argc;
3418char **argv;
3419int
3420main ()
3421{
3422return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3423  ;
3424  return 0;
3425}
3426_ACEOF
3427for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3428	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3429do
3430  CC="$ac_save_CC $ac_arg"
3431  rm -f conftest.$ac_objext
3432if { (ac_try="$ac_compile"
3433case "(($ac_try" in
3434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435  *) ac_try_echo=$ac_try;;
3436esac
3437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438  (eval "$ac_compile") 2>conftest.er1
3439  ac_status=$?
3440  grep -v '^ *+' conftest.er1 >conftest.err
3441  rm -f conftest.er1
3442  cat conftest.err >&5
3443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444  (exit $ac_status); } && {
3445	 test -z "$ac_c_werror_flag" ||
3446	 test ! -s conftest.err
3447       } && test -s conftest.$ac_objext; then
3448  ac_cv_prog_cc_c89=$ac_arg
3449else
3450  echo "$as_me: failed program was:" >&5
3451sed 's/^/| /' conftest.$ac_ext >&5
3452
3453
3454fi
3455
3456rm -f core conftest.err conftest.$ac_objext
3457  test "x$ac_cv_prog_cc_c89" != "xno" && break
3458done
3459rm -f conftest.$ac_ext
3460CC=$ac_save_CC
3461
3462fi
3463# AC_CACHE_VAL
3464case "x$ac_cv_prog_cc_c89" in
3465  x)
3466    { echo "$as_me:$LINENO: result: none needed" >&5
3467echo "${ECHO_T}none needed" >&6; } ;;
3468  xno)
3469    { echo "$as_me:$LINENO: result: unsupported" >&5
3470echo "${ECHO_T}unsupported" >&6; } ;;
3471  *)
3472    CC="$CC $ac_cv_prog_cc_c89"
3473    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3474echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3475esac
3476
3477
3478ac_ext=c
3479ac_cpp='$CPP $CPPFLAGS'
3480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483
3484depcc="$CC"   am_compiler_list=
3485
3486{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3487echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3488if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3489  echo $ECHO_N "(cached) $ECHO_C" >&6
3490else
3491  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3492  # We make a subdir and do the tests there.  Otherwise we can end up
3493  # making bogus files that we don't know about and never remove.  For
3494  # instance it was reported that on HP-UX the gcc test will end up
3495  # making a dummy file named `D' -- because `-MD' means `put the output
3496  # in D'.
3497  mkdir conftest.dir
3498  # Copy depcomp to subdir because otherwise we won't find it if we're
3499  # using a relative directory.
3500  cp "$am_depcomp" conftest.dir
3501  cd conftest.dir
3502  # We will build objects and dependencies in a subdirectory because
3503  # it helps to detect inapplicable dependency modes.  For instance
3504  # both Tru64's cc and ICC support -MD to output dependencies as a
3505  # side effect of compilation, but ICC will put the dependencies in
3506  # the current directory while Tru64 will put them in the object
3507  # directory.
3508  mkdir sub
3509
3510  am_cv_CC_dependencies_compiler_type=none
3511  if test "$am_compiler_list" = ""; then
3512     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3513  fi
3514  for depmode in $am_compiler_list; do
3515    # Setup a source with many dependencies, because some compilers
3516    # like to wrap large dependency lists on column 80 (with \), and
3517    # we should not choose a depcomp mode which is confused by this.
3518    #
3519    # We need to recreate these files for each test, as the compiler may
3520    # overwrite some of them when testing with obscure command lines.
3521    # This happens at least with the AIX C compiler.
3522    : > sub/conftest.c
3523    for i in 1 2 3 4 5 6; do
3524      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3525      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3526      # Solaris 8's {/usr,}/bin/sh.
3527      touch sub/conftst$i.h
3528    done
3529    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3530
3531    case $depmode in
3532    nosideeffect)
3533      # after this tag, mechanisms are not by side-effect, so they'll
3534      # only be used when explicitly requested
3535      if test "x$enable_dependency_tracking" = xyes; then
3536	continue
3537      else
3538	break
3539      fi
3540      ;;
3541    none) break ;;
3542    esac
3543    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3544    # mode.  It turns out that the SunPro C++ compiler does not properly
3545    # handle `-M -o', and we need to detect this.
3546    if depmode=$depmode \
3547       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3548       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3549       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3550         >/dev/null 2>conftest.err &&
3551       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3552       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3553       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3554      # icc doesn't choke on unknown options, it will just issue warnings
3555      # or remarks (even with -Werror).  So we grep stderr for any message
3556      # that says an option was ignored or not supported.
3557      # When given -MP, icc 7.0 and 7.1 complain thusly:
3558      #   icc: Command line warning: ignoring option '-M'; no argument required
3559      # The diagnosis changed in icc 8.0:
3560      #   icc: Command line remark: option '-MP' not supported
3561      if (grep 'ignoring option' conftest.err ||
3562          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3563        am_cv_CC_dependencies_compiler_type=$depmode
3564        break
3565      fi
3566    fi
3567  done
3568
3569  cd ..
3570  rm -rf conftest.dir
3571else
3572  am_cv_CC_dependencies_compiler_type=none
3573fi
3574
3575fi
3576{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3577echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3578CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3579
3580
3581
3582if
3583  test "x$enable_dependency_tracking" != xno \
3584  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3585  am__fastdepCC_TRUE=
3586  am__fastdepCC_FALSE='#'
3587else
3588  am__fastdepCC_TRUE='#'
3589  am__fastdepCC_FALSE=
3590fi
3591
3592
3593
3594
3595        { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3596echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3597if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3598  echo $ECHO_N "(cached) $ECHO_C" >&6
3599else
3600  ac_check_lib_save_LIBS=$LIBS
3601LIBS="-lcposix  $LIBS"
3602cat >conftest.$ac_ext <<_ACEOF
3603/* confdefs.h.  */
3604_ACEOF
3605cat confdefs.h >>conftest.$ac_ext
3606cat >>conftest.$ac_ext <<_ACEOF
3607/* end confdefs.h.  */
3608
3609/* Override any GCC internal prototype to avoid an error.
3610   Use char because int might match the return type of a GCC
3611   builtin and then its argument prototype would still apply.  */
3612#ifdef __cplusplus
3613extern "C"
3614#endif
3615char strerror ();
3616int
3617main ()
3618{
3619return strerror ();
3620  ;
3621  return 0;
3622}
3623_ACEOF
3624rm -f conftest.$ac_objext conftest$ac_exeext
3625if { (ac_try="$ac_link"
3626case "(($ac_try" in
3627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628  *) ac_try_echo=$ac_try;;
3629esac
3630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631  (eval "$ac_link") 2>conftest.er1
3632  ac_status=$?
3633  grep -v '^ *+' conftest.er1 >conftest.err
3634  rm -f conftest.er1
3635  cat conftest.err >&5
3636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637  (exit $ac_status); } && {
3638	 test -z "$ac_c_werror_flag" ||
3639	 test ! -s conftest.err
3640       } && test -s conftest$ac_exeext &&
3641       $as_test_x conftest$ac_exeext; then
3642  ac_cv_lib_cposix_strerror=yes
3643else
3644  echo "$as_me: failed program was:" >&5
3645sed 's/^/| /' conftest.$ac_ext >&5
3646
3647	ac_cv_lib_cposix_strerror=no
3648fi
3649
3650rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3651      conftest$ac_exeext conftest.$ac_ext
3652LIBS=$ac_check_lib_save_LIBS
3653fi
3654{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3655echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3656if test $ac_cv_lib_cposix_strerror = yes; then
3657  LIBS="$LIBS -lcposix"
3658fi
3659
3660
3661
3662ac_ext=c
3663ac_cpp='$CPP $CPPFLAGS'
3664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667if test -n "$ac_tool_prefix"; then
3668  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3669set dummy ${ac_tool_prefix}gcc; ac_word=$2
3670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3672if test "${ac_cv_prog_CC+set}" = set; then
3673  echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
3675  if test -n "$CC"; then
3676  ac_cv_prog_CC="$CC" # Let the user override the test.
3677else
3678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679for as_dir in $PATH
3680do
3681  IFS=$as_save_IFS
3682  test -z "$as_dir" && as_dir=.
3683  for ac_exec_ext in '' $ac_executable_extensions; do
3684  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3685    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3686    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3687    break 2
3688  fi
3689done
3690done
3691IFS=$as_save_IFS
3692
3693fi
3694fi
3695CC=$ac_cv_prog_CC
3696if test -n "$CC"; then
3697  { echo "$as_me:$LINENO: result: $CC" >&5
3698echo "${ECHO_T}$CC" >&6; }
3699else
3700  { echo "$as_me:$LINENO: result: no" >&5
3701echo "${ECHO_T}no" >&6; }
3702fi
3703
3704
3705fi
3706if test -z "$ac_cv_prog_CC"; then
3707  ac_ct_CC=$CC
3708  # Extract the first word of "gcc", so it can be a program name with args.
3709set dummy gcc; ac_word=$2
3710{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3712if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3713  echo $ECHO_N "(cached) $ECHO_C" >&6
3714else
3715  if test -n "$ac_ct_CC"; then
3716  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3717else
3718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719for as_dir in $PATH
3720do
3721  IFS=$as_save_IFS
3722  test -z "$as_dir" && as_dir=.
3723  for ac_exec_ext in '' $ac_executable_extensions; do
3724  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3725    ac_cv_prog_ac_ct_CC="gcc"
3726    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3727    break 2
3728  fi
3729done
3730done
3731IFS=$as_save_IFS
3732
3733fi
3734fi
3735ac_ct_CC=$ac_cv_prog_ac_ct_CC
3736if test -n "$ac_ct_CC"; then
3737  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3738echo "${ECHO_T}$ac_ct_CC" >&6; }
3739else
3740  { echo "$as_me:$LINENO: result: no" >&5
3741echo "${ECHO_T}no" >&6; }
3742fi
3743
3744  if test "x$ac_ct_CC" = x; then
3745    CC=""
3746  else
3747    case $cross_compiling:$ac_tool_warned in
3748yes:)
3749{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3750whose name does not start with the host triplet.  If you think this
3751configuration is useful to you, please write to autoconf@gnu.org." >&5
3752echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3753whose name does not start with the host triplet.  If you think this
3754configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3755ac_tool_warned=yes ;;
3756esac
3757    CC=$ac_ct_CC
3758  fi
3759else
3760  CC="$ac_cv_prog_CC"
3761fi
3762
3763if test -z "$CC"; then
3764          if test -n "$ac_tool_prefix"; then
3765    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3766set dummy ${ac_tool_prefix}cc; ac_word=$2
3767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3769if test "${ac_cv_prog_CC+set}" = set; then
3770  echo $ECHO_N "(cached) $ECHO_C" >&6
3771else
3772  if test -n "$CC"; then
3773  ac_cv_prog_CC="$CC" # Let the user override the test.
3774else
3775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776for as_dir in $PATH
3777do
3778  IFS=$as_save_IFS
3779  test -z "$as_dir" && as_dir=.
3780  for ac_exec_ext in '' $ac_executable_extensions; do
3781  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3782    ac_cv_prog_CC="${ac_tool_prefix}cc"
3783    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3784    break 2
3785  fi
3786done
3787done
3788IFS=$as_save_IFS
3789
3790fi
3791fi
3792CC=$ac_cv_prog_CC
3793if test -n "$CC"; then
3794  { echo "$as_me:$LINENO: result: $CC" >&5
3795echo "${ECHO_T}$CC" >&6; }
3796else
3797  { echo "$as_me:$LINENO: result: no" >&5
3798echo "${ECHO_T}no" >&6; }
3799fi
3800
3801
3802  fi
3803fi
3804if test -z "$CC"; then
3805  # Extract the first word of "cc", so it can be a program name with args.
3806set dummy cc; ac_word=$2
3807{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3809if test "${ac_cv_prog_CC+set}" = set; then
3810  echo $ECHO_N "(cached) $ECHO_C" >&6
3811else
3812  if test -n "$CC"; then
3813  ac_cv_prog_CC="$CC" # Let the user override the test.
3814else
3815  ac_prog_rejected=no
3816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817for as_dir in $PATH
3818do
3819  IFS=$as_save_IFS
3820  test -z "$as_dir" && as_dir=.
3821  for ac_exec_ext in '' $ac_executable_extensions; do
3822  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3823    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3824       ac_prog_rejected=yes
3825       continue
3826     fi
3827    ac_cv_prog_CC="cc"
3828    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829    break 2
3830  fi
3831done
3832done
3833IFS=$as_save_IFS
3834
3835if test $ac_prog_rejected = yes; then
3836  # We found a bogon in the path, so make sure we never use it.
3837  set dummy $ac_cv_prog_CC
3838  shift
3839  if test $# != 0; then
3840    # We chose a different compiler from the bogus one.
3841    # However, it has the same basename, so the bogon will be chosen
3842    # first if we set CC to just the basename; use the full file name.
3843    shift
3844    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3845  fi
3846fi
3847fi
3848fi
3849CC=$ac_cv_prog_CC
3850if test -n "$CC"; then
3851  { echo "$as_me:$LINENO: result: $CC" >&5
3852echo "${ECHO_T}$CC" >&6; }
3853else
3854  { echo "$as_me:$LINENO: result: no" >&5
3855echo "${ECHO_T}no" >&6; }
3856fi
3857
3858
3859fi
3860if test -z "$CC"; then
3861  if test -n "$ac_tool_prefix"; then
3862  for ac_prog in cl.exe
3863  do
3864    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3865set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3868if test "${ac_cv_prog_CC+set}" = set; then
3869  echo $ECHO_N "(cached) $ECHO_C" >&6
3870else
3871  if test -n "$CC"; then
3872  ac_cv_prog_CC="$CC" # Let the user override the test.
3873else
3874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875for as_dir in $PATH
3876do
3877  IFS=$as_save_IFS
3878  test -z "$as_dir" && as_dir=.
3879  for ac_exec_ext in '' $ac_executable_extensions; do
3880  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3881    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3882    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3883    break 2
3884  fi
3885done
3886done
3887IFS=$as_save_IFS
3888
3889fi
3890fi
3891CC=$ac_cv_prog_CC
3892if test -n "$CC"; then
3893  { echo "$as_me:$LINENO: result: $CC" >&5
3894echo "${ECHO_T}$CC" >&6; }
3895else
3896  { echo "$as_me:$LINENO: result: no" >&5
3897echo "${ECHO_T}no" >&6; }
3898fi
3899
3900
3901    test -n "$CC" && break
3902  done
3903fi
3904if test -z "$CC"; then
3905  ac_ct_CC=$CC
3906  for ac_prog in cl.exe
3907do
3908  # Extract the first word of "$ac_prog", so it can be a program name with args.
3909set dummy $ac_prog; ac_word=$2
3910{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3912if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3913  echo $ECHO_N "(cached) $ECHO_C" >&6
3914else
3915  if test -n "$ac_ct_CC"; then
3916  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3917else
3918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919for as_dir in $PATH
3920do
3921  IFS=$as_save_IFS
3922  test -z "$as_dir" && as_dir=.
3923  for ac_exec_ext in '' $ac_executable_extensions; do
3924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3925    ac_cv_prog_ac_ct_CC="$ac_prog"
3926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3927    break 2
3928  fi
3929done
3930done
3931IFS=$as_save_IFS
3932
3933fi
3934fi
3935ac_ct_CC=$ac_cv_prog_ac_ct_CC
3936if test -n "$ac_ct_CC"; then
3937  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3938echo "${ECHO_T}$ac_ct_CC" >&6; }
3939else
3940  { echo "$as_me:$LINENO: result: no" >&5
3941echo "${ECHO_T}no" >&6; }
3942fi
3943
3944
3945  test -n "$ac_ct_CC" && break
3946done
3947
3948  if test "x$ac_ct_CC" = x; then
3949    CC=""
3950  else
3951    case $cross_compiling:$ac_tool_warned in
3952yes:)
3953{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3954whose name does not start with the host triplet.  If you think this
3955configuration is useful to you, please write to autoconf@gnu.org." >&5
3956echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3957whose name does not start with the host triplet.  If you think this
3958configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3959ac_tool_warned=yes ;;
3960esac
3961    CC=$ac_ct_CC
3962  fi
3963fi
3964
3965fi
3966
3967
3968test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3969See \`config.log' for more details." >&5
3970echo "$as_me: error: no acceptable C compiler found in \$PATH
3971See \`config.log' for more details." >&2;}
3972   { (exit 1); exit 1; }; }
3973
3974# Provide some information about the compiler.
3975echo "$as_me:$LINENO: checking for C compiler version" >&5
3976ac_compiler=`set X $ac_compile; echo $2`
3977{ (ac_try="$ac_compiler --version >&5"
3978case "(($ac_try" in
3979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980  *) ac_try_echo=$ac_try;;
3981esac
3982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3983  (eval "$ac_compiler --version >&5") 2>&5
3984  ac_status=$?
3985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986  (exit $ac_status); }
3987{ (ac_try="$ac_compiler -v >&5"
3988case "(($ac_try" in
3989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990  *) ac_try_echo=$ac_try;;
3991esac
3992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3993  (eval "$ac_compiler -v >&5") 2>&5
3994  ac_status=$?
3995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996  (exit $ac_status); }
3997{ (ac_try="$ac_compiler -V >&5"
3998case "(($ac_try" in
3999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000  *) ac_try_echo=$ac_try;;
4001esac
4002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003  (eval "$ac_compiler -V >&5") 2>&5
4004  ac_status=$?
4005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006  (exit $ac_status); }
4007
4008{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4009echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4010if test "${ac_cv_c_compiler_gnu+set}" = set; then
4011  echo $ECHO_N "(cached) $ECHO_C" >&6
4012else
4013  cat >conftest.$ac_ext <<_ACEOF
4014/* confdefs.h.  */
4015_ACEOF
4016cat confdefs.h >>conftest.$ac_ext
4017cat >>conftest.$ac_ext <<_ACEOF
4018/* end confdefs.h.  */
4019
4020int
4021main ()
4022{
4023#ifndef __GNUC__
4024       choke me
4025#endif
4026
4027  ;
4028  return 0;
4029}
4030_ACEOF
4031rm -f conftest.$ac_objext
4032if { (ac_try="$ac_compile"
4033case "(($ac_try" in
4034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035  *) ac_try_echo=$ac_try;;
4036esac
4037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038  (eval "$ac_compile") 2>conftest.er1
4039  ac_status=$?
4040  grep -v '^ *+' conftest.er1 >conftest.err
4041  rm -f conftest.er1
4042  cat conftest.err >&5
4043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044  (exit $ac_status); } && {
4045	 test -z "$ac_c_werror_flag" ||
4046	 test ! -s conftest.err
4047       } && test -s conftest.$ac_objext; then
4048  ac_compiler_gnu=yes
4049else
4050  echo "$as_me: failed program was:" >&5
4051sed 's/^/| /' conftest.$ac_ext >&5
4052
4053	ac_compiler_gnu=no
4054fi
4055
4056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057ac_cv_c_compiler_gnu=$ac_compiler_gnu
4058
4059fi
4060{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4061echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4062GCC=`test $ac_compiler_gnu = yes && echo yes`
4063ac_test_CFLAGS=${CFLAGS+set}
4064ac_save_CFLAGS=$CFLAGS
4065{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4066echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4067if test "${ac_cv_prog_cc_g+set}" = set; then
4068  echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
4070  ac_save_c_werror_flag=$ac_c_werror_flag
4071   ac_c_werror_flag=yes
4072   ac_cv_prog_cc_g=no
4073   CFLAGS="-g"
4074   cat >conftest.$ac_ext <<_ACEOF
4075/* confdefs.h.  */
4076_ACEOF
4077cat confdefs.h >>conftest.$ac_ext
4078cat >>conftest.$ac_ext <<_ACEOF
4079/* end confdefs.h.  */
4080
4081int
4082main ()
4083{
4084
4085  ;
4086  return 0;
4087}
4088_ACEOF
4089rm -f conftest.$ac_objext
4090if { (ac_try="$ac_compile"
4091case "(($ac_try" in
4092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093  *) ac_try_echo=$ac_try;;
4094esac
4095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096  (eval "$ac_compile") 2>conftest.er1
4097  ac_status=$?
4098  grep -v '^ *+' conftest.er1 >conftest.err
4099  rm -f conftest.er1
4100  cat conftest.err >&5
4101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102  (exit $ac_status); } && {
4103	 test -z "$ac_c_werror_flag" ||
4104	 test ! -s conftest.err
4105       } && test -s conftest.$ac_objext; then
4106  ac_cv_prog_cc_g=yes
4107else
4108  echo "$as_me: failed program was:" >&5
4109sed 's/^/| /' conftest.$ac_ext >&5
4110
4111	CFLAGS=""
4112      cat >conftest.$ac_ext <<_ACEOF
4113/* confdefs.h.  */
4114_ACEOF
4115cat confdefs.h >>conftest.$ac_ext
4116cat >>conftest.$ac_ext <<_ACEOF
4117/* end confdefs.h.  */
4118
4119int
4120main ()
4121{
4122
4123  ;
4124  return 0;
4125}
4126_ACEOF
4127rm -f conftest.$ac_objext
4128if { (ac_try="$ac_compile"
4129case "(($ac_try" in
4130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131  *) ac_try_echo=$ac_try;;
4132esac
4133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134  (eval "$ac_compile") 2>conftest.er1
4135  ac_status=$?
4136  grep -v '^ *+' conftest.er1 >conftest.err
4137  rm -f conftest.er1
4138  cat conftest.err >&5
4139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140  (exit $ac_status); } && {
4141	 test -z "$ac_c_werror_flag" ||
4142	 test ! -s conftest.err
4143       } && test -s conftest.$ac_objext; then
4144  :
4145else
4146  echo "$as_me: failed program was:" >&5
4147sed 's/^/| /' conftest.$ac_ext >&5
4148
4149	ac_c_werror_flag=$ac_save_c_werror_flag
4150	 CFLAGS="-g"
4151	 cat >conftest.$ac_ext <<_ACEOF
4152/* confdefs.h.  */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
4156/* end confdefs.h.  */
4157
4158int
4159main ()
4160{
4161
4162  ;
4163  return 0;
4164}
4165_ACEOF
4166rm -f conftest.$ac_objext
4167if { (ac_try="$ac_compile"
4168case "(($ac_try" in
4169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170  *) ac_try_echo=$ac_try;;
4171esac
4172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173  (eval "$ac_compile") 2>conftest.er1
4174  ac_status=$?
4175  grep -v '^ *+' conftest.er1 >conftest.err
4176  rm -f conftest.er1
4177  cat conftest.err >&5
4178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179  (exit $ac_status); } && {
4180	 test -z "$ac_c_werror_flag" ||
4181	 test ! -s conftest.err
4182       } && test -s conftest.$ac_objext; then
4183  ac_cv_prog_cc_g=yes
4184else
4185  echo "$as_me: failed program was:" >&5
4186sed 's/^/| /' conftest.$ac_ext >&5
4187
4188
4189fi
4190
4191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192fi
4193
4194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195fi
4196
4197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198   ac_c_werror_flag=$ac_save_c_werror_flag
4199fi
4200{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4201echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4202if test "$ac_test_CFLAGS" = set; then
4203  CFLAGS=$ac_save_CFLAGS
4204elif test $ac_cv_prog_cc_g = yes; then
4205  if test "$GCC" = yes; then
4206    CFLAGS="-g -O2"
4207  else
4208    CFLAGS="-g"
4209  fi
4210else
4211  if test "$GCC" = yes; then
4212    CFLAGS="-O2"
4213  else
4214    CFLAGS=
4215  fi
4216fi
4217{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4218echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4219if test "${ac_cv_prog_cc_c89+set}" = set; then
4220  echo $ECHO_N "(cached) $ECHO_C" >&6
4221else
4222  ac_cv_prog_cc_c89=no
4223ac_save_CC=$CC
4224cat >conftest.$ac_ext <<_ACEOF
4225/* confdefs.h.  */
4226_ACEOF
4227cat confdefs.h >>conftest.$ac_ext
4228cat >>conftest.$ac_ext <<_ACEOF
4229/* end confdefs.h.  */
4230#include <stdarg.h>
4231#include <stdio.h>
4232#include <sys/types.h>
4233#include <sys/stat.h>
4234/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4235struct buf { int x; };
4236FILE * (*rcsopen) (struct buf *, struct stat *, int);
4237static char *e (p, i)
4238     char **p;
4239     int i;
4240{
4241  return p[i];
4242}
4243static char *f (char * (*g) (char **, int), char **p, ...)
4244{
4245  char *s;
4246  va_list v;
4247  va_start (v,p);
4248  s = g (p, va_arg (v,int));
4249  va_end (v);
4250  return s;
4251}
4252
4253/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4254   function prototypes and stuff, but not '\xHH' hex character constants.
4255   These don't provoke an error unfortunately, instead are silently treated
4256   as 'x'.  The following induces an error, until -std is added to get
4257   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4258   array size at least.  It's necessary to write '\x00'==0 to get something
4259   that's true only with -std.  */
4260int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4261
4262/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4263   inside strings and character constants.  */
4264#define FOO(x) 'x'
4265int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4266
4267int test (int i, double x);
4268struct s1 {int (*f) (int a);};
4269struct s2 {int (*f) (double a);};
4270int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4271int argc;
4272char **argv;
4273int
4274main ()
4275{
4276return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4277  ;
4278  return 0;
4279}
4280_ACEOF
4281for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4282	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4283do
4284  CC="$ac_save_CC $ac_arg"
4285  rm -f conftest.$ac_objext
4286if { (ac_try="$ac_compile"
4287case "(($ac_try" in
4288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289  *) ac_try_echo=$ac_try;;
4290esac
4291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292  (eval "$ac_compile") 2>conftest.er1
4293  ac_status=$?
4294  grep -v '^ *+' conftest.er1 >conftest.err
4295  rm -f conftest.er1
4296  cat conftest.err >&5
4297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298  (exit $ac_status); } && {
4299	 test -z "$ac_c_werror_flag" ||
4300	 test ! -s conftest.err
4301       } && test -s conftest.$ac_objext; then
4302  ac_cv_prog_cc_c89=$ac_arg
4303else
4304  echo "$as_me: failed program was:" >&5
4305sed 's/^/| /' conftest.$ac_ext >&5
4306
4307
4308fi
4309
4310rm -f core conftest.err conftest.$ac_objext
4311  test "x$ac_cv_prog_cc_c89" != "xno" && break
4312done
4313rm -f conftest.$ac_ext
4314CC=$ac_save_CC
4315
4316fi
4317# AC_CACHE_VAL
4318case "x$ac_cv_prog_cc_c89" in
4319  x)
4320    { echo "$as_me:$LINENO: result: none needed" >&5
4321echo "${ECHO_T}none needed" >&6; } ;;
4322  xno)
4323    { echo "$as_me:$LINENO: result: unsupported" >&5
4324echo "${ECHO_T}unsupported" >&6; } ;;
4325  *)
4326    CC="$CC $ac_cv_prog_cc_c89"
4327    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4328echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4329esac
4330
4331
4332ac_ext=c
4333ac_cpp='$CPP $CPPFLAGS'
4334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337
4338depcc="$CC"   am_compiler_list=
4339
4340{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4341echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4342if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4343  echo $ECHO_N "(cached) $ECHO_C" >&6
4344else
4345  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4346  # We make a subdir and do the tests there.  Otherwise we can end up
4347  # making bogus files that we don't know about and never remove.  For
4348  # instance it was reported that on HP-UX the gcc test will end up
4349  # making a dummy file named `D' -- because `-MD' means `put the output
4350  # in D'.
4351  mkdir conftest.dir
4352  # Copy depcomp to subdir because otherwise we won't find it if we're
4353  # using a relative directory.
4354  cp "$am_depcomp" conftest.dir
4355  cd conftest.dir
4356  # We will build objects and dependencies in a subdirectory because
4357  # it helps to detect inapplicable dependency modes.  For instance
4358  # both Tru64's cc and ICC support -MD to output dependencies as a
4359  # side effect of compilation, but ICC will put the dependencies in
4360  # the current directory while Tru64 will put them in the object
4361  # directory.
4362  mkdir sub
4363
4364  am_cv_CC_dependencies_compiler_type=none
4365  if test "$am_compiler_list" = ""; then
4366     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4367  fi
4368  for depmode in $am_compiler_list; do
4369    # Setup a source with many dependencies, because some compilers
4370    # like to wrap large dependency lists on column 80 (with \), and
4371    # we should not choose a depcomp mode which is confused by this.
4372    #
4373    # We need to recreate these files for each test, as the compiler may
4374    # overwrite some of them when testing with obscure command lines.
4375    # This happens at least with the AIX C compiler.
4376    : > sub/conftest.c
4377    for i in 1 2 3 4 5 6; do
4378      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4379      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4380      # Solaris 8's {/usr,}/bin/sh.
4381      touch sub/conftst$i.h
4382    done
4383    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4384
4385    case $depmode in
4386    nosideeffect)
4387      # after this tag, mechanisms are not by side-effect, so they'll
4388      # only be used when explicitly requested
4389      if test "x$enable_dependency_tracking" = xyes; then
4390	continue
4391      else
4392	break
4393      fi
4394      ;;
4395    none) break ;;
4396    esac
4397    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4398    # mode.  It turns out that the SunPro C++ compiler does not properly
4399    # handle `-M -o', and we need to detect this.
4400    if depmode=$depmode \
4401       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4402       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4403       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4404         >/dev/null 2>conftest.err &&
4405       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4406       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4407       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4408      # icc doesn't choke on unknown options, it will just issue warnings
4409      # or remarks (even with -Werror).  So we grep stderr for any message
4410      # that says an option was ignored or not supported.
4411      # When given -MP, icc 7.0 and 7.1 complain thusly:
4412      #   icc: Command line warning: ignoring option '-M'; no argument required
4413      # The diagnosis changed in icc 8.0:
4414      #   icc: Command line remark: option '-MP' not supported
4415      if (grep 'ignoring option' conftest.err ||
4416          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4417        am_cv_CC_dependencies_compiler_type=$depmode
4418        break
4419      fi
4420    fi
4421  done
4422
4423  cd ..
4424  rm -rf conftest.dir
4425else
4426  am_cv_CC_dependencies_compiler_type=none
4427fi
4428
4429fi
4430{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4431echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4432CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4433
4434
4435
4436if
4437  test "x$enable_dependency_tracking" != xno \
4438  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4439  am__fastdepCC_TRUE=
4440  am__fastdepCC_FALSE='#'
4441else
4442  am__fastdepCC_TRUE='#'
4443  am__fastdepCC_FALSE=
4444fi
4445
4446
4447ac_ext=c
4448ac_cpp='$CPP $CPPFLAGS'
4449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451ac_compiler_gnu=$ac_cv_c_compiler_gnu
4452if test -n "$ac_tool_prefix"; then
4453  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4454set dummy ${ac_tool_prefix}gcc; ac_word=$2
4455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4457if test "${ac_cv_prog_CC+set}" = set; then
4458  echo $ECHO_N "(cached) $ECHO_C" >&6
4459else
4460  if test -n "$CC"; then
4461  ac_cv_prog_CC="$CC" # Let the user override the test.
4462else
4463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464for as_dir in $PATH
4465do
4466  IFS=$as_save_IFS
4467  test -z "$as_dir" && as_dir=.
4468  for ac_exec_ext in '' $ac_executable_extensions; do
4469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4470    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4471    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472    break 2
4473  fi
4474done
4475done
4476IFS=$as_save_IFS
4477
4478fi
4479fi
4480CC=$ac_cv_prog_CC
4481if test -n "$CC"; then
4482  { echo "$as_me:$LINENO: result: $CC" >&5
4483echo "${ECHO_T}$CC" >&6; }
4484else
4485  { echo "$as_me:$LINENO: result: no" >&5
4486echo "${ECHO_T}no" >&6; }
4487fi
4488
4489
4490fi
4491if test -z "$ac_cv_prog_CC"; then
4492  ac_ct_CC=$CC
4493  # Extract the first word of "gcc", so it can be a program name with args.
4494set dummy gcc; ac_word=$2
4495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4497if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4498  echo $ECHO_N "(cached) $ECHO_C" >&6
4499else
4500  if test -n "$ac_ct_CC"; then
4501  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4502else
4503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504for as_dir in $PATH
4505do
4506  IFS=$as_save_IFS
4507  test -z "$as_dir" && as_dir=.
4508  for ac_exec_ext in '' $ac_executable_extensions; do
4509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510    ac_cv_prog_ac_ct_CC="gcc"
4511    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512    break 2
4513  fi
4514done
4515done
4516IFS=$as_save_IFS
4517
4518fi
4519fi
4520ac_ct_CC=$ac_cv_prog_ac_ct_CC
4521if test -n "$ac_ct_CC"; then
4522  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4523echo "${ECHO_T}$ac_ct_CC" >&6; }
4524else
4525  { echo "$as_me:$LINENO: result: no" >&5
4526echo "${ECHO_T}no" >&6; }
4527fi
4528
4529  if test "x$ac_ct_CC" = x; then
4530    CC=""
4531  else
4532    case $cross_compiling:$ac_tool_warned in
4533yes:)
4534{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4535whose name does not start with the host triplet.  If you think this
4536configuration is useful to you, please write to autoconf@gnu.org." >&5
4537echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4538whose name does not start with the host triplet.  If you think this
4539configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4540ac_tool_warned=yes ;;
4541esac
4542    CC=$ac_ct_CC
4543  fi
4544else
4545  CC="$ac_cv_prog_CC"
4546fi
4547
4548if test -z "$CC"; then
4549          if test -n "$ac_tool_prefix"; then
4550    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4551set dummy ${ac_tool_prefix}cc; ac_word=$2
4552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554if test "${ac_cv_prog_CC+set}" = set; then
4555  echo $ECHO_N "(cached) $ECHO_C" >&6
4556else
4557  if test -n "$CC"; then
4558  ac_cv_prog_CC="$CC" # Let the user override the test.
4559else
4560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561for as_dir in $PATH
4562do
4563  IFS=$as_save_IFS
4564  test -z "$as_dir" && as_dir=.
4565  for ac_exec_ext in '' $ac_executable_extensions; do
4566  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567    ac_cv_prog_CC="${ac_tool_prefix}cc"
4568    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569    break 2
4570  fi
4571done
4572done
4573IFS=$as_save_IFS
4574
4575fi
4576fi
4577CC=$ac_cv_prog_CC
4578if test -n "$CC"; then
4579  { echo "$as_me:$LINENO: result: $CC" >&5
4580echo "${ECHO_T}$CC" >&6; }
4581else
4582  { echo "$as_me:$LINENO: result: no" >&5
4583echo "${ECHO_T}no" >&6; }
4584fi
4585
4586
4587  fi
4588fi
4589if test -z "$CC"; then
4590  # Extract the first word of "cc", so it can be a program name with args.
4591set dummy cc; ac_word=$2
4592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594if test "${ac_cv_prog_CC+set}" = set; then
4595  echo $ECHO_N "(cached) $ECHO_C" >&6
4596else
4597  if test -n "$CC"; then
4598  ac_cv_prog_CC="$CC" # Let the user override the test.
4599else
4600  ac_prog_rejected=no
4601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602for as_dir in $PATH
4603do
4604  IFS=$as_save_IFS
4605  test -z "$as_dir" && as_dir=.
4606  for ac_exec_ext in '' $ac_executable_extensions; do
4607  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4608    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4609       ac_prog_rejected=yes
4610       continue
4611     fi
4612    ac_cv_prog_CC="cc"
4613    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614    break 2
4615  fi
4616done
4617done
4618IFS=$as_save_IFS
4619
4620if test $ac_prog_rejected = yes; then
4621  # We found a bogon in the path, so make sure we never use it.
4622  set dummy $ac_cv_prog_CC
4623  shift
4624  if test $# != 0; then
4625    # We chose a different compiler from the bogus one.
4626    # However, it has the same basename, so the bogon will be chosen
4627    # first if we set CC to just the basename; use the full file name.
4628    shift
4629    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4630  fi
4631fi
4632fi
4633fi
4634CC=$ac_cv_prog_CC
4635if test -n "$CC"; then
4636  { echo "$as_me:$LINENO: result: $CC" >&5
4637echo "${ECHO_T}$CC" >&6; }
4638else
4639  { echo "$as_me:$LINENO: result: no" >&5
4640echo "${ECHO_T}no" >&6; }
4641fi
4642
4643
4644fi
4645if test -z "$CC"; then
4646  if test -n "$ac_tool_prefix"; then
4647  for ac_prog in cl.exe
4648  do
4649    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4650set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653if test "${ac_cv_prog_CC+set}" = set; then
4654  echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656  if test -n "$CC"; then
4657  ac_cv_prog_CC="$CC" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662  IFS=$as_save_IFS
4663  test -z "$as_dir" && as_dir=.
4664  for ac_exec_ext in '' $ac_executable_extensions; do
4665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4666    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668    break 2
4669  fi
4670done
4671done
4672IFS=$as_save_IFS
4673
4674fi
4675fi
4676CC=$ac_cv_prog_CC
4677if test -n "$CC"; then
4678  { echo "$as_me:$LINENO: result: $CC" >&5
4679echo "${ECHO_T}$CC" >&6; }
4680else
4681  { echo "$as_me:$LINENO: result: no" >&5
4682echo "${ECHO_T}no" >&6; }
4683fi
4684
4685
4686    test -n "$CC" && break
4687  done
4688fi
4689if test -z "$CC"; then
4690  ac_ct_CC=$CC
4691  for ac_prog in cl.exe
4692do
4693  # Extract the first word of "$ac_prog", so it can be a program name with args.
4694set dummy $ac_prog; ac_word=$2
4695{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4698  echo $ECHO_N "(cached) $ECHO_C" >&6
4699else
4700  if test -n "$ac_ct_CC"; then
4701  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4702else
4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH
4705do
4706  IFS=$as_save_IFS
4707  test -z "$as_dir" && as_dir=.
4708  for ac_exec_ext in '' $ac_executable_extensions; do
4709  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710    ac_cv_prog_ac_ct_CC="$ac_prog"
4711    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712    break 2
4713  fi
4714done
4715done
4716IFS=$as_save_IFS
4717
4718fi
4719fi
4720ac_ct_CC=$ac_cv_prog_ac_ct_CC
4721if test -n "$ac_ct_CC"; then
4722  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4723echo "${ECHO_T}$ac_ct_CC" >&6; }
4724else
4725  { echo "$as_me:$LINENO: result: no" >&5
4726echo "${ECHO_T}no" >&6; }
4727fi
4728
4729
4730  test -n "$ac_ct_CC" && break
4731done
4732
4733  if test "x$ac_ct_CC" = x; then
4734    CC=""
4735  else
4736    case $cross_compiling:$ac_tool_warned in
4737yes:)
4738{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4739whose name does not start with the host triplet.  If you think this
4740configuration is useful to you, please write to autoconf@gnu.org." >&5
4741echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4742whose name does not start with the host triplet.  If you think this
4743configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4744ac_tool_warned=yes ;;
4745esac
4746    CC=$ac_ct_CC
4747  fi
4748fi
4749
4750fi
4751
4752
4753test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4754See \`config.log' for more details." >&5
4755echo "$as_me: error: no acceptable C compiler found in \$PATH
4756See \`config.log' for more details." >&2;}
4757   { (exit 1); exit 1; }; }
4758
4759# Provide some information about the compiler.
4760echo "$as_me:$LINENO: checking for C compiler version" >&5
4761ac_compiler=`set X $ac_compile; echo $2`
4762{ (ac_try="$ac_compiler --version >&5"
4763case "(($ac_try" in
4764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765  *) ac_try_echo=$ac_try;;
4766esac
4767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4768  (eval "$ac_compiler --version >&5") 2>&5
4769  ac_status=$?
4770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771  (exit $ac_status); }
4772{ (ac_try="$ac_compiler -v >&5"
4773case "(($ac_try" in
4774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775  *) ac_try_echo=$ac_try;;
4776esac
4777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4778  (eval "$ac_compiler -v >&5") 2>&5
4779  ac_status=$?
4780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781  (exit $ac_status); }
4782{ (ac_try="$ac_compiler -V >&5"
4783case "(($ac_try" in
4784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785  *) ac_try_echo=$ac_try;;
4786esac
4787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4788  (eval "$ac_compiler -V >&5") 2>&5
4789  ac_status=$?
4790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791  (exit $ac_status); }
4792
4793{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4794echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4795if test "${ac_cv_c_compiler_gnu+set}" = set; then
4796  echo $ECHO_N "(cached) $ECHO_C" >&6
4797else
4798  cat >conftest.$ac_ext <<_ACEOF
4799/* confdefs.h.  */
4800_ACEOF
4801cat confdefs.h >>conftest.$ac_ext
4802cat >>conftest.$ac_ext <<_ACEOF
4803/* end confdefs.h.  */
4804
4805int
4806main ()
4807{
4808#ifndef __GNUC__
4809       choke me
4810#endif
4811
4812  ;
4813  return 0;
4814}
4815_ACEOF
4816rm -f conftest.$ac_objext
4817if { (ac_try="$ac_compile"
4818case "(($ac_try" in
4819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820  *) ac_try_echo=$ac_try;;
4821esac
4822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823  (eval "$ac_compile") 2>conftest.er1
4824  ac_status=$?
4825  grep -v '^ *+' conftest.er1 >conftest.err
4826  rm -f conftest.er1
4827  cat conftest.err >&5
4828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829  (exit $ac_status); } && {
4830	 test -z "$ac_c_werror_flag" ||
4831	 test ! -s conftest.err
4832       } && test -s conftest.$ac_objext; then
4833  ac_compiler_gnu=yes
4834else
4835  echo "$as_me: failed program was:" >&5
4836sed 's/^/| /' conftest.$ac_ext >&5
4837
4838	ac_compiler_gnu=no
4839fi
4840
4841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842ac_cv_c_compiler_gnu=$ac_compiler_gnu
4843
4844fi
4845{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4846echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4847GCC=`test $ac_compiler_gnu = yes && echo yes`
4848ac_test_CFLAGS=${CFLAGS+set}
4849ac_save_CFLAGS=$CFLAGS
4850{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4851echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4852if test "${ac_cv_prog_cc_g+set}" = set; then
4853  echo $ECHO_N "(cached) $ECHO_C" >&6
4854else
4855  ac_save_c_werror_flag=$ac_c_werror_flag
4856   ac_c_werror_flag=yes
4857   ac_cv_prog_cc_g=no
4858   CFLAGS="-g"
4859   cat >conftest.$ac_ext <<_ACEOF
4860/* confdefs.h.  */
4861_ACEOF
4862cat confdefs.h >>conftest.$ac_ext
4863cat >>conftest.$ac_ext <<_ACEOF
4864/* end confdefs.h.  */
4865
4866int
4867main ()
4868{
4869
4870  ;
4871  return 0;
4872}
4873_ACEOF
4874rm -f conftest.$ac_objext
4875if { (ac_try="$ac_compile"
4876case "(($ac_try" in
4877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878  *) ac_try_echo=$ac_try;;
4879esac
4880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4881  (eval "$ac_compile") 2>conftest.er1
4882  ac_status=$?
4883  grep -v '^ *+' conftest.er1 >conftest.err
4884  rm -f conftest.er1
4885  cat conftest.err >&5
4886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887  (exit $ac_status); } && {
4888	 test -z "$ac_c_werror_flag" ||
4889	 test ! -s conftest.err
4890       } && test -s conftest.$ac_objext; then
4891  ac_cv_prog_cc_g=yes
4892else
4893  echo "$as_me: failed program was:" >&5
4894sed 's/^/| /' conftest.$ac_ext >&5
4895
4896	CFLAGS=""
4897      cat >conftest.$ac_ext <<_ACEOF
4898/* confdefs.h.  */
4899_ACEOF
4900cat confdefs.h >>conftest.$ac_ext
4901cat >>conftest.$ac_ext <<_ACEOF
4902/* end confdefs.h.  */
4903
4904int
4905main ()
4906{
4907
4908  ;
4909  return 0;
4910}
4911_ACEOF
4912rm -f conftest.$ac_objext
4913if { (ac_try="$ac_compile"
4914case "(($ac_try" in
4915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916  *) ac_try_echo=$ac_try;;
4917esac
4918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4919  (eval "$ac_compile") 2>conftest.er1
4920  ac_status=$?
4921  grep -v '^ *+' conftest.er1 >conftest.err
4922  rm -f conftest.er1
4923  cat conftest.err >&5
4924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925  (exit $ac_status); } && {
4926	 test -z "$ac_c_werror_flag" ||
4927	 test ! -s conftest.err
4928       } && test -s conftest.$ac_objext; then
4929  :
4930else
4931  echo "$as_me: failed program was:" >&5
4932sed 's/^/| /' conftest.$ac_ext >&5
4933
4934	ac_c_werror_flag=$ac_save_c_werror_flag
4935	 CFLAGS="-g"
4936	 cat >conftest.$ac_ext <<_ACEOF
4937/* confdefs.h.  */
4938_ACEOF
4939cat confdefs.h >>conftest.$ac_ext
4940cat >>conftest.$ac_ext <<_ACEOF
4941/* end confdefs.h.  */
4942
4943int
4944main ()
4945{
4946
4947  ;
4948  return 0;
4949}
4950_ACEOF
4951rm -f conftest.$ac_objext
4952if { (ac_try="$ac_compile"
4953case "(($ac_try" in
4954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955  *) ac_try_echo=$ac_try;;
4956esac
4957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4958  (eval "$ac_compile") 2>conftest.er1
4959  ac_status=$?
4960  grep -v '^ *+' conftest.er1 >conftest.err
4961  rm -f conftest.er1
4962  cat conftest.err >&5
4963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964  (exit $ac_status); } && {
4965	 test -z "$ac_c_werror_flag" ||
4966	 test ! -s conftest.err
4967       } && test -s conftest.$ac_objext; then
4968  ac_cv_prog_cc_g=yes
4969else
4970  echo "$as_me: failed program was:" >&5
4971sed 's/^/| /' conftest.$ac_ext >&5
4972
4973
4974fi
4975
4976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4977fi
4978
4979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980fi
4981
4982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983   ac_c_werror_flag=$ac_save_c_werror_flag
4984fi
4985{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4986echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4987if test "$ac_test_CFLAGS" = set; then
4988  CFLAGS=$ac_save_CFLAGS
4989elif test $ac_cv_prog_cc_g = yes; then
4990  if test "$GCC" = yes; then
4991    CFLAGS="-g -O2"
4992  else
4993    CFLAGS="-g"
4994  fi
4995else
4996  if test "$GCC" = yes; then
4997    CFLAGS="-O2"
4998  else
4999    CFLAGS=
5000  fi
5001fi
5002{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5003echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5004if test "${ac_cv_prog_cc_c89+set}" = set; then
5005  echo $ECHO_N "(cached) $ECHO_C" >&6
5006else
5007  ac_cv_prog_cc_c89=no
5008ac_save_CC=$CC
5009cat >conftest.$ac_ext <<_ACEOF
5010/* confdefs.h.  */
5011_ACEOF
5012cat confdefs.h >>conftest.$ac_ext
5013cat >>conftest.$ac_ext <<_ACEOF
5014/* end confdefs.h.  */
5015#include <stdarg.h>
5016#include <stdio.h>
5017#include <sys/types.h>
5018#include <sys/stat.h>
5019/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5020struct buf { int x; };
5021FILE * (*rcsopen) (struct buf *, struct stat *, int);
5022static char *e (p, i)
5023     char **p;
5024     int i;
5025{
5026  return p[i];
5027}
5028static char *f (char * (*g) (char **, int), char **p, ...)
5029{
5030  char *s;
5031  va_list v;
5032  va_start (v,p);
5033  s = g (p, va_arg (v,int));
5034  va_end (v);
5035  return s;
5036}
5037
5038/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5039   function prototypes and stuff, but not '\xHH' hex character constants.
5040   These don't provoke an error unfortunately, instead are silently treated
5041   as 'x'.  The following induces an error, until -std is added to get
5042   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5043   array size at least.  It's necessary to write '\x00'==0 to get something
5044   that's true only with -std.  */
5045int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5046
5047/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5048   inside strings and character constants.  */
5049#define FOO(x) 'x'
5050int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5051
5052int test (int i, double x);
5053struct s1 {int (*f) (int a);};
5054struct s2 {int (*f) (double a);};
5055int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5056int argc;
5057char **argv;
5058int
5059main ()
5060{
5061return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5062  ;
5063  return 0;
5064}
5065_ACEOF
5066for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5067	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5068do
5069  CC="$ac_save_CC $ac_arg"
5070  rm -f conftest.$ac_objext
5071if { (ac_try="$ac_compile"
5072case "(($ac_try" in
5073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5074  *) ac_try_echo=$ac_try;;
5075esac
5076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5077  (eval "$ac_compile") 2>conftest.er1
5078  ac_status=$?
5079  grep -v '^ *+' conftest.er1 >conftest.err
5080  rm -f conftest.er1
5081  cat conftest.err >&5
5082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083  (exit $ac_status); } && {
5084	 test -z "$ac_c_werror_flag" ||
5085	 test ! -s conftest.err
5086       } && test -s conftest.$ac_objext; then
5087  ac_cv_prog_cc_c89=$ac_arg
5088else
5089  echo "$as_me: failed program was:" >&5
5090sed 's/^/| /' conftest.$ac_ext >&5
5091
5092
5093fi
5094
5095rm -f core conftest.err conftest.$ac_objext
5096  test "x$ac_cv_prog_cc_c89" != "xno" && break
5097done
5098rm -f conftest.$ac_ext
5099CC=$ac_save_CC
5100
5101fi
5102# AC_CACHE_VAL
5103case "x$ac_cv_prog_cc_c89" in
5104  x)
5105    { echo "$as_me:$LINENO: result: none needed" >&5
5106echo "${ECHO_T}none needed" >&6; } ;;
5107  xno)
5108    { echo "$as_me:$LINENO: result: unsupported" >&5
5109echo "${ECHO_T}unsupported" >&6; } ;;
5110  *)
5111    CC="$CC $ac_cv_prog_cc_c89"
5112    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5113echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5114esac
5115
5116
5117ac_ext=c
5118ac_cpp='$CPP $CPPFLAGS'
5119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5121ac_compiler_gnu=$ac_cv_c_compiler_gnu
5122
5123depcc="$CC"   am_compiler_list=
5124
5125{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5126echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5127if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5128  echo $ECHO_N "(cached) $ECHO_C" >&6
5129else
5130  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5131  # We make a subdir and do the tests there.  Otherwise we can end up
5132  # making bogus files that we don't know about and never remove.  For
5133  # instance it was reported that on HP-UX the gcc test will end up
5134  # making a dummy file named `D' -- because `-MD' means `put the output
5135  # in D'.
5136  mkdir conftest.dir
5137  # Copy depcomp to subdir because otherwise we won't find it if we're
5138  # using a relative directory.
5139  cp "$am_depcomp" conftest.dir
5140  cd conftest.dir
5141  # We will build objects and dependencies in a subdirectory because
5142  # it helps to detect inapplicable dependency modes.  For instance
5143  # both Tru64's cc and ICC support -MD to output dependencies as a
5144  # side effect of compilation, but ICC will put the dependencies in
5145  # the current directory while Tru64 will put them in the object
5146  # directory.
5147  mkdir sub
5148
5149  am_cv_CC_dependencies_compiler_type=none
5150  if test "$am_compiler_list" = ""; then
5151     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5152  fi
5153  for depmode in $am_compiler_list; do
5154    # Setup a source with many dependencies, because some compilers
5155    # like to wrap large dependency lists on column 80 (with \), and
5156    # we should not choose a depcomp mode which is confused by this.
5157    #
5158    # We need to recreate these files for each test, as the compiler may
5159    # overwrite some of them when testing with obscure command lines.
5160    # This happens at least with the AIX C compiler.
5161    : > sub/conftest.c
5162    for i in 1 2 3 4 5 6; do
5163      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5164      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5165      # Solaris 8's {/usr,}/bin/sh.
5166      touch sub/conftst$i.h
5167    done
5168    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5169
5170    case $depmode in
5171    nosideeffect)
5172      # after this tag, mechanisms are not by side-effect, so they'll
5173      # only be used when explicitly requested
5174      if test "x$enable_dependency_tracking" = xyes; then
5175	continue
5176      else
5177	break
5178      fi
5179      ;;
5180    none) break ;;
5181    esac
5182    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5183    # mode.  It turns out that the SunPro C++ compiler does not properly
5184    # handle `-M -o', and we need to detect this.
5185    if depmode=$depmode \
5186       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5187       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5188       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5189         >/dev/null 2>conftest.err &&
5190       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5191       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5192       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5193      # icc doesn't choke on unknown options, it will just issue warnings
5194      # or remarks (even with -Werror).  So we grep stderr for any message
5195      # that says an option was ignored or not supported.
5196      # When given -MP, icc 7.0 and 7.1 complain thusly:
5197      #   icc: Command line warning: ignoring option '-M'; no argument required
5198      # The diagnosis changed in icc 8.0:
5199      #   icc: Command line remark: option '-MP' not supported
5200      if (grep 'ignoring option' conftest.err ||
5201          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5202        am_cv_CC_dependencies_compiler_type=$depmode
5203        break
5204      fi
5205    fi
5206  done
5207
5208  cd ..
5209  rm -rf conftest.dir
5210else
5211  am_cv_CC_dependencies_compiler_type=none
5212fi
5213
5214fi
5215{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5216echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5217CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5218
5219
5220
5221if
5222  test "x$enable_dependency_tracking" != xno \
5223  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5224  am__fastdepCC_TRUE=
5225  am__fastdepCC_FALSE='#'
5226else
5227  am__fastdepCC_TRUE='#'
5228  am__fastdepCC_FALSE=
5229fi
5230
5231
5232
5233am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5234
5235ac_ext=c
5236ac_cpp='$CPP $CPPFLAGS'
5237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5239ac_compiler_gnu=$ac_cv_c_compiler_gnu
5240{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5241echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5242# On Suns, sometimes $CPP names a directory.
5243if test -n "$CPP" && test -d "$CPP"; then
5244  CPP=
5245fi
5246if test -z "$CPP"; then
5247  if test "${ac_cv_prog_CPP+set}" = set; then
5248  echo $ECHO_N "(cached) $ECHO_C" >&6
5249else
5250      # Double quotes because CPP needs to be expanded
5251    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5252    do
5253      ac_preproc_ok=false
5254for ac_c_preproc_warn_flag in '' yes
5255do
5256  # Use a header file that comes with gcc, so configuring glibc
5257  # with a fresh cross-compiler works.
5258  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5259  # <limits.h> exists even on freestanding compilers.
5260  # On the NeXT, cc -E runs the code through the compiler's parser,
5261  # not just through cpp. "Syntax error" is here to catch this case.
5262  cat >conftest.$ac_ext <<_ACEOF
5263/* confdefs.h.  */
5264_ACEOF
5265cat confdefs.h >>conftest.$ac_ext
5266cat >>conftest.$ac_ext <<_ACEOF
5267/* end confdefs.h.  */
5268#ifdef __STDC__
5269# include <limits.h>
5270#else
5271# include <assert.h>
5272#endif
5273		     Syntax error
5274_ACEOF
5275if { (ac_try="$ac_cpp conftest.$ac_ext"
5276case "(($ac_try" in
5277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278  *) ac_try_echo=$ac_try;;
5279esac
5280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5282  ac_status=$?
5283  grep -v '^ *+' conftest.er1 >conftest.err
5284  rm -f conftest.er1
5285  cat conftest.err >&5
5286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287  (exit $ac_status); } >/dev/null && {
5288	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5289	 test ! -s conftest.err
5290       }; then
5291  :
5292else
5293  echo "$as_me: failed program was:" >&5
5294sed 's/^/| /' conftest.$ac_ext >&5
5295
5296  # Broken: fails on valid input.
5297continue
5298fi
5299
5300rm -f conftest.err conftest.$ac_ext
5301
5302  # OK, works on sane cases.  Now check whether nonexistent headers
5303  # can be detected and how.
5304  cat >conftest.$ac_ext <<_ACEOF
5305/* confdefs.h.  */
5306_ACEOF
5307cat confdefs.h >>conftest.$ac_ext
5308cat >>conftest.$ac_ext <<_ACEOF
5309/* end confdefs.h.  */
5310#include <ac_nonexistent.h>
5311_ACEOF
5312if { (ac_try="$ac_cpp conftest.$ac_ext"
5313case "(($ac_try" in
5314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315  *) ac_try_echo=$ac_try;;
5316esac
5317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5319  ac_status=$?
5320  grep -v '^ *+' conftest.er1 >conftest.err
5321  rm -f conftest.er1
5322  cat conftest.err >&5
5323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324  (exit $ac_status); } >/dev/null && {
5325	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5326	 test ! -s conftest.err
5327       }; then
5328  # Broken: success on invalid input.
5329continue
5330else
5331  echo "$as_me: failed program was:" >&5
5332sed 's/^/| /' conftest.$ac_ext >&5
5333
5334  # Passes both tests.
5335ac_preproc_ok=:
5336break
5337fi
5338
5339rm -f conftest.err conftest.$ac_ext
5340
5341done
5342# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5343rm -f conftest.err conftest.$ac_ext
5344if $ac_preproc_ok; then
5345  break
5346fi
5347
5348    done
5349    ac_cv_prog_CPP=$CPP
5350
5351fi
5352  CPP=$ac_cv_prog_CPP
5353else
5354  ac_cv_prog_CPP=$CPP
5355fi
5356{ echo "$as_me:$LINENO: result: $CPP" >&5
5357echo "${ECHO_T}$CPP" >&6; }
5358ac_preproc_ok=false
5359for ac_c_preproc_warn_flag in '' yes
5360do
5361  # Use a header file that comes with gcc, so configuring glibc
5362  # with a fresh cross-compiler works.
5363  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5364  # <limits.h> exists even on freestanding compilers.
5365  # On the NeXT, cc -E runs the code through the compiler's parser,
5366  # not just through cpp. "Syntax error" is here to catch this case.
5367  cat >conftest.$ac_ext <<_ACEOF
5368/* confdefs.h.  */
5369_ACEOF
5370cat confdefs.h >>conftest.$ac_ext
5371cat >>conftest.$ac_ext <<_ACEOF
5372/* end confdefs.h.  */
5373#ifdef __STDC__
5374# include <limits.h>
5375#else
5376# include <assert.h>
5377#endif
5378		     Syntax error
5379_ACEOF
5380if { (ac_try="$ac_cpp conftest.$ac_ext"
5381case "(($ac_try" in
5382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383  *) ac_try_echo=$ac_try;;
5384esac
5385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5386  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5387  ac_status=$?
5388  grep -v '^ *+' conftest.er1 >conftest.err
5389  rm -f conftest.er1
5390  cat conftest.err >&5
5391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392  (exit $ac_status); } >/dev/null && {
5393	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5394	 test ! -s conftest.err
5395       }; then
5396  :
5397else
5398  echo "$as_me: failed program was:" >&5
5399sed 's/^/| /' conftest.$ac_ext >&5
5400
5401  # Broken: fails on valid input.
5402continue
5403fi
5404
5405rm -f conftest.err conftest.$ac_ext
5406
5407  # OK, works on sane cases.  Now check whether nonexistent headers
5408  # can be detected and how.
5409  cat >conftest.$ac_ext <<_ACEOF
5410/* confdefs.h.  */
5411_ACEOF
5412cat confdefs.h >>conftest.$ac_ext
5413cat >>conftest.$ac_ext <<_ACEOF
5414/* end confdefs.h.  */
5415#include <ac_nonexistent.h>
5416_ACEOF
5417if { (ac_try="$ac_cpp conftest.$ac_ext"
5418case "(($ac_try" in
5419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5420  *) ac_try_echo=$ac_try;;
5421esac
5422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5423  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5424  ac_status=$?
5425  grep -v '^ *+' conftest.er1 >conftest.err
5426  rm -f conftest.er1
5427  cat conftest.err >&5
5428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429  (exit $ac_status); } >/dev/null && {
5430	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5431	 test ! -s conftest.err
5432       }; then
5433  # Broken: success on invalid input.
5434continue
5435else
5436  echo "$as_me: failed program was:" >&5
5437sed 's/^/| /' conftest.$ac_ext >&5
5438
5439  # Passes both tests.
5440ac_preproc_ok=:
5441break
5442fi
5443
5444rm -f conftest.err conftest.$ac_ext
5445
5446done
5447# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5448rm -f conftest.err conftest.$ac_ext
5449if $ac_preproc_ok; then
5450  :
5451else
5452  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5453See \`config.log' for more details." >&5
5454echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5455See \`config.log' for more details." >&2;}
5456   { (exit 1); exit 1; }; }
5457fi
5458
5459ac_ext=c
5460ac_cpp='$CPP $CPPFLAGS'
5461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463ac_compiler_gnu=$ac_cv_c_compiler_gnu
5464
5465
5466{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5467echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5468if test "${ac_cv_path_GREP+set}" = set; then
5469  echo $ECHO_N "(cached) $ECHO_C" >&6
5470else
5471  # Extract the first word of "grep ggrep" to use in msg output
5472if test -z "$GREP"; then
5473set dummy grep ggrep; ac_prog_name=$2
5474if test "${ac_cv_path_GREP+set}" = set; then
5475  echo $ECHO_N "(cached) $ECHO_C" >&6
5476else
5477  ac_path_GREP_found=false
5478# Loop through the user's path and test for each of PROGNAME-LIST
5479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5481do
5482  IFS=$as_save_IFS
5483  test -z "$as_dir" && as_dir=.
5484  for ac_prog in grep ggrep; do
5485  for ac_exec_ext in '' $ac_executable_extensions; do
5486    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5487    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5488    # Check for GNU ac_path_GREP and select it if it is found.
5489  # Check for GNU $ac_path_GREP
5490case `"$ac_path_GREP" --version 2>&1` in
5491*GNU*)
5492  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5493*)
5494  ac_count=0
5495  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5496  while :
5497  do
5498    cat "conftest.in" "conftest.in" >"conftest.tmp"
5499    mv "conftest.tmp" "conftest.in"
5500    cp "conftest.in" "conftest.nl"
5501    echo 'GREP' >> "conftest.nl"
5502    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5503    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5504    ac_count=`expr $ac_count + 1`
5505    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5506      # Best one so far, save it but keep looking for a better one
5507      ac_cv_path_GREP="$ac_path_GREP"
5508      ac_path_GREP_max=$ac_count
5509    fi
5510    # 10*(2^10) chars as input seems more than enough
5511    test $ac_count -gt 10 && break
5512  done
5513  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5514esac
5515
5516
5517    $ac_path_GREP_found && break 3
5518  done
5519done
5520
5521done
5522IFS=$as_save_IFS
5523
5524
5525fi
5526
5527GREP="$ac_cv_path_GREP"
5528if test -z "$GREP"; then
5529  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5530echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5531   { (exit 1); exit 1; }; }
5532fi
5533
5534else
5535  ac_cv_path_GREP=$GREP
5536fi
5537
5538
5539fi
5540{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5541echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5542 GREP="$ac_cv_path_GREP"
5543
5544
5545{ echo "$as_me:$LINENO: checking for egrep" >&5
5546echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5547if test "${ac_cv_path_EGREP+set}" = set; then
5548  echo $ECHO_N "(cached) $ECHO_C" >&6
5549else
5550  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5551   then ac_cv_path_EGREP="$GREP -E"
5552   else
5553     # Extract the first word of "egrep" to use in msg output
5554if test -z "$EGREP"; then
5555set dummy egrep; ac_prog_name=$2
5556if test "${ac_cv_path_EGREP+set}" = set; then
5557  echo $ECHO_N "(cached) $ECHO_C" >&6
5558else
5559  ac_path_EGREP_found=false
5560# Loop through the user's path and test for each of PROGNAME-LIST
5561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5563do
5564  IFS=$as_save_IFS
5565  test -z "$as_dir" && as_dir=.
5566  for ac_prog in egrep; do
5567  for ac_exec_ext in '' $ac_executable_extensions; do
5568    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5569    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5570    # Check for GNU ac_path_EGREP and select it if it is found.
5571  # Check for GNU $ac_path_EGREP
5572case `"$ac_path_EGREP" --version 2>&1` in
5573*GNU*)
5574  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5575*)
5576  ac_count=0
5577  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5578  while :
5579  do
5580    cat "conftest.in" "conftest.in" >"conftest.tmp"
5581    mv "conftest.tmp" "conftest.in"
5582    cp "conftest.in" "conftest.nl"
5583    echo 'EGREP' >> "conftest.nl"
5584    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5585    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5586    ac_count=`expr $ac_count + 1`
5587    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5588      # Best one so far, save it but keep looking for a better one
5589      ac_cv_path_EGREP="$ac_path_EGREP"
5590      ac_path_EGREP_max=$ac_count
5591    fi
5592    # 10*(2^10) chars as input seems more than enough
5593    test $ac_count -gt 10 && break
5594  done
5595  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5596esac
5597
5598
5599    $ac_path_EGREP_found && break 3
5600  done
5601done
5602
5603done
5604IFS=$as_save_IFS
5605
5606
5607fi
5608
5609EGREP="$ac_cv_path_EGREP"
5610if test -z "$EGREP"; then
5611  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5612echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5613   { (exit 1); exit 1; }; }
5614fi
5615
5616else
5617  ac_cv_path_EGREP=$EGREP
5618fi
5619
5620
5621   fi
5622fi
5623{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5624echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5625 EGREP="$ac_cv_path_EGREP"
5626
5627
5628{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5629echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5630if test "${ac_cv_header_stdc+set}" = set; then
5631  echo $ECHO_N "(cached) $ECHO_C" >&6
5632else
5633  cat >conftest.$ac_ext <<_ACEOF
5634/* confdefs.h.  */
5635_ACEOF
5636cat confdefs.h >>conftest.$ac_ext
5637cat >>conftest.$ac_ext <<_ACEOF
5638/* end confdefs.h.  */
5639#include <stdlib.h>
5640#include <stdarg.h>
5641#include <string.h>
5642#include <float.h>
5643
5644int
5645main ()
5646{
5647
5648  ;
5649  return 0;
5650}
5651_ACEOF
5652rm -f conftest.$ac_objext
5653if { (ac_try="$ac_compile"
5654case "(($ac_try" in
5655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656  *) ac_try_echo=$ac_try;;
5657esac
5658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659  (eval "$ac_compile") 2>conftest.er1
5660  ac_status=$?
5661  grep -v '^ *+' conftest.er1 >conftest.err
5662  rm -f conftest.er1
5663  cat conftest.err >&5
5664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665  (exit $ac_status); } && {
5666	 test -z "$ac_c_werror_flag" ||
5667	 test ! -s conftest.err
5668       } && test -s conftest.$ac_objext; then
5669  ac_cv_header_stdc=yes
5670else
5671  echo "$as_me: failed program was:" >&5
5672sed 's/^/| /' conftest.$ac_ext >&5
5673
5674	ac_cv_header_stdc=no
5675fi
5676
5677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678
5679if test $ac_cv_header_stdc = yes; then
5680  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5681  cat >conftest.$ac_ext <<_ACEOF
5682/* confdefs.h.  */
5683_ACEOF
5684cat confdefs.h >>conftest.$ac_ext
5685cat >>conftest.$ac_ext <<_ACEOF
5686/* end confdefs.h.  */
5687#include <string.h>
5688
5689_ACEOF
5690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5691  $EGREP "memchr" >/dev/null 2>&1; then
5692  :
5693else
5694  ac_cv_header_stdc=no
5695fi
5696rm -f conftest*
5697
5698fi
5699
5700if test $ac_cv_header_stdc = yes; then
5701  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5702  cat >conftest.$ac_ext <<_ACEOF
5703/* confdefs.h.  */
5704_ACEOF
5705cat confdefs.h >>conftest.$ac_ext
5706cat >>conftest.$ac_ext <<_ACEOF
5707/* end confdefs.h.  */
5708#include <stdlib.h>
5709
5710_ACEOF
5711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5712  $EGREP "free" >/dev/null 2>&1; then
5713  :
5714else
5715  ac_cv_header_stdc=no
5716fi
5717rm -f conftest*
5718
5719fi
5720
5721if test $ac_cv_header_stdc = yes; then
5722  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5723  if test "$cross_compiling" = yes; then
5724  :
5725else
5726  cat >conftest.$ac_ext <<_ACEOF
5727/* confdefs.h.  */
5728_ACEOF
5729cat confdefs.h >>conftest.$ac_ext
5730cat >>conftest.$ac_ext <<_ACEOF
5731/* end confdefs.h.  */
5732#include <ctype.h>
5733#include <stdlib.h>
5734#if ((' ' & 0x0FF) == 0x020)
5735# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5736# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5737#else
5738# define ISLOWER(c) \
5739		   (('a' <= (c) && (c) <= 'i') \
5740		     || ('j' <= (c) && (c) <= 'r') \
5741		     || ('s' <= (c) && (c) <= 'z'))
5742# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5743#endif
5744
5745#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5746int
5747main ()
5748{
5749  int i;
5750  for (i = 0; i < 256; i++)
5751    if (XOR (islower (i), ISLOWER (i))
5752	|| toupper (i) != TOUPPER (i))
5753      return 2;
5754  return 0;
5755}
5756_ACEOF
5757rm -f conftest$ac_exeext
5758if { (ac_try="$ac_link"
5759case "(($ac_try" in
5760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761  *) ac_try_echo=$ac_try;;
5762esac
5763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764  (eval "$ac_link") 2>&5
5765  ac_status=$?
5766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5768  { (case "(($ac_try" in
5769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770  *) ac_try_echo=$ac_try;;
5771esac
5772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5773  (eval "$ac_try") 2>&5
5774  ac_status=$?
5775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776  (exit $ac_status); }; }; then
5777  :
5778else
5779  echo "$as_me: program exited with status $ac_status" >&5
5780echo "$as_me: failed program was:" >&5
5781sed 's/^/| /' conftest.$ac_ext >&5
5782
5783( exit $ac_status )
5784ac_cv_header_stdc=no
5785fi
5786rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5787fi
5788
5789
5790fi
5791fi
5792{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5793echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5794if test $ac_cv_header_stdc = yes; then
5795
5796cat >>confdefs.h <<\_ACEOF
5797#define STDC_HEADERS 1
5798_ACEOF
5799
5800fi
5801
5802# Check whether --enable-shared was given.
5803if test "${enable_shared+set}" = set; then
5804  enableval=$enable_shared; p=${PACKAGE-default}
5805    case $enableval in
5806    yes) enable_shared=yes ;;
5807    no) enable_shared=no ;;
5808    *)
5809      enable_shared=no
5810      # Look at the argument we got.  We use all the common list separators.
5811      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5812      for pkg in $enableval; do
5813	IFS="$lt_save_ifs"
5814	if test "X$pkg" = "X$p"; then
5815	  enable_shared=yes
5816	fi
5817      done
5818      IFS="$lt_save_ifs"
5819      ;;
5820    esac
5821else
5822  enable_shared=yes
5823fi
5824
5825
5826# Check whether --enable-static was given.
5827if test "${enable_static+set}" = set; then
5828  enableval=$enable_static; p=${PACKAGE-default}
5829    case $enableval in
5830    yes) enable_static=yes ;;
5831    no) enable_static=no ;;
5832    *)
5833     enable_static=no
5834      # Look at the argument we got.  We use all the common list separators.
5835      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5836      for pkg in $enableval; do
5837	IFS="$lt_save_ifs"
5838	if test "X$pkg" = "X$p"; then
5839	  enable_static=yes
5840	fi
5841      done
5842      IFS="$lt_save_ifs"
5843      ;;
5844    esac
5845else
5846  enable_static=yes
5847fi
5848
5849
5850# Check whether --enable-fast-install was given.
5851if test "${enable_fast_install+set}" = set; then
5852  enableval=$enable_fast_install; p=${PACKAGE-default}
5853    case $enableval in
5854    yes) enable_fast_install=yes ;;
5855    no) enable_fast_install=no ;;
5856    *)
5857      enable_fast_install=no
5858      # Look at the argument we got.  We use all the common list separators.
5859      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5860      for pkg in $enableval; do
5861	IFS="$lt_save_ifs"
5862	if test "X$pkg" = "X$p"; then
5863	  enable_fast_install=yes
5864	fi
5865      done
5866      IFS="$lt_save_ifs"
5867      ;;
5868    esac
5869else
5870  enable_fast_install=yes
5871fi
5872
5873
5874# Make sure we can run config.sub.
5875$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5876  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5877echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5878   { (exit 1); exit 1; }; }
5879
5880{ echo "$as_me:$LINENO: checking build system type" >&5
5881echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5882if test "${ac_cv_build+set}" = set; then
5883  echo $ECHO_N "(cached) $ECHO_C" >&6
5884else
5885  ac_build_alias=$build_alias
5886test "x$ac_build_alias" = x &&
5887  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5888test "x$ac_build_alias" = x &&
5889  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5890echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5891   { (exit 1); exit 1; }; }
5892ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5893  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5894echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5895   { (exit 1); exit 1; }; }
5896
5897fi
5898{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5899echo "${ECHO_T}$ac_cv_build" >&6; }
5900case $ac_cv_build in
5901*-*-*) ;;
5902*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5903echo "$as_me: error: invalid value of canonical build" >&2;}
5904   { (exit 1); exit 1; }; };;
5905esac
5906build=$ac_cv_build
5907ac_save_IFS=$IFS; IFS='-'
5908set x $ac_cv_build
5909shift
5910build_cpu=$1
5911build_vendor=$2
5912shift; shift
5913# Remember, the first character of IFS is used to create $*,
5914# except with old shells:
5915build_os=$*
5916IFS=$ac_save_IFS
5917case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5918
5919
5920{ echo "$as_me:$LINENO: checking host system type" >&5
5921echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5922if test "${ac_cv_host+set}" = set; then
5923  echo $ECHO_N "(cached) $ECHO_C" >&6
5924else
5925  if test "x$host_alias" = x; then
5926  ac_cv_host=$ac_cv_build
5927else
5928  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5929    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5930echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5931   { (exit 1); exit 1; }; }
5932fi
5933
5934fi
5935{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5936echo "${ECHO_T}$ac_cv_host" >&6; }
5937case $ac_cv_host in
5938*-*-*) ;;
5939*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5940echo "$as_me: error: invalid value of canonical host" >&2;}
5941   { (exit 1); exit 1; }; };;
5942esac
5943host=$ac_cv_host
5944ac_save_IFS=$IFS; IFS='-'
5945set x $ac_cv_host
5946shift
5947host_cpu=$1
5948host_vendor=$2
5949shift; shift
5950# Remember, the first character of IFS is used to create $*,
5951# except with old shells:
5952host_os=$*
5953IFS=$ac_save_IFS
5954case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5955
5956
5957{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5958echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5959if test "${lt_cv_path_SED+set}" = set; then
5960  echo $ECHO_N "(cached) $ECHO_C" >&6
5961else
5962  # Loop through the user's path and test for sed and gsed.
5963# Then use that list of sed's as ones to test for truncation.
5964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965for as_dir in $PATH
5966do
5967  IFS=$as_save_IFS
5968  test -z "$as_dir" && as_dir=.
5969  for lt_ac_prog in sed gsed; do
5970    for ac_exec_ext in '' $ac_executable_extensions; do
5971      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5972        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5973      fi
5974    done
5975  done
5976done
5977IFS=$as_save_IFS
5978lt_ac_max=0
5979lt_ac_count=0
5980# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5981# along with /bin/sed that truncates output.
5982for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5983  test ! -f $lt_ac_sed && continue
5984  cat /dev/null > conftest.in
5985  lt_ac_count=0
5986  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5987  # Check for GNU sed and select it if it is found.
5988  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5989    lt_cv_path_SED=$lt_ac_sed
5990    break
5991  fi
5992  while true; do
5993    cat conftest.in conftest.in >conftest.tmp
5994    mv conftest.tmp conftest.in
5995    cp conftest.in conftest.nl
5996    echo >>conftest.nl
5997    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5998    cmp -s conftest.out conftest.nl || break
5999    # 10000 chars as input seems more than enough
6000    test $lt_ac_count -gt 10 && break
6001    lt_ac_count=`expr $lt_ac_count + 1`
6002    if test $lt_ac_count -gt $lt_ac_max; then
6003      lt_ac_max=$lt_ac_count
6004      lt_cv_path_SED=$lt_ac_sed
6005    fi
6006  done
6007done
6008
6009fi
6010
6011SED=$lt_cv_path_SED
6012
6013{ echo "$as_me:$LINENO: result: $SED" >&5
6014echo "${ECHO_T}$SED" >&6; }
6015
6016
6017# Check whether --with-gnu-ld was given.
6018if test "${with_gnu_ld+set}" = set; then
6019  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6020else
6021  with_gnu_ld=no
6022fi
6023
6024ac_prog=ld
6025if test "$GCC" = yes; then
6026  # Check if gcc -print-prog-name=ld gives a path.
6027  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6028echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6029  case $host in
6030  *-*-mingw*)
6031    # gcc leaves a trailing carriage return which upsets mingw
6032    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6033  *)
6034    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6035  esac
6036  case $ac_prog in
6037    # Accept absolute paths.
6038    [\\/]* | ?:[\\/]*)
6039      re_direlt='/[^/][^/]*/\.\./'
6040      # Canonicalize the pathname of ld
6041      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6042      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6043	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6044      done
6045      test -z "$LD" && LD="$ac_prog"
6046      ;;
6047  "")
6048    # If it fails, then pretend we aren't using GCC.
6049    ac_prog=ld
6050    ;;
6051  *)
6052    # If it is relative, then search for the first ld in PATH.
6053    with_gnu_ld=unknown
6054    ;;
6055  esac
6056elif test "$with_gnu_ld" = yes; then
6057  { echo "$as_me:$LINENO: checking for GNU ld" >&5
6058echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6059else
6060  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6061echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6062fi
6063if test "${lt_cv_path_LD+set}" = set; then
6064  echo $ECHO_N "(cached) $ECHO_C" >&6
6065else
6066  if test -z "$LD"; then
6067  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6068  for ac_dir in $PATH; do
6069    IFS="$lt_save_ifs"
6070    test -z "$ac_dir" && ac_dir=.
6071    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6072      lt_cv_path_LD="$ac_dir/$ac_prog"
6073      # Check to see if the program is GNU ld.  I'd rather use --version,
6074      # but apparently some variants of GNU ld only accept -v.
6075      # Break only if it was the GNU/non-GNU ld that we prefer.
6076      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6077      *GNU* | *'with BFD'*)
6078	test "$with_gnu_ld" != no && break
6079	;;
6080      *)
6081	test "$with_gnu_ld" != yes && break
6082	;;
6083      esac
6084    fi
6085  done
6086  IFS="$lt_save_ifs"
6087else
6088  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6089fi
6090fi
6091
6092LD="$lt_cv_path_LD"
6093if test -n "$LD"; then
6094  { echo "$as_me:$LINENO: result: $LD" >&5
6095echo "${ECHO_T}$LD" >&6; }
6096else
6097  { echo "$as_me:$LINENO: result: no" >&5
6098echo "${ECHO_T}no" >&6; }
6099fi
6100test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6101echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6102   { (exit 1); exit 1; }; }
6103{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6104echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6105if test "${lt_cv_prog_gnu_ld+set}" = set; then
6106  echo $ECHO_N "(cached) $ECHO_C" >&6
6107else
6108  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6109case `$LD -v 2>&1 </dev/null` in
6110*GNU* | *'with BFD'*)
6111  lt_cv_prog_gnu_ld=yes
6112  ;;
6113*)
6114  lt_cv_prog_gnu_ld=no
6115  ;;
6116esac
6117fi
6118{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6119echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6120with_gnu_ld=$lt_cv_prog_gnu_ld
6121
6122
6123{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6124echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6125if test "${lt_cv_ld_reload_flag+set}" = set; then
6126  echo $ECHO_N "(cached) $ECHO_C" >&6
6127else
6128  lt_cv_ld_reload_flag='-r'
6129fi
6130{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6131echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6132reload_flag=$lt_cv_ld_reload_flag
6133case $reload_flag in
6134"" | " "*) ;;
6135*) reload_flag=" $reload_flag" ;;
6136esac
6137reload_cmds='$LD$reload_flag -o $output$reload_objs'
6138case $host_os in
6139  darwin*)
6140    if test "$GCC" = yes; then
6141      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6142    else
6143      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6144    fi
6145    ;;
6146esac
6147
6148{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6149echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6150if test "${lt_cv_path_NM+set}" = set; then
6151  echo $ECHO_N "(cached) $ECHO_C" >&6
6152else
6153  if test -n "$NM"; then
6154  # Let the user override the test.
6155  lt_cv_path_NM="$NM"
6156else
6157  lt_nm_to_check="${ac_tool_prefix}nm"
6158  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6159    lt_nm_to_check="$lt_nm_to_check nm"
6160  fi
6161  for lt_tmp_nm in $lt_nm_to_check; do
6162    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6163    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6164      IFS="$lt_save_ifs"
6165      test -z "$ac_dir" && ac_dir=.
6166      tmp_nm="$ac_dir/$lt_tmp_nm"
6167      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6168	# Check to see if the nm accepts a BSD-compat flag.
6169	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6170	#   nm: unknown option "B" ignored
6171	# Tru64's nm complains that /dev/null is an invalid object file
6172	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6173	*/dev/null* | *'Invalid file or object type'*)
6174	  lt_cv_path_NM="$tmp_nm -B"
6175	  break
6176	  ;;
6177	*)
6178	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6179	  */dev/null*)
6180	    lt_cv_path_NM="$tmp_nm -p"
6181	    break
6182	    ;;
6183	  *)
6184	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6185	    continue # so that we can try to find one that supports BSD flags
6186	    ;;
6187	  esac
6188	  ;;
6189	esac
6190      fi
6191    done
6192    IFS="$lt_save_ifs"
6193  done
6194  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6195fi
6196fi
6197{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6198echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6199NM="$lt_cv_path_NM"
6200
6201{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6202echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6203LN_S=$as_ln_s
6204if test "$LN_S" = "ln -s"; then
6205  { echo "$as_me:$LINENO: result: yes" >&5
6206echo "${ECHO_T}yes" >&6; }
6207else
6208  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6209echo "${ECHO_T}no, using $LN_S" >&6; }
6210fi
6211
6212{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6213echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6214if test "${lt_cv_deplibs_check_method+set}" = set; then
6215  echo $ECHO_N "(cached) $ECHO_C" >&6
6216else
6217  lt_cv_file_magic_cmd='$MAGIC_CMD'
6218lt_cv_file_magic_test_file=
6219lt_cv_deplibs_check_method='unknown'
6220# Need to set the preceding variable on all platforms that support
6221# interlibrary dependencies.
6222# 'none' -- dependencies not supported.
6223# `unknown' -- same as none, but documents that we really don't know.
6224# 'pass_all' -- all dependencies passed with no checks.
6225# 'test_compile' -- check by making test program.
6226# 'file_magic [[regex]]' -- check by looking for files in library path
6227# which responds to the $file_magic_cmd with a given extended regex.
6228# If you have `file' or equivalent on your system and you're not sure
6229# whether `pass_all' will *always* work, you probably want this one.
6230
6231case $host_os in
6232aix4* | aix5*)
6233  lt_cv_deplibs_check_method=pass_all
6234  ;;
6235
6236beos*)
6237  lt_cv_deplibs_check_method=pass_all
6238  ;;
6239
6240bsdi[45]*)
6241  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6242  lt_cv_file_magic_cmd='/usr/bin/file -L'
6243  lt_cv_file_magic_test_file=/shlib/libc.so
6244  ;;
6245
6246cygwin*)
6247  # func_win32_libid is a shell function defined in ltmain.sh
6248  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6249  lt_cv_file_magic_cmd='func_win32_libid'
6250  ;;
6251
6252mingw* | pw32*)
6253  # Base MSYS/MinGW do not provide the 'file' command needed by
6254  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6255  # unless we find 'file', for example because we are cross-compiling.
6256  if ( file / ) >/dev/null 2>&1; then
6257    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6258    lt_cv_file_magic_cmd='func_win32_libid'
6259  else
6260    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6261    lt_cv_file_magic_cmd='$OBJDUMP -f'
6262  fi
6263  ;;
6264
6265darwin* | rhapsody*)
6266  lt_cv_deplibs_check_method=pass_all
6267  ;;
6268
6269freebsd* | dragonfly*)
6270  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6271    case $host_cpu in
6272    i*86 )
6273      # Not sure whether the presence of OpenBSD here was a mistake.
6274      # Let's accept both of them until this is cleared up.
6275      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6276      lt_cv_file_magic_cmd=/usr/bin/file
6277      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6278      ;;
6279    esac
6280  else
6281    lt_cv_deplibs_check_method=pass_all
6282  fi
6283  ;;
6284
6285gnu*)
6286  lt_cv_deplibs_check_method=pass_all
6287  ;;
6288
6289hpux10.20* | hpux11*)
6290  lt_cv_file_magic_cmd=/usr/bin/file
6291  case $host_cpu in
6292  ia64*)
6293    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6294    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6295    ;;
6296  hppa*64*)
6297    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]'
6298    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6299    ;;
6300  *)
6301    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6302    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6303    ;;
6304  esac
6305  ;;
6306
6307interix[3-9]*)
6308  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6309  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6310  ;;
6311
6312irix5* | irix6* | nonstopux*)
6313  case $LD in
6314  *-32|*"-32 ") libmagic=32-bit;;
6315  *-n32|*"-n32 ") libmagic=N32;;
6316  *-64|*"-64 ") libmagic=64-bit;;
6317  *) libmagic=never-match;;
6318  esac
6319  lt_cv_deplibs_check_method=pass_all
6320  ;;
6321
6322# This must be Linux ELF.
6323linux* | k*bsd*-gnu)
6324  lt_cv_deplibs_check_method=pass_all
6325  ;;
6326
6327netbsd* | netbsdelf*-gnu)
6328  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6329    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6330  else
6331    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6332  fi
6333  ;;
6334
6335newos6*)
6336  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6337  lt_cv_file_magic_cmd=/usr/bin/file
6338  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6339  ;;
6340
6341nto-qnx*)
6342  lt_cv_deplibs_check_method=unknown
6343  ;;
6344
6345openbsd*)
6346  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6347    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6348  else
6349    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6350  fi
6351  ;;
6352
6353osf3* | osf4* | osf5*)
6354  lt_cv_deplibs_check_method=pass_all
6355  ;;
6356
6357rdos*)
6358  lt_cv_deplibs_check_method=pass_all
6359  ;;
6360
6361solaris*)
6362  lt_cv_deplibs_check_method=pass_all
6363  ;;
6364
6365sysv4 | sysv4.3*)
6366  case $host_vendor in
6367  motorola)
6368    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]'
6369    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6370    ;;
6371  ncr)
6372    lt_cv_deplibs_check_method=pass_all
6373    ;;
6374  sequent)
6375    lt_cv_file_magic_cmd='/bin/file'
6376    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6377    ;;
6378  sni)
6379    lt_cv_file_magic_cmd='/bin/file'
6380    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6381    lt_cv_file_magic_test_file=/lib/libc.so
6382    ;;
6383  siemens)
6384    lt_cv_deplibs_check_method=pass_all
6385    ;;
6386  pc)
6387    lt_cv_deplibs_check_method=pass_all
6388    ;;
6389  esac
6390  ;;
6391
6392sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6393  lt_cv_deplibs_check_method=pass_all
6394  ;;
6395esac
6396
6397fi
6398{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6399echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6400file_magic_cmd=$lt_cv_file_magic_cmd
6401deplibs_check_method=$lt_cv_deplibs_check_method
6402test -z "$deplibs_check_method" && deplibs_check_method=unknown
6403
6404
6405
6406
6407# If no C compiler was specified, use CC.
6408LTCC=${LTCC-"$CC"}
6409
6410# If no C compiler flags were specified, use CFLAGS.
6411LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6412
6413# Allow CC to be a program name with arguments.
6414compiler=$CC
6415
6416# Check whether --enable-libtool-lock was given.
6417if test "${enable_libtool_lock+set}" = set; then
6418  enableval=$enable_libtool_lock;
6419fi
6420
6421test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6422
6423# Some flags need to be propagated to the compiler or linker for good
6424# libtool support.
6425case $host in
6426ia64-*-hpux*)
6427  # Find out which ABI we are using.
6428  echo 'int i;' > conftest.$ac_ext
6429  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430  (eval $ac_compile) 2>&5
6431  ac_status=$?
6432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433  (exit $ac_status); }; then
6434    case `/usr/bin/file conftest.$ac_objext` in
6435    *ELF-32*)
6436      HPUX_IA64_MODE="32"
6437      ;;
6438    *ELF-64*)
6439      HPUX_IA64_MODE="64"
6440      ;;
6441    esac
6442  fi
6443  rm -rf conftest*
6444  ;;
6445*-*-irix6*)
6446  # Find out which ABI we are using.
6447  echo '#line 6447 "configure"' > conftest.$ac_ext
6448  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6449  (eval $ac_compile) 2>&5
6450  ac_status=$?
6451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452  (exit $ac_status); }; then
6453   if test "$lt_cv_prog_gnu_ld" = yes; then
6454    case `/usr/bin/file conftest.$ac_objext` in
6455    *32-bit*)
6456      LD="${LD-ld} -melf32bsmip"
6457      ;;
6458    *N32*)
6459      LD="${LD-ld} -melf32bmipn32"
6460      ;;
6461    *64-bit*)
6462      LD="${LD-ld} -melf64bmip"
6463      ;;
6464    esac
6465   else
6466    case `/usr/bin/file conftest.$ac_objext` in
6467    *32-bit*)
6468      LD="${LD-ld} -32"
6469      ;;
6470    *N32*)
6471      LD="${LD-ld} -n32"
6472      ;;
6473    *64-bit*)
6474      LD="${LD-ld} -64"
6475      ;;
6476    esac
6477   fi
6478  fi
6479  rm -rf conftest*
6480  ;;
6481
6482x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6483s390*-*linux*|sparc*-*linux*)
6484  # Find out which ABI we are using.
6485  echo 'int i;' > conftest.$ac_ext
6486  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6487  (eval $ac_compile) 2>&5
6488  ac_status=$?
6489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490  (exit $ac_status); }; then
6491    case `/usr/bin/file conftest.o` in
6492    *32-bit*)
6493      case $host in
6494        x86_64-*kfreebsd*-gnu)
6495          LD="${LD-ld} -m elf_i386_fbsd"
6496          ;;
6497        x86_64-*linux*)
6498          LD="${LD-ld} -m elf_i386"
6499          ;;
6500        ppc64-*linux*|powerpc64-*linux*)
6501          LD="${LD-ld} -m elf32ppclinux"
6502          ;;
6503        s390x-*linux*)
6504          LD="${LD-ld} -m elf_s390"
6505          ;;
6506        sparc64-*linux*)
6507          LD="${LD-ld} -m elf32_sparc"
6508          ;;
6509      esac
6510      ;;
6511    *64-bit*)
6512      case $host in
6513        x86_64-*kfreebsd*-gnu)
6514          LD="${LD-ld} -m elf_x86_64_fbsd"
6515          ;;
6516        x86_64-*linux*)
6517          LD="${LD-ld} -m elf_x86_64"
6518          ;;
6519        ppc*-*linux*|powerpc*-*linux*)
6520          LD="${LD-ld} -m elf64ppc"
6521          ;;
6522        s390*-*linux*)
6523          LD="${LD-ld} -m elf64_s390"
6524          ;;
6525        sparc*-*linux*)
6526          LD="${LD-ld} -m elf64_sparc"
6527          ;;
6528      esac
6529      ;;
6530    esac
6531  fi
6532  rm -rf conftest*
6533  ;;
6534
6535*-*-sco3.2v5*)
6536  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6537  SAVE_CFLAGS="$CFLAGS"
6538  CFLAGS="$CFLAGS -belf"
6539  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6540echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6541if test "${lt_cv_cc_needs_belf+set}" = set; then
6542  echo $ECHO_N "(cached) $ECHO_C" >&6
6543else
6544  ac_ext=c
6545ac_cpp='$CPP $CPPFLAGS'
6546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6548ac_compiler_gnu=$ac_cv_c_compiler_gnu
6549
6550     cat >conftest.$ac_ext <<_ACEOF
6551/* confdefs.h.  */
6552_ACEOF
6553cat confdefs.h >>conftest.$ac_ext
6554cat >>conftest.$ac_ext <<_ACEOF
6555/* end confdefs.h.  */
6556
6557int
6558main ()
6559{
6560
6561  ;
6562  return 0;
6563}
6564_ACEOF
6565rm -f conftest.$ac_objext conftest$ac_exeext
6566if { (ac_try="$ac_link"
6567case "(($ac_try" in
6568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569  *) ac_try_echo=$ac_try;;
6570esac
6571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6572  (eval "$ac_link") 2>conftest.er1
6573  ac_status=$?
6574  grep -v '^ *+' conftest.er1 >conftest.err
6575  rm -f conftest.er1
6576  cat conftest.err >&5
6577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578  (exit $ac_status); } && {
6579	 test -z "$ac_c_werror_flag" ||
6580	 test ! -s conftest.err
6581       } && test -s conftest$ac_exeext &&
6582       $as_test_x conftest$ac_exeext; then
6583  lt_cv_cc_needs_belf=yes
6584else
6585  echo "$as_me: failed program was:" >&5
6586sed 's/^/| /' conftest.$ac_ext >&5
6587
6588	lt_cv_cc_needs_belf=no
6589fi
6590
6591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6592      conftest$ac_exeext conftest.$ac_ext
6593     ac_ext=c
6594ac_cpp='$CPP $CPPFLAGS'
6595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6597ac_compiler_gnu=$ac_cv_c_compiler_gnu
6598
6599fi
6600{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6601echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6602  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6603    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6604    CFLAGS="$SAVE_CFLAGS"
6605  fi
6606  ;;
6607sparc*-*solaris*)
6608  # Find out which ABI we are using.
6609  echo 'int i;' > conftest.$ac_ext
6610  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6611  (eval $ac_compile) 2>&5
6612  ac_status=$?
6613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614  (exit $ac_status); }; then
6615    case `/usr/bin/file conftest.o` in
6616    *64-bit*)
6617      case $lt_cv_prog_gnu_ld in
6618      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6619      *)    LD="${LD-ld} -64" ;;
6620      esac
6621      ;;
6622    esac
6623  fi
6624  rm -rf conftest*
6625  ;;
6626
6627
6628esac
6629
6630need_locks="$enable_libtool_lock"
6631
6632
6633# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6644		  inttypes.h stdint.h unistd.h
6645do
6646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6647{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6650  echo $ECHO_N "(cached) $ECHO_C" >&6
6651else
6652  cat >conftest.$ac_ext <<_ACEOF
6653/* confdefs.h.  */
6654_ACEOF
6655cat confdefs.h >>conftest.$ac_ext
6656cat >>conftest.$ac_ext <<_ACEOF
6657/* end confdefs.h.  */
6658$ac_includes_default
6659
6660#include <$ac_header>
6661_ACEOF
6662rm -f conftest.$ac_objext
6663if { (ac_try="$ac_compile"
6664case "(($ac_try" in
6665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666  *) ac_try_echo=$ac_try;;
6667esac
6668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6669  (eval "$ac_compile") 2>conftest.er1
6670  ac_status=$?
6671  grep -v '^ *+' conftest.er1 >conftest.err
6672  rm -f conftest.er1
6673  cat conftest.err >&5
6674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675  (exit $ac_status); } && {
6676	 test -z "$ac_c_werror_flag" ||
6677	 test ! -s conftest.err
6678       } && test -s conftest.$ac_objext; then
6679  eval "$as_ac_Header=yes"
6680else
6681  echo "$as_me: failed program was:" >&5
6682sed 's/^/| /' conftest.$ac_ext >&5
6683
6684	eval "$as_ac_Header=no"
6685fi
6686
6687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688fi
6689ac_res=`eval echo '${'$as_ac_Header'}'`
6690	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6691echo "${ECHO_T}$ac_res" >&6; }
6692if test `eval echo '${'$as_ac_Header'}'` = yes; then
6693  cat >>confdefs.h <<_ACEOF
6694#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6695_ACEOF
6696
6697fi
6698
6699done
6700
6701
6702
6703for ac_header in dlfcn.h
6704do
6705as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6707  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6710  echo $ECHO_N "(cached) $ECHO_C" >&6
6711fi
6712ac_res=`eval echo '${'$as_ac_Header'}'`
6713	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6714echo "${ECHO_T}$ac_res" >&6; }
6715else
6716  # Is the header compilable?
6717{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6718echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6719cat >conftest.$ac_ext <<_ACEOF
6720/* confdefs.h.  */
6721_ACEOF
6722cat confdefs.h >>conftest.$ac_ext
6723cat >>conftest.$ac_ext <<_ACEOF
6724/* end confdefs.h.  */
6725$ac_includes_default
6726#include <$ac_header>
6727_ACEOF
6728rm -f conftest.$ac_objext
6729if { (ac_try="$ac_compile"
6730case "(($ac_try" in
6731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6732  *) ac_try_echo=$ac_try;;
6733esac
6734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6735  (eval "$ac_compile") 2>conftest.er1
6736  ac_status=$?
6737  grep -v '^ *+' conftest.er1 >conftest.err
6738  rm -f conftest.er1
6739  cat conftest.err >&5
6740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741  (exit $ac_status); } && {
6742	 test -z "$ac_c_werror_flag" ||
6743	 test ! -s conftest.err
6744       } && test -s conftest.$ac_objext; then
6745  ac_header_compiler=yes
6746else
6747  echo "$as_me: failed program was:" >&5
6748sed 's/^/| /' conftest.$ac_ext >&5
6749
6750	ac_header_compiler=no
6751fi
6752
6753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6754{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6755echo "${ECHO_T}$ac_header_compiler" >&6; }
6756
6757# Is the header present?
6758{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6759echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6760cat >conftest.$ac_ext <<_ACEOF
6761/* confdefs.h.  */
6762_ACEOF
6763cat confdefs.h >>conftest.$ac_ext
6764cat >>conftest.$ac_ext <<_ACEOF
6765/* end confdefs.h.  */
6766#include <$ac_header>
6767_ACEOF
6768if { (ac_try="$ac_cpp conftest.$ac_ext"
6769case "(($ac_try" in
6770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6771  *) ac_try_echo=$ac_try;;
6772esac
6773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6774  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6775  ac_status=$?
6776  grep -v '^ *+' conftest.er1 >conftest.err
6777  rm -f conftest.er1
6778  cat conftest.err >&5
6779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780  (exit $ac_status); } >/dev/null && {
6781	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6782	 test ! -s conftest.err
6783       }; then
6784  ac_header_preproc=yes
6785else
6786  echo "$as_me: failed program was:" >&5
6787sed 's/^/| /' conftest.$ac_ext >&5
6788
6789  ac_header_preproc=no
6790fi
6791
6792rm -f conftest.err conftest.$ac_ext
6793{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6794echo "${ECHO_T}$ac_header_preproc" >&6; }
6795
6796# So?  What about this header?
6797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6798  yes:no: )
6799    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6800echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6801    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6802echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6803    ac_header_preproc=yes
6804    ;;
6805  no:yes:* )
6806    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6807echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6808    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6809echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6810    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6811echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6812    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6813echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6814    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6816    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6817echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6818
6819    ;;
6820esac
6821{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6823if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6824  echo $ECHO_N "(cached) $ECHO_C" >&6
6825else
6826  eval "$as_ac_Header=\$ac_header_preproc"
6827fi
6828ac_res=`eval echo '${'$as_ac_Header'}'`
6829	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6830echo "${ECHO_T}$ac_res" >&6; }
6831
6832fi
6833if test `eval echo '${'$as_ac_Header'}'` = yes; then
6834  cat >>confdefs.h <<_ACEOF
6835#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6836_ACEOF
6837
6838fi
6839
6840done
6841
6842ac_ext=cpp
6843ac_cpp='$CXXCPP $CPPFLAGS'
6844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6847if test -z "$CXX"; then
6848  if test -n "$CCC"; then
6849    CXX=$CCC
6850  else
6851    if test -n "$ac_tool_prefix"; then
6852  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6853  do
6854    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6855set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858if test "${ac_cv_prog_CXX+set}" = set; then
6859  echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
6861  if test -n "$CXX"; then
6862  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6863else
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867  IFS=$as_save_IFS
6868  test -z "$as_dir" && as_dir=.
6869  for ac_exec_ext in '' $ac_executable_extensions; do
6870  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6872    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873    break 2
6874  fi
6875done
6876done
6877IFS=$as_save_IFS
6878
6879fi
6880fi
6881CXX=$ac_cv_prog_CXX
6882if test -n "$CXX"; then
6883  { echo "$as_me:$LINENO: result: $CXX" >&5
6884echo "${ECHO_T}$CXX" >&6; }
6885else
6886  { echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6; }
6888fi
6889
6890
6891    test -n "$CXX" && break
6892  done
6893fi
6894if test -z "$CXX"; then
6895  ac_ct_CXX=$CXX
6896  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6897do
6898  # Extract the first word of "$ac_prog", so it can be a program name with args.
6899set dummy $ac_prog; ac_word=$2
6900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6903  echo $ECHO_N "(cached) $ECHO_C" >&6
6904else
6905  if test -n "$ac_ct_CXX"; then
6906  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6907else
6908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911  IFS=$as_save_IFS
6912  test -z "$as_dir" && as_dir=.
6913  for ac_exec_ext in '' $ac_executable_extensions; do
6914  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915    ac_cv_prog_ac_ct_CXX="$ac_prog"
6916    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917    break 2
6918  fi
6919done
6920done
6921IFS=$as_save_IFS
6922
6923fi
6924fi
6925ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6926if test -n "$ac_ct_CXX"; then
6927  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6928echo "${ECHO_T}$ac_ct_CXX" >&6; }
6929else
6930  { echo "$as_me:$LINENO: result: no" >&5
6931echo "${ECHO_T}no" >&6; }
6932fi
6933
6934
6935  test -n "$ac_ct_CXX" && break
6936done
6937
6938  if test "x$ac_ct_CXX" = x; then
6939    CXX="g++"
6940  else
6941    case $cross_compiling:$ac_tool_warned in
6942yes:)
6943{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6944whose name does not start with the host triplet.  If you think this
6945configuration is useful to you, please write to autoconf@gnu.org." >&5
6946echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6947whose name does not start with the host triplet.  If you think this
6948configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6949ac_tool_warned=yes ;;
6950esac
6951    CXX=$ac_ct_CXX
6952  fi
6953fi
6954
6955  fi
6956fi
6957# Provide some information about the compiler.
6958echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6959ac_compiler=`set X $ac_compile; echo $2`
6960{ (ac_try="$ac_compiler --version >&5"
6961case "(($ac_try" in
6962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6963  *) ac_try_echo=$ac_try;;
6964esac
6965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6966  (eval "$ac_compiler --version >&5") 2>&5
6967  ac_status=$?
6968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969  (exit $ac_status); }
6970{ (ac_try="$ac_compiler -v >&5"
6971case "(($ac_try" in
6972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973  *) ac_try_echo=$ac_try;;
6974esac
6975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976  (eval "$ac_compiler -v >&5") 2>&5
6977  ac_status=$?
6978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979  (exit $ac_status); }
6980{ (ac_try="$ac_compiler -V >&5"
6981case "(($ac_try" in
6982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983  *) ac_try_echo=$ac_try;;
6984esac
6985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986  (eval "$ac_compiler -V >&5") 2>&5
6987  ac_status=$?
6988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989  (exit $ac_status); }
6990
6991{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6992echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6993if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6994  echo $ECHO_N "(cached) $ECHO_C" >&6
6995else
6996  cat >conftest.$ac_ext <<_ACEOF
6997/* confdefs.h.  */
6998_ACEOF
6999cat confdefs.h >>conftest.$ac_ext
7000cat >>conftest.$ac_ext <<_ACEOF
7001/* end confdefs.h.  */
7002
7003int
7004main ()
7005{
7006#ifndef __GNUC__
7007       choke me
7008#endif
7009
7010  ;
7011  return 0;
7012}
7013_ACEOF
7014rm -f conftest.$ac_objext
7015if { (ac_try="$ac_compile"
7016case "(($ac_try" in
7017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018  *) ac_try_echo=$ac_try;;
7019esac
7020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7021  (eval "$ac_compile") 2>conftest.er1
7022  ac_status=$?
7023  grep -v '^ *+' conftest.er1 >conftest.err
7024  rm -f conftest.er1
7025  cat conftest.err >&5
7026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027  (exit $ac_status); } && {
7028	 test -z "$ac_cxx_werror_flag" ||
7029	 test ! -s conftest.err
7030       } && test -s conftest.$ac_objext; then
7031  ac_compiler_gnu=yes
7032else
7033  echo "$as_me: failed program was:" >&5
7034sed 's/^/| /' conftest.$ac_ext >&5
7035
7036	ac_compiler_gnu=no
7037fi
7038
7039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7041
7042fi
7043{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7044echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
7045GXX=`test $ac_compiler_gnu = yes && echo yes`
7046ac_test_CXXFLAGS=${CXXFLAGS+set}
7047ac_save_CXXFLAGS=$CXXFLAGS
7048{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7049echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
7050if test "${ac_cv_prog_cxx_g+set}" = set; then
7051  echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7054   ac_cxx_werror_flag=yes
7055   ac_cv_prog_cxx_g=no
7056   CXXFLAGS="-g"
7057   cat >conftest.$ac_ext <<_ACEOF
7058/* confdefs.h.  */
7059_ACEOF
7060cat confdefs.h >>conftest.$ac_ext
7061cat >>conftest.$ac_ext <<_ACEOF
7062/* end confdefs.h.  */
7063
7064int
7065main ()
7066{
7067
7068  ;
7069  return 0;
7070}
7071_ACEOF
7072rm -f conftest.$ac_objext
7073if { (ac_try="$ac_compile"
7074case "(($ac_try" in
7075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076  *) ac_try_echo=$ac_try;;
7077esac
7078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079  (eval "$ac_compile") 2>conftest.er1
7080  ac_status=$?
7081  grep -v '^ *+' conftest.er1 >conftest.err
7082  rm -f conftest.er1
7083  cat conftest.err >&5
7084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085  (exit $ac_status); } && {
7086	 test -z "$ac_cxx_werror_flag" ||
7087	 test ! -s conftest.err
7088       } && test -s conftest.$ac_objext; then
7089  ac_cv_prog_cxx_g=yes
7090else
7091  echo "$as_me: failed program was:" >&5
7092sed 's/^/| /' conftest.$ac_ext >&5
7093
7094	CXXFLAGS=""
7095      cat >conftest.$ac_ext <<_ACEOF
7096/* confdefs.h.  */
7097_ACEOF
7098cat confdefs.h >>conftest.$ac_ext
7099cat >>conftest.$ac_ext <<_ACEOF
7100/* end confdefs.h.  */
7101
7102int
7103main ()
7104{
7105
7106  ;
7107  return 0;
7108}
7109_ACEOF
7110rm -f conftest.$ac_objext
7111if { (ac_try="$ac_compile"
7112case "(($ac_try" in
7113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7114  *) ac_try_echo=$ac_try;;
7115esac
7116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7117  (eval "$ac_compile") 2>conftest.er1
7118  ac_status=$?
7119  grep -v '^ *+' conftest.er1 >conftest.err
7120  rm -f conftest.er1
7121  cat conftest.err >&5
7122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123  (exit $ac_status); } && {
7124	 test -z "$ac_cxx_werror_flag" ||
7125	 test ! -s conftest.err
7126       } && test -s conftest.$ac_objext; then
7127  :
7128else
7129  echo "$as_me: failed program was:" >&5
7130sed 's/^/| /' conftest.$ac_ext >&5
7131
7132	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7133	 CXXFLAGS="-g"
7134	 cat >conftest.$ac_ext <<_ACEOF
7135/* confdefs.h.  */
7136_ACEOF
7137cat confdefs.h >>conftest.$ac_ext
7138cat >>conftest.$ac_ext <<_ACEOF
7139/* end confdefs.h.  */
7140
7141int
7142main ()
7143{
7144
7145  ;
7146  return 0;
7147}
7148_ACEOF
7149rm -f conftest.$ac_objext
7150if { (ac_try="$ac_compile"
7151case "(($ac_try" in
7152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7153  *) ac_try_echo=$ac_try;;
7154esac
7155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7156  (eval "$ac_compile") 2>conftest.er1
7157  ac_status=$?
7158  grep -v '^ *+' conftest.er1 >conftest.err
7159  rm -f conftest.er1
7160  cat conftest.err >&5
7161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162  (exit $ac_status); } && {
7163	 test -z "$ac_cxx_werror_flag" ||
7164	 test ! -s conftest.err
7165       } && test -s conftest.$ac_objext; then
7166  ac_cv_prog_cxx_g=yes
7167else
7168  echo "$as_me: failed program was:" >&5
7169sed 's/^/| /' conftest.$ac_ext >&5
7170
7171
7172fi
7173
7174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7175fi
7176
7177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178fi
7179
7180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7182fi
7183{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7184echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
7185if test "$ac_test_CXXFLAGS" = set; then
7186  CXXFLAGS=$ac_save_CXXFLAGS
7187elif test $ac_cv_prog_cxx_g = yes; then
7188  if test "$GXX" = yes; then
7189    CXXFLAGS="-g -O2"
7190  else
7191    CXXFLAGS="-g"
7192  fi
7193else
7194  if test "$GXX" = yes; then
7195    CXXFLAGS="-O2"
7196  else
7197    CXXFLAGS=
7198  fi
7199fi
7200ac_ext=cpp
7201ac_cpp='$CXXCPP $CPPFLAGS'
7202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7205
7206depcc="$CXX"  am_compiler_list=
7207
7208{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7209echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
7210if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7211  echo $ECHO_N "(cached) $ECHO_C" >&6
7212else
7213  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7214  # We make a subdir and do the tests there.  Otherwise we can end up
7215  # making bogus files that we don't know about and never remove.  For
7216  # instance it was reported that on HP-UX the gcc test will end up
7217  # making a dummy file named `D' -- because `-MD' means `put the output
7218  # in D'.
7219  mkdir conftest.dir
7220  # Copy depcomp to subdir because otherwise we won't find it if we're
7221  # using a relative directory.
7222  cp "$am_depcomp" conftest.dir
7223  cd conftest.dir
7224  # We will build objects and dependencies in a subdirectory because
7225  # it helps to detect inapplicable dependency modes.  For instance
7226  # both Tru64's cc and ICC support -MD to output dependencies as a
7227  # side effect of compilation, but ICC will put the dependencies in
7228  # the current directory while Tru64 will put them in the object
7229  # directory.
7230  mkdir sub
7231
7232  am_cv_CXX_dependencies_compiler_type=none
7233  if test "$am_compiler_list" = ""; then
7234     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7235  fi
7236  for depmode in $am_compiler_list; do
7237    # Setup a source with many dependencies, because some compilers
7238    # like to wrap large dependency lists on column 80 (with \), and
7239    # we should not choose a depcomp mode which is confused by this.
7240    #
7241    # We need to recreate these files for each test, as the compiler may
7242    # overwrite some of them when testing with obscure command lines.
7243    # This happens at least with the AIX C compiler.
7244    : > sub/conftest.c
7245    for i in 1 2 3 4 5 6; do
7246      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7247      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7248      # Solaris 8's {/usr,}/bin/sh.
7249      touch sub/conftst$i.h
7250    done
7251    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7252
7253    case $depmode in
7254    nosideeffect)
7255      # after this tag, mechanisms are not by side-effect, so they'll
7256      # only be used when explicitly requested
7257      if test "x$enable_dependency_tracking" = xyes; then
7258	continue
7259      else
7260	break
7261      fi
7262      ;;
7263    none) break ;;
7264    esac
7265    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7266    # mode.  It turns out that the SunPro C++ compiler does not properly
7267    # handle `-M -o', and we need to detect this.
7268    if depmode=$depmode \
7269       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7270       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7271       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7272         >/dev/null 2>conftest.err &&
7273       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7274       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7275       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7276      # icc doesn't choke on unknown options, it will just issue warnings
7277      # or remarks (even with -Werror).  So we grep stderr for any message
7278      # that says an option was ignored or not supported.
7279      # When given -MP, icc 7.0 and 7.1 complain thusly:
7280      #   icc: Command line warning: ignoring option '-M'; no argument required
7281      # The diagnosis changed in icc 8.0:
7282      #   icc: Command line remark: option '-MP' not supported
7283      if (grep 'ignoring option' conftest.err ||
7284          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7285        am_cv_CXX_dependencies_compiler_type=$depmode
7286        break
7287      fi
7288    fi
7289  done
7290
7291  cd ..
7292  rm -rf conftest.dir
7293else
7294  am_cv_CXX_dependencies_compiler_type=none
7295fi
7296
7297fi
7298{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7299echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
7300CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7301
7302
7303
7304if
7305  test "x$enable_dependency_tracking" != xno \
7306  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7307  am__fastdepCXX_TRUE=
7308  am__fastdepCXX_FALSE='#'
7309else
7310  am__fastdepCXX_TRUE='#'
7311  am__fastdepCXX_FALSE=
7312fi
7313
7314
7315
7316
7317if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7318    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7319    (test "X$CXX" != "Xg++"))) ; then
7320  ac_ext=cpp
7321ac_cpp='$CXXCPP $CPPFLAGS'
7322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7325{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7326echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7327if test -z "$CXXCPP"; then
7328  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7329  echo $ECHO_N "(cached) $ECHO_C" >&6
7330else
7331      # Double quotes because CXXCPP needs to be expanded
7332    for CXXCPP in "$CXX -E" "/lib/cpp"
7333    do
7334      ac_preproc_ok=false
7335for ac_cxx_preproc_warn_flag in '' yes
7336do
7337  # Use a header file that comes with gcc, so configuring glibc
7338  # with a fresh cross-compiler works.
7339  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7340  # <limits.h> exists even on freestanding compilers.
7341  # On the NeXT, cc -E runs the code through the compiler's parser,
7342  # not just through cpp. "Syntax error" is here to catch this case.
7343  cat >conftest.$ac_ext <<_ACEOF
7344/* confdefs.h.  */
7345_ACEOF
7346cat confdefs.h >>conftest.$ac_ext
7347cat >>conftest.$ac_ext <<_ACEOF
7348/* end confdefs.h.  */
7349#ifdef __STDC__
7350# include <limits.h>
7351#else
7352# include <assert.h>
7353#endif
7354		     Syntax error
7355_ACEOF
7356if { (ac_try="$ac_cpp conftest.$ac_ext"
7357case "(($ac_try" in
7358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7359  *) ac_try_echo=$ac_try;;
7360esac
7361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7362  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7363  ac_status=$?
7364  grep -v '^ *+' conftest.er1 >conftest.err
7365  rm -f conftest.er1
7366  cat conftest.err >&5
7367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368  (exit $ac_status); } >/dev/null && {
7369	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7370	 test ! -s conftest.err
7371       }; then
7372  :
7373else
7374  echo "$as_me: failed program was:" >&5
7375sed 's/^/| /' conftest.$ac_ext >&5
7376
7377  # Broken: fails on valid input.
7378continue
7379fi
7380
7381rm -f conftest.err conftest.$ac_ext
7382
7383  # OK, works on sane cases.  Now check whether nonexistent headers
7384  # can be detected and how.
7385  cat >conftest.$ac_ext <<_ACEOF
7386/* confdefs.h.  */
7387_ACEOF
7388cat confdefs.h >>conftest.$ac_ext
7389cat >>conftest.$ac_ext <<_ACEOF
7390/* end confdefs.h.  */
7391#include <ac_nonexistent.h>
7392_ACEOF
7393if { (ac_try="$ac_cpp conftest.$ac_ext"
7394case "(($ac_try" in
7395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396  *) ac_try_echo=$ac_try;;
7397esac
7398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7400  ac_status=$?
7401  grep -v '^ *+' conftest.er1 >conftest.err
7402  rm -f conftest.er1
7403  cat conftest.err >&5
7404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405  (exit $ac_status); } >/dev/null && {
7406	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7407	 test ! -s conftest.err
7408       }; then
7409  # Broken: success on invalid input.
7410continue
7411else
7412  echo "$as_me: failed program was:" >&5
7413sed 's/^/| /' conftest.$ac_ext >&5
7414
7415  # Passes both tests.
7416ac_preproc_ok=:
7417break
7418fi
7419
7420rm -f conftest.err conftest.$ac_ext
7421
7422done
7423# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7424rm -f conftest.err conftest.$ac_ext
7425if $ac_preproc_ok; then
7426  break
7427fi
7428
7429    done
7430    ac_cv_prog_CXXCPP=$CXXCPP
7431
7432fi
7433  CXXCPP=$ac_cv_prog_CXXCPP
7434else
7435  ac_cv_prog_CXXCPP=$CXXCPP
7436fi
7437{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
7438echo "${ECHO_T}$CXXCPP" >&6; }
7439ac_preproc_ok=false
7440for ac_cxx_preproc_warn_flag in '' yes
7441do
7442  # Use a header file that comes with gcc, so configuring glibc
7443  # with a fresh cross-compiler works.
7444  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7445  # <limits.h> exists even on freestanding compilers.
7446  # On the NeXT, cc -E runs the code through the compiler's parser,
7447  # not just through cpp. "Syntax error" is here to catch this case.
7448  cat >conftest.$ac_ext <<_ACEOF
7449/* confdefs.h.  */
7450_ACEOF
7451cat confdefs.h >>conftest.$ac_ext
7452cat >>conftest.$ac_ext <<_ACEOF
7453/* end confdefs.h.  */
7454#ifdef __STDC__
7455# include <limits.h>
7456#else
7457# include <assert.h>
7458#endif
7459		     Syntax error
7460_ACEOF
7461if { (ac_try="$ac_cpp conftest.$ac_ext"
7462case "(($ac_try" in
7463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464  *) ac_try_echo=$ac_try;;
7465esac
7466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7468  ac_status=$?
7469  grep -v '^ *+' conftest.er1 >conftest.err
7470  rm -f conftest.er1
7471  cat conftest.err >&5
7472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473  (exit $ac_status); } >/dev/null && {
7474	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7475	 test ! -s conftest.err
7476       }; then
7477  :
7478else
7479  echo "$as_me: failed program was:" >&5
7480sed 's/^/| /' conftest.$ac_ext >&5
7481
7482  # Broken: fails on valid input.
7483continue
7484fi
7485
7486rm -f conftest.err conftest.$ac_ext
7487
7488  # OK, works on sane cases.  Now check whether nonexistent headers
7489  # can be detected and how.
7490  cat >conftest.$ac_ext <<_ACEOF
7491/* confdefs.h.  */
7492_ACEOF
7493cat confdefs.h >>conftest.$ac_ext
7494cat >>conftest.$ac_ext <<_ACEOF
7495/* end confdefs.h.  */
7496#include <ac_nonexistent.h>
7497_ACEOF
7498if { (ac_try="$ac_cpp conftest.$ac_ext"
7499case "(($ac_try" in
7500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501  *) ac_try_echo=$ac_try;;
7502esac
7503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7504  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7505  ac_status=$?
7506  grep -v '^ *+' conftest.er1 >conftest.err
7507  rm -f conftest.er1
7508  cat conftest.err >&5
7509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510  (exit $ac_status); } >/dev/null && {
7511	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7512	 test ! -s conftest.err
7513       }; then
7514  # Broken: success on invalid input.
7515continue
7516else
7517  echo "$as_me: failed program was:" >&5
7518sed 's/^/| /' conftest.$ac_ext >&5
7519
7520  # Passes both tests.
7521ac_preproc_ok=:
7522break
7523fi
7524
7525rm -f conftest.err conftest.$ac_ext
7526
7527done
7528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7529rm -f conftest.err conftest.$ac_ext
7530if $ac_preproc_ok; then
7531  :
7532else
7533  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7534See \`config.log' for more details." >&5
7535echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7536See \`config.log' for more details." >&2;}
7537   { (exit 1); exit 1; }; }
7538fi
7539
7540ac_ext=cpp
7541ac_cpp='$CXXCPP $CPPFLAGS'
7542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7545
7546fi
7547
7548
7549ac_ext=f
7550ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7551ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7552ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7553if test -n "$ac_tool_prefix"; then
7554  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7555  do
7556    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7557set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7560if test "${ac_cv_prog_F77+set}" = set; then
7561  echo $ECHO_N "(cached) $ECHO_C" >&6
7562else
7563  if test -n "$F77"; then
7564  ac_cv_prog_F77="$F77" # Let the user override the test.
7565else
7566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567for as_dir in $PATH
7568do
7569  IFS=$as_save_IFS
7570  test -z "$as_dir" && as_dir=.
7571  for ac_exec_ext in '' $ac_executable_extensions; do
7572  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7573    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7574    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575    break 2
7576  fi
7577done
7578done
7579IFS=$as_save_IFS
7580
7581fi
7582fi
7583F77=$ac_cv_prog_F77
7584if test -n "$F77"; then
7585  { echo "$as_me:$LINENO: result: $F77" >&5
7586echo "${ECHO_T}$F77" >&6; }
7587else
7588  { echo "$as_me:$LINENO: result: no" >&5
7589echo "${ECHO_T}no" >&6; }
7590fi
7591
7592
7593    test -n "$F77" && break
7594  done
7595fi
7596if test -z "$F77"; then
7597  ac_ct_F77=$F77
7598  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7599do
7600  # Extract the first word of "$ac_prog", so it can be a program name with args.
7601set dummy $ac_prog; ac_word=$2
7602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7604if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7605  echo $ECHO_N "(cached) $ECHO_C" >&6
7606else
7607  if test -n "$ac_ct_F77"; then
7608  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7609else
7610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611for as_dir in $PATH
7612do
7613  IFS=$as_save_IFS
7614  test -z "$as_dir" && as_dir=.
7615  for ac_exec_ext in '' $ac_executable_extensions; do
7616  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7617    ac_cv_prog_ac_ct_F77="$ac_prog"
7618    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619    break 2
7620  fi
7621done
7622done
7623IFS=$as_save_IFS
7624
7625fi
7626fi
7627ac_ct_F77=$ac_cv_prog_ac_ct_F77
7628if test -n "$ac_ct_F77"; then
7629  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7630echo "${ECHO_T}$ac_ct_F77" >&6; }
7631else
7632  { echo "$as_me:$LINENO: result: no" >&5
7633echo "${ECHO_T}no" >&6; }
7634fi
7635
7636
7637  test -n "$ac_ct_F77" && break
7638done
7639
7640  if test "x$ac_ct_F77" = x; then
7641    F77=""
7642  else
7643    case $cross_compiling:$ac_tool_warned in
7644yes:)
7645{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7646whose name does not start with the host triplet.  If you think this
7647configuration is useful to you, please write to autoconf@gnu.org." >&5
7648echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7649whose name does not start with the host triplet.  If you think this
7650configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7651ac_tool_warned=yes ;;
7652esac
7653    F77=$ac_ct_F77
7654  fi
7655fi
7656
7657
7658# Provide some information about the compiler.
7659echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7660ac_compiler=`set X $ac_compile; echo $2`
7661{ (ac_try="$ac_compiler --version >&5"
7662case "(($ac_try" in
7663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664  *) ac_try_echo=$ac_try;;
7665esac
7666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7667  (eval "$ac_compiler --version >&5") 2>&5
7668  ac_status=$?
7669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670  (exit $ac_status); }
7671{ (ac_try="$ac_compiler -v >&5"
7672case "(($ac_try" in
7673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7674  *) ac_try_echo=$ac_try;;
7675esac
7676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7677  (eval "$ac_compiler -v >&5") 2>&5
7678  ac_status=$?
7679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680  (exit $ac_status); }
7681{ (ac_try="$ac_compiler -V >&5"
7682case "(($ac_try" in
7683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7684  *) ac_try_echo=$ac_try;;
7685esac
7686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687  (eval "$ac_compiler -V >&5") 2>&5
7688  ac_status=$?
7689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690  (exit $ac_status); }
7691rm -f a.out
7692
7693# If we don't use `.F' as extension, the preprocessor is not run on the
7694# input file.  (Note that this only needs to work for GNU compilers.)
7695ac_save_ext=$ac_ext
7696ac_ext=F
7697{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7698echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7699if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7700  echo $ECHO_N "(cached) $ECHO_C" >&6
7701else
7702  cat >conftest.$ac_ext <<_ACEOF
7703      program main
7704#ifndef __GNUC__
7705       choke me
7706#endif
7707
7708      end
7709_ACEOF
7710rm -f conftest.$ac_objext
7711if { (ac_try="$ac_compile"
7712case "(($ac_try" in
7713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714  *) ac_try_echo=$ac_try;;
7715esac
7716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717  (eval "$ac_compile") 2>conftest.er1
7718  ac_status=$?
7719  grep -v '^ *+' conftest.er1 >conftest.err
7720  rm -f conftest.er1
7721  cat conftest.err >&5
7722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723  (exit $ac_status); } && {
7724	 test -z "$ac_f77_werror_flag" ||
7725	 test ! -s conftest.err
7726       } && test -s conftest.$ac_objext; then
7727  ac_compiler_gnu=yes
7728else
7729  echo "$as_me: failed program was:" >&5
7730sed 's/^/| /' conftest.$ac_ext >&5
7731
7732	ac_compiler_gnu=no
7733fi
7734
7735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7737
7738fi
7739{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7740echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7741ac_ext=$ac_save_ext
7742ac_test_FFLAGS=${FFLAGS+set}
7743ac_save_FFLAGS=$FFLAGS
7744FFLAGS=
7745{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7746echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7747if test "${ac_cv_prog_f77_g+set}" = set; then
7748  echo $ECHO_N "(cached) $ECHO_C" >&6
7749else
7750  FFLAGS=-g
7751cat >conftest.$ac_ext <<_ACEOF
7752      program main
7753
7754      end
7755_ACEOF
7756rm -f conftest.$ac_objext
7757if { (ac_try="$ac_compile"
7758case "(($ac_try" in
7759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7760  *) ac_try_echo=$ac_try;;
7761esac
7762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7763  (eval "$ac_compile") 2>conftest.er1
7764  ac_status=$?
7765  grep -v '^ *+' conftest.er1 >conftest.err
7766  rm -f conftest.er1
7767  cat conftest.err >&5
7768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769  (exit $ac_status); } && {
7770	 test -z "$ac_f77_werror_flag" ||
7771	 test ! -s conftest.err
7772       } && test -s conftest.$ac_objext; then
7773  ac_cv_prog_f77_g=yes
7774else
7775  echo "$as_me: failed program was:" >&5
7776sed 's/^/| /' conftest.$ac_ext >&5
7777
7778	ac_cv_prog_f77_g=no
7779fi
7780
7781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782
7783fi
7784{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7785echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7786if test "$ac_test_FFLAGS" = set; then
7787  FFLAGS=$ac_save_FFLAGS
7788elif test $ac_cv_prog_f77_g = yes; then
7789  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7790    FFLAGS="-g -O2"
7791  else
7792    FFLAGS="-g"
7793  fi
7794else
7795  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7796    FFLAGS="-O2"
7797  else
7798    FFLAGS=
7799  fi
7800fi
7801
7802G77=`test $ac_compiler_gnu = yes && echo yes`
7803ac_ext=c
7804ac_cpp='$CPP $CPPFLAGS'
7805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807ac_compiler_gnu=$ac_cv_c_compiler_gnu
7808
7809
7810
7811# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7812
7813# find the maximum length of command line arguments
7814{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7815echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7816if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7817  echo $ECHO_N "(cached) $ECHO_C" >&6
7818else
7819    i=0
7820  teststring="ABCD"
7821
7822  case $build_os in
7823  msdosdjgpp*)
7824    # On DJGPP, this test can blow up pretty badly due to problems in libc
7825    # (any single argument exceeding 2000 bytes causes a buffer overrun
7826    # during glob expansion).  Even if it were fixed, the result of this
7827    # check would be larger than it should be.
7828    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7829    ;;
7830
7831  gnu*)
7832    # Under GNU Hurd, this test is not required because there is
7833    # no limit to the length of command line arguments.
7834    # Libtool will interpret -1 as no limit whatsoever
7835    lt_cv_sys_max_cmd_len=-1;
7836    ;;
7837
7838  cygwin* | mingw*)
7839    # On Win9x/ME, this test blows up -- it succeeds, but takes
7840    # about 5 minutes as the teststring grows exponentially.
7841    # Worse, since 9x/ME are not pre-emptively multitasking,
7842    # you end up with a "frozen" computer, even though with patience
7843    # the test eventually succeeds (with a max line length of 256k).
7844    # Instead, let's just punt: use the minimum linelength reported by
7845    # all of the supported platforms: 8192 (on NT/2K/XP).
7846    lt_cv_sys_max_cmd_len=8192;
7847    ;;
7848
7849  amigaos*)
7850    # On AmigaOS with pdksh, this test takes hours, literally.
7851    # So we just punt and use a minimum line length of 8192.
7852    lt_cv_sys_max_cmd_len=8192;
7853    ;;
7854
7855  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7856    # This has been around since 386BSD, at least.  Likely further.
7857    if test -x /sbin/sysctl; then
7858      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7859    elif test -x /usr/sbin/sysctl; then
7860      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7861    else
7862      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7863    fi
7864    # And add a safety zone
7865    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7866    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7867    ;;
7868
7869  interix*)
7870    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7871    lt_cv_sys_max_cmd_len=196608
7872    ;;
7873
7874  osf*)
7875    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7876    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7877    # nice to cause kernel panics so lets avoid the loop below.
7878    # First set a reasonable default.
7879    lt_cv_sys_max_cmd_len=16384
7880    #
7881    if test -x /sbin/sysconfig; then
7882      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7883        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7884      esac
7885    fi
7886    ;;
7887  sco3.2v5*)
7888    lt_cv_sys_max_cmd_len=102400
7889    ;;
7890  sysv5* | sco5v6* | sysv4.2uw2*)
7891    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7892    if test -n "$kargmax"; then
7893      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
7894    else
7895      lt_cv_sys_max_cmd_len=32768
7896    fi
7897    ;;
7898  *)
7899    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7900    if test -n "$lt_cv_sys_max_cmd_len"; then
7901      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7902      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7903    else
7904      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7905      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7906	       = "XX$teststring") >/dev/null 2>&1 &&
7907	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
7908	      lt_cv_sys_max_cmd_len=$new_result &&
7909	      test $i != 17 # 1/2 MB should be enough
7910      do
7911        i=`expr $i + 1`
7912        teststring=$teststring$teststring
7913      done
7914      teststring=
7915      # Add a significant safety factor because C++ compilers can tack on massive
7916      # amounts of additional arguments before passing them to the linker.
7917      # It appears as though 1/2 is a usable value.
7918      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7919    fi
7920    ;;
7921  esac
7922
7923fi
7924
7925if test -n $lt_cv_sys_max_cmd_len ; then
7926  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7927echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7928else
7929  { echo "$as_me:$LINENO: result: none" >&5
7930echo "${ECHO_T}none" >&6; }
7931fi
7932
7933
7934
7935
7936
7937# Check for command to grab the raw symbol name followed by C symbol from nm.
7938{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7939echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7940if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7941  echo $ECHO_N "(cached) $ECHO_C" >&6
7942else
7943
7944# These are sane defaults that work on at least a few old systems.
7945# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7946
7947# Character class describing NM global symbol codes.
7948symcode='[BCDEGRST]'
7949
7950# Regexp to match symbols that can be accessed directly from C.
7951sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7952
7953# Transform an extracted symbol line into a proper C declaration
7954lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7955
7956# Transform an extracted symbol line into symbol name and symbol address
7957lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7958
7959# Define system-specific variables.
7960case $host_os in
7961aix*)
7962  symcode='[BCDT]'
7963  ;;
7964cygwin* | mingw* | pw32*)
7965  symcode='[ABCDGISTW]'
7966  ;;
7967hpux*) # Its linker distinguishes data from code symbols
7968  if test "$host_cpu" = ia64; then
7969    symcode='[ABCDEGRST]'
7970  fi
7971  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7972  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7973  ;;
7974linux* | k*bsd*-gnu)
7975  if test "$host_cpu" = ia64; then
7976    symcode='[ABCDGIRSTW]'
7977    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7978    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7979  fi
7980  ;;
7981irix* | nonstopux*)
7982  symcode='[BCDEGRST]'
7983  ;;
7984osf*)
7985  symcode='[BCDEGQRST]'
7986  ;;
7987solaris*)
7988  symcode='[BDRT]'
7989  ;;
7990sco3.2v5*)
7991  symcode='[DT]'
7992  ;;
7993sysv4.2uw2*)
7994  symcode='[DT]'
7995  ;;
7996sysv5* | sco5v6* | unixware* | OpenUNIX*)
7997  symcode='[ABDT]'
7998  ;;
7999sysv4)
8000  symcode='[DFNSTU]'
8001  ;;
8002esac
8003
8004# Handle CRLF in mingw tool chain
8005opt_cr=
8006case $build_os in
8007mingw*)
8008  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8009  ;;
8010esac
8011
8012# If we're using GNU nm, then use its standard symbol codes.
8013case `$NM -V 2>&1` in
8014*GNU* | *'with BFD'*)
8015  symcode='[ABCDGIRSTW]' ;;
8016esac
8017
8018# Try without a prefix undercore, then with it.
8019for ac_symprfx in "" "_"; do
8020
8021  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8022  symxfrm="\\1 $ac_symprfx\\2 \\2"
8023
8024  # Write the raw and C identifiers.
8025  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8026
8027  # Check to see that the pipe works correctly.
8028  pipe_works=no
8029
8030  rm -f conftest*
8031  cat > conftest.$ac_ext <<EOF
8032#ifdef __cplusplus
8033extern "C" {
8034#endif
8035char nm_test_var;
8036void nm_test_func(){}
8037#ifdef __cplusplus
8038}
8039#endif
8040int main(){nm_test_var='a';nm_test_func();return(0);}
8041EOF
8042
8043  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8044  (eval $ac_compile) 2>&5
8045  ac_status=$?
8046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047  (exit $ac_status); }; then
8048    # Now try to grab the symbols.
8049    nlist=conftest.nm
8050    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8051  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8052  ac_status=$?
8053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054  (exit $ac_status); } && test -s "$nlist"; then
8055      # Try sorting and uniquifying the output.
8056      if sort "$nlist" | uniq > "$nlist"T; then
8057	mv -f "$nlist"T "$nlist"
8058      else
8059	rm -f "$nlist"T
8060      fi
8061
8062      # Make sure that we snagged all the symbols we need.
8063      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8064	if grep ' nm_test_func$' "$nlist" >/dev/null; then
8065	  cat <<EOF > conftest.$ac_ext
8066#ifdef __cplusplus
8067extern "C" {
8068#endif
8069
8070EOF
8071	  # Now generate the symbol file.
8072	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8073
8074	  cat <<EOF >> conftest.$ac_ext
8075#if defined (__STDC__) && __STDC__
8076# define lt_ptr_t void *
8077#else
8078# define lt_ptr_t char *
8079# define const
8080#endif
8081
8082/* The mapping between symbol names and symbols. */
8083const struct {
8084  const char *name;
8085  lt_ptr_t address;
8086}
8087lt_preloaded_symbols[] =
8088{
8089EOF
8090	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8091	  cat <<\EOF >> conftest.$ac_ext
8092  {0, (lt_ptr_t) 0}
8093};
8094
8095#ifdef __cplusplus
8096}
8097#endif
8098EOF
8099	  # Now try linking the two files.
8100	  mv conftest.$ac_objext conftstm.$ac_objext
8101	  lt_save_LIBS="$LIBS"
8102	  lt_save_CFLAGS="$CFLAGS"
8103	  LIBS="conftstm.$ac_objext"
8104	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8105	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8106  (eval $ac_link) 2>&5
8107  ac_status=$?
8108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8110	    pipe_works=yes
8111	  fi
8112	  LIBS="$lt_save_LIBS"
8113	  CFLAGS="$lt_save_CFLAGS"
8114	else
8115	  echo "cannot find nm_test_func in $nlist" >&5
8116	fi
8117      else
8118	echo "cannot find nm_test_var in $nlist" >&5
8119      fi
8120    else
8121      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8122    fi
8123  else
8124    echo "$progname: failed program was:" >&5
8125    cat conftest.$ac_ext >&5
8126  fi
8127  rm -f conftest* conftst*
8128
8129  # Do not use the global_symbol_pipe unless it works.
8130  if test "$pipe_works" = yes; then
8131    break
8132  else
8133    lt_cv_sys_global_symbol_pipe=
8134  fi
8135done
8136
8137fi
8138
8139if test -z "$lt_cv_sys_global_symbol_pipe"; then
8140  lt_cv_sys_global_symbol_to_cdecl=
8141fi
8142if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8143  { echo "$as_me:$LINENO: result: failed" >&5
8144echo "${ECHO_T}failed" >&6; }
8145else
8146  { echo "$as_me:$LINENO: result: ok" >&5
8147echo "${ECHO_T}ok" >&6; }
8148fi
8149
8150{ echo "$as_me:$LINENO: checking for objdir" >&5
8151echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8152if test "${lt_cv_objdir+set}" = set; then
8153  echo $ECHO_N "(cached) $ECHO_C" >&6
8154else
8155  rm -f .libs 2>/dev/null
8156mkdir .libs 2>/dev/null
8157if test -d .libs; then
8158  lt_cv_objdir=.libs
8159else
8160  # MS-DOS does not allow filenames that begin with a dot.
8161  lt_cv_objdir=_libs
8162fi
8163rmdir .libs 2>/dev/null
8164fi
8165{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8166echo "${ECHO_T}$lt_cv_objdir" >&6; }
8167objdir=$lt_cv_objdir
8168
8169
8170
8171
8172
8173case $host_os in
8174aix3*)
8175  # AIX sometimes has problems with the GCC collect2 program.  For some
8176  # reason, if we set the COLLECT_NAMES environment variable, the problems
8177  # vanish in a puff of smoke.
8178  if test "X${COLLECT_NAMES+set}" != Xset; then
8179    COLLECT_NAMES=
8180    export COLLECT_NAMES
8181  fi
8182  ;;
8183esac
8184
8185# Sed substitution that helps us do robust quoting.  It backslashifies
8186# metacharacters that are still active within double-quoted strings.
8187Xsed='sed -e 1s/^X//'
8188sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8189
8190# Same as above, but do not quote variable references.
8191double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8192
8193# Sed substitution to delay expansion of an escaped shell variable in a
8194# double_quote_subst'ed string.
8195delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8196
8197# Sed substitution to avoid accidental globbing in evaled expressions
8198no_glob_subst='s/\*/\\\*/g'
8199
8200# Constants:
8201rm="rm -f"
8202
8203# Global variables:
8204default_ofile=libtool
8205can_build_shared=yes
8206
8207# All known linkers require a `.a' archive for static linking (except MSVC,
8208# which needs '.lib').
8209libext=a
8210ltmain="$ac_aux_dir/ltmain.sh"
8211ofile="$default_ofile"
8212with_gnu_ld="$lt_cv_prog_gnu_ld"
8213
8214if test -n "$ac_tool_prefix"; then
8215  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8216set dummy ${ac_tool_prefix}ar; ac_word=$2
8217{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8219if test "${ac_cv_prog_AR+set}" = set; then
8220  echo $ECHO_N "(cached) $ECHO_C" >&6
8221else
8222  if test -n "$AR"; then
8223  ac_cv_prog_AR="$AR" # Let the user override the test.
8224else
8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226for as_dir in $PATH
8227do
8228  IFS=$as_save_IFS
8229  test -z "$as_dir" && as_dir=.
8230  for ac_exec_ext in '' $ac_executable_extensions; do
8231  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232    ac_cv_prog_AR="${ac_tool_prefix}ar"
8233    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8234    break 2
8235  fi
8236done
8237done
8238IFS=$as_save_IFS
8239
8240fi
8241fi
8242AR=$ac_cv_prog_AR
8243if test -n "$AR"; then
8244  { echo "$as_me:$LINENO: result: $AR" >&5
8245echo "${ECHO_T}$AR" >&6; }
8246else
8247  { echo "$as_me:$LINENO: result: no" >&5
8248echo "${ECHO_T}no" >&6; }
8249fi
8250
8251
8252fi
8253if test -z "$ac_cv_prog_AR"; then
8254  ac_ct_AR=$AR
8255  # Extract the first word of "ar", so it can be a program name with args.
8256set dummy ar; ac_word=$2
8257{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8259if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8260  echo $ECHO_N "(cached) $ECHO_C" >&6
8261else
8262  if test -n "$ac_ct_AR"; then
8263  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8264else
8265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266for as_dir in $PATH
8267do
8268  IFS=$as_save_IFS
8269  test -z "$as_dir" && as_dir=.
8270  for ac_exec_ext in '' $ac_executable_extensions; do
8271  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8272    ac_cv_prog_ac_ct_AR="ar"
8273    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8274    break 2
8275  fi
8276done
8277done
8278IFS=$as_save_IFS
8279
8280fi
8281fi
8282ac_ct_AR=$ac_cv_prog_ac_ct_AR
8283if test -n "$ac_ct_AR"; then
8284  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8285echo "${ECHO_T}$ac_ct_AR" >&6; }
8286else
8287  { echo "$as_me:$LINENO: result: no" >&5
8288echo "${ECHO_T}no" >&6; }
8289fi
8290
8291  if test "x$ac_ct_AR" = x; then
8292    AR="false"
8293  else
8294    case $cross_compiling:$ac_tool_warned in
8295yes:)
8296{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8297whose name does not start with the host triplet.  If you think this
8298configuration is useful to you, please write to autoconf@gnu.org." >&5
8299echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8300whose name does not start with the host triplet.  If you think this
8301configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8302ac_tool_warned=yes ;;
8303esac
8304    AR=$ac_ct_AR
8305  fi
8306else
8307  AR="$ac_cv_prog_AR"
8308fi
8309
8310if test -n "$ac_tool_prefix"; then
8311  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8312set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8313{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8315if test "${ac_cv_prog_RANLIB+set}" = set; then
8316  echo $ECHO_N "(cached) $ECHO_C" >&6
8317else
8318  if test -n "$RANLIB"; then
8319  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8320else
8321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322for as_dir in $PATH
8323do
8324  IFS=$as_save_IFS
8325  test -z "$as_dir" && as_dir=.
8326  for ac_exec_ext in '' $ac_executable_extensions; do
8327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8328    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8329    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8330    break 2
8331  fi
8332done
8333done
8334IFS=$as_save_IFS
8335
8336fi
8337fi
8338RANLIB=$ac_cv_prog_RANLIB
8339if test -n "$RANLIB"; then
8340  { echo "$as_me:$LINENO: result: $RANLIB" >&5
8341echo "${ECHO_T}$RANLIB" >&6; }
8342else
8343  { echo "$as_me:$LINENO: result: no" >&5
8344echo "${ECHO_T}no" >&6; }
8345fi
8346
8347
8348fi
8349if test -z "$ac_cv_prog_RANLIB"; then
8350  ac_ct_RANLIB=$RANLIB
8351  # Extract the first word of "ranlib", so it can be a program name with args.
8352set dummy ranlib; ac_word=$2
8353{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8355if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8356  echo $ECHO_N "(cached) $ECHO_C" >&6
8357else
8358  if test -n "$ac_ct_RANLIB"; then
8359  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8360else
8361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362for as_dir in $PATH
8363do
8364  IFS=$as_save_IFS
8365  test -z "$as_dir" && as_dir=.
8366  for ac_exec_ext in '' $ac_executable_extensions; do
8367  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8368    ac_cv_prog_ac_ct_RANLIB="ranlib"
8369    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8370    break 2
8371  fi
8372done
8373done
8374IFS=$as_save_IFS
8375
8376fi
8377fi
8378ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8379if test -n "$ac_ct_RANLIB"; then
8380  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8381echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8382else
8383  { echo "$as_me:$LINENO: result: no" >&5
8384echo "${ECHO_T}no" >&6; }
8385fi
8386
8387  if test "x$ac_ct_RANLIB" = x; then
8388    RANLIB=":"
8389  else
8390    case $cross_compiling:$ac_tool_warned in
8391yes:)
8392{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8393whose name does not start with the host triplet.  If you think this
8394configuration is useful to you, please write to autoconf@gnu.org." >&5
8395echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8396whose name does not start with the host triplet.  If you think this
8397configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8398ac_tool_warned=yes ;;
8399esac
8400    RANLIB=$ac_ct_RANLIB
8401  fi
8402else
8403  RANLIB="$ac_cv_prog_RANLIB"
8404fi
8405
8406if test -n "$ac_tool_prefix"; then
8407  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8408set dummy ${ac_tool_prefix}strip; ac_word=$2
8409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8411if test "${ac_cv_prog_STRIP+set}" = set; then
8412  echo $ECHO_N "(cached) $ECHO_C" >&6
8413else
8414  if test -n "$STRIP"; then
8415  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8416else
8417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418for as_dir in $PATH
8419do
8420  IFS=$as_save_IFS
8421  test -z "$as_dir" && as_dir=.
8422  for ac_exec_ext in '' $ac_executable_extensions; do
8423  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8424    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8425    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8426    break 2
8427  fi
8428done
8429done
8430IFS=$as_save_IFS
8431
8432fi
8433fi
8434STRIP=$ac_cv_prog_STRIP
8435if test -n "$STRIP"; then
8436  { echo "$as_me:$LINENO: result: $STRIP" >&5
8437echo "${ECHO_T}$STRIP" >&6; }
8438else
8439  { echo "$as_me:$LINENO: result: no" >&5
8440echo "${ECHO_T}no" >&6; }
8441fi
8442
8443
8444fi
8445if test -z "$ac_cv_prog_STRIP"; then
8446  ac_ct_STRIP=$STRIP
8447  # Extract the first word of "strip", so it can be a program name with args.
8448set dummy strip; ac_word=$2
8449{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8451if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8452  echo $ECHO_N "(cached) $ECHO_C" >&6
8453else
8454  if test -n "$ac_ct_STRIP"; then
8455  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8456else
8457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458for as_dir in $PATH
8459do
8460  IFS=$as_save_IFS
8461  test -z "$as_dir" && as_dir=.
8462  for ac_exec_ext in '' $ac_executable_extensions; do
8463  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8464    ac_cv_prog_ac_ct_STRIP="strip"
8465    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8466    break 2
8467  fi
8468done
8469done
8470IFS=$as_save_IFS
8471
8472fi
8473fi
8474ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8475if test -n "$ac_ct_STRIP"; then
8476  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8477echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8478else
8479  { echo "$as_me:$LINENO: result: no" >&5
8480echo "${ECHO_T}no" >&6; }
8481fi
8482
8483  if test "x$ac_ct_STRIP" = x; then
8484    STRIP=":"
8485  else
8486    case $cross_compiling:$ac_tool_warned in
8487yes:)
8488{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8489whose name does not start with the host triplet.  If you think this
8490configuration is useful to you, please write to autoconf@gnu.org." >&5
8491echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8492whose name does not start with the host triplet.  If you think this
8493configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8494ac_tool_warned=yes ;;
8495esac
8496    STRIP=$ac_ct_STRIP
8497  fi
8498else
8499  STRIP="$ac_cv_prog_STRIP"
8500fi
8501
8502
8503old_CC="$CC"
8504old_CFLAGS="$CFLAGS"
8505
8506# Set sane defaults for various variables
8507test -z "$AR" && AR=ar
8508test -z "$AR_FLAGS" && AR_FLAGS=cru
8509test -z "$AS" && AS=as
8510test -z "$CC" && CC=cc
8511test -z "$LTCC" && LTCC=$CC
8512test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8513test -z "$DLLTOOL" && DLLTOOL=dlltool
8514test -z "$LD" && LD=ld
8515test -z "$LN_S" && LN_S="ln -s"
8516test -z "$MAGIC_CMD" && MAGIC_CMD=file
8517test -z "$NM" && NM=nm
8518test -z "$SED" && SED=sed
8519test -z "$OBJDUMP" && OBJDUMP=objdump
8520test -z "$RANLIB" && RANLIB=:
8521test -z "$STRIP" && STRIP=:
8522test -z "$ac_objext" && ac_objext=o
8523
8524# Determine commands to create old-style static archives.
8525old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8526old_postinstall_cmds='chmod 644 $oldlib'
8527old_postuninstall_cmds=
8528
8529if test -n "$RANLIB"; then
8530  case $host_os in
8531  openbsd*)
8532    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8533    ;;
8534  *)
8535    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8536    ;;
8537  esac
8538  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8539fi
8540
8541for cc_temp in $compiler""; do
8542  case $cc_temp in
8543    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8544    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8545    \-*) ;;
8546    *) break;;
8547  esac
8548done
8549cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8550
8551
8552# Only perform the check for file, if the check method requires it
8553case $deplibs_check_method in
8554file_magic*)
8555  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8556    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8557echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8558if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8559  echo $ECHO_N "(cached) $ECHO_C" >&6
8560else
8561  case $MAGIC_CMD in
8562[\\/*] |  ?:[\\/]*)
8563  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8564  ;;
8565*)
8566  lt_save_MAGIC_CMD="$MAGIC_CMD"
8567  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8568  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8569  for ac_dir in $ac_dummy; do
8570    IFS="$lt_save_ifs"
8571    test -z "$ac_dir" && ac_dir=.
8572    if test -f $ac_dir/${ac_tool_prefix}file; then
8573      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8574      if test -n "$file_magic_test_file"; then
8575	case $deplibs_check_method in
8576	"file_magic "*)
8577	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8578	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8579	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8580	    $EGREP "$file_magic_regex" > /dev/null; then
8581	    :
8582	  else
8583	    cat <<EOF 1>&2
8584
8585*** Warning: the command libtool uses to detect shared libraries,
8586*** $file_magic_cmd, produces output that libtool cannot recognize.
8587*** The result is that libtool may fail to recognize shared libraries
8588*** as such.  This will affect the creation of libtool libraries that
8589*** depend on shared libraries, but programs linked with such libtool
8590*** libraries will work regardless of this problem.  Nevertheless, you
8591*** may want to report the problem to your system manager and/or to
8592*** bug-libtool@gnu.org
8593
8594EOF
8595	  fi ;;
8596	esac
8597      fi
8598      break
8599    fi
8600  done
8601  IFS="$lt_save_ifs"
8602  MAGIC_CMD="$lt_save_MAGIC_CMD"
8603  ;;
8604esac
8605fi
8606
8607MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8608if test -n "$MAGIC_CMD"; then
8609  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8610echo "${ECHO_T}$MAGIC_CMD" >&6; }
8611else
8612  { echo "$as_me:$LINENO: result: no" >&5
8613echo "${ECHO_T}no" >&6; }
8614fi
8615
8616if test -z "$lt_cv_path_MAGIC_CMD"; then
8617  if test -n "$ac_tool_prefix"; then
8618    { echo "$as_me:$LINENO: checking for file" >&5
8619echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8620if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8621  echo $ECHO_N "(cached) $ECHO_C" >&6
8622else
8623  case $MAGIC_CMD in
8624[\\/*] |  ?:[\\/]*)
8625  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8626  ;;
8627*)
8628  lt_save_MAGIC_CMD="$MAGIC_CMD"
8629  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8630  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8631  for ac_dir in $ac_dummy; do
8632    IFS="$lt_save_ifs"
8633    test -z "$ac_dir" && ac_dir=.
8634    if test -f $ac_dir/file; then
8635      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8636      if test -n "$file_magic_test_file"; then
8637	case $deplibs_check_method in
8638	"file_magic "*)
8639	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8640	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8641	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8642	    $EGREP "$file_magic_regex" > /dev/null; then
8643	    :
8644	  else
8645	    cat <<EOF 1>&2
8646
8647*** Warning: the command libtool uses to detect shared libraries,
8648*** $file_magic_cmd, produces output that libtool cannot recognize.
8649*** The result is that libtool may fail to recognize shared libraries
8650*** as such.  This will affect the creation of libtool libraries that
8651*** depend on shared libraries, but programs linked with such libtool
8652*** libraries will work regardless of this problem.  Nevertheless, you
8653*** may want to report the problem to your system manager and/or to
8654*** bug-libtool@gnu.org
8655
8656EOF
8657	  fi ;;
8658	esac
8659      fi
8660      break
8661    fi
8662  done
8663  IFS="$lt_save_ifs"
8664  MAGIC_CMD="$lt_save_MAGIC_CMD"
8665  ;;
8666esac
8667fi
8668
8669MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8670if test -n "$MAGIC_CMD"; then
8671  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8672echo "${ECHO_T}$MAGIC_CMD" >&6; }
8673else
8674  { echo "$as_me:$LINENO: result: no" >&5
8675echo "${ECHO_T}no" >&6; }
8676fi
8677
8678  else
8679    MAGIC_CMD=:
8680  fi
8681fi
8682
8683  fi
8684  ;;
8685esac
8686
8687enable_dlopen=no
8688enable_win32_dll=no
8689
8690# Check whether --enable-libtool-lock was given.
8691if test "${enable_libtool_lock+set}" = set; then
8692  enableval=$enable_libtool_lock;
8693fi
8694
8695test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8696
8697
8698# Check whether --with-pic was given.
8699if test "${with_pic+set}" = set; then
8700  withval=$with_pic; pic_mode="$withval"
8701else
8702  pic_mode=default
8703fi
8704
8705test -z "$pic_mode" && pic_mode=default
8706
8707# Use C for the default configuration in the libtool script
8708tagname=
8709lt_save_CC="$CC"
8710ac_ext=c
8711ac_cpp='$CPP $CPPFLAGS'
8712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8714ac_compiler_gnu=$ac_cv_c_compiler_gnu
8715
8716
8717# Source file extension for C test sources.
8718ac_ext=c
8719
8720# Object file extension for compiled C test sources.
8721objext=o
8722objext=$objext
8723
8724# Code to be used in simple compile tests
8725lt_simple_compile_test_code="int some_variable = 0;"
8726
8727# Code to be used in simple link tests
8728lt_simple_link_test_code='int main(){return(0);}'
8729
8730
8731# If no C compiler was specified, use CC.
8732LTCC=${LTCC-"$CC"}
8733
8734# If no C compiler flags were specified, use CFLAGS.
8735LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8736
8737# Allow CC to be a program name with arguments.
8738compiler=$CC
8739
8740
8741# save warnings/boilerplate of simple test code
8742ac_outfile=conftest.$ac_objext
8743echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8744eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8745_lt_compiler_boilerplate=`cat conftest.err`
8746$rm conftest*
8747
8748ac_outfile=conftest.$ac_objext
8749echo "$lt_simple_link_test_code" >conftest.$ac_ext
8750eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8751_lt_linker_boilerplate=`cat conftest.err`
8752$rm conftest*
8753
8754
8755
8756lt_prog_compiler_no_builtin_flag=
8757
8758if test "$GCC" = yes; then
8759  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8760
8761
8762{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8763echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8764if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8765  echo $ECHO_N "(cached) $ECHO_C" >&6
8766else
8767  lt_cv_prog_compiler_rtti_exceptions=no
8768  ac_outfile=conftest.$ac_objext
8769   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8770   lt_compiler_flag="-fno-rtti -fno-exceptions"
8771   # Insert the option either (1) after the last *FLAGS variable, or
8772   # (2) before a word containing "conftest.", or (3) at the end.
8773   # Note that $ac_compile itself does not contain backslashes and begins
8774   # with a dollar sign (not a hyphen), so the echo should work correctly.
8775   # The option is referenced via a variable to avoid confusing sed.
8776   lt_compile=`echo "$ac_compile" | $SED \
8777   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8778   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8779   -e 's:$: $lt_compiler_flag:'`
8780   (eval echo "\"\$as_me:8780: $lt_compile\"" >&5)
8781   (eval "$lt_compile" 2>conftest.err)
8782   ac_status=$?
8783   cat conftest.err >&5
8784   echo "$as_me:8784: \$? = $ac_status" >&5
8785   if (exit $ac_status) && test -s "$ac_outfile"; then
8786     # The compiler can only warn and ignore the option if not recognized
8787     # So say no if there are warnings other than the usual output.
8788     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8789     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8790     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8791       lt_cv_prog_compiler_rtti_exceptions=yes
8792     fi
8793   fi
8794   $rm conftest*
8795
8796fi
8797{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8798echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8799
8800if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8801    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8802else
8803    :
8804fi
8805
8806fi
8807
8808lt_prog_compiler_wl=
8809lt_prog_compiler_pic=
8810lt_prog_compiler_static=
8811
8812{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8813echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8814
8815  if test "$GCC" = yes; then
8816    lt_prog_compiler_wl='-Wl,'
8817    lt_prog_compiler_static='-static'
8818
8819    case $host_os in
8820      aix*)
8821      # All AIX code is PIC.
8822      if test "$host_cpu" = ia64; then
8823	# AIX 5 now supports IA64 processor
8824	lt_prog_compiler_static='-Bstatic'
8825      fi
8826      ;;
8827
8828    amigaos*)
8829      # FIXME: we need at least 68020 code to build shared libraries, but
8830      # adding the `-m68020' flag to GCC prevents building anything better,
8831      # like `-m68040'.
8832      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8833      ;;
8834
8835    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8836      # PIC is the default for these OSes.
8837      ;;
8838
8839    mingw* | cygwin* | pw32* | os2*)
8840      # This hack is so that the source file can tell whether it is being
8841      # built for inclusion in a dll (and should export symbols for example).
8842      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8843      # (--disable-auto-import) libraries
8844      lt_prog_compiler_pic='-DDLL_EXPORT'
8845      ;;
8846
8847    darwin* | rhapsody*)
8848      # PIC is the default on this platform
8849      # Common symbols not allowed in MH_DYLIB files
8850      lt_prog_compiler_pic='-fno-common'
8851      ;;
8852
8853    interix[3-9]*)
8854      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8855      # Instead, we relocate shared libraries at runtime.
8856      ;;
8857
8858    msdosdjgpp*)
8859      # Just because we use GCC doesn't mean we suddenly get shared libraries
8860      # on systems that don't support them.
8861      lt_prog_compiler_can_build_shared=no
8862      enable_shared=no
8863      ;;
8864
8865    sysv4*MP*)
8866      if test -d /usr/nec; then
8867	lt_prog_compiler_pic=-Kconform_pic
8868      fi
8869      ;;
8870
8871    hpux*)
8872      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8873      # not for PA HP-UX.
8874      case $host_cpu in
8875      hppa*64*|ia64*)
8876	# +Z the default
8877	;;
8878      *)
8879	lt_prog_compiler_pic='-fPIC'
8880	;;
8881      esac
8882      ;;
8883
8884    *)
8885      lt_prog_compiler_pic='-fPIC'
8886      ;;
8887    esac
8888  else
8889    # PORTME Check for flag to pass linker flags through the system compiler.
8890    case $host_os in
8891    aix*)
8892      lt_prog_compiler_wl='-Wl,'
8893      if test "$host_cpu" = ia64; then
8894	# AIX 5 now supports IA64 processor
8895	lt_prog_compiler_static='-Bstatic'
8896      else
8897	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8898      fi
8899      ;;
8900      darwin*)
8901        # PIC is the default on this platform
8902        # Common symbols not allowed in MH_DYLIB files
8903       case $cc_basename in
8904         xlc*)
8905         lt_prog_compiler_pic='-qnocommon'
8906         lt_prog_compiler_wl='-Wl,'
8907         ;;
8908       esac
8909       ;;
8910
8911    mingw* | cygwin* | pw32* | os2*)
8912      # This hack is so that the source file can tell whether it is being
8913      # built for inclusion in a dll (and should export symbols for example).
8914      lt_prog_compiler_pic='-DDLL_EXPORT'
8915      ;;
8916
8917    hpux9* | hpux10* | hpux11*)
8918      lt_prog_compiler_wl='-Wl,'
8919      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8920      # not for PA HP-UX.
8921      case $host_cpu in
8922      hppa*64*|ia64*)
8923	# +Z the default
8924	;;
8925      *)
8926	lt_prog_compiler_pic='+Z'
8927	;;
8928      esac
8929      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8930      lt_prog_compiler_static='${wl}-a ${wl}archive'
8931      ;;
8932
8933    irix5* | irix6* | nonstopux*)
8934      lt_prog_compiler_wl='-Wl,'
8935      # PIC (with -KPIC) is the default.
8936      lt_prog_compiler_static='-non_shared'
8937      ;;
8938
8939    newsos6)
8940      lt_prog_compiler_pic='-KPIC'
8941      lt_prog_compiler_static='-Bstatic'
8942      ;;
8943
8944    linux* | k*bsd*-gnu)
8945      case $cc_basename in
8946      icc* | ecc*)
8947	lt_prog_compiler_wl='-Wl,'
8948	lt_prog_compiler_pic='-KPIC'
8949	lt_prog_compiler_static='-static'
8950        ;;
8951      pgcc* | pgf77* | pgf90* | pgf95*)
8952        # Portland Group compilers (*not* the Pentium gcc compiler,
8953	# which looks to be a dead project)
8954	lt_prog_compiler_wl='-Wl,'
8955	lt_prog_compiler_pic='-fpic'
8956	lt_prog_compiler_static='-Bstatic'
8957        ;;
8958      ccc*)
8959        lt_prog_compiler_wl='-Wl,'
8960        # All Alpha code is PIC.
8961        lt_prog_compiler_static='-non_shared'
8962        ;;
8963      *)
8964        case `$CC -V 2>&1 | sed 5q` in
8965	*Sun\ C*)
8966	  # Sun C 5.9
8967	  lt_prog_compiler_pic='-KPIC'
8968	  lt_prog_compiler_static='-Bstatic'
8969	  lt_prog_compiler_wl='-Wl,'
8970	  ;;
8971	*Sun\ F*)
8972	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8973	  lt_prog_compiler_pic='-KPIC'
8974	  lt_prog_compiler_static='-Bstatic'
8975	  lt_prog_compiler_wl=''
8976	  ;;
8977	esac
8978	;;
8979      esac
8980      ;;
8981
8982    osf3* | osf4* | osf5*)
8983      lt_prog_compiler_wl='-Wl,'
8984      # All OSF/1 code is PIC.
8985      lt_prog_compiler_static='-non_shared'
8986      ;;
8987
8988    rdos*)
8989      lt_prog_compiler_static='-non_shared'
8990      ;;
8991
8992    solaris*)
8993      lt_prog_compiler_pic='-KPIC'
8994      lt_prog_compiler_static='-Bstatic'
8995      case $cc_basename in
8996      f77* | f90* | f95*)
8997	lt_prog_compiler_wl='-Qoption ld ';;
8998      *)
8999	lt_prog_compiler_wl='-Wl,';;
9000      esac
9001      ;;
9002
9003    sunos4*)
9004      lt_prog_compiler_wl='-Qoption ld '
9005      lt_prog_compiler_pic='-PIC'
9006      lt_prog_compiler_static='-Bstatic'
9007      ;;
9008
9009    sysv4 | sysv4.2uw2* | sysv4.3*)
9010      lt_prog_compiler_wl='-Wl,'
9011      lt_prog_compiler_pic='-KPIC'
9012      lt_prog_compiler_static='-Bstatic'
9013      ;;
9014
9015    sysv4*MP*)
9016      if test -d /usr/nec ;then
9017	lt_prog_compiler_pic='-Kconform_pic'
9018	lt_prog_compiler_static='-Bstatic'
9019      fi
9020      ;;
9021
9022    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9023      lt_prog_compiler_wl='-Wl,'
9024      lt_prog_compiler_pic='-KPIC'
9025      lt_prog_compiler_static='-Bstatic'
9026      ;;
9027
9028    unicos*)
9029      lt_prog_compiler_wl='-Wl,'
9030      lt_prog_compiler_can_build_shared=no
9031      ;;
9032
9033    uts4*)
9034      lt_prog_compiler_pic='-pic'
9035      lt_prog_compiler_static='-Bstatic'
9036      ;;
9037
9038    *)
9039      lt_prog_compiler_can_build_shared=no
9040      ;;
9041    esac
9042  fi
9043
9044{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9045echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9046
9047#
9048# Check to make sure the PIC flag actually works.
9049#
9050if test -n "$lt_prog_compiler_pic"; then
9051
9052{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9053echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9054if test "${lt_prog_compiler_pic_works+set}" = set; then
9055  echo $ECHO_N "(cached) $ECHO_C" >&6
9056else
9057  lt_prog_compiler_pic_works=no
9058  ac_outfile=conftest.$ac_objext
9059   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9060   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9061   # Insert the option either (1) after the last *FLAGS variable, or
9062   # (2) before a word containing "conftest.", or (3) at the end.
9063   # Note that $ac_compile itself does not contain backslashes and begins
9064   # with a dollar sign (not a hyphen), so the echo should work correctly.
9065   # The option is referenced via a variable to avoid confusing sed.
9066   lt_compile=`echo "$ac_compile" | $SED \
9067   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9068   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9069   -e 's:$: $lt_compiler_flag:'`
9070   (eval echo "\"\$as_me:9070: $lt_compile\"" >&5)
9071   (eval "$lt_compile" 2>conftest.err)
9072   ac_status=$?
9073   cat conftest.err >&5
9074   echo "$as_me:9074: \$? = $ac_status" >&5
9075   if (exit $ac_status) && test -s "$ac_outfile"; then
9076     # The compiler can only warn and ignore the option if not recognized
9077     # So say no if there are warnings other than the usual output.
9078     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9079     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9080     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9081       lt_prog_compiler_pic_works=yes
9082     fi
9083   fi
9084   $rm conftest*
9085
9086fi
9087{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9088echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9089
9090if test x"$lt_prog_compiler_pic_works" = xyes; then
9091    case $lt_prog_compiler_pic in
9092     "" | " "*) ;;
9093     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9094     esac
9095else
9096    lt_prog_compiler_pic=
9097     lt_prog_compiler_can_build_shared=no
9098fi
9099
9100fi
9101case $host_os in
9102  # For platforms which do not support PIC, -DPIC is meaningless:
9103  *djgpp*)
9104    lt_prog_compiler_pic=
9105    ;;
9106  *)
9107    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9108    ;;
9109esac
9110
9111#
9112# Check to make sure the static flag actually works.
9113#
9114wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9115{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9116echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9117if test "${lt_prog_compiler_static_works+set}" = set; then
9118  echo $ECHO_N "(cached) $ECHO_C" >&6
9119else
9120  lt_prog_compiler_static_works=no
9121   save_LDFLAGS="$LDFLAGS"
9122   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9123   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9124   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9125     # The linker can only warn and ignore the option if not recognized
9126     # So say no if there are warnings
9127     if test -s conftest.err; then
9128       # Append any errors to the config.log.
9129       cat conftest.err 1>&5
9130       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9131       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9132       if diff conftest.exp conftest.er2 >/dev/null; then
9133         lt_prog_compiler_static_works=yes
9134       fi
9135     else
9136       lt_prog_compiler_static_works=yes
9137     fi
9138   fi
9139   $rm conftest*
9140   LDFLAGS="$save_LDFLAGS"
9141
9142fi
9143{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9144echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9145
9146if test x"$lt_prog_compiler_static_works" = xyes; then
9147    :
9148else
9149    lt_prog_compiler_static=
9150fi
9151
9152
9153{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9154echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9155if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9156  echo $ECHO_N "(cached) $ECHO_C" >&6
9157else
9158  lt_cv_prog_compiler_c_o=no
9159   $rm -r conftest 2>/dev/null
9160   mkdir conftest
9161   cd conftest
9162   mkdir out
9163   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9164
9165   lt_compiler_flag="-o out/conftest2.$ac_objext"
9166   # Insert the option either (1) after the last *FLAGS variable, or
9167   # (2) before a word containing "conftest.", or (3) at the end.
9168   # Note that $ac_compile itself does not contain backslashes and begins
9169   # with a dollar sign (not a hyphen), so the echo should work correctly.
9170   lt_compile=`echo "$ac_compile" | $SED \
9171   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9172   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9173   -e 's:$: $lt_compiler_flag:'`
9174   (eval echo "\"\$as_me:9174: $lt_compile\"" >&5)
9175   (eval "$lt_compile" 2>out/conftest.err)
9176   ac_status=$?
9177   cat out/conftest.err >&5
9178   echo "$as_me:9178: \$? = $ac_status" >&5
9179   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9180   then
9181     # The compiler can only warn and ignore the option if not recognized
9182     # So say no if there are warnings
9183     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9184     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9185     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9186       lt_cv_prog_compiler_c_o=yes
9187     fi
9188   fi
9189   chmod u+w . 2>&5
9190   $rm conftest*
9191   # SGI C++ compiler will create directory out/ii_files/ for
9192   # template instantiation
9193   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9194   $rm out/* && rmdir out
9195   cd ..
9196   rmdir conftest
9197   $rm conftest*
9198
9199fi
9200{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9201echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9202
9203
9204hard_links="nottested"
9205if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9206  # do not overwrite the value of need_locks provided by the user
9207  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9208echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9209  hard_links=yes
9210  $rm conftest*
9211  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9212  touch conftest.a
9213  ln conftest.a conftest.b 2>&5 || hard_links=no
9214  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9215  { echo "$as_me:$LINENO: result: $hard_links" >&5
9216echo "${ECHO_T}$hard_links" >&6; }
9217  if test "$hard_links" = no; then
9218    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9219echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9220    need_locks=warn
9221  fi
9222else
9223  need_locks=no
9224fi
9225
9226{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9227echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9228
9229  runpath_var=
9230  allow_undefined_flag=
9231  enable_shared_with_static_runtimes=no
9232  archive_cmds=
9233  archive_expsym_cmds=
9234  old_archive_From_new_cmds=
9235  old_archive_from_expsyms_cmds=
9236  export_dynamic_flag_spec=
9237  whole_archive_flag_spec=
9238  thread_safe_flag_spec=
9239  hardcode_libdir_flag_spec=
9240  hardcode_libdir_flag_spec_ld=
9241  hardcode_libdir_separator=
9242  hardcode_direct=no
9243  hardcode_minus_L=no
9244  hardcode_shlibpath_var=unsupported
9245  link_all_deplibs=unknown
9246  hardcode_automatic=no
9247  module_cmds=
9248  module_expsym_cmds=
9249  always_export_symbols=no
9250  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9251  # include_expsyms should be a list of space-separated symbols to be *always*
9252  # included in the symbol list
9253  include_expsyms=
9254  # exclude_expsyms can be an extended regexp of symbols to exclude
9255  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9256  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9257  # as well as any symbol that contains `d'.
9258  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9259  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9260  # platforms (ab)use it in PIC code, but their linkers get confused if
9261  # the symbol is explicitly referenced.  Since portable code cannot
9262  # rely on this symbol name, it's probably fine to never include it in
9263  # preloaded symbol tables.
9264  extract_expsyms_cmds=
9265  # Just being paranoid about ensuring that cc_basename is set.
9266  for cc_temp in $compiler""; do
9267  case $cc_temp in
9268    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9269    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9270    \-*) ;;
9271    *) break;;
9272  esac
9273done
9274cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9275
9276  case $host_os in
9277  cygwin* | mingw* | pw32*)
9278    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9279    # When not using gcc, we currently assume that we are using
9280    # Microsoft Visual C++.
9281    if test "$GCC" != yes; then
9282      with_gnu_ld=no
9283    fi
9284    ;;
9285  interix*)
9286    # we just hope/assume this is gcc and not c89 (= MSVC++)
9287    with_gnu_ld=yes
9288    ;;
9289  openbsd*)
9290    with_gnu_ld=no
9291    ;;
9292  esac
9293
9294  ld_shlibs=yes
9295  if test "$with_gnu_ld" = yes; then
9296    # If archive_cmds runs LD, not CC, wlarc should be empty
9297    wlarc='${wl}'
9298
9299    # Set some defaults for GNU ld with shared library support. These
9300    # are reset later if shared libraries are not supported. Putting them
9301    # here allows them to be overridden if necessary.
9302    runpath_var=LD_RUN_PATH
9303    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9304    export_dynamic_flag_spec='${wl}--export-dynamic'
9305    # ancient GNU ld didn't support --whole-archive et. al.
9306    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9307	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9308      else
9309  	whole_archive_flag_spec=
9310    fi
9311    supports_anon_versioning=no
9312    case `$LD -v 2>/dev/null` in
9313      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9314      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9315      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9316      *\ 2.11.*) ;; # other 2.11 versions
9317      *) supports_anon_versioning=yes ;;
9318    esac
9319
9320    # See if GNU ld supports shared libraries.
9321    case $host_os in
9322    aix3* | aix4* | aix5*)
9323      # On AIX/PPC, the GNU linker is very broken
9324      if test "$host_cpu" != ia64; then
9325	ld_shlibs=no
9326	cat <<EOF 1>&2
9327
9328*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9329*** to be unable to reliably create shared libraries on AIX.
9330*** Therefore, libtool is disabling shared libraries support.  If you
9331*** really care for shared libraries, you may want to modify your PATH
9332*** so that a non-GNU linker is found, and then restart.
9333
9334EOF
9335      fi
9336      ;;
9337
9338    amigaos*)
9339      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)'
9340      hardcode_libdir_flag_spec='-L$libdir'
9341      hardcode_minus_L=yes
9342
9343      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9344      # that the semantics of dynamic libraries on AmigaOS, at least up
9345      # to version 4, is to share data among multiple programs linked
9346      # with the same dynamic library.  Since this doesn't match the
9347      # behavior of shared libraries on other platforms, we can't use
9348      # them.
9349      ld_shlibs=no
9350      ;;
9351
9352    beos*)
9353      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9354	allow_undefined_flag=unsupported
9355	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9356	# support --undefined.  This deserves some investigation.  FIXME
9357	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358      else
9359	ld_shlibs=no
9360      fi
9361      ;;
9362
9363    cygwin* | mingw* | pw32*)
9364      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9365      # as there is no search path for DLLs.
9366      hardcode_libdir_flag_spec='-L$libdir'
9367      allow_undefined_flag=unsupported
9368      always_export_symbols=no
9369      enable_shared_with_static_runtimes=yes
9370      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9371
9372      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9373        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9374	# If the export-symbols file already is a .def file (1st line
9375	# is EXPORTS), use it as is; otherwise, prepend...
9376	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9377	  cp $export_symbols $output_objdir/$soname.def;
9378	else
9379	  echo EXPORTS > $output_objdir/$soname.def;
9380	  cat $export_symbols >> $output_objdir/$soname.def;
9381	fi~
9382	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9383      else
9384	ld_shlibs=no
9385      fi
9386      ;;
9387
9388    interix[3-9]*)
9389      hardcode_direct=no
9390      hardcode_shlibpath_var=no
9391      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9392      export_dynamic_flag_spec='${wl}-E'
9393      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9394      # Instead, shared libraries are loaded at an image base (0x10000000 by
9395      # default) and relocated if they conflict, which is a slow very memory
9396      # consuming and fragmenting process.  To avoid this, we pick a random,
9397      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9398      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9399      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9400      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'
9401      ;;
9402
9403    gnu* | linux* | k*bsd*-gnu)
9404      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9405	tmp_addflag=
9406	case $cc_basename,$host_cpu in
9407	pgcc*)				# Portland Group C compiler
9408	  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'
9409	  tmp_addflag=' $pic_flag'
9410	  ;;
9411	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9412	  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'
9413	  tmp_addflag=' $pic_flag -Mnomain' ;;
9414	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
9415	  tmp_addflag=' -i_dynamic' ;;
9416	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9417	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9418	ifc* | ifort*)			# Intel Fortran compiler
9419	  tmp_addflag=' -nofor_main' ;;
9420	esac
9421	case `$CC -V 2>&1 | sed 5q` in
9422	*Sun\ C*)			# Sun C 5.9
9423	  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'
9424	  tmp_sharedflag='-G' ;;
9425	*Sun\ F*)			# Sun Fortran 8.3
9426	  tmp_sharedflag='-G' ;;
9427	*)
9428	  tmp_sharedflag='-shared' ;;
9429	esac
9430	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431
9432	if test $supports_anon_versioning = yes; then
9433	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9434  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9435  $echo "local: *; };" >> $output_objdir/$libname.ver~
9436	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9437	fi
9438	link_all_deplibs=no
9439      else
9440	ld_shlibs=no
9441      fi
9442      ;;
9443
9444    netbsd* | netbsdelf*-gnu)
9445      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9446	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9447	wlarc=
9448      else
9449	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9450	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9451      fi
9452      ;;
9453
9454    solaris*)
9455      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9456	ld_shlibs=no
9457	cat <<EOF 1>&2
9458
9459*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9460*** create shared libraries on Solaris systems.  Therefore, libtool
9461*** is disabling shared libraries support.  We urge you to upgrade GNU
9462*** binutils to release 2.9.1 or newer.  Another option is to modify
9463*** your PATH or compiler configuration so that the native linker is
9464*** used, and then restart.
9465
9466EOF
9467      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9468	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9469	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9470      else
9471	ld_shlibs=no
9472      fi
9473      ;;
9474
9475    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9476      case `$LD -v 2>&1` in
9477        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9478	ld_shlibs=no
9479	cat <<_LT_EOF 1>&2
9480
9481*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9482*** reliably create shared libraries on SCO systems.  Therefore, libtool
9483*** is disabling shared libraries support.  We urge you to upgrade GNU
9484*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9485*** your PATH or compiler configuration so that the native linker is
9486*** used, and then restart.
9487
9488_LT_EOF
9489	;;
9490	*)
9491	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9492	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9493	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9494	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9495	  else
9496	    ld_shlibs=no
9497	  fi
9498	;;
9499      esac
9500      ;;
9501
9502    sunos4*)
9503      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9504      wlarc=
9505      hardcode_direct=yes
9506      hardcode_shlibpath_var=no
9507      ;;
9508
9509    *)
9510      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9511	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9512	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9513      else
9514	ld_shlibs=no
9515      fi
9516      ;;
9517    esac
9518
9519    if test "$ld_shlibs" = no; then
9520      runpath_var=
9521      hardcode_libdir_flag_spec=
9522      export_dynamic_flag_spec=
9523      whole_archive_flag_spec=
9524    fi
9525  else
9526    # PORTME fill in a description of your system's linker (not GNU ld)
9527    case $host_os in
9528    aix3*)
9529      allow_undefined_flag=unsupported
9530      always_export_symbols=yes
9531      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'
9532      # Note: this linker hardcodes the directories in LIBPATH if there
9533      # are no directories specified by -L.
9534      hardcode_minus_L=yes
9535      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9536	# Neither direct hardcoding nor static linking is supported with a
9537	# broken collect2.
9538	hardcode_direct=unsupported
9539      fi
9540      ;;
9541
9542    aix4* | aix5*)
9543      if test "$host_cpu" = ia64; then
9544	# On IA64, the linker does run time linking by default, so we don't
9545	# have to do anything special.
9546	aix_use_runtimelinking=no
9547	exp_sym_flag='-Bexport'
9548	no_entry_flag=""
9549      else
9550	# If we're using GNU nm, then we don't want the "-C" option.
9551	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9552	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9553	  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'
9554	else
9555	  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'
9556	fi
9557	aix_use_runtimelinking=no
9558
9559	# Test if we are trying to use run time linking or normal
9560	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9561	# need to do runtime linking.
9562	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9563	  for ld_flag in $LDFLAGS; do
9564  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9565  	    aix_use_runtimelinking=yes
9566  	    break
9567  	  fi
9568	  done
9569	  ;;
9570	esac
9571
9572	exp_sym_flag='-bexport'
9573	no_entry_flag='-bnoentry'
9574      fi
9575
9576      # When large executables or shared objects are built, AIX ld can
9577      # have problems creating the table of contents.  If linking a library
9578      # or program results in "error TOC overflow" add -mminimal-toc to
9579      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9580      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9581
9582      archive_cmds=''
9583      hardcode_direct=yes
9584      hardcode_libdir_separator=':'
9585      link_all_deplibs=yes
9586
9587      if test "$GCC" = yes; then
9588	case $host_os in aix4.[012]|aix4.[012].*)
9589	# We only want to do this on AIX 4.2 and lower, the check
9590	# below for broken collect2 doesn't work under 4.3+
9591	  collect2name=`${CC} -print-prog-name=collect2`
9592	  if test -f "$collect2name" && \
9593  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9594	  then
9595  	  # We have reworked collect2
9596  	  :
9597	  else
9598  	  # We have old collect2
9599  	  hardcode_direct=unsupported
9600  	  # It fails to find uninstalled libraries when the uninstalled
9601  	  # path is not listed in the libpath.  Setting hardcode_minus_L
9602  	  # to unsupported forces relinking
9603  	  hardcode_minus_L=yes
9604  	  hardcode_libdir_flag_spec='-L$libdir'
9605  	  hardcode_libdir_separator=
9606	  fi
9607	  ;;
9608	esac
9609	shared_flag='-shared'
9610	if test "$aix_use_runtimelinking" = yes; then
9611	  shared_flag="$shared_flag "'${wl}-G'
9612	fi
9613      else
9614	# not using gcc
9615	if test "$host_cpu" = ia64; then
9616  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9617  	# chokes on -Wl,-G. The following line is correct:
9618	  shared_flag='-G'
9619	else
9620	  if test "$aix_use_runtimelinking" = yes; then
9621	    shared_flag='${wl}-G'
9622	  else
9623	    shared_flag='${wl}-bM:SRE'
9624	  fi
9625	fi
9626      fi
9627
9628      # It seems that -bexpall does not export symbols beginning with
9629      # underscore (_), so it is better to generate a list of symbols to export.
9630      always_export_symbols=yes
9631      if test "$aix_use_runtimelinking" = yes; then
9632	# Warning - without using the other runtime loading flags (-brtl),
9633	# -berok will link without error, but may produce a broken library.
9634	allow_undefined_flag='-berok'
9635       # Determine the default libpath from the value encoded in an empty executable.
9636       cat >conftest.$ac_ext <<_ACEOF
9637/* confdefs.h.  */
9638_ACEOF
9639cat confdefs.h >>conftest.$ac_ext
9640cat >>conftest.$ac_ext <<_ACEOF
9641/* end confdefs.h.  */
9642
9643int
9644main ()
9645{
9646
9647  ;
9648  return 0;
9649}
9650_ACEOF
9651rm -f conftest.$ac_objext conftest$ac_exeext
9652if { (ac_try="$ac_link"
9653case "(($ac_try" in
9654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655  *) ac_try_echo=$ac_try;;
9656esac
9657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658  (eval "$ac_link") 2>conftest.er1
9659  ac_status=$?
9660  grep -v '^ *+' conftest.er1 >conftest.err
9661  rm -f conftest.er1
9662  cat conftest.err >&5
9663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664  (exit $ac_status); } && {
9665	 test -z "$ac_c_werror_flag" ||
9666	 test ! -s conftest.err
9667       } && test -s conftest$ac_exeext &&
9668       $as_test_x conftest$ac_exeext; then
9669
9670lt_aix_libpath_sed='
9671    /Import File Strings/,/^$/ {
9672	/^0/ {
9673	    s/^0  *\(.*\)$/\1/
9674	    p
9675	}
9676    }'
9677aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9678# Check for a 64-bit object if we didn't find anything.
9679if test -z "$aix_libpath"; then
9680  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9681fi
9682else
9683  echo "$as_me: failed program was:" >&5
9684sed 's/^/| /' conftest.$ac_ext >&5
9685
9686
9687fi
9688
9689rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9690      conftest$ac_exeext conftest.$ac_ext
9691if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9692
9693       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9694	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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9695       else
9696	if test "$host_cpu" = ia64; then
9697	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9698	  allow_undefined_flag="-z nodefs"
9699	  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"
9700	else
9701	 # Determine the default libpath from the value encoded in an empty executable.
9702	 cat >conftest.$ac_ext <<_ACEOF
9703/* confdefs.h.  */
9704_ACEOF
9705cat confdefs.h >>conftest.$ac_ext
9706cat >>conftest.$ac_ext <<_ACEOF
9707/* end confdefs.h.  */
9708
9709int
9710main ()
9711{
9712
9713  ;
9714  return 0;
9715}
9716_ACEOF
9717rm -f conftest.$ac_objext conftest$ac_exeext
9718if { (ac_try="$ac_link"
9719case "(($ac_try" in
9720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721  *) ac_try_echo=$ac_try;;
9722esac
9723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724  (eval "$ac_link") 2>conftest.er1
9725  ac_status=$?
9726  grep -v '^ *+' conftest.er1 >conftest.err
9727  rm -f conftest.er1
9728  cat conftest.err >&5
9729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730  (exit $ac_status); } && {
9731	 test -z "$ac_c_werror_flag" ||
9732	 test ! -s conftest.err
9733       } && test -s conftest$ac_exeext &&
9734       $as_test_x conftest$ac_exeext; then
9735
9736lt_aix_libpath_sed='
9737    /Import File Strings/,/^$/ {
9738	/^0/ {
9739	    s/^0  *\(.*\)$/\1/
9740	    p
9741	}
9742    }'
9743aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9744# Check for a 64-bit object if we didn't find anything.
9745if test -z "$aix_libpath"; then
9746  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9747fi
9748else
9749  echo "$as_me: failed program was:" >&5
9750sed 's/^/| /' conftest.$ac_ext >&5
9751
9752
9753fi
9754
9755rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9756      conftest$ac_exeext conftest.$ac_ext
9757if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9758
9759	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9760	  # Warning - without using the other run time loading flags,
9761	  # -berok will link without error, but may produce a broken library.
9762	  no_undefined_flag=' ${wl}-bernotok'
9763	  allow_undefined_flag=' ${wl}-berok'
9764	  # Exported symbols can be pulled into shared objects from archives
9765	  whole_archive_flag_spec='$convenience'
9766	  archive_cmds_need_lc=yes
9767	  # This is similar to how AIX traditionally builds its shared libraries.
9768	  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'
9769	fi
9770      fi
9771      ;;
9772
9773    amigaos*)
9774      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)'
9775      hardcode_libdir_flag_spec='-L$libdir'
9776      hardcode_minus_L=yes
9777      # see comment about different semantics on the GNU ld section
9778      ld_shlibs=no
9779      ;;
9780
9781    bsdi[45]*)
9782      export_dynamic_flag_spec=-rdynamic
9783      ;;
9784
9785    cygwin* | mingw* | pw32*)
9786      # When not using gcc, we currently assume that we are using
9787      # Microsoft Visual C++.
9788      # hardcode_libdir_flag_spec is actually meaningless, as there is
9789      # no search path for DLLs.
9790      hardcode_libdir_flag_spec=' '
9791      allow_undefined_flag=unsupported
9792      # Tell ltmain to make .lib files, not .a files.
9793      libext=lib
9794      # Tell ltmain to make .dll files, not .so files.
9795      shrext_cmds=".dll"
9796      # FIXME: Setting linknames here is a bad hack.
9797      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9798      # The linker will automatically build a .lib file if we build a DLL.
9799      old_archive_From_new_cmds='true'
9800      # FIXME: Should let the user specify the lib program.
9801      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9802      fix_srcfile_path='`cygpath -w "$srcfile"`'
9803      enable_shared_with_static_runtimes=yes
9804      ;;
9805
9806    darwin* | rhapsody*)
9807      case $host_os in
9808        rhapsody* | darwin1.[012])
9809         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9810         ;;
9811       *) # Darwin 1.3 on
9812         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9813           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9814         else
9815           case ${MACOSX_DEPLOYMENT_TARGET} in
9816             10.[012])
9817               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9818               ;;
9819             10.*)
9820               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9821               ;;
9822           esac
9823         fi
9824         ;;
9825      esac
9826      archive_cmds_need_lc=no
9827      hardcode_direct=no
9828      hardcode_automatic=yes
9829      hardcode_shlibpath_var=unsupported
9830      whole_archive_flag_spec=''
9831      link_all_deplibs=yes
9832    if test "$GCC" = yes ; then
9833    	output_verbose_link_cmd='echo'
9834        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9835      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9836      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9837      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9838      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9839    else
9840      case $cc_basename in
9841        xlc*)
9842         output_verbose_link_cmd='echo'
9843         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9844         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9845          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9846         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9847          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9848          ;;
9849       *)
9850         ld_shlibs=no
9851          ;;
9852      esac
9853    fi
9854      ;;
9855
9856    dgux*)
9857      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9858      hardcode_libdir_flag_spec='-L$libdir'
9859      hardcode_shlibpath_var=no
9860      ;;
9861
9862    freebsd1*)
9863      ld_shlibs=no
9864      ;;
9865
9866    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9867    # support.  Future versions do this automatically, but an explicit c++rt0.o
9868    # does not break anything, and helps significantly (at the cost of a little
9869    # extra space).
9870    freebsd2.2*)
9871      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9872      hardcode_libdir_flag_spec='-R$libdir'
9873      hardcode_direct=yes
9874      hardcode_shlibpath_var=no
9875      ;;
9876
9877    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9878    freebsd2*)
9879      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9880      hardcode_direct=yes
9881      hardcode_minus_L=yes
9882      hardcode_shlibpath_var=no
9883      ;;
9884
9885    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9886    freebsd* | dragonfly*)
9887      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9888      hardcode_libdir_flag_spec='-R$libdir'
9889      hardcode_direct=yes
9890      hardcode_shlibpath_var=no
9891      ;;
9892
9893    hpux9*)
9894      if test "$GCC" = yes; then
9895	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'
9896      else
9897	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'
9898      fi
9899      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9900      hardcode_libdir_separator=:
9901      hardcode_direct=yes
9902
9903      # hardcode_minus_L: Not really in the search PATH,
9904      # but as the default location of the library.
9905      hardcode_minus_L=yes
9906      export_dynamic_flag_spec='${wl}-E'
9907      ;;
9908
9909    hpux10*)
9910      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9911	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9912      else
9913	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9914      fi
9915      if test "$with_gnu_ld" = no; then
9916	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9917	hardcode_libdir_separator=:
9918
9919	hardcode_direct=yes
9920	export_dynamic_flag_spec='${wl}-E'
9921
9922	# hardcode_minus_L: Not really in the search PATH,
9923	# but as the default location of the library.
9924	hardcode_minus_L=yes
9925      fi
9926      ;;
9927
9928    hpux11*)
9929      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9930	case $host_cpu in
9931	hppa*64*)
9932	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9933	  ;;
9934	ia64*)
9935	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9936	  ;;
9937	*)
9938	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9939	  ;;
9940	esac
9941      else
9942	case $host_cpu in
9943	hppa*64*)
9944	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9945	  ;;
9946	ia64*)
9947	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9948	  ;;
9949	*)
9950	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9951	  ;;
9952	esac
9953      fi
9954      if test "$with_gnu_ld" = no; then
9955	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9956	hardcode_libdir_separator=:
9957
9958	case $host_cpu in
9959	hppa*64*|ia64*)
9960	  hardcode_libdir_flag_spec_ld='+b $libdir'
9961	  hardcode_direct=no
9962	  hardcode_shlibpath_var=no
9963	  ;;
9964	*)
9965	  hardcode_direct=yes
9966	  export_dynamic_flag_spec='${wl}-E'
9967
9968	  # hardcode_minus_L: Not really in the search PATH,
9969	  # but as the default location of the library.
9970	  hardcode_minus_L=yes
9971	  ;;
9972	esac
9973      fi
9974      ;;
9975
9976    irix5* | irix6* | nonstopux*)
9977      if test "$GCC" = yes; then
9978	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9979      else
9980	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9981	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9982      fi
9983      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9984      hardcode_libdir_separator=:
9985      link_all_deplibs=yes
9986      ;;
9987
9988    netbsd* | netbsdelf*-gnu)
9989      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9990	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9991      else
9992	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9993      fi
9994      hardcode_libdir_flag_spec='-R$libdir'
9995      hardcode_direct=yes
9996      hardcode_shlibpath_var=no
9997      ;;
9998
9999    newsos6)
10000      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10001      hardcode_direct=yes
10002      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10003      hardcode_libdir_separator=:
10004      hardcode_shlibpath_var=no
10005      ;;
10006
10007    openbsd*)
10008      if test -f /usr/libexec/ld.so; then
10009	hardcode_direct=yes
10010	hardcode_shlibpath_var=no
10011	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10012	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10013	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10014	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10015	  export_dynamic_flag_spec='${wl}-E'
10016	else
10017	  case $host_os in
10018	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10019	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10020	     hardcode_libdir_flag_spec='-R$libdir'
10021	     ;;
10022	   *)
10023	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10024	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10025	     ;;
10026	  esac
10027        fi
10028      else
10029	ld_shlibs=no
10030      fi
10031      ;;
10032
10033    os2*)
10034      hardcode_libdir_flag_spec='-L$libdir'
10035      hardcode_minus_L=yes
10036      allow_undefined_flag=unsupported
10037      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'
10038      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10039      ;;
10040
10041    osf3*)
10042      if test "$GCC" = yes; then
10043	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10044	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10045      else
10046	allow_undefined_flag=' -expect_unresolved \*'
10047	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10048      fi
10049      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10050      hardcode_libdir_separator=:
10051      ;;
10052
10053    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10054      if test "$GCC" = yes; then
10055	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10056	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10057	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10058      else
10059	allow_undefined_flag=' -expect_unresolved \*'
10060	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10061	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10062	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
10063
10064	# Both c and cxx compiler support -rpath directly
10065	hardcode_libdir_flag_spec='-rpath $libdir'
10066      fi
10067      hardcode_libdir_separator=:
10068      ;;
10069
10070    solaris*)
10071      no_undefined_flag=' -z text'
10072      if test "$GCC" = yes; then
10073	wlarc='${wl}'
10074	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10075	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10076	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10077      else
10078	wlarc=''
10079	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10081  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10082      fi
10083      hardcode_libdir_flag_spec='-R$libdir'
10084      hardcode_shlibpath_var=no
10085      case $host_os in
10086      solaris2.[0-5] | solaris2.[0-5].*) ;;
10087      *)
10088	# The compiler driver will combine and reorder linker options,
10089	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10090	# but is careful enough not to reorder.
10091 	# Supported since Solaris 2.6 (maybe 2.5.1?)
10092	if test "$GCC" = yes; then
10093	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10094	else
10095	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10096	fi
10097	;;
10098      esac
10099      link_all_deplibs=yes
10100      ;;
10101
10102    sunos4*)
10103      if test "x$host_vendor" = xsequent; then
10104	# Use $CC to link under sequent, because it throws in some extra .o
10105	# files that make .init and .fini sections work.
10106	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10107      else
10108	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10109      fi
10110      hardcode_libdir_flag_spec='-L$libdir'
10111      hardcode_direct=yes
10112      hardcode_minus_L=yes
10113      hardcode_shlibpath_var=no
10114      ;;
10115
10116    sysv4)
10117      case $host_vendor in
10118	sni)
10119	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10120	  hardcode_direct=yes # is this really true???
10121	;;
10122	siemens)
10123	  ## LD is ld it makes a PLAMLIB
10124	  ## CC just makes a GrossModule.
10125	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10126	  reload_cmds='$CC -r -o $output$reload_objs'
10127	  hardcode_direct=no
10128        ;;
10129	motorola)
10130	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10131	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10132	;;
10133      esac
10134      runpath_var='LD_RUN_PATH'
10135      hardcode_shlibpath_var=no
10136      ;;
10137
10138    sysv4.3*)
10139      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10140      hardcode_shlibpath_var=no
10141      export_dynamic_flag_spec='-Bexport'
10142      ;;
10143
10144    sysv4*MP*)
10145      if test -d /usr/nec; then
10146	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10147	hardcode_shlibpath_var=no
10148	runpath_var=LD_RUN_PATH
10149	hardcode_runpath_var=yes
10150	ld_shlibs=yes
10151      fi
10152      ;;
10153
10154    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10155      no_undefined_flag='${wl}-z,text'
10156      archive_cmds_need_lc=no
10157      hardcode_shlibpath_var=no
10158      runpath_var='LD_RUN_PATH'
10159
10160      if test "$GCC" = yes; then
10161	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10163      else
10164	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10165	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10166      fi
10167      ;;
10168
10169    sysv5* | sco3.2v5* | sco5v6*)
10170      # Note: We can NOT use -z defs as we might desire, because we do not
10171      # link with -lc, and that would cause any symbols used from libc to
10172      # always be unresolved, which means just about no library would
10173      # ever link correctly.  If we're not using GNU ld we use -z text
10174      # though, which does catch some bad symbols but isn't as heavy-handed
10175      # as -z defs.
10176      no_undefined_flag='${wl}-z,text'
10177      allow_undefined_flag='${wl}-z,nodefs'
10178      archive_cmds_need_lc=no
10179      hardcode_shlibpath_var=no
10180      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10181      hardcode_libdir_separator=':'
10182      link_all_deplibs=yes
10183      export_dynamic_flag_spec='${wl}-Bexport'
10184      runpath_var='LD_RUN_PATH'
10185
10186      if test "$GCC" = yes; then
10187	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10188	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10189      else
10190	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10191	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10192      fi
10193      ;;
10194
10195    uts4*)
10196      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10197      hardcode_libdir_flag_spec='-L$libdir'
10198      hardcode_shlibpath_var=no
10199      ;;
10200
10201    *)
10202      ld_shlibs=no
10203      ;;
10204    esac
10205  fi
10206
10207{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10208echo "${ECHO_T}$ld_shlibs" >&6; }
10209test "$ld_shlibs" = no && can_build_shared=no
10210
10211#
10212# Do we need to explicitly link libc?
10213#
10214case "x$archive_cmds_need_lc" in
10215x|xyes)
10216  # Assume -lc should be added
10217  archive_cmds_need_lc=yes
10218
10219  if test "$enable_shared" = yes && test "$GCC" = yes; then
10220    case $archive_cmds in
10221    *'~'*)
10222      # FIXME: we may have to deal with multi-command sequences.
10223      ;;
10224    '$CC '*)
10225      # Test whether the compiler implicitly links with -lc since on some
10226      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10227      # to ld, don't add -lc before -lgcc.
10228      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10229echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10230      $rm conftest*
10231      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10232
10233      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10234  (eval $ac_compile) 2>&5
10235  ac_status=$?
10236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237  (exit $ac_status); } 2>conftest.err; then
10238        soname=conftest
10239        lib=conftest
10240        libobjs=conftest.$ac_objext
10241        deplibs=
10242        wl=$lt_prog_compiler_wl
10243	pic_flag=$lt_prog_compiler_pic
10244        compiler_flags=-v
10245        linker_flags=-v
10246        verstring=
10247        output_objdir=.
10248        libname=conftest
10249        lt_save_allow_undefined_flag=$allow_undefined_flag
10250        allow_undefined_flag=
10251        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10252  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10253  ac_status=$?
10254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255  (exit $ac_status); }
10256        then
10257	  archive_cmds_need_lc=no
10258        else
10259	  archive_cmds_need_lc=yes
10260        fi
10261        allow_undefined_flag=$lt_save_allow_undefined_flag
10262      else
10263        cat conftest.err 1>&5
10264      fi
10265      $rm conftest*
10266      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10267echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10268      ;;
10269    esac
10270  fi
10271  ;;
10272esac
10273
10274{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10275echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10276library_names_spec=
10277libname_spec='lib$name'
10278soname_spec=
10279shrext_cmds=".so"
10280postinstall_cmds=
10281postuninstall_cmds=
10282finish_cmds=
10283finish_eval=
10284shlibpath_var=
10285shlibpath_overrides_runpath=unknown
10286version_type=none
10287dynamic_linker="$host_os ld.so"
10288sys_lib_dlsearch_path_spec="/lib /usr/lib"
10289
10290if test "$GCC" = yes; then
10291  case $host_os in
10292    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10293    *) lt_awk_arg="/^libraries:/" ;;
10294  esac
10295  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10296  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10297    # if the path contains ";" then we assume it to be the separator
10298    # otherwise default to the standard path separator (i.e. ":") - it is
10299    # assumed that no part of a normal pathname contains ";" but that should
10300    # okay in the real world where ";" in dirpaths is itself problematic.
10301    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10302  else
10303    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10304  fi
10305  # Ok, now we have the path, separated by spaces, we can step through it
10306  # and add multilib dir if necessary.
10307  lt_tmp_lt_search_path_spec=
10308  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10309  for lt_sys_path in $lt_search_path_spec; do
10310    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10311      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10312    else
10313      test -d "$lt_sys_path" && \
10314	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10315    fi
10316  done
10317  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10318BEGIN {RS=" "; FS="/|\n";} {
10319  lt_foo="";
10320  lt_count=0;
10321  for (lt_i = NF; lt_i > 0; lt_i--) {
10322    if ($lt_i != "" && $lt_i != ".") {
10323      if ($lt_i == "..") {
10324        lt_count++;
10325      } else {
10326        if (lt_count == 0) {
10327          lt_foo="/" $lt_i lt_foo;
10328        } else {
10329          lt_count--;
10330        }
10331      }
10332    }
10333  }
10334  if (lt_foo != "") { lt_freq[lt_foo]++; }
10335  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10336}'`
10337  sys_lib_search_path_spec=`echo $lt_search_path_spec`
10338else
10339  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10340fi
10341need_lib_prefix=unknown
10342hardcode_into_libs=no
10343
10344# when you set need_version to no, make sure it does not cause -set_version
10345# flags to be left without arguments
10346need_version=unknown
10347
10348case $host_os in
10349aix3*)
10350  version_type=linux
10351  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10352  shlibpath_var=LIBPATH
10353
10354  # AIX 3 has no versioning support, so we append a major version to the name.
10355  soname_spec='${libname}${release}${shared_ext}$major'
10356  ;;
10357
10358aix4* | aix5*)
10359  version_type=linux
10360  need_lib_prefix=no
10361  need_version=no
10362  hardcode_into_libs=yes
10363  if test "$host_cpu" = ia64; then
10364    # AIX 5 supports IA64
10365    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10366    shlibpath_var=LD_LIBRARY_PATH
10367  else
10368    # With GCC up to 2.95.x, collect2 would create an import file
10369    # for dependence libraries.  The import file would start with
10370    # the line `#! .'.  This would cause the generated library to
10371    # depend on `.', always an invalid library.  This was fixed in
10372    # development snapshots of GCC prior to 3.0.
10373    case $host_os in
10374      aix4 | aix4.[01] | aix4.[01].*)
10375      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10376	   echo ' yes '
10377	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10378	:
10379      else
10380	can_build_shared=no
10381      fi
10382      ;;
10383    esac
10384    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10385    # soname into executable. Probably we can add versioning support to
10386    # collect2, so additional links can be useful in future.
10387    if test "$aix_use_runtimelinking" = yes; then
10388      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10389      # instead of lib<name>.a to let people know that these are not
10390      # typical AIX shared libraries.
10391      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392    else
10393      # We preserve .a as extension for shared libraries through AIX4.2
10394      # and later when we are not doing run time linking.
10395      library_names_spec='${libname}${release}.a $libname.a'
10396      soname_spec='${libname}${release}${shared_ext}$major'
10397    fi
10398    shlibpath_var=LIBPATH
10399  fi
10400  ;;
10401
10402amigaos*)
10403  library_names_spec='$libname.ixlibrary $libname.a'
10404  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10405  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'
10406  ;;
10407
10408beos*)
10409  library_names_spec='${libname}${shared_ext}'
10410  dynamic_linker="$host_os ld.so"
10411  shlibpath_var=LIBRARY_PATH
10412  ;;
10413
10414bsdi[45]*)
10415  version_type=linux
10416  need_version=no
10417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418  soname_spec='${libname}${release}${shared_ext}$major'
10419  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10420  shlibpath_var=LD_LIBRARY_PATH
10421  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10422  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10423  # the default ld.so.conf also contains /usr/contrib/lib and
10424  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10425  # libtool to hard-code these into programs
10426  ;;
10427
10428cygwin* | mingw* | pw32*)
10429  version_type=windows
10430  shrext_cmds=".dll"
10431  need_version=no
10432  need_lib_prefix=no
10433
10434  case $GCC,$host_os in
10435  yes,cygwin* | yes,mingw* | yes,pw32*)
10436    library_names_spec='$libname.dll.a'
10437    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10438    postinstall_cmds='base_file=`basename \${file}`~
10439      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10440      dldir=$destdir/`dirname \$dlpath`~
10441      test -d \$dldir || mkdir -p \$dldir~
10442      $install_prog $dir/$dlname \$dldir/$dlname~
10443      chmod a+x \$dldir/$dlname'
10444    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10445      dlpath=$dir/\$dldll~
10446       $rm \$dlpath'
10447    shlibpath_overrides_runpath=yes
10448
10449    case $host_os in
10450    cygwin*)
10451      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10452      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10453      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10454      ;;
10455    mingw*)
10456      # MinGW DLLs use traditional 'lib' prefix
10457      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10458      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10459      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10460        # It is most probably a Windows format PATH printed by
10461        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10462        # path with ; separators, and with drive letters. We can handle the
10463        # drive letters (cygwin fileutils understands them), so leave them,
10464        # especially as we might pass files found there to a mingw objdump,
10465        # which wouldn't understand a cygwinified path. Ahh.
10466        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10467      else
10468        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10469      fi
10470      ;;
10471    pw32*)
10472      # pw32 DLLs use 'pw' prefix rather than 'lib'
10473      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10474      ;;
10475    esac
10476    ;;
10477
10478  *)
10479    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10480    ;;
10481  esac
10482  dynamic_linker='Win32 ld.exe'
10483  # FIXME: first we should search . and the directory the executable is in
10484  shlibpath_var=PATH
10485  ;;
10486
10487darwin* | rhapsody*)
10488  dynamic_linker="$host_os dyld"
10489  version_type=darwin
10490  need_lib_prefix=no
10491  need_version=no
10492  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10493  soname_spec='${libname}${release}${major}$shared_ext'
10494  shlibpath_overrides_runpath=yes
10495  shlibpath_var=DYLD_LIBRARY_PATH
10496  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10497
10498  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10499  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10500  ;;
10501
10502dgux*)
10503  version_type=linux
10504  need_lib_prefix=no
10505  need_version=no
10506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10507  soname_spec='${libname}${release}${shared_ext}$major'
10508  shlibpath_var=LD_LIBRARY_PATH
10509  ;;
10510
10511freebsd1*)
10512  dynamic_linker=no
10513  ;;
10514
10515freebsd* | dragonfly*)
10516  # DragonFly does not have aout.  When/if they implement a new
10517  # versioning mechanism, adjust this.
10518  if test -x /usr/bin/objformat; then
10519    objformat=`/usr/bin/objformat`
10520  else
10521    case $host_os in
10522    freebsd[123]*) objformat=aout ;;
10523    *) objformat=elf ;;
10524    esac
10525  fi
10526  version_type=freebsd-$objformat
10527  case $version_type in
10528    freebsd-elf*)
10529      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10530      need_version=no
10531      need_lib_prefix=no
10532      ;;
10533    freebsd-*)
10534      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10535      need_version=yes
10536      ;;
10537  esac
10538  shlibpath_var=LD_LIBRARY_PATH
10539  case $host_os in
10540  freebsd2*)
10541    shlibpath_overrides_runpath=yes
10542    ;;
10543  freebsd3.[01]* | freebsdelf3.[01]*)
10544    shlibpath_overrides_runpath=yes
10545    hardcode_into_libs=yes
10546    ;;
10547  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10548  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10549    shlibpath_overrides_runpath=no
10550    hardcode_into_libs=yes
10551    ;;
10552  *) # from 4.6 on, and DragonFly
10553    shlibpath_overrides_runpath=yes
10554    hardcode_into_libs=yes
10555    ;;
10556  esac
10557  ;;
10558
10559gnu*)
10560  version_type=linux
10561  need_lib_prefix=no
10562  need_version=no
10563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10564  soname_spec='${libname}${release}${shared_ext}$major'
10565  shlibpath_var=LD_LIBRARY_PATH
10566  hardcode_into_libs=yes
10567  ;;
10568
10569hpux9* | hpux10* | hpux11*)
10570  # Give a soname corresponding to the major version so that dld.sl refuses to
10571  # link against other versions.
10572  version_type=sunos
10573  need_lib_prefix=no
10574  need_version=no
10575  case $host_cpu in
10576  ia64*)
10577    shrext_cmds='.so'
10578    hardcode_into_libs=yes
10579    dynamic_linker="$host_os dld.so"
10580    shlibpath_var=LD_LIBRARY_PATH
10581    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10582    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583    soname_spec='${libname}${release}${shared_ext}$major'
10584    if test "X$HPUX_IA64_MODE" = X32; then
10585      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10586    else
10587      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10588    fi
10589    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10590    ;;
10591   hppa*64*)
10592     shrext_cmds='.sl'
10593     hardcode_into_libs=yes
10594     dynamic_linker="$host_os dld.sl"
10595     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10596     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10597     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598     soname_spec='${libname}${release}${shared_ext}$major'
10599     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10600     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10601     ;;
10602   *)
10603    shrext_cmds='.sl'
10604    dynamic_linker="$host_os dld.sl"
10605    shlibpath_var=SHLIB_PATH
10606    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10607    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608    soname_spec='${libname}${release}${shared_ext}$major'
10609    ;;
10610  esac
10611  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10612  postinstall_cmds='chmod 555 $lib'
10613  ;;
10614
10615interix[3-9]*)
10616  version_type=linux
10617  need_lib_prefix=no
10618  need_version=no
10619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10620  soname_spec='${libname}${release}${shared_ext}$major'
10621  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10622  shlibpath_var=LD_LIBRARY_PATH
10623  shlibpath_overrides_runpath=no
10624  hardcode_into_libs=yes
10625  ;;
10626
10627irix5* | irix6* | nonstopux*)
10628  case $host_os in
10629    nonstopux*) version_type=nonstopux ;;
10630    *)
10631	if test "$lt_cv_prog_gnu_ld" = yes; then
10632		version_type=linux
10633	else
10634		version_type=irix
10635	fi ;;
10636  esac
10637  need_lib_prefix=no
10638  need_version=no
10639  soname_spec='${libname}${release}${shared_ext}$major'
10640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10641  case $host_os in
10642  irix5* | nonstopux*)
10643    libsuff= shlibsuff=
10644    ;;
10645  *)
10646    case $LD in # libtool.m4 will add one of these switches to LD
10647    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10648      libsuff= shlibsuff= libmagic=32-bit;;
10649    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10650      libsuff=32 shlibsuff=N32 libmagic=N32;;
10651    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10652      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10653    *) libsuff= shlibsuff= libmagic=never-match;;
10654    esac
10655    ;;
10656  esac
10657  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10658  shlibpath_overrides_runpath=no
10659  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10660  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10661  hardcode_into_libs=yes
10662  ;;
10663
10664# No shared lib support for Linux oldld, aout, or coff.
10665linux*oldld* | linux*aout* | linux*coff*)
10666  dynamic_linker=no
10667  ;;
10668
10669# This must be Linux ELF.
10670linux* | k*bsd*-gnu)
10671  version_type=linux
10672  need_lib_prefix=no
10673  need_version=no
10674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675  soname_spec='${libname}${release}${shared_ext}$major'
10676  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10677  shlibpath_var=LD_LIBRARY_PATH
10678  shlibpath_overrides_runpath=no
10679  # This implies no fast_install, which is unacceptable.
10680  # Some rework will be needed to allow for fast_install
10681  # before this can be enabled.
10682  hardcode_into_libs=yes
10683
10684  # Append ld.so.conf contents to the search path
10685  if test -f /etc/ld.so.conf; then
10686    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' ' '`
10687    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10688  fi
10689
10690  # We used to test for /lib/ld.so.1 and disable shared libraries on
10691  # powerpc, because MkLinux only supported shared libraries with the
10692  # GNU dynamic linker.  Since this was broken with cross compilers,
10693  # most powerpc-linux boxes support dynamic linking these days and
10694  # people can always --disable-shared, the test was removed, and we
10695  # assume the GNU/Linux dynamic linker is in use.
10696  dynamic_linker='GNU/Linux ld.so'
10697  ;;
10698
10699netbsdelf*-gnu)
10700  version_type=linux
10701  need_lib_prefix=no
10702  need_version=no
10703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10704  soname_spec='${libname}${release}${shared_ext}$major'
10705  shlibpath_var=LD_LIBRARY_PATH
10706  shlibpath_overrides_runpath=no
10707  hardcode_into_libs=yes
10708  dynamic_linker='NetBSD ld.elf_so'
10709  ;;
10710
10711netbsd*)
10712  version_type=sunos
10713  need_lib_prefix=no
10714  need_version=no
10715  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10716    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10717    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10718    dynamic_linker='NetBSD (a.out) ld.so'
10719  else
10720    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10721    soname_spec='${libname}${release}${shared_ext}$major'
10722    dynamic_linker='NetBSD ld.elf_so'
10723  fi
10724  shlibpath_var=LD_LIBRARY_PATH
10725  shlibpath_overrides_runpath=yes
10726  hardcode_into_libs=yes
10727  ;;
10728
10729newsos6)
10730  version_type=linux
10731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10732  shlibpath_var=LD_LIBRARY_PATH
10733  shlibpath_overrides_runpath=yes
10734  ;;
10735
10736nto-qnx*)
10737  version_type=linux
10738  need_lib_prefix=no
10739  need_version=no
10740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741  soname_spec='${libname}${release}${shared_ext}$major'
10742  shlibpath_var=LD_LIBRARY_PATH
10743  shlibpath_overrides_runpath=yes
10744  ;;
10745
10746openbsd*)
10747  version_type=sunos
10748  sys_lib_dlsearch_path_spec="/usr/lib"
10749  need_lib_prefix=no
10750  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10751  case $host_os in
10752    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10753    *)                         need_version=no  ;;
10754  esac
10755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10756  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10757  shlibpath_var=LD_LIBRARY_PATH
10758  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10759    case $host_os in
10760      openbsd2.[89] | openbsd2.[89].*)
10761	shlibpath_overrides_runpath=no
10762	;;
10763      *)
10764	shlibpath_overrides_runpath=yes
10765	;;
10766      esac
10767  else
10768    shlibpath_overrides_runpath=yes
10769  fi
10770  ;;
10771
10772os2*)
10773  libname_spec='$name'
10774  shrext_cmds=".dll"
10775  need_lib_prefix=no
10776  library_names_spec='$libname${shared_ext} $libname.a'
10777  dynamic_linker='OS/2 ld.exe'
10778  shlibpath_var=LIBPATH
10779  ;;
10780
10781osf3* | osf4* | osf5*)
10782  version_type=osf
10783  need_lib_prefix=no
10784  need_version=no
10785  soname_spec='${libname}${release}${shared_ext}$major'
10786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787  shlibpath_var=LD_LIBRARY_PATH
10788  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10789  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10790  ;;
10791
10792rdos*)
10793  dynamic_linker=no
10794  ;;
10795
10796solaris*)
10797  version_type=linux
10798  need_lib_prefix=no
10799  need_version=no
10800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801  soname_spec='${libname}${release}${shared_ext}$major'
10802  shlibpath_var=LD_LIBRARY_PATH
10803  shlibpath_overrides_runpath=yes
10804  hardcode_into_libs=yes
10805  # ldd complains unless libraries are executable
10806  postinstall_cmds='chmod +x $lib'
10807  ;;
10808
10809sunos4*)
10810  version_type=sunos
10811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10812  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10813  shlibpath_var=LD_LIBRARY_PATH
10814  shlibpath_overrides_runpath=yes
10815  if test "$with_gnu_ld" = yes; then
10816    need_lib_prefix=no
10817  fi
10818  need_version=yes
10819  ;;
10820
10821sysv4 | sysv4.3*)
10822  version_type=linux
10823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824  soname_spec='${libname}${release}${shared_ext}$major'
10825  shlibpath_var=LD_LIBRARY_PATH
10826  case $host_vendor in
10827    sni)
10828      shlibpath_overrides_runpath=no
10829      need_lib_prefix=no
10830      export_dynamic_flag_spec='${wl}-Blargedynsym'
10831      runpath_var=LD_RUN_PATH
10832      ;;
10833    siemens)
10834      need_lib_prefix=no
10835      ;;
10836    motorola)
10837      need_lib_prefix=no
10838      need_version=no
10839      shlibpath_overrides_runpath=no
10840      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10841      ;;
10842  esac
10843  ;;
10844
10845sysv4*MP*)
10846  if test -d /usr/nec ;then
10847    version_type=linux
10848    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10849    soname_spec='$libname${shared_ext}.$major'
10850    shlibpath_var=LD_LIBRARY_PATH
10851  fi
10852  ;;
10853
10854sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10855  version_type=freebsd-elf
10856  need_lib_prefix=no
10857  need_version=no
10858  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10859  soname_spec='${libname}${release}${shared_ext}$major'
10860  shlibpath_var=LD_LIBRARY_PATH
10861  hardcode_into_libs=yes
10862  if test "$with_gnu_ld" = yes; then
10863    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10864    shlibpath_overrides_runpath=no
10865  else
10866    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10867    shlibpath_overrides_runpath=yes
10868    case $host_os in
10869      sco3.2v5*)
10870        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10871	;;
10872    esac
10873  fi
10874  sys_lib_dlsearch_path_spec='/usr/lib'
10875  ;;
10876
10877uts4*)
10878  version_type=linux
10879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880  soname_spec='${libname}${release}${shared_ext}$major'
10881  shlibpath_var=LD_LIBRARY_PATH
10882  ;;
10883
10884*)
10885  dynamic_linker=no
10886  ;;
10887esac
10888{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10889echo "${ECHO_T}$dynamic_linker" >&6; }
10890test "$dynamic_linker" = no && can_build_shared=no
10891
10892variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10893if test "$GCC" = yes; then
10894  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10895fi
10896
10897{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10898echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10899hardcode_action=
10900if test -n "$hardcode_libdir_flag_spec" || \
10901   test -n "$runpath_var" || \
10902   test "X$hardcode_automatic" = "Xyes" ; then
10903
10904  # We can hardcode non-existant directories.
10905  if test "$hardcode_direct" != no &&
10906     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10907     # have to relink, otherwise we might link with an installed library
10908     # when we should be linking with a yet-to-be-installed one
10909     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10910     test "$hardcode_minus_L" != no; then
10911    # Linking always hardcodes the temporary library directory.
10912    hardcode_action=relink
10913  else
10914    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10915    hardcode_action=immediate
10916  fi
10917else
10918  # We cannot hardcode anything, or else we can only hardcode existing
10919  # directories.
10920  hardcode_action=unsupported
10921fi
10922{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10923echo "${ECHO_T}$hardcode_action" >&6; }
10924
10925if test "$hardcode_action" = relink; then
10926  # Fast installation is not supported
10927  enable_fast_install=no
10928elif test "$shlibpath_overrides_runpath" = yes ||
10929     test "$enable_shared" = no; then
10930  # Fast installation is not necessary
10931  enable_fast_install=needless
10932fi
10933
10934striplib=
10935old_striplib=
10936{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10937echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10938if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10939  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10940  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10941  { echo "$as_me:$LINENO: result: yes" >&5
10942echo "${ECHO_T}yes" >&6; }
10943else
10944# FIXME - insert some real tests, host_os isn't really good enough
10945  case $host_os in
10946   darwin*)
10947       if test -n "$STRIP" ; then
10948         striplib="$STRIP -x"
10949         old_striplib="$STRIP -S"
10950         { echo "$as_me:$LINENO: result: yes" >&5
10951echo "${ECHO_T}yes" >&6; }
10952       else
10953  { echo "$as_me:$LINENO: result: no" >&5
10954echo "${ECHO_T}no" >&6; }
10955fi
10956       ;;
10957   *)
10958  { echo "$as_me:$LINENO: result: no" >&5
10959echo "${ECHO_T}no" >&6; }
10960    ;;
10961  esac
10962fi
10963
10964if test "x$enable_dlopen" != xyes; then
10965  enable_dlopen=unknown
10966  enable_dlopen_self=unknown
10967  enable_dlopen_self_static=unknown
10968else
10969  lt_cv_dlopen=no
10970  lt_cv_dlopen_libs=
10971
10972  case $host_os in
10973  beos*)
10974    lt_cv_dlopen="load_add_on"
10975    lt_cv_dlopen_libs=
10976    lt_cv_dlopen_self=yes
10977    ;;
10978
10979  mingw* | pw32*)
10980    lt_cv_dlopen="LoadLibrary"
10981    lt_cv_dlopen_libs=
10982   ;;
10983
10984  cygwin*)
10985    lt_cv_dlopen="dlopen"
10986    lt_cv_dlopen_libs=
10987   ;;
10988
10989  darwin*)
10990  # if libdl is installed we need to link against it
10991    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10992echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10993if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10994  echo $ECHO_N "(cached) $ECHO_C" >&6
10995else
10996  ac_check_lib_save_LIBS=$LIBS
10997LIBS="-ldl  $LIBS"
10998cat >conftest.$ac_ext <<_ACEOF
10999/* confdefs.h.  */
11000_ACEOF
11001cat confdefs.h >>conftest.$ac_ext
11002cat >>conftest.$ac_ext <<_ACEOF
11003/* end confdefs.h.  */
11004
11005/* Override any GCC internal prototype to avoid an error.
11006   Use char because int might match the return type of a GCC
11007   builtin and then its argument prototype would still apply.  */
11008#ifdef __cplusplus
11009extern "C"
11010#endif
11011char dlopen ();
11012int
11013main ()
11014{
11015return dlopen ();
11016  ;
11017  return 0;
11018}
11019_ACEOF
11020rm -f conftest.$ac_objext conftest$ac_exeext
11021if { (ac_try="$ac_link"
11022case "(($ac_try" in
11023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024  *) ac_try_echo=$ac_try;;
11025esac
11026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027  (eval "$ac_link") 2>conftest.er1
11028  ac_status=$?
11029  grep -v '^ *+' conftest.er1 >conftest.err
11030  rm -f conftest.er1
11031  cat conftest.err >&5
11032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033  (exit $ac_status); } && {
11034	 test -z "$ac_c_werror_flag" ||
11035	 test ! -s conftest.err
11036       } && test -s conftest$ac_exeext &&
11037       $as_test_x conftest$ac_exeext; then
11038  ac_cv_lib_dl_dlopen=yes
11039else
11040  echo "$as_me: failed program was:" >&5
11041sed 's/^/| /' conftest.$ac_ext >&5
11042
11043	ac_cv_lib_dl_dlopen=no
11044fi
11045
11046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11047      conftest$ac_exeext conftest.$ac_ext
11048LIBS=$ac_check_lib_save_LIBS
11049fi
11050{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11051echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11052if test $ac_cv_lib_dl_dlopen = yes; then
11053  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11054else
11055
11056    lt_cv_dlopen="dyld"
11057    lt_cv_dlopen_libs=
11058    lt_cv_dlopen_self=yes
11059
11060fi
11061
11062   ;;
11063
11064  *)
11065    { echo "$as_me:$LINENO: checking for shl_load" >&5
11066echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11067if test "${ac_cv_func_shl_load+set}" = set; then
11068  echo $ECHO_N "(cached) $ECHO_C" >&6
11069else
11070  cat >conftest.$ac_ext <<_ACEOF
11071/* confdefs.h.  */
11072_ACEOF
11073cat confdefs.h >>conftest.$ac_ext
11074cat >>conftest.$ac_ext <<_ACEOF
11075/* end confdefs.h.  */
11076/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11077   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11078#define shl_load innocuous_shl_load
11079
11080/* System header to define __stub macros and hopefully few prototypes,
11081    which can conflict with char shl_load (); below.
11082    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11083    <limits.h> exists even on freestanding compilers.  */
11084
11085#ifdef __STDC__
11086# include <limits.h>
11087#else
11088# include <assert.h>
11089#endif
11090
11091#undef shl_load
11092
11093/* Override any GCC internal prototype to avoid an error.
11094   Use char because int might match the return type of a GCC
11095   builtin and then its argument prototype would still apply.  */
11096#ifdef __cplusplus
11097extern "C"
11098#endif
11099char shl_load ();
11100/* The GNU C library defines this for functions which it implements
11101    to always fail with ENOSYS.  Some functions are actually named
11102    something starting with __ and the normal name is an alias.  */
11103#if defined __stub_shl_load || defined __stub___shl_load
11104choke me
11105#endif
11106
11107int
11108main ()
11109{
11110return shl_load ();
11111  ;
11112  return 0;
11113}
11114_ACEOF
11115rm -f conftest.$ac_objext conftest$ac_exeext
11116if { (ac_try="$ac_link"
11117case "(($ac_try" in
11118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11119  *) ac_try_echo=$ac_try;;
11120esac
11121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11122  (eval "$ac_link") 2>conftest.er1
11123  ac_status=$?
11124  grep -v '^ *+' conftest.er1 >conftest.err
11125  rm -f conftest.er1
11126  cat conftest.err >&5
11127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128  (exit $ac_status); } && {
11129	 test -z "$ac_c_werror_flag" ||
11130	 test ! -s conftest.err
11131       } && test -s conftest$ac_exeext &&
11132       $as_test_x conftest$ac_exeext; then
11133  ac_cv_func_shl_load=yes
11134else
11135  echo "$as_me: failed program was:" >&5
11136sed 's/^/| /' conftest.$ac_ext >&5
11137
11138	ac_cv_func_shl_load=no
11139fi
11140
11141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11142      conftest$ac_exeext conftest.$ac_ext
11143fi
11144{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11145echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11146if test $ac_cv_func_shl_load = yes; then
11147  lt_cv_dlopen="shl_load"
11148else
11149  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11150echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11151if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11152  echo $ECHO_N "(cached) $ECHO_C" >&6
11153else
11154  ac_check_lib_save_LIBS=$LIBS
11155LIBS="-ldld  $LIBS"
11156cat >conftest.$ac_ext <<_ACEOF
11157/* confdefs.h.  */
11158_ACEOF
11159cat confdefs.h >>conftest.$ac_ext
11160cat >>conftest.$ac_ext <<_ACEOF
11161/* end confdefs.h.  */
11162
11163/* Override any GCC internal prototype to avoid an error.
11164   Use char because int might match the return type of a GCC
11165   builtin and then its argument prototype would still apply.  */
11166#ifdef __cplusplus
11167extern "C"
11168#endif
11169char shl_load ();
11170int
11171main ()
11172{
11173return shl_load ();
11174  ;
11175  return 0;
11176}
11177_ACEOF
11178rm -f conftest.$ac_objext conftest$ac_exeext
11179if { (ac_try="$ac_link"
11180case "(($ac_try" in
11181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182  *) ac_try_echo=$ac_try;;
11183esac
11184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185  (eval "$ac_link") 2>conftest.er1
11186  ac_status=$?
11187  grep -v '^ *+' conftest.er1 >conftest.err
11188  rm -f conftest.er1
11189  cat conftest.err >&5
11190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191  (exit $ac_status); } && {
11192	 test -z "$ac_c_werror_flag" ||
11193	 test ! -s conftest.err
11194       } && test -s conftest$ac_exeext &&
11195       $as_test_x conftest$ac_exeext; then
11196  ac_cv_lib_dld_shl_load=yes
11197else
11198  echo "$as_me: failed program was:" >&5
11199sed 's/^/| /' conftest.$ac_ext >&5
11200
11201	ac_cv_lib_dld_shl_load=no
11202fi
11203
11204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11205      conftest$ac_exeext conftest.$ac_ext
11206LIBS=$ac_check_lib_save_LIBS
11207fi
11208{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11209echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11210if test $ac_cv_lib_dld_shl_load = yes; then
11211  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11212else
11213  { echo "$as_me:$LINENO: checking for dlopen" >&5
11214echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11215if test "${ac_cv_func_dlopen+set}" = set; then
11216  echo $ECHO_N "(cached) $ECHO_C" >&6
11217else
11218  cat >conftest.$ac_ext <<_ACEOF
11219/* confdefs.h.  */
11220_ACEOF
11221cat confdefs.h >>conftest.$ac_ext
11222cat >>conftest.$ac_ext <<_ACEOF
11223/* end confdefs.h.  */
11224/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11225   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11226#define dlopen innocuous_dlopen
11227
11228/* System header to define __stub macros and hopefully few prototypes,
11229    which can conflict with char dlopen (); below.
11230    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11231    <limits.h> exists even on freestanding compilers.  */
11232
11233#ifdef __STDC__
11234# include <limits.h>
11235#else
11236# include <assert.h>
11237#endif
11238
11239#undef dlopen
11240
11241/* Override any GCC internal prototype to avoid an error.
11242   Use char because int might match the return type of a GCC
11243   builtin and then its argument prototype would still apply.  */
11244#ifdef __cplusplus
11245extern "C"
11246#endif
11247char dlopen ();
11248/* The GNU C library defines this for functions which it implements
11249    to always fail with ENOSYS.  Some functions are actually named
11250    something starting with __ and the normal name is an alias.  */
11251#if defined __stub_dlopen || defined __stub___dlopen
11252choke me
11253#endif
11254
11255int
11256main ()
11257{
11258return dlopen ();
11259  ;
11260  return 0;
11261}
11262_ACEOF
11263rm -f conftest.$ac_objext conftest$ac_exeext
11264if { (ac_try="$ac_link"
11265case "(($ac_try" in
11266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267  *) ac_try_echo=$ac_try;;
11268esac
11269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270  (eval "$ac_link") 2>conftest.er1
11271  ac_status=$?
11272  grep -v '^ *+' conftest.er1 >conftest.err
11273  rm -f conftest.er1
11274  cat conftest.err >&5
11275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276  (exit $ac_status); } && {
11277	 test -z "$ac_c_werror_flag" ||
11278	 test ! -s conftest.err
11279       } && test -s conftest$ac_exeext &&
11280       $as_test_x conftest$ac_exeext; then
11281  ac_cv_func_dlopen=yes
11282else
11283  echo "$as_me: failed program was:" >&5
11284sed 's/^/| /' conftest.$ac_ext >&5
11285
11286	ac_cv_func_dlopen=no
11287fi
11288
11289rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11290      conftest$ac_exeext conftest.$ac_ext
11291fi
11292{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11293echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11294if test $ac_cv_func_dlopen = yes; then
11295  lt_cv_dlopen="dlopen"
11296else
11297  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11298echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11299if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11300  echo $ECHO_N "(cached) $ECHO_C" >&6
11301else
11302  ac_check_lib_save_LIBS=$LIBS
11303LIBS="-ldl  $LIBS"
11304cat >conftest.$ac_ext <<_ACEOF
11305/* confdefs.h.  */
11306_ACEOF
11307cat confdefs.h >>conftest.$ac_ext
11308cat >>conftest.$ac_ext <<_ACEOF
11309/* end confdefs.h.  */
11310
11311/* Override any GCC internal prototype to avoid an error.
11312   Use char because int might match the return type of a GCC
11313   builtin and then its argument prototype would still apply.  */
11314#ifdef __cplusplus
11315extern "C"
11316#endif
11317char dlopen ();
11318int
11319main ()
11320{
11321return dlopen ();
11322  ;
11323  return 0;
11324}
11325_ACEOF
11326rm -f conftest.$ac_objext conftest$ac_exeext
11327if { (ac_try="$ac_link"
11328case "(($ac_try" in
11329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330  *) ac_try_echo=$ac_try;;
11331esac
11332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11333  (eval "$ac_link") 2>conftest.er1
11334  ac_status=$?
11335  grep -v '^ *+' conftest.er1 >conftest.err
11336  rm -f conftest.er1
11337  cat conftest.err >&5
11338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339  (exit $ac_status); } && {
11340	 test -z "$ac_c_werror_flag" ||
11341	 test ! -s conftest.err
11342       } && test -s conftest$ac_exeext &&
11343       $as_test_x conftest$ac_exeext; then
11344  ac_cv_lib_dl_dlopen=yes
11345else
11346  echo "$as_me: failed program was:" >&5
11347sed 's/^/| /' conftest.$ac_ext >&5
11348
11349	ac_cv_lib_dl_dlopen=no
11350fi
11351
11352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11353      conftest$ac_exeext conftest.$ac_ext
11354LIBS=$ac_check_lib_save_LIBS
11355fi
11356{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11357echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11358if test $ac_cv_lib_dl_dlopen = yes; then
11359  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11360else
11361  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11362echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11363if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11364  echo $ECHO_N "(cached) $ECHO_C" >&6
11365else
11366  ac_check_lib_save_LIBS=$LIBS
11367LIBS="-lsvld  $LIBS"
11368cat >conftest.$ac_ext <<_ACEOF
11369/* confdefs.h.  */
11370_ACEOF
11371cat confdefs.h >>conftest.$ac_ext
11372cat >>conftest.$ac_ext <<_ACEOF
11373/* end confdefs.h.  */
11374
11375/* Override any GCC internal prototype to avoid an error.
11376   Use char because int might match the return type of a GCC
11377   builtin and then its argument prototype would still apply.  */
11378#ifdef __cplusplus
11379extern "C"
11380#endif
11381char dlopen ();
11382int
11383main ()
11384{
11385return dlopen ();
11386  ;
11387  return 0;
11388}
11389_ACEOF
11390rm -f conftest.$ac_objext conftest$ac_exeext
11391if { (ac_try="$ac_link"
11392case "(($ac_try" in
11393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394  *) ac_try_echo=$ac_try;;
11395esac
11396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11397  (eval "$ac_link") 2>conftest.er1
11398  ac_status=$?
11399  grep -v '^ *+' conftest.er1 >conftest.err
11400  rm -f conftest.er1
11401  cat conftest.err >&5
11402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403  (exit $ac_status); } && {
11404	 test -z "$ac_c_werror_flag" ||
11405	 test ! -s conftest.err
11406       } && test -s conftest$ac_exeext &&
11407       $as_test_x conftest$ac_exeext; then
11408  ac_cv_lib_svld_dlopen=yes
11409else
11410  echo "$as_me: failed program was:" >&5
11411sed 's/^/| /' conftest.$ac_ext >&5
11412
11413	ac_cv_lib_svld_dlopen=no
11414fi
11415
11416rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11417      conftest$ac_exeext conftest.$ac_ext
11418LIBS=$ac_check_lib_save_LIBS
11419fi
11420{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11421echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11422if test $ac_cv_lib_svld_dlopen = yes; then
11423  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11424else
11425  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11426echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11427if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11428  echo $ECHO_N "(cached) $ECHO_C" >&6
11429else
11430  ac_check_lib_save_LIBS=$LIBS
11431LIBS="-ldld  $LIBS"
11432cat >conftest.$ac_ext <<_ACEOF
11433/* confdefs.h.  */
11434_ACEOF
11435cat confdefs.h >>conftest.$ac_ext
11436cat >>conftest.$ac_ext <<_ACEOF
11437/* end confdefs.h.  */
11438
11439/* Override any GCC internal prototype to avoid an error.
11440   Use char because int might match the return type of a GCC
11441   builtin and then its argument prototype would still apply.  */
11442#ifdef __cplusplus
11443extern "C"
11444#endif
11445char dld_link ();
11446int
11447main ()
11448{
11449return dld_link ();
11450  ;
11451  return 0;
11452}
11453_ACEOF
11454rm -f conftest.$ac_objext conftest$ac_exeext
11455if { (ac_try="$ac_link"
11456case "(($ac_try" in
11457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458  *) ac_try_echo=$ac_try;;
11459esac
11460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461  (eval "$ac_link") 2>conftest.er1
11462  ac_status=$?
11463  grep -v '^ *+' conftest.er1 >conftest.err
11464  rm -f conftest.er1
11465  cat conftest.err >&5
11466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467  (exit $ac_status); } && {
11468	 test -z "$ac_c_werror_flag" ||
11469	 test ! -s conftest.err
11470       } && test -s conftest$ac_exeext &&
11471       $as_test_x conftest$ac_exeext; then
11472  ac_cv_lib_dld_dld_link=yes
11473else
11474  echo "$as_me: failed program was:" >&5
11475sed 's/^/| /' conftest.$ac_ext >&5
11476
11477	ac_cv_lib_dld_dld_link=no
11478fi
11479
11480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11481      conftest$ac_exeext conftest.$ac_ext
11482LIBS=$ac_check_lib_save_LIBS
11483fi
11484{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11485echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11486if test $ac_cv_lib_dld_dld_link = yes; then
11487  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11488fi
11489
11490
11491fi
11492
11493
11494fi
11495
11496
11497fi
11498
11499
11500fi
11501
11502
11503fi
11504
11505    ;;
11506  esac
11507
11508  if test "x$lt_cv_dlopen" != xno; then
11509    enable_dlopen=yes
11510  else
11511    enable_dlopen=no
11512  fi
11513
11514  case $lt_cv_dlopen in
11515  dlopen)
11516    save_CPPFLAGS="$CPPFLAGS"
11517    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11518
11519    save_LDFLAGS="$LDFLAGS"
11520    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11521
11522    save_LIBS="$LIBS"
11523    LIBS="$lt_cv_dlopen_libs $LIBS"
11524
11525    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11526echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11527if test "${lt_cv_dlopen_self+set}" = set; then
11528  echo $ECHO_N "(cached) $ECHO_C" >&6
11529else
11530  	  if test "$cross_compiling" = yes; then :
11531  lt_cv_dlopen_self=cross
11532else
11533  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11534  lt_status=$lt_dlunknown
11535  cat > conftest.$ac_ext <<EOF
11536#line 11536 "configure"
11537#include "confdefs.h"
11538
11539#if HAVE_DLFCN_H
11540#include <dlfcn.h>
11541#endif
11542
11543#include <stdio.h>
11544
11545#ifdef RTLD_GLOBAL
11546#  define LT_DLGLOBAL		RTLD_GLOBAL
11547#else
11548#  ifdef DL_GLOBAL
11549#    define LT_DLGLOBAL		DL_GLOBAL
11550#  else
11551#    define LT_DLGLOBAL		0
11552#  endif
11553#endif
11554
11555/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11556   find out it does not work in some platform. */
11557#ifndef LT_DLLAZY_OR_NOW
11558#  ifdef RTLD_LAZY
11559#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11560#  else
11561#    ifdef DL_LAZY
11562#      define LT_DLLAZY_OR_NOW		DL_LAZY
11563#    else
11564#      ifdef RTLD_NOW
11565#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11566#      else
11567#        ifdef DL_NOW
11568#          define LT_DLLAZY_OR_NOW	DL_NOW
11569#        else
11570#          define LT_DLLAZY_OR_NOW	0
11571#        endif
11572#      endif
11573#    endif
11574#  endif
11575#endif
11576
11577#ifdef __cplusplus
11578extern "C" void exit (int);
11579#endif
11580
11581void fnord() { int i=42;}
11582int main ()
11583{
11584  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11585  int status = $lt_dlunknown;
11586
11587  if (self)
11588    {
11589      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11590      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11591      /* dlclose (self); */
11592    }
11593  else
11594    puts (dlerror ());
11595
11596    exit (status);
11597}
11598EOF
11599  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11600  (eval $ac_link) 2>&5
11601  ac_status=$?
11602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11604    (./conftest; exit; ) >&5 2>/dev/null
11605    lt_status=$?
11606    case x$lt_status in
11607      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11608      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11609      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11610    esac
11611  else :
11612    # compilation failed
11613    lt_cv_dlopen_self=no
11614  fi
11615fi
11616rm -fr conftest*
11617
11618
11619fi
11620{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11621echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11622
11623    if test "x$lt_cv_dlopen_self" = xyes; then
11624      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11625      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11626echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11627if test "${lt_cv_dlopen_self_static+set}" = set; then
11628  echo $ECHO_N "(cached) $ECHO_C" >&6
11629else
11630  	  if test "$cross_compiling" = yes; then :
11631  lt_cv_dlopen_self_static=cross
11632else
11633  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11634  lt_status=$lt_dlunknown
11635  cat > conftest.$ac_ext <<EOF
11636#line 11636 "configure"
11637#include "confdefs.h"
11638
11639#if HAVE_DLFCN_H
11640#include <dlfcn.h>
11641#endif
11642
11643#include <stdio.h>
11644
11645#ifdef RTLD_GLOBAL
11646#  define LT_DLGLOBAL		RTLD_GLOBAL
11647#else
11648#  ifdef DL_GLOBAL
11649#    define LT_DLGLOBAL		DL_GLOBAL
11650#  else
11651#    define LT_DLGLOBAL		0
11652#  endif
11653#endif
11654
11655/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11656   find out it does not work in some platform. */
11657#ifndef LT_DLLAZY_OR_NOW
11658#  ifdef RTLD_LAZY
11659#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11660#  else
11661#    ifdef DL_LAZY
11662#      define LT_DLLAZY_OR_NOW		DL_LAZY
11663#    else
11664#      ifdef RTLD_NOW
11665#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11666#      else
11667#        ifdef DL_NOW
11668#          define LT_DLLAZY_OR_NOW	DL_NOW
11669#        else
11670#          define LT_DLLAZY_OR_NOW	0
11671#        endif
11672#      endif
11673#    endif
11674#  endif
11675#endif
11676
11677#ifdef __cplusplus
11678extern "C" void exit (int);
11679#endif
11680
11681void fnord() { int i=42;}
11682int main ()
11683{
11684  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11685  int status = $lt_dlunknown;
11686
11687  if (self)
11688    {
11689      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11690      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11691      /* dlclose (self); */
11692    }
11693  else
11694    puts (dlerror ());
11695
11696    exit (status);
11697}
11698EOF
11699  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11700  (eval $ac_link) 2>&5
11701  ac_status=$?
11702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11704    (./conftest; exit; ) >&5 2>/dev/null
11705    lt_status=$?
11706    case x$lt_status in
11707      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11708      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11709      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11710    esac
11711  else :
11712    # compilation failed
11713    lt_cv_dlopen_self_static=no
11714  fi
11715fi
11716rm -fr conftest*
11717
11718
11719fi
11720{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11721echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11722    fi
11723
11724    CPPFLAGS="$save_CPPFLAGS"
11725    LDFLAGS="$save_LDFLAGS"
11726    LIBS="$save_LIBS"
11727    ;;
11728  esac
11729
11730  case $lt_cv_dlopen_self in
11731  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11732  *) enable_dlopen_self=unknown ;;
11733  esac
11734
11735  case $lt_cv_dlopen_self_static in
11736  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11737  *) enable_dlopen_self_static=unknown ;;
11738  esac
11739fi
11740
11741
11742# Report which library types will actually be built
11743{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11744echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11745{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11746echo "${ECHO_T}$can_build_shared" >&6; }
11747
11748{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11749echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11750test "$can_build_shared" = "no" && enable_shared=no
11751
11752# On AIX, shared libraries and static libraries use the same namespace, and
11753# are all built from PIC.
11754case $host_os in
11755aix3*)
11756  test "$enable_shared" = yes && enable_static=no
11757  if test -n "$RANLIB"; then
11758    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11759    postinstall_cmds='$RANLIB $lib'
11760  fi
11761  ;;
11762
11763aix4* | aix5*)
11764  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11765    test "$enable_shared" = yes && enable_static=no
11766  fi
11767    ;;
11768esac
11769{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11770echo "${ECHO_T}$enable_shared" >&6; }
11771
11772{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11773echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11774# Make sure either enable_shared or enable_static is yes.
11775test "$enable_shared" = yes || enable_static=yes
11776{ echo "$as_me:$LINENO: result: $enable_static" >&5
11777echo "${ECHO_T}$enable_static" >&6; }
11778
11779# The else clause should only fire when bootstrapping the
11780# libtool distribution, otherwise you forgot to ship ltmain.sh
11781# with your package, and you will get complaints that there are
11782# no rules to generate ltmain.sh.
11783if test -f "$ltmain"; then
11784  # See if we are running on zsh, and set the options which allow our commands through
11785  # without removal of \ escapes.
11786  if test -n "${ZSH_VERSION+set}" ; then
11787    setopt NO_GLOB_SUBST
11788  fi
11789  # Now quote all the things that may contain metacharacters while being
11790  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11791  # variables and quote the copies for generation of the libtool script.
11792  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11793    SED SHELL STRIP \
11794    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11795    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11796    deplibs_check_method reload_flag reload_cmds need_locks \
11797    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11798    lt_cv_sys_global_symbol_to_c_name_address \
11799    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11800    old_postinstall_cmds old_postuninstall_cmds \
11801    compiler \
11802    CC \
11803    LD \
11804    lt_prog_compiler_wl \
11805    lt_prog_compiler_pic \
11806    lt_prog_compiler_static \
11807    lt_prog_compiler_no_builtin_flag \
11808    export_dynamic_flag_spec \
11809    thread_safe_flag_spec \
11810    whole_archive_flag_spec \
11811    enable_shared_with_static_runtimes \
11812    old_archive_cmds \
11813    old_archive_from_new_cmds \
11814    predep_objects \
11815    postdep_objects \
11816    predeps \
11817    postdeps \
11818    compiler_lib_search_path \
11819    archive_cmds \
11820    archive_expsym_cmds \
11821    postinstall_cmds \
11822    postuninstall_cmds \
11823    old_archive_from_expsyms_cmds \
11824    allow_undefined_flag \
11825    no_undefined_flag \
11826    export_symbols_cmds \
11827    hardcode_libdir_flag_spec \
11828    hardcode_libdir_flag_spec_ld \
11829    hardcode_libdir_separator \
11830    hardcode_automatic \
11831    module_cmds \
11832    module_expsym_cmds \
11833    lt_cv_prog_compiler_c_o \
11834    fix_srcfile_path \
11835    exclude_expsyms \
11836    include_expsyms; do
11837
11838    case $var in
11839    old_archive_cmds | \
11840    old_archive_from_new_cmds | \
11841    archive_cmds | \
11842    archive_expsym_cmds | \
11843    module_cmds | \
11844    module_expsym_cmds | \
11845    old_archive_from_expsyms_cmds | \
11846    export_symbols_cmds | \
11847    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11848    postinstall_cmds | postuninstall_cmds | \
11849    old_postinstall_cmds | old_postuninstall_cmds | \
11850    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11851      # Double-quote double-evaled strings.
11852      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11853      ;;
11854    *)
11855      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11856      ;;
11857    esac
11858  done
11859
11860  case $lt_echo in
11861  *'\$0 --fallback-echo"')
11862    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11863    ;;
11864  esac
11865
11866cfgfile="${ofile}T"
11867  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11868  $rm -f "$cfgfile"
11869  { echo "$as_me:$LINENO: creating $ofile" >&5
11870echo "$as_me: creating $ofile" >&6;}
11871
11872  cat <<__EOF__ >> "$cfgfile"
11873#! $SHELL
11874
11875# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11876# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11877# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11878#
11879# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11880# Free Software Foundation, Inc.
11881#
11882# This file is part of GNU Libtool:
11883# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11884#
11885# This program is free software; you can redistribute it and/or modify
11886# it under the terms of the GNU General Public License as published by
11887# the Free Software Foundation; either version 2 of the License, or
11888# (at your option) any later version.
11889#
11890# This program is distributed in the hope that it will be useful, but
11891# WITHOUT ANY WARRANTY; without even the implied warranty of
11892# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11893# General Public License for more details.
11894#
11895# You should have received a copy of the GNU General Public License
11896# along with this program; if not, write to the Free Software
11897# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11898#
11899# As a special exception to the GNU General Public License, if you
11900# distribute this file as part of a program that contains a
11901# configuration script generated by Autoconf, you may include it under
11902# the same distribution terms that you use for the rest of that program.
11903
11904# A sed program that does not truncate output.
11905SED=$lt_SED
11906
11907# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11908Xsed="$SED -e 1s/^X//"
11909
11910# The HP-UX ksh and POSIX shell print the target directory to stdout
11911# if CDPATH is set.
11912(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11913
11914# The names of the tagged configurations supported by this script.
11915available_tags=
11916
11917# ### BEGIN LIBTOOL CONFIG
11918
11919# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11920
11921# Shell to use when invoking shell scripts.
11922SHELL=$lt_SHELL
11923
11924# Whether or not to build shared libraries.
11925build_libtool_libs=$enable_shared
11926
11927# Whether or not to build static libraries.
11928build_old_libs=$enable_static
11929
11930# Whether or not to add -lc for building shared libraries.
11931build_libtool_need_lc=$archive_cmds_need_lc
11932
11933# Whether or not to disallow shared libs when runtime libs are static
11934allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11935
11936# Whether or not to optimize for fast installation.
11937fast_install=$enable_fast_install
11938
11939# The host system.
11940host_alias=$host_alias
11941host=$host
11942host_os=$host_os
11943
11944# The build system.
11945build_alias=$build_alias
11946build=$build
11947build_os=$build_os
11948
11949# An echo program that does not interpret backslashes.
11950echo=$lt_echo
11951
11952# The archiver.
11953AR=$lt_AR
11954AR_FLAGS=$lt_AR_FLAGS
11955
11956# A C compiler.
11957LTCC=$lt_LTCC
11958
11959# LTCC compiler flags.
11960LTCFLAGS=$lt_LTCFLAGS
11961
11962# A language-specific compiler.
11963CC=$lt_compiler
11964
11965# Is the compiler the GNU C compiler?
11966with_gcc=$GCC
11967
11968# An ERE matcher.
11969EGREP=$lt_EGREP
11970
11971# The linker used to build libraries.
11972LD=$lt_LD
11973
11974# Whether we need hard or soft links.
11975LN_S=$lt_LN_S
11976
11977# A BSD-compatible nm program.
11978NM=$lt_NM
11979
11980# A symbol stripping program
11981STRIP=$lt_STRIP
11982
11983# Used to examine libraries when file_magic_cmd begins "file"
11984MAGIC_CMD=$MAGIC_CMD
11985
11986# Used on cygwin: DLL creation program.
11987DLLTOOL="$DLLTOOL"
11988
11989# Used on cygwin: object dumper.
11990OBJDUMP="$OBJDUMP"
11991
11992# Used on cygwin: assembler.
11993AS="$AS"
11994
11995# The name of the directory that contains temporary libtool files.
11996objdir=$objdir
11997
11998# How to create reloadable object files.
11999reload_flag=$lt_reload_flag
12000reload_cmds=$lt_reload_cmds
12001
12002# How to pass a linker flag through the compiler.
12003wl=$lt_lt_prog_compiler_wl
12004
12005# Object file suffix (normally "o").
12006objext="$ac_objext"
12007
12008# Old archive suffix (normally "a").
12009libext="$libext"
12010
12011# Shared library suffix (normally ".so").
12012shrext_cmds='$shrext_cmds'
12013
12014# Executable file suffix (normally "").
12015exeext="$exeext"
12016
12017# Additional compiler flags for building library objects.
12018pic_flag=$lt_lt_prog_compiler_pic
12019pic_mode=$pic_mode
12020
12021# What is the maximum length of a command?
12022max_cmd_len=$lt_cv_sys_max_cmd_len
12023
12024# Does compiler simultaneously support -c and -o options?
12025compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12026
12027# Must we lock files when doing compilation?
12028need_locks=$lt_need_locks
12029
12030# Do we need the lib prefix for modules?
12031need_lib_prefix=$need_lib_prefix
12032
12033# Do we need a version for libraries?
12034need_version=$need_version
12035
12036# Whether dlopen is supported.
12037dlopen_support=$enable_dlopen
12038
12039# Whether dlopen of programs is supported.
12040dlopen_self=$enable_dlopen_self
12041
12042# Whether dlopen of statically linked programs is supported.
12043dlopen_self_static=$enable_dlopen_self_static
12044
12045# Compiler flag to prevent dynamic linking.
12046link_static_flag=$lt_lt_prog_compiler_static
12047
12048# Compiler flag to turn off builtin functions.
12049no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12050
12051# Compiler flag to allow reflexive dlopens.
12052export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12053
12054# Compiler flag to generate shared objects directly from archives.
12055whole_archive_flag_spec=$lt_whole_archive_flag_spec
12056
12057# Compiler flag to generate thread-safe objects.
12058thread_safe_flag_spec=$lt_thread_safe_flag_spec
12059
12060# Library versioning type.
12061version_type=$version_type
12062
12063# Format of library name prefix.
12064libname_spec=$lt_libname_spec
12065
12066# List of archive names.  First name is the real one, the rest are links.
12067# The last name is the one that the linker finds with -lNAME.
12068library_names_spec=$lt_library_names_spec
12069
12070# The coded name of the library, if different from the real name.
12071soname_spec=$lt_soname_spec
12072
12073# Commands used to build and install an old-style archive.
12074RANLIB=$lt_RANLIB
12075old_archive_cmds=$lt_old_archive_cmds
12076old_postinstall_cmds=$lt_old_postinstall_cmds
12077old_postuninstall_cmds=$lt_old_postuninstall_cmds
12078
12079# Create an old-style archive from a shared archive.
12080old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12081
12082# Create a temporary old-style archive to link instead of a shared archive.
12083old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12084
12085# Commands used to build and install a shared archive.
12086archive_cmds=$lt_archive_cmds
12087archive_expsym_cmds=$lt_archive_expsym_cmds
12088postinstall_cmds=$lt_postinstall_cmds
12089postuninstall_cmds=$lt_postuninstall_cmds
12090
12091# Commands used to build a loadable module (assumed same as above if empty)
12092module_cmds=$lt_module_cmds
12093module_expsym_cmds=$lt_module_expsym_cmds
12094
12095# Commands to strip libraries.
12096old_striplib=$lt_old_striplib
12097striplib=$lt_striplib
12098
12099# Dependencies to place before the objects being linked to create a
12100# shared library.
12101predep_objects=$lt_predep_objects
12102
12103# Dependencies to place after the objects being linked to create a
12104# shared library.
12105postdep_objects=$lt_postdep_objects
12106
12107# Dependencies to place before the objects being linked to create a
12108# shared library.
12109predeps=$lt_predeps
12110
12111# Dependencies to place after the objects being linked to create a
12112# shared library.
12113postdeps=$lt_postdeps
12114
12115# The library search path used internally by the compiler when linking
12116# a shared library.
12117compiler_lib_search_path=$lt_compiler_lib_search_path
12118
12119# Method to check whether dependent libraries are shared objects.
12120deplibs_check_method=$lt_deplibs_check_method
12121
12122# Command to use when deplibs_check_method == file_magic.
12123file_magic_cmd=$lt_file_magic_cmd
12124
12125# Flag that allows shared libraries with undefined symbols to be built.
12126allow_undefined_flag=$lt_allow_undefined_flag
12127
12128# Flag that forces no undefined symbols.
12129no_undefined_flag=$lt_no_undefined_flag
12130
12131# Commands used to finish a libtool library installation in a directory.
12132finish_cmds=$lt_finish_cmds
12133
12134# Same as above, but a single script fragment to be evaled but not shown.
12135finish_eval=$lt_finish_eval
12136
12137# Take the output of nm and produce a listing of raw symbols and C names.
12138global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12139
12140# Transform the output of nm in a proper C declaration
12141global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12142
12143# Transform the output of nm in a C name address pair
12144global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12145
12146# This is the shared library runtime path variable.
12147runpath_var=$runpath_var
12148
12149# This is the shared library path variable.
12150shlibpath_var=$shlibpath_var
12151
12152# Is shlibpath searched before the hard-coded library search path?
12153shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12154
12155# How to hardcode a shared library path into an executable.
12156hardcode_action=$hardcode_action
12157
12158# Whether we should hardcode library paths into libraries.
12159hardcode_into_libs=$hardcode_into_libs
12160
12161# Flag to hardcode \$libdir into a binary during linking.
12162# This must work even if \$libdir does not exist.
12163hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12164
12165# If ld is used when linking, flag to hardcode \$libdir into
12166# a binary during linking. This must work even if \$libdir does
12167# not exist.
12168hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12169
12170# Whether we need a single -rpath flag with a separated argument.
12171hardcode_libdir_separator=$lt_hardcode_libdir_separator
12172
12173# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12174# resulting binary.
12175hardcode_direct=$hardcode_direct
12176
12177# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12178# resulting binary.
12179hardcode_minus_L=$hardcode_minus_L
12180
12181# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12182# the resulting binary.
12183hardcode_shlibpath_var=$hardcode_shlibpath_var
12184
12185# Set to yes if building a shared library automatically hardcodes DIR into the library
12186# and all subsequent libraries and executables linked against it.
12187hardcode_automatic=$hardcode_automatic
12188
12189# Variables whose values should be saved in libtool wrapper scripts and
12190# restored at relink time.
12191variables_saved_for_relink="$variables_saved_for_relink"
12192
12193# Whether libtool must link a program against all its dependency libraries.
12194link_all_deplibs=$link_all_deplibs
12195
12196# Compile-time system search path for libraries
12197sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12198
12199# Run-time system search path for libraries
12200sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12201
12202# Fix the shell variable \$srcfile for the compiler.
12203fix_srcfile_path=$lt_fix_srcfile_path
12204
12205# Set to yes if exported symbols are required.
12206always_export_symbols=$always_export_symbols
12207
12208# The commands to list exported symbols.
12209export_symbols_cmds=$lt_export_symbols_cmds
12210
12211# The commands to extract the exported symbol list from a shared archive.
12212extract_expsyms_cmds=$lt_extract_expsyms_cmds
12213
12214# Symbols that should not be listed in the preloaded symbols.
12215exclude_expsyms=$lt_exclude_expsyms
12216
12217# Symbols that must always be exported.
12218include_expsyms=$lt_include_expsyms
12219
12220# ### END LIBTOOL CONFIG
12221
12222__EOF__
12223
12224
12225  case $host_os in
12226  aix3*)
12227    cat <<\EOF >> "$cfgfile"
12228
12229# AIX sometimes has problems with the GCC collect2 program.  For some
12230# reason, if we set the COLLECT_NAMES environment variable, the problems
12231# vanish in a puff of smoke.
12232if test "X${COLLECT_NAMES+set}" != Xset; then
12233  COLLECT_NAMES=
12234  export COLLECT_NAMES
12235fi
12236EOF
12237    ;;
12238  esac
12239
12240  # We use sed instead of cat because bash on DJGPP gets confused if
12241  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12242  # text mode, it properly converts lines to CR/LF.  This bash problem
12243  # is reportedly fixed, but why not run on old versions too?
12244  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12245
12246  mv -f "$cfgfile" "$ofile" || \
12247    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12248  chmod +x "$ofile"
12249
12250else
12251  # If there is no Makefile yet, we rely on a make rule to execute
12252  # `config.status --recheck' to rerun these tests and create the
12253  # libtool script then.
12254  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12255  if test -f "$ltmain_in"; then
12256    test -f Makefile && make "$ltmain"
12257  fi
12258fi
12259
12260
12261ac_ext=c
12262ac_cpp='$CPP $CPPFLAGS'
12263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12265ac_compiler_gnu=$ac_cv_c_compiler_gnu
12266
12267CC="$lt_save_CC"
12268
12269
12270# Check whether --with-tags was given.
12271if test "${with_tags+set}" = set; then
12272  withval=$with_tags; tagnames="$withval"
12273fi
12274
12275
12276if test -f "$ltmain" && test -n "$tagnames"; then
12277  if test ! -f "${ofile}"; then
12278    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12279echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12280  fi
12281
12282  if test -z "$LTCC"; then
12283    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12284    if test -z "$LTCC"; then
12285      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12286echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12287    else
12288      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12289echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12290    fi
12291  fi
12292  if test -z "$LTCFLAGS"; then
12293    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12294  fi
12295
12296  # Extract list of available tagged configurations in $ofile.
12297  # Note that this assumes the entire list is on one line.
12298  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12299
12300  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12301  for tagname in $tagnames; do
12302    IFS="$lt_save_ifs"
12303    # Check whether tagname contains only valid characters
12304    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12305    "") ;;
12306    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12307echo "$as_me: error: invalid tag name: $tagname" >&2;}
12308   { (exit 1); exit 1; }; }
12309	;;
12310    esac
12311
12312    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12313    then
12314      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12315echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12316   { (exit 1); exit 1; }; }
12317    fi
12318
12319    # Update the list of available tags.
12320    if test -n "$tagname"; then
12321      echo appending configuration tag \"$tagname\" to $ofile
12322
12323      case $tagname in
12324      CXX)
12325	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12326	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12327	    (test "X$CXX" != "Xg++"))) ; then
12328	  ac_ext=cpp
12329ac_cpp='$CXXCPP $CPPFLAGS'
12330ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12331ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12332ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12333
12334
12335
12336
12337archive_cmds_need_lc_CXX=no
12338allow_undefined_flag_CXX=
12339always_export_symbols_CXX=no
12340archive_expsym_cmds_CXX=
12341export_dynamic_flag_spec_CXX=
12342hardcode_direct_CXX=no
12343hardcode_libdir_flag_spec_CXX=
12344hardcode_libdir_flag_spec_ld_CXX=
12345hardcode_libdir_separator_CXX=
12346hardcode_minus_L_CXX=no
12347hardcode_shlibpath_var_CXX=unsupported
12348hardcode_automatic_CXX=no
12349module_cmds_CXX=
12350module_expsym_cmds_CXX=
12351link_all_deplibs_CXX=unknown
12352old_archive_cmds_CXX=$old_archive_cmds
12353no_undefined_flag_CXX=
12354whole_archive_flag_spec_CXX=
12355enable_shared_with_static_runtimes_CXX=no
12356
12357# Dependencies to place before and after the object being linked:
12358predep_objects_CXX=
12359postdep_objects_CXX=
12360predeps_CXX=
12361postdeps_CXX=
12362compiler_lib_search_path_CXX=
12363
12364# Source file extension for C++ test sources.
12365ac_ext=cpp
12366
12367# Object file extension for compiled C++ test sources.
12368objext=o
12369objext_CXX=$objext
12370
12371# Code to be used in simple compile tests
12372lt_simple_compile_test_code="int some_variable = 0;"
12373
12374# Code to be used in simple link tests
12375lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12376
12377# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12378
12379# If no C compiler was specified, use CC.
12380LTCC=${LTCC-"$CC"}
12381
12382# If no C compiler flags were specified, use CFLAGS.
12383LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12384
12385# Allow CC to be a program name with arguments.
12386compiler=$CC
12387
12388
12389# save warnings/boilerplate of simple test code
12390ac_outfile=conftest.$ac_objext
12391echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12392eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12393_lt_compiler_boilerplate=`cat conftest.err`
12394$rm conftest*
12395
12396ac_outfile=conftest.$ac_objext
12397echo "$lt_simple_link_test_code" >conftest.$ac_ext
12398eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12399_lt_linker_boilerplate=`cat conftest.err`
12400$rm conftest*
12401
12402
12403# Allow CC to be a program name with arguments.
12404lt_save_CC=$CC
12405lt_save_LD=$LD
12406lt_save_GCC=$GCC
12407GCC=$GXX
12408lt_save_with_gnu_ld=$with_gnu_ld
12409lt_save_path_LD=$lt_cv_path_LD
12410if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12411  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12412else
12413  $as_unset lt_cv_prog_gnu_ld
12414fi
12415if test -n "${lt_cv_path_LDCXX+set}"; then
12416  lt_cv_path_LD=$lt_cv_path_LDCXX
12417else
12418  $as_unset lt_cv_path_LD
12419fi
12420test -z "${LDCXX+set}" || LD=$LDCXX
12421CC=${CXX-"c++"}
12422compiler=$CC
12423compiler_CXX=$CC
12424for cc_temp in $compiler""; do
12425  case $cc_temp in
12426    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12427    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12428    \-*) ;;
12429    *) break;;
12430  esac
12431done
12432cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12433
12434
12435# We don't want -fno-exception wen compiling C++ code, so set the
12436# no_builtin_flag separately
12437if test "$GXX" = yes; then
12438  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12439else
12440  lt_prog_compiler_no_builtin_flag_CXX=
12441fi
12442
12443if test "$GXX" = yes; then
12444  # Set up default GNU C++ configuration
12445
12446
12447# Check whether --with-gnu-ld was given.
12448if test "${with_gnu_ld+set}" = set; then
12449  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12450else
12451  with_gnu_ld=no
12452fi
12453
12454ac_prog=ld
12455if test "$GCC" = yes; then
12456  # Check if gcc -print-prog-name=ld gives a path.
12457  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12458echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12459  case $host in
12460  *-*-mingw*)
12461    # gcc leaves a trailing carriage return which upsets mingw
12462    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12463  *)
12464    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12465  esac
12466  case $ac_prog in
12467    # Accept absolute paths.
12468    [\\/]* | ?:[\\/]*)
12469      re_direlt='/[^/][^/]*/\.\./'
12470      # Canonicalize the pathname of ld
12471      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12472      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12473	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12474      done
12475      test -z "$LD" && LD="$ac_prog"
12476      ;;
12477  "")
12478    # If it fails, then pretend we aren't using GCC.
12479    ac_prog=ld
12480    ;;
12481  *)
12482    # If it is relative, then search for the first ld in PATH.
12483    with_gnu_ld=unknown
12484    ;;
12485  esac
12486elif test "$with_gnu_ld" = yes; then
12487  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12488echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12489else
12490  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12491echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12492fi
12493if test "${lt_cv_path_LD+set}" = set; then
12494  echo $ECHO_N "(cached) $ECHO_C" >&6
12495else
12496  if test -z "$LD"; then
12497  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12498  for ac_dir in $PATH; do
12499    IFS="$lt_save_ifs"
12500    test -z "$ac_dir" && ac_dir=.
12501    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12502      lt_cv_path_LD="$ac_dir/$ac_prog"
12503      # Check to see if the program is GNU ld.  I'd rather use --version,
12504      # but apparently some variants of GNU ld only accept -v.
12505      # Break only if it was the GNU/non-GNU ld that we prefer.
12506      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12507      *GNU* | *'with BFD'*)
12508	test "$with_gnu_ld" != no && break
12509	;;
12510      *)
12511	test "$with_gnu_ld" != yes && break
12512	;;
12513      esac
12514    fi
12515  done
12516  IFS="$lt_save_ifs"
12517else
12518  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12519fi
12520fi
12521
12522LD="$lt_cv_path_LD"
12523if test -n "$LD"; then
12524  { echo "$as_me:$LINENO: result: $LD" >&5
12525echo "${ECHO_T}$LD" >&6; }
12526else
12527  { echo "$as_me:$LINENO: result: no" >&5
12528echo "${ECHO_T}no" >&6; }
12529fi
12530test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12531echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12532   { (exit 1); exit 1; }; }
12533{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12534echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12535if test "${lt_cv_prog_gnu_ld+set}" = set; then
12536  echo $ECHO_N "(cached) $ECHO_C" >&6
12537else
12538  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12539case `$LD -v 2>&1 </dev/null` in
12540*GNU* | *'with BFD'*)
12541  lt_cv_prog_gnu_ld=yes
12542  ;;
12543*)
12544  lt_cv_prog_gnu_ld=no
12545  ;;
12546esac
12547fi
12548{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12549echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12550with_gnu_ld=$lt_cv_prog_gnu_ld
12551
12552
12553
12554  # Check if GNU C++ uses GNU ld as the underlying linker, since the
12555  # archiving commands below assume that GNU ld is being used.
12556  if test "$with_gnu_ld" = yes; then
12557    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12558    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12559
12560    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12561    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12562
12563    # If archive_cmds runs LD, not CC, wlarc should be empty
12564    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12565    #     investigate it a little bit more. (MM)
12566    wlarc='${wl}'
12567
12568    # ancient GNU ld didn't support --whole-archive et. al.
12569    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12570	grep 'no-whole-archive' > /dev/null; then
12571      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12572    else
12573      whole_archive_flag_spec_CXX=
12574    fi
12575  else
12576    with_gnu_ld=no
12577    wlarc=
12578
12579    # A generic and very simple default shared library creation
12580    # command for GNU C++ for the case where it uses the native
12581    # linker, instead of GNU ld.  If possible, this setting should
12582    # overridden to take advantage of the native linker features on
12583    # the platform it is being used on.
12584    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12585  fi
12586
12587  # Commands to make compiler produce verbose output that lists
12588  # what "hidden" libraries, object files and flags are used when
12589  # linking a shared library.
12590  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12591
12592else
12593  GXX=no
12594  with_gnu_ld=no
12595  wlarc=
12596fi
12597
12598# PORTME: fill in a description of your system's C++ link characteristics
12599{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12600echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12601ld_shlibs_CXX=yes
12602case $host_os in
12603  aix3*)
12604    # FIXME: insert proper C++ library support
12605    ld_shlibs_CXX=no
12606    ;;
12607  aix4* | aix5*)
12608    if test "$host_cpu" = ia64; then
12609      # On IA64, the linker does run time linking by default, so we don't
12610      # have to do anything special.
12611      aix_use_runtimelinking=no
12612      exp_sym_flag='-Bexport'
12613      no_entry_flag=""
12614    else
12615      aix_use_runtimelinking=no
12616
12617      # Test if we are trying to use run time linking or normal
12618      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12619      # need to do runtime linking.
12620      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12621	for ld_flag in $LDFLAGS; do
12622	  case $ld_flag in
12623	  *-brtl*)
12624	    aix_use_runtimelinking=yes
12625	    break
12626	    ;;
12627	  esac
12628	done
12629	;;
12630      esac
12631
12632      exp_sym_flag='-bexport'
12633      no_entry_flag='-bnoentry'
12634    fi
12635
12636    # When large executables or shared objects are built, AIX ld can
12637    # have problems creating the table of contents.  If linking a library
12638    # or program results in "error TOC overflow" add -mminimal-toc to
12639    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12640    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12641
12642    archive_cmds_CXX=''
12643    hardcode_direct_CXX=yes
12644    hardcode_libdir_separator_CXX=':'
12645    link_all_deplibs_CXX=yes
12646
12647    if test "$GXX" = yes; then
12648      case $host_os in aix4.[012]|aix4.[012].*)
12649      # We only want to do this on AIX 4.2 and lower, the check
12650      # below for broken collect2 doesn't work under 4.3+
12651	collect2name=`${CC} -print-prog-name=collect2`
12652	if test -f "$collect2name" && \
12653	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12654	then
12655	  # We have reworked collect2
12656	  :
12657	else
12658	  # We have old collect2
12659	  hardcode_direct_CXX=unsupported
12660	  # It fails to find uninstalled libraries when the uninstalled
12661	  # path is not listed in the libpath.  Setting hardcode_minus_L
12662	  # to unsupported forces relinking
12663	  hardcode_minus_L_CXX=yes
12664	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12665	  hardcode_libdir_separator_CXX=
12666	fi
12667	;;
12668      esac
12669      shared_flag='-shared'
12670      if test "$aix_use_runtimelinking" = yes; then
12671	shared_flag="$shared_flag "'${wl}-G'
12672      fi
12673    else
12674      # not using gcc
12675      if test "$host_cpu" = ia64; then
12676	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12677	# chokes on -Wl,-G. The following line is correct:
12678	shared_flag='-G'
12679      else
12680	if test "$aix_use_runtimelinking" = yes; then
12681	  shared_flag='${wl}-G'
12682	else
12683	  shared_flag='${wl}-bM:SRE'
12684	fi
12685      fi
12686    fi
12687
12688    # It seems that -bexpall does not export symbols beginning with
12689    # underscore (_), so it is better to generate a list of symbols to export.
12690    always_export_symbols_CXX=yes
12691    if test "$aix_use_runtimelinking" = yes; then
12692      # Warning - without using the other runtime loading flags (-brtl),
12693      # -berok will link without error, but may produce a broken library.
12694      allow_undefined_flag_CXX='-berok'
12695      # Determine the default libpath from the value encoded in an empty executable.
12696      cat >conftest.$ac_ext <<_ACEOF
12697/* confdefs.h.  */
12698_ACEOF
12699cat confdefs.h >>conftest.$ac_ext
12700cat >>conftest.$ac_ext <<_ACEOF
12701/* end confdefs.h.  */
12702
12703int
12704main ()
12705{
12706
12707  ;
12708  return 0;
12709}
12710_ACEOF
12711rm -f conftest.$ac_objext conftest$ac_exeext
12712if { (ac_try="$ac_link"
12713case "(($ac_try" in
12714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715  *) ac_try_echo=$ac_try;;
12716esac
12717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718  (eval "$ac_link") 2>conftest.er1
12719  ac_status=$?
12720  grep -v '^ *+' conftest.er1 >conftest.err
12721  rm -f conftest.er1
12722  cat conftest.err >&5
12723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724  (exit $ac_status); } && {
12725	 test -z "$ac_cxx_werror_flag" ||
12726	 test ! -s conftest.err
12727       } && test -s conftest$ac_exeext &&
12728       $as_test_x conftest$ac_exeext; then
12729
12730lt_aix_libpath_sed='
12731    /Import File Strings/,/^$/ {
12732	/^0/ {
12733	    s/^0  *\(.*\)$/\1/
12734	    p
12735	}
12736    }'
12737aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12738# Check for a 64-bit object if we didn't find anything.
12739if test -z "$aix_libpath"; then
12740  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12741fi
12742else
12743  echo "$as_me: failed program was:" >&5
12744sed 's/^/| /' conftest.$ac_ext >&5
12745
12746
12747fi
12748
12749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12750      conftest$ac_exeext conftest.$ac_ext
12751if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12752
12753      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12754
12755      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12756     else
12757      if test "$host_cpu" = ia64; then
12758	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12759	allow_undefined_flag_CXX="-z nodefs"
12760	archive_expsym_cmds_CXX="\$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"
12761      else
12762	# Determine the default libpath from the value encoded in an empty executable.
12763	cat >conftest.$ac_ext <<_ACEOF
12764/* confdefs.h.  */
12765_ACEOF
12766cat confdefs.h >>conftest.$ac_ext
12767cat >>conftest.$ac_ext <<_ACEOF
12768/* end confdefs.h.  */
12769
12770int
12771main ()
12772{
12773
12774  ;
12775  return 0;
12776}
12777_ACEOF
12778rm -f conftest.$ac_objext conftest$ac_exeext
12779if { (ac_try="$ac_link"
12780case "(($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_link") 2>conftest.er1
12786  ac_status=$?
12787  grep -v '^ *+' conftest.er1 >conftest.err
12788  rm -f conftest.er1
12789  cat conftest.err >&5
12790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791  (exit $ac_status); } && {
12792	 test -z "$ac_cxx_werror_flag" ||
12793	 test ! -s conftest.err
12794       } && test -s conftest$ac_exeext &&
12795       $as_test_x conftest$ac_exeext; then
12796
12797lt_aix_libpath_sed='
12798    /Import File Strings/,/^$/ {
12799	/^0/ {
12800	    s/^0  *\(.*\)$/\1/
12801	    p
12802	}
12803    }'
12804aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12805# Check for a 64-bit object if we didn't find anything.
12806if test -z "$aix_libpath"; then
12807  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12808fi
12809else
12810  echo "$as_me: failed program was:" >&5
12811sed 's/^/| /' conftest.$ac_ext >&5
12812
12813
12814fi
12815
12816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12817      conftest$ac_exeext conftest.$ac_ext
12818if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12819
12820	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12821	# Warning - without using the other run time loading flags,
12822	# -berok will link without error, but may produce a broken library.
12823	no_undefined_flag_CXX=' ${wl}-bernotok'
12824	allow_undefined_flag_CXX=' ${wl}-berok'
12825	# Exported symbols can be pulled into shared objects from archives
12826	whole_archive_flag_spec_CXX='$convenience'
12827	archive_cmds_need_lc_CXX=yes
12828	# This is similar to how AIX traditionally builds its shared libraries.
12829	archive_expsym_cmds_CXX="\$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'
12830      fi
12831    fi
12832    ;;
12833
12834  beos*)
12835    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12836      allow_undefined_flag_CXX=unsupported
12837      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12838      # support --undefined.  This deserves some investigation.  FIXME
12839      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12840    else
12841      ld_shlibs_CXX=no
12842    fi
12843    ;;
12844
12845  chorus*)
12846    case $cc_basename in
12847      *)
12848	# FIXME: insert proper C++ library support
12849	ld_shlibs_CXX=no
12850	;;
12851    esac
12852    ;;
12853
12854  cygwin* | mingw* | pw32*)
12855    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12856    # as there is no search path for DLLs.
12857    hardcode_libdir_flag_spec_CXX='-L$libdir'
12858    allow_undefined_flag_CXX=unsupported
12859    always_export_symbols_CXX=no
12860    enable_shared_with_static_runtimes_CXX=yes
12861
12862    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12863      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12864      # If the export-symbols file already is a .def file (1st line
12865      # is EXPORTS), use it as is; otherwise, prepend...
12866      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12867	cp $export_symbols $output_objdir/$soname.def;
12868      else
12869	echo EXPORTS > $output_objdir/$soname.def;
12870	cat $export_symbols >> $output_objdir/$soname.def;
12871      fi~
12872      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12873    else
12874      ld_shlibs_CXX=no
12875    fi
12876  ;;
12877      darwin* | rhapsody*)
12878        case $host_os in
12879        rhapsody* | darwin1.[012])
12880         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12881         ;;
12882       *) # Darwin 1.3 on
12883         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12884           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12885         else
12886           case ${MACOSX_DEPLOYMENT_TARGET} in
12887             10.[012])
12888               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12889               ;;
12890             10.*)
12891               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12892               ;;
12893           esac
12894         fi
12895         ;;
12896        esac
12897      archive_cmds_need_lc_CXX=no
12898      hardcode_direct_CXX=no
12899      hardcode_automatic_CXX=yes
12900      hardcode_shlibpath_var_CXX=unsupported
12901      whole_archive_flag_spec_CXX=''
12902      link_all_deplibs_CXX=yes
12903
12904    if test "$GXX" = yes ; then
12905      lt_int_apple_cc_single_mod=no
12906      output_verbose_link_cmd='echo'
12907      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12908       lt_int_apple_cc_single_mod=yes
12909      fi
12910      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12911       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12912      else
12913          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12914        fi
12915        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12916        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12917          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12918            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12919          else
12920            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12921          fi
12922            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12923      else
12924      case $cc_basename in
12925        xlc*)
12926         output_verbose_link_cmd='echo'
12927          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12928          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12929          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12930          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12931          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12932          ;;
12933       *)
12934         ld_shlibs_CXX=no
12935          ;;
12936      esac
12937      fi
12938        ;;
12939
12940  dgux*)
12941    case $cc_basename in
12942      ec++*)
12943	# FIXME: insert proper C++ library support
12944	ld_shlibs_CXX=no
12945	;;
12946      ghcx*)
12947	# Green Hills C++ Compiler
12948	# FIXME: insert proper C++ library support
12949	ld_shlibs_CXX=no
12950	;;
12951      *)
12952	# FIXME: insert proper C++ library support
12953	ld_shlibs_CXX=no
12954	;;
12955    esac
12956    ;;
12957  freebsd[12]*)
12958    # C++ shared libraries reported to be fairly broken before switch to ELF
12959    ld_shlibs_CXX=no
12960    ;;
12961  freebsd-elf*)
12962    archive_cmds_need_lc_CXX=no
12963    ;;
12964  freebsd* | dragonfly*)
12965    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12966    # conventions
12967    ld_shlibs_CXX=yes
12968    ;;
12969  gnu*)
12970    ;;
12971  hpux9*)
12972    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12973    hardcode_libdir_separator_CXX=:
12974    export_dynamic_flag_spec_CXX='${wl}-E'
12975    hardcode_direct_CXX=yes
12976    hardcode_minus_L_CXX=yes # Not in the search PATH,
12977				# but as the default
12978				# location of the library.
12979
12980    case $cc_basename in
12981    CC*)
12982      # FIXME: insert proper C++ library support
12983      ld_shlibs_CXX=no
12984      ;;
12985    aCC*)
12986      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12987      # Commands to make compiler produce verbose output that lists
12988      # what "hidden" libraries, object files and flags are used when
12989      # linking a shared library.
12990      #
12991      # There doesn't appear to be a way to prevent this compiler from
12992      # explicitly linking system object files so we need to strip them
12993      # from the output so that they don't get included in the library
12994      # dependencies.
12995      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12996      ;;
12997    *)
12998      if test "$GXX" = yes; then
12999        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13000      else
13001        # FIXME: insert proper C++ library support
13002        ld_shlibs_CXX=no
13003      fi
13004      ;;
13005    esac
13006    ;;
13007  hpux10*|hpux11*)
13008    if test $with_gnu_ld = no; then
13009      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13010      hardcode_libdir_separator_CXX=:
13011
13012      case $host_cpu in
13013      hppa*64*|ia64*) ;;
13014      *)
13015	export_dynamic_flag_spec_CXX='${wl}-E'
13016        ;;
13017      esac
13018    fi
13019    case $host_cpu in
13020    hppa*64*|ia64*)
13021      hardcode_direct_CXX=no
13022      hardcode_shlibpath_var_CXX=no
13023      ;;
13024    *)
13025      hardcode_direct_CXX=yes
13026      hardcode_minus_L_CXX=yes # Not in the search PATH,
13027					      # but as the default
13028					      # location of the library.
13029      ;;
13030    esac
13031
13032    case $cc_basename in
13033      CC*)
13034	# FIXME: insert proper C++ library support
13035	ld_shlibs_CXX=no
13036	;;
13037      aCC*)
13038	case $host_cpu in
13039	hppa*64*)
13040	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13041	  ;;
13042	ia64*)
13043	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13044	  ;;
13045	*)
13046	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13047	  ;;
13048	esac
13049	# Commands to make compiler produce verbose output that lists
13050	# what "hidden" libraries, object files and flags are used when
13051	# linking a shared library.
13052	#
13053	# There doesn't appear to be a way to prevent this compiler from
13054	# explicitly linking system object files so we need to strip them
13055	# from the output so that they don't get included in the library
13056	# dependencies.
13057	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13058	;;
13059      *)
13060	if test "$GXX" = yes; then
13061	  if test $with_gnu_ld = no; then
13062	    case $host_cpu in
13063	    hppa*64*)
13064	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13065	      ;;
13066	    ia64*)
13067	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13068	      ;;
13069	    *)
13070	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13071	      ;;
13072	    esac
13073	  fi
13074	else
13075	  # FIXME: insert proper C++ library support
13076	  ld_shlibs_CXX=no
13077	fi
13078	;;
13079    esac
13080    ;;
13081  interix[3-9]*)
13082    hardcode_direct_CXX=no
13083    hardcode_shlibpath_var_CXX=no
13084    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13085    export_dynamic_flag_spec_CXX='${wl}-E'
13086    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13087    # Instead, shared libraries are loaded at an image base (0x10000000 by
13088    # default) and relocated if they conflict, which is a slow very memory
13089    # consuming and fragmenting process.  To avoid this, we pick a random,
13090    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13091    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13092    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13093    archive_expsym_cmds_CXX='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'
13094    ;;
13095  irix5* | irix6*)
13096    case $cc_basename in
13097      CC*)
13098	# SGI C++
13099	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13100
13101	# Archives containing C++ object files must be created using
13102	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13103	# necessary to make sure instantiated templates are included
13104	# in the archive.
13105	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13106	;;
13107      *)
13108	if test "$GXX" = yes; then
13109	  if test "$with_gnu_ld" = no; then
13110	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13111	  else
13112	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
13113	  fi
13114	fi
13115	link_all_deplibs_CXX=yes
13116	;;
13117    esac
13118    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13119    hardcode_libdir_separator_CXX=:
13120    ;;
13121  linux* | k*bsd*-gnu)
13122    case $cc_basename in
13123      KCC*)
13124	# Kuck and Associates, Inc. (KAI) C++ Compiler
13125
13126	# KCC will only create a shared library if the output file
13127	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13128	# to its proper name (with version) after linking.
13129	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13130	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13131	# Commands to make compiler produce verbose output that lists
13132	# what "hidden" libraries, object files and flags are used when
13133	# linking a shared library.
13134	#
13135	# There doesn't appear to be a way to prevent this compiler from
13136	# explicitly linking system object files so we need to strip them
13137	# from the output so that they don't get included in the library
13138	# dependencies.
13139	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13140
13141	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13142	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13143
13144	# Archives containing C++ object files must be created using
13145	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13146	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13147	;;
13148      icpc*)
13149	# Intel C++
13150	with_gnu_ld=yes
13151	# version 8.0 and above of icpc choke on multiply defined symbols
13152	# if we add $predep_objects and $postdep_objects, however 7.1 and
13153	# earlier do not add the objects themselves.
13154	case `$CC -V 2>&1` in
13155	*"Version 7."*)
13156  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13157  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13158	  ;;
13159	*)  # Version 8.0 or newer
13160	  tmp_idyn=
13161	  case $host_cpu in
13162	    ia64*) tmp_idyn=' -i_dynamic';;
13163	  esac
13164  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13165	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13166	  ;;
13167	esac
13168	archive_cmds_need_lc_CXX=no
13169	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13170	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13171	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13172	;;
13173      pgCC*)
13174        # Portland Group C++ compiler
13175	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13176  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13177
13178	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13179	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13180	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13181        ;;
13182      cxx*)
13183	# Compaq C++
13184	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13185	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13186
13187	runpath_var=LD_RUN_PATH
13188	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13189	hardcode_libdir_separator_CXX=:
13190
13191	# Commands to make compiler produce verbose output that lists
13192	# what "hidden" libraries, object files and flags are used when
13193	# linking a shared library.
13194	#
13195	# There doesn't appear to be a way to prevent this compiler from
13196	# explicitly linking system object files so we need to strip them
13197	# from the output so that they don't get included in the library
13198	# dependencies.
13199	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13200	;;
13201      *)
13202	case `$CC -V 2>&1 | sed 5q` in
13203	*Sun\ C*)
13204	  # Sun C++ 5.9
13205	  no_undefined_flag_CXX=' -zdefs'
13206	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13207	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13208	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13209	  whole_archive_flag_spec_CXX='${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'
13210
13211	  # Not sure whether something based on
13212	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13213	  # would be better.
13214	  output_verbose_link_cmd='echo'
13215
13216	  # Archives containing C++ object files must be created using
13217	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13218	  # necessary to make sure instantiated templates are included
13219	  # in the archive.
13220	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13221	  ;;
13222	esac
13223	;;
13224    esac
13225    ;;
13226  lynxos*)
13227    # FIXME: insert proper C++ library support
13228    ld_shlibs_CXX=no
13229    ;;
13230  m88k*)
13231    # FIXME: insert proper C++ library support
13232    ld_shlibs_CXX=no
13233    ;;
13234  mvs*)
13235    case $cc_basename in
13236      cxx*)
13237	# FIXME: insert proper C++ library support
13238	ld_shlibs_CXX=no
13239	;;
13240      *)
13241	# FIXME: insert proper C++ library support
13242	ld_shlibs_CXX=no
13243	;;
13244    esac
13245    ;;
13246  netbsd* | netbsdelf*-gnu)
13247    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13248      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13249      wlarc=
13250      hardcode_libdir_flag_spec_CXX='-R$libdir'
13251      hardcode_direct_CXX=yes
13252      hardcode_shlibpath_var_CXX=no
13253    fi
13254    # Workaround some broken pre-1.5 toolchains
13255    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13256    ;;
13257  openbsd2*)
13258    # C++ shared libraries are fairly broken
13259    ld_shlibs_CXX=no
13260    ;;
13261  openbsd*)
13262    if test -f /usr/libexec/ld.so; then
13263      hardcode_direct_CXX=yes
13264      hardcode_shlibpath_var_CXX=no
13265      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13266      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13267      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13268	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13269	export_dynamic_flag_spec_CXX='${wl}-E'
13270	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13271      fi
13272      output_verbose_link_cmd='echo'
13273    else
13274      ld_shlibs_CXX=no
13275    fi
13276    ;;
13277  osf3*)
13278    case $cc_basename in
13279      KCC*)
13280	# Kuck and Associates, Inc. (KAI) C++ Compiler
13281
13282	# KCC will only create a shared library if the output file
13283	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13284	# to its proper name (with version) after linking.
13285	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13286
13287	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13288	hardcode_libdir_separator_CXX=:
13289
13290	# Archives containing C++ object files must be created using
13291	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13292	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13293
13294	;;
13295      RCC*)
13296	# Rational C++ 2.4.1
13297	# FIXME: insert proper C++ library support
13298	ld_shlibs_CXX=no
13299	;;
13300      cxx*)
13301	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13302	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13303
13304	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13305	hardcode_libdir_separator_CXX=:
13306
13307	# Commands to make compiler produce verbose output that lists
13308	# what "hidden" libraries, object files and flags are used when
13309	# linking a shared library.
13310	#
13311	# There doesn't appear to be a way to prevent this compiler from
13312	# explicitly linking system object files so we need to strip them
13313	# from the output so that they don't get included in the library
13314	# dependencies.
13315	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13316	;;
13317      *)
13318	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13319	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13320	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13321
13322	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13323	  hardcode_libdir_separator_CXX=:
13324
13325	  # Commands to make compiler produce verbose output that lists
13326	  # what "hidden" libraries, object files and flags are used when
13327	  # linking a shared library.
13328	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13329
13330	else
13331	  # FIXME: insert proper C++ library support
13332	  ld_shlibs_CXX=no
13333	fi
13334	;;
13335    esac
13336    ;;
13337  osf4* | osf5*)
13338    case $cc_basename in
13339      KCC*)
13340	# Kuck and Associates, Inc. (KAI) C++ Compiler
13341
13342	# KCC will only create a shared library if the output file
13343	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13344	# to its proper name (with version) after linking.
13345	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13346
13347	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13348	hardcode_libdir_separator_CXX=:
13349
13350	# Archives containing C++ object files must be created using
13351	# the KAI C++ compiler.
13352	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13353	;;
13354      RCC*)
13355	# Rational C++ 2.4.1
13356	# FIXME: insert proper C++ library support
13357	ld_shlibs_CXX=no
13358	;;
13359      cxx*)
13360	allow_undefined_flag_CXX=' -expect_unresolved \*'
13361	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13362	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13363	  echo "-hidden">> $lib.exp~
13364	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
13365	  $rm $lib.exp'
13366
13367	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13368	hardcode_libdir_separator_CXX=:
13369
13370	# Commands to make compiler produce verbose output that lists
13371	# what "hidden" libraries, object files and flags are used when
13372	# linking a shared library.
13373	#
13374	# There doesn't appear to be a way to prevent this compiler from
13375	# explicitly linking system object files so we need to strip them
13376	# from the output so that they don't get included in the library
13377	# dependencies.
13378	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13379	;;
13380      *)
13381	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13382	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13383	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13384
13385	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13386	  hardcode_libdir_separator_CXX=:
13387
13388	  # Commands to make compiler produce verbose output that lists
13389	  # what "hidden" libraries, object files and flags are used when
13390	  # linking a shared library.
13391	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13392
13393	else
13394	  # FIXME: insert proper C++ library support
13395	  ld_shlibs_CXX=no
13396	fi
13397	;;
13398    esac
13399    ;;
13400  psos*)
13401    # FIXME: insert proper C++ library support
13402    ld_shlibs_CXX=no
13403    ;;
13404  sunos4*)
13405    case $cc_basename in
13406      CC*)
13407	# Sun C++ 4.x
13408	# FIXME: insert proper C++ library support
13409	ld_shlibs_CXX=no
13410	;;
13411      lcc*)
13412	# Lucid
13413	# FIXME: insert proper C++ library support
13414	ld_shlibs_CXX=no
13415	;;
13416      *)
13417	# FIXME: insert proper C++ library support
13418	ld_shlibs_CXX=no
13419	;;
13420    esac
13421    ;;
13422  solaris*)
13423    case $cc_basename in
13424      CC*)
13425	# Sun C++ 4.2, 5.x and Centerline C++
13426        archive_cmds_need_lc_CXX=yes
13427	no_undefined_flag_CXX=' -zdefs'
13428	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13429	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13430	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13431
13432	hardcode_libdir_flag_spec_CXX='-R$libdir'
13433	hardcode_shlibpath_var_CXX=no
13434	case $host_os in
13435	  solaris2.[0-5] | solaris2.[0-5].*) ;;
13436	  *)
13437	    # The compiler driver will combine and reorder linker options,
13438	    # but understands `-z linker_flag'.
13439	    # Supported since Solaris 2.6 (maybe 2.5.1?)
13440	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13441	    ;;
13442	esac
13443	link_all_deplibs_CXX=yes
13444
13445	output_verbose_link_cmd='echo'
13446
13447	# Archives containing C++ object files must be created using
13448	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
13449	# necessary to make sure instantiated templates are included
13450	# in the archive.
13451	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13452	;;
13453      gcx*)
13454	# Green Hills C++ Compiler
13455	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13456
13457	# The C++ compiler must be used to create the archive.
13458	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13459	;;
13460      *)
13461	# GNU C++ compiler with Solaris linker
13462	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13463	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13464	  if $CC --version | grep -v '^2\.7' > /dev/null; then
13465	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13466	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13467		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13468
13469	    # Commands to make compiler produce verbose output that lists
13470	    # what "hidden" libraries, object files and flags are used when
13471	    # linking a shared library.
13472	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13473	  else
13474	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
13475	    # platform.
13476	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13477	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13478		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13479
13480	    # Commands to make compiler produce verbose output that lists
13481	    # what "hidden" libraries, object files and flags are used when
13482	    # linking a shared library.
13483	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13484	  fi
13485
13486	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13487	  case $host_os in
13488	  solaris2.[0-5] | solaris2.[0-5].*) ;;
13489	  *)
13490	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13491	    ;;
13492	  esac
13493	fi
13494	;;
13495    esac
13496    ;;
13497  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13498    no_undefined_flag_CXX='${wl}-z,text'
13499    archive_cmds_need_lc_CXX=no
13500    hardcode_shlibpath_var_CXX=no
13501    runpath_var='LD_RUN_PATH'
13502
13503    case $cc_basename in
13504      CC*)
13505	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13506	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13507	;;
13508      *)
13509	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13510	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13511	;;
13512    esac
13513    ;;
13514  sysv5* | sco3.2v5* | sco5v6*)
13515    # Note: We can NOT use -z defs as we might desire, because we do not
13516    # link with -lc, and that would cause any symbols used from libc to
13517    # always be unresolved, which means just about no library would
13518    # ever link correctly.  If we're not using GNU ld we use -z text
13519    # though, which does catch some bad symbols but isn't as heavy-handed
13520    # as -z defs.
13521    # For security reasons, it is highly recommended that you always
13522    # use absolute paths for naming shared libraries, and exclude the
13523    # DT_RUNPATH tag from executables and libraries.  But doing so
13524    # requires that you compile everything twice, which is a pain.
13525    # So that behaviour is only enabled if SCOABSPATH is set to a
13526    # non-empty value in the environment.  Most likely only useful for
13527    # creating official distributions of packages.
13528    # This is a hack until libtool officially supports absolute path
13529    # names for shared libraries.
13530    no_undefined_flag_CXX='${wl}-z,text'
13531    allow_undefined_flag_CXX='${wl}-z,nodefs'
13532    archive_cmds_need_lc_CXX=no
13533    hardcode_shlibpath_var_CXX=no
13534    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13535    hardcode_libdir_separator_CXX=':'
13536    link_all_deplibs_CXX=yes
13537    export_dynamic_flag_spec_CXX='${wl}-Bexport'
13538    runpath_var='LD_RUN_PATH'
13539
13540    case $cc_basename in
13541      CC*)
13542	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13543	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13544	;;
13545      *)
13546	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13547	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13548	;;
13549    esac
13550    ;;
13551  tandem*)
13552    case $cc_basename in
13553      NCC*)
13554	# NonStop-UX NCC 3.20
13555	# FIXME: insert proper C++ library support
13556	ld_shlibs_CXX=no
13557	;;
13558      *)
13559	# FIXME: insert proper C++ library support
13560	ld_shlibs_CXX=no
13561	;;
13562    esac
13563    ;;
13564  vxworks*)
13565    # FIXME: insert proper C++ library support
13566    ld_shlibs_CXX=no
13567    ;;
13568  *)
13569    # FIXME: insert proper C++ library support
13570    ld_shlibs_CXX=no
13571    ;;
13572esac
13573{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13574echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13575test "$ld_shlibs_CXX" = no && can_build_shared=no
13576
13577GCC_CXX="$GXX"
13578LD_CXX="$LD"
13579
13580
13581cat > conftest.$ac_ext <<EOF
13582class Foo
13583{
13584public:
13585  Foo (void) { a = 0; }
13586private:
13587  int a;
13588};
13589EOF
13590
13591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13592  (eval $ac_compile) 2>&5
13593  ac_status=$?
13594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595  (exit $ac_status); }; then
13596  # Parse the compiler output and extract the necessary
13597  # objects, libraries and library flags.
13598
13599  # Sentinel used to keep track of whether or not we are before
13600  # the conftest object file.
13601  pre_test_object_deps_done=no
13602
13603  # The `*' in the case matches for architectures that use `case' in
13604  # $output_verbose_cmd can trigger glob expansion during the loop
13605  # eval without this substitution.
13606  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13607
13608  for p in `eval $output_verbose_link_cmd`; do
13609    case $p in
13610
13611    -L* | -R* | -l*)
13612       # Some compilers place space between "-{L,R}" and the path.
13613       # Remove the space.
13614       if test $p = "-L" \
13615	  || test $p = "-R"; then
13616	 prev=$p
13617	 continue
13618       else
13619	 prev=
13620       fi
13621
13622       if test "$pre_test_object_deps_done" = no; then
13623	 case $p in
13624	 -L* | -R*)
13625	   # Internal compiler library paths should come after those
13626	   # provided the user.  The postdeps already come after the
13627	   # user supplied libs so there is no need to process them.
13628	   if test -z "$compiler_lib_search_path_CXX"; then
13629	     compiler_lib_search_path_CXX="${prev}${p}"
13630	   else
13631	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13632	   fi
13633	   ;;
13634	 # The "-l" case would never come before the object being
13635	 # linked, so don't bother handling this case.
13636	 esac
13637       else
13638	 if test -z "$postdeps_CXX"; then
13639	   postdeps_CXX="${prev}${p}"
13640	 else
13641	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13642	 fi
13643       fi
13644       ;;
13645
13646    *.$objext)
13647       # This assumes that the test object file only shows up
13648       # once in the compiler output.
13649       if test "$p" = "conftest.$objext"; then
13650	 pre_test_object_deps_done=yes
13651	 continue
13652       fi
13653
13654       if test "$pre_test_object_deps_done" = no; then
13655	 if test -z "$predep_objects_CXX"; then
13656	   predep_objects_CXX="$p"
13657	 else
13658	   predep_objects_CXX="$predep_objects_CXX $p"
13659	 fi
13660       else
13661	 if test -z "$postdep_objects_CXX"; then
13662	   postdep_objects_CXX="$p"
13663	 else
13664	   postdep_objects_CXX="$postdep_objects_CXX $p"
13665	 fi
13666       fi
13667       ;;
13668
13669    *) ;; # Ignore the rest.
13670
13671    esac
13672  done
13673
13674  # Clean up.
13675  rm -f a.out a.exe
13676else
13677  echo "libtool.m4: error: problem compiling CXX test program"
13678fi
13679
13680$rm -f confest.$objext
13681
13682# PORTME: override above test on systems where it is broken
13683case $host_os in
13684interix[3-9]*)
13685  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13686  # hack all around it, let's just trust "g++" to DTRT.
13687  predep_objects_CXX=
13688  postdep_objects_CXX=
13689  postdeps_CXX=
13690  ;;
13691
13692linux*)
13693  case `$CC -V 2>&1 | sed 5q` in
13694  *Sun\ C*)
13695    # Sun C++ 5.9
13696    #
13697    # The more standards-conforming stlport4 library is
13698    # incompatible with the Cstd library. Avoid specifying
13699    # it if it's in CXXFLAGS. Ignore libCrun as
13700    # -library=stlport4 depends on it.
13701    case " $CXX $CXXFLAGS " in
13702    *" -library=stlport4 "*)
13703      solaris_use_stlport4=yes
13704      ;;
13705    esac
13706    if test "$solaris_use_stlport4" != yes; then
13707      postdeps_CXX='-library=Cstd -library=Crun'
13708    fi
13709    ;;
13710  esac
13711  ;;
13712
13713solaris*)
13714  case $cc_basename in
13715  CC*)
13716    # The more standards-conforming stlport4 library is
13717    # incompatible with the Cstd library. Avoid specifying
13718    # it if it's in CXXFLAGS. Ignore libCrun as
13719    # -library=stlport4 depends on it.
13720    case " $CXX $CXXFLAGS " in
13721    *" -library=stlport4 "*)
13722      solaris_use_stlport4=yes
13723      ;;
13724    esac
13725
13726    # Adding this requires a known-good setup of shared libraries for
13727    # Sun compiler versions before 5.6, else PIC objects from an old
13728    # archive will be linked into the output, leading to subtle bugs.
13729    if test "$solaris_use_stlport4" != yes; then
13730      postdeps_CXX='-library=Cstd -library=Crun'
13731    fi
13732    ;;
13733  esac
13734  ;;
13735esac
13736
13737
13738case " $postdeps_CXX " in
13739*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13740esac
13741
13742lt_prog_compiler_wl_CXX=
13743lt_prog_compiler_pic_CXX=
13744lt_prog_compiler_static_CXX=
13745
13746{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13747echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13748
13749  # C++ specific cases for pic, static, wl, etc.
13750  if test "$GXX" = yes; then
13751    lt_prog_compiler_wl_CXX='-Wl,'
13752    lt_prog_compiler_static_CXX='-static'
13753
13754    case $host_os in
13755    aix*)
13756      # All AIX code is PIC.
13757      if test "$host_cpu" = ia64; then
13758	# AIX 5 now supports IA64 processor
13759	lt_prog_compiler_static_CXX='-Bstatic'
13760      fi
13761      ;;
13762    amigaos*)
13763      # FIXME: we need at least 68020 code to build shared libraries, but
13764      # adding the `-m68020' flag to GCC prevents building anything better,
13765      # like `-m68040'.
13766      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13767      ;;
13768    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13769      # PIC is the default for these OSes.
13770      ;;
13771    mingw* | cygwin* | os2* | pw32*)
13772      # This hack is so that the source file can tell whether it is being
13773      # built for inclusion in a dll (and should export symbols for example).
13774      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13775      # (--disable-auto-import) libraries
13776      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13777      ;;
13778    darwin* | rhapsody*)
13779      # PIC is the default on this platform
13780      # Common symbols not allowed in MH_DYLIB files
13781      lt_prog_compiler_pic_CXX='-fno-common'
13782      ;;
13783    *djgpp*)
13784      # DJGPP does not support shared libraries at all
13785      lt_prog_compiler_pic_CXX=
13786      ;;
13787    interix[3-9]*)
13788      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13789      # Instead, we relocate shared libraries at runtime.
13790      ;;
13791    sysv4*MP*)
13792      if test -d /usr/nec; then
13793	lt_prog_compiler_pic_CXX=-Kconform_pic
13794      fi
13795      ;;
13796    hpux*)
13797      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13798      # not for PA HP-UX.
13799      case $host_cpu in
13800      hppa*64*|ia64*)
13801	;;
13802      *)
13803	lt_prog_compiler_pic_CXX='-fPIC'
13804	;;
13805      esac
13806      ;;
13807    *)
13808      lt_prog_compiler_pic_CXX='-fPIC'
13809      ;;
13810    esac
13811  else
13812    case $host_os in
13813      aix4* | aix5*)
13814	# All AIX code is PIC.
13815	if test "$host_cpu" = ia64; then
13816	  # AIX 5 now supports IA64 processor
13817	  lt_prog_compiler_static_CXX='-Bstatic'
13818	else
13819	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13820	fi
13821	;;
13822      chorus*)
13823	case $cc_basename in
13824	cxch68*)
13825	  # Green Hills C++ Compiler
13826	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13827	  ;;
13828	esac
13829	;;
13830       darwin*)
13831         # PIC is the default on this platform
13832         # Common symbols not allowed in MH_DYLIB files
13833         case $cc_basename in
13834           xlc*)
13835           lt_prog_compiler_pic_CXX='-qnocommon'
13836           lt_prog_compiler_wl_CXX='-Wl,'
13837           ;;
13838         esac
13839       ;;
13840      dgux*)
13841	case $cc_basename in
13842	  ec++*)
13843	    lt_prog_compiler_pic_CXX='-KPIC'
13844	    ;;
13845	  ghcx*)
13846	    # Green Hills C++ Compiler
13847	    lt_prog_compiler_pic_CXX='-pic'
13848	    ;;
13849	  *)
13850	    ;;
13851	esac
13852	;;
13853      freebsd* | dragonfly*)
13854	# FreeBSD uses GNU C++
13855	;;
13856      hpux9* | hpux10* | hpux11*)
13857	case $cc_basename in
13858	  CC*)
13859	    lt_prog_compiler_wl_CXX='-Wl,'
13860	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13861	    if test "$host_cpu" != ia64; then
13862	      lt_prog_compiler_pic_CXX='+Z'
13863	    fi
13864	    ;;
13865	  aCC*)
13866	    lt_prog_compiler_wl_CXX='-Wl,'
13867	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13868	    case $host_cpu in
13869	    hppa*64*|ia64*)
13870	      # +Z the default
13871	      ;;
13872	    *)
13873	      lt_prog_compiler_pic_CXX='+Z'
13874	      ;;
13875	    esac
13876	    ;;
13877	  *)
13878	    ;;
13879	esac
13880	;;
13881      interix*)
13882	# This is c89, which is MS Visual C++ (no shared libs)
13883	# Anyone wants to do a port?
13884	;;
13885      irix5* | irix6* | nonstopux*)
13886	case $cc_basename in
13887	  CC*)
13888	    lt_prog_compiler_wl_CXX='-Wl,'
13889	    lt_prog_compiler_static_CXX='-non_shared'
13890	    # CC pic flag -KPIC is the default.
13891	    ;;
13892	  *)
13893	    ;;
13894	esac
13895	;;
13896      linux* | k*bsd*-gnu)
13897	case $cc_basename in
13898	  KCC*)
13899	    # KAI C++ Compiler
13900	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13901	    lt_prog_compiler_pic_CXX='-fPIC'
13902	    ;;
13903	  icpc* | ecpc*)
13904	    # Intel C++
13905	    lt_prog_compiler_wl_CXX='-Wl,'
13906	    lt_prog_compiler_pic_CXX='-KPIC'
13907	    lt_prog_compiler_static_CXX='-static'
13908	    ;;
13909	  pgCC*)
13910	    # Portland Group C++ compiler.
13911	    lt_prog_compiler_wl_CXX='-Wl,'
13912	    lt_prog_compiler_pic_CXX='-fpic'
13913	    lt_prog_compiler_static_CXX='-Bstatic'
13914	    ;;
13915	  cxx*)
13916	    # Compaq C++
13917	    # Make sure the PIC flag is empty.  It appears that all Alpha
13918	    # Linux and Compaq Tru64 Unix objects are PIC.
13919	    lt_prog_compiler_pic_CXX=
13920	    lt_prog_compiler_static_CXX='-non_shared'
13921	    ;;
13922	  *)
13923	    case `$CC -V 2>&1 | sed 5q` in
13924	    *Sun\ C*)
13925	      # Sun C++ 5.9
13926	      lt_prog_compiler_pic_CXX='-KPIC'
13927	      lt_prog_compiler_static_CXX='-Bstatic'
13928	      lt_prog_compiler_wl_CXX='-Qoption ld '
13929	      ;;
13930	    esac
13931	    ;;
13932	esac
13933	;;
13934      lynxos*)
13935	;;
13936      m88k*)
13937	;;
13938      mvs*)
13939	case $cc_basename in
13940	  cxx*)
13941	    lt_prog_compiler_pic_CXX='-W c,exportall'
13942	    ;;
13943	  *)
13944	    ;;
13945	esac
13946	;;
13947      netbsd* | netbsdelf*-gnu)
13948	;;
13949      osf3* | osf4* | osf5*)
13950	case $cc_basename in
13951	  KCC*)
13952	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13953	    ;;
13954	  RCC*)
13955	    # Rational C++ 2.4.1
13956	    lt_prog_compiler_pic_CXX='-pic'
13957	    ;;
13958	  cxx*)
13959	    # Digital/Compaq C++
13960	    lt_prog_compiler_wl_CXX='-Wl,'
13961	    # Make sure the PIC flag is empty.  It appears that all Alpha
13962	    # Linux and Compaq Tru64 Unix objects are PIC.
13963	    lt_prog_compiler_pic_CXX=
13964	    lt_prog_compiler_static_CXX='-non_shared'
13965	    ;;
13966	  *)
13967	    ;;
13968	esac
13969	;;
13970      psos*)
13971	;;
13972      solaris*)
13973	case $cc_basename in
13974	  CC*)
13975	    # Sun C++ 4.2, 5.x and Centerline C++
13976	    lt_prog_compiler_pic_CXX='-KPIC'
13977	    lt_prog_compiler_static_CXX='-Bstatic'
13978	    lt_prog_compiler_wl_CXX='-Qoption ld '
13979	    ;;
13980	  gcx*)
13981	    # Green Hills C++ Compiler
13982	    lt_prog_compiler_pic_CXX='-PIC'
13983	    ;;
13984	  *)
13985	    ;;
13986	esac
13987	;;
13988      sunos4*)
13989	case $cc_basename in
13990	  CC*)
13991	    # Sun C++ 4.x
13992	    lt_prog_compiler_pic_CXX='-pic'
13993	    lt_prog_compiler_static_CXX='-Bstatic'
13994	    ;;
13995	  lcc*)
13996	    # Lucid
13997	    lt_prog_compiler_pic_CXX='-pic'
13998	    ;;
13999	  *)
14000	    ;;
14001	esac
14002	;;
14003      tandem*)
14004	case $cc_basename in
14005	  NCC*)
14006	    # NonStop-UX NCC 3.20
14007	    lt_prog_compiler_pic_CXX='-KPIC'
14008	    ;;
14009	  *)
14010	    ;;
14011	esac
14012	;;
14013      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14014	case $cc_basename in
14015	  CC*)
14016	    lt_prog_compiler_wl_CXX='-Wl,'
14017	    lt_prog_compiler_pic_CXX='-KPIC'
14018	    lt_prog_compiler_static_CXX='-Bstatic'
14019	    ;;
14020	esac
14021	;;
14022      vxworks*)
14023	;;
14024      *)
14025	lt_prog_compiler_can_build_shared_CXX=no
14026	;;
14027    esac
14028  fi
14029
14030{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14031echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14032
14033#
14034# Check to make sure the PIC flag actually works.
14035#
14036if test -n "$lt_prog_compiler_pic_CXX"; then
14037
14038{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14039echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14040if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14041  echo $ECHO_N "(cached) $ECHO_C" >&6
14042else
14043  lt_prog_compiler_pic_works_CXX=no
14044  ac_outfile=conftest.$ac_objext
14045   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14046   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14047   # Insert the option either (1) after the last *FLAGS variable, or
14048   # (2) before a word containing "conftest.", or (3) at the end.
14049   # Note that $ac_compile itself does not contain backslashes and begins
14050   # with a dollar sign (not a hyphen), so the echo should work correctly.
14051   # The option is referenced via a variable to avoid confusing sed.
14052   lt_compile=`echo "$ac_compile" | $SED \
14053   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14054   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14055   -e 's:$: $lt_compiler_flag:'`
14056   (eval echo "\"\$as_me:14056: $lt_compile\"" >&5)
14057   (eval "$lt_compile" 2>conftest.err)
14058   ac_status=$?
14059   cat conftest.err >&5
14060   echo "$as_me:14060: \$? = $ac_status" >&5
14061   if (exit $ac_status) && test -s "$ac_outfile"; then
14062     # The compiler can only warn and ignore the option if not recognized
14063     # So say no if there are warnings other than the usual output.
14064     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14065     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14066     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14067       lt_prog_compiler_pic_works_CXX=yes
14068     fi
14069   fi
14070   $rm conftest*
14071
14072fi
14073{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14074echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14075
14076if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14077    case $lt_prog_compiler_pic_CXX in
14078     "" | " "*) ;;
14079     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14080     esac
14081else
14082    lt_prog_compiler_pic_CXX=
14083     lt_prog_compiler_can_build_shared_CXX=no
14084fi
14085
14086fi
14087case $host_os in
14088  # For platforms which do not support PIC, -DPIC is meaningless:
14089  *djgpp*)
14090    lt_prog_compiler_pic_CXX=
14091    ;;
14092  *)
14093    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14094    ;;
14095esac
14096
14097#
14098# Check to make sure the static flag actually works.
14099#
14100wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14101{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14102echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14103if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14104  echo $ECHO_N "(cached) $ECHO_C" >&6
14105else
14106  lt_prog_compiler_static_works_CXX=no
14107   save_LDFLAGS="$LDFLAGS"
14108   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14109   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14110   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14111     # The linker can only warn and ignore the option if not recognized
14112     # So say no if there are warnings
14113     if test -s conftest.err; then
14114       # Append any errors to the config.log.
14115       cat conftest.err 1>&5
14116       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14117       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14118       if diff conftest.exp conftest.er2 >/dev/null; then
14119         lt_prog_compiler_static_works_CXX=yes
14120       fi
14121     else
14122       lt_prog_compiler_static_works_CXX=yes
14123     fi
14124   fi
14125   $rm conftest*
14126   LDFLAGS="$save_LDFLAGS"
14127
14128fi
14129{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14130echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14131
14132if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14133    :
14134else
14135    lt_prog_compiler_static_CXX=
14136fi
14137
14138
14139{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14140echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14141if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14142  echo $ECHO_N "(cached) $ECHO_C" >&6
14143else
14144  lt_cv_prog_compiler_c_o_CXX=no
14145   $rm -r conftest 2>/dev/null
14146   mkdir conftest
14147   cd conftest
14148   mkdir out
14149   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14150
14151   lt_compiler_flag="-o out/conftest2.$ac_objext"
14152   # Insert the option either (1) after the last *FLAGS variable, or
14153   # (2) before a word containing "conftest.", or (3) at the end.
14154   # Note that $ac_compile itself does not contain backslashes and begins
14155   # with a dollar sign (not a hyphen), so the echo should work correctly.
14156   lt_compile=`echo "$ac_compile" | $SED \
14157   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14158   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14159   -e 's:$: $lt_compiler_flag:'`
14160   (eval echo "\"\$as_me:14160: $lt_compile\"" >&5)
14161   (eval "$lt_compile" 2>out/conftest.err)
14162   ac_status=$?
14163   cat out/conftest.err >&5
14164   echo "$as_me:14164: \$? = $ac_status" >&5
14165   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14166   then
14167     # The compiler can only warn and ignore the option if not recognized
14168     # So say no if there are warnings
14169     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14170     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14171     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14172       lt_cv_prog_compiler_c_o_CXX=yes
14173     fi
14174   fi
14175   chmod u+w . 2>&5
14176   $rm conftest*
14177   # SGI C++ compiler will create directory out/ii_files/ for
14178   # template instantiation
14179   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14180   $rm out/* && rmdir out
14181   cd ..
14182   rmdir conftest
14183   $rm conftest*
14184
14185fi
14186{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14187echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14188
14189
14190hard_links="nottested"
14191if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14192  # do not overwrite the value of need_locks provided by the user
14193  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14194echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14195  hard_links=yes
14196  $rm conftest*
14197  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14198  touch conftest.a
14199  ln conftest.a conftest.b 2>&5 || hard_links=no
14200  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14201  { echo "$as_me:$LINENO: result: $hard_links" >&5
14202echo "${ECHO_T}$hard_links" >&6; }
14203  if test "$hard_links" = no; then
14204    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14205echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14206    need_locks=warn
14207  fi
14208else
14209  need_locks=no
14210fi
14211
14212{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14213echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14214
14215  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14216  case $host_os in
14217  aix4* | aix5*)
14218    # If we're using GNU nm, then we don't want the "-C" option.
14219    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14220    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14221      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14222    else
14223      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14224    fi
14225    ;;
14226  pw32*)
14227    export_symbols_cmds_CXX="$ltdll_cmds"
14228  ;;
14229  cygwin* | mingw*)
14230    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14231  ;;
14232  linux* | k*bsd*-gnu)
14233    link_all_deplibs_CXX=no
14234  ;;
14235  *)
14236    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14237  ;;
14238  esac
14239
14240{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14241echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14242test "$ld_shlibs_CXX" = no && can_build_shared=no
14243
14244#
14245# Do we need to explicitly link libc?
14246#
14247case "x$archive_cmds_need_lc_CXX" in
14248x|xyes)
14249  # Assume -lc should be added
14250  archive_cmds_need_lc_CXX=yes
14251
14252  if test "$enable_shared" = yes && test "$GCC" = yes; then
14253    case $archive_cmds_CXX in
14254    *'~'*)
14255      # FIXME: we may have to deal with multi-command sequences.
14256      ;;
14257    '$CC '*)
14258      # Test whether the compiler implicitly links with -lc since on some
14259      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14260      # to ld, don't add -lc before -lgcc.
14261      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14262echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14263      $rm conftest*
14264      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14265
14266      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267  (eval $ac_compile) 2>&5
14268  ac_status=$?
14269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270  (exit $ac_status); } 2>conftest.err; then
14271        soname=conftest
14272        lib=conftest
14273        libobjs=conftest.$ac_objext
14274        deplibs=
14275        wl=$lt_prog_compiler_wl_CXX
14276	pic_flag=$lt_prog_compiler_pic_CXX
14277        compiler_flags=-v
14278        linker_flags=-v
14279        verstring=
14280        output_objdir=.
14281        libname=conftest
14282        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14283        allow_undefined_flag_CXX=
14284        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14285  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14286  ac_status=$?
14287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288  (exit $ac_status); }
14289        then
14290	  archive_cmds_need_lc_CXX=no
14291        else
14292	  archive_cmds_need_lc_CXX=yes
14293        fi
14294        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14295      else
14296        cat conftest.err 1>&5
14297      fi
14298      $rm conftest*
14299      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14300echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14301      ;;
14302    esac
14303  fi
14304  ;;
14305esac
14306
14307{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14308echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14309library_names_spec=
14310libname_spec='lib$name'
14311soname_spec=
14312shrext_cmds=".so"
14313postinstall_cmds=
14314postuninstall_cmds=
14315finish_cmds=
14316finish_eval=
14317shlibpath_var=
14318shlibpath_overrides_runpath=unknown
14319version_type=none
14320dynamic_linker="$host_os ld.so"
14321sys_lib_dlsearch_path_spec="/lib /usr/lib"
14322
14323need_lib_prefix=unknown
14324hardcode_into_libs=no
14325
14326# when you set need_version to no, make sure it does not cause -set_version
14327# flags to be left without arguments
14328need_version=unknown
14329
14330case $host_os in
14331aix3*)
14332  version_type=linux
14333  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14334  shlibpath_var=LIBPATH
14335
14336  # AIX 3 has no versioning support, so we append a major version to the name.
14337  soname_spec='${libname}${release}${shared_ext}$major'
14338  ;;
14339
14340aix4* | aix5*)
14341  version_type=linux
14342  need_lib_prefix=no
14343  need_version=no
14344  hardcode_into_libs=yes
14345  if test "$host_cpu" = ia64; then
14346    # AIX 5 supports IA64
14347    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14348    shlibpath_var=LD_LIBRARY_PATH
14349  else
14350    # With GCC up to 2.95.x, collect2 would create an import file
14351    # for dependence libraries.  The import file would start with
14352    # the line `#! .'.  This would cause the generated library to
14353    # depend on `.', always an invalid library.  This was fixed in
14354    # development snapshots of GCC prior to 3.0.
14355    case $host_os in
14356      aix4 | aix4.[01] | aix4.[01].*)
14357      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14358	   echo ' yes '
14359	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14360	:
14361      else
14362	can_build_shared=no
14363      fi
14364      ;;
14365    esac
14366    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14367    # soname into executable. Probably we can add versioning support to
14368    # collect2, so additional links can be useful in future.
14369    if test "$aix_use_runtimelinking" = yes; then
14370      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14371      # instead of lib<name>.a to let people know that these are not
14372      # typical AIX shared libraries.
14373      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14374    else
14375      # We preserve .a as extension for shared libraries through AIX4.2
14376      # and later when we are not doing run time linking.
14377      library_names_spec='${libname}${release}.a $libname.a'
14378      soname_spec='${libname}${release}${shared_ext}$major'
14379    fi
14380    shlibpath_var=LIBPATH
14381  fi
14382  ;;
14383
14384amigaos*)
14385  library_names_spec='$libname.ixlibrary $libname.a'
14386  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14387  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'
14388  ;;
14389
14390beos*)
14391  library_names_spec='${libname}${shared_ext}'
14392  dynamic_linker="$host_os ld.so"
14393  shlibpath_var=LIBRARY_PATH
14394  ;;
14395
14396bsdi[45]*)
14397  version_type=linux
14398  need_version=no
14399  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14400  soname_spec='${libname}${release}${shared_ext}$major'
14401  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14402  shlibpath_var=LD_LIBRARY_PATH
14403  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14404  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14405  # the default ld.so.conf also contains /usr/contrib/lib and
14406  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14407  # libtool to hard-code these into programs
14408  ;;
14409
14410cygwin* | mingw* | pw32*)
14411  version_type=windows
14412  shrext_cmds=".dll"
14413  need_version=no
14414  need_lib_prefix=no
14415
14416  case $GCC,$host_os in
14417  yes,cygwin* | yes,mingw* | yes,pw32*)
14418    library_names_spec='$libname.dll.a'
14419    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14420    postinstall_cmds='base_file=`basename \${file}`~
14421      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14422      dldir=$destdir/`dirname \$dlpath`~
14423      test -d \$dldir || mkdir -p \$dldir~
14424      $install_prog $dir/$dlname \$dldir/$dlname~
14425      chmod a+x \$dldir/$dlname'
14426    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14427      dlpath=$dir/\$dldll~
14428       $rm \$dlpath'
14429    shlibpath_overrides_runpath=yes
14430
14431    case $host_os in
14432    cygwin*)
14433      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14434      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14435      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14436      ;;
14437    mingw*)
14438      # MinGW DLLs use traditional 'lib' prefix
14439      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14440      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14441      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14442        # It is most probably a Windows format PATH printed by
14443        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14444        # path with ; separators, and with drive letters. We can handle the
14445        # drive letters (cygwin fileutils understands them), so leave them,
14446        # especially as we might pass files found there to a mingw objdump,
14447        # which wouldn't understand a cygwinified path. Ahh.
14448        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14449      else
14450        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14451      fi
14452      ;;
14453    pw32*)
14454      # pw32 DLLs use 'pw' prefix rather than 'lib'
14455      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14456      ;;
14457    esac
14458    ;;
14459
14460  *)
14461    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14462    ;;
14463  esac
14464  dynamic_linker='Win32 ld.exe'
14465  # FIXME: first we should search . and the directory the executable is in
14466  shlibpath_var=PATH
14467  ;;
14468
14469darwin* | rhapsody*)
14470  dynamic_linker="$host_os dyld"
14471  version_type=darwin
14472  need_lib_prefix=no
14473  need_version=no
14474  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14475  soname_spec='${libname}${release}${major}$shared_ext'
14476  shlibpath_overrides_runpath=yes
14477  shlibpath_var=DYLD_LIBRARY_PATH
14478  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14479
14480  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14481  ;;
14482
14483dgux*)
14484  version_type=linux
14485  need_lib_prefix=no
14486  need_version=no
14487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14488  soname_spec='${libname}${release}${shared_ext}$major'
14489  shlibpath_var=LD_LIBRARY_PATH
14490  ;;
14491
14492freebsd1*)
14493  dynamic_linker=no
14494  ;;
14495
14496freebsd* | dragonfly*)
14497  # DragonFly does not have aout.  When/if they implement a new
14498  # versioning mechanism, adjust this.
14499  if test -x /usr/bin/objformat; then
14500    objformat=`/usr/bin/objformat`
14501  else
14502    case $host_os in
14503    freebsd[123]*) objformat=aout ;;
14504    *) objformat=elf ;;
14505    esac
14506  fi
14507  version_type=freebsd-$objformat
14508  case $version_type in
14509    freebsd-elf*)
14510      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14511      need_version=no
14512      need_lib_prefix=no
14513      ;;
14514    freebsd-*)
14515      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14516      need_version=yes
14517      ;;
14518  esac
14519  shlibpath_var=LD_LIBRARY_PATH
14520  case $host_os in
14521  freebsd2*)
14522    shlibpath_overrides_runpath=yes
14523    ;;
14524  freebsd3.[01]* | freebsdelf3.[01]*)
14525    shlibpath_overrides_runpath=yes
14526    hardcode_into_libs=yes
14527    ;;
14528  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14529  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14530    shlibpath_overrides_runpath=no
14531    hardcode_into_libs=yes
14532    ;;
14533  *) # from 4.6 on, and DragonFly
14534    shlibpath_overrides_runpath=yes
14535    hardcode_into_libs=yes
14536    ;;
14537  esac
14538  ;;
14539
14540gnu*)
14541  version_type=linux
14542  need_lib_prefix=no
14543  need_version=no
14544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14545  soname_spec='${libname}${release}${shared_ext}$major'
14546  shlibpath_var=LD_LIBRARY_PATH
14547  hardcode_into_libs=yes
14548  ;;
14549
14550hpux9* | hpux10* | hpux11*)
14551  # Give a soname corresponding to the major version so that dld.sl refuses to
14552  # link against other versions.
14553  version_type=sunos
14554  need_lib_prefix=no
14555  need_version=no
14556  case $host_cpu in
14557  ia64*)
14558    shrext_cmds='.so'
14559    hardcode_into_libs=yes
14560    dynamic_linker="$host_os dld.so"
14561    shlibpath_var=LD_LIBRARY_PATH
14562    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14563    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14564    soname_spec='${libname}${release}${shared_ext}$major'
14565    if test "X$HPUX_IA64_MODE" = X32; then
14566      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14567    else
14568      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14569    fi
14570    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14571    ;;
14572   hppa*64*)
14573     shrext_cmds='.sl'
14574     hardcode_into_libs=yes
14575     dynamic_linker="$host_os dld.sl"
14576     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14577     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14579     soname_spec='${libname}${release}${shared_ext}$major'
14580     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14581     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14582     ;;
14583   *)
14584    shrext_cmds='.sl'
14585    dynamic_linker="$host_os dld.sl"
14586    shlibpath_var=SHLIB_PATH
14587    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14588    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589    soname_spec='${libname}${release}${shared_ext}$major'
14590    ;;
14591  esac
14592  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14593  postinstall_cmds='chmod 555 $lib'
14594  ;;
14595
14596interix[3-9]*)
14597  version_type=linux
14598  need_lib_prefix=no
14599  need_version=no
14600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14601  soname_spec='${libname}${release}${shared_ext}$major'
14602  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14603  shlibpath_var=LD_LIBRARY_PATH
14604  shlibpath_overrides_runpath=no
14605  hardcode_into_libs=yes
14606  ;;
14607
14608irix5* | irix6* | nonstopux*)
14609  case $host_os in
14610    nonstopux*) version_type=nonstopux ;;
14611    *)
14612	if test "$lt_cv_prog_gnu_ld" = yes; then
14613		version_type=linux
14614	else
14615		version_type=irix
14616	fi ;;
14617  esac
14618  need_lib_prefix=no
14619  need_version=no
14620  soname_spec='${libname}${release}${shared_ext}$major'
14621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14622  case $host_os in
14623  irix5* | nonstopux*)
14624    libsuff= shlibsuff=
14625    ;;
14626  *)
14627    case $LD in # libtool.m4 will add one of these switches to LD
14628    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14629      libsuff= shlibsuff= libmagic=32-bit;;
14630    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14631      libsuff=32 shlibsuff=N32 libmagic=N32;;
14632    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14633      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14634    *) libsuff= shlibsuff= libmagic=never-match;;
14635    esac
14636    ;;
14637  esac
14638  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14639  shlibpath_overrides_runpath=no
14640  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14641  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14642  hardcode_into_libs=yes
14643  ;;
14644
14645# No shared lib support for Linux oldld, aout, or coff.
14646linux*oldld* | linux*aout* | linux*coff*)
14647  dynamic_linker=no
14648  ;;
14649
14650# This must be Linux ELF.
14651linux* | k*bsd*-gnu)
14652  version_type=linux
14653  need_lib_prefix=no
14654  need_version=no
14655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14656  soname_spec='${libname}${release}${shared_ext}$major'
14657  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14658  shlibpath_var=LD_LIBRARY_PATH
14659  shlibpath_overrides_runpath=no
14660  # This implies no fast_install, which is unacceptable.
14661  # Some rework will be needed to allow for fast_install
14662  # before this can be enabled.
14663  hardcode_into_libs=yes
14664
14665  # Append ld.so.conf contents to the search path
14666  if test -f /etc/ld.so.conf; then
14667    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' ' '`
14668    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14669  fi
14670
14671  # We used to test for /lib/ld.so.1 and disable shared libraries on
14672  # powerpc, because MkLinux only supported shared libraries with the
14673  # GNU dynamic linker.  Since this was broken with cross compilers,
14674  # most powerpc-linux boxes support dynamic linking these days and
14675  # people can always --disable-shared, the test was removed, and we
14676  # assume the GNU/Linux dynamic linker is in use.
14677  dynamic_linker='GNU/Linux ld.so'
14678  ;;
14679
14680netbsdelf*-gnu)
14681  version_type=linux
14682  need_lib_prefix=no
14683  need_version=no
14684  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14685  soname_spec='${libname}${release}${shared_ext}$major'
14686  shlibpath_var=LD_LIBRARY_PATH
14687  shlibpath_overrides_runpath=no
14688  hardcode_into_libs=yes
14689  dynamic_linker='NetBSD ld.elf_so'
14690  ;;
14691
14692netbsd*)
14693  version_type=sunos
14694  need_lib_prefix=no
14695  need_version=no
14696  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14697    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14698    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14699    dynamic_linker='NetBSD (a.out) ld.so'
14700  else
14701    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14702    soname_spec='${libname}${release}${shared_ext}$major'
14703    dynamic_linker='NetBSD ld.elf_so'
14704  fi
14705  shlibpath_var=LD_LIBRARY_PATH
14706  shlibpath_overrides_runpath=yes
14707  hardcode_into_libs=yes
14708  ;;
14709
14710newsos6)
14711  version_type=linux
14712  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713  shlibpath_var=LD_LIBRARY_PATH
14714  shlibpath_overrides_runpath=yes
14715  ;;
14716
14717nto-qnx*)
14718  version_type=linux
14719  need_lib_prefix=no
14720  need_version=no
14721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14722  soname_spec='${libname}${release}${shared_ext}$major'
14723  shlibpath_var=LD_LIBRARY_PATH
14724  shlibpath_overrides_runpath=yes
14725  ;;
14726
14727openbsd*)
14728  version_type=sunos
14729  sys_lib_dlsearch_path_spec="/usr/lib"
14730  need_lib_prefix=no
14731  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14732  case $host_os in
14733    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14734    *)                         need_version=no  ;;
14735  esac
14736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14737  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14738  shlibpath_var=LD_LIBRARY_PATH
14739  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14740    case $host_os in
14741      openbsd2.[89] | openbsd2.[89].*)
14742	shlibpath_overrides_runpath=no
14743	;;
14744      *)
14745	shlibpath_overrides_runpath=yes
14746	;;
14747      esac
14748  else
14749    shlibpath_overrides_runpath=yes
14750  fi
14751  ;;
14752
14753os2*)
14754  libname_spec='$name'
14755  shrext_cmds=".dll"
14756  need_lib_prefix=no
14757  library_names_spec='$libname${shared_ext} $libname.a'
14758  dynamic_linker='OS/2 ld.exe'
14759  shlibpath_var=LIBPATH
14760  ;;
14761
14762osf3* | osf4* | osf5*)
14763  version_type=osf
14764  need_lib_prefix=no
14765  need_version=no
14766  soname_spec='${libname}${release}${shared_ext}$major'
14767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14768  shlibpath_var=LD_LIBRARY_PATH
14769  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14770  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14771  ;;
14772
14773rdos*)
14774  dynamic_linker=no
14775  ;;
14776
14777solaris*)
14778  version_type=linux
14779  need_lib_prefix=no
14780  need_version=no
14781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782  soname_spec='${libname}${release}${shared_ext}$major'
14783  shlibpath_var=LD_LIBRARY_PATH
14784  shlibpath_overrides_runpath=yes
14785  hardcode_into_libs=yes
14786  # ldd complains unless libraries are executable
14787  postinstall_cmds='chmod +x $lib'
14788  ;;
14789
14790sunos4*)
14791  version_type=sunos
14792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14793  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14794  shlibpath_var=LD_LIBRARY_PATH
14795  shlibpath_overrides_runpath=yes
14796  if test "$with_gnu_ld" = yes; then
14797    need_lib_prefix=no
14798  fi
14799  need_version=yes
14800  ;;
14801
14802sysv4 | sysv4.3*)
14803  version_type=linux
14804  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14805  soname_spec='${libname}${release}${shared_ext}$major'
14806  shlibpath_var=LD_LIBRARY_PATH
14807  case $host_vendor in
14808    sni)
14809      shlibpath_overrides_runpath=no
14810      need_lib_prefix=no
14811      export_dynamic_flag_spec='${wl}-Blargedynsym'
14812      runpath_var=LD_RUN_PATH
14813      ;;
14814    siemens)
14815      need_lib_prefix=no
14816      ;;
14817    motorola)
14818      need_lib_prefix=no
14819      need_version=no
14820      shlibpath_overrides_runpath=no
14821      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14822      ;;
14823  esac
14824  ;;
14825
14826sysv4*MP*)
14827  if test -d /usr/nec ;then
14828    version_type=linux
14829    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14830    soname_spec='$libname${shared_ext}.$major'
14831    shlibpath_var=LD_LIBRARY_PATH
14832  fi
14833  ;;
14834
14835sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14836  version_type=freebsd-elf
14837  need_lib_prefix=no
14838  need_version=no
14839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14840  soname_spec='${libname}${release}${shared_ext}$major'
14841  shlibpath_var=LD_LIBRARY_PATH
14842  hardcode_into_libs=yes
14843  if test "$with_gnu_ld" = yes; then
14844    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14845    shlibpath_overrides_runpath=no
14846  else
14847    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14848    shlibpath_overrides_runpath=yes
14849    case $host_os in
14850      sco3.2v5*)
14851        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14852	;;
14853    esac
14854  fi
14855  sys_lib_dlsearch_path_spec='/usr/lib'
14856  ;;
14857
14858uts4*)
14859  version_type=linux
14860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14861  soname_spec='${libname}${release}${shared_ext}$major'
14862  shlibpath_var=LD_LIBRARY_PATH
14863  ;;
14864
14865*)
14866  dynamic_linker=no
14867  ;;
14868esac
14869{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14870echo "${ECHO_T}$dynamic_linker" >&6; }
14871test "$dynamic_linker" = no && can_build_shared=no
14872
14873variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14874if test "$GCC" = yes; then
14875  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14876fi
14877
14878{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14879echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14880hardcode_action_CXX=
14881if test -n "$hardcode_libdir_flag_spec_CXX" || \
14882   test -n "$runpath_var_CXX" || \
14883   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14884
14885  # We can hardcode non-existant directories.
14886  if test "$hardcode_direct_CXX" != no &&
14887     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14888     # have to relink, otherwise we might link with an installed library
14889     # when we should be linking with a yet-to-be-installed one
14890     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14891     test "$hardcode_minus_L_CXX" != no; then
14892    # Linking always hardcodes the temporary library directory.
14893    hardcode_action_CXX=relink
14894  else
14895    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14896    hardcode_action_CXX=immediate
14897  fi
14898else
14899  # We cannot hardcode anything, or else we can only hardcode existing
14900  # directories.
14901  hardcode_action_CXX=unsupported
14902fi
14903{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14904echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14905
14906if test "$hardcode_action_CXX" = relink; then
14907  # Fast installation is not supported
14908  enable_fast_install=no
14909elif test "$shlibpath_overrides_runpath" = yes ||
14910     test "$enable_shared" = no; then
14911  # Fast installation is not necessary
14912  enable_fast_install=needless
14913fi
14914
14915
14916# The else clause should only fire when bootstrapping the
14917# libtool distribution, otherwise you forgot to ship ltmain.sh
14918# with your package, and you will get complaints that there are
14919# no rules to generate ltmain.sh.
14920if test -f "$ltmain"; then
14921  # See if we are running on zsh, and set the options which allow our commands through
14922  # without removal of \ escapes.
14923  if test -n "${ZSH_VERSION+set}" ; then
14924    setopt NO_GLOB_SUBST
14925  fi
14926  # Now quote all the things that may contain metacharacters while being
14927  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14928  # variables and quote the copies for generation of the libtool script.
14929  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14930    SED SHELL STRIP \
14931    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14932    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14933    deplibs_check_method reload_flag reload_cmds need_locks \
14934    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14935    lt_cv_sys_global_symbol_to_c_name_address \
14936    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14937    old_postinstall_cmds old_postuninstall_cmds \
14938    compiler_CXX \
14939    CC_CXX \
14940    LD_CXX \
14941    lt_prog_compiler_wl_CXX \
14942    lt_prog_compiler_pic_CXX \
14943    lt_prog_compiler_static_CXX \
14944    lt_prog_compiler_no_builtin_flag_CXX \
14945    export_dynamic_flag_spec_CXX \
14946    thread_safe_flag_spec_CXX \
14947    whole_archive_flag_spec_CXX \
14948    enable_shared_with_static_runtimes_CXX \
14949    old_archive_cmds_CXX \
14950    old_archive_from_new_cmds_CXX \
14951    predep_objects_CXX \
14952    postdep_objects_CXX \
14953    predeps_CXX \
14954    postdeps_CXX \
14955    compiler_lib_search_path_CXX \
14956    archive_cmds_CXX \
14957    archive_expsym_cmds_CXX \
14958    postinstall_cmds_CXX \
14959    postuninstall_cmds_CXX \
14960    old_archive_from_expsyms_cmds_CXX \
14961    allow_undefined_flag_CXX \
14962    no_undefined_flag_CXX \
14963    export_symbols_cmds_CXX \
14964    hardcode_libdir_flag_spec_CXX \
14965    hardcode_libdir_flag_spec_ld_CXX \
14966    hardcode_libdir_separator_CXX \
14967    hardcode_automatic_CXX \
14968    module_cmds_CXX \
14969    module_expsym_cmds_CXX \
14970    lt_cv_prog_compiler_c_o_CXX \
14971    fix_srcfile_path_CXX \
14972    exclude_expsyms_CXX \
14973    include_expsyms_CXX; do
14974
14975    case $var in
14976    old_archive_cmds_CXX | \
14977    old_archive_from_new_cmds_CXX | \
14978    archive_cmds_CXX | \
14979    archive_expsym_cmds_CXX | \
14980    module_cmds_CXX | \
14981    module_expsym_cmds_CXX | \
14982    old_archive_from_expsyms_cmds_CXX | \
14983    export_symbols_cmds_CXX | \
14984    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14985    postinstall_cmds | postuninstall_cmds | \
14986    old_postinstall_cmds | old_postuninstall_cmds | \
14987    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14988      # Double-quote double-evaled strings.
14989      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14990      ;;
14991    *)
14992      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14993      ;;
14994    esac
14995  done
14996
14997  case $lt_echo in
14998  *'\$0 --fallback-echo"')
14999    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15000    ;;
15001  esac
15002
15003cfgfile="$ofile"
15004
15005  cat <<__EOF__ >> "$cfgfile"
15006# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15007
15008# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15009
15010# Shell to use when invoking shell scripts.
15011SHELL=$lt_SHELL
15012
15013# Whether or not to build shared libraries.
15014build_libtool_libs=$enable_shared
15015
15016# Whether or not to build static libraries.
15017build_old_libs=$enable_static
15018
15019# Whether or not to add -lc for building shared libraries.
15020build_libtool_need_lc=$archive_cmds_need_lc_CXX
15021
15022# Whether or not to disallow shared libs when runtime libs are static
15023allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15024
15025# Whether or not to optimize for fast installation.
15026fast_install=$enable_fast_install
15027
15028# The host system.
15029host_alias=$host_alias
15030host=$host
15031host_os=$host_os
15032
15033# The build system.
15034build_alias=$build_alias
15035build=$build
15036build_os=$build_os
15037
15038# An echo program that does not interpret backslashes.
15039echo=$lt_echo
15040
15041# The archiver.
15042AR=$lt_AR
15043AR_FLAGS=$lt_AR_FLAGS
15044
15045# A C compiler.
15046LTCC=$lt_LTCC
15047
15048# LTCC compiler flags.
15049LTCFLAGS=$lt_LTCFLAGS
15050
15051# A language-specific compiler.
15052CC=$lt_compiler_CXX
15053
15054# Is the compiler the GNU C compiler?
15055with_gcc=$GCC_CXX
15056
15057# An ERE matcher.
15058EGREP=$lt_EGREP
15059
15060# The linker used to build libraries.
15061LD=$lt_LD_CXX
15062
15063# Whether we need hard or soft links.
15064LN_S=$lt_LN_S
15065
15066# A BSD-compatible nm program.
15067NM=$lt_NM
15068
15069# A symbol stripping program
15070STRIP=$lt_STRIP
15071
15072# Used to examine libraries when file_magic_cmd begins "file"
15073MAGIC_CMD=$MAGIC_CMD
15074
15075# Used on cygwin: DLL creation program.
15076DLLTOOL="$DLLTOOL"
15077
15078# Used on cygwin: object dumper.
15079OBJDUMP="$OBJDUMP"
15080
15081# Used on cygwin: assembler.
15082AS="$AS"
15083
15084# The name of the directory that contains temporary libtool files.
15085objdir=$objdir
15086
15087# How to create reloadable object files.
15088reload_flag=$lt_reload_flag
15089reload_cmds=$lt_reload_cmds
15090
15091# How to pass a linker flag through the compiler.
15092wl=$lt_lt_prog_compiler_wl_CXX
15093
15094# Object file suffix (normally "o").
15095objext="$ac_objext"
15096
15097# Old archive suffix (normally "a").
15098libext="$libext"
15099
15100# Shared library suffix (normally ".so").
15101shrext_cmds='$shrext_cmds'
15102
15103# Executable file suffix (normally "").
15104exeext="$exeext"
15105
15106# Additional compiler flags for building library objects.
15107pic_flag=$lt_lt_prog_compiler_pic_CXX
15108pic_mode=$pic_mode
15109
15110# What is the maximum length of a command?
15111max_cmd_len=$lt_cv_sys_max_cmd_len
15112
15113# Does compiler simultaneously support -c and -o options?
15114compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15115
15116# Must we lock files when doing compilation?
15117need_locks=$lt_need_locks
15118
15119# Do we need the lib prefix for modules?
15120need_lib_prefix=$need_lib_prefix
15121
15122# Do we need a version for libraries?
15123need_version=$need_version
15124
15125# Whether dlopen is supported.
15126dlopen_support=$enable_dlopen
15127
15128# Whether dlopen of programs is supported.
15129dlopen_self=$enable_dlopen_self
15130
15131# Whether dlopen of statically linked programs is supported.
15132dlopen_self_static=$enable_dlopen_self_static
15133
15134# Compiler flag to prevent dynamic linking.
15135link_static_flag=$lt_lt_prog_compiler_static_CXX
15136
15137# Compiler flag to turn off builtin functions.
15138no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15139
15140# Compiler flag to allow reflexive dlopens.
15141export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15142
15143# Compiler flag to generate shared objects directly from archives.
15144whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15145
15146# Compiler flag to generate thread-safe objects.
15147thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15148
15149# Library versioning type.
15150version_type=$version_type
15151
15152# Format of library name prefix.
15153libname_spec=$lt_libname_spec
15154
15155# List of archive names.  First name is the real one, the rest are links.
15156# The last name is the one that the linker finds with -lNAME.
15157library_names_spec=$lt_library_names_spec
15158
15159# The coded name of the library, if different from the real name.
15160soname_spec=$lt_soname_spec
15161
15162# Commands used to build and install an old-style archive.
15163RANLIB=$lt_RANLIB
15164old_archive_cmds=$lt_old_archive_cmds_CXX
15165old_postinstall_cmds=$lt_old_postinstall_cmds
15166old_postuninstall_cmds=$lt_old_postuninstall_cmds
15167
15168# Create an old-style archive from a shared archive.
15169old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15170
15171# Create a temporary old-style archive to link instead of a shared archive.
15172old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15173
15174# Commands used to build and install a shared archive.
15175archive_cmds=$lt_archive_cmds_CXX
15176archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15177postinstall_cmds=$lt_postinstall_cmds
15178postuninstall_cmds=$lt_postuninstall_cmds
15179
15180# Commands used to build a loadable module (assumed same as above if empty)
15181module_cmds=$lt_module_cmds_CXX
15182module_expsym_cmds=$lt_module_expsym_cmds_CXX
15183
15184# Commands to strip libraries.
15185old_striplib=$lt_old_striplib
15186striplib=$lt_striplib
15187
15188# Dependencies to place before the objects being linked to create a
15189# shared library.
15190predep_objects=$lt_predep_objects_CXX
15191
15192# Dependencies to place after the objects being linked to create a
15193# shared library.
15194postdep_objects=$lt_postdep_objects_CXX
15195
15196# Dependencies to place before the objects being linked to create a
15197# shared library.
15198predeps=$lt_predeps_CXX
15199
15200# Dependencies to place after the objects being linked to create a
15201# shared library.
15202postdeps=$lt_postdeps_CXX
15203
15204# The library search path used internally by the compiler when linking
15205# a shared library.
15206compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15207
15208# Method to check whether dependent libraries are shared objects.
15209deplibs_check_method=$lt_deplibs_check_method
15210
15211# Command to use when deplibs_check_method == file_magic.
15212file_magic_cmd=$lt_file_magic_cmd
15213
15214# Flag that allows shared libraries with undefined symbols to be built.
15215allow_undefined_flag=$lt_allow_undefined_flag_CXX
15216
15217# Flag that forces no undefined symbols.
15218no_undefined_flag=$lt_no_undefined_flag_CXX
15219
15220# Commands used to finish a libtool library installation in a directory.
15221finish_cmds=$lt_finish_cmds
15222
15223# Same as above, but a single script fragment to be evaled but not shown.
15224finish_eval=$lt_finish_eval
15225
15226# Take the output of nm and produce a listing of raw symbols and C names.
15227global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15228
15229# Transform the output of nm in a proper C declaration
15230global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15231
15232# Transform the output of nm in a C name address pair
15233global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15234
15235# This is the shared library runtime path variable.
15236runpath_var=$runpath_var
15237
15238# This is the shared library path variable.
15239shlibpath_var=$shlibpath_var
15240
15241# Is shlibpath searched before the hard-coded library search path?
15242shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15243
15244# How to hardcode a shared library path into an executable.
15245hardcode_action=$hardcode_action_CXX
15246
15247# Whether we should hardcode library paths into libraries.
15248hardcode_into_libs=$hardcode_into_libs
15249
15250# Flag to hardcode \$libdir into a binary during linking.
15251# This must work even if \$libdir does not exist.
15252hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15253
15254# If ld is used when linking, flag to hardcode \$libdir into
15255# a binary during linking. This must work even if \$libdir does
15256# not exist.
15257hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15258
15259# Whether we need a single -rpath flag with a separated argument.
15260hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15261
15262# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15263# resulting binary.
15264hardcode_direct=$hardcode_direct_CXX
15265
15266# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15267# resulting binary.
15268hardcode_minus_L=$hardcode_minus_L_CXX
15269
15270# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15271# the resulting binary.
15272hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15273
15274# Set to yes if building a shared library automatically hardcodes DIR into the library
15275# and all subsequent libraries and executables linked against it.
15276hardcode_automatic=$hardcode_automatic_CXX
15277
15278# Variables whose values should be saved in libtool wrapper scripts and
15279# restored at relink time.
15280variables_saved_for_relink="$variables_saved_for_relink"
15281
15282# Whether libtool must link a program against all its dependency libraries.
15283link_all_deplibs=$link_all_deplibs_CXX
15284
15285# Compile-time system search path for libraries
15286sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15287
15288# Run-time system search path for libraries
15289sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15290
15291# Fix the shell variable \$srcfile for the compiler.
15292fix_srcfile_path=$lt_fix_srcfile_path
15293
15294# Set to yes if exported symbols are required.
15295always_export_symbols=$always_export_symbols_CXX
15296
15297# The commands to list exported symbols.
15298export_symbols_cmds=$lt_export_symbols_cmds_CXX
15299
15300# The commands to extract the exported symbol list from a shared archive.
15301extract_expsyms_cmds=$lt_extract_expsyms_cmds
15302
15303# Symbols that should not be listed in the preloaded symbols.
15304exclude_expsyms=$lt_exclude_expsyms_CXX
15305
15306# Symbols that must always be exported.
15307include_expsyms=$lt_include_expsyms_CXX
15308
15309# ### END LIBTOOL TAG CONFIG: $tagname
15310
15311__EOF__
15312
15313
15314else
15315  # If there is no Makefile yet, we rely on a make rule to execute
15316  # `config.status --recheck' to rerun these tests and create the
15317  # libtool script then.
15318  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15319  if test -f "$ltmain_in"; then
15320    test -f Makefile && make "$ltmain"
15321  fi
15322fi
15323
15324
15325ac_ext=c
15326ac_cpp='$CPP $CPPFLAGS'
15327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15329ac_compiler_gnu=$ac_cv_c_compiler_gnu
15330
15331CC=$lt_save_CC
15332LDCXX=$LD
15333LD=$lt_save_LD
15334GCC=$lt_save_GCC
15335with_gnu_ldcxx=$with_gnu_ld
15336with_gnu_ld=$lt_save_with_gnu_ld
15337lt_cv_path_LDCXX=$lt_cv_path_LD
15338lt_cv_path_LD=$lt_save_path_LD
15339lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15340lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15341
15342	else
15343	  tagname=""
15344	fi
15345	;;
15346
15347      F77)
15348	if test -n "$F77" && test "X$F77" != "Xno"; then
15349
15350ac_ext=f
15351ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15352ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15353ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15354
15355
15356archive_cmds_need_lc_F77=no
15357allow_undefined_flag_F77=
15358always_export_symbols_F77=no
15359archive_expsym_cmds_F77=
15360export_dynamic_flag_spec_F77=
15361hardcode_direct_F77=no
15362hardcode_libdir_flag_spec_F77=
15363hardcode_libdir_flag_spec_ld_F77=
15364hardcode_libdir_separator_F77=
15365hardcode_minus_L_F77=no
15366hardcode_automatic_F77=no
15367module_cmds_F77=
15368module_expsym_cmds_F77=
15369link_all_deplibs_F77=unknown
15370old_archive_cmds_F77=$old_archive_cmds
15371no_undefined_flag_F77=
15372whole_archive_flag_spec_F77=
15373enable_shared_with_static_runtimes_F77=no
15374
15375# Source file extension for f77 test sources.
15376ac_ext=f
15377
15378# Object file extension for compiled f77 test sources.
15379objext=o
15380objext_F77=$objext
15381
15382# Code to be used in simple compile tests
15383lt_simple_compile_test_code="\
15384      subroutine t
15385      return
15386      end
15387"
15388
15389# Code to be used in simple link tests
15390lt_simple_link_test_code="\
15391      program t
15392      end
15393"
15394
15395# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15396
15397# If no C compiler was specified, use CC.
15398LTCC=${LTCC-"$CC"}
15399
15400# If no C compiler flags were specified, use CFLAGS.
15401LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15402
15403# Allow CC to be a program name with arguments.
15404compiler=$CC
15405
15406
15407# save warnings/boilerplate of simple test code
15408ac_outfile=conftest.$ac_objext
15409echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15410eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15411_lt_compiler_boilerplate=`cat conftest.err`
15412$rm conftest*
15413
15414ac_outfile=conftest.$ac_objext
15415echo "$lt_simple_link_test_code" >conftest.$ac_ext
15416eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15417_lt_linker_boilerplate=`cat conftest.err`
15418$rm conftest*
15419
15420
15421# Allow CC to be a program name with arguments.
15422lt_save_CC="$CC"
15423CC=${F77-"f77"}
15424compiler=$CC
15425compiler_F77=$CC
15426for cc_temp in $compiler""; do
15427  case $cc_temp in
15428    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15429    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15430    \-*) ;;
15431    *) break;;
15432  esac
15433done
15434cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15435
15436
15437{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15438echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15439{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
15440echo "${ECHO_T}$can_build_shared" >&6; }
15441
15442{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15443echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15444test "$can_build_shared" = "no" && enable_shared=no
15445
15446# On AIX, shared libraries and static libraries use the same namespace, and
15447# are all built from PIC.
15448case $host_os in
15449aix3*)
15450  test "$enable_shared" = yes && enable_static=no
15451  if test -n "$RANLIB"; then
15452    archive_cmds="$archive_cmds~\$RANLIB \$lib"
15453    postinstall_cmds='$RANLIB $lib'
15454  fi
15455  ;;
15456aix4* | aix5*)
15457  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15458    test "$enable_shared" = yes && enable_static=no
15459  fi
15460  ;;
15461esac
15462{ echo "$as_me:$LINENO: result: $enable_shared" >&5
15463echo "${ECHO_T}$enable_shared" >&6; }
15464
15465{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15466echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15467# Make sure either enable_shared or enable_static is yes.
15468test "$enable_shared" = yes || enable_static=yes
15469{ echo "$as_me:$LINENO: result: $enable_static" >&5
15470echo "${ECHO_T}$enable_static" >&6; }
15471
15472GCC_F77="$G77"
15473LD_F77="$LD"
15474
15475lt_prog_compiler_wl_F77=
15476lt_prog_compiler_pic_F77=
15477lt_prog_compiler_static_F77=
15478
15479{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15480echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15481
15482  if test "$GCC" = yes; then
15483    lt_prog_compiler_wl_F77='-Wl,'
15484    lt_prog_compiler_static_F77='-static'
15485
15486    case $host_os in
15487      aix*)
15488      # All AIX code is PIC.
15489      if test "$host_cpu" = ia64; then
15490	# AIX 5 now supports IA64 processor
15491	lt_prog_compiler_static_F77='-Bstatic'
15492      fi
15493      ;;
15494
15495    amigaos*)
15496      # FIXME: we need at least 68020 code to build shared libraries, but
15497      # adding the `-m68020' flag to GCC prevents building anything better,
15498      # like `-m68040'.
15499      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15500      ;;
15501
15502    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15503      # PIC is the default for these OSes.
15504      ;;
15505
15506    mingw* | cygwin* | pw32* | os2*)
15507      # This hack is so that the source file can tell whether it is being
15508      # built for inclusion in a dll (and should export symbols for example).
15509      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15510      # (--disable-auto-import) libraries
15511      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15512      ;;
15513
15514    darwin* | rhapsody*)
15515      # PIC is the default on this platform
15516      # Common symbols not allowed in MH_DYLIB files
15517      lt_prog_compiler_pic_F77='-fno-common'
15518      ;;
15519
15520    interix[3-9]*)
15521      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15522      # Instead, we relocate shared libraries at runtime.
15523      ;;
15524
15525    msdosdjgpp*)
15526      # Just because we use GCC doesn't mean we suddenly get shared libraries
15527      # on systems that don't support them.
15528      lt_prog_compiler_can_build_shared_F77=no
15529      enable_shared=no
15530      ;;
15531
15532    sysv4*MP*)
15533      if test -d /usr/nec; then
15534	lt_prog_compiler_pic_F77=-Kconform_pic
15535      fi
15536      ;;
15537
15538    hpux*)
15539      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15540      # not for PA HP-UX.
15541      case $host_cpu in
15542      hppa*64*|ia64*)
15543	# +Z the default
15544	;;
15545      *)
15546	lt_prog_compiler_pic_F77='-fPIC'
15547	;;
15548      esac
15549      ;;
15550
15551    *)
15552      lt_prog_compiler_pic_F77='-fPIC'
15553      ;;
15554    esac
15555  else
15556    # PORTME Check for flag to pass linker flags through the system compiler.
15557    case $host_os in
15558    aix*)
15559      lt_prog_compiler_wl_F77='-Wl,'
15560      if test "$host_cpu" = ia64; then
15561	# AIX 5 now supports IA64 processor
15562	lt_prog_compiler_static_F77='-Bstatic'
15563      else
15564	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15565      fi
15566      ;;
15567      darwin*)
15568        # PIC is the default on this platform
15569        # Common symbols not allowed in MH_DYLIB files
15570       case $cc_basename in
15571         xlc*)
15572         lt_prog_compiler_pic_F77='-qnocommon'
15573         lt_prog_compiler_wl_F77='-Wl,'
15574         ;;
15575       esac
15576       ;;
15577
15578    mingw* | cygwin* | pw32* | os2*)
15579      # This hack is so that the source file can tell whether it is being
15580      # built for inclusion in a dll (and should export symbols for example).
15581      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15582      ;;
15583
15584    hpux9* | hpux10* | hpux11*)
15585      lt_prog_compiler_wl_F77='-Wl,'
15586      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15587      # not for PA HP-UX.
15588      case $host_cpu in
15589      hppa*64*|ia64*)
15590	# +Z the default
15591	;;
15592      *)
15593	lt_prog_compiler_pic_F77='+Z'
15594	;;
15595      esac
15596      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15597      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15598      ;;
15599
15600    irix5* | irix6* | nonstopux*)
15601      lt_prog_compiler_wl_F77='-Wl,'
15602      # PIC (with -KPIC) is the default.
15603      lt_prog_compiler_static_F77='-non_shared'
15604      ;;
15605
15606    newsos6)
15607      lt_prog_compiler_pic_F77='-KPIC'
15608      lt_prog_compiler_static_F77='-Bstatic'
15609      ;;
15610
15611    linux* | k*bsd*-gnu)
15612      case $cc_basename in
15613      icc* | ecc*)
15614	lt_prog_compiler_wl_F77='-Wl,'
15615	lt_prog_compiler_pic_F77='-KPIC'
15616	lt_prog_compiler_static_F77='-static'
15617        ;;
15618      pgcc* | pgf77* | pgf90* | pgf95*)
15619        # Portland Group compilers (*not* the Pentium gcc compiler,
15620	# which looks to be a dead project)
15621	lt_prog_compiler_wl_F77='-Wl,'
15622	lt_prog_compiler_pic_F77='-fpic'
15623	lt_prog_compiler_static_F77='-Bstatic'
15624        ;;
15625      ccc*)
15626        lt_prog_compiler_wl_F77='-Wl,'
15627        # All Alpha code is PIC.
15628        lt_prog_compiler_static_F77='-non_shared'
15629        ;;
15630      *)
15631        case `$CC -V 2>&1 | sed 5q` in
15632	*Sun\ C*)
15633	  # Sun C 5.9
15634	  lt_prog_compiler_pic_F77='-KPIC'
15635	  lt_prog_compiler_static_F77='-Bstatic'
15636	  lt_prog_compiler_wl_F77='-Wl,'
15637	  ;;
15638	*Sun\ F*)
15639	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15640	  lt_prog_compiler_pic_F77='-KPIC'
15641	  lt_prog_compiler_static_F77='-Bstatic'
15642	  lt_prog_compiler_wl_F77=''
15643	  ;;
15644	esac
15645	;;
15646      esac
15647      ;;
15648
15649    osf3* | osf4* | osf5*)
15650      lt_prog_compiler_wl_F77='-Wl,'
15651      # All OSF/1 code is PIC.
15652      lt_prog_compiler_static_F77='-non_shared'
15653      ;;
15654
15655    rdos*)
15656      lt_prog_compiler_static_F77='-non_shared'
15657      ;;
15658
15659    solaris*)
15660      lt_prog_compiler_pic_F77='-KPIC'
15661      lt_prog_compiler_static_F77='-Bstatic'
15662      case $cc_basename in
15663      f77* | f90* | f95*)
15664	lt_prog_compiler_wl_F77='-Qoption ld ';;
15665      *)
15666	lt_prog_compiler_wl_F77='-Wl,';;
15667      esac
15668      ;;
15669
15670    sunos4*)
15671      lt_prog_compiler_wl_F77='-Qoption ld '
15672      lt_prog_compiler_pic_F77='-PIC'
15673      lt_prog_compiler_static_F77='-Bstatic'
15674      ;;
15675
15676    sysv4 | sysv4.2uw2* | sysv4.3*)
15677      lt_prog_compiler_wl_F77='-Wl,'
15678      lt_prog_compiler_pic_F77='-KPIC'
15679      lt_prog_compiler_static_F77='-Bstatic'
15680      ;;
15681
15682    sysv4*MP*)
15683      if test -d /usr/nec ;then
15684	lt_prog_compiler_pic_F77='-Kconform_pic'
15685	lt_prog_compiler_static_F77='-Bstatic'
15686      fi
15687      ;;
15688
15689    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15690      lt_prog_compiler_wl_F77='-Wl,'
15691      lt_prog_compiler_pic_F77='-KPIC'
15692      lt_prog_compiler_static_F77='-Bstatic'
15693      ;;
15694
15695    unicos*)
15696      lt_prog_compiler_wl_F77='-Wl,'
15697      lt_prog_compiler_can_build_shared_F77=no
15698      ;;
15699
15700    uts4*)
15701      lt_prog_compiler_pic_F77='-pic'
15702      lt_prog_compiler_static_F77='-Bstatic'
15703      ;;
15704
15705    *)
15706      lt_prog_compiler_can_build_shared_F77=no
15707      ;;
15708    esac
15709  fi
15710
15711{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15712echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15713
15714#
15715# Check to make sure the PIC flag actually works.
15716#
15717if test -n "$lt_prog_compiler_pic_F77"; then
15718
15719{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15720echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15721if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15722  echo $ECHO_N "(cached) $ECHO_C" >&6
15723else
15724  lt_prog_compiler_pic_works_F77=no
15725  ac_outfile=conftest.$ac_objext
15726   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15727   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15728   # Insert the option either (1) after the last *FLAGS variable, or
15729   # (2) before a word containing "conftest.", or (3) at the end.
15730   # Note that $ac_compile itself does not contain backslashes and begins
15731   # with a dollar sign (not a hyphen), so the echo should work correctly.
15732   # The option is referenced via a variable to avoid confusing sed.
15733   lt_compile=`echo "$ac_compile" | $SED \
15734   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15735   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15736   -e 's:$: $lt_compiler_flag:'`
15737   (eval echo "\"\$as_me:15737: $lt_compile\"" >&5)
15738   (eval "$lt_compile" 2>conftest.err)
15739   ac_status=$?
15740   cat conftest.err >&5
15741   echo "$as_me:15741: \$? = $ac_status" >&5
15742   if (exit $ac_status) && test -s "$ac_outfile"; then
15743     # The compiler can only warn and ignore the option if not recognized
15744     # So say no if there are warnings other than the usual output.
15745     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15746     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15747     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15748       lt_prog_compiler_pic_works_F77=yes
15749     fi
15750   fi
15751   $rm conftest*
15752
15753fi
15754{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15755echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15756
15757if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15758    case $lt_prog_compiler_pic_F77 in
15759     "" | " "*) ;;
15760     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15761     esac
15762else
15763    lt_prog_compiler_pic_F77=
15764     lt_prog_compiler_can_build_shared_F77=no
15765fi
15766
15767fi
15768case $host_os in
15769  # For platforms which do not support PIC, -DPIC is meaningless:
15770  *djgpp*)
15771    lt_prog_compiler_pic_F77=
15772    ;;
15773  *)
15774    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15775    ;;
15776esac
15777
15778#
15779# Check to make sure the static flag actually works.
15780#
15781wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15782{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15783echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15784if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15785  echo $ECHO_N "(cached) $ECHO_C" >&6
15786else
15787  lt_prog_compiler_static_works_F77=no
15788   save_LDFLAGS="$LDFLAGS"
15789   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15790   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15791   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15792     # The linker can only warn and ignore the option if not recognized
15793     # So say no if there are warnings
15794     if test -s conftest.err; then
15795       # Append any errors to the config.log.
15796       cat conftest.err 1>&5
15797       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15798       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15799       if diff conftest.exp conftest.er2 >/dev/null; then
15800         lt_prog_compiler_static_works_F77=yes
15801       fi
15802     else
15803       lt_prog_compiler_static_works_F77=yes
15804     fi
15805   fi
15806   $rm conftest*
15807   LDFLAGS="$save_LDFLAGS"
15808
15809fi
15810{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15811echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15812
15813if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15814    :
15815else
15816    lt_prog_compiler_static_F77=
15817fi
15818
15819
15820{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15821echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15822if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15823  echo $ECHO_N "(cached) $ECHO_C" >&6
15824else
15825  lt_cv_prog_compiler_c_o_F77=no
15826   $rm -r conftest 2>/dev/null
15827   mkdir conftest
15828   cd conftest
15829   mkdir out
15830   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15831
15832   lt_compiler_flag="-o out/conftest2.$ac_objext"
15833   # Insert the option either (1) after the last *FLAGS variable, or
15834   # (2) before a word containing "conftest.", or (3) at the end.
15835   # Note that $ac_compile itself does not contain backslashes and begins
15836   # with a dollar sign (not a hyphen), so the echo should work correctly.
15837   lt_compile=`echo "$ac_compile" | $SED \
15838   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15839   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15840   -e 's:$: $lt_compiler_flag:'`
15841   (eval echo "\"\$as_me:15841: $lt_compile\"" >&5)
15842   (eval "$lt_compile" 2>out/conftest.err)
15843   ac_status=$?
15844   cat out/conftest.err >&5
15845   echo "$as_me:15845: \$? = $ac_status" >&5
15846   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15847   then
15848     # The compiler can only warn and ignore the option if not recognized
15849     # So say no if there are warnings
15850     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15851     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15852     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15853       lt_cv_prog_compiler_c_o_F77=yes
15854     fi
15855   fi
15856   chmod u+w . 2>&5
15857   $rm conftest*
15858   # SGI C++ compiler will create directory out/ii_files/ for
15859   # template instantiation
15860   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15861   $rm out/* && rmdir out
15862   cd ..
15863   rmdir conftest
15864   $rm conftest*
15865
15866fi
15867{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15868echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15869
15870
15871hard_links="nottested"
15872if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15873  # do not overwrite the value of need_locks provided by the user
15874  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15875echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15876  hard_links=yes
15877  $rm conftest*
15878  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15879  touch conftest.a
15880  ln conftest.a conftest.b 2>&5 || hard_links=no
15881  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15882  { echo "$as_me:$LINENO: result: $hard_links" >&5
15883echo "${ECHO_T}$hard_links" >&6; }
15884  if test "$hard_links" = no; then
15885    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15886echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15887    need_locks=warn
15888  fi
15889else
15890  need_locks=no
15891fi
15892
15893{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15894echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15895
15896  runpath_var=
15897  allow_undefined_flag_F77=
15898  enable_shared_with_static_runtimes_F77=no
15899  archive_cmds_F77=
15900  archive_expsym_cmds_F77=
15901  old_archive_From_new_cmds_F77=
15902  old_archive_from_expsyms_cmds_F77=
15903  export_dynamic_flag_spec_F77=
15904  whole_archive_flag_spec_F77=
15905  thread_safe_flag_spec_F77=
15906  hardcode_libdir_flag_spec_F77=
15907  hardcode_libdir_flag_spec_ld_F77=
15908  hardcode_libdir_separator_F77=
15909  hardcode_direct_F77=no
15910  hardcode_minus_L_F77=no
15911  hardcode_shlibpath_var_F77=unsupported
15912  link_all_deplibs_F77=unknown
15913  hardcode_automatic_F77=no
15914  module_cmds_F77=
15915  module_expsym_cmds_F77=
15916  always_export_symbols_F77=no
15917  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15918  # include_expsyms should be a list of space-separated symbols to be *always*
15919  # included in the symbol list
15920  include_expsyms_F77=
15921  # exclude_expsyms can be an extended regexp of symbols to exclude
15922  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15923  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15924  # as well as any symbol that contains `d'.
15925  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15926  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15927  # platforms (ab)use it in PIC code, but their linkers get confused if
15928  # the symbol is explicitly referenced.  Since portable code cannot
15929  # rely on this symbol name, it's probably fine to never include it in
15930  # preloaded symbol tables.
15931  extract_expsyms_cmds=
15932  # Just being paranoid about ensuring that cc_basename is set.
15933  for cc_temp in $compiler""; do
15934  case $cc_temp in
15935    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15936    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15937    \-*) ;;
15938    *) break;;
15939  esac
15940done
15941cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15942
15943  case $host_os in
15944  cygwin* | mingw* | pw32*)
15945    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15946    # When not using gcc, we currently assume that we are using
15947    # Microsoft Visual C++.
15948    if test "$GCC" != yes; then
15949      with_gnu_ld=no
15950    fi
15951    ;;
15952  interix*)
15953    # we just hope/assume this is gcc and not c89 (= MSVC++)
15954    with_gnu_ld=yes
15955    ;;
15956  openbsd*)
15957    with_gnu_ld=no
15958    ;;
15959  esac
15960
15961  ld_shlibs_F77=yes
15962  if test "$with_gnu_ld" = yes; then
15963    # If archive_cmds runs LD, not CC, wlarc should be empty
15964    wlarc='${wl}'
15965
15966    # Set some defaults for GNU ld with shared library support. These
15967    # are reset later if shared libraries are not supported. Putting them
15968    # here allows them to be overridden if necessary.
15969    runpath_var=LD_RUN_PATH
15970    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15971    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15972    # ancient GNU ld didn't support --whole-archive et. al.
15973    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15974	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15975      else
15976  	whole_archive_flag_spec_F77=
15977    fi
15978    supports_anon_versioning=no
15979    case `$LD -v 2>/dev/null` in
15980      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15981      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15982      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15983      *\ 2.11.*) ;; # other 2.11 versions
15984      *) supports_anon_versioning=yes ;;
15985    esac
15986
15987    # See if GNU ld supports shared libraries.
15988    case $host_os in
15989    aix3* | aix4* | aix5*)
15990      # On AIX/PPC, the GNU linker is very broken
15991      if test "$host_cpu" != ia64; then
15992	ld_shlibs_F77=no
15993	cat <<EOF 1>&2
15994
15995*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15996*** to be unable to reliably create shared libraries on AIX.
15997*** Therefore, libtool is disabling shared libraries support.  If you
15998*** really care for shared libraries, you may want to modify your PATH
15999*** so that a non-GNU linker is found, and then restart.
16000
16001EOF
16002      fi
16003      ;;
16004
16005    amigaos*)
16006      archive_cmds_F77='$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)'
16007      hardcode_libdir_flag_spec_F77='-L$libdir'
16008      hardcode_minus_L_F77=yes
16009
16010      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16011      # that the semantics of dynamic libraries on AmigaOS, at least up
16012      # to version 4, is to share data among multiple programs linked
16013      # with the same dynamic library.  Since this doesn't match the
16014      # behavior of shared libraries on other platforms, we can't use
16015      # them.
16016      ld_shlibs_F77=no
16017      ;;
16018
16019    beos*)
16020      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16021	allow_undefined_flag_F77=unsupported
16022	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16023	# support --undefined.  This deserves some investigation.  FIXME
16024	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16025      else
16026	ld_shlibs_F77=no
16027      fi
16028      ;;
16029
16030    cygwin* | mingw* | pw32*)
16031      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16032      # as there is no search path for DLLs.
16033      hardcode_libdir_flag_spec_F77='-L$libdir'
16034      allow_undefined_flag_F77=unsupported
16035      always_export_symbols_F77=no
16036      enable_shared_with_static_runtimes_F77=yes
16037      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16038
16039      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16040        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16041	# If the export-symbols file already is a .def file (1st line
16042	# is EXPORTS), use it as is; otherwise, prepend...
16043	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16044	  cp $export_symbols $output_objdir/$soname.def;
16045	else
16046	  echo EXPORTS > $output_objdir/$soname.def;
16047	  cat $export_symbols >> $output_objdir/$soname.def;
16048	fi~
16049	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16050      else
16051	ld_shlibs_F77=no
16052      fi
16053      ;;
16054
16055    interix[3-9]*)
16056      hardcode_direct_F77=no
16057      hardcode_shlibpath_var_F77=no
16058      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16059      export_dynamic_flag_spec_F77='${wl}-E'
16060      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16061      # Instead, shared libraries are loaded at an image base (0x10000000 by
16062      # default) and relocated if they conflict, which is a slow very memory
16063      # consuming and fragmenting process.  To avoid this, we pick a random,
16064      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16065      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16066      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16067      archive_expsym_cmds_F77='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'
16068      ;;
16069
16070    gnu* | linux* | k*bsd*-gnu)
16071      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16072	tmp_addflag=
16073	case $cc_basename,$host_cpu in
16074	pgcc*)				# Portland Group C compiler
16075	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16076	  tmp_addflag=' $pic_flag'
16077	  ;;
16078	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16079	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16080	  tmp_addflag=' $pic_flag -Mnomain' ;;
16081	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16082	  tmp_addflag=' -i_dynamic' ;;
16083	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16084	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16085	ifc* | ifort*)			# Intel Fortran compiler
16086	  tmp_addflag=' -nofor_main' ;;
16087	esac
16088	case `$CC -V 2>&1 | sed 5q` in
16089	*Sun\ C*)			# Sun C 5.9
16090	  whole_archive_flag_spec_F77='${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'
16091	  tmp_sharedflag='-G' ;;
16092	*Sun\ F*)			# Sun Fortran 8.3
16093	  tmp_sharedflag='-G' ;;
16094	*)
16095	  tmp_sharedflag='-shared' ;;
16096	esac
16097	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16098
16099	if test $supports_anon_versioning = yes; then
16100	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16101  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16102  $echo "local: *; };" >> $output_objdir/$libname.ver~
16103	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16104	fi
16105	link_all_deplibs_F77=no
16106      else
16107	ld_shlibs_F77=no
16108      fi
16109      ;;
16110
16111    netbsd* | netbsdelf*-gnu)
16112      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16113	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16114	wlarc=
16115      else
16116	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16117	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16118      fi
16119      ;;
16120
16121    solaris*)
16122      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16123	ld_shlibs_F77=no
16124	cat <<EOF 1>&2
16125
16126*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16127*** create shared libraries on Solaris systems.  Therefore, libtool
16128*** is disabling shared libraries support.  We urge you to upgrade GNU
16129*** binutils to release 2.9.1 or newer.  Another option is to modify
16130*** your PATH or compiler configuration so that the native linker is
16131*** used, and then restart.
16132
16133EOF
16134      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16135	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16136	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16137      else
16138	ld_shlibs_F77=no
16139      fi
16140      ;;
16141
16142    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16143      case `$LD -v 2>&1` in
16144        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16145	ld_shlibs_F77=no
16146	cat <<_LT_EOF 1>&2
16147
16148*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16149*** reliably create shared libraries on SCO systems.  Therefore, libtool
16150*** is disabling shared libraries support.  We urge you to upgrade GNU
16151*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16152*** your PATH or compiler configuration so that the native linker is
16153*** used, and then restart.
16154
16155_LT_EOF
16156	;;
16157	*)
16158	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16159	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16160	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16161	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16162	  else
16163	    ld_shlibs_F77=no
16164	  fi
16165	;;
16166      esac
16167      ;;
16168
16169    sunos4*)
16170      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16171      wlarc=
16172      hardcode_direct_F77=yes
16173      hardcode_shlibpath_var_F77=no
16174      ;;
16175
16176    *)
16177      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16178	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16179	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16180      else
16181	ld_shlibs_F77=no
16182      fi
16183      ;;
16184    esac
16185
16186    if test "$ld_shlibs_F77" = no; then
16187      runpath_var=
16188      hardcode_libdir_flag_spec_F77=
16189      export_dynamic_flag_spec_F77=
16190      whole_archive_flag_spec_F77=
16191    fi
16192  else
16193    # PORTME fill in a description of your system's linker (not GNU ld)
16194    case $host_os in
16195    aix3*)
16196      allow_undefined_flag_F77=unsupported
16197      always_export_symbols_F77=yes
16198      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16199      # Note: this linker hardcodes the directories in LIBPATH if there
16200      # are no directories specified by -L.
16201      hardcode_minus_L_F77=yes
16202      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16203	# Neither direct hardcoding nor static linking is supported with a
16204	# broken collect2.
16205	hardcode_direct_F77=unsupported
16206      fi
16207      ;;
16208
16209    aix4* | aix5*)
16210      if test "$host_cpu" = ia64; then
16211	# On IA64, the linker does run time linking by default, so we don't
16212	# have to do anything special.
16213	aix_use_runtimelinking=no
16214	exp_sym_flag='-Bexport'
16215	no_entry_flag=""
16216      else
16217	# If we're using GNU nm, then we don't want the "-C" option.
16218	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16219	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16220	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16221	else
16222	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16223	fi
16224	aix_use_runtimelinking=no
16225
16226	# Test if we are trying to use run time linking or normal
16227	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16228	# need to do runtime linking.
16229	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16230	  for ld_flag in $LDFLAGS; do
16231  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16232  	    aix_use_runtimelinking=yes
16233  	    break
16234  	  fi
16235	  done
16236	  ;;
16237	esac
16238
16239	exp_sym_flag='-bexport'
16240	no_entry_flag='-bnoentry'
16241      fi
16242
16243      # When large executables or shared objects are built, AIX ld can
16244      # have problems creating the table of contents.  If linking a library
16245      # or program results in "error TOC overflow" add -mminimal-toc to
16246      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16247      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16248
16249      archive_cmds_F77=''
16250      hardcode_direct_F77=yes
16251      hardcode_libdir_separator_F77=':'
16252      link_all_deplibs_F77=yes
16253
16254      if test "$GCC" = yes; then
16255	case $host_os in aix4.[012]|aix4.[012].*)
16256	# We only want to do this on AIX 4.2 and lower, the check
16257	# below for broken collect2 doesn't work under 4.3+
16258	  collect2name=`${CC} -print-prog-name=collect2`
16259	  if test -f "$collect2name" && \
16260  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16261	  then
16262  	  # We have reworked collect2
16263  	  :
16264	  else
16265  	  # We have old collect2
16266  	  hardcode_direct_F77=unsupported
16267  	  # It fails to find uninstalled libraries when the uninstalled
16268  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16269  	  # to unsupported forces relinking
16270  	  hardcode_minus_L_F77=yes
16271  	  hardcode_libdir_flag_spec_F77='-L$libdir'
16272  	  hardcode_libdir_separator_F77=
16273	  fi
16274	  ;;
16275	esac
16276	shared_flag='-shared'
16277	if test "$aix_use_runtimelinking" = yes; then
16278	  shared_flag="$shared_flag "'${wl}-G'
16279	fi
16280      else
16281	# not using gcc
16282	if test "$host_cpu" = ia64; then
16283  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16284  	# chokes on -Wl,-G. The following line is correct:
16285	  shared_flag='-G'
16286	else
16287	  if test "$aix_use_runtimelinking" = yes; then
16288	    shared_flag='${wl}-G'
16289	  else
16290	    shared_flag='${wl}-bM:SRE'
16291	  fi
16292	fi
16293      fi
16294
16295      # It seems that -bexpall does not export symbols beginning with
16296      # underscore (_), so it is better to generate a list of symbols to export.
16297      always_export_symbols_F77=yes
16298      if test "$aix_use_runtimelinking" = yes; then
16299	# Warning - without using the other runtime loading flags (-brtl),
16300	# -berok will link without error, but may produce a broken library.
16301	allow_undefined_flag_F77='-berok'
16302       # Determine the default libpath from the value encoded in an empty executable.
16303       cat >conftest.$ac_ext <<_ACEOF
16304      program main
16305
16306      end
16307_ACEOF
16308rm -f conftest.$ac_objext conftest$ac_exeext
16309if { (ac_try="$ac_link"
16310case "(($ac_try" in
16311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312  *) ac_try_echo=$ac_try;;
16313esac
16314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315  (eval "$ac_link") 2>conftest.er1
16316  ac_status=$?
16317  grep -v '^ *+' conftest.er1 >conftest.err
16318  rm -f conftest.er1
16319  cat conftest.err >&5
16320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321  (exit $ac_status); } && {
16322	 test -z "$ac_f77_werror_flag" ||
16323	 test ! -s conftest.err
16324       } && test -s conftest$ac_exeext &&
16325       $as_test_x conftest$ac_exeext; then
16326
16327lt_aix_libpath_sed='
16328    /Import File Strings/,/^$/ {
16329	/^0/ {
16330	    s/^0  *\(.*\)$/\1/
16331	    p
16332	}
16333    }'
16334aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16335# Check for a 64-bit object if we didn't find anything.
16336if test -z "$aix_libpath"; then
16337  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16338fi
16339else
16340  echo "$as_me: failed program was:" >&5
16341sed 's/^/| /' conftest.$ac_ext >&5
16342
16343
16344fi
16345
16346rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16347      conftest$ac_exeext conftest.$ac_ext
16348if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16349
16350       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16351	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16352       else
16353	if test "$host_cpu" = ia64; then
16354	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16355	  allow_undefined_flag_F77="-z nodefs"
16356	  archive_expsym_cmds_F77="\$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"
16357	else
16358	 # Determine the default libpath from the value encoded in an empty executable.
16359	 cat >conftest.$ac_ext <<_ACEOF
16360      program main
16361
16362      end
16363_ACEOF
16364rm -f conftest.$ac_objext conftest$ac_exeext
16365if { (ac_try="$ac_link"
16366case "(($ac_try" in
16367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368  *) ac_try_echo=$ac_try;;
16369esac
16370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371  (eval "$ac_link") 2>conftest.er1
16372  ac_status=$?
16373  grep -v '^ *+' conftest.er1 >conftest.err
16374  rm -f conftest.er1
16375  cat conftest.err >&5
16376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377  (exit $ac_status); } && {
16378	 test -z "$ac_f77_werror_flag" ||
16379	 test ! -s conftest.err
16380       } && test -s conftest$ac_exeext &&
16381       $as_test_x conftest$ac_exeext; then
16382
16383lt_aix_libpath_sed='
16384    /Import File Strings/,/^$/ {
16385	/^0/ {
16386	    s/^0  *\(.*\)$/\1/
16387	    p
16388	}
16389    }'
16390aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16391# Check for a 64-bit object if we didn't find anything.
16392if test -z "$aix_libpath"; then
16393  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16394fi
16395else
16396  echo "$as_me: failed program was:" >&5
16397sed 's/^/| /' conftest.$ac_ext >&5
16398
16399
16400fi
16401
16402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16403      conftest$ac_exeext conftest.$ac_ext
16404if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16405
16406	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16407	  # Warning - without using the other run time loading flags,
16408	  # -berok will link without error, but may produce a broken library.
16409	  no_undefined_flag_F77=' ${wl}-bernotok'
16410	  allow_undefined_flag_F77=' ${wl}-berok'
16411	  # Exported symbols can be pulled into shared objects from archives
16412	  whole_archive_flag_spec_F77='$convenience'
16413	  archive_cmds_need_lc_F77=yes
16414	  # This is similar to how AIX traditionally builds its shared libraries.
16415	  archive_expsym_cmds_F77="\$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'
16416	fi
16417      fi
16418      ;;
16419
16420    amigaos*)
16421      archive_cmds_F77='$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)'
16422      hardcode_libdir_flag_spec_F77='-L$libdir'
16423      hardcode_minus_L_F77=yes
16424      # see comment about different semantics on the GNU ld section
16425      ld_shlibs_F77=no
16426      ;;
16427
16428    bsdi[45]*)
16429      export_dynamic_flag_spec_F77=-rdynamic
16430      ;;
16431
16432    cygwin* | mingw* | pw32*)
16433      # When not using gcc, we currently assume that we are using
16434      # Microsoft Visual C++.
16435      # hardcode_libdir_flag_spec is actually meaningless, as there is
16436      # no search path for DLLs.
16437      hardcode_libdir_flag_spec_F77=' '
16438      allow_undefined_flag_F77=unsupported
16439      # Tell ltmain to make .lib files, not .a files.
16440      libext=lib
16441      # Tell ltmain to make .dll files, not .so files.
16442      shrext_cmds=".dll"
16443      # FIXME: Setting linknames here is a bad hack.
16444      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16445      # The linker will automatically build a .lib file if we build a DLL.
16446      old_archive_From_new_cmds_F77='true'
16447      # FIXME: Should let the user specify the lib program.
16448      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16449      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16450      enable_shared_with_static_runtimes_F77=yes
16451      ;;
16452
16453    darwin* | rhapsody*)
16454      case $host_os in
16455        rhapsody* | darwin1.[012])
16456         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16457         ;;
16458       *) # Darwin 1.3 on
16459         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16460           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16461         else
16462           case ${MACOSX_DEPLOYMENT_TARGET} in
16463             10.[012])
16464               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16465               ;;
16466             10.*)
16467               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16468               ;;
16469           esac
16470         fi
16471         ;;
16472      esac
16473      archive_cmds_need_lc_F77=no
16474      hardcode_direct_F77=no
16475      hardcode_automatic_F77=yes
16476      hardcode_shlibpath_var_F77=unsupported
16477      whole_archive_flag_spec_F77=''
16478      link_all_deplibs_F77=yes
16479    if test "$GCC" = yes ; then
16480    	output_verbose_link_cmd='echo'
16481        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16482      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16483      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16484      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16485      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16486    else
16487      case $cc_basename in
16488        xlc*)
16489         output_verbose_link_cmd='echo'
16490         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16491         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16492          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16493         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16494          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16495          ;;
16496       *)
16497         ld_shlibs_F77=no
16498          ;;
16499      esac
16500    fi
16501      ;;
16502
16503    dgux*)
16504      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16505      hardcode_libdir_flag_spec_F77='-L$libdir'
16506      hardcode_shlibpath_var_F77=no
16507      ;;
16508
16509    freebsd1*)
16510      ld_shlibs_F77=no
16511      ;;
16512
16513    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16514    # support.  Future versions do this automatically, but an explicit c++rt0.o
16515    # does not break anything, and helps significantly (at the cost of a little
16516    # extra space).
16517    freebsd2.2*)
16518      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16519      hardcode_libdir_flag_spec_F77='-R$libdir'
16520      hardcode_direct_F77=yes
16521      hardcode_shlibpath_var_F77=no
16522      ;;
16523
16524    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16525    freebsd2*)
16526      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16527      hardcode_direct_F77=yes
16528      hardcode_minus_L_F77=yes
16529      hardcode_shlibpath_var_F77=no
16530      ;;
16531
16532    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16533    freebsd* | dragonfly*)
16534      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16535      hardcode_libdir_flag_spec_F77='-R$libdir'
16536      hardcode_direct_F77=yes
16537      hardcode_shlibpath_var_F77=no
16538      ;;
16539
16540    hpux9*)
16541      if test "$GCC" = yes; then
16542	archive_cmds_F77='$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'
16543      else
16544	archive_cmds_F77='$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'
16545      fi
16546      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16547      hardcode_libdir_separator_F77=:
16548      hardcode_direct_F77=yes
16549
16550      # hardcode_minus_L: Not really in the search PATH,
16551      # but as the default location of the library.
16552      hardcode_minus_L_F77=yes
16553      export_dynamic_flag_spec_F77='${wl}-E'
16554      ;;
16555
16556    hpux10*)
16557      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16558	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16559      else
16560	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16561      fi
16562      if test "$with_gnu_ld" = no; then
16563	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16564	hardcode_libdir_separator_F77=:
16565
16566	hardcode_direct_F77=yes
16567	export_dynamic_flag_spec_F77='${wl}-E'
16568
16569	# hardcode_minus_L: Not really in the search PATH,
16570	# but as the default location of the library.
16571	hardcode_minus_L_F77=yes
16572      fi
16573      ;;
16574
16575    hpux11*)
16576      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16577	case $host_cpu in
16578	hppa*64*)
16579	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16580	  ;;
16581	ia64*)
16582	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16583	  ;;
16584	*)
16585	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16586	  ;;
16587	esac
16588      else
16589	case $host_cpu in
16590	hppa*64*)
16591	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16592	  ;;
16593	ia64*)
16594	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16595	  ;;
16596	*)
16597	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16598	  ;;
16599	esac
16600      fi
16601      if test "$with_gnu_ld" = no; then
16602	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16603	hardcode_libdir_separator_F77=:
16604
16605	case $host_cpu in
16606	hppa*64*|ia64*)
16607	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16608	  hardcode_direct_F77=no
16609	  hardcode_shlibpath_var_F77=no
16610	  ;;
16611	*)
16612	  hardcode_direct_F77=yes
16613	  export_dynamic_flag_spec_F77='${wl}-E'
16614
16615	  # hardcode_minus_L: Not really in the search PATH,
16616	  # but as the default location of the library.
16617	  hardcode_minus_L_F77=yes
16618	  ;;
16619	esac
16620      fi
16621      ;;
16622
16623    irix5* | irix6* | nonstopux*)
16624      if test "$GCC" = yes; then
16625	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16626      else
16627	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16628	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16629      fi
16630      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16631      hardcode_libdir_separator_F77=:
16632      link_all_deplibs_F77=yes
16633      ;;
16634
16635    netbsd* | netbsdelf*-gnu)
16636      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16637	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16638      else
16639	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16640      fi
16641      hardcode_libdir_flag_spec_F77='-R$libdir'
16642      hardcode_direct_F77=yes
16643      hardcode_shlibpath_var_F77=no
16644      ;;
16645
16646    newsos6)
16647      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16648      hardcode_direct_F77=yes
16649      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16650      hardcode_libdir_separator_F77=:
16651      hardcode_shlibpath_var_F77=no
16652      ;;
16653
16654    openbsd*)
16655      if test -f /usr/libexec/ld.so; then
16656	hardcode_direct_F77=yes
16657	hardcode_shlibpath_var_F77=no
16658	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16659	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16660	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16661	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16662	  export_dynamic_flag_spec_F77='${wl}-E'
16663	else
16664	  case $host_os in
16665	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16666	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16667	     hardcode_libdir_flag_spec_F77='-R$libdir'
16668	     ;;
16669	   *)
16670	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16671	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16672	     ;;
16673	  esac
16674        fi
16675      else
16676	ld_shlibs_F77=no
16677      fi
16678      ;;
16679
16680    os2*)
16681      hardcode_libdir_flag_spec_F77='-L$libdir'
16682      hardcode_minus_L_F77=yes
16683      allow_undefined_flag_F77=unsupported
16684      archive_cmds_F77='$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'
16685      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16686      ;;
16687
16688    osf3*)
16689      if test "$GCC" = yes; then
16690	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16691	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16692      else
16693	allow_undefined_flag_F77=' -expect_unresolved \*'
16694	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16695      fi
16696      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16697      hardcode_libdir_separator_F77=:
16698      ;;
16699
16700    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16701      if test "$GCC" = yes; then
16702	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16703	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16704	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16705      else
16706	allow_undefined_flag_F77=' -expect_unresolved \*'
16707	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16708	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16709	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16710
16711	# Both c and cxx compiler support -rpath directly
16712	hardcode_libdir_flag_spec_F77='-rpath $libdir'
16713      fi
16714      hardcode_libdir_separator_F77=:
16715      ;;
16716
16717    solaris*)
16718      no_undefined_flag_F77=' -z text'
16719      if test "$GCC" = yes; then
16720	wlarc='${wl}'
16721	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16722	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16723	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16724      else
16725	wlarc=''
16726	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16727	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16728  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16729      fi
16730      hardcode_libdir_flag_spec_F77='-R$libdir'
16731      hardcode_shlibpath_var_F77=no
16732      case $host_os in
16733      solaris2.[0-5] | solaris2.[0-5].*) ;;
16734      *)
16735	# The compiler driver will combine and reorder linker options,
16736	# but understands `-z linker_flag'.  GCC discards it without `$wl',
16737	# but is careful enough not to reorder.
16738 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16739	if test "$GCC" = yes; then
16740	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16741	else
16742	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16743	fi
16744	;;
16745      esac
16746      link_all_deplibs_F77=yes
16747      ;;
16748
16749    sunos4*)
16750      if test "x$host_vendor" = xsequent; then
16751	# Use $CC to link under sequent, because it throws in some extra .o
16752	# files that make .init and .fini sections work.
16753	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16754      else
16755	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16756      fi
16757      hardcode_libdir_flag_spec_F77='-L$libdir'
16758      hardcode_direct_F77=yes
16759      hardcode_minus_L_F77=yes
16760      hardcode_shlibpath_var_F77=no
16761      ;;
16762
16763    sysv4)
16764      case $host_vendor in
16765	sni)
16766	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16767	  hardcode_direct_F77=yes # is this really true???
16768	;;
16769	siemens)
16770	  ## LD is ld it makes a PLAMLIB
16771	  ## CC just makes a GrossModule.
16772	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16773	  reload_cmds_F77='$CC -r -o $output$reload_objs'
16774	  hardcode_direct_F77=no
16775        ;;
16776	motorola)
16777	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16778	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16779	;;
16780      esac
16781      runpath_var='LD_RUN_PATH'
16782      hardcode_shlibpath_var_F77=no
16783      ;;
16784
16785    sysv4.3*)
16786      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16787      hardcode_shlibpath_var_F77=no
16788      export_dynamic_flag_spec_F77='-Bexport'
16789      ;;
16790
16791    sysv4*MP*)
16792      if test -d /usr/nec; then
16793	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16794	hardcode_shlibpath_var_F77=no
16795	runpath_var=LD_RUN_PATH
16796	hardcode_runpath_var=yes
16797	ld_shlibs_F77=yes
16798      fi
16799      ;;
16800
16801    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16802      no_undefined_flag_F77='${wl}-z,text'
16803      archive_cmds_need_lc_F77=no
16804      hardcode_shlibpath_var_F77=no
16805      runpath_var='LD_RUN_PATH'
16806
16807      if test "$GCC" = yes; then
16808	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16809	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16810      else
16811	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16812	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16813      fi
16814      ;;
16815
16816    sysv5* | sco3.2v5* | sco5v6*)
16817      # Note: We can NOT use -z defs as we might desire, because we do not
16818      # link with -lc, and that would cause any symbols used from libc to
16819      # always be unresolved, which means just about no library would
16820      # ever link correctly.  If we're not using GNU ld we use -z text
16821      # though, which does catch some bad symbols but isn't as heavy-handed
16822      # as -z defs.
16823      no_undefined_flag_F77='${wl}-z,text'
16824      allow_undefined_flag_F77='${wl}-z,nodefs'
16825      archive_cmds_need_lc_F77=no
16826      hardcode_shlibpath_var_F77=no
16827      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16828      hardcode_libdir_separator_F77=':'
16829      link_all_deplibs_F77=yes
16830      export_dynamic_flag_spec_F77='${wl}-Bexport'
16831      runpath_var='LD_RUN_PATH'
16832
16833      if test "$GCC" = yes; then
16834	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16835	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16836      else
16837	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16838	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16839      fi
16840      ;;
16841
16842    uts4*)
16843      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16844      hardcode_libdir_flag_spec_F77='-L$libdir'
16845      hardcode_shlibpath_var_F77=no
16846      ;;
16847
16848    *)
16849      ld_shlibs_F77=no
16850      ;;
16851    esac
16852  fi
16853
16854{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16855echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16856test "$ld_shlibs_F77" = no && can_build_shared=no
16857
16858#
16859# Do we need to explicitly link libc?
16860#
16861case "x$archive_cmds_need_lc_F77" in
16862x|xyes)
16863  # Assume -lc should be added
16864  archive_cmds_need_lc_F77=yes
16865
16866  if test "$enable_shared" = yes && test "$GCC" = yes; then
16867    case $archive_cmds_F77 in
16868    *'~'*)
16869      # FIXME: we may have to deal with multi-command sequences.
16870      ;;
16871    '$CC '*)
16872      # Test whether the compiler implicitly links with -lc since on some
16873      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16874      # to ld, don't add -lc before -lgcc.
16875      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16876echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16877      $rm conftest*
16878      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16879
16880      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16881  (eval $ac_compile) 2>&5
16882  ac_status=$?
16883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884  (exit $ac_status); } 2>conftest.err; then
16885        soname=conftest
16886        lib=conftest
16887        libobjs=conftest.$ac_objext
16888        deplibs=
16889        wl=$lt_prog_compiler_wl_F77
16890	pic_flag=$lt_prog_compiler_pic_F77
16891        compiler_flags=-v
16892        linker_flags=-v
16893        verstring=
16894        output_objdir=.
16895        libname=conftest
16896        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16897        allow_undefined_flag_F77=
16898        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16899  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16900  ac_status=$?
16901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902  (exit $ac_status); }
16903        then
16904	  archive_cmds_need_lc_F77=no
16905        else
16906	  archive_cmds_need_lc_F77=yes
16907        fi
16908        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16909      else
16910        cat conftest.err 1>&5
16911      fi
16912      $rm conftest*
16913      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16914echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16915      ;;
16916    esac
16917  fi
16918  ;;
16919esac
16920
16921{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16922echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16923library_names_spec=
16924libname_spec='lib$name'
16925soname_spec=
16926shrext_cmds=".so"
16927postinstall_cmds=
16928postuninstall_cmds=
16929finish_cmds=
16930finish_eval=
16931shlibpath_var=
16932shlibpath_overrides_runpath=unknown
16933version_type=none
16934dynamic_linker="$host_os ld.so"
16935sys_lib_dlsearch_path_spec="/lib /usr/lib"
16936
16937need_lib_prefix=unknown
16938hardcode_into_libs=no
16939
16940# when you set need_version to no, make sure it does not cause -set_version
16941# flags to be left without arguments
16942need_version=unknown
16943
16944case $host_os in
16945aix3*)
16946  version_type=linux
16947  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16948  shlibpath_var=LIBPATH
16949
16950  # AIX 3 has no versioning support, so we append a major version to the name.
16951  soname_spec='${libname}${release}${shared_ext}$major'
16952  ;;
16953
16954aix4* | aix5*)
16955  version_type=linux
16956  need_lib_prefix=no
16957  need_version=no
16958  hardcode_into_libs=yes
16959  if test "$host_cpu" = ia64; then
16960    # AIX 5 supports IA64
16961    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16962    shlibpath_var=LD_LIBRARY_PATH
16963  else
16964    # With GCC up to 2.95.x, collect2 would create an import file
16965    # for dependence libraries.  The import file would start with
16966    # the line `#! .'.  This would cause the generated library to
16967    # depend on `.', always an invalid library.  This was fixed in
16968    # development snapshots of GCC prior to 3.0.
16969    case $host_os in
16970      aix4 | aix4.[01] | aix4.[01].*)
16971      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16972	   echo ' yes '
16973	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16974	:
16975      else
16976	can_build_shared=no
16977      fi
16978      ;;
16979    esac
16980    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16981    # soname into executable. Probably we can add versioning support to
16982    # collect2, so additional links can be useful in future.
16983    if test "$aix_use_runtimelinking" = yes; then
16984      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16985      # instead of lib<name>.a to let people know that these are not
16986      # typical AIX shared libraries.
16987      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16988    else
16989      # We preserve .a as extension for shared libraries through AIX4.2
16990      # and later when we are not doing run time linking.
16991      library_names_spec='${libname}${release}.a $libname.a'
16992      soname_spec='${libname}${release}${shared_ext}$major'
16993    fi
16994    shlibpath_var=LIBPATH
16995  fi
16996  ;;
16997
16998amigaos*)
16999  library_names_spec='$libname.ixlibrary $libname.a'
17000  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17001  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'
17002  ;;
17003
17004beos*)
17005  library_names_spec='${libname}${shared_ext}'
17006  dynamic_linker="$host_os ld.so"
17007  shlibpath_var=LIBRARY_PATH
17008  ;;
17009
17010bsdi[45]*)
17011  version_type=linux
17012  need_version=no
17013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17014  soname_spec='${libname}${release}${shared_ext}$major'
17015  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17016  shlibpath_var=LD_LIBRARY_PATH
17017  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17018  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17019  # the default ld.so.conf also contains /usr/contrib/lib and
17020  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17021  # libtool to hard-code these into programs
17022  ;;
17023
17024cygwin* | mingw* | pw32*)
17025  version_type=windows
17026  shrext_cmds=".dll"
17027  need_version=no
17028  need_lib_prefix=no
17029
17030  case $GCC,$host_os in
17031  yes,cygwin* | yes,mingw* | yes,pw32*)
17032    library_names_spec='$libname.dll.a'
17033    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17034    postinstall_cmds='base_file=`basename \${file}`~
17035      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17036      dldir=$destdir/`dirname \$dlpath`~
17037      test -d \$dldir || mkdir -p \$dldir~
17038      $install_prog $dir/$dlname \$dldir/$dlname~
17039      chmod a+x \$dldir/$dlname'
17040    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17041      dlpath=$dir/\$dldll~
17042       $rm \$dlpath'
17043    shlibpath_overrides_runpath=yes
17044
17045    case $host_os in
17046    cygwin*)
17047      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17048      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17049      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17050      ;;
17051    mingw*)
17052      # MinGW DLLs use traditional 'lib' prefix
17053      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17054      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17055      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17056        # It is most probably a Windows format PATH printed by
17057        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17058        # path with ; separators, and with drive letters. We can handle the
17059        # drive letters (cygwin fileutils understands them), so leave them,
17060        # especially as we might pass files found there to a mingw objdump,
17061        # which wouldn't understand a cygwinified path. Ahh.
17062        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17063      else
17064        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17065      fi
17066      ;;
17067    pw32*)
17068      # pw32 DLLs use 'pw' prefix rather than 'lib'
17069      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17070      ;;
17071    esac
17072    ;;
17073
17074  *)
17075    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17076    ;;
17077  esac
17078  dynamic_linker='Win32 ld.exe'
17079  # FIXME: first we should search . and the directory the executable is in
17080  shlibpath_var=PATH
17081  ;;
17082
17083darwin* | rhapsody*)
17084  dynamic_linker="$host_os dyld"
17085  version_type=darwin
17086  need_lib_prefix=no
17087  need_version=no
17088  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17089  soname_spec='${libname}${release}${major}$shared_ext'
17090  shlibpath_overrides_runpath=yes
17091  shlibpath_var=DYLD_LIBRARY_PATH
17092  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17093
17094  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17095  ;;
17096
17097dgux*)
17098  version_type=linux
17099  need_lib_prefix=no
17100  need_version=no
17101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17102  soname_spec='${libname}${release}${shared_ext}$major'
17103  shlibpath_var=LD_LIBRARY_PATH
17104  ;;
17105
17106freebsd1*)
17107  dynamic_linker=no
17108  ;;
17109
17110freebsd* | dragonfly*)
17111  # DragonFly does not have aout.  When/if they implement a new
17112  # versioning mechanism, adjust this.
17113  if test -x /usr/bin/objformat; then
17114    objformat=`/usr/bin/objformat`
17115  else
17116    case $host_os in
17117    freebsd[123]*) objformat=aout ;;
17118    *) objformat=elf ;;
17119    esac
17120  fi
17121  version_type=freebsd-$objformat
17122  case $version_type in
17123    freebsd-elf*)
17124      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17125      need_version=no
17126      need_lib_prefix=no
17127      ;;
17128    freebsd-*)
17129      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17130      need_version=yes
17131      ;;
17132  esac
17133  shlibpath_var=LD_LIBRARY_PATH
17134  case $host_os in
17135  freebsd2*)
17136    shlibpath_overrides_runpath=yes
17137    ;;
17138  freebsd3.[01]* | freebsdelf3.[01]*)
17139    shlibpath_overrides_runpath=yes
17140    hardcode_into_libs=yes
17141    ;;
17142  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17143  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17144    shlibpath_overrides_runpath=no
17145    hardcode_into_libs=yes
17146    ;;
17147  *) # from 4.6 on, and DragonFly
17148    shlibpath_overrides_runpath=yes
17149    hardcode_into_libs=yes
17150    ;;
17151  esac
17152  ;;
17153
17154gnu*)
17155  version_type=linux
17156  need_lib_prefix=no
17157  need_version=no
17158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17159  soname_spec='${libname}${release}${shared_ext}$major'
17160  shlibpath_var=LD_LIBRARY_PATH
17161  hardcode_into_libs=yes
17162  ;;
17163
17164hpux9* | hpux10* | hpux11*)
17165  # Give a soname corresponding to the major version so that dld.sl refuses to
17166  # link against other versions.
17167  version_type=sunos
17168  need_lib_prefix=no
17169  need_version=no
17170  case $host_cpu in
17171  ia64*)
17172    shrext_cmds='.so'
17173    hardcode_into_libs=yes
17174    dynamic_linker="$host_os dld.so"
17175    shlibpath_var=LD_LIBRARY_PATH
17176    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17177    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17178    soname_spec='${libname}${release}${shared_ext}$major'
17179    if test "X$HPUX_IA64_MODE" = X32; then
17180      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17181    else
17182      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17183    fi
17184    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17185    ;;
17186   hppa*64*)
17187     shrext_cmds='.sl'
17188     hardcode_into_libs=yes
17189     dynamic_linker="$host_os dld.sl"
17190     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17191     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17192     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17193     soname_spec='${libname}${release}${shared_ext}$major'
17194     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17195     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17196     ;;
17197   *)
17198    shrext_cmds='.sl'
17199    dynamic_linker="$host_os dld.sl"
17200    shlibpath_var=SHLIB_PATH
17201    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17202    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17203    soname_spec='${libname}${release}${shared_ext}$major'
17204    ;;
17205  esac
17206  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17207  postinstall_cmds='chmod 555 $lib'
17208  ;;
17209
17210interix[3-9]*)
17211  version_type=linux
17212  need_lib_prefix=no
17213  need_version=no
17214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17215  soname_spec='${libname}${release}${shared_ext}$major'
17216  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17217  shlibpath_var=LD_LIBRARY_PATH
17218  shlibpath_overrides_runpath=no
17219  hardcode_into_libs=yes
17220  ;;
17221
17222irix5* | irix6* | nonstopux*)
17223  case $host_os in
17224    nonstopux*) version_type=nonstopux ;;
17225    *)
17226	if test "$lt_cv_prog_gnu_ld" = yes; then
17227		version_type=linux
17228	else
17229		version_type=irix
17230	fi ;;
17231  esac
17232  need_lib_prefix=no
17233  need_version=no
17234  soname_spec='${libname}${release}${shared_ext}$major'
17235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17236  case $host_os in
17237  irix5* | nonstopux*)
17238    libsuff= shlibsuff=
17239    ;;
17240  *)
17241    case $LD in # libtool.m4 will add one of these switches to LD
17242    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17243      libsuff= shlibsuff= libmagic=32-bit;;
17244    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17245      libsuff=32 shlibsuff=N32 libmagic=N32;;
17246    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17247      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17248    *) libsuff= shlibsuff= libmagic=never-match;;
17249    esac
17250    ;;
17251  esac
17252  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17253  shlibpath_overrides_runpath=no
17254  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17255  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17256  hardcode_into_libs=yes
17257  ;;
17258
17259# No shared lib support for Linux oldld, aout, or coff.
17260linux*oldld* | linux*aout* | linux*coff*)
17261  dynamic_linker=no
17262  ;;
17263
17264# This must be Linux ELF.
17265linux* | k*bsd*-gnu)
17266  version_type=linux
17267  need_lib_prefix=no
17268  need_version=no
17269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270  soname_spec='${libname}${release}${shared_ext}$major'
17271  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17272  shlibpath_var=LD_LIBRARY_PATH
17273  shlibpath_overrides_runpath=no
17274  # This implies no fast_install, which is unacceptable.
17275  # Some rework will be needed to allow for fast_install
17276  # before this can be enabled.
17277  hardcode_into_libs=yes
17278
17279  # Append ld.so.conf contents to the search path
17280  if test -f /etc/ld.so.conf; then
17281    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' ' '`
17282    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17283  fi
17284
17285  # We used to test for /lib/ld.so.1 and disable shared libraries on
17286  # powerpc, because MkLinux only supported shared libraries with the
17287  # GNU dynamic linker.  Since this was broken with cross compilers,
17288  # most powerpc-linux boxes support dynamic linking these days and
17289  # people can always --disable-shared, the test was removed, and we
17290  # assume the GNU/Linux dynamic linker is in use.
17291  dynamic_linker='GNU/Linux ld.so'
17292  ;;
17293
17294netbsdelf*-gnu)
17295  version_type=linux
17296  need_lib_prefix=no
17297  need_version=no
17298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17299  soname_spec='${libname}${release}${shared_ext}$major'
17300  shlibpath_var=LD_LIBRARY_PATH
17301  shlibpath_overrides_runpath=no
17302  hardcode_into_libs=yes
17303  dynamic_linker='NetBSD ld.elf_so'
17304  ;;
17305
17306netbsd*)
17307  version_type=sunos
17308  need_lib_prefix=no
17309  need_version=no
17310  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17311    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17312    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17313    dynamic_linker='NetBSD (a.out) ld.so'
17314  else
17315    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17316    soname_spec='${libname}${release}${shared_ext}$major'
17317    dynamic_linker='NetBSD ld.elf_so'
17318  fi
17319  shlibpath_var=LD_LIBRARY_PATH
17320  shlibpath_overrides_runpath=yes
17321  hardcode_into_libs=yes
17322  ;;
17323
17324newsos6)
17325  version_type=linux
17326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17327  shlibpath_var=LD_LIBRARY_PATH
17328  shlibpath_overrides_runpath=yes
17329  ;;
17330
17331nto-qnx*)
17332  version_type=linux
17333  need_lib_prefix=no
17334  need_version=no
17335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17336  soname_spec='${libname}${release}${shared_ext}$major'
17337  shlibpath_var=LD_LIBRARY_PATH
17338  shlibpath_overrides_runpath=yes
17339  ;;
17340
17341openbsd*)
17342  version_type=sunos
17343  sys_lib_dlsearch_path_spec="/usr/lib"
17344  need_lib_prefix=no
17345  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17346  case $host_os in
17347    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17348    *)                         need_version=no  ;;
17349  esac
17350  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17351  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17352  shlibpath_var=LD_LIBRARY_PATH
17353  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17354    case $host_os in
17355      openbsd2.[89] | openbsd2.[89].*)
17356	shlibpath_overrides_runpath=no
17357	;;
17358      *)
17359	shlibpath_overrides_runpath=yes
17360	;;
17361      esac
17362  else
17363    shlibpath_overrides_runpath=yes
17364  fi
17365  ;;
17366
17367os2*)
17368  libname_spec='$name'
17369  shrext_cmds=".dll"
17370  need_lib_prefix=no
17371  library_names_spec='$libname${shared_ext} $libname.a'
17372  dynamic_linker='OS/2 ld.exe'
17373  shlibpath_var=LIBPATH
17374  ;;
17375
17376osf3* | osf4* | osf5*)
17377  version_type=osf
17378  need_lib_prefix=no
17379  need_version=no
17380  soname_spec='${libname}${release}${shared_ext}$major'
17381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17382  shlibpath_var=LD_LIBRARY_PATH
17383  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17384  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17385  ;;
17386
17387rdos*)
17388  dynamic_linker=no
17389  ;;
17390
17391solaris*)
17392  version_type=linux
17393  need_lib_prefix=no
17394  need_version=no
17395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17396  soname_spec='${libname}${release}${shared_ext}$major'
17397  shlibpath_var=LD_LIBRARY_PATH
17398  shlibpath_overrides_runpath=yes
17399  hardcode_into_libs=yes
17400  # ldd complains unless libraries are executable
17401  postinstall_cmds='chmod +x $lib'
17402  ;;
17403
17404sunos4*)
17405  version_type=sunos
17406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17407  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17408  shlibpath_var=LD_LIBRARY_PATH
17409  shlibpath_overrides_runpath=yes
17410  if test "$with_gnu_ld" = yes; then
17411    need_lib_prefix=no
17412  fi
17413  need_version=yes
17414  ;;
17415
17416sysv4 | sysv4.3*)
17417  version_type=linux
17418  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17419  soname_spec='${libname}${release}${shared_ext}$major'
17420  shlibpath_var=LD_LIBRARY_PATH
17421  case $host_vendor in
17422    sni)
17423      shlibpath_overrides_runpath=no
17424      need_lib_prefix=no
17425      export_dynamic_flag_spec='${wl}-Blargedynsym'
17426      runpath_var=LD_RUN_PATH
17427      ;;
17428    siemens)
17429      need_lib_prefix=no
17430      ;;
17431    motorola)
17432      need_lib_prefix=no
17433      need_version=no
17434      shlibpath_overrides_runpath=no
17435      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17436      ;;
17437  esac
17438  ;;
17439
17440sysv4*MP*)
17441  if test -d /usr/nec ;then
17442    version_type=linux
17443    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17444    soname_spec='$libname${shared_ext}.$major'
17445    shlibpath_var=LD_LIBRARY_PATH
17446  fi
17447  ;;
17448
17449sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17450  version_type=freebsd-elf
17451  need_lib_prefix=no
17452  need_version=no
17453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17454  soname_spec='${libname}${release}${shared_ext}$major'
17455  shlibpath_var=LD_LIBRARY_PATH
17456  hardcode_into_libs=yes
17457  if test "$with_gnu_ld" = yes; then
17458    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17459    shlibpath_overrides_runpath=no
17460  else
17461    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17462    shlibpath_overrides_runpath=yes
17463    case $host_os in
17464      sco3.2v5*)
17465        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17466	;;
17467    esac
17468  fi
17469  sys_lib_dlsearch_path_spec='/usr/lib'
17470  ;;
17471
17472uts4*)
17473  version_type=linux
17474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17475  soname_spec='${libname}${release}${shared_ext}$major'
17476  shlibpath_var=LD_LIBRARY_PATH
17477  ;;
17478
17479*)
17480  dynamic_linker=no
17481  ;;
17482esac
17483{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17484echo "${ECHO_T}$dynamic_linker" >&6; }
17485test "$dynamic_linker" = no && can_build_shared=no
17486
17487variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17488if test "$GCC" = yes; then
17489  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17490fi
17491
17492{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17493echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17494hardcode_action_F77=
17495if test -n "$hardcode_libdir_flag_spec_F77" || \
17496   test -n "$runpath_var_F77" || \
17497   test "X$hardcode_automatic_F77" = "Xyes" ; then
17498
17499  # We can hardcode non-existant directories.
17500  if test "$hardcode_direct_F77" != no &&
17501     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17502     # have to relink, otherwise we might link with an installed library
17503     # when we should be linking with a yet-to-be-installed one
17504     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17505     test "$hardcode_minus_L_F77" != no; then
17506    # Linking always hardcodes the temporary library directory.
17507    hardcode_action_F77=relink
17508  else
17509    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17510    hardcode_action_F77=immediate
17511  fi
17512else
17513  # We cannot hardcode anything, or else we can only hardcode existing
17514  # directories.
17515  hardcode_action_F77=unsupported
17516fi
17517{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17518echo "${ECHO_T}$hardcode_action_F77" >&6; }
17519
17520if test "$hardcode_action_F77" = relink; then
17521  # Fast installation is not supported
17522  enable_fast_install=no
17523elif test "$shlibpath_overrides_runpath" = yes ||
17524     test "$enable_shared" = no; then
17525  # Fast installation is not necessary
17526  enable_fast_install=needless
17527fi
17528
17529
17530# The else clause should only fire when bootstrapping the
17531# libtool distribution, otherwise you forgot to ship ltmain.sh
17532# with your package, and you will get complaints that there are
17533# no rules to generate ltmain.sh.
17534if test -f "$ltmain"; then
17535  # See if we are running on zsh, and set the options which allow our commands through
17536  # without removal of \ escapes.
17537  if test -n "${ZSH_VERSION+set}" ; then
17538    setopt NO_GLOB_SUBST
17539  fi
17540  # Now quote all the things that may contain metacharacters while being
17541  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17542  # variables and quote the copies for generation of the libtool script.
17543  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17544    SED SHELL STRIP \
17545    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17546    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17547    deplibs_check_method reload_flag reload_cmds need_locks \
17548    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17549    lt_cv_sys_global_symbol_to_c_name_address \
17550    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17551    old_postinstall_cmds old_postuninstall_cmds \
17552    compiler_F77 \
17553    CC_F77 \
17554    LD_F77 \
17555    lt_prog_compiler_wl_F77 \
17556    lt_prog_compiler_pic_F77 \
17557    lt_prog_compiler_static_F77 \
17558    lt_prog_compiler_no_builtin_flag_F77 \
17559    export_dynamic_flag_spec_F77 \
17560    thread_safe_flag_spec_F77 \
17561    whole_archive_flag_spec_F77 \
17562    enable_shared_with_static_runtimes_F77 \
17563    old_archive_cmds_F77 \
17564    old_archive_from_new_cmds_F77 \
17565    predep_objects_F77 \
17566    postdep_objects_F77 \
17567    predeps_F77 \
17568    postdeps_F77 \
17569    compiler_lib_search_path_F77 \
17570    archive_cmds_F77 \
17571    archive_expsym_cmds_F77 \
17572    postinstall_cmds_F77 \
17573    postuninstall_cmds_F77 \
17574    old_archive_from_expsyms_cmds_F77 \
17575    allow_undefined_flag_F77 \
17576    no_undefined_flag_F77 \
17577    export_symbols_cmds_F77 \
17578    hardcode_libdir_flag_spec_F77 \
17579    hardcode_libdir_flag_spec_ld_F77 \
17580    hardcode_libdir_separator_F77 \
17581    hardcode_automatic_F77 \
17582    module_cmds_F77 \
17583    module_expsym_cmds_F77 \
17584    lt_cv_prog_compiler_c_o_F77 \
17585    fix_srcfile_path_F77 \
17586    exclude_expsyms_F77 \
17587    include_expsyms_F77; do
17588
17589    case $var in
17590    old_archive_cmds_F77 | \
17591    old_archive_from_new_cmds_F77 | \
17592    archive_cmds_F77 | \
17593    archive_expsym_cmds_F77 | \
17594    module_cmds_F77 | \
17595    module_expsym_cmds_F77 | \
17596    old_archive_from_expsyms_cmds_F77 | \
17597    export_symbols_cmds_F77 | \
17598    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17599    postinstall_cmds | postuninstall_cmds | \
17600    old_postinstall_cmds | old_postuninstall_cmds | \
17601    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17602      # Double-quote double-evaled strings.
17603      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17604      ;;
17605    *)
17606      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17607      ;;
17608    esac
17609  done
17610
17611  case $lt_echo in
17612  *'\$0 --fallback-echo"')
17613    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17614    ;;
17615  esac
17616
17617cfgfile="$ofile"
17618
17619  cat <<__EOF__ >> "$cfgfile"
17620# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17621
17622# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17623
17624# Shell to use when invoking shell scripts.
17625SHELL=$lt_SHELL
17626
17627# Whether or not to build shared libraries.
17628build_libtool_libs=$enable_shared
17629
17630# Whether or not to build static libraries.
17631build_old_libs=$enable_static
17632
17633# Whether or not to add -lc for building shared libraries.
17634build_libtool_need_lc=$archive_cmds_need_lc_F77
17635
17636# Whether or not to disallow shared libs when runtime libs are static
17637allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17638
17639# Whether or not to optimize for fast installation.
17640fast_install=$enable_fast_install
17641
17642# The host system.
17643host_alias=$host_alias
17644host=$host
17645host_os=$host_os
17646
17647# The build system.
17648build_alias=$build_alias
17649build=$build
17650build_os=$build_os
17651
17652# An echo program that does not interpret backslashes.
17653echo=$lt_echo
17654
17655# The archiver.
17656AR=$lt_AR
17657AR_FLAGS=$lt_AR_FLAGS
17658
17659# A C compiler.
17660LTCC=$lt_LTCC
17661
17662# LTCC compiler flags.
17663LTCFLAGS=$lt_LTCFLAGS
17664
17665# A language-specific compiler.
17666CC=$lt_compiler_F77
17667
17668# Is the compiler the GNU C compiler?
17669with_gcc=$GCC_F77
17670
17671# An ERE matcher.
17672EGREP=$lt_EGREP
17673
17674# The linker used to build libraries.
17675LD=$lt_LD_F77
17676
17677# Whether we need hard or soft links.
17678LN_S=$lt_LN_S
17679
17680# A BSD-compatible nm program.
17681NM=$lt_NM
17682
17683# A symbol stripping program
17684STRIP=$lt_STRIP
17685
17686# Used to examine libraries when file_magic_cmd begins "file"
17687MAGIC_CMD=$MAGIC_CMD
17688
17689# Used on cygwin: DLL creation program.
17690DLLTOOL="$DLLTOOL"
17691
17692# Used on cygwin: object dumper.
17693OBJDUMP="$OBJDUMP"
17694
17695# Used on cygwin: assembler.
17696AS="$AS"
17697
17698# The name of the directory that contains temporary libtool files.
17699objdir=$objdir
17700
17701# How to create reloadable object files.
17702reload_flag=$lt_reload_flag
17703reload_cmds=$lt_reload_cmds
17704
17705# How to pass a linker flag through the compiler.
17706wl=$lt_lt_prog_compiler_wl_F77
17707
17708# Object file suffix (normally "o").
17709objext="$ac_objext"
17710
17711# Old archive suffix (normally "a").
17712libext="$libext"
17713
17714# Shared library suffix (normally ".so").
17715shrext_cmds='$shrext_cmds'
17716
17717# Executable file suffix (normally "").
17718exeext="$exeext"
17719
17720# Additional compiler flags for building library objects.
17721pic_flag=$lt_lt_prog_compiler_pic_F77
17722pic_mode=$pic_mode
17723
17724# What is the maximum length of a command?
17725max_cmd_len=$lt_cv_sys_max_cmd_len
17726
17727# Does compiler simultaneously support -c and -o options?
17728compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17729
17730# Must we lock files when doing compilation?
17731need_locks=$lt_need_locks
17732
17733# Do we need the lib prefix for modules?
17734need_lib_prefix=$need_lib_prefix
17735
17736# Do we need a version for libraries?
17737need_version=$need_version
17738
17739# Whether dlopen is supported.
17740dlopen_support=$enable_dlopen
17741
17742# Whether dlopen of programs is supported.
17743dlopen_self=$enable_dlopen_self
17744
17745# Whether dlopen of statically linked programs is supported.
17746dlopen_self_static=$enable_dlopen_self_static
17747
17748# Compiler flag to prevent dynamic linking.
17749link_static_flag=$lt_lt_prog_compiler_static_F77
17750
17751# Compiler flag to turn off builtin functions.
17752no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17753
17754# Compiler flag to allow reflexive dlopens.
17755export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17756
17757# Compiler flag to generate shared objects directly from archives.
17758whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17759
17760# Compiler flag to generate thread-safe objects.
17761thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17762
17763# Library versioning type.
17764version_type=$version_type
17765
17766# Format of library name prefix.
17767libname_spec=$lt_libname_spec
17768
17769# List of archive names.  First name is the real one, the rest are links.
17770# The last name is the one that the linker finds with -lNAME.
17771library_names_spec=$lt_library_names_spec
17772
17773# The coded name of the library, if different from the real name.
17774soname_spec=$lt_soname_spec
17775
17776# Commands used to build and install an old-style archive.
17777RANLIB=$lt_RANLIB
17778old_archive_cmds=$lt_old_archive_cmds_F77
17779old_postinstall_cmds=$lt_old_postinstall_cmds
17780old_postuninstall_cmds=$lt_old_postuninstall_cmds
17781
17782# Create an old-style archive from a shared archive.
17783old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17784
17785# Create a temporary old-style archive to link instead of a shared archive.
17786old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17787
17788# Commands used to build and install a shared archive.
17789archive_cmds=$lt_archive_cmds_F77
17790archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17791postinstall_cmds=$lt_postinstall_cmds
17792postuninstall_cmds=$lt_postuninstall_cmds
17793
17794# Commands used to build a loadable module (assumed same as above if empty)
17795module_cmds=$lt_module_cmds_F77
17796module_expsym_cmds=$lt_module_expsym_cmds_F77
17797
17798# Commands to strip libraries.
17799old_striplib=$lt_old_striplib
17800striplib=$lt_striplib
17801
17802# Dependencies to place before the objects being linked to create a
17803# shared library.
17804predep_objects=$lt_predep_objects_F77
17805
17806# Dependencies to place after the objects being linked to create a
17807# shared library.
17808postdep_objects=$lt_postdep_objects_F77
17809
17810# Dependencies to place before the objects being linked to create a
17811# shared library.
17812predeps=$lt_predeps_F77
17813
17814# Dependencies to place after the objects being linked to create a
17815# shared library.
17816postdeps=$lt_postdeps_F77
17817
17818# The library search path used internally by the compiler when linking
17819# a shared library.
17820compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17821
17822# Method to check whether dependent libraries are shared objects.
17823deplibs_check_method=$lt_deplibs_check_method
17824
17825# Command to use when deplibs_check_method == file_magic.
17826file_magic_cmd=$lt_file_magic_cmd
17827
17828# Flag that allows shared libraries with undefined symbols to be built.
17829allow_undefined_flag=$lt_allow_undefined_flag_F77
17830
17831# Flag that forces no undefined symbols.
17832no_undefined_flag=$lt_no_undefined_flag_F77
17833
17834# Commands used to finish a libtool library installation in a directory.
17835finish_cmds=$lt_finish_cmds
17836
17837# Same as above, but a single script fragment to be evaled but not shown.
17838finish_eval=$lt_finish_eval
17839
17840# Take the output of nm and produce a listing of raw symbols and C names.
17841global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17842
17843# Transform the output of nm in a proper C declaration
17844global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17845
17846# Transform the output of nm in a C name address pair
17847global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17848
17849# This is the shared library runtime path variable.
17850runpath_var=$runpath_var
17851
17852# This is the shared library path variable.
17853shlibpath_var=$shlibpath_var
17854
17855# Is shlibpath searched before the hard-coded library search path?
17856shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17857
17858# How to hardcode a shared library path into an executable.
17859hardcode_action=$hardcode_action_F77
17860
17861# Whether we should hardcode library paths into libraries.
17862hardcode_into_libs=$hardcode_into_libs
17863
17864# Flag to hardcode \$libdir into a binary during linking.
17865# This must work even if \$libdir does not exist.
17866hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17867
17868# If ld is used when linking, flag to hardcode \$libdir into
17869# a binary during linking. This must work even if \$libdir does
17870# not exist.
17871hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17872
17873# Whether we need a single -rpath flag with a separated argument.
17874hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17875
17876# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17877# resulting binary.
17878hardcode_direct=$hardcode_direct_F77
17879
17880# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17881# resulting binary.
17882hardcode_minus_L=$hardcode_minus_L_F77
17883
17884# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17885# the resulting binary.
17886hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17887
17888# Set to yes if building a shared library automatically hardcodes DIR into the library
17889# and all subsequent libraries and executables linked against it.
17890hardcode_automatic=$hardcode_automatic_F77
17891
17892# Variables whose values should be saved in libtool wrapper scripts and
17893# restored at relink time.
17894variables_saved_for_relink="$variables_saved_for_relink"
17895
17896# Whether libtool must link a program against all its dependency libraries.
17897link_all_deplibs=$link_all_deplibs_F77
17898
17899# Compile-time system search path for libraries
17900sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17901
17902# Run-time system search path for libraries
17903sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17904
17905# Fix the shell variable \$srcfile for the compiler.
17906fix_srcfile_path=$lt_fix_srcfile_path
17907
17908# Set to yes if exported symbols are required.
17909always_export_symbols=$always_export_symbols_F77
17910
17911# The commands to list exported symbols.
17912export_symbols_cmds=$lt_export_symbols_cmds_F77
17913
17914# The commands to extract the exported symbol list from a shared archive.
17915extract_expsyms_cmds=$lt_extract_expsyms_cmds
17916
17917# Symbols that should not be listed in the preloaded symbols.
17918exclude_expsyms=$lt_exclude_expsyms_F77
17919
17920# Symbols that must always be exported.
17921include_expsyms=$lt_include_expsyms_F77
17922
17923# ### END LIBTOOL TAG CONFIG: $tagname
17924
17925__EOF__
17926
17927
17928else
17929  # If there is no Makefile yet, we rely on a make rule to execute
17930  # `config.status --recheck' to rerun these tests and create the
17931  # libtool script then.
17932  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17933  if test -f "$ltmain_in"; then
17934    test -f Makefile && make "$ltmain"
17935  fi
17936fi
17937
17938
17939ac_ext=c
17940ac_cpp='$CPP $CPPFLAGS'
17941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17943ac_compiler_gnu=$ac_cv_c_compiler_gnu
17944
17945CC="$lt_save_CC"
17946
17947	else
17948	  tagname=""
17949	fi
17950	;;
17951
17952      GCJ)
17953	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17954
17955
17956# Source file extension for Java test sources.
17957ac_ext=java
17958
17959# Object file extension for compiled Java test sources.
17960objext=o
17961objext_GCJ=$objext
17962
17963# Code to be used in simple compile tests
17964lt_simple_compile_test_code="class foo {}"
17965
17966# Code to be used in simple link tests
17967lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17968
17969# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17970
17971# If no C compiler was specified, use CC.
17972LTCC=${LTCC-"$CC"}
17973
17974# If no C compiler flags were specified, use CFLAGS.
17975LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17976
17977# Allow CC to be a program name with arguments.
17978compiler=$CC
17979
17980
17981# save warnings/boilerplate of simple test code
17982ac_outfile=conftest.$ac_objext
17983echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17984eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17985_lt_compiler_boilerplate=`cat conftest.err`
17986$rm conftest*
17987
17988ac_outfile=conftest.$ac_objext
17989echo "$lt_simple_link_test_code" >conftest.$ac_ext
17990eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17991_lt_linker_boilerplate=`cat conftest.err`
17992$rm conftest*
17993
17994
17995# Allow CC to be a program name with arguments.
17996lt_save_CC="$CC"
17997CC=${GCJ-"gcj"}
17998compiler=$CC
17999compiler_GCJ=$CC
18000for cc_temp in $compiler""; do
18001  case $cc_temp in
18002    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18003    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18004    \-*) ;;
18005    *) break;;
18006  esac
18007done
18008cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18009
18010
18011# GCJ did not exist at the time GCC didn't implicitly link libc in.
18012archive_cmds_need_lc_GCJ=no
18013
18014old_archive_cmds_GCJ=$old_archive_cmds
18015
18016
18017lt_prog_compiler_no_builtin_flag_GCJ=
18018
18019if test "$GCC" = yes; then
18020  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18021
18022
18023{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18024echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18025if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18026  echo $ECHO_N "(cached) $ECHO_C" >&6
18027else
18028  lt_cv_prog_compiler_rtti_exceptions=no
18029  ac_outfile=conftest.$ac_objext
18030   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18031   lt_compiler_flag="-fno-rtti -fno-exceptions"
18032   # Insert the option either (1) after the last *FLAGS variable, or
18033   # (2) before a word containing "conftest.", or (3) at the end.
18034   # Note that $ac_compile itself does not contain backslashes and begins
18035   # with a dollar sign (not a hyphen), so the echo should work correctly.
18036   # The option is referenced via a variable to avoid confusing sed.
18037   lt_compile=`echo "$ac_compile" | $SED \
18038   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18039   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18040   -e 's:$: $lt_compiler_flag:'`
18041   (eval echo "\"\$as_me:18041: $lt_compile\"" >&5)
18042   (eval "$lt_compile" 2>conftest.err)
18043   ac_status=$?
18044   cat conftest.err >&5
18045   echo "$as_me:18045: \$? = $ac_status" >&5
18046   if (exit $ac_status) && test -s "$ac_outfile"; then
18047     # The compiler can only warn and ignore the option if not recognized
18048     # So say no if there are warnings other than the usual output.
18049     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18050     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18051     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18052       lt_cv_prog_compiler_rtti_exceptions=yes
18053     fi
18054   fi
18055   $rm conftest*
18056
18057fi
18058{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18059echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18060
18061if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18062    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18063else
18064    :
18065fi
18066
18067fi
18068
18069lt_prog_compiler_wl_GCJ=
18070lt_prog_compiler_pic_GCJ=
18071lt_prog_compiler_static_GCJ=
18072
18073{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18074echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18075
18076  if test "$GCC" = yes; then
18077    lt_prog_compiler_wl_GCJ='-Wl,'
18078    lt_prog_compiler_static_GCJ='-static'
18079
18080    case $host_os in
18081      aix*)
18082      # All AIX code is PIC.
18083      if test "$host_cpu" = ia64; then
18084	# AIX 5 now supports IA64 processor
18085	lt_prog_compiler_static_GCJ='-Bstatic'
18086      fi
18087      ;;
18088
18089    amigaos*)
18090      # FIXME: we need at least 68020 code to build shared libraries, but
18091      # adding the `-m68020' flag to GCC prevents building anything better,
18092      # like `-m68040'.
18093      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18094      ;;
18095
18096    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18097      # PIC is the default for these OSes.
18098      ;;
18099
18100    mingw* | cygwin* | pw32* | os2*)
18101      # This hack is so that the source file can tell whether it is being
18102      # built for inclusion in a dll (and should export symbols for example).
18103      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18104      # (--disable-auto-import) libraries
18105      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18106      ;;
18107
18108    darwin* | rhapsody*)
18109      # PIC is the default on this platform
18110      # Common symbols not allowed in MH_DYLIB files
18111      lt_prog_compiler_pic_GCJ='-fno-common'
18112      ;;
18113
18114    interix[3-9]*)
18115      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18116      # Instead, we relocate shared libraries at runtime.
18117      ;;
18118
18119    msdosdjgpp*)
18120      # Just because we use GCC doesn't mean we suddenly get shared libraries
18121      # on systems that don't support them.
18122      lt_prog_compiler_can_build_shared_GCJ=no
18123      enable_shared=no
18124      ;;
18125
18126    sysv4*MP*)
18127      if test -d /usr/nec; then
18128	lt_prog_compiler_pic_GCJ=-Kconform_pic
18129      fi
18130      ;;
18131
18132    hpux*)
18133      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18134      # not for PA HP-UX.
18135      case $host_cpu in
18136      hppa*64*|ia64*)
18137	# +Z the default
18138	;;
18139      *)
18140	lt_prog_compiler_pic_GCJ='-fPIC'
18141	;;
18142      esac
18143      ;;
18144
18145    *)
18146      lt_prog_compiler_pic_GCJ='-fPIC'
18147      ;;
18148    esac
18149  else
18150    # PORTME Check for flag to pass linker flags through the system compiler.
18151    case $host_os in
18152    aix*)
18153      lt_prog_compiler_wl_GCJ='-Wl,'
18154      if test "$host_cpu" = ia64; then
18155	# AIX 5 now supports IA64 processor
18156	lt_prog_compiler_static_GCJ='-Bstatic'
18157      else
18158	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18159      fi
18160      ;;
18161      darwin*)
18162        # PIC is the default on this platform
18163        # Common symbols not allowed in MH_DYLIB files
18164       case $cc_basename in
18165         xlc*)
18166         lt_prog_compiler_pic_GCJ='-qnocommon'
18167         lt_prog_compiler_wl_GCJ='-Wl,'
18168         ;;
18169       esac
18170       ;;
18171
18172    mingw* | cygwin* | pw32* | os2*)
18173      # This hack is so that the source file can tell whether it is being
18174      # built for inclusion in a dll (and should export symbols for example).
18175      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18176      ;;
18177
18178    hpux9* | hpux10* | hpux11*)
18179      lt_prog_compiler_wl_GCJ='-Wl,'
18180      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18181      # not for PA HP-UX.
18182      case $host_cpu in
18183      hppa*64*|ia64*)
18184	# +Z the default
18185	;;
18186      *)
18187	lt_prog_compiler_pic_GCJ='+Z'
18188	;;
18189      esac
18190      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18191      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18192      ;;
18193
18194    irix5* | irix6* | nonstopux*)
18195      lt_prog_compiler_wl_GCJ='-Wl,'
18196      # PIC (with -KPIC) is the default.
18197      lt_prog_compiler_static_GCJ='-non_shared'
18198      ;;
18199
18200    newsos6)
18201      lt_prog_compiler_pic_GCJ='-KPIC'
18202      lt_prog_compiler_static_GCJ='-Bstatic'
18203      ;;
18204
18205    linux* | k*bsd*-gnu)
18206      case $cc_basename in
18207      icc* | ecc*)
18208	lt_prog_compiler_wl_GCJ='-Wl,'
18209	lt_prog_compiler_pic_GCJ='-KPIC'
18210	lt_prog_compiler_static_GCJ='-static'
18211        ;;
18212      pgcc* | pgf77* | pgf90* | pgf95*)
18213        # Portland Group compilers (*not* the Pentium gcc compiler,
18214	# which looks to be a dead project)
18215	lt_prog_compiler_wl_GCJ='-Wl,'
18216	lt_prog_compiler_pic_GCJ='-fpic'
18217	lt_prog_compiler_static_GCJ='-Bstatic'
18218        ;;
18219      ccc*)
18220        lt_prog_compiler_wl_GCJ='-Wl,'
18221        # All Alpha code is PIC.
18222        lt_prog_compiler_static_GCJ='-non_shared'
18223        ;;
18224      *)
18225        case `$CC -V 2>&1 | sed 5q` in
18226	*Sun\ C*)
18227	  # Sun C 5.9
18228	  lt_prog_compiler_pic_GCJ='-KPIC'
18229	  lt_prog_compiler_static_GCJ='-Bstatic'
18230	  lt_prog_compiler_wl_GCJ='-Wl,'
18231	  ;;
18232	*Sun\ F*)
18233	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
18234	  lt_prog_compiler_pic_GCJ='-KPIC'
18235	  lt_prog_compiler_static_GCJ='-Bstatic'
18236	  lt_prog_compiler_wl_GCJ=''
18237	  ;;
18238	esac
18239	;;
18240      esac
18241      ;;
18242
18243    osf3* | osf4* | osf5*)
18244      lt_prog_compiler_wl_GCJ='-Wl,'
18245      # All OSF/1 code is PIC.
18246      lt_prog_compiler_static_GCJ='-non_shared'
18247      ;;
18248
18249    rdos*)
18250      lt_prog_compiler_static_GCJ='-non_shared'
18251      ;;
18252
18253    solaris*)
18254      lt_prog_compiler_pic_GCJ='-KPIC'
18255      lt_prog_compiler_static_GCJ='-Bstatic'
18256      case $cc_basename in
18257      f77* | f90* | f95*)
18258	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18259      *)
18260	lt_prog_compiler_wl_GCJ='-Wl,';;
18261      esac
18262      ;;
18263
18264    sunos4*)
18265      lt_prog_compiler_wl_GCJ='-Qoption ld '
18266      lt_prog_compiler_pic_GCJ='-PIC'
18267      lt_prog_compiler_static_GCJ='-Bstatic'
18268      ;;
18269
18270    sysv4 | sysv4.2uw2* | sysv4.3*)
18271      lt_prog_compiler_wl_GCJ='-Wl,'
18272      lt_prog_compiler_pic_GCJ='-KPIC'
18273      lt_prog_compiler_static_GCJ='-Bstatic'
18274      ;;
18275
18276    sysv4*MP*)
18277      if test -d /usr/nec ;then
18278	lt_prog_compiler_pic_GCJ='-Kconform_pic'
18279	lt_prog_compiler_static_GCJ='-Bstatic'
18280      fi
18281      ;;
18282
18283    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18284      lt_prog_compiler_wl_GCJ='-Wl,'
18285      lt_prog_compiler_pic_GCJ='-KPIC'
18286      lt_prog_compiler_static_GCJ='-Bstatic'
18287      ;;
18288
18289    unicos*)
18290      lt_prog_compiler_wl_GCJ='-Wl,'
18291      lt_prog_compiler_can_build_shared_GCJ=no
18292      ;;
18293
18294    uts4*)
18295      lt_prog_compiler_pic_GCJ='-pic'
18296      lt_prog_compiler_static_GCJ='-Bstatic'
18297      ;;
18298
18299    *)
18300      lt_prog_compiler_can_build_shared_GCJ=no
18301      ;;
18302    esac
18303  fi
18304
18305{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18306echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18307
18308#
18309# Check to make sure the PIC flag actually works.
18310#
18311if test -n "$lt_prog_compiler_pic_GCJ"; then
18312
18313{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18314echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18315if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18316  echo $ECHO_N "(cached) $ECHO_C" >&6
18317else
18318  lt_prog_compiler_pic_works_GCJ=no
18319  ac_outfile=conftest.$ac_objext
18320   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18321   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18322   # Insert the option either (1) after the last *FLAGS variable, or
18323   # (2) before a word containing "conftest.", or (3) at the end.
18324   # Note that $ac_compile itself does not contain backslashes and begins
18325   # with a dollar sign (not a hyphen), so the echo should work correctly.
18326   # The option is referenced via a variable to avoid confusing sed.
18327   lt_compile=`echo "$ac_compile" | $SED \
18328   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18329   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18330   -e 's:$: $lt_compiler_flag:'`
18331   (eval echo "\"\$as_me:18331: $lt_compile\"" >&5)
18332   (eval "$lt_compile" 2>conftest.err)
18333   ac_status=$?
18334   cat conftest.err >&5
18335   echo "$as_me:18335: \$? = $ac_status" >&5
18336   if (exit $ac_status) && test -s "$ac_outfile"; then
18337     # The compiler can only warn and ignore the option if not recognized
18338     # So say no if there are warnings other than the usual output.
18339     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18340     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18341     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18342       lt_prog_compiler_pic_works_GCJ=yes
18343     fi
18344   fi
18345   $rm conftest*
18346
18347fi
18348{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18349echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18350
18351if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18352    case $lt_prog_compiler_pic_GCJ in
18353     "" | " "*) ;;
18354     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18355     esac
18356else
18357    lt_prog_compiler_pic_GCJ=
18358     lt_prog_compiler_can_build_shared_GCJ=no
18359fi
18360
18361fi
18362case $host_os in
18363  # For platforms which do not support PIC, -DPIC is meaningless:
18364  *djgpp*)
18365    lt_prog_compiler_pic_GCJ=
18366    ;;
18367  *)
18368    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18369    ;;
18370esac
18371
18372#
18373# Check to make sure the static flag actually works.
18374#
18375wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18376{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18377echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18378if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18379  echo $ECHO_N "(cached) $ECHO_C" >&6
18380else
18381  lt_prog_compiler_static_works_GCJ=no
18382   save_LDFLAGS="$LDFLAGS"
18383   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18384   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18385   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18386     # The linker can only warn and ignore the option if not recognized
18387     # So say no if there are warnings
18388     if test -s conftest.err; then
18389       # Append any errors to the config.log.
18390       cat conftest.err 1>&5
18391       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18392       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18393       if diff conftest.exp conftest.er2 >/dev/null; then
18394         lt_prog_compiler_static_works_GCJ=yes
18395       fi
18396     else
18397       lt_prog_compiler_static_works_GCJ=yes
18398     fi
18399   fi
18400   $rm conftest*
18401   LDFLAGS="$save_LDFLAGS"
18402
18403fi
18404{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18405echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18406
18407if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18408    :
18409else
18410    lt_prog_compiler_static_GCJ=
18411fi
18412
18413
18414{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18415echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18416if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18417  echo $ECHO_N "(cached) $ECHO_C" >&6
18418else
18419  lt_cv_prog_compiler_c_o_GCJ=no
18420   $rm -r conftest 2>/dev/null
18421   mkdir conftest
18422   cd conftest
18423   mkdir out
18424   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18425
18426   lt_compiler_flag="-o out/conftest2.$ac_objext"
18427   # Insert the option either (1) after the last *FLAGS variable, or
18428   # (2) before a word containing "conftest.", or (3) at the end.
18429   # Note that $ac_compile itself does not contain backslashes and begins
18430   # with a dollar sign (not a hyphen), so the echo should work correctly.
18431   lt_compile=`echo "$ac_compile" | $SED \
18432   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18433   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18434   -e 's:$: $lt_compiler_flag:'`
18435   (eval echo "\"\$as_me:18435: $lt_compile\"" >&5)
18436   (eval "$lt_compile" 2>out/conftest.err)
18437   ac_status=$?
18438   cat out/conftest.err >&5
18439   echo "$as_me:18439: \$? = $ac_status" >&5
18440   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18441   then
18442     # The compiler can only warn and ignore the option if not recognized
18443     # So say no if there are warnings
18444     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18445     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18446     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18447       lt_cv_prog_compiler_c_o_GCJ=yes
18448     fi
18449   fi
18450   chmod u+w . 2>&5
18451   $rm conftest*
18452   # SGI C++ compiler will create directory out/ii_files/ for
18453   # template instantiation
18454   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18455   $rm out/* && rmdir out
18456   cd ..
18457   rmdir conftest
18458   $rm conftest*
18459
18460fi
18461{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18462echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18463
18464
18465hard_links="nottested"
18466if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18467  # do not overwrite the value of need_locks provided by the user
18468  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18469echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18470  hard_links=yes
18471  $rm conftest*
18472  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18473  touch conftest.a
18474  ln conftest.a conftest.b 2>&5 || hard_links=no
18475  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18476  { echo "$as_me:$LINENO: result: $hard_links" >&5
18477echo "${ECHO_T}$hard_links" >&6; }
18478  if test "$hard_links" = no; then
18479    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18480echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18481    need_locks=warn
18482  fi
18483else
18484  need_locks=no
18485fi
18486
18487{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18488echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18489
18490  runpath_var=
18491  allow_undefined_flag_GCJ=
18492  enable_shared_with_static_runtimes_GCJ=no
18493  archive_cmds_GCJ=
18494  archive_expsym_cmds_GCJ=
18495  old_archive_From_new_cmds_GCJ=
18496  old_archive_from_expsyms_cmds_GCJ=
18497  export_dynamic_flag_spec_GCJ=
18498  whole_archive_flag_spec_GCJ=
18499  thread_safe_flag_spec_GCJ=
18500  hardcode_libdir_flag_spec_GCJ=
18501  hardcode_libdir_flag_spec_ld_GCJ=
18502  hardcode_libdir_separator_GCJ=
18503  hardcode_direct_GCJ=no
18504  hardcode_minus_L_GCJ=no
18505  hardcode_shlibpath_var_GCJ=unsupported
18506  link_all_deplibs_GCJ=unknown
18507  hardcode_automatic_GCJ=no
18508  module_cmds_GCJ=
18509  module_expsym_cmds_GCJ=
18510  always_export_symbols_GCJ=no
18511  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18512  # include_expsyms should be a list of space-separated symbols to be *always*
18513  # included in the symbol list
18514  include_expsyms_GCJ=
18515  # exclude_expsyms can be an extended regexp of symbols to exclude
18516  # it will be wrapped by ` (' and `)$', so one must not match beginning or
18517  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18518  # as well as any symbol that contains `d'.
18519  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18520  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18521  # platforms (ab)use it in PIC code, but their linkers get confused if
18522  # the symbol is explicitly referenced.  Since portable code cannot
18523  # rely on this symbol name, it's probably fine to never include it in
18524  # preloaded symbol tables.
18525  extract_expsyms_cmds=
18526  # Just being paranoid about ensuring that cc_basename is set.
18527  for cc_temp in $compiler""; do
18528  case $cc_temp in
18529    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18530    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18531    \-*) ;;
18532    *) break;;
18533  esac
18534done
18535cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18536
18537  case $host_os in
18538  cygwin* | mingw* | pw32*)
18539    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18540    # When not using gcc, we currently assume that we are using
18541    # Microsoft Visual C++.
18542    if test "$GCC" != yes; then
18543      with_gnu_ld=no
18544    fi
18545    ;;
18546  interix*)
18547    # we just hope/assume this is gcc and not c89 (= MSVC++)
18548    with_gnu_ld=yes
18549    ;;
18550  openbsd*)
18551    with_gnu_ld=no
18552    ;;
18553  esac
18554
18555  ld_shlibs_GCJ=yes
18556  if test "$with_gnu_ld" = yes; then
18557    # If archive_cmds runs LD, not CC, wlarc should be empty
18558    wlarc='${wl}'
18559
18560    # Set some defaults for GNU ld with shared library support. These
18561    # are reset later if shared libraries are not supported. Putting them
18562    # here allows them to be overridden if necessary.
18563    runpath_var=LD_RUN_PATH
18564    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18565    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18566    # ancient GNU ld didn't support --whole-archive et. al.
18567    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18568	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18569      else
18570  	whole_archive_flag_spec_GCJ=
18571    fi
18572    supports_anon_versioning=no
18573    case `$LD -v 2>/dev/null` in
18574      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18575      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18576      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18577      *\ 2.11.*) ;; # other 2.11 versions
18578      *) supports_anon_versioning=yes ;;
18579    esac
18580
18581    # See if GNU ld supports shared libraries.
18582    case $host_os in
18583    aix3* | aix4* | aix5*)
18584      # On AIX/PPC, the GNU linker is very broken
18585      if test "$host_cpu" != ia64; then
18586	ld_shlibs_GCJ=no
18587	cat <<EOF 1>&2
18588
18589*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18590*** to be unable to reliably create shared libraries on AIX.
18591*** Therefore, libtool is disabling shared libraries support.  If you
18592*** really care for shared libraries, you may want to modify your PATH
18593*** so that a non-GNU linker is found, and then restart.
18594
18595EOF
18596      fi
18597      ;;
18598
18599    amigaos*)
18600      archive_cmds_GCJ='$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)'
18601      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18602      hardcode_minus_L_GCJ=yes
18603
18604      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18605      # that the semantics of dynamic libraries on AmigaOS, at least up
18606      # to version 4, is to share data among multiple programs linked
18607      # with the same dynamic library.  Since this doesn't match the
18608      # behavior of shared libraries on other platforms, we can't use
18609      # them.
18610      ld_shlibs_GCJ=no
18611      ;;
18612
18613    beos*)
18614      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18615	allow_undefined_flag_GCJ=unsupported
18616	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18617	# support --undefined.  This deserves some investigation.  FIXME
18618	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18619      else
18620	ld_shlibs_GCJ=no
18621      fi
18622      ;;
18623
18624    cygwin* | mingw* | pw32*)
18625      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18626      # as there is no search path for DLLs.
18627      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18628      allow_undefined_flag_GCJ=unsupported
18629      always_export_symbols_GCJ=no
18630      enable_shared_with_static_runtimes_GCJ=yes
18631      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18632
18633      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18634        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18635	# If the export-symbols file already is a .def file (1st line
18636	# is EXPORTS), use it as is; otherwise, prepend...
18637	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18638	  cp $export_symbols $output_objdir/$soname.def;
18639	else
18640	  echo EXPORTS > $output_objdir/$soname.def;
18641	  cat $export_symbols >> $output_objdir/$soname.def;
18642	fi~
18643	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18644      else
18645	ld_shlibs_GCJ=no
18646      fi
18647      ;;
18648
18649    interix[3-9]*)
18650      hardcode_direct_GCJ=no
18651      hardcode_shlibpath_var_GCJ=no
18652      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18653      export_dynamic_flag_spec_GCJ='${wl}-E'
18654      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18655      # Instead, shared libraries are loaded at an image base (0x10000000 by
18656      # default) and relocated if they conflict, which is a slow very memory
18657      # consuming and fragmenting process.  To avoid this, we pick a random,
18658      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18659      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18660      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18661      archive_expsym_cmds_GCJ='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'
18662      ;;
18663
18664    gnu* | linux* | k*bsd*-gnu)
18665      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18666	tmp_addflag=
18667	case $cc_basename,$host_cpu in
18668	pgcc*)				# Portland Group C compiler
18669	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18670	  tmp_addflag=' $pic_flag'
18671	  ;;
18672	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
18673	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18674	  tmp_addflag=' $pic_flag -Mnomain' ;;
18675	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
18676	  tmp_addflag=' -i_dynamic' ;;
18677	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18678	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18679	ifc* | ifort*)			# Intel Fortran compiler
18680	  tmp_addflag=' -nofor_main' ;;
18681	esac
18682	case `$CC -V 2>&1 | sed 5q` in
18683	*Sun\ C*)			# Sun C 5.9
18684	  whole_archive_flag_spec_GCJ='${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'
18685	  tmp_sharedflag='-G' ;;
18686	*Sun\ F*)			# Sun Fortran 8.3
18687	  tmp_sharedflag='-G' ;;
18688	*)
18689	  tmp_sharedflag='-shared' ;;
18690	esac
18691	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18692
18693	if test $supports_anon_versioning = yes; then
18694	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18695  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18696  $echo "local: *; };" >> $output_objdir/$libname.ver~
18697	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18698	fi
18699	link_all_deplibs_GCJ=no
18700      else
18701	ld_shlibs_GCJ=no
18702      fi
18703      ;;
18704
18705    netbsd* | netbsdelf*-gnu)
18706      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18707	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18708	wlarc=
18709      else
18710	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18711	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18712      fi
18713      ;;
18714
18715    solaris*)
18716      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18717	ld_shlibs_GCJ=no
18718	cat <<EOF 1>&2
18719
18720*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18721*** create shared libraries on Solaris systems.  Therefore, libtool
18722*** is disabling shared libraries support.  We urge you to upgrade GNU
18723*** binutils to release 2.9.1 or newer.  Another option is to modify
18724*** your PATH or compiler configuration so that the native linker is
18725*** used, and then restart.
18726
18727EOF
18728      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18729	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18730	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18731      else
18732	ld_shlibs_GCJ=no
18733      fi
18734      ;;
18735
18736    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18737      case `$LD -v 2>&1` in
18738        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18739	ld_shlibs_GCJ=no
18740	cat <<_LT_EOF 1>&2
18741
18742*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18743*** reliably create shared libraries on SCO systems.  Therefore, libtool
18744*** is disabling shared libraries support.  We urge you to upgrade GNU
18745*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18746*** your PATH or compiler configuration so that the native linker is
18747*** used, and then restart.
18748
18749_LT_EOF
18750	;;
18751	*)
18752	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18753	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18754	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18755	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18756	  else
18757	    ld_shlibs_GCJ=no
18758	  fi
18759	;;
18760      esac
18761      ;;
18762
18763    sunos4*)
18764      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18765      wlarc=
18766      hardcode_direct_GCJ=yes
18767      hardcode_shlibpath_var_GCJ=no
18768      ;;
18769
18770    *)
18771      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18772	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18773	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18774      else
18775	ld_shlibs_GCJ=no
18776      fi
18777      ;;
18778    esac
18779
18780    if test "$ld_shlibs_GCJ" = no; then
18781      runpath_var=
18782      hardcode_libdir_flag_spec_GCJ=
18783      export_dynamic_flag_spec_GCJ=
18784      whole_archive_flag_spec_GCJ=
18785    fi
18786  else
18787    # PORTME fill in a description of your system's linker (not GNU ld)
18788    case $host_os in
18789    aix3*)
18790      allow_undefined_flag_GCJ=unsupported
18791      always_export_symbols_GCJ=yes
18792      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18793      # Note: this linker hardcodes the directories in LIBPATH if there
18794      # are no directories specified by -L.
18795      hardcode_minus_L_GCJ=yes
18796      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18797	# Neither direct hardcoding nor static linking is supported with a
18798	# broken collect2.
18799	hardcode_direct_GCJ=unsupported
18800      fi
18801      ;;
18802
18803    aix4* | aix5*)
18804      if test "$host_cpu" = ia64; then
18805	# On IA64, the linker does run time linking by default, so we don't
18806	# have to do anything special.
18807	aix_use_runtimelinking=no
18808	exp_sym_flag='-Bexport'
18809	no_entry_flag=""
18810      else
18811	# If we're using GNU nm, then we don't want the "-C" option.
18812	# -C means demangle to AIX nm, but means don't demangle with GNU nm
18813	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18814	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18815	else
18816	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18817	fi
18818	aix_use_runtimelinking=no
18819
18820	# Test if we are trying to use run time linking or normal
18821	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18822	# need to do runtime linking.
18823	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18824	  for ld_flag in $LDFLAGS; do
18825  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18826  	    aix_use_runtimelinking=yes
18827  	    break
18828  	  fi
18829	  done
18830	  ;;
18831	esac
18832
18833	exp_sym_flag='-bexport'
18834	no_entry_flag='-bnoentry'
18835      fi
18836
18837      # When large executables or shared objects are built, AIX ld can
18838      # have problems creating the table of contents.  If linking a library
18839      # or program results in "error TOC overflow" add -mminimal-toc to
18840      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18841      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18842
18843      archive_cmds_GCJ=''
18844      hardcode_direct_GCJ=yes
18845      hardcode_libdir_separator_GCJ=':'
18846      link_all_deplibs_GCJ=yes
18847
18848      if test "$GCC" = yes; then
18849	case $host_os in aix4.[012]|aix4.[012].*)
18850	# We only want to do this on AIX 4.2 and lower, the check
18851	# below for broken collect2 doesn't work under 4.3+
18852	  collect2name=`${CC} -print-prog-name=collect2`
18853	  if test -f "$collect2name" && \
18854  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18855	  then
18856  	  # We have reworked collect2
18857  	  :
18858	  else
18859  	  # We have old collect2
18860  	  hardcode_direct_GCJ=unsupported
18861  	  # It fails to find uninstalled libraries when the uninstalled
18862  	  # path is not listed in the libpath.  Setting hardcode_minus_L
18863  	  # to unsupported forces relinking
18864  	  hardcode_minus_L_GCJ=yes
18865  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18866  	  hardcode_libdir_separator_GCJ=
18867	  fi
18868	  ;;
18869	esac
18870	shared_flag='-shared'
18871	if test "$aix_use_runtimelinking" = yes; then
18872	  shared_flag="$shared_flag "'${wl}-G'
18873	fi
18874      else
18875	# not using gcc
18876	if test "$host_cpu" = ia64; then
18877  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18878  	# chokes on -Wl,-G. The following line is correct:
18879	  shared_flag='-G'
18880	else
18881	  if test "$aix_use_runtimelinking" = yes; then
18882	    shared_flag='${wl}-G'
18883	  else
18884	    shared_flag='${wl}-bM:SRE'
18885	  fi
18886	fi
18887      fi
18888
18889      # It seems that -bexpall does not export symbols beginning with
18890      # underscore (_), so it is better to generate a list of symbols to export.
18891      always_export_symbols_GCJ=yes
18892      if test "$aix_use_runtimelinking" = yes; then
18893	# Warning - without using the other runtime loading flags (-brtl),
18894	# -berok will link without error, but may produce a broken library.
18895	allow_undefined_flag_GCJ='-berok'
18896       # Determine the default libpath from the value encoded in an empty executable.
18897       cat >conftest.$ac_ext <<_ACEOF
18898/* confdefs.h.  */
18899_ACEOF
18900cat confdefs.h >>conftest.$ac_ext
18901cat >>conftest.$ac_ext <<_ACEOF
18902/* end confdefs.h.  */
18903
18904int
18905main ()
18906{
18907
18908  ;
18909  return 0;
18910}
18911_ACEOF
18912rm -f conftest.$ac_objext conftest$ac_exeext
18913if { (ac_try="$ac_link"
18914case "(($ac_try" in
18915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18916  *) ac_try_echo=$ac_try;;
18917esac
18918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18919  (eval "$ac_link") 2>conftest.er1
18920  ac_status=$?
18921  grep -v '^ *+' conftest.er1 >conftest.err
18922  rm -f conftest.er1
18923  cat conftest.err >&5
18924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925  (exit $ac_status); } && {
18926	 test -z "$ac_c_werror_flag" ||
18927	 test ! -s conftest.err
18928       } && test -s conftest$ac_exeext &&
18929       $as_test_x conftest$ac_exeext; then
18930
18931lt_aix_libpath_sed='
18932    /Import File Strings/,/^$/ {
18933	/^0/ {
18934	    s/^0  *\(.*\)$/\1/
18935	    p
18936	}
18937    }'
18938aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18939# Check for a 64-bit object if we didn't find anything.
18940if test -z "$aix_libpath"; then
18941  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18942fi
18943else
18944  echo "$as_me: failed program was:" >&5
18945sed 's/^/| /' conftest.$ac_ext >&5
18946
18947
18948fi
18949
18950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18951      conftest$ac_exeext conftest.$ac_ext
18952if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18953
18954       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18955	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18956       else
18957	if test "$host_cpu" = ia64; then
18958	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18959	  allow_undefined_flag_GCJ="-z nodefs"
18960	  archive_expsym_cmds_GCJ="\$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"
18961	else
18962	 # Determine the default libpath from the value encoded in an empty executable.
18963	 cat >conftest.$ac_ext <<_ACEOF
18964/* confdefs.h.  */
18965_ACEOF
18966cat confdefs.h >>conftest.$ac_ext
18967cat >>conftest.$ac_ext <<_ACEOF
18968/* end confdefs.h.  */
18969
18970int
18971main ()
18972{
18973
18974  ;
18975  return 0;
18976}
18977_ACEOF
18978rm -f conftest.$ac_objext conftest$ac_exeext
18979if { (ac_try="$ac_link"
18980case "(($ac_try" in
18981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982  *) ac_try_echo=$ac_try;;
18983esac
18984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985  (eval "$ac_link") 2>conftest.er1
18986  ac_status=$?
18987  grep -v '^ *+' conftest.er1 >conftest.err
18988  rm -f conftest.er1
18989  cat conftest.err >&5
18990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991  (exit $ac_status); } && {
18992	 test -z "$ac_c_werror_flag" ||
18993	 test ! -s conftest.err
18994       } && test -s conftest$ac_exeext &&
18995       $as_test_x conftest$ac_exeext; then
18996
18997lt_aix_libpath_sed='
18998    /Import File Strings/,/^$/ {
18999	/^0/ {
19000	    s/^0  *\(.*\)$/\1/
19001	    p
19002	}
19003    }'
19004aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19005# Check for a 64-bit object if we didn't find anything.
19006if test -z "$aix_libpath"; then
19007  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19008fi
19009else
19010  echo "$as_me: failed program was:" >&5
19011sed 's/^/| /' conftest.$ac_ext >&5
19012
19013
19014fi
19015
19016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19017      conftest$ac_exeext conftest.$ac_ext
19018if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19019
19020	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19021	  # Warning - without using the other run time loading flags,
19022	  # -berok will link without error, but may produce a broken library.
19023	  no_undefined_flag_GCJ=' ${wl}-bernotok'
19024	  allow_undefined_flag_GCJ=' ${wl}-berok'
19025	  # Exported symbols can be pulled into shared objects from archives
19026	  whole_archive_flag_spec_GCJ='$convenience'
19027	  archive_cmds_need_lc_GCJ=yes
19028	  # This is similar to how AIX traditionally builds its shared libraries.
19029	  archive_expsym_cmds_GCJ="\$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'
19030	fi
19031      fi
19032      ;;
19033
19034    amigaos*)
19035      archive_cmds_GCJ='$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)'
19036      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19037      hardcode_minus_L_GCJ=yes
19038      # see comment about different semantics on the GNU ld section
19039      ld_shlibs_GCJ=no
19040      ;;
19041
19042    bsdi[45]*)
19043      export_dynamic_flag_spec_GCJ=-rdynamic
19044      ;;
19045
19046    cygwin* | mingw* | pw32*)
19047      # When not using gcc, we currently assume that we are using
19048      # Microsoft Visual C++.
19049      # hardcode_libdir_flag_spec is actually meaningless, as there is
19050      # no search path for DLLs.
19051      hardcode_libdir_flag_spec_GCJ=' '
19052      allow_undefined_flag_GCJ=unsupported
19053      # Tell ltmain to make .lib files, not .a files.
19054      libext=lib
19055      # Tell ltmain to make .dll files, not .so files.
19056      shrext_cmds=".dll"
19057      # FIXME: Setting linknames here is a bad hack.
19058      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19059      # The linker will automatically build a .lib file if we build a DLL.
19060      old_archive_From_new_cmds_GCJ='true'
19061      # FIXME: Should let the user specify the lib program.
19062      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19063      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19064      enable_shared_with_static_runtimes_GCJ=yes
19065      ;;
19066
19067    darwin* | rhapsody*)
19068      case $host_os in
19069        rhapsody* | darwin1.[012])
19070         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19071         ;;
19072       *) # Darwin 1.3 on
19073         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19074           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19075         else
19076           case ${MACOSX_DEPLOYMENT_TARGET} in
19077             10.[012])
19078               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19079               ;;
19080             10.*)
19081               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19082               ;;
19083           esac
19084         fi
19085         ;;
19086      esac
19087      archive_cmds_need_lc_GCJ=no
19088      hardcode_direct_GCJ=no
19089      hardcode_automatic_GCJ=yes
19090      hardcode_shlibpath_var_GCJ=unsupported
19091      whole_archive_flag_spec_GCJ=''
19092      link_all_deplibs_GCJ=yes
19093    if test "$GCC" = yes ; then
19094    	output_verbose_link_cmd='echo'
19095        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19096      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19097      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19098      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19099      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19100    else
19101      case $cc_basename in
19102        xlc*)
19103         output_verbose_link_cmd='echo'
19104         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19105         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19106          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19107         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19108          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19109          ;;
19110       *)
19111         ld_shlibs_GCJ=no
19112          ;;
19113      esac
19114    fi
19115      ;;
19116
19117    dgux*)
19118      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19119      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19120      hardcode_shlibpath_var_GCJ=no
19121      ;;
19122
19123    freebsd1*)
19124      ld_shlibs_GCJ=no
19125      ;;
19126
19127    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19128    # support.  Future versions do this automatically, but an explicit c++rt0.o
19129    # does not break anything, and helps significantly (at the cost of a little
19130    # extra space).
19131    freebsd2.2*)
19132      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19133      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19134      hardcode_direct_GCJ=yes
19135      hardcode_shlibpath_var_GCJ=no
19136      ;;
19137
19138    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19139    freebsd2*)
19140      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19141      hardcode_direct_GCJ=yes
19142      hardcode_minus_L_GCJ=yes
19143      hardcode_shlibpath_var_GCJ=no
19144      ;;
19145
19146    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19147    freebsd* | dragonfly*)
19148      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19149      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19150      hardcode_direct_GCJ=yes
19151      hardcode_shlibpath_var_GCJ=no
19152      ;;
19153
19154    hpux9*)
19155      if test "$GCC" = yes; then
19156	archive_cmds_GCJ='$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'
19157      else
19158	archive_cmds_GCJ='$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'
19159      fi
19160      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19161      hardcode_libdir_separator_GCJ=:
19162      hardcode_direct_GCJ=yes
19163
19164      # hardcode_minus_L: Not really in the search PATH,
19165      # but as the default location of the library.
19166      hardcode_minus_L_GCJ=yes
19167      export_dynamic_flag_spec_GCJ='${wl}-E'
19168      ;;
19169
19170    hpux10*)
19171      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19172	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19173      else
19174	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19175      fi
19176      if test "$with_gnu_ld" = no; then
19177	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19178	hardcode_libdir_separator_GCJ=:
19179
19180	hardcode_direct_GCJ=yes
19181	export_dynamic_flag_spec_GCJ='${wl}-E'
19182
19183	# hardcode_minus_L: Not really in the search PATH,
19184	# but as the default location of the library.
19185	hardcode_minus_L_GCJ=yes
19186      fi
19187      ;;
19188
19189    hpux11*)
19190      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19191	case $host_cpu in
19192	hppa*64*)
19193	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19194	  ;;
19195	ia64*)
19196	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19197	  ;;
19198	*)
19199	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19200	  ;;
19201	esac
19202      else
19203	case $host_cpu in
19204	hppa*64*)
19205	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19206	  ;;
19207	ia64*)
19208	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19209	  ;;
19210	*)
19211	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19212	  ;;
19213	esac
19214      fi
19215      if test "$with_gnu_ld" = no; then
19216	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19217	hardcode_libdir_separator_GCJ=:
19218
19219	case $host_cpu in
19220	hppa*64*|ia64*)
19221	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19222	  hardcode_direct_GCJ=no
19223	  hardcode_shlibpath_var_GCJ=no
19224	  ;;
19225	*)
19226	  hardcode_direct_GCJ=yes
19227	  export_dynamic_flag_spec_GCJ='${wl}-E'
19228
19229	  # hardcode_minus_L: Not really in the search PATH,
19230	  # but as the default location of the library.
19231	  hardcode_minus_L_GCJ=yes
19232	  ;;
19233	esac
19234      fi
19235      ;;
19236
19237    irix5* | irix6* | nonstopux*)
19238      if test "$GCC" = yes; then
19239	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19240      else
19241	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19242	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19243      fi
19244      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19245      hardcode_libdir_separator_GCJ=:
19246      link_all_deplibs_GCJ=yes
19247      ;;
19248
19249    netbsd* | netbsdelf*-gnu)
19250      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19251	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19252      else
19253	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19254      fi
19255      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19256      hardcode_direct_GCJ=yes
19257      hardcode_shlibpath_var_GCJ=no
19258      ;;
19259
19260    newsos6)
19261      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19262      hardcode_direct_GCJ=yes
19263      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19264      hardcode_libdir_separator_GCJ=:
19265      hardcode_shlibpath_var_GCJ=no
19266      ;;
19267
19268    openbsd*)
19269      if test -f /usr/libexec/ld.so; then
19270	hardcode_direct_GCJ=yes
19271	hardcode_shlibpath_var_GCJ=no
19272	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19273	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19274	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19275	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19276	  export_dynamic_flag_spec_GCJ='${wl}-E'
19277	else
19278	  case $host_os in
19279	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19280	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19281	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
19282	     ;;
19283	   *)
19284	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19285	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19286	     ;;
19287	  esac
19288        fi
19289      else
19290	ld_shlibs_GCJ=no
19291      fi
19292      ;;
19293
19294    os2*)
19295      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19296      hardcode_minus_L_GCJ=yes
19297      allow_undefined_flag_GCJ=unsupported
19298      archive_cmds_GCJ='$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'
19299      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19300      ;;
19301
19302    osf3*)
19303      if test "$GCC" = yes; then
19304	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19305	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19306      else
19307	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19308	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19309      fi
19310      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19311      hardcode_libdir_separator_GCJ=:
19312      ;;
19313
19314    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19315      if test "$GCC" = yes; then
19316	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19317	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19318	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19319      else
19320	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19321	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19322	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19323	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19324
19325	# Both c and cxx compiler support -rpath directly
19326	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19327      fi
19328      hardcode_libdir_separator_GCJ=:
19329      ;;
19330
19331    solaris*)
19332      no_undefined_flag_GCJ=' -z text'
19333      if test "$GCC" = yes; then
19334	wlarc='${wl}'
19335	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19336	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19337	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19338      else
19339	wlarc=''
19340	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19341	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19342  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19343      fi
19344      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19345      hardcode_shlibpath_var_GCJ=no
19346      case $host_os in
19347      solaris2.[0-5] | solaris2.[0-5].*) ;;
19348      *)
19349	# The compiler driver will combine and reorder linker options,
19350	# but understands `-z linker_flag'.  GCC discards it without `$wl',
19351	# but is careful enough not to reorder.
19352 	# Supported since Solaris 2.6 (maybe 2.5.1?)
19353	if test "$GCC" = yes; then
19354	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19355	else
19356	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19357	fi
19358	;;
19359      esac
19360      link_all_deplibs_GCJ=yes
19361      ;;
19362
19363    sunos4*)
19364      if test "x$host_vendor" = xsequent; then
19365	# Use $CC to link under sequent, because it throws in some extra .o
19366	# files that make .init and .fini sections work.
19367	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19368      else
19369	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19370      fi
19371      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19372      hardcode_direct_GCJ=yes
19373      hardcode_minus_L_GCJ=yes
19374      hardcode_shlibpath_var_GCJ=no
19375      ;;
19376
19377    sysv4)
19378      case $host_vendor in
19379	sni)
19380	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19381	  hardcode_direct_GCJ=yes # is this really true???
19382	;;
19383	siemens)
19384	  ## LD is ld it makes a PLAMLIB
19385	  ## CC just makes a GrossModule.
19386	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19387	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19388	  hardcode_direct_GCJ=no
19389        ;;
19390	motorola)
19391	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19392	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19393	;;
19394      esac
19395      runpath_var='LD_RUN_PATH'
19396      hardcode_shlibpath_var_GCJ=no
19397      ;;
19398
19399    sysv4.3*)
19400      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19401      hardcode_shlibpath_var_GCJ=no
19402      export_dynamic_flag_spec_GCJ='-Bexport'
19403      ;;
19404
19405    sysv4*MP*)
19406      if test -d /usr/nec; then
19407	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19408	hardcode_shlibpath_var_GCJ=no
19409	runpath_var=LD_RUN_PATH
19410	hardcode_runpath_var=yes
19411	ld_shlibs_GCJ=yes
19412      fi
19413      ;;
19414
19415    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19416      no_undefined_flag_GCJ='${wl}-z,text'
19417      archive_cmds_need_lc_GCJ=no
19418      hardcode_shlibpath_var_GCJ=no
19419      runpath_var='LD_RUN_PATH'
19420
19421      if test "$GCC" = yes; then
19422	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19423	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19424      else
19425	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19426	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19427      fi
19428      ;;
19429
19430    sysv5* | sco3.2v5* | sco5v6*)
19431      # Note: We can NOT use -z defs as we might desire, because we do not
19432      # link with -lc, and that would cause any symbols used from libc to
19433      # always be unresolved, which means just about no library would
19434      # ever link correctly.  If we're not using GNU ld we use -z text
19435      # though, which does catch some bad symbols but isn't as heavy-handed
19436      # as -z defs.
19437      no_undefined_flag_GCJ='${wl}-z,text'
19438      allow_undefined_flag_GCJ='${wl}-z,nodefs'
19439      archive_cmds_need_lc_GCJ=no
19440      hardcode_shlibpath_var_GCJ=no
19441      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19442      hardcode_libdir_separator_GCJ=':'
19443      link_all_deplibs_GCJ=yes
19444      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19445      runpath_var='LD_RUN_PATH'
19446
19447      if test "$GCC" = yes; then
19448	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19449	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19450      else
19451	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19452	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19453      fi
19454      ;;
19455
19456    uts4*)
19457      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19458      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19459      hardcode_shlibpath_var_GCJ=no
19460      ;;
19461
19462    *)
19463      ld_shlibs_GCJ=no
19464      ;;
19465    esac
19466  fi
19467
19468{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19469echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19470test "$ld_shlibs_GCJ" = no && can_build_shared=no
19471
19472#
19473# Do we need to explicitly link libc?
19474#
19475case "x$archive_cmds_need_lc_GCJ" in
19476x|xyes)
19477  # Assume -lc should be added
19478  archive_cmds_need_lc_GCJ=yes
19479
19480  if test "$enable_shared" = yes && test "$GCC" = yes; then
19481    case $archive_cmds_GCJ in
19482    *'~'*)
19483      # FIXME: we may have to deal with multi-command sequences.
19484      ;;
19485    '$CC '*)
19486      # Test whether the compiler implicitly links with -lc since on some
19487      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19488      # to ld, don't add -lc before -lgcc.
19489      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19490echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19491      $rm conftest*
19492      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19493
19494      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19495  (eval $ac_compile) 2>&5
19496  ac_status=$?
19497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498  (exit $ac_status); } 2>conftest.err; then
19499        soname=conftest
19500        lib=conftest
19501        libobjs=conftest.$ac_objext
19502        deplibs=
19503        wl=$lt_prog_compiler_wl_GCJ
19504	pic_flag=$lt_prog_compiler_pic_GCJ
19505        compiler_flags=-v
19506        linker_flags=-v
19507        verstring=
19508        output_objdir=.
19509        libname=conftest
19510        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19511        allow_undefined_flag_GCJ=
19512        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19513  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19514  ac_status=$?
19515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516  (exit $ac_status); }
19517        then
19518	  archive_cmds_need_lc_GCJ=no
19519        else
19520	  archive_cmds_need_lc_GCJ=yes
19521        fi
19522        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19523      else
19524        cat conftest.err 1>&5
19525      fi
19526      $rm conftest*
19527      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19528echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19529      ;;
19530    esac
19531  fi
19532  ;;
19533esac
19534
19535{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19536echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19537library_names_spec=
19538libname_spec='lib$name'
19539soname_spec=
19540shrext_cmds=".so"
19541postinstall_cmds=
19542postuninstall_cmds=
19543finish_cmds=
19544finish_eval=
19545shlibpath_var=
19546shlibpath_overrides_runpath=unknown
19547version_type=none
19548dynamic_linker="$host_os ld.so"
19549sys_lib_dlsearch_path_spec="/lib /usr/lib"
19550
19551need_lib_prefix=unknown
19552hardcode_into_libs=no
19553
19554# when you set need_version to no, make sure it does not cause -set_version
19555# flags to be left without arguments
19556need_version=unknown
19557
19558case $host_os in
19559aix3*)
19560  version_type=linux
19561  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19562  shlibpath_var=LIBPATH
19563
19564  # AIX 3 has no versioning support, so we append a major version to the name.
19565  soname_spec='${libname}${release}${shared_ext}$major'
19566  ;;
19567
19568aix4* | aix5*)
19569  version_type=linux
19570  need_lib_prefix=no
19571  need_version=no
19572  hardcode_into_libs=yes
19573  if test "$host_cpu" = ia64; then
19574    # AIX 5 supports IA64
19575    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19576    shlibpath_var=LD_LIBRARY_PATH
19577  else
19578    # With GCC up to 2.95.x, collect2 would create an import file
19579    # for dependence libraries.  The import file would start with
19580    # the line `#! .'.  This would cause the generated library to
19581    # depend on `.', always an invalid library.  This was fixed in
19582    # development snapshots of GCC prior to 3.0.
19583    case $host_os in
19584      aix4 | aix4.[01] | aix4.[01].*)
19585      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19586	   echo ' yes '
19587	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19588	:
19589      else
19590	can_build_shared=no
19591      fi
19592      ;;
19593    esac
19594    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19595    # soname into executable. Probably we can add versioning support to
19596    # collect2, so additional links can be useful in future.
19597    if test "$aix_use_runtimelinking" = yes; then
19598      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19599      # instead of lib<name>.a to let people know that these are not
19600      # typical AIX shared libraries.
19601      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19602    else
19603      # We preserve .a as extension for shared libraries through AIX4.2
19604      # and later when we are not doing run time linking.
19605      library_names_spec='${libname}${release}.a $libname.a'
19606      soname_spec='${libname}${release}${shared_ext}$major'
19607    fi
19608    shlibpath_var=LIBPATH
19609  fi
19610  ;;
19611
19612amigaos*)
19613  library_names_spec='$libname.ixlibrary $libname.a'
19614  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19615  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'
19616  ;;
19617
19618beos*)
19619  library_names_spec='${libname}${shared_ext}'
19620  dynamic_linker="$host_os ld.so"
19621  shlibpath_var=LIBRARY_PATH
19622  ;;
19623
19624bsdi[45]*)
19625  version_type=linux
19626  need_version=no
19627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19628  soname_spec='${libname}${release}${shared_ext}$major'
19629  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19630  shlibpath_var=LD_LIBRARY_PATH
19631  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19632  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19633  # the default ld.so.conf also contains /usr/contrib/lib and
19634  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19635  # libtool to hard-code these into programs
19636  ;;
19637
19638cygwin* | mingw* | pw32*)
19639  version_type=windows
19640  shrext_cmds=".dll"
19641  need_version=no
19642  need_lib_prefix=no
19643
19644  case $GCC,$host_os in
19645  yes,cygwin* | yes,mingw* | yes,pw32*)
19646    library_names_spec='$libname.dll.a'
19647    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19648    postinstall_cmds='base_file=`basename \${file}`~
19649      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19650      dldir=$destdir/`dirname \$dlpath`~
19651      test -d \$dldir || mkdir -p \$dldir~
19652      $install_prog $dir/$dlname \$dldir/$dlname~
19653      chmod a+x \$dldir/$dlname'
19654    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19655      dlpath=$dir/\$dldll~
19656       $rm \$dlpath'
19657    shlibpath_overrides_runpath=yes
19658
19659    case $host_os in
19660    cygwin*)
19661      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19662      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19663      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19664      ;;
19665    mingw*)
19666      # MinGW DLLs use traditional 'lib' prefix
19667      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19668      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19669      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19670        # It is most probably a Windows format PATH printed by
19671        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19672        # path with ; separators, and with drive letters. We can handle the
19673        # drive letters (cygwin fileutils understands them), so leave them,
19674        # especially as we might pass files found there to a mingw objdump,
19675        # which wouldn't understand a cygwinified path. Ahh.
19676        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19677      else
19678        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19679      fi
19680      ;;
19681    pw32*)
19682      # pw32 DLLs use 'pw' prefix rather than 'lib'
19683      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19684      ;;
19685    esac
19686    ;;
19687
19688  *)
19689    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19690    ;;
19691  esac
19692  dynamic_linker='Win32 ld.exe'
19693  # FIXME: first we should search . and the directory the executable is in
19694  shlibpath_var=PATH
19695  ;;
19696
19697darwin* | rhapsody*)
19698  dynamic_linker="$host_os dyld"
19699  version_type=darwin
19700  need_lib_prefix=no
19701  need_version=no
19702  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19703  soname_spec='${libname}${release}${major}$shared_ext'
19704  shlibpath_overrides_runpath=yes
19705  shlibpath_var=DYLD_LIBRARY_PATH
19706  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19707
19708  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19709  ;;
19710
19711dgux*)
19712  version_type=linux
19713  need_lib_prefix=no
19714  need_version=no
19715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19716  soname_spec='${libname}${release}${shared_ext}$major'
19717  shlibpath_var=LD_LIBRARY_PATH
19718  ;;
19719
19720freebsd1*)
19721  dynamic_linker=no
19722  ;;
19723
19724freebsd* | dragonfly*)
19725  # DragonFly does not have aout.  When/if they implement a new
19726  # versioning mechanism, adjust this.
19727  if test -x /usr/bin/objformat; then
19728    objformat=`/usr/bin/objformat`
19729  else
19730    case $host_os in
19731    freebsd[123]*) objformat=aout ;;
19732    *) objformat=elf ;;
19733    esac
19734  fi
19735  version_type=freebsd-$objformat
19736  case $version_type in
19737    freebsd-elf*)
19738      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19739      need_version=no
19740      need_lib_prefix=no
19741      ;;
19742    freebsd-*)
19743      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19744      need_version=yes
19745      ;;
19746  esac
19747  shlibpath_var=LD_LIBRARY_PATH
19748  case $host_os in
19749  freebsd2*)
19750    shlibpath_overrides_runpath=yes
19751    ;;
19752  freebsd3.[01]* | freebsdelf3.[01]*)
19753    shlibpath_overrides_runpath=yes
19754    hardcode_into_libs=yes
19755    ;;
19756  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19757  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19758    shlibpath_overrides_runpath=no
19759    hardcode_into_libs=yes
19760    ;;
19761  *) # from 4.6 on, and DragonFly
19762    shlibpath_overrides_runpath=yes
19763    hardcode_into_libs=yes
19764    ;;
19765  esac
19766  ;;
19767
19768gnu*)
19769  version_type=linux
19770  need_lib_prefix=no
19771  need_version=no
19772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19773  soname_spec='${libname}${release}${shared_ext}$major'
19774  shlibpath_var=LD_LIBRARY_PATH
19775  hardcode_into_libs=yes
19776  ;;
19777
19778hpux9* | hpux10* | hpux11*)
19779  # Give a soname corresponding to the major version so that dld.sl refuses to
19780  # link against other versions.
19781  version_type=sunos
19782  need_lib_prefix=no
19783  need_version=no
19784  case $host_cpu in
19785  ia64*)
19786    shrext_cmds='.so'
19787    hardcode_into_libs=yes
19788    dynamic_linker="$host_os dld.so"
19789    shlibpath_var=LD_LIBRARY_PATH
19790    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19791    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19792    soname_spec='${libname}${release}${shared_ext}$major'
19793    if test "X$HPUX_IA64_MODE" = X32; then
19794      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19795    else
19796      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19797    fi
19798    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19799    ;;
19800   hppa*64*)
19801     shrext_cmds='.sl'
19802     hardcode_into_libs=yes
19803     dynamic_linker="$host_os dld.sl"
19804     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19805     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19806     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19807     soname_spec='${libname}${release}${shared_ext}$major'
19808     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19809     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19810     ;;
19811   *)
19812    shrext_cmds='.sl'
19813    dynamic_linker="$host_os dld.sl"
19814    shlibpath_var=SHLIB_PATH
19815    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19816    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19817    soname_spec='${libname}${release}${shared_ext}$major'
19818    ;;
19819  esac
19820  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19821  postinstall_cmds='chmod 555 $lib'
19822  ;;
19823
19824interix[3-9]*)
19825  version_type=linux
19826  need_lib_prefix=no
19827  need_version=no
19828  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19829  soname_spec='${libname}${release}${shared_ext}$major'
19830  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19831  shlibpath_var=LD_LIBRARY_PATH
19832  shlibpath_overrides_runpath=no
19833  hardcode_into_libs=yes
19834  ;;
19835
19836irix5* | irix6* | nonstopux*)
19837  case $host_os in
19838    nonstopux*) version_type=nonstopux ;;
19839    *)
19840	if test "$lt_cv_prog_gnu_ld" = yes; then
19841		version_type=linux
19842	else
19843		version_type=irix
19844	fi ;;
19845  esac
19846  need_lib_prefix=no
19847  need_version=no
19848  soname_spec='${libname}${release}${shared_ext}$major'
19849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19850  case $host_os in
19851  irix5* | nonstopux*)
19852    libsuff= shlibsuff=
19853    ;;
19854  *)
19855    case $LD in # libtool.m4 will add one of these switches to LD
19856    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19857      libsuff= shlibsuff= libmagic=32-bit;;
19858    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19859      libsuff=32 shlibsuff=N32 libmagic=N32;;
19860    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19861      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19862    *) libsuff= shlibsuff= libmagic=never-match;;
19863    esac
19864    ;;
19865  esac
19866  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19867  shlibpath_overrides_runpath=no
19868  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19869  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19870  hardcode_into_libs=yes
19871  ;;
19872
19873# No shared lib support for Linux oldld, aout, or coff.
19874linux*oldld* | linux*aout* | linux*coff*)
19875  dynamic_linker=no
19876  ;;
19877
19878# This must be Linux ELF.
19879linux* | k*bsd*-gnu)
19880  version_type=linux
19881  need_lib_prefix=no
19882  need_version=no
19883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19884  soname_spec='${libname}${release}${shared_ext}$major'
19885  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19886  shlibpath_var=LD_LIBRARY_PATH
19887  shlibpath_overrides_runpath=no
19888  # This implies no fast_install, which is unacceptable.
19889  # Some rework will be needed to allow for fast_install
19890  # before this can be enabled.
19891  hardcode_into_libs=yes
19892
19893  # Append ld.so.conf contents to the search path
19894  if test -f /etc/ld.so.conf; then
19895    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' ' '`
19896    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19897  fi
19898
19899  # We used to test for /lib/ld.so.1 and disable shared libraries on
19900  # powerpc, because MkLinux only supported shared libraries with the
19901  # GNU dynamic linker.  Since this was broken with cross compilers,
19902  # most powerpc-linux boxes support dynamic linking these days and
19903  # people can always --disable-shared, the test was removed, and we
19904  # assume the GNU/Linux dynamic linker is in use.
19905  dynamic_linker='GNU/Linux ld.so'
19906  ;;
19907
19908netbsdelf*-gnu)
19909  version_type=linux
19910  need_lib_prefix=no
19911  need_version=no
19912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19913  soname_spec='${libname}${release}${shared_ext}$major'
19914  shlibpath_var=LD_LIBRARY_PATH
19915  shlibpath_overrides_runpath=no
19916  hardcode_into_libs=yes
19917  dynamic_linker='NetBSD ld.elf_so'
19918  ;;
19919
19920netbsd*)
19921  version_type=sunos
19922  need_lib_prefix=no
19923  need_version=no
19924  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19925    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19926    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19927    dynamic_linker='NetBSD (a.out) ld.so'
19928  else
19929    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19930    soname_spec='${libname}${release}${shared_ext}$major'
19931    dynamic_linker='NetBSD ld.elf_so'
19932  fi
19933  shlibpath_var=LD_LIBRARY_PATH
19934  shlibpath_overrides_runpath=yes
19935  hardcode_into_libs=yes
19936  ;;
19937
19938newsos6)
19939  version_type=linux
19940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19941  shlibpath_var=LD_LIBRARY_PATH
19942  shlibpath_overrides_runpath=yes
19943  ;;
19944
19945nto-qnx*)
19946  version_type=linux
19947  need_lib_prefix=no
19948  need_version=no
19949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19950  soname_spec='${libname}${release}${shared_ext}$major'
19951  shlibpath_var=LD_LIBRARY_PATH
19952  shlibpath_overrides_runpath=yes
19953  ;;
19954
19955openbsd*)
19956  version_type=sunos
19957  sys_lib_dlsearch_path_spec="/usr/lib"
19958  need_lib_prefix=no
19959  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19960  case $host_os in
19961    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19962    *)                         need_version=no  ;;
19963  esac
19964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19965  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19966  shlibpath_var=LD_LIBRARY_PATH
19967  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19968    case $host_os in
19969      openbsd2.[89] | openbsd2.[89].*)
19970	shlibpath_overrides_runpath=no
19971	;;
19972      *)
19973	shlibpath_overrides_runpath=yes
19974	;;
19975      esac
19976  else
19977    shlibpath_overrides_runpath=yes
19978  fi
19979  ;;
19980
19981os2*)
19982  libname_spec='$name'
19983  shrext_cmds=".dll"
19984  need_lib_prefix=no
19985  library_names_spec='$libname${shared_ext} $libname.a'
19986  dynamic_linker='OS/2 ld.exe'
19987  shlibpath_var=LIBPATH
19988  ;;
19989
19990osf3* | osf4* | osf5*)
19991  version_type=osf
19992  need_lib_prefix=no
19993  need_version=no
19994  soname_spec='${libname}${release}${shared_ext}$major'
19995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19996  shlibpath_var=LD_LIBRARY_PATH
19997  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19998  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19999  ;;
20000
20001rdos*)
20002  dynamic_linker=no
20003  ;;
20004
20005solaris*)
20006  version_type=linux
20007  need_lib_prefix=no
20008  need_version=no
20009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20010  soname_spec='${libname}${release}${shared_ext}$major'
20011  shlibpath_var=LD_LIBRARY_PATH
20012  shlibpath_overrides_runpath=yes
20013  hardcode_into_libs=yes
20014  # ldd complains unless libraries are executable
20015  postinstall_cmds='chmod +x $lib'
20016  ;;
20017
20018sunos4*)
20019  version_type=sunos
20020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20021  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20022  shlibpath_var=LD_LIBRARY_PATH
20023  shlibpath_overrides_runpath=yes
20024  if test "$with_gnu_ld" = yes; then
20025    need_lib_prefix=no
20026  fi
20027  need_version=yes
20028  ;;
20029
20030sysv4 | sysv4.3*)
20031  version_type=linux
20032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20033  soname_spec='${libname}${release}${shared_ext}$major'
20034  shlibpath_var=LD_LIBRARY_PATH
20035  case $host_vendor in
20036    sni)
20037      shlibpath_overrides_runpath=no
20038      need_lib_prefix=no
20039      export_dynamic_flag_spec='${wl}-Blargedynsym'
20040      runpath_var=LD_RUN_PATH
20041      ;;
20042    siemens)
20043      need_lib_prefix=no
20044      ;;
20045    motorola)
20046      need_lib_prefix=no
20047      need_version=no
20048      shlibpath_overrides_runpath=no
20049      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20050      ;;
20051  esac
20052  ;;
20053
20054sysv4*MP*)
20055  if test -d /usr/nec ;then
20056    version_type=linux
20057    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20058    soname_spec='$libname${shared_ext}.$major'
20059    shlibpath_var=LD_LIBRARY_PATH
20060  fi
20061  ;;
20062
20063sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20064  version_type=freebsd-elf
20065  need_lib_prefix=no
20066  need_version=no
20067  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20068  soname_spec='${libname}${release}${shared_ext}$major'
20069  shlibpath_var=LD_LIBRARY_PATH
20070  hardcode_into_libs=yes
20071  if test "$with_gnu_ld" = yes; then
20072    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20073    shlibpath_overrides_runpath=no
20074  else
20075    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20076    shlibpath_overrides_runpath=yes
20077    case $host_os in
20078      sco3.2v5*)
20079        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20080	;;
20081    esac
20082  fi
20083  sys_lib_dlsearch_path_spec='/usr/lib'
20084  ;;
20085
20086uts4*)
20087  version_type=linux
20088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20089  soname_spec='${libname}${release}${shared_ext}$major'
20090  shlibpath_var=LD_LIBRARY_PATH
20091  ;;
20092
20093*)
20094  dynamic_linker=no
20095  ;;
20096esac
20097{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20098echo "${ECHO_T}$dynamic_linker" >&6; }
20099test "$dynamic_linker" = no && can_build_shared=no
20100
20101variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20102if test "$GCC" = yes; then
20103  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20104fi
20105
20106{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20107echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20108hardcode_action_GCJ=
20109if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20110   test -n "$runpath_var_GCJ" || \
20111   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20112
20113  # We can hardcode non-existant directories.
20114  if test "$hardcode_direct_GCJ" != no &&
20115     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20116     # have to relink, otherwise we might link with an installed library
20117     # when we should be linking with a yet-to-be-installed one
20118     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20119     test "$hardcode_minus_L_GCJ" != no; then
20120    # Linking always hardcodes the temporary library directory.
20121    hardcode_action_GCJ=relink
20122  else
20123    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20124    hardcode_action_GCJ=immediate
20125  fi
20126else
20127  # We cannot hardcode anything, or else we can only hardcode existing
20128  # directories.
20129  hardcode_action_GCJ=unsupported
20130fi
20131{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20132echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20133
20134if test "$hardcode_action_GCJ" = relink; then
20135  # Fast installation is not supported
20136  enable_fast_install=no
20137elif test "$shlibpath_overrides_runpath" = yes ||
20138     test "$enable_shared" = no; then
20139  # Fast installation is not necessary
20140  enable_fast_install=needless
20141fi
20142
20143
20144# The else clause should only fire when bootstrapping the
20145# libtool distribution, otherwise you forgot to ship ltmain.sh
20146# with your package, and you will get complaints that there are
20147# no rules to generate ltmain.sh.
20148if test -f "$ltmain"; then
20149  # See if we are running on zsh, and set the options which allow our commands through
20150  # without removal of \ escapes.
20151  if test -n "${ZSH_VERSION+set}" ; then
20152    setopt NO_GLOB_SUBST
20153  fi
20154  # Now quote all the things that may contain metacharacters while being
20155  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20156  # variables and quote the copies for generation of the libtool script.
20157  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20158    SED SHELL STRIP \
20159    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20160    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20161    deplibs_check_method reload_flag reload_cmds need_locks \
20162    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20163    lt_cv_sys_global_symbol_to_c_name_address \
20164    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20165    old_postinstall_cmds old_postuninstall_cmds \
20166    compiler_GCJ \
20167    CC_GCJ \
20168    LD_GCJ \
20169    lt_prog_compiler_wl_GCJ \
20170    lt_prog_compiler_pic_GCJ \
20171    lt_prog_compiler_static_GCJ \
20172    lt_prog_compiler_no_builtin_flag_GCJ \
20173    export_dynamic_flag_spec_GCJ \
20174    thread_safe_flag_spec_GCJ \
20175    whole_archive_flag_spec_GCJ \
20176    enable_shared_with_static_runtimes_GCJ \
20177    old_archive_cmds_GCJ \
20178    old_archive_from_new_cmds_GCJ \
20179    predep_objects_GCJ \
20180    postdep_objects_GCJ \
20181    predeps_GCJ \
20182    postdeps_GCJ \
20183    compiler_lib_search_path_GCJ \
20184    archive_cmds_GCJ \
20185    archive_expsym_cmds_GCJ \
20186    postinstall_cmds_GCJ \
20187    postuninstall_cmds_GCJ \
20188    old_archive_from_expsyms_cmds_GCJ \
20189    allow_undefined_flag_GCJ \
20190    no_undefined_flag_GCJ \
20191    export_symbols_cmds_GCJ \
20192    hardcode_libdir_flag_spec_GCJ \
20193    hardcode_libdir_flag_spec_ld_GCJ \
20194    hardcode_libdir_separator_GCJ \
20195    hardcode_automatic_GCJ \
20196    module_cmds_GCJ \
20197    module_expsym_cmds_GCJ \
20198    lt_cv_prog_compiler_c_o_GCJ \
20199    fix_srcfile_path_GCJ \
20200    exclude_expsyms_GCJ \
20201    include_expsyms_GCJ; do
20202
20203    case $var in
20204    old_archive_cmds_GCJ | \
20205    old_archive_from_new_cmds_GCJ | \
20206    archive_cmds_GCJ | \
20207    archive_expsym_cmds_GCJ | \
20208    module_cmds_GCJ | \
20209    module_expsym_cmds_GCJ | \
20210    old_archive_from_expsyms_cmds_GCJ | \
20211    export_symbols_cmds_GCJ | \
20212    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20213    postinstall_cmds | postuninstall_cmds | \
20214    old_postinstall_cmds | old_postuninstall_cmds | \
20215    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20216      # Double-quote double-evaled strings.
20217      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20218      ;;
20219    *)
20220      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20221      ;;
20222    esac
20223  done
20224
20225  case $lt_echo in
20226  *'\$0 --fallback-echo"')
20227    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20228    ;;
20229  esac
20230
20231cfgfile="$ofile"
20232
20233  cat <<__EOF__ >> "$cfgfile"
20234# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20235
20236# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20237
20238# Shell to use when invoking shell scripts.
20239SHELL=$lt_SHELL
20240
20241# Whether or not to build shared libraries.
20242build_libtool_libs=$enable_shared
20243
20244# Whether or not to build static libraries.
20245build_old_libs=$enable_static
20246
20247# Whether or not to add -lc for building shared libraries.
20248build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20249
20250# Whether or not to disallow shared libs when runtime libs are static
20251allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20252
20253# Whether or not to optimize for fast installation.
20254fast_install=$enable_fast_install
20255
20256# The host system.
20257host_alias=$host_alias
20258host=$host
20259host_os=$host_os
20260
20261# The build system.
20262build_alias=$build_alias
20263build=$build
20264build_os=$build_os
20265
20266# An echo program that does not interpret backslashes.
20267echo=$lt_echo
20268
20269# The archiver.
20270AR=$lt_AR
20271AR_FLAGS=$lt_AR_FLAGS
20272
20273# A C compiler.
20274LTCC=$lt_LTCC
20275
20276# LTCC compiler flags.
20277LTCFLAGS=$lt_LTCFLAGS
20278
20279# A language-specific compiler.
20280CC=$lt_compiler_GCJ
20281
20282# Is the compiler the GNU C compiler?
20283with_gcc=$GCC_GCJ
20284
20285# An ERE matcher.
20286EGREP=$lt_EGREP
20287
20288# The linker used to build libraries.
20289LD=$lt_LD_GCJ
20290
20291# Whether we need hard or soft links.
20292LN_S=$lt_LN_S
20293
20294# A BSD-compatible nm program.
20295NM=$lt_NM
20296
20297# A symbol stripping program
20298STRIP=$lt_STRIP
20299
20300# Used to examine libraries when file_magic_cmd begins "file"
20301MAGIC_CMD=$MAGIC_CMD
20302
20303# Used on cygwin: DLL creation program.
20304DLLTOOL="$DLLTOOL"
20305
20306# Used on cygwin: object dumper.
20307OBJDUMP="$OBJDUMP"
20308
20309# Used on cygwin: assembler.
20310AS="$AS"
20311
20312# The name of the directory that contains temporary libtool files.
20313objdir=$objdir
20314
20315# How to create reloadable object files.
20316reload_flag=$lt_reload_flag
20317reload_cmds=$lt_reload_cmds
20318
20319# How to pass a linker flag through the compiler.
20320wl=$lt_lt_prog_compiler_wl_GCJ
20321
20322# Object file suffix (normally "o").
20323objext="$ac_objext"
20324
20325# Old archive suffix (normally "a").
20326libext="$libext"
20327
20328# Shared library suffix (normally ".so").
20329shrext_cmds='$shrext_cmds'
20330
20331# Executable file suffix (normally "").
20332exeext="$exeext"
20333
20334# Additional compiler flags for building library objects.
20335pic_flag=$lt_lt_prog_compiler_pic_GCJ
20336pic_mode=$pic_mode
20337
20338# What is the maximum length of a command?
20339max_cmd_len=$lt_cv_sys_max_cmd_len
20340
20341# Does compiler simultaneously support -c and -o options?
20342compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20343
20344# Must we lock files when doing compilation?
20345need_locks=$lt_need_locks
20346
20347# Do we need the lib prefix for modules?
20348need_lib_prefix=$need_lib_prefix
20349
20350# Do we need a version for libraries?
20351need_version=$need_version
20352
20353# Whether dlopen is supported.
20354dlopen_support=$enable_dlopen
20355
20356# Whether dlopen of programs is supported.
20357dlopen_self=$enable_dlopen_self
20358
20359# Whether dlopen of statically linked programs is supported.
20360dlopen_self_static=$enable_dlopen_self_static
20361
20362# Compiler flag to prevent dynamic linking.
20363link_static_flag=$lt_lt_prog_compiler_static_GCJ
20364
20365# Compiler flag to turn off builtin functions.
20366no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20367
20368# Compiler flag to allow reflexive dlopens.
20369export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20370
20371# Compiler flag to generate shared objects directly from archives.
20372whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20373
20374# Compiler flag to generate thread-safe objects.
20375thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20376
20377# Library versioning type.
20378version_type=$version_type
20379
20380# Format of library name prefix.
20381libname_spec=$lt_libname_spec
20382
20383# List of archive names.  First name is the real one, the rest are links.
20384# The last name is the one that the linker finds with -lNAME.
20385library_names_spec=$lt_library_names_spec
20386
20387# The coded name of the library, if different from the real name.
20388soname_spec=$lt_soname_spec
20389
20390# Commands used to build and install an old-style archive.
20391RANLIB=$lt_RANLIB
20392old_archive_cmds=$lt_old_archive_cmds_GCJ
20393old_postinstall_cmds=$lt_old_postinstall_cmds
20394old_postuninstall_cmds=$lt_old_postuninstall_cmds
20395
20396# Create an old-style archive from a shared archive.
20397old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20398
20399# Create a temporary old-style archive to link instead of a shared archive.
20400old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20401
20402# Commands used to build and install a shared archive.
20403archive_cmds=$lt_archive_cmds_GCJ
20404archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20405postinstall_cmds=$lt_postinstall_cmds
20406postuninstall_cmds=$lt_postuninstall_cmds
20407
20408# Commands used to build a loadable module (assumed same as above if empty)
20409module_cmds=$lt_module_cmds_GCJ
20410module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20411
20412# Commands to strip libraries.
20413old_striplib=$lt_old_striplib
20414striplib=$lt_striplib
20415
20416# Dependencies to place before the objects being linked to create a
20417# shared library.
20418predep_objects=$lt_predep_objects_GCJ
20419
20420# Dependencies to place after the objects being linked to create a
20421# shared library.
20422postdep_objects=$lt_postdep_objects_GCJ
20423
20424# Dependencies to place before the objects being linked to create a
20425# shared library.
20426predeps=$lt_predeps_GCJ
20427
20428# Dependencies to place after the objects being linked to create a
20429# shared library.
20430postdeps=$lt_postdeps_GCJ
20431
20432# The library search path used internally by the compiler when linking
20433# a shared library.
20434compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20435
20436# Method to check whether dependent libraries are shared objects.
20437deplibs_check_method=$lt_deplibs_check_method
20438
20439# Command to use when deplibs_check_method == file_magic.
20440file_magic_cmd=$lt_file_magic_cmd
20441
20442# Flag that allows shared libraries with undefined symbols to be built.
20443allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20444
20445# Flag that forces no undefined symbols.
20446no_undefined_flag=$lt_no_undefined_flag_GCJ
20447
20448# Commands used to finish a libtool library installation in a directory.
20449finish_cmds=$lt_finish_cmds
20450
20451# Same as above, but a single script fragment to be evaled but not shown.
20452finish_eval=$lt_finish_eval
20453
20454# Take the output of nm and produce a listing of raw symbols and C names.
20455global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20456
20457# Transform the output of nm in a proper C declaration
20458global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20459
20460# Transform the output of nm in a C name address pair
20461global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20462
20463# This is the shared library runtime path variable.
20464runpath_var=$runpath_var
20465
20466# This is the shared library path variable.
20467shlibpath_var=$shlibpath_var
20468
20469# Is shlibpath searched before the hard-coded library search path?
20470shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20471
20472# How to hardcode a shared library path into an executable.
20473hardcode_action=$hardcode_action_GCJ
20474
20475# Whether we should hardcode library paths into libraries.
20476hardcode_into_libs=$hardcode_into_libs
20477
20478# Flag to hardcode \$libdir into a binary during linking.
20479# This must work even if \$libdir does not exist.
20480hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20481
20482# If ld is used when linking, flag to hardcode \$libdir into
20483# a binary during linking. This must work even if \$libdir does
20484# not exist.
20485hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20486
20487# Whether we need a single -rpath flag with a separated argument.
20488hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20489
20490# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20491# resulting binary.
20492hardcode_direct=$hardcode_direct_GCJ
20493
20494# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20495# resulting binary.
20496hardcode_minus_L=$hardcode_minus_L_GCJ
20497
20498# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20499# the resulting binary.
20500hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20501
20502# Set to yes if building a shared library automatically hardcodes DIR into the library
20503# and all subsequent libraries and executables linked against it.
20504hardcode_automatic=$hardcode_automatic_GCJ
20505
20506# Variables whose values should be saved in libtool wrapper scripts and
20507# restored at relink time.
20508variables_saved_for_relink="$variables_saved_for_relink"
20509
20510# Whether libtool must link a program against all its dependency libraries.
20511link_all_deplibs=$link_all_deplibs_GCJ
20512
20513# Compile-time system search path for libraries
20514sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20515
20516# Run-time system search path for libraries
20517sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20518
20519# Fix the shell variable \$srcfile for the compiler.
20520fix_srcfile_path=$lt_fix_srcfile_path
20521
20522# Set to yes if exported symbols are required.
20523always_export_symbols=$always_export_symbols_GCJ
20524
20525# The commands to list exported symbols.
20526export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20527
20528# The commands to extract the exported symbol list from a shared archive.
20529extract_expsyms_cmds=$lt_extract_expsyms_cmds
20530
20531# Symbols that should not be listed in the preloaded symbols.
20532exclude_expsyms=$lt_exclude_expsyms_GCJ
20533
20534# Symbols that must always be exported.
20535include_expsyms=$lt_include_expsyms_GCJ
20536
20537# ### END LIBTOOL TAG CONFIG: $tagname
20538
20539__EOF__
20540
20541
20542else
20543  # If there is no Makefile yet, we rely on a make rule to execute
20544  # `config.status --recheck' to rerun these tests and create the
20545  # libtool script then.
20546  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20547  if test -f "$ltmain_in"; then
20548    test -f Makefile && make "$ltmain"
20549  fi
20550fi
20551
20552
20553ac_ext=c
20554ac_cpp='$CPP $CPPFLAGS'
20555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20557ac_compiler_gnu=$ac_cv_c_compiler_gnu
20558
20559CC="$lt_save_CC"
20560
20561	else
20562	  tagname=""
20563	fi
20564	;;
20565
20566      RC)
20567
20568
20569# Source file extension for RC test sources.
20570ac_ext=rc
20571
20572# Object file extension for compiled RC test sources.
20573objext=o
20574objext_RC=$objext
20575
20576# Code to be used in simple compile tests
20577lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20578
20579# Code to be used in simple link tests
20580lt_simple_link_test_code="$lt_simple_compile_test_code"
20581
20582# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20583
20584# If no C compiler was specified, use CC.
20585LTCC=${LTCC-"$CC"}
20586
20587# If no C compiler flags were specified, use CFLAGS.
20588LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20589
20590# Allow CC to be a program name with arguments.
20591compiler=$CC
20592
20593
20594# save warnings/boilerplate of simple test code
20595ac_outfile=conftest.$ac_objext
20596echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20597eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20598_lt_compiler_boilerplate=`cat conftest.err`
20599$rm conftest*
20600
20601ac_outfile=conftest.$ac_objext
20602echo "$lt_simple_link_test_code" >conftest.$ac_ext
20603eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20604_lt_linker_boilerplate=`cat conftest.err`
20605$rm conftest*
20606
20607
20608# Allow CC to be a program name with arguments.
20609lt_save_CC="$CC"
20610CC=${RC-"windres"}
20611compiler=$CC
20612compiler_RC=$CC
20613for cc_temp in $compiler""; do
20614  case $cc_temp in
20615    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20616    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20617    \-*) ;;
20618    *) break;;
20619  esac
20620done
20621cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20622
20623lt_cv_prog_compiler_c_o_RC=yes
20624
20625# The else clause should only fire when bootstrapping the
20626# libtool distribution, otherwise you forgot to ship ltmain.sh
20627# with your package, and you will get complaints that there are
20628# no rules to generate ltmain.sh.
20629if test -f "$ltmain"; then
20630  # See if we are running on zsh, and set the options which allow our commands through
20631  # without removal of \ escapes.
20632  if test -n "${ZSH_VERSION+set}" ; then
20633    setopt NO_GLOB_SUBST
20634  fi
20635  # Now quote all the things that may contain metacharacters while being
20636  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20637  # variables and quote the copies for generation of the libtool script.
20638  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20639    SED SHELL STRIP \
20640    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20641    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20642    deplibs_check_method reload_flag reload_cmds need_locks \
20643    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20644    lt_cv_sys_global_symbol_to_c_name_address \
20645    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20646    old_postinstall_cmds old_postuninstall_cmds \
20647    compiler_RC \
20648    CC_RC \
20649    LD_RC \
20650    lt_prog_compiler_wl_RC \
20651    lt_prog_compiler_pic_RC \
20652    lt_prog_compiler_static_RC \
20653    lt_prog_compiler_no_builtin_flag_RC \
20654    export_dynamic_flag_spec_RC \
20655    thread_safe_flag_spec_RC \
20656    whole_archive_flag_spec_RC \
20657    enable_shared_with_static_runtimes_RC \
20658    old_archive_cmds_RC \
20659    old_archive_from_new_cmds_RC \
20660    predep_objects_RC \
20661    postdep_objects_RC \
20662    predeps_RC \
20663    postdeps_RC \
20664    compiler_lib_search_path_RC \
20665    archive_cmds_RC \
20666    archive_expsym_cmds_RC \
20667    postinstall_cmds_RC \
20668    postuninstall_cmds_RC \
20669    old_archive_from_expsyms_cmds_RC \
20670    allow_undefined_flag_RC \
20671    no_undefined_flag_RC \
20672    export_symbols_cmds_RC \
20673    hardcode_libdir_flag_spec_RC \
20674    hardcode_libdir_flag_spec_ld_RC \
20675    hardcode_libdir_separator_RC \
20676    hardcode_automatic_RC \
20677    module_cmds_RC \
20678    module_expsym_cmds_RC \
20679    lt_cv_prog_compiler_c_o_RC \
20680    fix_srcfile_path_RC \
20681    exclude_expsyms_RC \
20682    include_expsyms_RC; do
20683
20684    case $var in
20685    old_archive_cmds_RC | \
20686    old_archive_from_new_cmds_RC | \
20687    archive_cmds_RC | \
20688    archive_expsym_cmds_RC | \
20689    module_cmds_RC | \
20690    module_expsym_cmds_RC | \
20691    old_archive_from_expsyms_cmds_RC | \
20692    export_symbols_cmds_RC | \
20693    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20694    postinstall_cmds | postuninstall_cmds | \
20695    old_postinstall_cmds | old_postuninstall_cmds | \
20696    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20697      # Double-quote double-evaled strings.
20698      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20699      ;;
20700    *)
20701      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20702      ;;
20703    esac
20704  done
20705
20706  case $lt_echo in
20707  *'\$0 --fallback-echo"')
20708    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20709    ;;
20710  esac
20711
20712cfgfile="$ofile"
20713
20714  cat <<__EOF__ >> "$cfgfile"
20715# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20716
20717# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20718
20719# Shell to use when invoking shell scripts.
20720SHELL=$lt_SHELL
20721
20722# Whether or not to build shared libraries.
20723build_libtool_libs=$enable_shared
20724
20725# Whether or not to build static libraries.
20726build_old_libs=$enable_static
20727
20728# Whether or not to add -lc for building shared libraries.
20729build_libtool_need_lc=$archive_cmds_need_lc_RC
20730
20731# Whether or not to disallow shared libs when runtime libs are static
20732allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20733
20734# Whether or not to optimize for fast installation.
20735fast_install=$enable_fast_install
20736
20737# The host system.
20738host_alias=$host_alias
20739host=$host
20740host_os=$host_os
20741
20742# The build system.
20743build_alias=$build_alias
20744build=$build
20745build_os=$build_os
20746
20747# An echo program that does not interpret backslashes.
20748echo=$lt_echo
20749
20750# The archiver.
20751AR=$lt_AR
20752AR_FLAGS=$lt_AR_FLAGS
20753
20754# A C compiler.
20755LTCC=$lt_LTCC
20756
20757# LTCC compiler flags.
20758LTCFLAGS=$lt_LTCFLAGS
20759
20760# A language-specific compiler.
20761CC=$lt_compiler_RC
20762
20763# Is the compiler the GNU C compiler?
20764with_gcc=$GCC_RC
20765
20766# An ERE matcher.
20767EGREP=$lt_EGREP
20768
20769# The linker used to build libraries.
20770LD=$lt_LD_RC
20771
20772# Whether we need hard or soft links.
20773LN_S=$lt_LN_S
20774
20775# A BSD-compatible nm program.
20776NM=$lt_NM
20777
20778# A symbol stripping program
20779STRIP=$lt_STRIP
20780
20781# Used to examine libraries when file_magic_cmd begins "file"
20782MAGIC_CMD=$MAGIC_CMD
20783
20784# Used on cygwin: DLL creation program.
20785DLLTOOL="$DLLTOOL"
20786
20787# Used on cygwin: object dumper.
20788OBJDUMP="$OBJDUMP"
20789
20790# Used on cygwin: assembler.
20791AS="$AS"
20792
20793# The name of the directory that contains temporary libtool files.
20794objdir=$objdir
20795
20796# How to create reloadable object files.
20797reload_flag=$lt_reload_flag
20798reload_cmds=$lt_reload_cmds
20799
20800# How to pass a linker flag through the compiler.
20801wl=$lt_lt_prog_compiler_wl_RC
20802
20803# Object file suffix (normally "o").
20804objext="$ac_objext"
20805
20806# Old archive suffix (normally "a").
20807libext="$libext"
20808
20809# Shared library suffix (normally ".so").
20810shrext_cmds='$shrext_cmds'
20811
20812# Executable file suffix (normally "").
20813exeext="$exeext"
20814
20815# Additional compiler flags for building library objects.
20816pic_flag=$lt_lt_prog_compiler_pic_RC
20817pic_mode=$pic_mode
20818
20819# What is the maximum length of a command?
20820max_cmd_len=$lt_cv_sys_max_cmd_len
20821
20822# Does compiler simultaneously support -c and -o options?
20823compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20824
20825# Must we lock files when doing compilation?
20826need_locks=$lt_need_locks
20827
20828# Do we need the lib prefix for modules?
20829need_lib_prefix=$need_lib_prefix
20830
20831# Do we need a version for libraries?
20832need_version=$need_version
20833
20834# Whether dlopen is supported.
20835dlopen_support=$enable_dlopen
20836
20837# Whether dlopen of programs is supported.
20838dlopen_self=$enable_dlopen_self
20839
20840# Whether dlopen of statically linked programs is supported.
20841dlopen_self_static=$enable_dlopen_self_static
20842
20843# Compiler flag to prevent dynamic linking.
20844link_static_flag=$lt_lt_prog_compiler_static_RC
20845
20846# Compiler flag to turn off builtin functions.
20847no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20848
20849# Compiler flag to allow reflexive dlopens.
20850export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20851
20852# Compiler flag to generate shared objects directly from archives.
20853whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20854
20855# Compiler flag to generate thread-safe objects.
20856thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20857
20858# Library versioning type.
20859version_type=$version_type
20860
20861# Format of library name prefix.
20862libname_spec=$lt_libname_spec
20863
20864# List of archive names.  First name is the real one, the rest are links.
20865# The last name is the one that the linker finds with -lNAME.
20866library_names_spec=$lt_library_names_spec
20867
20868# The coded name of the library, if different from the real name.
20869soname_spec=$lt_soname_spec
20870
20871# Commands used to build and install an old-style archive.
20872RANLIB=$lt_RANLIB
20873old_archive_cmds=$lt_old_archive_cmds_RC
20874old_postinstall_cmds=$lt_old_postinstall_cmds
20875old_postuninstall_cmds=$lt_old_postuninstall_cmds
20876
20877# Create an old-style archive from a shared archive.
20878old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20879
20880# Create a temporary old-style archive to link instead of a shared archive.
20881old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20882
20883# Commands used to build and install a shared archive.
20884archive_cmds=$lt_archive_cmds_RC
20885archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20886postinstall_cmds=$lt_postinstall_cmds
20887postuninstall_cmds=$lt_postuninstall_cmds
20888
20889# Commands used to build a loadable module (assumed same as above if empty)
20890module_cmds=$lt_module_cmds_RC
20891module_expsym_cmds=$lt_module_expsym_cmds_RC
20892
20893# Commands to strip libraries.
20894old_striplib=$lt_old_striplib
20895striplib=$lt_striplib
20896
20897# Dependencies to place before the objects being linked to create a
20898# shared library.
20899predep_objects=$lt_predep_objects_RC
20900
20901# Dependencies to place after the objects being linked to create a
20902# shared library.
20903postdep_objects=$lt_postdep_objects_RC
20904
20905# Dependencies to place before the objects being linked to create a
20906# shared library.
20907predeps=$lt_predeps_RC
20908
20909# Dependencies to place after the objects being linked to create a
20910# shared library.
20911postdeps=$lt_postdeps_RC
20912
20913# The library search path used internally by the compiler when linking
20914# a shared library.
20915compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20916
20917# Method to check whether dependent libraries are shared objects.
20918deplibs_check_method=$lt_deplibs_check_method
20919
20920# Command to use when deplibs_check_method == file_magic.
20921file_magic_cmd=$lt_file_magic_cmd
20922
20923# Flag that allows shared libraries with undefined symbols to be built.
20924allow_undefined_flag=$lt_allow_undefined_flag_RC
20925
20926# Flag that forces no undefined symbols.
20927no_undefined_flag=$lt_no_undefined_flag_RC
20928
20929# Commands used to finish a libtool library installation in a directory.
20930finish_cmds=$lt_finish_cmds
20931
20932# Same as above, but a single script fragment to be evaled but not shown.
20933finish_eval=$lt_finish_eval
20934
20935# Take the output of nm and produce a listing of raw symbols and C names.
20936global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20937
20938# Transform the output of nm in a proper C declaration
20939global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20940
20941# Transform the output of nm in a C name address pair
20942global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20943
20944# This is the shared library runtime path variable.
20945runpath_var=$runpath_var
20946
20947# This is the shared library path variable.
20948shlibpath_var=$shlibpath_var
20949
20950# Is shlibpath searched before the hard-coded library search path?
20951shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20952
20953# How to hardcode a shared library path into an executable.
20954hardcode_action=$hardcode_action_RC
20955
20956# Whether we should hardcode library paths into libraries.
20957hardcode_into_libs=$hardcode_into_libs
20958
20959# Flag to hardcode \$libdir into a binary during linking.
20960# This must work even if \$libdir does not exist.
20961hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20962
20963# If ld is used when linking, flag to hardcode \$libdir into
20964# a binary during linking. This must work even if \$libdir does
20965# not exist.
20966hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20967
20968# Whether we need a single -rpath flag with a separated argument.
20969hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20970
20971# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20972# resulting binary.
20973hardcode_direct=$hardcode_direct_RC
20974
20975# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20976# resulting binary.
20977hardcode_minus_L=$hardcode_minus_L_RC
20978
20979# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20980# the resulting binary.
20981hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20982
20983# Set to yes if building a shared library automatically hardcodes DIR into the library
20984# and all subsequent libraries and executables linked against it.
20985hardcode_automatic=$hardcode_automatic_RC
20986
20987# Variables whose values should be saved in libtool wrapper scripts and
20988# restored at relink time.
20989variables_saved_for_relink="$variables_saved_for_relink"
20990
20991# Whether libtool must link a program against all its dependency libraries.
20992link_all_deplibs=$link_all_deplibs_RC
20993
20994# Compile-time system search path for libraries
20995sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20996
20997# Run-time system search path for libraries
20998sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20999
21000# Fix the shell variable \$srcfile for the compiler.
21001fix_srcfile_path=$lt_fix_srcfile_path
21002
21003# Set to yes if exported symbols are required.
21004always_export_symbols=$always_export_symbols_RC
21005
21006# The commands to list exported symbols.
21007export_symbols_cmds=$lt_export_symbols_cmds_RC
21008
21009# The commands to extract the exported symbol list from a shared archive.
21010extract_expsyms_cmds=$lt_extract_expsyms_cmds
21011
21012# Symbols that should not be listed in the preloaded symbols.
21013exclude_expsyms=$lt_exclude_expsyms_RC
21014
21015# Symbols that must always be exported.
21016include_expsyms=$lt_include_expsyms_RC
21017
21018# ### END LIBTOOL TAG CONFIG: $tagname
21019
21020__EOF__
21021
21022
21023else
21024  # If there is no Makefile yet, we rely on a make rule to execute
21025  # `config.status --recheck' to rerun these tests and create the
21026  # libtool script then.
21027  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21028  if test -f "$ltmain_in"; then
21029    test -f Makefile && make "$ltmain"
21030  fi
21031fi
21032
21033
21034ac_ext=c
21035ac_cpp='$CPP $CPPFLAGS'
21036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21038ac_compiler_gnu=$ac_cv_c_compiler_gnu
21039
21040CC="$lt_save_CC"
21041
21042	;;
21043
21044      *)
21045	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21046echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21047   { (exit 1); exit 1; }; }
21048	;;
21049      esac
21050
21051      # Append the new tag name to the list of available tags.
21052      if test -n "$tagname" ; then
21053      available_tags="$available_tags $tagname"
21054    fi
21055    fi
21056  done
21057  IFS="$lt_save_ifs"
21058
21059  # Now substitute the updated list of available tags.
21060  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21061    mv "${ofile}T" "$ofile"
21062    chmod +x "$ofile"
21063  else
21064    rm -f "${ofile}T"
21065    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21066echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21067   { (exit 1); exit 1; }; }
21068  fi
21069fi
21070
21071
21072
21073# This can be used to rebuild libtool when needed
21074LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21075
21076# Always use our own libtool.
21077LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21078
21079# Prevent multiple expansion
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101# Extract the first word of "'gnome-moz-remote'", so it can be a program name with args.
21102set dummy 'gnome-moz-remote'; ac_word=$2
21103{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21105if test "${ac_cv_prog_HAVE_GNOME_MOZ_REMOTE+set}" = set; then
21106  echo $ECHO_N "(cached) $ECHO_C" >&6
21107else
21108  if test -n "$HAVE_GNOME_MOZ_REMOTE"; then
21109  ac_cv_prog_HAVE_GNOME_MOZ_REMOTE="$HAVE_GNOME_MOZ_REMOTE" # Let the user override the test.
21110else
21111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21112for as_dir in $PATH
21113do
21114  IFS=$as_save_IFS
21115  test -z "$as_dir" && as_dir=.
21116  for ac_exec_ext in '' $ac_executable_extensions; do
21117  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21118    ac_cv_prog_HAVE_GNOME_MOZ_REMOTE="yes"
21119    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21120    break 2
21121  fi
21122done
21123done
21124IFS=$as_save_IFS
21125
21126  test -z "$ac_cv_prog_HAVE_GNOME_MOZ_REMOTE" && ac_cv_prog_HAVE_GNOME_MOZ_REMOTE="no"
21127fi
21128fi
21129HAVE_GNOME_MOZ_REMOTE=$ac_cv_prog_HAVE_GNOME_MOZ_REMOTE
21130if test -n "$HAVE_GNOME_MOZ_REMOTE"; then
21131  { echo "$as_me:$LINENO: result: $HAVE_GNOME_MOZ_REMOTE" >&5
21132echo "${ECHO_T}$HAVE_GNOME_MOZ_REMOTE" >&6; }
21133else
21134  { echo "$as_me:$LINENO: result: no" >&5
21135echo "${ECHO_T}no" >&6; }
21136fi
21137
21138
21139
21140{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21141echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21142if test "${ac_cv_c_bigendian+set}" = set; then
21143  echo $ECHO_N "(cached) $ECHO_C" >&6
21144else
21145  # See if sys/param.h defines the BYTE_ORDER macro.
21146cat >conftest.$ac_ext <<_ACEOF
21147/* confdefs.h.  */
21148_ACEOF
21149cat confdefs.h >>conftest.$ac_ext
21150cat >>conftest.$ac_ext <<_ACEOF
21151/* end confdefs.h.  */
21152#include <sys/types.h>
21153#include <sys/param.h>
21154
21155int
21156main ()
21157{
21158#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21159	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21160 bogus endian macros
21161#endif
21162
21163  ;
21164  return 0;
21165}
21166_ACEOF
21167rm -f conftest.$ac_objext
21168if { (ac_try="$ac_compile"
21169case "(($ac_try" in
21170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171  *) ac_try_echo=$ac_try;;
21172esac
21173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21174  (eval "$ac_compile") 2>conftest.er1
21175  ac_status=$?
21176  grep -v '^ *+' conftest.er1 >conftest.err
21177  rm -f conftest.er1
21178  cat conftest.err >&5
21179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180  (exit $ac_status); } && {
21181	 test -z "$ac_c_werror_flag" ||
21182	 test ! -s conftest.err
21183       } && test -s conftest.$ac_objext; then
21184  # It does; now see whether it defined to BIG_ENDIAN or not.
21185cat >conftest.$ac_ext <<_ACEOF
21186/* confdefs.h.  */
21187_ACEOF
21188cat confdefs.h >>conftest.$ac_ext
21189cat >>conftest.$ac_ext <<_ACEOF
21190/* end confdefs.h.  */
21191#include <sys/types.h>
21192#include <sys/param.h>
21193
21194int
21195main ()
21196{
21197#if BYTE_ORDER != BIG_ENDIAN
21198 not big endian
21199#endif
21200
21201  ;
21202  return 0;
21203}
21204_ACEOF
21205rm -f conftest.$ac_objext
21206if { (ac_try="$ac_compile"
21207case "(($ac_try" in
21208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21209  *) ac_try_echo=$ac_try;;
21210esac
21211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21212  (eval "$ac_compile") 2>conftest.er1
21213  ac_status=$?
21214  grep -v '^ *+' conftest.er1 >conftest.err
21215  rm -f conftest.er1
21216  cat conftest.err >&5
21217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218  (exit $ac_status); } && {
21219	 test -z "$ac_c_werror_flag" ||
21220	 test ! -s conftest.err
21221       } && test -s conftest.$ac_objext; then
21222  ac_cv_c_bigendian=yes
21223else
21224  echo "$as_me: failed program was:" >&5
21225sed 's/^/| /' conftest.$ac_ext >&5
21226
21227	ac_cv_c_bigendian=no
21228fi
21229
21230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21231else
21232  echo "$as_me: failed program was:" >&5
21233sed 's/^/| /' conftest.$ac_ext >&5
21234
21235	# It does not; compile a test program.
21236if test "$cross_compiling" = yes; then
21237  # try to guess the endianness by grepping values into an object file
21238  ac_cv_c_bigendian=unknown
21239  cat >conftest.$ac_ext <<_ACEOF
21240/* confdefs.h.  */
21241_ACEOF
21242cat confdefs.h >>conftest.$ac_ext
21243cat >>conftest.$ac_ext <<_ACEOF
21244/* end confdefs.h.  */
21245short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21246short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21247void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21248short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21249short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21250void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21251int
21252main ()
21253{
21254 _ascii (); _ebcdic ();
21255  ;
21256  return 0;
21257}
21258_ACEOF
21259rm -f conftest.$ac_objext
21260if { (ac_try="$ac_compile"
21261case "(($ac_try" in
21262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263  *) ac_try_echo=$ac_try;;
21264esac
21265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266  (eval "$ac_compile") 2>conftest.er1
21267  ac_status=$?
21268  grep -v '^ *+' conftest.er1 >conftest.err
21269  rm -f conftest.er1
21270  cat conftest.err >&5
21271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272  (exit $ac_status); } && {
21273	 test -z "$ac_c_werror_flag" ||
21274	 test ! -s conftest.err
21275       } && test -s conftest.$ac_objext; then
21276  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21277  ac_cv_c_bigendian=yes
21278fi
21279if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21280  if test "$ac_cv_c_bigendian" = unknown; then
21281    ac_cv_c_bigendian=no
21282  else
21283    # finding both strings is unlikely to happen, but who knows?
21284    ac_cv_c_bigendian=unknown
21285  fi
21286fi
21287else
21288  echo "$as_me: failed program was:" >&5
21289sed 's/^/| /' conftest.$ac_ext >&5
21290
21291
21292fi
21293
21294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21295else
21296  cat >conftest.$ac_ext <<_ACEOF
21297/* confdefs.h.  */
21298_ACEOF
21299cat confdefs.h >>conftest.$ac_ext
21300cat >>conftest.$ac_ext <<_ACEOF
21301/* end confdefs.h.  */
21302$ac_includes_default
21303int
21304main ()
21305{
21306
21307  /* Are we little or big endian?  From Harbison&Steele.  */
21308  union
21309  {
21310    long int l;
21311    char c[sizeof (long int)];
21312  } u;
21313  u.l = 1;
21314  return u.c[sizeof (long int) - 1] == 1;
21315
21316  ;
21317  return 0;
21318}
21319_ACEOF
21320rm -f conftest$ac_exeext
21321if { (ac_try="$ac_link"
21322case "(($ac_try" in
21323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21324  *) ac_try_echo=$ac_try;;
21325esac
21326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21327  (eval "$ac_link") 2>&5
21328  ac_status=$?
21329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21331  { (case "(($ac_try" in
21332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21333  *) ac_try_echo=$ac_try;;
21334esac
21335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21336  (eval "$ac_try") 2>&5
21337  ac_status=$?
21338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339  (exit $ac_status); }; }; then
21340  ac_cv_c_bigendian=no
21341else
21342  echo "$as_me: program exited with status $ac_status" >&5
21343echo "$as_me: failed program was:" >&5
21344sed 's/^/| /' conftest.$ac_ext >&5
21345
21346( exit $ac_status )
21347ac_cv_c_bigendian=yes
21348fi
21349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21350fi
21351
21352
21353fi
21354
21355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21356fi
21357{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21358echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21359case $ac_cv_c_bigendian in
21360  yes)
21361
21362cat >>confdefs.h <<\_ACEOF
21363#define WORDS_BIGENDIAN 1
21364_ACEOF
21365 ;;
21366  no)
21367     ;;
21368  *)
21369    { { echo "$as_me:$LINENO: error: unknown endianness
21370presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21371echo "$as_me: error: unknown endianness
21372presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21373   { (exit 1); exit 1; }; } ;;
21374esac
21375
21376
21377
21378for ac_func in strchr
21379do
21380as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21381{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21382echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21383if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21384  echo $ECHO_N "(cached) $ECHO_C" >&6
21385else
21386  cat >conftest.$ac_ext <<_ACEOF
21387/* confdefs.h.  */
21388_ACEOF
21389cat confdefs.h >>conftest.$ac_ext
21390cat >>conftest.$ac_ext <<_ACEOF
21391/* end confdefs.h.  */
21392/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21393   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21394#define $ac_func innocuous_$ac_func
21395
21396/* System header to define __stub macros and hopefully few prototypes,
21397    which can conflict with char $ac_func (); below.
21398    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21399    <limits.h> exists even on freestanding compilers.  */
21400
21401#ifdef __STDC__
21402# include <limits.h>
21403#else
21404# include <assert.h>
21405#endif
21406
21407#undef $ac_func
21408
21409/* Override any GCC internal prototype to avoid an error.
21410   Use char because int might match the return type of a GCC
21411   builtin and then its argument prototype would still apply.  */
21412#ifdef __cplusplus
21413extern "C"
21414#endif
21415char $ac_func ();
21416/* The GNU C library defines this for functions which it implements
21417    to always fail with ENOSYS.  Some functions are actually named
21418    something starting with __ and the normal name is an alias.  */
21419#if defined __stub_$ac_func || defined __stub___$ac_func
21420choke me
21421#endif
21422
21423int
21424main ()
21425{
21426return $ac_func ();
21427  ;
21428  return 0;
21429}
21430_ACEOF
21431rm -f conftest.$ac_objext conftest$ac_exeext
21432if { (ac_try="$ac_link"
21433case "(($ac_try" in
21434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435  *) ac_try_echo=$ac_try;;
21436esac
21437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438  (eval "$ac_link") 2>conftest.er1
21439  ac_status=$?
21440  grep -v '^ *+' conftest.er1 >conftest.err
21441  rm -f conftest.er1
21442  cat conftest.err >&5
21443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444  (exit $ac_status); } && {
21445	 test -z "$ac_c_werror_flag" ||
21446	 test ! -s conftest.err
21447       } && test -s conftest$ac_exeext &&
21448       $as_test_x conftest$ac_exeext; then
21449  eval "$as_ac_var=yes"
21450else
21451  echo "$as_me: failed program was:" >&5
21452sed 's/^/| /' conftest.$ac_ext >&5
21453
21454	eval "$as_ac_var=no"
21455fi
21456
21457rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21458      conftest$ac_exeext conftest.$ac_ext
21459fi
21460ac_res=`eval echo '${'$as_ac_var'}'`
21461	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21462echo "${ECHO_T}$ac_res" >&6; }
21463if test `eval echo '${'$as_ac_var'}'` = yes; then
21464  cat >>confdefs.h <<_ACEOF
21465#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21466_ACEOF
21467
21468fi
21469done
21470
21471
21472for ac_func in madvise
21473do
21474as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21475{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21476echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21477if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21478  echo $ECHO_N "(cached) $ECHO_C" >&6
21479else
21480  cat >conftest.$ac_ext <<_ACEOF
21481/* confdefs.h.  */
21482_ACEOF
21483cat confdefs.h >>conftest.$ac_ext
21484cat >>conftest.$ac_ext <<_ACEOF
21485/* end confdefs.h.  */
21486/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21487   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21488#define $ac_func innocuous_$ac_func
21489
21490/* System header to define __stub macros and hopefully few prototypes,
21491    which can conflict with char $ac_func (); below.
21492    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21493    <limits.h> exists even on freestanding compilers.  */
21494
21495#ifdef __STDC__
21496# include <limits.h>
21497#else
21498# include <assert.h>
21499#endif
21500
21501#undef $ac_func
21502
21503/* Override any GCC internal prototype to avoid an error.
21504   Use char because int might match the return type of a GCC
21505   builtin and then its argument prototype would still apply.  */
21506#ifdef __cplusplus
21507extern "C"
21508#endif
21509char $ac_func ();
21510/* The GNU C library defines this for functions which it implements
21511    to always fail with ENOSYS.  Some functions are actually named
21512    something starting with __ and the normal name is an alias.  */
21513#if defined __stub_$ac_func || defined __stub___$ac_func
21514choke me
21515#endif
21516
21517int
21518main ()
21519{
21520return $ac_func ();
21521  ;
21522  return 0;
21523}
21524_ACEOF
21525rm -f conftest.$ac_objext conftest$ac_exeext
21526if { (ac_try="$ac_link"
21527case "(($ac_try" in
21528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529  *) ac_try_echo=$ac_try;;
21530esac
21531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532  (eval "$ac_link") 2>conftest.er1
21533  ac_status=$?
21534  grep -v '^ *+' conftest.er1 >conftest.err
21535  rm -f conftest.er1
21536  cat conftest.err >&5
21537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538  (exit $ac_status); } && {
21539	 test -z "$ac_c_werror_flag" ||
21540	 test ! -s conftest.err
21541       } && test -s conftest$ac_exeext &&
21542       $as_test_x conftest$ac_exeext; then
21543  eval "$as_ac_var=yes"
21544else
21545  echo "$as_me: failed program was:" >&5
21546sed 's/^/| /' conftest.$ac_ext >&5
21547
21548	eval "$as_ac_var=no"
21549fi
21550
21551rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21552      conftest$ac_exeext conftest.$ac_ext
21553fi
21554ac_res=`eval echo '${'$as_ac_var'}'`
21555	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21556echo "${ECHO_T}$ac_res" >&6; }
21557if test `eval echo '${'$as_ac_var'}'` = yes; then
21558  cat >>confdefs.h <<_ACEOF
21559#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21560_ACEOF
21561
21562fi
21563done
21564
21565
21566ALL_LINGUAS="de el es_ES fr hu it ja pl ru en_AU"
21567
21568
21569        MKINSTALLDIRS=
21570  if test -n "$ac_aux_dir"; then
21571    case "$ac_aux_dir" in
21572      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
21573      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
21574    esac
21575  fi
21576  if test -z "$MKINSTALLDIRS"; then
21577    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
21578  fi
21579
21580
21581
21582  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
21583echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
21584    # Check whether --enable-nls was given.
21585if test "${enable_nls+set}" = set; then
21586  enableval=$enable_nls; USE_NLS=$enableval
21587else
21588  USE_NLS=yes
21589fi
21590
21591  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
21592echo "${ECHO_T}$USE_NLS" >&6; }
21593
21594
21595
21596
21597
21598
21599# Prepare PATH_SEPARATOR.
21600# The user is always right.
21601if test "${PATH_SEPARATOR+set}" != set; then
21602  echo "#! /bin/sh" >conf$$.sh
21603  echo  "exit 0"   >>conf$$.sh
21604  chmod +x conf$$.sh
21605  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21606    PATH_SEPARATOR=';'
21607  else
21608    PATH_SEPARATOR=:
21609  fi
21610  rm -f conf$$.sh
21611fi
21612
21613# Find out how to test for executable files. Don't use a zero-byte file,
21614# as systems may use methods other than mode bits to determine executability.
21615cat >conf$$.file <<_ASEOF
21616#! /bin/sh
21617exit 0
21618_ASEOF
21619chmod +x conf$$.file
21620if test -x conf$$.file >/dev/null 2>&1; then
21621  ac_executable_p="test -x"
21622else
21623  ac_executable_p="test -f"
21624fi
21625rm -f conf$$.file
21626
21627# Extract the first word of "msgfmt", so it can be a program name with args.
21628set dummy msgfmt; ac_word=$2
21629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21631if test "${ac_cv_path_MSGFMT+set}" = set; then
21632  echo $ECHO_N "(cached) $ECHO_C" >&6
21633else
21634  case "$MSGFMT" in
21635  [\\/]* | ?:[\\/]*)
21636    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21637    ;;
21638  *)
21639    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21640    for ac_dir in $PATH; do
21641      IFS="$ac_save_IFS"
21642      test -z "$ac_dir" && ac_dir=.
21643      for ac_exec_ext in '' $ac_executable_extensions; do
21644        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21645          echo "$as_me: trying $ac_dir/$ac_word..." >&5
21646          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
21647     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21648            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
21649            break 2
21650          fi
21651        fi
21652      done
21653    done
21654    IFS="$ac_save_IFS"
21655  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
21656    ;;
21657esac
21658fi
21659MSGFMT="$ac_cv_path_MSGFMT"
21660if test "$MSGFMT" != ":"; then
21661  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
21662echo "${ECHO_T}$MSGFMT" >&6; }
21663else
21664  { echo "$as_me:$LINENO: result: no" >&5
21665echo "${ECHO_T}no" >&6; }
21666fi
21667
21668  # Extract the first word of "gmsgfmt", so it can be a program name with args.
21669set dummy gmsgfmt; ac_word=$2
21670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21672if test "${ac_cv_path_GMSGFMT+set}" = set; then
21673  echo $ECHO_N "(cached) $ECHO_C" >&6
21674else
21675  case $GMSGFMT in
21676  [\\/]* | ?:[\\/]*)
21677  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21678  ;;
21679  *)
21680  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21681for as_dir in $PATH
21682do
21683  IFS=$as_save_IFS
21684  test -z "$as_dir" && as_dir=.
21685  for ac_exec_ext in '' $ac_executable_extensions; do
21686  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21687    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21688    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21689    break 2
21690  fi
21691done
21692done
21693IFS=$as_save_IFS
21694
21695  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
21696  ;;
21697esac
21698fi
21699GMSGFMT=$ac_cv_path_GMSGFMT
21700if test -n "$GMSGFMT"; then
21701  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
21702echo "${ECHO_T}$GMSGFMT" >&6; }
21703else
21704  { echo "$as_me:$LINENO: result: no" >&5
21705echo "${ECHO_T}no" >&6; }
21706fi
21707
21708
21709
21710
21711# Prepare PATH_SEPARATOR.
21712# The user is always right.
21713if test "${PATH_SEPARATOR+set}" != set; then
21714  echo "#! /bin/sh" >conf$$.sh
21715  echo  "exit 0"   >>conf$$.sh
21716  chmod +x conf$$.sh
21717  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21718    PATH_SEPARATOR=';'
21719  else
21720    PATH_SEPARATOR=:
21721  fi
21722  rm -f conf$$.sh
21723fi
21724
21725# Find out how to test for executable files. Don't use a zero-byte file,
21726# as systems may use methods other than mode bits to determine executability.
21727cat >conf$$.file <<_ASEOF
21728#! /bin/sh
21729exit 0
21730_ASEOF
21731chmod +x conf$$.file
21732if test -x conf$$.file >/dev/null 2>&1; then
21733  ac_executable_p="test -x"
21734else
21735  ac_executable_p="test -f"
21736fi
21737rm -f conf$$.file
21738
21739# Extract the first word of "xgettext", so it can be a program name with args.
21740set dummy xgettext; ac_word=$2
21741{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21743if test "${ac_cv_path_XGETTEXT+set}" = set; then
21744  echo $ECHO_N "(cached) $ECHO_C" >&6
21745else
21746  case "$XGETTEXT" in
21747  [\\/]* | ?:[\\/]*)
21748    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21749    ;;
21750  *)
21751    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21752    for ac_dir in $PATH; do
21753      IFS="$ac_save_IFS"
21754      test -z "$ac_dir" && ac_dir=.
21755      for ac_exec_ext in '' $ac_executable_extensions; do
21756        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21757          echo "$as_me: trying $ac_dir/$ac_word..." >&5
21758          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
21759     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21760            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
21761            break 2
21762          fi
21763        fi
21764      done
21765    done
21766    IFS="$ac_save_IFS"
21767  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21768    ;;
21769esac
21770fi
21771XGETTEXT="$ac_cv_path_XGETTEXT"
21772if test "$XGETTEXT" != ":"; then
21773  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21774echo "${ECHO_T}$XGETTEXT" >&6; }
21775else
21776  { echo "$as_me:$LINENO: result: no" >&5
21777echo "${ECHO_T}no" >&6; }
21778fi
21779
21780    rm -f messages.po
21781
21782
21783# Prepare PATH_SEPARATOR.
21784# The user is always right.
21785if test "${PATH_SEPARATOR+set}" != set; then
21786  echo "#! /bin/sh" >conf$$.sh
21787  echo  "exit 0"   >>conf$$.sh
21788  chmod +x conf$$.sh
21789  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21790    PATH_SEPARATOR=';'
21791  else
21792    PATH_SEPARATOR=:
21793  fi
21794  rm -f conf$$.sh
21795fi
21796
21797# Find out how to test for executable files. Don't use a zero-byte file,
21798# as systems may use methods other than mode bits to determine executability.
21799cat >conf$$.file <<_ASEOF
21800#! /bin/sh
21801exit 0
21802_ASEOF
21803chmod +x conf$$.file
21804if test -x conf$$.file >/dev/null 2>&1; then
21805  ac_executable_p="test -x"
21806else
21807  ac_executable_p="test -f"
21808fi
21809rm -f conf$$.file
21810
21811# Extract the first word of "msgmerge", so it can be a program name with args.
21812set dummy msgmerge; ac_word=$2
21813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21815if test "${ac_cv_path_MSGMERGE+set}" = set; then
21816  echo $ECHO_N "(cached) $ECHO_C" >&6
21817else
21818  case "$MSGMERGE" in
21819  [\\/]* | ?:[\\/]*)
21820    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
21821    ;;
21822  *)
21823    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21824    for ac_dir in $PATH; do
21825      IFS="$ac_save_IFS"
21826      test -z "$ac_dir" && ac_dir=.
21827      for ac_exec_ext in '' $ac_executable_extensions; do
21828        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21829          echo "$as_me: trying $ac_dir/$ac_word..." >&5
21830          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
21831            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
21832            break 2
21833          fi
21834        fi
21835      done
21836    done
21837    IFS="$ac_save_IFS"
21838  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
21839    ;;
21840esac
21841fi
21842MSGMERGE="$ac_cv_path_MSGMERGE"
21843if test "$MSGMERGE" != ":"; then
21844  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21845echo "${ECHO_T}$MSGMERGE" >&6; }
21846else
21847  { echo "$as_me:$LINENO: result: no" >&5
21848echo "${ECHO_T}no" >&6; }
21849fi
21850
21851
21852      if test "$GMSGFMT" != ":"; then
21853            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
21854       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21855      : ;
21856    else
21857      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
21858      { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
21859echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
21860      GMSGFMT=":"
21861    fi
21862  fi
21863
21864      if test "$XGETTEXT" != ":"; then
21865            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
21866       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21867      : ;
21868    else
21869      { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
21870echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
21871      XGETTEXT=":"
21872    fi
21873        rm -f messages.po
21874  fi
21875
21876  ac_config_commands="$ac_config_commands default-1"
21877
21878
21879
21880    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
21881echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
21882if test "${ac_cv_gnu_library_2+set}" = set; then
21883  echo $ECHO_N "(cached) $ECHO_C" >&6
21884else
21885  cat >conftest.$ac_ext <<_ACEOF
21886/* confdefs.h.  */
21887_ACEOF
21888cat confdefs.h >>conftest.$ac_ext
21889cat >>conftest.$ac_ext <<_ACEOF
21890/* end confdefs.h.  */
21891
21892#include <features.h>
21893#ifdef __GNU_LIBRARY__
21894 #if (__GLIBC__ >= 2)
21895  Lucky GNU user
21896 #endif
21897#endif
21898
21899_ACEOF
21900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21901  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
21902  ac_cv_gnu_library_2=yes
21903else
21904  ac_cv_gnu_library_2=no
21905fi
21906rm -f conftest*
21907
21908
21909
21910fi
21911{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
21912echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
21913
21914    GLIBC2="$ac_cv_gnu_library_2"
21915
21916
21917if test -n "$ac_tool_prefix"; then
21918  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
21919set dummy ${ac_tool_prefix}ranlib; ac_word=$2
21920{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21922if test "${ac_cv_prog_RANLIB+set}" = set; then
21923  echo $ECHO_N "(cached) $ECHO_C" >&6
21924else
21925  if test -n "$RANLIB"; then
21926  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
21927else
21928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21929for as_dir in $PATH
21930do
21931  IFS=$as_save_IFS
21932  test -z "$as_dir" && as_dir=.
21933  for ac_exec_ext in '' $ac_executable_extensions; do
21934  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21935    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
21936    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21937    break 2
21938  fi
21939done
21940done
21941IFS=$as_save_IFS
21942
21943fi
21944fi
21945RANLIB=$ac_cv_prog_RANLIB
21946if test -n "$RANLIB"; then
21947  { echo "$as_me:$LINENO: result: $RANLIB" >&5
21948echo "${ECHO_T}$RANLIB" >&6; }
21949else
21950  { echo "$as_me:$LINENO: result: no" >&5
21951echo "${ECHO_T}no" >&6; }
21952fi
21953
21954
21955fi
21956if test -z "$ac_cv_prog_RANLIB"; then
21957  ac_ct_RANLIB=$RANLIB
21958  # Extract the first word of "ranlib", so it can be a program name with args.
21959set dummy ranlib; ac_word=$2
21960{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21962if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
21963  echo $ECHO_N "(cached) $ECHO_C" >&6
21964else
21965  if test -n "$ac_ct_RANLIB"; then
21966  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
21967else
21968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21969for as_dir in $PATH
21970do
21971  IFS=$as_save_IFS
21972  test -z "$as_dir" && as_dir=.
21973  for ac_exec_ext in '' $ac_executable_extensions; do
21974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21975    ac_cv_prog_ac_ct_RANLIB="ranlib"
21976    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21977    break 2
21978  fi
21979done
21980done
21981IFS=$as_save_IFS
21982
21983fi
21984fi
21985ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
21986if test -n "$ac_ct_RANLIB"; then
21987  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
21988echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
21989else
21990  { echo "$as_me:$LINENO: result: no" >&5
21991echo "${ECHO_T}no" >&6; }
21992fi
21993
21994  if test "x$ac_ct_RANLIB" = x; then
21995    RANLIB=":"
21996  else
21997    case $cross_compiling:$ac_tool_warned in
21998yes:)
21999{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22000whose name does not start with the host triplet.  If you think this
22001configuration is useful to you, please write to autoconf@gnu.org." >&5
22002echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22003whose name does not start with the host triplet.  If you think this
22004configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22005ac_tool_warned=yes ;;
22006esac
22007    RANLIB=$ac_ct_RANLIB
22008  fi
22009else
22010  RANLIB="$ac_cv_prog_RANLIB"
22011fi
22012
22013{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22014echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22015if test "${ac_cv_c_const+set}" = set; then
22016  echo $ECHO_N "(cached) $ECHO_C" >&6
22017else
22018  cat >conftest.$ac_ext <<_ACEOF
22019/* confdefs.h.  */
22020_ACEOF
22021cat confdefs.h >>conftest.$ac_ext
22022cat >>conftest.$ac_ext <<_ACEOF
22023/* end confdefs.h.  */
22024
22025int
22026main ()
22027{
22028/* FIXME: Include the comments suggested by Paul. */
22029#ifndef __cplusplus
22030  /* Ultrix mips cc rejects this.  */
22031  typedef int charset[2];
22032  const charset cs;
22033  /* SunOS 4.1.1 cc rejects this.  */
22034  char const *const *pcpcc;
22035  char **ppc;
22036  /* NEC SVR4.0.2 mips cc rejects this.  */
22037  struct point {int x, y;};
22038  static struct point const zero = {0,0};
22039  /* AIX XL C 1.02.0.0 rejects this.
22040     It does not let you subtract one const X* pointer from another in
22041     an arm of an if-expression whose if-part is not a constant
22042     expression */
22043  const char *g = "string";
22044  pcpcc = &g + (g ? g-g : 0);
22045  /* HPUX 7.0 cc rejects these. */
22046  ++pcpcc;
22047  ppc = (char**) pcpcc;
22048  pcpcc = (char const *const *) ppc;
22049  { /* SCO 3.2v4 cc rejects this.  */
22050    char *t;
22051    char const *s = 0 ? (char *) 0 : (char const *) 0;
22052
22053    *t++ = 0;
22054    if (s) return 0;
22055  }
22056  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22057    int x[] = {25, 17};
22058    const int *foo = &x[0];
22059    ++foo;
22060  }
22061  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22062    typedef const int *iptr;
22063    iptr p = 0;
22064    ++p;
22065  }
22066  { /* AIX XL C 1.02.0.0 rejects this saying
22067       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22068    struct s { int j; const int *ap[3]; };
22069    struct s *b; b->j = 5;
22070  }
22071  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22072    const int foo = 10;
22073    if (!foo) return 0;
22074  }
22075  return !cs[0] && !zero.x;
22076#endif
22077
22078  ;
22079  return 0;
22080}
22081_ACEOF
22082rm -f conftest.$ac_objext
22083if { (ac_try="$ac_compile"
22084case "(($ac_try" in
22085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22086  *) ac_try_echo=$ac_try;;
22087esac
22088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22089  (eval "$ac_compile") 2>conftest.er1
22090  ac_status=$?
22091  grep -v '^ *+' conftest.er1 >conftest.err
22092  rm -f conftest.er1
22093  cat conftest.err >&5
22094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095  (exit $ac_status); } && {
22096	 test -z "$ac_c_werror_flag" ||
22097	 test ! -s conftest.err
22098       } && test -s conftest.$ac_objext; then
22099  ac_cv_c_const=yes
22100else
22101  echo "$as_me: failed program was:" >&5
22102sed 's/^/| /' conftest.$ac_ext >&5
22103
22104	ac_cv_c_const=no
22105fi
22106
22107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22108fi
22109{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22110echo "${ECHO_T}$ac_cv_c_const" >&6; }
22111if test $ac_cv_c_const = no; then
22112
22113cat >>confdefs.h <<\_ACEOF
22114#define const
22115_ACEOF
22116
22117fi
22118
22119
22120  { echo "$as_me:$LINENO: checking for signed" >&5
22121echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
22122if test "${bh_cv_c_signed+set}" = set; then
22123  echo $ECHO_N "(cached) $ECHO_C" >&6
22124else
22125  cat >conftest.$ac_ext <<_ACEOF
22126/* confdefs.h.  */
22127_ACEOF
22128cat confdefs.h >>conftest.$ac_ext
22129cat >>conftest.$ac_ext <<_ACEOF
22130/* end confdefs.h.  */
22131
22132int
22133main ()
22134{
22135signed char x;
22136  ;
22137  return 0;
22138}
22139_ACEOF
22140rm -f conftest.$ac_objext
22141if { (ac_try="$ac_compile"
22142case "(($ac_try" in
22143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144  *) ac_try_echo=$ac_try;;
22145esac
22146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147  (eval "$ac_compile") 2>conftest.er1
22148  ac_status=$?
22149  grep -v '^ *+' conftest.er1 >conftest.err
22150  rm -f conftest.er1
22151  cat conftest.err >&5
22152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153  (exit $ac_status); } && {
22154	 test -z "$ac_c_werror_flag" ||
22155	 test ! -s conftest.err
22156       } && test -s conftest.$ac_objext; then
22157  bh_cv_c_signed=yes
22158else
22159  echo "$as_me: failed program was:" >&5
22160sed 's/^/| /' conftest.$ac_ext >&5
22161
22162	bh_cv_c_signed=no
22163fi
22164
22165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22166fi
22167{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
22168echo "${ECHO_T}$bh_cv_c_signed" >&6; }
22169  if test $bh_cv_c_signed = no; then
22170
22171cat >>confdefs.h <<\_ACEOF
22172#define signed
22173_ACEOF
22174
22175  fi
22176
22177{ echo "$as_me:$LINENO: checking for inline" >&5
22178echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22179if test "${ac_cv_c_inline+set}" = set; then
22180  echo $ECHO_N "(cached) $ECHO_C" >&6
22181else
22182  ac_cv_c_inline=no
22183for ac_kw in inline __inline__ __inline; do
22184  cat >conftest.$ac_ext <<_ACEOF
22185/* confdefs.h.  */
22186_ACEOF
22187cat confdefs.h >>conftest.$ac_ext
22188cat >>conftest.$ac_ext <<_ACEOF
22189/* end confdefs.h.  */
22190#ifndef __cplusplus
22191typedef int foo_t;
22192static $ac_kw foo_t static_foo () {return 0; }
22193$ac_kw foo_t foo () {return 0; }
22194#endif
22195
22196_ACEOF
22197rm -f conftest.$ac_objext
22198if { (ac_try="$ac_compile"
22199case "(($ac_try" in
22200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201  *) ac_try_echo=$ac_try;;
22202esac
22203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22204  (eval "$ac_compile") 2>conftest.er1
22205  ac_status=$?
22206  grep -v '^ *+' conftest.er1 >conftest.err
22207  rm -f conftest.er1
22208  cat conftest.err >&5
22209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210  (exit $ac_status); } && {
22211	 test -z "$ac_c_werror_flag" ||
22212	 test ! -s conftest.err
22213       } && test -s conftest.$ac_objext; then
22214  ac_cv_c_inline=$ac_kw
22215else
22216  echo "$as_me: failed program was:" >&5
22217sed 's/^/| /' conftest.$ac_ext >&5
22218
22219
22220fi
22221
22222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22223  test "$ac_cv_c_inline" != no && break
22224done
22225
22226fi
22227{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22228echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22229
22230
22231case $ac_cv_c_inline in
22232  inline | yes) ;;
22233  *)
22234    case $ac_cv_c_inline in
22235      no) ac_val=;;
22236      *) ac_val=$ac_cv_c_inline;;
22237    esac
22238    cat >>confdefs.h <<_ACEOF
22239#ifndef __cplusplus
22240#define inline $ac_val
22241#endif
22242_ACEOF
22243    ;;
22244esac
22245
22246{ echo "$as_me:$LINENO: checking for off_t" >&5
22247echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22248if test "${ac_cv_type_off_t+set}" = set; then
22249  echo $ECHO_N "(cached) $ECHO_C" >&6
22250else
22251  cat >conftest.$ac_ext <<_ACEOF
22252/* confdefs.h.  */
22253_ACEOF
22254cat confdefs.h >>conftest.$ac_ext
22255cat >>conftest.$ac_ext <<_ACEOF
22256/* end confdefs.h.  */
22257$ac_includes_default
22258typedef off_t ac__type_new_;
22259int
22260main ()
22261{
22262if ((ac__type_new_ *) 0)
22263  return 0;
22264if (sizeof (ac__type_new_))
22265  return 0;
22266  ;
22267  return 0;
22268}
22269_ACEOF
22270rm -f conftest.$ac_objext
22271if { (ac_try="$ac_compile"
22272case "(($ac_try" in
22273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274  *) ac_try_echo=$ac_try;;
22275esac
22276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277  (eval "$ac_compile") 2>conftest.er1
22278  ac_status=$?
22279  grep -v '^ *+' conftest.er1 >conftest.err
22280  rm -f conftest.er1
22281  cat conftest.err >&5
22282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283  (exit $ac_status); } && {
22284	 test -z "$ac_c_werror_flag" ||
22285	 test ! -s conftest.err
22286       } && test -s conftest.$ac_objext; then
22287  ac_cv_type_off_t=yes
22288else
22289  echo "$as_me: failed program was:" >&5
22290sed 's/^/| /' conftest.$ac_ext >&5
22291
22292	ac_cv_type_off_t=no
22293fi
22294
22295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22296fi
22297{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22298echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22299if test $ac_cv_type_off_t = yes; then
22300  :
22301else
22302
22303cat >>confdefs.h <<_ACEOF
22304#define off_t long int
22305_ACEOF
22306
22307fi
22308
22309{ echo "$as_me:$LINENO: checking for size_t" >&5
22310echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22311if test "${ac_cv_type_size_t+set}" = set; then
22312  echo $ECHO_N "(cached) $ECHO_C" >&6
22313else
22314  cat >conftest.$ac_ext <<_ACEOF
22315/* confdefs.h.  */
22316_ACEOF
22317cat confdefs.h >>conftest.$ac_ext
22318cat >>conftest.$ac_ext <<_ACEOF
22319/* end confdefs.h.  */
22320$ac_includes_default
22321typedef size_t ac__type_new_;
22322int
22323main ()
22324{
22325if ((ac__type_new_ *) 0)
22326  return 0;
22327if (sizeof (ac__type_new_))
22328  return 0;
22329  ;
22330  return 0;
22331}
22332_ACEOF
22333rm -f conftest.$ac_objext
22334if { (ac_try="$ac_compile"
22335case "(($ac_try" in
22336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22337  *) ac_try_echo=$ac_try;;
22338esac
22339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22340  (eval "$ac_compile") 2>conftest.er1
22341  ac_status=$?
22342  grep -v '^ *+' conftest.er1 >conftest.err
22343  rm -f conftest.er1
22344  cat conftest.err >&5
22345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346  (exit $ac_status); } && {
22347	 test -z "$ac_c_werror_flag" ||
22348	 test ! -s conftest.err
22349       } && test -s conftest.$ac_objext; then
22350  ac_cv_type_size_t=yes
22351else
22352  echo "$as_me: failed program was:" >&5
22353sed 's/^/| /' conftest.$ac_ext >&5
22354
22355	ac_cv_type_size_t=no
22356fi
22357
22358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22359fi
22360{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22361echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22362if test $ac_cv_type_size_t = yes; then
22363  :
22364else
22365
22366cat >>confdefs.h <<_ACEOF
22367#define size_t unsigned int
22368_ACEOF
22369
22370fi
22371
22372
22373  { echo "$as_me:$LINENO: checking for long long" >&5
22374echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22375if test "${ac_cv_type_long_long+set}" = set; then
22376  echo $ECHO_N "(cached) $ECHO_C" >&6
22377else
22378  cat >conftest.$ac_ext <<_ACEOF
22379/* confdefs.h.  */
22380_ACEOF
22381cat confdefs.h >>conftest.$ac_ext
22382cat >>conftest.$ac_ext <<_ACEOF
22383/* end confdefs.h.  */
22384long long ll = 1LL; int i = 63;
22385int
22386main ()
22387{
22388long long llmax = (long long) -1;
22389     return ll << i | ll >> i | llmax / ll | llmax % ll;
22390  ;
22391  return 0;
22392}
22393_ACEOF
22394rm -f conftest.$ac_objext conftest$ac_exeext
22395if { (ac_try="$ac_link"
22396case "(($ac_try" in
22397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22398  *) ac_try_echo=$ac_try;;
22399esac
22400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22401  (eval "$ac_link") 2>conftest.er1
22402  ac_status=$?
22403  grep -v '^ *+' conftest.er1 >conftest.err
22404  rm -f conftest.er1
22405  cat conftest.err >&5
22406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407  (exit $ac_status); } && {
22408	 test -z "$ac_c_werror_flag" ||
22409	 test ! -s conftest.err
22410       } && test -s conftest$ac_exeext &&
22411       $as_test_x conftest$ac_exeext; then
22412  ac_cv_type_long_long=yes
22413else
22414  echo "$as_me: failed program was:" >&5
22415sed 's/^/| /' conftest.$ac_ext >&5
22416
22417	ac_cv_type_long_long=no
22418fi
22419
22420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22421      conftest$ac_exeext conftest.$ac_ext
22422fi
22423{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
22424echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
22425  if test $ac_cv_type_long_long = yes; then
22426
22427cat >>confdefs.h <<\_ACEOF
22428#define HAVE_LONG_LONG 1
22429_ACEOF
22430
22431  fi
22432
22433
22434  { echo "$as_me:$LINENO: checking for long double" >&5
22435echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
22436if test "${gt_cv_c_long_double+set}" = set; then
22437  echo $ECHO_N "(cached) $ECHO_C" >&6
22438else
22439  if test "$GCC" = yes; then
22440       gt_cv_c_long_double=yes
22441     else
22442       cat >conftest.$ac_ext <<_ACEOF
22443/* confdefs.h.  */
22444_ACEOF
22445cat confdefs.h >>conftest.$ac_ext
22446cat >>conftest.$ac_ext <<_ACEOF
22447/* end confdefs.h.  */
22448
22449         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
22450         long double foo = 0.0;
22451         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
22452         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
22453
22454int
22455main ()
22456{
22457
22458  ;
22459  return 0;
22460}
22461_ACEOF
22462rm -f conftest.$ac_objext
22463if { (ac_try="$ac_compile"
22464case "(($ac_try" in
22465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22466  *) ac_try_echo=$ac_try;;
22467esac
22468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22469  (eval "$ac_compile") 2>conftest.er1
22470  ac_status=$?
22471  grep -v '^ *+' conftest.er1 >conftest.err
22472  rm -f conftest.er1
22473  cat conftest.err >&5
22474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475  (exit $ac_status); } && {
22476	 test -z "$ac_c_werror_flag" ||
22477	 test ! -s conftest.err
22478       } && test -s conftest.$ac_objext; then
22479  gt_cv_c_long_double=yes
22480else
22481  echo "$as_me: failed program was:" >&5
22482sed 's/^/| /' conftest.$ac_ext >&5
22483
22484	gt_cv_c_long_double=no
22485fi
22486
22487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22488     fi
22489fi
22490{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
22491echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
22492  if test $gt_cv_c_long_double = yes; then
22493
22494cat >>confdefs.h <<\_ACEOF
22495#define HAVE_LONG_DOUBLE 1
22496_ACEOF
22497
22498  fi
22499
22500
22501  { echo "$as_me:$LINENO: checking for wchar_t" >&5
22502echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
22503if test "${gt_cv_c_wchar_t+set}" = set; then
22504  echo $ECHO_N "(cached) $ECHO_C" >&6
22505else
22506  cat >conftest.$ac_ext <<_ACEOF
22507/* confdefs.h.  */
22508_ACEOF
22509cat confdefs.h >>conftest.$ac_ext
22510cat >>conftest.$ac_ext <<_ACEOF
22511/* end confdefs.h.  */
22512#include <stddef.h>
22513       wchar_t foo = (wchar_t)'\0';
22514int
22515main ()
22516{
22517
22518  ;
22519  return 0;
22520}
22521_ACEOF
22522rm -f conftest.$ac_objext
22523if { (ac_try="$ac_compile"
22524case "(($ac_try" in
22525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526  *) ac_try_echo=$ac_try;;
22527esac
22528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529  (eval "$ac_compile") 2>conftest.er1
22530  ac_status=$?
22531  grep -v '^ *+' conftest.er1 >conftest.err
22532  rm -f conftest.er1
22533  cat conftest.err >&5
22534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535  (exit $ac_status); } && {
22536	 test -z "$ac_c_werror_flag" ||
22537	 test ! -s conftest.err
22538       } && test -s conftest.$ac_objext; then
22539  gt_cv_c_wchar_t=yes
22540else
22541  echo "$as_me: failed program was:" >&5
22542sed 's/^/| /' conftest.$ac_ext >&5
22543
22544	gt_cv_c_wchar_t=no
22545fi
22546
22547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22548fi
22549{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
22550echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
22551  if test $gt_cv_c_wchar_t = yes; then
22552
22553cat >>confdefs.h <<\_ACEOF
22554#define HAVE_WCHAR_T 1
22555_ACEOF
22556
22557  fi
22558
22559
22560  { echo "$as_me:$LINENO: checking for wint_t" >&5
22561echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
22562if test "${gt_cv_c_wint_t+set}" = set; then
22563  echo $ECHO_N "(cached) $ECHO_C" >&6
22564else
22565  cat >conftest.$ac_ext <<_ACEOF
22566/* confdefs.h.  */
22567_ACEOF
22568cat confdefs.h >>conftest.$ac_ext
22569cat >>conftest.$ac_ext <<_ACEOF
22570/* end confdefs.h.  */
22571#include <wchar.h>
22572       wint_t foo = (wchar_t)'\0';
22573int
22574main ()
22575{
22576
22577  ;
22578  return 0;
22579}
22580_ACEOF
22581rm -f conftest.$ac_objext
22582if { (ac_try="$ac_compile"
22583case "(($ac_try" in
22584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22585  *) ac_try_echo=$ac_try;;
22586esac
22587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22588  (eval "$ac_compile") 2>conftest.er1
22589  ac_status=$?
22590  grep -v '^ *+' conftest.er1 >conftest.err
22591  rm -f conftest.er1
22592  cat conftest.err >&5
22593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594  (exit $ac_status); } && {
22595	 test -z "$ac_c_werror_flag" ||
22596	 test ! -s conftest.err
22597       } && test -s conftest.$ac_objext; then
22598  gt_cv_c_wint_t=yes
22599else
22600  echo "$as_me: failed program was:" >&5
22601sed 's/^/| /' conftest.$ac_ext >&5
22602
22603	gt_cv_c_wint_t=no
22604fi
22605
22606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22607fi
22608{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
22609echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
22610  if test $gt_cv_c_wint_t = yes; then
22611
22612cat >>confdefs.h <<\_ACEOF
22613#define HAVE_WINT_T 1
22614_ACEOF
22615
22616  fi
22617
22618
22619  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
22620echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
22621if test "${gl_cv_header_inttypes_h+set}" = set; then
22622  echo $ECHO_N "(cached) $ECHO_C" >&6
22623else
22624  cat >conftest.$ac_ext <<_ACEOF
22625/* confdefs.h.  */
22626_ACEOF
22627cat confdefs.h >>conftest.$ac_ext
22628cat >>conftest.$ac_ext <<_ACEOF
22629/* end confdefs.h.  */
22630#include <sys/types.h>
22631#include <inttypes.h>
22632int
22633main ()
22634{
22635uintmax_t i = (uintmax_t) -1;
22636  ;
22637  return 0;
22638}
22639_ACEOF
22640rm -f conftest.$ac_objext
22641if { (ac_try="$ac_compile"
22642case "(($ac_try" in
22643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22644  *) ac_try_echo=$ac_try;;
22645esac
22646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22647  (eval "$ac_compile") 2>conftest.er1
22648  ac_status=$?
22649  grep -v '^ *+' conftest.er1 >conftest.err
22650  rm -f conftest.er1
22651  cat conftest.err >&5
22652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653  (exit $ac_status); } && {
22654	 test -z "$ac_c_werror_flag" ||
22655	 test ! -s conftest.err
22656       } && test -s conftest.$ac_objext; then
22657  gl_cv_header_inttypes_h=yes
22658else
22659  echo "$as_me: failed program was:" >&5
22660sed 's/^/| /' conftest.$ac_ext >&5
22661
22662	gl_cv_header_inttypes_h=no
22663fi
22664
22665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22666fi
22667{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
22668echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
22669  if test $gl_cv_header_inttypes_h = yes; then
22670
22671cat >>confdefs.h <<_ACEOF
22672#define HAVE_INTTYPES_H_WITH_UINTMAX 1
22673_ACEOF
22674
22675  fi
22676
22677
22678  { echo "$as_me:$LINENO: checking for stdint.h" >&5
22679echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
22680if test "${gl_cv_header_stdint_h+set}" = set; then
22681  echo $ECHO_N "(cached) $ECHO_C" >&6
22682else
22683  cat >conftest.$ac_ext <<_ACEOF
22684/* confdefs.h.  */
22685_ACEOF
22686cat confdefs.h >>conftest.$ac_ext
22687cat >>conftest.$ac_ext <<_ACEOF
22688/* end confdefs.h.  */
22689#include <sys/types.h>
22690#include <stdint.h>
22691int
22692main ()
22693{
22694uintmax_t i = (uintmax_t) -1;
22695  ;
22696  return 0;
22697}
22698_ACEOF
22699rm -f conftest.$ac_objext
22700if { (ac_try="$ac_compile"
22701case "(($ac_try" in
22702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22703  *) ac_try_echo=$ac_try;;
22704esac
22705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22706  (eval "$ac_compile") 2>conftest.er1
22707  ac_status=$?
22708  grep -v '^ *+' conftest.er1 >conftest.err
22709  rm -f conftest.er1
22710  cat conftest.err >&5
22711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712  (exit $ac_status); } && {
22713	 test -z "$ac_c_werror_flag" ||
22714	 test ! -s conftest.err
22715       } && test -s conftest.$ac_objext; then
22716  gl_cv_header_stdint_h=yes
22717else
22718  echo "$as_me: failed program was:" >&5
22719sed 's/^/| /' conftest.$ac_ext >&5
22720
22721	gl_cv_header_stdint_h=no
22722fi
22723
22724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22725fi
22726{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
22727echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
22728  if test $gl_cv_header_stdint_h = yes; then
22729
22730cat >>confdefs.h <<_ACEOF
22731#define HAVE_STDINT_H_WITH_UINTMAX 1
22732_ACEOF
22733
22734  fi
22735
22736
22737
22738
22739  { echo "$as_me:$LINENO: checking for intmax_t" >&5
22740echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
22741if test "${gt_cv_c_intmax_t+set}" = set; then
22742  echo $ECHO_N "(cached) $ECHO_C" >&6
22743else
22744  cat >conftest.$ac_ext <<_ACEOF
22745/* confdefs.h.  */
22746_ACEOF
22747cat confdefs.h >>conftest.$ac_ext
22748cat >>conftest.$ac_ext <<_ACEOF
22749/* end confdefs.h.  */
22750
22751#include <stddef.h>
22752#include <stdlib.h>
22753#if HAVE_STDINT_H_WITH_UINTMAX
22754#include <stdint.h>
22755#endif
22756#if HAVE_INTTYPES_H_WITH_UINTMAX
22757#include <inttypes.h>
22758#endif
22759
22760int
22761main ()
22762{
22763intmax_t x = -1;
22764  ;
22765  return 0;
22766}
22767_ACEOF
22768rm -f conftest.$ac_objext
22769if { (ac_try="$ac_compile"
22770case "(($ac_try" in
22771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22772  *) ac_try_echo=$ac_try;;
22773esac
22774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22775  (eval "$ac_compile") 2>conftest.er1
22776  ac_status=$?
22777  grep -v '^ *+' conftest.er1 >conftest.err
22778  rm -f conftest.er1
22779  cat conftest.err >&5
22780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781  (exit $ac_status); } && {
22782	 test -z "$ac_c_werror_flag" ||
22783	 test ! -s conftest.err
22784       } && test -s conftest.$ac_objext; then
22785  gt_cv_c_intmax_t=yes
22786else
22787  echo "$as_me: failed program was:" >&5
22788sed 's/^/| /' conftest.$ac_ext >&5
22789
22790	gt_cv_c_intmax_t=no
22791fi
22792
22793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22794fi
22795{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
22796echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
22797  if test $gt_cv_c_intmax_t = yes; then
22798
22799cat >>confdefs.h <<\_ACEOF
22800#define HAVE_INTMAX_T 1
22801_ACEOF
22802
22803  fi
22804
22805
22806
22807  { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
22808echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
22809if test "${gt_cv_func_printf_posix+set}" = set; then
22810  echo $ECHO_N "(cached) $ECHO_C" >&6
22811else
22812
22813      if test "$cross_compiling" = yes; then
22814
22815        cat >conftest.$ac_ext <<_ACEOF
22816/* confdefs.h.  */
22817_ACEOF
22818cat confdefs.h >>conftest.$ac_ext
22819cat >>conftest.$ac_ext <<_ACEOF
22820/* end confdefs.h.  */
22821
22822#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
22823  notposix
22824#endif
22825
22826_ACEOF
22827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22828  $EGREP "notposix" >/dev/null 2>&1; then
22829  gt_cv_func_printf_posix="guessing no"
22830else
22831  gt_cv_func_printf_posix="guessing yes"
22832fi
22833rm -f conftest*
22834
22835
22836else
22837  cat >conftest.$ac_ext <<_ACEOF
22838/* confdefs.h.  */
22839_ACEOF
22840cat confdefs.h >>conftest.$ac_ext
22841cat >>conftest.$ac_ext <<_ACEOF
22842/* end confdefs.h.  */
22843
22844#include <stdio.h>
22845#include <string.h>
22846/* The string "%2$d %1$d", with dollar characters protected from the shell's
22847   dollar expansion (possibly an autoconf bug).  */
22848static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
22849static char buf[100];
22850int main ()
22851{
22852  sprintf (buf, format, 33, 55);
22853  return (strcmp (buf, "55 33") != 0);
22854}
22855_ACEOF
22856rm -f conftest$ac_exeext
22857if { (ac_try="$ac_link"
22858case "(($ac_try" in
22859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860  *) ac_try_echo=$ac_try;;
22861esac
22862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863  (eval "$ac_link") 2>&5
22864  ac_status=$?
22865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22867  { (case "(($ac_try" in
22868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22869  *) ac_try_echo=$ac_try;;
22870esac
22871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22872  (eval "$ac_try") 2>&5
22873  ac_status=$?
22874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875  (exit $ac_status); }; }; then
22876  gt_cv_func_printf_posix=yes
22877else
22878  echo "$as_me: program exited with status $ac_status" >&5
22879echo "$as_me: failed program was:" >&5
22880sed 's/^/| /' conftest.$ac_ext >&5
22881
22882( exit $ac_status )
22883gt_cv_func_printf_posix=no
22884fi
22885rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22886fi
22887
22888
22889
22890fi
22891{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
22892echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
22893  case $gt_cv_func_printf_posix in
22894    *yes)
22895
22896cat >>confdefs.h <<\_ACEOF
22897#define HAVE_POSIX_PRINTF 1
22898_ACEOF
22899
22900      ;;
22901  esac
22902
22903# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22904# for constant arguments.  Useless!
22905{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
22906echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
22907if test "${ac_cv_working_alloca_h+set}" = set; then
22908  echo $ECHO_N "(cached) $ECHO_C" >&6
22909else
22910  cat >conftest.$ac_ext <<_ACEOF
22911/* confdefs.h.  */
22912_ACEOF
22913cat confdefs.h >>conftest.$ac_ext
22914cat >>conftest.$ac_ext <<_ACEOF
22915/* end confdefs.h.  */
22916#include <alloca.h>
22917int
22918main ()
22919{
22920char *p = (char *) alloca (2 * sizeof (int));
22921			  if (p) return 0;
22922  ;
22923  return 0;
22924}
22925_ACEOF
22926rm -f conftest.$ac_objext conftest$ac_exeext
22927if { (ac_try="$ac_link"
22928case "(($ac_try" in
22929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22930  *) ac_try_echo=$ac_try;;
22931esac
22932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22933  (eval "$ac_link") 2>conftest.er1
22934  ac_status=$?
22935  grep -v '^ *+' conftest.er1 >conftest.err
22936  rm -f conftest.er1
22937  cat conftest.err >&5
22938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939  (exit $ac_status); } && {
22940	 test -z "$ac_c_werror_flag" ||
22941	 test ! -s conftest.err
22942       } && test -s conftest$ac_exeext &&
22943       $as_test_x conftest$ac_exeext; then
22944  ac_cv_working_alloca_h=yes
22945else
22946  echo "$as_me: failed program was:" >&5
22947sed 's/^/| /' conftest.$ac_ext >&5
22948
22949	ac_cv_working_alloca_h=no
22950fi
22951
22952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22953      conftest$ac_exeext conftest.$ac_ext
22954fi
22955{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22956echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
22957if test $ac_cv_working_alloca_h = yes; then
22958
22959cat >>confdefs.h <<\_ACEOF
22960#define HAVE_ALLOCA_H 1
22961_ACEOF
22962
22963fi
22964
22965{ echo "$as_me:$LINENO: checking for alloca" >&5
22966echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
22967if test "${ac_cv_func_alloca_works+set}" = set; then
22968  echo $ECHO_N "(cached) $ECHO_C" >&6
22969else
22970  cat >conftest.$ac_ext <<_ACEOF
22971/* confdefs.h.  */
22972_ACEOF
22973cat confdefs.h >>conftest.$ac_ext
22974cat >>conftest.$ac_ext <<_ACEOF
22975/* end confdefs.h.  */
22976#ifdef __GNUC__
22977# define alloca __builtin_alloca
22978#else
22979# ifdef _MSC_VER
22980#  include <malloc.h>
22981#  define alloca _alloca
22982# else
22983#  ifdef HAVE_ALLOCA_H
22984#   include <alloca.h>
22985#  else
22986#   ifdef _AIX
22987 #pragma alloca
22988#   else
22989#    ifndef alloca /* predefined by HP cc +Olibcalls */
22990char *alloca ();
22991#    endif
22992#   endif
22993#  endif
22994# endif
22995#endif
22996
22997int
22998main ()
22999{
23000char *p = (char *) alloca (1);
23001				    if (p) return 0;
23002  ;
23003  return 0;
23004}
23005_ACEOF
23006rm -f conftest.$ac_objext conftest$ac_exeext
23007if { (ac_try="$ac_link"
23008case "(($ac_try" in
23009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23010  *) ac_try_echo=$ac_try;;
23011esac
23012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23013  (eval "$ac_link") 2>conftest.er1
23014  ac_status=$?
23015  grep -v '^ *+' conftest.er1 >conftest.err
23016  rm -f conftest.er1
23017  cat conftest.err >&5
23018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019  (exit $ac_status); } && {
23020	 test -z "$ac_c_werror_flag" ||
23021	 test ! -s conftest.err
23022       } && test -s conftest$ac_exeext &&
23023       $as_test_x conftest$ac_exeext; then
23024  ac_cv_func_alloca_works=yes
23025else
23026  echo "$as_me: failed program was:" >&5
23027sed 's/^/| /' conftest.$ac_ext >&5
23028
23029	ac_cv_func_alloca_works=no
23030fi
23031
23032rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23033      conftest$ac_exeext conftest.$ac_ext
23034fi
23035{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23036echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
23037
23038if test $ac_cv_func_alloca_works = yes; then
23039
23040cat >>confdefs.h <<\_ACEOF
23041#define HAVE_ALLOCA 1
23042_ACEOF
23043
23044else
23045  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23046# that cause trouble.  Some versions do not even contain alloca or
23047# contain a buggy version.  If you still want to use their alloca,
23048# use ar to extract alloca.o from them instead of compiling alloca.c.
23049
23050ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
23051
23052cat >>confdefs.h <<\_ACEOF
23053#define C_ALLOCA 1
23054_ACEOF
23055
23056
23057{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23058echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
23059if test "${ac_cv_os_cray+set}" = set; then
23060  echo $ECHO_N "(cached) $ECHO_C" >&6
23061else
23062  cat >conftest.$ac_ext <<_ACEOF
23063/* confdefs.h.  */
23064_ACEOF
23065cat confdefs.h >>conftest.$ac_ext
23066cat >>conftest.$ac_ext <<_ACEOF
23067/* end confdefs.h.  */
23068#if defined CRAY && ! defined CRAY2
23069webecray
23070#else
23071wenotbecray
23072#endif
23073
23074_ACEOF
23075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23076  $EGREP "webecray" >/dev/null 2>&1; then
23077  ac_cv_os_cray=yes
23078else
23079  ac_cv_os_cray=no
23080fi
23081rm -f conftest*
23082
23083fi
23084{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23085echo "${ECHO_T}$ac_cv_os_cray" >&6; }
23086if test $ac_cv_os_cray = yes; then
23087  for ac_func in _getb67 GETB67 getb67; do
23088    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23089{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23090echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23091if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23092  echo $ECHO_N "(cached) $ECHO_C" >&6
23093else
23094  cat >conftest.$ac_ext <<_ACEOF
23095/* confdefs.h.  */
23096_ACEOF
23097cat confdefs.h >>conftest.$ac_ext
23098cat >>conftest.$ac_ext <<_ACEOF
23099/* end confdefs.h.  */
23100/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23101   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23102#define $ac_func innocuous_$ac_func
23103
23104/* System header to define __stub macros and hopefully few prototypes,
23105    which can conflict with char $ac_func (); below.
23106    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23107    <limits.h> exists even on freestanding compilers.  */
23108
23109#ifdef __STDC__
23110# include <limits.h>
23111#else
23112# include <assert.h>
23113#endif
23114
23115#undef $ac_func
23116
23117/* Override any GCC internal prototype to avoid an error.
23118   Use char because int might match the return type of a GCC
23119   builtin and then its argument prototype would still apply.  */
23120#ifdef __cplusplus
23121extern "C"
23122#endif
23123char $ac_func ();
23124/* The GNU C library defines this for functions which it implements
23125    to always fail with ENOSYS.  Some functions are actually named
23126    something starting with __ and the normal name is an alias.  */
23127#if defined __stub_$ac_func || defined __stub___$ac_func
23128choke me
23129#endif
23130
23131int
23132main ()
23133{
23134return $ac_func ();
23135  ;
23136  return 0;
23137}
23138_ACEOF
23139rm -f conftest.$ac_objext conftest$ac_exeext
23140if { (ac_try="$ac_link"
23141case "(($ac_try" in
23142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23143  *) ac_try_echo=$ac_try;;
23144esac
23145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23146  (eval "$ac_link") 2>conftest.er1
23147  ac_status=$?
23148  grep -v '^ *+' conftest.er1 >conftest.err
23149  rm -f conftest.er1
23150  cat conftest.err >&5
23151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152  (exit $ac_status); } && {
23153	 test -z "$ac_c_werror_flag" ||
23154	 test ! -s conftest.err
23155       } && test -s conftest$ac_exeext &&
23156       $as_test_x conftest$ac_exeext; then
23157  eval "$as_ac_var=yes"
23158else
23159  echo "$as_me: failed program was:" >&5
23160sed 's/^/| /' conftest.$ac_ext >&5
23161
23162	eval "$as_ac_var=no"
23163fi
23164
23165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23166      conftest$ac_exeext conftest.$ac_ext
23167fi
23168ac_res=`eval echo '${'$as_ac_var'}'`
23169	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23170echo "${ECHO_T}$ac_res" >&6; }
23171if test `eval echo '${'$as_ac_var'}'` = yes; then
23172
23173cat >>confdefs.h <<_ACEOF
23174#define CRAY_STACKSEG_END $ac_func
23175_ACEOF
23176
23177    break
23178fi
23179
23180  done
23181fi
23182
23183{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23184echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
23185if test "${ac_cv_c_stack_direction+set}" = set; then
23186  echo $ECHO_N "(cached) $ECHO_C" >&6
23187else
23188  if test "$cross_compiling" = yes; then
23189  ac_cv_c_stack_direction=0
23190else
23191  cat >conftest.$ac_ext <<_ACEOF
23192/* confdefs.h.  */
23193_ACEOF
23194cat confdefs.h >>conftest.$ac_ext
23195cat >>conftest.$ac_ext <<_ACEOF
23196/* end confdefs.h.  */
23197$ac_includes_default
23198int
23199find_stack_direction ()
23200{
23201  static char *addr = 0;
23202  auto char dummy;
23203  if (addr == 0)
23204    {
23205      addr = &dummy;
23206      return find_stack_direction ();
23207    }
23208  else
23209    return (&dummy > addr) ? 1 : -1;
23210}
23211
23212int
23213main ()
23214{
23215  return find_stack_direction () < 0;
23216}
23217_ACEOF
23218rm -f conftest$ac_exeext
23219if { (ac_try="$ac_link"
23220case "(($ac_try" in
23221  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222  *) ac_try_echo=$ac_try;;
23223esac
23224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23225  (eval "$ac_link") 2>&5
23226  ac_status=$?
23227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23229  { (case "(($ac_try" in
23230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231  *) ac_try_echo=$ac_try;;
23232esac
23233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23234  (eval "$ac_try") 2>&5
23235  ac_status=$?
23236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237  (exit $ac_status); }; }; then
23238  ac_cv_c_stack_direction=1
23239else
23240  echo "$as_me: program exited with status $ac_status" >&5
23241echo "$as_me: failed program was:" >&5
23242sed 's/^/| /' conftest.$ac_ext >&5
23243
23244( exit $ac_status )
23245ac_cv_c_stack_direction=-1
23246fi
23247rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23248fi
23249
23250
23251fi
23252{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23253echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
23254
23255cat >>confdefs.h <<_ACEOF
23256#define STACK_DIRECTION $ac_cv_c_stack_direction
23257_ACEOF
23258
23259
23260fi
23261
23262
23263
23264for ac_header in stdlib.h unistd.h
23265do
23266as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23268  { echo "$as_me:$LINENO: checking for $ac_header" >&5
23269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23271  echo $ECHO_N "(cached) $ECHO_C" >&6
23272fi
23273ac_res=`eval echo '${'$as_ac_Header'}'`
23274	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23275echo "${ECHO_T}$ac_res" >&6; }
23276else
23277  # Is the header compilable?
23278{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23279echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23280cat >conftest.$ac_ext <<_ACEOF
23281/* confdefs.h.  */
23282_ACEOF
23283cat confdefs.h >>conftest.$ac_ext
23284cat >>conftest.$ac_ext <<_ACEOF
23285/* end confdefs.h.  */
23286$ac_includes_default
23287#include <$ac_header>
23288_ACEOF
23289rm -f conftest.$ac_objext
23290if { (ac_try="$ac_compile"
23291case "(($ac_try" in
23292  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23293  *) ac_try_echo=$ac_try;;
23294esac
23295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23296  (eval "$ac_compile") 2>conftest.er1
23297  ac_status=$?
23298  grep -v '^ *+' conftest.er1 >conftest.err
23299  rm -f conftest.er1
23300  cat conftest.err >&5
23301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302  (exit $ac_status); } && {
23303	 test -z "$ac_c_werror_flag" ||
23304	 test ! -s conftest.err
23305       } && test -s conftest.$ac_objext; then
23306  ac_header_compiler=yes
23307else
23308  echo "$as_me: failed program was:" >&5
23309sed 's/^/| /' conftest.$ac_ext >&5
23310
23311	ac_header_compiler=no
23312fi
23313
23314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23315{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23316echo "${ECHO_T}$ac_header_compiler" >&6; }
23317
23318# Is the header present?
23319{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23320echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23321cat >conftest.$ac_ext <<_ACEOF
23322/* confdefs.h.  */
23323_ACEOF
23324cat confdefs.h >>conftest.$ac_ext
23325cat >>conftest.$ac_ext <<_ACEOF
23326/* end confdefs.h.  */
23327#include <$ac_header>
23328_ACEOF
23329if { (ac_try="$ac_cpp conftest.$ac_ext"
23330case "(($ac_try" in
23331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23332  *) ac_try_echo=$ac_try;;
23333esac
23334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23335  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23336  ac_status=$?
23337  grep -v '^ *+' conftest.er1 >conftest.err
23338  rm -f conftest.er1
23339  cat conftest.err >&5
23340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341  (exit $ac_status); } >/dev/null && {
23342	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23343	 test ! -s conftest.err
23344       }; then
23345  ac_header_preproc=yes
23346else
23347  echo "$as_me: failed program was:" >&5
23348sed 's/^/| /' conftest.$ac_ext >&5
23349
23350  ac_header_preproc=no
23351fi
23352
23353rm -f conftest.err conftest.$ac_ext
23354{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23355echo "${ECHO_T}$ac_header_preproc" >&6; }
23356
23357# So?  What about this header?
23358case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23359  yes:no: )
23360    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23361echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23362    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23363echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23364    ac_header_preproc=yes
23365    ;;
23366  no:yes:* )
23367    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23368echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23369    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23370echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23371    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23372echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23373    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23374echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23375    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23376echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23377    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23378echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23379
23380    ;;
23381esac
23382{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23385  echo $ECHO_N "(cached) $ECHO_C" >&6
23386else
23387  eval "$as_ac_Header=\$ac_header_preproc"
23388fi
23389ac_res=`eval echo '${'$as_ac_Header'}'`
23390	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23391echo "${ECHO_T}$ac_res" >&6; }
23392
23393fi
23394if test `eval echo '${'$as_ac_Header'}'` = yes; then
23395  cat >>confdefs.h <<_ACEOF
23396#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23397_ACEOF
23398
23399fi
23400
23401done
23402
23403
23404for ac_func in getpagesize
23405do
23406as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23407{ echo "$as_me:$LINENO: checking for $ac_func" >&5
23408echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23409if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23410  echo $ECHO_N "(cached) $ECHO_C" >&6
23411else
23412  cat >conftest.$ac_ext <<_ACEOF
23413/* confdefs.h.  */
23414_ACEOF
23415cat confdefs.h >>conftest.$ac_ext
23416cat >>conftest.$ac_ext <<_ACEOF
23417/* end confdefs.h.  */
23418/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23419   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23420#define $ac_func innocuous_$ac_func
23421
23422/* System header to define __stub macros and hopefully few prototypes,
23423    which can conflict with char $ac_func (); below.
23424    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23425    <limits.h> exists even on freestanding compilers.  */
23426
23427#ifdef __STDC__
23428# include <limits.h>
23429#else
23430# include <assert.h>
23431#endif
23432
23433#undef $ac_func
23434
23435/* Override any GCC internal prototype to avoid an error.
23436   Use char because int might match the return type of a GCC
23437   builtin and then its argument prototype would still apply.  */
23438#ifdef __cplusplus
23439extern "C"
23440#endif
23441char $ac_func ();
23442/* The GNU C library defines this for functions which it implements
23443    to always fail with ENOSYS.  Some functions are actually named
23444    something starting with __ and the normal name is an alias.  */
23445#if defined __stub_$ac_func || defined __stub___$ac_func
23446choke me
23447#endif
23448
23449int
23450main ()
23451{
23452return $ac_func ();
23453  ;
23454  return 0;
23455}
23456_ACEOF
23457rm -f conftest.$ac_objext conftest$ac_exeext
23458if { (ac_try="$ac_link"
23459case "(($ac_try" in
23460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23461  *) ac_try_echo=$ac_try;;
23462esac
23463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23464  (eval "$ac_link") 2>conftest.er1
23465  ac_status=$?
23466  grep -v '^ *+' conftest.er1 >conftest.err
23467  rm -f conftest.er1
23468  cat conftest.err >&5
23469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470  (exit $ac_status); } && {
23471	 test -z "$ac_c_werror_flag" ||
23472	 test ! -s conftest.err
23473       } && test -s conftest$ac_exeext &&
23474       $as_test_x conftest$ac_exeext; then
23475  eval "$as_ac_var=yes"
23476else
23477  echo "$as_me: failed program was:" >&5
23478sed 's/^/| /' conftest.$ac_ext >&5
23479
23480	eval "$as_ac_var=no"
23481fi
23482
23483rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23484      conftest$ac_exeext conftest.$ac_ext
23485fi
23486ac_res=`eval echo '${'$as_ac_var'}'`
23487	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23488echo "${ECHO_T}$ac_res" >&6; }
23489if test `eval echo '${'$as_ac_var'}'` = yes; then
23490  cat >>confdefs.h <<_ACEOF
23491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23492_ACEOF
23493
23494fi
23495done
23496
23497{ echo "$as_me:$LINENO: checking for working mmap" >&5
23498echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
23499if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23500  echo $ECHO_N "(cached) $ECHO_C" >&6
23501else
23502  if test "$cross_compiling" = yes; then
23503  ac_cv_func_mmap_fixed_mapped=no
23504else
23505  cat >conftest.$ac_ext <<_ACEOF
23506/* confdefs.h.  */
23507_ACEOF
23508cat confdefs.h >>conftest.$ac_ext
23509cat >>conftest.$ac_ext <<_ACEOF
23510/* end confdefs.h.  */
23511$ac_includes_default
23512/* malloc might have been renamed as rpl_malloc. */
23513#undef malloc
23514
23515/* Thanks to Mike Haertel and Jim Avera for this test.
23516   Here is a matrix of mmap possibilities:
23517	mmap private not fixed
23518	mmap private fixed at somewhere currently unmapped
23519	mmap private fixed at somewhere already mapped
23520	mmap shared not fixed
23521	mmap shared fixed at somewhere currently unmapped
23522	mmap shared fixed at somewhere already mapped
23523   For private mappings, we should verify that changes cannot be read()
23524   back from the file, nor mmap's back from the file at a different
23525   address.  (There have been systems where private was not correctly
23526   implemented like the infamous i386 svr4.0, and systems where the
23527   VM page cache was not coherent with the file system buffer cache
23528   like early versions of FreeBSD and possibly contemporary NetBSD.)
23529   For shared mappings, we should conversely verify that changes get
23530   propagated back to all the places they're supposed to be.
23531
23532   Grep wants private fixed already mapped.
23533   The main things grep needs to know about mmap are:
23534   * does it exist and is it safe to write into the mmap'd area
23535   * how to use it (BSD variants)  */
23536
23537#include <fcntl.h>
23538#include <sys/mman.h>
23539
23540#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23541char *malloc ();
23542#endif
23543
23544/* This mess was copied from the GNU getpagesize.h.  */
23545#ifndef HAVE_GETPAGESIZE
23546/* Assume that all systems that can run configure have sys/param.h.  */
23547# ifndef HAVE_SYS_PARAM_H
23548#  define HAVE_SYS_PARAM_H 1
23549# endif
23550
23551# ifdef _SC_PAGESIZE
23552#  define getpagesize() sysconf(_SC_PAGESIZE)
23553# else /* no _SC_PAGESIZE */
23554#  ifdef HAVE_SYS_PARAM_H
23555#   include <sys/param.h>
23556#   ifdef EXEC_PAGESIZE
23557#    define getpagesize() EXEC_PAGESIZE
23558#   else /* no EXEC_PAGESIZE */
23559#    ifdef NBPG
23560#     define getpagesize() NBPG * CLSIZE
23561#     ifndef CLSIZE
23562#      define CLSIZE 1
23563#     endif /* no CLSIZE */
23564#    else /* no NBPG */
23565#     ifdef NBPC
23566#      define getpagesize() NBPC
23567#     else /* no NBPC */
23568#      ifdef PAGESIZE
23569#       define getpagesize() PAGESIZE
23570#      endif /* PAGESIZE */
23571#     endif /* no NBPC */
23572#    endif /* no NBPG */
23573#   endif /* no EXEC_PAGESIZE */
23574#  else /* no HAVE_SYS_PARAM_H */
23575#   define getpagesize() 8192	/* punt totally */
23576#  endif /* no HAVE_SYS_PARAM_H */
23577# endif /* no _SC_PAGESIZE */
23578
23579#endif /* no HAVE_GETPAGESIZE */
23580
23581int
23582main ()
23583{
23584  char *data, *data2, *data3;
23585  int i, pagesize;
23586  int fd;
23587
23588  pagesize = getpagesize ();
23589
23590  /* First, make a file with some known garbage in it. */
23591  data = (char *) malloc (pagesize);
23592  if (!data)
23593    return 1;
23594  for (i = 0; i < pagesize; ++i)
23595    *(data + i) = rand ();
23596  umask (0);
23597  fd = creat ("conftest.mmap", 0600);
23598  if (fd < 0)
23599    return 1;
23600  if (write (fd, data, pagesize) != pagesize)
23601    return 1;
23602  close (fd);
23603
23604  /* Next, try to mmap the file at a fixed address which already has
23605     something else allocated at it.  If we can, also make sure that
23606     we see the same garbage.  */
23607  fd = open ("conftest.mmap", O_RDWR);
23608  if (fd < 0)
23609    return 1;
23610  data2 = (char *) malloc (2 * pagesize);
23611  if (!data2)
23612    return 1;
23613  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
23614  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23615		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
23616    return 1;
23617  for (i = 0; i < pagesize; ++i)
23618    if (*(data + i) != *(data2 + i))
23619      return 1;
23620
23621  /* Finally, make sure that changes to the mapped area do not
23622     percolate back to the file as seen by read().  (This is a bug on
23623     some variants of i386 svr4.0.)  */
23624  for (i = 0; i < pagesize; ++i)
23625    *(data2 + i) = *(data2 + i) + 1;
23626  data3 = (char *) malloc (pagesize);
23627  if (!data3)
23628    return 1;
23629  if (read (fd, data3, pagesize) != pagesize)
23630    return 1;
23631  for (i = 0; i < pagesize; ++i)
23632    if (*(data + i) != *(data3 + i))
23633      return 1;
23634  close (fd);
23635  return 0;
23636}
23637_ACEOF
23638rm -f conftest$ac_exeext
23639if { (ac_try="$ac_link"
23640case "(($ac_try" in
23641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23642  *) ac_try_echo=$ac_try;;
23643esac
23644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23645  (eval "$ac_link") 2>&5
23646  ac_status=$?
23647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23649  { (case "(($ac_try" in
23650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23651  *) ac_try_echo=$ac_try;;
23652esac
23653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23654  (eval "$ac_try") 2>&5
23655  ac_status=$?
23656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657  (exit $ac_status); }; }; then
23658  ac_cv_func_mmap_fixed_mapped=yes
23659else
23660  echo "$as_me: program exited with status $ac_status" >&5
23661echo "$as_me: failed program was:" >&5
23662sed 's/^/| /' conftest.$ac_ext >&5
23663
23664( exit $ac_status )
23665ac_cv_func_mmap_fixed_mapped=no
23666fi
23667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23668fi
23669
23670
23671fi
23672{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23673echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
23674if test $ac_cv_func_mmap_fixed_mapped = yes; then
23675
23676cat >>confdefs.h <<\_ACEOF
23677#define HAVE_MMAP 1
23678_ACEOF
23679
23680fi
23681rm -f conftest.mmap
23682
23683
23684    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
23685echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
23686if test "${ac_cv_gnu_library_2_1+set}" = set; then
23687  echo $ECHO_N "(cached) $ECHO_C" >&6
23688else
23689  cat >conftest.$ac_ext <<_ACEOF
23690/* confdefs.h.  */
23691_ACEOF
23692cat confdefs.h >>conftest.$ac_ext
23693cat >>conftest.$ac_ext <<_ACEOF
23694/* end confdefs.h.  */
23695
23696#include <features.h>
23697#ifdef __GNU_LIBRARY__
23698 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
23699  Lucky GNU user
23700 #endif
23701#endif
23702
23703_ACEOF
23704if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23705  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
23706  ac_cv_gnu_library_2_1=yes
23707else
23708  ac_cv_gnu_library_2_1=no
23709fi
23710rm -f conftest*
23711
23712
23713
23714fi
23715{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
23716echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
23717
23718    GLIBC21="$ac_cv_gnu_library_2_1"
23719
23720
23721
23722
23723  { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
23724echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
23725if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
23726  echo $ECHO_N "(cached) $ECHO_C" >&6
23727else
23728
23729      if test "$cross_compiling" = yes; then
23730
23731          # Guess based on the CPU.
23732          case "$host_cpu" in
23733            alpha* | i3456786 | m68k | s390*)
23734              gt_cv_int_divbyzero_sigfpe="guessing yes";;
23735            *)
23736              gt_cv_int_divbyzero_sigfpe="guessing no";;
23737          esac
23738
23739else
23740  cat >conftest.$ac_ext <<_ACEOF
23741/* confdefs.h.  */
23742_ACEOF
23743cat confdefs.h >>conftest.$ac_ext
23744cat >>conftest.$ac_ext <<_ACEOF
23745/* end confdefs.h.  */
23746
23747#include <stdlib.h>
23748#include <signal.h>
23749
23750static void
23751#ifdef __cplusplus
23752sigfpe_handler (int sig)
23753#else
23754sigfpe_handler (sig) int sig;
23755#endif
23756{
23757  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
23758  exit (sig != SIGFPE);
23759}
23760
23761int x = 1;
23762int y = 0;
23763int z;
23764int nan;
23765
23766int main ()
23767{
23768  signal (SIGFPE, sigfpe_handler);
23769/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
23770#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
23771  signal (SIGTRAP, sigfpe_handler);
23772#endif
23773/* Linux/SPARC yields signal SIGILL.  */
23774#if defined (__sparc__) && defined (__linux__)
23775  signal (SIGILL, sigfpe_handler);
23776#endif
23777
23778  z = x / y;
23779  nan = y / y;
23780  exit (1);
23781}
23782
23783_ACEOF
23784rm -f conftest$ac_exeext
23785if { (ac_try="$ac_link"
23786case "(($ac_try" in
23787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23788  *) ac_try_echo=$ac_try;;
23789esac
23790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23791  (eval "$ac_link") 2>&5
23792  ac_status=$?
23793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23795  { (case "(($ac_try" in
23796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23797  *) ac_try_echo=$ac_try;;
23798esac
23799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23800  (eval "$ac_try") 2>&5
23801  ac_status=$?
23802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803  (exit $ac_status); }; }; then
23804  gt_cv_int_divbyzero_sigfpe=yes
23805else
23806  echo "$as_me: program exited with status $ac_status" >&5
23807echo "$as_me: failed program was:" >&5
23808sed 's/^/| /' conftest.$ac_ext >&5
23809
23810( exit $ac_status )
23811gt_cv_int_divbyzero_sigfpe=no
23812fi
23813rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23814fi
23815
23816
23817
23818fi
23819{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
23820echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
23821  case "$gt_cv_int_divbyzero_sigfpe" in
23822    *yes) value=1;;
23823    *) value=0;;
23824  esac
23825
23826cat >>confdefs.h <<_ACEOF
23827#define INTDIV0_RAISES_SIGFPE $value
23828_ACEOF
23829
23830
23831
23832  { echo "$as_me:$LINENO: checking for unsigned long long" >&5
23833echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
23834if test "${ac_cv_type_unsigned_long_long+set}" = set; then
23835  echo $ECHO_N "(cached) $ECHO_C" >&6
23836else
23837  cat >conftest.$ac_ext <<_ACEOF
23838/* confdefs.h.  */
23839_ACEOF
23840cat confdefs.h >>conftest.$ac_ext
23841cat >>conftest.$ac_ext <<_ACEOF
23842/* end confdefs.h.  */
23843unsigned long long ull = 1ULL; int i = 63;
23844int
23845main ()
23846{
23847unsigned long long ullmax = (unsigned long long) -1;
23848     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
23849  ;
23850  return 0;
23851}
23852_ACEOF
23853rm -f conftest.$ac_objext conftest$ac_exeext
23854if { (ac_try="$ac_link"
23855case "(($ac_try" in
23856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23857  *) ac_try_echo=$ac_try;;
23858esac
23859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23860  (eval "$ac_link") 2>conftest.er1
23861  ac_status=$?
23862  grep -v '^ *+' conftest.er1 >conftest.err
23863  rm -f conftest.er1
23864  cat conftest.err >&5
23865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866  (exit $ac_status); } && {
23867	 test -z "$ac_c_werror_flag" ||
23868	 test ! -s conftest.err
23869       } && test -s conftest$ac_exeext &&
23870       $as_test_x conftest$ac_exeext; then
23871  ac_cv_type_unsigned_long_long=yes
23872else
23873  echo "$as_me: failed program was:" >&5
23874sed 's/^/| /' conftest.$ac_ext >&5
23875
23876	ac_cv_type_unsigned_long_long=no
23877fi
23878
23879rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23880      conftest$ac_exeext conftest.$ac_ext
23881fi
23882{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
23883echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
23884  if test $ac_cv_type_unsigned_long_long = yes; then
23885
23886cat >>confdefs.h <<\_ACEOF
23887#define HAVE_UNSIGNED_LONG_LONG 1
23888_ACEOF
23889
23890  fi
23891
23892
23893
23894
23895  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
23896
23897    test $ac_cv_type_unsigned_long_long = yes \
23898      && ac_type='unsigned long long' \
23899      || ac_type='unsigned long'
23900
23901cat >>confdefs.h <<_ACEOF
23902#define uintmax_t $ac_type
23903_ACEOF
23904
23905  else
23906
23907cat >>confdefs.h <<\_ACEOF
23908#define HAVE_UINTMAX_T 1
23909_ACEOF
23910
23911  fi
23912
23913
23914  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
23915echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
23916if test "${gt_cv_header_inttypes_h+set}" = set; then
23917  echo $ECHO_N "(cached) $ECHO_C" >&6
23918else
23919
23920    cat >conftest.$ac_ext <<_ACEOF
23921/* confdefs.h.  */
23922_ACEOF
23923cat confdefs.h >>conftest.$ac_ext
23924cat >>conftest.$ac_ext <<_ACEOF
23925/* end confdefs.h.  */
23926#include <sys/types.h>
23927#include <inttypes.h>
23928int
23929main ()
23930{
23931
23932  ;
23933  return 0;
23934}
23935_ACEOF
23936rm -f conftest.$ac_objext
23937if { (ac_try="$ac_compile"
23938case "(($ac_try" in
23939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23940  *) ac_try_echo=$ac_try;;
23941esac
23942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23943  (eval "$ac_compile") 2>conftest.er1
23944  ac_status=$?
23945  grep -v '^ *+' conftest.er1 >conftest.err
23946  rm -f conftest.er1
23947  cat conftest.err >&5
23948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949  (exit $ac_status); } && {
23950	 test -z "$ac_c_werror_flag" ||
23951	 test ! -s conftest.err
23952       } && test -s conftest.$ac_objext; then
23953  gt_cv_header_inttypes_h=yes
23954else
23955  echo "$as_me: failed program was:" >&5
23956sed 's/^/| /' conftest.$ac_ext >&5
23957
23958	gt_cv_header_inttypes_h=no
23959fi
23960
23961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23962
23963fi
23964{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
23965echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
23966  if test $gt_cv_header_inttypes_h = yes; then
23967
23968cat >>confdefs.h <<_ACEOF
23969#define HAVE_INTTYPES_H 1
23970_ACEOF
23971
23972  fi
23973
23974
23975
23976  if test $gt_cv_header_inttypes_h = yes; then
23977    { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
23978echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
23979if test "${gt_cv_inttypes_pri_broken+set}" = set; then
23980  echo $ECHO_N "(cached) $ECHO_C" >&6
23981else
23982
23983        cat >conftest.$ac_ext <<_ACEOF
23984/* confdefs.h.  */
23985_ACEOF
23986cat confdefs.h >>conftest.$ac_ext
23987cat >>conftest.$ac_ext <<_ACEOF
23988/* end confdefs.h.  */
23989#include <inttypes.h>
23990#ifdef PRId32
23991char *p = PRId32;
23992#endif
23993
23994int
23995main ()
23996{
23997
23998  ;
23999  return 0;
24000}
24001_ACEOF
24002rm -f conftest.$ac_objext
24003if { (ac_try="$ac_compile"
24004case "(($ac_try" in
24005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24006  *) ac_try_echo=$ac_try;;
24007esac
24008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24009  (eval "$ac_compile") 2>conftest.er1
24010  ac_status=$?
24011  grep -v '^ *+' conftest.er1 >conftest.err
24012  rm -f conftest.er1
24013  cat conftest.err >&5
24014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015  (exit $ac_status); } && {
24016	 test -z "$ac_c_werror_flag" ||
24017	 test ! -s conftest.err
24018       } && test -s conftest.$ac_objext; then
24019  gt_cv_inttypes_pri_broken=no
24020else
24021  echo "$as_me: failed program was:" >&5
24022sed 's/^/| /' conftest.$ac_ext >&5
24023
24024	gt_cv_inttypes_pri_broken=yes
24025fi
24026
24027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24028
24029fi
24030{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
24031echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
24032  fi
24033  if test "$gt_cv_inttypes_pri_broken" = yes; then
24034
24035cat >>confdefs.h <<_ACEOF
24036#define PRI_MACROS_BROKEN 1
24037_ACEOF
24038
24039  fi
24040
24041
24042
24043for ac_header in stdint.h
24044do
24045as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24046if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24047  { echo "$as_me:$LINENO: checking for $ac_header" >&5
24048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24050  echo $ECHO_N "(cached) $ECHO_C" >&6
24051fi
24052ac_res=`eval echo '${'$as_ac_Header'}'`
24053	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24054echo "${ECHO_T}$ac_res" >&6; }
24055else
24056  # Is the header compilable?
24057{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24058echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24059cat >conftest.$ac_ext <<_ACEOF
24060/* confdefs.h.  */
24061_ACEOF
24062cat confdefs.h >>conftest.$ac_ext
24063cat >>conftest.$ac_ext <<_ACEOF
24064/* end confdefs.h.  */
24065$ac_includes_default
24066#include <$ac_header>
24067_ACEOF
24068rm -f conftest.$ac_objext
24069if { (ac_try="$ac_compile"
24070case "(($ac_try" in
24071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24072  *) ac_try_echo=$ac_try;;
24073esac
24074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24075  (eval "$ac_compile") 2>conftest.er1
24076  ac_status=$?
24077  grep -v '^ *+' conftest.er1 >conftest.err
24078  rm -f conftest.er1
24079  cat conftest.err >&5
24080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081  (exit $ac_status); } && {
24082	 test -z "$ac_c_werror_flag" ||
24083	 test ! -s conftest.err
24084       } && test -s conftest.$ac_objext; then
24085  ac_header_compiler=yes
24086else
24087  echo "$as_me: failed program was:" >&5
24088sed 's/^/| /' conftest.$ac_ext >&5
24089
24090	ac_header_compiler=no
24091fi
24092
24093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24094{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24095echo "${ECHO_T}$ac_header_compiler" >&6; }
24096
24097# Is the header present?
24098{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24099echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24100cat >conftest.$ac_ext <<_ACEOF
24101/* confdefs.h.  */
24102_ACEOF
24103cat confdefs.h >>conftest.$ac_ext
24104cat >>conftest.$ac_ext <<_ACEOF
24105/* end confdefs.h.  */
24106#include <$ac_header>
24107_ACEOF
24108if { (ac_try="$ac_cpp conftest.$ac_ext"
24109case "(($ac_try" in
24110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24111  *) ac_try_echo=$ac_try;;
24112esac
24113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24114  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24115  ac_status=$?
24116  grep -v '^ *+' conftest.er1 >conftest.err
24117  rm -f conftest.er1
24118  cat conftest.err >&5
24119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120  (exit $ac_status); } >/dev/null && {
24121	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24122	 test ! -s conftest.err
24123       }; then
24124  ac_header_preproc=yes
24125else
24126  echo "$as_me: failed program was:" >&5
24127sed 's/^/| /' conftest.$ac_ext >&5
24128
24129  ac_header_preproc=no
24130fi
24131
24132rm -f conftest.err conftest.$ac_ext
24133{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24134echo "${ECHO_T}$ac_header_preproc" >&6; }
24135
24136# So?  What about this header?
24137case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24138  yes:no: )
24139    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24140echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24141    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24142echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24143    ac_header_preproc=yes
24144    ;;
24145  no:yes:* )
24146    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24147echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24148    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24149echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24150    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24151echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24152    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24153echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24154    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24155echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24156    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24157echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24158
24159    ;;
24160esac
24161{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24164  echo $ECHO_N "(cached) $ECHO_C" >&6
24165else
24166  eval "$as_ac_Header=\$ac_header_preproc"
24167fi
24168ac_res=`eval echo '${'$as_ac_Header'}'`
24169	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24170echo "${ECHO_T}$ac_res" >&6; }
24171
24172fi
24173if test `eval echo '${'$as_ac_Header'}'` = yes; then
24174  cat >>confdefs.h <<_ACEOF
24175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24176_ACEOF
24177
24178fi
24179
24180done
24181
24182    { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
24183echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
24184  result=
24185  cat >conftest.$ac_ext <<_ACEOF
24186/* confdefs.h.  */
24187_ACEOF
24188cat confdefs.h >>conftest.$ac_ext
24189cat >>conftest.$ac_ext <<_ACEOF
24190/* end confdefs.h.  */
24191
24192#include <limits.h>
24193#if HAVE_STDINT_H
24194#include <stdint.h>
24195#endif
24196#ifdef SIZE_MAX
24197Found it
24198#endif
24199
24200_ACEOF
24201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24202  $EGREP "Found it" >/dev/null 2>&1; then
24203  result=yes
24204fi
24205rm -f conftest*
24206
24207  if test -z "$result"; then
24208                    if test "$cross_compiling" = yes; then
24209  # Depending upon the size, compute the lo and hi bounds.
24210cat >conftest.$ac_ext <<_ACEOF
24211/* confdefs.h.  */
24212_ACEOF
24213cat confdefs.h >>conftest.$ac_ext
24214cat >>conftest.$ac_ext <<_ACEOF
24215/* end confdefs.h.  */
24216#include <stddef.h>
24217int
24218main ()
24219{
24220static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
24221test_array [0] = 0
24222
24223  ;
24224  return 0;
24225}
24226_ACEOF
24227rm -f conftest.$ac_objext
24228if { (ac_try="$ac_compile"
24229case "(($ac_try" in
24230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24231  *) ac_try_echo=$ac_try;;
24232esac
24233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24234  (eval "$ac_compile") 2>conftest.er1
24235  ac_status=$?
24236  grep -v '^ *+' conftest.er1 >conftest.err
24237  rm -f conftest.er1
24238  cat conftest.err >&5
24239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240  (exit $ac_status); } && {
24241	 test -z "$ac_c_werror_flag" ||
24242	 test ! -s conftest.err
24243       } && test -s conftest.$ac_objext; then
24244  ac_lo=0 ac_mid=0
24245  while :; do
24246    cat >conftest.$ac_ext <<_ACEOF
24247/* confdefs.h.  */
24248_ACEOF
24249cat confdefs.h >>conftest.$ac_ext
24250cat >>conftest.$ac_ext <<_ACEOF
24251/* end confdefs.h.  */
24252#include <stddef.h>
24253int
24254main ()
24255{
24256static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
24257test_array [0] = 0
24258
24259  ;
24260  return 0;
24261}
24262_ACEOF
24263rm -f conftest.$ac_objext
24264if { (ac_try="$ac_compile"
24265case "(($ac_try" in
24266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24267  *) ac_try_echo=$ac_try;;
24268esac
24269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24270  (eval "$ac_compile") 2>conftest.er1
24271  ac_status=$?
24272  grep -v '^ *+' conftest.er1 >conftest.err
24273  rm -f conftest.er1
24274  cat conftest.err >&5
24275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276  (exit $ac_status); } && {
24277	 test -z "$ac_c_werror_flag" ||
24278	 test ! -s conftest.err
24279       } && test -s conftest.$ac_objext; then
24280  ac_hi=$ac_mid; break
24281else
24282  echo "$as_me: failed program was:" >&5
24283sed 's/^/| /' conftest.$ac_ext >&5
24284
24285	ac_lo=`expr $ac_mid + 1`
24286			if test $ac_lo -le $ac_mid; then
24287			  ac_lo= ac_hi=
24288			  break
24289			fi
24290			ac_mid=`expr 2 '*' $ac_mid + 1`
24291fi
24292
24293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24294  done
24295else
24296  echo "$as_me: failed program was:" >&5
24297sed 's/^/| /' conftest.$ac_ext >&5
24298
24299	cat >conftest.$ac_ext <<_ACEOF
24300/* confdefs.h.  */
24301_ACEOF
24302cat confdefs.h >>conftest.$ac_ext
24303cat >>conftest.$ac_ext <<_ACEOF
24304/* end confdefs.h.  */
24305#include <stddef.h>
24306int
24307main ()
24308{
24309static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
24310test_array [0] = 0
24311
24312  ;
24313  return 0;
24314}
24315_ACEOF
24316rm -f conftest.$ac_objext
24317if { (ac_try="$ac_compile"
24318case "(($ac_try" in
24319  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24320  *) ac_try_echo=$ac_try;;
24321esac
24322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24323  (eval "$ac_compile") 2>conftest.er1
24324  ac_status=$?
24325  grep -v '^ *+' conftest.er1 >conftest.err
24326  rm -f conftest.er1
24327  cat conftest.err >&5
24328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24329  (exit $ac_status); } && {
24330	 test -z "$ac_c_werror_flag" ||
24331	 test ! -s conftest.err
24332       } && test -s conftest.$ac_objext; then
24333  ac_hi=-1 ac_mid=-1
24334  while :; do
24335    cat >conftest.$ac_ext <<_ACEOF
24336/* confdefs.h.  */
24337_ACEOF
24338cat confdefs.h >>conftest.$ac_ext
24339cat >>conftest.$ac_ext <<_ACEOF
24340/* end confdefs.h.  */
24341#include <stddef.h>
24342int
24343main ()
24344{
24345static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
24346test_array [0] = 0
24347
24348  ;
24349  return 0;
24350}
24351_ACEOF
24352rm -f conftest.$ac_objext
24353if { (ac_try="$ac_compile"
24354case "(($ac_try" in
24355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24356  *) ac_try_echo=$ac_try;;
24357esac
24358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24359  (eval "$ac_compile") 2>conftest.er1
24360  ac_status=$?
24361  grep -v '^ *+' conftest.er1 >conftest.err
24362  rm -f conftest.er1
24363  cat conftest.err >&5
24364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365  (exit $ac_status); } && {
24366	 test -z "$ac_c_werror_flag" ||
24367	 test ! -s conftest.err
24368       } && test -s conftest.$ac_objext; then
24369  ac_lo=$ac_mid; break
24370else
24371  echo "$as_me: failed program was:" >&5
24372sed 's/^/| /' conftest.$ac_ext >&5
24373
24374	ac_hi=`expr '(' $ac_mid ')' - 1`
24375			if test $ac_mid -le $ac_hi; then
24376			  ac_lo= ac_hi=
24377			  break
24378			fi
24379			ac_mid=`expr 2 '*' $ac_mid`
24380fi
24381
24382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24383  done
24384else
24385  echo "$as_me: failed program was:" >&5
24386sed 's/^/| /' conftest.$ac_ext >&5
24387
24388	ac_lo= ac_hi=
24389fi
24390
24391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24392fi
24393
24394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24395# Binary search between lo and hi bounds.
24396while test "x$ac_lo" != "x$ac_hi"; do
24397  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24398  cat >conftest.$ac_ext <<_ACEOF
24399/* confdefs.h.  */
24400_ACEOF
24401cat confdefs.h >>conftest.$ac_ext
24402cat >>conftest.$ac_ext <<_ACEOF
24403/* end confdefs.h.  */
24404#include <stddef.h>
24405int
24406main ()
24407{
24408static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
24409test_array [0] = 0
24410
24411  ;
24412  return 0;
24413}
24414_ACEOF
24415rm -f conftest.$ac_objext
24416if { (ac_try="$ac_compile"
24417case "(($ac_try" in
24418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24419  *) ac_try_echo=$ac_try;;
24420esac
24421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24422  (eval "$ac_compile") 2>conftest.er1
24423  ac_status=$?
24424  grep -v '^ *+' conftest.er1 >conftest.err
24425  rm -f conftest.er1
24426  cat conftest.err >&5
24427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428  (exit $ac_status); } && {
24429	 test -z "$ac_c_werror_flag" ||
24430	 test ! -s conftest.err
24431       } && test -s conftest.$ac_objext; then
24432  ac_hi=$ac_mid
24433else
24434  echo "$as_me: failed program was:" >&5
24435sed 's/^/| /' conftest.$ac_ext >&5
24436
24437	ac_lo=`expr '(' $ac_mid ')' + 1`
24438fi
24439
24440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24441done
24442case $ac_lo in
24443?*) res_hi=$ac_lo;;
24444'') result=? ;;
24445esac
24446else
24447  cat >conftest.$ac_ext <<_ACEOF
24448/* confdefs.h.  */
24449_ACEOF
24450cat confdefs.h >>conftest.$ac_ext
24451cat >>conftest.$ac_ext <<_ACEOF
24452/* end confdefs.h.  */
24453#include <stddef.h>
24454static long int longval () { return ~(size_t)0 / 10; }
24455static unsigned long int ulongval () { return ~(size_t)0 / 10; }
24456#include <stdio.h>
24457#include <stdlib.h>
24458int
24459main ()
24460{
24461
24462  FILE *f = fopen ("conftest.val", "w");
24463  if (! f)
24464    return 1;
24465  if ((~(size_t)0 / 10) < 0)
24466    {
24467      long int i = longval ();
24468      if (i != (~(size_t)0 / 10))
24469	return 1;
24470      fprintf (f, "%ld\n", i);
24471    }
24472  else
24473    {
24474      unsigned long int i = ulongval ();
24475      if (i != (~(size_t)0 / 10))
24476	return 1;
24477      fprintf (f, "%lu\n", i);
24478    }
24479  return ferror (f) || fclose (f) != 0;
24480
24481  ;
24482  return 0;
24483}
24484_ACEOF
24485rm -f conftest$ac_exeext
24486if { (ac_try="$ac_link"
24487case "(($ac_try" in
24488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24489  *) ac_try_echo=$ac_try;;
24490esac
24491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24492  (eval "$ac_link") 2>&5
24493  ac_status=$?
24494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24496  { (case "(($ac_try" in
24497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24498  *) ac_try_echo=$ac_try;;
24499esac
24500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24501  (eval "$ac_try") 2>&5
24502  ac_status=$?
24503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504  (exit $ac_status); }; }; then
24505  res_hi=`cat conftest.val`
24506else
24507  echo "$as_me: program exited with status $ac_status" >&5
24508echo "$as_me: failed program was:" >&5
24509sed 's/^/| /' conftest.$ac_ext >&5
24510
24511( exit $ac_status )
24512result=?
24513fi
24514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24515fi
24516rm -f conftest.val
24517
24518    if test "$cross_compiling" = yes; then
24519  # Depending upon the size, compute the lo and hi bounds.
24520cat >conftest.$ac_ext <<_ACEOF
24521/* confdefs.h.  */
24522_ACEOF
24523cat confdefs.h >>conftest.$ac_ext
24524cat >>conftest.$ac_ext <<_ACEOF
24525/* end confdefs.h.  */
24526#include <stddef.h>
24527int
24528main ()
24529{
24530static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
24531test_array [0] = 0
24532
24533  ;
24534  return 0;
24535}
24536_ACEOF
24537rm -f conftest.$ac_objext
24538if { (ac_try="$ac_compile"
24539case "(($ac_try" in
24540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24541  *) ac_try_echo=$ac_try;;
24542esac
24543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24544  (eval "$ac_compile") 2>conftest.er1
24545  ac_status=$?
24546  grep -v '^ *+' conftest.er1 >conftest.err
24547  rm -f conftest.er1
24548  cat conftest.err >&5
24549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550  (exit $ac_status); } && {
24551	 test -z "$ac_c_werror_flag" ||
24552	 test ! -s conftest.err
24553       } && test -s conftest.$ac_objext; then
24554  ac_lo=0 ac_mid=0
24555  while :; do
24556    cat >conftest.$ac_ext <<_ACEOF
24557/* confdefs.h.  */
24558_ACEOF
24559cat confdefs.h >>conftest.$ac_ext
24560cat >>conftest.$ac_ext <<_ACEOF
24561/* end confdefs.h.  */
24562#include <stddef.h>
24563int
24564main ()
24565{
24566static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
24567test_array [0] = 0
24568
24569  ;
24570  return 0;
24571}
24572_ACEOF
24573rm -f conftest.$ac_objext
24574if { (ac_try="$ac_compile"
24575case "(($ac_try" in
24576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24577  *) ac_try_echo=$ac_try;;
24578esac
24579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24580  (eval "$ac_compile") 2>conftest.er1
24581  ac_status=$?
24582  grep -v '^ *+' conftest.er1 >conftest.err
24583  rm -f conftest.er1
24584  cat conftest.err >&5
24585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586  (exit $ac_status); } && {
24587	 test -z "$ac_c_werror_flag" ||
24588	 test ! -s conftest.err
24589       } && test -s conftest.$ac_objext; then
24590  ac_hi=$ac_mid; break
24591else
24592  echo "$as_me: failed program was:" >&5
24593sed 's/^/| /' conftest.$ac_ext >&5
24594
24595	ac_lo=`expr $ac_mid + 1`
24596			if test $ac_lo -le $ac_mid; then
24597			  ac_lo= ac_hi=
24598			  break
24599			fi
24600			ac_mid=`expr 2 '*' $ac_mid + 1`
24601fi
24602
24603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24604  done
24605else
24606  echo "$as_me: failed program was:" >&5
24607sed 's/^/| /' conftest.$ac_ext >&5
24608
24609	cat >conftest.$ac_ext <<_ACEOF
24610/* confdefs.h.  */
24611_ACEOF
24612cat confdefs.h >>conftest.$ac_ext
24613cat >>conftest.$ac_ext <<_ACEOF
24614/* end confdefs.h.  */
24615#include <stddef.h>
24616int
24617main ()
24618{
24619static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
24620test_array [0] = 0
24621
24622  ;
24623  return 0;
24624}
24625_ACEOF
24626rm -f conftest.$ac_objext
24627if { (ac_try="$ac_compile"
24628case "(($ac_try" in
24629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24630  *) ac_try_echo=$ac_try;;
24631esac
24632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24633  (eval "$ac_compile") 2>conftest.er1
24634  ac_status=$?
24635  grep -v '^ *+' conftest.er1 >conftest.err
24636  rm -f conftest.er1
24637  cat conftest.err >&5
24638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639  (exit $ac_status); } && {
24640	 test -z "$ac_c_werror_flag" ||
24641	 test ! -s conftest.err
24642       } && test -s conftest.$ac_objext; then
24643  ac_hi=-1 ac_mid=-1
24644  while :; do
24645    cat >conftest.$ac_ext <<_ACEOF
24646/* confdefs.h.  */
24647_ACEOF
24648cat confdefs.h >>conftest.$ac_ext
24649cat >>conftest.$ac_ext <<_ACEOF
24650/* end confdefs.h.  */
24651#include <stddef.h>
24652int
24653main ()
24654{
24655static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
24656test_array [0] = 0
24657
24658  ;
24659  return 0;
24660}
24661_ACEOF
24662rm -f conftest.$ac_objext
24663if { (ac_try="$ac_compile"
24664case "(($ac_try" in
24665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24666  *) ac_try_echo=$ac_try;;
24667esac
24668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24669  (eval "$ac_compile") 2>conftest.er1
24670  ac_status=$?
24671  grep -v '^ *+' conftest.er1 >conftest.err
24672  rm -f conftest.er1
24673  cat conftest.err >&5
24674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675  (exit $ac_status); } && {
24676	 test -z "$ac_c_werror_flag" ||
24677	 test ! -s conftest.err
24678       } && test -s conftest.$ac_objext; then
24679  ac_lo=$ac_mid; break
24680else
24681  echo "$as_me: failed program was:" >&5
24682sed 's/^/| /' conftest.$ac_ext >&5
24683
24684	ac_hi=`expr '(' $ac_mid ')' - 1`
24685			if test $ac_mid -le $ac_hi; then
24686			  ac_lo= ac_hi=
24687			  break
24688			fi
24689			ac_mid=`expr 2 '*' $ac_mid`
24690fi
24691
24692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24693  done
24694else
24695  echo "$as_me: failed program was:" >&5
24696sed 's/^/| /' conftest.$ac_ext >&5
24697
24698	ac_lo= ac_hi=
24699fi
24700
24701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24702fi
24703
24704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24705# Binary search between lo and hi bounds.
24706while test "x$ac_lo" != "x$ac_hi"; do
24707  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24708  cat >conftest.$ac_ext <<_ACEOF
24709/* confdefs.h.  */
24710_ACEOF
24711cat confdefs.h >>conftest.$ac_ext
24712cat >>conftest.$ac_ext <<_ACEOF
24713/* end confdefs.h.  */
24714#include <stddef.h>
24715int
24716main ()
24717{
24718static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
24719test_array [0] = 0
24720
24721  ;
24722  return 0;
24723}
24724_ACEOF
24725rm -f conftest.$ac_objext
24726if { (ac_try="$ac_compile"
24727case "(($ac_try" in
24728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24729  *) ac_try_echo=$ac_try;;
24730esac
24731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24732  (eval "$ac_compile") 2>conftest.er1
24733  ac_status=$?
24734  grep -v '^ *+' conftest.er1 >conftest.err
24735  rm -f conftest.er1
24736  cat conftest.err >&5
24737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738  (exit $ac_status); } && {
24739	 test -z "$ac_c_werror_flag" ||
24740	 test ! -s conftest.err
24741       } && test -s conftest.$ac_objext; then
24742  ac_hi=$ac_mid
24743else
24744  echo "$as_me: failed program was:" >&5
24745sed 's/^/| /' conftest.$ac_ext >&5
24746
24747	ac_lo=`expr '(' $ac_mid ')' + 1`
24748fi
24749
24750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24751done
24752case $ac_lo in
24753?*) res_lo=$ac_lo;;
24754'') result=? ;;
24755esac
24756else
24757  cat >conftest.$ac_ext <<_ACEOF
24758/* confdefs.h.  */
24759_ACEOF
24760cat confdefs.h >>conftest.$ac_ext
24761cat >>conftest.$ac_ext <<_ACEOF
24762/* end confdefs.h.  */
24763#include <stddef.h>
24764static long int longval () { return ~(size_t)0 % 10; }
24765static unsigned long int ulongval () { return ~(size_t)0 % 10; }
24766#include <stdio.h>
24767#include <stdlib.h>
24768int
24769main ()
24770{
24771
24772  FILE *f = fopen ("conftest.val", "w");
24773  if (! f)
24774    return 1;
24775  if ((~(size_t)0 % 10) < 0)
24776    {
24777      long int i = longval ();
24778      if (i != (~(size_t)0 % 10))
24779	return 1;
24780      fprintf (f, "%ld\n", i);
24781    }
24782  else
24783    {
24784      unsigned long int i = ulongval ();
24785      if (i != (~(size_t)0 % 10))
24786	return 1;
24787      fprintf (f, "%lu\n", i);
24788    }
24789  return ferror (f) || fclose (f) != 0;
24790
24791  ;
24792  return 0;
24793}
24794_ACEOF
24795rm -f conftest$ac_exeext
24796if { (ac_try="$ac_link"
24797case "(($ac_try" in
24798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24799  *) ac_try_echo=$ac_try;;
24800esac
24801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24802  (eval "$ac_link") 2>&5
24803  ac_status=$?
24804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24806  { (case "(($ac_try" in
24807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24808  *) ac_try_echo=$ac_try;;
24809esac
24810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24811  (eval "$ac_try") 2>&5
24812  ac_status=$?
24813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814  (exit $ac_status); }; }; then
24815  res_lo=`cat conftest.val`
24816else
24817  echo "$as_me: program exited with status $ac_status" >&5
24818echo "$as_me: failed program was:" >&5
24819sed 's/^/| /' conftest.$ac_ext >&5
24820
24821( exit $ac_status )
24822result=?
24823fi
24824rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24825fi
24826rm -f conftest.val
24827
24828    if test "$cross_compiling" = yes; then
24829  # Depending upon the size, compute the lo and hi bounds.
24830cat >conftest.$ac_ext <<_ACEOF
24831/* confdefs.h.  */
24832_ACEOF
24833cat confdefs.h >>conftest.$ac_ext
24834cat >>conftest.$ac_ext <<_ACEOF
24835/* end confdefs.h.  */
24836#include <stddef.h>
24837int
24838main ()
24839{
24840static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
24841test_array [0] = 0
24842
24843  ;
24844  return 0;
24845}
24846_ACEOF
24847rm -f conftest.$ac_objext
24848if { (ac_try="$ac_compile"
24849case "(($ac_try" in
24850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851  *) ac_try_echo=$ac_try;;
24852esac
24853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24854  (eval "$ac_compile") 2>conftest.er1
24855  ac_status=$?
24856  grep -v '^ *+' conftest.er1 >conftest.err
24857  rm -f conftest.er1
24858  cat conftest.err >&5
24859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860  (exit $ac_status); } && {
24861	 test -z "$ac_c_werror_flag" ||
24862	 test ! -s conftest.err
24863       } && test -s conftest.$ac_objext; then
24864  ac_lo=0 ac_mid=0
24865  while :; do
24866    cat >conftest.$ac_ext <<_ACEOF
24867/* confdefs.h.  */
24868_ACEOF
24869cat confdefs.h >>conftest.$ac_ext
24870cat >>conftest.$ac_ext <<_ACEOF
24871/* end confdefs.h.  */
24872#include <stddef.h>
24873int
24874main ()
24875{
24876static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
24877test_array [0] = 0
24878
24879  ;
24880  return 0;
24881}
24882_ACEOF
24883rm -f conftest.$ac_objext
24884if { (ac_try="$ac_compile"
24885case "(($ac_try" in
24886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887  *) ac_try_echo=$ac_try;;
24888esac
24889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890  (eval "$ac_compile") 2>conftest.er1
24891  ac_status=$?
24892  grep -v '^ *+' conftest.er1 >conftest.err
24893  rm -f conftest.er1
24894  cat conftest.err >&5
24895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896  (exit $ac_status); } && {
24897	 test -z "$ac_c_werror_flag" ||
24898	 test ! -s conftest.err
24899       } && test -s conftest.$ac_objext; then
24900  ac_hi=$ac_mid; break
24901else
24902  echo "$as_me: failed program was:" >&5
24903sed 's/^/| /' conftest.$ac_ext >&5
24904
24905	ac_lo=`expr $ac_mid + 1`
24906			if test $ac_lo -le $ac_mid; then
24907			  ac_lo= ac_hi=
24908			  break
24909			fi
24910			ac_mid=`expr 2 '*' $ac_mid + 1`
24911fi
24912
24913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24914  done
24915else
24916  echo "$as_me: failed program was:" >&5
24917sed 's/^/| /' conftest.$ac_ext >&5
24918
24919	cat >conftest.$ac_ext <<_ACEOF
24920/* confdefs.h.  */
24921_ACEOF
24922cat confdefs.h >>conftest.$ac_ext
24923cat >>conftest.$ac_ext <<_ACEOF
24924/* end confdefs.h.  */
24925#include <stddef.h>
24926int
24927main ()
24928{
24929static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
24930test_array [0] = 0
24931
24932  ;
24933  return 0;
24934}
24935_ACEOF
24936rm -f conftest.$ac_objext
24937if { (ac_try="$ac_compile"
24938case "(($ac_try" in
24939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24940  *) ac_try_echo=$ac_try;;
24941esac
24942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24943  (eval "$ac_compile") 2>conftest.er1
24944  ac_status=$?
24945  grep -v '^ *+' conftest.er1 >conftest.err
24946  rm -f conftest.er1
24947  cat conftest.err >&5
24948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949  (exit $ac_status); } && {
24950	 test -z "$ac_c_werror_flag" ||
24951	 test ! -s conftest.err
24952       } && test -s conftest.$ac_objext; then
24953  ac_hi=-1 ac_mid=-1
24954  while :; do
24955    cat >conftest.$ac_ext <<_ACEOF
24956/* confdefs.h.  */
24957_ACEOF
24958cat confdefs.h >>conftest.$ac_ext
24959cat >>conftest.$ac_ext <<_ACEOF
24960/* end confdefs.h.  */
24961#include <stddef.h>
24962int
24963main ()
24964{
24965static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
24966test_array [0] = 0
24967
24968  ;
24969  return 0;
24970}
24971_ACEOF
24972rm -f conftest.$ac_objext
24973if { (ac_try="$ac_compile"
24974case "(($ac_try" in
24975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24976  *) ac_try_echo=$ac_try;;
24977esac
24978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24979  (eval "$ac_compile") 2>conftest.er1
24980  ac_status=$?
24981  grep -v '^ *+' conftest.er1 >conftest.err
24982  rm -f conftest.er1
24983  cat conftest.err >&5
24984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985  (exit $ac_status); } && {
24986	 test -z "$ac_c_werror_flag" ||
24987	 test ! -s conftest.err
24988       } && test -s conftest.$ac_objext; then
24989  ac_lo=$ac_mid; break
24990else
24991  echo "$as_me: failed program was:" >&5
24992sed 's/^/| /' conftest.$ac_ext >&5
24993
24994	ac_hi=`expr '(' $ac_mid ')' - 1`
24995			if test $ac_mid -le $ac_hi; then
24996			  ac_lo= ac_hi=
24997			  break
24998			fi
24999			ac_mid=`expr 2 '*' $ac_mid`
25000fi
25001
25002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25003  done
25004else
25005  echo "$as_me: failed program was:" >&5
25006sed 's/^/| /' conftest.$ac_ext >&5
25007
25008	ac_lo= ac_hi=
25009fi
25010
25011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25012fi
25013
25014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25015# Binary search between lo and hi bounds.
25016while test "x$ac_lo" != "x$ac_hi"; do
25017  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25018  cat >conftest.$ac_ext <<_ACEOF
25019/* confdefs.h.  */
25020_ACEOF
25021cat confdefs.h >>conftest.$ac_ext
25022cat >>conftest.$ac_ext <<_ACEOF
25023/* end confdefs.h.  */
25024#include <stddef.h>
25025int
25026main ()
25027{
25028static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
25029test_array [0] = 0
25030
25031  ;
25032  return 0;
25033}
25034_ACEOF
25035rm -f conftest.$ac_objext
25036if { (ac_try="$ac_compile"
25037case "(($ac_try" in
25038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25039  *) ac_try_echo=$ac_try;;
25040esac
25041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25042  (eval "$ac_compile") 2>conftest.er1
25043  ac_status=$?
25044  grep -v '^ *+' conftest.er1 >conftest.err
25045  rm -f conftest.er1
25046  cat conftest.err >&5
25047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048  (exit $ac_status); } && {
25049	 test -z "$ac_c_werror_flag" ||
25050	 test ! -s conftest.err
25051       } && test -s conftest.$ac_objext; then
25052  ac_hi=$ac_mid
25053else
25054  echo "$as_me: failed program was:" >&5
25055sed 's/^/| /' conftest.$ac_ext >&5
25056
25057	ac_lo=`expr '(' $ac_mid ')' + 1`
25058fi
25059
25060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25061done
25062case $ac_lo in
25063?*) fits_in_uint=$ac_lo;;
25064'') result=? ;;
25065esac
25066else
25067  cat >conftest.$ac_ext <<_ACEOF
25068/* confdefs.h.  */
25069_ACEOF
25070cat confdefs.h >>conftest.$ac_ext
25071cat >>conftest.$ac_ext <<_ACEOF
25072/* end confdefs.h.  */
25073#include <stddef.h>
25074static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
25075static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
25076#include <stdio.h>
25077#include <stdlib.h>
25078int
25079main ()
25080{
25081
25082  FILE *f = fopen ("conftest.val", "w");
25083  if (! f)
25084    return 1;
25085  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
25086    {
25087      long int i = longval ();
25088      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
25089	return 1;
25090      fprintf (f, "%ld\n", i);
25091    }
25092  else
25093    {
25094      unsigned long int i = ulongval ();
25095      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
25096	return 1;
25097      fprintf (f, "%lu\n", i);
25098    }
25099  return ferror (f) || fclose (f) != 0;
25100
25101  ;
25102  return 0;
25103}
25104_ACEOF
25105rm -f conftest$ac_exeext
25106if { (ac_try="$ac_link"
25107case "(($ac_try" in
25108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25109  *) ac_try_echo=$ac_try;;
25110esac
25111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25112  (eval "$ac_link") 2>&5
25113  ac_status=$?
25114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25116  { (case "(($ac_try" in
25117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25118  *) ac_try_echo=$ac_try;;
25119esac
25120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25121  (eval "$ac_try") 2>&5
25122  ac_status=$?
25123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124  (exit $ac_status); }; }; then
25125  fits_in_uint=`cat conftest.val`
25126else
25127  echo "$as_me: program exited with status $ac_status" >&5
25128echo "$as_me: failed program was:" >&5
25129sed 's/^/| /' conftest.$ac_ext >&5
25130
25131( exit $ac_status )
25132result=?
25133fi
25134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25135fi
25136rm -f conftest.val
25137
25138    if test "$fits_in_uint" = 1; then
25139                  cat >conftest.$ac_ext <<_ACEOF
25140/* confdefs.h.  */
25141_ACEOF
25142cat confdefs.h >>conftest.$ac_ext
25143cat >>conftest.$ac_ext <<_ACEOF
25144/* end confdefs.h.  */
25145#include <stddef.h>
25146        extern size_t foo;
25147        extern unsigned long foo;
25148
25149int
25150main ()
25151{
25152
25153  ;
25154  return 0;
25155}
25156_ACEOF
25157rm -f conftest.$ac_objext
25158if { (ac_try="$ac_compile"
25159case "(($ac_try" in
25160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25161  *) ac_try_echo=$ac_try;;
25162esac
25163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25164  (eval "$ac_compile") 2>conftest.er1
25165  ac_status=$?
25166  grep -v '^ *+' conftest.er1 >conftest.err
25167  rm -f conftest.er1
25168  cat conftest.err >&5
25169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170  (exit $ac_status); } && {
25171	 test -z "$ac_c_werror_flag" ||
25172	 test ! -s conftest.err
25173       } && test -s conftest.$ac_objext; then
25174  fits_in_uint=0
25175else
25176  echo "$as_me: failed program was:" >&5
25177sed 's/^/| /' conftest.$ac_ext >&5
25178
25179
25180fi
25181
25182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25183    fi
25184    if test -z "$result"; then
25185      if test "$fits_in_uint" = 1; then
25186        result="$res_hi$res_lo"U
25187      else
25188        result="$res_hi$res_lo"UL
25189      fi
25190    else
25191            result='~(size_t)0'
25192    fi
25193  fi
25194  { echo "$as_me:$LINENO: result: $result" >&5
25195echo "${ECHO_T}$result" >&6; }
25196  if test "$result" != yes; then
25197
25198cat >>confdefs.h <<_ACEOF
25199#define SIZE_MAX $result
25200_ACEOF
25201
25202  fi
25203
25204
25205
25206
25207
25208for ac_header in stdint.h
25209do
25210as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25211if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25212  { echo "$as_me:$LINENO: checking for $ac_header" >&5
25213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25215  echo $ECHO_N "(cached) $ECHO_C" >&6
25216fi
25217ac_res=`eval echo '${'$as_ac_Header'}'`
25218	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25219echo "${ECHO_T}$ac_res" >&6; }
25220else
25221  # Is the header compilable?
25222{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25223echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25224cat >conftest.$ac_ext <<_ACEOF
25225/* confdefs.h.  */
25226_ACEOF
25227cat confdefs.h >>conftest.$ac_ext
25228cat >>conftest.$ac_ext <<_ACEOF
25229/* end confdefs.h.  */
25230$ac_includes_default
25231#include <$ac_header>
25232_ACEOF
25233rm -f conftest.$ac_objext
25234if { (ac_try="$ac_compile"
25235case "(($ac_try" in
25236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25237  *) ac_try_echo=$ac_try;;
25238esac
25239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25240  (eval "$ac_compile") 2>conftest.er1
25241  ac_status=$?
25242  grep -v '^ *+' conftest.er1 >conftest.err
25243  rm -f conftest.er1
25244  cat conftest.err >&5
25245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246  (exit $ac_status); } && {
25247	 test -z "$ac_c_werror_flag" ||
25248	 test ! -s conftest.err
25249       } && test -s conftest.$ac_objext; then
25250  ac_header_compiler=yes
25251else
25252  echo "$as_me: failed program was:" >&5
25253sed 's/^/| /' conftest.$ac_ext >&5
25254
25255	ac_header_compiler=no
25256fi
25257
25258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25259{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25260echo "${ECHO_T}$ac_header_compiler" >&6; }
25261
25262# Is the header present?
25263{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
25264echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25265cat >conftest.$ac_ext <<_ACEOF
25266/* confdefs.h.  */
25267_ACEOF
25268cat confdefs.h >>conftest.$ac_ext
25269cat >>conftest.$ac_ext <<_ACEOF
25270/* end confdefs.h.  */
25271#include <$ac_header>
25272_ACEOF
25273if { (ac_try="$ac_cpp conftest.$ac_ext"
25274case "(($ac_try" in
25275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25276  *) ac_try_echo=$ac_try;;
25277esac
25278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25279  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25280  ac_status=$?
25281  grep -v '^ *+' conftest.er1 >conftest.err
25282  rm -f conftest.er1
25283  cat conftest.err >&5
25284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285  (exit $ac_status); } >/dev/null && {
25286	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25287	 test ! -s conftest.err
25288       }; then
25289  ac_header_preproc=yes
25290else
25291  echo "$as_me: failed program was:" >&5
25292sed 's/^/| /' conftest.$ac_ext >&5
25293
25294  ac_header_preproc=no
25295fi
25296
25297rm -f conftest.err conftest.$ac_ext
25298{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25299echo "${ECHO_T}$ac_header_preproc" >&6; }
25300
25301# So?  What about this header?
25302case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25303  yes:no: )
25304    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25305echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25306    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25307echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25308    ac_header_preproc=yes
25309    ;;
25310  no:yes:* )
25311    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25312echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25313    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25314echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25315    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25316echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25317    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25318echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25319    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25320echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25321    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25322echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25323
25324    ;;
25325esac
25326{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25328if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25329  echo $ECHO_N "(cached) $ECHO_C" >&6
25330else
25331  eval "$as_ac_Header=\$ac_header_preproc"
25332fi
25333ac_res=`eval echo '${'$as_ac_Header'}'`
25334	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25335echo "${ECHO_T}$ac_res" >&6; }
25336
25337fi
25338if test `eval echo '${'$as_ac_Header'}'` = yes; then
25339  cat >>confdefs.h <<_ACEOF
25340#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25341_ACEOF
25342
25343fi
25344
25345done
25346
25347
25348
25349    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
25350echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
25351if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
25352  echo $ECHO_N "(cached) $ECHO_C" >&6
25353else
25354  gt_save_CPPFLAGS="$CPPFLAGS"
25355     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
25356     gt_save_LIBS="$LIBS"
25357     LIBS="$LIBS -framework CoreFoundation"
25358     cat >conftest.$ac_ext <<_ACEOF
25359/* confdefs.h.  */
25360_ACEOF
25361cat confdefs.h >>conftest.$ac_ext
25362cat >>conftest.$ac_ext <<_ACEOF
25363/* end confdefs.h.  */
25364#include <CFPreferences.h>
25365int
25366main ()
25367{
25368CFPreferencesCopyAppValue(NULL, NULL)
25369  ;
25370  return 0;
25371}
25372_ACEOF
25373rm -f conftest.$ac_objext conftest$ac_exeext
25374if { (ac_try="$ac_link"
25375case "(($ac_try" in
25376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25377  *) ac_try_echo=$ac_try;;
25378esac
25379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25380  (eval "$ac_link") 2>conftest.er1
25381  ac_status=$?
25382  grep -v '^ *+' conftest.er1 >conftest.err
25383  rm -f conftest.er1
25384  cat conftest.err >&5
25385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386  (exit $ac_status); } && {
25387	 test -z "$ac_c_werror_flag" ||
25388	 test ! -s conftest.err
25389       } && test -s conftest$ac_exeext &&
25390       $as_test_x conftest$ac_exeext; then
25391  gt_cv_func_CFPreferencesCopyAppValue=yes
25392else
25393  echo "$as_me: failed program was:" >&5
25394sed 's/^/| /' conftest.$ac_ext >&5
25395
25396	gt_cv_func_CFPreferencesCopyAppValue=no
25397fi
25398
25399rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25400      conftest$ac_exeext conftest.$ac_ext
25401     CPPFLAGS="$gt_save_CPPFLAGS"
25402     LIBS="$gt_save_LIBS"
25403fi
25404{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
25405echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
25406  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
25407
25408cat >>confdefs.h <<\_ACEOF
25409#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
25410_ACEOF
25411
25412  fi
25413    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
25414echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
25415if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
25416  echo $ECHO_N "(cached) $ECHO_C" >&6
25417else
25418  gt_save_CPPFLAGS="$CPPFLAGS"
25419     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
25420     gt_save_LIBS="$LIBS"
25421     LIBS="$LIBS -framework CoreFoundation"
25422     cat >conftest.$ac_ext <<_ACEOF
25423/* confdefs.h.  */
25424_ACEOF
25425cat confdefs.h >>conftest.$ac_ext
25426cat >>conftest.$ac_ext <<_ACEOF
25427/* end confdefs.h.  */
25428#include <CFLocale.h>
25429int
25430main ()
25431{
25432CFLocaleCopyCurrent();
25433  ;
25434  return 0;
25435}
25436_ACEOF
25437rm -f conftest.$ac_objext conftest$ac_exeext
25438if { (ac_try="$ac_link"
25439case "(($ac_try" in
25440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25441  *) ac_try_echo=$ac_try;;
25442esac
25443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25444  (eval "$ac_link") 2>conftest.er1
25445  ac_status=$?
25446  grep -v '^ *+' conftest.er1 >conftest.err
25447  rm -f conftest.er1
25448  cat conftest.err >&5
25449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450  (exit $ac_status); } && {
25451	 test -z "$ac_c_werror_flag" ||
25452	 test ! -s conftest.err
25453       } && test -s conftest$ac_exeext &&
25454       $as_test_x conftest$ac_exeext; then
25455  gt_cv_func_CFLocaleCopyCurrent=yes
25456else
25457  echo "$as_me: failed program was:" >&5
25458sed 's/^/| /' conftest.$ac_ext >&5
25459
25460	gt_cv_func_CFLocaleCopyCurrent=no
25461fi
25462
25463rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25464      conftest$ac_exeext conftest.$ac_ext
25465     CPPFLAGS="$gt_save_CPPFLAGS"
25466     LIBS="$gt_save_LIBS"
25467fi
25468{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
25469echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
25470  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
25471
25472cat >>confdefs.h <<\_ACEOF
25473#define HAVE_CFLOCALECOPYCURRENT 1
25474_ACEOF
25475
25476  fi
25477  INTL_MACOSX_LIBS=
25478  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
25479    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
25480  fi
25481
25482
25483
25484      if test "X$prefix" = "XNONE"; then
25485    acl_final_prefix="$ac_default_prefix"
25486  else
25487    acl_final_prefix="$prefix"
25488  fi
25489  if test "X$exec_prefix" = "XNONE"; then
25490    acl_final_exec_prefix='${prefix}'
25491  else
25492    acl_final_exec_prefix="$exec_prefix"
25493  fi
25494  acl_save_prefix="$prefix"
25495  prefix="$acl_final_prefix"
25496  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
25497  prefix="$acl_save_prefix"
25498
25499
25500# Check whether --with-gnu-ld was given.
25501if test "${with_gnu_ld+set}" = set; then
25502  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
25503else
25504  with_gnu_ld=no
25505fi
25506
25507# Prepare PATH_SEPARATOR.
25508# The user is always right.
25509if test "${PATH_SEPARATOR+set}" != set; then
25510  echo "#! /bin/sh" >conf$$.sh
25511  echo  "exit 0"   >>conf$$.sh
25512  chmod +x conf$$.sh
25513  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25514    PATH_SEPARATOR=';'
25515  else
25516    PATH_SEPARATOR=:
25517  fi
25518  rm -f conf$$.sh
25519fi
25520ac_prog=ld
25521if test "$GCC" = yes; then
25522  # Check if gcc -print-prog-name=ld gives a path.
25523  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
25524echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
25525  case $host in
25526  *-*-mingw*)
25527    # gcc leaves a trailing carriage return which upsets mingw
25528    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
25529  *)
25530    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
25531  esac
25532  case $ac_prog in
25533    # Accept absolute paths.
25534    [\\/]* | [A-Za-z]:[\\/]*)
25535      re_direlt='/[^/][^/]*/\.\./'
25536      # Canonicalize the path of ld
25537      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
25538      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
25539	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
25540      done
25541      test -z "$LD" && LD="$ac_prog"
25542      ;;
25543  "")
25544    # If it fails, then pretend we aren't using GCC.
25545    ac_prog=ld
25546    ;;
25547  *)
25548    # If it is relative, then search for the first ld in PATH.
25549    with_gnu_ld=unknown
25550    ;;
25551  esac
25552elif test "$with_gnu_ld" = yes; then
25553  { echo "$as_me:$LINENO: checking for GNU ld" >&5
25554echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
25555else
25556  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
25557echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
25558fi
25559if test "${acl_cv_path_LD+set}" = set; then
25560  echo $ECHO_N "(cached) $ECHO_C" >&6
25561else
25562  if test -z "$LD"; then
25563  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
25564  for ac_dir in $PATH; do
25565    test -z "$ac_dir" && ac_dir=.
25566    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
25567      acl_cv_path_LD="$ac_dir/$ac_prog"
25568      # Check to see if the program is GNU ld.  I'd rather use --version,
25569      # but apparently some GNU ld's only accept -v.
25570      # Break only if it was the GNU/non-GNU ld that we prefer.
25571      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
25572      *GNU* | *'with BFD'*)
25573	test "$with_gnu_ld" != no && break ;;
25574      *)
25575	test "$with_gnu_ld" != yes && break ;;
25576      esac
25577    fi
25578  done
25579  IFS="$ac_save_ifs"
25580else
25581  acl_cv_path_LD="$LD" # Let the user override the test with a path.
25582fi
25583fi
25584
25585LD="$acl_cv_path_LD"
25586if test -n "$LD"; then
25587  { echo "$as_me:$LINENO: result: $LD" >&5
25588echo "${ECHO_T}$LD" >&6; }
25589else
25590  { echo "$as_me:$LINENO: result: no" >&5
25591echo "${ECHO_T}no" >&6; }
25592fi
25593test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
25594echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
25595   { (exit 1); exit 1; }; }
25596{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
25597echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
25598if test "${acl_cv_prog_gnu_ld+set}" = set; then
25599  echo $ECHO_N "(cached) $ECHO_C" >&6
25600else
25601  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
25602case `$LD -v 2>&1 </dev/null` in
25603*GNU* | *'with BFD'*)
25604  acl_cv_prog_gnu_ld=yes ;;
25605*)
25606  acl_cv_prog_gnu_ld=no ;;
25607esac
25608fi
25609{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
25610echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
25611with_gnu_ld=$acl_cv_prog_gnu_ld
25612
25613
25614
25615
25616                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
25617echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
25618if test "${acl_cv_rpath+set}" = set; then
25619  echo $ECHO_N "(cached) $ECHO_C" >&6
25620else
25621
25622    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
25623    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
25624    . ./conftest.sh
25625    rm -f ./conftest.sh
25626    acl_cv_rpath=done
25627
25628fi
25629{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
25630echo "${ECHO_T}$acl_cv_rpath" >&6; }
25631  wl="$acl_cv_wl"
25632  libext="$acl_cv_libext"
25633  shlibext="$acl_cv_shlibext"
25634  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
25635  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
25636  hardcode_direct="$acl_cv_hardcode_direct"
25637  hardcode_minus_L="$acl_cv_hardcode_minus_L"
25638    # Check whether --enable-rpath was given.
25639if test "${enable_rpath+set}" = set; then
25640  enableval=$enable_rpath; :
25641else
25642  enable_rpath=yes
25643fi
25644
25645
25646
25647
25648
25649
25650
25651
25652    use_additional=yes
25653
25654  acl_save_prefix="$prefix"
25655  prefix="$acl_final_prefix"
25656  acl_save_exec_prefix="$exec_prefix"
25657  exec_prefix="$acl_final_exec_prefix"
25658
25659    eval additional_includedir=\"$includedir\"
25660    eval additional_libdir=\"$libdir\"
25661
25662  exec_prefix="$acl_save_exec_prefix"
25663  prefix="$acl_save_prefix"
25664
25665
25666# Check whether --with-libiconv-prefix was given.
25667if test "${with_libiconv_prefix+set}" = set; then
25668  withval=$with_libiconv_prefix;
25669    if test "X$withval" = "Xno"; then
25670      use_additional=no
25671    else
25672      if test "X$withval" = "X"; then
25673
25674  acl_save_prefix="$prefix"
25675  prefix="$acl_final_prefix"
25676  acl_save_exec_prefix="$exec_prefix"
25677  exec_prefix="$acl_final_exec_prefix"
25678
25679          eval additional_includedir=\"$includedir\"
25680          eval additional_libdir=\"$libdir\"
25681
25682  exec_prefix="$acl_save_exec_prefix"
25683  prefix="$acl_save_prefix"
25684
25685      else
25686        additional_includedir="$withval/include"
25687        additional_libdir="$withval/lib"
25688      fi
25689    fi
25690
25691fi
25692
25693      LIBICONV=
25694  LTLIBICONV=
25695  INCICONV=
25696  rpathdirs=
25697  ltrpathdirs=
25698  names_already_handled=
25699  names_next_round='iconv '
25700  while test -n "$names_next_round"; do
25701    names_this_round="$names_next_round"
25702    names_next_round=
25703    for name in $names_this_round; do
25704      already_handled=
25705      for n in $names_already_handled; do
25706        if test "$n" = "$name"; then
25707          already_handled=yes
25708          break
25709        fi
25710      done
25711      if test -z "$already_handled"; then
25712        names_already_handled="$names_already_handled $name"
25713                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
25714        eval value=\"\$HAVE_LIB$uppername\"
25715        if test -n "$value"; then
25716          if test "$value" = yes; then
25717            eval value=\"\$LIB$uppername\"
25718            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
25719            eval value=\"\$LTLIB$uppername\"
25720            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
25721          else
25722                                    :
25723          fi
25724        else
25725                              found_dir=
25726          found_la=
25727          found_so=
25728          found_a=
25729          if test $use_additional = yes; then
25730            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
25731              found_dir="$additional_libdir"
25732              found_so="$additional_libdir/lib$name.$shlibext"
25733              if test -f "$additional_libdir/lib$name.la"; then
25734                found_la="$additional_libdir/lib$name.la"
25735              fi
25736            else
25737              if test -f "$additional_libdir/lib$name.$libext"; then
25738                found_dir="$additional_libdir"
25739                found_a="$additional_libdir/lib$name.$libext"
25740                if test -f "$additional_libdir/lib$name.la"; then
25741                  found_la="$additional_libdir/lib$name.la"
25742                fi
25743              fi
25744            fi
25745          fi
25746          if test "X$found_dir" = "X"; then
25747            for x in $LDFLAGS $LTLIBICONV; do
25748
25749  acl_save_prefix="$prefix"
25750  prefix="$acl_final_prefix"
25751  acl_save_exec_prefix="$exec_prefix"
25752  exec_prefix="$acl_final_exec_prefix"
25753  eval x=\"$x\"
25754  exec_prefix="$acl_save_exec_prefix"
25755  prefix="$acl_save_prefix"
25756
25757              case "$x" in
25758                -L*)
25759                  dir=`echo "X$x" | sed -e 's/^X-L//'`
25760                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
25761                    found_dir="$dir"
25762                    found_so="$dir/lib$name.$shlibext"
25763                    if test -f "$dir/lib$name.la"; then
25764                      found_la="$dir/lib$name.la"
25765                    fi
25766                  else
25767                    if test -f "$dir/lib$name.$libext"; then
25768                      found_dir="$dir"
25769                      found_a="$dir/lib$name.$libext"
25770                      if test -f "$dir/lib$name.la"; then
25771                        found_la="$dir/lib$name.la"
25772                      fi
25773                    fi
25774                  fi
25775                  ;;
25776              esac
25777              if test "X$found_dir" != "X"; then
25778                break
25779              fi
25780            done
25781          fi
25782          if test "X$found_dir" != "X"; then
25783                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
25784            if test "X$found_so" != "X"; then
25785                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
25786                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25787              else
25788                                                                                haveit=
25789                for x in $ltrpathdirs; do
25790                  if test "X$x" = "X$found_dir"; then
25791                    haveit=yes
25792                    break
25793                  fi
25794                done
25795                if test -z "$haveit"; then
25796                  ltrpathdirs="$ltrpathdirs $found_dir"
25797                fi
25798                                if test "$hardcode_direct" = yes; then
25799                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25800                else
25801                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
25802                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25803                                                            haveit=
25804                    for x in $rpathdirs; do
25805                      if test "X$x" = "X$found_dir"; then
25806                        haveit=yes
25807                        break
25808                      fi
25809                    done
25810                    if test -z "$haveit"; then
25811                      rpathdirs="$rpathdirs $found_dir"
25812                    fi
25813                  else
25814                                                                                haveit=
25815                    for x in $LDFLAGS $LIBICONV; do
25816
25817  acl_save_prefix="$prefix"
25818  prefix="$acl_final_prefix"
25819  acl_save_exec_prefix="$exec_prefix"
25820  exec_prefix="$acl_final_exec_prefix"
25821  eval x=\"$x\"
25822  exec_prefix="$acl_save_exec_prefix"
25823  prefix="$acl_save_prefix"
25824
25825                      if test "X$x" = "X-L$found_dir"; then
25826                        haveit=yes
25827                        break
25828                      fi
25829                    done
25830                    if test -z "$haveit"; then
25831                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
25832                    fi
25833                    if test "$hardcode_minus_L" != no; then
25834                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25835                    else
25836                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
25837                    fi
25838                  fi
25839                fi
25840              fi
25841            else
25842              if test "X$found_a" != "X"; then
25843                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
25844              else
25845                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
25846              fi
25847            fi
25848                        additional_includedir=
25849            case "$found_dir" in
25850              */lib | */lib/)
25851                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
25852                additional_includedir="$basedir/include"
25853                ;;
25854            esac
25855            if test "X$additional_includedir" != "X"; then
25856                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
25857                haveit=
25858                if test "X$additional_includedir" = "X/usr/local/include"; then
25859                  if test -n "$GCC"; then
25860                    case $host_os in
25861                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25862                    esac
25863                  fi
25864                fi
25865                if test -z "$haveit"; then
25866                  for x in $CPPFLAGS $INCICONV; do
25867
25868  acl_save_prefix="$prefix"
25869  prefix="$acl_final_prefix"
25870  acl_save_exec_prefix="$exec_prefix"
25871  exec_prefix="$acl_final_exec_prefix"
25872  eval x=\"$x\"
25873  exec_prefix="$acl_save_exec_prefix"
25874  prefix="$acl_save_prefix"
25875
25876                    if test "X$x" = "X-I$additional_includedir"; then
25877                      haveit=yes
25878                      break
25879                    fi
25880                  done
25881                  if test -z "$haveit"; then
25882                    if test -d "$additional_includedir"; then
25883                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
25884                    fi
25885                  fi
25886                fi
25887              fi
25888            fi
25889                        if test -n "$found_la"; then
25890                                                        save_libdir="$libdir"
25891              case "$found_la" in
25892                */* | *\\*) . "$found_la" ;;
25893                *) . "./$found_la" ;;
25894              esac
25895              libdir="$save_libdir"
25896                            for dep in $dependency_libs; do
25897                case "$dep" in
25898                  -L*)
25899                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25900                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
25901                      haveit=
25902                      if test "X$additional_libdir" = "X/usr/local/lib"; then
25903                        if test -n "$GCC"; then
25904                          case $host_os in
25905                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25906                          esac
25907                        fi
25908                      fi
25909                      if test -z "$haveit"; then
25910                        haveit=
25911                        for x in $LDFLAGS $LIBICONV; do
25912
25913  acl_save_prefix="$prefix"
25914  prefix="$acl_final_prefix"
25915  acl_save_exec_prefix="$exec_prefix"
25916  exec_prefix="$acl_final_exec_prefix"
25917  eval x=\"$x\"
25918  exec_prefix="$acl_save_exec_prefix"
25919  prefix="$acl_save_prefix"
25920
25921                          if test "X$x" = "X-L$additional_libdir"; then
25922                            haveit=yes
25923                            break
25924                          fi
25925                        done
25926                        if test -z "$haveit"; then
25927                          if test -d "$additional_libdir"; then
25928                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
25929                          fi
25930                        fi
25931                        haveit=
25932                        for x in $LDFLAGS $LTLIBICONV; do
25933
25934  acl_save_prefix="$prefix"
25935  prefix="$acl_final_prefix"
25936  acl_save_exec_prefix="$exec_prefix"
25937  exec_prefix="$acl_final_exec_prefix"
25938  eval x=\"$x\"
25939  exec_prefix="$acl_save_exec_prefix"
25940  prefix="$acl_save_prefix"
25941
25942                          if test "X$x" = "X-L$additional_libdir"; then
25943                            haveit=yes
25944                            break
25945                          fi
25946                        done
25947                        if test -z "$haveit"; then
25948                          if test -d "$additional_libdir"; then
25949                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
25950                          fi
25951                        fi
25952                      fi
25953                    fi
25954                    ;;
25955                  -R*)
25956                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
25957                    if test "$enable_rpath" != no; then
25958                                                                  haveit=
25959                      for x in $rpathdirs; do
25960                        if test "X$x" = "X$dir"; then
25961                          haveit=yes
25962                          break
25963                        fi
25964                      done
25965                      if test -z "$haveit"; then
25966                        rpathdirs="$rpathdirs $dir"
25967                      fi
25968                                                                  haveit=
25969                      for x in $ltrpathdirs; do
25970                        if test "X$x" = "X$dir"; then
25971                          haveit=yes
25972                          break
25973                        fi
25974                      done
25975                      if test -z "$haveit"; then
25976                        ltrpathdirs="$ltrpathdirs $dir"
25977                      fi
25978                    fi
25979                    ;;
25980                  -l*)
25981                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25982                    ;;
25983                  *.la)
25984                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25985                    ;;
25986                  *)
25987                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
25988                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
25989                    ;;
25990                esac
25991              done
25992            fi
25993          else
25994                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
25995            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
25996          fi
25997        fi
25998      fi
25999    done
26000  done
26001  if test "X$rpathdirs" != "X"; then
26002    if test -n "$hardcode_libdir_separator"; then
26003                        alldirs=
26004      for found_dir in $rpathdirs; do
26005        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26006      done
26007            acl_save_libdir="$libdir"
26008      libdir="$alldirs"
26009      eval flag=\"$hardcode_libdir_flag_spec\"
26010      libdir="$acl_save_libdir"
26011      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26012    else
26013            for found_dir in $rpathdirs; do
26014        acl_save_libdir="$libdir"
26015        libdir="$found_dir"
26016        eval flag=\"$hardcode_libdir_flag_spec\"
26017        libdir="$acl_save_libdir"
26018        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26019      done
26020    fi
26021  fi
26022  if test "X$ltrpathdirs" != "X"; then
26023            for found_dir in $ltrpathdirs; do
26024      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
26025    done
26026  fi
26027
26028
26029
26030
26031
26032
26033
26034
26035  { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
26036echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
26037if test "${ac_cv_type_ptrdiff_t+set}" = set; then
26038  echo $ECHO_N "(cached) $ECHO_C" >&6
26039else
26040  cat >conftest.$ac_ext <<_ACEOF
26041/* confdefs.h.  */
26042_ACEOF
26043cat confdefs.h >>conftest.$ac_ext
26044cat >>conftest.$ac_ext <<_ACEOF
26045/* end confdefs.h.  */
26046$ac_includes_default
26047typedef ptrdiff_t ac__type_new_;
26048int
26049main ()
26050{
26051if ((ac__type_new_ *) 0)
26052  return 0;
26053if (sizeof (ac__type_new_))
26054  return 0;
26055  ;
26056  return 0;
26057}
26058_ACEOF
26059rm -f conftest.$ac_objext
26060if { (ac_try="$ac_compile"
26061case "(($ac_try" in
26062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26063  *) ac_try_echo=$ac_try;;
26064esac
26065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26066  (eval "$ac_compile") 2>conftest.er1
26067  ac_status=$?
26068  grep -v '^ *+' conftest.er1 >conftest.err
26069  rm -f conftest.er1
26070  cat conftest.err >&5
26071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072  (exit $ac_status); } && {
26073	 test -z "$ac_c_werror_flag" ||
26074	 test ! -s conftest.err
26075       } && test -s conftest.$ac_objext; then
26076  ac_cv_type_ptrdiff_t=yes
26077else
26078  echo "$as_me: failed program was:" >&5
26079sed 's/^/| /' conftest.$ac_ext >&5
26080
26081	ac_cv_type_ptrdiff_t=no
26082fi
26083
26084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26085fi
26086{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
26087echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
26088if test $ac_cv_type_ptrdiff_t = yes; then
26089  :
26090else
26091
26092cat >>confdefs.h <<\_ACEOF
26093#define ptrdiff_t long
26094_ACEOF
26095
26096
26097fi
26098
26099
26100
26101
26102
26103
26104
26105
26106
26107
26108
26109for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
26110stdlib.h string.h unistd.h sys/param.h
26111do
26112as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26114  { echo "$as_me:$LINENO: checking for $ac_header" >&5
26115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26116if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26117  echo $ECHO_N "(cached) $ECHO_C" >&6
26118fi
26119ac_res=`eval echo '${'$as_ac_Header'}'`
26120	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26121echo "${ECHO_T}$ac_res" >&6; }
26122else
26123  # Is the header compilable?
26124{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26125echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26126cat >conftest.$ac_ext <<_ACEOF
26127/* confdefs.h.  */
26128_ACEOF
26129cat confdefs.h >>conftest.$ac_ext
26130cat >>conftest.$ac_ext <<_ACEOF
26131/* end confdefs.h.  */
26132$ac_includes_default
26133#include <$ac_header>
26134_ACEOF
26135rm -f conftest.$ac_objext
26136if { (ac_try="$ac_compile"
26137case "(($ac_try" in
26138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26139  *) ac_try_echo=$ac_try;;
26140esac
26141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26142  (eval "$ac_compile") 2>conftest.er1
26143  ac_status=$?
26144  grep -v '^ *+' conftest.er1 >conftest.err
26145  rm -f conftest.er1
26146  cat conftest.err >&5
26147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148  (exit $ac_status); } && {
26149	 test -z "$ac_c_werror_flag" ||
26150	 test ! -s conftest.err
26151       } && test -s conftest.$ac_objext; then
26152  ac_header_compiler=yes
26153else
26154  echo "$as_me: failed program was:" >&5
26155sed 's/^/| /' conftest.$ac_ext >&5
26156
26157	ac_header_compiler=no
26158fi
26159
26160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26161{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26162echo "${ECHO_T}$ac_header_compiler" >&6; }
26163
26164# Is the header present?
26165{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26166echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26167cat >conftest.$ac_ext <<_ACEOF
26168/* confdefs.h.  */
26169_ACEOF
26170cat confdefs.h >>conftest.$ac_ext
26171cat >>conftest.$ac_ext <<_ACEOF
26172/* end confdefs.h.  */
26173#include <$ac_header>
26174_ACEOF
26175if { (ac_try="$ac_cpp conftest.$ac_ext"
26176case "(($ac_try" in
26177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26178  *) ac_try_echo=$ac_try;;
26179esac
26180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26181  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26182  ac_status=$?
26183  grep -v '^ *+' conftest.er1 >conftest.err
26184  rm -f conftest.er1
26185  cat conftest.err >&5
26186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187  (exit $ac_status); } >/dev/null && {
26188	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26189	 test ! -s conftest.err
26190       }; then
26191  ac_header_preproc=yes
26192else
26193  echo "$as_me: failed program was:" >&5
26194sed 's/^/| /' conftest.$ac_ext >&5
26195
26196  ac_header_preproc=no
26197fi
26198
26199rm -f conftest.err conftest.$ac_ext
26200{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26201echo "${ECHO_T}$ac_header_preproc" >&6; }
26202
26203# So?  What about this header?
26204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26205  yes:no: )
26206    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26207echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26208    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26209echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26210    ac_header_preproc=yes
26211    ;;
26212  no:yes:* )
26213    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26214echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26215    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26216echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26217    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26218echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26219    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26220echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26221    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26222echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26223    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26224echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26225
26226    ;;
26227esac
26228{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26231  echo $ECHO_N "(cached) $ECHO_C" >&6
26232else
26233  eval "$as_ac_Header=\$ac_header_preproc"
26234fi
26235ac_res=`eval echo '${'$as_ac_Header'}'`
26236	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26237echo "${ECHO_T}$ac_res" >&6; }
26238
26239fi
26240if test `eval echo '${'$as_ac_Header'}'` = yes; then
26241  cat >>confdefs.h <<_ACEOF
26242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26243_ACEOF
26244
26245fi
26246
26247done
26248
26249
26250
26251
26252
26253
26254
26255
26256
26257
26258
26259
26260
26261
26262
26263
26264
26265
26266
26267
26268
26269
26270
26271
26272for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
26273mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
26274strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
26275__fsetlocking
26276do
26277as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26278{ echo "$as_me:$LINENO: checking for $ac_func" >&5
26279echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26280if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26281  echo $ECHO_N "(cached) $ECHO_C" >&6
26282else
26283  cat >conftest.$ac_ext <<_ACEOF
26284/* confdefs.h.  */
26285_ACEOF
26286cat confdefs.h >>conftest.$ac_ext
26287cat >>conftest.$ac_ext <<_ACEOF
26288/* end confdefs.h.  */
26289/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26290   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26291#define $ac_func innocuous_$ac_func
26292
26293/* System header to define __stub macros and hopefully few prototypes,
26294    which can conflict with char $ac_func (); below.
26295    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26296    <limits.h> exists even on freestanding compilers.  */
26297
26298#ifdef __STDC__
26299# include <limits.h>
26300#else
26301# include <assert.h>
26302#endif
26303
26304#undef $ac_func
26305
26306/* Override any GCC internal prototype to avoid an error.
26307   Use char because int might match the return type of a GCC
26308   builtin and then its argument prototype would still apply.  */
26309#ifdef __cplusplus
26310extern "C"
26311#endif
26312char $ac_func ();
26313/* The GNU C library defines this for functions which it implements
26314    to always fail with ENOSYS.  Some functions are actually named
26315    something starting with __ and the normal name is an alias.  */
26316#if defined __stub_$ac_func || defined __stub___$ac_func
26317choke me
26318#endif
26319
26320int
26321main ()
26322{
26323return $ac_func ();
26324  ;
26325  return 0;
26326}
26327_ACEOF
26328rm -f conftest.$ac_objext conftest$ac_exeext
26329if { (ac_try="$ac_link"
26330case "(($ac_try" in
26331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26332  *) ac_try_echo=$ac_try;;
26333esac
26334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26335  (eval "$ac_link") 2>conftest.er1
26336  ac_status=$?
26337  grep -v '^ *+' conftest.er1 >conftest.err
26338  rm -f conftest.er1
26339  cat conftest.err >&5
26340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341  (exit $ac_status); } && {
26342	 test -z "$ac_c_werror_flag" ||
26343	 test ! -s conftest.err
26344       } && test -s conftest$ac_exeext &&
26345       $as_test_x conftest$ac_exeext; then
26346  eval "$as_ac_var=yes"
26347else
26348  echo "$as_me: failed program was:" >&5
26349sed 's/^/| /' conftest.$ac_ext >&5
26350
26351	eval "$as_ac_var=no"
26352fi
26353
26354rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26355      conftest$ac_exeext conftest.$ac_ext
26356fi
26357ac_res=`eval echo '${'$as_ac_var'}'`
26358	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26359echo "${ECHO_T}$ac_res" >&6; }
26360if test `eval echo '${'$as_ac_var'}'` = yes; then
26361  cat >>confdefs.h <<_ACEOF
26362#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26363_ACEOF
26364
26365fi
26366done
26367
26368
26369
26370  { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
26371echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
26372if test "${ac_cv_have_decl__snprintf+set}" = set; then
26373  echo $ECHO_N "(cached) $ECHO_C" >&6
26374else
26375  cat >conftest.$ac_ext <<_ACEOF
26376/* confdefs.h.  */
26377_ACEOF
26378cat confdefs.h >>conftest.$ac_ext
26379cat >>conftest.$ac_ext <<_ACEOF
26380/* end confdefs.h.  */
26381#include <stdio.h>
26382int
26383main ()
26384{
26385
26386#ifndef _snprintf
26387  char *p = (char *) _snprintf;
26388#endif
26389
26390  ;
26391  return 0;
26392}
26393_ACEOF
26394rm -f conftest.$ac_objext
26395if { (ac_try="$ac_compile"
26396case "(($ac_try" in
26397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398  *) ac_try_echo=$ac_try;;
26399esac
26400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26401  (eval "$ac_compile") 2>conftest.er1
26402  ac_status=$?
26403  grep -v '^ *+' conftest.er1 >conftest.err
26404  rm -f conftest.er1
26405  cat conftest.err >&5
26406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407  (exit $ac_status); } && {
26408	 test -z "$ac_c_werror_flag" ||
26409	 test ! -s conftest.err
26410       } && test -s conftest.$ac_objext; then
26411  ac_cv_have_decl__snprintf=yes
26412else
26413  echo "$as_me: failed program was:" >&5
26414sed 's/^/| /' conftest.$ac_ext >&5
26415
26416	ac_cv_have_decl__snprintf=no
26417fi
26418
26419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26420fi
26421{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
26422echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
26423  if test $ac_cv_have_decl__snprintf = yes; then
26424    gt_value=1
26425  else
26426    gt_value=0
26427  fi
26428
26429cat >>confdefs.h <<_ACEOF
26430#define HAVE_DECL__SNPRINTF $gt_value
26431_ACEOF
26432
26433
26434
26435  { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
26436echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
26437if test "${ac_cv_have_decl__snwprintf+set}" = set; then
26438  echo $ECHO_N "(cached) $ECHO_C" >&6
26439else
26440  cat >conftest.$ac_ext <<_ACEOF
26441/* confdefs.h.  */
26442_ACEOF
26443cat confdefs.h >>conftest.$ac_ext
26444cat >>conftest.$ac_ext <<_ACEOF
26445/* end confdefs.h.  */
26446#include <stdio.h>
26447int
26448main ()
26449{
26450
26451#ifndef _snwprintf
26452  char *p = (char *) _snwprintf;
26453#endif
26454
26455  ;
26456  return 0;
26457}
26458_ACEOF
26459rm -f conftest.$ac_objext
26460if { (ac_try="$ac_compile"
26461case "(($ac_try" in
26462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26463  *) ac_try_echo=$ac_try;;
26464esac
26465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26466  (eval "$ac_compile") 2>conftest.er1
26467  ac_status=$?
26468  grep -v '^ *+' conftest.er1 >conftest.err
26469  rm -f conftest.er1
26470  cat conftest.err >&5
26471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472  (exit $ac_status); } && {
26473	 test -z "$ac_c_werror_flag" ||
26474	 test ! -s conftest.err
26475       } && test -s conftest.$ac_objext; then
26476  ac_cv_have_decl__snwprintf=yes
26477else
26478  echo "$as_me: failed program was:" >&5
26479sed 's/^/| /' conftest.$ac_ext >&5
26480
26481	ac_cv_have_decl__snwprintf=no
26482fi
26483
26484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26485fi
26486{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
26487echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
26488  if test $ac_cv_have_decl__snwprintf = yes; then
26489    gt_value=1
26490  else
26491    gt_value=0
26492  fi
26493
26494cat >>confdefs.h <<_ACEOF
26495#define HAVE_DECL__SNWPRINTF $gt_value
26496_ACEOF
26497
26498
26499
26500
26501  { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
26502echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
26503if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
26504  echo $ECHO_N "(cached) $ECHO_C" >&6
26505else
26506  cat >conftest.$ac_ext <<_ACEOF
26507/* confdefs.h.  */
26508_ACEOF
26509cat confdefs.h >>conftest.$ac_ext
26510cat >>conftest.$ac_ext <<_ACEOF
26511/* end confdefs.h.  */
26512#include <stdio.h>
26513int
26514main ()
26515{
26516
26517#ifndef feof_unlocked
26518  char *p = (char *) feof_unlocked;
26519#endif
26520
26521  ;
26522  return 0;
26523}
26524_ACEOF
26525rm -f conftest.$ac_objext
26526if { (ac_try="$ac_compile"
26527case "(($ac_try" in
26528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26529  *) ac_try_echo=$ac_try;;
26530esac
26531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26532  (eval "$ac_compile") 2>conftest.er1
26533  ac_status=$?
26534  grep -v '^ *+' conftest.er1 >conftest.err
26535  rm -f conftest.er1
26536  cat conftest.err >&5
26537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538  (exit $ac_status); } && {
26539	 test -z "$ac_c_werror_flag" ||
26540	 test ! -s conftest.err
26541       } && test -s conftest.$ac_objext; then
26542  ac_cv_have_decl_feof_unlocked=yes
26543else
26544  echo "$as_me: failed program was:" >&5
26545sed 's/^/| /' conftest.$ac_ext >&5
26546
26547	ac_cv_have_decl_feof_unlocked=no
26548fi
26549
26550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26551fi
26552{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
26553echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
26554  if test $ac_cv_have_decl_feof_unlocked = yes; then
26555    gt_value=1
26556  else
26557    gt_value=0
26558  fi
26559
26560cat >>confdefs.h <<_ACEOF
26561#define HAVE_DECL_FEOF_UNLOCKED $gt_value
26562_ACEOF
26563
26564
26565
26566  { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
26567echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
26568if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
26569  echo $ECHO_N "(cached) $ECHO_C" >&6
26570else
26571  cat >conftest.$ac_ext <<_ACEOF
26572/* confdefs.h.  */
26573_ACEOF
26574cat confdefs.h >>conftest.$ac_ext
26575cat >>conftest.$ac_ext <<_ACEOF
26576/* end confdefs.h.  */
26577#include <stdio.h>
26578int
26579main ()
26580{
26581
26582#ifndef fgets_unlocked
26583  char *p = (char *) fgets_unlocked;
26584#endif
26585
26586  ;
26587  return 0;
26588}
26589_ACEOF
26590rm -f conftest.$ac_objext
26591if { (ac_try="$ac_compile"
26592case "(($ac_try" in
26593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26594  *) ac_try_echo=$ac_try;;
26595esac
26596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26597  (eval "$ac_compile") 2>conftest.er1
26598  ac_status=$?
26599  grep -v '^ *+' conftest.er1 >conftest.err
26600  rm -f conftest.er1
26601  cat conftest.err >&5
26602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26603  (exit $ac_status); } && {
26604	 test -z "$ac_c_werror_flag" ||
26605	 test ! -s conftest.err
26606       } && test -s conftest.$ac_objext; then
26607  ac_cv_have_decl_fgets_unlocked=yes
26608else
26609  echo "$as_me: failed program was:" >&5
26610sed 's/^/| /' conftest.$ac_ext >&5
26611
26612	ac_cv_have_decl_fgets_unlocked=no
26613fi
26614
26615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26616fi
26617{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
26618echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
26619  if test $ac_cv_have_decl_fgets_unlocked = yes; then
26620    gt_value=1
26621  else
26622    gt_value=0
26623  fi
26624
26625cat >>confdefs.h <<_ACEOF
26626#define HAVE_DECL_FGETS_UNLOCKED $gt_value
26627_ACEOF
26628
26629
26630
26631  { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
26632echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
26633if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
26634  echo $ECHO_N "(cached) $ECHO_C" >&6
26635else
26636  cat >conftest.$ac_ext <<_ACEOF
26637/* confdefs.h.  */
26638_ACEOF
26639cat confdefs.h >>conftest.$ac_ext
26640cat >>conftest.$ac_ext <<_ACEOF
26641/* end confdefs.h.  */
26642#include <stdio.h>
26643int
26644main ()
26645{
26646
26647#ifndef getc_unlocked
26648  char *p = (char *) getc_unlocked;
26649#endif
26650
26651  ;
26652  return 0;
26653}
26654_ACEOF
26655rm -f conftest.$ac_objext
26656if { (ac_try="$ac_compile"
26657case "(($ac_try" in
26658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26659  *) ac_try_echo=$ac_try;;
26660esac
26661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26662  (eval "$ac_compile") 2>conftest.er1
26663  ac_status=$?
26664  grep -v '^ *+' conftest.er1 >conftest.err
26665  rm -f conftest.er1
26666  cat conftest.err >&5
26667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668  (exit $ac_status); } && {
26669	 test -z "$ac_c_werror_flag" ||
26670	 test ! -s conftest.err
26671       } && test -s conftest.$ac_objext; then
26672  ac_cv_have_decl_getc_unlocked=yes
26673else
26674  echo "$as_me: failed program was:" >&5
26675sed 's/^/| /' conftest.$ac_ext >&5
26676
26677	ac_cv_have_decl_getc_unlocked=no
26678fi
26679
26680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26681fi
26682{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
26683echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
26684  if test $ac_cv_have_decl_getc_unlocked = yes; then
26685    gt_value=1
26686  else
26687    gt_value=0
26688  fi
26689
26690cat >>confdefs.h <<_ACEOF
26691#define HAVE_DECL_GETC_UNLOCKED $gt_value
26692_ACEOF
26693
26694
26695
26696  case $gt_cv_func_printf_posix in
26697    *yes) HAVE_POSIX_PRINTF=1 ;;
26698    *) HAVE_POSIX_PRINTF=0 ;;
26699  esac
26700
26701  if test "$ac_cv_func_asprintf" = yes; then
26702    HAVE_ASPRINTF=1
26703  else
26704    HAVE_ASPRINTF=0
26705  fi
26706
26707  if test "$ac_cv_func_snprintf" = yes; then
26708    HAVE_SNPRINTF=1
26709  else
26710    HAVE_SNPRINTF=0
26711  fi
26712
26713  if test "$ac_cv_func_wprintf" = yes; then
26714    HAVE_WPRINTF=1
26715  else
26716    HAVE_WPRINTF=0
26717  fi
26718
26719
26720
26721
26722
26723
26724
26725          am_save_CPPFLAGS="$CPPFLAGS"
26726
26727  for element in $INCICONV; do
26728    haveit=
26729    for x in $CPPFLAGS; do
26730
26731  acl_save_prefix="$prefix"
26732  prefix="$acl_final_prefix"
26733  acl_save_exec_prefix="$exec_prefix"
26734  exec_prefix="$acl_final_exec_prefix"
26735  eval x=\"$x\"
26736  exec_prefix="$acl_save_exec_prefix"
26737  prefix="$acl_save_prefix"
26738
26739      if test "X$x" = "X$element"; then
26740        haveit=yes
26741        break
26742      fi
26743    done
26744    if test -z "$haveit"; then
26745      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26746    fi
26747  done
26748
26749
26750  { echo "$as_me:$LINENO: checking for iconv" >&5
26751echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
26752if test "${am_cv_func_iconv+set}" = set; then
26753  echo $ECHO_N "(cached) $ECHO_C" >&6
26754else
26755
26756    am_cv_func_iconv="no, consider installing GNU libiconv"
26757    am_cv_lib_iconv=no
26758    cat >conftest.$ac_ext <<_ACEOF
26759/* confdefs.h.  */
26760_ACEOF
26761cat confdefs.h >>conftest.$ac_ext
26762cat >>conftest.$ac_ext <<_ACEOF
26763/* end confdefs.h.  */
26764#include <stdlib.h>
26765#include <iconv.h>
26766int
26767main ()
26768{
26769iconv_t cd = iconv_open("","");
26770       iconv(cd,NULL,NULL,NULL,NULL);
26771       iconv_close(cd);
26772  ;
26773  return 0;
26774}
26775_ACEOF
26776rm -f conftest.$ac_objext conftest$ac_exeext
26777if { (ac_try="$ac_link"
26778case "(($ac_try" in
26779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26780  *) ac_try_echo=$ac_try;;
26781esac
26782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26783  (eval "$ac_link") 2>conftest.er1
26784  ac_status=$?
26785  grep -v '^ *+' conftest.er1 >conftest.err
26786  rm -f conftest.er1
26787  cat conftest.err >&5
26788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789  (exit $ac_status); } && {
26790	 test -z "$ac_c_werror_flag" ||
26791	 test ! -s conftest.err
26792       } && test -s conftest$ac_exeext &&
26793       $as_test_x conftest$ac_exeext; then
26794  am_cv_func_iconv=yes
26795else
26796  echo "$as_me: failed program was:" >&5
26797sed 's/^/| /' conftest.$ac_ext >&5
26798
26799
26800fi
26801
26802rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26803      conftest$ac_exeext conftest.$ac_ext
26804    if test "$am_cv_func_iconv" != yes; then
26805      am_save_LIBS="$LIBS"
26806      LIBS="$LIBS $LIBICONV"
26807      cat >conftest.$ac_ext <<_ACEOF
26808/* confdefs.h.  */
26809_ACEOF
26810cat confdefs.h >>conftest.$ac_ext
26811cat >>conftest.$ac_ext <<_ACEOF
26812/* end confdefs.h.  */
26813#include <stdlib.h>
26814#include <iconv.h>
26815int
26816main ()
26817{
26818iconv_t cd = iconv_open("","");
26819         iconv(cd,NULL,NULL,NULL,NULL);
26820         iconv_close(cd);
26821  ;
26822  return 0;
26823}
26824_ACEOF
26825rm -f conftest.$ac_objext conftest$ac_exeext
26826if { (ac_try="$ac_link"
26827case "(($ac_try" in
26828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26829  *) ac_try_echo=$ac_try;;
26830esac
26831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26832  (eval "$ac_link") 2>conftest.er1
26833  ac_status=$?
26834  grep -v '^ *+' conftest.er1 >conftest.err
26835  rm -f conftest.er1
26836  cat conftest.err >&5
26837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838  (exit $ac_status); } && {
26839	 test -z "$ac_c_werror_flag" ||
26840	 test ! -s conftest.err
26841       } && test -s conftest$ac_exeext &&
26842       $as_test_x conftest$ac_exeext; then
26843  am_cv_lib_iconv=yes
26844        am_cv_func_iconv=yes
26845else
26846  echo "$as_me: failed program was:" >&5
26847sed 's/^/| /' conftest.$ac_ext >&5
26848
26849
26850fi
26851
26852rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26853      conftest$ac_exeext conftest.$ac_ext
26854      LIBS="$am_save_LIBS"
26855    fi
26856
26857fi
26858{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26859echo "${ECHO_T}$am_cv_func_iconv" >&6; }
26860  if test "$am_cv_func_iconv" = yes; then
26861
26862cat >>confdefs.h <<\_ACEOF
26863#define HAVE_ICONV 1
26864_ACEOF
26865
26866  fi
26867  if test "$am_cv_lib_iconv" = yes; then
26868    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
26869echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
26870    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
26871echo "${ECHO_T}$LIBICONV" >&6; }
26872  else
26873            CPPFLAGS="$am_save_CPPFLAGS"
26874    LIBICONV=
26875    LTLIBICONV=
26876  fi
26877
26878
26879
26880  if test "$am_cv_func_iconv" = yes; then
26881    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
26882echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
26883    if test "${am_cv_proto_iconv+set}" = set; then
26884  echo $ECHO_N "(cached) $ECHO_C" >&6
26885else
26886
26887      cat >conftest.$ac_ext <<_ACEOF
26888/* confdefs.h.  */
26889_ACEOF
26890cat confdefs.h >>conftest.$ac_ext
26891cat >>conftest.$ac_ext <<_ACEOF
26892/* end confdefs.h.  */
26893
26894#include <stdlib.h>
26895#include <iconv.h>
26896extern
26897#ifdef __cplusplus
26898"C"
26899#endif
26900#if defined(__STDC__) || defined(__cplusplus)
26901size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26902#else
26903size_t iconv();
26904#endif
26905
26906int
26907main ()
26908{
26909
26910  ;
26911  return 0;
26912}
26913_ACEOF
26914rm -f conftest.$ac_objext
26915if { (ac_try="$ac_compile"
26916case "(($ac_try" in
26917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26918  *) ac_try_echo=$ac_try;;
26919esac
26920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26921  (eval "$ac_compile") 2>conftest.er1
26922  ac_status=$?
26923  grep -v '^ *+' conftest.er1 >conftest.err
26924  rm -f conftest.er1
26925  cat conftest.err >&5
26926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927  (exit $ac_status); } && {
26928	 test -z "$ac_c_werror_flag" ||
26929	 test ! -s conftest.err
26930       } && test -s conftest.$ac_objext; then
26931  am_cv_proto_iconv_arg1=""
26932else
26933  echo "$as_me: failed program was:" >&5
26934sed 's/^/| /' conftest.$ac_ext >&5
26935
26936	am_cv_proto_iconv_arg1="const"
26937fi
26938
26939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26940      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
26941fi
26942
26943    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
26944    { echo "$as_me:$LINENO: result: ${ac_t:-
26945         }$am_cv_proto_iconv" >&5
26946echo "${ECHO_T}${ac_t:-
26947         }$am_cv_proto_iconv" >&6; }
26948
26949cat >>confdefs.h <<_ACEOF
26950#define ICONV_CONST $am_cv_proto_iconv_arg1
26951_ACEOF
26952
26953  fi
26954
26955
26956  { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
26957echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
26958if test "${am_cv_langinfo_codeset+set}" = set; then
26959  echo $ECHO_N "(cached) $ECHO_C" >&6
26960else
26961  cat >conftest.$ac_ext <<_ACEOF
26962/* confdefs.h.  */
26963_ACEOF
26964cat confdefs.h >>conftest.$ac_ext
26965cat >>conftest.$ac_ext <<_ACEOF
26966/* end confdefs.h.  */
26967#include <langinfo.h>
26968int
26969main ()
26970{
26971char* cs = nl_langinfo(CODESET);
26972  ;
26973  return 0;
26974}
26975_ACEOF
26976rm -f conftest.$ac_objext conftest$ac_exeext
26977if { (ac_try="$ac_link"
26978case "(($ac_try" in
26979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26980  *) ac_try_echo=$ac_try;;
26981esac
26982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26983  (eval "$ac_link") 2>conftest.er1
26984  ac_status=$?
26985  grep -v '^ *+' conftest.er1 >conftest.err
26986  rm -f conftest.er1
26987  cat conftest.err >&5
26988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989  (exit $ac_status); } && {
26990	 test -z "$ac_c_werror_flag" ||
26991	 test ! -s conftest.err
26992       } && test -s conftest$ac_exeext &&
26993       $as_test_x conftest$ac_exeext; then
26994  am_cv_langinfo_codeset=yes
26995else
26996  echo "$as_me: failed program was:" >&5
26997sed 's/^/| /' conftest.$ac_ext >&5
26998
26999	am_cv_langinfo_codeset=no
27000fi
27001
27002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27003      conftest$ac_exeext conftest.$ac_ext
27004
27005fi
27006{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
27007echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
27008  if test $am_cv_langinfo_codeset = yes; then
27009
27010cat >>confdefs.h <<\_ACEOF
27011#define HAVE_LANGINFO_CODESET 1
27012_ACEOF
27013
27014  fi
27015
27016  if test $ac_cv_header_locale_h = yes; then
27017
27018  { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
27019echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
27020if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
27021  echo $ECHO_N "(cached) $ECHO_C" >&6
27022else
27023  cat >conftest.$ac_ext <<_ACEOF
27024/* confdefs.h.  */
27025_ACEOF
27026cat confdefs.h >>conftest.$ac_ext
27027cat >>conftest.$ac_ext <<_ACEOF
27028/* end confdefs.h.  */
27029#include <locale.h>
27030int
27031main ()
27032{
27033return LC_MESSAGES
27034  ;
27035  return 0;
27036}
27037_ACEOF
27038rm -f conftest.$ac_objext conftest$ac_exeext
27039if { (ac_try="$ac_link"
27040case "(($ac_try" in
27041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042  *) ac_try_echo=$ac_try;;
27043esac
27044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27045  (eval "$ac_link") 2>conftest.er1
27046  ac_status=$?
27047  grep -v '^ *+' conftest.er1 >conftest.err
27048  rm -f conftest.er1
27049  cat conftest.err >&5
27050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051  (exit $ac_status); } && {
27052	 test -z "$ac_c_werror_flag" ||
27053	 test ! -s conftest.err
27054       } && test -s conftest$ac_exeext &&
27055       $as_test_x conftest$ac_exeext; then
27056  gt_cv_val_LC_MESSAGES=yes
27057else
27058  echo "$as_me: failed program was:" >&5
27059sed 's/^/| /' conftest.$ac_ext >&5
27060
27061	gt_cv_val_LC_MESSAGES=no
27062fi
27063
27064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27065      conftest$ac_exeext conftest.$ac_ext
27066fi
27067{ echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
27068echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
27069  if test $gt_cv_val_LC_MESSAGES = yes; then
27070
27071cat >>confdefs.h <<\_ACEOF
27072#define HAVE_LC_MESSAGES 1
27073_ACEOF
27074
27075  fi
27076
27077  fi
27078
27079  if test -n "$INTL_MACOSX_LIBS"; then
27080    CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
27081  fi
27082
27083                      for ac_prog in bison
27084do
27085  # Extract the first word of "$ac_prog", so it can be a program name with args.
27086set dummy $ac_prog; ac_word=$2
27087{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27089if test "${ac_cv_prog_INTLBISON+set}" = set; then
27090  echo $ECHO_N "(cached) $ECHO_C" >&6
27091else
27092  if test -n "$INTLBISON"; then
27093  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
27094else
27095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27096for as_dir in $PATH
27097do
27098  IFS=$as_save_IFS
27099  test -z "$as_dir" && as_dir=.
27100  for ac_exec_ext in '' $ac_executable_extensions; do
27101  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27102    ac_cv_prog_INTLBISON="$ac_prog"
27103    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27104    break 2
27105  fi
27106done
27107done
27108IFS=$as_save_IFS
27109
27110fi
27111fi
27112INTLBISON=$ac_cv_prog_INTLBISON
27113if test -n "$INTLBISON"; then
27114  { echo "$as_me:$LINENO: result: $INTLBISON" >&5
27115echo "${ECHO_T}$INTLBISON" >&6; }
27116else
27117  { echo "$as_me:$LINENO: result: no" >&5
27118echo "${ECHO_T}no" >&6; }
27119fi
27120
27121
27122  test -n "$INTLBISON" && break
27123done
27124
27125  if test -z "$INTLBISON"; then
27126    ac_verc_fail=yes
27127  else
27128        { echo "$as_me:$LINENO: checking version of bison" >&5
27129echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
27130    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
27131    case $ac_prog_version in
27132      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
27133      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
27134         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
27135      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
27136    esac
27137    { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
27138echo "${ECHO_T}$ac_prog_version" >&6; }
27139  fi
27140  if test $ac_verc_fail = yes; then
27141    INTLBISON=:
27142  fi
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
27160echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
27161if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
27162  echo $ECHO_N "(cached) $ECHO_C" >&6
27163else
27164  gt_save_CPPFLAGS="$CPPFLAGS"
27165     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
27166     gt_save_LIBS="$LIBS"
27167     LIBS="$LIBS -framework CoreFoundation"
27168     cat >conftest.$ac_ext <<_ACEOF
27169/* confdefs.h.  */
27170_ACEOF
27171cat confdefs.h >>conftest.$ac_ext
27172cat >>conftest.$ac_ext <<_ACEOF
27173/* end confdefs.h.  */
27174#include <CFPreferences.h>
27175int
27176main ()
27177{
27178CFPreferencesCopyAppValue(NULL, NULL)
27179  ;
27180  return 0;
27181}
27182_ACEOF
27183rm -f conftest.$ac_objext conftest$ac_exeext
27184if { (ac_try="$ac_link"
27185case "(($ac_try" in
27186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27187  *) ac_try_echo=$ac_try;;
27188esac
27189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27190  (eval "$ac_link") 2>conftest.er1
27191  ac_status=$?
27192  grep -v '^ *+' conftest.er1 >conftest.err
27193  rm -f conftest.er1
27194  cat conftest.err >&5
27195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196  (exit $ac_status); } && {
27197	 test -z "$ac_c_werror_flag" ||
27198	 test ! -s conftest.err
27199       } && test -s conftest$ac_exeext &&
27200       $as_test_x conftest$ac_exeext; then
27201  gt_cv_func_CFPreferencesCopyAppValue=yes
27202else
27203  echo "$as_me: failed program was:" >&5
27204sed 's/^/| /' conftest.$ac_ext >&5
27205
27206	gt_cv_func_CFPreferencesCopyAppValue=no
27207fi
27208
27209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27210      conftest$ac_exeext conftest.$ac_ext
27211     CPPFLAGS="$gt_save_CPPFLAGS"
27212     LIBS="$gt_save_LIBS"
27213fi
27214{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
27215echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
27216  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
27217
27218cat >>confdefs.h <<\_ACEOF
27219#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
27220_ACEOF
27221
27222  fi
27223    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
27224echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
27225if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
27226  echo $ECHO_N "(cached) $ECHO_C" >&6
27227else
27228  gt_save_CPPFLAGS="$CPPFLAGS"
27229     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
27230     gt_save_LIBS="$LIBS"
27231     LIBS="$LIBS -framework CoreFoundation"
27232     cat >conftest.$ac_ext <<_ACEOF
27233/* confdefs.h.  */
27234_ACEOF
27235cat confdefs.h >>conftest.$ac_ext
27236cat >>conftest.$ac_ext <<_ACEOF
27237/* end confdefs.h.  */
27238#include <CFLocale.h>
27239int
27240main ()
27241{
27242CFLocaleCopyCurrent();
27243  ;
27244  return 0;
27245}
27246_ACEOF
27247rm -f conftest.$ac_objext conftest$ac_exeext
27248if { (ac_try="$ac_link"
27249case "(($ac_try" in
27250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251  *) ac_try_echo=$ac_try;;
27252esac
27253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254  (eval "$ac_link") 2>conftest.er1
27255  ac_status=$?
27256  grep -v '^ *+' conftest.er1 >conftest.err
27257  rm -f conftest.er1
27258  cat conftest.err >&5
27259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27260  (exit $ac_status); } && {
27261	 test -z "$ac_c_werror_flag" ||
27262	 test ! -s conftest.err
27263       } && test -s conftest$ac_exeext &&
27264       $as_test_x conftest$ac_exeext; then
27265  gt_cv_func_CFLocaleCopyCurrent=yes
27266else
27267  echo "$as_me: failed program was:" >&5
27268sed 's/^/| /' conftest.$ac_ext >&5
27269
27270	gt_cv_func_CFLocaleCopyCurrent=no
27271fi
27272
27273rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27274      conftest$ac_exeext conftest.$ac_ext
27275     CPPFLAGS="$gt_save_CPPFLAGS"
27276     LIBS="$gt_save_LIBS"
27277fi
27278{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
27279echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
27280  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
27281
27282cat >>confdefs.h <<\_ACEOF
27283#define HAVE_CFLOCALECOPYCURRENT 1
27284_ACEOF
27285
27286  fi
27287  INTL_MACOSX_LIBS=
27288  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
27289    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
27290  fi
27291
27292
27293
27294
27295  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
27296echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
27297    # Check whether --enable-nls was given.
27298if test "${enable_nls+set}" = set; then
27299  enableval=$enable_nls; USE_NLS=$enableval
27300else
27301  USE_NLS=yes
27302fi
27303
27304  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
27305echo "${ECHO_T}$USE_NLS" >&6; }
27306
27307
27308
27309
27310    BUILD_INCLUDED_LIBINTL=no
27311    USE_INCLUDED_LIBINTL=no
27312
27313  LIBINTL=
27314  LTLIBINTL=
27315  POSUB=
27316
27317    if test "$USE_NLS" = "yes"; then
27318    gt_use_preinstalled_gnugettext=no
27319
27320      { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
27321echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
27322
27323# Check whether --with-included-gettext was given.
27324if test "${with_included_gettext+set}" = set; then
27325  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
27326else
27327  nls_cv_force_use_gnu_gettext=no
27328fi
27329
27330      { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
27331echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
27332
27333      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
27334      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
27335
27336
27337
27338
27339
27340
27341        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
27342echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
27343if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
27344  echo $ECHO_N "(cached) $ECHO_C" >&6
27345else
27346  cat >conftest.$ac_ext <<_ACEOF
27347/* confdefs.h.  */
27348_ACEOF
27349cat confdefs.h >>conftest.$ac_ext
27350cat >>conftest.$ac_ext <<_ACEOF
27351/* end confdefs.h.  */
27352#include <libintl.h>
27353extern int _nl_msg_cat_cntr;
27354extern int *_nl_domain_bindings;
27355int
27356main ()
27357{
27358bindtextdomain ("", "");
27359return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
27360  ;
27361  return 0;
27362}
27363_ACEOF
27364rm -f conftest.$ac_objext conftest$ac_exeext
27365if { (ac_try="$ac_link"
27366case "(($ac_try" in
27367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368  *) ac_try_echo=$ac_try;;
27369esac
27370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371  (eval "$ac_link") 2>conftest.er1
27372  ac_status=$?
27373  grep -v '^ *+' conftest.er1 >conftest.err
27374  rm -f conftest.er1
27375  cat conftest.err >&5
27376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377  (exit $ac_status); } && {
27378	 test -z "$ac_c_werror_flag" ||
27379	 test ! -s conftest.err
27380       } && test -s conftest$ac_exeext &&
27381       $as_test_x conftest$ac_exeext; then
27382  gt_cv_func_gnugettext1_libc=yes
27383else
27384  echo "$as_me: failed program was:" >&5
27385sed 's/^/| /' conftest.$ac_ext >&5
27386
27387	gt_cv_func_gnugettext1_libc=no
27388fi
27389
27390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27391      conftest$ac_exeext conftest.$ac_ext
27392fi
27393{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
27394echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
27395
27396        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
27397
27398
27399
27400    use_additional=yes
27401
27402  acl_save_prefix="$prefix"
27403  prefix="$acl_final_prefix"
27404  acl_save_exec_prefix="$exec_prefix"
27405  exec_prefix="$acl_final_exec_prefix"
27406
27407    eval additional_includedir=\"$includedir\"
27408    eval additional_libdir=\"$libdir\"
27409
27410  exec_prefix="$acl_save_exec_prefix"
27411  prefix="$acl_save_prefix"
27412
27413
27414# Check whether --with-libintl-prefix was given.
27415if test "${with_libintl_prefix+set}" = set; then
27416  withval=$with_libintl_prefix;
27417    if test "X$withval" = "Xno"; then
27418      use_additional=no
27419    else
27420      if test "X$withval" = "X"; then
27421
27422  acl_save_prefix="$prefix"
27423  prefix="$acl_final_prefix"
27424  acl_save_exec_prefix="$exec_prefix"
27425  exec_prefix="$acl_final_exec_prefix"
27426
27427          eval additional_includedir=\"$includedir\"
27428          eval additional_libdir=\"$libdir\"
27429
27430  exec_prefix="$acl_save_exec_prefix"
27431  prefix="$acl_save_prefix"
27432
27433      else
27434        additional_includedir="$withval/include"
27435        additional_libdir="$withval/lib"
27436      fi
27437    fi
27438
27439fi
27440
27441      LIBINTL=
27442  LTLIBINTL=
27443  INCINTL=
27444  rpathdirs=
27445  ltrpathdirs=
27446  names_already_handled=
27447  names_next_round='intl '
27448  while test -n "$names_next_round"; do
27449    names_this_round="$names_next_round"
27450    names_next_round=
27451    for name in $names_this_round; do
27452      already_handled=
27453      for n in $names_already_handled; do
27454        if test "$n" = "$name"; then
27455          already_handled=yes
27456          break
27457        fi
27458      done
27459      if test -z "$already_handled"; then
27460        names_already_handled="$names_already_handled $name"
27461                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
27462        eval value=\"\$HAVE_LIB$uppername\"
27463        if test -n "$value"; then
27464          if test "$value" = yes; then
27465            eval value=\"\$LIB$uppername\"
27466            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
27467            eval value=\"\$LTLIB$uppername\"
27468            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
27469          else
27470                                    :
27471          fi
27472        else
27473                              found_dir=
27474          found_la=
27475          found_so=
27476          found_a=
27477          if test $use_additional = yes; then
27478            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
27479              found_dir="$additional_libdir"
27480              found_so="$additional_libdir/lib$name.$shlibext"
27481              if test -f "$additional_libdir/lib$name.la"; then
27482                found_la="$additional_libdir/lib$name.la"
27483              fi
27484            else
27485              if test -f "$additional_libdir/lib$name.$libext"; then
27486                found_dir="$additional_libdir"
27487                found_a="$additional_libdir/lib$name.$libext"
27488                if test -f "$additional_libdir/lib$name.la"; then
27489                  found_la="$additional_libdir/lib$name.la"
27490                fi
27491              fi
27492            fi
27493          fi
27494          if test "X$found_dir" = "X"; then
27495            for x in $LDFLAGS $LTLIBINTL; do
27496
27497  acl_save_prefix="$prefix"
27498  prefix="$acl_final_prefix"
27499  acl_save_exec_prefix="$exec_prefix"
27500  exec_prefix="$acl_final_exec_prefix"
27501  eval x=\"$x\"
27502  exec_prefix="$acl_save_exec_prefix"
27503  prefix="$acl_save_prefix"
27504
27505              case "$x" in
27506                -L*)
27507                  dir=`echo "X$x" | sed -e 's/^X-L//'`
27508                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
27509                    found_dir="$dir"
27510                    found_so="$dir/lib$name.$shlibext"
27511                    if test -f "$dir/lib$name.la"; then
27512                      found_la="$dir/lib$name.la"
27513                    fi
27514                  else
27515                    if test -f "$dir/lib$name.$libext"; then
27516                      found_dir="$dir"
27517                      found_a="$dir/lib$name.$libext"
27518                      if test -f "$dir/lib$name.la"; then
27519                        found_la="$dir/lib$name.la"
27520                      fi
27521                    fi
27522                  fi
27523                  ;;
27524              esac
27525              if test "X$found_dir" != "X"; then
27526                break
27527              fi
27528            done
27529          fi
27530          if test "X$found_dir" != "X"; then
27531                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
27532            if test "X$found_so" != "X"; then
27533                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
27534                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
27535              else
27536                                                                                haveit=
27537                for x in $ltrpathdirs; do
27538                  if test "X$x" = "X$found_dir"; then
27539                    haveit=yes
27540                    break
27541                  fi
27542                done
27543                if test -z "$haveit"; then
27544                  ltrpathdirs="$ltrpathdirs $found_dir"
27545                fi
27546                                if test "$hardcode_direct" = yes; then
27547                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
27548                else
27549                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
27550                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
27551                                                            haveit=
27552                    for x in $rpathdirs; do
27553                      if test "X$x" = "X$found_dir"; then
27554                        haveit=yes
27555                        break
27556                      fi
27557                    done
27558                    if test -z "$haveit"; then
27559                      rpathdirs="$rpathdirs $found_dir"
27560                    fi
27561                  else
27562                                                                                haveit=
27563                    for x in $LDFLAGS $LIBINTL; do
27564
27565  acl_save_prefix="$prefix"
27566  prefix="$acl_final_prefix"
27567  acl_save_exec_prefix="$exec_prefix"
27568  exec_prefix="$acl_final_exec_prefix"
27569  eval x=\"$x\"
27570  exec_prefix="$acl_save_exec_prefix"
27571  prefix="$acl_save_prefix"
27572
27573                      if test "X$x" = "X-L$found_dir"; then
27574                        haveit=yes
27575                        break
27576                      fi
27577                    done
27578                    if test -z "$haveit"; then
27579                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
27580                    fi
27581                    if test "$hardcode_minus_L" != no; then
27582                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
27583                    else
27584                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
27585                    fi
27586                  fi
27587                fi
27588              fi
27589            else
27590              if test "X$found_a" != "X"; then
27591                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
27592              else
27593                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
27594              fi
27595            fi
27596                        additional_includedir=
27597            case "$found_dir" in
27598              */lib | */lib/)
27599                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
27600                additional_includedir="$basedir/include"
27601                ;;
27602            esac
27603            if test "X$additional_includedir" != "X"; then
27604                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
27605                haveit=
27606                if test "X$additional_includedir" = "X/usr/local/include"; then
27607                  if test -n "$GCC"; then
27608                    case $host_os in
27609                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27610                    esac
27611                  fi
27612                fi
27613                if test -z "$haveit"; then
27614                  for x in $CPPFLAGS $INCINTL; do
27615
27616  acl_save_prefix="$prefix"
27617  prefix="$acl_final_prefix"
27618  acl_save_exec_prefix="$exec_prefix"
27619  exec_prefix="$acl_final_exec_prefix"
27620  eval x=\"$x\"
27621  exec_prefix="$acl_save_exec_prefix"
27622  prefix="$acl_save_prefix"
27623
27624                    if test "X$x" = "X-I$additional_includedir"; then
27625                      haveit=yes
27626                      break
27627                    fi
27628                  done
27629                  if test -z "$haveit"; then
27630                    if test -d "$additional_includedir"; then
27631                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
27632                    fi
27633                  fi
27634                fi
27635              fi
27636            fi
27637                        if test -n "$found_la"; then
27638                                                        save_libdir="$libdir"
27639              case "$found_la" in
27640                */* | *\\*) . "$found_la" ;;
27641                *) . "./$found_la" ;;
27642              esac
27643              libdir="$save_libdir"
27644                            for dep in $dependency_libs; do
27645                case "$dep" in
27646                  -L*)
27647                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
27648                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
27649                      haveit=
27650                      if test "X$additional_libdir" = "X/usr/local/lib"; then
27651                        if test -n "$GCC"; then
27652                          case $host_os in
27653                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
27654                          esac
27655                        fi
27656                      fi
27657                      if test -z "$haveit"; then
27658                        haveit=
27659                        for x in $LDFLAGS $LIBINTL; do
27660
27661  acl_save_prefix="$prefix"
27662  prefix="$acl_final_prefix"
27663  acl_save_exec_prefix="$exec_prefix"
27664  exec_prefix="$acl_final_exec_prefix"
27665  eval x=\"$x\"
27666  exec_prefix="$acl_save_exec_prefix"
27667  prefix="$acl_save_prefix"
27668
27669                          if test "X$x" = "X-L$additional_libdir"; then
27670                            haveit=yes
27671                            break
27672                          fi
27673                        done
27674                        if test -z "$haveit"; then
27675                          if test -d "$additional_libdir"; then
27676                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
27677                          fi
27678                        fi
27679                        haveit=
27680                        for x in $LDFLAGS $LTLIBINTL; do
27681
27682  acl_save_prefix="$prefix"
27683  prefix="$acl_final_prefix"
27684  acl_save_exec_prefix="$exec_prefix"
27685  exec_prefix="$acl_final_exec_prefix"
27686  eval x=\"$x\"
27687  exec_prefix="$acl_save_exec_prefix"
27688  prefix="$acl_save_prefix"
27689
27690                          if test "X$x" = "X-L$additional_libdir"; then
27691                            haveit=yes
27692                            break
27693                          fi
27694                        done
27695                        if test -z "$haveit"; then
27696                          if test -d "$additional_libdir"; then
27697                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
27698                          fi
27699                        fi
27700                      fi
27701                    fi
27702                    ;;
27703                  -R*)
27704                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
27705                    if test "$enable_rpath" != no; then
27706                                                                  haveit=
27707                      for x in $rpathdirs; do
27708                        if test "X$x" = "X$dir"; then
27709                          haveit=yes
27710                          break
27711                        fi
27712                      done
27713                      if test -z "$haveit"; then
27714                        rpathdirs="$rpathdirs $dir"
27715                      fi
27716                                                                  haveit=
27717                      for x in $ltrpathdirs; do
27718                        if test "X$x" = "X$dir"; then
27719                          haveit=yes
27720                          break
27721                        fi
27722                      done
27723                      if test -z "$haveit"; then
27724                        ltrpathdirs="$ltrpathdirs $dir"
27725                      fi
27726                    fi
27727                    ;;
27728                  -l*)
27729                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
27730                    ;;
27731                  *.la)
27732                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
27733                    ;;
27734                  *)
27735                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
27736                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
27737                    ;;
27738                esac
27739              done
27740            fi
27741          else
27742                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
27743            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
27744          fi
27745        fi
27746      fi
27747    done
27748  done
27749  if test "X$rpathdirs" != "X"; then
27750    if test -n "$hardcode_libdir_separator"; then
27751                        alldirs=
27752      for found_dir in $rpathdirs; do
27753        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
27754      done
27755            acl_save_libdir="$libdir"
27756      libdir="$alldirs"
27757      eval flag=\"$hardcode_libdir_flag_spec\"
27758      libdir="$acl_save_libdir"
27759      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
27760    else
27761            for found_dir in $rpathdirs; do
27762        acl_save_libdir="$libdir"
27763        libdir="$found_dir"
27764        eval flag=\"$hardcode_libdir_flag_spec\"
27765        libdir="$acl_save_libdir"
27766        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
27767      done
27768    fi
27769  fi
27770  if test "X$ltrpathdirs" != "X"; then
27771            for found_dir in $ltrpathdirs; do
27772      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
27773    done
27774  fi
27775
27776          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
27777echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
27778if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
27779  echo $ECHO_N "(cached) $ECHO_C" >&6
27780else
27781  gt_save_CPPFLAGS="$CPPFLAGS"
27782            CPPFLAGS="$CPPFLAGS $INCINTL"
27783            gt_save_LIBS="$LIBS"
27784            LIBS="$LIBS $LIBINTL"
27785                        cat >conftest.$ac_ext <<_ACEOF
27786/* confdefs.h.  */
27787_ACEOF
27788cat confdefs.h >>conftest.$ac_ext
27789cat >>conftest.$ac_ext <<_ACEOF
27790/* end confdefs.h.  */
27791#include <libintl.h>
27792extern int _nl_msg_cat_cntr;
27793extern
27794#ifdef __cplusplus
27795"C"
27796#endif
27797const char *_nl_expand_alias (const char *);
27798int
27799main ()
27800{
27801bindtextdomain ("", "");
27802return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
27803  ;
27804  return 0;
27805}
27806_ACEOF
27807rm -f conftest.$ac_objext conftest$ac_exeext
27808if { (ac_try="$ac_link"
27809case "(($ac_try" in
27810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27811  *) ac_try_echo=$ac_try;;
27812esac
27813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27814  (eval "$ac_link") 2>conftest.er1
27815  ac_status=$?
27816  grep -v '^ *+' conftest.er1 >conftest.err
27817  rm -f conftest.er1
27818  cat conftest.err >&5
27819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820  (exit $ac_status); } && {
27821	 test -z "$ac_c_werror_flag" ||
27822	 test ! -s conftest.err
27823       } && test -s conftest$ac_exeext &&
27824       $as_test_x conftest$ac_exeext; then
27825  gt_cv_func_gnugettext1_libintl=yes
27826else
27827  echo "$as_me: failed program was:" >&5
27828sed 's/^/| /' conftest.$ac_ext >&5
27829
27830	gt_cv_func_gnugettext1_libintl=no
27831fi
27832
27833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27834      conftest$ac_exeext conftest.$ac_ext
27835                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
27836              LIBS="$LIBS $LIBICONV"
27837              cat >conftest.$ac_ext <<_ACEOF
27838/* confdefs.h.  */
27839_ACEOF
27840cat confdefs.h >>conftest.$ac_ext
27841cat >>conftest.$ac_ext <<_ACEOF
27842/* end confdefs.h.  */
27843#include <libintl.h>
27844extern int _nl_msg_cat_cntr;
27845extern
27846#ifdef __cplusplus
27847"C"
27848#endif
27849const char *_nl_expand_alias (const char *);
27850int
27851main ()
27852{
27853bindtextdomain ("", "");
27854return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
27855  ;
27856  return 0;
27857}
27858_ACEOF
27859rm -f conftest.$ac_objext conftest$ac_exeext
27860if { (ac_try="$ac_link"
27861case "(($ac_try" in
27862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27863  *) ac_try_echo=$ac_try;;
27864esac
27865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27866  (eval "$ac_link") 2>conftest.er1
27867  ac_status=$?
27868  grep -v '^ *+' conftest.er1 >conftest.err
27869  rm -f conftest.er1
27870  cat conftest.err >&5
27871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872  (exit $ac_status); } && {
27873	 test -z "$ac_c_werror_flag" ||
27874	 test ! -s conftest.err
27875       } && test -s conftest$ac_exeext &&
27876       $as_test_x conftest$ac_exeext; then
27877  LIBINTL="$LIBINTL $LIBICONV"
27878                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
27879                gt_cv_func_gnugettext1_libintl=yes
27880
27881else
27882  echo "$as_me: failed program was:" >&5
27883sed 's/^/| /' conftest.$ac_ext >&5
27884
27885
27886fi
27887
27888rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27889      conftest$ac_exeext conftest.$ac_ext
27890            fi
27891            CPPFLAGS="$gt_save_CPPFLAGS"
27892            LIBS="$gt_save_LIBS"
27893fi
27894{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
27895echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
27896        fi
27897
27898                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
27899           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
27900                && test "$PACKAGE" != gettext-runtime \
27901                && test "$PACKAGE" != gettext-tools; }; then
27902          gt_use_preinstalled_gnugettext=yes
27903        else
27904                    LIBINTL=
27905          LTLIBINTL=
27906          INCINTL=
27907        fi
27908
27909
27910        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
27911                              nls_cv_use_gnu_gettext=yes
27912        fi
27913      fi
27914
27915      if test "$nls_cv_use_gnu_gettext" = "yes"; then
27916                BUILD_INCLUDED_LIBINTL=yes
27917        USE_INCLUDED_LIBINTL=yes
27918        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
27919        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
27920        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
27921      fi
27922
27923      CATOBJEXT=
27924      if test "$gt_use_preinstalled_gnugettext" = "yes" \
27925         || test "$nls_cv_use_gnu_gettext" = "yes"; then
27926                CATOBJEXT=.gmo
27927      fi
27928
27929
27930    if test -n "$INTL_MACOSX_LIBS"; then
27931      if test "$gt_use_preinstalled_gnugettext" = "yes" \
27932         || test "$nls_cv_use_gnu_gettext" = "yes"; then
27933                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
27934        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
27935      fi
27936    fi
27937
27938    if test "$gt_use_preinstalled_gnugettext" = "yes" \
27939       || test "$nls_cv_use_gnu_gettext" = "yes"; then
27940
27941cat >>confdefs.h <<\_ACEOF
27942#define ENABLE_NLS 1
27943_ACEOF
27944
27945    else
27946      USE_NLS=no
27947    fi
27948  fi
27949
27950  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
27951echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
27952  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
27953echo "${ECHO_T}$USE_NLS" >&6; }
27954  if test "$USE_NLS" = "yes"; then
27955    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
27956echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
27957    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
27958      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
27959        gt_source="external libintl"
27960      else
27961        gt_source="libc"
27962      fi
27963    else
27964      gt_source="included intl directory"
27965    fi
27966    { echo "$as_me:$LINENO: result: $gt_source" >&5
27967echo "${ECHO_T}$gt_source" >&6; }
27968  fi
27969
27970  if test "$USE_NLS" = "yes"; then
27971
27972    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
27973      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
27974        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
27975echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
27976        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
27977echo "${ECHO_T}$LIBINTL" >&6; }
27978
27979  for element in $INCINTL; do
27980    haveit=
27981    for x in $CPPFLAGS; do
27982
27983  acl_save_prefix="$prefix"
27984  prefix="$acl_final_prefix"
27985  acl_save_exec_prefix="$exec_prefix"
27986  exec_prefix="$acl_final_exec_prefix"
27987  eval x=\"$x\"
27988  exec_prefix="$acl_save_exec_prefix"
27989  prefix="$acl_save_prefix"
27990
27991      if test "X$x" = "X$element"; then
27992        haveit=yes
27993        break
27994      fi
27995    done
27996    if test -z "$haveit"; then
27997      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27998    fi
27999  done
28000
28001      fi
28002
28003
28004cat >>confdefs.h <<\_ACEOF
28005#define HAVE_GETTEXT 1
28006_ACEOF
28007
28008
28009cat >>confdefs.h <<\_ACEOF
28010#define HAVE_DCGETTEXT 1
28011_ACEOF
28012
28013    fi
28014
28015        POSUB=po
28016  fi
28017
28018
28019            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
28020      BUILD_INCLUDED_LIBINTL=yes
28021    fi
28022
28023
28024
28025
28026
28027        nls_cv_header_intl=
28028    nls_cv_header_libgt=
28029
28030        DATADIRNAME=share
28031
28032
28033        INSTOBJEXT=.mo
28034
28035
28036        GENCAT=gencat
28037
28038
28039        INTLOBJS=
28040    if test "$USE_INCLUDED_LIBINTL" = yes; then
28041      INTLOBJS="\$(GETTOBJS)"
28042    fi
28043
28044
28045        INTL_LIBTOOL_SUFFIX_PREFIX=
28046
28047
28048
28049    INTLLIBS="$LIBINTL"
28050
28051
28052
28053
28054
28055
28056
28057sweep_config_ok=yes
28058
28059sweep_config_driver=none
28060
28061
28062ac_enable_experimental=no
28063# Check whether --enable-experimental was given.
28064if test "${enable_experimental+set}" = set; then
28065  enableval=$enable_experimental;  ac_enable_experimental=yes
28066fi
28067
28068
28069if test "x${ac_enable_experimental}" = xyes ; then
28070
28071cat >>confdefs.h <<\_ACEOF
28072#define DEVEL_CODE
28073_ACEOF
28074
28075fi
28076
28077
28078
28079PTHREAD_LIBS=error
28080{ echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5
28081echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6; }
28082if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
28083  echo $ECHO_N "(cached) $ECHO_C" >&6
28084else
28085  ac_check_lib_save_LIBS=$LIBS
28086LIBS="-lpthread  $LIBS"
28087cat >conftest.$ac_ext <<_ACEOF
28088/* confdefs.h.  */
28089_ACEOF
28090cat confdefs.h >>conftest.$ac_ext
28091cat >>conftest.$ac_ext <<_ACEOF
28092/* end confdefs.h.  */
28093
28094/* Override any GCC internal prototype to avoid an error.
28095   Use char because int might match the return type of a GCC
28096   builtin and then its argument prototype would still apply.  */
28097#ifdef __cplusplus
28098extern "C"
28099#endif
28100char pthread_attr_init ();
28101int
28102main ()
28103{
28104return pthread_attr_init ();
28105  ;
28106  return 0;
28107}
28108_ACEOF
28109rm -f conftest.$ac_objext conftest$ac_exeext
28110if { (ac_try="$ac_link"
28111case "(($ac_try" in
28112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28113  *) ac_try_echo=$ac_try;;
28114esac
28115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28116  (eval "$ac_link") 2>conftest.er1
28117  ac_status=$?
28118  grep -v '^ *+' conftest.er1 >conftest.err
28119  rm -f conftest.er1
28120  cat conftest.err >&5
28121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122  (exit $ac_status); } && {
28123	 test -z "$ac_c_werror_flag" ||
28124	 test ! -s conftest.err
28125       } && test -s conftest$ac_exeext &&
28126       $as_test_x conftest$ac_exeext; then
28127  ac_cv_lib_pthread_pthread_attr_init=yes
28128else
28129  echo "$as_me: failed program was:" >&5
28130sed 's/^/| /' conftest.$ac_ext >&5
28131
28132	ac_cv_lib_pthread_pthread_attr_init=no
28133fi
28134
28135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28136      conftest$ac_exeext conftest.$ac_ext
28137LIBS=$ac_check_lib_save_LIBS
28138fi
28139{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
28140echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6; }
28141if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
28142  PTHREAD_LIBS="-lpthread"
28143fi
28144
28145if test "x$PTHREAD_LIBS" = xerror; then
28146        { echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthreads" >&5
28147echo $ECHO_N "checking for pthread_attr_init in -lpthreads... $ECHO_C" >&6; }
28148if test "${ac_cv_lib_pthreads_pthread_attr_init+set}" = set; then
28149  echo $ECHO_N "(cached) $ECHO_C" >&6
28150else
28151  ac_check_lib_save_LIBS=$LIBS
28152LIBS="-lpthreads  $LIBS"
28153cat >conftest.$ac_ext <<_ACEOF
28154/* confdefs.h.  */
28155_ACEOF
28156cat confdefs.h >>conftest.$ac_ext
28157cat >>conftest.$ac_ext <<_ACEOF
28158/* end confdefs.h.  */
28159
28160/* Override any GCC internal prototype to avoid an error.
28161   Use char because int might match the return type of a GCC
28162   builtin and then its argument prototype would still apply.  */
28163#ifdef __cplusplus
28164extern "C"
28165#endif
28166char pthread_attr_init ();
28167int
28168main ()
28169{
28170return pthread_attr_init ();
28171  ;
28172  return 0;
28173}
28174_ACEOF
28175rm -f conftest.$ac_objext conftest$ac_exeext
28176if { (ac_try="$ac_link"
28177case "(($ac_try" in
28178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28179  *) ac_try_echo=$ac_try;;
28180esac
28181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28182  (eval "$ac_link") 2>conftest.er1
28183  ac_status=$?
28184  grep -v '^ *+' conftest.er1 >conftest.err
28185  rm -f conftest.er1
28186  cat conftest.err >&5
28187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188  (exit $ac_status); } && {
28189	 test -z "$ac_c_werror_flag" ||
28190	 test ! -s conftest.err
28191       } && test -s conftest$ac_exeext &&
28192       $as_test_x conftest$ac_exeext; then
28193  ac_cv_lib_pthreads_pthread_attr_init=yes
28194else
28195  echo "$as_me: failed program was:" >&5
28196sed 's/^/| /' conftest.$ac_ext >&5
28197
28198	ac_cv_lib_pthreads_pthread_attr_init=no
28199fi
28200
28201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28202      conftest$ac_exeext conftest.$ac_ext
28203LIBS=$ac_check_lib_save_LIBS
28204fi
28205{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_attr_init" >&5
28206echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_attr_init" >&6; }
28207if test $ac_cv_lib_pthreads_pthread_attr_init = yes; then
28208  PTHREAD_LIBS="-lpthreads"
28209fi
28210
28211fi
28212if test "x$PTHREAD_LIBS" = xerror; then
28213        { echo "$as_me:$LINENO: checking for pthread_attr_init in -lc_r" >&5
28214echo $ECHO_N "checking for pthread_attr_init in -lc_r... $ECHO_C" >&6; }
28215if test "${ac_cv_lib_c_r_pthread_attr_init+set}" = set; then
28216  echo $ECHO_N "(cached) $ECHO_C" >&6
28217else
28218  ac_check_lib_save_LIBS=$LIBS
28219LIBS="-lc_r  $LIBS"
28220cat >conftest.$ac_ext <<_ACEOF
28221/* confdefs.h.  */
28222_ACEOF
28223cat confdefs.h >>conftest.$ac_ext
28224cat >>conftest.$ac_ext <<_ACEOF
28225/* end confdefs.h.  */
28226
28227/* Override any GCC internal prototype to avoid an error.
28228   Use char because int might match the return type of a GCC
28229   builtin and then its argument prototype would still apply.  */
28230#ifdef __cplusplus
28231extern "C"
28232#endif
28233char pthread_attr_init ();
28234int
28235main ()
28236{
28237return pthread_attr_init ();
28238  ;
28239  return 0;
28240}
28241_ACEOF
28242rm -f conftest.$ac_objext conftest$ac_exeext
28243if { (ac_try="$ac_link"
28244case "(($ac_try" in
28245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28246  *) ac_try_echo=$ac_try;;
28247esac
28248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28249  (eval "$ac_link") 2>conftest.er1
28250  ac_status=$?
28251  grep -v '^ *+' conftest.er1 >conftest.err
28252  rm -f conftest.er1
28253  cat conftest.err >&5
28254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255  (exit $ac_status); } && {
28256	 test -z "$ac_c_werror_flag" ||
28257	 test ! -s conftest.err
28258       } && test -s conftest$ac_exeext &&
28259       $as_test_x conftest$ac_exeext; then
28260  ac_cv_lib_c_r_pthread_attr_init=yes
28261else
28262  echo "$as_me: failed program was:" >&5
28263sed 's/^/| /' conftest.$ac_ext >&5
28264
28265	ac_cv_lib_c_r_pthread_attr_init=no
28266fi
28267
28268rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28269      conftest$ac_exeext conftest.$ac_ext
28270LIBS=$ac_check_lib_save_LIBS
28271fi
28272{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_attr_init" >&5
28273echo "${ECHO_T}$ac_cv_lib_c_r_pthread_attr_init" >&6; }
28274if test $ac_cv_lib_c_r_pthread_attr_init = yes; then
28275  PTHREAD_LIBS="-lc_r"
28276fi
28277
28278fi
28279if test "x$PTHREAD_LIBS" = xerror; then
28280        { echo "$as_me:$LINENO: checking for pthread_attr_init" >&5
28281echo $ECHO_N "checking for pthread_attr_init... $ECHO_C" >&6; }
28282if test "${ac_cv_func_pthread_attr_init+set}" = set; then
28283  echo $ECHO_N "(cached) $ECHO_C" >&6
28284else
28285  cat >conftest.$ac_ext <<_ACEOF
28286/* confdefs.h.  */
28287_ACEOF
28288cat confdefs.h >>conftest.$ac_ext
28289cat >>conftest.$ac_ext <<_ACEOF
28290/* end confdefs.h.  */
28291/* Define pthread_attr_init to an innocuous variant, in case <limits.h> declares pthread_attr_init.
28292   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28293#define pthread_attr_init innocuous_pthread_attr_init
28294
28295/* System header to define __stub macros and hopefully few prototypes,
28296    which can conflict with char pthread_attr_init (); below.
28297    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28298    <limits.h> exists even on freestanding compilers.  */
28299
28300#ifdef __STDC__
28301# include <limits.h>
28302#else
28303# include <assert.h>
28304#endif
28305
28306#undef pthread_attr_init
28307
28308/* Override any GCC internal prototype to avoid an error.
28309   Use char because int might match the return type of a GCC
28310   builtin and then its argument prototype would still apply.  */
28311#ifdef __cplusplus
28312extern "C"
28313#endif
28314char pthread_attr_init ();
28315/* The GNU C library defines this for functions which it implements
28316    to always fail with ENOSYS.  Some functions are actually named
28317    something starting with __ and the normal name is an alias.  */
28318#if defined __stub_pthread_attr_init || defined __stub___pthread_attr_init
28319choke me
28320#endif
28321
28322int
28323main ()
28324{
28325return pthread_attr_init ();
28326  ;
28327  return 0;
28328}
28329_ACEOF
28330rm -f conftest.$ac_objext conftest$ac_exeext
28331if { (ac_try="$ac_link"
28332case "(($ac_try" in
28333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28334  *) ac_try_echo=$ac_try;;
28335esac
28336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28337  (eval "$ac_link") 2>conftest.er1
28338  ac_status=$?
28339  grep -v '^ *+' conftest.er1 >conftest.err
28340  rm -f conftest.er1
28341  cat conftest.err >&5
28342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343  (exit $ac_status); } && {
28344	 test -z "$ac_c_werror_flag" ||
28345	 test ! -s conftest.err
28346       } && test -s conftest$ac_exeext &&
28347       $as_test_x conftest$ac_exeext; then
28348  ac_cv_func_pthread_attr_init=yes
28349else
28350  echo "$as_me: failed program was:" >&5
28351sed 's/^/| /' conftest.$ac_ext >&5
28352
28353	ac_cv_func_pthread_attr_init=no
28354fi
28355
28356rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28357      conftest$ac_exeext conftest.$ac_ext
28358fi
28359{ echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_init" >&5
28360echo "${ECHO_T}$ac_cv_func_pthread_attr_init" >&6; }
28361if test $ac_cv_func_pthread_attr_init = yes; then
28362  PTHREAD_LIBS=""
28363fi
28364
28365fi
28366
28367
28368
28369
28370
28371
28372
28373if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
28374	if test -n "$ac_tool_prefix"; then
28375  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28376set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28379if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28380  echo $ECHO_N "(cached) $ECHO_C" >&6
28381else
28382  case $PKG_CONFIG in
28383  [\\/]* | ?:[\\/]*)
28384  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28385  ;;
28386  *)
28387  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28388for as_dir in $PATH
28389do
28390  IFS=$as_save_IFS
28391  test -z "$as_dir" && as_dir=.
28392  for ac_exec_ext in '' $ac_executable_extensions; do
28393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28394    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28395    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28396    break 2
28397  fi
28398done
28399done
28400IFS=$as_save_IFS
28401
28402  ;;
28403esac
28404fi
28405PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28406if test -n "$PKG_CONFIG"; then
28407  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28408echo "${ECHO_T}$PKG_CONFIG" >&6; }
28409else
28410  { echo "$as_me:$LINENO: result: no" >&5
28411echo "${ECHO_T}no" >&6; }
28412fi
28413
28414
28415fi
28416if test -z "$ac_cv_path_PKG_CONFIG"; then
28417  ac_pt_PKG_CONFIG=$PKG_CONFIG
28418  # Extract the first word of "pkg-config", so it can be a program name with args.
28419set dummy pkg-config; ac_word=$2
28420{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28422if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
28423  echo $ECHO_N "(cached) $ECHO_C" >&6
28424else
28425  case $ac_pt_PKG_CONFIG in
28426  [\\/]* | ?:[\\/]*)
28427  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
28428  ;;
28429  *)
28430  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28431for as_dir in $PATH
28432do
28433  IFS=$as_save_IFS
28434  test -z "$as_dir" && as_dir=.
28435  for ac_exec_ext in '' $ac_executable_extensions; do
28436  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28437    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28438    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28439    break 2
28440  fi
28441done
28442done
28443IFS=$as_save_IFS
28444
28445  ;;
28446esac
28447fi
28448ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
28449if test -n "$ac_pt_PKG_CONFIG"; then
28450  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
28451echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
28452else
28453  { echo "$as_me:$LINENO: result: no" >&5
28454echo "${ECHO_T}no" >&6; }
28455fi
28456
28457  if test "x$ac_pt_PKG_CONFIG" = x; then
28458    PKG_CONFIG=""
28459  else
28460    case $cross_compiling:$ac_tool_warned in
28461yes:)
28462{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
28463whose name does not start with the host triplet.  If you think this
28464configuration is useful to you, please write to autoconf@gnu.org." >&5
28465echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
28466whose name does not start with the host triplet.  If you think this
28467configuration is useful to you, please write to autoconf@gnu.org." >&2;}
28468ac_tool_warned=yes ;;
28469esac
28470    PKG_CONFIG=$ac_pt_PKG_CONFIG
28471  fi
28472else
28473  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
28474fi
28475
28476fi
28477if test -n "$PKG_CONFIG"; then
28478	_pkg_min_version=0.9.0
28479	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
28480echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
28481	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
28482		{ echo "$as_me:$LINENO: result: yes" >&5
28483echo "${ECHO_T}yes" >&6; }
28484	else
28485		{ echo "$as_me:$LINENO: result: no" >&5
28486echo "${ECHO_T}no" >&6; }
28487		PKG_CONFIG=""
28488	fi
28489
28490fi
28491
28492pkg_failed=no
28493{ echo "$as_me:$LINENO: checking for GTK" >&5
28494echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
28495
28496if test -n "$PKG_CONFIG"; then
28497    if test -n "$GTK_CFLAGS"; then
28498        pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
28499    else
28500        if test -n "$PKG_CONFIG" && \
28501    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >=  2.4.0\"") >&5
28502  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >=  2.4.0") 2>&5
28503  ac_status=$?
28504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505  (exit $ac_status); }; then
28506  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >=  2.4.0" 2>/dev/null`
28507else
28508  pkg_failed=yes
28509fi
28510    fi
28511else
28512	pkg_failed=untried
28513fi
28514if test -n "$PKG_CONFIG"; then
28515    if test -n "$GTK_LIBS"; then
28516        pkg_cv_GTK_LIBS="$GTK_LIBS"
28517    else
28518        if test -n "$PKG_CONFIG" && \
28519    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >=  2.4.0\"") >&5
28520  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >=  2.4.0") 2>&5
28521  ac_status=$?
28522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523  (exit $ac_status); }; then
28524  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >=  2.4.0" 2>/dev/null`
28525else
28526  pkg_failed=yes
28527fi
28528    fi
28529else
28530	pkg_failed=untried
28531fi
28532
28533
28534
28535if test $pkg_failed = yes; then
28536
28537if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28538        _pkg_short_errors_supported=yes
28539else
28540        _pkg_short_errors_supported=no
28541fi
28542        if test $_pkg_short_errors_supported = yes; then
28543	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >=  2.4.0"`
28544        else
28545	        GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >=  2.4.0"`
28546        fi
28547	# Put the nasty error message in config.log where it belongs
28548	echo "$GTK_PKG_ERRORS" >&5
28549
28550	{ echo "$as_me:$LINENO: result: no" >&5
28551echo "${ECHO_T}no" >&6; }
28552                sweep_config_ok="no"
28553elif test $pkg_failed = untried; then
28554	sweep_config_ok="no"
28555else
28556	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
28557	GTK_LIBS=$pkg_cv_GTK_LIBS
28558        { echo "$as_me:$LINENO: result: yes" >&5
28559echo "${ECHO_T}yes" >&6; }
28560	HAVE_GTK="yes"
28561fi
28562
28563
28564if test "x$HAVE_GTK" != xyes ; then
28565    { echo "$as_me:$LINENO: checking for gtk_init in -lgtk-x11-2.0" >&5
28566echo $ECHO_N "checking for gtk_init in -lgtk-x11-2.0... $ECHO_C" >&6; }
28567if test "${ac_cv_lib_gtk_x11_2_0_gtk_init+set}" = set; then
28568  echo $ECHO_N "(cached) $ECHO_C" >&6
28569else
28570  ac_check_lib_save_LIBS=$LIBS
28571LIBS="-lgtk-x11-2.0  $LIBS"
28572cat >conftest.$ac_ext <<_ACEOF
28573/* confdefs.h.  */
28574_ACEOF
28575cat confdefs.h >>conftest.$ac_ext
28576cat >>conftest.$ac_ext <<_ACEOF
28577/* end confdefs.h.  */
28578
28579/* Override any GCC internal prototype to avoid an error.
28580   Use char because int might match the return type of a GCC
28581   builtin and then its argument prototype would still apply.  */
28582#ifdef __cplusplus
28583extern "C"
28584#endif
28585char gtk_init ();
28586int
28587main ()
28588{
28589return gtk_init ();
28590  ;
28591  return 0;
28592}
28593_ACEOF
28594rm -f conftest.$ac_objext conftest$ac_exeext
28595if { (ac_try="$ac_link"
28596case "(($ac_try" in
28597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28598  *) ac_try_echo=$ac_try;;
28599esac
28600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28601  (eval "$ac_link") 2>conftest.er1
28602  ac_status=$?
28603  grep -v '^ *+' conftest.er1 >conftest.err
28604  rm -f conftest.er1
28605  cat conftest.err >&5
28606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607  (exit $ac_status); } && {
28608	 test -z "$ac_c_werror_flag" ||
28609	 test ! -s conftest.err
28610       } && test -s conftest$ac_exeext &&
28611       $as_test_x conftest$ac_exeext; then
28612  ac_cv_lib_gtk_x11_2_0_gtk_init=yes
28613else
28614  echo "$as_me: failed program was:" >&5
28615sed 's/^/| /' conftest.$ac_ext >&5
28616
28617	ac_cv_lib_gtk_x11_2_0_gtk_init=no
28618fi
28619
28620rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28621      conftest$ac_exeext conftest.$ac_ext
28622LIBS=$ac_check_lib_save_LIBS
28623fi
28624{ echo "$as_me:$LINENO: result: $ac_cv_lib_gtk_x11_2_0_gtk_init" >&5
28625echo "${ECHO_T}$ac_cv_lib_gtk_x11_2_0_gtk_init" >&6; }
28626if test $ac_cv_lib_gtk_x11_2_0_gtk_init = yes; then
28627  HAVE_GTK="maybe"
28628else
28629  sweep_config_ok="no"
28630fi
28631
28632fi
28633
28634
28635pkg_failed=no
28636{ echo "$as_me:$LINENO: checking for GLIB" >&5
28637echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
28638
28639if test -n "$PKG_CONFIG"; then
28640    if test -n "$GLIB_CFLAGS"; then
28641        pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
28642    else
28643        if test -n "$PKG_CONFIG" && \
28644    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >=  2.2.0\"") >&5
28645  ($PKG_CONFIG --exists --print-errors "glib-2.0 >=  2.2.0") 2>&5
28646  ac_status=$?
28647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648  (exit $ac_status); }; then
28649  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >=  2.2.0" 2>/dev/null`
28650else
28651  pkg_failed=yes
28652fi
28653    fi
28654else
28655	pkg_failed=untried
28656fi
28657if test -n "$PKG_CONFIG"; then
28658    if test -n "$GLIB_LIBS"; then
28659        pkg_cv_GLIB_LIBS="$GLIB_LIBS"
28660    else
28661        if test -n "$PKG_CONFIG" && \
28662    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >=  2.2.0\"") >&5
28663  ($PKG_CONFIG --exists --print-errors "glib-2.0 >=  2.2.0") 2>&5
28664  ac_status=$?
28665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666  (exit $ac_status); }; then
28667  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >=  2.2.0" 2>/dev/null`
28668else
28669  pkg_failed=yes
28670fi
28671    fi
28672else
28673	pkg_failed=untried
28674fi
28675
28676
28677
28678if test $pkg_failed = yes; then
28679
28680if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28681        _pkg_short_errors_supported=yes
28682else
28683        _pkg_short_errors_supported=no
28684fi
28685        if test $_pkg_short_errors_supported = yes; then
28686	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >=  2.2.0"`
28687        else
28688	        GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >=  2.2.0"`
28689        fi
28690	# Put the nasty error message in config.log where it belongs
28691	echo "$GLIB_PKG_ERRORS" >&5
28692
28693	{ echo "$as_me:$LINENO: result: no" >&5
28694echo "${ECHO_T}no" >&6; }
28695                sweep_config_ok="no"
28696elif test $pkg_failed = untried; then
28697	sweep_config_ok="no"
28698else
28699	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
28700	GLIB_LIBS=$pkg_cv_GLIB_LIBS
28701        { echo "$as_me:$LINENO: result: yes" >&5
28702echo "${ECHO_T}yes" >&6; }
28703	HAVE_GLIB="yes"
28704fi
28705
28706
28707if test "x$HAVE_GLIB" != xyes ; then
28708  { echo "$as_me:$LINENO: checking for g_list_append in -lglib-2.0" >&5
28709echo $ECHO_N "checking for g_list_append in -lglib-2.0... $ECHO_C" >&6; }
28710if test "${ac_cv_lib_glib_2_0_g_list_append+set}" = set; then
28711  echo $ECHO_N "(cached) $ECHO_C" >&6
28712else
28713  ac_check_lib_save_LIBS=$LIBS
28714LIBS="-lglib-2.0  $LIBS"
28715cat >conftest.$ac_ext <<_ACEOF
28716/* confdefs.h.  */
28717_ACEOF
28718cat confdefs.h >>conftest.$ac_ext
28719cat >>conftest.$ac_ext <<_ACEOF
28720/* end confdefs.h.  */
28721
28722/* Override any GCC internal prototype to avoid an error.
28723   Use char because int might match the return type of a GCC
28724   builtin and then its argument prototype would still apply.  */
28725#ifdef __cplusplus
28726extern "C"
28727#endif
28728char g_list_append ();
28729int
28730main ()
28731{
28732return g_list_append ();
28733  ;
28734  return 0;
28735}
28736_ACEOF
28737rm -f conftest.$ac_objext conftest$ac_exeext
28738if { (ac_try="$ac_link"
28739case "(($ac_try" in
28740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28741  *) ac_try_echo=$ac_try;;
28742esac
28743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28744  (eval "$ac_link") 2>conftest.er1
28745  ac_status=$?
28746  grep -v '^ *+' conftest.er1 >conftest.err
28747  rm -f conftest.er1
28748  cat conftest.err >&5
28749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750  (exit $ac_status); } && {
28751	 test -z "$ac_c_werror_flag" ||
28752	 test ! -s conftest.err
28753       } && test -s conftest$ac_exeext &&
28754       $as_test_x conftest$ac_exeext; then
28755  ac_cv_lib_glib_2_0_g_list_append=yes
28756else
28757  echo "$as_me: failed program was:" >&5
28758sed 's/^/| /' conftest.$ac_ext >&5
28759
28760	ac_cv_lib_glib_2_0_g_list_append=no
28761fi
28762
28763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28764      conftest$ac_exeext conftest.$ac_ext
28765LIBS=$ac_check_lib_save_LIBS
28766fi
28767{ echo "$as_me:$LINENO: result: $ac_cv_lib_glib_2_0_g_list_append" >&5
28768echo "${ECHO_T}$ac_cv_lib_glib_2_0_g_list_append" >&6; }
28769if test $ac_cv_lib_glib_2_0_g_list_append = yes; then
28770  HAVE_GLIB="maybe"
28771else
28772  sweep_config_ok="no"
28773fi
28774
28775fi
28776
28777
28778pkg_failed=no
28779{ echo "$as_me:$LINENO: checking for GTHREADS" >&5
28780echo $ECHO_N "checking for GTHREADS... $ECHO_C" >&6; }
28781
28782if test -n "$PKG_CONFIG"; then
28783    if test -n "$GTHREADS_CFLAGS"; then
28784        pkg_cv_GTHREADS_CFLAGS="$GTHREADS_CFLAGS"
28785    else
28786        if test -n "$PKG_CONFIG" && \
28787    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >=  2.2.0\"") >&5
28788  ($PKG_CONFIG --exists --print-errors "gthread-2.0 >=  2.2.0") 2>&5
28789  ac_status=$?
28790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791  (exit $ac_status); }; then
28792  pkg_cv_GTHREADS_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >=  2.2.0" 2>/dev/null`
28793else
28794  pkg_failed=yes
28795fi
28796    fi
28797else
28798	pkg_failed=untried
28799fi
28800if test -n "$PKG_CONFIG"; then
28801    if test -n "$GTHREADS_LIBS"; then
28802        pkg_cv_GTHREADS_LIBS="$GTHREADS_LIBS"
28803    else
28804        if test -n "$PKG_CONFIG" && \
28805    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >=  2.2.0\"") >&5
28806  ($PKG_CONFIG --exists --print-errors "gthread-2.0 >=  2.2.0") 2>&5
28807  ac_status=$?
28808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809  (exit $ac_status); }; then
28810  pkg_cv_GTHREADS_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >=  2.2.0" 2>/dev/null`
28811else
28812  pkg_failed=yes
28813fi
28814    fi
28815else
28816	pkg_failed=untried
28817fi
28818
28819
28820
28821if test $pkg_failed = yes; then
28822
28823if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28824        _pkg_short_errors_supported=yes
28825else
28826        _pkg_short_errors_supported=no
28827fi
28828        if test $_pkg_short_errors_supported = yes; then
28829	        GTHREADS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gthread-2.0 >=  2.2.0"`
28830        else
28831	        GTHREADS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gthread-2.0 >=  2.2.0"`
28832        fi
28833	# Put the nasty error message in config.log where it belongs
28834	echo "$GTHREADS_PKG_ERRORS" >&5
28835
28836	{ echo "$as_me:$LINENO: result: no" >&5
28837echo "${ECHO_T}no" >&6; }
28838                sweep_config_ok="no"
28839elif test $pkg_failed = untried; then
28840	sweep_config_ok="no"
28841else
28842	GTHREADS_CFLAGS=$pkg_cv_GTHREADS_CFLAGS
28843	GTHREADS_LIBS=$pkg_cv_GTHREADS_LIBS
28844        { echo "$as_me:$LINENO: result: yes" >&5
28845echo "${ECHO_T}yes" >&6; }
28846	HAVE_GTHREADS="yes"
28847fi
28848
28849
28850if test "x$HAVE_GTHREADS" != xyes ; then
28851  { echo "$as_me:$LINENO: checking for g_thread_init in -lgthread-2.0" >&5
28852echo $ECHO_N "checking for g_thread_init in -lgthread-2.0... $ECHO_C" >&6; }
28853if test "${ac_cv_lib_gthread_2_0_g_thread_init+set}" = set; then
28854  echo $ECHO_N "(cached) $ECHO_C" >&6
28855else
28856  ac_check_lib_save_LIBS=$LIBS
28857LIBS="-lgthread-2.0  $LIBS"
28858cat >conftest.$ac_ext <<_ACEOF
28859/* confdefs.h.  */
28860_ACEOF
28861cat confdefs.h >>conftest.$ac_ext
28862cat >>conftest.$ac_ext <<_ACEOF
28863/* end confdefs.h.  */
28864
28865/* Override any GCC internal prototype to avoid an error.
28866   Use char because int might match the return type of a GCC
28867   builtin and then its argument prototype would still apply.  */
28868#ifdef __cplusplus
28869extern "C"
28870#endif
28871char g_thread_init ();
28872int
28873main ()
28874{
28875return g_thread_init ();
28876  ;
28877  return 0;
28878}
28879_ACEOF
28880rm -f conftest.$ac_objext conftest$ac_exeext
28881if { (ac_try="$ac_link"
28882case "(($ac_try" in
28883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28884  *) ac_try_echo=$ac_try;;
28885esac
28886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28887  (eval "$ac_link") 2>conftest.er1
28888  ac_status=$?
28889  grep -v '^ *+' conftest.er1 >conftest.err
28890  rm -f conftest.er1
28891  cat conftest.err >&5
28892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893  (exit $ac_status); } && {
28894	 test -z "$ac_c_werror_flag" ||
28895	 test ! -s conftest.err
28896       } && test -s conftest$ac_exeext &&
28897       $as_test_x conftest$ac_exeext; then
28898  ac_cv_lib_gthread_2_0_g_thread_init=yes
28899else
28900  echo "$as_me: failed program was:" >&5
28901sed 's/^/| /' conftest.$ac_ext >&5
28902
28903	ac_cv_lib_gthread_2_0_g_thread_init=no
28904fi
28905
28906rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28907      conftest$ac_exeext conftest.$ac_ext
28908LIBS=$ac_check_lib_save_LIBS
28909fi
28910{ echo "$as_me:$LINENO: result: $ac_cv_lib_gthread_2_0_g_thread_init" >&5
28911echo "${ECHO_T}$ac_cv_lib_gthread_2_0_g_thread_init" >&6; }
28912if test $ac_cv_lib_gthread_2_0_g_thread_init = yes; then
28913  HAVE_GTHREADS="maybe"
28914else
28915  sweep_config_ok="no"
28916fi
28917
28918fi
28919
28920
28921
28922pkg_failed=no
28923{ echo "$as_me:$LINENO: checking for SNDFILE" >&5
28924echo $ECHO_N "checking for SNDFILE... $ECHO_C" >&6; }
28925
28926if test -n "$PKG_CONFIG"; then
28927    if test -n "$SNDFILE_CFLAGS"; then
28928        pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS"
28929    else
28930        if test -n "$PKG_CONFIG" && \
28931    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.0\"") >&5
28932  ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.0") 2>&5
28933  ac_status=$?
28934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935  (exit $ac_status); }; then
28936  pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.0" 2>/dev/null`
28937else
28938  pkg_failed=yes
28939fi
28940    fi
28941else
28942	pkg_failed=untried
28943fi
28944if test -n "$PKG_CONFIG"; then
28945    if test -n "$SNDFILE_LIBS"; then
28946        pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS"
28947    else
28948        if test -n "$PKG_CONFIG" && \
28949    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1.0.0\"") >&5
28950  ($PKG_CONFIG --exists --print-errors "sndfile >= 1.0.0") 2>&5
28951  ac_status=$?
28952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953  (exit $ac_status); }; then
28954  pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.0" 2>/dev/null`
28955else
28956  pkg_failed=yes
28957fi
28958    fi
28959else
28960	pkg_failed=untried
28961fi
28962
28963
28964
28965if test $pkg_failed = yes; then
28966
28967if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28968        _pkg_short_errors_supported=yes
28969else
28970        _pkg_short_errors_supported=no
28971fi
28972        if test $_pkg_short_errors_supported = yes; then
28973	        SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sndfile >= 1.0.0"`
28974        else
28975	        SNDFILE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sndfile >= 1.0.0"`
28976        fi
28977	# Put the nasty error message in config.log where it belongs
28978	echo "$SNDFILE_PKG_ERRORS" >&5
28979
28980	{ echo "$as_me:$LINENO: result: no" >&5
28981echo "${ECHO_T}no" >&6; }
28982                HAVE_LIBSNDFILE1="no"
28983elif test $pkg_failed = untried; then
28984	HAVE_LIBSNDFILE1="no"
28985else
28986	SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS
28987	SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS
28988        { echo "$as_me:$LINENO: result: yes" >&5
28989echo "${ECHO_T}yes" >&6; }
28990	HAVE_LIBSNDFILE1="yes"
28991fi
28992
28993if test "x$HAVE_LIBSNDFILE1" = xyes ; then
28994
28995cat >>confdefs.h <<\_ACEOF
28996#define HAVE_LIBSNDFILE1
28997_ACEOF
28998
28999
29000else
29001  sweep_config_ok="no"
29002  { echo "$as_me:$LINENO: checking for sf_open in -lsndfile" >&5
29003echo $ECHO_N "checking for sf_open in -lsndfile... $ECHO_C" >&6; }
29004if test "${ac_cv_lib_sndfile_sf_open+set}" = set; then
29005  echo $ECHO_N "(cached) $ECHO_C" >&6
29006else
29007  ac_check_lib_save_LIBS=$LIBS
29008LIBS="-lsndfile  $LIBS"
29009cat >conftest.$ac_ext <<_ACEOF
29010/* confdefs.h.  */
29011_ACEOF
29012cat confdefs.h >>conftest.$ac_ext
29013cat >>conftest.$ac_ext <<_ACEOF
29014/* end confdefs.h.  */
29015
29016/* Override any GCC internal prototype to avoid an error.
29017   Use char because int might match the return type of a GCC
29018   builtin and then its argument prototype would still apply.  */
29019#ifdef __cplusplus
29020extern "C"
29021#endif
29022char sf_open ();
29023int
29024main ()
29025{
29026return sf_open ();
29027  ;
29028  return 0;
29029}
29030_ACEOF
29031rm -f conftest.$ac_objext conftest$ac_exeext
29032if { (ac_try="$ac_link"
29033case "(($ac_try" in
29034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29035  *) ac_try_echo=$ac_try;;
29036esac
29037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29038  (eval "$ac_link") 2>conftest.er1
29039  ac_status=$?
29040  grep -v '^ *+' conftest.er1 >conftest.err
29041  rm -f conftest.er1
29042  cat conftest.err >&5
29043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044  (exit $ac_status); } && {
29045	 test -z "$ac_c_werror_flag" ||
29046	 test ! -s conftest.err
29047       } && test -s conftest$ac_exeext &&
29048       $as_test_x conftest$ac_exeext; then
29049  ac_cv_lib_sndfile_sf_open=yes
29050else
29051  echo "$as_me: failed program was:" >&5
29052sed 's/^/| /' conftest.$ac_ext >&5
29053
29054	ac_cv_lib_sndfile_sf_open=no
29055fi
29056
29057rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29058      conftest$ac_exeext conftest.$ac_ext
29059LIBS=$ac_check_lib_save_LIBS
29060fi
29061{ echo "$as_me:$LINENO: result: $ac_cv_lib_sndfile_sf_open" >&5
29062echo "${ECHO_T}$ac_cv_lib_sndfile_sf_open" >&6; }
29063if test $ac_cv_lib_sndfile_sf_open = yes; then
29064  HAVE_LIBSNDFILE1="maybe"
29065fi
29066
29067fi
29068
29069if test "x$HAVE_LIBSNDFILE1" = xmaybe ; then
29070
29071for ac_header in sndfile.h
29072do
29073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29075  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29078  echo $ECHO_N "(cached) $ECHO_C" >&6
29079fi
29080ac_res=`eval echo '${'$as_ac_Header'}'`
29081	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29082echo "${ECHO_T}$ac_res" >&6; }
29083else
29084  # Is the header compilable?
29085{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29086echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29087cat >conftest.$ac_ext <<_ACEOF
29088/* confdefs.h.  */
29089_ACEOF
29090cat confdefs.h >>conftest.$ac_ext
29091cat >>conftest.$ac_ext <<_ACEOF
29092/* end confdefs.h.  */
29093$ac_includes_default
29094#include <$ac_header>
29095_ACEOF
29096rm -f conftest.$ac_objext
29097if { (ac_try="$ac_compile"
29098case "(($ac_try" in
29099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29100  *) ac_try_echo=$ac_try;;
29101esac
29102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29103  (eval "$ac_compile") 2>conftest.er1
29104  ac_status=$?
29105  grep -v '^ *+' conftest.er1 >conftest.err
29106  rm -f conftest.er1
29107  cat conftest.err >&5
29108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109  (exit $ac_status); } && {
29110	 test -z "$ac_c_werror_flag" ||
29111	 test ! -s conftest.err
29112       } && test -s conftest.$ac_objext; then
29113  ac_header_compiler=yes
29114else
29115  echo "$as_me: failed program was:" >&5
29116sed 's/^/| /' conftest.$ac_ext >&5
29117
29118	ac_header_compiler=no
29119fi
29120
29121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29122{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29123echo "${ECHO_T}$ac_header_compiler" >&6; }
29124
29125# Is the header present?
29126{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29127echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29128cat >conftest.$ac_ext <<_ACEOF
29129/* confdefs.h.  */
29130_ACEOF
29131cat confdefs.h >>conftest.$ac_ext
29132cat >>conftest.$ac_ext <<_ACEOF
29133/* end confdefs.h.  */
29134#include <$ac_header>
29135_ACEOF
29136if { (ac_try="$ac_cpp conftest.$ac_ext"
29137case "(($ac_try" in
29138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29139  *) ac_try_echo=$ac_try;;
29140esac
29141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29142  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29143  ac_status=$?
29144  grep -v '^ *+' conftest.er1 >conftest.err
29145  rm -f conftest.er1
29146  cat conftest.err >&5
29147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148  (exit $ac_status); } >/dev/null && {
29149	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29150	 test ! -s conftest.err
29151       }; then
29152  ac_header_preproc=yes
29153else
29154  echo "$as_me: failed program was:" >&5
29155sed 's/^/| /' conftest.$ac_ext >&5
29156
29157  ac_header_preproc=no
29158fi
29159
29160rm -f conftest.err conftest.$ac_ext
29161{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29162echo "${ECHO_T}$ac_header_preproc" >&6; }
29163
29164# So?  What about this header?
29165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29166  yes:no: )
29167    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29168echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29169    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29170echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29171    ac_header_preproc=yes
29172    ;;
29173  no:yes:* )
29174    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29175echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29176    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29177echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29178    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29179echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29180    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29181echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29182    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29184    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29185echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29186
29187    ;;
29188esac
29189{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29192  echo $ECHO_N "(cached) $ECHO_C" >&6
29193else
29194  eval "$as_ac_Header=\$ac_header_preproc"
29195fi
29196ac_res=`eval echo '${'$as_ac_Header'}'`
29197	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29198echo "${ECHO_T}$ac_res" >&6; }
29199
29200fi
29201if test `eval echo '${'$as_ac_Header'}'` = yes; then
29202  cat >>confdefs.h <<_ACEOF
29203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29204_ACEOF
29205 HAVE_LIBSNDFILE1="ouch"
29206fi
29207
29208done
29209
29210  if test "x$HAVE_LIBSNDFILE1" = xouch ; then
29211    { { echo "$as_me:$LINENO: error:
29212***
29213*** libsndfile-1.0.0 or greater seems to exist on your system, however
29214*** the pkg-config tool cannot find its build information.
29215***
29216*** Please set your PKG_CONFIG_PATH environment variable to include the
29217*** directory in which sndfile.pc was installed. For example, sndfile.pc
29218*** is installed in /usr/local/lib/pkgconfig by default; if that is the
29219*** case do:
29220***
29221***     export PKG_CONFIG_PATH=\"\$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig\"
29222***
29223*** then run this ./configure again. If you configured libsndfile with a
29224*** different --prefix option, replace /usr/local above with that prefix.
29225***
29226" >&5
29227echo "$as_me: error:
29228***
29229*** libsndfile-1.0.0 or greater seems to exist on your system, however
29230*** the pkg-config tool cannot find its build information.
29231***
29232*** Please set your PKG_CONFIG_PATH environment variable to include the
29233*** directory in which sndfile.pc was installed. For example, sndfile.pc
29234*** is installed in /usr/local/lib/pkgconfig by default; if that is the
29235*** case do:
29236***
29237***     export PKG_CONFIG_PATH=\"\$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig\"
29238***
29239*** then run this ./configure again. If you configured libsndfile with a
29240*** different --prefix option, replace /usr/local above with that prefix.
29241***
29242" >&2;}
29243   { (exit 1); exit 1; }; }
29244  fi
29245fi
29246
29247{ echo "$as_me:$LINENO: checking for off_t" >&5
29248echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
29249if test "${ac_cv_type_off_t+set}" = set; then
29250  echo $ECHO_N "(cached) $ECHO_C" >&6
29251else
29252  cat >conftest.$ac_ext <<_ACEOF
29253/* confdefs.h.  */
29254_ACEOF
29255cat confdefs.h >>conftest.$ac_ext
29256cat >>conftest.$ac_ext <<_ACEOF
29257/* end confdefs.h.  */
29258$ac_includes_default
29259typedef off_t ac__type_new_;
29260int
29261main ()
29262{
29263if ((ac__type_new_ *) 0)
29264  return 0;
29265if (sizeof (ac__type_new_))
29266  return 0;
29267  ;
29268  return 0;
29269}
29270_ACEOF
29271rm -f conftest.$ac_objext
29272if { (ac_try="$ac_compile"
29273case "(($ac_try" in
29274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29275  *) ac_try_echo=$ac_try;;
29276esac
29277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29278  (eval "$ac_compile") 2>conftest.er1
29279  ac_status=$?
29280  grep -v '^ *+' conftest.er1 >conftest.err
29281  rm -f conftest.er1
29282  cat conftest.err >&5
29283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284  (exit $ac_status); } && {
29285	 test -z "$ac_c_werror_flag" ||
29286	 test ! -s conftest.err
29287       } && test -s conftest.$ac_objext; then
29288  ac_cv_type_off_t=yes
29289else
29290  echo "$as_me: failed program was:" >&5
29291sed 's/^/| /' conftest.$ac_ext >&5
29292
29293	ac_cv_type_off_t=no
29294fi
29295
29296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29297fi
29298{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29299echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
29300
29301# The cast to long int works around a bug in the HP C Compiler
29302# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29303# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29304# This bug is HP SR number 8606223364.
29305{ echo "$as_me:$LINENO: checking size of off_t" >&5
29306echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
29307if test "${ac_cv_sizeof_off_t+set}" = set; then
29308  echo $ECHO_N "(cached) $ECHO_C" >&6
29309else
29310  if test "$cross_compiling" = yes; then
29311  # Depending upon the size, compute the lo and hi bounds.
29312cat >conftest.$ac_ext <<_ACEOF
29313/* confdefs.h.  */
29314_ACEOF
29315cat confdefs.h >>conftest.$ac_ext
29316cat >>conftest.$ac_ext <<_ACEOF
29317/* end confdefs.h.  */
29318$ac_includes_default
29319   typedef off_t ac__type_sizeof_;
29320int
29321main ()
29322{
29323static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29324test_array [0] = 0
29325
29326  ;
29327  return 0;
29328}
29329_ACEOF
29330rm -f conftest.$ac_objext
29331if { (ac_try="$ac_compile"
29332case "(($ac_try" in
29333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29334  *) ac_try_echo=$ac_try;;
29335esac
29336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29337  (eval "$ac_compile") 2>conftest.er1
29338  ac_status=$?
29339  grep -v '^ *+' conftest.er1 >conftest.err
29340  rm -f conftest.er1
29341  cat conftest.err >&5
29342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343  (exit $ac_status); } && {
29344	 test -z "$ac_c_werror_flag" ||
29345	 test ! -s conftest.err
29346       } && test -s conftest.$ac_objext; then
29347  ac_lo=0 ac_mid=0
29348  while :; do
29349    cat >conftest.$ac_ext <<_ACEOF
29350/* confdefs.h.  */
29351_ACEOF
29352cat confdefs.h >>conftest.$ac_ext
29353cat >>conftest.$ac_ext <<_ACEOF
29354/* end confdefs.h.  */
29355$ac_includes_default
29356   typedef off_t ac__type_sizeof_;
29357int
29358main ()
29359{
29360static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29361test_array [0] = 0
29362
29363  ;
29364  return 0;
29365}
29366_ACEOF
29367rm -f conftest.$ac_objext
29368if { (ac_try="$ac_compile"
29369case "(($ac_try" in
29370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29371  *) ac_try_echo=$ac_try;;
29372esac
29373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29374  (eval "$ac_compile") 2>conftest.er1
29375  ac_status=$?
29376  grep -v '^ *+' conftest.er1 >conftest.err
29377  rm -f conftest.er1
29378  cat conftest.err >&5
29379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29380  (exit $ac_status); } && {
29381	 test -z "$ac_c_werror_flag" ||
29382	 test ! -s conftest.err
29383       } && test -s conftest.$ac_objext; then
29384  ac_hi=$ac_mid; break
29385else
29386  echo "$as_me: failed program was:" >&5
29387sed 's/^/| /' conftest.$ac_ext >&5
29388
29389	ac_lo=`expr $ac_mid + 1`
29390			if test $ac_lo -le $ac_mid; then
29391			  ac_lo= ac_hi=
29392			  break
29393			fi
29394			ac_mid=`expr 2 '*' $ac_mid + 1`
29395fi
29396
29397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29398  done
29399else
29400  echo "$as_me: failed program was:" >&5
29401sed 's/^/| /' conftest.$ac_ext >&5
29402
29403	cat >conftest.$ac_ext <<_ACEOF
29404/* confdefs.h.  */
29405_ACEOF
29406cat confdefs.h >>conftest.$ac_ext
29407cat >>conftest.$ac_ext <<_ACEOF
29408/* end confdefs.h.  */
29409$ac_includes_default
29410   typedef off_t ac__type_sizeof_;
29411int
29412main ()
29413{
29414static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29415test_array [0] = 0
29416
29417  ;
29418  return 0;
29419}
29420_ACEOF
29421rm -f conftest.$ac_objext
29422if { (ac_try="$ac_compile"
29423case "(($ac_try" in
29424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29425  *) ac_try_echo=$ac_try;;
29426esac
29427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29428  (eval "$ac_compile") 2>conftest.er1
29429  ac_status=$?
29430  grep -v '^ *+' conftest.er1 >conftest.err
29431  rm -f conftest.er1
29432  cat conftest.err >&5
29433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434  (exit $ac_status); } && {
29435	 test -z "$ac_c_werror_flag" ||
29436	 test ! -s conftest.err
29437       } && test -s conftest.$ac_objext; then
29438  ac_hi=-1 ac_mid=-1
29439  while :; do
29440    cat >conftest.$ac_ext <<_ACEOF
29441/* confdefs.h.  */
29442_ACEOF
29443cat confdefs.h >>conftest.$ac_ext
29444cat >>conftest.$ac_ext <<_ACEOF
29445/* end confdefs.h.  */
29446$ac_includes_default
29447   typedef off_t ac__type_sizeof_;
29448int
29449main ()
29450{
29451static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29452test_array [0] = 0
29453
29454  ;
29455  return 0;
29456}
29457_ACEOF
29458rm -f conftest.$ac_objext
29459if { (ac_try="$ac_compile"
29460case "(($ac_try" in
29461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29462  *) ac_try_echo=$ac_try;;
29463esac
29464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29465  (eval "$ac_compile") 2>conftest.er1
29466  ac_status=$?
29467  grep -v '^ *+' conftest.er1 >conftest.err
29468  rm -f conftest.er1
29469  cat conftest.err >&5
29470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471  (exit $ac_status); } && {
29472	 test -z "$ac_c_werror_flag" ||
29473	 test ! -s conftest.err
29474       } && test -s conftest.$ac_objext; then
29475  ac_lo=$ac_mid; break
29476else
29477  echo "$as_me: failed program was:" >&5
29478sed 's/^/| /' conftest.$ac_ext >&5
29479
29480	ac_hi=`expr '(' $ac_mid ')' - 1`
29481			if test $ac_mid -le $ac_hi; then
29482			  ac_lo= ac_hi=
29483			  break
29484			fi
29485			ac_mid=`expr 2 '*' $ac_mid`
29486fi
29487
29488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29489  done
29490else
29491  echo "$as_me: failed program was:" >&5
29492sed 's/^/| /' conftest.$ac_ext >&5
29493
29494	ac_lo= ac_hi=
29495fi
29496
29497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29498fi
29499
29500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29501# Binary search between lo and hi bounds.
29502while test "x$ac_lo" != "x$ac_hi"; do
29503  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29504  cat >conftest.$ac_ext <<_ACEOF
29505/* confdefs.h.  */
29506_ACEOF
29507cat confdefs.h >>conftest.$ac_ext
29508cat >>conftest.$ac_ext <<_ACEOF
29509/* end confdefs.h.  */
29510$ac_includes_default
29511   typedef off_t ac__type_sizeof_;
29512int
29513main ()
29514{
29515static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29516test_array [0] = 0
29517
29518  ;
29519  return 0;
29520}
29521_ACEOF
29522rm -f conftest.$ac_objext
29523if { (ac_try="$ac_compile"
29524case "(($ac_try" in
29525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29526  *) ac_try_echo=$ac_try;;
29527esac
29528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29529  (eval "$ac_compile") 2>conftest.er1
29530  ac_status=$?
29531  grep -v '^ *+' conftest.er1 >conftest.err
29532  rm -f conftest.er1
29533  cat conftest.err >&5
29534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535  (exit $ac_status); } && {
29536	 test -z "$ac_c_werror_flag" ||
29537	 test ! -s conftest.err
29538       } && test -s conftest.$ac_objext; then
29539  ac_hi=$ac_mid
29540else
29541  echo "$as_me: failed program was:" >&5
29542sed 's/^/| /' conftest.$ac_ext >&5
29543
29544	ac_lo=`expr '(' $ac_mid ')' + 1`
29545fi
29546
29547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29548done
29549case $ac_lo in
29550?*) ac_cv_sizeof_off_t=$ac_lo;;
29551'') if test "$ac_cv_type_off_t" = yes; then
29552     { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
29553See \`config.log' for more details." >&5
29554echo "$as_me: error: cannot compute sizeof (off_t)
29555See \`config.log' for more details." >&2;}
29556   { (exit 77); exit 77; }; }
29557   else
29558     ac_cv_sizeof_off_t=0
29559   fi ;;
29560esac
29561else
29562  cat >conftest.$ac_ext <<_ACEOF
29563/* confdefs.h.  */
29564_ACEOF
29565cat confdefs.h >>conftest.$ac_ext
29566cat >>conftest.$ac_ext <<_ACEOF
29567/* end confdefs.h.  */
29568$ac_includes_default
29569   typedef off_t ac__type_sizeof_;
29570static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29571static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29572#include <stdio.h>
29573#include <stdlib.h>
29574int
29575main ()
29576{
29577
29578  FILE *f = fopen ("conftest.val", "w");
29579  if (! f)
29580    return 1;
29581  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29582    {
29583      long int i = longval ();
29584      if (i != ((long int) (sizeof (ac__type_sizeof_))))
29585	return 1;
29586      fprintf (f, "%ld\n", i);
29587    }
29588  else
29589    {
29590      unsigned long int i = ulongval ();
29591      if (i != ((long int) (sizeof (ac__type_sizeof_))))
29592	return 1;
29593      fprintf (f, "%lu\n", i);
29594    }
29595  return ferror (f) || fclose (f) != 0;
29596
29597  ;
29598  return 0;
29599}
29600_ACEOF
29601rm -f conftest$ac_exeext
29602if { (ac_try="$ac_link"
29603case "(($ac_try" in
29604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29605  *) ac_try_echo=$ac_try;;
29606esac
29607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29608  (eval "$ac_link") 2>&5
29609  ac_status=$?
29610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29612  { (case "(($ac_try" in
29613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29614  *) ac_try_echo=$ac_try;;
29615esac
29616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29617  (eval "$ac_try") 2>&5
29618  ac_status=$?
29619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620  (exit $ac_status); }; }; then
29621  ac_cv_sizeof_off_t=`cat conftest.val`
29622else
29623  echo "$as_me: program exited with status $ac_status" >&5
29624echo "$as_me: failed program was:" >&5
29625sed 's/^/| /' conftest.$ac_ext >&5
29626
29627( exit $ac_status )
29628if test "$ac_cv_type_off_t" = yes; then
29629     { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
29630See \`config.log' for more details." >&5
29631echo "$as_me: error: cannot compute sizeof (off_t)
29632See \`config.log' for more details." >&2;}
29633   { (exit 77); exit 77; }; }
29634   else
29635     ac_cv_sizeof_off_t=0
29636   fi
29637fi
29638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29639fi
29640rm -f conftest.val
29641fi
29642{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
29643echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
29644
29645
29646
29647cat >>confdefs.h <<_ACEOF
29648#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
29649_ACEOF
29650
29651
29652
29653
29654
29655HAVE_OGG=no
29656HAVE_VORBIS=no
29657HAVE_SPEEX=no
29658
29659ac_enable_oggvorbis=yes
29660# Check whether --enable-oggvorbis was given.
29661if test "${enable_oggvorbis+set}" = set; then
29662  enableval=$enable_oggvorbis;  ac_enable_oggvorbis=no
29663else
29664   ac_enable_oggvorbis=yes
29665fi
29666
29667
29668ac_enable_speex=yes
29669# Check whether --enable-speex was given.
29670if test "${enable_speex+set}" = set; then
29671  enableval=$enable_speex;  ac_enable_speex=no
29672else
29673   ac_enable_speex=yes
29674fi
29675
29676
29677if test "x${ac_enable_oggvorbis}" != xno ||
29678   test "x${ac_enable_speex}" != xno ; then
29679
29680
29681# Check whether --with-ogg was given.
29682if test "${with_ogg+set}" = set; then
29683  withval=$with_ogg; ogg_prefix="$withval"
29684else
29685  ogg_prefix=""
29686fi
29687
29688
29689# Check whether --with-ogg-libraries was given.
29690if test "${with_ogg_libraries+set}" = set; then
29691  withval=$with_ogg_libraries; ogg_libraries="$withval"
29692else
29693  ogg_libraries=""
29694fi
29695
29696
29697# Check whether --with-ogg-includes was given.
29698if test "${with_ogg_includes+set}" = set; then
29699  withval=$with_ogg_includes; ogg_includes="$withval"
29700else
29701  ogg_includes=""
29702fi
29703
29704# Check whether --enable-oggtest was given.
29705if test "${enable_oggtest+set}" = set; then
29706  enableval=$enable_oggtest;
29707else
29708  enable_oggtest=yes
29709fi
29710
29711
29712  if test "x$ogg_libraries" != "x" ; then
29713    OGG_LIBS="-L$ogg_libraries"
29714  elif test "x$ogg_prefix" != "x" ; then
29715    OGG_LIBS="-L$ogg_prefix/lib"
29716  elif test "x$prefix" != "xNONE" ; then
29717    OGG_LIBS="-L$prefix/lib"
29718  fi
29719
29720  OGG_LIBS="$OGG_LIBS -logg"
29721
29722  if test "x$ogg_includes" != "x" ; then
29723    OGG_CFLAGS="-I$ogg_includes"
29724  elif test "x$ogg_prefix" != "x" ; then
29725    OGG_CFLAGS="-I$ogg_prefix/include"
29726  elif test "x$prefix" != "xNONE"; then
29727    OGG_CFLAGS="-I$prefix/include"
29728  fi
29729
29730  { echo "$as_me:$LINENO: checking for Ogg" >&5
29731echo $ECHO_N "checking for Ogg... $ECHO_C" >&6; }
29732  no_ogg=""
29733
29734
29735  if test "x$enable_oggtest" = "xyes" ; then
29736    ac_save_CFLAGS="$CFLAGS"
29737    ac_save_LIBS="$LIBS"
29738    CFLAGS="$CFLAGS $OGG_CFLAGS"
29739    LIBS="$LIBS $OGG_LIBS"
29740      rm -f conf.oggtest
29741      if test "$cross_compiling" = yes; then
29742  echo $ac_n "cross compiling; assumed OK... $ac_c"
29743else
29744  cat >conftest.$ac_ext <<_ACEOF
29745/* confdefs.h.  */
29746_ACEOF
29747cat confdefs.h >>conftest.$ac_ext
29748cat >>conftest.$ac_ext <<_ACEOF
29749/* end confdefs.h.  */
29750
29751#include <stdio.h>
29752#include <stdlib.h>
29753#include <string.h>
29754#include <ogg/ogg.h>
29755
29756int main ()
29757{
29758  system("touch conf.oggtest");
29759  return 0;
29760}
29761
29762
29763_ACEOF
29764rm -f conftest$ac_exeext
29765if { (ac_try="$ac_link"
29766case "(($ac_try" in
29767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29768  *) ac_try_echo=$ac_try;;
29769esac
29770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29771  (eval "$ac_link") 2>&5
29772  ac_status=$?
29773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29775  { (case "(($ac_try" in
29776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29777  *) ac_try_echo=$ac_try;;
29778esac
29779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29780  (eval "$ac_try") 2>&5
29781  ac_status=$?
29782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783  (exit $ac_status); }; }; then
29784  :
29785else
29786  echo "$as_me: program exited with status $ac_status" >&5
29787echo "$as_me: failed program was:" >&5
29788sed 's/^/| /' conftest.$ac_ext >&5
29789
29790( exit $ac_status )
29791no_ogg=yes
29792fi
29793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29794fi
29795
29796
29797       CFLAGS="$ac_save_CFLAGS"
29798       LIBS="$ac_save_LIBS"
29799  fi
29800
29801  if test "x$no_ogg" = "x" ; then
29802     { echo "$as_me:$LINENO: result: yes" >&5
29803echo "${ECHO_T}yes" >&6; }
29804     HAVE_OGG="yes"
29805  else
29806     { echo "$as_me:$LINENO: result: no" >&5
29807echo "${ECHO_T}no" >&6; }
29808     if test -f conf.oggtest ; then
29809       :
29810     else
29811       echo "*** Could not run Ogg test program, checking why..."
29812       CFLAGS="$CFLAGS $OGG_CFLAGS"
29813       LIBS="$LIBS $OGG_LIBS"
29814       cat >conftest.$ac_ext <<_ACEOF
29815/* confdefs.h.  */
29816_ACEOF
29817cat confdefs.h >>conftest.$ac_ext
29818cat >>conftest.$ac_ext <<_ACEOF
29819/* end confdefs.h.  */
29820
29821#include <stdio.h>
29822#include <ogg/ogg.h>
29823
29824int
29825main ()
29826{
29827 return 0;
29828  ;
29829  return 0;
29830}
29831_ACEOF
29832rm -f conftest.$ac_objext conftest$ac_exeext
29833if { (ac_try="$ac_link"
29834case "(($ac_try" in
29835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29836  *) ac_try_echo=$ac_try;;
29837esac
29838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29839  (eval "$ac_link") 2>conftest.er1
29840  ac_status=$?
29841  grep -v '^ *+' conftest.er1 >conftest.err
29842  rm -f conftest.er1
29843  cat conftest.err >&5
29844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845  (exit $ac_status); } && {
29846	 test -z "$ac_c_werror_flag" ||
29847	 test ! -s conftest.err
29848       } && test -s conftest$ac_exeext &&
29849       $as_test_x conftest$ac_exeext; then
29850   echo "*** The test program compiled, but did not run. This usually means"
29851       echo "*** that the run-time linker is not finding Ogg or finding the wrong"
29852       echo "*** version of Ogg. If it is not finding Ogg, you'll need to set your"
29853       echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
29854       echo "*** to the installed location  Also, make sure you have run ldconfig if that"
29855       echo "*** is required on your system"
29856       echo "***"
29857       echo "*** If you have an old version installed, it is best to remove it, although"
29858       echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
29859else
29860  echo "$as_me: failed program was:" >&5
29861sed 's/^/| /' conftest.$ac_ext >&5
29862
29863	 echo "*** The test program failed to compile or link. See the file config.log for the"
29864       echo "*** exact error that occured. This usually means Ogg was incorrectly installed"
29865       echo "*** or that you have moved Ogg since it was installed."
29866fi
29867
29868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29869      conftest$ac_exeext conftest.$ac_ext
29870       CFLAGS="$ac_save_CFLAGS"
29871       LIBS="$ac_save_LIBS"
29872     fi
29873     OGG_CFLAGS=""
29874     OGG_LIBS=""
29875     HAVE_OGG="no"
29876  fi
29877
29878
29879  rm -f conf.oggtest
29880
29881  if test "x$HAVE_OGG" = xno ; then
29882    { echo "$as_me:$LINENO: checking for ogg_stream_init in -logg" >&5
29883echo $ECHO_N "checking for ogg_stream_init in -logg... $ECHO_C" >&6; }
29884if test "${ac_cv_lib_ogg_ogg_stream_init+set}" = set; then
29885  echo $ECHO_N "(cached) $ECHO_C" >&6
29886else
29887  ac_check_lib_save_LIBS=$LIBS
29888LIBS="-logg  $LIBS"
29889cat >conftest.$ac_ext <<_ACEOF
29890/* confdefs.h.  */
29891_ACEOF
29892cat confdefs.h >>conftest.$ac_ext
29893cat >>conftest.$ac_ext <<_ACEOF
29894/* end confdefs.h.  */
29895
29896/* Override any GCC internal prototype to avoid an error.
29897   Use char because int might match the return type of a GCC
29898   builtin and then its argument prototype would still apply.  */
29899#ifdef __cplusplus
29900extern "C"
29901#endif
29902char ogg_stream_init ();
29903int
29904main ()
29905{
29906return ogg_stream_init ();
29907  ;
29908  return 0;
29909}
29910_ACEOF
29911rm -f conftest.$ac_objext conftest$ac_exeext
29912if { (ac_try="$ac_link"
29913case "(($ac_try" in
29914  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29915  *) ac_try_echo=$ac_try;;
29916esac
29917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29918  (eval "$ac_link") 2>conftest.er1
29919  ac_status=$?
29920  grep -v '^ *+' conftest.er1 >conftest.err
29921  rm -f conftest.er1
29922  cat conftest.err >&5
29923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924  (exit $ac_status); } && {
29925	 test -z "$ac_c_werror_flag" ||
29926	 test ! -s conftest.err
29927       } && test -s conftest$ac_exeext &&
29928       $as_test_x conftest$ac_exeext; then
29929  ac_cv_lib_ogg_ogg_stream_init=yes
29930else
29931  echo "$as_me: failed program was:" >&5
29932sed 's/^/| /' conftest.$ac_ext >&5
29933
29934	ac_cv_lib_ogg_ogg_stream_init=no
29935fi
29936
29937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29938      conftest$ac_exeext conftest.$ac_ext
29939LIBS=$ac_check_lib_save_LIBS
29940fi
29941{ echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_stream_init" >&5
29942echo "${ECHO_T}$ac_cv_lib_ogg_ogg_stream_init" >&6; }
29943if test $ac_cv_lib_ogg_ogg_stream_init = yes; then
29944  HAVE_OGG="maybe"
29945fi
29946
29947  fi
29948  if test "x$HAVE_OGG" = xmaybe; then
29949    if test "${ac_cv_header_ogg_ogg_h+set}" = set; then
29950  { echo "$as_me:$LINENO: checking for ogg/ogg.h" >&5
29951echo $ECHO_N "checking for ogg/ogg.h... $ECHO_C" >&6; }
29952if test "${ac_cv_header_ogg_ogg_h+set}" = set; then
29953  echo $ECHO_N "(cached) $ECHO_C" >&6
29954fi
29955{ echo "$as_me:$LINENO: result: $ac_cv_header_ogg_ogg_h" >&5
29956echo "${ECHO_T}$ac_cv_header_ogg_ogg_h" >&6; }
29957else
29958  # Is the header compilable?
29959{ echo "$as_me:$LINENO: checking ogg/ogg.h usability" >&5
29960echo $ECHO_N "checking ogg/ogg.h usability... $ECHO_C" >&6; }
29961cat >conftest.$ac_ext <<_ACEOF
29962/* confdefs.h.  */
29963_ACEOF
29964cat confdefs.h >>conftest.$ac_ext
29965cat >>conftest.$ac_ext <<_ACEOF
29966/* end confdefs.h.  */
29967$ac_includes_default
29968#include <ogg/ogg.h>
29969_ACEOF
29970rm -f conftest.$ac_objext
29971if { (ac_try="$ac_compile"
29972case "(($ac_try" in
29973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29974  *) ac_try_echo=$ac_try;;
29975esac
29976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29977  (eval "$ac_compile") 2>conftest.er1
29978  ac_status=$?
29979  grep -v '^ *+' conftest.er1 >conftest.err
29980  rm -f conftest.er1
29981  cat conftest.err >&5
29982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983  (exit $ac_status); } && {
29984	 test -z "$ac_c_werror_flag" ||
29985	 test ! -s conftest.err
29986       } && test -s conftest.$ac_objext; then
29987  ac_header_compiler=yes
29988else
29989  echo "$as_me: failed program was:" >&5
29990sed 's/^/| /' conftest.$ac_ext >&5
29991
29992	ac_header_compiler=no
29993fi
29994
29995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29996{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29997echo "${ECHO_T}$ac_header_compiler" >&6; }
29998
29999# Is the header present?
30000{ echo "$as_me:$LINENO: checking ogg/ogg.h presence" >&5
30001echo $ECHO_N "checking ogg/ogg.h presence... $ECHO_C" >&6; }
30002cat >conftest.$ac_ext <<_ACEOF
30003/* confdefs.h.  */
30004_ACEOF
30005cat confdefs.h >>conftest.$ac_ext
30006cat >>conftest.$ac_ext <<_ACEOF
30007/* end confdefs.h.  */
30008#include <ogg/ogg.h>
30009_ACEOF
30010if { (ac_try="$ac_cpp conftest.$ac_ext"
30011case "(($ac_try" in
30012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30013  *) ac_try_echo=$ac_try;;
30014esac
30015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30016  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30017  ac_status=$?
30018  grep -v '^ *+' conftest.er1 >conftest.err
30019  rm -f conftest.er1
30020  cat conftest.err >&5
30021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022  (exit $ac_status); } >/dev/null && {
30023	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30024	 test ! -s conftest.err
30025       }; then
30026  ac_header_preproc=yes
30027else
30028  echo "$as_me: failed program was:" >&5
30029sed 's/^/| /' conftest.$ac_ext >&5
30030
30031  ac_header_preproc=no
30032fi
30033
30034rm -f conftest.err conftest.$ac_ext
30035{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30036echo "${ECHO_T}$ac_header_preproc" >&6; }
30037
30038# So?  What about this header?
30039case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30040  yes:no: )
30041    { echo "$as_me:$LINENO: WARNING: ogg/ogg.h: accepted by the compiler, rejected by the preprocessor!" >&5
30042echo "$as_me: WARNING: ogg/ogg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30043    { echo "$as_me:$LINENO: WARNING: ogg/ogg.h: proceeding with the compiler's result" >&5
30044echo "$as_me: WARNING: ogg/ogg.h: proceeding with the compiler's result" >&2;}
30045    ac_header_preproc=yes
30046    ;;
30047  no:yes:* )
30048    { echo "$as_me:$LINENO: WARNING: ogg/ogg.h: present but cannot be compiled" >&5
30049echo "$as_me: WARNING: ogg/ogg.h: present but cannot be compiled" >&2;}
30050    { echo "$as_me:$LINENO: WARNING: ogg/ogg.h:     check for missing prerequisite headers?" >&5
30051echo "$as_me: WARNING: ogg/ogg.h:     check for missing prerequisite headers?" >&2;}
30052    { echo "$as_me:$LINENO: WARNING: ogg/ogg.h: see the Autoconf documentation" >&5
30053echo "$as_me: WARNING: ogg/ogg.h: see the Autoconf documentation" >&2;}
30054    { echo "$as_me:$LINENO: WARNING: ogg/ogg.h:     section \"Present But Cannot Be Compiled\"" >&5
30055echo "$as_me: WARNING: ogg/ogg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30056    { echo "$as_me:$LINENO: WARNING: ogg/ogg.h: proceeding with the preprocessor's result" >&5
30057echo "$as_me: WARNING: ogg/ogg.h: proceeding with the preprocessor's result" >&2;}
30058    { echo "$as_me:$LINENO: WARNING: ogg/ogg.h: in the future, the compiler will take precedence" >&5
30059echo "$as_me: WARNING: ogg/ogg.h: in the future, the compiler will take precedence" >&2;}
30060
30061    ;;
30062esac
30063{ echo "$as_me:$LINENO: checking for ogg/ogg.h" >&5
30064echo $ECHO_N "checking for ogg/ogg.h... $ECHO_C" >&6; }
30065if test "${ac_cv_header_ogg_ogg_h+set}" = set; then
30066  echo $ECHO_N "(cached) $ECHO_C" >&6
30067else
30068  ac_cv_header_ogg_ogg_h=$ac_header_preproc
30069fi
30070{ echo "$as_me:$LINENO: result: $ac_cv_header_ogg_ogg_h" >&5
30071echo "${ECHO_T}$ac_cv_header_ogg_ogg_h" >&6; }
30072
30073fi
30074if test $ac_cv_header_ogg_ogg_h = yes; then
30075  HAVE_OGG="yes"
30076else
30077  HAVE_OGG="no"
30078fi
30079
30080
30081  fi
30082
30083
30084fi
30085
30086
30087if test "x$HAVE_OGG" = xyes && test "x${ac_enable_oggvorbis}" != xno ; then
30088
30089
30090# Check whether --with-vorbis was given.
30091if test "${with_vorbis+set}" = set; then
30092  withval=$with_vorbis; vorbis_prefix="$withval"
30093else
30094  vorbis_prefix=""
30095fi
30096
30097
30098# Check whether --with-vorbis-libraries was given.
30099if test "${with_vorbis_libraries+set}" = set; then
30100  withval=$with_vorbis_libraries; vorbis_libraries="$withval"
30101else
30102  vorbis_libraries=""
30103fi
30104
30105
30106# Check whether --with-vorbis-includes was given.
30107if test "${with_vorbis_includes+set}" = set; then
30108  withval=$with_vorbis_includes; vorbis_includes="$withval"
30109else
30110  vorbis_includes=""
30111fi
30112
30113# Check whether --enable-vorbistest was given.
30114if test "${enable_vorbistest+set}" = set; then
30115  enableval=$enable_vorbistest;
30116else
30117  enable_vorbistest=yes
30118fi
30119
30120
30121  if test "x$vorbis_libraries" != "x" ; then
30122    VORBIS_LIBS="-L$vorbis_libraries"
30123  elif test "x$vorbis_prefix" != "x" ; then
30124    VORBIS_LIBS="-L$vorbis_prefix/lib"
30125  elif test "x$prefix" != "xNONE"; then
30126    VORBIS_LIBS="-L$prefix/lib"
30127  fi
30128
30129  VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
30130  VORBISFILE_LIBS="-lvorbisfile"
30131  VORBISENC_LIBS="-lvorbisenc"
30132
30133  if test "x$vorbis_includes" != "x" ; then
30134    VORBIS_CFLAGS="-I$vorbis_includes"
30135  elif test "x$vorbis_prefix" != "x" ; then
30136    VORBIS_CFLAGS="-I$vorbis_prefix/include"
30137  elif test "x$prefix" != "xNONE"; then
30138    VORBIS_CFLAGS="-I$prefix/include"
30139  fi
30140
30141
30142  { echo "$as_me:$LINENO: checking for Vorbis" >&5
30143echo $ECHO_N "checking for Vorbis... $ECHO_C" >&6; }
30144  no_vorbis=""
30145
30146
30147  if test "x$enable_vorbistest" = "xyes" ; then
30148    ac_save_CFLAGS="$CFLAGS"
30149    ac_save_LIBS="$LIBS"
30150    CFLAGS="$CFLAGS $VORBIS_CFLAGS $OGG_CFLAGS"
30151    LIBS="$LIBS $VORBIS_LIBS $VORBISENC_LIBS $OGG_LIBS"
30152      rm -f conf.vorbistest
30153      if test "$cross_compiling" = yes; then
30154  echo $ac_n "cross compiling; assumed OK... $ac_c"
30155else
30156  cat >conftest.$ac_ext <<_ACEOF
30157/* confdefs.h.  */
30158_ACEOF
30159cat confdefs.h >>conftest.$ac_ext
30160cat >>conftest.$ac_ext <<_ACEOF
30161/* end confdefs.h.  */
30162
30163#include <stdio.h>
30164#include <stdlib.h>
30165#include <string.h>
30166#include <vorbis/codec.h>
30167#include <vorbis/vorbisenc.h>
30168
30169int main ()
30170{
30171    vorbis_block 	vb;
30172    vorbis_dsp_state	vd;
30173    vorbis_info		vi;
30174
30175    vorbis_info_init (&vi);
30176    vorbis_encode_init (&vi, 2, 44100, -1, 128000, -1);
30177    vorbis_analysis_init (&vd, &vi);
30178    vorbis_block_init (&vd, &vb);
30179    /* this function was added in 1.0rc3, so this is what we're testing for */
30180    vorbis_bitrate_addblock (&vb);
30181
30182    system("touch conf.vorbistest");
30183    return 0;
30184}
30185
30186
30187_ACEOF
30188rm -f conftest$ac_exeext
30189if { (ac_try="$ac_link"
30190case "(($ac_try" in
30191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30192  *) ac_try_echo=$ac_try;;
30193esac
30194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30195  (eval "$ac_link") 2>&5
30196  ac_status=$?
30197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30199  { (case "(($ac_try" in
30200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30201  *) ac_try_echo=$ac_try;;
30202esac
30203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30204  (eval "$ac_try") 2>&5
30205  ac_status=$?
30206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207  (exit $ac_status); }; }; then
30208  :
30209else
30210  echo "$as_me: program exited with status $ac_status" >&5
30211echo "$as_me: failed program was:" >&5
30212sed 's/^/| /' conftest.$ac_ext >&5
30213
30214( exit $ac_status )
30215no_vorbis=yes
30216fi
30217rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30218fi
30219
30220
30221       CFLAGS="$ac_save_CFLAGS"
30222       LIBS="$ac_save_LIBS"
30223  fi
30224
30225  if test "x$no_vorbis" = "x" ; then
30226     { echo "$as_me:$LINENO: result: yes" >&5
30227echo "${ECHO_T}yes" >&6; }
30228     HAVE_VORBIS="yes"
30229  else
30230     { echo "$as_me:$LINENO: result: no" >&5
30231echo "${ECHO_T}no" >&6; }
30232     if test -f conf.vorbistest ; then
30233       :
30234     else
30235       echo "*** Could not run Vorbis test program, checking why..."
30236       CFLAGS="$CFLAGS $VORBIS_CFLAGS"
30237       LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
30238       cat >conftest.$ac_ext <<_ACEOF
30239/* confdefs.h.  */
30240_ACEOF
30241cat confdefs.h >>conftest.$ac_ext
30242cat >>conftest.$ac_ext <<_ACEOF
30243/* end confdefs.h.  */
30244
30245#include <stdio.h>
30246#include <vorbis/codec.h>
30247
30248int
30249main ()
30250{
30251 return 0;
30252  ;
30253  return 0;
30254}
30255_ACEOF
30256rm -f conftest.$ac_objext conftest$ac_exeext
30257if { (ac_try="$ac_link"
30258case "(($ac_try" in
30259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30260  *) ac_try_echo=$ac_try;;
30261esac
30262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30263  (eval "$ac_link") 2>conftest.er1
30264  ac_status=$?
30265  grep -v '^ *+' conftest.er1 >conftest.err
30266  rm -f conftest.er1
30267  cat conftest.err >&5
30268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269  (exit $ac_status); } && {
30270	 test -z "$ac_c_werror_flag" ||
30271	 test ! -s conftest.err
30272       } && test -s conftest$ac_exeext &&
30273       $as_test_x conftest$ac_exeext; then
30274   echo "*** The test program compiled, but did not run. This usually means"
30275       echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
30276       echo "*** version of Vorbis. If it is not finding Vorbis, you'll need to set your"
30277       echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30278       echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30279       echo "*** is required on your system"
30280       echo "***"
30281       echo "*** If you have an old version installed, it is best to remove it, although"
30282       echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30283else
30284  echo "$as_me: failed program was:" >&5
30285sed 's/^/| /' conftest.$ac_ext >&5
30286
30287	 echo "*** The test program failed to compile or link. See the file config.log for the"
30288       echo "*** exact error that occured. This usually means Vorbis was incorrectly installed"
30289       echo "*** or that you have moved Vorbis since it was installed."
30290fi
30291
30292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30293      conftest$ac_exeext conftest.$ac_ext
30294       CFLAGS="$ac_save_CFLAGS"
30295       LIBS="$ac_save_LIBS"
30296     fi
30297     VORBIS_CFLAGS=""
30298     VORBIS_LIBS=""
30299     VORBISFILE_LIBS=""
30300     VORBISENC_LIBS=""
30301     HAVE_VORBIS="no"
30302  fi
30303
30304
30305
30306
30307  rm -f conf.vorbistest
30308
30309
30310    if test "x$HAVE_VORBIS" = xno ; then
30311    { echo "$as_me:$LINENO: result:
30312*** Trying explicit detection of Ogg Vorbis libraries and headers ..." >&5
30313echo "${ECHO_T}
30314*** Trying explicit detection of Ogg Vorbis libraries and headers ..." >&6; }
30315    { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
30316echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
30317if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
30318  echo $ECHO_N "(cached) $ECHO_C" >&6
30319else
30320  ac_check_lib_save_LIBS=$LIBS
30321LIBS="-lvorbis -lm -logg $LIBS"
30322cat >conftest.$ac_ext <<_ACEOF
30323/* confdefs.h.  */
30324_ACEOF
30325cat confdefs.h >>conftest.$ac_ext
30326cat >>conftest.$ac_ext <<_ACEOF
30327/* end confdefs.h.  */
30328
30329/* Override any GCC internal prototype to avoid an error.
30330   Use char because int might match the return type of a GCC
30331   builtin and then its argument prototype would still apply.  */
30332#ifdef __cplusplus
30333extern "C"
30334#endif
30335char vorbis_info_init ();
30336int
30337main ()
30338{
30339return vorbis_info_init ();
30340  ;
30341  return 0;
30342}
30343_ACEOF
30344rm -f conftest.$ac_objext conftest$ac_exeext
30345if { (ac_try="$ac_link"
30346case "(($ac_try" in
30347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30348  *) ac_try_echo=$ac_try;;
30349esac
30350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30351  (eval "$ac_link") 2>conftest.er1
30352  ac_status=$?
30353  grep -v '^ *+' conftest.er1 >conftest.err
30354  rm -f conftest.er1
30355  cat conftest.err >&5
30356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357  (exit $ac_status); } && {
30358	 test -z "$ac_c_werror_flag" ||
30359	 test ! -s conftest.err
30360       } && test -s conftest$ac_exeext &&
30361       $as_test_x conftest$ac_exeext; then
30362  ac_cv_lib_vorbis_vorbis_info_init=yes
30363else
30364  echo "$as_me: failed program was:" >&5
30365sed 's/^/| /' conftest.$ac_ext >&5
30366
30367	ac_cv_lib_vorbis_vorbis_info_init=no
30368fi
30369
30370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30371      conftest$ac_exeext conftest.$ac_ext
30372LIBS=$ac_check_lib_save_LIBS
30373fi
30374{ echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
30375echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
30376if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
30377  HAVE_VORBIS="maybe"
30378fi
30379
30380    { echo "$as_me:$LINENO: checking for vorbis_encode_init in -lvorbisenc" >&5
30381echo $ECHO_N "checking for vorbis_encode_init in -lvorbisenc... $ECHO_C" >&6; }
30382if test "${ac_cv_lib_vorbisenc_vorbis_encode_init+set}" = set; then
30383  echo $ECHO_N "(cached) $ECHO_C" >&6
30384else
30385  ac_check_lib_save_LIBS=$LIBS
30386LIBS="-lvorbisenc -lm -logg -lvorbis $LIBS"
30387cat >conftest.$ac_ext <<_ACEOF
30388/* confdefs.h.  */
30389_ACEOF
30390cat confdefs.h >>conftest.$ac_ext
30391cat >>conftest.$ac_ext <<_ACEOF
30392/* end confdefs.h.  */
30393
30394/* Override any GCC internal prototype to avoid an error.
30395   Use char because int might match the return type of a GCC
30396   builtin and then its argument prototype would still apply.  */
30397#ifdef __cplusplus
30398extern "C"
30399#endif
30400char vorbis_encode_init ();
30401int
30402main ()
30403{
30404return vorbis_encode_init ();
30405  ;
30406  return 0;
30407}
30408_ACEOF
30409rm -f conftest.$ac_objext conftest$ac_exeext
30410if { (ac_try="$ac_link"
30411case "(($ac_try" in
30412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30413  *) ac_try_echo=$ac_try;;
30414esac
30415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30416  (eval "$ac_link") 2>conftest.er1
30417  ac_status=$?
30418  grep -v '^ *+' conftest.er1 >conftest.err
30419  rm -f conftest.er1
30420  cat conftest.err >&5
30421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30422  (exit $ac_status); } && {
30423	 test -z "$ac_c_werror_flag" ||
30424	 test ! -s conftest.err
30425       } && test -s conftest$ac_exeext &&
30426       $as_test_x conftest$ac_exeext; then
30427  ac_cv_lib_vorbisenc_vorbis_encode_init=yes
30428else
30429  echo "$as_me: failed program was:" >&5
30430sed 's/^/| /' conftest.$ac_ext >&5
30431
30432	ac_cv_lib_vorbisenc_vorbis_encode_init=no
30433fi
30434
30435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30436      conftest$ac_exeext conftest.$ac_ext
30437LIBS=$ac_check_lib_save_LIBS
30438fi
30439{ echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisenc_vorbis_encode_init" >&5
30440echo "${ECHO_T}$ac_cv_lib_vorbisenc_vorbis_encode_init" >&6; }
30441if test $ac_cv_lib_vorbisenc_vorbis_encode_init = yes; then
30442  HAVE_VORBISENC="maybe"
30443fi
30444
30445    { echo "$as_me:$LINENO: checking for ov_open in -lvorbisfile" >&5
30446echo $ECHO_N "checking for ov_open in -lvorbisfile... $ECHO_C" >&6; }
30447if test "${ac_cv_lib_vorbisfile_ov_open+set}" = set; then
30448  echo $ECHO_N "(cached) $ECHO_C" >&6
30449else
30450  ac_check_lib_save_LIBS=$LIBS
30451LIBS="-lvorbisfile -lm -logg -lvorbis $LIBS"
30452cat >conftest.$ac_ext <<_ACEOF
30453/* confdefs.h.  */
30454_ACEOF
30455cat confdefs.h >>conftest.$ac_ext
30456cat >>conftest.$ac_ext <<_ACEOF
30457/* end confdefs.h.  */
30458
30459/* Override any GCC internal prototype to avoid an error.
30460   Use char because int might match the return type of a GCC
30461   builtin and then its argument prototype would still apply.  */
30462#ifdef __cplusplus
30463extern "C"
30464#endif
30465char ov_open ();
30466int
30467main ()
30468{
30469return ov_open ();
30470  ;
30471  return 0;
30472}
30473_ACEOF
30474rm -f conftest.$ac_objext conftest$ac_exeext
30475if { (ac_try="$ac_link"
30476case "(($ac_try" in
30477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30478  *) ac_try_echo=$ac_try;;
30479esac
30480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30481  (eval "$ac_link") 2>conftest.er1
30482  ac_status=$?
30483  grep -v '^ *+' conftest.er1 >conftest.err
30484  rm -f conftest.er1
30485  cat conftest.err >&5
30486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30487  (exit $ac_status); } && {
30488	 test -z "$ac_c_werror_flag" ||
30489	 test ! -s conftest.err
30490       } && test -s conftest$ac_exeext &&
30491       $as_test_x conftest$ac_exeext; then
30492  ac_cv_lib_vorbisfile_ov_open=yes
30493else
30494  echo "$as_me: failed program was:" >&5
30495sed 's/^/| /' conftest.$ac_ext >&5
30496
30497	ac_cv_lib_vorbisfile_ov_open=no
30498fi
30499
30500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30501      conftest$ac_exeext conftest.$ac_ext
30502LIBS=$ac_check_lib_save_LIBS
30503fi
30504{ echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_ov_open" >&5
30505echo "${ECHO_T}$ac_cv_lib_vorbisfile_ov_open" >&6; }
30506if test $ac_cv_lib_vorbisfile_ov_open = yes; then
30507  HAVE_VORBISFILE="maybe"
30508fi
30509
30510
30511
30512
30513for ac_header in vorbis/codec.h vorbis/vorbisfile.h vorbis/vorbisenc.h
30514do
30515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30516if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30517  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30519if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30520  echo $ECHO_N "(cached) $ECHO_C" >&6
30521fi
30522ac_res=`eval echo '${'$as_ac_Header'}'`
30523	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30524echo "${ECHO_T}$ac_res" >&6; }
30525else
30526  # Is the header compilable?
30527{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30528echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30529cat >conftest.$ac_ext <<_ACEOF
30530/* confdefs.h.  */
30531_ACEOF
30532cat confdefs.h >>conftest.$ac_ext
30533cat >>conftest.$ac_ext <<_ACEOF
30534/* end confdefs.h.  */
30535$ac_includes_default
30536#include <$ac_header>
30537_ACEOF
30538rm -f conftest.$ac_objext
30539if { (ac_try="$ac_compile"
30540case "(($ac_try" in
30541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30542  *) ac_try_echo=$ac_try;;
30543esac
30544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30545  (eval "$ac_compile") 2>conftest.er1
30546  ac_status=$?
30547  grep -v '^ *+' conftest.er1 >conftest.err
30548  rm -f conftest.er1
30549  cat conftest.err >&5
30550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551  (exit $ac_status); } && {
30552	 test -z "$ac_c_werror_flag" ||
30553	 test ! -s conftest.err
30554       } && test -s conftest.$ac_objext; then
30555  ac_header_compiler=yes
30556else
30557  echo "$as_me: failed program was:" >&5
30558sed 's/^/| /' conftest.$ac_ext >&5
30559
30560	ac_header_compiler=no
30561fi
30562
30563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30564{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30565echo "${ECHO_T}$ac_header_compiler" >&6; }
30566
30567# Is the header present?
30568{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30569echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30570cat >conftest.$ac_ext <<_ACEOF
30571/* confdefs.h.  */
30572_ACEOF
30573cat confdefs.h >>conftest.$ac_ext
30574cat >>conftest.$ac_ext <<_ACEOF
30575/* end confdefs.h.  */
30576#include <$ac_header>
30577_ACEOF
30578if { (ac_try="$ac_cpp conftest.$ac_ext"
30579case "(($ac_try" in
30580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30581  *) ac_try_echo=$ac_try;;
30582esac
30583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30584  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30585  ac_status=$?
30586  grep -v '^ *+' conftest.er1 >conftest.err
30587  rm -f conftest.er1
30588  cat conftest.err >&5
30589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590  (exit $ac_status); } >/dev/null && {
30591	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30592	 test ! -s conftest.err
30593       }; then
30594  ac_header_preproc=yes
30595else
30596  echo "$as_me: failed program was:" >&5
30597sed 's/^/| /' conftest.$ac_ext >&5
30598
30599  ac_header_preproc=no
30600fi
30601
30602rm -f conftest.err conftest.$ac_ext
30603{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30604echo "${ECHO_T}$ac_header_preproc" >&6; }
30605
30606# So?  What about this header?
30607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30608  yes:no: )
30609    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30610echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30611    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30612echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30613    ac_header_preproc=yes
30614    ;;
30615  no:yes:* )
30616    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30618    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30619echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30620    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30621echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30622    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30623echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30624    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30626    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30627echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30628
30629    ;;
30630esac
30631{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30633if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30634  echo $ECHO_N "(cached) $ECHO_C" >&6
30635else
30636  eval "$as_ac_Header=\$ac_header_preproc"
30637fi
30638ac_res=`eval echo '${'$as_ac_Header'}'`
30639	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30640echo "${ECHO_T}$ac_res" >&6; }
30641
30642fi
30643if test `eval echo '${'$as_ac_Header'}'` = yes; then
30644  cat >>confdefs.h <<_ACEOF
30645#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30646_ACEOF
30647 HAVE_VORBIS_HEADERS="yes"
30648else
30649  HAVE_VORBIS_HEADERS="no"
30650fi
30651
30652done
30653
30654
30655    if test "x$HAVE_VORBIS" = xmaybe && test "x$HAVE_VORBISENC" = xmaybe &&
30656       test "x$HAVE_VORBISFILE" = xmaybe &&
30657       test "x$HAVE_VORBIS_HEADERS" = xyes ; then
30658
30659       VORBIS_LIBS="-lvorbis -lm"
30660       VORBISFILE_LIBS="-lvorbisfile"
30661       VORBISENC_LIBS="-lvorbisenc"
30662       VORBIS_CFLAGS=""
30663
30664              HAVE_VORBIS="yes"
30665    else
30666       HAVE_VORBIS="no"
30667    fi
30668  fi
30669
30670
30671
30672
30673
30674  if test "x$HAVE_VORBIS" = xyes ; then
30675
30676cat >>confdefs.h <<\_ACEOF
30677#define HAVE_OGGVORBIS
30678_ACEOF
30679
30680
30681        { echo "$as_me:$LINENO: checking for deprecated ov_read_float() interface" >&5
30682echo $ECHO_N "checking for deprecated ov_read_float() interface... $ECHO_C" >&6; }
30683
30684    ac_save_CFLAGS="$CFLAGS"
30685    ac_save_LIBS="$LIBS"
30686    CFLAGS="$CFLAGS $OGG_CFLAGS $VORBIS_CFLAGS"
30687    LIBS="$LIBS $OGG_LIBS $VORBIS_LIBS $VORBISFILE_LIBS"
30688
30689    cat >conftest.$ac_ext <<_ACEOF
30690/* confdefs.h.  */
30691_ACEOF
30692cat confdefs.h >>conftest.$ac_ext
30693cat >>conftest.$ac_ext <<_ACEOF
30694/* end confdefs.h.  */
30695#include <vorbis/codec.h>
30696                    #include <vorbis/vorbisfile.h>
30697int
30698main ()
30699{
30700OggVorbis_File * vf; float ** pcm; int b;
30701                    ov_read_float (vf, &pcm, &b);
30702  ;
30703  return 0;
30704}
30705_ACEOF
30706rm -f conftest.$ac_objext
30707if { (ac_try="$ac_compile"
30708case "(($ac_try" in
30709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30710  *) ac_try_echo=$ac_try;;
30711esac
30712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30713  (eval "$ac_compile") 2>conftest.er1
30714  ac_status=$?
30715  grep -v '^ *+' conftest.er1 >conftest.err
30716  rm -f conftest.er1
30717  cat conftest.err >&5
30718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719  (exit $ac_status); } && {
30720	 test -z "$ac_c_werror_flag" ||
30721	 test ! -s conftest.err
30722       } && test -s conftest.$ac_objext; then
30723
30724cat >>confdefs.h <<\_ACEOF
30725#define OV_READ_FLOAT_THREE_ARGS
30726_ACEOF
30727
30728		     { echo "$as_me:$LINENO: result: yes" >&5
30729echo "${ECHO_T}yes" >&6; }
30730else
30731  echo "$as_me: failed program was:" >&5
30732sed 's/^/| /' conftest.$ac_ext >&5
30733
30734	 { echo "$as_me:$LINENO: result: no" >&5
30735echo "${ECHO_T}no" >&6; }
30736fi
30737
30738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30739
30740    CFLAGS="$ac_save_CFLAGS"
30741    LIBS="$ac_save_LIBS"
30742
30743  else
30744    sweep_config_ok="no"
30745  fi
30746
30747else
30748  HAVE_VORBIS=disabled
30749fi
30750
30751
30752if test "x$HAVE_OGG" = xyes && test "x${ac_enable_speex}" != xno ; then
30753
30754
30755# Check whether --with-speex was given.
30756if test "${with_speex+set}" = set; then
30757  withval=$with_speex; speex_prefix="$withval"
30758else
30759  speex_prefix=""
30760fi
30761
30762
30763# Check whether --with-speex-libraries was given.
30764if test "${with_speex_libraries+set}" = set; then
30765  withval=$with_speex_libraries; speex_libraries="$withval"
30766else
30767  speex_libraries=""
30768fi
30769
30770
30771# Check whether --with-speex-includes was given.
30772if test "${with_speex_includes+set}" = set; then
30773  withval=$with_speex_includes; speex_includes="$withval"
30774else
30775  speex_includes=""
30776fi
30777
30778# Check whether --enable-speextest was given.
30779if test "${enable_speextest+set}" = set; then
30780  enableval=$enable_speextest;
30781else
30782  enable_speextest=yes
30783fi
30784
30785
30786  if test "x$speex_libraries" != "x" ; then
30787    SPEEX_LIBS="-L$speex_libraries"
30788  elif test "x$speex_prefix" != "x" ; then
30789    SPEEX_LIBS="-L$speex_prefix/lib"
30790  elif test "x$prefix" != "xNONE" ; then
30791    SPEEX_LIBS="-L$prefix/lib"
30792  fi
30793
30794  SPEEX_LIBS="$SPEEX_LIBS -lspeex"
30795
30796  if test "x$speex_includes" != "x" ; then
30797    SPEEX_CFLAGS="-I$speex_includes"
30798  elif test "x$speex_prefix" != "x" ; then
30799    SPEEX_CFLAGS="-I$speex_prefix/include"
30800  elif test "x$prefix" != "xNONE"; then
30801    SPEEX_CFLAGS="-I$prefix/include"
30802  fi
30803
30804  { echo "$as_me:$LINENO: checking for Speex" >&5
30805echo $ECHO_N "checking for Speex... $ECHO_C" >&6; }
30806  no_speex=""
30807
30808
30809  if test "x$enable_speextest" = "xyes" ; then
30810    ac_save_CFLAGS="$CFLAGS"
30811    ac_save_LIBS="$LIBS"
30812    CFLAGS="$CFLAGS $SPEEX_CFLAGS"
30813    LIBS="$LIBS $SPEEX_LIBS"
30814      rm -f conf.speextest
30815      if test "$cross_compiling" = yes; then
30816  echo $ac_n "cross compiling; assumed OK... $ac_c"
30817else
30818  cat >conftest.$ac_ext <<_ACEOF
30819/* confdefs.h.  */
30820_ACEOF
30821cat confdefs.h >>conftest.$ac_ext
30822cat >>conftest.$ac_ext <<_ACEOF
30823/* end confdefs.h.  */
30824
30825#include <stdio.h>
30826#include <stdlib.h>
30827#include <string.h>
30828#include <speex/speex.h>
30829
30830int main ()
30831{
30832  system("touch conf.speextest");
30833  return 0;
30834}
30835
30836
30837_ACEOF
30838rm -f conftest$ac_exeext
30839if { (ac_try="$ac_link"
30840case "(($ac_try" in
30841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30842  *) ac_try_echo=$ac_try;;
30843esac
30844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30845  (eval "$ac_link") 2>&5
30846  ac_status=$?
30847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30848  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30849  { (case "(($ac_try" in
30850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30851  *) ac_try_echo=$ac_try;;
30852esac
30853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30854  (eval "$ac_try") 2>&5
30855  ac_status=$?
30856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857  (exit $ac_status); }; }; then
30858  :
30859else
30860  echo "$as_me: program exited with status $ac_status" >&5
30861echo "$as_me: failed program was:" >&5
30862sed 's/^/| /' conftest.$ac_ext >&5
30863
30864( exit $ac_status )
30865no_speex=yes
30866fi
30867rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30868fi
30869
30870
30871       CFLAGS="$ac_save_CFLAGS"
30872       LIBS="$ac_save_LIBS"
30873  fi
30874
30875  if test "x$no_speex" = "x" ; then
30876     { echo "$as_me:$LINENO: result: yes" >&5
30877echo "${ECHO_T}yes" >&6; }
30878     HAVE_SPEEX="yes"
30879  else
30880     { echo "$as_me:$LINENO: result: no" >&5
30881echo "${ECHO_T}no" >&6; }
30882     if test -f conf.speextest ; then
30883       :
30884     else
30885       echo "*** Could not run Speex test program, checking why..."
30886       CFLAGS="$CFLAGS $SPEEX_CFLAGS"
30887       LIBS="$LIBS $SPEEX_LIBS"
30888       cat >conftest.$ac_ext <<_ACEOF
30889/* confdefs.h.  */
30890_ACEOF
30891cat confdefs.h >>conftest.$ac_ext
30892cat >>conftest.$ac_ext <<_ACEOF
30893/* end confdefs.h.  */
30894
30895#include <stdio.h>
30896#include <speex/speex.h>
30897
30898int
30899main ()
30900{
30901 return 0;
30902  ;
30903  return 0;
30904}
30905_ACEOF
30906rm -f conftest.$ac_objext conftest$ac_exeext
30907if { (ac_try="$ac_link"
30908case "(($ac_try" in
30909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30910  *) ac_try_echo=$ac_try;;
30911esac
30912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30913  (eval "$ac_link") 2>conftest.er1
30914  ac_status=$?
30915  grep -v '^ *+' conftest.er1 >conftest.err
30916  rm -f conftest.er1
30917  cat conftest.err >&5
30918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919  (exit $ac_status); } && {
30920	 test -z "$ac_c_werror_flag" ||
30921	 test ! -s conftest.err
30922       } && test -s conftest$ac_exeext &&
30923       $as_test_x conftest$ac_exeext; then
30924   echo "*** The test program compiled, but did not run. This usually means"
30925       echo "*** that the run-time linker is not finding Speex or finding the wrong"
30926       echo "*** version of Speex. If it is not finding Speex, you'll need to set your"
30927       echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30928       echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30929       echo "*** is required on your system"
30930       echo "***"
30931       echo "*** If you have an old version installed, it is best to remove it, although"
30932       echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30933else
30934  echo "$as_me: failed program was:" >&5
30935sed 's/^/| /' conftest.$ac_ext >&5
30936
30937	 echo "*** The test program failed to compile or link. See the file config.log for the"
30938       echo "*** exact error that occured. This usually means Speex was incorrectly installed"
30939       echo "*** or that you have moved Speex since it was installed."
30940fi
30941
30942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30943      conftest$ac_exeext conftest.$ac_ext
30944       CFLAGS="$ac_save_CFLAGS"
30945       LIBS="$ac_save_LIBS"
30946     fi
30947     SPEEX_CFLAGS=""
30948     SPEEX_LIBS=""
30949     HAVE_SPEEX="no"
30950  fi
30951
30952
30953  rm -f conf.speextest
30954
30955
30956    if test "x$HAVE_SPEEX" = xno ; then
30957    { echo "$as_me:$LINENO: checking for speex_encoder_init in -lspeex" >&5
30958echo $ECHO_N "checking for speex_encoder_init in -lspeex... $ECHO_C" >&6; }
30959if test "${ac_cv_lib_speex_speex_encoder_init+set}" = set; then
30960  echo $ECHO_N "(cached) $ECHO_C" >&6
30961else
30962  ac_check_lib_save_LIBS=$LIBS
30963LIBS="-lspeex -lm -logg $LIBS"
30964cat >conftest.$ac_ext <<_ACEOF
30965/* confdefs.h.  */
30966_ACEOF
30967cat confdefs.h >>conftest.$ac_ext
30968cat >>conftest.$ac_ext <<_ACEOF
30969/* end confdefs.h.  */
30970
30971/* Override any GCC internal prototype to avoid an error.
30972   Use char because int might match the return type of a GCC
30973   builtin and then its argument prototype would still apply.  */
30974#ifdef __cplusplus
30975extern "C"
30976#endif
30977char speex_encoder_init ();
30978int
30979main ()
30980{
30981return speex_encoder_init ();
30982  ;
30983  return 0;
30984}
30985_ACEOF
30986rm -f conftest.$ac_objext conftest$ac_exeext
30987if { (ac_try="$ac_link"
30988case "(($ac_try" in
30989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30990  *) ac_try_echo=$ac_try;;
30991esac
30992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30993  (eval "$ac_link") 2>conftest.er1
30994  ac_status=$?
30995  grep -v '^ *+' conftest.er1 >conftest.err
30996  rm -f conftest.er1
30997  cat conftest.err >&5
30998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30999  (exit $ac_status); } && {
31000	 test -z "$ac_c_werror_flag" ||
31001	 test ! -s conftest.err
31002       } && test -s conftest$ac_exeext &&
31003       $as_test_x conftest$ac_exeext; then
31004  ac_cv_lib_speex_speex_encoder_init=yes
31005else
31006  echo "$as_me: failed program was:" >&5
31007sed 's/^/| /' conftest.$ac_ext >&5
31008
31009	ac_cv_lib_speex_speex_encoder_init=no
31010fi
31011
31012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31013      conftest$ac_exeext conftest.$ac_ext
31014LIBS=$ac_check_lib_save_LIBS
31015fi
31016{ echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encoder_init" >&5
31017echo "${ECHO_T}$ac_cv_lib_speex_speex_encoder_init" >&6; }
31018if test $ac_cv_lib_speex_speex_encoder_init = yes; then
31019  HAVE_SPEEX="maybe"
31020fi
31021
31022    if test "x$HAVE_SPEEX" = xmaybe; then
31023      if test "${ac_cv_header_speex_h+set}" = set; then
31024  { echo "$as_me:$LINENO: checking for speex.h" >&5
31025echo $ECHO_N "checking for speex.h... $ECHO_C" >&6; }
31026if test "${ac_cv_header_speex_h+set}" = set; then
31027  echo $ECHO_N "(cached) $ECHO_C" >&6
31028fi
31029{ echo "$as_me:$LINENO: result: $ac_cv_header_speex_h" >&5
31030echo "${ECHO_T}$ac_cv_header_speex_h" >&6; }
31031else
31032  # Is the header compilable?
31033{ echo "$as_me:$LINENO: checking speex.h usability" >&5
31034echo $ECHO_N "checking speex.h usability... $ECHO_C" >&6; }
31035cat >conftest.$ac_ext <<_ACEOF
31036/* confdefs.h.  */
31037_ACEOF
31038cat confdefs.h >>conftest.$ac_ext
31039cat >>conftest.$ac_ext <<_ACEOF
31040/* end confdefs.h.  */
31041$ac_includes_default
31042#include <speex.h>
31043_ACEOF
31044rm -f conftest.$ac_objext
31045if { (ac_try="$ac_compile"
31046case "(($ac_try" in
31047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31048  *) ac_try_echo=$ac_try;;
31049esac
31050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31051  (eval "$ac_compile") 2>conftest.er1
31052  ac_status=$?
31053  grep -v '^ *+' conftest.er1 >conftest.err
31054  rm -f conftest.er1
31055  cat conftest.err >&5
31056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057  (exit $ac_status); } && {
31058	 test -z "$ac_c_werror_flag" ||
31059	 test ! -s conftest.err
31060       } && test -s conftest.$ac_objext; then
31061  ac_header_compiler=yes
31062else
31063  echo "$as_me: failed program was:" >&5
31064sed 's/^/| /' conftest.$ac_ext >&5
31065
31066	ac_header_compiler=no
31067fi
31068
31069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31070{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31071echo "${ECHO_T}$ac_header_compiler" >&6; }
31072
31073# Is the header present?
31074{ echo "$as_me:$LINENO: checking speex.h presence" >&5
31075echo $ECHO_N "checking speex.h presence... $ECHO_C" >&6; }
31076cat >conftest.$ac_ext <<_ACEOF
31077/* confdefs.h.  */
31078_ACEOF
31079cat confdefs.h >>conftest.$ac_ext
31080cat >>conftest.$ac_ext <<_ACEOF
31081/* end confdefs.h.  */
31082#include <speex.h>
31083_ACEOF
31084if { (ac_try="$ac_cpp conftest.$ac_ext"
31085case "(($ac_try" in
31086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31087  *) ac_try_echo=$ac_try;;
31088esac
31089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31090  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31091  ac_status=$?
31092  grep -v '^ *+' conftest.er1 >conftest.err
31093  rm -f conftest.er1
31094  cat conftest.err >&5
31095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096  (exit $ac_status); } >/dev/null && {
31097	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31098	 test ! -s conftest.err
31099       }; then
31100  ac_header_preproc=yes
31101else
31102  echo "$as_me: failed program was:" >&5
31103sed 's/^/| /' conftest.$ac_ext >&5
31104
31105  ac_header_preproc=no
31106fi
31107
31108rm -f conftest.err conftest.$ac_ext
31109{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31110echo "${ECHO_T}$ac_header_preproc" >&6; }
31111
31112# So?  What about this header?
31113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31114  yes:no: )
31115    { echo "$as_me:$LINENO: WARNING: speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
31116echo "$as_me: WARNING: speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31117    { echo "$as_me:$LINENO: WARNING: speex.h: proceeding with the compiler's result" >&5
31118echo "$as_me: WARNING: speex.h: proceeding with the compiler's result" >&2;}
31119    ac_header_preproc=yes
31120    ;;
31121  no:yes:* )
31122    { echo "$as_me:$LINENO: WARNING: speex.h: present but cannot be compiled" >&5
31123echo "$as_me: WARNING: speex.h: present but cannot be compiled" >&2;}
31124    { echo "$as_me:$LINENO: WARNING: speex.h:     check for missing prerequisite headers?" >&5
31125echo "$as_me: WARNING: speex.h:     check for missing prerequisite headers?" >&2;}
31126    { echo "$as_me:$LINENO: WARNING: speex.h: see the Autoconf documentation" >&5
31127echo "$as_me: WARNING: speex.h: see the Autoconf documentation" >&2;}
31128    { echo "$as_me:$LINENO: WARNING: speex.h:     section \"Present But Cannot Be Compiled\"" >&5
31129echo "$as_me: WARNING: speex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31130    { echo "$as_me:$LINENO: WARNING: speex.h: proceeding with the preprocessor's result" >&5
31131echo "$as_me: WARNING: speex.h: proceeding with the preprocessor's result" >&2;}
31132    { echo "$as_me:$LINENO: WARNING: speex.h: in the future, the compiler will take precedence" >&5
31133echo "$as_me: WARNING: speex.h: in the future, the compiler will take precedence" >&2;}
31134
31135    ;;
31136esac
31137{ echo "$as_me:$LINENO: checking for speex.h" >&5
31138echo $ECHO_N "checking for speex.h... $ECHO_C" >&6; }
31139if test "${ac_cv_header_speex_h+set}" = set; then
31140  echo $ECHO_N "(cached) $ECHO_C" >&6
31141else
31142  ac_cv_header_speex_h=$ac_header_preproc
31143fi
31144{ echo "$as_me:$LINENO: result: $ac_cv_header_speex_h" >&5
31145echo "${ECHO_T}$ac_cv_header_speex_h" >&6; }
31146
31147fi
31148if test $ac_cv_header_speex_h = yes; then
31149  HAVE_SPEEX="yes"
31150else
31151  if test "${ac_cv_header_speex_speex_h+set}" = set; then
31152  { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
31153echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
31154if test "${ac_cv_header_speex_speex_h+set}" = set; then
31155  echo $ECHO_N "(cached) $ECHO_C" >&6
31156fi
31157{ echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
31158echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
31159else
31160  # Is the header compilable?
31161{ echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
31162echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
31163cat >conftest.$ac_ext <<_ACEOF
31164/* confdefs.h.  */
31165_ACEOF
31166cat confdefs.h >>conftest.$ac_ext
31167cat >>conftest.$ac_ext <<_ACEOF
31168/* end confdefs.h.  */
31169$ac_includes_default
31170#include <speex/speex.h>
31171_ACEOF
31172rm -f conftest.$ac_objext
31173if { (ac_try="$ac_compile"
31174case "(($ac_try" in
31175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31176  *) ac_try_echo=$ac_try;;
31177esac
31178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31179  (eval "$ac_compile") 2>conftest.er1
31180  ac_status=$?
31181  grep -v '^ *+' conftest.er1 >conftest.err
31182  rm -f conftest.er1
31183  cat conftest.err >&5
31184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185  (exit $ac_status); } && {
31186	 test -z "$ac_c_werror_flag" ||
31187	 test ! -s conftest.err
31188       } && test -s conftest.$ac_objext; then
31189  ac_header_compiler=yes
31190else
31191  echo "$as_me: failed program was:" >&5
31192sed 's/^/| /' conftest.$ac_ext >&5
31193
31194	ac_header_compiler=no
31195fi
31196
31197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31198{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31199echo "${ECHO_T}$ac_header_compiler" >&6; }
31200
31201# Is the header present?
31202{ echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
31203echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
31204cat >conftest.$ac_ext <<_ACEOF
31205/* confdefs.h.  */
31206_ACEOF
31207cat confdefs.h >>conftest.$ac_ext
31208cat >>conftest.$ac_ext <<_ACEOF
31209/* end confdefs.h.  */
31210#include <speex/speex.h>
31211_ACEOF
31212if { (ac_try="$ac_cpp conftest.$ac_ext"
31213case "(($ac_try" in
31214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31215  *) ac_try_echo=$ac_try;;
31216esac
31217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31218  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31219  ac_status=$?
31220  grep -v '^ *+' conftest.er1 >conftest.err
31221  rm -f conftest.er1
31222  cat conftest.err >&5
31223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224  (exit $ac_status); } >/dev/null && {
31225	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31226	 test ! -s conftest.err
31227       }; then
31228  ac_header_preproc=yes
31229else
31230  echo "$as_me: failed program was:" >&5
31231sed 's/^/| /' conftest.$ac_ext >&5
31232
31233  ac_header_preproc=no
31234fi
31235
31236rm -f conftest.err conftest.$ac_ext
31237{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31238echo "${ECHO_T}$ac_header_preproc" >&6; }
31239
31240# So?  What about this header?
31241case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31242  yes:no: )
31243    { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
31244echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31245    { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
31246echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
31247    ac_header_preproc=yes
31248    ;;
31249  no:yes:* )
31250    { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
31251echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
31252    { echo "$as_me:$LINENO: WARNING: speex/speex.h:     check for missing prerequisite headers?" >&5
31253echo "$as_me: WARNING: speex/speex.h:     check for missing prerequisite headers?" >&2;}
31254    { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
31255echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
31256    { echo "$as_me:$LINENO: WARNING: speex/speex.h:     section \"Present But Cannot Be Compiled\"" >&5
31257echo "$as_me: WARNING: speex/speex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31258    { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
31259echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
31260    { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
31261echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
31262
31263    ;;
31264esac
31265{ echo "$as_me:$LINENO: checking for speex/speex.h" >&5
31266echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
31267if test "${ac_cv_header_speex_speex_h+set}" = set; then
31268  echo $ECHO_N "(cached) $ECHO_C" >&6
31269else
31270  ac_cv_header_speex_speex_h=$ac_header_preproc
31271fi
31272{ echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
31273echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
31274
31275fi
31276if test $ac_cv_header_speex_speex_h = yes; then
31277  HAVE_SPEEX="yes"
31278else
31279  HAVE_SPEEX="no"
31280fi
31281
31282
31283
31284fi
31285
31286
31287    fi
31288  fi
31289
31290  if test "x$HAVE_SPEEX" = xyes ; then
31291    if test "${ac_cv_header_speex_speex_h+set}" = set; then
31292  { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
31293echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
31294if test "${ac_cv_header_speex_speex_h+set}" = set; then
31295  echo $ECHO_N "(cached) $ECHO_C" >&6
31296fi
31297{ echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
31298echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
31299else
31300  # Is the header compilable?
31301{ echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
31302echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
31303cat >conftest.$ac_ext <<_ACEOF
31304/* confdefs.h.  */
31305_ACEOF
31306cat confdefs.h >>conftest.$ac_ext
31307cat >>conftest.$ac_ext <<_ACEOF
31308/* end confdefs.h.  */
31309$ac_includes_default
31310#include <speex/speex.h>
31311_ACEOF
31312rm -f conftest.$ac_objext
31313if { (ac_try="$ac_compile"
31314case "(($ac_try" in
31315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31316  *) ac_try_echo=$ac_try;;
31317esac
31318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31319  (eval "$ac_compile") 2>conftest.er1
31320  ac_status=$?
31321  grep -v '^ *+' conftest.er1 >conftest.err
31322  rm -f conftest.er1
31323  cat conftest.err >&5
31324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325  (exit $ac_status); } && {
31326	 test -z "$ac_c_werror_flag" ||
31327	 test ! -s conftest.err
31328       } && test -s conftest.$ac_objext; then
31329  ac_header_compiler=yes
31330else
31331  echo "$as_me: failed program was:" >&5
31332sed 's/^/| /' conftest.$ac_ext >&5
31333
31334	ac_header_compiler=no
31335fi
31336
31337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31338{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31339echo "${ECHO_T}$ac_header_compiler" >&6; }
31340
31341# Is the header present?
31342{ echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
31343echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
31344cat >conftest.$ac_ext <<_ACEOF
31345/* confdefs.h.  */
31346_ACEOF
31347cat confdefs.h >>conftest.$ac_ext
31348cat >>conftest.$ac_ext <<_ACEOF
31349/* end confdefs.h.  */
31350#include <speex/speex.h>
31351_ACEOF
31352if { (ac_try="$ac_cpp conftest.$ac_ext"
31353case "(($ac_try" in
31354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31355  *) ac_try_echo=$ac_try;;
31356esac
31357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31358  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31359  ac_status=$?
31360  grep -v '^ *+' conftest.er1 >conftest.err
31361  rm -f conftest.er1
31362  cat conftest.err >&5
31363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31364  (exit $ac_status); } >/dev/null && {
31365	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31366	 test ! -s conftest.err
31367       }; then
31368  ac_header_preproc=yes
31369else
31370  echo "$as_me: failed program was:" >&5
31371sed 's/^/| /' conftest.$ac_ext >&5
31372
31373  ac_header_preproc=no
31374fi
31375
31376rm -f conftest.err conftest.$ac_ext
31377{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31378echo "${ECHO_T}$ac_header_preproc" >&6; }
31379
31380# So?  What about this header?
31381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31382  yes:no: )
31383    { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
31384echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31385    { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
31386echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
31387    ac_header_preproc=yes
31388    ;;
31389  no:yes:* )
31390    { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
31391echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
31392    { echo "$as_me:$LINENO: WARNING: speex/speex.h:     check for missing prerequisite headers?" >&5
31393echo "$as_me: WARNING: speex/speex.h:     check for missing prerequisite headers?" >&2;}
31394    { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
31395echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
31396    { echo "$as_me:$LINENO: WARNING: speex/speex.h:     section \"Present But Cannot Be Compiled\"" >&5
31397echo "$as_me: WARNING: speex/speex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31398    { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
31399echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
31400    { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
31401echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
31402
31403    ;;
31404esac
31405{ echo "$as_me:$LINENO: checking for speex/speex.h" >&5
31406echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
31407if test "${ac_cv_header_speex_speex_h+set}" = set; then
31408  echo $ECHO_N "(cached) $ECHO_C" >&6
31409else
31410  ac_cv_header_speex_speex_h=$ac_header_preproc
31411fi
31412{ echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
31413echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
31414
31415fi
31416if test $ac_cv_header_speex_speex_h = yes; then
31417
31418cat >>confdefs.h <<\_ACEOF
31419#define HAVE_SPEEX_SUBDIR 1
31420_ACEOF
31421
31422
31423fi
31424
31425
31426
31427
31428cat >>confdefs.h <<\_ACEOF
31429#define HAVE_SPEEX
31430_ACEOF
31431
31432    SPEEX_LIBS="-lspeex -lm"
31433
31434  fi
31435
31436else
31437  HAVE_SPEEX=disabled
31438fi
31439
31440
31441
31442HAVE_MAD=no
31443
31444ac_enable_mad=yes
31445# Check whether --enable-mad was given.
31446if test "${enable_mad+set}" = set; then
31447  enableval=$enable_mad;  ac_enable_mad=no
31448else
31449   ac_enable_mad=yes
31450fi
31451
31452
31453if test "x${ac_enable_mad}" != xno ; then
31454  { echo "$as_me:$LINENO: checking for mad_decoder_init in -lmad" >&5
31455echo $ECHO_N "checking for mad_decoder_init in -lmad... $ECHO_C" >&6; }
31456if test "${ac_cv_lib_mad_mad_decoder_init+set}" = set; then
31457  echo $ECHO_N "(cached) $ECHO_C" >&6
31458else
31459  ac_check_lib_save_LIBS=$LIBS
31460LIBS="-lmad  $LIBS"
31461cat >conftest.$ac_ext <<_ACEOF
31462/* confdefs.h.  */
31463_ACEOF
31464cat confdefs.h >>conftest.$ac_ext
31465cat >>conftest.$ac_ext <<_ACEOF
31466/* end confdefs.h.  */
31467
31468/* Override any GCC internal prototype to avoid an error.
31469   Use char because int might match the return type of a GCC
31470   builtin and then its argument prototype would still apply.  */
31471#ifdef __cplusplus
31472extern "C"
31473#endif
31474char mad_decoder_init ();
31475int
31476main ()
31477{
31478return mad_decoder_init ();
31479  ;
31480  return 0;
31481}
31482_ACEOF
31483rm -f conftest.$ac_objext conftest$ac_exeext
31484if { (ac_try="$ac_link"
31485case "(($ac_try" in
31486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31487  *) ac_try_echo=$ac_try;;
31488esac
31489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31490  (eval "$ac_link") 2>conftest.er1
31491  ac_status=$?
31492  grep -v '^ *+' conftest.er1 >conftest.err
31493  rm -f conftest.er1
31494  cat conftest.err >&5
31495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496  (exit $ac_status); } && {
31497	 test -z "$ac_c_werror_flag" ||
31498	 test ! -s conftest.err
31499       } && test -s conftest$ac_exeext &&
31500       $as_test_x conftest$ac_exeext; then
31501  ac_cv_lib_mad_mad_decoder_init=yes
31502else
31503  echo "$as_me: failed program was:" >&5
31504sed 's/^/| /' conftest.$ac_ext >&5
31505
31506	ac_cv_lib_mad_mad_decoder_init=no
31507fi
31508
31509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31510      conftest$ac_exeext conftest.$ac_ext
31511LIBS=$ac_check_lib_save_LIBS
31512fi
31513{ echo "$as_me:$LINENO: result: $ac_cv_lib_mad_mad_decoder_init" >&5
31514echo "${ECHO_T}$ac_cv_lib_mad_mad_decoder_init" >&6; }
31515if test $ac_cv_lib_mad_mad_decoder_init = yes; then
31516  HAVE_MAD="maybe"
31517fi
31518
31519
31520  if test "x$HAVE_MAD" = xmaybe ; then
31521    if test "${ac_cv_header_mad_h+set}" = set; then
31522  { echo "$as_me:$LINENO: checking for mad.h" >&5
31523echo $ECHO_N "checking for mad.h... $ECHO_C" >&6; }
31524if test "${ac_cv_header_mad_h+set}" = set; then
31525  echo $ECHO_N "(cached) $ECHO_C" >&6
31526fi
31527{ echo "$as_me:$LINENO: result: $ac_cv_header_mad_h" >&5
31528echo "${ECHO_T}$ac_cv_header_mad_h" >&6; }
31529else
31530  # Is the header compilable?
31531{ echo "$as_me:$LINENO: checking mad.h usability" >&5
31532echo $ECHO_N "checking mad.h usability... $ECHO_C" >&6; }
31533cat >conftest.$ac_ext <<_ACEOF
31534/* confdefs.h.  */
31535_ACEOF
31536cat confdefs.h >>conftest.$ac_ext
31537cat >>conftest.$ac_ext <<_ACEOF
31538/* end confdefs.h.  */
31539$ac_includes_default
31540#include <mad.h>
31541_ACEOF
31542rm -f conftest.$ac_objext
31543if { (ac_try="$ac_compile"
31544case "(($ac_try" in
31545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31546  *) ac_try_echo=$ac_try;;
31547esac
31548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31549  (eval "$ac_compile") 2>conftest.er1
31550  ac_status=$?
31551  grep -v '^ *+' conftest.er1 >conftest.err
31552  rm -f conftest.er1
31553  cat conftest.err >&5
31554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555  (exit $ac_status); } && {
31556	 test -z "$ac_c_werror_flag" ||
31557	 test ! -s conftest.err
31558       } && test -s conftest.$ac_objext; then
31559  ac_header_compiler=yes
31560else
31561  echo "$as_me: failed program was:" >&5
31562sed 's/^/| /' conftest.$ac_ext >&5
31563
31564	ac_header_compiler=no
31565fi
31566
31567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31568{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31569echo "${ECHO_T}$ac_header_compiler" >&6; }
31570
31571# Is the header present?
31572{ echo "$as_me:$LINENO: checking mad.h presence" >&5
31573echo $ECHO_N "checking mad.h presence... $ECHO_C" >&6; }
31574cat >conftest.$ac_ext <<_ACEOF
31575/* confdefs.h.  */
31576_ACEOF
31577cat confdefs.h >>conftest.$ac_ext
31578cat >>conftest.$ac_ext <<_ACEOF
31579/* end confdefs.h.  */
31580#include <mad.h>
31581_ACEOF
31582if { (ac_try="$ac_cpp conftest.$ac_ext"
31583case "(($ac_try" in
31584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31585  *) ac_try_echo=$ac_try;;
31586esac
31587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31588  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31589  ac_status=$?
31590  grep -v '^ *+' conftest.er1 >conftest.err
31591  rm -f conftest.er1
31592  cat conftest.err >&5
31593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594  (exit $ac_status); } >/dev/null && {
31595	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31596	 test ! -s conftest.err
31597       }; then
31598  ac_header_preproc=yes
31599else
31600  echo "$as_me: failed program was:" >&5
31601sed 's/^/| /' conftest.$ac_ext >&5
31602
31603  ac_header_preproc=no
31604fi
31605
31606rm -f conftest.err conftest.$ac_ext
31607{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31608echo "${ECHO_T}$ac_header_preproc" >&6; }
31609
31610# So?  What about this header?
31611case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31612  yes:no: )
31613    { echo "$as_me:$LINENO: WARNING: mad.h: accepted by the compiler, rejected by the preprocessor!" >&5
31614echo "$as_me: WARNING: mad.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31615    { echo "$as_me:$LINENO: WARNING: mad.h: proceeding with the compiler's result" >&5
31616echo "$as_me: WARNING: mad.h: proceeding with the compiler's result" >&2;}
31617    ac_header_preproc=yes
31618    ;;
31619  no:yes:* )
31620    { echo "$as_me:$LINENO: WARNING: mad.h: present but cannot be compiled" >&5
31621echo "$as_me: WARNING: mad.h: present but cannot be compiled" >&2;}
31622    { echo "$as_me:$LINENO: WARNING: mad.h:     check for missing prerequisite headers?" >&5
31623echo "$as_me: WARNING: mad.h:     check for missing prerequisite headers?" >&2;}
31624    { echo "$as_me:$LINENO: WARNING: mad.h: see the Autoconf documentation" >&5
31625echo "$as_me: WARNING: mad.h: see the Autoconf documentation" >&2;}
31626    { echo "$as_me:$LINENO: WARNING: mad.h:     section \"Present But Cannot Be Compiled\"" >&5
31627echo "$as_me: WARNING: mad.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31628    { echo "$as_me:$LINENO: WARNING: mad.h: proceeding with the preprocessor's result" >&5
31629echo "$as_me: WARNING: mad.h: proceeding with the preprocessor's result" >&2;}
31630    { echo "$as_me:$LINENO: WARNING: mad.h: in the future, the compiler will take precedence" >&5
31631echo "$as_me: WARNING: mad.h: in the future, the compiler will take precedence" >&2;}
31632
31633    ;;
31634esac
31635{ echo "$as_me:$LINENO: checking for mad.h" >&5
31636echo $ECHO_N "checking for mad.h... $ECHO_C" >&6; }
31637if test "${ac_cv_header_mad_h+set}" = set; then
31638  echo $ECHO_N "(cached) $ECHO_C" >&6
31639else
31640  ac_cv_header_mad_h=$ac_header_preproc
31641fi
31642{ echo "$as_me:$LINENO: result: $ac_cv_header_mad_h" >&5
31643echo "${ECHO_T}$ac_cv_header_mad_h" >&6; }
31644
31645fi
31646if test $ac_cv_header_mad_h = yes; then
31647  HAVE_MAD="yes"
31648else
31649  HAVE_MAD="no"
31650fi
31651
31652
31653  fi
31654  if test "x$HAVE_MAD" = xyes ; then
31655
31656cat >>confdefs.h <<\_ACEOF
31657#define HAVE_MAD
31658_ACEOF
31659
31660    MAD_LIBS="-lmad"
31661
31662  fi
31663
31664else
31665  HAVE_MAD=disabled
31666fi
31667
31668
31669HAVE_LIBSAMPLERATE=no
31670
31671ac_enable_src=yes
31672# Check whether --enable-src was given.
31673if test "${enable_src+set}" = set; then
31674  enableval=$enable_src;  ac_enable_src=no
31675else
31676   ac_enable_src=yes
31677fi
31678
31679
31680if test "x${ac_enable_src}" != xno ; then
31681
31682pkg_failed=no
31683{ echo "$as_me:$LINENO: checking for SAMPLERATE" >&5
31684echo $ECHO_N "checking for SAMPLERATE... $ECHO_C" >&6; }
31685
31686if test -n "$PKG_CONFIG"; then
31687    if test -n "$SAMPLERATE_CFLAGS"; then
31688        pkg_cv_SAMPLERATE_CFLAGS="$SAMPLERATE_CFLAGS"
31689    else
31690        if test -n "$PKG_CONFIG" && \
31691    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"samplerate >= 0.0.9\"") >&5
31692  ($PKG_CONFIG --exists --print-errors "samplerate >= 0.0.9") 2>&5
31693  ac_status=$?
31694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695  (exit $ac_status); }; then
31696  pkg_cv_SAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate >= 0.0.9" 2>/dev/null`
31697else
31698  pkg_failed=yes
31699fi
31700    fi
31701else
31702	pkg_failed=untried
31703fi
31704if test -n "$PKG_CONFIG"; then
31705    if test -n "$SAMPLERATE_LIBS"; then
31706        pkg_cv_SAMPLERATE_LIBS="$SAMPLERATE_LIBS"
31707    else
31708        if test -n "$PKG_CONFIG" && \
31709    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"samplerate >= 0.0.9\"") >&5
31710  ($PKG_CONFIG --exists --print-errors "samplerate >= 0.0.9") 2>&5
31711  ac_status=$?
31712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31713  (exit $ac_status); }; then
31714  pkg_cv_SAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate >= 0.0.9" 2>/dev/null`
31715else
31716  pkg_failed=yes
31717fi
31718    fi
31719else
31720	pkg_failed=untried
31721fi
31722
31723
31724
31725if test $pkg_failed = yes; then
31726
31727if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31728        _pkg_short_errors_supported=yes
31729else
31730        _pkg_short_errors_supported=no
31731fi
31732        if test $_pkg_short_errors_supported = yes; then
31733	        SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "samplerate >= 0.0.9"`
31734        else
31735	        SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "samplerate >= 0.0.9"`
31736        fi
31737	# Put the nasty error message in config.log where it belongs
31738	echo "$SAMPLERATE_PKG_ERRORS" >&5
31739
31740	{ echo "$as_me:$LINENO: result: no" >&5
31741echo "${ECHO_T}no" >&6; }
31742                HAVE_LIBSAMPLERATE="no"
31743elif test $pkg_failed = untried; then
31744	HAVE_LIBSAMPLERATE="no"
31745else
31746	SAMPLERATE_CFLAGS=$pkg_cv_SAMPLERATE_CFLAGS
31747	SAMPLERATE_LIBS=$pkg_cv_SAMPLERATE_LIBS
31748        { echo "$as_me:$LINENO: result: yes" >&5
31749echo "${ECHO_T}yes" >&6; }
31750	HAVE_LIBSAMPLERATE="yes"
31751fi
31752
31753  if test "x$HAVE_LIBSAMPLERATE" = xyes ; then
31754
31755cat >>confdefs.h <<\_ACEOF
31756#define HAVE_LIBSAMPLERATE
31757_ACEOF
31758
31759
31760  fi
31761else
31762  HAVE_LIBSAMPLERATE=disabled
31763fi
31764
31765
31766
31767
31768ac_enable_alsa=no
31769# Check whether --enable-alsa was given.
31770if test "${enable_alsa+set}" = set; then
31771  enableval=$enable_alsa;  ac_enable_alsa=no
31772fi
31773
31774
31775if test "x${ac_enable_alsa}" != xno ; then
31776
31777
31778pkg_failed=no
31779{ echo "$as_me:$LINENO: checking for ALSA" >&5
31780echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
31781
31782if test -n "$PKG_CONFIG"; then
31783    if test -n "$ALSA_CFLAGS"; then
31784        pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
31785    else
31786        if test -n "$PKG_CONFIG" && \
31787    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa >= 1.0.0\"") >&5
31788  ($PKG_CONFIG --exists --print-errors "alsa >= 1.0.0") 2>&5
31789  ac_status=$?
31790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791  (exit $ac_status); }; then
31792  pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 1.0.0" 2>/dev/null`
31793else
31794  pkg_failed=yes
31795fi
31796    fi
31797else
31798	pkg_failed=untried
31799fi
31800if test -n "$PKG_CONFIG"; then
31801    if test -n "$ALSA_LIBS"; then
31802        pkg_cv_ALSA_LIBS="$ALSA_LIBS"
31803    else
31804        if test -n "$PKG_CONFIG" && \
31805    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa >= 1.0.0\"") >&5
31806  ($PKG_CONFIG --exists --print-errors "alsa >= 1.0.0") 2>&5
31807  ac_status=$?
31808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31809  (exit $ac_status); }; then
31810  pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 1.0.0" 2>/dev/null`
31811else
31812  pkg_failed=yes
31813fi
31814    fi
31815else
31816	pkg_failed=untried
31817fi
31818
31819
31820
31821if test $pkg_failed = yes; then
31822
31823if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31824        _pkg_short_errors_supported=yes
31825else
31826        _pkg_short_errors_supported=no
31827fi
31828        if test $_pkg_short_errors_supported = yes; then
31829	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa >= 1.0.0"`
31830        else
31831	        ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 1.0.0"`
31832        fi
31833	# Put the nasty error message in config.log where it belongs
31834	echo "$ALSA_PKG_ERRORS" >&5
31835
31836	{ echo "$as_me:$LINENO: result: no" >&5
31837echo "${ECHO_T}no" >&6; }
31838                sweep_config_ok="no"
31839elif test $pkg_failed = untried; then
31840	sweep_config_ok="no"
31841else
31842	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
31843	ALSA_LIBS=$pkg_cv_ALSA_LIBS
31844        { echo "$as_me:$LINENO: result: yes" >&5
31845echo "${ECHO_T}yes" >&6; }
31846	HAVE_ALSA="yes"
31847fi
31848
31849
31850
31851cat >>confdefs.h <<\_ACEOF
31852#define DRIVER_ALSA
31853_ACEOF
31854
31855  if test "x$HAVE_ALSA" != xyes ; then
31856    { echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
31857echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6; }
31858if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
31859  echo $ECHO_N "(cached) $ECHO_C" >&6
31860else
31861  ac_check_lib_save_LIBS=$LIBS
31862LIBS="-lasound  $LIBS"
31863cat >conftest.$ac_ext <<_ACEOF
31864/* confdefs.h.  */
31865_ACEOF
31866cat confdefs.h >>conftest.$ac_ext
31867cat >>conftest.$ac_ext <<_ACEOF
31868/* end confdefs.h.  */
31869
31870/* Override any GCC internal prototype to avoid an error.
31871   Use char because int might match the return type of a GCC
31872   builtin and then its argument prototype would still apply.  */
31873#ifdef __cplusplus
31874extern "C"
31875#endif
31876char snd_seq_open ();
31877int
31878main ()
31879{
31880return snd_seq_open ();
31881  ;
31882  return 0;
31883}
31884_ACEOF
31885rm -f conftest.$ac_objext conftest$ac_exeext
31886if { (ac_try="$ac_link"
31887case "(($ac_try" in
31888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31889  *) ac_try_echo=$ac_try;;
31890esac
31891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31892  (eval "$ac_link") 2>conftest.er1
31893  ac_status=$?
31894  grep -v '^ *+' conftest.er1 >conftest.err
31895  rm -f conftest.er1
31896  cat conftest.err >&5
31897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898  (exit $ac_status); } && {
31899	 test -z "$ac_c_werror_flag" ||
31900	 test ! -s conftest.err
31901       } && test -s conftest$ac_exeext &&
31902       $as_test_x conftest$ac_exeext; then
31903  ac_cv_lib_asound_snd_seq_open=yes
31904else
31905  echo "$as_me: failed program was:" >&5
31906sed 's/^/| /' conftest.$ac_ext >&5
31907
31908	ac_cv_lib_asound_snd_seq_open=no
31909fi
31910
31911rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31912      conftest$ac_exeext conftest.$ac_ext
31913LIBS=$ac_check_lib_save_LIBS
31914fi
31915{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
31916echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6; }
31917if test $ac_cv_lib_asound_snd_seq_open = yes; then
31918  HAVE_ALSA="maybe"
31919else
31920  sweep_config_ok="no"
31921fi
31922
31923  fi
31924  sweep_config_driver="ALSA"
31925fi
31926
31927
31928
31929for ac_header in sys/soundcard.h machine/soundcard.h
31930do
31931as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31933  { echo "$as_me:$LINENO: checking for $ac_header" >&5
31934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31936  echo $ECHO_N "(cached) $ECHO_C" >&6
31937fi
31938ac_res=`eval echo '${'$as_ac_Header'}'`
31939	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31940echo "${ECHO_T}$ac_res" >&6; }
31941else
31942  # Is the header compilable?
31943{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
31944echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31945cat >conftest.$ac_ext <<_ACEOF
31946/* confdefs.h.  */
31947_ACEOF
31948cat confdefs.h >>conftest.$ac_ext
31949cat >>conftest.$ac_ext <<_ACEOF
31950/* end confdefs.h.  */
31951$ac_includes_default
31952#include <$ac_header>
31953_ACEOF
31954rm -f conftest.$ac_objext
31955if { (ac_try="$ac_compile"
31956case "(($ac_try" in
31957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31958  *) ac_try_echo=$ac_try;;
31959esac
31960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31961  (eval "$ac_compile") 2>conftest.er1
31962  ac_status=$?
31963  grep -v '^ *+' conftest.er1 >conftest.err
31964  rm -f conftest.er1
31965  cat conftest.err >&5
31966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31967  (exit $ac_status); } && {
31968	 test -z "$ac_c_werror_flag" ||
31969	 test ! -s conftest.err
31970       } && test -s conftest.$ac_objext; then
31971  ac_header_compiler=yes
31972else
31973  echo "$as_me: failed program was:" >&5
31974sed 's/^/| /' conftest.$ac_ext >&5
31975
31976	ac_header_compiler=no
31977fi
31978
31979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31980{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31981echo "${ECHO_T}$ac_header_compiler" >&6; }
31982
31983# Is the header present?
31984{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
31985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31986cat >conftest.$ac_ext <<_ACEOF
31987/* confdefs.h.  */
31988_ACEOF
31989cat confdefs.h >>conftest.$ac_ext
31990cat >>conftest.$ac_ext <<_ACEOF
31991/* end confdefs.h.  */
31992#include <$ac_header>
31993_ACEOF
31994if { (ac_try="$ac_cpp conftest.$ac_ext"
31995case "(($ac_try" in
31996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31997  *) ac_try_echo=$ac_try;;
31998esac
31999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32000  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32001  ac_status=$?
32002  grep -v '^ *+' conftest.er1 >conftest.err
32003  rm -f conftest.er1
32004  cat conftest.err >&5
32005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006  (exit $ac_status); } >/dev/null && {
32007	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32008	 test ! -s conftest.err
32009       }; then
32010  ac_header_preproc=yes
32011else
32012  echo "$as_me: failed program was:" >&5
32013sed 's/^/| /' conftest.$ac_ext >&5
32014
32015  ac_header_preproc=no
32016fi
32017
32018rm -f conftest.err conftest.$ac_ext
32019{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32020echo "${ECHO_T}$ac_header_preproc" >&6; }
32021
32022# So?  What about this header?
32023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32024  yes:no: )
32025    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32026echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32027    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32028echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32029    ac_header_preproc=yes
32030    ;;
32031  no:yes:* )
32032    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32033echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32034    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32035echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32036    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32037echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32038    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32039echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32040    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32042    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32043echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32044
32045    ;;
32046esac
32047{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32050  echo $ECHO_N "(cached) $ECHO_C" >&6
32051else
32052  eval "$as_ac_Header=\$ac_header_preproc"
32053fi
32054ac_res=`eval echo '${'$as_ac_Header'}'`
32055	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32056echo "${ECHO_T}$ac_res" >&6; }
32057
32058fi
32059if test `eval echo '${'$as_ac_Header'}'` = yes; then
32060  cat >>confdefs.h <<_ACEOF
32061#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32062_ACEOF
32063
32064fi
32065
32066done
32067
32068if test "x${ac_cv_header_sys_soundcard_h}" = xyes || \
32069  test "x${ac_cv_header_machine_soundcard_h}" = xyes; then
32070  if test "x$ac_enable_alsa" = xno ; then
32071
32072cat >>confdefs.h <<\_ACEOF
32073#define DRIVER_OSS
32074_ACEOF
32075
32076
32077        { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
32078echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
32079if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
32080  echo $ECHO_N "(cached) $ECHO_C" >&6
32081else
32082  ac_check_lib_save_LIBS=$LIBS
32083LIBS="-lossaudio  $LIBS"
32084cat >conftest.$ac_ext <<_ACEOF
32085/* confdefs.h.  */
32086_ACEOF
32087cat confdefs.h >>conftest.$ac_ext
32088cat >>conftest.$ac_ext <<_ACEOF
32089/* end confdefs.h.  */
32090
32091/* Override any GCC internal prototype to avoid an error.
32092   Use char because int might match the return type of a GCC
32093   builtin and then its argument prototype would still apply.  */
32094#ifdef __cplusplus
32095extern "C"
32096#endif
32097char _oss_ioctl ();
32098int
32099main ()
32100{
32101return _oss_ioctl ();
32102  ;
32103  return 0;
32104}
32105_ACEOF
32106rm -f conftest.$ac_objext conftest$ac_exeext
32107if { (ac_try="$ac_link"
32108case "(($ac_try" in
32109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32110  *) ac_try_echo=$ac_try;;
32111esac
32112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32113  (eval "$ac_link") 2>conftest.er1
32114  ac_status=$?
32115  grep -v '^ *+' conftest.er1 >conftest.err
32116  rm -f conftest.er1
32117  cat conftest.err >&5
32118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119  (exit $ac_status); } && {
32120	 test -z "$ac_c_werror_flag" ||
32121	 test ! -s conftest.err
32122       } && test -s conftest$ac_exeext &&
32123       $as_test_x conftest$ac_exeext; then
32124  ac_cv_lib_ossaudio__oss_ioctl=yes
32125else
32126  echo "$as_me: failed program was:" >&5
32127sed 's/^/| /' conftest.$ac_ext >&5
32128
32129	ac_cv_lib_ossaudio__oss_ioctl=no
32130fi
32131
32132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32133      conftest$ac_exeext conftest.$ac_ext
32134LIBS=$ac_check_lib_save_LIBS
32135fi
32136{ echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
32137echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
32138if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
32139  LIBS="$LIBS -lossaudio"
32140fi
32141
32142
32143    sweep_config_driver="OSS"
32144  fi
32145fi
32146
32147case $host in
32148*-*-solaris*)
32149
32150for ac_header in sys/audioio.h
32151do
32152as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32154  { echo "$as_me:$LINENO: checking for $ac_header" >&5
32155echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32157  echo $ECHO_N "(cached) $ECHO_C" >&6
32158fi
32159ac_res=`eval echo '${'$as_ac_Header'}'`
32160	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32161echo "${ECHO_T}$ac_res" >&6; }
32162else
32163  # Is the header compilable?
32164{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32165echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32166cat >conftest.$ac_ext <<_ACEOF
32167/* confdefs.h.  */
32168_ACEOF
32169cat confdefs.h >>conftest.$ac_ext
32170cat >>conftest.$ac_ext <<_ACEOF
32171/* end confdefs.h.  */
32172$ac_includes_default
32173#include <$ac_header>
32174_ACEOF
32175rm -f conftest.$ac_objext
32176if { (ac_try="$ac_compile"
32177case "(($ac_try" in
32178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32179  *) ac_try_echo=$ac_try;;
32180esac
32181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32182  (eval "$ac_compile") 2>conftest.er1
32183  ac_status=$?
32184  grep -v '^ *+' conftest.er1 >conftest.err
32185  rm -f conftest.er1
32186  cat conftest.err >&5
32187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32188  (exit $ac_status); } && {
32189	 test -z "$ac_c_werror_flag" ||
32190	 test ! -s conftest.err
32191       } && test -s conftest.$ac_objext; then
32192  ac_header_compiler=yes
32193else
32194  echo "$as_me: failed program was:" >&5
32195sed 's/^/| /' conftest.$ac_ext >&5
32196
32197	ac_header_compiler=no
32198fi
32199
32200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32201{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32202echo "${ECHO_T}$ac_header_compiler" >&6; }
32203
32204# Is the header present?
32205{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32206echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32207cat >conftest.$ac_ext <<_ACEOF
32208/* confdefs.h.  */
32209_ACEOF
32210cat confdefs.h >>conftest.$ac_ext
32211cat >>conftest.$ac_ext <<_ACEOF
32212/* end confdefs.h.  */
32213#include <$ac_header>
32214_ACEOF
32215if { (ac_try="$ac_cpp conftest.$ac_ext"
32216case "(($ac_try" in
32217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32218  *) ac_try_echo=$ac_try;;
32219esac
32220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32221  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32222  ac_status=$?
32223  grep -v '^ *+' conftest.er1 >conftest.err
32224  rm -f conftest.er1
32225  cat conftest.err >&5
32226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227  (exit $ac_status); } >/dev/null && {
32228	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32229	 test ! -s conftest.err
32230       }; then
32231  ac_header_preproc=yes
32232else
32233  echo "$as_me: failed program was:" >&5
32234sed 's/^/| /' conftest.$ac_ext >&5
32235
32236  ac_header_preproc=no
32237fi
32238
32239rm -f conftest.err conftest.$ac_ext
32240{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32241echo "${ECHO_T}$ac_header_preproc" >&6; }
32242
32243# So?  What about this header?
32244case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32245  yes:no: )
32246    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32247echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32248    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32249echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32250    ac_header_preproc=yes
32251    ;;
32252  no:yes:* )
32253    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32254echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32255    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32256echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32257    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32258echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32259    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32260echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32261    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32262echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32263    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32264echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32265
32266    ;;
32267esac
32268{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32271  echo $ECHO_N "(cached) $ECHO_C" >&6
32272else
32273  eval "$as_ac_Header=\$ac_header_preproc"
32274fi
32275ac_res=`eval echo '${'$as_ac_Header'}'`
32276	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32277echo "${ECHO_T}$ac_res" >&6; }
32278
32279fi
32280if test `eval echo '${'$as_ac_Header'}'` = yes; then
32281  cat >>confdefs.h <<_ACEOF
32282#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32283_ACEOF
32284
32285fi
32286
32287done
32288
32289if test "x${ac_cv_header_sys_audioio_h}" = xyes; then
32290
32291cat >>confdefs.h <<\_ACEOF
32292#define DRIVER_SOLARIS_AUDIO
32293_ACEOF
32294
32295    sweep_config_driver="Solaris"
32296fi
32297;;
32298esac
32299
32300
32301if test "x${prefix}" = xNONE; then
32302
32303cat >>confdefs.h <<_ACEOF
32304#define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
32305_ACEOF
32306
32307else
32308  cat >>confdefs.h <<_ACEOF
32309#define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
32310_ACEOF
32311
32312fi
32313
32314 if test "x${datarootdir}" = 'x${prefix}/share'; then
32315   if test "x${prefix}" = xNONE; then
32316     PACKAGE_DATA_DIR='"${ac_default_prefix}/share/${PACKAGE}"'
32317   else
32318     PACKAGE_DATA_DIR='"${prefix}/share/${PACKAGE}"'
32319   fi
32320 else
32321   PACKAGE_DATA_DIR='"${datarootdir}/${PACKAGE}"'
32322 fi
32323
32324
32325PACKAGE_PLUGIN_DIR=$libdir/sweep
32326
32327if test "x${prefix}" = xNONE; then
32328  sweep_plugin_dir="${ac_default_prefix}/lib/${PACKAGE}"
32329else
32330  sweep_plugin_dir="${prefix}/lib/${PACKAGE}"
32331fi
32332
32333cat >>confdefs.h <<_ACEOF
32334#define PACKAGE_PLUGIN_DIR "$sweep_plugin_dir"
32335_ACEOF
32336
32337
32338packagesrcdir=`cd $srcdir && pwd`
32339
32340cat >>confdefs.h <<_ACEOF
32341#define PACKAGE_SOURCE_DIR "${packagesrcdir}"
32342_ACEOF
32343
32344
32345
32346# Check whether --enable-gcc-werror was given.
32347if test "${enable_gcc_werror+set}" = set; then
32348  enableval=$enable_gcc_werror;
32349fi
32350
32351
32352if test "x$ac_cv_c_compiler_gnu" = xyes ; then
32353  CFLAGS="$CFLAGS -Wall"
32354
32355  if test x$enable_gcc_werror = "xyes" ; then
32356    CFLAGS="$CFLAGS -Werror"
32357	fi
32358
32359fi
32360
32361
32362
32363       { echo "$as_me:$LINENO: checking for extra flags needed to export symbols" >&5
32364echo $ECHO_N "checking for extra flags needed to export symbols... $ECHO_C" >&6; }
32365       case $host_os in
32366               aix4*|aix5*)
32367                       EXPORT_DYNAMIC_FLAGS="-Wl,-bexpall,-brtl"
32368               ;;
32369               bsdi*)
32370                       EXPORT_DYNAMIC_FLAGS="-rdynamic"
32371               ;;
32372               *)
32373                       save_ldflags="$LDFLAGS"
32374                       LDFLAGS=-Wl,-export-dynamic
32375                       cat >conftest.$ac_ext <<_ACEOF
32376/* confdefs.h.  */
32377_ACEOF
32378cat confdefs.h >>conftest.$ac_ext
32379cat >>conftest.$ac_ext <<_ACEOF
32380/* end confdefs.h.  */
32381
32382int
32383main ()
32384{
32385
32386  ;
32387  return 0;
32388}
32389_ACEOF
32390rm -f conftest.$ac_objext conftest$ac_exeext
32391if { (ac_try="$ac_link"
32392case "(($ac_try" in
32393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32394  *) ac_try_echo=$ac_try;;
32395esac
32396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32397  (eval "$ac_link") 2>conftest.er1
32398  ac_status=$?
32399  grep -v '^ *+' conftest.er1 >conftest.err
32400  rm -f conftest.er1
32401  cat conftest.err >&5
32402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403  (exit $ac_status); } && {
32404	 test -z "$ac_c_werror_flag" ||
32405	 test ! -s conftest.err
32406       } && test -s conftest$ac_exeext &&
32407       $as_test_x conftest$ac_exeext; then
32408  EXPORT_DYNAMIC_FLAGS="-Wl,-export-dynamic"
32409else
32410  echo "$as_me: failed program was:" >&5
32411sed 's/^/| /' conftest.$ac_ext >&5
32412
32413
32414                               LDFLAGS=-Wl,-Bexport
32415                               cat >conftest.$ac_ext <<_ACEOF
32416/* confdefs.h.  */
32417_ACEOF
32418cat confdefs.h >>conftest.$ac_ext
32419cat >>conftest.$ac_ext <<_ACEOF
32420/* end confdefs.h.  */
32421
32422int
32423main ()
32424{
32425
32426  ;
32427  return 0;
32428}
32429_ACEOF
32430rm -f conftest.$ac_objext conftest$ac_exeext
32431if { (ac_try="$ac_link"
32432case "(($ac_try" in
32433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32434  *) ac_try_echo=$ac_try;;
32435esac
32436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32437  (eval "$ac_link") 2>conftest.er1
32438  ac_status=$?
32439  grep -v '^ *+' conftest.er1 >conftest.err
32440  rm -f conftest.er1
32441  cat conftest.err >&5
32442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443  (exit $ac_status); } && {
32444	 test -z "$ac_c_werror_flag" ||
32445	 test ! -s conftest.err
32446       } && test -s conftest$ac_exeext &&
32447       $as_test_x conftest$ac_exeext; then
32448  EXPORT_DYNAMIC_FLAGS="- Wl,-Bexport"
32449else
32450  echo "$as_me: failed program was:" >&5
32451sed 's/^/| /' conftest.$ac_ext >&5
32452
32453	{ echo "$as_me:$LINENO: result: none" >&5
32454echo "${ECHO_T}none" >&6; }
32455fi
32456
32457rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32458      conftest$ac_exeext conftest.$ac_ext
32459fi
32460
32461rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32462      conftest$ac_exeext conftest.$ac_ext
32463                       LDFLAGS="$save_ldflags"
32464               ;;
32465       esac
32466
32467       test "x$EXPORT_DYNAMIC_FLAGS" != x && { echo "$as_me:$LINENO: result: $EXPORT_DYNAMIC_FLAGS" >&5
32468echo "${ECHO_T}$EXPORT_DYNAMIC_FLAGS" >&6; }
32469
32470
32471
32472
32473if test $sweep_config_ok = no ; then
32474
32475{ echo "$as_me:$LINENO: result:
32476**************************************************************
32477
32478*** Sweep $VERSION: Automatic configuration FAILED.
32479
32480*** The file config.log has full details.
32481
32482*** The following required libraries are missing or
32483*** misconfigured on your system:
32484" >&5
32485echo "${ECHO_T}
32486**************************************************************
32487
32488*** Sweep $VERSION: Automatic configuration FAILED.
32489
32490*** The file config.log has full details.
32491
32492*** The following required libraries are missing or
32493*** misconfigured on your system:
32494" >&6; }
32495
32496if test "x$HAVE_GLIB" != xyes ||  test "x$HAVE_GTHREADS" != xyes; then
32497  { echo "$as_me:$LINENO: result:
32498*** GLib version 2.2.x or greater, available from  http://www.gtk.org/
32499" >&5
32500echo "${ECHO_T}
32501*** GLib version 2.2.x or greater, available from  http://www.gtk.org/
32502" >&6; }
32503fi
32504
32505if test "x$HAVE_GLIB" = xmaybe || test "x$HAVE_GTHREADS" = xmaybe; then
32506  { echo "$as_me:$LINENO: result:
32507      Development files missing: The libglib-2.0 binary seems
32508      to be installed, but the pkg-config tool cannot find its build
32509      information.
32510" >&5
32511echo "${ECHO_T}
32512      Development files missing: The libglib-2.0 binary seems
32513      to be installed, but the pkg-config tool cannot find its build
32514      information.
32515" >&6; }
32516fi
32517
32518if test "x$HAVE_GTK" != xyes ; then
32519  { echo "$as_me:$LINENO: result:
32520*** GTK+ version 2.2.x or greater, available from  http://www.gtk.org/
32521" >&5
32522echo "${ECHO_T}
32523*** GTK+ version 2.2.x or greater, available from  http://www.gtk.org/
32524" >&6; }
32525fi
32526if test "x$HAVE_GTK" = xmaybe ; then
32527  { echo "$as_me:$LINENO: result:
32528      Development files missing: The libgtk binary seems
32529      to be installed, but the pkg-config tool cannot find its build
32530      information..
32531" >&5
32532echo "${ECHO_T}
32533      Development files missing: The libgtk binary seems
32534      to be installed, but the pkg-config tool cannot find its build
32535      information..
32536" >&6; }
32537fi
32538
32539if test "x$HAVE_LIBSNDFILE1" != xyes ; then
32540  { echo "$as_me:$LINENO: result:
32541*** libsndfile version 1.0.0 or greater, available from
32542*** http://www.mega-nerd.com/libsndfile/
32543" >&5
32544echo "${ECHO_T}
32545*** libsndfile version 1.0.0 or greater, available from
32546*** http://www.mega-nerd.com/libsndfile/
32547" >&6; }
32548fi
32549if test "x$HAVE_LIBSNDFILE1" = xmaybe ; then
32550    { echo "$as_me:$LINENO: result:
32551      Development files missing: libsndfile-1.0.0 or greater
32552      seems to exist on your system, however the header files
32553      are missing and the pkg-config tool cannot find its build
32554      information.
32555" >&5
32556echo "${ECHO_T}
32557      Development files missing: libsndfile-1.0.0 or greater
32558      seems to exist on your system, however the header files
32559      are missing and the pkg-config tool cannot find its build
32560      information.
32561" >&6; }
32562fi
32563
32564if test "x$HAVE_ALSA" = xmaybe ; then
32565    { echo "$as_me:$LINENO: result:
32566      Development files missing: alsa-lib 1.0.0 or greater seems to exist
32567      on your system, however the pkg-config tool cannot find the
32568      build information.
32569" >&5
32570echo "${ECHO_T}
32571      Development files missing: alsa-lib 1.0.0 or greater seems to exist
32572      on your system, however the pkg-config tool cannot find the
32573      build information.
32574" >&6; }
32575fi
32576
32577if test "x$HAVE_ALSA" != xyes ; then
32578  { echo "$as_me:$LINENO: result:
32579*** alsa-lib version 1.0.0 or greater, available from
32580*** http://alsa-project.org/
32581" >&5
32582echo "${ECHO_T}
32583*** alsa-lib version 1.0.0 or greater, available from
32584*** http://alsa-project.org/
32585" >&6; }
32586fi
32587
32588if test "x$HAVE_VORBIS" = xmaybe ; then
32589    { echo "$as_me:$LINENO: result:
32590      Development files missing: The libogg, libvorbis, libvorbisenc and
32591      libvorbisfile library binaries seem to be installed, but building of
32592      a test program failed.
32593" >&5
32594echo "${ECHO_T}
32595      Development files missing: The libogg, libvorbis, libvorbisenc and
32596      libvorbisfile library binaries seem to be installed, but building of
32597      a test program failed.
32598" >&6; }
32599fi
32600
32601if test "x$HAVE_VORBIS" != xyes ; then
32602    { echo "$as_me:$LINENO: result:
32603*** Ogg Vorbis libraries, available from  http://www.xiph.org/ogg/vorbis/
32604" >&5
32605echo "${ECHO_T}
32606*** Ogg Vorbis libraries, available from  http://www.xiph.org/ogg/vorbis/
32607" >&6; }
32608fi
32609
32610if test "x$HAVE_VORBIS" != xyes ; then
32611    { echo "$as_me:$LINENO: result:
32612*** Or, to build a version of Sweep without Ogg Vorbis support, do:
32613***
32614***         ./configure --disable-oggvorbis
32615" >&5
32616echo "${ECHO_T}
32617*** Or, to build a version of Sweep without Ogg Vorbis support, do:
32618***
32619***         ./configure --disable-oggvorbis
32620" >&6; }
32621fi
32622
32623if test "x$HAVE_GLIB" = xmaybe || test "x$HAVE_GTK" = xmaybe ||
32624   test "x$HAVE_LIBSNDFILE1" = xmaybe || test "x$HAVE_TDB" = xmaybe ||
32625   test "x$HAVE_GTHREADS" = xmaybe || test "x$HAVE_ALSA" = xmaybe ||
32626   test "x$HAVE_OGG" = xmaybe || test "x$HAVE_VORBIS" = xmaybe ; then
32627  { echo "$as_me:$LINENO: result:
32628*** HOW TO FIX \"development files missing\": you have probably
32629*** installed the library package from your distribution. You
32630*** must also install the library's \"development\" package.
32631" >&5
32632echo "${ECHO_T}
32633*** HOW TO FIX \"development files missing\": you have probably
32634*** installed the library package from your distribution. You
32635*** must also install the library's \"development\" package.
32636" >&6; }
32637fi
32638
32639{ echo "$as_me:$LINENO: result:
32640*** If you install the required libraries from source, you
32641*** need to inform the dynamic linker of their location. If
32642*** you install them in a system-wide directory such as
32643*** /usr/local (the default), you must ensure that
32644*** /usr/local/lib is listed in /etc/ld.so.conf, then run
32645*** ldconfig to update the dynamic linking system.
32646*** Alternatively, you can set your LD_LIBRARY_PATH environment
32647*** variable to include the library installation directory.
32648" >&5
32649echo "${ECHO_T}
32650*** If you install the required libraries from source, you
32651*** need to inform the dynamic linker of their location. If
32652*** you install them in a system-wide directory such as
32653*** /usr/local (the default), you must ensure that
32654*** /usr/local/lib is listed in /etc/ld.so.conf, then run
32655*** ldconfig to update the dynamic linking system.
32656*** Alternatively, you can set your LD_LIBRARY_PATH environment
32657*** variable to include the library installation directory.
32658" >&6; }
32659
32660
32661{ echo "$as_me:$LINENO: result:
32662**************************************************************
32663" >&5
32664echo "${ECHO_T}
32665**************************************************************
32666" >&6; }
32667
32668{ { echo "$as_me:$LINENO: error:
32669***
32670*** After fixing the above problems, you must run ./configure again.
32671***
32672" >&5
32673echo "$as_me: error:
32674***
32675*** After fixing the above problems, you must run ./configure again.
32676***
32677" >&2;}
32678   { (exit 1); exit 1; }; }
32679
32680else
32681
32682ac_config_files="$ac_config_files Makefile sweep.spec m4/Makefile include/Makefile include/sweep/Makefile src/Makefile src/tdb/Makefile plugins/Makefile plugins/echo/Makefile plugins/normalise/Makefile plugins/fade/Makefile plugins/reverse/Makefile plugins/ladspa/Makefile plugins/byenergy/Makefile plugins/example/Makefile doc/Makefile intl/Makefile po/Makefile.in doc/sweep.1"
32683
32684cat >confcache <<\_ACEOF
32685# This file is a shell script that caches the results of configure
32686# tests run on this system so they can be shared between configure
32687# scripts and configure runs, see configure's option --config-cache.
32688# It is not useful on other systems.  If it contains results you don't
32689# want to keep, you may remove or edit it.
32690#
32691# config.status only pays attention to the cache file if you give it
32692# the --recheck option to rerun configure.
32693#
32694# `ac_cv_env_foo' variables (set or unset) will be overridden when
32695# loading this file, other *unset* `ac_cv_foo' will be assigned the
32696# following values.
32697
32698_ACEOF
32699
32700# The following way of writing the cache mishandles newlines in values,
32701# but we know of no workaround that is simple, portable, and efficient.
32702# So, we kill variables containing newlines.
32703# Ultrix sh set writes to stderr and can't be redirected directly,
32704# and sets the high bit in the cache file unless we assign to the vars.
32705(
32706  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32707    eval ac_val=\$$ac_var
32708    case $ac_val in #(
32709    *${as_nl}*)
32710      case $ac_var in #(
32711      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32712echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32713      esac
32714      case $ac_var in #(
32715      _ | IFS | as_nl) ;; #(
32716      *) $as_unset $ac_var ;;
32717      esac ;;
32718    esac
32719  done
32720
32721  (set) 2>&1 |
32722    case $as_nl`(ac_space=' '; set) 2>&1` in #(
32723    *${as_nl}ac_space=\ *)
32724      # `set' does not quote correctly, so add quotes (double-quote
32725      # substitution turns \\\\ into \\, and sed turns \\ into \).
32726      sed -n \
32727	"s/'/'\\\\''/g;
32728	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32729      ;; #(
32730    *)
32731      # `set' quotes correctly as required by POSIX, so do not add quotes.
32732      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32733      ;;
32734    esac |
32735    sort
32736) |
32737  sed '
32738     /^ac_cv_env_/b end
32739     t clear
32740     :clear
32741     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32742     t end
32743     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32744     :end' >>confcache
32745if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32746  if test -w "$cache_file"; then
32747    test "x$cache_file" != "x/dev/null" &&
32748      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32749echo "$as_me: updating cache $cache_file" >&6;}
32750    cat confcache >$cache_file
32751  else
32752    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32753echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32754  fi
32755fi
32756rm -f confcache
32757
32758test "x$prefix" = xNONE && prefix=$ac_default_prefix
32759# Let make expand exec_prefix.
32760test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32761
32762DEFS=-DHAVE_CONFIG_H
32763
32764ac_libobjs=
32765ac_ltlibobjs=
32766for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32767  # 1. Remove the extension, and $U if already installed.
32768  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32769  ac_i=`echo "$ac_i" | sed "$ac_script"`
32770  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32771  #    will be set to the directory where LIBOBJS objects are built.
32772  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32773  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32774done
32775LIBOBJS=$ac_libobjs
32776
32777LTLIBOBJS=$ac_ltlibobjs
32778
32779
32780if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32781  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32782Usually this means the macro was only invoked conditionally." >&5
32783echo "$as_me: error: conditional \"AMDEP\" was never defined.
32784Usually this means the macro was only invoked conditionally." >&2;}
32785   { (exit 1); exit 1; }; }
32786fi
32787if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32788  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32789Usually this means the macro was only invoked conditionally." >&5
32790echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32791Usually this means the macro was only invoked conditionally." >&2;}
32792   { (exit 1); exit 1; }; }
32793fi
32794if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32795  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32796Usually this means the macro was only invoked conditionally." >&5
32797echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32798Usually this means the macro was only invoked conditionally." >&2;}
32799   { (exit 1); exit 1; }; }
32800fi
32801if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32802  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32803Usually this means the macro was only invoked conditionally." >&5
32804echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32805Usually this means the macro was only invoked conditionally." >&2;}
32806   { (exit 1); exit 1; }; }
32807fi
32808if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32809  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
32810Usually this means the macro was only invoked conditionally." >&5
32811echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
32812Usually this means the macro was only invoked conditionally." >&2;}
32813   { (exit 1); exit 1; }; }
32814fi
32815
32816: ${CONFIG_STATUS=./config.status}
32817ac_clean_files_save=$ac_clean_files
32818ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32819{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32820echo "$as_me: creating $CONFIG_STATUS" >&6;}
32821cat >$CONFIG_STATUS <<_ACEOF
32822#! $SHELL
32823# Generated by $as_me.
32824# Run this file to recreate the current configuration.
32825# Compiler output produced by configure, useful for debugging
32826# configure, is in config.log if it exists.
32827
32828debug=false
32829ac_cs_recheck=false
32830ac_cs_silent=false
32831SHELL=\${CONFIG_SHELL-$SHELL}
32832_ACEOF
32833
32834cat >>$CONFIG_STATUS <<\_ACEOF
32835## --------------------- ##
32836## M4sh Initialization.  ##
32837## --------------------- ##
32838
32839# Be more Bourne compatible
32840DUALCASE=1; export DUALCASE # for MKS sh
32841if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32842  emulate sh
32843  NULLCMD=:
32844  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32845  # is contrary to our usage.  Disable this feature.
32846  alias -g '${1+"$@"}'='"$@"'
32847  setopt NO_GLOB_SUBST
32848else
32849  case `(set -o) 2>/dev/null` in
32850  *posix*) set -o posix ;;
32851esac
32852
32853fi
32854
32855
32856
32857
32858# PATH needs CR
32859# Avoid depending upon Character Ranges.
32860as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32861as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32862as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32863as_cr_digits='0123456789'
32864as_cr_alnum=$as_cr_Letters$as_cr_digits
32865
32866# The user is always right.
32867if test "${PATH_SEPARATOR+set}" != set; then
32868  echo "#! /bin/sh" >conf$$.sh
32869  echo  "exit 0"   >>conf$$.sh
32870  chmod +x conf$$.sh
32871  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32872    PATH_SEPARATOR=';'
32873  else
32874    PATH_SEPARATOR=:
32875  fi
32876  rm -f conf$$.sh
32877fi
32878
32879# Support unset when possible.
32880if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32881  as_unset=unset
32882else
32883  as_unset=false
32884fi
32885
32886
32887# IFS
32888# We need space, tab and new line, in precisely that order.  Quoting is
32889# there to prevent editors from complaining about space-tab.
32890# (If _AS_PATH_WALK were called with IFS unset, it would disable word
32891# splitting by setting IFS to empty value.)
32892as_nl='
32893'
32894IFS=" ""	$as_nl"
32895
32896# Find who we are.  Look in the path if we contain no directory separator.
32897case $0 in
32898  *[\\/]* ) as_myself=$0 ;;
32899  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32900for as_dir in $PATH
32901do
32902  IFS=$as_save_IFS
32903  test -z "$as_dir" && as_dir=.
32904  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32905done
32906IFS=$as_save_IFS
32907
32908     ;;
32909esac
32910# We did not find ourselves, most probably we were run as `sh COMMAND'
32911# in which case we are not to be found in the path.
32912if test "x$as_myself" = x; then
32913  as_myself=$0
32914fi
32915if test ! -f "$as_myself"; then
32916  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32917  { (exit 1); exit 1; }
32918fi
32919
32920# Work around bugs in pre-3.0 UWIN ksh.
32921for as_var in ENV MAIL MAILPATH
32922do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32923done
32924PS1='$ '
32925PS2='> '
32926PS4='+ '
32927
32928# NLS nuisances.
32929for as_var in \
32930  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32931  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32932  LC_TELEPHONE LC_TIME
32933do
32934  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32935    eval $as_var=C; export $as_var
32936  else
32937    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32938  fi
32939done
32940
32941# Required to use basename.
32942if expr a : '\(a\)' >/dev/null 2>&1 &&
32943   test "X`expr 00001 : '.*\(...\)'`" = X001; then
32944  as_expr=expr
32945else
32946  as_expr=false
32947fi
32948
32949if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32950  as_basename=basename
32951else
32952  as_basename=false
32953fi
32954
32955
32956# Name of the executable.
32957as_me=`$as_basename -- "$0" ||
32958$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32959	 X"$0" : 'X\(//\)$' \| \
32960	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32961echo X/"$0" |
32962    sed '/^.*\/\([^/][^/]*\)\/*$/{
32963	    s//\1/
32964	    q
32965	  }
32966	  /^X\/\(\/\/\)$/{
32967	    s//\1/
32968	    q
32969	  }
32970	  /^X\/\(\/\).*/{
32971	    s//\1/
32972	    q
32973	  }
32974	  s/.*/./; q'`
32975
32976# CDPATH.
32977$as_unset CDPATH
32978
32979
32980
32981  as_lineno_1=$LINENO
32982  as_lineno_2=$LINENO
32983  test "x$as_lineno_1" != "x$as_lineno_2" &&
32984  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32985
32986  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32987  # uniformly replaced by the line number.  The first 'sed' inserts a
32988  # line-number line after each line using $LINENO; the second 'sed'
32989  # does the real work.  The second script uses 'N' to pair each
32990  # line-number line with the line containing $LINENO, and appends
32991  # trailing '-' during substitution so that $LINENO is not a special
32992  # case at line end.
32993  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32994  # scripts with optimization help from Paolo Bonzini.  Blame Lee
32995  # E. McMahon (1931-1989) for sed's syntax.  :-)
32996  sed -n '
32997    p
32998    /[$]LINENO/=
32999  ' <$as_myself |
33000    sed '
33001      s/[$]LINENO.*/&-/
33002      t lineno
33003      b
33004      :lineno
33005      N
33006      :loop
33007      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33008      t loop
33009      s/-\n.*//
33010    ' >$as_me.lineno &&
33011  chmod +x "$as_me.lineno" ||
33012    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33013   { (exit 1); exit 1; }; }
33014
33015  # Don't try to exec as it changes $[0], causing all sort of problems
33016  # (the dirname of $[0] is not the place where we might find the
33017  # original and so on.  Autoconf is especially sensitive to this).
33018  . "./$as_me.lineno"
33019  # Exit status is that of the last command.
33020  exit
33021}
33022
33023
33024if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33025  as_dirname=dirname
33026else
33027  as_dirname=false
33028fi
33029
33030ECHO_C= ECHO_N= ECHO_T=
33031case `echo -n x` in
33032-n*)
33033  case `echo 'x\c'` in
33034  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
33035  *)   ECHO_C='\c';;
33036  esac;;
33037*)
33038  ECHO_N='-n';;
33039esac
33040
33041if expr a : '\(a\)' >/dev/null 2>&1 &&
33042   test "X`expr 00001 : '.*\(...\)'`" = X001; then
33043  as_expr=expr
33044else
33045  as_expr=false
33046fi
33047
33048rm -f conf$$ conf$$.exe conf$$.file
33049if test -d conf$$.dir; then
33050  rm -f conf$$.dir/conf$$.file
33051else
33052  rm -f conf$$.dir
33053  mkdir conf$$.dir
33054fi
33055echo >conf$$.file
33056if ln -s conf$$.file conf$$ 2>/dev/null; then
33057  as_ln_s='ln -s'
33058  # ... but there are two gotchas:
33059  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33060  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33061  # In both cases, we have to default to `cp -p'.
33062  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33063    as_ln_s='cp -p'
33064elif ln conf$$.file conf$$ 2>/dev/null; then
33065  as_ln_s=ln
33066else
33067  as_ln_s='cp -p'
33068fi
33069rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33070rmdir conf$$.dir 2>/dev/null
33071
33072if mkdir -p . 2>/dev/null; then
33073  as_mkdir_p=:
33074else
33075  test -d ./-p && rmdir ./-p
33076  as_mkdir_p=false
33077fi
33078
33079if test -x / >/dev/null 2>&1; then
33080  as_test_x='test -x'
33081else
33082  if ls -dL / >/dev/null 2>&1; then
33083    as_ls_L_option=L
33084  else
33085    as_ls_L_option=
33086  fi
33087  as_test_x='
33088    eval sh -c '\''
33089      if test -d "$1"; then
33090        test -d "$1/.";
33091      else
33092	case $1 in
33093        -*)set "./$1";;
33094	esac;
33095	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33096	???[sx]*):;;*)false;;esac;fi
33097    '\'' sh
33098  '
33099fi
33100as_executable_p=$as_test_x
33101
33102# Sed expression to map a string onto a valid CPP name.
33103as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33104
33105# Sed expression to map a string onto a valid variable name.
33106as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33107
33108
33109exec 6>&1
33110
33111# Save the log message, to keep $[0] and so on meaningful, and to
33112# report actual input values of CONFIG_FILES etc. instead of their
33113# values after options handling.
33114ac_log="
33115This file was extended by $as_me, which was
33116generated by GNU Autoconf 2.61.  Invocation command line was
33117
33118  CONFIG_FILES    = $CONFIG_FILES
33119  CONFIG_HEADERS  = $CONFIG_HEADERS
33120  CONFIG_LINKS    = $CONFIG_LINKS
33121  CONFIG_COMMANDS = $CONFIG_COMMANDS
33122  $ $0 $@
33123
33124on `(hostname || uname -n) 2>/dev/null | sed 1q`
33125"
33126
33127_ACEOF
33128
33129cat >>$CONFIG_STATUS <<_ACEOF
33130# Files that config.status was made for.
33131config_files="$ac_config_files"
33132config_headers="$ac_config_headers"
33133config_commands="$ac_config_commands"
33134
33135_ACEOF
33136
33137cat >>$CONFIG_STATUS <<\_ACEOF
33138ac_cs_usage="\
33139\`$as_me' instantiates files from templates according to the
33140current configuration.
33141
33142Usage: $0 [OPTIONS] [FILE]...
33143
33144  -h, --help       print this help, then exit
33145  -V, --version    print version number and configuration settings, then exit
33146  -q, --quiet      do not print progress messages
33147  -d, --debug      don't remove temporary files
33148      --recheck    update $as_me by reconfiguring in the same conditions
33149  --file=FILE[:TEMPLATE]
33150		   instantiate the configuration file FILE
33151  --header=FILE[:TEMPLATE]
33152		   instantiate the configuration header FILE
33153
33154Configuration files:
33155$config_files
33156
33157Configuration headers:
33158$config_headers
33159
33160Configuration commands:
33161$config_commands
33162
33163Report bugs to <bug-autoconf@gnu.org>."
33164
33165_ACEOF
33166cat >>$CONFIG_STATUS <<_ACEOF
33167ac_cs_version="\\
33168config.status
33169configured by $0, generated by GNU Autoconf 2.61,
33170  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33171
33172Copyright (C) 2006 Free Software Foundation, Inc.
33173This config.status script is free software; the Free Software Foundation
33174gives unlimited permission to copy, distribute and modify it."
33175
33176ac_pwd='$ac_pwd'
33177srcdir='$srcdir'
33178INSTALL='$INSTALL'
33179_ACEOF
33180
33181cat >>$CONFIG_STATUS <<\_ACEOF
33182# If no file are specified by the user, then we need to provide default
33183# value.  By we need to know if files were specified by the user.
33184ac_need_defaults=:
33185while test $# != 0
33186do
33187  case $1 in
33188  --*=*)
33189    ac_option=`expr "X$1" : 'X\([^=]*\)='`
33190    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33191    ac_shift=:
33192    ;;
33193  *)
33194    ac_option=$1
33195    ac_optarg=$2
33196    ac_shift=shift
33197    ;;
33198  esac
33199
33200  case $ac_option in
33201  # Handling of the options.
33202  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33203    ac_cs_recheck=: ;;
33204  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33205    echo "$ac_cs_version"; exit ;;
33206  --debug | --debu | --deb | --de | --d | -d )
33207    debug=: ;;
33208  --file | --fil | --fi | --f )
33209    $ac_shift
33210    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33211    ac_need_defaults=false;;
33212  --header | --heade | --head | --hea )
33213    $ac_shift
33214    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33215    ac_need_defaults=false;;
33216  --he | --h)
33217    # Conflict between --help and --header
33218    { echo "$as_me: error: ambiguous option: $1
33219Try \`$0 --help' for more information." >&2
33220   { (exit 1); exit 1; }; };;
33221  --help | --hel | -h )
33222    echo "$ac_cs_usage"; exit ;;
33223  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33224  | -silent | --silent | --silen | --sile | --sil | --si | --s)
33225    ac_cs_silent=: ;;
33226
33227  # This is an error.
33228  -*) { echo "$as_me: error: unrecognized option: $1
33229Try \`$0 --help' for more information." >&2
33230   { (exit 1); exit 1; }; } ;;
33231
33232  *) ac_config_targets="$ac_config_targets $1"
33233     ac_need_defaults=false ;;
33234
33235  esac
33236  shift
33237done
33238
33239ac_configure_extra_args=
33240
33241if $ac_cs_silent; then
33242  exec 6>/dev/null
33243  ac_configure_extra_args="$ac_configure_extra_args --silent"
33244fi
33245
33246_ACEOF
33247cat >>$CONFIG_STATUS <<_ACEOF
33248if \$ac_cs_recheck; then
33249  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33250  CONFIG_SHELL=$SHELL
33251  export CONFIG_SHELL
33252  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33253fi
33254
33255_ACEOF
33256cat >>$CONFIG_STATUS <<\_ACEOF
33257exec 5>>config.log
33258{
33259  echo
33260  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33261## Running $as_me. ##
33262_ASBOX
33263  echo "$ac_log"
33264} >&5
33265
33266_ACEOF
33267cat >>$CONFIG_STATUS <<_ACEOF
33268#
33269# INIT-COMMANDS
33270#
33271AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33272# Capture the value of obsolete ALL_LINGUAS because we need it to compute
33273    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
33274    # from automake.
33275    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
33276    # Capture the value of LINGUAS because we need it to compute CATALOGS.
33277    LINGUAS="${LINGUAS-%UNSET%}"
33278
33279
33280_ACEOF
33281
33282cat >>$CONFIG_STATUS <<\_ACEOF
33283
33284# Handling of arguments.
33285for ac_config_target in $ac_config_targets
33286do
33287  case $ac_config_target in
33288    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
33289    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33290    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
33291    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33292    "sweep.spec") CONFIG_FILES="$CONFIG_FILES sweep.spec" ;;
33293    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
33294    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
33295    "include/sweep/Makefile") CONFIG_FILES="$CONFIG_FILES include/sweep/Makefile" ;;
33296    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33297    "src/tdb/Makefile") CONFIG_FILES="$CONFIG_FILES src/tdb/Makefile" ;;
33298    "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
33299    "plugins/echo/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/echo/Makefile" ;;
33300    "plugins/normalise/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/normalise/Makefile" ;;
33301    "plugins/fade/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fade/Makefile" ;;
33302    "plugins/reverse/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/reverse/Makefile" ;;
33303    "plugins/ladspa/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/ladspa/Makefile" ;;
33304    "plugins/byenergy/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/byenergy/Makefile" ;;
33305    "plugins/example/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/example/Makefile" ;;
33306    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33307    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
33308    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
33309    "doc/sweep.1") CONFIG_FILES="$CONFIG_FILES doc/sweep.1" ;;
33310
33311  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33312echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33313   { (exit 1); exit 1; }; };;
33314  esac
33315done
33316
33317
33318# If the user did not use the arguments to specify the items to instantiate,
33319# then the envvar interface is used.  Set only those that are not.
33320# We use the long form for the default assignment because of an extremely
33321# bizarre bug on SunOS 4.1.3.
33322if $ac_need_defaults; then
33323  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33324  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33325  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33326fi
33327
33328# Have a temporary directory for convenience.  Make it in the build tree
33329# simply because there is no reason against having it here, and in addition,
33330# creating and moving files from /tmp can sometimes cause problems.
33331# Hook for its removal unless debugging.
33332# Note that there is a small window in which the directory will not be cleaned:
33333# after its creation but before its name has been assigned to `$tmp'.
33334$debug ||
33335{
33336  tmp=
33337  trap 'exit_status=$?
33338  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33339' 0
33340  trap '{ (exit 1); exit 1; }' 1 2 13 15
33341}
33342# Create a (secure) tmp directory for tmp files.
33343
33344{
33345  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33346  test -n "$tmp" && test -d "$tmp"
33347}  ||
33348{
33349  tmp=./conf$$-$RANDOM
33350  (umask 077 && mkdir "$tmp")
33351} ||
33352{
33353   echo "$me: cannot create a temporary directory in ." >&2
33354   { (exit 1); exit 1; }
33355}
33356
33357#
33358# Set up the sed scripts for CONFIG_FILES section.
33359#
33360
33361# No need to generate the scripts if there are no CONFIG_FILES.
33362# This happens for instance when ./config.status config.h
33363if test -n "$CONFIG_FILES"; then
33364
33365_ACEOF
33366
33367
33368
33369ac_delim='%!_!# '
33370for ac_last_try in false false false false false :; do
33371  cat >conf$$subs.sed <<_ACEOF
33372SHELL!$SHELL$ac_delim
33373PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
33374PACKAGE_NAME!$PACKAGE_NAME$ac_delim
33375PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
33376PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
33377PACKAGE_STRING!$PACKAGE_STRING$ac_delim
33378PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
33379exec_prefix!$exec_prefix$ac_delim
33380prefix!$prefix$ac_delim
33381program_transform_name!$program_transform_name$ac_delim
33382bindir!$bindir$ac_delim
33383sbindir!$sbindir$ac_delim
33384libexecdir!$libexecdir$ac_delim
33385datarootdir!$datarootdir$ac_delim
33386datadir!$datadir$ac_delim
33387sysconfdir!$sysconfdir$ac_delim
33388sharedstatedir!$sharedstatedir$ac_delim
33389localstatedir!$localstatedir$ac_delim
33390includedir!$includedir$ac_delim
33391oldincludedir!$oldincludedir$ac_delim
33392docdir!$docdir$ac_delim
33393infodir!$infodir$ac_delim
33394htmldir!$htmldir$ac_delim
33395dvidir!$dvidir$ac_delim
33396pdfdir!$pdfdir$ac_delim
33397psdir!$psdir$ac_delim
33398libdir!$libdir$ac_delim
33399localedir!$localedir$ac_delim
33400mandir!$mandir$ac_delim
33401DEFS!$DEFS$ac_delim
33402ECHO_C!$ECHO_C$ac_delim
33403ECHO_N!$ECHO_N$ac_delim
33404ECHO_T!$ECHO_T$ac_delim
33405LIBS!$LIBS$ac_delim
33406build_alias!$build_alias$ac_delim
33407host_alias!$host_alias$ac_delim
33408target_alias!$target_alias$ac_delim
33409INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
33410INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
33411INSTALL_DATA!$INSTALL_DATA$ac_delim
33412CYGPATH_W!$CYGPATH_W$ac_delim
33413PACKAGE!$PACKAGE$ac_delim
33414VERSION!$VERSION$ac_delim
33415ACLOCAL!$ACLOCAL$ac_delim
33416AUTOCONF!$AUTOCONF$ac_delim
33417AUTOMAKE!$AUTOMAKE$ac_delim
33418AUTOHEADER!$AUTOHEADER$ac_delim
33419MAKEINFO!$MAKEINFO$ac_delim
33420install_sh!$install_sh$ac_delim
33421STRIP!$STRIP$ac_delim
33422INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
33423mkdir_p!$mkdir_p$ac_delim
33424AWK!$AWK$ac_delim
33425SET_MAKE!$SET_MAKE$ac_delim
33426am__leading_dot!$am__leading_dot$ac_delim
33427AMTAR!$AMTAR$ac_delim
33428am__tar!$am__tar$ac_delim
33429am__untar!$am__untar$ac_delim
33430CC!$CC$ac_delim
33431CFLAGS!$CFLAGS$ac_delim
33432LDFLAGS!$LDFLAGS$ac_delim
33433CPPFLAGS!$CPPFLAGS$ac_delim
33434ac_ct_CC!$ac_ct_CC$ac_delim
33435EXEEXT!$EXEEXT$ac_delim
33436OBJEXT!$OBJEXT$ac_delim
33437DEPDIR!$DEPDIR$ac_delim
33438am__include!$am__include$ac_delim
33439am__quote!$am__quote$ac_delim
33440AMDEP_TRUE!$AMDEP_TRUE$ac_delim
33441AMDEP_FALSE!$AMDEP_FALSE$ac_delim
33442AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
33443CCDEPMODE!$CCDEPMODE$ac_delim
33444am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
33445am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
33446CPP!$CPP$ac_delim
33447GREP!$GREP$ac_delim
33448EGREP!$EGREP$ac_delim
33449build!$build$ac_delim
33450build_cpu!$build_cpu$ac_delim
33451build_vendor!$build_vendor$ac_delim
33452build_os!$build_os$ac_delim
33453host!$host$ac_delim
33454host_cpu!$host_cpu$ac_delim
33455host_vendor!$host_vendor$ac_delim
33456host_os!$host_os$ac_delim
33457SED!$SED$ac_delim
33458LN_S!$LN_S$ac_delim
33459ECHO!$ECHO$ac_delim
33460AR!$AR$ac_delim
33461RANLIB!$RANLIB$ac_delim
33462CXX!$CXX$ac_delim
33463CXXFLAGS!$CXXFLAGS$ac_delim
33464ac_ct_CXX!$ac_ct_CXX$ac_delim
33465CXXDEPMODE!$CXXDEPMODE$ac_delim
33466am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
33467am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
33468CXXCPP!$CXXCPP$ac_delim
33469_ACEOF
33470
33471  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33472    break
33473  elif $ac_last_try; then
33474    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33475echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33476   { (exit 1); exit 1; }; }
33477  else
33478    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33479  fi
33480done
33481
33482ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33483if test -n "$ac_eof"; then
33484  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33485  ac_eof=`expr $ac_eof + 1`
33486fi
33487
33488cat >>$CONFIG_STATUS <<_ACEOF
33489cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
33490/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33491_ACEOF
33492sed '
33493s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33494s/^/s,@/; s/!/@,|#_!!_#|/
33495:n
33496t n
33497s/'"$ac_delim"'$/,g/; t
33498s/$/\\/; p
33499N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33500' >>$CONFIG_STATUS <conf$$subs.sed
33501rm -f conf$$subs.sed
33502cat >>$CONFIG_STATUS <<_ACEOF
33503CEOF$ac_eof
33504_ACEOF
33505
33506
33507ac_delim='%!_!# '
33508for ac_last_try in false false false false false :; do
33509  cat >conf$$subs.sed <<_ACEOF
33510F77!$F77$ac_delim
33511FFLAGS!$FFLAGS$ac_delim
33512ac_ct_F77!$ac_ct_F77$ac_delim
33513LIBTOOL!$LIBTOOL$ac_delim
33514HAVE_GNOME_MOZ_REMOTE!$HAVE_GNOME_MOZ_REMOTE$ac_delim
33515MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
33516USE_NLS!$USE_NLS$ac_delim
33517MSGFMT!$MSGFMT$ac_delim
33518GMSGFMT!$GMSGFMT$ac_delim
33519XGETTEXT!$XGETTEXT$ac_delim
33520MSGMERGE!$MSGMERGE$ac_delim
33521GLIBC2!$GLIBC2$ac_delim
33522ALLOCA!$ALLOCA$ac_delim
33523GLIBC21!$GLIBC21$ac_delim
33524INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
33525HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
33526HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
33527HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
33528HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
33529LIBICONV!$LIBICONV$ac_delim
33530LTLIBICONV!$LTLIBICONV$ac_delim
33531INTLBISON!$INTLBISON$ac_delim
33532BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
33533USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
33534CATOBJEXT!$CATOBJEXT$ac_delim
33535DATADIRNAME!$DATADIRNAME$ac_delim
33536INSTOBJEXT!$INSTOBJEXT$ac_delim
33537GENCAT!$GENCAT$ac_delim
33538INTLOBJS!$INTLOBJS$ac_delim
33539INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
33540INTLLIBS!$INTLLIBS$ac_delim
33541LIBINTL!$LIBINTL$ac_delim
33542LTLIBINTL!$LTLIBINTL$ac_delim
33543POSUB!$POSUB$ac_delim
33544PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
33545PKG_CONFIG!$PKG_CONFIG$ac_delim
33546GTK_CFLAGS!$GTK_CFLAGS$ac_delim
33547GTK_LIBS!$GTK_LIBS$ac_delim
33548GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
33549GLIB_LIBS!$GLIB_LIBS$ac_delim
33550GTHREADS_CFLAGS!$GTHREADS_CFLAGS$ac_delim
33551GTHREADS_LIBS!$GTHREADS_LIBS$ac_delim
33552SNDFILE_CFLAGS!$SNDFILE_CFLAGS$ac_delim
33553SNDFILE_LIBS!$SNDFILE_LIBS$ac_delim
33554OGG_CFLAGS!$OGG_CFLAGS$ac_delim
33555OGG_LIBS!$OGG_LIBS$ac_delim
33556VORBIS_CFLAGS!$VORBIS_CFLAGS$ac_delim
33557VORBIS_LIBS!$VORBIS_LIBS$ac_delim
33558VORBISFILE_LIBS!$VORBISFILE_LIBS$ac_delim
33559VORBISENC_LIBS!$VORBISENC_LIBS$ac_delim
33560SPEEX_CFLAGS!$SPEEX_CFLAGS$ac_delim
33561SPEEX_LIBS!$SPEEX_LIBS$ac_delim
33562MAD_LIBS!$MAD_LIBS$ac_delim
33563SAMPLERATE_CFLAGS!$SAMPLERATE_CFLAGS$ac_delim
33564SAMPLERATE_LIBS!$SAMPLERATE_LIBS$ac_delim
33565ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
33566ALSA_LIBS!$ALSA_LIBS$ac_delim
33567PACKAGE_DATA_DIR!$PACKAGE_DATA_DIR$ac_delim
33568PACKAGE_PLUGIN_DIR!$PACKAGE_PLUGIN_DIR$ac_delim
33569EXPORT_DYNAMIC_FLAGS!$EXPORT_DYNAMIC_FLAGS$ac_delim
33570LIBOBJS!$LIBOBJS$ac_delim
33571LTLIBOBJS!$LTLIBOBJS$ac_delim
33572_ACEOF
33573
33574  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then
33575    break
33576  elif $ac_last_try; then
33577    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33578echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33579   { (exit 1); exit 1; }; }
33580  else
33581    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33582  fi
33583done
33584
33585ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33586if test -n "$ac_eof"; then
33587  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33588  ac_eof=`expr $ac_eof + 1`
33589fi
33590
33591cat >>$CONFIG_STATUS <<_ACEOF
33592cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
33593/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
33594_ACEOF
33595sed '
33596s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33597s/^/s,@/; s/!/@,|#_!!_#|/
33598:n
33599t n
33600s/'"$ac_delim"'$/,g/; t
33601s/$/\\/; p
33602N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33603' >>$CONFIG_STATUS <conf$$subs.sed
33604rm -f conf$$subs.sed
33605cat >>$CONFIG_STATUS <<_ACEOF
33606:end
33607s/|#_!!_#|//g
33608CEOF$ac_eof
33609_ACEOF
33610
33611
33612# VPATH may cause trouble with some makes, so we remove $(srcdir),
33613# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33614# trailing colons and then remove the whole line if VPATH becomes empty
33615# (actually we leave an empty line to preserve line numbers).
33616if test "x$srcdir" = x.; then
33617  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
33618s/:*\$(srcdir):*/:/
33619s/:*\${srcdir}:*/:/
33620s/:*@srcdir@:*/:/
33621s/^\([^=]*=[	 ]*\):*/\1/
33622s/:*$//
33623s/^[^=]*=[	 ]*$//
33624}'
33625fi
33626
33627cat >>$CONFIG_STATUS <<\_ACEOF
33628fi # test -n "$CONFIG_FILES"
33629
33630
33631for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
33632do
33633  case $ac_tag in
33634  :[FHLC]) ac_mode=$ac_tag; continue;;
33635  esac
33636  case $ac_mode$ac_tag in
33637  :[FHL]*:*);;
33638  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33639echo "$as_me: error: Invalid tag $ac_tag." >&2;}
33640   { (exit 1); exit 1; }; };;
33641  :[FH]-) ac_tag=-:-;;
33642  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33643  esac
33644  ac_save_IFS=$IFS
33645  IFS=:
33646  set x $ac_tag
33647  IFS=$ac_save_IFS
33648  shift
33649  ac_file=$1
33650  shift
33651
33652  case $ac_mode in
33653  :L) ac_source=$1;;
33654  :[FH])
33655    ac_file_inputs=
33656    for ac_f
33657    do
33658      case $ac_f in
33659      -) ac_f="$tmp/stdin";;
33660      *) # Look for the file first in the build tree, then in the source tree
33661	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
33662	 # because $ac_f cannot contain `:'.
33663	 test -f "$ac_f" ||
33664	   case $ac_f in
33665	   [\\/$]*) false;;
33666	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33667	   esac ||
33668	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33669echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33670   { (exit 1); exit 1; }; };;
33671      esac
33672      ac_file_inputs="$ac_file_inputs $ac_f"
33673    done
33674
33675    # Let's still pretend it is `configure' which instantiates (i.e., don't
33676    # use $as_me), people would be surprised to read:
33677    #    /* config.h.  Generated by config.status.  */
33678    configure_input="Generated from "`IFS=:
33679	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33680    if test x"$ac_file" != x-; then
33681      configure_input="$ac_file.  $configure_input"
33682      { echo "$as_me:$LINENO: creating $ac_file" >&5
33683echo "$as_me: creating $ac_file" >&6;}
33684    fi
33685
33686    case $ac_tag in
33687    *:-:* | *:-) cat >"$tmp/stdin";;
33688    esac
33689    ;;
33690  esac
33691
33692  ac_dir=`$as_dirname -- "$ac_file" ||
33693$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33694	 X"$ac_file" : 'X\(//\)[^/]' \| \
33695	 X"$ac_file" : 'X\(//\)$' \| \
33696	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33697echo X"$ac_file" |
33698    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33699	    s//\1/
33700	    q
33701	  }
33702	  /^X\(\/\/\)[^/].*/{
33703	    s//\1/
33704	    q
33705	  }
33706	  /^X\(\/\/\)$/{
33707	    s//\1/
33708	    q
33709	  }
33710	  /^X\(\/\).*/{
33711	    s//\1/
33712	    q
33713	  }
33714	  s/.*/./; q'`
33715  { as_dir="$ac_dir"
33716  case $as_dir in #(
33717  -*) as_dir=./$as_dir;;
33718  esac
33719  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33720    as_dirs=
33721    while :; do
33722      case $as_dir in #(
33723      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33724      *) as_qdir=$as_dir;;
33725      esac
33726      as_dirs="'$as_qdir' $as_dirs"
33727      as_dir=`$as_dirname -- "$as_dir" ||
33728$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33729	 X"$as_dir" : 'X\(//\)[^/]' \| \
33730	 X"$as_dir" : 'X\(//\)$' \| \
33731	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33732echo X"$as_dir" |
33733    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33734	    s//\1/
33735	    q
33736	  }
33737	  /^X\(\/\/\)[^/].*/{
33738	    s//\1/
33739	    q
33740	  }
33741	  /^X\(\/\/\)$/{
33742	    s//\1/
33743	    q
33744	  }
33745	  /^X\(\/\).*/{
33746	    s//\1/
33747	    q
33748	  }
33749	  s/.*/./; q'`
33750      test -d "$as_dir" && break
33751    done
33752    test -z "$as_dirs" || eval "mkdir $as_dirs"
33753  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33754echo "$as_me: error: cannot create directory $as_dir" >&2;}
33755   { (exit 1); exit 1; }; }; }
33756  ac_builddir=.
33757
33758case "$ac_dir" in
33759.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33760*)
33761  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33762  # A ".." for each directory in $ac_dir_suffix.
33763  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33764  case $ac_top_builddir_sub in
33765  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33766  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33767  esac ;;
33768esac
33769ac_abs_top_builddir=$ac_pwd
33770ac_abs_builddir=$ac_pwd$ac_dir_suffix
33771# for backward compatibility:
33772ac_top_builddir=$ac_top_build_prefix
33773
33774case $srcdir in
33775  .)  # We are building in place.
33776    ac_srcdir=.
33777    ac_top_srcdir=$ac_top_builddir_sub
33778    ac_abs_top_srcdir=$ac_pwd ;;
33779  [\\/]* | ?:[\\/]* )  # Absolute name.
33780    ac_srcdir=$srcdir$ac_dir_suffix;
33781    ac_top_srcdir=$srcdir
33782    ac_abs_top_srcdir=$srcdir ;;
33783  *) # Relative name.
33784    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33785    ac_top_srcdir=$ac_top_build_prefix$srcdir
33786    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33787esac
33788ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33789
33790
33791  case $ac_mode in
33792  :F)
33793  #
33794  # CONFIG_FILE
33795  #
33796
33797  case $INSTALL in
33798  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33799  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33800  esac
33801_ACEOF
33802
33803cat >>$CONFIG_STATUS <<\_ACEOF
33804# If the template does not know about datarootdir, expand it.
33805# FIXME: This hack should be removed a few years after 2.60.
33806ac_datarootdir_hack=; ac_datarootdir_seen=
33807
33808case `sed -n '/datarootdir/ {
33809  p
33810  q
33811}
33812/@datadir@/p
33813/@docdir@/p
33814/@infodir@/p
33815/@localedir@/p
33816/@mandir@/p
33817' $ac_file_inputs` in
33818*datarootdir*) ac_datarootdir_seen=yes;;
33819*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33820  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33821echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33822_ACEOF
33823cat >>$CONFIG_STATUS <<_ACEOF
33824  ac_datarootdir_hack='
33825  s&@datadir@&$datadir&g
33826  s&@docdir@&$docdir&g
33827  s&@infodir@&$infodir&g
33828  s&@localedir@&$localedir&g
33829  s&@mandir@&$mandir&g
33830    s&\\\${datarootdir}&$datarootdir&g' ;;
33831esac
33832_ACEOF
33833
33834# Neutralize VPATH when `$srcdir' = `.'.
33835# Shell code in configure.ac might set extrasub.
33836# FIXME: do we really want to maintain this feature?
33837cat >>$CONFIG_STATUS <<_ACEOF
33838  sed "$ac_vpsub
33839$extrasub
33840_ACEOF
33841cat >>$CONFIG_STATUS <<\_ACEOF
33842:t
33843/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33844s&@configure_input@&$configure_input&;t t
33845s&@top_builddir@&$ac_top_builddir_sub&;t t
33846s&@srcdir@&$ac_srcdir&;t t
33847s&@abs_srcdir@&$ac_abs_srcdir&;t t
33848s&@top_srcdir@&$ac_top_srcdir&;t t
33849s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33850s&@builddir@&$ac_builddir&;t t
33851s&@abs_builddir@&$ac_abs_builddir&;t t
33852s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33853s&@INSTALL@&$ac_INSTALL&;t t
33854$ac_datarootdir_hack
33855" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33856
33857test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33858  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33859  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33860  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33861which seems to be undefined.  Please make sure it is defined." >&5
33862echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33863which seems to be undefined.  Please make sure it is defined." >&2;}
33864
33865  rm -f "$tmp/stdin"
33866  case $ac_file in
33867  -) cat "$tmp/out"; rm -f "$tmp/out";;
33868  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33869  esac
33870 ;;
33871  :H)
33872  #
33873  # CONFIG_HEADER
33874  #
33875_ACEOF
33876
33877# Transform confdefs.h into a sed script `conftest.defines', that
33878# substitutes the proper values into config.h.in to produce config.h.
33879rm -f conftest.defines conftest.tail
33880# First, append a space to every undef/define line, to ease matching.
33881echo 's/$/ /' >conftest.defines
33882# Then, protect against being on the right side of a sed subst, or in
33883# an unquoted here document, in config.status.  If some macros were
33884# called several times there might be several #defines for the same
33885# symbol, which is useless.  But do not sort them, since the last
33886# AC_DEFINE must be honored.
33887ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33888# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33889# NAME is the cpp macro being defined, VALUE is the value it is being given.
33890# PARAMS is the parameter list in the macro definition--in most cases, it's
33891# just an empty string.
33892ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
33893ac_dB='\\)[	 (].*,\\1define\\2'
33894ac_dC=' '
33895ac_dD=' ,'
33896
33897uniq confdefs.h |
33898  sed -n '
33899	t rset
33900	:rset
33901	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
33902	t ok
33903	d
33904	:ok
33905	s/[\\&,]/\\&/g
33906	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33907	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33908  ' >>conftest.defines
33909
33910# Remove the space that was appended to ease matching.
33911# Then replace #undef with comments.  This is necessary, for
33912# example, in the case of _POSIX_SOURCE, which is predefined and required
33913# on some systems where configure will not decide to define it.
33914# (The regexp can be short, since the line contains either #define or #undef.)
33915echo 's/ $//
33916s,^[	 #]*u.*,/* & */,' >>conftest.defines
33917
33918# Break up conftest.defines:
33919ac_max_sed_lines=50
33920
33921# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33922# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33923# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33924# et cetera.
33925ac_in='$ac_file_inputs'
33926ac_out='"$tmp/out1"'
33927ac_nxt='"$tmp/out2"'
33928
33929while :
33930do
33931  # Write a here document:
33932    cat >>$CONFIG_STATUS <<_ACEOF
33933    # First, check the format of the line:
33934    cat >"\$tmp/defines.sed" <<\\CEOF
33935/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
33936/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
33937b
33938:def
33939_ACEOF
33940  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33941  echo 'CEOF
33942    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33943  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33944  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33945  grep . conftest.tail >/dev/null || break
33946  rm -f conftest.defines
33947  mv conftest.tail conftest.defines
33948done
33949rm -f conftest.defines conftest.tail
33950
33951echo "ac_result=$ac_in" >>$CONFIG_STATUS
33952cat >>$CONFIG_STATUS <<\_ACEOF
33953  if test x"$ac_file" != x-; then
33954    echo "/* $configure_input  */" >"$tmp/config.h"
33955    cat "$ac_result" >>"$tmp/config.h"
33956    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33957      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33958echo "$as_me: $ac_file is unchanged" >&6;}
33959    else
33960      rm -f $ac_file
33961      mv "$tmp/config.h" $ac_file
33962    fi
33963  else
33964    echo "/* $configure_input  */"
33965    cat "$ac_result"
33966  fi
33967  rm -f "$tmp/out12"
33968# Compute $ac_file's index in $config_headers.
33969_am_stamp_count=1
33970for _am_header in $config_headers :; do
33971  case $_am_header in
33972    $ac_file | $ac_file:* )
33973      break ;;
33974    * )
33975      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33976  esac
33977done
33978echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
33979$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33980	 X$ac_file : 'X\(//\)[^/]' \| \
33981	 X$ac_file : 'X\(//\)$' \| \
33982	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
33983echo X$ac_file |
33984    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33985	    s//\1/
33986	    q
33987	  }
33988	  /^X\(\/\/\)[^/].*/{
33989	    s//\1/
33990	    q
33991	  }
33992	  /^X\(\/\/\)$/{
33993	    s//\1/
33994	    q
33995	  }
33996	  /^X\(\/\).*/{
33997	    s//\1/
33998	    q
33999	  }
34000	  s/.*/./; q'`/stamp-h$_am_stamp_count
34001 ;;
34002
34003  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34004echo "$as_me: executing $ac_file commands" >&6;}
34005 ;;
34006  esac
34007
34008
34009  case $ac_file$ac_mode in
34010    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
34011  # Strip MF so we end up with the name of the file.
34012  mf=`echo "$mf" | sed -e 's/:.*$//'`
34013  # Check whether this is an Automake generated Makefile or not.
34014  # We used to match only the files named `Makefile.in', but
34015  # some people rename them; so instead we look at the file content.
34016  # Grep'ing the first line is not enough: some people post-process
34017  # each Makefile.in and add a new line on top of each file to say so.
34018  # So let's grep whole file.
34019  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
34020    dirpart=`$as_dirname -- "$mf" ||
34021$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34022	 X"$mf" : 'X\(//\)[^/]' \| \
34023	 X"$mf" : 'X\(//\)$' \| \
34024	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34025echo X"$mf" |
34026    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34027	    s//\1/
34028	    q
34029	  }
34030	  /^X\(\/\/\)[^/].*/{
34031	    s//\1/
34032	    q
34033	  }
34034	  /^X\(\/\/\)$/{
34035	    s//\1/
34036	    q
34037	  }
34038	  /^X\(\/\).*/{
34039	    s//\1/
34040	    q
34041	  }
34042	  s/.*/./; q'`
34043  else
34044    continue
34045  fi
34046  # Extract the definition of DEPDIR, am__include, and am__quote
34047  # from the Makefile without running `make'.
34048  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34049  test -z "$DEPDIR" && continue
34050  am__include=`sed -n 's/^am__include = //p' < "$mf"`
34051  test -z "am__include" && continue
34052  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34053  # When using ansi2knr, U may be empty or an underscore; expand it
34054  U=`sed -n 's/^U = //p' < "$mf"`
34055  # Find all dependency output files, they are included files with
34056  # $(DEPDIR) in their names.  We invoke sed twice because it is the
34057  # simplest approach to changing $(DEPDIR) to its actual value in the
34058  # expansion.
34059  for file in `sed -n "
34060    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34061       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34062    # Make sure the directory exists.
34063    test -f "$dirpart/$file" && continue
34064    fdir=`$as_dirname -- "$file" ||
34065$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34066	 X"$file" : 'X\(//\)[^/]' \| \
34067	 X"$file" : 'X\(//\)$' \| \
34068	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34069echo X"$file" |
34070    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34071	    s//\1/
34072	    q
34073	  }
34074	  /^X\(\/\/\)[^/].*/{
34075	    s//\1/
34076	    q
34077	  }
34078	  /^X\(\/\/\)$/{
34079	    s//\1/
34080	    q
34081	  }
34082	  /^X\(\/\).*/{
34083	    s//\1/
34084	    q
34085	  }
34086	  s/.*/./; q'`
34087    { as_dir=$dirpart/$fdir
34088  case $as_dir in #(
34089  -*) as_dir=./$as_dir;;
34090  esac
34091  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34092    as_dirs=
34093    while :; do
34094      case $as_dir in #(
34095      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34096      *) as_qdir=$as_dir;;
34097      esac
34098      as_dirs="'$as_qdir' $as_dirs"
34099      as_dir=`$as_dirname -- "$as_dir" ||
34100$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34101	 X"$as_dir" : 'X\(//\)[^/]' \| \
34102	 X"$as_dir" : 'X\(//\)$' \| \
34103	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34104echo X"$as_dir" |
34105    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34106	    s//\1/
34107	    q
34108	  }
34109	  /^X\(\/\/\)[^/].*/{
34110	    s//\1/
34111	    q
34112	  }
34113	  /^X\(\/\/\)$/{
34114	    s//\1/
34115	    q
34116	  }
34117	  /^X\(\/\).*/{
34118	    s//\1/
34119	    q
34120	  }
34121	  s/.*/./; q'`
34122      test -d "$as_dir" && break
34123    done
34124    test -z "$as_dirs" || eval "mkdir $as_dirs"
34125  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34126echo "$as_me: error: cannot create directory $as_dir" >&2;}
34127   { (exit 1); exit 1; }; }; }
34128    # echo "creating $dirpart/$file"
34129    echo '# dummy' > "$dirpart/$file"
34130  done
34131done
34132 ;;
34133    "default-1":C)
34134    for ac_file in $CONFIG_FILES; do
34135      # Support "outfile[:infile[:infile...]]"
34136      case "$ac_file" in
34137        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
34138      esac
34139      # PO directories have a Makefile.in generated from Makefile.in.in.
34140      case "$ac_file" in */Makefile.in)
34141        # Adjust a relative srcdir.
34142        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
34143        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
34144        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
34145        # In autoconf-2.13 it is called $ac_given_srcdir.
34146        # In autoconf-2.50 it is called $srcdir.
34147        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
34148        case "$ac_given_srcdir" in
34149          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
34150          /*) top_srcdir="$ac_given_srcdir" ;;
34151          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
34152        esac
34153        # Treat a directory as a PO directory if and only if it has a
34154        # POTFILES.in file. This allows packages to have multiple PO
34155        # directories under different names or in different locations.
34156        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
34157          rm -f "$ac_dir/POTFILES"
34158          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
34159          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
34160          POMAKEFILEDEPS="POTFILES.in"
34161          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
34162          # on $ac_dir but don't depend on user-specified configuration
34163          # parameters.
34164          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
34165            # The LINGUAS file contains the set of available languages.
34166            if test -n "$OBSOLETE_ALL_LINGUAS"; then
34167              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
34168            fi
34169            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
34170            # Hide the ALL_LINGUAS assigment from automake.
34171            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
34172            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
34173          else
34174            # The set of available languages was given in configure.in.
34175            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
34176          fi
34177          # Compute POFILES
34178          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
34179          # Compute UPDATEPOFILES
34180          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
34181          # Compute DUMMYPOFILES
34182          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
34183          # Compute GMOFILES
34184          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
34185          case "$ac_given_srcdir" in
34186            .) srcdirpre= ;;
34187            *) srcdirpre='$(srcdir)/' ;;
34188          esac
34189          POFILES=
34190          UPDATEPOFILES=
34191          DUMMYPOFILES=
34192          GMOFILES=
34193          for lang in $ALL_LINGUAS; do
34194            POFILES="$POFILES $srcdirpre$lang.po"
34195            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
34196            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
34197            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
34198          done
34199          # CATALOGS depends on both $ac_dir and the user's LINGUAS
34200          # environment variable.
34201          INST_LINGUAS=
34202          if test -n "$ALL_LINGUAS"; then
34203            for presentlang in $ALL_LINGUAS; do
34204              useit=no
34205              if test "%UNSET%" != "$LINGUAS"; then
34206                desiredlanguages="$LINGUAS"
34207              else
34208                desiredlanguages="$ALL_LINGUAS"
34209              fi
34210              for desiredlang in $desiredlanguages; do
34211                # Use the presentlang catalog if desiredlang is
34212                #   a. equal to presentlang, or
34213                #   b. a variant of presentlang (because in this case,
34214                #      presentlang can be used as a fallback for messages
34215                #      which are not translated in the desiredlang catalog).
34216                case "$desiredlang" in
34217                  "$presentlang"*) useit=yes;;
34218                esac
34219              done
34220              if test $useit = yes; then
34221                INST_LINGUAS="$INST_LINGUAS $presentlang"
34222              fi
34223            done
34224          fi
34225          CATALOGS=
34226          if test -n "$INST_LINGUAS"; then
34227            for lang in $INST_LINGUAS; do
34228              CATALOGS="$CATALOGS $lang.gmo"
34229            done
34230          fi
34231          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
34232          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
34233          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
34234            if test -f "$f"; then
34235              case "$f" in
34236                *.orig | *.bak | *~) ;;
34237                *) cat "$f" >> "$ac_dir/Makefile" ;;
34238              esac
34239            fi
34240          done
34241        fi
34242        ;;
34243      esac
34244    done ;;
34245
34246  esac
34247done # for ac_tag
34248
34249
34250{ (exit 0); exit 0; }
34251_ACEOF
34252chmod +x $CONFIG_STATUS
34253ac_clean_files=$ac_clean_files_save
34254
34255
34256# configure is writing to config.log, and then calls config.status.
34257# config.status does its own redirection, appending to config.log.
34258# Unfortunately, on DOS this fails, as config.log is still kept open
34259# by configure, so config.status won't be able to write to it; its
34260# output is simply discarded.  So we exec the FD to /dev/null,
34261# effectively closing config.log, so it can be properly (re)opened and
34262# appended to by config.status.  When coming back to configure, we
34263# need to make the FD available again.
34264if test "$no_create" != yes; then
34265  ac_cs_success=:
34266  ac_config_status_args=
34267  test "$silent" = yes &&
34268    ac_config_status_args="$ac_config_status_args --quiet"
34269  exec 5>/dev/null
34270  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34271  exec 5>>config.log
34272  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34273  # would make configure fail if this is the last instruction.
34274  $ac_cs_success || { (exit 1); exit 1; }
34275fi
34276
34277
34278{ echo "$as_me:$LINENO: result:
34279  ************************************************************
34280 * Sweep $VERSION:  Automatic configuration OK.
34281**
34282**  Configuration summary:
34283**
34284**     Experimental code: ....... ${ac_enable_experimental}
34285**     Audio device handling: ... $sweep_config_driver
34286**     PCM: libsndfile .......... $HAVE_LIBSNDFILE1
34287**     Ogg Vorbis support: ...... $HAVE_VORBIS
34288**     MPEG (MP3) loading: ...... $HAVE_MAD
34289**     Speex support: ........... $HAVE_SPEEX
34290**     Secret Rabbit Code: ...... $HAVE_LIBSAMPLERATE
34291**     Translations: ............ $ALL_LINGUAS
34292**
34293**  Installation directories:
34294**
34295**     Program: ................. ${prefix}/bin
34296**     Plugins: ................. $sweep_plugin_dir
34297**
34298**************************************************************
34299**
34300**  Type 'make' to compile Sweep.
34301**
34302**  Type 'make install' to install Sweep. Plugins will not be
34303**  accessible until you have done this.
34304**
34305**  Have fun with Scrubby!
34306 *
34307  ************************************************************
34308" >&5
34309echo "${ECHO_T}
34310  ************************************************************
34311 * Sweep $VERSION:  Automatic configuration OK.
34312**
34313**  Configuration summary:
34314**
34315**     Experimental code: ....... ${ac_enable_experimental}
34316**     Audio device handling: ... $sweep_config_driver
34317**     PCM: libsndfile .......... $HAVE_LIBSNDFILE1
34318**     Ogg Vorbis support: ...... $HAVE_VORBIS
34319**     MPEG (MP3) loading: ...... $HAVE_MAD
34320**     Speex support: ........... $HAVE_SPEEX
34321**     Secret Rabbit Code: ...... $HAVE_LIBSAMPLERATE
34322**     Translations: ............ $ALL_LINGUAS
34323**
34324**  Installation directories:
34325**
34326**     Program: ................. ${prefix}/bin
34327**     Plugins: ................. $sweep_plugin_dir
34328**
34329**************************************************************
34330**
34331**  Type 'make' to compile Sweep.
34332**
34333**  Type 'make install' to install Sweep. Plugins will not be
34334**  accessible until you have done this.
34335**
34336**  Have fun with Scrubby!
34337 *
34338  ************************************************************
34339" >&6; }
34340
34341fi
34342