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="intl/dcigettext.c"
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
770gt_needs=
771gl_header_list=
772gl_func_list=
773ac_subst_vars='SHELL
774PATH_SEPARATOR
775PACKAGE_NAME
776PACKAGE_TARNAME
777PACKAGE_VERSION
778PACKAGE_STRING
779PACKAGE_BUGREPORT
780exec_prefix
781prefix
782program_transform_name
783bindir
784sbindir
785libexecdir
786datarootdir
787datadir
788sysconfdir
789sharedstatedir
790localstatedir
791includedir
792oldincludedir
793docdir
794infodir
795htmldir
796dvidir
797pdfdir
798psdir
799libdir
800localedir
801mandir
802DEFS
803ECHO_C
804ECHO_N
805ECHO_T
806LIBS
807build_alias
808host_alias
809target_alias
810INSTALL_PROGRAM
811INSTALL_SCRIPT
812INSTALL_DATA
813am__isrc
814CYGPATH_W
815PACKAGE
816VERSION
817ACLOCAL
818AUTOCONF
819AUTOMAKE
820AUTOHEADER
821MAKEINFO
822install_sh
823STRIP
824INSTALL_STRIP_PROGRAM
825mkdir_p
826AWK
827SET_MAKE
828am__leading_dot
829AMTAR
830am__tar
831am__untar
832CC
833CFLAGS
834LDFLAGS
835CPPFLAGS
836ac_ct_CC
837EXEEXT
838OBJEXT
839DEPDIR
840am__include
841am__quote
842AMDEP_TRUE
843AMDEP_FALSE
844AMDEPBACKSLASH
845CCDEPMODE
846am__fastdepCC_TRUE
847am__fastdepCC_FALSE
848YACC
849YFLAGS
850JAVA_CHOICE
851CPP
852GREP
853EGREP
854HAVE_GCJ_IN_PATH
855HAVE_JAVAC_IN_PATH
856HAVE_JIKES_IN_PATH
857CONF_JAVAC
858CLASSPATH
859CLASSPATH_SEPARATOR
860HAVE_JAVAC_ENVVAR
861HAVE_GCJ_C
862HAVE_JAVAC
863HAVE_JIKES
864JAR
865BUILDJAVA
866CSHARP_CHOICE
867HAVE_CSCC_IN_PATH
868HAVE_MCS_IN_PATH
869HAVE_CSC_IN_PATH
870HAVE_CSCC
871HAVE_MCS
872HAVE_CSC
873CSHARPCOMPFLAGS
874BUILDCSHARP
875build
876build_cpu
877build_vendor
878build_os
879host
880host_cpu
881host_vendor
882host_os
883RANLIB
884LN_S
885ECHO
886AR
887DLLTOOL
888AS
889OBJDUMP
890CXX
891CXXFLAGS
892ac_ct_CXX
893CXXDEPMODE
894am__fastdepCXX_TRUE
895am__fastdepCXX_FALSE
896CXXCPP
897F77
898FFLAGS
899ac_ct_F77
900LIBTOOL
901USE_NLS
902MSGFMT
903GMSGFMT
904MSGFMT_015
905GMSGFMT_015
906XGETTEXT
907XGETTEXT_015
908MSGMERGE
909GLIBC2
910CFLAG_VISIBILITY
911HAVE_VISIBILITY
912ALLOCA
913PRI_MACROS_BROKEN
914LIBPTH
915LTLIBPTH
916LIBTHREAD
917LTLIBTHREAD
918LIBMULTITHREAD
919LTLIBMULTITHREAD
920LIBICONV
921LTLIBICONV
922INTLBISON
923GLIBC21
924INTL_MACOSX_LIBS
925HAVE_POSIX_PRINTF
926HAVE_ASPRINTF
927HAVE_SNPRINTF
928HAVE_WPRINTF
929WOE32DLL
930BUILD_INCLUDED_LIBINTL
931USE_INCLUDED_LIBINTL
932CATOBJEXT
933DATADIRNAME
934INSTOBJEXT
935GENCAT
936INTLOBJS
937INTL_LIBTOOL_SUFFIX_PREFIX
938INTLLIBS
939LIBINTL
940LTLIBINTL
941POSUB
942GL_COND_LIBTOOL_TRUE
943GL_COND_LIBTOOL_FALSE
944ALLOCA_H
945GETOPT_H
946RELOCATABLE
947SET_RELOCATABLE
948RELOCATABLE_VIA_LD_TRUE
949RELOCATABLE_VIA_LD_FALSE
950STDBOOL_H
951HAVE__BOOL
952UNISTD_H
953LIBGRT_LIBDEPS
954LIBGRT_LTLIBDEPS
955PERL
956CROSS_COMPILING
957LIBSCHED
958ENABLE_LIBASPRINTF_TRUE
959ENABLE_LIBASPRINTF_FALSE
960subdirs
961LIBOBJS
962LTLIBOBJS
963gl_LIBOBJS
964gl_LTLIBOBJS'
965ac_subst_files=''
966      ac_precious_vars='build_alias
967host_alias
968target_alias
969CC
970CFLAGS
971LDFLAGS
972LIBS
973CPPFLAGS
974YACC
975YFLAGS
976CPP
977CXX
978CXXFLAGS
979CCC
980CXXCPP
981F77
982FFLAGS'
983ac_subdirs_all='libasprintf'
984
985# Initialize some variables set by options.
986ac_init_help=
987ac_init_version=false
988# The variables have the same names as the options, with
989# dashes changed to underlines.
990cache_file=/dev/null
991exec_prefix=NONE
992no_create=
993no_recursion=
994prefix=NONE
995program_prefix=NONE
996program_suffix=NONE
997program_transform_name=s,x,x,
998silent=
999site=
1000srcdir=
1001verbose=
1002x_includes=NONE
1003x_libraries=NONE
1004
1005# Installation directory options.
1006# These are left unexpanded so users can "make install exec_prefix=/foo"
1007# and all the variables that are supposed to be based on exec_prefix
1008# by default will actually change.
1009# Use braces instead of parens because sh, perl, etc. also accept them.
1010# (The list follows the same order as the GNU Coding Standards.)
1011bindir='${exec_prefix}/bin'
1012sbindir='${exec_prefix}/sbin'
1013libexecdir='${exec_prefix}/libexec'
1014datarootdir='${prefix}/share'
1015datadir='${datarootdir}'
1016sysconfdir='${prefix}/etc'
1017sharedstatedir='${prefix}/com'
1018localstatedir='${prefix}/var'
1019includedir='${prefix}/include'
1020oldincludedir='/usr/include'
1021docdir='${datarootdir}/doc/${PACKAGE}'
1022infodir='${datarootdir}/info'
1023htmldir='${docdir}'
1024dvidir='${docdir}'
1025pdfdir='${docdir}'
1026psdir='${docdir}'
1027libdir='${exec_prefix}/lib'
1028localedir='${datarootdir}/locale'
1029mandir='${datarootdir}/man'
1030
1031ac_prev=
1032ac_dashdash=
1033for ac_option
1034do
1035  # If the previous option needs an argument, assign it.
1036  if test -n "$ac_prev"; then
1037    eval $ac_prev=\$ac_option
1038    ac_prev=
1039    continue
1040  fi
1041
1042  case $ac_option in
1043  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1044  *)	ac_optarg=yes ;;
1045  esac
1046
1047  # Accept the important Cygnus configure options, so we can diagnose typos.
1048
1049  case $ac_dashdash$ac_option in
1050  --)
1051    ac_dashdash=yes ;;
1052
1053  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1054    ac_prev=bindir ;;
1055  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1056    bindir=$ac_optarg ;;
1057
1058  -build | --build | --buil | --bui | --bu)
1059    ac_prev=build_alias ;;
1060  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1061    build_alias=$ac_optarg ;;
1062
1063  -cache-file | --cache-file | --cache-fil | --cache-fi \
1064  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1065    ac_prev=cache_file ;;
1066  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1067  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1068    cache_file=$ac_optarg ;;
1069
1070  --config-cache | -C)
1071    cache_file=config.cache ;;
1072
1073  -datadir | --datadir | --datadi | --datad)
1074    ac_prev=datadir ;;
1075  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1076    datadir=$ac_optarg ;;
1077
1078  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1079  | --dataroo | --dataro | --datar)
1080    ac_prev=datarootdir ;;
1081  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1082  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1083    datarootdir=$ac_optarg ;;
1084
1085  -disable-* | --disable-*)
1086    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1087    # Reject names that are not valid shell variable names.
1088    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1090   { (exit 1); exit 1; }; }
1091    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1092    eval enable_$ac_feature=no ;;
1093
1094  -docdir | --docdir | --docdi | --doc | --do)
1095    ac_prev=docdir ;;
1096  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1097    docdir=$ac_optarg ;;
1098
1099  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1100    ac_prev=dvidir ;;
1101  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1102    dvidir=$ac_optarg ;;
1103
1104  -enable-* | --enable-*)
1105    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1106    # Reject names that are not valid shell variable names.
1107    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1109   { (exit 1); exit 1; }; }
1110    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1111    eval enable_$ac_feature=\$ac_optarg ;;
1112
1113  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1114  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1115  | --exec | --exe | --ex)
1116    ac_prev=exec_prefix ;;
1117  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1118  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1119  | --exec=* | --exe=* | --ex=*)
1120    exec_prefix=$ac_optarg ;;
1121
1122  -gas | --gas | --ga | --g)
1123    # Obsolete; use --with-gas.
1124    with_gas=yes ;;
1125
1126  -help | --help | --hel | --he | -h)
1127    ac_init_help=long ;;
1128  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1129    ac_init_help=recursive ;;
1130  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1131    ac_init_help=short ;;
1132
1133  -host | --host | --hos | --ho)
1134    ac_prev=host_alias ;;
1135  -host=* | --host=* | --hos=* | --ho=*)
1136    host_alias=$ac_optarg ;;
1137
1138  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1139    ac_prev=htmldir ;;
1140  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1141  | --ht=*)
1142    htmldir=$ac_optarg ;;
1143
1144  -includedir | --includedir | --includedi | --included | --include \
1145  | --includ | --inclu | --incl | --inc)
1146    ac_prev=includedir ;;
1147  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1148  | --includ=* | --inclu=* | --incl=* | --inc=*)
1149    includedir=$ac_optarg ;;
1150
1151  -infodir | --infodir | --infodi | --infod | --info | --inf)
1152    ac_prev=infodir ;;
1153  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1154    infodir=$ac_optarg ;;
1155
1156  -libdir | --libdir | --libdi | --libd)
1157    ac_prev=libdir ;;
1158  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1159    libdir=$ac_optarg ;;
1160
1161  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1162  | --libexe | --libex | --libe)
1163    ac_prev=libexecdir ;;
1164  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1165  | --libexe=* | --libex=* | --libe=*)
1166    libexecdir=$ac_optarg ;;
1167
1168  -localedir | --localedir | --localedi | --localed | --locale)
1169    ac_prev=localedir ;;
1170  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1171    localedir=$ac_optarg ;;
1172
1173  -localstatedir | --localstatedir | --localstatedi | --localstated \
1174  | --localstate | --localstat | --localsta | --localst | --locals)
1175    ac_prev=localstatedir ;;
1176  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1177  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1178    localstatedir=$ac_optarg ;;
1179
1180  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1181    ac_prev=mandir ;;
1182  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1183    mandir=$ac_optarg ;;
1184
1185  -nfp | --nfp | --nf)
1186    # Obsolete; use --without-fp.
1187    with_fp=no ;;
1188
1189  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1190  | --no-cr | --no-c | -n)
1191    no_create=yes ;;
1192
1193  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1194  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1195    no_recursion=yes ;;
1196
1197  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1198  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1199  | --oldin | --oldi | --old | --ol | --o)
1200    ac_prev=oldincludedir ;;
1201  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1202  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1203  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1204    oldincludedir=$ac_optarg ;;
1205
1206  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1207    ac_prev=prefix ;;
1208  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1209    prefix=$ac_optarg ;;
1210
1211  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1212  | --program-pre | --program-pr | --program-p)
1213    ac_prev=program_prefix ;;
1214  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1215  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1216    program_prefix=$ac_optarg ;;
1217
1218  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1219  | --program-suf | --program-su | --program-s)
1220    ac_prev=program_suffix ;;
1221  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1222  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1223    program_suffix=$ac_optarg ;;
1224
1225  -program-transform-name | --program-transform-name \
1226  | --program-transform-nam | --program-transform-na \
1227  | --program-transform-n | --program-transform- \
1228  | --program-transform | --program-transfor \
1229  | --program-transfo | --program-transf \
1230  | --program-trans | --program-tran \
1231  | --progr-tra | --program-tr | --program-t)
1232    ac_prev=program_transform_name ;;
1233  -program-transform-name=* | --program-transform-name=* \
1234  | --program-transform-nam=* | --program-transform-na=* \
1235  | --program-transform-n=* | --program-transform-=* \
1236  | --program-transform=* | --program-transfor=* \
1237  | --program-transfo=* | --program-transf=* \
1238  | --program-trans=* | --program-tran=* \
1239  | --progr-tra=* | --program-tr=* | --program-t=*)
1240    program_transform_name=$ac_optarg ;;
1241
1242  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1243    ac_prev=pdfdir ;;
1244  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1245    pdfdir=$ac_optarg ;;
1246
1247  -psdir | --psdir | --psdi | --psd | --ps)
1248    ac_prev=psdir ;;
1249  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1250    psdir=$ac_optarg ;;
1251
1252  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1253  | -silent | --silent | --silen | --sile | --sil)
1254    silent=yes ;;
1255
1256  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1257    ac_prev=sbindir ;;
1258  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1259  | --sbi=* | --sb=*)
1260    sbindir=$ac_optarg ;;
1261
1262  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1263  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1264  | --sharedst | --shareds | --shared | --share | --shar \
1265  | --sha | --sh)
1266    ac_prev=sharedstatedir ;;
1267  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1268  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1269  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1270  | --sha=* | --sh=*)
1271    sharedstatedir=$ac_optarg ;;
1272
1273  -site | --site | --sit)
1274    ac_prev=site ;;
1275  -site=* | --site=* | --sit=*)
1276    site=$ac_optarg ;;
1277
1278  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1279    ac_prev=srcdir ;;
1280  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1281    srcdir=$ac_optarg ;;
1282
1283  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1284  | --syscon | --sysco | --sysc | --sys | --sy)
1285    ac_prev=sysconfdir ;;
1286  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1287  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1288    sysconfdir=$ac_optarg ;;
1289
1290  -target | --target | --targe | --targ | --tar | --ta | --t)
1291    ac_prev=target_alias ;;
1292  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1293    target_alias=$ac_optarg ;;
1294
1295  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1296    verbose=yes ;;
1297
1298  -version | --version | --versio | --versi | --vers | -V)
1299    ac_init_version=: ;;
1300
1301  -with-* | --with-*)
1302    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1303    # Reject names that are not valid shell variable names.
1304    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1305      { echo "$as_me: error: invalid package name: $ac_package" >&2
1306   { (exit 1); exit 1; }; }
1307    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1308    eval with_$ac_package=\$ac_optarg ;;
1309
1310  -without-* | --without-*)
1311    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312    # Reject names that are not valid shell variable names.
1313    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1314      { echo "$as_me: error: invalid package name: $ac_package" >&2
1315   { (exit 1); exit 1; }; }
1316    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1317    eval with_$ac_package=no ;;
1318
1319  --x)
1320    # Obsolete; use --with-x.
1321    with_x=yes ;;
1322
1323  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1324  | --x-incl | --x-inc | --x-in | --x-i)
1325    ac_prev=x_includes ;;
1326  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1327  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1328    x_includes=$ac_optarg ;;
1329
1330  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1331  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1332    ac_prev=x_libraries ;;
1333  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1334  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1335    x_libraries=$ac_optarg ;;
1336
1337  -*) { echo "$as_me: error: unrecognized option: $ac_option
1338Try \`$0 --help' for more information." >&2
1339   { (exit 1); exit 1; }; }
1340    ;;
1341
1342  *=*)
1343    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1344    # Reject names that are not valid shell variable names.
1345    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1346      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1347   { (exit 1); exit 1; }; }
1348    eval $ac_envvar=\$ac_optarg
1349    export $ac_envvar ;;
1350
1351  *)
1352    # FIXME: should be removed in autoconf 3.0.
1353    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1354    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1355      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1356    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1357    ;;
1358
1359  esac
1360done
1361
1362if test -n "$ac_prev"; then
1363  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1364  { echo "$as_me: error: missing argument to $ac_option" >&2
1365   { (exit 1); exit 1; }; }
1366fi
1367
1368# Be sure to have absolute directory names.
1369for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370		datadir sysconfdir sharedstatedir localstatedir includedir \
1371		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372		libdir localedir mandir
1373do
1374  eval ac_val=\$$ac_var
1375  case $ac_val in
1376    [\\/$]* | ?:[\\/]* )  continue;;
1377    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378  esac
1379  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1380   { (exit 1); exit 1; }; }
1381done
1382
1383# There might be people who depend on the old broken behavior: `$host'
1384# used to hold the argument of --host etc.
1385# FIXME: To remove some day.
1386build=$build_alias
1387host=$host_alias
1388target=$target_alias
1389
1390# FIXME: To remove some day.
1391if test "x$host_alias" != x; then
1392  if test "x$build_alias" = x; then
1393    cross_compiling=maybe
1394    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395    If a cross compiler is detected then cross compile mode will be used." >&2
1396  elif test "x$build_alias" != "x$host_alias"; then
1397    cross_compiling=yes
1398  fi
1399fi
1400
1401ac_tool_prefix=
1402test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404test "$silent" = yes && exec 6>/dev/null
1405
1406
1407ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408ac_ls_di=`ls -di .` &&
1409ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410  { echo "$as_me: error: Working directory cannot be determined" >&2
1411   { (exit 1); exit 1; }; }
1412test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413  { echo "$as_me: error: pwd does not report name of working directory" >&2
1414   { (exit 1); exit 1; }; }
1415
1416
1417# Find the source files, if location was not specified.
1418if test -z "$srcdir"; then
1419  ac_srcdir_defaulted=yes
1420  # Try the directory containing this script, then the parent directory.
1421  ac_confdir=`$as_dirname -- "$0" ||
1422$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423	 X"$0" : 'X\(//\)[^/]' \| \
1424	 X"$0" : 'X\(//\)$' \| \
1425	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1426echo X"$0" |
1427    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428	    s//\1/
1429	    q
1430	  }
1431	  /^X\(\/\/\)[^/].*/{
1432	    s//\1/
1433	    q
1434	  }
1435	  /^X\(\/\/\)$/{
1436	    s//\1/
1437	    q
1438	  }
1439	  /^X\(\/\).*/{
1440	    s//\1/
1441	    q
1442	  }
1443	  s/.*/./; q'`
1444  srcdir=$ac_confdir
1445  if test ! -r "$srcdir/$ac_unique_file"; then
1446    srcdir=..
1447  fi
1448else
1449  ac_srcdir_defaulted=no
1450fi
1451if test ! -r "$srcdir/$ac_unique_file"; then
1452  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1454   { (exit 1); exit 1; }; }
1455fi
1456ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457ac_abs_confdir=`(
1458	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1459   { (exit 1); exit 1; }; }
1460	pwd)`
1461# When building in place, set srcdir=.
1462if test "$ac_abs_confdir" = "$ac_pwd"; then
1463  srcdir=.
1464fi
1465# Remove unnecessary trailing slashes from srcdir.
1466# Double slashes in file names in object file debugging info
1467# mess up M-x gdb in Emacs.
1468case $srcdir in
1469*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470esac
1471for ac_var in $ac_precious_vars; do
1472  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473  eval ac_env_${ac_var}_value=\$${ac_var}
1474  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476done
1477
1478#
1479# Report the --help message.
1480#
1481if test "$ac_init_help" = "long"; then
1482  # Omit some internal or obsolete options to make the list less imposing.
1483  # This message is too long to be a string in the A/UX 3.1 sh.
1484  cat <<_ACEOF
1485\`configure' configures this package to adapt to many kinds of systems.
1486
1487Usage: $0 [OPTION]... [VAR=VALUE]...
1488
1489To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490VAR=VALUE.  See below for descriptions of some of the useful variables.
1491
1492Defaults for the options are specified in brackets.
1493
1494Configuration:
1495  -h, --help              display this help and exit
1496      --help=short        display options specific to this package
1497      --help=recursive    display the short help of all the included packages
1498  -V, --version           display version information and exit
1499  -q, --quiet, --silent   do not print \`checking...' messages
1500      --cache-file=FILE   cache test results in FILE [disabled]
1501  -C, --config-cache      alias for \`--cache-file=config.cache'
1502  -n, --no-create         do not create output files
1503      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1504
1505Installation directories:
1506  --prefix=PREFIX         install architecture-independent files in PREFIX
1507			  [$ac_default_prefix]
1508  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1509			  [PREFIX]
1510
1511By default, \`make install' will install all the files in
1512\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1513an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514for instance \`--prefix=\$HOME'.
1515
1516For better control, use the options below.
1517
1518Fine tuning of the installation directories:
1519  --bindir=DIR           user executables [EPREFIX/bin]
1520  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1521  --libexecdir=DIR       program executables [EPREFIX/libexec]
1522  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1523  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1524  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1525  --libdir=DIR           object code libraries [EPREFIX/lib]
1526  --includedir=DIR       C header files [PREFIX/include]
1527  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1528  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1529  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1530  --infodir=DIR          info documentation [DATAROOTDIR/info]
1531  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1532  --mandir=DIR           man documentation [DATAROOTDIR/man]
1533  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1534  --htmldir=DIR          html documentation [DOCDIR]
1535  --dvidir=DIR           dvi documentation [DOCDIR]
1536  --pdfdir=DIR           pdf documentation [DOCDIR]
1537  --psdir=DIR            ps documentation [DOCDIR]
1538_ACEOF
1539
1540  cat <<\_ACEOF
1541
1542Program names:
1543  --program-prefix=PREFIX            prepend PREFIX to installed program names
1544  --program-suffix=SUFFIX            append SUFFIX to installed program names
1545  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1546
1547System types:
1548  --build=BUILD     configure for building on BUILD [guessed]
1549  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1550_ACEOF
1551fi
1552
1553if test -n "$ac_init_help"; then
1554
1555  cat <<\_ACEOF
1556
1557Optional Features:
1558  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1559  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1560  --disable-dependency-tracking  speeds up one-time build
1561  --enable-dependency-tracking   do not reject slow dependency extractors
1562  --disable-java          do not build Java sources
1563  --disable-native-java   do not compile Java to native executables
1564  --enable-csharp[=IMPL]  choose preferred C# implementation (pnet or mono)
1565  --enable-shared[=PKGS]  build shared libraries [default=yes]
1566  --enable-static[=PKGS]  build static libraries [default=yes]
1567  --enable-fast-install[=PKGS]
1568                          optimize for fast installation [default=yes]
1569  --disable-libtool-lock  avoid locking (might break parallel builds)
1570  --disable-nls           do not use Native Language Support
1571  --enable-threads={posix|solaris|pth|win32}
1572                          specify multithreading API
1573  --disable-threads       build without multithread safety
1574  --disable-rpath         do not hardcode runtime library paths
1575  --enable-relocatable    install a package that can be moved in the filesystem
1576  --disable-libasprintf   do not build libasprintf
1577
1578Optional Packages:
1579  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1580  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1581  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1582  --with-pic              try to use only PIC/non-PIC objects [default=use
1583                          both]
1584  --with-tags[=TAGS]      include additional configurations [automatic]
1585  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1586  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1587  --without-libpth-prefix     don't search for libpth in includedir and libdir
1588  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1589  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1590  --with-included-gettext use the GNU gettext library included here
1591  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1592  --without-libintl-prefix     don't search for libintl in includedir and libdir
1593
1594Some influential environment variables:
1595  CC          C compiler command
1596  CFLAGS      C compiler flags
1597  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1598              nonstandard directory <lib dir>
1599  LIBS        libraries to pass to the linker, e.g. -l<library>
1600  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1601              you have headers in a nonstandard directory <include dir>
1602  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1603              the first program found out of: `bison -y', `byacc', `yacc'.
1604  YFLAGS      The list of arguments that will be passed by default to $YACC.
1605              This script will default YFLAGS to the empty string to avoid a
1606              default value of `-d' given by some make applications.
1607  CPP         C preprocessor
1608  CXX         C++ compiler command
1609  CXXFLAGS    C++ compiler flags
1610  CXXCPP      C++ preprocessor
1611  F77         Fortran 77 compiler command
1612  FFLAGS      Fortran 77 compiler flags
1613
1614Use these variables to override the choices made by `configure' or to help
1615it to find libraries and programs with nonstandard names/locations.
1616
1617_ACEOF
1618ac_status=$?
1619fi
1620
1621if test "$ac_init_help" = "recursive"; then
1622  # If there are subdirs, report their specific --help.
1623  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624    test -d "$ac_dir" || continue
1625    ac_builddir=.
1626
1627case "$ac_dir" in
1628.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629*)
1630  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1631  # A ".." for each directory in $ac_dir_suffix.
1632  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1633  case $ac_top_builddir_sub in
1634  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1636  esac ;;
1637esac
1638ac_abs_top_builddir=$ac_pwd
1639ac_abs_builddir=$ac_pwd$ac_dir_suffix
1640# for backward compatibility:
1641ac_top_builddir=$ac_top_build_prefix
1642
1643case $srcdir in
1644  .)  # We are building in place.
1645    ac_srcdir=.
1646    ac_top_srcdir=$ac_top_builddir_sub
1647    ac_abs_top_srcdir=$ac_pwd ;;
1648  [\\/]* | ?:[\\/]* )  # Absolute name.
1649    ac_srcdir=$srcdir$ac_dir_suffix;
1650    ac_top_srcdir=$srcdir
1651    ac_abs_top_srcdir=$srcdir ;;
1652  *) # Relative name.
1653    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1654    ac_top_srcdir=$ac_top_build_prefix$srcdir
1655    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1656esac
1657ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1658
1659    cd "$ac_dir" || { ac_status=$?; continue; }
1660    # Check for guested configure.
1661    if test -f "$ac_srcdir/configure.gnu"; then
1662      echo &&
1663      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1664    elif test -f "$ac_srcdir/configure"; then
1665      echo &&
1666      $SHELL "$ac_srcdir/configure" --help=recursive
1667    else
1668      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1669    fi || ac_status=$?
1670    cd "$ac_pwd" || { ac_status=$?; break; }
1671  done
1672fi
1673
1674test -n "$ac_init_help" && exit $ac_status
1675if $ac_init_version; then
1676  cat <<\_ACEOF
1677configure
1678generated by GNU Autoconf 2.61
1679
1680Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16812002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1682This configure script is free software; the Free Software Foundation
1683gives unlimited permission to copy, distribute and modify it.
1684_ACEOF
1685  exit
1686fi
1687cat >config.log <<_ACEOF
1688This file contains any messages produced by compilers while
1689running configure, to aid debugging if configure makes a mistake.
1690
1691It was created by $as_me, which was
1692generated by GNU Autoconf 2.61.  Invocation command line was
1693
1694  $ $0 $@
1695
1696_ACEOF
1697exec 5>>config.log
1698{
1699cat <<_ASUNAME
1700## --------- ##
1701## Platform. ##
1702## --------- ##
1703
1704hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1705uname -m = `(uname -m) 2>/dev/null || echo unknown`
1706uname -r = `(uname -r) 2>/dev/null || echo unknown`
1707uname -s = `(uname -s) 2>/dev/null || echo unknown`
1708uname -v = `(uname -v) 2>/dev/null || echo unknown`
1709
1710/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1711/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1712
1713/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1714/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1715/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1716/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1717/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1718/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1719/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1720
1721_ASUNAME
1722
1723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724for as_dir in $PATH
1725do
1726  IFS=$as_save_IFS
1727  test -z "$as_dir" && as_dir=.
1728  echo "PATH: $as_dir"
1729done
1730IFS=$as_save_IFS
1731
1732} >&5
1733
1734cat >&5 <<_ACEOF
1735
1736
1737## ----------- ##
1738## Core tests. ##
1739## ----------- ##
1740
1741_ACEOF
1742
1743
1744# Keep a trace of the command line.
1745# Strip out --no-create and --no-recursion so they do not pile up.
1746# Strip out --silent because we don't want to record it for future runs.
1747# Also quote any args containing shell meta-characters.
1748# Make two passes to allow for proper duplicate-argument suppression.
1749ac_configure_args=
1750ac_configure_args0=
1751ac_configure_args1=
1752ac_must_keep_next=false
1753for ac_pass in 1 2
1754do
1755  for ac_arg
1756  do
1757    case $ac_arg in
1758    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1759    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1760    | -silent | --silent | --silen | --sile | --sil)
1761      continue ;;
1762    *\'*)
1763      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1764    esac
1765    case $ac_pass in
1766    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1767    2)
1768      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1769      if test $ac_must_keep_next = true; then
1770	ac_must_keep_next=false # Got value, back to normal.
1771      else
1772	case $ac_arg in
1773	  *=* | --config-cache | -C | -disable-* | --disable-* \
1774	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1775	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1776	  | -with-* | --with-* | -without-* | --without-* | --x)
1777	    case "$ac_configure_args0 " in
1778	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1779	    esac
1780	    ;;
1781	  -* ) ac_must_keep_next=true ;;
1782	esac
1783      fi
1784      ac_configure_args="$ac_configure_args '$ac_arg'"
1785      ;;
1786    esac
1787  done
1788done
1789$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1790$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1791
1792# When interrupted or exit'd, cleanup temporary files, and complete
1793# config.log.  We remove comments because anyway the quotes in there
1794# would cause problems or look ugly.
1795# WARNING: Use '\'' to represent an apostrophe within the trap.
1796# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1797trap 'exit_status=$?
1798  # Save into config.log some information that might help in debugging.
1799  {
1800    echo
1801
1802    cat <<\_ASBOX
1803## ---------------- ##
1804## Cache variables. ##
1805## ---------------- ##
1806_ASBOX
1807    echo
1808    # The following way of writing the cache mishandles newlines in values,
1809(
1810  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1811    eval ac_val=\$$ac_var
1812    case $ac_val in #(
1813    *${as_nl}*)
1814      case $ac_var in #(
1815      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1816echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1817      esac
1818      case $ac_var in #(
1819      _ | IFS | as_nl) ;; #(
1820      *) $as_unset $ac_var ;;
1821      esac ;;
1822    esac
1823  done
1824  (set) 2>&1 |
1825    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1826    *${as_nl}ac_space=\ *)
1827      sed -n \
1828	"s/'\''/'\''\\\\'\'''\''/g;
1829	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1830      ;; #(
1831    *)
1832      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1833      ;;
1834    esac |
1835    sort
1836)
1837    echo
1838
1839    cat <<\_ASBOX
1840## ----------------- ##
1841## Output variables. ##
1842## ----------------- ##
1843_ASBOX
1844    echo
1845    for ac_var in $ac_subst_vars
1846    do
1847      eval ac_val=\$$ac_var
1848      case $ac_val in
1849      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1850      esac
1851      echo "$ac_var='\''$ac_val'\''"
1852    done | sort
1853    echo
1854
1855    if test -n "$ac_subst_files"; then
1856      cat <<\_ASBOX
1857## ------------------- ##
1858## File substitutions. ##
1859## ------------------- ##
1860_ASBOX
1861      echo
1862      for ac_var in $ac_subst_files
1863      do
1864	eval ac_val=\$$ac_var
1865	case $ac_val in
1866	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1867	esac
1868	echo "$ac_var='\''$ac_val'\''"
1869      done | sort
1870      echo
1871    fi
1872
1873    if test -s confdefs.h; then
1874      cat <<\_ASBOX
1875## ----------- ##
1876## confdefs.h. ##
1877## ----------- ##
1878_ASBOX
1879      echo
1880      cat confdefs.h
1881      echo
1882    fi
1883    test "$ac_signal" != 0 &&
1884      echo "$as_me: caught signal $ac_signal"
1885    echo "$as_me: exit $exit_status"
1886  } >&5
1887  rm -f core *.core core.conftest.* &&
1888    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1889    exit $exit_status
1890' 0
1891for ac_signal in 1 2 13 15; do
1892  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1893done
1894ac_signal=0
1895
1896# confdefs.h avoids OS command line length limits that DEFS can exceed.
1897rm -f -r conftest* confdefs.h
1898
1899# Predefined preprocessor variables.
1900
1901cat >>confdefs.h <<_ACEOF
1902#define PACKAGE_NAME "$PACKAGE_NAME"
1903_ACEOF
1904
1905
1906cat >>confdefs.h <<_ACEOF
1907#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1908_ACEOF
1909
1910
1911cat >>confdefs.h <<_ACEOF
1912#define PACKAGE_VERSION "$PACKAGE_VERSION"
1913_ACEOF
1914
1915
1916cat >>confdefs.h <<_ACEOF
1917#define PACKAGE_STRING "$PACKAGE_STRING"
1918_ACEOF
1919
1920
1921cat >>confdefs.h <<_ACEOF
1922#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1923_ACEOF
1924
1925
1926# Let the site file select an alternate cache file if it wants to.
1927# Prefer explicitly selected file to automatically selected ones.
1928if test -n "$CONFIG_SITE"; then
1929  set x "$CONFIG_SITE"
1930elif test "x$prefix" != xNONE; then
1931  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1932else
1933  set x "$ac_default_prefix/share/config.site" \
1934	"$ac_default_prefix/etc/config.site"
1935fi
1936shift
1937for ac_site_file
1938do
1939  if test -r "$ac_site_file"; then
1940    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1941echo "$as_me: loading site script $ac_site_file" >&6;}
1942    sed 's/^/| /' "$ac_site_file" >&5
1943    . "$ac_site_file"
1944  fi
1945done
1946
1947if test -r "$cache_file"; then
1948  # Some versions of bash will fail to source /dev/null (special
1949  # files actually), so we avoid doing that.
1950  if test -f "$cache_file"; then
1951    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1952echo "$as_me: loading cache $cache_file" >&6;}
1953    case $cache_file in
1954      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1955      *)                      . "./$cache_file";;
1956    esac
1957  fi
1958else
1959  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1960echo "$as_me: creating cache $cache_file" >&6;}
1961  >$cache_file
1962fi
1963
1964gt_needs="$gt_needs need-ngettext"
1965gl_header_list="$gl_header_list stdlib.h"
1966gl_header_list="$gl_header_list string.h"
1967gl_header_list="$gl_header_list sys/param.h"
1968gl_header_list="$gl_header_list unistd.h"
1969gl_header_list="$gl_header_list wchar.h"
1970gl_header_list="$gl_header_list wctype.h"
1971gl_func_list="$gl_func_list iswprint"
1972gl_func_list="$gl_func_list wcwidth"
1973# Check that the precious variables saved in the cache have kept the same
1974# value.
1975ac_cache_corrupted=false
1976for ac_var in $ac_precious_vars; do
1977  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1978  eval ac_new_set=\$ac_env_${ac_var}_set
1979  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1980  eval ac_new_val=\$ac_env_${ac_var}_value
1981  case $ac_old_set,$ac_new_set in
1982    set,)
1983      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1984echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1985      ac_cache_corrupted=: ;;
1986    ,set)
1987      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1988echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1989      ac_cache_corrupted=: ;;
1990    ,);;
1991    *)
1992      if test "x$ac_old_val" != "x$ac_new_val"; then
1993	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1994echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1995	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1996echo "$as_me:   former value:  $ac_old_val" >&2;}
1997	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1998echo "$as_me:   current value: $ac_new_val" >&2;}
1999	ac_cache_corrupted=:
2000      fi;;
2001  esac
2002  # Pass precious variables to config.status.
2003  if test "$ac_new_set" = set; then
2004    case $ac_new_val in
2005    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2006    *) ac_arg=$ac_var=$ac_new_val ;;
2007    esac
2008    case " $ac_configure_args " in
2009      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2010      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2011    esac
2012  fi
2013done
2014if $ac_cache_corrupted; then
2015  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019   { (exit 1); exit 1; }; }
2020fi
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038ac_ext=c
2039ac_cpp='$CPP $CPPFLAGS'
2040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042ac_compiler_gnu=$ac_cv_c_compiler_gnu
2043
2044
2045
2046ac_aux_dir=
2047for ac_dir in ../build-aux "$srcdir"/../build-aux; do
2048  if test -f "$ac_dir/install-sh"; then
2049    ac_aux_dir=$ac_dir
2050    ac_install_sh="$ac_aux_dir/install-sh -c"
2051    break
2052  elif test -f "$ac_dir/install.sh"; then
2053    ac_aux_dir=$ac_dir
2054    ac_install_sh="$ac_aux_dir/install.sh -c"
2055    break
2056  elif test -f "$ac_dir/shtool"; then
2057    ac_aux_dir=$ac_dir
2058    ac_install_sh="$ac_aux_dir/shtool install -c"
2059    break
2060  fi
2061done
2062if test -z "$ac_aux_dir"; then
2063  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&5
2064echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&2;}
2065   { (exit 1); exit 1; }; }
2066fi
2067
2068# These three variables are undocumented and unsupported,
2069# and are intended to be withdrawn in a future Autoconf release.
2070# They can cause serious problems if a builder's source tree is in a directory
2071# whose full name contains unusual characters.
2072ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2073ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2074ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2075
2076
2077. $srcdir/../version.sh
2078am__api_version='1.10'
2079
2080# Find a good install program.  We prefer a C program (faster),
2081# so one script is as good as another.  But avoid the broken or
2082# incompatible versions:
2083# SysV /etc/install, /usr/sbin/install
2084# SunOS /usr/etc/install
2085# IRIX /sbin/install
2086# AIX /bin/install
2087# AmigaOS /C/install, which installs bootblocks on floppy discs
2088# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2089# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2090# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2091# OS/2's system install, which has a completely different semantic
2092# ./install, which can be erroneously created by make from ./install.sh.
2093{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2094echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2095if test -z "$INSTALL"; then
2096if test "${ac_cv_path_install+set}" = set; then
2097  echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
2099  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100for as_dir in $PATH
2101do
2102  IFS=$as_save_IFS
2103  test -z "$as_dir" && as_dir=.
2104  # Account for people who put trailing slashes in PATH elements.
2105case $as_dir/ in
2106  ./ | .// | /cC/* | \
2107  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2108  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2109  /usr/ucb/* ) ;;
2110  *)
2111    # OSF1 and SCO ODT 3.0 have their own names for install.
2112    # Don't use installbsd from OSF since it installs stuff as root
2113    # by default.
2114    for ac_prog in ginstall scoinst install; do
2115      for ac_exec_ext in '' $ac_executable_extensions; do
2116	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2117	  if test $ac_prog = install &&
2118	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2119	    # AIX install.  It has an incompatible calling convention.
2120	    :
2121	  elif test $ac_prog = install &&
2122	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2123	    # program-specific install script used by HP pwplus--don't use.
2124	    :
2125	  else
2126	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2127	    break 3
2128	  fi
2129	fi
2130      done
2131    done
2132    ;;
2133esac
2134done
2135IFS=$as_save_IFS
2136
2137
2138fi
2139  if test "${ac_cv_path_install+set}" = set; then
2140    INSTALL=$ac_cv_path_install
2141  else
2142    # As a last resort, use the slow shell script.  Don't cache a
2143    # value for INSTALL within a source directory, because that will
2144    # break other packages using the cache if that directory is
2145    # removed, or if the value is a relative name.
2146    INSTALL=$ac_install_sh
2147  fi
2148fi
2149{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2150echo "${ECHO_T}$INSTALL" >&6; }
2151
2152# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2153# It thinks the first close brace ends the variable substitution.
2154test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2155
2156test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2157
2158test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2159
2160{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2161echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2162# Just in case
2163sleep 1
2164echo timestamp > conftest.file
2165# Do `set' in a subshell so we don't clobber the current shell's
2166# arguments.  Must try -L first in case configure is actually a
2167# symlink; some systems play weird games with the mod time of symlinks
2168# (eg FreeBSD returns the mod time of the symlink's containing
2169# directory).
2170if (
2171   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2172   if test "$*" = "X"; then
2173      # -L didn't work.
2174      set X `ls -t $srcdir/configure conftest.file`
2175   fi
2176   rm -f conftest.file
2177   if test "$*" != "X $srcdir/configure conftest.file" \
2178      && test "$*" != "X conftest.file $srcdir/configure"; then
2179
2180      # If neither matched, then we have a broken ls.  This can happen
2181      # if, for instance, CONFIG_SHELL is bash and it inherits a
2182      # broken ls alias from the environment.  This has actually
2183      # happened.  Such a system could not be considered "sane".
2184      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2185alias in your environment" >&5
2186echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2187alias in your environment" >&2;}
2188   { (exit 1); exit 1; }; }
2189   fi
2190
2191   test "$2" = conftest.file
2192   )
2193then
2194   # Ok.
2195   :
2196else
2197   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2198Check your system clock" >&5
2199echo "$as_me: error: newly created file is older than distributed files!
2200Check your system clock" >&2;}
2201   { (exit 1); exit 1; }; }
2202fi
2203{ echo "$as_me:$LINENO: result: yes" >&5
2204echo "${ECHO_T}yes" >&6; }
2205test "$program_prefix" != NONE &&
2206  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2207# Use a double $ so make ignores it.
2208test "$program_suffix" != NONE &&
2209  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2210# Double any \ or $.  echo might interpret backslashes.
2211# By default was `s,x,x', remove it if useless.
2212cat <<\_ACEOF >conftest.sed
2213s/[\\$]/&&/g;s/;s,x,x,$//
2214_ACEOF
2215program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2216rm -f conftest.sed
2217
2218# expand $ac_aux_dir to an absolute path
2219am_aux_dir=`cd $ac_aux_dir && pwd`
2220
2221test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2222# Use eval to expand $SHELL
2223if eval "$MISSING --run true"; then
2224  am_missing_run="$MISSING --run "
2225else
2226  am_missing_run=
2227  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2228echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2229fi
2230
2231{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2232echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2233if test -z "$MKDIR_P"; then
2234  if test "${ac_cv_path_mkdir+set}" = set; then
2235  echo $ECHO_N "(cached) $ECHO_C" >&6
2236else
2237  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2239do
2240  IFS=$as_save_IFS
2241  test -z "$as_dir" && as_dir=.
2242  for ac_prog in mkdir gmkdir; do
2243	 for ac_exec_ext in '' $ac_executable_extensions; do
2244	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2245	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2246	     'mkdir (GNU coreutils) '* | \
2247	     'mkdir (coreutils) '* | \
2248	     'mkdir (fileutils) '4.1*)
2249	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2250	       break 3;;
2251	   esac
2252	 done
2253       done
2254done
2255IFS=$as_save_IFS
2256
2257fi
2258
2259  if test "${ac_cv_path_mkdir+set}" = set; then
2260    MKDIR_P="$ac_cv_path_mkdir -p"
2261  else
2262    # As a last resort, use the slow shell script.  Don't cache a
2263    # value for MKDIR_P within a source directory, because that will
2264    # break other packages using the cache if that directory is
2265    # removed, or if the value is a relative name.
2266    test -d ./--version && rmdir ./--version
2267    MKDIR_P="$ac_install_sh -d"
2268  fi
2269fi
2270{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2271echo "${ECHO_T}$MKDIR_P" >&6; }
2272
2273mkdir_p="$MKDIR_P"
2274case $mkdir_p in
2275  [\\/$]* | ?:[\\/]*) ;;
2276  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2277esac
2278
2279for ac_prog in gawk mawk nawk awk
2280do
2281  # Extract the first word of "$ac_prog", so it can be a program name with args.
2282set dummy $ac_prog; ac_word=$2
2283{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2285if test "${ac_cv_prog_AWK+set}" = set; then
2286  echo $ECHO_N "(cached) $ECHO_C" >&6
2287else
2288  if test -n "$AWK"; then
2289  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2290else
2291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292for as_dir in $PATH
2293do
2294  IFS=$as_save_IFS
2295  test -z "$as_dir" && as_dir=.
2296  for ac_exec_ext in '' $ac_executable_extensions; do
2297  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2298    ac_cv_prog_AWK="$ac_prog"
2299    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300    break 2
2301  fi
2302done
2303done
2304IFS=$as_save_IFS
2305
2306fi
2307fi
2308AWK=$ac_cv_prog_AWK
2309if test -n "$AWK"; then
2310  { echo "$as_me:$LINENO: result: $AWK" >&5
2311echo "${ECHO_T}$AWK" >&6; }
2312else
2313  { echo "$as_me:$LINENO: result: no" >&5
2314echo "${ECHO_T}no" >&6; }
2315fi
2316
2317
2318  test -n "$AWK" && break
2319done
2320
2321{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2322echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2323set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2324if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2325  echo $ECHO_N "(cached) $ECHO_C" >&6
2326else
2327  cat >conftest.make <<\_ACEOF
2328SHELL = /bin/sh
2329all:
2330	@echo '@@@%%%=$(MAKE)=@@@%%%'
2331_ACEOF
2332# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2333case `${MAKE-make} -f conftest.make 2>/dev/null` in
2334  *@@@%%%=?*=@@@%%%*)
2335    eval ac_cv_prog_make_${ac_make}_set=yes;;
2336  *)
2337    eval ac_cv_prog_make_${ac_make}_set=no;;
2338esac
2339rm -f conftest.make
2340fi
2341if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2342  { echo "$as_me:$LINENO: result: yes" >&5
2343echo "${ECHO_T}yes" >&6; }
2344  SET_MAKE=
2345else
2346  { echo "$as_me:$LINENO: result: no" >&5
2347echo "${ECHO_T}no" >&6; }
2348  SET_MAKE="MAKE=${MAKE-make}"
2349fi
2350
2351rm -rf .tst 2>/dev/null
2352mkdir .tst 2>/dev/null
2353if test -d .tst; then
2354  am__leading_dot=.
2355else
2356  am__leading_dot=_
2357fi
2358rmdir .tst 2>/dev/null
2359
2360if test "`cd $srcdir && pwd`" != "`pwd`"; then
2361  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2362  # is not polluted with repeated "-I."
2363  am__isrc=' -I$(srcdir)'
2364  # test to see if srcdir already configured
2365  if test -f $srcdir/config.status; then
2366    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2367echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2368   { (exit 1); exit 1; }; }
2369  fi
2370fi
2371
2372# test whether we have cygpath
2373if test -z "$CYGPATH_W"; then
2374  if (cygpath --version) >/dev/null 2>/dev/null; then
2375    CYGPATH_W='cygpath -w'
2376  else
2377    CYGPATH_W=echo
2378  fi
2379fi
2380
2381
2382# Define the identity of the package.
2383 PACKAGE=gettext-runtime
2384 VERSION=$VERSION_NUMBER
2385
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE "$PACKAGE"
2389_ACEOF
2390
2391
2392cat >>confdefs.h <<_ACEOF
2393#define VERSION "$VERSION"
2394_ACEOF
2395
2396# Some tools Automake needs.
2397
2398ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2399
2400
2401AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2402
2403
2404AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2405
2406
2407AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2408
2409
2410MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2411
2412install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2413
2414# Installed binaries are usually stripped using `strip' when the user
2415# run `make install-strip'.  However `strip' might not be the right
2416# tool to use in cross-compilation environments, therefore Automake
2417# will honor the `STRIP' environment variable to overrule this program.
2418if test "$cross_compiling" != no; then
2419  if test -n "$ac_tool_prefix"; then
2420  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2421set dummy ${ac_tool_prefix}strip; ac_word=$2
2422{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424if test "${ac_cv_prog_STRIP+set}" = set; then
2425  echo $ECHO_N "(cached) $ECHO_C" >&6
2426else
2427  if test -n "$STRIP"; then
2428  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2429else
2430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431for as_dir in $PATH
2432do
2433  IFS=$as_save_IFS
2434  test -z "$as_dir" && as_dir=.
2435  for ac_exec_ext in '' $ac_executable_extensions; do
2436  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2438    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439    break 2
2440  fi
2441done
2442done
2443IFS=$as_save_IFS
2444
2445fi
2446fi
2447STRIP=$ac_cv_prog_STRIP
2448if test -n "$STRIP"; then
2449  { echo "$as_me:$LINENO: result: $STRIP" >&5
2450echo "${ECHO_T}$STRIP" >&6; }
2451else
2452  { echo "$as_me:$LINENO: result: no" >&5
2453echo "${ECHO_T}no" >&6; }
2454fi
2455
2456
2457fi
2458if test -z "$ac_cv_prog_STRIP"; then
2459  ac_ct_STRIP=$STRIP
2460  # Extract the first word of "strip", so it can be a program name with args.
2461set dummy strip; ac_word=$2
2462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2465  echo $ECHO_N "(cached) $ECHO_C" >&6
2466else
2467  if test -n "$ac_ct_STRIP"; then
2468  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2469else
2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471for as_dir in $PATH
2472do
2473  IFS=$as_save_IFS
2474  test -z "$as_dir" && as_dir=.
2475  for ac_exec_ext in '' $ac_executable_extensions; do
2476  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477    ac_cv_prog_ac_ct_STRIP="strip"
2478    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479    break 2
2480  fi
2481done
2482done
2483IFS=$as_save_IFS
2484
2485fi
2486fi
2487ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2488if test -n "$ac_ct_STRIP"; then
2489  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2490echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2491else
2492  { echo "$as_me:$LINENO: result: no" >&5
2493echo "${ECHO_T}no" >&6; }
2494fi
2495
2496  if test "x$ac_ct_STRIP" = x; then
2497    STRIP=":"
2498  else
2499    case $cross_compiling:$ac_tool_warned in
2500yes:)
2501{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2502whose name does not start with the host triplet.  If you think this
2503configuration is useful to you, please write to autoconf@gnu.org." >&5
2504echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2505whose name does not start with the host triplet.  If you think this
2506configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2507ac_tool_warned=yes ;;
2508esac
2509    STRIP=$ac_ct_STRIP
2510  fi
2511else
2512  STRIP="$ac_cv_prog_STRIP"
2513fi
2514
2515fi
2516INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2517
2518# We need awk for the "check" target.  The system "awk" is bad on
2519# some platforms.
2520# Always define AMTAR for backward compatibility.
2521
2522AMTAR=${AMTAR-"${am_missing_run}tar"}
2523
2524am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2525
2526
2527
2528
2529
2530ac_config_headers="$ac_config_headers config.h"
2531
2532
2533test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext'
2534
2535ac_ext=c
2536ac_cpp='$CPP $CPPFLAGS'
2537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540if test -n "$ac_tool_prefix"; then
2541  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2542set dummy ${ac_tool_prefix}gcc; ac_word=$2
2543{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2545if test "${ac_cv_prog_CC+set}" = set; then
2546  echo $ECHO_N "(cached) $ECHO_C" >&6
2547else
2548  if test -n "$CC"; then
2549  ac_cv_prog_CC="$CC" # Let the user override the test.
2550else
2551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552for as_dir in $PATH
2553do
2554  IFS=$as_save_IFS
2555  test -z "$as_dir" && as_dir=.
2556  for ac_exec_ext in '' $ac_executable_extensions; do
2557  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2558    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2559    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560    break 2
2561  fi
2562done
2563done
2564IFS=$as_save_IFS
2565
2566fi
2567fi
2568CC=$ac_cv_prog_CC
2569if test -n "$CC"; then
2570  { echo "$as_me:$LINENO: result: $CC" >&5
2571echo "${ECHO_T}$CC" >&6; }
2572else
2573  { echo "$as_me:$LINENO: result: no" >&5
2574echo "${ECHO_T}no" >&6; }
2575fi
2576
2577
2578fi
2579if test -z "$ac_cv_prog_CC"; then
2580  ac_ct_CC=$CC
2581  # Extract the first word of "gcc", so it can be a program name with args.
2582set dummy gcc; ac_word=$2
2583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2586  echo $ECHO_N "(cached) $ECHO_C" >&6
2587else
2588  if test -n "$ac_ct_CC"; then
2589  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2590else
2591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592for as_dir in $PATH
2593do
2594  IFS=$as_save_IFS
2595  test -z "$as_dir" && as_dir=.
2596  for ac_exec_ext in '' $ac_executable_extensions; do
2597  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598    ac_cv_prog_ac_ct_CC="gcc"
2599    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600    break 2
2601  fi
2602done
2603done
2604IFS=$as_save_IFS
2605
2606fi
2607fi
2608ac_ct_CC=$ac_cv_prog_ac_ct_CC
2609if test -n "$ac_ct_CC"; then
2610  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2611echo "${ECHO_T}$ac_ct_CC" >&6; }
2612else
2613  { echo "$as_me:$LINENO: result: no" >&5
2614echo "${ECHO_T}no" >&6; }
2615fi
2616
2617  if test "x$ac_ct_CC" = x; then
2618    CC=""
2619  else
2620    case $cross_compiling:$ac_tool_warned in
2621yes:)
2622{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2623whose name does not start with the host triplet.  If you think this
2624configuration is useful to you, please write to autoconf@gnu.org." >&5
2625echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2626whose name does not start with the host triplet.  If you think this
2627configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2628ac_tool_warned=yes ;;
2629esac
2630    CC=$ac_ct_CC
2631  fi
2632else
2633  CC="$ac_cv_prog_CC"
2634fi
2635
2636if test -z "$CC"; then
2637          if test -n "$ac_tool_prefix"; then
2638    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2639set dummy ${ac_tool_prefix}cc; ac_word=$2
2640{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642if test "${ac_cv_prog_CC+set}" = set; then
2643  echo $ECHO_N "(cached) $ECHO_C" >&6
2644else
2645  if test -n "$CC"; then
2646  ac_cv_prog_CC="$CC" # Let the user override the test.
2647else
2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651  IFS=$as_save_IFS
2652  test -z "$as_dir" && as_dir=.
2653  for ac_exec_ext in '' $ac_executable_extensions; do
2654  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655    ac_cv_prog_CC="${ac_tool_prefix}cc"
2656    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657    break 2
2658  fi
2659done
2660done
2661IFS=$as_save_IFS
2662
2663fi
2664fi
2665CC=$ac_cv_prog_CC
2666if test -n "$CC"; then
2667  { echo "$as_me:$LINENO: result: $CC" >&5
2668echo "${ECHO_T}$CC" >&6; }
2669else
2670  { echo "$as_me:$LINENO: result: no" >&5
2671echo "${ECHO_T}no" >&6; }
2672fi
2673
2674
2675  fi
2676fi
2677if test -z "$CC"; then
2678  # Extract the first word of "cc", so it can be a program name with args.
2679set dummy cc; ac_word=$2
2680{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682if test "${ac_cv_prog_CC+set}" = set; then
2683  echo $ECHO_N "(cached) $ECHO_C" >&6
2684else
2685  if test -n "$CC"; then
2686  ac_cv_prog_CC="$CC" # Let the user override the test.
2687else
2688  ac_prog_rejected=no
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692  IFS=$as_save_IFS
2693  test -z "$as_dir" && as_dir=.
2694  for ac_exec_ext in '' $ac_executable_extensions; do
2695  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2697       ac_prog_rejected=yes
2698       continue
2699     fi
2700    ac_cv_prog_CC="cc"
2701    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702    break 2
2703  fi
2704done
2705done
2706IFS=$as_save_IFS
2707
2708if test $ac_prog_rejected = yes; then
2709  # We found a bogon in the path, so make sure we never use it.
2710  set dummy $ac_cv_prog_CC
2711  shift
2712  if test $# != 0; then
2713    # We chose a different compiler from the bogus one.
2714    # However, it has the same basename, so the bogon will be chosen
2715    # first if we set CC to just the basename; use the full file name.
2716    shift
2717    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2718  fi
2719fi
2720fi
2721fi
2722CC=$ac_cv_prog_CC
2723if test -n "$CC"; then
2724  { echo "$as_me:$LINENO: result: $CC" >&5
2725echo "${ECHO_T}$CC" >&6; }
2726else
2727  { echo "$as_me:$LINENO: result: no" >&5
2728echo "${ECHO_T}no" >&6; }
2729fi
2730
2731
2732fi
2733if test -z "$CC"; then
2734  if test -n "$ac_tool_prefix"; then
2735  for ac_prog in cl.exe
2736  do
2737    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2738set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2741if test "${ac_cv_prog_CC+set}" = set; then
2742  echo $ECHO_N "(cached) $ECHO_C" >&6
2743else
2744  if test -n "$CC"; then
2745  ac_cv_prog_CC="$CC" # Let the user override the test.
2746else
2747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748for as_dir in $PATH
2749do
2750  IFS=$as_save_IFS
2751  test -z "$as_dir" && as_dir=.
2752  for ac_exec_ext in '' $ac_executable_extensions; do
2753  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2755    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756    break 2
2757  fi
2758done
2759done
2760IFS=$as_save_IFS
2761
2762fi
2763fi
2764CC=$ac_cv_prog_CC
2765if test -n "$CC"; then
2766  { echo "$as_me:$LINENO: result: $CC" >&5
2767echo "${ECHO_T}$CC" >&6; }
2768else
2769  { echo "$as_me:$LINENO: result: no" >&5
2770echo "${ECHO_T}no" >&6; }
2771fi
2772
2773
2774    test -n "$CC" && break
2775  done
2776fi
2777if test -z "$CC"; then
2778  ac_ct_CC=$CC
2779  for ac_prog in cl.exe
2780do
2781  # Extract the first word of "$ac_prog", so it can be a program name with args.
2782set dummy $ac_prog; ac_word=$2
2783{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2785if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2786  echo $ECHO_N "(cached) $ECHO_C" >&6
2787else
2788  if test -n "$ac_ct_CC"; then
2789  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2790else
2791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792for as_dir in $PATH
2793do
2794  IFS=$as_save_IFS
2795  test -z "$as_dir" && as_dir=.
2796  for ac_exec_ext in '' $ac_executable_extensions; do
2797  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798    ac_cv_prog_ac_ct_CC="$ac_prog"
2799    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2800    break 2
2801  fi
2802done
2803done
2804IFS=$as_save_IFS
2805
2806fi
2807fi
2808ac_ct_CC=$ac_cv_prog_ac_ct_CC
2809if test -n "$ac_ct_CC"; then
2810  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2811echo "${ECHO_T}$ac_ct_CC" >&6; }
2812else
2813  { echo "$as_me:$LINENO: result: no" >&5
2814echo "${ECHO_T}no" >&6; }
2815fi
2816
2817
2818  test -n "$ac_ct_CC" && break
2819done
2820
2821  if test "x$ac_ct_CC" = x; then
2822    CC=""
2823  else
2824    case $cross_compiling:$ac_tool_warned in
2825yes:)
2826{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2827whose name does not start with the host triplet.  If you think this
2828configuration is useful to you, please write to autoconf@gnu.org." >&5
2829echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2830whose name does not start with the host triplet.  If you think this
2831configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2832ac_tool_warned=yes ;;
2833esac
2834    CC=$ac_ct_CC
2835  fi
2836fi
2837
2838fi
2839
2840
2841test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2842See \`config.log' for more details." >&5
2843echo "$as_me: error: no acceptable C compiler found in \$PATH
2844See \`config.log' for more details." >&2;}
2845   { (exit 1); exit 1; }; }
2846
2847# Provide some information about the compiler.
2848echo "$as_me:$LINENO: checking for C compiler version" >&5
2849ac_compiler=`set X $ac_compile; echo $2`
2850{ (ac_try="$ac_compiler --version >&5"
2851case "(($ac_try" in
2852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853  *) ac_try_echo=$ac_try;;
2854esac
2855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856  (eval "$ac_compiler --version >&5") 2>&5
2857  ac_status=$?
2858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859  (exit $ac_status); }
2860{ (ac_try="$ac_compiler -v >&5"
2861case "(($ac_try" in
2862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863  *) ac_try_echo=$ac_try;;
2864esac
2865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2866  (eval "$ac_compiler -v >&5") 2>&5
2867  ac_status=$?
2868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869  (exit $ac_status); }
2870{ (ac_try="$ac_compiler -V >&5"
2871case "(($ac_try" in
2872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873  *) ac_try_echo=$ac_try;;
2874esac
2875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876  (eval "$ac_compiler -V >&5") 2>&5
2877  ac_status=$?
2878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879  (exit $ac_status); }
2880
2881cat >conftest.$ac_ext <<_ACEOF
2882/* confdefs.h.  */
2883_ACEOF
2884cat confdefs.h >>conftest.$ac_ext
2885cat >>conftest.$ac_ext <<_ACEOF
2886/* end confdefs.h.  */
2887
2888int
2889main ()
2890{
2891
2892  ;
2893  return 0;
2894}
2895_ACEOF
2896ac_clean_files_save=$ac_clean_files
2897ac_clean_files="$ac_clean_files a.out a.exe b.out"
2898# Try to create an executable without -o first, disregard a.out.
2899# It will help us diagnose broken compilers, and finding out an intuition
2900# of exeext.
2901{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2902echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2903ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2904#
2905# List of possible output files, starting from the most likely.
2906# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2907# only as a last resort.  b.out is created by i960 compilers.
2908ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2909#
2910# The IRIX 6 linker writes into existing files which may not be
2911# executable, retaining their permissions.  Remove them first so a
2912# subsequent execution test works.
2913ac_rmfiles=
2914for ac_file in $ac_files
2915do
2916  case $ac_file in
2917    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2918    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2919  esac
2920done
2921rm -f $ac_rmfiles
2922
2923if { (ac_try="$ac_link_default"
2924case "(($ac_try" in
2925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926  *) ac_try_echo=$ac_try;;
2927esac
2928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929  (eval "$ac_link_default") 2>&5
2930  ac_status=$?
2931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932  (exit $ac_status); }; then
2933  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2934# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2935# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2936# so that the user can short-circuit this test for compilers unknown to
2937# Autoconf.
2938for ac_file in $ac_files ''
2939do
2940  test -f "$ac_file" || continue
2941  case $ac_file in
2942    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2943	;;
2944    [ab].out )
2945	# We found the default executable, but exeext='' is most
2946	# certainly right.
2947	break;;
2948    *.* )
2949        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2950	then :; else
2951	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2952	fi
2953	# We set ac_cv_exeext here because the later test for it is not
2954	# safe: cross compilers may not add the suffix if given an `-o'
2955	# argument, so we may need to know it at that point already.
2956	# Even if this section looks crufty: it has the advantage of
2957	# actually working.
2958	break;;
2959    * )
2960	break;;
2961  esac
2962done
2963test "$ac_cv_exeext" = no && ac_cv_exeext=
2964
2965else
2966  ac_file=''
2967fi
2968
2969{ echo "$as_me:$LINENO: result: $ac_file" >&5
2970echo "${ECHO_T}$ac_file" >&6; }
2971if test -z "$ac_file"; then
2972  echo "$as_me: failed program was:" >&5
2973sed 's/^/| /' conftest.$ac_ext >&5
2974
2975{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2976See \`config.log' for more details." >&5
2977echo "$as_me: error: C compiler cannot create executables
2978See \`config.log' for more details." >&2;}
2979   { (exit 77); exit 77; }; }
2980fi
2981
2982ac_exeext=$ac_cv_exeext
2983
2984# Check that the compiler produces executables we can run.  If not, either
2985# the compiler is broken, or we cross compile.
2986{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2987echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2988# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2989# If not cross compiling, check that we can run a simple program.
2990if test "$cross_compiling" != yes; then
2991  if { ac_try='./$ac_file'
2992  { (case "(($ac_try" in
2993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994  *) ac_try_echo=$ac_try;;
2995esac
2996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997  (eval "$ac_try") 2>&5
2998  ac_status=$?
2999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000  (exit $ac_status); }; }; then
3001    cross_compiling=no
3002  else
3003    if test "$cross_compiling" = maybe; then
3004	cross_compiling=yes
3005    else
3006	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3007If you meant to cross compile, use \`--host'.
3008See \`config.log' for more details." >&5
3009echo "$as_me: error: cannot run C compiled programs.
3010If you meant to cross compile, use \`--host'.
3011See \`config.log' for more details." >&2;}
3012   { (exit 1); exit 1; }; }
3013    fi
3014  fi
3015fi
3016{ echo "$as_me:$LINENO: result: yes" >&5
3017echo "${ECHO_T}yes" >&6; }
3018
3019rm -f a.out a.exe conftest$ac_cv_exeext b.out
3020ac_clean_files=$ac_clean_files_save
3021# Check that the compiler produces executables we can run.  If not, either
3022# the compiler is broken, or we cross compile.
3023{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3024echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3025{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3026echo "${ECHO_T}$cross_compiling" >&6; }
3027
3028{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3029echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3030if { (ac_try="$ac_link"
3031case "(($ac_try" in
3032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033  *) ac_try_echo=$ac_try;;
3034esac
3035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036  (eval "$ac_link") 2>&5
3037  ac_status=$?
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); }; then
3040  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3041# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3042# work properly (i.e., refer to `conftest.exe'), while it won't with
3043# `rm'.
3044for ac_file in conftest.exe conftest conftest.*; do
3045  test -f "$ac_file" || continue
3046  case $ac_file in
3047    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3048    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3049	  break;;
3050    * ) break;;
3051  esac
3052done
3053else
3054  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3055See \`config.log' for more details." >&5
3056echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3057See \`config.log' for more details." >&2;}
3058   { (exit 1); exit 1; }; }
3059fi
3060
3061rm -f conftest$ac_cv_exeext
3062{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3063echo "${ECHO_T}$ac_cv_exeext" >&6; }
3064
3065rm -f conftest.$ac_ext
3066EXEEXT=$ac_cv_exeext
3067ac_exeext=$EXEEXT
3068{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3069echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3070if test "${ac_cv_objext+set}" = set; then
3071  echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073  cat >conftest.$ac_ext <<_ACEOF
3074/* confdefs.h.  */
3075_ACEOF
3076cat confdefs.h >>conftest.$ac_ext
3077cat >>conftest.$ac_ext <<_ACEOF
3078/* end confdefs.h.  */
3079
3080int
3081main ()
3082{
3083
3084  ;
3085  return 0;
3086}
3087_ACEOF
3088rm -f conftest.o conftest.obj
3089if { (ac_try="$ac_compile"
3090case "(($ac_try" in
3091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092  *) ac_try_echo=$ac_try;;
3093esac
3094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095  (eval "$ac_compile") 2>&5
3096  ac_status=$?
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); }; then
3099  for ac_file in conftest.o conftest.obj conftest.*; do
3100  test -f "$ac_file" || continue;
3101  case $ac_file in
3102    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3103    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3104       break;;
3105  esac
3106done
3107else
3108  echo "$as_me: failed program was:" >&5
3109sed 's/^/| /' conftest.$ac_ext >&5
3110
3111{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3112See \`config.log' for more details." >&5
3113echo "$as_me: error: cannot compute suffix of object files: cannot compile
3114See \`config.log' for more details." >&2;}
3115   { (exit 1); exit 1; }; }
3116fi
3117
3118rm -f conftest.$ac_cv_objext conftest.$ac_ext
3119fi
3120{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3121echo "${ECHO_T}$ac_cv_objext" >&6; }
3122OBJEXT=$ac_cv_objext
3123ac_objext=$OBJEXT
3124{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3125echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3126if test "${ac_cv_c_compiler_gnu+set}" = set; then
3127  echo $ECHO_N "(cached) $ECHO_C" >&6
3128else
3129  cat >conftest.$ac_ext <<_ACEOF
3130/* confdefs.h.  */
3131_ACEOF
3132cat confdefs.h >>conftest.$ac_ext
3133cat >>conftest.$ac_ext <<_ACEOF
3134/* end confdefs.h.  */
3135
3136int
3137main ()
3138{
3139#ifndef __GNUC__
3140       choke me
3141#endif
3142
3143  ;
3144  return 0;
3145}
3146_ACEOF
3147rm -f conftest.$ac_objext
3148if { (ac_try="$ac_compile"
3149case "(($ac_try" in
3150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151  *) ac_try_echo=$ac_try;;
3152esac
3153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154  (eval "$ac_compile") 2>conftest.er1
3155  ac_status=$?
3156  grep -v '^ *+' conftest.er1 >conftest.err
3157  rm -f conftest.er1
3158  cat conftest.err >&5
3159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160  (exit $ac_status); } && {
3161	 test -z "$ac_c_werror_flag" ||
3162	 test ! -s conftest.err
3163       } && test -s conftest.$ac_objext; then
3164  ac_compiler_gnu=yes
3165else
3166  echo "$as_me: failed program was:" >&5
3167sed 's/^/| /' conftest.$ac_ext >&5
3168
3169	ac_compiler_gnu=no
3170fi
3171
3172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173ac_cv_c_compiler_gnu=$ac_compiler_gnu
3174
3175fi
3176{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3177echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3178GCC=`test $ac_compiler_gnu = yes && echo yes`
3179ac_test_CFLAGS=${CFLAGS+set}
3180ac_save_CFLAGS=$CFLAGS
3181{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3182echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3183if test "${ac_cv_prog_cc_g+set}" = set; then
3184  echo $ECHO_N "(cached) $ECHO_C" >&6
3185else
3186  ac_save_c_werror_flag=$ac_c_werror_flag
3187   ac_c_werror_flag=yes
3188   ac_cv_prog_cc_g=no
3189   CFLAGS="-g"
3190   cat >conftest.$ac_ext <<_ACEOF
3191/* confdefs.h.  */
3192_ACEOF
3193cat confdefs.h >>conftest.$ac_ext
3194cat >>conftest.$ac_ext <<_ACEOF
3195/* end confdefs.h.  */
3196
3197int
3198main ()
3199{
3200
3201  ;
3202  return 0;
3203}
3204_ACEOF
3205rm -f conftest.$ac_objext
3206if { (ac_try="$ac_compile"
3207case "(($ac_try" in
3208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209  *) ac_try_echo=$ac_try;;
3210esac
3211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212  (eval "$ac_compile") 2>conftest.er1
3213  ac_status=$?
3214  grep -v '^ *+' conftest.er1 >conftest.err
3215  rm -f conftest.er1
3216  cat conftest.err >&5
3217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218  (exit $ac_status); } && {
3219	 test -z "$ac_c_werror_flag" ||
3220	 test ! -s conftest.err
3221       } && test -s conftest.$ac_objext; then
3222  ac_cv_prog_cc_g=yes
3223else
3224  echo "$as_me: failed program was:" >&5
3225sed 's/^/| /' conftest.$ac_ext >&5
3226
3227	CFLAGS=""
3228      cat >conftest.$ac_ext <<_ACEOF
3229/* confdefs.h.  */
3230_ACEOF
3231cat confdefs.h >>conftest.$ac_ext
3232cat >>conftest.$ac_ext <<_ACEOF
3233/* end confdefs.h.  */
3234
3235int
3236main ()
3237{
3238
3239  ;
3240  return 0;
3241}
3242_ACEOF
3243rm -f conftest.$ac_objext
3244if { (ac_try="$ac_compile"
3245case "(($ac_try" in
3246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247  *) ac_try_echo=$ac_try;;
3248esac
3249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250  (eval "$ac_compile") 2>conftest.er1
3251  ac_status=$?
3252  grep -v '^ *+' conftest.er1 >conftest.err
3253  rm -f conftest.er1
3254  cat conftest.err >&5
3255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256  (exit $ac_status); } && {
3257	 test -z "$ac_c_werror_flag" ||
3258	 test ! -s conftest.err
3259       } && test -s conftest.$ac_objext; then
3260  :
3261else
3262  echo "$as_me: failed program was:" >&5
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
3265	ac_c_werror_flag=$ac_save_c_werror_flag
3266	 CFLAGS="-g"
3267	 cat >conftest.$ac_ext <<_ACEOF
3268/* confdefs.h.  */
3269_ACEOF
3270cat confdefs.h >>conftest.$ac_ext
3271cat >>conftest.$ac_ext <<_ACEOF
3272/* end confdefs.h.  */
3273
3274int
3275main ()
3276{
3277
3278  ;
3279  return 0;
3280}
3281_ACEOF
3282rm -f conftest.$ac_objext
3283if { (ac_try="$ac_compile"
3284case "(($ac_try" in
3285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286  *) ac_try_echo=$ac_try;;
3287esac
3288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289  (eval "$ac_compile") 2>conftest.er1
3290  ac_status=$?
3291  grep -v '^ *+' conftest.er1 >conftest.err
3292  rm -f conftest.er1
3293  cat conftest.err >&5
3294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295  (exit $ac_status); } && {
3296	 test -z "$ac_c_werror_flag" ||
3297	 test ! -s conftest.err
3298       } && test -s conftest.$ac_objext; then
3299  ac_cv_prog_cc_g=yes
3300else
3301  echo "$as_me: failed program was:" >&5
3302sed 's/^/| /' conftest.$ac_ext >&5
3303
3304
3305fi
3306
3307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308fi
3309
3310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311fi
3312
3313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314   ac_c_werror_flag=$ac_save_c_werror_flag
3315fi
3316{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3317echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3318if test "$ac_test_CFLAGS" = set; then
3319  CFLAGS=$ac_save_CFLAGS
3320elif test $ac_cv_prog_cc_g = yes; then
3321  if test "$GCC" = yes; then
3322    CFLAGS="-g -O2"
3323  else
3324    CFLAGS="-g"
3325  fi
3326else
3327  if test "$GCC" = yes; then
3328    CFLAGS="-O2"
3329  else
3330    CFLAGS=
3331  fi
3332fi
3333{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3334echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3335if test "${ac_cv_prog_cc_c89+set}" = set; then
3336  echo $ECHO_N "(cached) $ECHO_C" >&6
3337else
3338  ac_cv_prog_cc_c89=no
3339ac_save_CC=$CC
3340cat >conftest.$ac_ext <<_ACEOF
3341/* confdefs.h.  */
3342_ACEOF
3343cat confdefs.h >>conftest.$ac_ext
3344cat >>conftest.$ac_ext <<_ACEOF
3345/* end confdefs.h.  */
3346#include <stdarg.h>
3347#include <stdio.h>
3348#include <sys/types.h>
3349#include <sys/stat.h>
3350/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3351struct buf { int x; };
3352FILE * (*rcsopen) (struct buf *, struct stat *, int);
3353static char *e (p, i)
3354     char **p;
3355     int i;
3356{
3357  return p[i];
3358}
3359static char *f (char * (*g) (char **, int), char **p, ...)
3360{
3361  char *s;
3362  va_list v;
3363  va_start (v,p);
3364  s = g (p, va_arg (v,int));
3365  va_end (v);
3366  return s;
3367}
3368
3369/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3370   function prototypes and stuff, but not '\xHH' hex character constants.
3371   These don't provoke an error unfortunately, instead are silently treated
3372   as 'x'.  The following induces an error, until -std is added to get
3373   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3374   array size at least.  It's necessary to write '\x00'==0 to get something
3375   that's true only with -std.  */
3376int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3377
3378/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3379   inside strings and character constants.  */
3380#define FOO(x) 'x'
3381int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3382
3383int test (int i, double x);
3384struct s1 {int (*f) (int a);};
3385struct s2 {int (*f) (double a);};
3386int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3387int argc;
3388char **argv;
3389int
3390main ()
3391{
3392return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3393  ;
3394  return 0;
3395}
3396_ACEOF
3397for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3398	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3399do
3400  CC="$ac_save_CC $ac_arg"
3401  rm -f conftest.$ac_objext
3402if { (ac_try="$ac_compile"
3403case "(($ac_try" in
3404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405  *) ac_try_echo=$ac_try;;
3406esac
3407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408  (eval "$ac_compile") 2>conftest.er1
3409  ac_status=$?
3410  grep -v '^ *+' conftest.er1 >conftest.err
3411  rm -f conftest.er1
3412  cat conftest.err >&5
3413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414  (exit $ac_status); } && {
3415	 test -z "$ac_c_werror_flag" ||
3416	 test ! -s conftest.err
3417       } && test -s conftest.$ac_objext; then
3418  ac_cv_prog_cc_c89=$ac_arg
3419else
3420  echo "$as_me: failed program was:" >&5
3421sed 's/^/| /' conftest.$ac_ext >&5
3422
3423
3424fi
3425
3426rm -f core conftest.err conftest.$ac_objext
3427  test "x$ac_cv_prog_cc_c89" != "xno" && break
3428done
3429rm -f conftest.$ac_ext
3430CC=$ac_save_CC
3431
3432fi
3433# AC_CACHE_VAL
3434case "x$ac_cv_prog_cc_c89" in
3435  x)
3436    { echo "$as_me:$LINENO: result: none needed" >&5
3437echo "${ECHO_T}none needed" >&6; } ;;
3438  xno)
3439    { echo "$as_me:$LINENO: result: unsupported" >&5
3440echo "${ECHO_T}unsupported" >&6; } ;;
3441  *)
3442    CC="$CC $ac_cv_prog_cc_c89"
3443    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3444echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3445esac
3446
3447
3448ac_ext=c
3449ac_cpp='$CPP $CPPFLAGS'
3450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453DEPDIR="${am__leading_dot}deps"
3454
3455ac_config_commands="$ac_config_commands depfiles"
3456
3457
3458am_make=${MAKE-make}
3459cat > confinc << 'END'
3460am__doit:
3461	@echo done
3462.PHONY: am__doit
3463END
3464# If we don't find an include directive, just comment out the code.
3465{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3466echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3467am__include="#"
3468am__quote=
3469_am_result=none
3470# First try GNU make style include.
3471echo "include confinc" > confmf
3472# We grep out `Entering directory' and `Leaving directory'
3473# messages which can occur if `w' ends up in MAKEFLAGS.
3474# In particular we don't look at `^make:' because GNU make might
3475# be invoked under some other name (usually "gmake"), in which
3476# case it prints its new name instead of `make'.
3477if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3478   am__include=include
3479   am__quote=
3480   _am_result=GNU
3481fi
3482# Now try BSD make style include.
3483if test "$am__include" = "#"; then
3484   echo '.include "confinc"' > confmf
3485   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3486      am__include=.include
3487      am__quote="\""
3488      _am_result=BSD
3489   fi
3490fi
3491
3492
3493{ echo "$as_me:$LINENO: result: $_am_result" >&5
3494echo "${ECHO_T}$_am_result" >&6; }
3495rm -f confinc confmf
3496
3497# Check whether --enable-dependency-tracking was given.
3498if test "${enable_dependency_tracking+set}" = set; then
3499  enableval=$enable_dependency_tracking;
3500fi
3501
3502if test "x$enable_dependency_tracking" != xno; then
3503  am_depcomp="$ac_aux_dir/depcomp"
3504  AMDEPBACKSLASH='\'
3505fi
3506 if test "x$enable_dependency_tracking" != xno; then
3507  AMDEP_TRUE=
3508  AMDEP_FALSE='#'
3509else
3510  AMDEP_TRUE='#'
3511  AMDEP_FALSE=
3512fi
3513
3514
3515
3516depcc="$CC"   am_compiler_list=
3517
3518{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3519echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3520if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3521  echo $ECHO_N "(cached) $ECHO_C" >&6
3522else
3523  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3524  # We make a subdir and do the tests there.  Otherwise we can end up
3525  # making bogus files that we don't know about and never remove.  For
3526  # instance it was reported that on HP-UX the gcc test will end up
3527  # making a dummy file named `D' -- because `-MD' means `put the output
3528  # in D'.
3529  mkdir conftest.dir
3530  # Copy depcomp to subdir because otherwise we won't find it if we're
3531  # using a relative directory.
3532  cp "$am_depcomp" conftest.dir
3533  cd conftest.dir
3534  # We will build objects and dependencies in a subdirectory because
3535  # it helps to detect inapplicable dependency modes.  For instance
3536  # both Tru64's cc and ICC support -MD to output dependencies as a
3537  # side effect of compilation, but ICC will put the dependencies in
3538  # the current directory while Tru64 will put them in the object
3539  # directory.
3540  mkdir sub
3541
3542  am_cv_CC_dependencies_compiler_type=none
3543  if test "$am_compiler_list" = ""; then
3544     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3545  fi
3546  for depmode in $am_compiler_list; do
3547    # Setup a source with many dependencies, because some compilers
3548    # like to wrap large dependency lists on column 80 (with \), and
3549    # we should not choose a depcomp mode which is confused by this.
3550    #
3551    # We need to recreate these files for each test, as the compiler may
3552    # overwrite some of them when testing with obscure command lines.
3553    # This happens at least with the AIX C compiler.
3554    : > sub/conftest.c
3555    for i in 1 2 3 4 5 6; do
3556      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3557      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3558      # Solaris 8's {/usr,}/bin/sh.
3559      touch sub/conftst$i.h
3560    done
3561    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3562
3563    case $depmode in
3564    nosideeffect)
3565      # after this tag, mechanisms are not by side-effect, so they'll
3566      # only be used when explicitly requested
3567      if test "x$enable_dependency_tracking" = xyes; then
3568	continue
3569      else
3570	break
3571      fi
3572      ;;
3573    none) break ;;
3574    esac
3575    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3576    # mode.  It turns out that the SunPro C++ compiler does not properly
3577    # handle `-M -o', and we need to detect this.
3578    if depmode=$depmode \
3579       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3580       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3581       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3582         >/dev/null 2>conftest.err &&
3583       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3584       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3585       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3586       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3587      # icc doesn't choke on unknown options, it will just issue warnings
3588      # or remarks (even with -Werror).  So we grep stderr for any message
3589      # that says an option was ignored or not supported.
3590      # When given -MP, icc 7.0 and 7.1 complain thusly:
3591      #   icc: Command line warning: ignoring option '-M'; no argument required
3592      # The diagnosis changed in icc 8.0:
3593      #   icc: Command line remark: option '-MP' not supported
3594      if (grep 'ignoring option' conftest.err ||
3595          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3596        am_cv_CC_dependencies_compiler_type=$depmode
3597        break
3598      fi
3599    fi
3600  done
3601
3602  cd ..
3603  rm -rf conftest.dir
3604else
3605  am_cv_CC_dependencies_compiler_type=none
3606fi
3607
3608fi
3609{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3610echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3611CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3612
3613 if
3614  test "x$enable_dependency_tracking" != xno \
3615  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3616  am__fastdepCC_TRUE=
3617  am__fastdepCC_FALSE='#'
3618else
3619  am__fastdepCC_TRUE='#'
3620  am__fastdepCC_FALSE=
3621fi
3622
3623
3624# Find a good install program.  We prefer a C program (faster),
3625# so one script is as good as another.  But avoid the broken or
3626# incompatible versions:
3627# SysV /etc/install, /usr/sbin/install
3628# SunOS /usr/etc/install
3629# IRIX /sbin/install
3630# AIX /bin/install
3631# AmigaOS /C/install, which installs bootblocks on floppy discs
3632# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3633# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3634# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3635# OS/2's system install, which has a completely different semantic
3636# ./install, which can be erroneously created by make from ./install.sh.
3637{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3638echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3639if test -z "$INSTALL"; then
3640if test "${ac_cv_path_install+set}" = set; then
3641  echo $ECHO_N "(cached) $ECHO_C" >&6
3642else
3643  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644for as_dir in $PATH
3645do
3646  IFS=$as_save_IFS
3647  test -z "$as_dir" && as_dir=.
3648  # Account for people who put trailing slashes in PATH elements.
3649case $as_dir/ in
3650  ./ | .// | /cC/* | \
3651  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3652  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3653  /usr/ucb/* ) ;;
3654  *)
3655    # OSF1 and SCO ODT 3.0 have their own names for install.
3656    # Don't use installbsd from OSF since it installs stuff as root
3657    # by default.
3658    for ac_prog in ginstall scoinst install; do
3659      for ac_exec_ext in '' $ac_executable_extensions; do
3660	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3661	  if test $ac_prog = install &&
3662	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3663	    # AIX install.  It has an incompatible calling convention.
3664	    :
3665	  elif test $ac_prog = install &&
3666	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3667	    # program-specific install script used by HP pwplus--don't use.
3668	    :
3669	  else
3670	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3671	    break 3
3672	  fi
3673	fi
3674      done
3675    done
3676    ;;
3677esac
3678done
3679IFS=$as_save_IFS
3680
3681
3682fi
3683  if test "${ac_cv_path_install+set}" = set; then
3684    INSTALL=$ac_cv_path_install
3685  else
3686    # As a last resort, use the slow shell script.  Don't cache a
3687    # value for INSTALL within a source directory, because that will
3688    # break other packages using the cache if that directory is
3689    # removed, or if the value is a relative name.
3690    INSTALL=$ac_install_sh
3691  fi
3692fi
3693{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3694echo "${ECHO_T}$INSTALL" >&6; }
3695
3696# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3697# It thinks the first close brace ends the variable substitution.
3698test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3699
3700test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3701
3702test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3703
3704for ac_prog in 'bison -y' byacc
3705do
3706  # Extract the first word of "$ac_prog", so it can be a program name with args.
3707set dummy $ac_prog; ac_word=$2
3708{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3710if test "${ac_cv_prog_YACC+set}" = set; then
3711  echo $ECHO_N "(cached) $ECHO_C" >&6
3712else
3713  if test -n "$YACC"; then
3714  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3715else
3716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717for as_dir in $PATH
3718do
3719  IFS=$as_save_IFS
3720  test -z "$as_dir" && as_dir=.
3721  for ac_exec_ext in '' $ac_executable_extensions; do
3722  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3723    ac_cv_prog_YACC="$ac_prog"
3724    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725    break 2
3726  fi
3727done
3728done
3729IFS=$as_save_IFS
3730
3731fi
3732fi
3733YACC=$ac_cv_prog_YACC
3734if test -n "$YACC"; then
3735  { echo "$as_me:$LINENO: result: $YACC" >&5
3736echo "${ECHO_T}$YACC" >&6; }
3737else
3738  { echo "$as_me:$LINENO: result: no" >&5
3739echo "${ECHO_T}no" >&6; }
3740fi
3741
3742
3743  test -n "$YACC" && break
3744done
3745test -n "$YACC" || YACC="yacc"
3746
3747
3748
3749  { echo "$as_me:$LINENO: checking whether to use Java" >&5
3750echo $ECHO_N "checking whether to use Java... $ECHO_C" >&6; }
3751  # Check whether --enable-java was given.
3752if test "${enable_java+set}" = set; then
3753  enableval=$enable_java; JAVA_CHOICE="$enableval"
3754else
3755  JAVA_CHOICE=yes
3756fi
3757
3758  { echo "$as_me:$LINENO: result: $JAVA_CHOICE" >&5
3759echo "${ECHO_T}$JAVA_CHOICE" >&6; }
3760  if test "$JAVA_CHOICE" = yes; then
3761    # Check whether --enable-native-java was given.
3762if test "${enable_native_java+set}" = set; then
3763  enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
3764fi
3765
3766  fi
3767
3768
3769
3770
3771ac_ext=c
3772ac_cpp='$CPP $CPPFLAGS'
3773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775ac_compiler_gnu=$ac_cv_c_compiler_gnu
3776{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3777echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3778# On Suns, sometimes $CPP names a directory.
3779if test -n "$CPP" && test -d "$CPP"; then
3780  CPP=
3781fi
3782if test -z "$CPP"; then
3783  if test "${ac_cv_prog_CPP+set}" = set; then
3784  echo $ECHO_N "(cached) $ECHO_C" >&6
3785else
3786      # Double quotes because CPP needs to be expanded
3787    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3788    do
3789      ac_preproc_ok=false
3790for ac_c_preproc_warn_flag in '' yes
3791do
3792  # Use a header file that comes with gcc, so configuring glibc
3793  # with a fresh cross-compiler works.
3794  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3795  # <limits.h> exists even on freestanding compilers.
3796  # On the NeXT, cc -E runs the code through the compiler's parser,
3797  # not just through cpp. "Syntax error" is here to catch this case.
3798  cat >conftest.$ac_ext <<_ACEOF
3799/* confdefs.h.  */
3800_ACEOF
3801cat confdefs.h >>conftest.$ac_ext
3802cat >>conftest.$ac_ext <<_ACEOF
3803/* end confdefs.h.  */
3804#ifdef __STDC__
3805# include <limits.h>
3806#else
3807# include <assert.h>
3808#endif
3809		     Syntax error
3810_ACEOF
3811if { (ac_try="$ac_cpp conftest.$ac_ext"
3812case "(($ac_try" in
3813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814  *) ac_try_echo=$ac_try;;
3815esac
3816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3817  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3818  ac_status=$?
3819  grep -v '^ *+' conftest.er1 >conftest.err
3820  rm -f conftest.er1
3821  cat conftest.err >&5
3822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823  (exit $ac_status); } >/dev/null && {
3824	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3825	 test ! -s conftest.err
3826       }; then
3827  :
3828else
3829  echo "$as_me: failed program was:" >&5
3830sed 's/^/| /' conftest.$ac_ext >&5
3831
3832  # Broken: fails on valid input.
3833continue
3834fi
3835
3836rm -f conftest.err conftest.$ac_ext
3837
3838  # OK, works on sane cases.  Now check whether nonexistent headers
3839  # can be detected and how.
3840  cat >conftest.$ac_ext <<_ACEOF
3841/* confdefs.h.  */
3842_ACEOF
3843cat confdefs.h >>conftest.$ac_ext
3844cat >>conftest.$ac_ext <<_ACEOF
3845/* end confdefs.h.  */
3846#include <ac_nonexistent.h>
3847_ACEOF
3848if { (ac_try="$ac_cpp conftest.$ac_ext"
3849case "(($ac_try" in
3850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851  *) ac_try_echo=$ac_try;;
3852esac
3853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3854  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3855  ac_status=$?
3856  grep -v '^ *+' conftest.er1 >conftest.err
3857  rm -f conftest.er1
3858  cat conftest.err >&5
3859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860  (exit $ac_status); } >/dev/null && {
3861	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3862	 test ! -s conftest.err
3863       }; then
3864  # Broken: success on invalid input.
3865continue
3866else
3867  echo "$as_me: failed program was:" >&5
3868sed 's/^/| /' conftest.$ac_ext >&5
3869
3870  # Passes both tests.
3871ac_preproc_ok=:
3872break
3873fi
3874
3875rm -f conftest.err conftest.$ac_ext
3876
3877done
3878# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3879rm -f conftest.err conftest.$ac_ext
3880if $ac_preproc_ok; then
3881  break
3882fi
3883
3884    done
3885    ac_cv_prog_CPP=$CPP
3886
3887fi
3888  CPP=$ac_cv_prog_CPP
3889else
3890  ac_cv_prog_CPP=$CPP
3891fi
3892{ echo "$as_me:$LINENO: result: $CPP" >&5
3893echo "${ECHO_T}$CPP" >&6; }
3894ac_preproc_ok=false
3895for ac_c_preproc_warn_flag in '' yes
3896do
3897  # Use a header file that comes with gcc, so configuring glibc
3898  # with a fresh cross-compiler works.
3899  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3900  # <limits.h> exists even on freestanding compilers.
3901  # On the NeXT, cc -E runs the code through the compiler's parser,
3902  # not just through cpp. "Syntax error" is here to catch this case.
3903  cat >conftest.$ac_ext <<_ACEOF
3904/* confdefs.h.  */
3905_ACEOF
3906cat confdefs.h >>conftest.$ac_ext
3907cat >>conftest.$ac_ext <<_ACEOF
3908/* end confdefs.h.  */
3909#ifdef __STDC__
3910# include <limits.h>
3911#else
3912# include <assert.h>
3913#endif
3914		     Syntax error
3915_ACEOF
3916if { (ac_try="$ac_cpp conftest.$ac_ext"
3917case "(($ac_try" in
3918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919  *) ac_try_echo=$ac_try;;
3920esac
3921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3923  ac_status=$?
3924  grep -v '^ *+' conftest.er1 >conftest.err
3925  rm -f conftest.er1
3926  cat conftest.err >&5
3927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928  (exit $ac_status); } >/dev/null && {
3929	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3930	 test ! -s conftest.err
3931       }; then
3932  :
3933else
3934  echo "$as_me: failed program was:" >&5
3935sed 's/^/| /' conftest.$ac_ext >&5
3936
3937  # Broken: fails on valid input.
3938continue
3939fi
3940
3941rm -f conftest.err conftest.$ac_ext
3942
3943  # OK, works on sane cases.  Now check whether nonexistent headers
3944  # can be detected and how.
3945  cat >conftest.$ac_ext <<_ACEOF
3946/* confdefs.h.  */
3947_ACEOF
3948cat confdefs.h >>conftest.$ac_ext
3949cat >>conftest.$ac_ext <<_ACEOF
3950/* end confdefs.h.  */
3951#include <ac_nonexistent.h>
3952_ACEOF
3953if { (ac_try="$ac_cpp conftest.$ac_ext"
3954case "(($ac_try" in
3955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956  *) ac_try_echo=$ac_try;;
3957esac
3958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3960  ac_status=$?
3961  grep -v '^ *+' conftest.er1 >conftest.err
3962  rm -f conftest.er1
3963  cat conftest.err >&5
3964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965  (exit $ac_status); } >/dev/null && {
3966	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3967	 test ! -s conftest.err
3968       }; then
3969  # Broken: success on invalid input.
3970continue
3971else
3972  echo "$as_me: failed program was:" >&5
3973sed 's/^/| /' conftest.$ac_ext >&5
3974
3975  # Passes both tests.
3976ac_preproc_ok=:
3977break
3978fi
3979
3980rm -f conftest.err conftest.$ac_ext
3981
3982done
3983# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3984rm -f conftest.err conftest.$ac_ext
3985if $ac_preproc_ok; then
3986  :
3987else
3988  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3989See \`config.log' for more details." >&5
3990echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3991See \`config.log' for more details." >&2;}
3992   { (exit 1); exit 1; }; }
3993fi
3994
3995ac_ext=c
3996ac_cpp='$CPP $CPPFLAGS'
3997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000
4001
4002{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4003echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4004if test "${ac_cv_path_GREP+set}" = set; then
4005  echo $ECHO_N "(cached) $ECHO_C" >&6
4006else
4007  # Extract the first word of "grep ggrep" to use in msg output
4008if test -z "$GREP"; then
4009set dummy grep ggrep; ac_prog_name=$2
4010if test "${ac_cv_path_GREP+set}" = set; then
4011  echo $ECHO_N "(cached) $ECHO_C" >&6
4012else
4013  ac_path_GREP_found=false
4014# Loop through the user's path and test for each of PROGNAME-LIST
4015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4017do
4018  IFS=$as_save_IFS
4019  test -z "$as_dir" && as_dir=.
4020  for ac_prog in grep ggrep; do
4021  for ac_exec_ext in '' $ac_executable_extensions; do
4022    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4023    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4024    # Check for GNU ac_path_GREP and select it if it is found.
4025  # Check for GNU $ac_path_GREP
4026case `"$ac_path_GREP" --version 2>&1` in
4027*GNU*)
4028  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4029*)
4030  ac_count=0
4031  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4032  while :
4033  do
4034    cat "conftest.in" "conftest.in" >"conftest.tmp"
4035    mv "conftest.tmp" "conftest.in"
4036    cp "conftest.in" "conftest.nl"
4037    echo 'GREP' >> "conftest.nl"
4038    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4039    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4040    ac_count=`expr $ac_count + 1`
4041    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4042      # Best one so far, save it but keep looking for a better one
4043      ac_cv_path_GREP="$ac_path_GREP"
4044      ac_path_GREP_max=$ac_count
4045    fi
4046    # 10*(2^10) chars as input seems more than enough
4047    test $ac_count -gt 10 && break
4048  done
4049  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4050esac
4051
4052
4053    $ac_path_GREP_found && break 3
4054  done
4055done
4056
4057done
4058IFS=$as_save_IFS
4059
4060
4061fi
4062
4063GREP="$ac_cv_path_GREP"
4064if test -z "$GREP"; then
4065  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4066echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4067   { (exit 1); exit 1; }; }
4068fi
4069
4070else
4071  ac_cv_path_GREP=$GREP
4072fi
4073
4074
4075fi
4076{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4077echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4078 GREP="$ac_cv_path_GREP"
4079
4080
4081{ echo "$as_me:$LINENO: checking for egrep" >&5
4082echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4083if test "${ac_cv_path_EGREP+set}" = set; then
4084  echo $ECHO_N "(cached) $ECHO_C" >&6
4085else
4086  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4087   then ac_cv_path_EGREP="$GREP -E"
4088   else
4089     # Extract the first word of "egrep" to use in msg output
4090if test -z "$EGREP"; then
4091set dummy egrep; ac_prog_name=$2
4092if test "${ac_cv_path_EGREP+set}" = set; then
4093  echo $ECHO_N "(cached) $ECHO_C" >&6
4094else
4095  ac_path_EGREP_found=false
4096# Loop through the user's path and test for each of PROGNAME-LIST
4097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4099do
4100  IFS=$as_save_IFS
4101  test -z "$as_dir" && as_dir=.
4102  for ac_prog in egrep; do
4103  for ac_exec_ext in '' $ac_executable_extensions; do
4104    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4105    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4106    # Check for GNU ac_path_EGREP and select it if it is found.
4107  # Check for GNU $ac_path_EGREP
4108case `"$ac_path_EGREP" --version 2>&1` in
4109*GNU*)
4110  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4111*)
4112  ac_count=0
4113  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4114  while :
4115  do
4116    cat "conftest.in" "conftest.in" >"conftest.tmp"
4117    mv "conftest.tmp" "conftest.in"
4118    cp "conftest.in" "conftest.nl"
4119    echo 'EGREP' >> "conftest.nl"
4120    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4121    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4122    ac_count=`expr $ac_count + 1`
4123    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4124      # Best one so far, save it but keep looking for a better one
4125      ac_cv_path_EGREP="$ac_path_EGREP"
4126      ac_path_EGREP_max=$ac_count
4127    fi
4128    # 10*(2^10) chars as input seems more than enough
4129    test $ac_count -gt 10 && break
4130  done
4131  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4132esac
4133
4134
4135    $ac_path_EGREP_found && break 3
4136  done
4137done
4138
4139done
4140IFS=$as_save_IFS
4141
4142
4143fi
4144
4145EGREP="$ac_cv_path_EGREP"
4146if test -z "$EGREP"; then
4147  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4148echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4149   { (exit 1); exit 1; }; }
4150fi
4151
4152else
4153  ac_cv_path_EGREP=$EGREP
4154fi
4155
4156
4157   fi
4158fi
4159{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4160echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4161 EGREP="$ac_cv_path_EGREP"
4162
4163
4164
4165
4166  cat >conftest.$ac_ext <<_ACEOF
4167/* confdefs.h.  */
4168_ACEOF
4169cat confdefs.h >>conftest.$ac_ext
4170cat >>conftest.$ac_ext <<_ACEOF
4171/* end confdefs.h.  */
4172
4173#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
4174  yes
4175#endif
4176
4177_ACEOF
4178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179  $EGREP "yes" >/dev/null 2>&1; then
4180  CLASSPATH_SEPARATOR=';'
4181else
4182  CLASSPATH_SEPARATOR=':'
4183fi
4184rm -f conftest*
4185
4186  source_version=1.3
4187  test -n "$source_version" || {
4188    { { echo "$as_me:$LINENO: error: missing source-version argument to gt_JAVACOMP" >&5
4189echo "$as_me: error: missing source-version argument to gt_JAVACOMP" >&2;}
4190   { (exit 1); exit 1; }; }
4191  }
4192  target_version=1.1
4193  case "$source_version" in
4194    1.3) goodcode='class conftest {}'
4195         failcode='class conftestfail { static { assert(true); } }' ;;
4196    1.4) goodcode='class conftest     { static { assert(true); } }'
4197         failcode='class conftestfail<T> { T foo() { return null; } }' ;;
4198    1.5) goodcode='class conftest<T>     { T foo() { return null; } }'
4199         failcode='class conftestfail syntax error' ;;
4200    *) { { echo "$as_me:$LINENO: error: invalid source-version argument to gt_JAVACOMP: $source_version" >&5
4201echo "$as_me: error: invalid source-version argument to gt_JAVACOMP: $source_version" >&2;}
4202   { (exit 1); exit 1; }; } ;;
4203  esac
4204  case "$target_version" in
4205    1.1) cfversion=45 ;;
4206    1.2) cfversion=46 ;;
4207    1.3) cfversion=47 ;;
4208    1.4) cfversion=48 ;;
4209    1.5) cfversion=49 ;;
4210    1.6) cfversion=50 ;;
4211    *) { { echo "$as_me:$LINENO: error: invalid target-version argument to gt_JAVACOMP: $target_version" >&5
4212echo "$as_me: error: invalid target-version argument to gt_JAVACOMP: $target_version" >&2;}
4213   { (exit 1); exit 1; }; } ;;
4214  esac
4215  # Function to output the classfile version of a file (8th byte) in decimal.
4216  if od -A x < /dev/null >/dev/null 2>/dev/null; then
4217    # Use POSIX od.
4218    func_classfile_version ()
4219    {
4220      od -A n -t d1 -j 7 -N 1 "$1"
4221    }
4222  else
4223    # Use BSD hexdump.
4224    func_classfile_version ()
4225    {
4226      dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "'
4227      echo
4228    }
4229  fi
4230  { echo "$as_me:$LINENO: checking for Java compiler" >&5
4231echo $ECHO_N "checking for Java compiler... $ECHO_C" >&6; }
4232                                                                                      CONF_JAVAC=
4233  HAVE_JAVAC_ENVVAR=
4234  HAVE_GCJ_C=
4235  HAVE_JAVAC=
4236  HAVE_JIKES=
4237  HAVE_JAVACOMP=
4238  cat > conftestlib.java <<EOF
4239public class conftestlib {
4240  public static void main (String[] args) {
4241  }
4242}
4243EOF
4244  echo "$goodcode" > conftest.java
4245  echo "$failcode" > conftestfail.java
4246        if test -n "$JAVAC"; then
4247        if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then
4248            if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
4249                rm -f conftest.class
4250        if { echo "$as_me:4250: $JAVAC -d . conftest.java" >&5
4251             $JAVAC -d . conftest.java >&5 2>&1
4252           } \
4253           && test -f conftest.class; then
4254          CONF_JAVAC="$JAVAC"
4255          HAVE_JAVAC_ENVVAR=1
4256          HAVE_JAVACOMP=1
4257        fi
4258      else
4259        if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
4260                              javac_works=
4261          rm -f conftest.class
4262          if { echo "$as_me:4262: $JAVAC -d . conftest.java" >&5
4263               $JAVAC -d . conftest.java >&5 2>&1
4264             } \
4265             && test -f conftest.class; then
4266            javac_works=1
4267          fi
4268          javac_noassert_works=
4269          rm -f conftest.class
4270          if { echo "$as_me:4270: $JAVAC -fno-assert -d . conftest.java" >&5
4271               $JAVAC -fno-assert -d . conftest.java >&5 2>&1
4272             } \
4273             && test -f conftest.class; then
4274            javac_noassert_works=1
4275          fi
4276          if test -n "$javac_works" && test -n "$javac_noassert_works"; then
4277            rm -f conftestfail.class
4278            if { echo "$as_me:4278: $JAVAC -d . conftestfail.java" >&5
4279                 $JAVAC -d . conftestfail.java >&5 2>&1
4280               } \
4281               && test -f conftestfail.class \
4282               && ! { echo "$as_me:4282: $JAVAC -fno-assert -d . conftestfail.java" >&5
4283                      $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1
4284                    }; then
4285                            javac_works=
4286            fi
4287          fi
4288          if test -n "$javac_works"; then
4289            CONF_JAVAC="$JAVAC"
4290            HAVE_JAVAC_ENVVAR=1
4291            HAVE_JAVACOMP=1
4292          else
4293            if test -n "$javac_noassert_works"; then
4294              CONF_JAVAC="$JAVAC -fno-assert"
4295              HAVE_JAVAC_ENVVAR=1
4296              HAVE_JAVACOMP=1
4297            fi
4298          fi
4299        fi
4300      fi
4301    else
4302                  rm -f conftest.class
4303      if { echo "$as_me:4303: $JAVAC -d . conftest.java" >&5
4304           $JAVAC -d . conftest.java >&5 2>&1
4305         } \
4306         && test -f conftest.class \
4307         && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
4308                rm -f conftest.class
4309        rm -f conftestfail.class
4310        if { echo "$as_me:4310: $JAVAC -source $source_version -d . conftest.java" >&5
4311             $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1
4312           } \
4313           && test -f conftest.class \
4314           && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
4315           && { echo "$as_me:4315: $JAVAC -d . conftestfail.java" >&5
4316                $JAVAC -d . conftestfail.java >&5 2>&1
4317              } \
4318           && test -f conftestfail.class \
4319           && ! { echo "$as_me:4319: $JAVAC -source $source_version -d . conftestfail.java" >&5
4320                  $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1
4321                }; then
4322          CONF_JAVAC="$JAVAC -source $source_version"
4323          HAVE_JAVAC_ENVVAR=1
4324          HAVE_JAVACOMP=1
4325        else
4326          CONF_JAVAC="$JAVAC"
4327          HAVE_JAVAC_ENVVAR=1
4328          HAVE_JAVACOMP=1
4329        fi
4330      else
4331                        rm -f conftest.class
4332        if { echo "$as_me:4332: $JAVAC -target $target_version -d . conftest.java" >&5
4333             $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1
4334           } \
4335           && test -f conftest.class \
4336           && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
4337                    rm -f conftest.class
4338          rm -f conftestfail.class
4339          if { echo "$as_me:4339: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
4340               $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
4341             } \
4342             && test -f conftest.class \
4343             && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
4344             && { echo "$as_me:4344: $JAVAC -target $target_version -d . conftestfail.java" >&5
4345                  $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1
4346                } \
4347             && test -f conftestfail.class \
4348             && ! { echo "$as_me:4348: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5
4349                    $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
4350                  }; then
4351            CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
4352            HAVE_JAVAC_ENVVAR=1
4353            HAVE_JAVACOMP=1
4354          else
4355            CONF_JAVAC="$JAVAC -target $target_version"
4356            HAVE_JAVAC_ENVVAR=1
4357            HAVE_JAVACOMP=1
4358          fi
4359        else
4360                                        rm -f conftest.class
4361          if { echo "$as_me:4361: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
4362               $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
4363             } \
4364             && test -f conftest.class \
4365             && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
4366            CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
4367            HAVE_JAVAC_ENVVAR=1
4368            HAVE_JAVACOMP=1
4369          fi
4370        fi
4371      fi
4372    fi
4373  fi
4374  if test -z "$HAVE_JAVACOMP"; then
4375                # Extract the first word of "gcj", so it can be a program name with args.
4376set dummy gcj; ac_word=$2
4377:
4378if test "${ac_cv_prog_HAVE_GCJ_IN_PATH+set}" = set; then
4379  echo $ECHO_N "(cached) $ECHO_C" >&6
4380else
4381  if test -n "$HAVE_GCJ_IN_PATH"; then
4382  ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test.
4383else
4384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH
4386do
4387  IFS=$as_save_IFS
4388  test -z "$as_dir" && as_dir=.
4389  for ac_exec_ext in '' $ac_executable_extensions; do
4390  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4391    ac_cv_prog_HAVE_GCJ_IN_PATH="yes"
4392    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4393    break 2
4394  fi
4395done
4396done
4397IFS=$as_save_IFS
4398
4399fi
4400fi
4401HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH
4402if test -n "$HAVE_GCJ_IN_PATH"; then
4403  :
4404else
4405  :
4406fi
4407
4408
4409    # Extract the first word of "javac", so it can be a program name with args.
4410set dummy javac; ac_word=$2
4411:
4412if test "${ac_cv_prog_HAVE_JAVAC_IN_PATH+set}" = set; then
4413  echo $ECHO_N "(cached) $ECHO_C" >&6
4414else
4415  if test -n "$HAVE_JAVAC_IN_PATH"; then
4416  ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test.
4417else
4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419for as_dir in $PATH
4420do
4421  IFS=$as_save_IFS
4422  test -z "$as_dir" && as_dir=.
4423  for ac_exec_ext in '' $ac_executable_extensions; do
4424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425    ac_cv_prog_HAVE_JAVAC_IN_PATH="yes"
4426    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427    break 2
4428  fi
4429done
4430done
4431IFS=$as_save_IFS
4432
4433fi
4434fi
4435HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH
4436if test -n "$HAVE_JAVAC_IN_PATH"; then
4437  :
4438else
4439  :
4440fi
4441
4442
4443    # Extract the first word of "jikes", so it can be a program name with args.
4444set dummy jikes; ac_word=$2
4445:
4446if test "${ac_cv_prog_HAVE_JIKES_IN_PATH+set}" = set; then
4447  echo $ECHO_N "(cached) $ECHO_C" >&6
4448else
4449  if test -n "$HAVE_JIKES_IN_PATH"; then
4450  ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test.
4451else
4452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453for as_dir in $PATH
4454do
4455  IFS=$as_save_IFS
4456  test -z "$as_dir" && as_dir=.
4457  for ac_exec_ext in '' $ac_executable_extensions; do
4458  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459    ac_cv_prog_HAVE_JIKES_IN_PATH="yes"
4460    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461    break 2
4462  fi
4463done
4464done
4465IFS=$as_save_IFS
4466
4467fi
4468fi
4469HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH
4470if test -n "$HAVE_JIKES_IN_PATH"; then
4471  :
4472else
4473  :
4474fi
4475
4476
4477                if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then
4478            if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then
4479                if { echo "$as_me:4479: gcj -C -d . conftestlib.java" >&5
4480             gcj -C -d . conftestlib.java >&5 2>&1
4481           }; then
4482                                        if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
4483            rm -f conftest.class
4484            if { echo "$as_me:4484: gcj -C -d . conftest.java" >&5
4485                 gcj -C -d . conftest.java >&5 2>&1
4486               } \
4487               && test -f conftest.class; then
4488              CONF_JAVAC="gcj -C"
4489              HAVE_GCJ_C=1
4490              HAVE_JAVACOMP=1
4491            fi
4492          else
4493            if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
4494                                          rm -f conftest.class
4495              if { echo "$as_me:4495: gcj -C -fno-assert -d . conftest.java" >&5
4496                   gcj -C -fno-assert -d . conftest.java >&5 2>&1
4497                 } \
4498                 && test -f conftest.class; then
4499                CONF_JAVAC="gcj -C -fno-assert"
4500                HAVE_GCJ_C=1
4501                HAVE_JAVACOMP=1
4502              else
4503                rm -f conftest.class
4504                if { echo "$as_me:4504: gcj -C -d . conftest.java" >&5
4505                     gcj -C -d . conftest.java >&5 2>&1
4506                   } \
4507                   && test -f conftest.class; then
4508                  CONF_JAVAC="gcj -C"
4509                  HAVE_GCJ_C=1
4510                  HAVE_JAVACOMP=1
4511                fi
4512              fi
4513            fi
4514          fi
4515        fi
4516      fi
4517    fi
4518    if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then
4519            if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \
4520         && ( if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi ); then
4521                                rm -f conftest.class
4522        if { echo "$as_me:4522: javac -d . conftest.java" >&5
4523             javac -d . conftest.java >&5 2>&1
4524           } \
4525           && test -f conftest.class \
4526           && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
4527                    rm -f conftest.class
4528          rm -f conftestfail.class
4529          if { echo "$as_me:4529: javac -source $source_version -d . conftest.java" >&5
4530               javac -source "$source_version" -d . conftest.java >&5 2>&1
4531             } \
4532             && test -f conftest.class \
4533             && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
4534             && { echo "$as_me:4534: javac -d . conftestfail.java" >&5
4535                  javac -d . conftestfail.java >&5 2>&1
4536                } \
4537             && test -f conftestfail.class \
4538             && ! { echo "$as_me:4538: javac -source $source_version -d . conftestfail.java" >&5
4539                    javac -source "$source_version" -d . conftestfail.java >&5 2>&1
4540                  }; then
4541            CONF_JAVAC="javac -source $source_version"
4542            HAVE_JAVAC=1
4543            HAVE_JAVACOMP=1
4544          else
4545            CONF_JAVAC="javac"
4546            HAVE_JAVAC=1
4547            HAVE_JAVACOMP=1
4548          fi
4549        else
4550                              rm -f conftest.class
4551          if { echo "$as_me:4551: javac -target $target_version -d . conftest.java" >&5
4552               javac -target "$target_version" -d . conftest.java >&5 2>&1
4553             } \
4554             && test -f conftest.class \
4555             && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
4556                        rm -f conftest.class
4557            rm -f conftestfail.class
4558            if { echo "$as_me:4558: javac -target $target_version -source $source_version -d . conftest.java" >&5
4559                 javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
4560               } \
4561               && test -f conftest.class \
4562               && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
4563               && { echo "$as_me:4563: javac -target $target_version -d . conftestfail.java" >&5
4564                    javac -target "$target_version" -d . conftestfail.java >&5 2>&1
4565                  } \
4566               && test -f conftestfail.class \
4567               && ! { echo "$as_me:4567: javac -target $target_version -source $source_version -d . conftestfail.java" >&5
4568                      javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
4569                    }; then
4570              CONF_JAVAC="javac -target $target_version -source $source_version"
4571              HAVE_JAVAC=1
4572              HAVE_JAVACOMP=1
4573            else
4574              CONF_JAVAC="javac -target $target_version"
4575              HAVE_JAVAC=1
4576              HAVE_JAVACOMP=1
4577            fi
4578          else
4579                                                rm -f conftest.class
4580            if { echo "$as_me:4580: javac -target $target_version -source $source_version -d . conftest.java" >&5
4581                 javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
4582               } \
4583               && test -f conftest.class \
4584               && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
4585              CONF_JAVAC="javac -target $target_version -source $source_version"
4586              HAVE_JAVAC=1
4587              HAVE_JAVACOMP=1
4588            fi
4589          fi
4590        fi
4591      fi
4592    fi
4593    if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then
4594            if { jikes >/dev/null 2>/dev/null || test $? = 1; } \
4595         && (
4596              # See if the existing CLASSPATH is sufficient to make jikes work.
4597              unset JAVA_HOME
4598              jikes conftestlib.java >&5 2>&1
4599              error=$?
4600              rm -f conftestlib.class
4601              exit $error
4602            ); then
4603                                if test "$source_version" = 1.3; then
4604          CONF_JAVAC="jikes"
4605          HAVE_JIKES=1
4606          HAVE_JAVACOMP=1
4607        fi
4608      fi
4609    fi
4610  fi
4611  rm -f conftest*.java conftest*.class
4612  if test -n "$HAVE_JAVACOMP"; then
4613    ac_result="$CONF_JAVAC"
4614  else
4615    ac_result="no"
4616  fi
4617  { echo "$as_me:$LINENO: result: $ac_result" >&5
4618echo "${ECHO_T}$ac_result" >&6; }
4619
4620
4621
4622
4623
4624
4625
4626
4627# Extract the first word of "jar", so it can be a program name with args.
4628set dummy jar; ac_word=$2
4629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631if test "${ac_cv_prog_JAR+set}" = set; then
4632  echo $ECHO_N "(cached) $ECHO_C" >&6
4633else
4634  if test -n "$JAR"; then
4635  ac_cv_prog_JAR="$JAR" # Let the user override the test.
4636else
4637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638for as_dir in $PATH
4639do
4640  IFS=$as_save_IFS
4641  test -z "$as_dir" && as_dir=.
4642  for ac_exec_ext in '' $ac_executable_extensions; do
4643  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644    ac_cv_prog_JAR="jar"
4645    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646    break 2
4647  fi
4648done
4649done
4650IFS=$as_save_IFS
4651
4652fi
4653fi
4654JAR=$ac_cv_prog_JAR
4655if test -n "$JAR"; then
4656  { echo "$as_me:$LINENO: result: $JAR" >&5
4657echo "${ECHO_T}$JAR" >&6; }
4658else
4659  { echo "$as_me:$LINENO: result: no" >&5
4660echo "${ECHO_T}no" >&6; }
4661fi
4662
4663
4664if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
4665  BUILDJAVA=yes
4666else
4667  BUILDJAVA=no
4668fi
4669
4670
4671
4672  { echo "$as_me:$LINENO: checking for preferred C# implementation" >&5
4673echo $ECHO_N "checking for preferred C# implementation... $ECHO_C" >&6; }
4674  # Check whether --enable-csharp was given.
4675if test "${enable_csharp+set}" = set; then
4676  enableval=$enable_csharp; CSHARP_CHOICE="$enableval"
4677else
4678  CSHARP_CHOICE=any
4679fi
4680
4681
4682  { echo "$as_me:$LINENO: result: $CSHARP_CHOICE" >&5
4683echo "${ECHO_T}$CSHARP_CHOICE" >&6; }
4684  case "$CSHARP_CHOICE" in
4685    pnet)
4686
4687cat >>confdefs.h <<\_ACEOF
4688#define CSHARP_CHOICE_PNET 1
4689_ACEOF
4690
4691      ;;
4692    mono)
4693
4694cat >>confdefs.h <<\_ACEOF
4695#define CSHARP_CHOICE_MONO 1
4696_ACEOF
4697
4698      ;;
4699  esac
4700
4701
4702
4703  { echo "$as_me:$LINENO: checking for C# compiler" >&5
4704echo $ECHO_N "checking for C# compiler... $ECHO_C" >&6; }
4705  HAVE_CSHARPCOMP=1
4706        # Extract the first word of "cscc", so it can be a program name with args.
4707set dummy cscc; ac_word=$2
4708:
4709if test "${ac_cv_prog_HAVE_CSCC_IN_PATH+set}" = set; then
4710  echo $ECHO_N "(cached) $ECHO_C" >&6
4711else
4712  if test -n "$HAVE_CSCC_IN_PATH"; then
4713  ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test.
4714else
4715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716for as_dir in $PATH
4717do
4718  IFS=$as_save_IFS
4719  test -z "$as_dir" && as_dir=.
4720  for ac_exec_ext in '' $ac_executable_extensions; do
4721  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722    ac_cv_prog_HAVE_CSCC_IN_PATH="yes"
4723    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724    break 2
4725  fi
4726done
4727done
4728IFS=$as_save_IFS
4729
4730fi
4731fi
4732HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH
4733if test -n "$HAVE_CSCC_IN_PATH"; then
4734  :
4735else
4736  :
4737fi
4738
4739
4740  # Extract the first word of "mcs", so it can be a program name with args.
4741set dummy mcs; ac_word=$2
4742:
4743if test "${ac_cv_prog_HAVE_MCS_IN_PATH+set}" = set; then
4744  echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746  if test -n "$HAVE_MCS_IN_PATH"; then
4747  ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
4748else
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752  IFS=$as_save_IFS
4753  test -z "$as_dir" && as_dir=.
4754  for ac_exec_ext in '' $ac_executable_extensions; do
4755  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756    ac_cv_prog_HAVE_MCS_IN_PATH="yes"
4757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758    break 2
4759  fi
4760done
4761done
4762IFS=$as_save_IFS
4763
4764fi
4765fi
4766HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
4767if test -n "$HAVE_MCS_IN_PATH"; then
4768  :
4769else
4770  :
4771fi
4772
4773
4774  # Extract the first word of "csc", so it can be a program name with args.
4775set dummy csc; ac_word=$2
4776:
4777if test "${ac_cv_prog_HAVE_CSC_IN_PATH+set}" = set; then
4778  echo $ECHO_N "(cached) $ECHO_C" >&6
4779else
4780  if test -n "$HAVE_CSC_IN_PATH"; then
4781  ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
4782else
4783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784for as_dir in $PATH
4785do
4786  IFS=$as_save_IFS
4787  test -z "$as_dir" && as_dir=.
4788  for ac_exec_ext in '' $ac_executable_extensions; do
4789  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790    ac_cv_prog_HAVE_CSC_IN_PATH="yes"
4791    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4792    break 2
4793  fi
4794done
4795done
4796IFS=$as_save_IFS
4797
4798fi
4799fi
4800HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
4801if test -n "$HAVE_CSC_IN_PATH"; then
4802  :
4803else
4804  :
4805fi
4806
4807
4808        for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
4809    case "$impl" in
4810      pnet)
4811        if test -n "$HAVE_CSCC_IN_PATH" \
4812           && cscc --version >/dev/null 2>/dev/null \
4813           && (
4814             # See if pnetlib is well installed.
4815             echo 'class ConfTest { static void Main() { } }' > conftest.cs
4816             cscc -o conftest.exe conftest.cs 2>/dev/null
4817             error=$?
4818             rm -f conftest.cs conftest.exe
4819             exit $error
4820            ); then
4821          HAVE_CSCC=1
4822          ac_result="cscc"
4823          break
4824        fi
4825        ;;
4826      mono)
4827        if test -n "$HAVE_MCS_IN_PATH" \
4828           && mcs --version >/dev/null 2>/dev/null; then
4829          HAVE_MCS=1
4830          ac_result="mcs"
4831          break
4832        fi
4833        ;;
4834      sscli)
4835        if test -n "$HAVE_CSC_IN_PATH" \
4836           && csc -help >/dev/null 2>/dev/null \
4837           && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
4838          HAVE_CSC=1
4839          ac_result="csc"
4840          break
4841        fi
4842        ;;
4843      no)
4844        HAVE_CSHARPCOMP=
4845        ac_result="no"
4846        break
4847        ;;
4848    esac
4849  done
4850  { echo "$as_me:$LINENO: result: $ac_result" >&5
4851echo "${ECHO_T}$ac_result" >&6; }
4852
4853
4854
4855    if test -z "${CSHARPCOMPFLAGS+set}"; then
4856    CSHARPCOMPFLAGS="-O -g"
4857  fi
4858
4859
4860if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
4861  BUILDCSHARP=yes
4862else
4863  BUILDCSHARP=no
4864fi
4865
4866
4867# Make sure we can run config.sub.
4868$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4869  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4870echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4871   { (exit 1); exit 1; }; }
4872
4873{ echo "$as_me:$LINENO: checking build system type" >&5
4874echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4875if test "${ac_cv_build+set}" = set; then
4876  echo $ECHO_N "(cached) $ECHO_C" >&6
4877else
4878  ac_build_alias=$build_alias
4879test "x$ac_build_alias" = x &&
4880  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4881test "x$ac_build_alias" = x &&
4882  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4883echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4884   { (exit 1); exit 1; }; }
4885ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4886  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4887echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4888   { (exit 1); exit 1; }; }
4889
4890fi
4891{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4892echo "${ECHO_T}$ac_cv_build" >&6; }
4893case $ac_cv_build in
4894*-*-*) ;;
4895*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4896echo "$as_me: error: invalid value of canonical build" >&2;}
4897   { (exit 1); exit 1; }; };;
4898esac
4899build=$ac_cv_build
4900ac_save_IFS=$IFS; IFS='-'
4901set x $ac_cv_build
4902shift
4903build_cpu=$1
4904build_vendor=$2
4905shift; shift
4906# Remember, the first character of IFS is used to create $*,
4907# except with old shells:
4908build_os=$*
4909IFS=$ac_save_IFS
4910case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4911
4912
4913{ echo "$as_me:$LINENO: checking host system type" >&5
4914echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4915if test "${ac_cv_host+set}" = set; then
4916  echo $ECHO_N "(cached) $ECHO_C" >&6
4917else
4918  if test "x$host_alias" = x; then
4919  ac_cv_host=$ac_cv_build
4920else
4921  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4922    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4923echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4924   { (exit 1); exit 1; }; }
4925fi
4926
4927fi
4928{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4929echo "${ECHO_T}$ac_cv_host" >&6; }
4930case $ac_cv_host in
4931*-*-*) ;;
4932*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4933echo "$as_me: error: invalid value of canonical host" >&2;}
4934   { (exit 1); exit 1; }; };;
4935esac
4936host=$ac_cv_host
4937ac_save_IFS=$IFS; IFS='-'
4938set x $ac_cv_host
4939shift
4940host_cpu=$1
4941host_vendor=$2
4942shift; shift
4943# Remember, the first character of IFS is used to create $*,
4944# except with old shells:
4945host_os=$*
4946IFS=$ac_save_IFS
4947case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4948
4949
4950
4951
4952
4953
4954if test -n "$ac_tool_prefix"; then
4955  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4956set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4957{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4959if test "${ac_cv_prog_RANLIB+set}" = set; then
4960  echo $ECHO_N "(cached) $ECHO_C" >&6
4961else
4962  if test -n "$RANLIB"; then
4963  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4964else
4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH
4967do
4968  IFS=$as_save_IFS
4969  test -z "$as_dir" && as_dir=.
4970  for ac_exec_ext in '' $ac_executable_extensions; do
4971  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4972    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4973    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4974    break 2
4975  fi
4976done
4977done
4978IFS=$as_save_IFS
4979
4980fi
4981fi
4982RANLIB=$ac_cv_prog_RANLIB
4983if test -n "$RANLIB"; then
4984  { echo "$as_me:$LINENO: result: $RANLIB" >&5
4985echo "${ECHO_T}$RANLIB" >&6; }
4986else
4987  { echo "$as_me:$LINENO: result: no" >&5
4988echo "${ECHO_T}no" >&6; }
4989fi
4990
4991
4992fi
4993if test -z "$ac_cv_prog_RANLIB"; then
4994  ac_ct_RANLIB=$RANLIB
4995  # Extract the first word of "ranlib", so it can be a program name with args.
4996set dummy ranlib; ac_word=$2
4997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4999if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5000  echo $ECHO_N "(cached) $ECHO_C" >&6
5001else
5002  if test -n "$ac_ct_RANLIB"; then
5003  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5004else
5005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH
5007do
5008  IFS=$as_save_IFS
5009  test -z "$as_dir" && as_dir=.
5010  for ac_exec_ext in '' $ac_executable_extensions; do
5011  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5012    ac_cv_prog_ac_ct_RANLIB="ranlib"
5013    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5014    break 2
5015  fi
5016done
5017done
5018IFS=$as_save_IFS
5019
5020fi
5021fi
5022ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5023if test -n "$ac_ct_RANLIB"; then
5024  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5025echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5026else
5027  { echo "$as_me:$LINENO: result: no" >&5
5028echo "${ECHO_T}no" >&6; }
5029fi
5030
5031  if test "x$ac_ct_RANLIB" = x; then
5032    RANLIB=":"
5033  else
5034    case $cross_compiling:$ac_tool_warned in
5035yes:)
5036{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5037whose name does not start with the host triplet.  If you think this
5038configuration is useful to you, please write to autoconf@gnu.org." >&5
5039echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5040whose name does not start with the host triplet.  If you think this
5041configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5042ac_tool_warned=yes ;;
5043esac
5044    RANLIB=$ac_ct_RANLIB
5045  fi
5046else
5047  RANLIB="$ac_cv_prog_RANLIB"
5048fi
5049
5050
5051cat >>confdefs.h <<\_ACEOF
5052#define _GNU_SOURCE 1
5053_ACEOF
5054
5055
5056
5057{ echo "$as_me:$LINENO: checking for AIX" >&5
5058echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
5059cat >conftest.$ac_ext <<_ACEOF
5060/* confdefs.h.  */
5061_ACEOF
5062cat confdefs.h >>conftest.$ac_ext
5063cat >>conftest.$ac_ext <<_ACEOF
5064/* end confdefs.h.  */
5065#ifdef _AIX
5066  yes
5067#endif
5068
5069_ACEOF
5070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5071  $EGREP "yes" >/dev/null 2>&1; then
5072  { echo "$as_me:$LINENO: result: yes" >&5
5073echo "${ECHO_T}yes" >&6; }
5074cat >>confdefs.h <<\_ACEOF
5075#define _ALL_SOURCE 1
5076_ACEOF
5077
5078else
5079  { echo "$as_me:$LINENO: result: no" >&5
5080echo "${ECHO_T}no" >&6; }
5081fi
5082rm -f conftest*
5083
5084
5085{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5086echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5087if test "${ac_cv_header_stdc+set}" = set; then
5088  echo $ECHO_N "(cached) $ECHO_C" >&6
5089else
5090  cat >conftest.$ac_ext <<_ACEOF
5091/* confdefs.h.  */
5092_ACEOF
5093cat confdefs.h >>conftest.$ac_ext
5094cat >>conftest.$ac_ext <<_ACEOF
5095/* end confdefs.h.  */
5096#include <stdlib.h>
5097#include <stdarg.h>
5098#include <string.h>
5099#include <float.h>
5100
5101int
5102main ()
5103{
5104
5105  ;
5106  return 0;
5107}
5108_ACEOF
5109rm -f conftest.$ac_objext
5110if { (ac_try="$ac_compile"
5111case "(($ac_try" in
5112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113  *) ac_try_echo=$ac_try;;
5114esac
5115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116  (eval "$ac_compile") 2>conftest.er1
5117  ac_status=$?
5118  grep -v '^ *+' conftest.er1 >conftest.err
5119  rm -f conftest.er1
5120  cat conftest.err >&5
5121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122  (exit $ac_status); } && {
5123	 test -z "$ac_c_werror_flag" ||
5124	 test ! -s conftest.err
5125       } && test -s conftest.$ac_objext; then
5126  ac_cv_header_stdc=yes
5127else
5128  echo "$as_me: failed program was:" >&5
5129sed 's/^/| /' conftest.$ac_ext >&5
5130
5131	ac_cv_header_stdc=no
5132fi
5133
5134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135
5136if test $ac_cv_header_stdc = yes; then
5137  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5138  cat >conftest.$ac_ext <<_ACEOF
5139/* confdefs.h.  */
5140_ACEOF
5141cat confdefs.h >>conftest.$ac_ext
5142cat >>conftest.$ac_ext <<_ACEOF
5143/* end confdefs.h.  */
5144#include <string.h>
5145
5146_ACEOF
5147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5148  $EGREP "memchr" >/dev/null 2>&1; then
5149  :
5150else
5151  ac_cv_header_stdc=no
5152fi
5153rm -f conftest*
5154
5155fi
5156
5157if test $ac_cv_header_stdc = yes; then
5158  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5159  cat >conftest.$ac_ext <<_ACEOF
5160/* confdefs.h.  */
5161_ACEOF
5162cat confdefs.h >>conftest.$ac_ext
5163cat >>conftest.$ac_ext <<_ACEOF
5164/* end confdefs.h.  */
5165#include <stdlib.h>
5166
5167_ACEOF
5168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5169  $EGREP "free" >/dev/null 2>&1; then
5170  :
5171else
5172  ac_cv_header_stdc=no
5173fi
5174rm -f conftest*
5175
5176fi
5177
5178if test $ac_cv_header_stdc = yes; then
5179  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5180  if test "$cross_compiling" = yes; then
5181  :
5182else
5183  cat >conftest.$ac_ext <<_ACEOF
5184/* confdefs.h.  */
5185_ACEOF
5186cat confdefs.h >>conftest.$ac_ext
5187cat >>conftest.$ac_ext <<_ACEOF
5188/* end confdefs.h.  */
5189#include <ctype.h>
5190#include <stdlib.h>
5191#if ((' ' & 0x0FF) == 0x020)
5192# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5193# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5194#else
5195# define ISLOWER(c) \
5196		   (('a' <= (c) && (c) <= 'i') \
5197		     || ('j' <= (c) && (c) <= 'r') \
5198		     || ('s' <= (c) && (c) <= 'z'))
5199# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5200#endif
5201
5202#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5203int
5204main ()
5205{
5206  int i;
5207  for (i = 0; i < 256; i++)
5208    if (XOR (islower (i), ISLOWER (i))
5209	|| toupper (i) != TOUPPER (i))
5210      return 2;
5211  return 0;
5212}
5213_ACEOF
5214rm -f conftest$ac_exeext
5215if { (ac_try="$ac_link"
5216case "(($ac_try" in
5217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218  *) ac_try_echo=$ac_try;;
5219esac
5220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221  (eval "$ac_link") 2>&5
5222  ac_status=$?
5223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5225  { (case "(($ac_try" in
5226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227  *) ac_try_echo=$ac_try;;
5228esac
5229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5230  (eval "$ac_try") 2>&5
5231  ac_status=$?
5232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233  (exit $ac_status); }; }; then
5234  :
5235else
5236  echo "$as_me: program exited with status $ac_status" >&5
5237echo "$as_me: failed program was:" >&5
5238sed 's/^/| /' conftest.$ac_ext >&5
5239
5240( exit $ac_status )
5241ac_cv_header_stdc=no
5242fi
5243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5244fi
5245
5246
5247fi
5248fi
5249{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5250echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5251if test $ac_cv_header_stdc = yes; then
5252
5253cat >>confdefs.h <<\_ACEOF
5254#define STDC_HEADERS 1
5255_ACEOF
5256
5257fi
5258
5259# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5270		  inttypes.h stdint.h unistd.h
5271do
5272as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5273{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5276  echo $ECHO_N "(cached) $ECHO_C" >&6
5277else
5278  cat >conftest.$ac_ext <<_ACEOF
5279/* confdefs.h.  */
5280_ACEOF
5281cat confdefs.h >>conftest.$ac_ext
5282cat >>conftest.$ac_ext <<_ACEOF
5283/* end confdefs.h.  */
5284$ac_includes_default
5285
5286#include <$ac_header>
5287_ACEOF
5288rm -f conftest.$ac_objext
5289if { (ac_try="$ac_compile"
5290case "(($ac_try" in
5291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292  *) ac_try_echo=$ac_try;;
5293esac
5294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295  (eval "$ac_compile") 2>conftest.er1
5296  ac_status=$?
5297  grep -v '^ *+' conftest.er1 >conftest.err
5298  rm -f conftest.er1
5299  cat conftest.err >&5
5300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301  (exit $ac_status); } && {
5302	 test -z "$ac_c_werror_flag" ||
5303	 test ! -s conftest.err
5304       } && test -s conftest.$ac_objext; then
5305  eval "$as_ac_Header=yes"
5306else
5307  echo "$as_me: failed program was:" >&5
5308sed 's/^/| /' conftest.$ac_ext >&5
5309
5310	eval "$as_ac_Header=no"
5311fi
5312
5313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314fi
5315ac_res=`eval echo '${'$as_ac_Header'}'`
5316	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5317echo "${ECHO_T}$ac_res" >&6; }
5318if test `eval echo '${'$as_ac_Header'}'` = yes; then
5319  cat >>confdefs.h <<_ACEOF
5320#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5321_ACEOF
5322
5323fi
5324
5325done
5326
5327
5328if test "${ac_cv_header_minix_config_h+set}" = set; then
5329  { echo "$as_me:$LINENO: checking for minix/config.h" >&5
5330echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
5331if test "${ac_cv_header_minix_config_h+set}" = set; then
5332  echo $ECHO_N "(cached) $ECHO_C" >&6
5333fi
5334{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5335echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
5336else
5337  # Is the header compilable?
5338{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5339echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
5340cat >conftest.$ac_ext <<_ACEOF
5341/* confdefs.h.  */
5342_ACEOF
5343cat confdefs.h >>conftest.$ac_ext
5344cat >>conftest.$ac_ext <<_ACEOF
5345/* end confdefs.h.  */
5346$ac_includes_default
5347#include <minix/config.h>
5348_ACEOF
5349rm -f conftest.$ac_objext
5350if { (ac_try="$ac_compile"
5351case "(($ac_try" in
5352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353  *) ac_try_echo=$ac_try;;
5354esac
5355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356  (eval "$ac_compile") 2>conftest.er1
5357  ac_status=$?
5358  grep -v '^ *+' conftest.er1 >conftest.err
5359  rm -f conftest.er1
5360  cat conftest.err >&5
5361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362  (exit $ac_status); } && {
5363	 test -z "$ac_c_werror_flag" ||
5364	 test ! -s conftest.err
5365       } && test -s conftest.$ac_objext; then
5366  ac_header_compiler=yes
5367else
5368  echo "$as_me: failed program was:" >&5
5369sed 's/^/| /' conftest.$ac_ext >&5
5370
5371	ac_header_compiler=no
5372fi
5373
5374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5375{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5376echo "${ECHO_T}$ac_header_compiler" >&6; }
5377
5378# Is the header present?
5379{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5380echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
5381cat >conftest.$ac_ext <<_ACEOF
5382/* confdefs.h.  */
5383_ACEOF
5384cat confdefs.h >>conftest.$ac_ext
5385cat >>conftest.$ac_ext <<_ACEOF
5386/* end confdefs.h.  */
5387#include <minix/config.h>
5388_ACEOF
5389if { (ac_try="$ac_cpp conftest.$ac_ext"
5390case "(($ac_try" in
5391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392  *) ac_try_echo=$ac_try;;
5393esac
5394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5396  ac_status=$?
5397  grep -v '^ *+' conftest.er1 >conftest.err
5398  rm -f conftest.er1
5399  cat conftest.err >&5
5400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401  (exit $ac_status); } >/dev/null && {
5402	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5403	 test ! -s conftest.err
5404       }; then
5405  ac_header_preproc=yes
5406else
5407  echo "$as_me: failed program was:" >&5
5408sed 's/^/| /' conftest.$ac_ext >&5
5409
5410  ac_header_preproc=no
5411fi
5412
5413rm -f conftest.err conftest.$ac_ext
5414{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5415echo "${ECHO_T}$ac_header_preproc" >&6; }
5416
5417# So?  What about this header?
5418case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5419  yes:no: )
5420    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5421echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5422    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5423echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5424    ac_header_preproc=yes
5425    ;;
5426  no:yes:* )
5427    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5428echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5429    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5430echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5431    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5432echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5433    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5434echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5435    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5436echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5437    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5438echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5439
5440    ;;
5441esac
5442{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
5443echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
5444if test "${ac_cv_header_minix_config_h+set}" = set; then
5445  echo $ECHO_N "(cached) $ECHO_C" >&6
5446else
5447  ac_cv_header_minix_config_h=$ac_header_preproc
5448fi
5449{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5450echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
5451
5452fi
5453if test $ac_cv_header_minix_config_h = yes; then
5454  MINIX=yes
5455else
5456  MINIX=
5457fi
5458
5459
5460if test "$MINIX" = yes; then
5461
5462cat >>confdefs.h <<\_ACEOF
5463#define _POSIX_SOURCE 1
5464_ACEOF
5465
5466
5467cat >>confdefs.h <<\_ACEOF
5468#define _POSIX_1_SOURCE 2
5469_ACEOF
5470
5471
5472cat >>confdefs.h <<\_ACEOF
5473#define _MINIX 1
5474_ACEOF
5475
5476fi
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488  { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5489echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
5490if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5491  echo $ECHO_N "(cached) $ECHO_C" >&6
5492else
5493  cat >conftest.$ac_ext <<_ACEOF
5494/* confdefs.h.  */
5495_ACEOF
5496cat confdefs.h >>conftest.$ac_ext
5497cat >>conftest.$ac_ext <<_ACEOF
5498/* end confdefs.h.  */
5499
5500#	  define __EXTENSIONS__ 1
5501	  $ac_includes_default
5502int
5503main ()
5504{
5505
5506  ;
5507  return 0;
5508}
5509_ACEOF
5510rm -f conftest.$ac_objext
5511if { (ac_try="$ac_compile"
5512case "(($ac_try" in
5513  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514  *) ac_try_echo=$ac_try;;
5515esac
5516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517  (eval "$ac_compile") 2>conftest.er1
5518  ac_status=$?
5519  grep -v '^ *+' conftest.er1 >conftest.err
5520  rm -f conftest.er1
5521  cat conftest.err >&5
5522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523  (exit $ac_status); } && {
5524	 test -z "$ac_c_werror_flag" ||
5525	 test ! -s conftest.err
5526       } && test -s conftest.$ac_objext; then
5527  ac_cv_safe_to_define___extensions__=yes
5528else
5529  echo "$as_me: failed program was:" >&5
5530sed 's/^/| /' conftest.$ac_ext >&5
5531
5532	ac_cv_safe_to_define___extensions__=no
5533fi
5534
5535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536fi
5537{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5538echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
5539  test $ac_cv_safe_to_define___extensions__ = yes &&
5540    cat >>confdefs.h <<\_ACEOF
5541#define __EXTENSIONS__ 1
5542_ACEOF
5543
5544  cat >>confdefs.h <<\_ACEOF
5545#define _POSIX_PTHREAD_SEMANTICS 1
5546_ACEOF
5547
5548  cat >>confdefs.h <<\_ACEOF
5549#define _TANDEM_SOURCE 1
5550_ACEOF
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562  case "$host_os" in
5563    mingw* | cygwin*)
5564      { echo "$as_me:$LINENO: checking for auto-import of symbols" >&5
5565echo $ECHO_N "checking for auto-import of symbols... $ECHO_C" >&6; }
5566      if test "${gl_cv_ld_autoimport+set}" = set; then
5567  echo $ECHO_N "(cached) $ECHO_C" >&6
5568else
5569
5570        gl_save_LDFLAGS="$LDFLAGS"
5571        LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
5572        cat >conftest.$ac_ext <<_ACEOF
5573/* confdefs.h.  */
5574_ACEOF
5575cat confdefs.h >>conftest.$ac_ext
5576cat >>conftest.$ac_ext <<_ACEOF
5577/* end confdefs.h.  */
5578
5579int
5580main ()
5581{
5582
5583  ;
5584  return 0;
5585}
5586_ACEOF
5587rm -f conftest.$ac_objext conftest$ac_exeext
5588if { (ac_try="$ac_link"
5589case "(($ac_try" in
5590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591  *) ac_try_echo=$ac_try;;
5592esac
5593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594  (eval "$ac_link") 2>conftest.er1
5595  ac_status=$?
5596  grep -v '^ *+' conftest.er1 >conftest.err
5597  rm -f conftest.er1
5598  cat conftest.err >&5
5599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600  (exit $ac_status); } && {
5601	 test -z "$ac_c_werror_flag" ||
5602	 test ! -s conftest.err
5603       } && test -s conftest$ac_exeext &&
5604       $as_test_x conftest$ac_exeext; then
5605  gl_cv_ld_autoimport=yes
5606else
5607  echo "$as_me: failed program was:" >&5
5608sed 's/^/| /' conftest.$ac_ext >&5
5609
5610	gl_cv_ld_autoimport=no
5611fi
5612
5613rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5614      conftest$ac_exeext conftest.$ac_ext
5615        LDFLAGS="$gl_save_LDFLAGS"
5616fi
5617
5618      { echo "$as_me:$LINENO: result: $gl_cv_ld_autoimport" >&5
5619echo "${ECHO_T}$gl_cv_ld_autoimport" >&6; }
5620      if test $gl_cv_ld_autoimport = yes; then
5621        LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
5622      fi
5623      ;;
5624  esac
5625
5626
5627
5628# Check whether --enable-shared was given.
5629if test "${enable_shared+set}" = set; then
5630  enableval=$enable_shared; p=${PACKAGE-default}
5631    case $enableval in
5632    yes) enable_shared=yes ;;
5633    no) enable_shared=no ;;
5634    *)
5635      enable_shared=no
5636      # Look at the argument we got.  We use all the common list separators.
5637      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5638      for pkg in $enableval; do
5639	IFS="$lt_save_ifs"
5640	if test "X$pkg" = "X$p"; then
5641	  enable_shared=yes
5642	fi
5643      done
5644      IFS="$lt_save_ifs"
5645      ;;
5646    esac
5647else
5648  enable_shared=yes
5649fi
5650
5651
5652# Check whether --enable-static was given.
5653if test "${enable_static+set}" = set; then
5654  enableval=$enable_static; p=${PACKAGE-default}
5655    case $enableval in
5656    yes) enable_static=yes ;;
5657    no) enable_static=no ;;
5658    *)
5659     enable_static=no
5660      # Look at the argument we got.  We use all the common list separators.
5661      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5662      for pkg in $enableval; do
5663	IFS="$lt_save_ifs"
5664	if test "X$pkg" = "X$p"; then
5665	  enable_static=yes
5666	fi
5667      done
5668      IFS="$lt_save_ifs"
5669      ;;
5670    esac
5671else
5672  enable_static=yes
5673fi
5674
5675
5676# Check whether --enable-fast-install was given.
5677if test "${enable_fast_install+set}" = set; then
5678  enableval=$enable_fast_install; p=${PACKAGE-default}
5679    case $enableval in
5680    yes) enable_fast_install=yes ;;
5681    no) enable_fast_install=no ;;
5682    *)
5683      enable_fast_install=no
5684      # Look at the argument we got.  We use all the common list separators.
5685      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5686      for pkg in $enableval; do
5687	IFS="$lt_save_ifs"
5688	if test "X$pkg" = "X$p"; then
5689	  enable_fast_install=yes
5690	fi
5691      done
5692      IFS="$lt_save_ifs"
5693      ;;
5694    esac
5695else
5696  enable_fast_install=yes
5697fi
5698
5699
5700{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5701echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5702if test "${lt_cv_path_SED+set}" = set; then
5703  echo $ECHO_N "(cached) $ECHO_C" >&6
5704else
5705  # Loop through the user's path and test for sed and gsed.
5706# Then use that list of sed's as ones to test for truncation.
5707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH
5709do
5710  IFS=$as_save_IFS
5711  test -z "$as_dir" && as_dir=.
5712  for lt_ac_prog in sed gsed; do
5713    for ac_exec_ext in '' $ac_executable_extensions; do
5714      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5715        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5716      fi
5717    done
5718  done
5719done
5720lt_ac_max=0
5721lt_ac_count=0
5722# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5723# along with /bin/sed that truncates output.
5724for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5725  test ! -f $lt_ac_sed && continue
5726  cat /dev/null > conftest.in
5727  lt_ac_count=0
5728  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5729  # Check for GNU sed and select it if it is found.
5730  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5731    lt_cv_path_SED=$lt_ac_sed
5732    break
5733  fi
5734  while true; do
5735    cat conftest.in conftest.in >conftest.tmp
5736    mv conftest.tmp conftest.in
5737    cp conftest.in conftest.nl
5738    echo >>conftest.nl
5739    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5740    cmp -s conftest.out conftest.nl || break
5741    # 10000 chars as input seems more than enough
5742    test $lt_ac_count -gt 10 && break
5743    lt_ac_count=`expr $lt_ac_count + 1`
5744    if test $lt_ac_count -gt $lt_ac_max; then
5745      lt_ac_max=$lt_ac_count
5746      lt_cv_path_SED=$lt_ac_sed
5747    fi
5748  done
5749done
5750
5751fi
5752
5753SED=$lt_cv_path_SED
5754{ echo "$as_me:$LINENO: result: $SED" >&5
5755echo "${ECHO_T}$SED" >&6; }
5756
5757
5758# Check whether --with-gnu-ld was given.
5759if test "${with_gnu_ld+set}" = set; then
5760  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5761else
5762  with_gnu_ld=no
5763fi
5764
5765ac_prog=ld
5766if test "$GCC" = yes; then
5767  # Check if gcc -print-prog-name=ld gives a path.
5768  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5769echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5770  case $host in
5771  *-*-mingw*)
5772    # gcc leaves a trailing carriage return which upsets mingw
5773    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5774  *)
5775    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5776  esac
5777  case $ac_prog in
5778    # Accept absolute paths.
5779    [\\/]* | ?:[\\/]*)
5780      re_direlt='/[^/][^/]*/\.\./'
5781      # Canonicalize the pathname of ld
5782      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5783      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5784	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5785      done
5786      test -z "$LD" && LD="$ac_prog"
5787      ;;
5788  "")
5789    # If it fails, then pretend we aren't using GCC.
5790    ac_prog=ld
5791    ;;
5792  *)
5793    # If it is relative, then search for the first ld in PATH.
5794    with_gnu_ld=unknown
5795    ;;
5796  esac
5797elif test "$with_gnu_ld" = yes; then
5798  { echo "$as_me:$LINENO: checking for GNU ld" >&5
5799echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5800else
5801  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5802echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5803fi
5804if test "${lt_cv_path_LD+set}" = set; then
5805  echo $ECHO_N "(cached) $ECHO_C" >&6
5806else
5807  if test -z "$LD"; then
5808  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5809  for ac_dir in $PATH; do
5810    IFS="$lt_save_ifs"
5811    test -z "$ac_dir" && ac_dir=.
5812    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5813      lt_cv_path_LD="$ac_dir/$ac_prog"
5814      # Check to see if the program is GNU ld.  I'd rather use --version,
5815      # but apparently some variants of GNU ld only accept -v.
5816      # Break only if it was the GNU/non-GNU ld that we prefer.
5817      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5818      *GNU* | *'with BFD'*)
5819	test "$with_gnu_ld" != no && break
5820	;;
5821      *)
5822	test "$with_gnu_ld" != yes && break
5823	;;
5824      esac
5825    fi
5826  done
5827  IFS="$lt_save_ifs"
5828else
5829  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5830fi
5831fi
5832
5833LD="$lt_cv_path_LD"
5834if test -n "$LD"; then
5835  { echo "$as_me:$LINENO: result: $LD" >&5
5836echo "${ECHO_T}$LD" >&6; }
5837else
5838  { echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6; }
5840fi
5841test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5842echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5843   { (exit 1); exit 1; }; }
5844{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5845echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5846if test "${lt_cv_prog_gnu_ld+set}" = set; then
5847  echo $ECHO_N "(cached) $ECHO_C" >&6
5848else
5849  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5850case `$LD -v 2>&1 </dev/null` in
5851*GNU* | *'with BFD'*)
5852  lt_cv_prog_gnu_ld=yes
5853  ;;
5854*)
5855  lt_cv_prog_gnu_ld=no
5856  ;;
5857esac
5858fi
5859{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5860echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5861with_gnu_ld=$lt_cv_prog_gnu_ld
5862
5863
5864{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5865echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5866if test "${lt_cv_ld_reload_flag+set}" = set; then
5867  echo $ECHO_N "(cached) $ECHO_C" >&6
5868else
5869  lt_cv_ld_reload_flag='-r'
5870fi
5871{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5872echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5873reload_flag=$lt_cv_ld_reload_flag
5874case $reload_flag in
5875"" | " "*) ;;
5876*) reload_flag=" $reload_flag" ;;
5877esac
5878reload_cmds='$LD$reload_flag -o $output$reload_objs'
5879case $host_os in
5880  darwin*)
5881    if test "$GCC" = yes; then
5882      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5883    else
5884      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5885    fi
5886    ;;
5887esac
5888
5889{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5890echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5891if test "${lt_cv_path_NM+set}" = set; then
5892  echo $ECHO_N "(cached) $ECHO_C" >&6
5893else
5894  if test -n "$NM"; then
5895  # Let the user override the test.
5896  lt_cv_path_NM="$NM"
5897else
5898  lt_nm_to_check="${ac_tool_prefix}nm"
5899  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5900    lt_nm_to_check="$lt_nm_to_check nm"
5901  fi
5902  for lt_tmp_nm in $lt_nm_to_check; do
5903    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5904    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5905      IFS="$lt_save_ifs"
5906      test -z "$ac_dir" && ac_dir=.
5907      tmp_nm="$ac_dir/$lt_tmp_nm"
5908      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5909	# Check to see if the nm accepts a BSD-compat flag.
5910	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5911	#   nm: unknown option "B" ignored
5912	# Tru64's nm complains that /dev/null is an invalid object file
5913	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5914	*/dev/null* | *'Invalid file or object type'*)
5915	  lt_cv_path_NM="$tmp_nm -B"
5916	  break
5917	  ;;
5918	*)
5919	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5920	  */dev/null*)
5921	    lt_cv_path_NM="$tmp_nm -p"
5922	    break
5923	    ;;
5924	  *)
5925	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5926	    continue # so that we can try to find one that supports BSD flags
5927	    ;;
5928	  esac
5929	  ;;
5930	esac
5931      fi
5932    done
5933    IFS="$lt_save_ifs"
5934  done
5935  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5936fi
5937fi
5938{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5939echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5940NM="$lt_cv_path_NM"
5941
5942{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5943echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5944LN_S=$as_ln_s
5945if test "$LN_S" = "ln -s"; then
5946  { echo "$as_me:$LINENO: result: yes" >&5
5947echo "${ECHO_T}yes" >&6; }
5948else
5949  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5950echo "${ECHO_T}no, using $LN_S" >&6; }
5951fi
5952
5953{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5954echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5955if test "${lt_cv_deplibs_check_method+set}" = set; then
5956  echo $ECHO_N "(cached) $ECHO_C" >&6
5957else
5958  lt_cv_file_magic_cmd='$MAGIC_CMD'
5959lt_cv_file_magic_test_file=
5960lt_cv_deplibs_check_method='unknown'
5961# Need to set the preceding variable on all platforms that support
5962# interlibrary dependencies.
5963# 'none' -- dependencies not supported.
5964# `unknown' -- same as none, but documents that we really don't know.
5965# 'pass_all' -- all dependencies passed with no checks.
5966# 'test_compile' -- check by making test program.
5967# 'file_magic [[regex]]' -- check by looking for files in library path
5968# which responds to the $file_magic_cmd with a given extended regex.
5969# If you have `file' or equivalent on your system and you're not sure
5970# whether `pass_all' will *always* work, you probably want this one.
5971
5972case $host_os in
5973aix4* | aix5*)
5974  lt_cv_deplibs_check_method=pass_all
5975  ;;
5976
5977beos*)
5978  lt_cv_deplibs_check_method=pass_all
5979  ;;
5980
5981bsdi[45]*)
5982  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5983  lt_cv_file_magic_cmd='/usr/bin/file -L'
5984  lt_cv_file_magic_test_file=/shlib/libc.so
5985  ;;
5986
5987cygwin*)
5988  # func_win32_libid is a shell function defined in ltmain.sh
5989  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5990  lt_cv_file_magic_cmd='func_win32_libid'
5991  ;;
5992
5993mingw* | pw32*)
5994  # Base MSYS/MinGW do not provide the 'file' command needed by
5995  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5996  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5997  lt_cv_file_magic_cmd='$OBJDUMP -f'
5998  ;;
5999
6000darwin* | rhapsody*)
6001  lt_cv_deplibs_check_method=pass_all
6002  ;;
6003
6004freebsd* | kfreebsd*-gnu | dragonfly*)
6005  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6006    case $host_cpu in
6007    i*86 )
6008      # Not sure whether the presence of OpenBSD here was a mistake.
6009      # Let's accept both of them until this is cleared up.
6010      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6011      lt_cv_file_magic_cmd=/usr/bin/file
6012      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6013      ;;
6014    esac
6015  else
6016    lt_cv_deplibs_check_method=pass_all
6017  fi
6018  ;;
6019
6020gnu*)
6021  lt_cv_deplibs_check_method=pass_all
6022  ;;
6023
6024hpux10.20* | hpux11*)
6025  lt_cv_file_magic_cmd=/usr/bin/file
6026  case $host_cpu in
6027  ia64*)
6028    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6029    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6030    ;;
6031  hppa*64*)
6032    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]'
6033    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6034    ;;
6035  *)
6036    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6037    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6038    ;;
6039  esac
6040  ;;
6041
6042interix3*)
6043  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6044  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6045  ;;
6046
6047irix5* | irix6* | nonstopux*)
6048  case $LD in
6049  *-32|*"-32 ") libmagic=32-bit;;
6050  *-n32|*"-n32 ") libmagic=N32;;
6051  *-64|*"-64 ") libmagic=64-bit;;
6052  *) libmagic=never-match;;
6053  esac
6054  lt_cv_deplibs_check_method=pass_all
6055  ;;
6056
6057# This must be Linux ELF.
6058linux*)
6059  lt_cv_deplibs_check_method=pass_all
6060  ;;
6061
6062netbsd*)
6063  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6064    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6065  else
6066    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6067  fi
6068  ;;
6069
6070newos6*)
6071  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6072  lt_cv_file_magic_cmd=/usr/bin/file
6073  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6074  ;;
6075
6076nto-qnx*)
6077  lt_cv_deplibs_check_method=unknown
6078  ;;
6079
6080openbsd*)
6081  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6082    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6083  else
6084    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6085  fi
6086  ;;
6087
6088osf3* | osf4* | osf5*)
6089  lt_cv_deplibs_check_method=pass_all
6090  ;;
6091
6092solaris*)
6093  lt_cv_deplibs_check_method=pass_all
6094  ;;
6095
6096sysv4 | sysv4.3*)
6097  case $host_vendor in
6098  motorola)
6099    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]'
6100    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6101    ;;
6102  ncr)
6103    lt_cv_deplibs_check_method=pass_all
6104    ;;
6105  sequent)
6106    lt_cv_file_magic_cmd='/bin/file'
6107    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6108    ;;
6109  sni)
6110    lt_cv_file_magic_cmd='/bin/file'
6111    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6112    lt_cv_file_magic_test_file=/lib/libc.so
6113    ;;
6114  siemens)
6115    lt_cv_deplibs_check_method=pass_all
6116    ;;
6117  pc)
6118    lt_cv_deplibs_check_method=pass_all
6119    ;;
6120  esac
6121  ;;
6122
6123sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6124  lt_cv_deplibs_check_method=pass_all
6125  ;;
6126esac
6127
6128fi
6129{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6130echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6131file_magic_cmd=$lt_cv_file_magic_cmd
6132deplibs_check_method=$lt_cv_deplibs_check_method
6133test -z "$deplibs_check_method" && deplibs_check_method=unknown
6134
6135
6136# If no C compiler was specified, use CC.
6137LTCC=${LTCC-"$CC"}
6138
6139# If no C compiler flags were specified, use CFLAGS.
6140LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6141
6142# Allow CC to be a program name with arguments.
6143compiler=$CC
6144
6145# Check whether --enable-libtool-lock was given.
6146if test "${enable_libtool_lock+set}" = set; then
6147  enableval=$enable_libtool_lock;
6148fi
6149
6150test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6151
6152# Some flags need to be propagated to the compiler or linker for good
6153# libtool support.
6154case $host in
6155ia64-*-hpux*)
6156  # Find out which ABI we are using.
6157  echo 'int i;' > conftest.$ac_ext
6158  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6159  (eval $ac_compile) 2>&5
6160  ac_status=$?
6161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162  (exit $ac_status); }; then
6163    case `/usr/bin/file conftest.$ac_objext` in
6164    *ELF-32*)
6165      HPUX_IA64_MODE="32"
6166      ;;
6167    *ELF-64*)
6168      HPUX_IA64_MODE="64"
6169      ;;
6170    esac
6171  fi
6172  rm -rf conftest*
6173  ;;
6174*-*-irix6*)
6175  # Find out which ABI we are using.
6176  echo '#line 6176 "configure"' > conftest.$ac_ext
6177  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6178  (eval $ac_compile) 2>&5
6179  ac_status=$?
6180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181  (exit $ac_status); }; then
6182   if test "$lt_cv_prog_gnu_ld" = yes; then
6183    case `/usr/bin/file conftest.$ac_objext` in
6184    *32-bit*)
6185      LD="${LD-ld} -melf32bsmip"
6186      ;;
6187    *N32*)
6188      LD="${LD-ld} -melf32bmipn32"
6189      ;;
6190    *64-bit*)
6191      LD="${LD-ld} -melf64bmip"
6192      ;;
6193    esac
6194   else
6195    case `/usr/bin/file conftest.$ac_objext` in
6196    *32-bit*)
6197      LD="${LD-ld} -32"
6198      ;;
6199    *N32*)
6200      LD="${LD-ld} -n32"
6201      ;;
6202    *64-bit*)
6203      LD="${LD-ld} -64"
6204      ;;
6205    esac
6206   fi
6207  fi
6208  rm -rf conftest*
6209  ;;
6210
6211x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6212  # Find out which ABI we are using.
6213  echo 'int i;' > conftest.$ac_ext
6214  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6215  (eval $ac_compile) 2>&5
6216  ac_status=$?
6217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218  (exit $ac_status); }; then
6219    case `/usr/bin/file conftest.o` in
6220    *32-bit*)
6221      case $host in
6222        x86_64-*linux*)
6223          LD="${LD-ld} -m elf_i386"
6224          ;;
6225        ppc64-*linux*|powerpc64-*linux*)
6226          LD="${LD-ld} -m elf32ppclinux"
6227          ;;
6228        s390x-*linux*)
6229          LD="${LD-ld} -m elf_s390"
6230          ;;
6231        sparc64-*linux*)
6232          LD="${LD-ld} -m elf32_sparc"
6233          ;;
6234      esac
6235      ;;
6236    *64-bit*)
6237      case $host in
6238        x86_64-*linux*)
6239          LD="${LD-ld} -m elf_x86_64"
6240          ;;
6241        ppc*-*linux*|powerpc*-*linux*)
6242          LD="${LD-ld} -m elf64ppc"
6243          ;;
6244        s390*-*linux*)
6245          LD="${LD-ld} -m elf64_s390"
6246          ;;
6247        sparc*-*linux*)
6248          LD="${LD-ld} -m elf64_sparc"
6249          ;;
6250      esac
6251      ;;
6252    esac
6253  fi
6254  rm -rf conftest*
6255  ;;
6256
6257*-*-sco3.2v5*)
6258  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6259  SAVE_CFLAGS="$CFLAGS"
6260  CFLAGS="$CFLAGS -belf"
6261  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6262echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6263if test "${lt_cv_cc_needs_belf+set}" = set; then
6264  echo $ECHO_N "(cached) $ECHO_C" >&6
6265else
6266  ac_ext=c
6267ac_cpp='$CPP $CPPFLAGS'
6268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6270ac_compiler_gnu=$ac_cv_c_compiler_gnu
6271
6272     cat >conftest.$ac_ext <<_ACEOF
6273/* confdefs.h.  */
6274_ACEOF
6275cat confdefs.h >>conftest.$ac_ext
6276cat >>conftest.$ac_ext <<_ACEOF
6277/* end confdefs.h.  */
6278
6279int
6280main ()
6281{
6282
6283  ;
6284  return 0;
6285}
6286_ACEOF
6287rm -f conftest.$ac_objext conftest$ac_exeext
6288if { (ac_try="$ac_link"
6289case "(($ac_try" in
6290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291  *) ac_try_echo=$ac_try;;
6292esac
6293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294  (eval "$ac_link") 2>conftest.er1
6295  ac_status=$?
6296  grep -v '^ *+' conftest.er1 >conftest.err
6297  rm -f conftest.er1
6298  cat conftest.err >&5
6299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300  (exit $ac_status); } && {
6301	 test -z "$ac_c_werror_flag" ||
6302	 test ! -s conftest.err
6303       } && test -s conftest$ac_exeext &&
6304       $as_test_x conftest$ac_exeext; then
6305  lt_cv_cc_needs_belf=yes
6306else
6307  echo "$as_me: failed program was:" >&5
6308sed 's/^/| /' conftest.$ac_ext >&5
6309
6310	lt_cv_cc_needs_belf=no
6311fi
6312
6313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6314      conftest$ac_exeext conftest.$ac_ext
6315     ac_ext=c
6316ac_cpp='$CPP $CPPFLAGS'
6317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6319ac_compiler_gnu=$ac_cv_c_compiler_gnu
6320
6321fi
6322{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6323echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6324  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6325    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6326    CFLAGS="$SAVE_CFLAGS"
6327  fi
6328  ;;
6329sparc*-*solaris*)
6330  # Find out which ABI we are using.
6331  echo 'int i;' > conftest.$ac_ext
6332  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6333  (eval $ac_compile) 2>&5
6334  ac_status=$?
6335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336  (exit $ac_status); }; then
6337    case `/usr/bin/file conftest.o` in
6338    *64-bit*)
6339      case $lt_cv_prog_gnu_ld in
6340      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6341      *)    LD="${LD-ld} -64" ;;
6342      esac
6343      ;;
6344    esac
6345  fi
6346  rm -rf conftest*
6347  ;;
6348
6349*-*-cygwin* | *-*-mingw* | *-*-pw32*)
6350  if test -n "$ac_tool_prefix"; then
6351  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6352set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6353{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6355if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6356  echo $ECHO_N "(cached) $ECHO_C" >&6
6357else
6358  if test -n "$DLLTOOL"; then
6359  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6360else
6361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362for as_dir in $PATH
6363do
6364  IFS=$as_save_IFS
6365  test -z "$as_dir" && as_dir=.
6366  for ac_exec_ext in '' $ac_executable_extensions; do
6367  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6369    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370    break 2
6371  fi
6372done
6373done
6374IFS=$as_save_IFS
6375
6376fi
6377fi
6378DLLTOOL=$ac_cv_prog_DLLTOOL
6379if test -n "$DLLTOOL"; then
6380  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6381echo "${ECHO_T}$DLLTOOL" >&6; }
6382else
6383  { echo "$as_me:$LINENO: result: no" >&5
6384echo "${ECHO_T}no" >&6; }
6385fi
6386
6387
6388fi
6389if test -z "$ac_cv_prog_DLLTOOL"; then
6390  ac_ct_DLLTOOL=$DLLTOOL
6391  # Extract the first word of "dlltool", so it can be a program name with args.
6392set dummy dlltool; ac_word=$2
6393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6395if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6396  echo $ECHO_N "(cached) $ECHO_C" >&6
6397else
6398  if test -n "$ac_ct_DLLTOOL"; then
6399  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6400else
6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404  IFS=$as_save_IFS
6405  test -z "$as_dir" && as_dir=.
6406  for ac_exec_ext in '' $ac_executable_extensions; do
6407  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6409    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410    break 2
6411  fi
6412done
6413done
6414IFS=$as_save_IFS
6415
6416fi
6417fi
6418ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6419if test -n "$ac_ct_DLLTOOL"; then
6420  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6421echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6422else
6423  { echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6; }
6425fi
6426
6427  if test "x$ac_ct_DLLTOOL" = x; then
6428    DLLTOOL="false"
6429  else
6430    case $cross_compiling:$ac_tool_warned in
6431yes:)
6432{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6433whose name does not start with the host triplet.  If you think this
6434configuration is useful to you, please write to autoconf@gnu.org." >&5
6435echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6436whose name does not start with the host triplet.  If you think this
6437configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6438ac_tool_warned=yes ;;
6439esac
6440    DLLTOOL=$ac_ct_DLLTOOL
6441  fi
6442else
6443  DLLTOOL="$ac_cv_prog_DLLTOOL"
6444fi
6445
6446  if test -n "$ac_tool_prefix"; then
6447  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6448set dummy ${ac_tool_prefix}as; ac_word=$2
6449{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6451if test "${ac_cv_prog_AS+set}" = set; then
6452  echo $ECHO_N "(cached) $ECHO_C" >&6
6453else
6454  if test -n "$AS"; then
6455  ac_cv_prog_AS="$AS" # Let the user override the test.
6456else
6457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458for as_dir in $PATH
6459do
6460  IFS=$as_save_IFS
6461  test -z "$as_dir" && as_dir=.
6462  for ac_exec_ext in '' $ac_executable_extensions; do
6463  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464    ac_cv_prog_AS="${ac_tool_prefix}as"
6465    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466    break 2
6467  fi
6468done
6469done
6470IFS=$as_save_IFS
6471
6472fi
6473fi
6474AS=$ac_cv_prog_AS
6475if test -n "$AS"; then
6476  { echo "$as_me:$LINENO: result: $AS" >&5
6477echo "${ECHO_T}$AS" >&6; }
6478else
6479  { echo "$as_me:$LINENO: result: no" >&5
6480echo "${ECHO_T}no" >&6; }
6481fi
6482
6483
6484fi
6485if test -z "$ac_cv_prog_AS"; then
6486  ac_ct_AS=$AS
6487  # Extract the first word of "as", so it can be a program name with args.
6488set dummy as; ac_word=$2
6489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6491if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6492  echo $ECHO_N "(cached) $ECHO_C" >&6
6493else
6494  if test -n "$ac_ct_AS"; then
6495  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6496else
6497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498for as_dir in $PATH
6499do
6500  IFS=$as_save_IFS
6501  test -z "$as_dir" && as_dir=.
6502  for ac_exec_ext in '' $ac_executable_extensions; do
6503  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504    ac_cv_prog_ac_ct_AS="as"
6505    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506    break 2
6507  fi
6508done
6509done
6510IFS=$as_save_IFS
6511
6512fi
6513fi
6514ac_ct_AS=$ac_cv_prog_ac_ct_AS
6515if test -n "$ac_ct_AS"; then
6516  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6517echo "${ECHO_T}$ac_ct_AS" >&6; }
6518else
6519  { echo "$as_me:$LINENO: result: no" >&5
6520echo "${ECHO_T}no" >&6; }
6521fi
6522
6523  if test "x$ac_ct_AS" = x; then
6524    AS="false"
6525  else
6526    case $cross_compiling:$ac_tool_warned in
6527yes:)
6528{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6529whose name does not start with the host triplet.  If you think this
6530configuration is useful to you, please write to autoconf@gnu.org." >&5
6531echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6532whose name does not start with the host triplet.  If you think this
6533configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6534ac_tool_warned=yes ;;
6535esac
6536    AS=$ac_ct_AS
6537  fi
6538else
6539  AS="$ac_cv_prog_AS"
6540fi
6541
6542  if test -n "$ac_tool_prefix"; then
6543  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6544set dummy ${ac_tool_prefix}objdump; ac_word=$2
6545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6548  echo $ECHO_N "(cached) $ECHO_C" >&6
6549else
6550  if test -n "$OBJDUMP"; then
6551  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6552else
6553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554for as_dir in $PATH
6555do
6556  IFS=$as_save_IFS
6557  test -z "$as_dir" && as_dir=.
6558  for ac_exec_ext in '' $ac_executable_extensions; do
6559  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6561    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6562    break 2
6563  fi
6564done
6565done
6566IFS=$as_save_IFS
6567
6568fi
6569fi
6570OBJDUMP=$ac_cv_prog_OBJDUMP
6571if test -n "$OBJDUMP"; then
6572  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6573echo "${ECHO_T}$OBJDUMP" >&6; }
6574else
6575  { echo "$as_me:$LINENO: result: no" >&5
6576echo "${ECHO_T}no" >&6; }
6577fi
6578
6579
6580fi
6581if test -z "$ac_cv_prog_OBJDUMP"; then
6582  ac_ct_OBJDUMP=$OBJDUMP
6583  # Extract the first word of "objdump", so it can be a program name with args.
6584set dummy objdump; ac_word=$2
6585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6587if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6588  echo $ECHO_N "(cached) $ECHO_C" >&6
6589else
6590  if test -n "$ac_ct_OBJDUMP"; then
6591  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6592else
6593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596  IFS=$as_save_IFS
6597  test -z "$as_dir" && as_dir=.
6598  for ac_exec_ext in '' $ac_executable_extensions; do
6599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6601    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602    break 2
6603  fi
6604done
6605done
6606IFS=$as_save_IFS
6607
6608fi
6609fi
6610ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6611if test -n "$ac_ct_OBJDUMP"; then
6612  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6613echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6614else
6615  { echo "$as_me:$LINENO: result: no" >&5
6616echo "${ECHO_T}no" >&6; }
6617fi
6618
6619  if test "x$ac_ct_OBJDUMP" = x; then
6620    OBJDUMP="false"
6621  else
6622    case $cross_compiling:$ac_tool_warned in
6623yes:)
6624{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6625whose name does not start with the host triplet.  If you think this
6626configuration is useful to you, please write to autoconf@gnu.org." >&5
6627echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6628whose name does not start with the host triplet.  If you think this
6629configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6630ac_tool_warned=yes ;;
6631esac
6632    OBJDUMP=$ac_ct_OBJDUMP
6633  fi
6634else
6635  OBJDUMP="$ac_cv_prog_OBJDUMP"
6636fi
6637
6638  ;;
6639
6640esac
6641
6642need_locks="$enable_libtool_lock"
6643
6644
6645
6646for ac_header in dlfcn.h
6647do
6648as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6650  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6652if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6653  echo $ECHO_N "(cached) $ECHO_C" >&6
6654fi
6655ac_res=`eval echo '${'$as_ac_Header'}'`
6656	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6657echo "${ECHO_T}$ac_res" >&6; }
6658else
6659  # Is the header compilable?
6660{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6661echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6662cat >conftest.$ac_ext <<_ACEOF
6663/* confdefs.h.  */
6664_ACEOF
6665cat confdefs.h >>conftest.$ac_ext
6666cat >>conftest.$ac_ext <<_ACEOF
6667/* end confdefs.h.  */
6668$ac_includes_default
6669#include <$ac_header>
6670_ACEOF
6671rm -f conftest.$ac_objext
6672if { (ac_try="$ac_compile"
6673case "(($ac_try" in
6674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6675  *) ac_try_echo=$ac_try;;
6676esac
6677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6678  (eval "$ac_compile") 2>conftest.er1
6679  ac_status=$?
6680  grep -v '^ *+' conftest.er1 >conftest.err
6681  rm -f conftest.er1
6682  cat conftest.err >&5
6683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684  (exit $ac_status); } && {
6685	 test -z "$ac_c_werror_flag" ||
6686	 test ! -s conftest.err
6687       } && test -s conftest.$ac_objext; then
6688  ac_header_compiler=yes
6689else
6690  echo "$as_me: failed program was:" >&5
6691sed 's/^/| /' conftest.$ac_ext >&5
6692
6693	ac_header_compiler=no
6694fi
6695
6696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6698echo "${ECHO_T}$ac_header_compiler" >&6; }
6699
6700# Is the header present?
6701{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6702echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6703cat >conftest.$ac_ext <<_ACEOF
6704/* confdefs.h.  */
6705_ACEOF
6706cat confdefs.h >>conftest.$ac_ext
6707cat >>conftest.$ac_ext <<_ACEOF
6708/* end confdefs.h.  */
6709#include <$ac_header>
6710_ACEOF
6711if { (ac_try="$ac_cpp conftest.$ac_ext"
6712case "(($ac_try" in
6713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6714  *) ac_try_echo=$ac_try;;
6715esac
6716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6717  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6718  ac_status=$?
6719  grep -v '^ *+' conftest.er1 >conftest.err
6720  rm -f conftest.er1
6721  cat conftest.err >&5
6722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723  (exit $ac_status); } >/dev/null && {
6724	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6725	 test ! -s conftest.err
6726       }; then
6727  ac_header_preproc=yes
6728else
6729  echo "$as_me: failed program was:" >&5
6730sed 's/^/| /' conftest.$ac_ext >&5
6731
6732  ac_header_preproc=no
6733fi
6734
6735rm -f conftest.err conftest.$ac_ext
6736{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6737echo "${ECHO_T}$ac_header_preproc" >&6; }
6738
6739# So?  What about this header?
6740case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6741  yes:no: )
6742    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6743echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6744    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6745echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6746    ac_header_preproc=yes
6747    ;;
6748  no:yes:* )
6749    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6750echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6751    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6752echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6753    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6754echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6755    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6756echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6757    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6758echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6759    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6760echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6761
6762    ;;
6763esac
6764{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6767  echo $ECHO_N "(cached) $ECHO_C" >&6
6768else
6769  eval "$as_ac_Header=\$ac_header_preproc"
6770fi
6771ac_res=`eval echo '${'$as_ac_Header'}'`
6772	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6773echo "${ECHO_T}$ac_res" >&6; }
6774
6775fi
6776if test `eval echo '${'$as_ac_Header'}'` = yes; then
6777  cat >>confdefs.h <<_ACEOF
6778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6779_ACEOF
6780
6781fi
6782
6783done
6784
6785ac_ext=cpp
6786ac_cpp='$CXXCPP $CPPFLAGS'
6787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6790if test -z "$CXX"; then
6791  if test -n "$CCC"; then
6792    CXX=$CCC
6793  else
6794    if test -n "$ac_tool_prefix"; then
6795  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6796  do
6797    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6798set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6801if test "${ac_cv_prog_CXX+set}" = set; then
6802  echo $ECHO_N "(cached) $ECHO_C" >&6
6803else
6804  if test -n "$CXX"; then
6805  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6806else
6807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808for as_dir in $PATH
6809do
6810  IFS=$as_save_IFS
6811  test -z "$as_dir" && as_dir=.
6812  for ac_exec_ext in '' $ac_executable_extensions; do
6813  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6815    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6816    break 2
6817  fi
6818done
6819done
6820IFS=$as_save_IFS
6821
6822fi
6823fi
6824CXX=$ac_cv_prog_CXX
6825if test -n "$CXX"; then
6826  { echo "$as_me:$LINENO: result: $CXX" >&5
6827echo "${ECHO_T}$CXX" >&6; }
6828else
6829  { echo "$as_me:$LINENO: result: no" >&5
6830echo "${ECHO_T}no" >&6; }
6831fi
6832
6833
6834    test -n "$CXX" && break
6835  done
6836fi
6837if test -z "$CXX"; then
6838  ac_ct_CXX=$CXX
6839  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6840do
6841  # Extract the first word of "$ac_prog", so it can be a program name with args.
6842set dummy $ac_prog; ac_word=$2
6843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6846  echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848  if test -n "$ac_ct_CXX"; then
6849  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6850else
6851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852for as_dir in $PATH
6853do
6854  IFS=$as_save_IFS
6855  test -z "$as_dir" && as_dir=.
6856  for ac_exec_ext in '' $ac_executable_extensions; do
6857  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6858    ac_cv_prog_ac_ct_CXX="$ac_prog"
6859    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860    break 2
6861  fi
6862done
6863done
6864IFS=$as_save_IFS
6865
6866fi
6867fi
6868ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6869if test -n "$ac_ct_CXX"; then
6870  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6871echo "${ECHO_T}$ac_ct_CXX" >&6; }
6872else
6873  { echo "$as_me:$LINENO: result: no" >&5
6874echo "${ECHO_T}no" >&6; }
6875fi
6876
6877
6878  test -n "$ac_ct_CXX" && break
6879done
6880
6881  if test "x$ac_ct_CXX" = x; then
6882    CXX="g++"
6883  else
6884    case $cross_compiling:$ac_tool_warned in
6885yes:)
6886{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6887whose name does not start with the host triplet.  If you think this
6888configuration is useful to you, please write to autoconf@gnu.org." >&5
6889echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6890whose name does not start with the host triplet.  If you think this
6891configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6892ac_tool_warned=yes ;;
6893esac
6894    CXX=$ac_ct_CXX
6895  fi
6896fi
6897
6898  fi
6899fi
6900# Provide some information about the compiler.
6901echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6902ac_compiler=`set X $ac_compile; echo $2`
6903{ (ac_try="$ac_compiler --version >&5"
6904case "(($ac_try" in
6905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6906  *) ac_try_echo=$ac_try;;
6907esac
6908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6909  (eval "$ac_compiler --version >&5") 2>&5
6910  ac_status=$?
6911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912  (exit $ac_status); }
6913{ (ac_try="$ac_compiler -v >&5"
6914case "(($ac_try" in
6915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916  *) ac_try_echo=$ac_try;;
6917esac
6918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6919  (eval "$ac_compiler -v >&5") 2>&5
6920  ac_status=$?
6921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922  (exit $ac_status); }
6923{ (ac_try="$ac_compiler -V >&5"
6924case "(($ac_try" in
6925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6926  *) ac_try_echo=$ac_try;;
6927esac
6928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6929  (eval "$ac_compiler -V >&5") 2>&5
6930  ac_status=$?
6931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932  (exit $ac_status); }
6933
6934{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6935echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6936if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6937  echo $ECHO_N "(cached) $ECHO_C" >&6
6938else
6939  cat >conftest.$ac_ext <<_ACEOF
6940/* confdefs.h.  */
6941_ACEOF
6942cat confdefs.h >>conftest.$ac_ext
6943cat >>conftest.$ac_ext <<_ACEOF
6944/* end confdefs.h.  */
6945
6946int
6947main ()
6948{
6949#ifndef __GNUC__
6950       choke me
6951#endif
6952
6953  ;
6954  return 0;
6955}
6956_ACEOF
6957rm -f conftest.$ac_objext
6958if { (ac_try="$ac_compile"
6959case "(($ac_try" in
6960  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6961  *) ac_try_echo=$ac_try;;
6962esac
6963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6964  (eval "$ac_compile") 2>conftest.er1
6965  ac_status=$?
6966  grep -v '^ *+' conftest.er1 >conftest.err
6967  rm -f conftest.er1
6968  cat conftest.err >&5
6969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970  (exit $ac_status); } && {
6971	 test -z "$ac_cxx_werror_flag" ||
6972	 test ! -s conftest.err
6973       } && test -s conftest.$ac_objext; then
6974  ac_compiler_gnu=yes
6975else
6976  echo "$as_me: failed program was:" >&5
6977sed 's/^/| /' conftest.$ac_ext >&5
6978
6979	ac_compiler_gnu=no
6980fi
6981
6982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6984
6985fi
6986{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6987echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6988GXX=`test $ac_compiler_gnu = yes && echo yes`
6989ac_test_CXXFLAGS=${CXXFLAGS+set}
6990ac_save_CXXFLAGS=$CXXFLAGS
6991{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6992echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6993if test "${ac_cv_prog_cxx_g+set}" = set; then
6994  echo $ECHO_N "(cached) $ECHO_C" >&6
6995else
6996  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6997   ac_cxx_werror_flag=yes
6998   ac_cv_prog_cxx_g=no
6999   CXXFLAGS="-g"
7000   cat >conftest.$ac_ext <<_ACEOF
7001/* confdefs.h.  */
7002_ACEOF
7003cat confdefs.h >>conftest.$ac_ext
7004cat >>conftest.$ac_ext <<_ACEOF
7005/* end confdefs.h.  */
7006
7007int
7008main ()
7009{
7010
7011  ;
7012  return 0;
7013}
7014_ACEOF
7015rm -f conftest.$ac_objext
7016if { (ac_try="$ac_compile"
7017case "(($ac_try" in
7018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019  *) ac_try_echo=$ac_try;;
7020esac
7021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022  (eval "$ac_compile") 2>conftest.er1
7023  ac_status=$?
7024  grep -v '^ *+' conftest.er1 >conftest.err
7025  rm -f conftest.er1
7026  cat conftest.err >&5
7027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028  (exit $ac_status); } && {
7029	 test -z "$ac_cxx_werror_flag" ||
7030	 test ! -s conftest.err
7031       } && test -s conftest.$ac_objext; then
7032  ac_cv_prog_cxx_g=yes
7033else
7034  echo "$as_me: failed program was:" >&5
7035sed 's/^/| /' conftest.$ac_ext >&5
7036
7037	CXXFLAGS=""
7038      cat >conftest.$ac_ext <<_ACEOF
7039/* confdefs.h.  */
7040_ACEOF
7041cat confdefs.h >>conftest.$ac_ext
7042cat >>conftest.$ac_ext <<_ACEOF
7043/* end confdefs.h.  */
7044
7045int
7046main ()
7047{
7048
7049  ;
7050  return 0;
7051}
7052_ACEOF
7053rm -f conftest.$ac_objext
7054if { (ac_try="$ac_compile"
7055case "(($ac_try" in
7056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7057  *) ac_try_echo=$ac_try;;
7058esac
7059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7060  (eval "$ac_compile") 2>conftest.er1
7061  ac_status=$?
7062  grep -v '^ *+' conftest.er1 >conftest.err
7063  rm -f conftest.er1
7064  cat conftest.err >&5
7065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066  (exit $ac_status); } && {
7067	 test -z "$ac_cxx_werror_flag" ||
7068	 test ! -s conftest.err
7069       } && test -s conftest.$ac_objext; then
7070  :
7071else
7072  echo "$as_me: failed program was:" >&5
7073sed 's/^/| /' conftest.$ac_ext >&5
7074
7075	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7076	 CXXFLAGS="-g"
7077	 cat >conftest.$ac_ext <<_ACEOF
7078/* confdefs.h.  */
7079_ACEOF
7080cat confdefs.h >>conftest.$ac_ext
7081cat >>conftest.$ac_ext <<_ACEOF
7082/* end confdefs.h.  */
7083
7084int
7085main ()
7086{
7087
7088  ;
7089  return 0;
7090}
7091_ACEOF
7092rm -f conftest.$ac_objext
7093if { (ac_try="$ac_compile"
7094case "(($ac_try" in
7095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7096  *) ac_try_echo=$ac_try;;
7097esac
7098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099  (eval "$ac_compile") 2>conftest.er1
7100  ac_status=$?
7101  grep -v '^ *+' conftest.er1 >conftest.err
7102  rm -f conftest.er1
7103  cat conftest.err >&5
7104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105  (exit $ac_status); } && {
7106	 test -z "$ac_cxx_werror_flag" ||
7107	 test ! -s conftest.err
7108       } && test -s conftest.$ac_objext; then
7109  ac_cv_prog_cxx_g=yes
7110else
7111  echo "$as_me: failed program was:" >&5
7112sed 's/^/| /' conftest.$ac_ext >&5
7113
7114
7115fi
7116
7117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7118fi
7119
7120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7121fi
7122
7123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7124   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7125fi
7126{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7127echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
7128if test "$ac_test_CXXFLAGS" = set; then
7129  CXXFLAGS=$ac_save_CXXFLAGS
7130elif test $ac_cv_prog_cxx_g = yes; then
7131  if test "$GXX" = yes; then
7132    CXXFLAGS="-g -O2"
7133  else
7134    CXXFLAGS="-g"
7135  fi
7136else
7137  if test "$GXX" = yes; then
7138    CXXFLAGS="-O2"
7139  else
7140    CXXFLAGS=
7141  fi
7142fi
7143ac_ext=cpp
7144ac_cpp='$CXXCPP $CPPFLAGS'
7145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7148
7149depcc="$CXX"  am_compiler_list=
7150
7151{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7152echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
7153if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7154  echo $ECHO_N "(cached) $ECHO_C" >&6
7155else
7156  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7157  # We make a subdir and do the tests there.  Otherwise we can end up
7158  # making bogus files that we don't know about and never remove.  For
7159  # instance it was reported that on HP-UX the gcc test will end up
7160  # making a dummy file named `D' -- because `-MD' means `put the output
7161  # in D'.
7162  mkdir conftest.dir
7163  # Copy depcomp to subdir because otherwise we won't find it if we're
7164  # using a relative directory.
7165  cp "$am_depcomp" conftest.dir
7166  cd conftest.dir
7167  # We will build objects and dependencies in a subdirectory because
7168  # it helps to detect inapplicable dependency modes.  For instance
7169  # both Tru64's cc and ICC support -MD to output dependencies as a
7170  # side effect of compilation, but ICC will put the dependencies in
7171  # the current directory while Tru64 will put them in the object
7172  # directory.
7173  mkdir sub
7174
7175  am_cv_CXX_dependencies_compiler_type=none
7176  if test "$am_compiler_list" = ""; then
7177     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7178  fi
7179  for depmode in $am_compiler_list; do
7180    # Setup a source with many dependencies, because some compilers
7181    # like to wrap large dependency lists on column 80 (with \), and
7182    # we should not choose a depcomp mode which is confused by this.
7183    #
7184    # We need to recreate these files for each test, as the compiler may
7185    # overwrite some of them when testing with obscure command lines.
7186    # This happens at least with the AIX C compiler.
7187    : > sub/conftest.c
7188    for i in 1 2 3 4 5 6; do
7189      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7190      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7191      # Solaris 8's {/usr,}/bin/sh.
7192      touch sub/conftst$i.h
7193    done
7194    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7195
7196    case $depmode in
7197    nosideeffect)
7198      # after this tag, mechanisms are not by side-effect, so they'll
7199      # only be used when explicitly requested
7200      if test "x$enable_dependency_tracking" = xyes; then
7201	continue
7202      else
7203	break
7204      fi
7205      ;;
7206    none) break ;;
7207    esac
7208    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7209    # mode.  It turns out that the SunPro C++ compiler does not properly
7210    # handle `-M -o', and we need to detect this.
7211    if depmode=$depmode \
7212       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7213       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7214       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7215         >/dev/null 2>conftest.err &&
7216       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7217       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7218       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7219       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7220      # icc doesn't choke on unknown options, it will just issue warnings
7221      # or remarks (even with -Werror).  So we grep stderr for any message
7222      # that says an option was ignored or not supported.
7223      # When given -MP, icc 7.0 and 7.1 complain thusly:
7224      #   icc: Command line warning: ignoring option '-M'; no argument required
7225      # The diagnosis changed in icc 8.0:
7226      #   icc: Command line remark: option '-MP' not supported
7227      if (grep 'ignoring option' conftest.err ||
7228          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7229        am_cv_CXX_dependencies_compiler_type=$depmode
7230        break
7231      fi
7232    fi
7233  done
7234
7235  cd ..
7236  rm -rf conftest.dir
7237else
7238  am_cv_CXX_dependencies_compiler_type=none
7239fi
7240
7241fi
7242{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7243echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
7244CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7245
7246 if
7247  test "x$enable_dependency_tracking" != xno \
7248  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7249  am__fastdepCXX_TRUE=
7250  am__fastdepCXX_FALSE='#'
7251else
7252  am__fastdepCXX_TRUE='#'
7253  am__fastdepCXX_FALSE=
7254fi
7255
7256
7257
7258
7259if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7260    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7261    (test "X$CXX" != "Xg++"))) ; then
7262  ac_ext=cpp
7263ac_cpp='$CXXCPP $CPPFLAGS'
7264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7267{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7268echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7269if test -z "$CXXCPP"; then
7270  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7271  echo $ECHO_N "(cached) $ECHO_C" >&6
7272else
7273      # Double quotes because CXXCPP needs to be expanded
7274    for CXXCPP in "$CXX -E" "/lib/cpp"
7275    do
7276      ac_preproc_ok=false
7277for ac_cxx_preproc_warn_flag in '' yes
7278do
7279  # Use a header file that comes with gcc, so configuring glibc
7280  # with a fresh cross-compiler works.
7281  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7282  # <limits.h> exists even on freestanding compilers.
7283  # On the NeXT, cc -E runs the code through the compiler's parser,
7284  # not just through cpp. "Syntax error" is here to catch this case.
7285  cat >conftest.$ac_ext <<_ACEOF
7286/* confdefs.h.  */
7287_ACEOF
7288cat confdefs.h >>conftest.$ac_ext
7289cat >>conftest.$ac_ext <<_ACEOF
7290/* end confdefs.h.  */
7291#ifdef __STDC__
7292# include <limits.h>
7293#else
7294# include <assert.h>
7295#endif
7296		     Syntax error
7297_ACEOF
7298if { (ac_try="$ac_cpp conftest.$ac_ext"
7299case "(($ac_try" in
7300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301  *) ac_try_echo=$ac_try;;
7302esac
7303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7304  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7305  ac_status=$?
7306  grep -v '^ *+' conftest.er1 >conftest.err
7307  rm -f conftest.er1
7308  cat conftest.err >&5
7309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310  (exit $ac_status); } >/dev/null && {
7311	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7312	 test ! -s conftest.err
7313       }; then
7314  :
7315else
7316  echo "$as_me: failed program was:" >&5
7317sed 's/^/| /' conftest.$ac_ext >&5
7318
7319  # Broken: fails on valid input.
7320continue
7321fi
7322
7323rm -f conftest.err conftest.$ac_ext
7324
7325  # OK, works on sane cases.  Now check whether nonexistent headers
7326  # can be detected and how.
7327  cat >conftest.$ac_ext <<_ACEOF
7328/* confdefs.h.  */
7329_ACEOF
7330cat confdefs.h >>conftest.$ac_ext
7331cat >>conftest.$ac_ext <<_ACEOF
7332/* end confdefs.h.  */
7333#include <ac_nonexistent.h>
7334_ACEOF
7335if { (ac_try="$ac_cpp conftest.$ac_ext"
7336case "(($ac_try" in
7337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7338  *) ac_try_echo=$ac_try;;
7339esac
7340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7341  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7342  ac_status=$?
7343  grep -v '^ *+' conftest.er1 >conftest.err
7344  rm -f conftest.er1
7345  cat conftest.err >&5
7346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347  (exit $ac_status); } >/dev/null && {
7348	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7349	 test ! -s conftest.err
7350       }; then
7351  # Broken: success on invalid input.
7352continue
7353else
7354  echo "$as_me: failed program was:" >&5
7355sed 's/^/| /' conftest.$ac_ext >&5
7356
7357  # Passes both tests.
7358ac_preproc_ok=:
7359break
7360fi
7361
7362rm -f conftest.err conftest.$ac_ext
7363
7364done
7365# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7366rm -f conftest.err conftest.$ac_ext
7367if $ac_preproc_ok; then
7368  break
7369fi
7370
7371    done
7372    ac_cv_prog_CXXCPP=$CXXCPP
7373
7374fi
7375  CXXCPP=$ac_cv_prog_CXXCPP
7376else
7377  ac_cv_prog_CXXCPP=$CXXCPP
7378fi
7379{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
7380echo "${ECHO_T}$CXXCPP" >&6; }
7381ac_preproc_ok=false
7382for ac_cxx_preproc_warn_flag in '' yes
7383do
7384  # Use a header file that comes with gcc, so configuring glibc
7385  # with a fresh cross-compiler works.
7386  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7387  # <limits.h> exists even on freestanding compilers.
7388  # On the NeXT, cc -E runs the code through the compiler's parser,
7389  # not just through cpp. "Syntax error" is here to catch this case.
7390  cat >conftest.$ac_ext <<_ACEOF
7391/* confdefs.h.  */
7392_ACEOF
7393cat confdefs.h >>conftest.$ac_ext
7394cat >>conftest.$ac_ext <<_ACEOF
7395/* end confdefs.h.  */
7396#ifdef __STDC__
7397# include <limits.h>
7398#else
7399# include <assert.h>
7400#endif
7401		     Syntax error
7402_ACEOF
7403if { (ac_try="$ac_cpp conftest.$ac_ext"
7404case "(($ac_try" in
7405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406  *) ac_try_echo=$ac_try;;
7407esac
7408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7409  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7410  ac_status=$?
7411  grep -v '^ *+' conftest.er1 >conftest.err
7412  rm -f conftest.er1
7413  cat conftest.err >&5
7414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415  (exit $ac_status); } >/dev/null && {
7416	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7417	 test ! -s conftest.err
7418       }; then
7419  :
7420else
7421  echo "$as_me: failed program was:" >&5
7422sed 's/^/| /' conftest.$ac_ext >&5
7423
7424  # Broken: fails on valid input.
7425continue
7426fi
7427
7428rm -f conftest.err conftest.$ac_ext
7429
7430  # OK, works on sane cases.  Now check whether nonexistent headers
7431  # can be detected and how.
7432  cat >conftest.$ac_ext <<_ACEOF
7433/* confdefs.h.  */
7434_ACEOF
7435cat confdefs.h >>conftest.$ac_ext
7436cat >>conftest.$ac_ext <<_ACEOF
7437/* end confdefs.h.  */
7438#include <ac_nonexistent.h>
7439_ACEOF
7440if { (ac_try="$ac_cpp conftest.$ac_ext"
7441case "(($ac_try" in
7442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443  *) ac_try_echo=$ac_try;;
7444esac
7445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7446  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7447  ac_status=$?
7448  grep -v '^ *+' conftest.er1 >conftest.err
7449  rm -f conftest.er1
7450  cat conftest.err >&5
7451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452  (exit $ac_status); } >/dev/null && {
7453	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7454	 test ! -s conftest.err
7455       }; then
7456  # Broken: success on invalid input.
7457continue
7458else
7459  echo "$as_me: failed program was:" >&5
7460sed 's/^/| /' conftest.$ac_ext >&5
7461
7462  # Passes both tests.
7463ac_preproc_ok=:
7464break
7465fi
7466
7467rm -f conftest.err conftest.$ac_ext
7468
7469done
7470# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7471rm -f conftest.err conftest.$ac_ext
7472if $ac_preproc_ok; then
7473  :
7474else
7475  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7476See \`config.log' for more details." >&5
7477echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7478See \`config.log' for more details." >&2;}
7479   { (exit 1); exit 1; }; }
7480fi
7481
7482ac_ext=cpp
7483ac_cpp='$CXXCPP $CPPFLAGS'
7484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7487
7488fi
7489
7490
7491ac_ext=f
7492ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7493ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7494ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7495if test -n "$ac_tool_prefix"; then
7496  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
7497  do
7498    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7499set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7500{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7502if test "${ac_cv_prog_F77+set}" = set; then
7503  echo $ECHO_N "(cached) $ECHO_C" >&6
7504else
7505  if test -n "$F77"; then
7506  ac_cv_prog_F77="$F77" # Let the user override the test.
7507else
7508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509for as_dir in $PATH
7510do
7511  IFS=$as_save_IFS
7512  test -z "$as_dir" && as_dir=.
7513  for ac_exec_ext in '' $ac_executable_extensions; do
7514  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7516    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517    break 2
7518  fi
7519done
7520done
7521IFS=$as_save_IFS
7522
7523fi
7524fi
7525F77=$ac_cv_prog_F77
7526if test -n "$F77"; then
7527  { echo "$as_me:$LINENO: result: $F77" >&5
7528echo "${ECHO_T}$F77" >&6; }
7529else
7530  { echo "$as_me:$LINENO: result: no" >&5
7531echo "${ECHO_T}no" >&6; }
7532fi
7533
7534
7535    test -n "$F77" && break
7536  done
7537fi
7538if test -z "$F77"; then
7539  ac_ct_F77=$F77
7540  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
7541do
7542  # Extract the first word of "$ac_prog", so it can be a program name with args.
7543set dummy $ac_prog; ac_word=$2
7544{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7546if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7547  echo $ECHO_N "(cached) $ECHO_C" >&6
7548else
7549  if test -n "$ac_ct_F77"; then
7550  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7551else
7552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553for as_dir in $PATH
7554do
7555  IFS=$as_save_IFS
7556  test -z "$as_dir" && as_dir=.
7557  for ac_exec_ext in '' $ac_executable_extensions; do
7558  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7559    ac_cv_prog_ac_ct_F77="$ac_prog"
7560    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561    break 2
7562  fi
7563done
7564done
7565IFS=$as_save_IFS
7566
7567fi
7568fi
7569ac_ct_F77=$ac_cv_prog_ac_ct_F77
7570if test -n "$ac_ct_F77"; then
7571  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7572echo "${ECHO_T}$ac_ct_F77" >&6; }
7573else
7574  { echo "$as_me:$LINENO: result: no" >&5
7575echo "${ECHO_T}no" >&6; }
7576fi
7577
7578
7579  test -n "$ac_ct_F77" && break
7580done
7581
7582  if test "x$ac_ct_F77" = x; then
7583    F77=""
7584  else
7585    case $cross_compiling:$ac_tool_warned in
7586yes:)
7587{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7588whose name does not start with the host triplet.  If you think this
7589configuration is useful to you, please write to autoconf@gnu.org." >&5
7590echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7591whose name does not start with the host triplet.  If you think this
7592configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7593ac_tool_warned=yes ;;
7594esac
7595    F77=$ac_ct_F77
7596  fi
7597fi
7598
7599
7600# Provide some information about the compiler.
7601echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7602ac_compiler=`set X $ac_compile; echo $2`
7603{ (ac_try="$ac_compiler --version >&5"
7604case "(($ac_try" in
7605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7606  *) ac_try_echo=$ac_try;;
7607esac
7608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7609  (eval "$ac_compiler --version >&5") 2>&5
7610  ac_status=$?
7611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612  (exit $ac_status); }
7613{ (ac_try="$ac_compiler -v >&5"
7614case "(($ac_try" in
7615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616  *) ac_try_echo=$ac_try;;
7617esac
7618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619  (eval "$ac_compiler -v >&5") 2>&5
7620  ac_status=$?
7621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622  (exit $ac_status); }
7623{ (ac_try="$ac_compiler -V >&5"
7624case "(($ac_try" in
7625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626  *) ac_try_echo=$ac_try;;
7627esac
7628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629  (eval "$ac_compiler -V >&5") 2>&5
7630  ac_status=$?
7631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632  (exit $ac_status); }
7633rm -f a.out
7634
7635# If we don't use `.F' as extension, the preprocessor is not run on the
7636# input file.  (Note that this only needs to work for GNU compilers.)
7637ac_save_ext=$ac_ext
7638ac_ext=F
7639{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7640echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7641if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7642  echo $ECHO_N "(cached) $ECHO_C" >&6
7643else
7644  cat >conftest.$ac_ext <<_ACEOF
7645      program main
7646#ifndef __GNUC__
7647       choke me
7648#endif
7649
7650      end
7651_ACEOF
7652rm -f conftest.$ac_objext
7653if { (ac_try="$ac_compile"
7654case "(($ac_try" in
7655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656  *) ac_try_echo=$ac_try;;
7657esac
7658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7659  (eval "$ac_compile") 2>conftest.er1
7660  ac_status=$?
7661  grep -v '^ *+' conftest.er1 >conftest.err
7662  rm -f conftest.er1
7663  cat conftest.err >&5
7664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665  (exit $ac_status); } && {
7666	 test -z "$ac_f77_werror_flag" ||
7667	 test ! -s conftest.err
7668       } && test -s conftest.$ac_objext; then
7669  ac_compiler_gnu=yes
7670else
7671  echo "$as_me: failed program was:" >&5
7672sed 's/^/| /' conftest.$ac_ext >&5
7673
7674	ac_compiler_gnu=no
7675fi
7676
7677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7678ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7679
7680fi
7681{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7682echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7683ac_ext=$ac_save_ext
7684ac_test_FFLAGS=${FFLAGS+set}
7685ac_save_FFLAGS=$FFLAGS
7686FFLAGS=
7687{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7688echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7689if test "${ac_cv_prog_f77_g+set}" = set; then
7690  echo $ECHO_N "(cached) $ECHO_C" >&6
7691else
7692  FFLAGS=-g
7693cat >conftest.$ac_ext <<_ACEOF
7694      program main
7695
7696      end
7697_ACEOF
7698rm -f conftest.$ac_objext
7699if { (ac_try="$ac_compile"
7700case "(($ac_try" in
7701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7702  *) ac_try_echo=$ac_try;;
7703esac
7704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705  (eval "$ac_compile") 2>conftest.er1
7706  ac_status=$?
7707  grep -v '^ *+' conftest.er1 >conftest.err
7708  rm -f conftest.er1
7709  cat conftest.err >&5
7710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711  (exit $ac_status); } && {
7712	 test -z "$ac_f77_werror_flag" ||
7713	 test ! -s conftest.err
7714       } && test -s conftest.$ac_objext; then
7715  ac_cv_prog_f77_g=yes
7716else
7717  echo "$as_me: failed program was:" >&5
7718sed 's/^/| /' conftest.$ac_ext >&5
7719
7720	ac_cv_prog_f77_g=no
7721fi
7722
7723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724
7725fi
7726{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7727echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7728if test "$ac_test_FFLAGS" = set; then
7729  FFLAGS=$ac_save_FFLAGS
7730elif test $ac_cv_prog_f77_g = yes; then
7731  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7732    FFLAGS="-g -O2"
7733  else
7734    FFLAGS="-g"
7735  fi
7736else
7737  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7738    FFLAGS="-O2"
7739  else
7740    FFLAGS=
7741  fi
7742fi
7743
7744G77=`test $ac_compiler_gnu = yes && echo yes`
7745ac_ext=c
7746ac_cpp='$CPP $CPPFLAGS'
7747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7749ac_compiler_gnu=$ac_cv_c_compiler_gnu
7750
7751
7752
7753# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7754
7755# find the maximum length of command line arguments
7756{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7757echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7758if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7759  echo $ECHO_N "(cached) $ECHO_C" >&6
7760else
7761    i=0
7762  teststring="ABCD"
7763
7764  case $build_os in
7765  msdosdjgpp*)
7766    # On DJGPP, this test can blow up pretty badly due to problems in libc
7767    # (any single argument exceeding 2000 bytes causes a buffer overrun
7768    # during glob expansion).  Even if it were fixed, the result of this
7769    # check would be larger than it should be.
7770    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7771    ;;
7772
7773  gnu*)
7774    # Under GNU Hurd, this test is not required because there is
7775    # no limit to the length of command line arguments.
7776    # Libtool will interpret -1 as no limit whatsoever
7777    lt_cv_sys_max_cmd_len=-1;
7778    ;;
7779
7780  cygwin* | mingw*)
7781    # On Win9x/ME, this test blows up -- it succeeds, but takes
7782    # about 5 minutes as the teststring grows exponentially.
7783    # Worse, since 9x/ME are not pre-emptively multitasking,
7784    # you end up with a "frozen" computer, even though with patience
7785    # the test eventually succeeds (with a max line length of 256k).
7786    # Instead, let's just punt: use the minimum linelength reported by
7787    # all of the supported platforms: 8192 (on NT/2K/XP).
7788    lt_cv_sys_max_cmd_len=8192;
7789    ;;
7790
7791  amigaos*)
7792    # On AmigaOS with pdksh, this test takes hours, literally.
7793    # So we just punt and use a minimum line length of 8192.
7794    lt_cv_sys_max_cmd_len=8192;
7795    ;;
7796
7797  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7798    # This has been around since 386BSD, at least.  Likely further.
7799    if test -x /sbin/sysctl; then
7800      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7801    elif test -x /usr/sbin/sysctl; then
7802      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7803    else
7804      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7805    fi
7806    # And add a safety zone
7807    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7808    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7809    ;;
7810
7811  interix*)
7812    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7813    lt_cv_sys_max_cmd_len=196608
7814    ;;
7815
7816  osf*)
7817    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7818    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7819    # nice to cause kernel panics so lets avoid the loop below.
7820    # First set a reasonable default.
7821    lt_cv_sys_max_cmd_len=16384
7822    #
7823    if test -x /sbin/sysconfig; then
7824      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7825        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7826      esac
7827    fi
7828    ;;
7829  sco3.2v5*)
7830    lt_cv_sys_max_cmd_len=102400
7831    ;;
7832  sysv5* | sco5v6* | sysv4.2uw2*)
7833    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7834    if test -n "$kargmax"; then
7835      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
7836    else
7837      lt_cv_sys_max_cmd_len=32768
7838    fi
7839    ;;
7840  *)
7841    # If test is not a shell built-in, we'll probably end up computing a
7842    # maximum length that is only half of the actual maximum length, but
7843    # we can't tell.
7844    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7845    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7846	       = "XX$teststring") >/dev/null 2>&1 &&
7847	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
7848	    lt_cv_sys_max_cmd_len=$new_result &&
7849	    test $i != 17 # 1/2 MB should be enough
7850    do
7851      i=`expr $i + 1`
7852      teststring=$teststring$teststring
7853    done
7854    teststring=
7855    # Add a significant safety factor because C++ compilers can tack on massive
7856    # amounts of additional arguments before passing them to the linker.
7857    # It appears as though 1/2 is a usable value.
7858    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7859    ;;
7860  esac
7861
7862fi
7863
7864if test -n $lt_cv_sys_max_cmd_len ; then
7865  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7866echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7867else
7868  { echo "$as_me:$LINENO: result: none" >&5
7869echo "${ECHO_T}none" >&6; }
7870fi
7871
7872
7873
7874
7875# Check for command to grab the raw symbol name followed by C symbol from nm.
7876{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7877echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7878if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7879  echo $ECHO_N "(cached) $ECHO_C" >&6
7880else
7881
7882# These are sane defaults that work on at least a few old systems.
7883# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7884
7885# Character class describing NM global symbol codes.
7886symcode='[BCDEGRST]'
7887
7888# Regexp to match symbols that can be accessed directly from C.
7889sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7890
7891# Transform an extracted symbol line into a proper C declaration
7892lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7893
7894# Transform an extracted symbol line into symbol name and symbol address
7895lt_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'"
7896
7897# Define system-specific variables.
7898case $host_os in
7899aix*)
7900  symcode='[BCDT]'
7901  ;;
7902cygwin* | mingw* | pw32*)
7903  symcode='[ABCDGISTW]'
7904  ;;
7905hpux*) # Its linker distinguishes data from code symbols
7906  if test "$host_cpu" = ia64; then
7907    symcode='[ABCDEGRST]'
7908  fi
7909  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7910  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'"
7911  ;;
7912linux*)
7913  if test "$host_cpu" = ia64; then
7914    symcode='[ABCDGIRSTW]'
7915    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7916    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'"
7917  fi
7918  ;;
7919irix* | nonstopux*)
7920  symcode='[BCDEGRST]'
7921  ;;
7922osf*)
7923  symcode='[BCDEGQRST]'
7924  ;;
7925solaris*)
7926  symcode='[BDRT]'
7927  ;;
7928sco3.2v5*)
7929  symcode='[DT]'
7930  ;;
7931sysv4.2uw2*)
7932  symcode='[DT]'
7933  ;;
7934sysv5* | sco5v6* | unixware* | OpenUNIX*)
7935  symcode='[ABDT]'
7936  ;;
7937sysv4)
7938  symcode='[DFNSTU]'
7939  ;;
7940esac
7941
7942# Handle CRLF in mingw tool chain
7943opt_cr=
7944case $build_os in
7945mingw*)
7946  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7947  ;;
7948esac
7949
7950# If we're using GNU nm, then use its standard symbol codes.
7951case `$NM -V 2>&1` in
7952*GNU* | *'with BFD'*)
7953  symcode='[ABCDGIRSTW]' ;;
7954esac
7955
7956# Try without a prefix undercore, then with it.
7957for ac_symprfx in "" "_"; do
7958
7959  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7960  symxfrm="\\1 $ac_symprfx\\2 \\2"
7961
7962  # Write the raw and C identifiers.
7963  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7964
7965  # Check to see that the pipe works correctly.
7966  pipe_works=no
7967
7968  rm -f conftest*
7969  cat > conftest.$ac_ext <<EOF
7970#ifdef __cplusplus
7971extern "C" {
7972#endif
7973char nm_test_var;
7974void nm_test_func(){}
7975#ifdef __cplusplus
7976}
7977#endif
7978int main(){nm_test_var='a';nm_test_func();return(0);}
7979EOF
7980
7981  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7982  (eval $ac_compile) 2>&5
7983  ac_status=$?
7984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985  (exit $ac_status); }; then
7986    # Now try to grab the symbols.
7987    nlist=conftest.nm
7988    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7989  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7990  ac_status=$?
7991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992  (exit $ac_status); } && test -s "$nlist"; then
7993      # Try sorting and uniquifying the output.
7994      if sort "$nlist" | uniq > "$nlist"T; then
7995	mv -f "$nlist"T "$nlist"
7996      else
7997	rm -f "$nlist"T
7998      fi
7999
8000      # Make sure that we snagged all the symbols we need.
8001      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8002	if grep ' nm_test_func$' "$nlist" >/dev/null; then
8003	  cat <<EOF > conftest.$ac_ext
8004#ifdef __cplusplus
8005extern "C" {
8006#endif
8007
8008EOF
8009	  # Now generate the symbol file.
8010	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8011
8012	  cat <<EOF >> conftest.$ac_ext
8013#if defined (__STDC__) && __STDC__
8014# define lt_ptr_t void *
8015#else
8016# define lt_ptr_t char *
8017# define const
8018#endif
8019
8020/* The mapping between symbol names and symbols. */
8021const struct {
8022  const char *name;
8023  lt_ptr_t address;
8024}
8025lt_preloaded_symbols[] =
8026{
8027EOF
8028	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8029	  cat <<\EOF >> conftest.$ac_ext
8030  {0, (lt_ptr_t) 0}
8031};
8032
8033#ifdef __cplusplus
8034}
8035#endif
8036EOF
8037	  # Now try linking the two files.
8038	  mv conftest.$ac_objext conftstm.$ac_objext
8039	  lt_save_LIBS="$LIBS"
8040	  lt_save_CFLAGS="$CFLAGS"
8041	  LIBS="conftstm.$ac_objext"
8042	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8043	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8044  (eval $ac_link) 2>&5
8045  ac_status=$?
8046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8048	    pipe_works=yes
8049	  fi
8050	  LIBS="$lt_save_LIBS"
8051	  CFLAGS="$lt_save_CFLAGS"
8052	else
8053	  echo "cannot find nm_test_func in $nlist" >&5
8054	fi
8055      else
8056	echo "cannot find nm_test_var in $nlist" >&5
8057      fi
8058    else
8059      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8060    fi
8061  else
8062    echo "$progname: failed program was:" >&5
8063    cat conftest.$ac_ext >&5
8064  fi
8065  rm -f conftest* conftst*
8066
8067  # Do not use the global_symbol_pipe unless it works.
8068  if test "$pipe_works" = yes; then
8069    break
8070  else
8071    lt_cv_sys_global_symbol_pipe=
8072  fi
8073done
8074
8075fi
8076
8077if test -z "$lt_cv_sys_global_symbol_pipe"; then
8078  lt_cv_sys_global_symbol_to_cdecl=
8079fi
8080if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8081  { echo "$as_me:$LINENO: result: failed" >&5
8082echo "${ECHO_T}failed" >&6; }
8083else
8084  { echo "$as_me:$LINENO: result: ok" >&5
8085echo "${ECHO_T}ok" >&6; }
8086fi
8087
8088{ echo "$as_me:$LINENO: checking for objdir" >&5
8089echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8090if test "${lt_cv_objdir+set}" = set; then
8091  echo $ECHO_N "(cached) $ECHO_C" >&6
8092else
8093  rm -f .libs 2>/dev/null
8094mkdir .libs 2>/dev/null
8095if test -d .libs; then
8096  lt_cv_objdir=.libs
8097else
8098  # MS-DOS does not allow filenames that begin with a dot.
8099  lt_cv_objdir=_libs
8100fi
8101rmdir .libs 2>/dev/null
8102fi
8103{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8104echo "${ECHO_T}$lt_cv_objdir" >&6; }
8105objdir=$lt_cv_objdir
8106
8107
8108
8109
8110
8111case $host_os in
8112aix3*)
8113  # AIX sometimes has problems with the GCC collect2 program.  For some
8114  # reason, if we set the COLLECT_NAMES environment variable, the problems
8115  # vanish in a puff of smoke.
8116  if test "X${COLLECT_NAMES+set}" != Xset; then
8117    COLLECT_NAMES=
8118    export COLLECT_NAMES
8119  fi
8120  ;;
8121esac
8122
8123# Sed substitution that helps us do robust quoting.  It backslashifies
8124# metacharacters that are still active within double-quoted strings.
8125Xsed='sed -e 1s/^X//'
8126sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8127
8128# Same as above, but do not quote variable references.
8129double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8130
8131# Sed substitution to delay expansion of an escaped shell variable in a
8132# double_quote_subst'ed string.
8133delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8134
8135# Sed substitution to avoid accidental globbing in evaled expressions
8136no_glob_subst='s/\*/\\\*/g'
8137
8138# Constants:
8139rm="rm -f"
8140
8141# Global variables:
8142default_ofile=libtool
8143can_build_shared=yes
8144
8145# All known linkers require a `.a' archive for static linking (except MSVC,
8146# which needs '.lib').
8147libext=a
8148ltmain="$ac_aux_dir/ltmain.sh"
8149ofile="$default_ofile"
8150with_gnu_ld="$lt_cv_prog_gnu_ld"
8151
8152if test -n "$ac_tool_prefix"; then
8153  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8154set dummy ${ac_tool_prefix}ar; ac_word=$2
8155{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8157if test "${ac_cv_prog_AR+set}" = set; then
8158  echo $ECHO_N "(cached) $ECHO_C" >&6
8159else
8160  if test -n "$AR"; then
8161  ac_cv_prog_AR="$AR" # Let the user override the test.
8162else
8163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164for as_dir in $PATH
8165do
8166  IFS=$as_save_IFS
8167  test -z "$as_dir" && as_dir=.
8168  for ac_exec_ext in '' $ac_executable_extensions; do
8169  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8170    ac_cv_prog_AR="${ac_tool_prefix}ar"
8171    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8172    break 2
8173  fi
8174done
8175done
8176IFS=$as_save_IFS
8177
8178fi
8179fi
8180AR=$ac_cv_prog_AR
8181if test -n "$AR"; then
8182  { echo "$as_me:$LINENO: result: $AR" >&5
8183echo "${ECHO_T}$AR" >&6; }
8184else
8185  { echo "$as_me:$LINENO: result: no" >&5
8186echo "${ECHO_T}no" >&6; }
8187fi
8188
8189
8190fi
8191if test -z "$ac_cv_prog_AR"; then
8192  ac_ct_AR=$AR
8193  # Extract the first word of "ar", so it can be a program name with args.
8194set dummy ar; ac_word=$2
8195{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8197if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8198  echo $ECHO_N "(cached) $ECHO_C" >&6
8199else
8200  if test -n "$ac_ct_AR"; then
8201  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8202else
8203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204for as_dir in $PATH
8205do
8206  IFS=$as_save_IFS
8207  test -z "$as_dir" && as_dir=.
8208  for ac_exec_ext in '' $ac_executable_extensions; do
8209  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8210    ac_cv_prog_ac_ct_AR="ar"
8211    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8212    break 2
8213  fi
8214done
8215done
8216IFS=$as_save_IFS
8217
8218fi
8219fi
8220ac_ct_AR=$ac_cv_prog_ac_ct_AR
8221if test -n "$ac_ct_AR"; then
8222  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8223echo "${ECHO_T}$ac_ct_AR" >&6; }
8224else
8225  { echo "$as_me:$LINENO: result: no" >&5
8226echo "${ECHO_T}no" >&6; }
8227fi
8228
8229  if test "x$ac_ct_AR" = x; then
8230    AR="false"
8231  else
8232    case $cross_compiling:$ac_tool_warned in
8233yes:)
8234{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8235whose name does not start with the host triplet.  If you think this
8236configuration is useful to you, please write to autoconf@gnu.org." >&5
8237echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8238whose name does not start with the host triplet.  If you think this
8239configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8240ac_tool_warned=yes ;;
8241esac
8242    AR=$ac_ct_AR
8243  fi
8244else
8245  AR="$ac_cv_prog_AR"
8246fi
8247
8248if test -n "$ac_tool_prefix"; then
8249  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8250set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8251{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8253if test "${ac_cv_prog_RANLIB+set}" = set; then
8254  echo $ECHO_N "(cached) $ECHO_C" >&6
8255else
8256  if test -n "$RANLIB"; then
8257  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8258else
8259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260for as_dir in $PATH
8261do
8262  IFS=$as_save_IFS
8263  test -z "$as_dir" && as_dir=.
8264  for ac_exec_ext in '' $ac_executable_extensions; do
8265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8266    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8267    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8268    break 2
8269  fi
8270done
8271done
8272IFS=$as_save_IFS
8273
8274fi
8275fi
8276RANLIB=$ac_cv_prog_RANLIB
8277if test -n "$RANLIB"; then
8278  { echo "$as_me:$LINENO: result: $RANLIB" >&5
8279echo "${ECHO_T}$RANLIB" >&6; }
8280else
8281  { echo "$as_me:$LINENO: result: no" >&5
8282echo "${ECHO_T}no" >&6; }
8283fi
8284
8285
8286fi
8287if test -z "$ac_cv_prog_RANLIB"; then
8288  ac_ct_RANLIB=$RANLIB
8289  # Extract the first word of "ranlib", so it can be a program name with args.
8290set dummy ranlib; ac_word=$2
8291{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8293if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8294  echo $ECHO_N "(cached) $ECHO_C" >&6
8295else
8296  if test -n "$ac_ct_RANLIB"; then
8297  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8298else
8299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300for as_dir in $PATH
8301do
8302  IFS=$as_save_IFS
8303  test -z "$as_dir" && as_dir=.
8304  for ac_exec_ext in '' $ac_executable_extensions; do
8305  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8306    ac_cv_prog_ac_ct_RANLIB="ranlib"
8307    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8308    break 2
8309  fi
8310done
8311done
8312IFS=$as_save_IFS
8313
8314fi
8315fi
8316ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8317if test -n "$ac_ct_RANLIB"; then
8318  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8319echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8320else
8321  { echo "$as_me:$LINENO: result: no" >&5
8322echo "${ECHO_T}no" >&6; }
8323fi
8324
8325  if test "x$ac_ct_RANLIB" = x; then
8326    RANLIB=":"
8327  else
8328    case $cross_compiling:$ac_tool_warned in
8329yes:)
8330{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8331whose name does not start with the host triplet.  If you think this
8332configuration is useful to you, please write to autoconf@gnu.org." >&5
8333echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8334whose name does not start with the host triplet.  If you think this
8335configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8336ac_tool_warned=yes ;;
8337esac
8338    RANLIB=$ac_ct_RANLIB
8339  fi
8340else
8341  RANLIB="$ac_cv_prog_RANLIB"
8342fi
8343
8344if test -n "$ac_tool_prefix"; then
8345  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8346set dummy ${ac_tool_prefix}strip; ac_word=$2
8347{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8349if test "${ac_cv_prog_STRIP+set}" = set; then
8350  echo $ECHO_N "(cached) $ECHO_C" >&6
8351else
8352  if test -n "$STRIP"; then
8353  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8354else
8355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356for as_dir in $PATH
8357do
8358  IFS=$as_save_IFS
8359  test -z "$as_dir" && as_dir=.
8360  for ac_exec_ext in '' $ac_executable_extensions; do
8361  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8362    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8363    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8364    break 2
8365  fi
8366done
8367done
8368IFS=$as_save_IFS
8369
8370fi
8371fi
8372STRIP=$ac_cv_prog_STRIP
8373if test -n "$STRIP"; then
8374  { echo "$as_me:$LINENO: result: $STRIP" >&5
8375echo "${ECHO_T}$STRIP" >&6; }
8376else
8377  { echo "$as_me:$LINENO: result: no" >&5
8378echo "${ECHO_T}no" >&6; }
8379fi
8380
8381
8382fi
8383if test -z "$ac_cv_prog_STRIP"; then
8384  ac_ct_STRIP=$STRIP
8385  # Extract the first word of "strip", so it can be a program name with args.
8386set dummy strip; ac_word=$2
8387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8389if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8390  echo $ECHO_N "(cached) $ECHO_C" >&6
8391else
8392  if test -n "$ac_ct_STRIP"; then
8393  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8394else
8395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396for as_dir in $PATH
8397do
8398  IFS=$as_save_IFS
8399  test -z "$as_dir" && as_dir=.
8400  for ac_exec_ext in '' $ac_executable_extensions; do
8401  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8402    ac_cv_prog_ac_ct_STRIP="strip"
8403    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8404    break 2
8405  fi
8406done
8407done
8408IFS=$as_save_IFS
8409
8410fi
8411fi
8412ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8413if test -n "$ac_ct_STRIP"; then
8414  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8415echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8416else
8417  { echo "$as_me:$LINENO: result: no" >&5
8418echo "${ECHO_T}no" >&6; }
8419fi
8420
8421  if test "x$ac_ct_STRIP" = x; then
8422    STRIP=":"
8423  else
8424    case $cross_compiling:$ac_tool_warned in
8425yes:)
8426{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8427whose name does not start with the host triplet.  If you think this
8428configuration is useful to you, please write to autoconf@gnu.org." >&5
8429echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8430whose name does not start with the host triplet.  If you think this
8431configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8432ac_tool_warned=yes ;;
8433esac
8434    STRIP=$ac_ct_STRIP
8435  fi
8436else
8437  STRIP="$ac_cv_prog_STRIP"
8438fi
8439
8440
8441old_CC="$CC"
8442old_CFLAGS="$CFLAGS"
8443
8444# Set sane defaults for various variables
8445test -z "$AR" && AR=ar
8446test -z "$AR_FLAGS" && AR_FLAGS=cru
8447test -z "$AS" && AS=as
8448test -z "$CC" && CC=cc
8449test -z "$LTCC" && LTCC=$CC
8450test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8451test -z "$DLLTOOL" && DLLTOOL=dlltool
8452test -z "$LD" && LD=ld
8453test -z "$LN_S" && LN_S="ln -s"
8454test -z "$MAGIC_CMD" && MAGIC_CMD=file
8455test -z "$NM" && NM=nm
8456test -z "$SED" && SED=sed
8457test -z "$OBJDUMP" && OBJDUMP=objdump
8458test -z "$RANLIB" && RANLIB=:
8459test -z "$STRIP" && STRIP=:
8460test -z "$ac_objext" && ac_objext=o
8461
8462# Determine commands to create old-style static archives.
8463old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8464old_postinstall_cmds='chmod 644 $oldlib'
8465old_postuninstall_cmds=
8466
8467if test -n "$RANLIB"; then
8468  case $host_os in
8469  openbsd*)
8470    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8471    ;;
8472  *)
8473    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8474    ;;
8475  esac
8476  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8477fi
8478
8479for cc_temp in $compiler""; do
8480  case $cc_temp in
8481    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8482    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8483    \-*) ;;
8484    *) break;;
8485  esac
8486done
8487cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8488
8489
8490# Only perform the check for file, if the check method requires it
8491case $deplibs_check_method in
8492file_magic*)
8493  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8494    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8495echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8496if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8497  echo $ECHO_N "(cached) $ECHO_C" >&6
8498else
8499  case $MAGIC_CMD in
8500[\\/*] |  ?:[\\/]*)
8501  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8502  ;;
8503*)
8504  lt_save_MAGIC_CMD="$MAGIC_CMD"
8505  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8506  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8507  for ac_dir in $ac_dummy; do
8508    IFS="$lt_save_ifs"
8509    test -z "$ac_dir" && ac_dir=.
8510    if test -f $ac_dir/${ac_tool_prefix}file; then
8511      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8512      if test -n "$file_magic_test_file"; then
8513	case $deplibs_check_method in
8514	"file_magic "*)
8515	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8516	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8517	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8518	    $EGREP "$file_magic_regex" > /dev/null; then
8519	    :
8520	  else
8521	    cat <<EOF 1>&2
8522
8523*** Warning: the command libtool uses to detect shared libraries,
8524*** $file_magic_cmd, produces output that libtool cannot recognize.
8525*** The result is that libtool may fail to recognize shared libraries
8526*** as such.  This will affect the creation of libtool libraries that
8527*** depend on shared libraries, but programs linked with such libtool
8528*** libraries will work regardless of this problem.  Nevertheless, you
8529*** may want to report the problem to your system manager and/or to
8530*** bug-libtool@gnu.org
8531
8532EOF
8533	  fi ;;
8534	esac
8535      fi
8536      break
8537    fi
8538  done
8539  IFS="$lt_save_ifs"
8540  MAGIC_CMD="$lt_save_MAGIC_CMD"
8541  ;;
8542esac
8543fi
8544
8545MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8546if test -n "$MAGIC_CMD"; then
8547  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8548echo "${ECHO_T}$MAGIC_CMD" >&6; }
8549else
8550  { echo "$as_me:$LINENO: result: no" >&5
8551echo "${ECHO_T}no" >&6; }
8552fi
8553
8554if test -z "$lt_cv_path_MAGIC_CMD"; then
8555  if test -n "$ac_tool_prefix"; then
8556    { echo "$as_me:$LINENO: checking for file" >&5
8557echo $ECHO_N "checking for 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/file; then
8573      lt_cv_path_MAGIC_CMD="$ac_dir/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
8616  else
8617    MAGIC_CMD=:
8618  fi
8619fi
8620
8621  fi
8622  ;;
8623esac
8624
8625enable_dlopen=no
8626enable_win32_dll=yes
8627
8628# Check whether --enable-libtool-lock was given.
8629if test "${enable_libtool_lock+set}" = set; then
8630  enableval=$enable_libtool_lock;
8631fi
8632
8633test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8634
8635
8636# Check whether --with-pic was given.
8637if test "${with_pic+set}" = set; then
8638  withval=$with_pic; pic_mode="$withval"
8639else
8640  pic_mode=default
8641fi
8642
8643test -z "$pic_mode" && pic_mode=default
8644
8645# Use C for the default configuration in the libtool script
8646tagname=
8647lt_save_CC="$CC"
8648ac_ext=c
8649ac_cpp='$CPP $CPPFLAGS'
8650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8652ac_compiler_gnu=$ac_cv_c_compiler_gnu
8653
8654
8655# Source file extension for C test sources.
8656ac_ext=c
8657
8658# Object file extension for compiled C test sources.
8659objext=o
8660objext=$objext
8661
8662# Code to be used in simple compile tests
8663lt_simple_compile_test_code="int some_variable = 0;\n"
8664
8665# Code to be used in simple link tests
8666lt_simple_link_test_code='int main(){return(0);}\n'
8667
8668
8669# If no C compiler was specified, use CC.
8670LTCC=${LTCC-"$CC"}
8671
8672# If no C compiler flags were specified, use CFLAGS.
8673LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8674
8675# Allow CC to be a program name with arguments.
8676compiler=$CC
8677
8678
8679# save warnings/boilerplate of simple test code
8680ac_outfile=conftest.$ac_objext
8681printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8682eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8683_lt_compiler_boilerplate=`cat conftest.err`
8684$rm conftest*
8685
8686ac_outfile=conftest.$ac_objext
8687printf "$lt_simple_link_test_code" >conftest.$ac_ext
8688eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8689_lt_linker_boilerplate=`cat conftest.err`
8690$rm conftest*
8691
8692
8693## CAVEAT EMPTOR:
8694## There is no encapsulation within the following macros, do not change
8695## the running order or otherwise move them around unless you know exactly
8696## what you are doing...
8697
8698lt_prog_compiler_no_builtin_flag=
8699
8700if test "$GCC" = yes; then
8701  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8702
8703
8704{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8705echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8706if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8707  echo $ECHO_N "(cached) $ECHO_C" >&6
8708else
8709  lt_cv_prog_compiler_rtti_exceptions=no
8710  ac_outfile=conftest.$ac_objext
8711   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8712   lt_compiler_flag="-fno-rtti -fno-exceptions"
8713   # Insert the option either (1) after the last *FLAGS variable, or
8714   # (2) before a word containing "conftest.", or (3) at the end.
8715   # Note that $ac_compile itself does not contain backslashes and begins
8716   # with a dollar sign (not a hyphen), so the echo should work correctly.
8717   # The option is referenced via a variable to avoid confusing sed.
8718   lt_compile=`echo "$ac_compile" | $SED \
8719   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8720   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8721   -e 's:$: $lt_compiler_flag:'`
8722   (eval echo "\"\$as_me:8722: $lt_compile\"" >&5)
8723   (eval "$lt_compile" 2>conftest.err)
8724   ac_status=$?
8725   cat conftest.err >&5
8726   echo "$as_me:8726: \$? = $ac_status" >&5
8727   if (exit $ac_status) && test -s "$ac_outfile"; then
8728     # The compiler can only warn and ignore the option if not recognized
8729     # So say no if there are warnings other than the usual output.
8730     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8731     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8732     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8733       lt_cv_prog_compiler_rtti_exceptions=yes
8734     fi
8735   fi
8736   $rm conftest*
8737
8738fi
8739{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8740echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8741
8742if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8743    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8744else
8745    :
8746fi
8747
8748fi
8749
8750lt_prog_compiler_wl=
8751lt_prog_compiler_pic=
8752lt_prog_compiler_static=
8753
8754{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8755echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8756
8757  if test "$GCC" = yes; then
8758    lt_prog_compiler_wl='-Wl,'
8759    lt_prog_compiler_static='-static'
8760
8761    case $host_os in
8762      aix*)
8763      # All AIX code is PIC.
8764      if test "$host_cpu" = ia64; then
8765	# AIX 5 now supports IA64 processor
8766	lt_prog_compiler_static='-Bstatic'
8767      fi
8768      ;;
8769
8770    amigaos*)
8771      # FIXME: we need at least 68020 code to build shared libraries, but
8772      # adding the `-m68020' flag to GCC prevents building anything better,
8773      # like `-m68040'.
8774      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8775      ;;
8776
8777    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8778      # PIC is the default for these OSes.
8779      ;;
8780
8781    mingw* | cygwin* | pw32* | os2*)
8782      # This hack is so that the source file can tell whether it is being
8783      # built for inclusion in a dll (and should export symbols for example).
8784      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8785      # (--disable-auto-import) libraries
8786      lt_prog_compiler_pic='-DDLL_EXPORT'
8787      ;;
8788
8789    darwin* | rhapsody*)
8790      # PIC is the default on this platform
8791      # Common symbols not allowed in MH_DYLIB files
8792      lt_prog_compiler_pic='-fno-common'
8793      ;;
8794
8795    interix3*)
8796      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8797      # Instead, we relocate shared libraries at runtime.
8798      ;;
8799
8800    msdosdjgpp*)
8801      # Just because we use GCC doesn't mean we suddenly get shared libraries
8802      # on systems that don't support them.
8803      lt_prog_compiler_can_build_shared=no
8804      enable_shared=no
8805      ;;
8806
8807    sysv4*MP*)
8808      if test -d /usr/nec; then
8809	lt_prog_compiler_pic=-Kconform_pic
8810      fi
8811      ;;
8812
8813    hpux*)
8814      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8815      # not for PA HP-UX.
8816      case $host_cpu in
8817      hppa*64*|ia64*)
8818	# +Z the default
8819	;;
8820      *)
8821	lt_prog_compiler_pic='-fPIC'
8822	;;
8823      esac
8824      ;;
8825
8826    *)
8827      lt_prog_compiler_pic='-fPIC'
8828      ;;
8829    esac
8830  else
8831    # PORTME Check for flag to pass linker flags through the system compiler.
8832    case $host_os in
8833    aix*)
8834      lt_prog_compiler_wl='-Wl,'
8835      if test "$host_cpu" = ia64; then
8836	# AIX 5 now supports IA64 processor
8837	lt_prog_compiler_static='-Bstatic'
8838      else
8839	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8840      fi
8841      ;;
8842      darwin*)
8843        # PIC is the default on this platform
8844        # Common symbols not allowed in MH_DYLIB files
8845       case $cc_basename in
8846         xlc*)
8847         lt_prog_compiler_pic='-qnocommon'
8848         lt_prog_compiler_wl='-Wl,'
8849         ;;
8850       esac
8851       ;;
8852
8853    mingw* | cygwin* | pw32* | os2*)
8854      # This hack is so that the source file can tell whether it is being
8855      # built for inclusion in a dll (and should export symbols for example).
8856      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8857      # (--disable-auto-import) libraries
8858      lt_prog_compiler_pic='-DDLL_EXPORT'
8859      ;;
8860
8861    hpux9* | hpux10* | hpux11*)
8862      lt_prog_compiler_wl='-Wl,'
8863      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8864      # not for PA HP-UX.
8865      case $host_cpu in
8866      hppa*64*|ia64*)
8867	# +Z the default
8868	;;
8869      *)
8870	lt_prog_compiler_pic='+Z'
8871	;;
8872      esac
8873      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8874      lt_prog_compiler_static='${wl}-a ${wl}archive'
8875      ;;
8876
8877    irix5* | irix6* | nonstopux*)
8878      lt_prog_compiler_wl='-Wl,'
8879      # PIC (with -KPIC) is the default.
8880      lt_prog_compiler_static='-non_shared'
8881      ;;
8882
8883    newsos6)
8884      lt_prog_compiler_pic='-KPIC'
8885      lt_prog_compiler_static='-Bstatic'
8886      ;;
8887
8888    linux*)
8889      case $cc_basename in
8890      icc* | ecc*)
8891	lt_prog_compiler_wl='-Wl,'
8892	lt_prog_compiler_pic='-KPIC'
8893	lt_prog_compiler_static='-static'
8894        ;;
8895      pgcc* | pgf77* | pgf90* | pgf95*)
8896        # Portland Group compilers (*not* the Pentium gcc compiler,
8897	# which looks to be a dead project)
8898	lt_prog_compiler_wl='-Wl,'
8899	lt_prog_compiler_pic='-fpic'
8900	lt_prog_compiler_static='-Bstatic'
8901        ;;
8902      ccc*)
8903        lt_prog_compiler_wl='-Wl,'
8904        # All Alpha code is PIC.
8905        lt_prog_compiler_static='-non_shared'
8906        ;;
8907      como)
8908        lt_prog_compiler_wl='-lopt='
8909        ;;
8910      *)
8911        case `$CC -V 2>&1 | sed 5q` in
8912	*Sun\ C*)
8913	  # Sun C 5.9
8914	  lt_prog_compiler_pic='-KPIC'
8915	  lt_prog_compiler_static='-Bstatic'
8916	  lt_prog_compiler_wl='-Wl,'
8917	  ;;
8918	*Sun\ F*)
8919	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8920	  lt_prog_compiler_pic='-KPIC'
8921	  lt_prog_compiler_static='-Bstatic'
8922	  lt_prog_compiler_wl=''
8923	  ;;
8924	esac
8925	;;
8926      esac
8927      ;;
8928
8929    osf3* | osf4* | osf5*)
8930      lt_prog_compiler_wl='-Wl,'
8931      # All OSF/1 code is PIC.
8932      lt_prog_compiler_static='-non_shared'
8933      ;;
8934
8935    solaris*)
8936      lt_prog_compiler_pic='-KPIC'
8937      lt_prog_compiler_static='-Bstatic'
8938      case $cc_basename in
8939      f77* | f90* | f95*)
8940	lt_prog_compiler_wl='-Qoption ld ';;
8941      *)
8942	lt_prog_compiler_wl='-Wl,';;
8943      esac
8944      ;;
8945
8946    sunos4*)
8947      lt_prog_compiler_wl='-Qoption ld '
8948      lt_prog_compiler_pic='-PIC'
8949      lt_prog_compiler_static='-Bstatic'
8950      ;;
8951
8952    sysv4 | sysv4.2uw2* | sysv4.3*)
8953      lt_prog_compiler_wl='-Wl,'
8954      lt_prog_compiler_pic='-KPIC'
8955      lt_prog_compiler_static='-Bstatic'
8956      ;;
8957
8958    sysv4*MP*)
8959      if test -d /usr/nec ;then
8960	lt_prog_compiler_pic='-Kconform_pic'
8961	lt_prog_compiler_static='-Bstatic'
8962      fi
8963      ;;
8964
8965    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8966      lt_prog_compiler_wl='-Wl,'
8967      lt_prog_compiler_pic='-KPIC'
8968      lt_prog_compiler_static='-Bstatic'
8969      ;;
8970
8971    unicos*)
8972      lt_prog_compiler_wl='-Wl,'
8973      lt_prog_compiler_can_build_shared=no
8974      ;;
8975
8976    uts4*)
8977      lt_prog_compiler_pic='-pic'
8978      lt_prog_compiler_static='-Bstatic'
8979      ;;
8980
8981    *)
8982      lt_prog_compiler_can_build_shared=no
8983      ;;
8984    esac
8985  fi
8986
8987{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8988echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8989
8990#
8991# Check to make sure the PIC flag actually works.
8992#
8993if test -n "$lt_prog_compiler_pic"; then
8994
8995{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8996echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8997if test "${lt_prog_compiler_pic_works+set}" = set; then
8998  echo $ECHO_N "(cached) $ECHO_C" >&6
8999else
9000  lt_prog_compiler_pic_works=no
9001  ac_outfile=conftest.$ac_objext
9002   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9003   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9004   # Insert the option either (1) after the last *FLAGS variable, or
9005   # (2) before a word containing "conftest.", or (3) at the end.
9006   # Note that $ac_compile itself does not contain backslashes and begins
9007   # with a dollar sign (not a hyphen), so the echo should work correctly.
9008   # The option is referenced via a variable to avoid confusing sed.
9009   lt_compile=`echo "$ac_compile" | $SED \
9010   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9011   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9012   -e 's:$: $lt_compiler_flag:'`
9013   (eval echo "\"\$as_me:9013: $lt_compile\"" >&5)
9014   (eval "$lt_compile" 2>conftest.err)
9015   ac_status=$?
9016   cat conftest.err >&5
9017   echo "$as_me:9017: \$? = $ac_status" >&5
9018   if (exit $ac_status) && test -s "$ac_outfile"; then
9019     # The compiler can only warn and ignore the option if not recognized
9020     # So say no if there are warnings other than the usual output.
9021     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9022     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9023     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9024       lt_prog_compiler_pic_works=yes
9025     fi
9026   fi
9027   $rm conftest*
9028
9029fi
9030{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9031echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9032
9033if test x"$lt_prog_compiler_pic_works" = xyes; then
9034    case $lt_prog_compiler_pic in
9035     "" | " "*) ;;
9036     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9037     esac
9038else
9039    lt_prog_compiler_pic=
9040     lt_prog_compiler_can_build_shared=no
9041fi
9042
9043fi
9044case $host_os in
9045  # For platforms which do not support PIC, -DPIC is meaningless:
9046  *djgpp*)
9047    lt_prog_compiler_pic=
9048    ;;
9049  *)
9050    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9051    ;;
9052esac
9053
9054#
9055# Check to make sure the static flag actually works.
9056#
9057wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9058{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9059echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9060if test "${lt_prog_compiler_static_works+set}" = set; then
9061  echo $ECHO_N "(cached) $ECHO_C" >&6
9062else
9063  lt_prog_compiler_static_works=no
9064   save_LDFLAGS="$LDFLAGS"
9065   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9066   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9067   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9068     # The linker can only warn and ignore the option if not recognized
9069     # So say no if there are warnings
9070     if test -s conftest.err; then
9071       # Append any errors to the config.log.
9072       cat conftest.err 1>&5
9073       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9074       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9075       if diff conftest.exp conftest.er2 >/dev/null; then
9076         lt_prog_compiler_static_works=yes
9077       fi
9078     else
9079       lt_prog_compiler_static_works=yes
9080     fi
9081   fi
9082   $rm conftest*
9083   LDFLAGS="$save_LDFLAGS"
9084
9085fi
9086{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9087echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9088
9089if test x"$lt_prog_compiler_static_works" = xyes; then
9090    :
9091else
9092    lt_prog_compiler_static=
9093fi
9094
9095
9096{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9097echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9098if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9099  echo $ECHO_N "(cached) $ECHO_C" >&6
9100else
9101  lt_cv_prog_compiler_c_o=no
9102   $rm -r conftest 2>/dev/null
9103   mkdir conftest
9104   cd conftest
9105   mkdir out
9106   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9107
9108   lt_compiler_flag="-o out/conftest2.$ac_objext"
9109   # Insert the option either (1) after the last *FLAGS variable, or
9110   # (2) before a word containing "conftest.", or (3) at the end.
9111   # Note that $ac_compile itself does not contain backslashes and begins
9112   # with a dollar sign (not a hyphen), so the echo should work correctly.
9113   lt_compile=`echo "$ac_compile" | $SED \
9114   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9115   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9116   -e 's:$: $lt_compiler_flag:'`
9117   (eval echo "\"\$as_me:9117: $lt_compile\"" >&5)
9118   (eval "$lt_compile" 2>out/conftest.err)
9119   ac_status=$?
9120   cat out/conftest.err >&5
9121   echo "$as_me:9121: \$? = $ac_status" >&5
9122   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9123   then
9124     # The compiler can only warn and ignore the option if not recognized
9125     # So say no if there are warnings
9126     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9127     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9128     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9129       lt_cv_prog_compiler_c_o=yes
9130     fi
9131   fi
9132   chmod u+w . 2>&5
9133   $rm conftest*
9134   # SGI C++ compiler will create directory out/ii_files/ for
9135   # template instantiation
9136   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9137   $rm out/* && rmdir out
9138   cd ..
9139   rmdir conftest
9140   $rm conftest*
9141
9142fi
9143{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9144echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9145
9146
9147hard_links="nottested"
9148if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9149  # do not overwrite the value of need_locks provided by the user
9150  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9151echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9152  hard_links=yes
9153  $rm conftest*
9154  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9155  touch conftest.a
9156  ln conftest.a conftest.b 2>&5 || hard_links=no
9157  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9158  { echo "$as_me:$LINENO: result: $hard_links" >&5
9159echo "${ECHO_T}$hard_links" >&6; }
9160  if test "$hard_links" = no; then
9161    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9162echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9163    need_locks=warn
9164  fi
9165else
9166  need_locks=no
9167fi
9168
9169{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9170echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9171
9172  runpath_var=
9173  allow_undefined_flag=
9174  enable_shared_with_static_runtimes=no
9175  archive_cmds=
9176  archive_expsym_cmds=
9177  old_archive_From_new_cmds=
9178  old_archive_from_expsyms_cmds=
9179  export_dynamic_flag_spec=
9180  whole_archive_flag_spec=
9181  thread_safe_flag_spec=
9182  hardcode_libdir_flag_spec=
9183  hardcode_libdir_flag_spec_ld=
9184  hardcode_libdir_separator=
9185  hardcode_direct=no
9186  hardcode_minus_L=no
9187  hardcode_shlibpath_var=unsupported
9188  link_all_deplibs=unknown
9189  hardcode_automatic=no
9190  module_cmds=
9191  module_expsym_cmds=
9192  always_export_symbols=no
9193  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9194  # include_expsyms should be a list of space-separated symbols to be *always*
9195  # included in the symbol list
9196  include_expsyms=
9197  # exclude_expsyms can be an extended regexp of symbols to exclude
9198  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9199  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9200  # as well as any symbol that contains `d'.
9201  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9202  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9203  # platforms (ab)use it in PIC code, but their linkers get confused if
9204  # the symbol is explicitly referenced.  Since portable code cannot
9205  # rely on this symbol name, it's probably fine to never include it in
9206  # preloaded symbol tables.
9207  extract_expsyms_cmds=
9208  # Just being paranoid about ensuring that cc_basename is set.
9209  for cc_temp in $compiler""; do
9210  case $cc_temp in
9211    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9212    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9213    \-*) ;;
9214    *) break;;
9215  esac
9216done
9217cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9218
9219  case $host_os in
9220  cygwin* | mingw* | pw32*)
9221    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9222    # When not using gcc, we currently assume that we are using
9223    # Microsoft Visual C++.
9224    if test "$GCC" != yes; then
9225      with_gnu_ld=no
9226    fi
9227    ;;
9228  interix*)
9229    # we just hope/assume this is gcc and not c89 (= MSVC++)
9230    with_gnu_ld=yes
9231    ;;
9232  openbsd*)
9233    with_gnu_ld=no
9234    ;;
9235  esac
9236
9237  ld_shlibs=yes
9238  if test "$with_gnu_ld" = yes; then
9239    # If archive_cmds runs LD, not CC, wlarc should be empty
9240    wlarc='${wl}'
9241
9242    # Set some defaults for GNU ld with shared library support. These
9243    # are reset later if shared libraries are not supported. Putting them
9244    # here allows them to be overridden if necessary.
9245    runpath_var=LD_RUN_PATH
9246    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9247    export_dynamic_flag_spec='${wl}--export-dynamic'
9248    # ancient GNU ld didn't support --whole-archive et. al.
9249    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9250	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9251      else
9252  	whole_archive_flag_spec=
9253    fi
9254    supports_anon_versioning=no
9255    case `$LD -v 2>/dev/null` in
9256      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9257      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9258      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9259      *\ 2.11.*) ;; # other 2.11 versions
9260      *) supports_anon_versioning=yes ;;
9261    esac
9262
9263    # See if GNU ld supports shared libraries.
9264    case $host_os in
9265    aix3* | aix4* | aix5*)
9266      # On AIX/PPC, the GNU linker is very broken
9267      if test "$host_cpu" != ia64; then
9268	ld_shlibs=no
9269	cat <<EOF 1>&2
9270
9271*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9272*** to be unable to reliably create shared libraries on AIX.
9273*** Therefore, libtool is disabling shared libraries support.  If you
9274*** really care for shared libraries, you may want to modify your PATH
9275*** so that a non-GNU linker is found, and then restart.
9276
9277EOF
9278      fi
9279      ;;
9280
9281    amigaos*)
9282      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)'
9283      hardcode_libdir_flag_spec='-L$libdir'
9284      hardcode_minus_L=yes
9285
9286      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9287      # that the semantics of dynamic libraries on AmigaOS, at least up
9288      # to version 4, is to share data among multiple programs linked
9289      # with the same dynamic library.  Since this doesn't match the
9290      # behavior of shared libraries on other platforms, we can't use
9291      # them.
9292      ld_shlibs=no
9293      ;;
9294
9295    beos*)
9296      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9297	allow_undefined_flag=unsupported
9298	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9299	# support --undefined.  This deserves some investigation.  FIXME
9300	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9301      else
9302	ld_shlibs=no
9303      fi
9304      ;;
9305
9306    cygwin* | mingw* | pw32*)
9307      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9308      # as there is no search path for DLLs.
9309      hardcode_libdir_flag_spec='-L$libdir'
9310      allow_undefined_flag=unsupported
9311      always_export_symbols=no
9312      enable_shared_with_static_runtimes=yes
9313      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9314
9315      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9316        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9317	# If the export-symbols file already is a .def file (1st line
9318	# is EXPORTS), use it as is; otherwise, prepend...
9319	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9320	  cp $export_symbols $output_objdir/$soname.def;
9321	else
9322	  echo EXPORTS > $output_objdir/$soname.def;
9323	  cat $export_symbols >> $output_objdir/$soname.def;
9324	fi~
9325	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9326      else
9327	ld_shlibs=no
9328      fi
9329      ;;
9330
9331    interix3*)
9332      hardcode_direct=no
9333      hardcode_shlibpath_var=no
9334      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9335      export_dynamic_flag_spec='${wl}-E'
9336      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9337      # Instead, shared libraries are loaded at an image base (0x10000000 by
9338      # default) and relocated if they conflict, which is a slow very memory
9339      # consuming and fragmenting process.  To avoid this, we pick a random,
9340      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9341      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9342      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9343      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'
9344      ;;
9345
9346    linux*)
9347      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9348	tmp_addflag=
9349	case $cc_basename,$host_cpu in
9350	pgcc*)				# Portland Group C compiler
9351	  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'
9352	  tmp_addflag=' $pic_flag'
9353	  ;;
9354	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9355	  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'
9356	  tmp_addflag=' $pic_flag -Mnomain' ;;
9357	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
9358	  tmp_addflag=' -i_dynamic' ;;
9359	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9360	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9361	ifc* | ifort*)			# Intel Fortran compiler
9362	  tmp_addflag=' -nofor_main' ;;
9363	esac
9364	case `$CC -V 2>&1 | sed 5q` in
9365	*Sun\ C*)			# Sun C 5.9
9366	  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 /dev/null'
9367	  tmp_sharedflag='-G' ;;
9368	*Sun\ F*)			# Sun Fortran 8.3
9369	  tmp_sharedflag='-G' ;;
9370	*)
9371	  tmp_sharedflag='-shared' ;;
9372	esac
9373	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374
9375	if test $supports_anon_versioning = yes; then
9376	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9377  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9378  $echo "local: *; };" >> $output_objdir/$libname.ver~
9379	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9380	fi
9381      else
9382	ld_shlibs=no
9383      fi
9384      ;;
9385
9386    netbsd*)
9387      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9388	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9389	wlarc=
9390      else
9391	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9392	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9393      fi
9394      ;;
9395
9396    solaris*)
9397      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9398	ld_shlibs=no
9399	cat <<EOF 1>&2
9400
9401*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9402*** create shared libraries on Solaris systems.  Therefore, libtool
9403*** is disabling shared libraries support.  We urge you to upgrade GNU
9404*** binutils to release 2.9.1 or newer.  Another option is to modify
9405*** your PATH or compiler configuration so that the native linker is
9406*** used, and then restart.
9407
9408EOF
9409      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9410	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9411	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9412      else
9413	ld_shlibs=no
9414      fi
9415      ;;
9416
9417    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9418      case `$LD -v 2>&1` in
9419        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9420	ld_shlibs=no
9421	cat <<_LT_EOF 1>&2
9422
9423*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9424*** reliably create shared libraries on SCO systems.  Therefore, libtool
9425*** is disabling shared libraries support.  We urge you to upgrade GNU
9426*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9427*** your PATH or compiler configuration so that the native linker is
9428*** used, and then restart.
9429
9430_LT_EOF
9431	;;
9432	*)
9433	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9434	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9435	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9436	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9437	  else
9438	    ld_shlibs=no
9439	  fi
9440	;;
9441      esac
9442      ;;
9443
9444    sunos4*)
9445      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9446      wlarc=
9447      hardcode_direct=yes
9448      hardcode_shlibpath_var=no
9449      ;;
9450
9451    *)
9452      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9453	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9454	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9455      else
9456	ld_shlibs=no
9457      fi
9458      ;;
9459    esac
9460
9461    if test "$ld_shlibs" = no; then
9462      runpath_var=
9463      hardcode_libdir_flag_spec=
9464      export_dynamic_flag_spec=
9465      whole_archive_flag_spec=
9466    fi
9467  else
9468    # PORTME fill in a description of your system's linker (not GNU ld)
9469    case $host_os in
9470    aix3*)
9471      allow_undefined_flag=unsupported
9472      always_export_symbols=yes
9473      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'
9474      # Note: this linker hardcodes the directories in LIBPATH if there
9475      # are no directories specified by -L.
9476      hardcode_minus_L=yes
9477      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9478	# Neither direct hardcoding nor static linking is supported with a
9479	# broken collect2.
9480	hardcode_direct=unsupported
9481      fi
9482      ;;
9483
9484    aix4* | aix5*)
9485      if test "$host_cpu" = ia64; then
9486	# On IA64, the linker does run time linking by default, so we don't
9487	# have to do anything special.
9488	aix_use_runtimelinking=no
9489	exp_sym_flag='-Bexport'
9490	no_entry_flag=""
9491      else
9492	# If we're using GNU nm, then we don't want the "-C" option.
9493	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9494	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9495	  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'
9496	else
9497	  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'
9498	fi
9499	aix_use_runtimelinking=no
9500
9501	# Test if we are trying to use run time linking or normal
9502	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9503	# need to do runtime linking.
9504	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9505	  for ld_flag in $LDFLAGS; do
9506  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9507  	    aix_use_runtimelinking=yes
9508  	    break
9509  	  fi
9510	  done
9511	  ;;
9512	esac
9513
9514	exp_sym_flag='-bexport'
9515	no_entry_flag='-bnoentry'
9516      fi
9517
9518      # When large executables or shared objects are built, AIX ld can
9519      # have problems creating the table of contents.  If linking a library
9520      # or program results in "error TOC overflow" add -mminimal-toc to
9521      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9522      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9523
9524      archive_cmds=''
9525      hardcode_direct=yes
9526      hardcode_libdir_separator=':'
9527      link_all_deplibs=yes
9528
9529      if test "$GCC" = yes; then
9530	case $host_os in aix4.[012]|aix4.[012].*)
9531	# We only want to do this on AIX 4.2 and lower, the check
9532	# below for broken collect2 doesn't work under 4.3+
9533	  collect2name=`${CC} -print-prog-name=collect2`
9534	  if test -f "$collect2name" && \
9535  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9536	  then
9537  	  # We have reworked collect2
9538  	  hardcode_direct=yes
9539	  else
9540  	  # We have old collect2
9541  	  hardcode_direct=unsupported
9542  	  # It fails to find uninstalled libraries when the uninstalled
9543  	  # path is not listed in the libpath.  Setting hardcode_minus_L
9544  	  # to unsupported forces relinking
9545  	  hardcode_minus_L=yes
9546  	  hardcode_libdir_flag_spec='-L$libdir'
9547  	  hardcode_libdir_separator=
9548	  fi
9549	  ;;
9550	esac
9551	shared_flag='-shared'
9552	if test "$aix_use_runtimelinking" = yes; then
9553	  shared_flag="$shared_flag "'${wl}-G'
9554	fi
9555      else
9556	# not using gcc
9557	if test "$host_cpu" = ia64; then
9558  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9559  	# chokes on -Wl,-G. The following line is correct:
9560	  shared_flag='-G'
9561	else
9562	  if test "$aix_use_runtimelinking" = yes; then
9563	    shared_flag='${wl}-G'
9564	  else
9565	    shared_flag='${wl}-bM:SRE'
9566	  fi
9567	fi
9568      fi
9569
9570      # It seems that -bexpall does not export symbols beginning with
9571      # underscore (_), so it is better to generate a list of symbols to export.
9572      always_export_symbols=yes
9573      if test "$aix_use_runtimelinking" = yes; then
9574	# Warning - without using the other runtime loading flags (-brtl),
9575	# -berok will link without error, but may produce a broken library.
9576	allow_undefined_flag='-berok'
9577       # Determine the default libpath from the value encoded in an empty executable.
9578       cat >conftest.$ac_ext <<_ACEOF
9579/* confdefs.h.  */
9580_ACEOF
9581cat confdefs.h >>conftest.$ac_ext
9582cat >>conftest.$ac_ext <<_ACEOF
9583/* end confdefs.h.  */
9584
9585int
9586main ()
9587{
9588
9589  ;
9590  return 0;
9591}
9592_ACEOF
9593rm -f conftest.$ac_objext conftest$ac_exeext
9594if { (ac_try="$ac_link"
9595case "(($ac_try" in
9596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597  *) ac_try_echo=$ac_try;;
9598esac
9599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600  (eval "$ac_link") 2>conftest.er1
9601  ac_status=$?
9602  grep -v '^ *+' conftest.er1 >conftest.err
9603  rm -f conftest.er1
9604  cat conftest.err >&5
9605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606  (exit $ac_status); } && {
9607	 test -z "$ac_c_werror_flag" ||
9608	 test ! -s conftest.err
9609       } && test -s conftest$ac_exeext &&
9610       $as_test_x conftest$ac_exeext; then
9611
9612aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9613}'`
9614# Check for a 64-bit object if we didn't find anything.
9615if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9616}'`; fi
9617else
9618  echo "$as_me: failed program was:" >&5
9619sed 's/^/| /' conftest.$ac_ext >&5
9620
9621
9622fi
9623
9624rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9625      conftest$ac_exeext conftest.$ac_ext
9626if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9627
9628       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9629	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"
9630       else
9631	if test "$host_cpu" = ia64; then
9632	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9633	  allow_undefined_flag="-z nodefs"
9634	  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"
9635	else
9636	 # Determine the default libpath from the value encoded in an empty executable.
9637	 cat >conftest.$ac_ext <<_ACEOF
9638/* confdefs.h.  */
9639_ACEOF
9640cat confdefs.h >>conftest.$ac_ext
9641cat >>conftest.$ac_ext <<_ACEOF
9642/* end confdefs.h.  */
9643
9644int
9645main ()
9646{
9647
9648  ;
9649  return 0;
9650}
9651_ACEOF
9652rm -f conftest.$ac_objext conftest$ac_exeext
9653if { (ac_try="$ac_link"
9654case "(($ac_try" in
9655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656  *) ac_try_echo=$ac_try;;
9657esac
9658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659  (eval "$ac_link") 2>conftest.er1
9660  ac_status=$?
9661  grep -v '^ *+' conftest.er1 >conftest.err
9662  rm -f conftest.er1
9663  cat conftest.err >&5
9664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665  (exit $ac_status); } && {
9666	 test -z "$ac_c_werror_flag" ||
9667	 test ! -s conftest.err
9668       } && test -s conftest$ac_exeext &&
9669       $as_test_x conftest$ac_exeext; then
9670
9671aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9672}'`
9673# Check for a 64-bit object if we didn't find anything.
9674if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9675}'`; fi
9676else
9677  echo "$as_me: failed program was:" >&5
9678sed 's/^/| /' conftest.$ac_ext >&5
9679
9680
9681fi
9682
9683rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9684      conftest$ac_exeext conftest.$ac_ext
9685if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9686
9687	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9688	  # Warning - without using the other run time loading flags,
9689	  # -berok will link without error, but may produce a broken library.
9690	  no_undefined_flag=' ${wl}-bernotok'
9691	  allow_undefined_flag=' ${wl}-berok'
9692	  # Exported symbols can be pulled into shared objects from archives
9693	  whole_archive_flag_spec='$convenience'
9694	  archive_cmds_need_lc=yes
9695	  # This is similar to how AIX traditionally builds its shared libraries.
9696	  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'
9697	fi
9698      fi
9699      ;;
9700
9701    amigaos*)
9702      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)'
9703      hardcode_libdir_flag_spec='-L$libdir'
9704      hardcode_minus_L=yes
9705      # see comment about different semantics on the GNU ld section
9706      ld_shlibs=no
9707      ;;
9708
9709    bsdi[45]*)
9710      export_dynamic_flag_spec=-rdynamic
9711      ;;
9712
9713    cygwin* | mingw* | pw32*)
9714      # When not using gcc, we currently assume that we are using
9715      # Microsoft Visual C++.
9716      # hardcode_libdir_flag_spec is actually meaningless, as there is
9717      # no search path for DLLs.
9718      hardcode_libdir_flag_spec=' '
9719      allow_undefined_flag=unsupported
9720      # Tell ltmain to make .lib files, not .a files.
9721      libext=lib
9722      # Tell ltmain to make .dll files, not .so files.
9723      shrext_cmds=".dll"
9724      # FIXME: Setting linknames here is a bad hack.
9725      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9726      # The linker will automatically build a .lib file if we build a DLL.
9727      old_archive_From_new_cmds='true'
9728      # FIXME: Should let the user specify the lib program.
9729      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9730      fix_srcfile_path='`cygpath -w "$srcfile"`'
9731      enable_shared_with_static_runtimes=yes
9732      ;;
9733
9734    darwin* | rhapsody*)
9735      case $host_os in
9736        rhapsody* | darwin1.[012])
9737         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9738         ;;
9739       *) # Darwin 1.3 on
9740         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9741           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9742         else
9743           case ${MACOSX_DEPLOYMENT_TARGET} in
9744             10.[012])
9745               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9746               ;;
9747             10.*)
9748               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9749               ;;
9750           esac
9751         fi
9752         ;;
9753      esac
9754      archive_cmds_need_lc=no
9755      hardcode_direct=no
9756      hardcode_automatic=yes
9757      hardcode_shlibpath_var=unsupported
9758      whole_archive_flag_spec=''
9759      link_all_deplibs=yes
9760    if test "$GCC" = yes ; then
9761    	output_verbose_link_cmd='echo'
9762        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9763      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9764      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9765      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}'
9766      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}'
9767    else
9768      case $cc_basename in
9769        xlc*)
9770         output_verbose_link_cmd='echo'
9771         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9772         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9773          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9774         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9775          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}'
9776          ;;
9777       *)
9778         ld_shlibs=no
9779          ;;
9780      esac
9781    fi
9782      ;;
9783
9784    dgux*)
9785      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9786      hardcode_libdir_flag_spec='-L$libdir'
9787      hardcode_shlibpath_var=no
9788      ;;
9789
9790    freebsd1*)
9791      ld_shlibs=no
9792      ;;
9793
9794    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9795    # support.  Future versions do this automatically, but an explicit c++rt0.o
9796    # does not break anything, and helps significantly (at the cost of a little
9797    # extra space).
9798    freebsd2.2*)
9799      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9800      hardcode_libdir_flag_spec='-R$libdir'
9801      hardcode_direct=yes
9802      hardcode_shlibpath_var=no
9803      ;;
9804
9805    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9806    freebsd2*)
9807      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9808      hardcode_direct=yes
9809      hardcode_minus_L=yes
9810      hardcode_shlibpath_var=no
9811      ;;
9812
9813    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9814    freebsd* | kfreebsd*-gnu | dragonfly*)
9815      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9816      hardcode_libdir_flag_spec='-R$libdir'
9817      hardcode_direct=yes
9818      hardcode_shlibpath_var=no
9819      ;;
9820
9821    hpux9*)
9822      if test "$GCC" = yes; then
9823	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'
9824      else
9825	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'
9826      fi
9827      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9828      hardcode_libdir_separator=:
9829      hardcode_direct=yes
9830
9831      # hardcode_minus_L: Not really in the search PATH,
9832      # but as the default location of the library.
9833      hardcode_minus_L=yes
9834      export_dynamic_flag_spec='${wl}-E'
9835      ;;
9836
9837    hpux10*)
9838      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9839	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9840      else
9841	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9842      fi
9843      if test "$with_gnu_ld" = no; then
9844	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9845	hardcode_libdir_separator=:
9846
9847	hardcode_direct=yes
9848	export_dynamic_flag_spec='${wl}-E'
9849
9850	# hardcode_minus_L: Not really in the search PATH,
9851	# but as the default location of the library.
9852	hardcode_minus_L=yes
9853      fi
9854      ;;
9855
9856    hpux11*)
9857      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9858	case $host_cpu in
9859	hppa*64*)
9860	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9861	  ;;
9862	ia64*)
9863	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9864	  ;;
9865	*)
9866	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9867	  ;;
9868	esac
9869      else
9870	case $host_cpu in
9871	hppa*64*)
9872	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9873	  ;;
9874	ia64*)
9875	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9876	  ;;
9877	*)
9878	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9879	  ;;
9880	esac
9881      fi
9882      if test "$with_gnu_ld" = no; then
9883	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9884	hardcode_libdir_separator=:
9885
9886	case $host_cpu in
9887	hppa*64*|ia64*)
9888	  hardcode_libdir_flag_spec_ld='+b $libdir'
9889	  hardcode_direct=no
9890	  hardcode_shlibpath_var=no
9891	  ;;
9892	*)
9893	  hardcode_direct=yes
9894	  export_dynamic_flag_spec='${wl}-E'
9895
9896	  # hardcode_minus_L: Not really in the search PATH,
9897	  # but as the default location of the library.
9898	  hardcode_minus_L=yes
9899	  ;;
9900	esac
9901      fi
9902      ;;
9903
9904    irix5* | irix6* | nonstopux*)
9905      if test "$GCC" = yes; then
9906	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'
9907      else
9908	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'
9909	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9910      fi
9911      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9912      hardcode_libdir_separator=:
9913      link_all_deplibs=yes
9914      ;;
9915
9916    netbsd*)
9917      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9918	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9919      else
9920	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9921      fi
9922      hardcode_libdir_flag_spec='-R$libdir'
9923      hardcode_direct=yes
9924      hardcode_shlibpath_var=no
9925      ;;
9926
9927    newsos6)
9928      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9929      hardcode_direct=yes
9930      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9931      hardcode_libdir_separator=:
9932      hardcode_shlibpath_var=no
9933      ;;
9934
9935    openbsd*)
9936      hardcode_direct=yes
9937      hardcode_shlibpath_var=no
9938      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9939	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9940	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9941	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9942	export_dynamic_flag_spec='${wl}-E'
9943      else
9944       case $host_os in
9945	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9946	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9947	   hardcode_libdir_flag_spec='-R$libdir'
9948	   ;;
9949	 *)
9950	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9951	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9952	   ;;
9953       esac
9954      fi
9955      ;;
9956
9957    os2*)
9958      hardcode_libdir_flag_spec='-L$libdir'
9959      hardcode_minus_L=yes
9960      allow_undefined_flag=unsupported
9961      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'
9962      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9963      ;;
9964
9965    osf3*)
9966      if test "$GCC" = yes; then
9967	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9968	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'
9969      else
9970	allow_undefined_flag=' -expect_unresolved \*'
9971	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'
9972      fi
9973      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9974      hardcode_libdir_separator=:
9975      ;;
9976
9977    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9978      if test "$GCC" = yes; then
9979	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9980	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'
9981	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9982      else
9983	allow_undefined_flag=' -expect_unresolved \*'
9984	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'
9985	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9986	$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'
9987
9988	# Both c and cxx compiler support -rpath directly
9989	hardcode_libdir_flag_spec='-rpath $libdir'
9990      fi
9991      hardcode_libdir_separator=:
9992      ;;
9993
9994    solaris*)
9995      no_undefined_flag=' -z text'
9996      if test "$GCC" = yes; then
9997	wlarc='${wl}'
9998	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9999	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10000	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10001      else
10002	wlarc=''
10003	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10004	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10005  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10006      fi
10007      hardcode_libdir_flag_spec='-R$libdir'
10008      hardcode_shlibpath_var=no
10009      case $host_os in
10010      solaris2.[0-5] | solaris2.[0-5].*) ;;
10011      *)
10012 	# The compiler driver will combine linker options so we
10013 	# cannot just pass the convience library names through
10014 	# without $wl, iff we do not link with $LD.
10015 	# Luckily, gcc supports the same syntax we need for Sun Studio.
10016 	# Supported since Solaris 2.6 (maybe 2.5.1?)
10017 	case $wlarc in
10018 	'')
10019 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10020 	*)
10021 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10022 	esac ;;
10023      esac
10024      link_all_deplibs=yes
10025      ;;
10026
10027    sunos4*)
10028      if test "x$host_vendor" = xsequent; then
10029	# Use $CC to link under sequent, because it throws in some extra .o
10030	# files that make .init and .fini sections work.
10031	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10032      else
10033	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10034      fi
10035      hardcode_libdir_flag_spec='-L$libdir'
10036      hardcode_direct=yes
10037      hardcode_minus_L=yes
10038      hardcode_shlibpath_var=no
10039      ;;
10040
10041    sysv4)
10042      case $host_vendor in
10043	sni)
10044	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10045	  hardcode_direct=yes # is this really true???
10046	;;
10047	siemens)
10048	  ## LD is ld it makes a PLAMLIB
10049	  ## CC just makes a GrossModule.
10050	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10051	  reload_cmds='$CC -r -o $output$reload_objs'
10052	  hardcode_direct=no
10053        ;;
10054	motorola)
10055	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10056	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10057	;;
10058      esac
10059      runpath_var='LD_RUN_PATH'
10060      hardcode_shlibpath_var=no
10061      ;;
10062
10063    sysv4.3*)
10064      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065      hardcode_shlibpath_var=no
10066      export_dynamic_flag_spec='-Bexport'
10067      ;;
10068
10069    sysv4*MP*)
10070      if test -d /usr/nec; then
10071	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10072	hardcode_shlibpath_var=no
10073	runpath_var=LD_RUN_PATH
10074	hardcode_runpath_var=yes
10075	ld_shlibs=yes
10076      fi
10077      ;;
10078
10079    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10080      no_undefined_flag='${wl}-z,text'
10081      archive_cmds_need_lc=no
10082      hardcode_shlibpath_var=no
10083      runpath_var='LD_RUN_PATH'
10084
10085      if test "$GCC" = yes; then
10086	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10087	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10088      else
10089	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10091      fi
10092      ;;
10093
10094    sysv5* | sco3.2v5* | sco5v6*)
10095      # Note: We can NOT use -z defs as we might desire, because we do not
10096      # link with -lc, and that would cause any symbols used from libc to
10097      # always be unresolved, which means just about no library would
10098      # ever link correctly.  If we're not using GNU ld we use -z text
10099      # though, which does catch some bad symbols but isn't as heavy-handed
10100      # as -z defs.
10101      no_undefined_flag='${wl}-z,text'
10102      allow_undefined_flag='${wl}-z,nodefs'
10103      archive_cmds_need_lc=no
10104      hardcode_shlibpath_var=no
10105      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10106      hardcode_libdir_separator=':'
10107      link_all_deplibs=yes
10108      export_dynamic_flag_spec='${wl}-Bexport'
10109      runpath_var='LD_RUN_PATH'
10110
10111      if test "$GCC" = yes; then
10112	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10113	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10114      else
10115	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10116	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10117      fi
10118      ;;
10119
10120    uts4*)
10121      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122      hardcode_libdir_flag_spec='-L$libdir'
10123      hardcode_shlibpath_var=no
10124      ;;
10125
10126    *)
10127      ld_shlibs=no
10128      ;;
10129    esac
10130  fi
10131
10132{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10133echo "${ECHO_T}$ld_shlibs" >&6; }
10134test "$ld_shlibs" = no && can_build_shared=no
10135
10136#
10137# Do we need to explicitly link libc?
10138#
10139case "x$archive_cmds_need_lc" in
10140x|xyes)
10141  # Assume -lc should be added
10142  archive_cmds_need_lc=yes
10143
10144  if test "$enable_shared" = yes && test "$GCC" = yes; then
10145    case $archive_cmds in
10146    *'~'*)
10147      # FIXME: we may have to deal with multi-command sequences.
10148      ;;
10149    '$CC '*)
10150      # Test whether the compiler implicitly links with -lc since on some
10151      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10152      # to ld, don't add -lc before -lgcc.
10153      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10154echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10155      $rm conftest*
10156      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10157
10158      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10159  (eval $ac_compile) 2>&5
10160  ac_status=$?
10161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162  (exit $ac_status); } 2>conftest.err; then
10163        soname=conftest
10164        lib=conftest
10165        libobjs=conftest.$ac_objext
10166        deplibs=
10167        wl=$lt_prog_compiler_wl
10168	pic_flag=$lt_prog_compiler_pic
10169        compiler_flags=-v
10170        linker_flags=-v
10171        verstring=
10172        output_objdir=.
10173        libname=conftest
10174        lt_save_allow_undefined_flag=$allow_undefined_flag
10175        allow_undefined_flag=
10176        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10177  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10178  ac_status=$?
10179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180  (exit $ac_status); }
10181        then
10182	  archive_cmds_need_lc=no
10183        else
10184	  archive_cmds_need_lc=yes
10185        fi
10186        allow_undefined_flag=$lt_save_allow_undefined_flag
10187      else
10188        cat conftest.err 1>&5
10189      fi
10190      $rm conftest*
10191      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10192echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10193      ;;
10194    esac
10195  fi
10196  ;;
10197esac
10198
10199{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10200echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10201library_names_spec=
10202libname_spec='lib$name'
10203soname_spec=
10204shrext_cmds=".so"
10205postinstall_cmds=
10206postuninstall_cmds=
10207finish_cmds=
10208finish_eval=
10209shlibpath_var=
10210shlibpath_overrides_runpath=unknown
10211version_type=none
10212dynamic_linker="$host_os ld.so"
10213sys_lib_dlsearch_path_spec="/lib /usr/lib"
10214if test "$GCC" = yes; then
10215  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10216  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10217    # if the path contains ";" then we assume it to be the separator
10218    # otherwise default to the standard path separator (i.e. ":") - it is
10219    # assumed that no part of a normal pathname contains ";" but that should
10220    # okay in the real world where ";" in dirpaths is itself problematic.
10221    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10222  else
10223    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10224  fi
10225else
10226  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10227fi
10228need_lib_prefix=unknown
10229hardcode_into_libs=no
10230
10231# when you set need_version to no, make sure it does not cause -set_version
10232# flags to be left without arguments
10233need_version=unknown
10234
10235case $host_os in
10236aix3*)
10237  version_type=linux
10238  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10239  shlibpath_var=LIBPATH
10240
10241  # AIX 3 has no versioning support, so we append a major version to the name.
10242  soname_spec='${libname}${release}${shared_ext}$major'
10243  ;;
10244
10245aix4* | aix5*)
10246  version_type=linux
10247  need_lib_prefix=no
10248  need_version=no
10249  hardcode_into_libs=yes
10250  if test "$host_cpu" = ia64; then
10251    # AIX 5 supports IA64
10252    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10253    shlibpath_var=LD_LIBRARY_PATH
10254  else
10255    # With GCC up to 2.95.x, collect2 would create an import file
10256    # for dependence libraries.  The import file would start with
10257    # the line `#! .'.  This would cause the generated library to
10258    # depend on `.', always an invalid library.  This was fixed in
10259    # development snapshots of GCC prior to 3.0.
10260    case $host_os in
10261      aix4 | aix4.[01] | aix4.[01].*)
10262      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10263	   echo ' yes '
10264	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10265	:
10266      else
10267	can_build_shared=no
10268      fi
10269      ;;
10270    esac
10271    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10272    # soname into executable. Probably we can add versioning support to
10273    # collect2, so additional links can be useful in future.
10274    if test "$aix_use_runtimelinking" = yes; then
10275      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10276      # instead of lib<name>.a to let people know that these are not
10277      # typical AIX shared libraries.
10278      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279    else
10280      # We preserve .a as extension for shared libraries through AIX4.2
10281      # and later when we are not doing run time linking.
10282      library_names_spec='${libname}${release}.a $libname.a'
10283      soname_spec='${libname}${release}${shared_ext}$major'
10284    fi
10285    shlibpath_var=LIBPATH
10286  fi
10287  ;;
10288
10289amigaos*)
10290  library_names_spec='$libname.ixlibrary $libname.a'
10291  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10292  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'
10293  ;;
10294
10295beos*)
10296  library_names_spec='${libname}${shared_ext}'
10297  dynamic_linker="$host_os ld.so"
10298  shlibpath_var=LIBRARY_PATH
10299  ;;
10300
10301bsdi[45]*)
10302  version_type=linux
10303  need_version=no
10304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305  soname_spec='${libname}${release}${shared_ext}$major'
10306  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10307  shlibpath_var=LD_LIBRARY_PATH
10308  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10309  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10310  # the default ld.so.conf also contains /usr/contrib/lib and
10311  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10312  # libtool to hard-code these into programs
10313  ;;
10314
10315cygwin* | mingw* | pw32*)
10316  version_type=windows
10317  shrext_cmds=".dll"
10318  need_version=no
10319  need_lib_prefix=no
10320
10321  case $GCC,$host_os in
10322  yes,cygwin* | yes,mingw* | yes,pw32*)
10323    library_names_spec='$libname.dll.a'
10324    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10325    postinstall_cmds='base_file=`basename \${file}`~
10326      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10327      dldir=$destdir/`dirname \$dlpath`~
10328      test -d \$dldir || mkdir -p \$dldir~
10329      $install_prog $dir/$dlname \$dldir/$dlname~
10330      chmod a+x \$dldir/$dlname'
10331    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10332      dlpath=$dir/\$dldll~
10333       $rm \$dlpath'
10334    shlibpath_overrides_runpath=yes
10335
10336    case $host_os in
10337    cygwin*)
10338      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10339      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10340      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10341      ;;
10342    mingw*)
10343      # MinGW DLLs use traditional 'lib' prefix
10344      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10345      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10346      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10347        # It is most probably a Windows format PATH printed by
10348        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10349        # path with ; separators, and with drive letters. We can handle the
10350        # drive letters (cygwin fileutils understands them), so leave them,
10351        # especially as we might pass files found there to a mingw objdump,
10352        # which wouldn't understand a cygwinified path. Ahh.
10353        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10354      else
10355        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10356      fi
10357      ;;
10358    pw32*)
10359      # pw32 DLLs use 'pw' prefix rather than 'lib'
10360      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10361      ;;
10362    esac
10363    ;;
10364
10365  *)
10366    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10367    ;;
10368  esac
10369  dynamic_linker='Win32 ld.exe'
10370  # FIXME: first we should search . and the directory the executable is in
10371  shlibpath_var=PATH
10372  ;;
10373
10374darwin* | rhapsody*)
10375  dynamic_linker="$host_os dyld"
10376  version_type=darwin
10377  need_lib_prefix=no
10378  need_version=no
10379  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10380  soname_spec='${libname}${release}${major}$shared_ext'
10381  shlibpath_overrides_runpath=yes
10382  shlibpath_var=DYLD_LIBRARY_PATH
10383  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10384  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10385  if test "$GCC" = yes; then
10386    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10387  else
10388    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10389  fi
10390  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10391  ;;
10392
10393dgux*)
10394  version_type=linux
10395  need_lib_prefix=no
10396  need_version=no
10397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10398  soname_spec='${libname}${release}${shared_ext}$major'
10399  shlibpath_var=LD_LIBRARY_PATH
10400  ;;
10401
10402freebsd1*)
10403  dynamic_linker=no
10404  ;;
10405
10406kfreebsd*-gnu)
10407  version_type=linux
10408  need_lib_prefix=no
10409  need_version=no
10410  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10411  soname_spec='${libname}${release}${shared_ext}$major'
10412  shlibpath_var=LD_LIBRARY_PATH
10413  shlibpath_overrides_runpath=no
10414  hardcode_into_libs=yes
10415  dynamic_linker='GNU ld.so'
10416  ;;
10417
10418freebsd* | dragonfly*)
10419  # DragonFly does not have aout.  When/if they implement a new
10420  # versioning mechanism, adjust this.
10421  if test -x /usr/bin/objformat; then
10422    objformat=`/usr/bin/objformat`
10423  else
10424    case $host_os in
10425    freebsd[123]*) objformat=aout ;;
10426    *) objformat=elf ;;
10427    esac
10428  fi
10429  version_type=freebsd-$objformat
10430  case $version_type in
10431    freebsd-elf*)
10432      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10433      need_version=no
10434      need_lib_prefix=no
10435      ;;
10436    freebsd-*)
10437      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10438      need_version=yes
10439      ;;
10440  esac
10441  shlibpath_var=LD_LIBRARY_PATH
10442  case $host_os in
10443  freebsd2*)
10444    shlibpath_overrides_runpath=yes
10445    ;;
10446  freebsd3.[01]* | freebsdelf3.[01]*)
10447    shlibpath_overrides_runpath=yes
10448    hardcode_into_libs=yes
10449    ;;
10450  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10451  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10452    shlibpath_overrides_runpath=no
10453    hardcode_into_libs=yes
10454    ;;
10455  freebsd*) # from 4.6 on
10456    shlibpath_overrides_runpath=yes
10457    hardcode_into_libs=yes
10458    ;;
10459  esac
10460  ;;
10461
10462gnu*)
10463  version_type=linux
10464  need_lib_prefix=no
10465  need_version=no
10466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10467  soname_spec='${libname}${release}${shared_ext}$major'
10468  shlibpath_var=LD_LIBRARY_PATH
10469  hardcode_into_libs=yes
10470  ;;
10471
10472hpux9* | hpux10* | hpux11*)
10473  # Give a soname corresponding to the major version so that dld.sl refuses to
10474  # link against other versions.
10475  version_type=sunos
10476  need_lib_prefix=no
10477  need_version=no
10478  case $host_cpu in
10479  ia64*)
10480    shrext_cmds='.so'
10481    hardcode_into_libs=yes
10482    dynamic_linker="$host_os dld.so"
10483    shlibpath_var=LD_LIBRARY_PATH
10484    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10485    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486    soname_spec='${libname}${release}${shared_ext}$major'
10487    if test "X$HPUX_IA64_MODE" = X32; then
10488      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10489    else
10490      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10491    fi
10492    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10493    ;;
10494   hppa*64*)
10495     shrext_cmds='.sl'
10496     hardcode_into_libs=yes
10497     dynamic_linker="$host_os dld.sl"
10498     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10499     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10500     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501     soname_spec='${libname}${release}${shared_ext}$major'
10502     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10503     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10504     ;;
10505   *)
10506    shrext_cmds='.sl'
10507    dynamic_linker="$host_os dld.sl"
10508    shlibpath_var=SHLIB_PATH
10509    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10510    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10511    soname_spec='${libname}${release}${shared_ext}$major'
10512    ;;
10513  esac
10514  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10515  postinstall_cmds='chmod 555 $lib'
10516  ;;
10517
10518interix3*)
10519  version_type=linux
10520  need_lib_prefix=no
10521  need_version=no
10522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10523  soname_spec='${libname}${release}${shared_ext}$major'
10524  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10525  shlibpath_var=LD_LIBRARY_PATH
10526  shlibpath_overrides_runpath=no
10527  hardcode_into_libs=yes
10528  ;;
10529
10530irix5* | irix6* | nonstopux*)
10531  case $host_os in
10532    nonstopux*) version_type=nonstopux ;;
10533    *)
10534	if test "$lt_cv_prog_gnu_ld" = yes; then
10535		version_type=linux
10536	else
10537		version_type=irix
10538	fi ;;
10539  esac
10540  need_lib_prefix=no
10541  need_version=no
10542  soname_spec='${libname}${release}${shared_ext}$major'
10543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10544  case $host_os in
10545  irix5* | nonstopux*)
10546    libsuff= shlibsuff=
10547    ;;
10548  *)
10549    case $LD in # libtool.m4 will add one of these switches to LD
10550    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10551      libsuff= shlibsuff= libmagic=32-bit;;
10552    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10553      libsuff=32 shlibsuff=N32 libmagic=N32;;
10554    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10555      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10556    *) libsuff= shlibsuff= libmagic=never-match;;
10557    esac
10558    ;;
10559  esac
10560  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10561  shlibpath_overrides_runpath=no
10562  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10563  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10564  hardcode_into_libs=yes
10565  ;;
10566
10567# No shared lib support for Linux oldld, aout, or coff.
10568linux*oldld* | linux*aout* | linux*coff*)
10569  dynamic_linker=no
10570  ;;
10571
10572# This must be Linux ELF.
10573linux*)
10574  version_type=linux
10575  need_lib_prefix=no
10576  need_version=no
10577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578  soname_spec='${libname}${release}${shared_ext}$major'
10579  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10580  shlibpath_var=LD_LIBRARY_PATH
10581  shlibpath_overrides_runpath=no
10582  # This implies no fast_install, which is unacceptable.
10583  # Some rework will be needed to allow for fast_install
10584  # before this can be enabled.
10585  hardcode_into_libs=yes
10586
10587  # Append ld.so.conf contents to the search path
10588  if test -f /etc/ld.so.conf; then
10589    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10590    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10591  fi
10592
10593  # We used to test for /lib/ld.so.1 and disable shared libraries on
10594  # powerpc, because MkLinux only supported shared libraries with the
10595  # GNU dynamic linker.  Since this was broken with cross compilers,
10596  # most powerpc-linux boxes support dynamic linking these days and
10597  # people can always --disable-shared, the test was removed, and we
10598  # assume the GNU/Linux dynamic linker is in use.
10599  dynamic_linker='GNU/Linux ld.so'
10600  ;;
10601
10602knetbsd*-gnu)
10603  version_type=linux
10604  need_lib_prefix=no
10605  need_version=no
10606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10607  soname_spec='${libname}${release}${shared_ext}$major'
10608  shlibpath_var=LD_LIBRARY_PATH
10609  shlibpath_overrides_runpath=no
10610  hardcode_into_libs=yes
10611  dynamic_linker='GNU ld.so'
10612  ;;
10613
10614netbsd*)
10615  version_type=sunos
10616  need_lib_prefix=no
10617  need_version=no
10618  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10619    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10620    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10621    dynamic_linker='NetBSD (a.out) ld.so'
10622  else
10623    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10624    soname_spec='${libname}${release}${shared_ext}$major'
10625    dynamic_linker='NetBSD ld.elf_so'
10626  fi
10627  shlibpath_var=LD_LIBRARY_PATH
10628  shlibpath_overrides_runpath=yes
10629  hardcode_into_libs=yes
10630  ;;
10631
10632newsos6)
10633  version_type=linux
10634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10635  shlibpath_var=LD_LIBRARY_PATH
10636  shlibpath_overrides_runpath=yes
10637  ;;
10638
10639nto-qnx*)
10640  version_type=linux
10641  need_lib_prefix=no
10642  need_version=no
10643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644  soname_spec='${libname}${release}${shared_ext}$major'
10645  shlibpath_var=LD_LIBRARY_PATH
10646  shlibpath_overrides_runpath=yes
10647  ;;
10648
10649openbsd*)
10650  version_type=sunos
10651  sys_lib_dlsearch_path_spec="/usr/lib"
10652  need_lib_prefix=no
10653  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10654  case $host_os in
10655    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10656    *)                         need_version=no  ;;
10657  esac
10658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10659  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10660  shlibpath_var=LD_LIBRARY_PATH
10661  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10662    case $host_os in
10663      openbsd2.[89] | openbsd2.[89].*)
10664	shlibpath_overrides_runpath=no
10665	;;
10666      *)
10667	shlibpath_overrides_runpath=yes
10668	;;
10669      esac
10670  else
10671    shlibpath_overrides_runpath=yes
10672  fi
10673  ;;
10674
10675os2*)
10676  libname_spec='$name'
10677  shrext_cmds=".dll"
10678  need_lib_prefix=no
10679  library_names_spec='$libname${shared_ext} $libname.a'
10680  dynamic_linker='OS/2 ld.exe'
10681  shlibpath_var=LIBPATH
10682  ;;
10683
10684osf3* | osf4* | osf5*)
10685  version_type=osf
10686  need_lib_prefix=no
10687  need_version=no
10688  soname_spec='${libname}${release}${shared_ext}$major'
10689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10690  shlibpath_var=LD_LIBRARY_PATH
10691  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10692  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10693  ;;
10694
10695solaris*)
10696  version_type=linux
10697  need_lib_prefix=no
10698  need_version=no
10699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700  soname_spec='${libname}${release}${shared_ext}$major'
10701  shlibpath_var=LD_LIBRARY_PATH
10702  shlibpath_overrides_runpath=yes
10703  hardcode_into_libs=yes
10704  # ldd complains unless libraries are executable
10705  postinstall_cmds='chmod +x $lib'
10706  ;;
10707
10708sunos4*)
10709  version_type=sunos
10710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10711  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10712  shlibpath_var=LD_LIBRARY_PATH
10713  shlibpath_overrides_runpath=yes
10714  if test "$with_gnu_ld" = yes; then
10715    need_lib_prefix=no
10716  fi
10717  need_version=yes
10718  ;;
10719
10720sysv4 | sysv4.3*)
10721  version_type=linux
10722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10723  soname_spec='${libname}${release}${shared_ext}$major'
10724  shlibpath_var=LD_LIBRARY_PATH
10725  case $host_vendor in
10726    sni)
10727      shlibpath_overrides_runpath=no
10728      need_lib_prefix=no
10729      export_dynamic_flag_spec='${wl}-Blargedynsym'
10730      runpath_var=LD_RUN_PATH
10731      ;;
10732    siemens)
10733      need_lib_prefix=no
10734      ;;
10735    motorola)
10736      need_lib_prefix=no
10737      need_version=no
10738      shlibpath_overrides_runpath=no
10739      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10740      ;;
10741  esac
10742  ;;
10743
10744sysv4*MP*)
10745  if test -d /usr/nec ;then
10746    version_type=linux
10747    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10748    soname_spec='$libname${shared_ext}.$major'
10749    shlibpath_var=LD_LIBRARY_PATH
10750  fi
10751  ;;
10752
10753sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10754  version_type=freebsd-elf
10755  need_lib_prefix=no
10756  need_version=no
10757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10758  soname_spec='${libname}${release}${shared_ext}$major'
10759  shlibpath_var=LD_LIBRARY_PATH
10760  hardcode_into_libs=yes
10761  if test "$with_gnu_ld" = yes; then
10762    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10763    shlibpath_overrides_runpath=no
10764  else
10765    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10766    shlibpath_overrides_runpath=yes
10767    case $host_os in
10768      sco3.2v5*)
10769        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10770	;;
10771    esac
10772  fi
10773  sys_lib_dlsearch_path_spec='/usr/lib'
10774  ;;
10775
10776uts4*)
10777  version_type=linux
10778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779  soname_spec='${libname}${release}${shared_ext}$major'
10780  shlibpath_var=LD_LIBRARY_PATH
10781  ;;
10782
10783*)
10784  dynamic_linker=no
10785  ;;
10786esac
10787{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10788echo "${ECHO_T}$dynamic_linker" >&6; }
10789test "$dynamic_linker" = no && can_build_shared=no
10790
10791variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10792if test "$GCC" = yes; then
10793  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10794fi
10795
10796{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10797echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10798hardcode_action=
10799if test -n "$hardcode_libdir_flag_spec" || \
10800   test -n "$runpath_var" || \
10801   test "X$hardcode_automatic" = "Xyes" ; then
10802
10803  # We can hardcode non-existant directories.
10804  if test "$hardcode_direct" != no &&
10805     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10806     # have to relink, otherwise we might link with an installed library
10807     # when we should be linking with a yet-to-be-installed one
10808     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10809     test "$hardcode_minus_L" != no; then
10810    # Linking always hardcodes the temporary library directory.
10811    hardcode_action=relink
10812  else
10813    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10814    hardcode_action=immediate
10815  fi
10816else
10817  # We cannot hardcode anything, or else we can only hardcode existing
10818  # directories.
10819  hardcode_action=unsupported
10820fi
10821{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10822echo "${ECHO_T}$hardcode_action" >&6; }
10823
10824if test "$hardcode_action" = relink; then
10825  # Fast installation is not supported
10826  enable_fast_install=no
10827elif test "$shlibpath_overrides_runpath" = yes ||
10828     test "$enable_shared" = no; then
10829  # Fast installation is not necessary
10830  enable_fast_install=needless
10831fi
10832
10833striplib=
10834old_striplib=
10835{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10836echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10837if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10838  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10839  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10840  { echo "$as_me:$LINENO: result: yes" >&5
10841echo "${ECHO_T}yes" >&6; }
10842else
10843# FIXME - insert some real tests, host_os isn't really good enough
10844  case $host_os in
10845   darwin*)
10846       if test -n "$STRIP" ; then
10847         striplib="$STRIP -x"
10848         { echo "$as_me:$LINENO: result: yes" >&5
10849echo "${ECHO_T}yes" >&6; }
10850       else
10851  { echo "$as_me:$LINENO: result: no" >&5
10852echo "${ECHO_T}no" >&6; }
10853fi
10854       ;;
10855   *)
10856  { echo "$as_me:$LINENO: result: no" >&5
10857echo "${ECHO_T}no" >&6; }
10858    ;;
10859  esac
10860fi
10861
10862if test "x$enable_dlopen" != xyes; then
10863  enable_dlopen=unknown
10864  enable_dlopen_self=unknown
10865  enable_dlopen_self_static=unknown
10866else
10867  lt_cv_dlopen=no
10868  lt_cv_dlopen_libs=
10869
10870  case $host_os in
10871  beos*)
10872    lt_cv_dlopen="load_add_on"
10873    lt_cv_dlopen_libs=
10874    lt_cv_dlopen_self=yes
10875    ;;
10876
10877  mingw* | pw32*)
10878    lt_cv_dlopen="LoadLibrary"
10879    lt_cv_dlopen_libs=
10880   ;;
10881
10882  cygwin*)
10883    lt_cv_dlopen="dlopen"
10884    lt_cv_dlopen_libs=
10885   ;;
10886
10887  darwin*)
10888  # if libdl is installed we need to link against it
10889    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10890echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10891if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10892  echo $ECHO_N "(cached) $ECHO_C" >&6
10893else
10894  ac_check_lib_save_LIBS=$LIBS
10895LIBS="-ldl  $LIBS"
10896cat >conftest.$ac_ext <<_ACEOF
10897/* confdefs.h.  */
10898_ACEOF
10899cat confdefs.h >>conftest.$ac_ext
10900cat >>conftest.$ac_ext <<_ACEOF
10901/* end confdefs.h.  */
10902
10903/* Override any GCC internal prototype to avoid an error.
10904   Use char because int might match the return type of a GCC
10905   builtin and then its argument prototype would still apply.  */
10906#ifdef __cplusplus
10907extern "C"
10908#endif
10909char dlopen ();
10910int
10911main ()
10912{
10913return dlopen ();
10914  ;
10915  return 0;
10916}
10917_ACEOF
10918rm -f conftest.$ac_objext conftest$ac_exeext
10919if { (ac_try="$ac_link"
10920case "(($ac_try" in
10921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922  *) ac_try_echo=$ac_try;;
10923esac
10924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925  (eval "$ac_link") 2>conftest.er1
10926  ac_status=$?
10927  grep -v '^ *+' conftest.er1 >conftest.err
10928  rm -f conftest.er1
10929  cat conftest.err >&5
10930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931  (exit $ac_status); } && {
10932	 test -z "$ac_c_werror_flag" ||
10933	 test ! -s conftest.err
10934       } && test -s conftest$ac_exeext &&
10935       $as_test_x conftest$ac_exeext; then
10936  ac_cv_lib_dl_dlopen=yes
10937else
10938  echo "$as_me: failed program was:" >&5
10939sed 's/^/| /' conftest.$ac_ext >&5
10940
10941	ac_cv_lib_dl_dlopen=no
10942fi
10943
10944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10945      conftest$ac_exeext conftest.$ac_ext
10946LIBS=$ac_check_lib_save_LIBS
10947fi
10948{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10949echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10950if test $ac_cv_lib_dl_dlopen = yes; then
10951  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10952else
10953
10954    lt_cv_dlopen="dyld"
10955    lt_cv_dlopen_libs=
10956    lt_cv_dlopen_self=yes
10957
10958fi
10959
10960   ;;
10961
10962  *)
10963    { echo "$as_me:$LINENO: checking for shl_load" >&5
10964echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10965if test "${ac_cv_func_shl_load+set}" = set; then
10966  echo $ECHO_N "(cached) $ECHO_C" >&6
10967else
10968  cat >conftest.$ac_ext <<_ACEOF
10969/* confdefs.h.  */
10970_ACEOF
10971cat confdefs.h >>conftest.$ac_ext
10972cat >>conftest.$ac_ext <<_ACEOF
10973/* end confdefs.h.  */
10974/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10975   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10976#define shl_load innocuous_shl_load
10977
10978/* System header to define __stub macros and hopefully few prototypes,
10979    which can conflict with char shl_load (); below.
10980    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10981    <limits.h> exists even on freestanding compilers.  */
10982
10983#ifdef __STDC__
10984# include <limits.h>
10985#else
10986# include <assert.h>
10987#endif
10988
10989#undef shl_load
10990
10991/* Override any GCC internal prototype to avoid an error.
10992   Use char because int might match the return type of a GCC
10993   builtin and then its argument prototype would still apply.  */
10994#ifdef __cplusplus
10995extern "C"
10996#endif
10997char shl_load ();
10998/* The GNU C library defines this for functions which it implements
10999    to always fail with ENOSYS.  Some functions are actually named
11000    something starting with __ and the normal name is an alias.  */
11001#if defined __stub_shl_load || defined __stub___shl_load
11002choke me
11003#endif
11004
11005int
11006main ()
11007{
11008return shl_load ();
11009  ;
11010  return 0;
11011}
11012_ACEOF
11013rm -f conftest.$ac_objext conftest$ac_exeext
11014if { (ac_try="$ac_link"
11015case "(($ac_try" in
11016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017  *) ac_try_echo=$ac_try;;
11018esac
11019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020  (eval "$ac_link") 2>conftest.er1
11021  ac_status=$?
11022  grep -v '^ *+' conftest.er1 >conftest.err
11023  rm -f conftest.er1
11024  cat conftest.err >&5
11025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026  (exit $ac_status); } && {
11027	 test -z "$ac_c_werror_flag" ||
11028	 test ! -s conftest.err
11029       } && test -s conftest$ac_exeext &&
11030       $as_test_x conftest$ac_exeext; then
11031  ac_cv_func_shl_load=yes
11032else
11033  echo "$as_me: failed program was:" >&5
11034sed 's/^/| /' conftest.$ac_ext >&5
11035
11036	ac_cv_func_shl_load=no
11037fi
11038
11039rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11040      conftest$ac_exeext conftest.$ac_ext
11041fi
11042{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11043echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11044if test $ac_cv_func_shl_load = yes; then
11045  lt_cv_dlopen="shl_load"
11046else
11047  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11048echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11049if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11050  echo $ECHO_N "(cached) $ECHO_C" >&6
11051else
11052  ac_check_lib_save_LIBS=$LIBS
11053LIBS="-ldld  $LIBS"
11054cat >conftest.$ac_ext <<_ACEOF
11055/* confdefs.h.  */
11056_ACEOF
11057cat confdefs.h >>conftest.$ac_ext
11058cat >>conftest.$ac_ext <<_ACEOF
11059/* end confdefs.h.  */
11060
11061/* Override any GCC internal prototype to avoid an error.
11062   Use char because int might match the return type of a GCC
11063   builtin and then its argument prototype would still apply.  */
11064#ifdef __cplusplus
11065extern "C"
11066#endif
11067char shl_load ();
11068int
11069main ()
11070{
11071return shl_load ();
11072  ;
11073  return 0;
11074}
11075_ACEOF
11076rm -f conftest.$ac_objext conftest$ac_exeext
11077if { (ac_try="$ac_link"
11078case "(($ac_try" in
11079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080  *) ac_try_echo=$ac_try;;
11081esac
11082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083  (eval "$ac_link") 2>conftest.er1
11084  ac_status=$?
11085  grep -v '^ *+' conftest.er1 >conftest.err
11086  rm -f conftest.er1
11087  cat conftest.err >&5
11088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089  (exit $ac_status); } && {
11090	 test -z "$ac_c_werror_flag" ||
11091	 test ! -s conftest.err
11092       } && test -s conftest$ac_exeext &&
11093       $as_test_x conftest$ac_exeext; then
11094  ac_cv_lib_dld_shl_load=yes
11095else
11096  echo "$as_me: failed program was:" >&5
11097sed 's/^/| /' conftest.$ac_ext >&5
11098
11099	ac_cv_lib_dld_shl_load=no
11100fi
11101
11102rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11103      conftest$ac_exeext conftest.$ac_ext
11104LIBS=$ac_check_lib_save_LIBS
11105fi
11106{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11107echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11108if test $ac_cv_lib_dld_shl_load = yes; then
11109  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11110else
11111  { echo "$as_me:$LINENO: checking for dlopen" >&5
11112echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11113if test "${ac_cv_func_dlopen+set}" = set; then
11114  echo $ECHO_N "(cached) $ECHO_C" >&6
11115else
11116  cat >conftest.$ac_ext <<_ACEOF
11117/* confdefs.h.  */
11118_ACEOF
11119cat confdefs.h >>conftest.$ac_ext
11120cat >>conftest.$ac_ext <<_ACEOF
11121/* end confdefs.h.  */
11122/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11123   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11124#define dlopen innocuous_dlopen
11125
11126/* System header to define __stub macros and hopefully few prototypes,
11127    which can conflict with char dlopen (); below.
11128    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11129    <limits.h> exists even on freestanding compilers.  */
11130
11131#ifdef __STDC__
11132# include <limits.h>
11133#else
11134# include <assert.h>
11135#endif
11136
11137#undef dlopen
11138
11139/* Override any GCC internal prototype to avoid an error.
11140   Use char because int might match the return type of a GCC
11141   builtin and then its argument prototype would still apply.  */
11142#ifdef __cplusplus
11143extern "C"
11144#endif
11145char dlopen ();
11146/* The GNU C library defines this for functions which it implements
11147    to always fail with ENOSYS.  Some functions are actually named
11148    something starting with __ and the normal name is an alias.  */
11149#if defined __stub_dlopen || defined __stub___dlopen
11150choke me
11151#endif
11152
11153int
11154main ()
11155{
11156return dlopen ();
11157  ;
11158  return 0;
11159}
11160_ACEOF
11161rm -f conftest.$ac_objext conftest$ac_exeext
11162if { (ac_try="$ac_link"
11163case "(($ac_try" in
11164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165  *) ac_try_echo=$ac_try;;
11166esac
11167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168  (eval "$ac_link") 2>conftest.er1
11169  ac_status=$?
11170  grep -v '^ *+' conftest.er1 >conftest.err
11171  rm -f conftest.er1
11172  cat conftest.err >&5
11173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174  (exit $ac_status); } && {
11175	 test -z "$ac_c_werror_flag" ||
11176	 test ! -s conftest.err
11177       } && test -s conftest$ac_exeext &&
11178       $as_test_x conftest$ac_exeext; then
11179  ac_cv_func_dlopen=yes
11180else
11181  echo "$as_me: failed program was:" >&5
11182sed 's/^/| /' conftest.$ac_ext >&5
11183
11184	ac_cv_func_dlopen=no
11185fi
11186
11187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11188      conftest$ac_exeext conftest.$ac_ext
11189fi
11190{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11191echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11192if test $ac_cv_func_dlopen = yes; then
11193  lt_cv_dlopen="dlopen"
11194else
11195  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11196echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11197if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11198  echo $ECHO_N "(cached) $ECHO_C" >&6
11199else
11200  ac_check_lib_save_LIBS=$LIBS
11201LIBS="-ldl  $LIBS"
11202cat >conftest.$ac_ext <<_ACEOF
11203/* confdefs.h.  */
11204_ACEOF
11205cat confdefs.h >>conftest.$ac_ext
11206cat >>conftest.$ac_ext <<_ACEOF
11207/* end confdefs.h.  */
11208
11209/* Override any GCC internal prototype to avoid an error.
11210   Use char because int might match the return type of a GCC
11211   builtin and then its argument prototype would still apply.  */
11212#ifdef __cplusplus
11213extern "C"
11214#endif
11215char dlopen ();
11216int
11217main ()
11218{
11219return dlopen ();
11220  ;
11221  return 0;
11222}
11223_ACEOF
11224rm -f conftest.$ac_objext conftest$ac_exeext
11225if { (ac_try="$ac_link"
11226case "(($ac_try" in
11227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228  *) ac_try_echo=$ac_try;;
11229esac
11230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231  (eval "$ac_link") 2>conftest.er1
11232  ac_status=$?
11233  grep -v '^ *+' conftest.er1 >conftest.err
11234  rm -f conftest.er1
11235  cat conftest.err >&5
11236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237  (exit $ac_status); } && {
11238	 test -z "$ac_c_werror_flag" ||
11239	 test ! -s conftest.err
11240       } && test -s conftest$ac_exeext &&
11241       $as_test_x conftest$ac_exeext; then
11242  ac_cv_lib_dl_dlopen=yes
11243else
11244  echo "$as_me: failed program was:" >&5
11245sed 's/^/| /' conftest.$ac_ext >&5
11246
11247	ac_cv_lib_dl_dlopen=no
11248fi
11249
11250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11251      conftest$ac_exeext conftest.$ac_ext
11252LIBS=$ac_check_lib_save_LIBS
11253fi
11254{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11255echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11256if test $ac_cv_lib_dl_dlopen = yes; then
11257  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11258else
11259  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11260echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11261if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11262  echo $ECHO_N "(cached) $ECHO_C" >&6
11263else
11264  ac_check_lib_save_LIBS=$LIBS
11265LIBS="-lsvld  $LIBS"
11266cat >conftest.$ac_ext <<_ACEOF
11267/* confdefs.h.  */
11268_ACEOF
11269cat confdefs.h >>conftest.$ac_ext
11270cat >>conftest.$ac_ext <<_ACEOF
11271/* end confdefs.h.  */
11272
11273/* Override any GCC internal prototype to avoid an error.
11274   Use char because int might match the return type of a GCC
11275   builtin and then its argument prototype would still apply.  */
11276#ifdef __cplusplus
11277extern "C"
11278#endif
11279char dlopen ();
11280int
11281main ()
11282{
11283return dlopen ();
11284  ;
11285  return 0;
11286}
11287_ACEOF
11288rm -f conftest.$ac_objext conftest$ac_exeext
11289if { (ac_try="$ac_link"
11290case "(($ac_try" in
11291  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292  *) ac_try_echo=$ac_try;;
11293esac
11294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295  (eval "$ac_link") 2>conftest.er1
11296  ac_status=$?
11297  grep -v '^ *+' conftest.er1 >conftest.err
11298  rm -f conftest.er1
11299  cat conftest.err >&5
11300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301  (exit $ac_status); } && {
11302	 test -z "$ac_c_werror_flag" ||
11303	 test ! -s conftest.err
11304       } && test -s conftest$ac_exeext &&
11305       $as_test_x conftest$ac_exeext; then
11306  ac_cv_lib_svld_dlopen=yes
11307else
11308  echo "$as_me: failed program was:" >&5
11309sed 's/^/| /' conftest.$ac_ext >&5
11310
11311	ac_cv_lib_svld_dlopen=no
11312fi
11313
11314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11315      conftest$ac_exeext conftest.$ac_ext
11316LIBS=$ac_check_lib_save_LIBS
11317fi
11318{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11319echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11320if test $ac_cv_lib_svld_dlopen = yes; then
11321  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11322else
11323  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11324echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11325if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11326  echo $ECHO_N "(cached) $ECHO_C" >&6
11327else
11328  ac_check_lib_save_LIBS=$LIBS
11329LIBS="-ldld  $LIBS"
11330cat >conftest.$ac_ext <<_ACEOF
11331/* confdefs.h.  */
11332_ACEOF
11333cat confdefs.h >>conftest.$ac_ext
11334cat >>conftest.$ac_ext <<_ACEOF
11335/* end confdefs.h.  */
11336
11337/* Override any GCC internal prototype to avoid an error.
11338   Use char because int might match the return type of a GCC
11339   builtin and then its argument prototype would still apply.  */
11340#ifdef __cplusplus
11341extern "C"
11342#endif
11343char dld_link ();
11344int
11345main ()
11346{
11347return dld_link ();
11348  ;
11349  return 0;
11350}
11351_ACEOF
11352rm -f conftest.$ac_objext conftest$ac_exeext
11353if { (ac_try="$ac_link"
11354case "(($ac_try" in
11355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356  *) ac_try_echo=$ac_try;;
11357esac
11358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359  (eval "$ac_link") 2>conftest.er1
11360  ac_status=$?
11361  grep -v '^ *+' conftest.er1 >conftest.err
11362  rm -f conftest.er1
11363  cat conftest.err >&5
11364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365  (exit $ac_status); } && {
11366	 test -z "$ac_c_werror_flag" ||
11367	 test ! -s conftest.err
11368       } && test -s conftest$ac_exeext &&
11369       $as_test_x conftest$ac_exeext; then
11370  ac_cv_lib_dld_dld_link=yes
11371else
11372  echo "$as_me: failed program was:" >&5
11373sed 's/^/| /' conftest.$ac_ext >&5
11374
11375	ac_cv_lib_dld_dld_link=no
11376fi
11377
11378rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11379      conftest$ac_exeext conftest.$ac_ext
11380LIBS=$ac_check_lib_save_LIBS
11381fi
11382{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11383echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11384if test $ac_cv_lib_dld_dld_link = yes; then
11385  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11386fi
11387
11388
11389fi
11390
11391
11392fi
11393
11394
11395fi
11396
11397
11398fi
11399
11400
11401fi
11402
11403    ;;
11404  esac
11405
11406  if test "x$lt_cv_dlopen" != xno; then
11407    enable_dlopen=yes
11408  else
11409    enable_dlopen=no
11410  fi
11411
11412  case $lt_cv_dlopen in
11413  dlopen)
11414    save_CPPFLAGS="$CPPFLAGS"
11415    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11416
11417    save_LDFLAGS="$LDFLAGS"
11418    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11419
11420    save_LIBS="$LIBS"
11421    LIBS="$lt_cv_dlopen_libs $LIBS"
11422
11423    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11424echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11425if test "${lt_cv_dlopen_self+set}" = set; then
11426  echo $ECHO_N "(cached) $ECHO_C" >&6
11427else
11428  	  if test "$cross_compiling" = yes; then :
11429  lt_cv_dlopen_self=cross
11430else
11431  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11432  lt_status=$lt_dlunknown
11433  cat > conftest.$ac_ext <<EOF
11434#line 11434 "configure"
11435#include "confdefs.h"
11436
11437#if HAVE_DLFCN_H
11438#include <dlfcn.h>
11439#endif
11440
11441#include <stdio.h>
11442
11443#ifdef RTLD_GLOBAL
11444#  define LT_DLGLOBAL		RTLD_GLOBAL
11445#else
11446#  ifdef DL_GLOBAL
11447#    define LT_DLGLOBAL		DL_GLOBAL
11448#  else
11449#    define LT_DLGLOBAL		0
11450#  endif
11451#endif
11452
11453/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11454   find out it does not work in some platform. */
11455#ifndef LT_DLLAZY_OR_NOW
11456#  ifdef RTLD_LAZY
11457#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11458#  else
11459#    ifdef DL_LAZY
11460#      define LT_DLLAZY_OR_NOW		DL_LAZY
11461#    else
11462#      ifdef RTLD_NOW
11463#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11464#      else
11465#        ifdef DL_NOW
11466#          define LT_DLLAZY_OR_NOW	DL_NOW
11467#        else
11468#          define LT_DLLAZY_OR_NOW	0
11469#        endif
11470#      endif
11471#    endif
11472#  endif
11473#endif
11474
11475#ifdef __cplusplus
11476extern "C" void exit (int);
11477#endif
11478
11479void fnord() { int i=42;}
11480int main ()
11481{
11482  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11483  int status = $lt_dlunknown;
11484
11485  if (self)
11486    {
11487      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11488      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11489      /* dlclose (self); */
11490    }
11491  else
11492    puts (dlerror ());
11493
11494    exit (status);
11495}
11496EOF
11497  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11498  (eval $ac_link) 2>&5
11499  ac_status=$?
11500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11502    (./conftest; exit; ) >&5 2>/dev/null
11503    lt_status=$?
11504    case x$lt_status in
11505      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11506      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11507      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11508    esac
11509  else :
11510    # compilation failed
11511    lt_cv_dlopen_self=no
11512  fi
11513fi
11514rm -fr conftest*
11515
11516
11517fi
11518{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11519echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11520
11521    if test "x$lt_cv_dlopen_self" = xyes; then
11522      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11523      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11524echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11525if test "${lt_cv_dlopen_self_static+set}" = set; then
11526  echo $ECHO_N "(cached) $ECHO_C" >&6
11527else
11528  	  if test "$cross_compiling" = yes; then :
11529  lt_cv_dlopen_self_static=cross
11530else
11531  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11532  lt_status=$lt_dlunknown
11533  cat > conftest.$ac_ext <<EOF
11534#line 11534 "configure"
11535#include "confdefs.h"
11536
11537#if HAVE_DLFCN_H
11538#include <dlfcn.h>
11539#endif
11540
11541#include <stdio.h>
11542
11543#ifdef RTLD_GLOBAL
11544#  define LT_DLGLOBAL		RTLD_GLOBAL
11545#else
11546#  ifdef DL_GLOBAL
11547#    define LT_DLGLOBAL		DL_GLOBAL
11548#  else
11549#    define LT_DLGLOBAL		0
11550#  endif
11551#endif
11552
11553/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11554   find out it does not work in some platform. */
11555#ifndef LT_DLLAZY_OR_NOW
11556#  ifdef RTLD_LAZY
11557#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11558#  else
11559#    ifdef DL_LAZY
11560#      define LT_DLLAZY_OR_NOW		DL_LAZY
11561#    else
11562#      ifdef RTLD_NOW
11563#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11564#      else
11565#        ifdef DL_NOW
11566#          define LT_DLLAZY_OR_NOW	DL_NOW
11567#        else
11568#          define LT_DLLAZY_OR_NOW	0
11569#        endif
11570#      endif
11571#    endif
11572#  endif
11573#endif
11574
11575#ifdef __cplusplus
11576extern "C" void exit (int);
11577#endif
11578
11579void fnord() { int i=42;}
11580int main ()
11581{
11582  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11583  int status = $lt_dlunknown;
11584
11585  if (self)
11586    {
11587      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11588      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11589      /* dlclose (self); */
11590    }
11591  else
11592    puts (dlerror ());
11593
11594    exit (status);
11595}
11596EOF
11597  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11598  (eval $ac_link) 2>&5
11599  ac_status=$?
11600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11602    (./conftest; exit; ) >&5 2>/dev/null
11603    lt_status=$?
11604    case x$lt_status in
11605      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11606      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11607      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11608    esac
11609  else :
11610    # compilation failed
11611    lt_cv_dlopen_self_static=no
11612  fi
11613fi
11614rm -fr conftest*
11615
11616
11617fi
11618{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11619echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11620    fi
11621
11622    CPPFLAGS="$save_CPPFLAGS"
11623    LDFLAGS="$save_LDFLAGS"
11624    LIBS="$save_LIBS"
11625    ;;
11626  esac
11627
11628  case $lt_cv_dlopen_self in
11629  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11630  *) enable_dlopen_self=unknown ;;
11631  esac
11632
11633  case $lt_cv_dlopen_self_static in
11634  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11635  *) enable_dlopen_self_static=unknown ;;
11636  esac
11637fi
11638
11639
11640# Report which library types will actually be built
11641{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11642echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11643{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11644echo "${ECHO_T}$can_build_shared" >&6; }
11645
11646{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11647echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11648test "$can_build_shared" = "no" && enable_shared=no
11649
11650# On AIX, shared libraries and static libraries use the same namespace, and
11651# are all built from PIC.
11652case $host_os in
11653aix3*)
11654  test "$enable_shared" = yes && enable_static=no
11655  if test -n "$RANLIB"; then
11656    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11657    postinstall_cmds='$RANLIB $lib'
11658  fi
11659  ;;
11660
11661aix4* | aix5*)
11662  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11663    test "$enable_shared" = yes && enable_static=no
11664  fi
11665    ;;
11666esac
11667{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11668echo "${ECHO_T}$enable_shared" >&6; }
11669
11670{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11671echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11672# Make sure either enable_shared or enable_static is yes.
11673test "$enable_shared" = yes || enable_static=yes
11674{ echo "$as_me:$LINENO: result: $enable_static" >&5
11675echo "${ECHO_T}$enable_static" >&6; }
11676
11677# The else clause should only fire when bootstrapping the
11678# libtool distribution, otherwise you forgot to ship ltmain.sh
11679# with your package, and you will get complaints that there are
11680# no rules to generate ltmain.sh.
11681if test -f "$ltmain"; then
11682  # See if we are running on zsh, and set the options which allow our commands through
11683  # without removal of \ escapes.
11684  if test -n "${ZSH_VERSION+set}" ; then
11685    setopt NO_GLOB_SUBST
11686  fi
11687  # Now quote all the things that may contain metacharacters while being
11688  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11689  # variables and quote the copies for generation of the libtool script.
11690  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11691    SED SHELL STRIP \
11692    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11693    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11694    deplibs_check_method reload_flag reload_cmds need_locks \
11695    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11696    lt_cv_sys_global_symbol_to_c_name_address \
11697    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11698    old_postinstall_cmds old_postuninstall_cmds \
11699    compiler \
11700    CC \
11701    LD \
11702    lt_prog_compiler_wl \
11703    lt_prog_compiler_pic \
11704    lt_prog_compiler_static \
11705    lt_prog_compiler_no_builtin_flag \
11706    export_dynamic_flag_spec \
11707    thread_safe_flag_spec \
11708    whole_archive_flag_spec \
11709    enable_shared_with_static_runtimes \
11710    old_archive_cmds \
11711    old_archive_from_new_cmds \
11712    predep_objects \
11713    postdep_objects \
11714    predeps \
11715    postdeps \
11716    compiler_lib_search_path \
11717    archive_cmds \
11718    archive_expsym_cmds \
11719    postinstall_cmds \
11720    postuninstall_cmds \
11721    old_archive_from_expsyms_cmds \
11722    allow_undefined_flag \
11723    no_undefined_flag \
11724    export_symbols_cmds \
11725    hardcode_libdir_flag_spec \
11726    hardcode_libdir_flag_spec_ld \
11727    hardcode_libdir_separator \
11728    hardcode_automatic \
11729    module_cmds \
11730    module_expsym_cmds \
11731    lt_cv_prog_compiler_c_o \
11732    exclude_expsyms \
11733    include_expsyms; do
11734
11735    case $var in
11736    old_archive_cmds | \
11737    old_archive_from_new_cmds | \
11738    archive_cmds | \
11739    archive_expsym_cmds | \
11740    module_cmds | \
11741    module_expsym_cmds | \
11742    old_archive_from_expsyms_cmds | \
11743    export_symbols_cmds | \
11744    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11745    postinstall_cmds | postuninstall_cmds | \
11746    old_postinstall_cmds | old_postuninstall_cmds | \
11747    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11748      # Double-quote double-evaled strings.
11749      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11750      ;;
11751    *)
11752      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11753      ;;
11754    esac
11755  done
11756
11757  case $lt_echo in
11758  *'\$0 --fallback-echo"')
11759    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11760    ;;
11761  esac
11762
11763cfgfile="${ofile}T"
11764  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11765  $rm -f "$cfgfile"
11766  { echo "$as_me:$LINENO: creating $ofile" >&5
11767echo "$as_me: creating $ofile" >&6;}
11768
11769  cat <<__EOF__ >> "$cfgfile"
11770#! $SHELL
11771
11772# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11773# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11774# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11775#
11776# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11777# Free Software Foundation, Inc.
11778#
11779# This file is part of GNU Libtool:
11780# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11781#
11782# This program is free software; you can redistribute it and/or modify
11783# it under the terms of the GNU General Public License as published by
11784# the Free Software Foundation; either version 2 of the License, or
11785# (at your option) any later version.
11786#
11787# This program is distributed in the hope that it will be useful, but
11788# WITHOUT ANY WARRANTY; without even the implied warranty of
11789# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11790# General Public License for more details.
11791#
11792# You should have received a copy of the GNU General Public License
11793# along with this program; if not, write to the Free Software
11794# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11795#
11796# As a special exception to the GNU General Public License, if you
11797# distribute this file as part of a program that contains a
11798# configuration script generated by Autoconf, you may include it under
11799# the same distribution terms that you use for the rest of that program.
11800
11801# A sed program that does not truncate output.
11802SED=$lt_SED
11803
11804# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11805Xsed="$SED -e 1s/^X//"
11806
11807# The HP-UX ksh and POSIX shell print the target directory to stdout
11808# if CDPATH is set.
11809(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11810
11811# The names of the tagged configurations supported by this script.
11812available_tags=
11813
11814# ### BEGIN LIBTOOL CONFIG
11815
11816# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11817
11818# Shell to use when invoking shell scripts.
11819SHELL=$lt_SHELL
11820
11821# Whether or not to build shared libraries.
11822build_libtool_libs=$enable_shared
11823
11824# Whether or not to build static libraries.
11825build_old_libs=$enable_static
11826
11827# Whether or not to add -lc for building shared libraries.
11828build_libtool_need_lc=$archive_cmds_need_lc
11829
11830# Whether or not to disallow shared libs when runtime libs are static
11831allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11832
11833# Whether or not to optimize for fast installation.
11834fast_install=$enable_fast_install
11835
11836# The host system.
11837host_alias=$host_alias
11838host=$host
11839host_os=$host_os
11840
11841# The build system.
11842build_alias=$build_alias
11843build=$build
11844build_os=$build_os
11845
11846# An echo program that does not interpret backslashes.
11847echo=$lt_echo
11848
11849# The archiver.
11850AR=$lt_AR
11851AR_FLAGS=$lt_AR_FLAGS
11852
11853# A C compiler.
11854LTCC=$lt_LTCC
11855
11856# LTCC compiler flags.
11857LTCFLAGS=$lt_LTCFLAGS
11858
11859# A language-specific compiler.
11860CC=$lt_compiler
11861
11862# Is the compiler the GNU C compiler?
11863with_gcc=$GCC
11864
11865# An ERE matcher.
11866EGREP=$lt_EGREP
11867
11868# The linker used to build libraries.
11869LD=$lt_LD
11870
11871# Whether we need hard or soft links.
11872LN_S=$lt_LN_S
11873
11874# A BSD-compatible nm program.
11875NM=$lt_NM
11876
11877# A symbol stripping program
11878STRIP=$lt_STRIP
11879
11880# Used to examine libraries when file_magic_cmd begins "file"
11881MAGIC_CMD=$MAGIC_CMD
11882
11883# Used on cygwin: DLL creation program.
11884DLLTOOL="$DLLTOOL"
11885
11886# Used on cygwin: object dumper.
11887OBJDUMP="$OBJDUMP"
11888
11889# Used on cygwin: assembler.
11890AS="$AS"
11891
11892# The name of the directory that contains temporary libtool files.
11893objdir=$objdir
11894
11895# How to create reloadable object files.
11896reload_flag=$lt_reload_flag
11897reload_cmds=$lt_reload_cmds
11898
11899# How to pass a linker flag through the compiler.
11900wl=$lt_lt_prog_compiler_wl
11901
11902# Object file suffix (normally "o").
11903objext="$ac_objext"
11904
11905# Old archive suffix (normally "a").
11906libext="$libext"
11907
11908# Shared library suffix (normally ".so").
11909shrext_cmds='$shrext_cmds'
11910
11911# Executable file suffix (normally "").
11912exeext="$exeext"
11913
11914# Additional compiler flags for building library objects.
11915pic_flag=$lt_lt_prog_compiler_pic
11916pic_mode=$pic_mode
11917
11918# What is the maximum length of a command?
11919max_cmd_len=$lt_cv_sys_max_cmd_len
11920
11921# Does compiler simultaneously support -c and -o options?
11922compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11923
11924# Must we lock files when doing compilation?
11925need_locks=$lt_need_locks
11926
11927# Do we need the lib prefix for modules?
11928need_lib_prefix=$need_lib_prefix
11929
11930# Do we need a version for libraries?
11931need_version=$need_version
11932
11933# Whether dlopen is supported.
11934dlopen_support=$enable_dlopen
11935
11936# Whether dlopen of programs is supported.
11937dlopen_self=$enable_dlopen_self
11938
11939# Whether dlopen of statically linked programs is supported.
11940dlopen_self_static=$enable_dlopen_self_static
11941
11942# Compiler flag to prevent dynamic linking.
11943link_static_flag=$lt_lt_prog_compiler_static
11944
11945# Compiler flag to turn off builtin functions.
11946no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11947
11948# Compiler flag to allow reflexive dlopens.
11949export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11950
11951# Compiler flag to generate shared objects directly from archives.
11952whole_archive_flag_spec=$lt_whole_archive_flag_spec
11953
11954# Compiler flag to generate thread-safe objects.
11955thread_safe_flag_spec=$lt_thread_safe_flag_spec
11956
11957# Library versioning type.
11958version_type=$version_type
11959
11960# Format of library name prefix.
11961libname_spec=$lt_libname_spec
11962
11963# List of archive names.  First name is the real one, the rest are links.
11964# The last name is the one that the linker finds with -lNAME.
11965library_names_spec=$lt_library_names_spec
11966
11967# The coded name of the library, if different from the real name.
11968soname_spec=$lt_soname_spec
11969
11970# Commands used to build and install an old-style archive.
11971RANLIB=$lt_RANLIB
11972old_archive_cmds=$lt_old_archive_cmds
11973old_postinstall_cmds=$lt_old_postinstall_cmds
11974old_postuninstall_cmds=$lt_old_postuninstall_cmds
11975
11976# Create an old-style archive from a shared archive.
11977old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11978
11979# Create a temporary old-style archive to link instead of a shared archive.
11980old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11981
11982# Commands used to build and install a shared archive.
11983archive_cmds=$lt_archive_cmds
11984archive_expsym_cmds=$lt_archive_expsym_cmds
11985postinstall_cmds=$lt_postinstall_cmds
11986postuninstall_cmds=$lt_postuninstall_cmds
11987
11988# Commands used to build a loadable module (assumed same as above if empty)
11989module_cmds=$lt_module_cmds
11990module_expsym_cmds=$lt_module_expsym_cmds
11991
11992# Commands to strip libraries.
11993old_striplib=$lt_old_striplib
11994striplib=$lt_striplib
11995
11996# Dependencies to place before the objects being linked to create a
11997# shared library.
11998predep_objects=$lt_predep_objects
11999
12000# Dependencies to place after the objects being linked to create a
12001# shared library.
12002postdep_objects=$lt_postdep_objects
12003
12004# Dependencies to place before the objects being linked to create a
12005# shared library.
12006predeps=$lt_predeps
12007
12008# Dependencies to place after the objects being linked to create a
12009# shared library.
12010postdeps=$lt_postdeps
12011
12012# The library search path used internally by the compiler when linking
12013# a shared library.
12014compiler_lib_search_path=$lt_compiler_lib_search_path
12015
12016# Method to check whether dependent libraries are shared objects.
12017deplibs_check_method=$lt_deplibs_check_method
12018
12019# Command to use when deplibs_check_method == file_magic.
12020file_magic_cmd=$lt_file_magic_cmd
12021
12022# Flag that allows shared libraries with undefined symbols to be built.
12023allow_undefined_flag=$lt_allow_undefined_flag
12024
12025# Flag that forces no undefined symbols.
12026no_undefined_flag=$lt_no_undefined_flag
12027
12028# Commands used to finish a libtool library installation in a directory.
12029finish_cmds=$lt_finish_cmds
12030
12031# Same as above, but a single script fragment to be evaled but not shown.
12032finish_eval=$lt_finish_eval
12033
12034# Take the output of nm and produce a listing of raw symbols and C names.
12035global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12036
12037# Transform the output of nm in a proper C declaration
12038global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12039
12040# Transform the output of nm in a C name address pair
12041global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12042
12043# This is the shared library runtime path variable.
12044runpath_var=$runpath_var
12045
12046# This is the shared library path variable.
12047shlibpath_var=$shlibpath_var
12048
12049# Is shlibpath searched before the hard-coded library search path?
12050shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12051
12052# How to hardcode a shared library path into an executable.
12053hardcode_action=$hardcode_action
12054
12055# Whether we should hardcode library paths into libraries.
12056hardcode_into_libs=$hardcode_into_libs
12057
12058# Flag to hardcode \$libdir into a binary during linking.
12059# This must work even if \$libdir does not exist.
12060hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12061
12062# If ld is used when linking, flag to hardcode \$libdir into
12063# a binary during linking. This must work even if \$libdir does
12064# not exist.
12065hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12066
12067# Whether we need a single -rpath flag with a separated argument.
12068hardcode_libdir_separator=$lt_hardcode_libdir_separator
12069
12070# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12071# resulting binary.
12072hardcode_direct=$hardcode_direct
12073
12074# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12075# resulting binary.
12076hardcode_minus_L=$hardcode_minus_L
12077
12078# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12079# the resulting binary.
12080hardcode_shlibpath_var=$hardcode_shlibpath_var
12081
12082# Set to yes if building a shared library automatically hardcodes DIR into the library
12083# and all subsequent libraries and executables linked against it.
12084hardcode_automatic=$hardcode_automatic
12085
12086# Variables whose values should be saved in libtool wrapper scripts and
12087# restored at relink time.
12088variables_saved_for_relink="$variables_saved_for_relink"
12089
12090# Whether libtool must link a program against all its dependency libraries.
12091link_all_deplibs=$link_all_deplibs
12092
12093# Compile-time system search path for libraries
12094sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12095
12096# Run-time system search path for libraries
12097sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12098
12099# Fix the shell variable \$srcfile for the compiler.
12100fix_srcfile_path="$fix_srcfile_path"
12101
12102# Set to yes if exported symbols are required.
12103always_export_symbols=$always_export_symbols
12104
12105# The commands to list exported symbols.
12106export_symbols_cmds=$lt_export_symbols_cmds
12107
12108# The commands to extract the exported symbol list from a shared archive.
12109extract_expsyms_cmds=$lt_extract_expsyms_cmds
12110
12111# Symbols that should not be listed in the preloaded symbols.
12112exclude_expsyms=$lt_exclude_expsyms
12113
12114# Symbols that must always be exported.
12115include_expsyms=$lt_include_expsyms
12116
12117# ### END LIBTOOL CONFIG
12118
12119__EOF__
12120
12121
12122  case $host_os in
12123  aix3*)
12124    cat <<\EOF >> "$cfgfile"
12125
12126# AIX sometimes has problems with the GCC collect2 program.  For some
12127# reason, if we set the COLLECT_NAMES environment variable, the problems
12128# vanish in a puff of smoke.
12129if test "X${COLLECT_NAMES+set}" != Xset; then
12130  COLLECT_NAMES=
12131  export COLLECT_NAMES
12132fi
12133EOF
12134    ;;
12135  esac
12136
12137  # We use sed instead of cat because bash on DJGPP gets confused if
12138  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12139  # text mode, it properly converts lines to CR/LF.  This bash problem
12140  # is reportedly fixed, but why not run on old versions too?
12141  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12142
12143  mv -f "$cfgfile" "$ofile" || \
12144    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12145  chmod +x "$ofile"
12146
12147else
12148  # If there is no Makefile yet, we rely on a make rule to execute
12149  # `config.status --recheck' to rerun these tests and create the
12150  # libtool script then.
12151  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12152  if test -f "$ltmain_in"; then
12153    test -f Makefile && make "$ltmain"
12154  fi
12155fi
12156
12157
12158ac_ext=c
12159ac_cpp='$CPP $CPPFLAGS'
12160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12162ac_compiler_gnu=$ac_cv_c_compiler_gnu
12163
12164CC="$lt_save_CC"
12165
12166
12167# Check whether --with-tags was given.
12168if test "${with_tags+set}" = set; then
12169  withval=$with_tags; tagnames="$withval"
12170fi
12171
12172
12173if test -f "$ltmain" && test -n "$tagnames"; then
12174  if test ! -f "${ofile}"; then
12175    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12176echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12177  fi
12178
12179  if test -z "$LTCC"; then
12180    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12181    if test -z "$LTCC"; then
12182      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12183echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12184    else
12185      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12186echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12187    fi
12188  fi
12189  if test -z "$LTCFLAGS"; then
12190    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12191  fi
12192
12193  # Extract list of available tagged configurations in $ofile.
12194  # Note that this assumes the entire list is on one line.
12195  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12196
12197  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12198  for tagname in $tagnames; do
12199    IFS="$lt_save_ifs"
12200    # Check whether tagname contains only valid characters
12201    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12202    "") ;;
12203    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12204echo "$as_me: error: invalid tag name: $tagname" >&2;}
12205   { (exit 1); exit 1; }; }
12206	;;
12207    esac
12208
12209    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12210    then
12211      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12212echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12213   { (exit 1); exit 1; }; }
12214    fi
12215
12216    # Update the list of available tags.
12217    if test -n "$tagname"; then
12218      echo appending configuration tag \"$tagname\" to $ofile
12219
12220      case $tagname in
12221      CXX)
12222	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12223	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12224	    (test "X$CXX" != "Xg++"))) ; then
12225	  ac_ext=cpp
12226ac_cpp='$CXXCPP $CPPFLAGS'
12227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12230
12231
12232
12233
12234archive_cmds_need_lc_CXX=no
12235allow_undefined_flag_CXX=
12236always_export_symbols_CXX=no
12237archive_expsym_cmds_CXX=
12238export_dynamic_flag_spec_CXX=
12239hardcode_direct_CXX=no
12240hardcode_libdir_flag_spec_CXX=
12241hardcode_libdir_flag_spec_ld_CXX=
12242hardcode_libdir_separator_CXX=
12243hardcode_minus_L_CXX=no
12244hardcode_shlibpath_var_CXX=unsupported
12245hardcode_automatic_CXX=no
12246module_cmds_CXX=
12247module_expsym_cmds_CXX=
12248link_all_deplibs_CXX=unknown
12249old_archive_cmds_CXX=$old_archive_cmds
12250no_undefined_flag_CXX=
12251whole_archive_flag_spec_CXX=
12252enable_shared_with_static_runtimes_CXX=no
12253
12254# Dependencies to place before and after the object being linked:
12255predep_objects_CXX=
12256postdep_objects_CXX=
12257predeps_CXX=
12258postdeps_CXX=
12259compiler_lib_search_path_CXX=
12260
12261# Source file extension for C++ test sources.
12262ac_ext=cpp
12263
12264# Object file extension for compiled C++ test sources.
12265objext=o
12266objext_CXX=$objext
12267
12268# Code to be used in simple compile tests
12269lt_simple_compile_test_code="int some_variable = 0;\n"
12270
12271# Code to be used in simple link tests
12272lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12273
12274# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12275
12276# If no C compiler was specified, use CC.
12277LTCC=${LTCC-"$CC"}
12278
12279# If no C compiler flags were specified, use CFLAGS.
12280LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12281
12282# Allow CC to be a program name with arguments.
12283compiler=$CC
12284
12285
12286# save warnings/boilerplate of simple test code
12287ac_outfile=conftest.$ac_objext
12288printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12289eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12290_lt_compiler_boilerplate=`cat conftest.err`
12291$rm conftest*
12292
12293ac_outfile=conftest.$ac_objext
12294printf "$lt_simple_link_test_code" >conftest.$ac_ext
12295eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12296_lt_linker_boilerplate=`cat conftest.err`
12297$rm conftest*
12298
12299
12300# Allow CC to be a program name with arguments.
12301lt_save_CC=$CC
12302lt_save_LD=$LD
12303lt_save_GCC=$GCC
12304GCC=$GXX
12305lt_save_with_gnu_ld=$with_gnu_ld
12306lt_save_path_LD=$lt_cv_path_LD
12307if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12308  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12309else
12310  $as_unset lt_cv_prog_gnu_ld
12311fi
12312if test -n "${lt_cv_path_LDCXX+set}"; then
12313  lt_cv_path_LD=$lt_cv_path_LDCXX
12314else
12315  $as_unset lt_cv_path_LD
12316fi
12317test -z "${LDCXX+set}" || LD=$LDCXX
12318CC=${CXX-"c++"}
12319compiler=$CC
12320compiler_CXX=$CC
12321for cc_temp in $compiler""; do
12322  case $cc_temp in
12323    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12324    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12325    \-*) ;;
12326    *) break;;
12327  esac
12328done
12329cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12330
12331
12332# We don't want -fno-exception wen compiling C++ code, so set the
12333# no_builtin_flag separately
12334if test "$GXX" = yes; then
12335  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12336else
12337  lt_prog_compiler_no_builtin_flag_CXX=
12338fi
12339
12340if test "$GXX" = yes; then
12341  # Set up default GNU C++ configuration
12342
12343
12344# Check whether --with-gnu-ld was given.
12345if test "${with_gnu_ld+set}" = set; then
12346  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12347else
12348  with_gnu_ld=no
12349fi
12350
12351ac_prog=ld
12352if test "$GCC" = yes; then
12353  # Check if gcc -print-prog-name=ld gives a path.
12354  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12355echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12356  case $host in
12357  *-*-mingw*)
12358    # gcc leaves a trailing carriage return which upsets mingw
12359    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12360  *)
12361    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12362  esac
12363  case $ac_prog in
12364    # Accept absolute paths.
12365    [\\/]* | ?:[\\/]*)
12366      re_direlt='/[^/][^/]*/\.\./'
12367      # Canonicalize the pathname of ld
12368      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12369      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12370	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12371      done
12372      test -z "$LD" && LD="$ac_prog"
12373      ;;
12374  "")
12375    # If it fails, then pretend we aren't using GCC.
12376    ac_prog=ld
12377    ;;
12378  *)
12379    # If it is relative, then search for the first ld in PATH.
12380    with_gnu_ld=unknown
12381    ;;
12382  esac
12383elif test "$with_gnu_ld" = yes; then
12384  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12385echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12386else
12387  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12388echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12389fi
12390if test "${lt_cv_path_LD+set}" = set; then
12391  echo $ECHO_N "(cached) $ECHO_C" >&6
12392else
12393  if test -z "$LD"; then
12394  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12395  for ac_dir in $PATH; do
12396    IFS="$lt_save_ifs"
12397    test -z "$ac_dir" && ac_dir=.
12398    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12399      lt_cv_path_LD="$ac_dir/$ac_prog"
12400      # Check to see if the program is GNU ld.  I'd rather use --version,
12401      # but apparently some variants of GNU ld only accept -v.
12402      # Break only if it was the GNU/non-GNU ld that we prefer.
12403      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12404      *GNU* | *'with BFD'*)
12405	test "$with_gnu_ld" != no && break
12406	;;
12407      *)
12408	test "$with_gnu_ld" != yes && break
12409	;;
12410      esac
12411    fi
12412  done
12413  IFS="$lt_save_ifs"
12414else
12415  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12416fi
12417fi
12418
12419LD="$lt_cv_path_LD"
12420if test -n "$LD"; then
12421  { echo "$as_me:$LINENO: result: $LD" >&5
12422echo "${ECHO_T}$LD" >&6; }
12423else
12424  { echo "$as_me:$LINENO: result: no" >&5
12425echo "${ECHO_T}no" >&6; }
12426fi
12427test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12428echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12429   { (exit 1); exit 1; }; }
12430{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12431echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12432if test "${lt_cv_prog_gnu_ld+set}" = set; then
12433  echo $ECHO_N "(cached) $ECHO_C" >&6
12434else
12435  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12436case `$LD -v 2>&1 </dev/null` in
12437*GNU* | *'with BFD'*)
12438  lt_cv_prog_gnu_ld=yes
12439  ;;
12440*)
12441  lt_cv_prog_gnu_ld=no
12442  ;;
12443esac
12444fi
12445{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12446echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12447with_gnu_ld=$lt_cv_prog_gnu_ld
12448
12449
12450
12451  # Check if GNU C++ uses GNU ld as the underlying linker, since the
12452  # archiving commands below assume that GNU ld is being used.
12453  if test "$with_gnu_ld" = yes; then
12454    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12455    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'
12456
12457    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12458    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12459
12460    # If archive_cmds runs LD, not CC, wlarc should be empty
12461    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12462    #     investigate it a little bit more. (MM)
12463    wlarc='${wl}'
12464
12465    # ancient GNU ld didn't support --whole-archive et. al.
12466    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12467	grep 'no-whole-archive' > /dev/null; then
12468      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12469    else
12470      whole_archive_flag_spec_CXX=
12471    fi
12472  else
12473    with_gnu_ld=no
12474    wlarc=
12475
12476    # A generic and very simple default shared library creation
12477    # command for GNU C++ for the case where it uses the native
12478    # linker, instead of GNU ld.  If possible, this setting should
12479    # overridden to take advantage of the native linker features on
12480    # the platform it is being used on.
12481    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12482  fi
12483
12484  # Commands to make compiler produce verbose output that lists
12485  # what "hidden" libraries, object files and flags are used when
12486  # linking a shared library.
12487  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12488
12489else
12490  GXX=no
12491  with_gnu_ld=no
12492  wlarc=
12493fi
12494
12495# PORTME: fill in a description of your system's C++ link characteristics
12496{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12497echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12498ld_shlibs_CXX=yes
12499case $host_os in
12500  aix3*)
12501    # FIXME: insert proper C++ library support
12502    ld_shlibs_CXX=no
12503    ;;
12504  aix4* | aix5*)
12505    if test "$host_cpu" = ia64; then
12506      # On IA64, the linker does run time linking by default, so we don't
12507      # have to do anything special.
12508      aix_use_runtimelinking=no
12509      exp_sym_flag='-Bexport'
12510      no_entry_flag=""
12511    else
12512      aix_use_runtimelinking=no
12513
12514      # Test if we are trying to use run time linking or normal
12515      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12516      # need to do runtime linking.
12517      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12518	for ld_flag in $LDFLAGS; do
12519	  case $ld_flag in
12520	  *-brtl*)
12521	    aix_use_runtimelinking=yes
12522	    break
12523	    ;;
12524	  esac
12525	done
12526	;;
12527      esac
12528
12529      exp_sym_flag='-bexport'
12530      no_entry_flag='-bnoentry'
12531    fi
12532
12533    # When large executables or shared objects are built, AIX ld can
12534    # have problems creating the table of contents.  If linking a library
12535    # or program results in "error TOC overflow" add -mminimal-toc to
12536    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12537    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12538
12539    archive_cmds_CXX=''
12540    hardcode_direct_CXX=yes
12541    hardcode_libdir_separator_CXX=':'
12542    link_all_deplibs_CXX=yes
12543
12544    if test "$GXX" = yes; then
12545      case $host_os in aix4.[012]|aix4.[012].*)
12546      # We only want to do this on AIX 4.2 and lower, the check
12547      # below for broken collect2 doesn't work under 4.3+
12548	collect2name=`${CC} -print-prog-name=collect2`
12549	if test -f "$collect2name" && \
12550	   strings "$collect2name" | grep resolve_lib_name >/dev/null
12551	then
12552	  # We have reworked collect2
12553	  hardcode_direct_CXX=yes
12554	else
12555	  # We have old collect2
12556	  hardcode_direct_CXX=unsupported
12557	  # It fails to find uninstalled libraries when the uninstalled
12558	  # path is not listed in the libpath.  Setting hardcode_minus_L
12559	  # to unsupported forces relinking
12560	  hardcode_minus_L_CXX=yes
12561	  hardcode_libdir_flag_spec_CXX='-L$libdir'
12562	  hardcode_libdir_separator_CXX=
12563	fi
12564	;;
12565      esac
12566      shared_flag='-shared'
12567      if test "$aix_use_runtimelinking" = yes; then
12568	shared_flag="$shared_flag "'${wl}-G'
12569      fi
12570    else
12571      # not using gcc
12572      if test "$host_cpu" = ia64; then
12573	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12574	# chokes on -Wl,-G. The following line is correct:
12575	shared_flag='-G'
12576      else
12577	if test "$aix_use_runtimelinking" = yes; then
12578	  shared_flag='${wl}-G'
12579	else
12580	  shared_flag='${wl}-bM:SRE'
12581	fi
12582      fi
12583    fi
12584
12585    # It seems that -bexpall does not export symbols beginning with
12586    # underscore (_), so it is better to generate a list of symbols to export.
12587    always_export_symbols_CXX=yes
12588    if test "$aix_use_runtimelinking" = yes; then
12589      # Warning - without using the other runtime loading flags (-brtl),
12590      # -berok will link without error, but may produce a broken library.
12591      allow_undefined_flag_CXX='-berok'
12592      # Determine the default libpath from the value encoded in an empty executable.
12593      cat >conftest.$ac_ext <<_ACEOF
12594/* confdefs.h.  */
12595_ACEOF
12596cat confdefs.h >>conftest.$ac_ext
12597cat >>conftest.$ac_ext <<_ACEOF
12598/* end confdefs.h.  */
12599
12600int
12601main ()
12602{
12603
12604  ;
12605  return 0;
12606}
12607_ACEOF
12608rm -f conftest.$ac_objext conftest$ac_exeext
12609if { (ac_try="$ac_link"
12610case "(($ac_try" in
12611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612  *) ac_try_echo=$ac_try;;
12613esac
12614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615  (eval "$ac_link") 2>conftest.er1
12616  ac_status=$?
12617  grep -v '^ *+' conftest.er1 >conftest.err
12618  rm -f conftest.er1
12619  cat conftest.err >&5
12620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621  (exit $ac_status); } && {
12622	 test -z "$ac_cxx_werror_flag" ||
12623	 test ! -s conftest.err
12624       } && test -s conftest$ac_exeext &&
12625       $as_test_x conftest$ac_exeext; then
12626
12627aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12628}'`
12629# Check for a 64-bit object if we didn't find anything.
12630if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12631}'`; fi
12632else
12633  echo "$as_me: failed program was:" >&5
12634sed 's/^/| /' conftest.$ac_ext >&5
12635
12636
12637fi
12638
12639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12640      conftest$ac_exeext conftest.$ac_ext
12641if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12642
12643      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12644
12645      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"
12646     else
12647      if test "$host_cpu" = ia64; then
12648	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12649	allow_undefined_flag_CXX="-z nodefs"
12650	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"
12651      else
12652	# Determine the default libpath from the value encoded in an empty executable.
12653	cat >conftest.$ac_ext <<_ACEOF
12654/* confdefs.h.  */
12655_ACEOF
12656cat confdefs.h >>conftest.$ac_ext
12657cat >>conftest.$ac_ext <<_ACEOF
12658/* end confdefs.h.  */
12659
12660int
12661main ()
12662{
12663
12664  ;
12665  return 0;
12666}
12667_ACEOF
12668rm -f conftest.$ac_objext conftest$ac_exeext
12669if { (ac_try="$ac_link"
12670case "(($ac_try" in
12671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12672  *) ac_try_echo=$ac_try;;
12673esac
12674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12675  (eval "$ac_link") 2>conftest.er1
12676  ac_status=$?
12677  grep -v '^ *+' conftest.er1 >conftest.err
12678  rm -f conftest.er1
12679  cat conftest.err >&5
12680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681  (exit $ac_status); } && {
12682	 test -z "$ac_cxx_werror_flag" ||
12683	 test ! -s conftest.err
12684       } && test -s conftest$ac_exeext &&
12685       $as_test_x conftest$ac_exeext; then
12686
12687aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12688}'`
12689# Check for a 64-bit object if we didn't find anything.
12690if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12691}'`; fi
12692else
12693  echo "$as_me: failed program was:" >&5
12694sed 's/^/| /' conftest.$ac_ext >&5
12695
12696
12697fi
12698
12699rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12700      conftest$ac_exeext conftest.$ac_ext
12701if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12702
12703	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12704	# Warning - without using the other run time loading flags,
12705	# -berok will link without error, but may produce a broken library.
12706	no_undefined_flag_CXX=' ${wl}-bernotok'
12707	allow_undefined_flag_CXX=' ${wl}-berok'
12708	# Exported symbols can be pulled into shared objects from archives
12709	whole_archive_flag_spec_CXX='$convenience'
12710	archive_cmds_need_lc_CXX=yes
12711	# This is similar to how AIX traditionally builds its shared libraries.
12712	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'
12713      fi
12714    fi
12715    ;;
12716
12717  beos*)
12718    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12719      allow_undefined_flag_CXX=unsupported
12720      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12721      # support --undefined.  This deserves some investigation.  FIXME
12722      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12723    else
12724      ld_shlibs_CXX=no
12725    fi
12726    ;;
12727
12728  chorus*)
12729    case $cc_basename in
12730      *)
12731	# FIXME: insert proper C++ library support
12732	ld_shlibs_CXX=no
12733	;;
12734    esac
12735    ;;
12736
12737  cygwin* | mingw* | pw32*)
12738    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12739    # as there is no search path for DLLs.
12740    hardcode_libdir_flag_spec_CXX='-L$libdir'
12741    allow_undefined_flag_CXX=unsupported
12742    always_export_symbols_CXX=no
12743    enable_shared_with_static_runtimes_CXX=yes
12744
12745    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12746      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'
12747      # If the export-symbols file already is a .def file (1st line
12748      # is EXPORTS), use it as is; otherwise, prepend...
12749      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12750	cp $export_symbols $output_objdir/$soname.def;
12751      else
12752	echo EXPORTS > $output_objdir/$soname.def;
12753	cat $export_symbols >> $output_objdir/$soname.def;
12754      fi~
12755      $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'
12756    else
12757      ld_shlibs_CXX=no
12758    fi
12759  ;;
12760      darwin* | rhapsody*)
12761        case $host_os in
12762        rhapsody* | darwin1.[012])
12763         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12764         ;;
12765       *) # Darwin 1.3 on
12766         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12767           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12768         else
12769           case ${MACOSX_DEPLOYMENT_TARGET} in
12770             10.[012])
12771               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12772               ;;
12773             10.*)
12774               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12775               ;;
12776           esac
12777         fi
12778         ;;
12779        esac
12780      archive_cmds_need_lc_CXX=no
12781      hardcode_direct_CXX=no
12782      hardcode_automatic_CXX=yes
12783      hardcode_shlibpath_var_CXX=unsupported
12784      whole_archive_flag_spec_CXX=''
12785      link_all_deplibs_CXX=yes
12786
12787    if test "$GXX" = yes ; then
12788      lt_int_apple_cc_single_mod=no
12789      output_verbose_link_cmd='echo'
12790      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12791       lt_int_apple_cc_single_mod=yes
12792      fi
12793      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12794       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12795      else
12796          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'
12797        fi
12798        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12799        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12800          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12801            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}'
12802          else
12803            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}'
12804          fi
12805            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}'
12806      else
12807      case $cc_basename in
12808        xlc*)
12809         output_verbose_link_cmd='echo'
12810          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12811          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12812          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12813          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12814          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}'
12815          ;;
12816       *)
12817         ld_shlibs_CXX=no
12818          ;;
12819      esac
12820      fi
12821        ;;
12822
12823  dgux*)
12824    case $cc_basename in
12825      ec++*)
12826	# FIXME: insert proper C++ library support
12827	ld_shlibs_CXX=no
12828	;;
12829      ghcx*)
12830	# Green Hills C++ Compiler
12831	# FIXME: insert proper C++ library support
12832	ld_shlibs_CXX=no
12833	;;
12834      *)
12835	# FIXME: insert proper C++ library support
12836	ld_shlibs_CXX=no
12837	;;
12838    esac
12839    ;;
12840  freebsd[12]*)
12841    # C++ shared libraries reported to be fairly broken before switch to ELF
12842    ld_shlibs_CXX=no
12843    ;;
12844  freebsd-elf*)
12845    archive_cmds_need_lc_CXX=no
12846    ;;
12847  freebsd* | kfreebsd*-gnu | dragonfly*)
12848    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12849    # conventions
12850    ld_shlibs_CXX=yes
12851    ;;
12852  gnu*)
12853    ;;
12854  hpux9*)
12855    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12856    hardcode_libdir_separator_CXX=:
12857    export_dynamic_flag_spec_CXX='${wl}-E'
12858    hardcode_direct_CXX=yes
12859    hardcode_minus_L_CXX=yes # Not in the search PATH,
12860				# but as the default
12861				# location of the library.
12862
12863    case $cc_basename in
12864    CC*)
12865      # FIXME: insert proper C++ library support
12866      ld_shlibs_CXX=no
12867      ;;
12868    aCC*)
12869      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'
12870      # Commands to make compiler produce verbose output that lists
12871      # what "hidden" libraries, object files and flags are used when
12872      # linking a shared library.
12873      #
12874      # There doesn't appear to be a way to prevent this compiler from
12875      # explicitly linking system object files so we need to strip them
12876      # from the output so that they don't get included in the library
12877      # dependencies.
12878      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'
12879      ;;
12880    *)
12881      if test "$GXX" = yes; then
12882        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'
12883      else
12884        # FIXME: insert proper C++ library support
12885        ld_shlibs_CXX=no
12886      fi
12887      ;;
12888    esac
12889    ;;
12890  hpux10*|hpux11*)
12891    if test $with_gnu_ld = no; then
12892      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12893      hardcode_libdir_separator_CXX=:
12894
12895      case $host_cpu in
12896      hppa*64*|ia64*)
12897	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12898        ;;
12899      *)
12900	export_dynamic_flag_spec_CXX='${wl}-E'
12901        ;;
12902      esac
12903    fi
12904    case $host_cpu in
12905    hppa*64*|ia64*)
12906      hardcode_direct_CXX=no
12907      hardcode_shlibpath_var_CXX=no
12908      ;;
12909    *)
12910      hardcode_direct_CXX=yes
12911      hardcode_minus_L_CXX=yes # Not in the search PATH,
12912					      # but as the default
12913					      # location of the library.
12914      ;;
12915    esac
12916
12917    case $cc_basename in
12918      CC*)
12919	# FIXME: insert proper C++ library support
12920	ld_shlibs_CXX=no
12921	;;
12922      aCC*)
12923	case $host_cpu in
12924	hppa*64*)
12925	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12926	  ;;
12927	ia64*)
12928	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12929	  ;;
12930	*)
12931	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12932	  ;;
12933	esac
12934	# Commands to make compiler produce verbose output that lists
12935	# what "hidden" libraries, object files and flags are used when
12936	# linking a shared library.
12937	#
12938	# There doesn't appear to be a way to prevent this compiler from
12939	# explicitly linking system object files so we need to strip them
12940	# from the output so that they don't get included in the library
12941	# dependencies.
12942	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'
12943	;;
12944      *)
12945	if test "$GXX" = yes; then
12946	  if test $with_gnu_ld = no; then
12947	    case $host_cpu in
12948	    hppa*64*)
12949	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12950	      ;;
12951	    ia64*)
12952	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12953	      ;;
12954	    *)
12955	      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'
12956	      ;;
12957	    esac
12958	  fi
12959	else
12960	  # FIXME: insert proper C++ library support
12961	  ld_shlibs_CXX=no
12962	fi
12963	;;
12964    esac
12965    ;;
12966  interix3*)
12967    hardcode_direct_CXX=no
12968    hardcode_shlibpath_var_CXX=no
12969    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12970    export_dynamic_flag_spec_CXX='${wl}-E'
12971    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12972    # Instead, shared libraries are loaded at an image base (0x10000000 by
12973    # default) and relocated if they conflict, which is a slow very memory
12974    # consuming and fragmenting process.  To avoid this, we pick a random,
12975    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12976    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12977    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'
12978    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'
12979    ;;
12980  irix5* | irix6*)
12981    case $cc_basename in
12982      CC*)
12983	# SGI C++
12984	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'
12985
12986	# Archives containing C++ object files must be created using
12987	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12988	# necessary to make sure instantiated templates are included
12989	# in the archive.
12990	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12991	;;
12992      *)
12993	if test "$GXX" = yes; then
12994	  if test "$with_gnu_ld" = no; then
12995	    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'
12996	  else
12997	    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'
12998	  fi
12999	fi
13000	link_all_deplibs_CXX=yes
13001	;;
13002    esac
13003    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13004    hardcode_libdir_separator_CXX=:
13005    ;;
13006  linux*)
13007    case $cc_basename in
13008      KCC*)
13009	# Kuck and Associates, Inc. (KAI) C++ Compiler
13010
13011	# KCC will only create a shared library if the output file
13012	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13013	# to its proper name (with version) after linking.
13014	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'
13015	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'
13016	# Commands to make compiler produce verbose output that lists
13017	# what "hidden" libraries, object files and flags are used when
13018	# linking a shared library.
13019	#
13020	# There doesn't appear to be a way to prevent this compiler from
13021	# explicitly linking system object files so we need to strip them
13022	# from the output so that they don't get included in the library
13023	# dependencies.
13024	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'
13025
13026	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13027	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13028
13029	# Archives containing C++ object files must be created using
13030	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13031	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13032	;;
13033      icpc*)
13034	# Intel C++
13035	with_gnu_ld=yes
13036	# version 8.0 and above of icpc choke on multiply defined symbols
13037	# if we add $predep_objects and $postdep_objects, however 7.1 and
13038	# earlier do not add the objects themselves.
13039	case `$CC -V 2>&1` in
13040	*"Version 7."*)
13041  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13042  	  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'
13043	  ;;
13044	*)  # Version 8.0 or newer
13045	  tmp_idyn=
13046	  case $host_cpu in
13047	    ia64*) tmp_idyn=' -i_dynamic';;
13048	  esac
13049  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13050	  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'
13051	  ;;
13052	esac
13053	archive_cmds_need_lc_CXX=no
13054	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13055	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13056	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13057	;;
13058      pgCC*)
13059        # Portland Group C++ compiler
13060	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13061  	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'
13062
13063	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13064	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13065	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'
13066        ;;
13067      cxx*)
13068	# Compaq C++
13069	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13070	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'
13071
13072	runpath_var=LD_RUN_PATH
13073	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13074	hardcode_libdir_separator_CXX=:
13075
13076	# Commands to make compiler produce verbose output that lists
13077	# what "hidden" libraries, object files and flags are used when
13078	# linking a shared library.
13079	#
13080	# There doesn't appear to be a way to prevent this compiler from
13081	# explicitly linking system object files so we need to strip them
13082	# from the output so that they don't get included in the library
13083	# dependencies.
13084	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'
13085	;;
13086      *)
13087	case `$CC -V 2>&1 | sed 5q` in
13088	*Sun\ C*)
13089	  # Sun C++ 5.9
13090	  no_undefined_flag_CXX=' -zdefs'
13091	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13092	  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'
13093	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13094	  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'
13095
13096	  # Not sure whether something based on
13097	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13098	  # would be better.
13099	  output_verbose_link_cmd='echo'
13100
13101	  # Archives containing C++ object files must be created using
13102	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13103	  # necessary to make sure instantiated templates are included
13104	  # in the archive.
13105	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13106	  ;;
13107	esac
13108	;;
13109    esac
13110    ;;
13111  lynxos*)
13112    # FIXME: insert proper C++ library support
13113    ld_shlibs_CXX=no
13114    ;;
13115  m88k*)
13116    # FIXME: insert proper C++ library support
13117    ld_shlibs_CXX=no
13118    ;;
13119  mvs*)
13120    case $cc_basename in
13121      cxx*)
13122	# FIXME: insert proper C++ library support
13123	ld_shlibs_CXX=no
13124	;;
13125      *)
13126	# FIXME: insert proper C++ library support
13127	ld_shlibs_CXX=no
13128	;;
13129    esac
13130    ;;
13131  netbsd*)
13132    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13133      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13134      wlarc=
13135      hardcode_libdir_flag_spec_CXX='-R$libdir'
13136      hardcode_direct_CXX=yes
13137      hardcode_shlibpath_var_CXX=no
13138    fi
13139    # Workaround some broken pre-1.5 toolchains
13140    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13141    ;;
13142  openbsd2*)
13143    # C++ shared libraries are fairly broken
13144    ld_shlibs_CXX=no
13145    ;;
13146  openbsd*)
13147    hardcode_direct_CXX=yes
13148    hardcode_shlibpath_var_CXX=no
13149    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13150    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13151    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13152      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13153      export_dynamic_flag_spec_CXX='${wl}-E'
13154      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13155    fi
13156    output_verbose_link_cmd='echo'
13157    ;;
13158  osf3*)
13159    case $cc_basename in
13160      KCC*)
13161	# Kuck and Associates, Inc. (KAI) C++ Compiler
13162
13163	# KCC will only create a shared library if the output file
13164	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13165	# to its proper name (with version) after linking.
13166	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'
13167
13168	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13169	hardcode_libdir_separator_CXX=:
13170
13171	# Archives containing C++ object files must be created using
13172	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13173	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13174
13175	;;
13176      RCC*)
13177	# Rational C++ 2.4.1
13178	# FIXME: insert proper C++ library support
13179	ld_shlibs_CXX=no
13180	;;
13181      cxx*)
13182	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13183	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'
13184
13185	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13186	hardcode_libdir_separator_CXX=:
13187
13188	# Commands to make compiler produce verbose output that lists
13189	# what "hidden" libraries, object files and flags are used when
13190	# linking a shared library.
13191	#
13192	# There doesn't appear to be a way to prevent this compiler from
13193	# explicitly linking system object files so we need to strip them
13194	# from the output so that they don't get included in the library
13195	# dependencies.
13196	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'
13197	;;
13198      *)
13199	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13200	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13201	  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'
13202
13203	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13204	  hardcode_libdir_separator_CXX=:
13205
13206	  # Commands to make compiler produce verbose output that lists
13207	  # what "hidden" libraries, object files and flags are used when
13208	  # linking a shared library.
13209	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13210
13211	else
13212	  # FIXME: insert proper C++ library support
13213	  ld_shlibs_CXX=no
13214	fi
13215	;;
13216    esac
13217    ;;
13218  osf4* | osf5*)
13219    case $cc_basename in
13220      KCC*)
13221	# Kuck and Associates, Inc. (KAI) C++ Compiler
13222
13223	# KCC will only create a shared library if the output file
13224	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13225	# to its proper name (with version) after linking.
13226	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'
13227
13228	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13229	hardcode_libdir_separator_CXX=:
13230
13231	# Archives containing C++ object files must be created using
13232	# the KAI C++ compiler.
13233	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13234	;;
13235      RCC*)
13236	# Rational C++ 2.4.1
13237	# FIXME: insert proper C++ library support
13238	ld_shlibs_CXX=no
13239	;;
13240      cxx*)
13241	allow_undefined_flag_CXX=' -expect_unresolved \*'
13242	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'
13243	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13244	  echo "-hidden">> $lib.exp~
13245	  $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~
13246	  $rm $lib.exp'
13247
13248	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13249	hardcode_libdir_separator_CXX=:
13250
13251	# Commands to make compiler produce verbose output that lists
13252	# what "hidden" libraries, object files and flags are used when
13253	# linking a shared library.
13254	#
13255	# There doesn't appear to be a way to prevent this compiler from
13256	# explicitly linking system object files so we need to strip them
13257	# from the output so that they don't get included in the library
13258	# dependencies.
13259	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'
13260	;;
13261      *)
13262	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13263	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13264	 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'
13265
13266	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13267	  hardcode_libdir_separator_CXX=:
13268
13269	  # Commands to make compiler produce verbose output that lists
13270	  # what "hidden" libraries, object files and flags are used when
13271	  # linking a shared library.
13272	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13273
13274	else
13275	  # FIXME: insert proper C++ library support
13276	  ld_shlibs_CXX=no
13277	fi
13278	;;
13279    esac
13280    ;;
13281  psos*)
13282    # FIXME: insert proper C++ library support
13283    ld_shlibs_CXX=no
13284    ;;
13285  sunos4*)
13286    case $cc_basename in
13287      CC*)
13288	# Sun C++ 4.x
13289	# FIXME: insert proper C++ library support
13290	ld_shlibs_CXX=no
13291	;;
13292      lcc*)
13293	# Lucid
13294	# FIXME: insert proper C++ library support
13295	ld_shlibs_CXX=no
13296	;;
13297      *)
13298	# FIXME: insert proper C++ library support
13299	ld_shlibs_CXX=no
13300	;;
13301    esac
13302    ;;
13303  solaris*)
13304    case $cc_basename in
13305      CC*)
13306	# Sun C++ 4.2, 5.x and Centerline C++
13307        archive_cmds_need_lc_CXX=yes
13308	no_undefined_flag_CXX=' -zdefs'
13309	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13310	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13311	$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'
13312
13313	hardcode_libdir_flag_spec_CXX='-R$libdir'
13314	hardcode_shlibpath_var_CXX=no
13315	case $host_os in
13316	  solaris2.[0-5] | solaris2.[0-5].*) ;;
13317	  *)
13318	    # The C++ compiler is used as linker so we must use $wl
13319	    # flag to pass the commands to the underlying system
13320	    # linker. We must also pass each convience library through
13321	    # to the system linker between allextract/defaultextract.
13322	    # The C++ compiler will combine linker options so we
13323	    # cannot just pass the convience library names through
13324	    # without $wl.
13325	    # Supported since Solaris 2.6 (maybe 2.5.1?)
13326	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13327	    ;;
13328	esac
13329	link_all_deplibs_CXX=yes
13330
13331	output_verbose_link_cmd='echo'
13332
13333	# Archives containing C++ object files must be created using
13334	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
13335	# necessary to make sure instantiated templates are included
13336	# in the archive.
13337	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13338	;;
13339      gcx*)
13340	# Green Hills C++ Compiler
13341	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13342
13343	# The C++ compiler must be used to create the archive.
13344	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13345	;;
13346      *)
13347	# GNU C++ compiler with Solaris linker
13348	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13349	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13350	  if $CC --version | grep -v '^2\.7' > /dev/null; then
13351	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13352	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13353		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13354
13355	    # Commands to make compiler produce verbose output that lists
13356	    # what "hidden" libraries, object files and flags are used when
13357	    # linking a shared library.
13358	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13359	  else
13360	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
13361	    # platform.
13362	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13363	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13364		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13365
13366	    # Commands to make compiler produce verbose output that lists
13367	    # what "hidden" libraries, object files and flags are used when
13368	    # linking a shared library.
13369	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13370	  fi
13371
13372	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13373	fi
13374	;;
13375    esac
13376    ;;
13377  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13378    no_undefined_flag_CXX='${wl}-z,text'
13379    archive_cmds_need_lc_CXX=no
13380    hardcode_shlibpath_var_CXX=no
13381    runpath_var='LD_RUN_PATH'
13382
13383    case $cc_basename in
13384      CC*)
13385	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13386	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13387	;;
13388      *)
13389	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13390	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13391	;;
13392    esac
13393    ;;
13394  sysv5* | sco3.2v5* | sco5v6*)
13395    # Note: We can NOT use -z defs as we might desire, because we do not
13396    # link with -lc, and that would cause any symbols used from libc to
13397    # always be unresolved, which means just about no library would
13398    # ever link correctly.  If we're not using GNU ld we use -z text
13399    # though, which does catch some bad symbols but isn't as heavy-handed
13400    # as -z defs.
13401    # For security reasons, it is highly recommended that you always
13402    # use absolute paths for naming shared libraries, and exclude the
13403    # DT_RUNPATH tag from executables and libraries.  But doing so
13404    # requires that you compile everything twice, which is a pain.
13405    # So that behaviour is only enabled if SCOABSPATH is set to a
13406    # non-empty value in the environment.  Most likely only useful for
13407    # creating official distributions of packages.
13408    # This is a hack until libtool officially supports absolute path
13409    # names for shared libraries.
13410    no_undefined_flag_CXX='${wl}-z,text'
13411    allow_undefined_flag_CXX='${wl}-z,nodefs'
13412    archive_cmds_need_lc_CXX=no
13413    hardcode_shlibpath_var_CXX=no
13414    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13415    hardcode_libdir_separator_CXX=':'
13416    link_all_deplibs_CXX=yes
13417    export_dynamic_flag_spec_CXX='${wl}-Bexport'
13418    runpath_var='LD_RUN_PATH'
13419
13420    case $cc_basename in
13421      CC*)
13422	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13423	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13424	;;
13425      *)
13426	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13427	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13428	;;
13429    esac
13430    ;;
13431  tandem*)
13432    case $cc_basename in
13433      NCC*)
13434	# NonStop-UX NCC 3.20
13435	# FIXME: insert proper C++ library support
13436	ld_shlibs_CXX=no
13437	;;
13438      *)
13439	# FIXME: insert proper C++ library support
13440	ld_shlibs_CXX=no
13441	;;
13442    esac
13443    ;;
13444  vxworks*)
13445    # FIXME: insert proper C++ library support
13446    ld_shlibs_CXX=no
13447    ;;
13448  *)
13449    # FIXME: insert proper C++ library support
13450    ld_shlibs_CXX=no
13451    ;;
13452esac
13453{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13454echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13455test "$ld_shlibs_CXX" = no && can_build_shared=no
13456
13457GCC_CXX="$GXX"
13458LD_CXX="$LD"
13459
13460## CAVEAT EMPTOR:
13461## There is no encapsulation within the following macros, do not change
13462## the running order or otherwise move them around unless you know exactly
13463## what you are doing...
13464
13465cat > conftest.$ac_ext <<EOF
13466class Foo
13467{
13468public:
13469  Foo (void) { a = 0; }
13470private:
13471  int a;
13472};
13473EOF
13474
13475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13476  (eval $ac_compile) 2>&5
13477  ac_status=$?
13478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479  (exit $ac_status); }; then
13480  # Parse the compiler output and extract the necessary
13481  # objects, libraries and library flags.
13482
13483  # Sentinel used to keep track of whether or not we are before
13484  # the conftest object file.
13485  pre_test_object_deps_done=no
13486
13487  # The `*' in the case matches for architectures that use `case' in
13488  # $output_verbose_cmd can trigger glob expansion during the loop
13489  # eval without this substitution.
13490  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13491
13492  for p in `eval $output_verbose_link_cmd`; do
13493    case $p in
13494
13495    -L* | -R* | -l*)
13496       # Some compilers place space between "-{L,R}" and the path.
13497       # Remove the space.
13498       if test $p = "-L" \
13499	  || test $p = "-R"; then
13500	 prev=$p
13501	 continue
13502       else
13503	 prev=
13504       fi
13505
13506       if test "$pre_test_object_deps_done" = no; then
13507	 case $p in
13508	 -L* | -R*)
13509	   # Internal compiler library paths should come after those
13510	   # provided the user.  The postdeps already come after the
13511	   # user supplied libs so there is no need to process them.
13512	   if test -z "$compiler_lib_search_path_CXX"; then
13513	     compiler_lib_search_path_CXX="${prev}${p}"
13514	   else
13515	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13516	   fi
13517	   ;;
13518	 # The "-l" case would never come before the object being
13519	 # linked, so don't bother handling this case.
13520	 esac
13521       else
13522	 if test -z "$postdeps_CXX"; then
13523	   postdeps_CXX="${prev}${p}"
13524	 else
13525	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13526	 fi
13527       fi
13528       ;;
13529
13530    *.$objext)
13531       # This assumes that the test object file only shows up
13532       # once in the compiler output.
13533       if test "$p" = "conftest.$objext"; then
13534	 pre_test_object_deps_done=yes
13535	 continue
13536       fi
13537
13538       if test "$pre_test_object_deps_done" = no; then
13539	 if test -z "$predep_objects_CXX"; then
13540	   predep_objects_CXX="$p"
13541	 else
13542	   predep_objects_CXX="$predep_objects_CXX $p"
13543	 fi
13544       else
13545	 if test -z "$postdep_objects_CXX"; then
13546	   postdep_objects_CXX="$p"
13547	 else
13548	   postdep_objects_CXX="$postdep_objects_CXX $p"
13549	 fi
13550       fi
13551       ;;
13552
13553    *) ;; # Ignore the rest.
13554
13555    esac
13556  done
13557
13558  # Clean up.
13559  rm -f a.out a.exe
13560else
13561  echo "libtool.m4: error: problem compiling CXX test program"
13562fi
13563
13564$rm -f confest.$objext
13565
13566# PORTME: override above test on systems where it is broken
13567case $host_os in
13568interix3*)
13569  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13570  # hack all around it, let's just trust "g++" to DTRT.
13571  predep_objects_CXX=
13572  postdep_objects_CXX=
13573  postdeps_CXX=
13574  ;;
13575
13576linux*)
13577  case `$CC -V 2>&1 | sed 5q` in
13578  *Sun\ C*)
13579    # Sun C++ 5.9
13580    postdeps_CXX='-lCstd -lCrun'
13581    ;;
13582  esac
13583  ;;
13584
13585solaris*)
13586  case $cc_basename in
13587  CC*)
13588    # Adding this requires a known-good setup of shared libraries for
13589    # Sun compiler versions before 5.6, else PIC objects from an old
13590    # archive will be linked into the output, leading to subtle bugs.
13591    postdeps_CXX='-lCstd -lCrun'
13592    ;;
13593  esac
13594  ;;
13595esac
13596
13597
13598case " $postdeps_CXX " in
13599*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13600esac
13601
13602lt_prog_compiler_wl_CXX=
13603lt_prog_compiler_pic_CXX=
13604lt_prog_compiler_static_CXX=
13605
13606{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13607echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13608
13609  # C++ specific cases for pic, static, wl, etc.
13610  if test "$GXX" = yes; then
13611    lt_prog_compiler_wl_CXX='-Wl,'
13612    lt_prog_compiler_static_CXX='-static'
13613
13614    case $host_os in
13615    aix*)
13616      # All AIX code is PIC.
13617      if test "$host_cpu" = ia64; then
13618	# AIX 5 now supports IA64 processor
13619	lt_prog_compiler_static_CXX='-Bstatic'
13620      fi
13621      ;;
13622    amigaos*)
13623      # FIXME: we need at least 68020 code to build shared libraries, but
13624      # adding the `-m68020' flag to GCC prevents building anything better,
13625      # like `-m68040'.
13626      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13627      ;;
13628    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13629      # PIC is the default for these OSes.
13630      ;;
13631    mingw* | cygwin* | os2* | pw32*)
13632      # This hack is so that the source file can tell whether it is being
13633      # built for inclusion in a dll (and should export symbols for example).
13634      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13635      # (--disable-auto-import) libraries
13636      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13637      ;;
13638    darwin* | rhapsody*)
13639      # PIC is the default on this platform
13640      # Common symbols not allowed in MH_DYLIB files
13641      lt_prog_compiler_pic_CXX='-fno-common'
13642      ;;
13643    *djgpp*)
13644      # DJGPP does not support shared libraries at all
13645      lt_prog_compiler_pic_CXX=
13646      ;;
13647    interix3*)
13648      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13649      # Instead, we relocate shared libraries at runtime.
13650      ;;
13651    sysv4*MP*)
13652      if test -d /usr/nec; then
13653	lt_prog_compiler_pic_CXX=-Kconform_pic
13654      fi
13655      ;;
13656    hpux*)
13657      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13658      # not for PA HP-UX.
13659      case $host_cpu in
13660      hppa*64*|ia64*)
13661	;;
13662      *)
13663	lt_prog_compiler_pic_CXX='-fPIC'
13664	;;
13665      esac
13666      ;;
13667    *)
13668      lt_prog_compiler_pic_CXX='-fPIC'
13669      ;;
13670    esac
13671  else
13672    case $host_os in
13673      aix4* | aix5*)
13674	# All AIX code is PIC.
13675	if test "$host_cpu" = ia64; then
13676	  # AIX 5 now supports IA64 processor
13677	  lt_prog_compiler_static_CXX='-Bstatic'
13678	else
13679	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13680	fi
13681	;;
13682      chorus*)
13683	case $cc_basename in
13684	cxch68*)
13685	  # Green Hills C++ Compiler
13686	  # _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"
13687	  ;;
13688	esac
13689	;;
13690       darwin*)
13691         # PIC is the default on this platform
13692         # Common symbols not allowed in MH_DYLIB files
13693         case $cc_basename in
13694           xlc*)
13695           lt_prog_compiler_pic_CXX='-qnocommon'
13696           lt_prog_compiler_wl_CXX='-Wl,'
13697           ;;
13698         esac
13699       ;;
13700      dgux*)
13701	case $cc_basename in
13702	  ec++*)
13703	    lt_prog_compiler_pic_CXX='-KPIC'
13704	    ;;
13705	  ghcx*)
13706	    # Green Hills C++ Compiler
13707	    lt_prog_compiler_pic_CXX='-pic'
13708	    ;;
13709	  *)
13710	    ;;
13711	esac
13712	;;
13713      freebsd* | kfreebsd*-gnu | dragonfly*)
13714	# FreeBSD uses GNU C++
13715	;;
13716      hpux9* | hpux10* | hpux11*)
13717	case $cc_basename in
13718	  CC*)
13719	    lt_prog_compiler_wl_CXX='-Wl,'
13720	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13721	    if test "$host_cpu" != ia64; then
13722	      lt_prog_compiler_pic_CXX='+Z'
13723	    fi
13724	    ;;
13725	  aCC*)
13726	    lt_prog_compiler_wl_CXX='-Wl,'
13727	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13728	    case $host_cpu in
13729	    hppa*64*|ia64*)
13730	      # +Z the default
13731	      ;;
13732	    *)
13733	      lt_prog_compiler_pic_CXX='+Z'
13734	      ;;
13735	    esac
13736	    ;;
13737	  *)
13738	    ;;
13739	esac
13740	;;
13741      interix*)
13742	# This is c89, which is MS Visual C++ (no shared libs)
13743	# Anyone wants to do a port?
13744	;;
13745      irix5* | irix6* | nonstopux*)
13746	case $cc_basename in
13747	  CC*)
13748	    lt_prog_compiler_wl_CXX='-Wl,'
13749	    lt_prog_compiler_static_CXX='-non_shared'
13750	    # CC pic flag -KPIC is the default.
13751	    ;;
13752	  *)
13753	    ;;
13754	esac
13755	;;
13756      linux*)
13757	case $cc_basename in
13758	  KCC*)
13759	    # KAI C++ Compiler
13760	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13761	    lt_prog_compiler_pic_CXX='-fPIC'
13762	    ;;
13763	  icpc* | ecpc*)
13764	    # Intel C++
13765	    lt_prog_compiler_wl_CXX='-Wl,'
13766	    lt_prog_compiler_pic_CXX='-KPIC'
13767	    lt_prog_compiler_static_CXX='-static'
13768	    ;;
13769	  pgCC*)
13770	    # Portland Group C++ compiler.
13771	    lt_prog_compiler_wl_CXX='-Wl,'
13772	    lt_prog_compiler_pic_CXX='-fpic'
13773	    lt_prog_compiler_static_CXX='-Bstatic'
13774	    ;;
13775	  cxx*)
13776	    # Compaq C++
13777	    # Make sure the PIC flag is empty.  It appears that all Alpha
13778	    # Linux and Compaq Tru64 Unix objects are PIC.
13779	    lt_prog_compiler_pic_CXX=
13780	    lt_prog_compiler_static_CXX='-non_shared'
13781	    ;;
13782	  *)
13783	    case `$CC -V 2>&1 | sed 5q` in
13784	    *Sun\ C*)
13785	      # Sun C++ 5.9
13786	      lt_prog_compiler_pic_CXX='-KPIC'
13787	      lt_prog_compiler_static_CXX='-Bstatic'
13788	      lt_prog_compiler_wl_CXX='-Qoption ld '
13789	      ;;
13790	    esac
13791	    ;;
13792	esac
13793	;;
13794      lynxos*)
13795	;;
13796      m88k*)
13797	;;
13798      mvs*)
13799	case $cc_basename in
13800	  cxx*)
13801	    lt_prog_compiler_pic_CXX='-W c,exportall'
13802	    ;;
13803	  *)
13804	    ;;
13805	esac
13806	;;
13807      netbsd*)
13808	;;
13809      osf3* | osf4* | osf5*)
13810	case $cc_basename in
13811	  KCC*)
13812	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13813	    ;;
13814	  RCC*)
13815	    # Rational C++ 2.4.1
13816	    lt_prog_compiler_pic_CXX='-pic'
13817	    ;;
13818	  cxx*)
13819	    # Digital/Compaq C++
13820	    lt_prog_compiler_wl_CXX='-Wl,'
13821	    # Make sure the PIC flag is empty.  It appears that all Alpha
13822	    # Linux and Compaq Tru64 Unix objects are PIC.
13823	    lt_prog_compiler_pic_CXX=
13824	    lt_prog_compiler_static_CXX='-non_shared'
13825	    ;;
13826	  *)
13827	    ;;
13828	esac
13829	;;
13830      psos*)
13831	;;
13832      solaris*)
13833	case $cc_basename in
13834	  CC*)
13835	    # Sun C++ 4.2, 5.x and Centerline C++
13836	    lt_prog_compiler_pic_CXX='-KPIC'
13837	    lt_prog_compiler_static_CXX='-Bstatic'
13838	    lt_prog_compiler_wl_CXX='-Qoption ld '
13839	    ;;
13840	  gcx*)
13841	    # Green Hills C++ Compiler
13842	    lt_prog_compiler_pic_CXX='-PIC'
13843	    ;;
13844	  *)
13845	    ;;
13846	esac
13847	;;
13848      sunos4*)
13849	case $cc_basename in
13850	  CC*)
13851	    # Sun C++ 4.x
13852	    lt_prog_compiler_pic_CXX='-pic'
13853	    lt_prog_compiler_static_CXX='-Bstatic'
13854	    ;;
13855	  lcc*)
13856	    # Lucid
13857	    lt_prog_compiler_pic_CXX='-pic'
13858	    ;;
13859	  *)
13860	    ;;
13861	esac
13862	;;
13863      tandem*)
13864	case $cc_basename in
13865	  NCC*)
13866	    # NonStop-UX NCC 3.20
13867	    lt_prog_compiler_pic_CXX='-KPIC'
13868	    ;;
13869	  *)
13870	    ;;
13871	esac
13872	;;
13873      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13874	case $cc_basename in
13875	  CC*)
13876	    lt_prog_compiler_wl_CXX='-Wl,'
13877	    lt_prog_compiler_pic_CXX='-KPIC'
13878	    lt_prog_compiler_static_CXX='-Bstatic'
13879	    ;;
13880	esac
13881	;;
13882      vxworks*)
13883	;;
13884      *)
13885	lt_prog_compiler_can_build_shared_CXX=no
13886	;;
13887    esac
13888  fi
13889
13890{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13891echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13892
13893#
13894# Check to make sure the PIC flag actually works.
13895#
13896if test -n "$lt_prog_compiler_pic_CXX"; then
13897
13898{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13899echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13900if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13901  echo $ECHO_N "(cached) $ECHO_C" >&6
13902else
13903  lt_prog_compiler_pic_works_CXX=no
13904  ac_outfile=conftest.$ac_objext
13905   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13906   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13907   # Insert the option either (1) after the last *FLAGS variable, or
13908   # (2) before a word containing "conftest.", or (3) at the end.
13909   # Note that $ac_compile itself does not contain backslashes and begins
13910   # with a dollar sign (not a hyphen), so the echo should work correctly.
13911   # The option is referenced via a variable to avoid confusing sed.
13912   lt_compile=`echo "$ac_compile" | $SED \
13913   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13914   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13915   -e 's:$: $lt_compiler_flag:'`
13916   (eval echo "\"\$as_me:13916: $lt_compile\"" >&5)
13917   (eval "$lt_compile" 2>conftest.err)
13918   ac_status=$?
13919   cat conftest.err >&5
13920   echo "$as_me:13920: \$? = $ac_status" >&5
13921   if (exit $ac_status) && test -s "$ac_outfile"; then
13922     # The compiler can only warn and ignore the option if not recognized
13923     # So say no if there are warnings other than the usual output.
13924     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13925     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13926     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13927       lt_prog_compiler_pic_works_CXX=yes
13928     fi
13929   fi
13930   $rm conftest*
13931
13932fi
13933{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13934echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13935
13936if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13937    case $lt_prog_compiler_pic_CXX in
13938     "" | " "*) ;;
13939     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13940     esac
13941else
13942    lt_prog_compiler_pic_CXX=
13943     lt_prog_compiler_can_build_shared_CXX=no
13944fi
13945
13946fi
13947case $host_os in
13948  # For platforms which do not support PIC, -DPIC is meaningless:
13949  *djgpp*)
13950    lt_prog_compiler_pic_CXX=
13951    ;;
13952  *)
13953    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13954    ;;
13955esac
13956
13957#
13958# Check to make sure the static flag actually works.
13959#
13960wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13961{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13962echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13963if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13964  echo $ECHO_N "(cached) $ECHO_C" >&6
13965else
13966  lt_prog_compiler_static_works_CXX=no
13967   save_LDFLAGS="$LDFLAGS"
13968   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13969   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13970   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13971     # The linker can only warn and ignore the option if not recognized
13972     # So say no if there are warnings
13973     if test -s conftest.err; then
13974       # Append any errors to the config.log.
13975       cat conftest.err 1>&5
13976       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13977       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13978       if diff conftest.exp conftest.er2 >/dev/null; then
13979         lt_prog_compiler_static_works_CXX=yes
13980       fi
13981     else
13982       lt_prog_compiler_static_works_CXX=yes
13983     fi
13984   fi
13985   $rm conftest*
13986   LDFLAGS="$save_LDFLAGS"
13987
13988fi
13989{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13990echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13991
13992if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13993    :
13994else
13995    lt_prog_compiler_static_CXX=
13996fi
13997
13998
13999{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14000echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14001if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14002  echo $ECHO_N "(cached) $ECHO_C" >&6
14003else
14004  lt_cv_prog_compiler_c_o_CXX=no
14005   $rm -r conftest 2>/dev/null
14006   mkdir conftest
14007   cd conftest
14008   mkdir out
14009   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14010
14011   lt_compiler_flag="-o out/conftest2.$ac_objext"
14012   # Insert the option either (1) after the last *FLAGS variable, or
14013   # (2) before a word containing "conftest.", or (3) at the end.
14014   # Note that $ac_compile itself does not contain backslashes and begins
14015   # with a dollar sign (not a hyphen), so the echo should work correctly.
14016   lt_compile=`echo "$ac_compile" | $SED \
14017   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14018   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14019   -e 's:$: $lt_compiler_flag:'`
14020   (eval echo "\"\$as_me:14020: $lt_compile\"" >&5)
14021   (eval "$lt_compile" 2>out/conftest.err)
14022   ac_status=$?
14023   cat out/conftest.err >&5
14024   echo "$as_me:14024: \$? = $ac_status" >&5
14025   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14026   then
14027     # The compiler can only warn and ignore the option if not recognized
14028     # So say no if there are warnings
14029     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14030     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14031     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14032       lt_cv_prog_compiler_c_o_CXX=yes
14033     fi
14034   fi
14035   chmod u+w . 2>&5
14036   $rm conftest*
14037   # SGI C++ compiler will create directory out/ii_files/ for
14038   # template instantiation
14039   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14040   $rm out/* && rmdir out
14041   cd ..
14042   rmdir conftest
14043   $rm conftest*
14044
14045fi
14046{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14047echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14048
14049
14050hard_links="nottested"
14051if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14052  # do not overwrite the value of need_locks provided by the user
14053  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14054echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14055  hard_links=yes
14056  $rm conftest*
14057  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14058  touch conftest.a
14059  ln conftest.a conftest.b 2>&5 || hard_links=no
14060  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14061  { echo "$as_me:$LINENO: result: $hard_links" >&5
14062echo "${ECHO_T}$hard_links" >&6; }
14063  if test "$hard_links" = no; then
14064    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14065echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14066    need_locks=warn
14067  fi
14068else
14069  need_locks=no
14070fi
14071
14072{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14073echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14074
14075  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14076  case $host_os in
14077  aix4* | aix5*)
14078    # If we're using GNU nm, then we don't want the "-C" option.
14079    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14080    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14081      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'
14082    else
14083      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'
14084    fi
14085    ;;
14086  pw32*)
14087    export_symbols_cmds_CXX="$ltdll_cmds"
14088  ;;
14089  cygwin* | mingw*)
14090    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'
14091  ;;
14092  *)
14093    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14094  ;;
14095  esac
14096
14097{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14098echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14099test "$ld_shlibs_CXX" = no && can_build_shared=no
14100
14101#
14102# Do we need to explicitly link libc?
14103#
14104case "x$archive_cmds_need_lc_CXX" in
14105x|xyes)
14106  # Assume -lc should be added
14107  archive_cmds_need_lc_CXX=yes
14108
14109  if test "$enable_shared" = yes && test "$GCC" = yes; then
14110    case $archive_cmds_CXX in
14111    *'~'*)
14112      # FIXME: we may have to deal with multi-command sequences.
14113      ;;
14114    '$CC '*)
14115      # Test whether the compiler implicitly links with -lc since on some
14116      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14117      # to ld, don't add -lc before -lgcc.
14118      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14119echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14120      $rm conftest*
14121      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14122
14123      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14124  (eval $ac_compile) 2>&5
14125  ac_status=$?
14126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127  (exit $ac_status); } 2>conftest.err; then
14128        soname=conftest
14129        lib=conftest
14130        libobjs=conftest.$ac_objext
14131        deplibs=
14132        wl=$lt_prog_compiler_wl_CXX
14133	pic_flag=$lt_prog_compiler_pic_CXX
14134        compiler_flags=-v
14135        linker_flags=-v
14136        verstring=
14137        output_objdir=.
14138        libname=conftest
14139        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14140        allow_undefined_flag_CXX=
14141        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14142  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14143  ac_status=$?
14144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145  (exit $ac_status); }
14146        then
14147	  archive_cmds_need_lc_CXX=no
14148        else
14149	  archive_cmds_need_lc_CXX=yes
14150        fi
14151        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14152      else
14153        cat conftest.err 1>&5
14154      fi
14155      $rm conftest*
14156      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14157echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14158      ;;
14159    esac
14160  fi
14161  ;;
14162esac
14163
14164{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14165echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14166library_names_spec=
14167libname_spec='lib$name'
14168soname_spec=
14169shrext_cmds=".so"
14170postinstall_cmds=
14171postuninstall_cmds=
14172finish_cmds=
14173finish_eval=
14174shlibpath_var=
14175shlibpath_overrides_runpath=unknown
14176version_type=none
14177dynamic_linker="$host_os ld.so"
14178sys_lib_dlsearch_path_spec="/lib /usr/lib"
14179if test "$GCC" = yes; then
14180  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14181  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14182    # if the path contains ";" then we assume it to be the separator
14183    # otherwise default to the standard path separator (i.e. ":") - it is
14184    # assumed that no part of a normal pathname contains ";" but that should
14185    # okay in the real world where ";" in dirpaths is itself problematic.
14186    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14187  else
14188    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14189  fi
14190else
14191  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14192fi
14193need_lib_prefix=unknown
14194hardcode_into_libs=no
14195
14196# when you set need_version to no, make sure it does not cause -set_version
14197# flags to be left without arguments
14198need_version=unknown
14199
14200case $host_os in
14201aix3*)
14202  version_type=linux
14203  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14204  shlibpath_var=LIBPATH
14205
14206  # AIX 3 has no versioning support, so we append a major version to the name.
14207  soname_spec='${libname}${release}${shared_ext}$major'
14208  ;;
14209
14210aix4* | aix5*)
14211  version_type=linux
14212  need_lib_prefix=no
14213  need_version=no
14214  hardcode_into_libs=yes
14215  if test "$host_cpu" = ia64; then
14216    # AIX 5 supports IA64
14217    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14218    shlibpath_var=LD_LIBRARY_PATH
14219  else
14220    # With GCC up to 2.95.x, collect2 would create an import file
14221    # for dependence libraries.  The import file would start with
14222    # the line `#! .'.  This would cause the generated library to
14223    # depend on `.', always an invalid library.  This was fixed in
14224    # development snapshots of GCC prior to 3.0.
14225    case $host_os in
14226      aix4 | aix4.[01] | aix4.[01].*)
14227      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14228	   echo ' yes '
14229	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14230	:
14231      else
14232	can_build_shared=no
14233      fi
14234      ;;
14235    esac
14236    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14237    # soname into executable. Probably we can add versioning support to
14238    # collect2, so additional links can be useful in future.
14239    if test "$aix_use_runtimelinking" = yes; then
14240      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14241      # instead of lib<name>.a to let people know that these are not
14242      # typical AIX shared libraries.
14243      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14244    else
14245      # We preserve .a as extension for shared libraries through AIX4.2
14246      # and later when we are not doing run time linking.
14247      library_names_spec='${libname}${release}.a $libname.a'
14248      soname_spec='${libname}${release}${shared_ext}$major'
14249    fi
14250    shlibpath_var=LIBPATH
14251  fi
14252  ;;
14253
14254amigaos*)
14255  library_names_spec='$libname.ixlibrary $libname.a'
14256  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14257  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'
14258  ;;
14259
14260beos*)
14261  library_names_spec='${libname}${shared_ext}'
14262  dynamic_linker="$host_os ld.so"
14263  shlibpath_var=LIBRARY_PATH
14264  ;;
14265
14266bsdi[45]*)
14267  version_type=linux
14268  need_version=no
14269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14270  soname_spec='${libname}${release}${shared_ext}$major'
14271  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14272  shlibpath_var=LD_LIBRARY_PATH
14273  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14274  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14275  # the default ld.so.conf also contains /usr/contrib/lib and
14276  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14277  # libtool to hard-code these into programs
14278  ;;
14279
14280cygwin* | mingw* | pw32*)
14281  version_type=windows
14282  shrext_cmds=".dll"
14283  need_version=no
14284  need_lib_prefix=no
14285
14286  case $GCC,$host_os in
14287  yes,cygwin* | yes,mingw* | yes,pw32*)
14288    library_names_spec='$libname.dll.a'
14289    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14290    postinstall_cmds='base_file=`basename \${file}`~
14291      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14292      dldir=$destdir/`dirname \$dlpath`~
14293      test -d \$dldir || mkdir -p \$dldir~
14294      $install_prog $dir/$dlname \$dldir/$dlname~
14295      chmod a+x \$dldir/$dlname'
14296    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14297      dlpath=$dir/\$dldll~
14298       $rm \$dlpath'
14299    shlibpath_overrides_runpath=yes
14300
14301    case $host_os in
14302    cygwin*)
14303      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14304      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14305      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14306      ;;
14307    mingw*)
14308      # MinGW DLLs use traditional 'lib' prefix
14309      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14310      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14311      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14312        # It is most probably a Windows format PATH printed by
14313        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14314        # path with ; separators, and with drive letters. We can handle the
14315        # drive letters (cygwin fileutils understands them), so leave them,
14316        # especially as we might pass files found there to a mingw objdump,
14317        # which wouldn't understand a cygwinified path. Ahh.
14318        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14319      else
14320        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14321      fi
14322      ;;
14323    pw32*)
14324      # pw32 DLLs use 'pw' prefix rather than 'lib'
14325      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14326      ;;
14327    esac
14328    ;;
14329
14330  *)
14331    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14332    ;;
14333  esac
14334  dynamic_linker='Win32 ld.exe'
14335  # FIXME: first we should search . and the directory the executable is in
14336  shlibpath_var=PATH
14337  ;;
14338
14339darwin* | rhapsody*)
14340  dynamic_linker="$host_os dyld"
14341  version_type=darwin
14342  need_lib_prefix=no
14343  need_version=no
14344  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14345  soname_spec='${libname}${release}${major}$shared_ext'
14346  shlibpath_overrides_runpath=yes
14347  shlibpath_var=DYLD_LIBRARY_PATH
14348  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14349  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14350  if test "$GCC" = yes; then
14351    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14352  else
14353    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14354  fi
14355  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14356  ;;
14357
14358dgux*)
14359  version_type=linux
14360  need_lib_prefix=no
14361  need_version=no
14362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14363  soname_spec='${libname}${release}${shared_ext}$major'
14364  shlibpath_var=LD_LIBRARY_PATH
14365  ;;
14366
14367freebsd1*)
14368  dynamic_linker=no
14369  ;;
14370
14371kfreebsd*-gnu)
14372  version_type=linux
14373  need_lib_prefix=no
14374  need_version=no
14375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14376  soname_spec='${libname}${release}${shared_ext}$major'
14377  shlibpath_var=LD_LIBRARY_PATH
14378  shlibpath_overrides_runpath=no
14379  hardcode_into_libs=yes
14380  dynamic_linker='GNU ld.so'
14381  ;;
14382
14383freebsd* | dragonfly*)
14384  # DragonFly does not have aout.  When/if they implement a new
14385  # versioning mechanism, adjust this.
14386  if test -x /usr/bin/objformat; then
14387    objformat=`/usr/bin/objformat`
14388  else
14389    case $host_os in
14390    freebsd[123]*) objformat=aout ;;
14391    *) objformat=elf ;;
14392    esac
14393  fi
14394  version_type=freebsd-$objformat
14395  case $version_type in
14396    freebsd-elf*)
14397      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14398      need_version=no
14399      need_lib_prefix=no
14400      ;;
14401    freebsd-*)
14402      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14403      need_version=yes
14404      ;;
14405  esac
14406  shlibpath_var=LD_LIBRARY_PATH
14407  case $host_os in
14408  freebsd2*)
14409    shlibpath_overrides_runpath=yes
14410    ;;
14411  freebsd3.[01]* | freebsdelf3.[01]*)
14412    shlibpath_overrides_runpath=yes
14413    hardcode_into_libs=yes
14414    ;;
14415  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14416  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14417    shlibpath_overrides_runpath=no
14418    hardcode_into_libs=yes
14419    ;;
14420  freebsd*) # from 4.6 on
14421    shlibpath_overrides_runpath=yes
14422    hardcode_into_libs=yes
14423    ;;
14424  esac
14425  ;;
14426
14427gnu*)
14428  version_type=linux
14429  need_lib_prefix=no
14430  need_version=no
14431  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14432  soname_spec='${libname}${release}${shared_ext}$major'
14433  shlibpath_var=LD_LIBRARY_PATH
14434  hardcode_into_libs=yes
14435  ;;
14436
14437hpux9* | hpux10* | hpux11*)
14438  # Give a soname corresponding to the major version so that dld.sl refuses to
14439  # link against other versions.
14440  version_type=sunos
14441  need_lib_prefix=no
14442  need_version=no
14443  case $host_cpu in
14444  ia64*)
14445    shrext_cmds='.so'
14446    hardcode_into_libs=yes
14447    dynamic_linker="$host_os dld.so"
14448    shlibpath_var=LD_LIBRARY_PATH
14449    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14450    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14451    soname_spec='${libname}${release}${shared_ext}$major'
14452    if test "X$HPUX_IA64_MODE" = X32; then
14453      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14454    else
14455      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14456    fi
14457    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14458    ;;
14459   hppa*64*)
14460     shrext_cmds='.sl'
14461     hardcode_into_libs=yes
14462     dynamic_linker="$host_os dld.sl"
14463     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14464     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14465     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14466     soname_spec='${libname}${release}${shared_ext}$major'
14467     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14468     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14469     ;;
14470   *)
14471    shrext_cmds='.sl'
14472    dynamic_linker="$host_os dld.sl"
14473    shlibpath_var=SHLIB_PATH
14474    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14475    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14476    soname_spec='${libname}${release}${shared_ext}$major'
14477    ;;
14478  esac
14479  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14480  postinstall_cmds='chmod 555 $lib'
14481  ;;
14482
14483interix3*)
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  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14490  shlibpath_var=LD_LIBRARY_PATH
14491  shlibpath_overrides_runpath=no
14492  hardcode_into_libs=yes
14493  ;;
14494
14495irix5* | irix6* | nonstopux*)
14496  case $host_os in
14497    nonstopux*) version_type=nonstopux ;;
14498    *)
14499	if test "$lt_cv_prog_gnu_ld" = yes; then
14500		version_type=linux
14501	else
14502		version_type=irix
14503	fi ;;
14504  esac
14505  need_lib_prefix=no
14506  need_version=no
14507  soname_spec='${libname}${release}${shared_ext}$major'
14508  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14509  case $host_os in
14510  irix5* | nonstopux*)
14511    libsuff= shlibsuff=
14512    ;;
14513  *)
14514    case $LD in # libtool.m4 will add one of these switches to LD
14515    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14516      libsuff= shlibsuff= libmagic=32-bit;;
14517    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14518      libsuff=32 shlibsuff=N32 libmagic=N32;;
14519    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14520      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14521    *) libsuff= shlibsuff= libmagic=never-match;;
14522    esac
14523    ;;
14524  esac
14525  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14526  shlibpath_overrides_runpath=no
14527  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14528  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14529  hardcode_into_libs=yes
14530  ;;
14531
14532# No shared lib support for Linux oldld, aout, or coff.
14533linux*oldld* | linux*aout* | linux*coff*)
14534  dynamic_linker=no
14535  ;;
14536
14537# This must be Linux ELF.
14538linux*)
14539  version_type=linux
14540  need_lib_prefix=no
14541  need_version=no
14542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14543  soname_spec='${libname}${release}${shared_ext}$major'
14544  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14545  shlibpath_var=LD_LIBRARY_PATH
14546  shlibpath_overrides_runpath=no
14547  # This implies no fast_install, which is unacceptable.
14548  # Some rework will be needed to allow for fast_install
14549  # before this can be enabled.
14550  hardcode_into_libs=yes
14551
14552  # Append ld.so.conf contents to the search path
14553  if test -f /etc/ld.so.conf; then
14554    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14555    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14556  fi
14557
14558  # We used to test for /lib/ld.so.1 and disable shared libraries on
14559  # powerpc, because MkLinux only supported shared libraries with the
14560  # GNU dynamic linker.  Since this was broken with cross compilers,
14561  # most powerpc-linux boxes support dynamic linking these days and
14562  # people can always --disable-shared, the test was removed, and we
14563  # assume the GNU/Linux dynamic linker is in use.
14564  dynamic_linker='GNU/Linux ld.so'
14565  ;;
14566
14567knetbsd*-gnu)
14568  version_type=linux
14569  need_lib_prefix=no
14570  need_version=no
14571  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14572  soname_spec='${libname}${release}${shared_ext}$major'
14573  shlibpath_var=LD_LIBRARY_PATH
14574  shlibpath_overrides_runpath=no
14575  hardcode_into_libs=yes
14576  dynamic_linker='GNU ld.so'
14577  ;;
14578
14579netbsd*)
14580  version_type=sunos
14581  need_lib_prefix=no
14582  need_version=no
14583  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14584    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14585    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14586    dynamic_linker='NetBSD (a.out) ld.so'
14587  else
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    dynamic_linker='NetBSD ld.elf_so'
14591  fi
14592  shlibpath_var=LD_LIBRARY_PATH
14593  shlibpath_overrides_runpath=yes
14594  hardcode_into_libs=yes
14595  ;;
14596
14597newsos6)
14598  version_type=linux
14599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14600  shlibpath_var=LD_LIBRARY_PATH
14601  shlibpath_overrides_runpath=yes
14602  ;;
14603
14604nto-qnx*)
14605  version_type=linux
14606  need_lib_prefix=no
14607  need_version=no
14608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609  soname_spec='${libname}${release}${shared_ext}$major'
14610  shlibpath_var=LD_LIBRARY_PATH
14611  shlibpath_overrides_runpath=yes
14612  ;;
14613
14614openbsd*)
14615  version_type=sunos
14616  sys_lib_dlsearch_path_spec="/usr/lib"
14617  need_lib_prefix=no
14618  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14619  case $host_os in
14620    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14621    *)                         need_version=no  ;;
14622  esac
14623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14624  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14625  shlibpath_var=LD_LIBRARY_PATH
14626  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14627    case $host_os in
14628      openbsd2.[89] | openbsd2.[89].*)
14629	shlibpath_overrides_runpath=no
14630	;;
14631      *)
14632	shlibpath_overrides_runpath=yes
14633	;;
14634      esac
14635  else
14636    shlibpath_overrides_runpath=yes
14637  fi
14638  ;;
14639
14640os2*)
14641  libname_spec='$name'
14642  shrext_cmds=".dll"
14643  need_lib_prefix=no
14644  library_names_spec='$libname${shared_ext} $libname.a'
14645  dynamic_linker='OS/2 ld.exe'
14646  shlibpath_var=LIBPATH
14647  ;;
14648
14649osf3* | osf4* | osf5*)
14650  version_type=osf
14651  need_lib_prefix=no
14652  need_version=no
14653  soname_spec='${libname}${release}${shared_ext}$major'
14654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14655  shlibpath_var=LD_LIBRARY_PATH
14656  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14657  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14658  ;;
14659
14660solaris*)
14661  version_type=linux
14662  need_lib_prefix=no
14663  need_version=no
14664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14665  soname_spec='${libname}${release}${shared_ext}$major'
14666  shlibpath_var=LD_LIBRARY_PATH
14667  shlibpath_overrides_runpath=yes
14668  hardcode_into_libs=yes
14669  # ldd complains unless libraries are executable
14670  postinstall_cmds='chmod +x $lib'
14671  ;;
14672
14673sunos4*)
14674  version_type=sunos
14675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14676  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14677  shlibpath_var=LD_LIBRARY_PATH
14678  shlibpath_overrides_runpath=yes
14679  if test "$with_gnu_ld" = yes; then
14680    need_lib_prefix=no
14681  fi
14682  need_version=yes
14683  ;;
14684
14685sysv4 | sysv4.3*)
14686  version_type=linux
14687  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14688  soname_spec='${libname}${release}${shared_ext}$major'
14689  shlibpath_var=LD_LIBRARY_PATH
14690  case $host_vendor in
14691    sni)
14692      shlibpath_overrides_runpath=no
14693      need_lib_prefix=no
14694      export_dynamic_flag_spec='${wl}-Blargedynsym'
14695      runpath_var=LD_RUN_PATH
14696      ;;
14697    siemens)
14698      need_lib_prefix=no
14699      ;;
14700    motorola)
14701      need_lib_prefix=no
14702      need_version=no
14703      shlibpath_overrides_runpath=no
14704      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14705      ;;
14706  esac
14707  ;;
14708
14709sysv4*MP*)
14710  if test -d /usr/nec ;then
14711    version_type=linux
14712    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14713    soname_spec='$libname${shared_ext}.$major'
14714    shlibpath_var=LD_LIBRARY_PATH
14715  fi
14716  ;;
14717
14718sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14719  version_type=freebsd-elf
14720  need_lib_prefix=no
14721  need_version=no
14722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14723  soname_spec='${libname}${release}${shared_ext}$major'
14724  shlibpath_var=LD_LIBRARY_PATH
14725  hardcode_into_libs=yes
14726  if test "$with_gnu_ld" = yes; then
14727    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14728    shlibpath_overrides_runpath=no
14729  else
14730    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14731    shlibpath_overrides_runpath=yes
14732    case $host_os in
14733      sco3.2v5*)
14734        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14735	;;
14736    esac
14737  fi
14738  sys_lib_dlsearch_path_spec='/usr/lib'
14739  ;;
14740
14741uts4*)
14742  version_type=linux
14743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14744  soname_spec='${libname}${release}${shared_ext}$major'
14745  shlibpath_var=LD_LIBRARY_PATH
14746  ;;
14747
14748*)
14749  dynamic_linker=no
14750  ;;
14751esac
14752{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14753echo "${ECHO_T}$dynamic_linker" >&6; }
14754test "$dynamic_linker" = no && can_build_shared=no
14755
14756variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14757if test "$GCC" = yes; then
14758  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14759fi
14760
14761{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14762echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14763hardcode_action_CXX=
14764if test -n "$hardcode_libdir_flag_spec_CXX" || \
14765   test -n "$runpath_var_CXX" || \
14766   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14767
14768  # We can hardcode non-existant directories.
14769  if test "$hardcode_direct_CXX" != no &&
14770     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14771     # have to relink, otherwise we might link with an installed library
14772     # when we should be linking with a yet-to-be-installed one
14773     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14774     test "$hardcode_minus_L_CXX" != no; then
14775    # Linking always hardcodes the temporary library directory.
14776    hardcode_action_CXX=relink
14777  else
14778    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14779    hardcode_action_CXX=immediate
14780  fi
14781else
14782  # We cannot hardcode anything, or else we can only hardcode existing
14783  # directories.
14784  hardcode_action_CXX=unsupported
14785fi
14786{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14787echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14788
14789if test "$hardcode_action_CXX" = relink; then
14790  # Fast installation is not supported
14791  enable_fast_install=no
14792elif test "$shlibpath_overrides_runpath" = yes ||
14793     test "$enable_shared" = no; then
14794  # Fast installation is not necessary
14795  enable_fast_install=needless
14796fi
14797
14798
14799# The else clause should only fire when bootstrapping the
14800# libtool distribution, otherwise you forgot to ship ltmain.sh
14801# with your package, and you will get complaints that there are
14802# no rules to generate ltmain.sh.
14803if test -f "$ltmain"; then
14804  # See if we are running on zsh, and set the options which allow our commands through
14805  # without removal of \ escapes.
14806  if test -n "${ZSH_VERSION+set}" ; then
14807    setopt NO_GLOB_SUBST
14808  fi
14809  # Now quote all the things that may contain metacharacters while being
14810  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14811  # variables and quote the copies for generation of the libtool script.
14812  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14813    SED SHELL STRIP \
14814    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14815    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14816    deplibs_check_method reload_flag reload_cmds need_locks \
14817    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14818    lt_cv_sys_global_symbol_to_c_name_address \
14819    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14820    old_postinstall_cmds old_postuninstall_cmds \
14821    compiler_CXX \
14822    CC_CXX \
14823    LD_CXX \
14824    lt_prog_compiler_wl_CXX \
14825    lt_prog_compiler_pic_CXX \
14826    lt_prog_compiler_static_CXX \
14827    lt_prog_compiler_no_builtin_flag_CXX \
14828    export_dynamic_flag_spec_CXX \
14829    thread_safe_flag_spec_CXX \
14830    whole_archive_flag_spec_CXX \
14831    enable_shared_with_static_runtimes_CXX \
14832    old_archive_cmds_CXX \
14833    old_archive_from_new_cmds_CXX \
14834    predep_objects_CXX \
14835    postdep_objects_CXX \
14836    predeps_CXX \
14837    postdeps_CXX \
14838    compiler_lib_search_path_CXX \
14839    archive_cmds_CXX \
14840    archive_expsym_cmds_CXX \
14841    postinstall_cmds_CXX \
14842    postuninstall_cmds_CXX \
14843    old_archive_from_expsyms_cmds_CXX \
14844    allow_undefined_flag_CXX \
14845    no_undefined_flag_CXX \
14846    export_symbols_cmds_CXX \
14847    hardcode_libdir_flag_spec_CXX \
14848    hardcode_libdir_flag_spec_ld_CXX \
14849    hardcode_libdir_separator_CXX \
14850    hardcode_automatic_CXX \
14851    module_cmds_CXX \
14852    module_expsym_cmds_CXX \
14853    lt_cv_prog_compiler_c_o_CXX \
14854    exclude_expsyms_CXX \
14855    include_expsyms_CXX; do
14856
14857    case $var in
14858    old_archive_cmds_CXX | \
14859    old_archive_from_new_cmds_CXX | \
14860    archive_cmds_CXX | \
14861    archive_expsym_cmds_CXX | \
14862    module_cmds_CXX | \
14863    module_expsym_cmds_CXX | \
14864    old_archive_from_expsyms_cmds_CXX | \
14865    export_symbols_cmds_CXX | \
14866    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14867    postinstall_cmds | postuninstall_cmds | \
14868    old_postinstall_cmds | old_postuninstall_cmds | \
14869    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14870      # Double-quote double-evaled strings.
14871      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14872      ;;
14873    *)
14874      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14875      ;;
14876    esac
14877  done
14878
14879  case $lt_echo in
14880  *'\$0 --fallback-echo"')
14881    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14882    ;;
14883  esac
14884
14885cfgfile="$ofile"
14886
14887  cat <<__EOF__ >> "$cfgfile"
14888# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14889
14890# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14891
14892# Shell to use when invoking shell scripts.
14893SHELL=$lt_SHELL
14894
14895# Whether or not to build shared libraries.
14896build_libtool_libs=$enable_shared
14897
14898# Whether or not to build static libraries.
14899build_old_libs=$enable_static
14900
14901# Whether or not to add -lc for building shared libraries.
14902build_libtool_need_lc=$archive_cmds_need_lc_CXX
14903
14904# Whether or not to disallow shared libs when runtime libs are static
14905allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14906
14907# Whether or not to optimize for fast installation.
14908fast_install=$enable_fast_install
14909
14910# The host system.
14911host_alias=$host_alias
14912host=$host
14913host_os=$host_os
14914
14915# The build system.
14916build_alias=$build_alias
14917build=$build
14918build_os=$build_os
14919
14920# An echo program that does not interpret backslashes.
14921echo=$lt_echo
14922
14923# The archiver.
14924AR=$lt_AR
14925AR_FLAGS=$lt_AR_FLAGS
14926
14927# A C compiler.
14928LTCC=$lt_LTCC
14929
14930# LTCC compiler flags.
14931LTCFLAGS=$lt_LTCFLAGS
14932
14933# A language-specific compiler.
14934CC=$lt_compiler_CXX
14935
14936# Is the compiler the GNU C compiler?
14937with_gcc=$GCC_CXX
14938
14939# An ERE matcher.
14940EGREP=$lt_EGREP
14941
14942# The linker used to build libraries.
14943LD=$lt_LD_CXX
14944
14945# Whether we need hard or soft links.
14946LN_S=$lt_LN_S
14947
14948# A BSD-compatible nm program.
14949NM=$lt_NM
14950
14951# A symbol stripping program
14952STRIP=$lt_STRIP
14953
14954# Used to examine libraries when file_magic_cmd begins "file"
14955MAGIC_CMD=$MAGIC_CMD
14956
14957# Used on cygwin: DLL creation program.
14958DLLTOOL="$DLLTOOL"
14959
14960# Used on cygwin: object dumper.
14961OBJDUMP="$OBJDUMP"
14962
14963# Used on cygwin: assembler.
14964AS="$AS"
14965
14966# The name of the directory that contains temporary libtool files.
14967objdir=$objdir
14968
14969# How to create reloadable object files.
14970reload_flag=$lt_reload_flag
14971reload_cmds=$lt_reload_cmds
14972
14973# How to pass a linker flag through the compiler.
14974wl=$lt_lt_prog_compiler_wl_CXX
14975
14976# Object file suffix (normally "o").
14977objext="$ac_objext"
14978
14979# Old archive suffix (normally "a").
14980libext="$libext"
14981
14982# Shared library suffix (normally ".so").
14983shrext_cmds='$shrext_cmds'
14984
14985# Executable file suffix (normally "").
14986exeext="$exeext"
14987
14988# Additional compiler flags for building library objects.
14989pic_flag=$lt_lt_prog_compiler_pic_CXX
14990pic_mode=$pic_mode
14991
14992# What is the maximum length of a command?
14993max_cmd_len=$lt_cv_sys_max_cmd_len
14994
14995# Does compiler simultaneously support -c and -o options?
14996compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14997
14998# Must we lock files when doing compilation?
14999need_locks=$lt_need_locks
15000
15001# Do we need the lib prefix for modules?
15002need_lib_prefix=$need_lib_prefix
15003
15004# Do we need a version for libraries?
15005need_version=$need_version
15006
15007# Whether dlopen is supported.
15008dlopen_support=$enable_dlopen
15009
15010# Whether dlopen of programs is supported.
15011dlopen_self=$enable_dlopen_self
15012
15013# Whether dlopen of statically linked programs is supported.
15014dlopen_self_static=$enable_dlopen_self_static
15015
15016# Compiler flag to prevent dynamic linking.
15017link_static_flag=$lt_lt_prog_compiler_static_CXX
15018
15019# Compiler flag to turn off builtin functions.
15020no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15021
15022# Compiler flag to allow reflexive dlopens.
15023export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15024
15025# Compiler flag to generate shared objects directly from archives.
15026whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15027
15028# Compiler flag to generate thread-safe objects.
15029thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15030
15031# Library versioning type.
15032version_type=$version_type
15033
15034# Format of library name prefix.
15035libname_spec=$lt_libname_spec
15036
15037# List of archive names.  First name is the real one, the rest are links.
15038# The last name is the one that the linker finds with -lNAME.
15039library_names_spec=$lt_library_names_spec
15040
15041# The coded name of the library, if different from the real name.
15042soname_spec=$lt_soname_spec
15043
15044# Commands used to build and install an old-style archive.
15045RANLIB=$lt_RANLIB
15046old_archive_cmds=$lt_old_archive_cmds_CXX
15047old_postinstall_cmds=$lt_old_postinstall_cmds
15048old_postuninstall_cmds=$lt_old_postuninstall_cmds
15049
15050# Create an old-style archive from a shared archive.
15051old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15052
15053# Create a temporary old-style archive to link instead of a shared archive.
15054old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15055
15056# Commands used to build and install a shared archive.
15057archive_cmds=$lt_archive_cmds_CXX
15058archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15059postinstall_cmds=$lt_postinstall_cmds
15060postuninstall_cmds=$lt_postuninstall_cmds
15061
15062# Commands used to build a loadable module (assumed same as above if empty)
15063module_cmds=$lt_module_cmds_CXX
15064module_expsym_cmds=$lt_module_expsym_cmds_CXX
15065
15066# Commands to strip libraries.
15067old_striplib=$lt_old_striplib
15068striplib=$lt_striplib
15069
15070# Dependencies to place before the objects being linked to create a
15071# shared library.
15072predep_objects=$lt_predep_objects_CXX
15073
15074# Dependencies to place after the objects being linked to create a
15075# shared library.
15076postdep_objects=$lt_postdep_objects_CXX
15077
15078# Dependencies to place before the objects being linked to create a
15079# shared library.
15080predeps=$lt_predeps_CXX
15081
15082# Dependencies to place after the objects being linked to create a
15083# shared library.
15084postdeps=$lt_postdeps_CXX
15085
15086# The library search path used internally by the compiler when linking
15087# a shared library.
15088compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15089
15090# Method to check whether dependent libraries are shared objects.
15091deplibs_check_method=$lt_deplibs_check_method
15092
15093# Command to use when deplibs_check_method == file_magic.
15094file_magic_cmd=$lt_file_magic_cmd
15095
15096# Flag that allows shared libraries with undefined symbols to be built.
15097allow_undefined_flag=$lt_allow_undefined_flag_CXX
15098
15099# Flag that forces no undefined symbols.
15100no_undefined_flag=$lt_no_undefined_flag_CXX
15101
15102# Commands used to finish a libtool library installation in a directory.
15103finish_cmds=$lt_finish_cmds
15104
15105# Same as above, but a single script fragment to be evaled but not shown.
15106finish_eval=$lt_finish_eval
15107
15108# Take the output of nm and produce a listing of raw symbols and C names.
15109global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15110
15111# Transform the output of nm in a proper C declaration
15112global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15113
15114# Transform the output of nm in a C name address pair
15115global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15116
15117# This is the shared library runtime path variable.
15118runpath_var=$runpath_var
15119
15120# This is the shared library path variable.
15121shlibpath_var=$shlibpath_var
15122
15123# Is shlibpath searched before the hard-coded library search path?
15124shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15125
15126# How to hardcode a shared library path into an executable.
15127hardcode_action=$hardcode_action_CXX
15128
15129# Whether we should hardcode library paths into libraries.
15130hardcode_into_libs=$hardcode_into_libs
15131
15132# Flag to hardcode \$libdir into a binary during linking.
15133# This must work even if \$libdir does not exist.
15134hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15135
15136# If ld is used when linking, flag to hardcode \$libdir into
15137# a binary during linking. This must work even if \$libdir does
15138# not exist.
15139hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15140
15141# Whether we need a single -rpath flag with a separated argument.
15142hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15143
15144# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15145# resulting binary.
15146hardcode_direct=$hardcode_direct_CXX
15147
15148# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15149# resulting binary.
15150hardcode_minus_L=$hardcode_minus_L_CXX
15151
15152# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15153# the resulting binary.
15154hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15155
15156# Set to yes if building a shared library automatically hardcodes DIR into the library
15157# and all subsequent libraries and executables linked against it.
15158hardcode_automatic=$hardcode_automatic_CXX
15159
15160# Variables whose values should be saved in libtool wrapper scripts and
15161# restored at relink time.
15162variables_saved_for_relink="$variables_saved_for_relink"
15163
15164# Whether libtool must link a program against all its dependency libraries.
15165link_all_deplibs=$link_all_deplibs_CXX
15166
15167# Compile-time system search path for libraries
15168sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15169
15170# Run-time system search path for libraries
15171sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15172
15173# Fix the shell variable \$srcfile for the compiler.
15174fix_srcfile_path="$fix_srcfile_path_CXX"
15175
15176# Set to yes if exported symbols are required.
15177always_export_symbols=$always_export_symbols_CXX
15178
15179# The commands to list exported symbols.
15180export_symbols_cmds=$lt_export_symbols_cmds_CXX
15181
15182# The commands to extract the exported symbol list from a shared archive.
15183extract_expsyms_cmds=$lt_extract_expsyms_cmds
15184
15185# Symbols that should not be listed in the preloaded symbols.
15186exclude_expsyms=$lt_exclude_expsyms_CXX
15187
15188# Symbols that must always be exported.
15189include_expsyms=$lt_include_expsyms_CXX
15190
15191# ### END LIBTOOL TAG CONFIG: $tagname
15192
15193__EOF__
15194
15195
15196else
15197  # If there is no Makefile yet, we rely on a make rule to execute
15198  # `config.status --recheck' to rerun these tests and create the
15199  # libtool script then.
15200  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15201  if test -f "$ltmain_in"; then
15202    test -f Makefile && make "$ltmain"
15203  fi
15204fi
15205
15206
15207ac_ext=c
15208ac_cpp='$CPP $CPPFLAGS'
15209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15211ac_compiler_gnu=$ac_cv_c_compiler_gnu
15212
15213CC=$lt_save_CC
15214LDCXX=$LD
15215LD=$lt_save_LD
15216GCC=$lt_save_GCC
15217with_gnu_ldcxx=$with_gnu_ld
15218with_gnu_ld=$lt_save_with_gnu_ld
15219lt_cv_path_LDCXX=$lt_cv_path_LD
15220lt_cv_path_LD=$lt_save_path_LD
15221lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15222lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15223
15224	else
15225	  tagname=""
15226	fi
15227	;;
15228
15229      F77)
15230	if test -n "$F77" && test "X$F77" != "Xno"; then
15231
15232ac_ext=f
15233ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15234ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15235ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15236
15237
15238archive_cmds_need_lc_F77=no
15239allow_undefined_flag_F77=
15240always_export_symbols_F77=no
15241archive_expsym_cmds_F77=
15242export_dynamic_flag_spec_F77=
15243hardcode_direct_F77=no
15244hardcode_libdir_flag_spec_F77=
15245hardcode_libdir_flag_spec_ld_F77=
15246hardcode_libdir_separator_F77=
15247hardcode_minus_L_F77=no
15248hardcode_automatic_F77=no
15249module_cmds_F77=
15250module_expsym_cmds_F77=
15251link_all_deplibs_F77=unknown
15252old_archive_cmds_F77=$old_archive_cmds
15253no_undefined_flag_F77=
15254whole_archive_flag_spec_F77=
15255enable_shared_with_static_runtimes_F77=no
15256
15257# Source file extension for f77 test sources.
15258ac_ext=f
15259
15260# Object file extension for compiled f77 test sources.
15261objext=o
15262objext_F77=$objext
15263
15264# Code to be used in simple compile tests
15265lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15266
15267# Code to be used in simple link tests
15268lt_simple_link_test_code="      program t\n      end\n"
15269
15270# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15271
15272# If no C compiler was specified, use CC.
15273LTCC=${LTCC-"$CC"}
15274
15275# If no C compiler flags were specified, use CFLAGS.
15276LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15277
15278# Allow CC to be a program name with arguments.
15279compiler=$CC
15280
15281
15282# save warnings/boilerplate of simple test code
15283ac_outfile=conftest.$ac_objext
15284printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15285eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15286_lt_compiler_boilerplate=`cat conftest.err`
15287$rm conftest*
15288
15289ac_outfile=conftest.$ac_objext
15290printf "$lt_simple_link_test_code" >conftest.$ac_ext
15291eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15292_lt_linker_boilerplate=`cat conftest.err`
15293$rm conftest*
15294
15295
15296# Allow CC to be a program name with arguments.
15297lt_save_CC="$CC"
15298CC=${F77-"f77"}
15299compiler=$CC
15300compiler_F77=$CC
15301for cc_temp in $compiler""; do
15302  case $cc_temp in
15303    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15304    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15305    \-*) ;;
15306    *) break;;
15307  esac
15308done
15309cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15310
15311
15312{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15313echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15314{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
15315echo "${ECHO_T}$can_build_shared" >&6; }
15316
15317{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15318echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15319test "$can_build_shared" = "no" && enable_shared=no
15320
15321# On AIX, shared libraries and static libraries use the same namespace, and
15322# are all built from PIC.
15323case $host_os in
15324aix3*)
15325  test "$enable_shared" = yes && enable_static=no
15326  if test -n "$RANLIB"; then
15327    archive_cmds="$archive_cmds~\$RANLIB \$lib"
15328    postinstall_cmds='$RANLIB $lib'
15329  fi
15330  ;;
15331aix4* | aix5*)
15332  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15333    test "$enable_shared" = yes && enable_static=no
15334  fi
15335  ;;
15336esac
15337{ echo "$as_me:$LINENO: result: $enable_shared" >&5
15338echo "${ECHO_T}$enable_shared" >&6; }
15339
15340{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15341echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15342# Make sure either enable_shared or enable_static is yes.
15343test "$enable_shared" = yes || enable_static=yes
15344{ echo "$as_me:$LINENO: result: $enable_static" >&5
15345echo "${ECHO_T}$enable_static" >&6; }
15346
15347GCC_F77="$G77"
15348LD_F77="$LD"
15349
15350lt_prog_compiler_wl_F77=
15351lt_prog_compiler_pic_F77=
15352lt_prog_compiler_static_F77=
15353
15354{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15355echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15356
15357  if test "$GCC" = yes; then
15358    lt_prog_compiler_wl_F77='-Wl,'
15359    lt_prog_compiler_static_F77='-static'
15360
15361    case $host_os in
15362      aix*)
15363      # All AIX code is PIC.
15364      if test "$host_cpu" = ia64; then
15365	# AIX 5 now supports IA64 processor
15366	lt_prog_compiler_static_F77='-Bstatic'
15367      fi
15368      ;;
15369
15370    amigaos*)
15371      # FIXME: we need at least 68020 code to build shared libraries, but
15372      # adding the `-m68020' flag to GCC prevents building anything better,
15373      # like `-m68040'.
15374      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15375      ;;
15376
15377    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15378      # PIC is the default for these OSes.
15379      ;;
15380
15381    mingw* | cygwin* | pw32* | os2*)
15382      # This hack is so that the source file can tell whether it is being
15383      # built for inclusion in a dll (and should export symbols for example).
15384      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15385      # (--disable-auto-import) libraries
15386      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15387      ;;
15388
15389    darwin* | rhapsody*)
15390      # PIC is the default on this platform
15391      # Common symbols not allowed in MH_DYLIB files
15392      lt_prog_compiler_pic_F77='-fno-common'
15393      ;;
15394
15395    interix3*)
15396      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15397      # Instead, we relocate shared libraries at runtime.
15398      ;;
15399
15400    msdosdjgpp*)
15401      # Just because we use GCC doesn't mean we suddenly get shared libraries
15402      # on systems that don't support them.
15403      lt_prog_compiler_can_build_shared_F77=no
15404      enable_shared=no
15405      ;;
15406
15407    sysv4*MP*)
15408      if test -d /usr/nec; then
15409	lt_prog_compiler_pic_F77=-Kconform_pic
15410      fi
15411      ;;
15412
15413    hpux*)
15414      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15415      # not for PA HP-UX.
15416      case $host_cpu in
15417      hppa*64*|ia64*)
15418	# +Z the default
15419	;;
15420      *)
15421	lt_prog_compiler_pic_F77='-fPIC'
15422	;;
15423      esac
15424      ;;
15425
15426    *)
15427      lt_prog_compiler_pic_F77='-fPIC'
15428      ;;
15429    esac
15430  else
15431    # PORTME Check for flag to pass linker flags through the system compiler.
15432    case $host_os in
15433    aix*)
15434      lt_prog_compiler_wl_F77='-Wl,'
15435      if test "$host_cpu" = ia64; then
15436	# AIX 5 now supports IA64 processor
15437	lt_prog_compiler_static_F77='-Bstatic'
15438      else
15439	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15440      fi
15441      ;;
15442      darwin*)
15443        # PIC is the default on this platform
15444        # Common symbols not allowed in MH_DYLIB files
15445       case $cc_basename in
15446         xlc*)
15447         lt_prog_compiler_pic_F77='-qnocommon'
15448         lt_prog_compiler_wl_F77='-Wl,'
15449         ;;
15450       esac
15451       ;;
15452
15453    mingw* | cygwin* | pw32* | os2*)
15454      # This hack is so that the source file can tell whether it is being
15455      # built for inclusion in a dll (and should export symbols for example).
15456      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15457      # (--disable-auto-import) libraries
15458      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15459      ;;
15460
15461    hpux9* | hpux10* | hpux11*)
15462      lt_prog_compiler_wl_F77='-Wl,'
15463      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15464      # not for PA HP-UX.
15465      case $host_cpu in
15466      hppa*64*|ia64*)
15467	# +Z the default
15468	;;
15469      *)
15470	lt_prog_compiler_pic_F77='+Z'
15471	;;
15472      esac
15473      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15474      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15475      ;;
15476
15477    irix5* | irix6* | nonstopux*)
15478      lt_prog_compiler_wl_F77='-Wl,'
15479      # PIC (with -KPIC) is the default.
15480      lt_prog_compiler_static_F77='-non_shared'
15481      ;;
15482
15483    newsos6)
15484      lt_prog_compiler_pic_F77='-KPIC'
15485      lt_prog_compiler_static_F77='-Bstatic'
15486      ;;
15487
15488    linux*)
15489      case $cc_basename in
15490      icc* | ecc*)
15491	lt_prog_compiler_wl_F77='-Wl,'
15492	lt_prog_compiler_pic_F77='-KPIC'
15493	lt_prog_compiler_static_F77='-static'
15494        ;;
15495      pgcc* | pgf77* | pgf90* | pgf95*)
15496        # Portland Group compilers (*not* the Pentium gcc compiler,
15497	# which looks to be a dead project)
15498	lt_prog_compiler_wl_F77='-Wl,'
15499	lt_prog_compiler_pic_F77='-fpic'
15500	lt_prog_compiler_static_F77='-Bstatic'
15501        ;;
15502      ccc*)
15503        lt_prog_compiler_wl_F77='-Wl,'
15504        # All Alpha code is PIC.
15505        lt_prog_compiler_static_F77='-non_shared'
15506        ;;
15507      como)
15508        lt_prog_compiler_wl_F77='-lopt='
15509        ;;
15510      *)
15511        case `$CC -V 2>&1 | sed 5q` in
15512	*Sun\ C*)
15513	  # Sun C 5.9
15514	  lt_prog_compiler_pic_F77='-KPIC'
15515	  lt_prog_compiler_static_F77='-Bstatic'
15516	  lt_prog_compiler_wl_F77='-Wl,'
15517	  ;;
15518	*Sun\ F*)
15519	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15520	  lt_prog_compiler_pic_F77='-KPIC'
15521	  lt_prog_compiler_static_F77='-Bstatic'
15522	  lt_prog_compiler_wl_F77=''
15523	  ;;
15524	esac
15525	;;
15526      esac
15527      ;;
15528
15529    osf3* | osf4* | osf5*)
15530      lt_prog_compiler_wl_F77='-Wl,'
15531      # All OSF/1 code is PIC.
15532      lt_prog_compiler_static_F77='-non_shared'
15533      ;;
15534
15535    solaris*)
15536      lt_prog_compiler_pic_F77='-KPIC'
15537      lt_prog_compiler_static_F77='-Bstatic'
15538      case $cc_basename in
15539      f77* | f90* | f95*)
15540	lt_prog_compiler_wl_F77='-Qoption ld ';;
15541      *)
15542	lt_prog_compiler_wl_F77='-Wl,';;
15543      esac
15544      ;;
15545
15546    sunos4*)
15547      lt_prog_compiler_wl_F77='-Qoption ld '
15548      lt_prog_compiler_pic_F77='-PIC'
15549      lt_prog_compiler_static_F77='-Bstatic'
15550      ;;
15551
15552    sysv4 | sysv4.2uw2* | sysv4.3*)
15553      lt_prog_compiler_wl_F77='-Wl,'
15554      lt_prog_compiler_pic_F77='-KPIC'
15555      lt_prog_compiler_static_F77='-Bstatic'
15556      ;;
15557
15558    sysv4*MP*)
15559      if test -d /usr/nec ;then
15560	lt_prog_compiler_pic_F77='-Kconform_pic'
15561	lt_prog_compiler_static_F77='-Bstatic'
15562      fi
15563      ;;
15564
15565    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15566      lt_prog_compiler_wl_F77='-Wl,'
15567      lt_prog_compiler_pic_F77='-KPIC'
15568      lt_prog_compiler_static_F77='-Bstatic'
15569      ;;
15570
15571    unicos*)
15572      lt_prog_compiler_wl_F77='-Wl,'
15573      lt_prog_compiler_can_build_shared_F77=no
15574      ;;
15575
15576    uts4*)
15577      lt_prog_compiler_pic_F77='-pic'
15578      lt_prog_compiler_static_F77='-Bstatic'
15579      ;;
15580
15581    *)
15582      lt_prog_compiler_can_build_shared_F77=no
15583      ;;
15584    esac
15585  fi
15586
15587{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15588echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15589
15590#
15591# Check to make sure the PIC flag actually works.
15592#
15593if test -n "$lt_prog_compiler_pic_F77"; then
15594
15595{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15596echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15597if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15598  echo $ECHO_N "(cached) $ECHO_C" >&6
15599else
15600  lt_prog_compiler_pic_works_F77=no
15601  ac_outfile=conftest.$ac_objext
15602   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15603   lt_compiler_flag="$lt_prog_compiler_pic_F77"
15604   # Insert the option either (1) after the last *FLAGS variable, or
15605   # (2) before a word containing "conftest.", or (3) at the end.
15606   # Note that $ac_compile itself does not contain backslashes and begins
15607   # with a dollar sign (not a hyphen), so the echo should work correctly.
15608   # The option is referenced via a variable to avoid confusing sed.
15609   lt_compile=`echo "$ac_compile" | $SED \
15610   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15611   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15612   -e 's:$: $lt_compiler_flag:'`
15613   (eval echo "\"\$as_me:15613: $lt_compile\"" >&5)
15614   (eval "$lt_compile" 2>conftest.err)
15615   ac_status=$?
15616   cat conftest.err >&5
15617   echo "$as_me:15617: \$? = $ac_status" >&5
15618   if (exit $ac_status) && test -s "$ac_outfile"; then
15619     # The compiler can only warn and ignore the option if not recognized
15620     # So say no if there are warnings other than the usual output.
15621     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15622     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15623     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15624       lt_prog_compiler_pic_works_F77=yes
15625     fi
15626   fi
15627   $rm conftest*
15628
15629fi
15630{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15631echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15632
15633if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15634    case $lt_prog_compiler_pic_F77 in
15635     "" | " "*) ;;
15636     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15637     esac
15638else
15639    lt_prog_compiler_pic_F77=
15640     lt_prog_compiler_can_build_shared_F77=no
15641fi
15642
15643fi
15644case $host_os in
15645  # For platforms which do not support PIC, -DPIC is meaningless:
15646  *djgpp*)
15647    lt_prog_compiler_pic_F77=
15648    ;;
15649  *)
15650    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15651    ;;
15652esac
15653
15654#
15655# Check to make sure the static flag actually works.
15656#
15657wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15658{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15659echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15660if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15661  echo $ECHO_N "(cached) $ECHO_C" >&6
15662else
15663  lt_prog_compiler_static_works_F77=no
15664   save_LDFLAGS="$LDFLAGS"
15665   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15666   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15667   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15668     # The linker can only warn and ignore the option if not recognized
15669     # So say no if there are warnings
15670     if test -s conftest.err; then
15671       # Append any errors to the config.log.
15672       cat conftest.err 1>&5
15673       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15674       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15675       if diff conftest.exp conftest.er2 >/dev/null; then
15676         lt_prog_compiler_static_works_F77=yes
15677       fi
15678     else
15679       lt_prog_compiler_static_works_F77=yes
15680     fi
15681   fi
15682   $rm conftest*
15683   LDFLAGS="$save_LDFLAGS"
15684
15685fi
15686{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15687echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15688
15689if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15690    :
15691else
15692    lt_prog_compiler_static_F77=
15693fi
15694
15695
15696{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15697echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15698if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15699  echo $ECHO_N "(cached) $ECHO_C" >&6
15700else
15701  lt_cv_prog_compiler_c_o_F77=no
15702   $rm -r conftest 2>/dev/null
15703   mkdir conftest
15704   cd conftest
15705   mkdir out
15706   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15707
15708   lt_compiler_flag="-o out/conftest2.$ac_objext"
15709   # Insert the option either (1) after the last *FLAGS variable, or
15710   # (2) before a word containing "conftest.", or (3) at the end.
15711   # Note that $ac_compile itself does not contain backslashes and begins
15712   # with a dollar sign (not a hyphen), so the echo should work correctly.
15713   lt_compile=`echo "$ac_compile" | $SED \
15714   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15715   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15716   -e 's:$: $lt_compiler_flag:'`
15717   (eval echo "\"\$as_me:15717: $lt_compile\"" >&5)
15718   (eval "$lt_compile" 2>out/conftest.err)
15719   ac_status=$?
15720   cat out/conftest.err >&5
15721   echo "$as_me:15721: \$? = $ac_status" >&5
15722   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15723   then
15724     # The compiler can only warn and ignore the option if not recognized
15725     # So say no if there are warnings
15726     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15727     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15728     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15729       lt_cv_prog_compiler_c_o_F77=yes
15730     fi
15731   fi
15732   chmod u+w . 2>&5
15733   $rm conftest*
15734   # SGI C++ compiler will create directory out/ii_files/ for
15735   # template instantiation
15736   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15737   $rm out/* && rmdir out
15738   cd ..
15739   rmdir conftest
15740   $rm conftest*
15741
15742fi
15743{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15744echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15745
15746
15747hard_links="nottested"
15748if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15749  # do not overwrite the value of need_locks provided by the user
15750  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15751echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15752  hard_links=yes
15753  $rm conftest*
15754  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15755  touch conftest.a
15756  ln conftest.a conftest.b 2>&5 || hard_links=no
15757  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15758  { echo "$as_me:$LINENO: result: $hard_links" >&5
15759echo "${ECHO_T}$hard_links" >&6; }
15760  if test "$hard_links" = no; then
15761    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15762echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15763    need_locks=warn
15764  fi
15765else
15766  need_locks=no
15767fi
15768
15769{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15770echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15771
15772  runpath_var=
15773  allow_undefined_flag_F77=
15774  enable_shared_with_static_runtimes_F77=no
15775  archive_cmds_F77=
15776  archive_expsym_cmds_F77=
15777  old_archive_From_new_cmds_F77=
15778  old_archive_from_expsyms_cmds_F77=
15779  export_dynamic_flag_spec_F77=
15780  whole_archive_flag_spec_F77=
15781  thread_safe_flag_spec_F77=
15782  hardcode_libdir_flag_spec_F77=
15783  hardcode_libdir_flag_spec_ld_F77=
15784  hardcode_libdir_separator_F77=
15785  hardcode_direct_F77=no
15786  hardcode_minus_L_F77=no
15787  hardcode_shlibpath_var_F77=unsupported
15788  link_all_deplibs_F77=unknown
15789  hardcode_automatic_F77=no
15790  module_cmds_F77=
15791  module_expsym_cmds_F77=
15792  always_export_symbols_F77=no
15793  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15794  # include_expsyms should be a list of space-separated symbols to be *always*
15795  # included in the symbol list
15796  include_expsyms_F77=
15797  # exclude_expsyms can be an extended regexp of symbols to exclude
15798  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15799  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15800  # as well as any symbol that contains `d'.
15801  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15802  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15803  # platforms (ab)use it in PIC code, but their linkers get confused if
15804  # the symbol is explicitly referenced.  Since portable code cannot
15805  # rely on this symbol name, it's probably fine to never include it in
15806  # preloaded symbol tables.
15807  extract_expsyms_cmds=
15808  # Just being paranoid about ensuring that cc_basename is set.
15809  for cc_temp in $compiler""; do
15810  case $cc_temp in
15811    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15812    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15813    \-*) ;;
15814    *) break;;
15815  esac
15816done
15817cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15818
15819  case $host_os in
15820  cygwin* | mingw* | pw32*)
15821    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15822    # When not using gcc, we currently assume that we are using
15823    # Microsoft Visual C++.
15824    if test "$GCC" != yes; then
15825      with_gnu_ld=no
15826    fi
15827    ;;
15828  interix*)
15829    # we just hope/assume this is gcc and not c89 (= MSVC++)
15830    with_gnu_ld=yes
15831    ;;
15832  openbsd*)
15833    with_gnu_ld=no
15834    ;;
15835  esac
15836
15837  ld_shlibs_F77=yes
15838  if test "$with_gnu_ld" = yes; then
15839    # If archive_cmds runs LD, not CC, wlarc should be empty
15840    wlarc='${wl}'
15841
15842    # Set some defaults for GNU ld with shared library support. These
15843    # are reset later if shared libraries are not supported. Putting them
15844    # here allows them to be overridden if necessary.
15845    runpath_var=LD_RUN_PATH
15846    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15847    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15848    # ancient GNU ld didn't support --whole-archive et. al.
15849    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15850	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15851      else
15852  	whole_archive_flag_spec_F77=
15853    fi
15854    supports_anon_versioning=no
15855    case `$LD -v 2>/dev/null` in
15856      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15857      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15858      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15859      *\ 2.11.*) ;; # other 2.11 versions
15860      *) supports_anon_versioning=yes ;;
15861    esac
15862
15863    # See if GNU ld supports shared libraries.
15864    case $host_os in
15865    aix3* | aix4* | aix5*)
15866      # On AIX/PPC, the GNU linker is very broken
15867      if test "$host_cpu" != ia64; then
15868	ld_shlibs_F77=no
15869	cat <<EOF 1>&2
15870
15871*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15872*** to be unable to reliably create shared libraries on AIX.
15873*** Therefore, libtool is disabling shared libraries support.  If you
15874*** really care for shared libraries, you may want to modify your PATH
15875*** so that a non-GNU linker is found, and then restart.
15876
15877EOF
15878      fi
15879      ;;
15880
15881    amigaos*)
15882      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)'
15883      hardcode_libdir_flag_spec_F77='-L$libdir'
15884      hardcode_minus_L_F77=yes
15885
15886      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15887      # that the semantics of dynamic libraries on AmigaOS, at least up
15888      # to version 4, is to share data among multiple programs linked
15889      # with the same dynamic library.  Since this doesn't match the
15890      # behavior of shared libraries on other platforms, we can't use
15891      # them.
15892      ld_shlibs_F77=no
15893      ;;
15894
15895    beos*)
15896      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15897	allow_undefined_flag_F77=unsupported
15898	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15899	# support --undefined.  This deserves some investigation.  FIXME
15900	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15901      else
15902	ld_shlibs_F77=no
15903      fi
15904      ;;
15905
15906    cygwin* | mingw* | pw32*)
15907      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15908      # as there is no search path for DLLs.
15909      hardcode_libdir_flag_spec_F77='-L$libdir'
15910      allow_undefined_flag_F77=unsupported
15911      always_export_symbols_F77=no
15912      enable_shared_with_static_runtimes_F77=yes
15913      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15914
15915      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15916        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15917	# If the export-symbols file already is a .def file (1st line
15918	# is EXPORTS), use it as is; otherwise, prepend...
15919	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15920	  cp $export_symbols $output_objdir/$soname.def;
15921	else
15922	  echo EXPORTS > $output_objdir/$soname.def;
15923	  cat $export_symbols >> $output_objdir/$soname.def;
15924	fi~
15925	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15926      else
15927	ld_shlibs_F77=no
15928      fi
15929      ;;
15930
15931    interix3*)
15932      hardcode_direct_F77=no
15933      hardcode_shlibpath_var_F77=no
15934      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15935      export_dynamic_flag_spec_F77='${wl}-E'
15936      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15937      # Instead, shared libraries are loaded at an image base (0x10000000 by
15938      # default) and relocated if they conflict, which is a slow very memory
15939      # consuming and fragmenting process.  To avoid this, we pick a random,
15940      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15941      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15942      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'
15943      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'
15944      ;;
15945
15946    linux*)
15947      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15948	tmp_addflag=
15949	case $cc_basename,$host_cpu in
15950	pgcc*)				# Portland Group C compiler
15951	  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'
15952	  tmp_addflag=' $pic_flag'
15953	  ;;
15954	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15955	  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'
15956	  tmp_addflag=' $pic_flag -Mnomain' ;;
15957	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15958	  tmp_addflag=' -i_dynamic' ;;
15959	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15960	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15961	ifc* | ifort*)			# Intel Fortran compiler
15962	  tmp_addflag=' -nofor_main' ;;
15963	esac
15964	case `$CC -V 2>&1 | sed 5q` in
15965	*Sun\ C*)			# Sun C 5.9
15966	  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 /dev/null'
15967	  tmp_sharedflag='-G' ;;
15968	*Sun\ F*)			# Sun Fortran 8.3
15969	  tmp_sharedflag='-G' ;;
15970	*)
15971	  tmp_sharedflag='-shared' ;;
15972	esac
15973	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15974
15975	if test $supports_anon_versioning = yes; then
15976	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15977  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15978  $echo "local: *; };" >> $output_objdir/$libname.ver~
15979	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15980	fi
15981      else
15982	ld_shlibs_F77=no
15983      fi
15984      ;;
15985
15986    netbsd*)
15987      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15988	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15989	wlarc=
15990      else
15991	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15992	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15993      fi
15994      ;;
15995
15996    solaris*)
15997      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15998	ld_shlibs_F77=no
15999	cat <<EOF 1>&2
16000
16001*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16002*** create shared libraries on Solaris systems.  Therefore, libtool
16003*** is disabling shared libraries support.  We urge you to upgrade GNU
16004*** binutils to release 2.9.1 or newer.  Another option is to modify
16005*** your PATH or compiler configuration so that the native linker is
16006*** used, and then restart.
16007
16008EOF
16009      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16010	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16011	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16012      else
16013	ld_shlibs_F77=no
16014      fi
16015      ;;
16016
16017    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16018      case `$LD -v 2>&1` in
16019        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16020	ld_shlibs_F77=no
16021	cat <<_LT_EOF 1>&2
16022
16023*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16024*** reliably create shared libraries on SCO systems.  Therefore, libtool
16025*** is disabling shared libraries support.  We urge you to upgrade GNU
16026*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16027*** your PATH or compiler configuration so that the native linker is
16028*** used, and then restart.
16029
16030_LT_EOF
16031	;;
16032	*)
16033	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16034	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16035	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16036	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16037	  else
16038	    ld_shlibs_F77=no
16039	  fi
16040	;;
16041      esac
16042      ;;
16043
16044    sunos4*)
16045      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16046      wlarc=
16047      hardcode_direct_F77=yes
16048      hardcode_shlibpath_var_F77=no
16049      ;;
16050
16051    *)
16052      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16053	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16054	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16055      else
16056	ld_shlibs_F77=no
16057      fi
16058      ;;
16059    esac
16060
16061    if test "$ld_shlibs_F77" = no; then
16062      runpath_var=
16063      hardcode_libdir_flag_spec_F77=
16064      export_dynamic_flag_spec_F77=
16065      whole_archive_flag_spec_F77=
16066    fi
16067  else
16068    # PORTME fill in a description of your system's linker (not GNU ld)
16069    case $host_os in
16070    aix3*)
16071      allow_undefined_flag_F77=unsupported
16072      always_export_symbols_F77=yes
16073      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'
16074      # Note: this linker hardcodes the directories in LIBPATH if there
16075      # are no directories specified by -L.
16076      hardcode_minus_L_F77=yes
16077      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16078	# Neither direct hardcoding nor static linking is supported with a
16079	# broken collect2.
16080	hardcode_direct_F77=unsupported
16081      fi
16082      ;;
16083
16084    aix4* | aix5*)
16085      if test "$host_cpu" = ia64; then
16086	# On IA64, the linker does run time linking by default, so we don't
16087	# have to do anything special.
16088	aix_use_runtimelinking=no
16089	exp_sym_flag='-Bexport'
16090	no_entry_flag=""
16091      else
16092	# If we're using GNU nm, then we don't want the "-C" option.
16093	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16094	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16095	  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'
16096	else
16097	  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'
16098	fi
16099	aix_use_runtimelinking=no
16100
16101	# Test if we are trying to use run time linking or normal
16102	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16103	# need to do runtime linking.
16104	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16105	  for ld_flag in $LDFLAGS; do
16106  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16107  	    aix_use_runtimelinking=yes
16108  	    break
16109  	  fi
16110	  done
16111	  ;;
16112	esac
16113
16114	exp_sym_flag='-bexport'
16115	no_entry_flag='-bnoentry'
16116      fi
16117
16118      # When large executables or shared objects are built, AIX ld can
16119      # have problems creating the table of contents.  If linking a library
16120      # or program results in "error TOC overflow" add -mminimal-toc to
16121      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16122      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16123
16124      archive_cmds_F77=''
16125      hardcode_direct_F77=yes
16126      hardcode_libdir_separator_F77=':'
16127      link_all_deplibs_F77=yes
16128
16129      if test "$GCC" = yes; then
16130	case $host_os in aix4.[012]|aix4.[012].*)
16131	# We only want to do this on AIX 4.2 and lower, the check
16132	# below for broken collect2 doesn't work under 4.3+
16133	  collect2name=`${CC} -print-prog-name=collect2`
16134	  if test -f "$collect2name" && \
16135  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16136	  then
16137  	  # We have reworked collect2
16138  	  hardcode_direct_F77=yes
16139	  else
16140  	  # We have old collect2
16141  	  hardcode_direct_F77=unsupported
16142  	  # It fails to find uninstalled libraries when the uninstalled
16143  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16144  	  # to unsupported forces relinking
16145  	  hardcode_minus_L_F77=yes
16146  	  hardcode_libdir_flag_spec_F77='-L$libdir'
16147  	  hardcode_libdir_separator_F77=
16148	  fi
16149	  ;;
16150	esac
16151	shared_flag='-shared'
16152	if test "$aix_use_runtimelinking" = yes; then
16153	  shared_flag="$shared_flag "'${wl}-G'
16154	fi
16155      else
16156	# not using gcc
16157	if test "$host_cpu" = ia64; then
16158  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16159  	# chokes on -Wl,-G. The following line is correct:
16160	  shared_flag='-G'
16161	else
16162	  if test "$aix_use_runtimelinking" = yes; then
16163	    shared_flag='${wl}-G'
16164	  else
16165	    shared_flag='${wl}-bM:SRE'
16166	  fi
16167	fi
16168      fi
16169
16170      # It seems that -bexpall does not export symbols beginning with
16171      # underscore (_), so it is better to generate a list of symbols to export.
16172      always_export_symbols_F77=yes
16173      if test "$aix_use_runtimelinking" = yes; then
16174	# Warning - without using the other runtime loading flags (-brtl),
16175	# -berok will link without error, but may produce a broken library.
16176	allow_undefined_flag_F77='-berok'
16177       # Determine the default libpath from the value encoded in an empty executable.
16178       cat >conftest.$ac_ext <<_ACEOF
16179      program main
16180
16181      end
16182_ACEOF
16183rm -f conftest.$ac_objext conftest$ac_exeext
16184if { (ac_try="$ac_link"
16185case "(($ac_try" in
16186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16187  *) ac_try_echo=$ac_try;;
16188esac
16189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16190  (eval "$ac_link") 2>conftest.er1
16191  ac_status=$?
16192  grep -v '^ *+' conftest.er1 >conftest.err
16193  rm -f conftest.er1
16194  cat conftest.err >&5
16195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196  (exit $ac_status); } && {
16197	 test -z "$ac_f77_werror_flag" ||
16198	 test ! -s conftest.err
16199       } && test -s conftest$ac_exeext &&
16200       $as_test_x conftest$ac_exeext; then
16201
16202aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16203}'`
16204# Check for a 64-bit object if we didn't find anything.
16205if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16206}'`; fi
16207else
16208  echo "$as_me: failed program was:" >&5
16209sed 's/^/| /' conftest.$ac_ext >&5
16210
16211
16212fi
16213
16214rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16215      conftest$ac_exeext conftest.$ac_ext
16216if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16217
16218       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16219	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"
16220       else
16221	if test "$host_cpu" = ia64; then
16222	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16223	  allow_undefined_flag_F77="-z nodefs"
16224	  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"
16225	else
16226	 # Determine the default libpath from the value encoded in an empty executable.
16227	 cat >conftest.$ac_ext <<_ACEOF
16228      program main
16229
16230      end
16231_ACEOF
16232rm -f conftest.$ac_objext conftest$ac_exeext
16233if { (ac_try="$ac_link"
16234case "(($ac_try" in
16235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236  *) ac_try_echo=$ac_try;;
16237esac
16238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239  (eval "$ac_link") 2>conftest.er1
16240  ac_status=$?
16241  grep -v '^ *+' conftest.er1 >conftest.err
16242  rm -f conftest.er1
16243  cat conftest.err >&5
16244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245  (exit $ac_status); } && {
16246	 test -z "$ac_f77_werror_flag" ||
16247	 test ! -s conftest.err
16248       } && test -s conftest$ac_exeext &&
16249       $as_test_x conftest$ac_exeext; then
16250
16251aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16252}'`
16253# Check for a 64-bit object if we didn't find anything.
16254if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16255}'`; fi
16256else
16257  echo "$as_me: failed program was:" >&5
16258sed 's/^/| /' conftest.$ac_ext >&5
16259
16260
16261fi
16262
16263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16264      conftest$ac_exeext conftest.$ac_ext
16265if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16266
16267	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16268	  # Warning - without using the other run time loading flags,
16269	  # -berok will link without error, but may produce a broken library.
16270	  no_undefined_flag_F77=' ${wl}-bernotok'
16271	  allow_undefined_flag_F77=' ${wl}-berok'
16272	  # Exported symbols can be pulled into shared objects from archives
16273	  whole_archive_flag_spec_F77='$convenience'
16274	  archive_cmds_need_lc_F77=yes
16275	  # This is similar to how AIX traditionally builds its shared libraries.
16276	  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'
16277	fi
16278      fi
16279      ;;
16280
16281    amigaos*)
16282      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)'
16283      hardcode_libdir_flag_spec_F77='-L$libdir'
16284      hardcode_minus_L_F77=yes
16285      # see comment about different semantics on the GNU ld section
16286      ld_shlibs_F77=no
16287      ;;
16288
16289    bsdi[45]*)
16290      export_dynamic_flag_spec_F77=-rdynamic
16291      ;;
16292
16293    cygwin* | mingw* | pw32*)
16294      # When not using gcc, we currently assume that we are using
16295      # Microsoft Visual C++.
16296      # hardcode_libdir_flag_spec is actually meaningless, as there is
16297      # no search path for DLLs.
16298      hardcode_libdir_flag_spec_F77=' '
16299      allow_undefined_flag_F77=unsupported
16300      # Tell ltmain to make .lib files, not .a files.
16301      libext=lib
16302      # Tell ltmain to make .dll files, not .so files.
16303      shrext_cmds=".dll"
16304      # FIXME: Setting linknames here is a bad hack.
16305      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16306      # The linker will automatically build a .lib file if we build a DLL.
16307      old_archive_From_new_cmds_F77='true'
16308      # FIXME: Should let the user specify the lib program.
16309      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16310      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16311      enable_shared_with_static_runtimes_F77=yes
16312      ;;
16313
16314    darwin* | rhapsody*)
16315      case $host_os in
16316        rhapsody* | darwin1.[012])
16317         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16318         ;;
16319       *) # Darwin 1.3 on
16320         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16321           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16322         else
16323           case ${MACOSX_DEPLOYMENT_TARGET} in
16324             10.[012])
16325               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16326               ;;
16327             10.*)
16328               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16329               ;;
16330           esac
16331         fi
16332         ;;
16333      esac
16334      archive_cmds_need_lc_F77=no
16335      hardcode_direct_F77=no
16336      hardcode_automatic_F77=yes
16337      hardcode_shlibpath_var_F77=unsupported
16338      whole_archive_flag_spec_F77=''
16339      link_all_deplibs_F77=yes
16340    if test "$GCC" = yes ; then
16341    	output_verbose_link_cmd='echo'
16342        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16343      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16344      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16345      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}'
16346      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}'
16347    else
16348      case $cc_basename in
16349        xlc*)
16350         output_verbose_link_cmd='echo'
16351         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16352         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16353          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16354         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16355          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}'
16356          ;;
16357       *)
16358         ld_shlibs_F77=no
16359          ;;
16360      esac
16361    fi
16362      ;;
16363
16364    dgux*)
16365      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16366      hardcode_libdir_flag_spec_F77='-L$libdir'
16367      hardcode_shlibpath_var_F77=no
16368      ;;
16369
16370    freebsd1*)
16371      ld_shlibs_F77=no
16372      ;;
16373
16374    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16375    # support.  Future versions do this automatically, but an explicit c++rt0.o
16376    # does not break anything, and helps significantly (at the cost of a little
16377    # extra space).
16378    freebsd2.2*)
16379      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16380      hardcode_libdir_flag_spec_F77='-R$libdir'
16381      hardcode_direct_F77=yes
16382      hardcode_shlibpath_var_F77=no
16383      ;;
16384
16385    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16386    freebsd2*)
16387      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16388      hardcode_direct_F77=yes
16389      hardcode_minus_L_F77=yes
16390      hardcode_shlibpath_var_F77=no
16391      ;;
16392
16393    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16394    freebsd* | kfreebsd*-gnu | dragonfly*)
16395      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16396      hardcode_libdir_flag_spec_F77='-R$libdir'
16397      hardcode_direct_F77=yes
16398      hardcode_shlibpath_var_F77=no
16399      ;;
16400
16401    hpux9*)
16402      if test "$GCC" = yes; then
16403	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'
16404      else
16405	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'
16406      fi
16407      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16408      hardcode_libdir_separator_F77=:
16409      hardcode_direct_F77=yes
16410
16411      # hardcode_minus_L: Not really in the search PATH,
16412      # but as the default location of the library.
16413      hardcode_minus_L_F77=yes
16414      export_dynamic_flag_spec_F77='${wl}-E'
16415      ;;
16416
16417    hpux10*)
16418      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16419	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16420      else
16421	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16422      fi
16423      if test "$with_gnu_ld" = no; then
16424	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16425	hardcode_libdir_separator_F77=:
16426
16427	hardcode_direct_F77=yes
16428	export_dynamic_flag_spec_F77='${wl}-E'
16429
16430	# hardcode_minus_L: Not really in the search PATH,
16431	# but as the default location of the library.
16432	hardcode_minus_L_F77=yes
16433      fi
16434      ;;
16435
16436    hpux11*)
16437      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16438	case $host_cpu in
16439	hppa*64*)
16440	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16441	  ;;
16442	ia64*)
16443	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16444	  ;;
16445	*)
16446	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16447	  ;;
16448	esac
16449      else
16450	case $host_cpu in
16451	hppa*64*)
16452	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16453	  ;;
16454	ia64*)
16455	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16456	  ;;
16457	*)
16458	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16459	  ;;
16460	esac
16461      fi
16462      if test "$with_gnu_ld" = no; then
16463	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16464	hardcode_libdir_separator_F77=:
16465
16466	case $host_cpu in
16467	hppa*64*|ia64*)
16468	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16469	  hardcode_direct_F77=no
16470	  hardcode_shlibpath_var_F77=no
16471	  ;;
16472	*)
16473	  hardcode_direct_F77=yes
16474	  export_dynamic_flag_spec_F77='${wl}-E'
16475
16476	  # hardcode_minus_L: Not really in the search PATH,
16477	  # but as the default location of the library.
16478	  hardcode_minus_L_F77=yes
16479	  ;;
16480	esac
16481      fi
16482      ;;
16483
16484    irix5* | irix6* | nonstopux*)
16485      if test "$GCC" = yes; then
16486	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'
16487      else
16488	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'
16489	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16490      fi
16491      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16492      hardcode_libdir_separator_F77=:
16493      link_all_deplibs_F77=yes
16494      ;;
16495
16496    netbsd*)
16497      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16498	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16499      else
16500	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16501      fi
16502      hardcode_libdir_flag_spec_F77='-R$libdir'
16503      hardcode_direct_F77=yes
16504      hardcode_shlibpath_var_F77=no
16505      ;;
16506
16507    newsos6)
16508      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16509      hardcode_direct_F77=yes
16510      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16511      hardcode_libdir_separator_F77=:
16512      hardcode_shlibpath_var_F77=no
16513      ;;
16514
16515    openbsd*)
16516      hardcode_direct_F77=yes
16517      hardcode_shlibpath_var_F77=no
16518      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16519	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16520	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16521	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16522	export_dynamic_flag_spec_F77='${wl}-E'
16523      else
16524       case $host_os in
16525	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16526	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16527	   hardcode_libdir_flag_spec_F77='-R$libdir'
16528	   ;;
16529	 *)
16530	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16531	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16532	   ;;
16533       esac
16534      fi
16535      ;;
16536
16537    os2*)
16538      hardcode_libdir_flag_spec_F77='-L$libdir'
16539      hardcode_minus_L_F77=yes
16540      allow_undefined_flag_F77=unsupported
16541      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'
16542      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16543      ;;
16544
16545    osf3*)
16546      if test "$GCC" = yes; then
16547	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16548	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'
16549      else
16550	allow_undefined_flag_F77=' -expect_unresolved \*'
16551	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'
16552      fi
16553      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16554      hardcode_libdir_separator_F77=:
16555      ;;
16556
16557    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16558      if test "$GCC" = yes; then
16559	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16560	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'
16561	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16562      else
16563	allow_undefined_flag_F77=' -expect_unresolved \*'
16564	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'
16565	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~
16566	$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'
16567
16568	# Both c and cxx compiler support -rpath directly
16569	hardcode_libdir_flag_spec_F77='-rpath $libdir'
16570      fi
16571      hardcode_libdir_separator_F77=:
16572      ;;
16573
16574    solaris*)
16575      no_undefined_flag_F77=' -z text'
16576      if test "$GCC" = yes; then
16577	wlarc='${wl}'
16578	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16579	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16580	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16581      else
16582	wlarc=''
16583	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16584	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16585  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16586      fi
16587      hardcode_libdir_flag_spec_F77='-R$libdir'
16588      hardcode_shlibpath_var_F77=no
16589      case $host_os in
16590      solaris2.[0-5] | solaris2.[0-5].*) ;;
16591      *)
16592 	# The compiler driver will combine linker options so we
16593 	# cannot just pass the convience library names through
16594 	# without $wl, iff we do not link with $LD.
16595 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16596 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16597 	case $wlarc in
16598 	'')
16599 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16600 	*)
16601 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16602 	esac ;;
16603      esac
16604      link_all_deplibs_F77=yes
16605      ;;
16606
16607    sunos4*)
16608      if test "x$host_vendor" = xsequent; then
16609	# Use $CC to link under sequent, because it throws in some extra .o
16610	# files that make .init and .fini sections work.
16611	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16612      else
16613	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16614      fi
16615      hardcode_libdir_flag_spec_F77='-L$libdir'
16616      hardcode_direct_F77=yes
16617      hardcode_minus_L_F77=yes
16618      hardcode_shlibpath_var_F77=no
16619      ;;
16620
16621    sysv4)
16622      case $host_vendor in
16623	sni)
16624	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16625	  hardcode_direct_F77=yes # is this really true???
16626	;;
16627	siemens)
16628	  ## LD is ld it makes a PLAMLIB
16629	  ## CC just makes a GrossModule.
16630	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16631	  reload_cmds_F77='$CC -r -o $output$reload_objs'
16632	  hardcode_direct_F77=no
16633        ;;
16634	motorola)
16635	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16636	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16637	;;
16638      esac
16639      runpath_var='LD_RUN_PATH'
16640      hardcode_shlibpath_var_F77=no
16641      ;;
16642
16643    sysv4.3*)
16644      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16645      hardcode_shlibpath_var_F77=no
16646      export_dynamic_flag_spec_F77='-Bexport'
16647      ;;
16648
16649    sysv4*MP*)
16650      if test -d /usr/nec; then
16651	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16652	hardcode_shlibpath_var_F77=no
16653	runpath_var=LD_RUN_PATH
16654	hardcode_runpath_var=yes
16655	ld_shlibs_F77=yes
16656      fi
16657      ;;
16658
16659    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16660      no_undefined_flag_F77='${wl}-z,text'
16661      archive_cmds_need_lc_F77=no
16662      hardcode_shlibpath_var_F77=no
16663      runpath_var='LD_RUN_PATH'
16664
16665      if test "$GCC" = yes; then
16666	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16667	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16668      else
16669	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16670	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16671      fi
16672      ;;
16673
16674    sysv5* | sco3.2v5* | sco5v6*)
16675      # Note: We can NOT use -z defs as we might desire, because we do not
16676      # link with -lc, and that would cause any symbols used from libc to
16677      # always be unresolved, which means just about no library would
16678      # ever link correctly.  If we're not using GNU ld we use -z text
16679      # though, which does catch some bad symbols but isn't as heavy-handed
16680      # as -z defs.
16681      no_undefined_flag_F77='${wl}-z,text'
16682      allow_undefined_flag_F77='${wl}-z,nodefs'
16683      archive_cmds_need_lc_F77=no
16684      hardcode_shlibpath_var_F77=no
16685      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16686      hardcode_libdir_separator_F77=':'
16687      link_all_deplibs_F77=yes
16688      export_dynamic_flag_spec_F77='${wl}-Bexport'
16689      runpath_var='LD_RUN_PATH'
16690
16691      if test "$GCC" = yes; then
16692	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16693	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16694      else
16695	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16696	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16697      fi
16698      ;;
16699
16700    uts4*)
16701      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16702      hardcode_libdir_flag_spec_F77='-L$libdir'
16703      hardcode_shlibpath_var_F77=no
16704      ;;
16705
16706    *)
16707      ld_shlibs_F77=no
16708      ;;
16709    esac
16710  fi
16711
16712{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16713echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16714test "$ld_shlibs_F77" = no && can_build_shared=no
16715
16716#
16717# Do we need to explicitly link libc?
16718#
16719case "x$archive_cmds_need_lc_F77" in
16720x|xyes)
16721  # Assume -lc should be added
16722  archive_cmds_need_lc_F77=yes
16723
16724  if test "$enable_shared" = yes && test "$GCC" = yes; then
16725    case $archive_cmds_F77 in
16726    *'~'*)
16727      # FIXME: we may have to deal with multi-command sequences.
16728      ;;
16729    '$CC '*)
16730      # Test whether the compiler implicitly links with -lc since on some
16731      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16732      # to ld, don't add -lc before -lgcc.
16733      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16734echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16735      $rm conftest*
16736      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16737
16738      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16739  (eval $ac_compile) 2>&5
16740  ac_status=$?
16741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742  (exit $ac_status); } 2>conftest.err; then
16743        soname=conftest
16744        lib=conftest
16745        libobjs=conftest.$ac_objext
16746        deplibs=
16747        wl=$lt_prog_compiler_wl_F77
16748	pic_flag=$lt_prog_compiler_pic_F77
16749        compiler_flags=-v
16750        linker_flags=-v
16751        verstring=
16752        output_objdir=.
16753        libname=conftest
16754        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16755        allow_undefined_flag_F77=
16756        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16757  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16758  ac_status=$?
16759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760  (exit $ac_status); }
16761        then
16762	  archive_cmds_need_lc_F77=no
16763        else
16764	  archive_cmds_need_lc_F77=yes
16765        fi
16766        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16767      else
16768        cat conftest.err 1>&5
16769      fi
16770      $rm conftest*
16771      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16772echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16773      ;;
16774    esac
16775  fi
16776  ;;
16777esac
16778
16779{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16780echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16781library_names_spec=
16782libname_spec='lib$name'
16783soname_spec=
16784shrext_cmds=".so"
16785postinstall_cmds=
16786postuninstall_cmds=
16787finish_cmds=
16788finish_eval=
16789shlibpath_var=
16790shlibpath_overrides_runpath=unknown
16791version_type=none
16792dynamic_linker="$host_os ld.so"
16793sys_lib_dlsearch_path_spec="/lib /usr/lib"
16794if test "$GCC" = yes; then
16795  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16796  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16797    # if the path contains ";" then we assume it to be the separator
16798    # otherwise default to the standard path separator (i.e. ":") - it is
16799    # assumed that no part of a normal pathname contains ";" but that should
16800    # okay in the real world where ";" in dirpaths is itself problematic.
16801    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16802  else
16803    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16804  fi
16805else
16806  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16807fi
16808need_lib_prefix=unknown
16809hardcode_into_libs=no
16810
16811# when you set need_version to no, make sure it does not cause -set_version
16812# flags to be left without arguments
16813need_version=unknown
16814
16815case $host_os in
16816aix3*)
16817  version_type=linux
16818  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16819  shlibpath_var=LIBPATH
16820
16821  # AIX 3 has no versioning support, so we append a major version to the name.
16822  soname_spec='${libname}${release}${shared_ext}$major'
16823  ;;
16824
16825aix4* | aix5*)
16826  version_type=linux
16827  need_lib_prefix=no
16828  need_version=no
16829  hardcode_into_libs=yes
16830  if test "$host_cpu" = ia64; then
16831    # AIX 5 supports IA64
16832    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16833    shlibpath_var=LD_LIBRARY_PATH
16834  else
16835    # With GCC up to 2.95.x, collect2 would create an import file
16836    # for dependence libraries.  The import file would start with
16837    # the line `#! .'.  This would cause the generated library to
16838    # depend on `.', always an invalid library.  This was fixed in
16839    # development snapshots of GCC prior to 3.0.
16840    case $host_os in
16841      aix4 | aix4.[01] | aix4.[01].*)
16842      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16843	   echo ' yes '
16844	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16845	:
16846      else
16847	can_build_shared=no
16848      fi
16849      ;;
16850    esac
16851    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16852    # soname into executable. Probably we can add versioning support to
16853    # collect2, so additional links can be useful in future.
16854    if test "$aix_use_runtimelinking" = yes; then
16855      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16856      # instead of lib<name>.a to let people know that these are not
16857      # typical AIX shared libraries.
16858      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16859    else
16860      # We preserve .a as extension for shared libraries through AIX4.2
16861      # and later when we are not doing run time linking.
16862      library_names_spec='${libname}${release}.a $libname.a'
16863      soname_spec='${libname}${release}${shared_ext}$major'
16864    fi
16865    shlibpath_var=LIBPATH
16866  fi
16867  ;;
16868
16869amigaos*)
16870  library_names_spec='$libname.ixlibrary $libname.a'
16871  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16872  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'
16873  ;;
16874
16875beos*)
16876  library_names_spec='${libname}${shared_ext}'
16877  dynamic_linker="$host_os ld.so"
16878  shlibpath_var=LIBRARY_PATH
16879  ;;
16880
16881bsdi[45]*)
16882  version_type=linux
16883  need_version=no
16884  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16885  soname_spec='${libname}${release}${shared_ext}$major'
16886  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16887  shlibpath_var=LD_LIBRARY_PATH
16888  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16889  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16890  # the default ld.so.conf also contains /usr/contrib/lib and
16891  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16892  # libtool to hard-code these into programs
16893  ;;
16894
16895cygwin* | mingw* | pw32*)
16896  version_type=windows
16897  shrext_cmds=".dll"
16898  need_version=no
16899  need_lib_prefix=no
16900
16901  case $GCC,$host_os in
16902  yes,cygwin* | yes,mingw* | yes,pw32*)
16903    library_names_spec='$libname.dll.a'
16904    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16905    postinstall_cmds='base_file=`basename \${file}`~
16906      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16907      dldir=$destdir/`dirname \$dlpath`~
16908      test -d \$dldir || mkdir -p \$dldir~
16909      $install_prog $dir/$dlname \$dldir/$dlname~
16910      chmod a+x \$dldir/$dlname'
16911    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16912      dlpath=$dir/\$dldll~
16913       $rm \$dlpath'
16914    shlibpath_overrides_runpath=yes
16915
16916    case $host_os in
16917    cygwin*)
16918      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16919      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16920      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16921      ;;
16922    mingw*)
16923      # MinGW DLLs use traditional 'lib' prefix
16924      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16925      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16926      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16927        # It is most probably a Windows format PATH printed by
16928        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16929        # path with ; separators, and with drive letters. We can handle the
16930        # drive letters (cygwin fileutils understands them), so leave them,
16931        # especially as we might pass files found there to a mingw objdump,
16932        # which wouldn't understand a cygwinified path. Ahh.
16933        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16934      else
16935        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16936      fi
16937      ;;
16938    pw32*)
16939      # pw32 DLLs use 'pw' prefix rather than 'lib'
16940      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16941      ;;
16942    esac
16943    ;;
16944
16945  *)
16946    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16947    ;;
16948  esac
16949  dynamic_linker='Win32 ld.exe'
16950  # FIXME: first we should search . and the directory the executable is in
16951  shlibpath_var=PATH
16952  ;;
16953
16954darwin* | rhapsody*)
16955  dynamic_linker="$host_os dyld"
16956  version_type=darwin
16957  need_lib_prefix=no
16958  need_version=no
16959  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16960  soname_spec='${libname}${release}${major}$shared_ext'
16961  shlibpath_overrides_runpath=yes
16962  shlibpath_var=DYLD_LIBRARY_PATH
16963  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16964  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16965  if test "$GCC" = yes; then
16966    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16967  else
16968    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16969  fi
16970  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16971  ;;
16972
16973dgux*)
16974  version_type=linux
16975  need_lib_prefix=no
16976  need_version=no
16977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16978  soname_spec='${libname}${release}${shared_ext}$major'
16979  shlibpath_var=LD_LIBRARY_PATH
16980  ;;
16981
16982freebsd1*)
16983  dynamic_linker=no
16984  ;;
16985
16986kfreebsd*-gnu)
16987  version_type=linux
16988  need_lib_prefix=no
16989  need_version=no
16990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16991  soname_spec='${libname}${release}${shared_ext}$major'
16992  shlibpath_var=LD_LIBRARY_PATH
16993  shlibpath_overrides_runpath=no
16994  hardcode_into_libs=yes
16995  dynamic_linker='GNU ld.so'
16996  ;;
16997
16998freebsd* | dragonfly*)
16999  # DragonFly does not have aout.  When/if they implement a new
17000  # versioning mechanism, adjust this.
17001  if test -x /usr/bin/objformat; then
17002    objformat=`/usr/bin/objformat`
17003  else
17004    case $host_os in
17005    freebsd[123]*) objformat=aout ;;
17006    *) objformat=elf ;;
17007    esac
17008  fi
17009  version_type=freebsd-$objformat
17010  case $version_type in
17011    freebsd-elf*)
17012      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17013      need_version=no
17014      need_lib_prefix=no
17015      ;;
17016    freebsd-*)
17017      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17018      need_version=yes
17019      ;;
17020  esac
17021  shlibpath_var=LD_LIBRARY_PATH
17022  case $host_os in
17023  freebsd2*)
17024    shlibpath_overrides_runpath=yes
17025    ;;
17026  freebsd3.[01]* | freebsdelf3.[01]*)
17027    shlibpath_overrides_runpath=yes
17028    hardcode_into_libs=yes
17029    ;;
17030  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17031  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17032    shlibpath_overrides_runpath=no
17033    hardcode_into_libs=yes
17034    ;;
17035  freebsd*) # from 4.6 on
17036    shlibpath_overrides_runpath=yes
17037    hardcode_into_libs=yes
17038    ;;
17039  esac
17040  ;;
17041
17042gnu*)
17043  version_type=linux
17044  need_lib_prefix=no
17045  need_version=no
17046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17047  soname_spec='${libname}${release}${shared_ext}$major'
17048  shlibpath_var=LD_LIBRARY_PATH
17049  hardcode_into_libs=yes
17050  ;;
17051
17052hpux9* | hpux10* | hpux11*)
17053  # Give a soname corresponding to the major version so that dld.sl refuses to
17054  # link against other versions.
17055  version_type=sunos
17056  need_lib_prefix=no
17057  need_version=no
17058  case $host_cpu in
17059  ia64*)
17060    shrext_cmds='.so'
17061    hardcode_into_libs=yes
17062    dynamic_linker="$host_os dld.so"
17063    shlibpath_var=LD_LIBRARY_PATH
17064    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17065    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17066    soname_spec='${libname}${release}${shared_ext}$major'
17067    if test "X$HPUX_IA64_MODE" = X32; then
17068      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17069    else
17070      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17071    fi
17072    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17073    ;;
17074   hppa*64*)
17075     shrext_cmds='.sl'
17076     hardcode_into_libs=yes
17077     dynamic_linker="$host_os dld.sl"
17078     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17079     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17081     soname_spec='${libname}${release}${shared_ext}$major'
17082     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17083     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17084     ;;
17085   *)
17086    shrext_cmds='.sl'
17087    dynamic_linker="$host_os dld.sl"
17088    shlibpath_var=SHLIB_PATH
17089    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17090    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17091    soname_spec='${libname}${release}${shared_ext}$major'
17092    ;;
17093  esac
17094  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17095  postinstall_cmds='chmod 555 $lib'
17096  ;;
17097
17098interix3*)
17099  version_type=linux
17100  need_lib_prefix=no
17101  need_version=no
17102  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17103  soname_spec='${libname}${release}${shared_ext}$major'
17104  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17105  shlibpath_var=LD_LIBRARY_PATH
17106  shlibpath_overrides_runpath=no
17107  hardcode_into_libs=yes
17108  ;;
17109
17110irix5* | irix6* | nonstopux*)
17111  case $host_os in
17112    nonstopux*) version_type=nonstopux ;;
17113    *)
17114	if test "$lt_cv_prog_gnu_ld" = yes; then
17115		version_type=linux
17116	else
17117		version_type=irix
17118	fi ;;
17119  esac
17120  need_lib_prefix=no
17121  need_version=no
17122  soname_spec='${libname}${release}${shared_ext}$major'
17123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17124  case $host_os in
17125  irix5* | nonstopux*)
17126    libsuff= shlibsuff=
17127    ;;
17128  *)
17129    case $LD in # libtool.m4 will add one of these switches to LD
17130    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17131      libsuff= shlibsuff= libmagic=32-bit;;
17132    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17133      libsuff=32 shlibsuff=N32 libmagic=N32;;
17134    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17135      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17136    *) libsuff= shlibsuff= libmagic=never-match;;
17137    esac
17138    ;;
17139  esac
17140  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17141  shlibpath_overrides_runpath=no
17142  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17143  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17144  hardcode_into_libs=yes
17145  ;;
17146
17147# No shared lib support for Linux oldld, aout, or coff.
17148linux*oldld* | linux*aout* | linux*coff*)
17149  dynamic_linker=no
17150  ;;
17151
17152# This must be Linux ELF.
17153linux*)
17154  version_type=linux
17155  need_lib_prefix=no
17156  need_version=no
17157  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17158  soname_spec='${libname}${release}${shared_ext}$major'
17159  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17160  shlibpath_var=LD_LIBRARY_PATH
17161  shlibpath_overrides_runpath=no
17162  # This implies no fast_install, which is unacceptable.
17163  # Some rework will be needed to allow for fast_install
17164  # before this can be enabled.
17165  hardcode_into_libs=yes
17166
17167  # Append ld.so.conf contents to the search path
17168  if test -f /etc/ld.so.conf; then
17169    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17170    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17171  fi
17172
17173  # We used to test for /lib/ld.so.1 and disable shared libraries on
17174  # powerpc, because MkLinux only supported shared libraries with the
17175  # GNU dynamic linker.  Since this was broken with cross compilers,
17176  # most powerpc-linux boxes support dynamic linking these days and
17177  # people can always --disable-shared, the test was removed, and we
17178  # assume the GNU/Linux dynamic linker is in use.
17179  dynamic_linker='GNU/Linux ld.so'
17180  ;;
17181
17182knetbsd*-gnu)
17183  version_type=linux
17184  need_lib_prefix=no
17185  need_version=no
17186  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17187  soname_spec='${libname}${release}${shared_ext}$major'
17188  shlibpath_var=LD_LIBRARY_PATH
17189  shlibpath_overrides_runpath=no
17190  hardcode_into_libs=yes
17191  dynamic_linker='GNU ld.so'
17192  ;;
17193
17194netbsd*)
17195  version_type=sunos
17196  need_lib_prefix=no
17197  need_version=no
17198  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17199    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17200    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17201    dynamic_linker='NetBSD (a.out) ld.so'
17202  else
17203    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17204    soname_spec='${libname}${release}${shared_ext}$major'
17205    dynamic_linker='NetBSD ld.elf_so'
17206  fi
17207  shlibpath_var=LD_LIBRARY_PATH
17208  shlibpath_overrides_runpath=yes
17209  hardcode_into_libs=yes
17210  ;;
17211
17212newsos6)
17213  version_type=linux
17214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215  shlibpath_var=LD_LIBRARY_PATH
17216  shlibpath_overrides_runpath=yes
17217  ;;
17218
17219nto-qnx*)
17220  version_type=linux
17221  need_lib_prefix=no
17222  need_version=no
17223  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17224  soname_spec='${libname}${release}${shared_ext}$major'
17225  shlibpath_var=LD_LIBRARY_PATH
17226  shlibpath_overrides_runpath=yes
17227  ;;
17228
17229openbsd*)
17230  version_type=sunos
17231  sys_lib_dlsearch_path_spec="/usr/lib"
17232  need_lib_prefix=no
17233  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17234  case $host_os in
17235    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17236    *)                         need_version=no  ;;
17237  esac
17238  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17239  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17240  shlibpath_var=LD_LIBRARY_PATH
17241  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17242    case $host_os in
17243      openbsd2.[89] | openbsd2.[89].*)
17244	shlibpath_overrides_runpath=no
17245	;;
17246      *)
17247	shlibpath_overrides_runpath=yes
17248	;;
17249      esac
17250  else
17251    shlibpath_overrides_runpath=yes
17252  fi
17253  ;;
17254
17255os2*)
17256  libname_spec='$name'
17257  shrext_cmds=".dll"
17258  need_lib_prefix=no
17259  library_names_spec='$libname${shared_ext} $libname.a'
17260  dynamic_linker='OS/2 ld.exe'
17261  shlibpath_var=LIBPATH
17262  ;;
17263
17264osf3* | osf4* | osf5*)
17265  version_type=osf
17266  need_lib_prefix=no
17267  need_version=no
17268  soname_spec='${libname}${release}${shared_ext}$major'
17269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17270  shlibpath_var=LD_LIBRARY_PATH
17271  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17272  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17273  ;;
17274
17275solaris*)
17276  version_type=linux
17277  need_lib_prefix=no
17278  need_version=no
17279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17280  soname_spec='${libname}${release}${shared_ext}$major'
17281  shlibpath_var=LD_LIBRARY_PATH
17282  shlibpath_overrides_runpath=yes
17283  hardcode_into_libs=yes
17284  # ldd complains unless libraries are executable
17285  postinstall_cmds='chmod +x $lib'
17286  ;;
17287
17288sunos4*)
17289  version_type=sunos
17290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17291  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17292  shlibpath_var=LD_LIBRARY_PATH
17293  shlibpath_overrides_runpath=yes
17294  if test "$with_gnu_ld" = yes; then
17295    need_lib_prefix=no
17296  fi
17297  need_version=yes
17298  ;;
17299
17300sysv4 | sysv4.3*)
17301  version_type=linux
17302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17303  soname_spec='${libname}${release}${shared_ext}$major'
17304  shlibpath_var=LD_LIBRARY_PATH
17305  case $host_vendor in
17306    sni)
17307      shlibpath_overrides_runpath=no
17308      need_lib_prefix=no
17309      export_dynamic_flag_spec='${wl}-Blargedynsym'
17310      runpath_var=LD_RUN_PATH
17311      ;;
17312    siemens)
17313      need_lib_prefix=no
17314      ;;
17315    motorola)
17316      need_lib_prefix=no
17317      need_version=no
17318      shlibpath_overrides_runpath=no
17319      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17320      ;;
17321  esac
17322  ;;
17323
17324sysv4*MP*)
17325  if test -d /usr/nec ;then
17326    version_type=linux
17327    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17328    soname_spec='$libname${shared_ext}.$major'
17329    shlibpath_var=LD_LIBRARY_PATH
17330  fi
17331  ;;
17332
17333sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17334  version_type=freebsd-elf
17335  need_lib_prefix=no
17336  need_version=no
17337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17338  soname_spec='${libname}${release}${shared_ext}$major'
17339  shlibpath_var=LD_LIBRARY_PATH
17340  hardcode_into_libs=yes
17341  if test "$with_gnu_ld" = yes; then
17342    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17343    shlibpath_overrides_runpath=no
17344  else
17345    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17346    shlibpath_overrides_runpath=yes
17347    case $host_os in
17348      sco3.2v5*)
17349        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17350	;;
17351    esac
17352  fi
17353  sys_lib_dlsearch_path_spec='/usr/lib'
17354  ;;
17355
17356uts4*)
17357  version_type=linux
17358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17359  soname_spec='${libname}${release}${shared_ext}$major'
17360  shlibpath_var=LD_LIBRARY_PATH
17361  ;;
17362
17363*)
17364  dynamic_linker=no
17365  ;;
17366esac
17367{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17368echo "${ECHO_T}$dynamic_linker" >&6; }
17369test "$dynamic_linker" = no && can_build_shared=no
17370
17371variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17372if test "$GCC" = yes; then
17373  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17374fi
17375
17376{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17377echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17378hardcode_action_F77=
17379if test -n "$hardcode_libdir_flag_spec_F77" || \
17380   test -n "$runpath_var_F77" || \
17381   test "X$hardcode_automatic_F77" = "Xyes" ; then
17382
17383  # We can hardcode non-existant directories.
17384  if test "$hardcode_direct_F77" != no &&
17385     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17386     # have to relink, otherwise we might link with an installed library
17387     # when we should be linking with a yet-to-be-installed one
17388     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17389     test "$hardcode_minus_L_F77" != no; then
17390    # Linking always hardcodes the temporary library directory.
17391    hardcode_action_F77=relink
17392  else
17393    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17394    hardcode_action_F77=immediate
17395  fi
17396else
17397  # We cannot hardcode anything, or else we can only hardcode existing
17398  # directories.
17399  hardcode_action_F77=unsupported
17400fi
17401{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17402echo "${ECHO_T}$hardcode_action_F77" >&6; }
17403
17404if test "$hardcode_action_F77" = relink; then
17405  # Fast installation is not supported
17406  enable_fast_install=no
17407elif test "$shlibpath_overrides_runpath" = yes ||
17408     test "$enable_shared" = no; then
17409  # Fast installation is not necessary
17410  enable_fast_install=needless
17411fi
17412
17413
17414# The else clause should only fire when bootstrapping the
17415# libtool distribution, otherwise you forgot to ship ltmain.sh
17416# with your package, and you will get complaints that there are
17417# no rules to generate ltmain.sh.
17418if test -f "$ltmain"; then
17419  # See if we are running on zsh, and set the options which allow our commands through
17420  # without removal of \ escapes.
17421  if test -n "${ZSH_VERSION+set}" ; then
17422    setopt NO_GLOB_SUBST
17423  fi
17424  # Now quote all the things that may contain metacharacters while being
17425  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17426  # variables and quote the copies for generation of the libtool script.
17427  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17428    SED SHELL STRIP \
17429    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17430    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17431    deplibs_check_method reload_flag reload_cmds need_locks \
17432    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17433    lt_cv_sys_global_symbol_to_c_name_address \
17434    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17435    old_postinstall_cmds old_postuninstall_cmds \
17436    compiler_F77 \
17437    CC_F77 \
17438    LD_F77 \
17439    lt_prog_compiler_wl_F77 \
17440    lt_prog_compiler_pic_F77 \
17441    lt_prog_compiler_static_F77 \
17442    lt_prog_compiler_no_builtin_flag_F77 \
17443    export_dynamic_flag_spec_F77 \
17444    thread_safe_flag_spec_F77 \
17445    whole_archive_flag_spec_F77 \
17446    enable_shared_with_static_runtimes_F77 \
17447    old_archive_cmds_F77 \
17448    old_archive_from_new_cmds_F77 \
17449    predep_objects_F77 \
17450    postdep_objects_F77 \
17451    predeps_F77 \
17452    postdeps_F77 \
17453    compiler_lib_search_path_F77 \
17454    archive_cmds_F77 \
17455    archive_expsym_cmds_F77 \
17456    postinstall_cmds_F77 \
17457    postuninstall_cmds_F77 \
17458    old_archive_from_expsyms_cmds_F77 \
17459    allow_undefined_flag_F77 \
17460    no_undefined_flag_F77 \
17461    export_symbols_cmds_F77 \
17462    hardcode_libdir_flag_spec_F77 \
17463    hardcode_libdir_flag_spec_ld_F77 \
17464    hardcode_libdir_separator_F77 \
17465    hardcode_automatic_F77 \
17466    module_cmds_F77 \
17467    module_expsym_cmds_F77 \
17468    lt_cv_prog_compiler_c_o_F77 \
17469    exclude_expsyms_F77 \
17470    include_expsyms_F77; do
17471
17472    case $var in
17473    old_archive_cmds_F77 | \
17474    old_archive_from_new_cmds_F77 | \
17475    archive_cmds_F77 | \
17476    archive_expsym_cmds_F77 | \
17477    module_cmds_F77 | \
17478    module_expsym_cmds_F77 | \
17479    old_archive_from_expsyms_cmds_F77 | \
17480    export_symbols_cmds_F77 | \
17481    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17482    postinstall_cmds | postuninstall_cmds | \
17483    old_postinstall_cmds | old_postuninstall_cmds | \
17484    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17485      # Double-quote double-evaled strings.
17486      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17487      ;;
17488    *)
17489      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17490      ;;
17491    esac
17492  done
17493
17494  case $lt_echo in
17495  *'\$0 --fallback-echo"')
17496    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17497    ;;
17498  esac
17499
17500cfgfile="$ofile"
17501
17502  cat <<__EOF__ >> "$cfgfile"
17503# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17504
17505# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17506
17507# Shell to use when invoking shell scripts.
17508SHELL=$lt_SHELL
17509
17510# Whether or not to build shared libraries.
17511build_libtool_libs=$enable_shared
17512
17513# Whether or not to build static libraries.
17514build_old_libs=$enable_static
17515
17516# Whether or not to add -lc for building shared libraries.
17517build_libtool_need_lc=$archive_cmds_need_lc_F77
17518
17519# Whether or not to disallow shared libs when runtime libs are static
17520allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17521
17522# Whether or not to optimize for fast installation.
17523fast_install=$enable_fast_install
17524
17525# The host system.
17526host_alias=$host_alias
17527host=$host
17528host_os=$host_os
17529
17530# The build system.
17531build_alias=$build_alias
17532build=$build
17533build_os=$build_os
17534
17535# An echo program that does not interpret backslashes.
17536echo=$lt_echo
17537
17538# The archiver.
17539AR=$lt_AR
17540AR_FLAGS=$lt_AR_FLAGS
17541
17542# A C compiler.
17543LTCC=$lt_LTCC
17544
17545# LTCC compiler flags.
17546LTCFLAGS=$lt_LTCFLAGS
17547
17548# A language-specific compiler.
17549CC=$lt_compiler_F77
17550
17551# Is the compiler the GNU C compiler?
17552with_gcc=$GCC_F77
17553
17554# An ERE matcher.
17555EGREP=$lt_EGREP
17556
17557# The linker used to build libraries.
17558LD=$lt_LD_F77
17559
17560# Whether we need hard or soft links.
17561LN_S=$lt_LN_S
17562
17563# A BSD-compatible nm program.
17564NM=$lt_NM
17565
17566# A symbol stripping program
17567STRIP=$lt_STRIP
17568
17569# Used to examine libraries when file_magic_cmd begins "file"
17570MAGIC_CMD=$MAGIC_CMD
17571
17572# Used on cygwin: DLL creation program.
17573DLLTOOL="$DLLTOOL"
17574
17575# Used on cygwin: object dumper.
17576OBJDUMP="$OBJDUMP"
17577
17578# Used on cygwin: assembler.
17579AS="$AS"
17580
17581# The name of the directory that contains temporary libtool files.
17582objdir=$objdir
17583
17584# How to create reloadable object files.
17585reload_flag=$lt_reload_flag
17586reload_cmds=$lt_reload_cmds
17587
17588# How to pass a linker flag through the compiler.
17589wl=$lt_lt_prog_compiler_wl_F77
17590
17591# Object file suffix (normally "o").
17592objext="$ac_objext"
17593
17594# Old archive suffix (normally "a").
17595libext="$libext"
17596
17597# Shared library suffix (normally ".so").
17598shrext_cmds='$shrext_cmds'
17599
17600# Executable file suffix (normally "").
17601exeext="$exeext"
17602
17603# Additional compiler flags for building library objects.
17604pic_flag=$lt_lt_prog_compiler_pic_F77
17605pic_mode=$pic_mode
17606
17607# What is the maximum length of a command?
17608max_cmd_len=$lt_cv_sys_max_cmd_len
17609
17610# Does compiler simultaneously support -c and -o options?
17611compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17612
17613# Must we lock files when doing compilation?
17614need_locks=$lt_need_locks
17615
17616# Do we need the lib prefix for modules?
17617need_lib_prefix=$need_lib_prefix
17618
17619# Do we need a version for libraries?
17620need_version=$need_version
17621
17622# Whether dlopen is supported.
17623dlopen_support=$enable_dlopen
17624
17625# Whether dlopen of programs is supported.
17626dlopen_self=$enable_dlopen_self
17627
17628# Whether dlopen of statically linked programs is supported.
17629dlopen_self_static=$enable_dlopen_self_static
17630
17631# Compiler flag to prevent dynamic linking.
17632link_static_flag=$lt_lt_prog_compiler_static_F77
17633
17634# Compiler flag to turn off builtin functions.
17635no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17636
17637# Compiler flag to allow reflexive dlopens.
17638export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17639
17640# Compiler flag to generate shared objects directly from archives.
17641whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17642
17643# Compiler flag to generate thread-safe objects.
17644thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17645
17646# Library versioning type.
17647version_type=$version_type
17648
17649# Format of library name prefix.
17650libname_spec=$lt_libname_spec
17651
17652# List of archive names.  First name is the real one, the rest are links.
17653# The last name is the one that the linker finds with -lNAME.
17654library_names_spec=$lt_library_names_spec
17655
17656# The coded name of the library, if different from the real name.
17657soname_spec=$lt_soname_spec
17658
17659# Commands used to build and install an old-style archive.
17660RANLIB=$lt_RANLIB
17661old_archive_cmds=$lt_old_archive_cmds_F77
17662old_postinstall_cmds=$lt_old_postinstall_cmds
17663old_postuninstall_cmds=$lt_old_postuninstall_cmds
17664
17665# Create an old-style archive from a shared archive.
17666old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17667
17668# Create a temporary old-style archive to link instead of a shared archive.
17669old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17670
17671# Commands used to build and install a shared archive.
17672archive_cmds=$lt_archive_cmds_F77
17673archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17674postinstall_cmds=$lt_postinstall_cmds
17675postuninstall_cmds=$lt_postuninstall_cmds
17676
17677# Commands used to build a loadable module (assumed same as above if empty)
17678module_cmds=$lt_module_cmds_F77
17679module_expsym_cmds=$lt_module_expsym_cmds_F77
17680
17681# Commands to strip libraries.
17682old_striplib=$lt_old_striplib
17683striplib=$lt_striplib
17684
17685# Dependencies to place before the objects being linked to create a
17686# shared library.
17687predep_objects=$lt_predep_objects_F77
17688
17689# Dependencies to place after the objects being linked to create a
17690# shared library.
17691postdep_objects=$lt_postdep_objects_F77
17692
17693# Dependencies to place before the objects being linked to create a
17694# shared library.
17695predeps=$lt_predeps_F77
17696
17697# Dependencies to place after the objects being linked to create a
17698# shared library.
17699postdeps=$lt_postdeps_F77
17700
17701# The library search path used internally by the compiler when linking
17702# a shared library.
17703compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17704
17705# Method to check whether dependent libraries are shared objects.
17706deplibs_check_method=$lt_deplibs_check_method
17707
17708# Command to use when deplibs_check_method == file_magic.
17709file_magic_cmd=$lt_file_magic_cmd
17710
17711# Flag that allows shared libraries with undefined symbols to be built.
17712allow_undefined_flag=$lt_allow_undefined_flag_F77
17713
17714# Flag that forces no undefined symbols.
17715no_undefined_flag=$lt_no_undefined_flag_F77
17716
17717# Commands used to finish a libtool library installation in a directory.
17718finish_cmds=$lt_finish_cmds
17719
17720# Same as above, but a single script fragment to be evaled but not shown.
17721finish_eval=$lt_finish_eval
17722
17723# Take the output of nm and produce a listing of raw symbols and C names.
17724global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17725
17726# Transform the output of nm in a proper C declaration
17727global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17728
17729# Transform the output of nm in a C name address pair
17730global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17731
17732# This is the shared library runtime path variable.
17733runpath_var=$runpath_var
17734
17735# This is the shared library path variable.
17736shlibpath_var=$shlibpath_var
17737
17738# Is shlibpath searched before the hard-coded library search path?
17739shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17740
17741# How to hardcode a shared library path into an executable.
17742hardcode_action=$hardcode_action_F77
17743
17744# Whether we should hardcode library paths into libraries.
17745hardcode_into_libs=$hardcode_into_libs
17746
17747# Flag to hardcode \$libdir into a binary during linking.
17748# This must work even if \$libdir does not exist.
17749hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17750
17751# If ld is used when linking, flag to hardcode \$libdir into
17752# a binary during linking. This must work even if \$libdir does
17753# not exist.
17754hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17755
17756# Whether we need a single -rpath flag with a separated argument.
17757hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17758
17759# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17760# resulting binary.
17761hardcode_direct=$hardcode_direct_F77
17762
17763# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17764# resulting binary.
17765hardcode_minus_L=$hardcode_minus_L_F77
17766
17767# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17768# the resulting binary.
17769hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17770
17771# Set to yes if building a shared library automatically hardcodes DIR into the library
17772# and all subsequent libraries and executables linked against it.
17773hardcode_automatic=$hardcode_automatic_F77
17774
17775# Variables whose values should be saved in libtool wrapper scripts and
17776# restored at relink time.
17777variables_saved_for_relink="$variables_saved_for_relink"
17778
17779# Whether libtool must link a program against all its dependency libraries.
17780link_all_deplibs=$link_all_deplibs_F77
17781
17782# Compile-time system search path for libraries
17783sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17784
17785# Run-time system search path for libraries
17786sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17787
17788# Fix the shell variable \$srcfile for the compiler.
17789fix_srcfile_path="$fix_srcfile_path_F77"
17790
17791# Set to yes if exported symbols are required.
17792always_export_symbols=$always_export_symbols_F77
17793
17794# The commands to list exported symbols.
17795export_symbols_cmds=$lt_export_symbols_cmds_F77
17796
17797# The commands to extract the exported symbol list from a shared archive.
17798extract_expsyms_cmds=$lt_extract_expsyms_cmds
17799
17800# Symbols that should not be listed in the preloaded symbols.
17801exclude_expsyms=$lt_exclude_expsyms_F77
17802
17803# Symbols that must always be exported.
17804include_expsyms=$lt_include_expsyms_F77
17805
17806# ### END LIBTOOL TAG CONFIG: $tagname
17807
17808__EOF__
17809
17810
17811else
17812  # If there is no Makefile yet, we rely on a make rule to execute
17813  # `config.status --recheck' to rerun these tests and create the
17814  # libtool script then.
17815  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17816  if test -f "$ltmain_in"; then
17817    test -f Makefile && make "$ltmain"
17818  fi
17819fi
17820
17821
17822ac_ext=c
17823ac_cpp='$CPP $CPPFLAGS'
17824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17826ac_compiler_gnu=$ac_cv_c_compiler_gnu
17827
17828CC="$lt_save_CC"
17829
17830	else
17831	  tagname=""
17832	fi
17833	;;
17834
17835      GCJ)
17836	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17837
17838
17839# Source file extension for Java test sources.
17840ac_ext=java
17841
17842# Object file extension for compiled Java test sources.
17843objext=o
17844objext_GCJ=$objext
17845
17846# Code to be used in simple compile tests
17847lt_simple_compile_test_code="class foo {}\n"
17848
17849# Code to be used in simple link tests
17850lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17851
17852# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17853
17854# If no C compiler was specified, use CC.
17855LTCC=${LTCC-"$CC"}
17856
17857# If no C compiler flags were specified, use CFLAGS.
17858LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17859
17860# Allow CC to be a program name with arguments.
17861compiler=$CC
17862
17863
17864# save warnings/boilerplate of simple test code
17865ac_outfile=conftest.$ac_objext
17866printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17867eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17868_lt_compiler_boilerplate=`cat conftest.err`
17869$rm conftest*
17870
17871ac_outfile=conftest.$ac_objext
17872printf "$lt_simple_link_test_code" >conftest.$ac_ext
17873eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17874_lt_linker_boilerplate=`cat conftest.err`
17875$rm conftest*
17876
17877
17878# Allow CC to be a program name with arguments.
17879lt_save_CC="$CC"
17880CC=${GCJ-"gcj"}
17881compiler=$CC
17882compiler_GCJ=$CC
17883for cc_temp in $compiler""; do
17884  case $cc_temp in
17885    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17886    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17887    \-*) ;;
17888    *) break;;
17889  esac
17890done
17891cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17892
17893
17894# GCJ did not exist at the time GCC didn't implicitly link libc in.
17895archive_cmds_need_lc_GCJ=no
17896
17897old_archive_cmds_GCJ=$old_archive_cmds
17898
17899## CAVEAT EMPTOR:
17900## There is no encapsulation within the following macros, do not change
17901## the running order or otherwise move them around unless you know exactly
17902## what you are doing...
17903
17904lt_prog_compiler_no_builtin_flag_GCJ=
17905
17906if test "$GCC" = yes; then
17907  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17908
17909
17910{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17911echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17912if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17913  echo $ECHO_N "(cached) $ECHO_C" >&6
17914else
17915  lt_cv_prog_compiler_rtti_exceptions=no
17916  ac_outfile=conftest.$ac_objext
17917   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17918   lt_compiler_flag="-fno-rtti -fno-exceptions"
17919   # Insert the option either (1) after the last *FLAGS variable, or
17920   # (2) before a word containing "conftest.", or (3) at the end.
17921   # Note that $ac_compile itself does not contain backslashes and begins
17922   # with a dollar sign (not a hyphen), so the echo should work correctly.
17923   # The option is referenced via a variable to avoid confusing sed.
17924   lt_compile=`echo "$ac_compile" | $SED \
17925   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17926   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17927   -e 's:$: $lt_compiler_flag:'`
17928   (eval echo "\"\$as_me:17928: $lt_compile\"" >&5)
17929   (eval "$lt_compile" 2>conftest.err)
17930   ac_status=$?
17931   cat conftest.err >&5
17932   echo "$as_me:17932: \$? = $ac_status" >&5
17933   if (exit $ac_status) && test -s "$ac_outfile"; then
17934     # The compiler can only warn and ignore the option if not recognized
17935     # So say no if there are warnings other than the usual output.
17936     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17937     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17938     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17939       lt_cv_prog_compiler_rtti_exceptions=yes
17940     fi
17941   fi
17942   $rm conftest*
17943
17944fi
17945{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17946echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17947
17948if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17949    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17950else
17951    :
17952fi
17953
17954fi
17955
17956lt_prog_compiler_wl_GCJ=
17957lt_prog_compiler_pic_GCJ=
17958lt_prog_compiler_static_GCJ=
17959
17960{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17961echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17962
17963  if test "$GCC" = yes; then
17964    lt_prog_compiler_wl_GCJ='-Wl,'
17965    lt_prog_compiler_static_GCJ='-static'
17966
17967    case $host_os in
17968      aix*)
17969      # All AIX code is PIC.
17970      if test "$host_cpu" = ia64; then
17971	# AIX 5 now supports IA64 processor
17972	lt_prog_compiler_static_GCJ='-Bstatic'
17973      fi
17974      ;;
17975
17976    amigaos*)
17977      # FIXME: we need at least 68020 code to build shared libraries, but
17978      # adding the `-m68020' flag to GCC prevents building anything better,
17979      # like `-m68040'.
17980      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17981      ;;
17982
17983    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17984      # PIC is the default for these OSes.
17985      ;;
17986
17987    mingw* | cygwin* | pw32* | os2*)
17988      # This hack is so that the source file can tell whether it is being
17989      # built for inclusion in a dll (and should export symbols for example).
17990      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17991      # (--disable-auto-import) libraries
17992      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17993      ;;
17994
17995    darwin* | rhapsody*)
17996      # PIC is the default on this platform
17997      # Common symbols not allowed in MH_DYLIB files
17998      lt_prog_compiler_pic_GCJ='-fno-common'
17999      ;;
18000
18001    interix3*)
18002      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18003      # Instead, we relocate shared libraries at runtime.
18004      ;;
18005
18006    msdosdjgpp*)
18007      # Just because we use GCC doesn't mean we suddenly get shared libraries
18008      # on systems that don't support them.
18009      lt_prog_compiler_can_build_shared_GCJ=no
18010      enable_shared=no
18011      ;;
18012
18013    sysv4*MP*)
18014      if test -d /usr/nec; then
18015	lt_prog_compiler_pic_GCJ=-Kconform_pic
18016      fi
18017      ;;
18018
18019    hpux*)
18020      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18021      # not for PA HP-UX.
18022      case $host_cpu in
18023      hppa*64*|ia64*)
18024	# +Z the default
18025	;;
18026      *)
18027	lt_prog_compiler_pic_GCJ='-fPIC'
18028	;;
18029      esac
18030      ;;
18031
18032    *)
18033      lt_prog_compiler_pic_GCJ='-fPIC'
18034      ;;
18035    esac
18036  else
18037    # PORTME Check for flag to pass linker flags through the system compiler.
18038    case $host_os in
18039    aix*)
18040      lt_prog_compiler_wl_GCJ='-Wl,'
18041      if test "$host_cpu" = ia64; then
18042	# AIX 5 now supports IA64 processor
18043	lt_prog_compiler_static_GCJ='-Bstatic'
18044      else
18045	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18046      fi
18047      ;;
18048      darwin*)
18049        # PIC is the default on this platform
18050        # Common symbols not allowed in MH_DYLIB files
18051       case $cc_basename in
18052         xlc*)
18053         lt_prog_compiler_pic_GCJ='-qnocommon'
18054         lt_prog_compiler_wl_GCJ='-Wl,'
18055         ;;
18056       esac
18057       ;;
18058
18059    mingw* | cygwin* | pw32* | os2*)
18060      # This hack is so that the source file can tell whether it is being
18061      # built for inclusion in a dll (and should export symbols for example).
18062      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18063      # (--disable-auto-import) libraries
18064      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18065      ;;
18066
18067    hpux9* | hpux10* | hpux11*)
18068      lt_prog_compiler_wl_GCJ='-Wl,'
18069      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18070      # not for PA HP-UX.
18071      case $host_cpu in
18072      hppa*64*|ia64*)
18073	# +Z the default
18074	;;
18075      *)
18076	lt_prog_compiler_pic_GCJ='+Z'
18077	;;
18078      esac
18079      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18080      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18081      ;;
18082
18083    irix5* | irix6* | nonstopux*)
18084      lt_prog_compiler_wl_GCJ='-Wl,'
18085      # PIC (with -KPIC) is the default.
18086      lt_prog_compiler_static_GCJ='-non_shared'
18087      ;;
18088
18089    newsos6)
18090      lt_prog_compiler_pic_GCJ='-KPIC'
18091      lt_prog_compiler_static_GCJ='-Bstatic'
18092      ;;
18093
18094    linux*)
18095      case $cc_basename in
18096      icc* | ecc*)
18097	lt_prog_compiler_wl_GCJ='-Wl,'
18098	lt_prog_compiler_pic_GCJ='-KPIC'
18099	lt_prog_compiler_static_GCJ='-static'
18100        ;;
18101      pgcc* | pgf77* | pgf90* | pgf95*)
18102        # Portland Group compilers (*not* the Pentium gcc compiler,
18103	# which looks to be a dead project)
18104	lt_prog_compiler_wl_GCJ='-Wl,'
18105	lt_prog_compiler_pic_GCJ='-fpic'
18106	lt_prog_compiler_static_GCJ='-Bstatic'
18107        ;;
18108      ccc*)
18109        lt_prog_compiler_wl_GCJ='-Wl,'
18110        # All Alpha code is PIC.
18111        lt_prog_compiler_static_GCJ='-non_shared'
18112        ;;
18113      como)
18114        lt_prog_compiler_wl_GCJ='-lopt='
18115        ;;
18116      *)
18117        case `$CC -V 2>&1 | sed 5q` in
18118	*Sun\ C*)
18119	  # Sun C 5.9
18120	  lt_prog_compiler_pic_GCJ='-KPIC'
18121	  lt_prog_compiler_static_GCJ='-Bstatic'
18122	  lt_prog_compiler_wl_GCJ='-Wl,'
18123	  ;;
18124	*Sun\ F*)
18125	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
18126	  lt_prog_compiler_pic_GCJ='-KPIC'
18127	  lt_prog_compiler_static_GCJ='-Bstatic'
18128	  lt_prog_compiler_wl_GCJ=''
18129	  ;;
18130	esac
18131	;;
18132      esac
18133      ;;
18134
18135    osf3* | osf4* | osf5*)
18136      lt_prog_compiler_wl_GCJ='-Wl,'
18137      # All OSF/1 code is PIC.
18138      lt_prog_compiler_static_GCJ='-non_shared'
18139      ;;
18140
18141    solaris*)
18142      lt_prog_compiler_pic_GCJ='-KPIC'
18143      lt_prog_compiler_static_GCJ='-Bstatic'
18144      case $cc_basename in
18145      f77* | f90* | f95*)
18146	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18147      *)
18148	lt_prog_compiler_wl_GCJ='-Wl,';;
18149      esac
18150      ;;
18151
18152    sunos4*)
18153      lt_prog_compiler_wl_GCJ='-Qoption ld '
18154      lt_prog_compiler_pic_GCJ='-PIC'
18155      lt_prog_compiler_static_GCJ='-Bstatic'
18156      ;;
18157
18158    sysv4 | sysv4.2uw2* | sysv4.3*)
18159      lt_prog_compiler_wl_GCJ='-Wl,'
18160      lt_prog_compiler_pic_GCJ='-KPIC'
18161      lt_prog_compiler_static_GCJ='-Bstatic'
18162      ;;
18163
18164    sysv4*MP*)
18165      if test -d /usr/nec ;then
18166	lt_prog_compiler_pic_GCJ='-Kconform_pic'
18167	lt_prog_compiler_static_GCJ='-Bstatic'
18168      fi
18169      ;;
18170
18171    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18172      lt_prog_compiler_wl_GCJ='-Wl,'
18173      lt_prog_compiler_pic_GCJ='-KPIC'
18174      lt_prog_compiler_static_GCJ='-Bstatic'
18175      ;;
18176
18177    unicos*)
18178      lt_prog_compiler_wl_GCJ='-Wl,'
18179      lt_prog_compiler_can_build_shared_GCJ=no
18180      ;;
18181
18182    uts4*)
18183      lt_prog_compiler_pic_GCJ='-pic'
18184      lt_prog_compiler_static_GCJ='-Bstatic'
18185      ;;
18186
18187    *)
18188      lt_prog_compiler_can_build_shared_GCJ=no
18189      ;;
18190    esac
18191  fi
18192
18193{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18194echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18195
18196#
18197# Check to make sure the PIC flag actually works.
18198#
18199if test -n "$lt_prog_compiler_pic_GCJ"; then
18200
18201{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18202echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18203if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18204  echo $ECHO_N "(cached) $ECHO_C" >&6
18205else
18206  lt_prog_compiler_pic_works_GCJ=no
18207  ac_outfile=conftest.$ac_objext
18208   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18209   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18210   # Insert the option either (1) after the last *FLAGS variable, or
18211   # (2) before a word containing "conftest.", or (3) at the end.
18212   # Note that $ac_compile itself does not contain backslashes and begins
18213   # with a dollar sign (not a hyphen), so the echo should work correctly.
18214   # The option is referenced via a variable to avoid confusing sed.
18215   lt_compile=`echo "$ac_compile" | $SED \
18216   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18217   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18218   -e 's:$: $lt_compiler_flag:'`
18219   (eval echo "\"\$as_me:18219: $lt_compile\"" >&5)
18220   (eval "$lt_compile" 2>conftest.err)
18221   ac_status=$?
18222   cat conftest.err >&5
18223   echo "$as_me:18223: \$? = $ac_status" >&5
18224   if (exit $ac_status) && test -s "$ac_outfile"; then
18225     # The compiler can only warn and ignore the option if not recognized
18226     # So say no if there are warnings other than the usual output.
18227     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18228     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18229     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18230       lt_prog_compiler_pic_works_GCJ=yes
18231     fi
18232   fi
18233   $rm conftest*
18234
18235fi
18236{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18237echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18238
18239if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18240    case $lt_prog_compiler_pic_GCJ in
18241     "" | " "*) ;;
18242     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18243     esac
18244else
18245    lt_prog_compiler_pic_GCJ=
18246     lt_prog_compiler_can_build_shared_GCJ=no
18247fi
18248
18249fi
18250case $host_os in
18251  # For platforms which do not support PIC, -DPIC is meaningless:
18252  *djgpp*)
18253    lt_prog_compiler_pic_GCJ=
18254    ;;
18255  *)
18256    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18257    ;;
18258esac
18259
18260#
18261# Check to make sure the static flag actually works.
18262#
18263wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18264{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18265echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18266if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18267  echo $ECHO_N "(cached) $ECHO_C" >&6
18268else
18269  lt_prog_compiler_static_works_GCJ=no
18270   save_LDFLAGS="$LDFLAGS"
18271   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18272   printf "$lt_simple_link_test_code" > conftest.$ac_ext
18273   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18274     # The linker can only warn and ignore the option if not recognized
18275     # So say no if there are warnings
18276     if test -s conftest.err; then
18277       # Append any errors to the config.log.
18278       cat conftest.err 1>&5
18279       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18280       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18281       if diff conftest.exp conftest.er2 >/dev/null; then
18282         lt_prog_compiler_static_works_GCJ=yes
18283       fi
18284     else
18285       lt_prog_compiler_static_works_GCJ=yes
18286     fi
18287   fi
18288   $rm conftest*
18289   LDFLAGS="$save_LDFLAGS"
18290
18291fi
18292{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18293echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18294
18295if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18296    :
18297else
18298    lt_prog_compiler_static_GCJ=
18299fi
18300
18301
18302{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18303echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18304if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18305  echo $ECHO_N "(cached) $ECHO_C" >&6
18306else
18307  lt_cv_prog_compiler_c_o_GCJ=no
18308   $rm -r conftest 2>/dev/null
18309   mkdir conftest
18310   cd conftest
18311   mkdir out
18312   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18313
18314   lt_compiler_flag="-o out/conftest2.$ac_objext"
18315   # Insert the option either (1) after the last *FLAGS variable, or
18316   # (2) before a word containing "conftest.", or (3) at the end.
18317   # Note that $ac_compile itself does not contain backslashes and begins
18318   # with a dollar sign (not a hyphen), so the echo should work correctly.
18319   lt_compile=`echo "$ac_compile" | $SED \
18320   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18321   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18322   -e 's:$: $lt_compiler_flag:'`
18323   (eval echo "\"\$as_me:18323: $lt_compile\"" >&5)
18324   (eval "$lt_compile" 2>out/conftest.err)
18325   ac_status=$?
18326   cat out/conftest.err >&5
18327   echo "$as_me:18327: \$? = $ac_status" >&5
18328   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18329   then
18330     # The compiler can only warn and ignore the option if not recognized
18331     # So say no if there are warnings
18332     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18333     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18334     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18335       lt_cv_prog_compiler_c_o_GCJ=yes
18336     fi
18337   fi
18338   chmod u+w . 2>&5
18339   $rm conftest*
18340   # SGI C++ compiler will create directory out/ii_files/ for
18341   # template instantiation
18342   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18343   $rm out/* && rmdir out
18344   cd ..
18345   rmdir conftest
18346   $rm conftest*
18347
18348fi
18349{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18350echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18351
18352
18353hard_links="nottested"
18354if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18355  # do not overwrite the value of need_locks provided by the user
18356  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18357echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18358  hard_links=yes
18359  $rm conftest*
18360  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18361  touch conftest.a
18362  ln conftest.a conftest.b 2>&5 || hard_links=no
18363  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18364  { echo "$as_me:$LINENO: result: $hard_links" >&5
18365echo "${ECHO_T}$hard_links" >&6; }
18366  if test "$hard_links" = no; then
18367    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18368echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18369    need_locks=warn
18370  fi
18371else
18372  need_locks=no
18373fi
18374
18375{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18376echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18377
18378  runpath_var=
18379  allow_undefined_flag_GCJ=
18380  enable_shared_with_static_runtimes_GCJ=no
18381  archive_cmds_GCJ=
18382  archive_expsym_cmds_GCJ=
18383  old_archive_From_new_cmds_GCJ=
18384  old_archive_from_expsyms_cmds_GCJ=
18385  export_dynamic_flag_spec_GCJ=
18386  whole_archive_flag_spec_GCJ=
18387  thread_safe_flag_spec_GCJ=
18388  hardcode_libdir_flag_spec_GCJ=
18389  hardcode_libdir_flag_spec_ld_GCJ=
18390  hardcode_libdir_separator_GCJ=
18391  hardcode_direct_GCJ=no
18392  hardcode_minus_L_GCJ=no
18393  hardcode_shlibpath_var_GCJ=unsupported
18394  link_all_deplibs_GCJ=unknown
18395  hardcode_automatic_GCJ=no
18396  module_cmds_GCJ=
18397  module_expsym_cmds_GCJ=
18398  always_export_symbols_GCJ=no
18399  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18400  # include_expsyms should be a list of space-separated symbols to be *always*
18401  # included in the symbol list
18402  include_expsyms_GCJ=
18403  # exclude_expsyms can be an extended regexp of symbols to exclude
18404  # it will be wrapped by ` (' and `)$', so one must not match beginning or
18405  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18406  # as well as any symbol that contains `d'.
18407  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18408  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18409  # platforms (ab)use it in PIC code, but their linkers get confused if
18410  # the symbol is explicitly referenced.  Since portable code cannot
18411  # rely on this symbol name, it's probably fine to never include it in
18412  # preloaded symbol tables.
18413  extract_expsyms_cmds=
18414  # Just being paranoid about ensuring that cc_basename is set.
18415  for cc_temp in $compiler""; do
18416  case $cc_temp in
18417    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18418    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18419    \-*) ;;
18420    *) break;;
18421  esac
18422done
18423cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18424
18425  case $host_os in
18426  cygwin* | mingw* | pw32*)
18427    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18428    # When not using gcc, we currently assume that we are using
18429    # Microsoft Visual C++.
18430    if test "$GCC" != yes; then
18431      with_gnu_ld=no
18432    fi
18433    ;;
18434  interix*)
18435    # we just hope/assume this is gcc and not c89 (= MSVC++)
18436    with_gnu_ld=yes
18437    ;;
18438  openbsd*)
18439    with_gnu_ld=no
18440    ;;
18441  esac
18442
18443  ld_shlibs_GCJ=yes
18444  if test "$with_gnu_ld" = yes; then
18445    # If archive_cmds runs LD, not CC, wlarc should be empty
18446    wlarc='${wl}'
18447
18448    # Set some defaults for GNU ld with shared library support. These
18449    # are reset later if shared libraries are not supported. Putting them
18450    # here allows them to be overridden if necessary.
18451    runpath_var=LD_RUN_PATH
18452    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18453    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18454    # ancient GNU ld didn't support --whole-archive et. al.
18455    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18456	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18457      else
18458  	whole_archive_flag_spec_GCJ=
18459    fi
18460    supports_anon_versioning=no
18461    case `$LD -v 2>/dev/null` in
18462      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18463      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18464      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18465      *\ 2.11.*) ;; # other 2.11 versions
18466      *) supports_anon_versioning=yes ;;
18467    esac
18468
18469    # See if GNU ld supports shared libraries.
18470    case $host_os in
18471    aix3* | aix4* | aix5*)
18472      # On AIX/PPC, the GNU linker is very broken
18473      if test "$host_cpu" != ia64; then
18474	ld_shlibs_GCJ=no
18475	cat <<EOF 1>&2
18476
18477*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18478*** to be unable to reliably create shared libraries on AIX.
18479*** Therefore, libtool is disabling shared libraries support.  If you
18480*** really care for shared libraries, you may want to modify your PATH
18481*** so that a non-GNU linker is found, and then restart.
18482
18483EOF
18484      fi
18485      ;;
18486
18487    amigaos*)
18488      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)'
18489      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18490      hardcode_minus_L_GCJ=yes
18491
18492      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18493      # that the semantics of dynamic libraries on AmigaOS, at least up
18494      # to version 4, is to share data among multiple programs linked
18495      # with the same dynamic library.  Since this doesn't match the
18496      # behavior of shared libraries on other platforms, we can't use
18497      # them.
18498      ld_shlibs_GCJ=no
18499      ;;
18500
18501    beos*)
18502      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18503	allow_undefined_flag_GCJ=unsupported
18504	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18505	# support --undefined.  This deserves some investigation.  FIXME
18506	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18507      else
18508	ld_shlibs_GCJ=no
18509      fi
18510      ;;
18511
18512    cygwin* | mingw* | pw32*)
18513      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18514      # as there is no search path for DLLs.
18515      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18516      allow_undefined_flag_GCJ=unsupported
18517      always_export_symbols_GCJ=no
18518      enable_shared_with_static_runtimes_GCJ=yes
18519      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18520
18521      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18522        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18523	# If the export-symbols file already is a .def file (1st line
18524	# is EXPORTS), use it as is; otherwise, prepend...
18525	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18526	  cp $export_symbols $output_objdir/$soname.def;
18527	else
18528	  echo EXPORTS > $output_objdir/$soname.def;
18529	  cat $export_symbols >> $output_objdir/$soname.def;
18530	fi~
18531	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18532      else
18533	ld_shlibs_GCJ=no
18534      fi
18535      ;;
18536
18537    interix3*)
18538      hardcode_direct_GCJ=no
18539      hardcode_shlibpath_var_GCJ=no
18540      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18541      export_dynamic_flag_spec_GCJ='${wl}-E'
18542      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18543      # Instead, shared libraries are loaded at an image base (0x10000000 by
18544      # default) and relocated if they conflict, which is a slow very memory
18545      # consuming and fragmenting process.  To avoid this, we pick a random,
18546      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18547      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18548      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'
18549      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'
18550      ;;
18551
18552    linux*)
18553      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18554	tmp_addflag=
18555	case $cc_basename,$host_cpu in
18556	pgcc*)				# Portland Group C compiler
18557	  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'
18558	  tmp_addflag=' $pic_flag'
18559	  ;;
18560	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
18561	  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'
18562	  tmp_addflag=' $pic_flag -Mnomain' ;;
18563	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
18564	  tmp_addflag=' -i_dynamic' ;;
18565	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18566	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18567	ifc* | ifort*)			# Intel Fortran compiler
18568	  tmp_addflag=' -nofor_main' ;;
18569	esac
18570	case `$CC -V 2>&1 | sed 5q` in
18571	*Sun\ C*)			# Sun C 5.9
18572	  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 /dev/null'
18573	  tmp_sharedflag='-G' ;;
18574	*Sun\ F*)			# Sun Fortran 8.3
18575	  tmp_sharedflag='-G' ;;
18576	*)
18577	  tmp_sharedflag='-shared' ;;
18578	esac
18579	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18580
18581	if test $supports_anon_versioning = yes; then
18582	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18583  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18584  $echo "local: *; };" >> $output_objdir/$libname.ver~
18585	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18586	fi
18587      else
18588	ld_shlibs_GCJ=no
18589      fi
18590      ;;
18591
18592    netbsd*)
18593      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18594	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18595	wlarc=
18596      else
18597	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18598	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18599      fi
18600      ;;
18601
18602    solaris*)
18603      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18604	ld_shlibs_GCJ=no
18605	cat <<EOF 1>&2
18606
18607*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18608*** create shared libraries on Solaris systems.  Therefore, libtool
18609*** is disabling shared libraries support.  We urge you to upgrade GNU
18610*** binutils to release 2.9.1 or newer.  Another option is to modify
18611*** your PATH or compiler configuration so that the native linker is
18612*** used, and then restart.
18613
18614EOF
18615      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18616	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18617	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18618      else
18619	ld_shlibs_GCJ=no
18620      fi
18621      ;;
18622
18623    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18624      case `$LD -v 2>&1` in
18625        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18626	ld_shlibs_GCJ=no
18627	cat <<_LT_EOF 1>&2
18628
18629*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18630*** reliably create shared libraries on SCO systems.  Therefore, libtool
18631*** is disabling shared libraries support.  We urge you to upgrade GNU
18632*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18633*** your PATH or compiler configuration so that the native linker is
18634*** used, and then restart.
18635
18636_LT_EOF
18637	;;
18638	*)
18639	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18640	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18641	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18642	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18643	  else
18644	    ld_shlibs_GCJ=no
18645	  fi
18646	;;
18647      esac
18648      ;;
18649
18650    sunos4*)
18651      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18652      wlarc=
18653      hardcode_direct_GCJ=yes
18654      hardcode_shlibpath_var_GCJ=no
18655      ;;
18656
18657    *)
18658      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18659	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18660	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18661      else
18662	ld_shlibs_GCJ=no
18663      fi
18664      ;;
18665    esac
18666
18667    if test "$ld_shlibs_GCJ" = no; then
18668      runpath_var=
18669      hardcode_libdir_flag_spec_GCJ=
18670      export_dynamic_flag_spec_GCJ=
18671      whole_archive_flag_spec_GCJ=
18672    fi
18673  else
18674    # PORTME fill in a description of your system's linker (not GNU ld)
18675    case $host_os in
18676    aix3*)
18677      allow_undefined_flag_GCJ=unsupported
18678      always_export_symbols_GCJ=yes
18679      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'
18680      # Note: this linker hardcodes the directories in LIBPATH if there
18681      # are no directories specified by -L.
18682      hardcode_minus_L_GCJ=yes
18683      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18684	# Neither direct hardcoding nor static linking is supported with a
18685	# broken collect2.
18686	hardcode_direct_GCJ=unsupported
18687      fi
18688      ;;
18689
18690    aix4* | aix5*)
18691      if test "$host_cpu" = ia64; then
18692	# On IA64, the linker does run time linking by default, so we don't
18693	# have to do anything special.
18694	aix_use_runtimelinking=no
18695	exp_sym_flag='-Bexport'
18696	no_entry_flag=""
18697      else
18698	# If we're using GNU nm, then we don't want the "-C" option.
18699	# -C means demangle to AIX nm, but means don't demangle with GNU nm
18700	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18701	  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'
18702	else
18703	  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'
18704	fi
18705	aix_use_runtimelinking=no
18706
18707	# Test if we are trying to use run time linking or normal
18708	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18709	# need to do runtime linking.
18710	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18711	  for ld_flag in $LDFLAGS; do
18712  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18713  	    aix_use_runtimelinking=yes
18714  	    break
18715  	  fi
18716	  done
18717	  ;;
18718	esac
18719
18720	exp_sym_flag='-bexport'
18721	no_entry_flag='-bnoentry'
18722      fi
18723
18724      # When large executables or shared objects are built, AIX ld can
18725      # have problems creating the table of contents.  If linking a library
18726      # or program results in "error TOC overflow" add -mminimal-toc to
18727      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18728      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18729
18730      archive_cmds_GCJ=''
18731      hardcode_direct_GCJ=yes
18732      hardcode_libdir_separator_GCJ=':'
18733      link_all_deplibs_GCJ=yes
18734
18735      if test "$GCC" = yes; then
18736	case $host_os in aix4.[012]|aix4.[012].*)
18737	# We only want to do this on AIX 4.2 and lower, the check
18738	# below for broken collect2 doesn't work under 4.3+
18739	  collect2name=`${CC} -print-prog-name=collect2`
18740	  if test -f "$collect2name" && \
18741  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18742	  then
18743  	  # We have reworked collect2
18744  	  hardcode_direct_GCJ=yes
18745	  else
18746  	  # We have old collect2
18747  	  hardcode_direct_GCJ=unsupported
18748  	  # It fails to find uninstalled libraries when the uninstalled
18749  	  # path is not listed in the libpath.  Setting hardcode_minus_L
18750  	  # to unsupported forces relinking
18751  	  hardcode_minus_L_GCJ=yes
18752  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18753  	  hardcode_libdir_separator_GCJ=
18754	  fi
18755	  ;;
18756	esac
18757	shared_flag='-shared'
18758	if test "$aix_use_runtimelinking" = yes; then
18759	  shared_flag="$shared_flag "'${wl}-G'
18760	fi
18761      else
18762	# not using gcc
18763	if test "$host_cpu" = ia64; then
18764  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18765  	# chokes on -Wl,-G. The following line is correct:
18766	  shared_flag='-G'
18767	else
18768	  if test "$aix_use_runtimelinking" = yes; then
18769	    shared_flag='${wl}-G'
18770	  else
18771	    shared_flag='${wl}-bM:SRE'
18772	  fi
18773	fi
18774      fi
18775
18776      # It seems that -bexpall does not export symbols beginning with
18777      # underscore (_), so it is better to generate a list of symbols to export.
18778      always_export_symbols_GCJ=yes
18779      if test "$aix_use_runtimelinking" = yes; then
18780	# Warning - without using the other runtime loading flags (-brtl),
18781	# -berok will link without error, but may produce a broken library.
18782	allow_undefined_flag_GCJ='-berok'
18783       # Determine the default libpath from the value encoded in an empty executable.
18784       cat >conftest.$ac_ext <<_ACEOF
18785/* confdefs.h.  */
18786_ACEOF
18787cat confdefs.h >>conftest.$ac_ext
18788cat >>conftest.$ac_ext <<_ACEOF
18789/* end confdefs.h.  */
18790
18791int
18792main ()
18793{
18794
18795  ;
18796  return 0;
18797}
18798_ACEOF
18799rm -f conftest.$ac_objext conftest$ac_exeext
18800if { (ac_try="$ac_link"
18801case "(($ac_try" in
18802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803  *) ac_try_echo=$ac_try;;
18804esac
18805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806  (eval "$ac_link") 2>conftest.er1
18807  ac_status=$?
18808  grep -v '^ *+' conftest.er1 >conftest.err
18809  rm -f conftest.er1
18810  cat conftest.err >&5
18811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812  (exit $ac_status); } && {
18813	 test -z "$ac_c_werror_flag" ||
18814	 test ! -s conftest.err
18815       } && test -s conftest$ac_exeext &&
18816       $as_test_x conftest$ac_exeext; then
18817
18818aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18819}'`
18820# Check for a 64-bit object if we didn't find anything.
18821if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18822}'`; fi
18823else
18824  echo "$as_me: failed program was:" >&5
18825sed 's/^/| /' conftest.$ac_ext >&5
18826
18827
18828fi
18829
18830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18831      conftest$ac_exeext conftest.$ac_ext
18832if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18833
18834       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18835	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"
18836       else
18837	if test "$host_cpu" = ia64; then
18838	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18839	  allow_undefined_flag_GCJ="-z nodefs"
18840	  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"
18841	else
18842	 # Determine the default libpath from the value encoded in an empty executable.
18843	 cat >conftest.$ac_ext <<_ACEOF
18844/* confdefs.h.  */
18845_ACEOF
18846cat confdefs.h >>conftest.$ac_ext
18847cat >>conftest.$ac_ext <<_ACEOF
18848/* end confdefs.h.  */
18849
18850int
18851main ()
18852{
18853
18854  ;
18855  return 0;
18856}
18857_ACEOF
18858rm -f conftest.$ac_objext conftest$ac_exeext
18859if { (ac_try="$ac_link"
18860case "(($ac_try" in
18861  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862  *) ac_try_echo=$ac_try;;
18863esac
18864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865  (eval "$ac_link") 2>conftest.er1
18866  ac_status=$?
18867  grep -v '^ *+' conftest.er1 >conftest.err
18868  rm -f conftest.er1
18869  cat conftest.err >&5
18870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871  (exit $ac_status); } && {
18872	 test -z "$ac_c_werror_flag" ||
18873	 test ! -s conftest.err
18874       } && test -s conftest$ac_exeext &&
18875       $as_test_x conftest$ac_exeext; then
18876
18877aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18878}'`
18879# Check for a 64-bit object if we didn't find anything.
18880if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18881}'`; fi
18882else
18883  echo "$as_me: failed program was:" >&5
18884sed 's/^/| /' conftest.$ac_ext >&5
18885
18886
18887fi
18888
18889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18890      conftest$ac_exeext conftest.$ac_ext
18891if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18892
18893	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18894	  # Warning - without using the other run time loading flags,
18895	  # -berok will link without error, but may produce a broken library.
18896	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18897	  allow_undefined_flag_GCJ=' ${wl}-berok'
18898	  # Exported symbols can be pulled into shared objects from archives
18899	  whole_archive_flag_spec_GCJ='$convenience'
18900	  archive_cmds_need_lc_GCJ=yes
18901	  # This is similar to how AIX traditionally builds its shared libraries.
18902	  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'
18903	fi
18904      fi
18905      ;;
18906
18907    amigaos*)
18908      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)'
18909      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18910      hardcode_minus_L_GCJ=yes
18911      # see comment about different semantics on the GNU ld section
18912      ld_shlibs_GCJ=no
18913      ;;
18914
18915    bsdi[45]*)
18916      export_dynamic_flag_spec_GCJ=-rdynamic
18917      ;;
18918
18919    cygwin* | mingw* | pw32*)
18920      # When not using gcc, we currently assume that we are using
18921      # Microsoft Visual C++.
18922      # hardcode_libdir_flag_spec is actually meaningless, as there is
18923      # no search path for DLLs.
18924      hardcode_libdir_flag_spec_GCJ=' '
18925      allow_undefined_flag_GCJ=unsupported
18926      # Tell ltmain to make .lib files, not .a files.
18927      libext=lib
18928      # Tell ltmain to make .dll files, not .so files.
18929      shrext_cmds=".dll"
18930      # FIXME: Setting linknames here is a bad hack.
18931      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18932      # The linker will automatically build a .lib file if we build a DLL.
18933      old_archive_From_new_cmds_GCJ='true'
18934      # FIXME: Should let the user specify the lib program.
18935      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18936      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18937      enable_shared_with_static_runtimes_GCJ=yes
18938      ;;
18939
18940    darwin* | rhapsody*)
18941      case $host_os in
18942        rhapsody* | darwin1.[012])
18943         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18944         ;;
18945       *) # Darwin 1.3 on
18946         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18947           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18948         else
18949           case ${MACOSX_DEPLOYMENT_TARGET} in
18950             10.[012])
18951               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18952               ;;
18953             10.*)
18954               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18955               ;;
18956           esac
18957         fi
18958         ;;
18959      esac
18960      archive_cmds_need_lc_GCJ=no
18961      hardcode_direct_GCJ=no
18962      hardcode_automatic_GCJ=yes
18963      hardcode_shlibpath_var_GCJ=unsupported
18964      whole_archive_flag_spec_GCJ=''
18965      link_all_deplibs_GCJ=yes
18966    if test "$GCC" = yes ; then
18967    	output_verbose_link_cmd='echo'
18968        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18969      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18970      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18971      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}'
18972      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}'
18973    else
18974      case $cc_basename in
18975        xlc*)
18976         output_verbose_link_cmd='echo'
18977         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18978         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18979          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18980         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18981          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}'
18982          ;;
18983       *)
18984         ld_shlibs_GCJ=no
18985          ;;
18986      esac
18987    fi
18988      ;;
18989
18990    dgux*)
18991      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18992      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18993      hardcode_shlibpath_var_GCJ=no
18994      ;;
18995
18996    freebsd1*)
18997      ld_shlibs_GCJ=no
18998      ;;
18999
19000    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19001    # support.  Future versions do this automatically, but an explicit c++rt0.o
19002    # does not break anything, and helps significantly (at the cost of a little
19003    # extra space).
19004    freebsd2.2*)
19005      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19006      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19007      hardcode_direct_GCJ=yes
19008      hardcode_shlibpath_var_GCJ=no
19009      ;;
19010
19011    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19012    freebsd2*)
19013      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19014      hardcode_direct_GCJ=yes
19015      hardcode_minus_L_GCJ=yes
19016      hardcode_shlibpath_var_GCJ=no
19017      ;;
19018
19019    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19020    freebsd* | kfreebsd*-gnu | dragonfly*)
19021      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19022      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19023      hardcode_direct_GCJ=yes
19024      hardcode_shlibpath_var_GCJ=no
19025      ;;
19026
19027    hpux9*)
19028      if test "$GCC" = yes; then
19029	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'
19030      else
19031	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'
19032      fi
19033      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19034      hardcode_libdir_separator_GCJ=:
19035      hardcode_direct_GCJ=yes
19036
19037      # hardcode_minus_L: Not really in the search PATH,
19038      # but as the default location of the library.
19039      hardcode_minus_L_GCJ=yes
19040      export_dynamic_flag_spec_GCJ='${wl}-E'
19041      ;;
19042
19043    hpux10*)
19044      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19045	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19046      else
19047	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19048      fi
19049      if test "$with_gnu_ld" = no; then
19050	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19051	hardcode_libdir_separator_GCJ=:
19052
19053	hardcode_direct_GCJ=yes
19054	export_dynamic_flag_spec_GCJ='${wl}-E'
19055
19056	# hardcode_minus_L: Not really in the search PATH,
19057	# but as the default location of the library.
19058	hardcode_minus_L_GCJ=yes
19059      fi
19060      ;;
19061
19062    hpux11*)
19063      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19064	case $host_cpu in
19065	hppa*64*)
19066	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19067	  ;;
19068	ia64*)
19069	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19070	  ;;
19071	*)
19072	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19073	  ;;
19074	esac
19075      else
19076	case $host_cpu in
19077	hppa*64*)
19078	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19079	  ;;
19080	ia64*)
19081	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19082	  ;;
19083	*)
19084	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19085	  ;;
19086	esac
19087      fi
19088      if test "$with_gnu_ld" = no; then
19089	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19090	hardcode_libdir_separator_GCJ=:
19091
19092	case $host_cpu in
19093	hppa*64*|ia64*)
19094	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19095	  hardcode_direct_GCJ=no
19096	  hardcode_shlibpath_var_GCJ=no
19097	  ;;
19098	*)
19099	  hardcode_direct_GCJ=yes
19100	  export_dynamic_flag_spec_GCJ='${wl}-E'
19101
19102	  # hardcode_minus_L: Not really in the search PATH,
19103	  # but as the default location of the library.
19104	  hardcode_minus_L_GCJ=yes
19105	  ;;
19106	esac
19107      fi
19108      ;;
19109
19110    irix5* | irix6* | nonstopux*)
19111      if test "$GCC" = yes; then
19112	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'
19113      else
19114	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'
19115	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19116      fi
19117      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19118      hardcode_libdir_separator_GCJ=:
19119      link_all_deplibs_GCJ=yes
19120      ;;
19121
19122    netbsd*)
19123      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19124	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19125      else
19126	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19127      fi
19128      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19129      hardcode_direct_GCJ=yes
19130      hardcode_shlibpath_var_GCJ=no
19131      ;;
19132
19133    newsos6)
19134      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19135      hardcode_direct_GCJ=yes
19136      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19137      hardcode_libdir_separator_GCJ=:
19138      hardcode_shlibpath_var_GCJ=no
19139      ;;
19140
19141    openbsd*)
19142      hardcode_direct_GCJ=yes
19143      hardcode_shlibpath_var_GCJ=no
19144      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19145	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19146	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19147	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19148	export_dynamic_flag_spec_GCJ='${wl}-E'
19149      else
19150       case $host_os in
19151	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19152	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19153	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
19154	   ;;
19155	 *)
19156	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19157	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19158	   ;;
19159       esac
19160      fi
19161      ;;
19162
19163    os2*)
19164      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19165      hardcode_minus_L_GCJ=yes
19166      allow_undefined_flag_GCJ=unsupported
19167      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'
19168      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19169      ;;
19170
19171    osf3*)
19172      if test "$GCC" = yes; then
19173	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19174	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'
19175      else
19176	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19177	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'
19178      fi
19179      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19180      hardcode_libdir_separator_GCJ=:
19181      ;;
19182
19183    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19184      if test "$GCC" = yes; then
19185	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19186	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'
19187	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19188      else
19189	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19190	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'
19191	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~
19192	$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'
19193
19194	# Both c and cxx compiler support -rpath directly
19195	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19196      fi
19197      hardcode_libdir_separator_GCJ=:
19198      ;;
19199
19200    solaris*)
19201      no_undefined_flag_GCJ=' -z text'
19202      if test "$GCC" = yes; then
19203	wlarc='${wl}'
19204	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19205	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19206	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19207      else
19208	wlarc=''
19209	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19210	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19211  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19212      fi
19213      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19214      hardcode_shlibpath_var_GCJ=no
19215      case $host_os in
19216      solaris2.[0-5] | solaris2.[0-5].*) ;;
19217      *)
19218 	# The compiler driver will combine linker options so we
19219 	# cannot just pass the convience library names through
19220 	# without $wl, iff we do not link with $LD.
19221 	# Luckily, gcc supports the same syntax we need for Sun Studio.
19222 	# Supported since Solaris 2.6 (maybe 2.5.1?)
19223 	case $wlarc in
19224 	'')
19225 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19226 	*)
19227 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19228 	esac ;;
19229      esac
19230      link_all_deplibs_GCJ=yes
19231      ;;
19232
19233    sunos4*)
19234      if test "x$host_vendor" = xsequent; then
19235	# Use $CC to link under sequent, because it throws in some extra .o
19236	# files that make .init and .fini sections work.
19237	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19238      else
19239	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19240      fi
19241      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19242      hardcode_direct_GCJ=yes
19243      hardcode_minus_L_GCJ=yes
19244      hardcode_shlibpath_var_GCJ=no
19245      ;;
19246
19247    sysv4)
19248      case $host_vendor in
19249	sni)
19250	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19251	  hardcode_direct_GCJ=yes # is this really true???
19252	;;
19253	siemens)
19254	  ## LD is ld it makes a PLAMLIB
19255	  ## CC just makes a GrossModule.
19256	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19257	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19258	  hardcode_direct_GCJ=no
19259        ;;
19260	motorola)
19261	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19262	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19263	;;
19264      esac
19265      runpath_var='LD_RUN_PATH'
19266      hardcode_shlibpath_var_GCJ=no
19267      ;;
19268
19269    sysv4.3*)
19270      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19271      hardcode_shlibpath_var_GCJ=no
19272      export_dynamic_flag_spec_GCJ='-Bexport'
19273      ;;
19274
19275    sysv4*MP*)
19276      if test -d /usr/nec; then
19277	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19278	hardcode_shlibpath_var_GCJ=no
19279	runpath_var=LD_RUN_PATH
19280	hardcode_runpath_var=yes
19281	ld_shlibs_GCJ=yes
19282      fi
19283      ;;
19284
19285    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19286      no_undefined_flag_GCJ='${wl}-z,text'
19287      archive_cmds_need_lc_GCJ=no
19288      hardcode_shlibpath_var_GCJ=no
19289      runpath_var='LD_RUN_PATH'
19290
19291      if test "$GCC" = yes; then
19292	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19293	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19294      else
19295	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19296	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19297      fi
19298      ;;
19299
19300    sysv5* | sco3.2v5* | sco5v6*)
19301      # Note: We can NOT use -z defs as we might desire, because we do not
19302      # link with -lc, and that would cause any symbols used from libc to
19303      # always be unresolved, which means just about no library would
19304      # ever link correctly.  If we're not using GNU ld we use -z text
19305      # though, which does catch some bad symbols but isn't as heavy-handed
19306      # as -z defs.
19307      no_undefined_flag_GCJ='${wl}-z,text'
19308      allow_undefined_flag_GCJ='${wl}-z,nodefs'
19309      archive_cmds_need_lc_GCJ=no
19310      hardcode_shlibpath_var_GCJ=no
19311      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19312      hardcode_libdir_separator_GCJ=':'
19313      link_all_deplibs_GCJ=yes
19314      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19315      runpath_var='LD_RUN_PATH'
19316
19317      if test "$GCC" = yes; then
19318	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19319	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19320      else
19321	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19322	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19323      fi
19324      ;;
19325
19326    uts4*)
19327      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19328      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19329      hardcode_shlibpath_var_GCJ=no
19330      ;;
19331
19332    *)
19333      ld_shlibs_GCJ=no
19334      ;;
19335    esac
19336  fi
19337
19338{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19339echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19340test "$ld_shlibs_GCJ" = no && can_build_shared=no
19341
19342#
19343# Do we need to explicitly link libc?
19344#
19345case "x$archive_cmds_need_lc_GCJ" in
19346x|xyes)
19347  # Assume -lc should be added
19348  archive_cmds_need_lc_GCJ=yes
19349
19350  if test "$enable_shared" = yes && test "$GCC" = yes; then
19351    case $archive_cmds_GCJ in
19352    *'~'*)
19353      # FIXME: we may have to deal with multi-command sequences.
19354      ;;
19355    '$CC '*)
19356      # Test whether the compiler implicitly links with -lc since on some
19357      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19358      # to ld, don't add -lc before -lgcc.
19359      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19360echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19361      $rm conftest*
19362      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19363
19364      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19365  (eval $ac_compile) 2>&5
19366  ac_status=$?
19367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368  (exit $ac_status); } 2>conftest.err; then
19369        soname=conftest
19370        lib=conftest
19371        libobjs=conftest.$ac_objext
19372        deplibs=
19373        wl=$lt_prog_compiler_wl_GCJ
19374	pic_flag=$lt_prog_compiler_pic_GCJ
19375        compiler_flags=-v
19376        linker_flags=-v
19377        verstring=
19378        output_objdir=.
19379        libname=conftest
19380        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19381        allow_undefined_flag_GCJ=
19382        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19383  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19384  ac_status=$?
19385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386  (exit $ac_status); }
19387        then
19388	  archive_cmds_need_lc_GCJ=no
19389        else
19390	  archive_cmds_need_lc_GCJ=yes
19391        fi
19392        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19393      else
19394        cat conftest.err 1>&5
19395      fi
19396      $rm conftest*
19397      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19398echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19399      ;;
19400    esac
19401  fi
19402  ;;
19403esac
19404
19405{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19406echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19407library_names_spec=
19408libname_spec='lib$name'
19409soname_spec=
19410shrext_cmds=".so"
19411postinstall_cmds=
19412postuninstall_cmds=
19413finish_cmds=
19414finish_eval=
19415shlibpath_var=
19416shlibpath_overrides_runpath=unknown
19417version_type=none
19418dynamic_linker="$host_os ld.so"
19419sys_lib_dlsearch_path_spec="/lib /usr/lib"
19420if test "$GCC" = yes; then
19421  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19422  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19423    # if the path contains ";" then we assume it to be the separator
19424    # otherwise default to the standard path separator (i.e. ":") - it is
19425    # assumed that no part of a normal pathname contains ";" but that should
19426    # okay in the real world where ";" in dirpaths is itself problematic.
19427    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19428  else
19429    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19430  fi
19431else
19432  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19433fi
19434need_lib_prefix=unknown
19435hardcode_into_libs=no
19436
19437# when you set need_version to no, make sure it does not cause -set_version
19438# flags to be left without arguments
19439need_version=unknown
19440
19441case $host_os in
19442aix3*)
19443  version_type=linux
19444  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19445  shlibpath_var=LIBPATH
19446
19447  # AIX 3 has no versioning support, so we append a major version to the name.
19448  soname_spec='${libname}${release}${shared_ext}$major'
19449  ;;
19450
19451aix4* | aix5*)
19452  version_type=linux
19453  need_lib_prefix=no
19454  need_version=no
19455  hardcode_into_libs=yes
19456  if test "$host_cpu" = ia64; then
19457    # AIX 5 supports IA64
19458    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19459    shlibpath_var=LD_LIBRARY_PATH
19460  else
19461    # With GCC up to 2.95.x, collect2 would create an import file
19462    # for dependence libraries.  The import file would start with
19463    # the line `#! .'.  This would cause the generated library to
19464    # depend on `.', always an invalid library.  This was fixed in
19465    # development snapshots of GCC prior to 3.0.
19466    case $host_os in
19467      aix4 | aix4.[01] | aix4.[01].*)
19468      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19469	   echo ' yes '
19470	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19471	:
19472      else
19473	can_build_shared=no
19474      fi
19475      ;;
19476    esac
19477    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19478    # soname into executable. Probably we can add versioning support to
19479    # collect2, so additional links can be useful in future.
19480    if test "$aix_use_runtimelinking" = yes; then
19481      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19482      # instead of lib<name>.a to let people know that these are not
19483      # typical AIX shared libraries.
19484      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19485    else
19486      # We preserve .a as extension for shared libraries through AIX4.2
19487      # and later when we are not doing run time linking.
19488      library_names_spec='${libname}${release}.a $libname.a'
19489      soname_spec='${libname}${release}${shared_ext}$major'
19490    fi
19491    shlibpath_var=LIBPATH
19492  fi
19493  ;;
19494
19495amigaos*)
19496  library_names_spec='$libname.ixlibrary $libname.a'
19497  # Create ${libname}_ixlibrary.a entries in /sys/libs.
19498  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'
19499  ;;
19500
19501beos*)
19502  library_names_spec='${libname}${shared_ext}'
19503  dynamic_linker="$host_os ld.so"
19504  shlibpath_var=LIBRARY_PATH
19505  ;;
19506
19507bsdi[45]*)
19508  version_type=linux
19509  need_version=no
19510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19511  soname_spec='${libname}${release}${shared_ext}$major'
19512  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19513  shlibpath_var=LD_LIBRARY_PATH
19514  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19515  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19516  # the default ld.so.conf also contains /usr/contrib/lib and
19517  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19518  # libtool to hard-code these into programs
19519  ;;
19520
19521cygwin* | mingw* | pw32*)
19522  version_type=windows
19523  shrext_cmds=".dll"
19524  need_version=no
19525  need_lib_prefix=no
19526
19527  case $GCC,$host_os in
19528  yes,cygwin* | yes,mingw* | yes,pw32*)
19529    library_names_spec='$libname.dll.a'
19530    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19531    postinstall_cmds='base_file=`basename \${file}`~
19532      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19533      dldir=$destdir/`dirname \$dlpath`~
19534      test -d \$dldir || mkdir -p \$dldir~
19535      $install_prog $dir/$dlname \$dldir/$dlname~
19536      chmod a+x \$dldir/$dlname'
19537    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19538      dlpath=$dir/\$dldll~
19539       $rm \$dlpath'
19540    shlibpath_overrides_runpath=yes
19541
19542    case $host_os in
19543    cygwin*)
19544      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19545      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19546      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19547      ;;
19548    mingw*)
19549      # MinGW DLLs use traditional 'lib' prefix
19550      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19551      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19552      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19553        # It is most probably a Windows format PATH printed by
19554        # mingw gcc, but we are running on Cygwin. Gcc prints its search
19555        # path with ; separators, and with drive letters. We can handle the
19556        # drive letters (cygwin fileutils understands them), so leave them,
19557        # especially as we might pass files found there to a mingw objdump,
19558        # which wouldn't understand a cygwinified path. Ahh.
19559        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19560      else
19561        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19562      fi
19563      ;;
19564    pw32*)
19565      # pw32 DLLs use 'pw' prefix rather than 'lib'
19566      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19567      ;;
19568    esac
19569    ;;
19570
19571  *)
19572    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19573    ;;
19574  esac
19575  dynamic_linker='Win32 ld.exe'
19576  # FIXME: first we should search . and the directory the executable is in
19577  shlibpath_var=PATH
19578  ;;
19579
19580darwin* | rhapsody*)
19581  dynamic_linker="$host_os dyld"
19582  version_type=darwin
19583  need_lib_prefix=no
19584  need_version=no
19585  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19586  soname_spec='${libname}${release}${major}$shared_ext'
19587  shlibpath_overrides_runpath=yes
19588  shlibpath_var=DYLD_LIBRARY_PATH
19589  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19590  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19591  if test "$GCC" = yes; then
19592    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19593  else
19594    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19595  fi
19596  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19597  ;;
19598
19599dgux*)
19600  version_type=linux
19601  need_lib_prefix=no
19602  need_version=no
19603  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19604  soname_spec='${libname}${release}${shared_ext}$major'
19605  shlibpath_var=LD_LIBRARY_PATH
19606  ;;
19607
19608freebsd1*)
19609  dynamic_linker=no
19610  ;;
19611
19612kfreebsd*-gnu)
19613  version_type=linux
19614  need_lib_prefix=no
19615  need_version=no
19616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19617  soname_spec='${libname}${release}${shared_ext}$major'
19618  shlibpath_var=LD_LIBRARY_PATH
19619  shlibpath_overrides_runpath=no
19620  hardcode_into_libs=yes
19621  dynamic_linker='GNU ld.so'
19622  ;;
19623
19624freebsd* | dragonfly*)
19625  # DragonFly does not have aout.  When/if they implement a new
19626  # versioning mechanism, adjust this.
19627  if test -x /usr/bin/objformat; then
19628    objformat=`/usr/bin/objformat`
19629  else
19630    case $host_os in
19631    freebsd[123]*) objformat=aout ;;
19632    *) objformat=elf ;;
19633    esac
19634  fi
19635  version_type=freebsd-$objformat
19636  case $version_type in
19637    freebsd-elf*)
19638      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19639      need_version=no
19640      need_lib_prefix=no
19641      ;;
19642    freebsd-*)
19643      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19644      need_version=yes
19645      ;;
19646  esac
19647  shlibpath_var=LD_LIBRARY_PATH
19648  case $host_os in
19649  freebsd2*)
19650    shlibpath_overrides_runpath=yes
19651    ;;
19652  freebsd3.[01]* | freebsdelf3.[01]*)
19653    shlibpath_overrides_runpath=yes
19654    hardcode_into_libs=yes
19655    ;;
19656  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19657  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19658    shlibpath_overrides_runpath=no
19659    hardcode_into_libs=yes
19660    ;;
19661  freebsd*) # from 4.6 on
19662    shlibpath_overrides_runpath=yes
19663    hardcode_into_libs=yes
19664    ;;
19665  esac
19666  ;;
19667
19668gnu*)
19669  version_type=linux
19670  need_lib_prefix=no
19671  need_version=no
19672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19673  soname_spec='${libname}${release}${shared_ext}$major'
19674  shlibpath_var=LD_LIBRARY_PATH
19675  hardcode_into_libs=yes
19676  ;;
19677
19678hpux9* | hpux10* | hpux11*)
19679  # Give a soname corresponding to the major version so that dld.sl refuses to
19680  # link against other versions.
19681  version_type=sunos
19682  need_lib_prefix=no
19683  need_version=no
19684  case $host_cpu in
19685  ia64*)
19686    shrext_cmds='.so'
19687    hardcode_into_libs=yes
19688    dynamic_linker="$host_os dld.so"
19689    shlibpath_var=LD_LIBRARY_PATH
19690    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19691    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19692    soname_spec='${libname}${release}${shared_ext}$major'
19693    if test "X$HPUX_IA64_MODE" = X32; then
19694      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19695    else
19696      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19697    fi
19698    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19699    ;;
19700   hppa*64*)
19701     shrext_cmds='.sl'
19702     hardcode_into_libs=yes
19703     dynamic_linker="$host_os dld.sl"
19704     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19705     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19707     soname_spec='${libname}${release}${shared_ext}$major'
19708     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19709     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19710     ;;
19711   *)
19712    shrext_cmds='.sl'
19713    dynamic_linker="$host_os dld.sl"
19714    shlibpath_var=SHLIB_PATH
19715    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19716    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19717    soname_spec='${libname}${release}${shared_ext}$major'
19718    ;;
19719  esac
19720  # HP-UX runs *really* slowly unless shared libraries are mode 555.
19721  postinstall_cmds='chmod 555 $lib'
19722  ;;
19723
19724interix3*)
19725  version_type=linux
19726  need_lib_prefix=no
19727  need_version=no
19728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19729  soname_spec='${libname}${release}${shared_ext}$major'
19730  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19731  shlibpath_var=LD_LIBRARY_PATH
19732  shlibpath_overrides_runpath=no
19733  hardcode_into_libs=yes
19734  ;;
19735
19736irix5* | irix6* | nonstopux*)
19737  case $host_os in
19738    nonstopux*) version_type=nonstopux ;;
19739    *)
19740	if test "$lt_cv_prog_gnu_ld" = yes; then
19741		version_type=linux
19742	else
19743		version_type=irix
19744	fi ;;
19745  esac
19746  need_lib_prefix=no
19747  need_version=no
19748  soname_spec='${libname}${release}${shared_ext}$major'
19749  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19750  case $host_os in
19751  irix5* | nonstopux*)
19752    libsuff= shlibsuff=
19753    ;;
19754  *)
19755    case $LD in # libtool.m4 will add one of these switches to LD
19756    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19757      libsuff= shlibsuff= libmagic=32-bit;;
19758    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19759      libsuff=32 shlibsuff=N32 libmagic=N32;;
19760    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19761      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19762    *) libsuff= shlibsuff= libmagic=never-match;;
19763    esac
19764    ;;
19765  esac
19766  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19767  shlibpath_overrides_runpath=no
19768  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19769  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19770  hardcode_into_libs=yes
19771  ;;
19772
19773# No shared lib support for Linux oldld, aout, or coff.
19774linux*oldld* | linux*aout* | linux*coff*)
19775  dynamic_linker=no
19776  ;;
19777
19778# This must be Linux ELF.
19779linux*)
19780  version_type=linux
19781  need_lib_prefix=no
19782  need_version=no
19783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19784  soname_spec='${libname}${release}${shared_ext}$major'
19785  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19786  shlibpath_var=LD_LIBRARY_PATH
19787  shlibpath_overrides_runpath=no
19788  # This implies no fast_install, which is unacceptable.
19789  # Some rework will be needed to allow for fast_install
19790  # before this can be enabled.
19791  hardcode_into_libs=yes
19792
19793  # Append ld.so.conf contents to the search path
19794  if test -f /etc/ld.so.conf; then
19795    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/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19796    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19797  fi
19798
19799  # We used to test for /lib/ld.so.1 and disable shared libraries on
19800  # powerpc, because MkLinux only supported shared libraries with the
19801  # GNU dynamic linker.  Since this was broken with cross compilers,
19802  # most powerpc-linux boxes support dynamic linking these days and
19803  # people can always --disable-shared, the test was removed, and we
19804  # assume the GNU/Linux dynamic linker is in use.
19805  dynamic_linker='GNU/Linux ld.so'
19806  ;;
19807
19808knetbsd*-gnu)
19809  version_type=linux
19810  need_lib_prefix=no
19811  need_version=no
19812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19813  soname_spec='${libname}${release}${shared_ext}$major'
19814  shlibpath_var=LD_LIBRARY_PATH
19815  shlibpath_overrides_runpath=no
19816  hardcode_into_libs=yes
19817  dynamic_linker='GNU ld.so'
19818  ;;
19819
19820netbsd*)
19821  version_type=sunos
19822  need_lib_prefix=no
19823  need_version=no
19824  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19825    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19826    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19827    dynamic_linker='NetBSD (a.out) ld.so'
19828  else
19829    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19830    soname_spec='${libname}${release}${shared_ext}$major'
19831    dynamic_linker='NetBSD ld.elf_so'
19832  fi
19833  shlibpath_var=LD_LIBRARY_PATH
19834  shlibpath_overrides_runpath=yes
19835  hardcode_into_libs=yes
19836  ;;
19837
19838newsos6)
19839  version_type=linux
19840  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19841  shlibpath_var=LD_LIBRARY_PATH
19842  shlibpath_overrides_runpath=yes
19843  ;;
19844
19845nto-qnx*)
19846  version_type=linux
19847  need_lib_prefix=no
19848  need_version=no
19849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19850  soname_spec='${libname}${release}${shared_ext}$major'
19851  shlibpath_var=LD_LIBRARY_PATH
19852  shlibpath_overrides_runpath=yes
19853  ;;
19854
19855openbsd*)
19856  version_type=sunos
19857  sys_lib_dlsearch_path_spec="/usr/lib"
19858  need_lib_prefix=no
19859  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19860  case $host_os in
19861    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19862    *)                         need_version=no  ;;
19863  esac
19864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19865  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19866  shlibpath_var=LD_LIBRARY_PATH
19867  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19868    case $host_os in
19869      openbsd2.[89] | openbsd2.[89].*)
19870	shlibpath_overrides_runpath=no
19871	;;
19872      *)
19873	shlibpath_overrides_runpath=yes
19874	;;
19875      esac
19876  else
19877    shlibpath_overrides_runpath=yes
19878  fi
19879  ;;
19880
19881os2*)
19882  libname_spec='$name'
19883  shrext_cmds=".dll"
19884  need_lib_prefix=no
19885  library_names_spec='$libname${shared_ext} $libname.a'
19886  dynamic_linker='OS/2 ld.exe'
19887  shlibpath_var=LIBPATH
19888  ;;
19889
19890osf3* | osf4* | osf5*)
19891  version_type=osf
19892  need_lib_prefix=no
19893  need_version=no
19894  soname_spec='${libname}${release}${shared_ext}$major'
19895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19896  shlibpath_var=LD_LIBRARY_PATH
19897  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19898  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19899  ;;
19900
19901solaris*)
19902  version_type=linux
19903  need_lib_prefix=no
19904  need_version=no
19905  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19906  soname_spec='${libname}${release}${shared_ext}$major'
19907  shlibpath_var=LD_LIBRARY_PATH
19908  shlibpath_overrides_runpath=yes
19909  hardcode_into_libs=yes
19910  # ldd complains unless libraries are executable
19911  postinstall_cmds='chmod +x $lib'
19912  ;;
19913
19914sunos4*)
19915  version_type=sunos
19916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19917  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19918  shlibpath_var=LD_LIBRARY_PATH
19919  shlibpath_overrides_runpath=yes
19920  if test "$with_gnu_ld" = yes; then
19921    need_lib_prefix=no
19922  fi
19923  need_version=yes
19924  ;;
19925
19926sysv4 | sysv4.3*)
19927  version_type=linux
19928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19929  soname_spec='${libname}${release}${shared_ext}$major'
19930  shlibpath_var=LD_LIBRARY_PATH
19931  case $host_vendor in
19932    sni)
19933      shlibpath_overrides_runpath=no
19934      need_lib_prefix=no
19935      export_dynamic_flag_spec='${wl}-Blargedynsym'
19936      runpath_var=LD_RUN_PATH
19937      ;;
19938    siemens)
19939      need_lib_prefix=no
19940      ;;
19941    motorola)
19942      need_lib_prefix=no
19943      need_version=no
19944      shlibpath_overrides_runpath=no
19945      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19946      ;;
19947  esac
19948  ;;
19949
19950sysv4*MP*)
19951  if test -d /usr/nec ;then
19952    version_type=linux
19953    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19954    soname_spec='$libname${shared_ext}.$major'
19955    shlibpath_var=LD_LIBRARY_PATH
19956  fi
19957  ;;
19958
19959sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19960  version_type=freebsd-elf
19961  need_lib_prefix=no
19962  need_version=no
19963  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19964  soname_spec='${libname}${release}${shared_ext}$major'
19965  shlibpath_var=LD_LIBRARY_PATH
19966  hardcode_into_libs=yes
19967  if test "$with_gnu_ld" = yes; then
19968    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19969    shlibpath_overrides_runpath=no
19970  else
19971    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19972    shlibpath_overrides_runpath=yes
19973    case $host_os in
19974      sco3.2v5*)
19975        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19976	;;
19977    esac
19978  fi
19979  sys_lib_dlsearch_path_spec='/usr/lib'
19980  ;;
19981
19982uts4*)
19983  version_type=linux
19984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19985  soname_spec='${libname}${release}${shared_ext}$major'
19986  shlibpath_var=LD_LIBRARY_PATH
19987  ;;
19988
19989*)
19990  dynamic_linker=no
19991  ;;
19992esac
19993{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19994echo "${ECHO_T}$dynamic_linker" >&6; }
19995test "$dynamic_linker" = no && can_build_shared=no
19996
19997variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19998if test "$GCC" = yes; then
19999  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20000fi
20001
20002{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20003echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20004hardcode_action_GCJ=
20005if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20006   test -n "$runpath_var_GCJ" || \
20007   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20008
20009  # We can hardcode non-existant directories.
20010  if test "$hardcode_direct_GCJ" != no &&
20011     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20012     # have to relink, otherwise we might link with an installed library
20013     # when we should be linking with a yet-to-be-installed one
20014     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20015     test "$hardcode_minus_L_GCJ" != no; then
20016    # Linking always hardcodes the temporary library directory.
20017    hardcode_action_GCJ=relink
20018  else
20019    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20020    hardcode_action_GCJ=immediate
20021  fi
20022else
20023  # We cannot hardcode anything, or else we can only hardcode existing
20024  # directories.
20025  hardcode_action_GCJ=unsupported
20026fi
20027{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20028echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20029
20030if test "$hardcode_action_GCJ" = relink; then
20031  # Fast installation is not supported
20032  enable_fast_install=no
20033elif test "$shlibpath_overrides_runpath" = yes ||
20034     test "$enable_shared" = no; then
20035  # Fast installation is not necessary
20036  enable_fast_install=needless
20037fi
20038
20039
20040# The else clause should only fire when bootstrapping the
20041# libtool distribution, otherwise you forgot to ship ltmain.sh
20042# with your package, and you will get complaints that there are
20043# no rules to generate ltmain.sh.
20044if test -f "$ltmain"; then
20045  # See if we are running on zsh, and set the options which allow our commands through
20046  # without removal of \ escapes.
20047  if test -n "${ZSH_VERSION+set}" ; then
20048    setopt NO_GLOB_SUBST
20049  fi
20050  # Now quote all the things that may contain metacharacters while being
20051  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20052  # variables and quote the copies for generation of the libtool script.
20053  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20054    SED SHELL STRIP \
20055    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20056    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20057    deplibs_check_method reload_flag reload_cmds need_locks \
20058    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20059    lt_cv_sys_global_symbol_to_c_name_address \
20060    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20061    old_postinstall_cmds old_postuninstall_cmds \
20062    compiler_GCJ \
20063    CC_GCJ \
20064    LD_GCJ \
20065    lt_prog_compiler_wl_GCJ \
20066    lt_prog_compiler_pic_GCJ \
20067    lt_prog_compiler_static_GCJ \
20068    lt_prog_compiler_no_builtin_flag_GCJ \
20069    export_dynamic_flag_spec_GCJ \
20070    thread_safe_flag_spec_GCJ \
20071    whole_archive_flag_spec_GCJ \
20072    enable_shared_with_static_runtimes_GCJ \
20073    old_archive_cmds_GCJ \
20074    old_archive_from_new_cmds_GCJ \
20075    predep_objects_GCJ \
20076    postdep_objects_GCJ \
20077    predeps_GCJ \
20078    postdeps_GCJ \
20079    compiler_lib_search_path_GCJ \
20080    archive_cmds_GCJ \
20081    archive_expsym_cmds_GCJ \
20082    postinstall_cmds_GCJ \
20083    postuninstall_cmds_GCJ \
20084    old_archive_from_expsyms_cmds_GCJ \
20085    allow_undefined_flag_GCJ \
20086    no_undefined_flag_GCJ \
20087    export_symbols_cmds_GCJ \
20088    hardcode_libdir_flag_spec_GCJ \
20089    hardcode_libdir_flag_spec_ld_GCJ \
20090    hardcode_libdir_separator_GCJ \
20091    hardcode_automatic_GCJ \
20092    module_cmds_GCJ \
20093    module_expsym_cmds_GCJ \
20094    lt_cv_prog_compiler_c_o_GCJ \
20095    exclude_expsyms_GCJ \
20096    include_expsyms_GCJ; do
20097
20098    case $var in
20099    old_archive_cmds_GCJ | \
20100    old_archive_from_new_cmds_GCJ | \
20101    archive_cmds_GCJ | \
20102    archive_expsym_cmds_GCJ | \
20103    module_cmds_GCJ | \
20104    module_expsym_cmds_GCJ | \
20105    old_archive_from_expsyms_cmds_GCJ | \
20106    export_symbols_cmds_GCJ | \
20107    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20108    postinstall_cmds | postuninstall_cmds | \
20109    old_postinstall_cmds | old_postuninstall_cmds | \
20110    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20111      # Double-quote double-evaled strings.
20112      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20113      ;;
20114    *)
20115      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20116      ;;
20117    esac
20118  done
20119
20120  case $lt_echo in
20121  *'\$0 --fallback-echo"')
20122    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20123    ;;
20124  esac
20125
20126cfgfile="$ofile"
20127
20128  cat <<__EOF__ >> "$cfgfile"
20129# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20130
20131# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20132
20133# Shell to use when invoking shell scripts.
20134SHELL=$lt_SHELL
20135
20136# Whether or not to build shared libraries.
20137build_libtool_libs=$enable_shared
20138
20139# Whether or not to build static libraries.
20140build_old_libs=$enable_static
20141
20142# Whether or not to add -lc for building shared libraries.
20143build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20144
20145# Whether or not to disallow shared libs when runtime libs are static
20146allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20147
20148# Whether or not to optimize for fast installation.
20149fast_install=$enable_fast_install
20150
20151# The host system.
20152host_alias=$host_alias
20153host=$host
20154host_os=$host_os
20155
20156# The build system.
20157build_alias=$build_alias
20158build=$build
20159build_os=$build_os
20160
20161# An echo program that does not interpret backslashes.
20162echo=$lt_echo
20163
20164# The archiver.
20165AR=$lt_AR
20166AR_FLAGS=$lt_AR_FLAGS
20167
20168# A C compiler.
20169LTCC=$lt_LTCC
20170
20171# LTCC compiler flags.
20172LTCFLAGS=$lt_LTCFLAGS
20173
20174# A language-specific compiler.
20175CC=$lt_compiler_GCJ
20176
20177# Is the compiler the GNU C compiler?
20178with_gcc=$GCC_GCJ
20179
20180# An ERE matcher.
20181EGREP=$lt_EGREP
20182
20183# The linker used to build libraries.
20184LD=$lt_LD_GCJ
20185
20186# Whether we need hard or soft links.
20187LN_S=$lt_LN_S
20188
20189# A BSD-compatible nm program.
20190NM=$lt_NM
20191
20192# A symbol stripping program
20193STRIP=$lt_STRIP
20194
20195# Used to examine libraries when file_magic_cmd begins "file"
20196MAGIC_CMD=$MAGIC_CMD
20197
20198# Used on cygwin: DLL creation program.
20199DLLTOOL="$DLLTOOL"
20200
20201# Used on cygwin: object dumper.
20202OBJDUMP="$OBJDUMP"
20203
20204# Used on cygwin: assembler.
20205AS="$AS"
20206
20207# The name of the directory that contains temporary libtool files.
20208objdir=$objdir
20209
20210# How to create reloadable object files.
20211reload_flag=$lt_reload_flag
20212reload_cmds=$lt_reload_cmds
20213
20214# How to pass a linker flag through the compiler.
20215wl=$lt_lt_prog_compiler_wl_GCJ
20216
20217# Object file suffix (normally "o").
20218objext="$ac_objext"
20219
20220# Old archive suffix (normally "a").
20221libext="$libext"
20222
20223# Shared library suffix (normally ".so").
20224shrext_cmds='$shrext_cmds'
20225
20226# Executable file suffix (normally "").
20227exeext="$exeext"
20228
20229# Additional compiler flags for building library objects.
20230pic_flag=$lt_lt_prog_compiler_pic_GCJ
20231pic_mode=$pic_mode
20232
20233# What is the maximum length of a command?
20234max_cmd_len=$lt_cv_sys_max_cmd_len
20235
20236# Does compiler simultaneously support -c and -o options?
20237compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20238
20239# Must we lock files when doing compilation?
20240need_locks=$lt_need_locks
20241
20242# Do we need the lib prefix for modules?
20243need_lib_prefix=$need_lib_prefix
20244
20245# Do we need a version for libraries?
20246need_version=$need_version
20247
20248# Whether dlopen is supported.
20249dlopen_support=$enable_dlopen
20250
20251# Whether dlopen of programs is supported.
20252dlopen_self=$enable_dlopen_self
20253
20254# Whether dlopen of statically linked programs is supported.
20255dlopen_self_static=$enable_dlopen_self_static
20256
20257# Compiler flag to prevent dynamic linking.
20258link_static_flag=$lt_lt_prog_compiler_static_GCJ
20259
20260# Compiler flag to turn off builtin functions.
20261no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20262
20263# Compiler flag to allow reflexive dlopens.
20264export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20265
20266# Compiler flag to generate shared objects directly from archives.
20267whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20268
20269# Compiler flag to generate thread-safe objects.
20270thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20271
20272# Library versioning type.
20273version_type=$version_type
20274
20275# Format of library name prefix.
20276libname_spec=$lt_libname_spec
20277
20278# List of archive names.  First name is the real one, the rest are links.
20279# The last name is the one that the linker finds with -lNAME.
20280library_names_spec=$lt_library_names_spec
20281
20282# The coded name of the library, if different from the real name.
20283soname_spec=$lt_soname_spec
20284
20285# Commands used to build and install an old-style archive.
20286RANLIB=$lt_RANLIB
20287old_archive_cmds=$lt_old_archive_cmds_GCJ
20288old_postinstall_cmds=$lt_old_postinstall_cmds
20289old_postuninstall_cmds=$lt_old_postuninstall_cmds
20290
20291# Create an old-style archive from a shared archive.
20292old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20293
20294# Create a temporary old-style archive to link instead of a shared archive.
20295old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20296
20297# Commands used to build and install a shared archive.
20298archive_cmds=$lt_archive_cmds_GCJ
20299archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20300postinstall_cmds=$lt_postinstall_cmds
20301postuninstall_cmds=$lt_postuninstall_cmds
20302
20303# Commands used to build a loadable module (assumed same as above if empty)
20304module_cmds=$lt_module_cmds_GCJ
20305module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20306
20307# Commands to strip libraries.
20308old_striplib=$lt_old_striplib
20309striplib=$lt_striplib
20310
20311# Dependencies to place before the objects being linked to create a
20312# shared library.
20313predep_objects=$lt_predep_objects_GCJ
20314
20315# Dependencies to place after the objects being linked to create a
20316# shared library.
20317postdep_objects=$lt_postdep_objects_GCJ
20318
20319# Dependencies to place before the objects being linked to create a
20320# shared library.
20321predeps=$lt_predeps_GCJ
20322
20323# Dependencies to place after the objects being linked to create a
20324# shared library.
20325postdeps=$lt_postdeps_GCJ
20326
20327# The library search path used internally by the compiler when linking
20328# a shared library.
20329compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20330
20331# Method to check whether dependent libraries are shared objects.
20332deplibs_check_method=$lt_deplibs_check_method
20333
20334# Command to use when deplibs_check_method == file_magic.
20335file_magic_cmd=$lt_file_magic_cmd
20336
20337# Flag that allows shared libraries with undefined symbols to be built.
20338allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20339
20340# Flag that forces no undefined symbols.
20341no_undefined_flag=$lt_no_undefined_flag_GCJ
20342
20343# Commands used to finish a libtool library installation in a directory.
20344finish_cmds=$lt_finish_cmds
20345
20346# Same as above, but a single script fragment to be evaled but not shown.
20347finish_eval=$lt_finish_eval
20348
20349# Take the output of nm and produce a listing of raw symbols and C names.
20350global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20351
20352# Transform the output of nm in a proper C declaration
20353global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20354
20355# Transform the output of nm in a C name address pair
20356global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20357
20358# This is the shared library runtime path variable.
20359runpath_var=$runpath_var
20360
20361# This is the shared library path variable.
20362shlibpath_var=$shlibpath_var
20363
20364# Is shlibpath searched before the hard-coded library search path?
20365shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20366
20367# How to hardcode a shared library path into an executable.
20368hardcode_action=$hardcode_action_GCJ
20369
20370# Whether we should hardcode library paths into libraries.
20371hardcode_into_libs=$hardcode_into_libs
20372
20373# Flag to hardcode \$libdir into a binary during linking.
20374# This must work even if \$libdir does not exist.
20375hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20376
20377# If ld is used when linking, flag to hardcode \$libdir into
20378# a binary during linking. This must work even if \$libdir does
20379# not exist.
20380hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20381
20382# Whether we need a single -rpath flag with a separated argument.
20383hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20384
20385# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20386# resulting binary.
20387hardcode_direct=$hardcode_direct_GCJ
20388
20389# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20390# resulting binary.
20391hardcode_minus_L=$hardcode_minus_L_GCJ
20392
20393# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20394# the resulting binary.
20395hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20396
20397# Set to yes if building a shared library automatically hardcodes DIR into the library
20398# and all subsequent libraries and executables linked against it.
20399hardcode_automatic=$hardcode_automatic_GCJ
20400
20401# Variables whose values should be saved in libtool wrapper scripts and
20402# restored at relink time.
20403variables_saved_for_relink="$variables_saved_for_relink"
20404
20405# Whether libtool must link a program against all its dependency libraries.
20406link_all_deplibs=$link_all_deplibs_GCJ
20407
20408# Compile-time system search path for libraries
20409sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20410
20411# Run-time system search path for libraries
20412sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20413
20414# Fix the shell variable \$srcfile for the compiler.
20415fix_srcfile_path="$fix_srcfile_path_GCJ"
20416
20417# Set to yes if exported symbols are required.
20418always_export_symbols=$always_export_symbols_GCJ
20419
20420# The commands to list exported symbols.
20421export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20422
20423# The commands to extract the exported symbol list from a shared archive.
20424extract_expsyms_cmds=$lt_extract_expsyms_cmds
20425
20426# Symbols that should not be listed in the preloaded symbols.
20427exclude_expsyms=$lt_exclude_expsyms_GCJ
20428
20429# Symbols that must always be exported.
20430include_expsyms=$lt_include_expsyms_GCJ
20431
20432# ### END LIBTOOL TAG CONFIG: $tagname
20433
20434__EOF__
20435
20436
20437else
20438  # If there is no Makefile yet, we rely on a make rule to execute
20439  # `config.status --recheck' to rerun these tests and create the
20440  # libtool script then.
20441  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20442  if test -f "$ltmain_in"; then
20443    test -f Makefile && make "$ltmain"
20444  fi
20445fi
20446
20447
20448ac_ext=c
20449ac_cpp='$CPP $CPPFLAGS'
20450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20452ac_compiler_gnu=$ac_cv_c_compiler_gnu
20453
20454CC="$lt_save_CC"
20455
20456	else
20457	  tagname=""
20458	fi
20459	;;
20460
20461      RC)
20462
20463
20464# Source file extension for RC test sources.
20465ac_ext=rc
20466
20467# Object file extension for compiled RC test sources.
20468objext=o
20469objext_RC=$objext
20470
20471# Code to be used in simple compile tests
20472lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20473
20474# Code to be used in simple link tests
20475lt_simple_link_test_code="$lt_simple_compile_test_code"
20476
20477# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20478
20479# If no C compiler was specified, use CC.
20480LTCC=${LTCC-"$CC"}
20481
20482# If no C compiler flags were specified, use CFLAGS.
20483LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20484
20485# Allow CC to be a program name with arguments.
20486compiler=$CC
20487
20488
20489# save warnings/boilerplate of simple test code
20490ac_outfile=conftest.$ac_objext
20491printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20492eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20493_lt_compiler_boilerplate=`cat conftest.err`
20494$rm conftest*
20495
20496ac_outfile=conftest.$ac_objext
20497printf "$lt_simple_link_test_code" >conftest.$ac_ext
20498eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20499_lt_linker_boilerplate=`cat conftest.err`
20500$rm conftest*
20501
20502
20503# Allow CC to be a program name with arguments.
20504lt_save_CC="$CC"
20505CC=${RC-"windres"}
20506compiler=$CC
20507compiler_RC=$CC
20508for cc_temp in $compiler""; do
20509  case $cc_temp in
20510    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20511    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20512    \-*) ;;
20513    *) break;;
20514  esac
20515done
20516cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20517
20518lt_cv_prog_compiler_c_o_RC=yes
20519
20520# The else clause should only fire when bootstrapping the
20521# libtool distribution, otherwise you forgot to ship ltmain.sh
20522# with your package, and you will get complaints that there are
20523# no rules to generate ltmain.sh.
20524if test -f "$ltmain"; then
20525  # See if we are running on zsh, and set the options which allow our commands through
20526  # without removal of \ escapes.
20527  if test -n "${ZSH_VERSION+set}" ; then
20528    setopt NO_GLOB_SUBST
20529  fi
20530  # Now quote all the things that may contain metacharacters while being
20531  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20532  # variables and quote the copies for generation of the libtool script.
20533  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20534    SED SHELL STRIP \
20535    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20536    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20537    deplibs_check_method reload_flag reload_cmds need_locks \
20538    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20539    lt_cv_sys_global_symbol_to_c_name_address \
20540    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20541    old_postinstall_cmds old_postuninstall_cmds \
20542    compiler_RC \
20543    CC_RC \
20544    LD_RC \
20545    lt_prog_compiler_wl_RC \
20546    lt_prog_compiler_pic_RC \
20547    lt_prog_compiler_static_RC \
20548    lt_prog_compiler_no_builtin_flag_RC \
20549    export_dynamic_flag_spec_RC \
20550    thread_safe_flag_spec_RC \
20551    whole_archive_flag_spec_RC \
20552    enable_shared_with_static_runtimes_RC \
20553    old_archive_cmds_RC \
20554    old_archive_from_new_cmds_RC \
20555    predep_objects_RC \
20556    postdep_objects_RC \
20557    predeps_RC \
20558    postdeps_RC \
20559    compiler_lib_search_path_RC \
20560    archive_cmds_RC \
20561    archive_expsym_cmds_RC \
20562    postinstall_cmds_RC \
20563    postuninstall_cmds_RC \
20564    old_archive_from_expsyms_cmds_RC \
20565    allow_undefined_flag_RC \
20566    no_undefined_flag_RC \
20567    export_symbols_cmds_RC \
20568    hardcode_libdir_flag_spec_RC \
20569    hardcode_libdir_flag_spec_ld_RC \
20570    hardcode_libdir_separator_RC \
20571    hardcode_automatic_RC \
20572    module_cmds_RC \
20573    module_expsym_cmds_RC \
20574    lt_cv_prog_compiler_c_o_RC \
20575    exclude_expsyms_RC \
20576    include_expsyms_RC; do
20577
20578    case $var in
20579    old_archive_cmds_RC | \
20580    old_archive_from_new_cmds_RC | \
20581    archive_cmds_RC | \
20582    archive_expsym_cmds_RC | \
20583    module_cmds_RC | \
20584    module_expsym_cmds_RC | \
20585    old_archive_from_expsyms_cmds_RC | \
20586    export_symbols_cmds_RC | \
20587    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20588    postinstall_cmds | postuninstall_cmds | \
20589    old_postinstall_cmds | old_postuninstall_cmds | \
20590    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20591      # Double-quote double-evaled strings.
20592      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20593      ;;
20594    *)
20595      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20596      ;;
20597    esac
20598  done
20599
20600  case $lt_echo in
20601  *'\$0 --fallback-echo"')
20602    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20603    ;;
20604  esac
20605
20606cfgfile="$ofile"
20607
20608  cat <<__EOF__ >> "$cfgfile"
20609# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20610
20611# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20612
20613# Shell to use when invoking shell scripts.
20614SHELL=$lt_SHELL
20615
20616# Whether or not to build shared libraries.
20617build_libtool_libs=$enable_shared
20618
20619# Whether or not to build static libraries.
20620build_old_libs=$enable_static
20621
20622# Whether or not to add -lc for building shared libraries.
20623build_libtool_need_lc=$archive_cmds_need_lc_RC
20624
20625# Whether or not to disallow shared libs when runtime libs are static
20626allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20627
20628# Whether or not to optimize for fast installation.
20629fast_install=$enable_fast_install
20630
20631# The host system.
20632host_alias=$host_alias
20633host=$host
20634host_os=$host_os
20635
20636# The build system.
20637build_alias=$build_alias
20638build=$build
20639build_os=$build_os
20640
20641# An echo program that does not interpret backslashes.
20642echo=$lt_echo
20643
20644# The archiver.
20645AR=$lt_AR
20646AR_FLAGS=$lt_AR_FLAGS
20647
20648# A C compiler.
20649LTCC=$lt_LTCC
20650
20651# LTCC compiler flags.
20652LTCFLAGS=$lt_LTCFLAGS
20653
20654# A language-specific compiler.
20655CC=$lt_compiler_RC
20656
20657# Is the compiler the GNU C compiler?
20658with_gcc=$GCC_RC
20659
20660# An ERE matcher.
20661EGREP=$lt_EGREP
20662
20663# The linker used to build libraries.
20664LD=$lt_LD_RC
20665
20666# Whether we need hard or soft links.
20667LN_S=$lt_LN_S
20668
20669# A BSD-compatible nm program.
20670NM=$lt_NM
20671
20672# A symbol stripping program
20673STRIP=$lt_STRIP
20674
20675# Used to examine libraries when file_magic_cmd begins "file"
20676MAGIC_CMD=$MAGIC_CMD
20677
20678# Used on cygwin: DLL creation program.
20679DLLTOOL="$DLLTOOL"
20680
20681# Used on cygwin: object dumper.
20682OBJDUMP="$OBJDUMP"
20683
20684# Used on cygwin: assembler.
20685AS="$AS"
20686
20687# The name of the directory that contains temporary libtool files.
20688objdir=$objdir
20689
20690# How to create reloadable object files.
20691reload_flag=$lt_reload_flag
20692reload_cmds=$lt_reload_cmds
20693
20694# How to pass a linker flag through the compiler.
20695wl=$lt_lt_prog_compiler_wl_RC
20696
20697# Object file suffix (normally "o").
20698objext="$ac_objext"
20699
20700# Old archive suffix (normally "a").
20701libext="$libext"
20702
20703# Shared library suffix (normally ".so").
20704shrext_cmds='$shrext_cmds'
20705
20706# Executable file suffix (normally "").
20707exeext="$exeext"
20708
20709# Additional compiler flags for building library objects.
20710pic_flag=$lt_lt_prog_compiler_pic_RC
20711pic_mode=$pic_mode
20712
20713# What is the maximum length of a command?
20714max_cmd_len=$lt_cv_sys_max_cmd_len
20715
20716# Does compiler simultaneously support -c and -o options?
20717compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20718
20719# Must we lock files when doing compilation?
20720need_locks=$lt_need_locks
20721
20722# Do we need the lib prefix for modules?
20723need_lib_prefix=$need_lib_prefix
20724
20725# Do we need a version for libraries?
20726need_version=$need_version
20727
20728# Whether dlopen is supported.
20729dlopen_support=$enable_dlopen
20730
20731# Whether dlopen of programs is supported.
20732dlopen_self=$enable_dlopen_self
20733
20734# Whether dlopen of statically linked programs is supported.
20735dlopen_self_static=$enable_dlopen_self_static
20736
20737# Compiler flag to prevent dynamic linking.
20738link_static_flag=$lt_lt_prog_compiler_static_RC
20739
20740# Compiler flag to turn off builtin functions.
20741no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20742
20743# Compiler flag to allow reflexive dlopens.
20744export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20745
20746# Compiler flag to generate shared objects directly from archives.
20747whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20748
20749# Compiler flag to generate thread-safe objects.
20750thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20751
20752# Library versioning type.
20753version_type=$version_type
20754
20755# Format of library name prefix.
20756libname_spec=$lt_libname_spec
20757
20758# List of archive names.  First name is the real one, the rest are links.
20759# The last name is the one that the linker finds with -lNAME.
20760library_names_spec=$lt_library_names_spec
20761
20762# The coded name of the library, if different from the real name.
20763soname_spec=$lt_soname_spec
20764
20765# Commands used to build and install an old-style archive.
20766RANLIB=$lt_RANLIB
20767old_archive_cmds=$lt_old_archive_cmds_RC
20768old_postinstall_cmds=$lt_old_postinstall_cmds
20769old_postuninstall_cmds=$lt_old_postuninstall_cmds
20770
20771# Create an old-style archive from a shared archive.
20772old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20773
20774# Create a temporary old-style archive to link instead of a shared archive.
20775old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20776
20777# Commands used to build and install a shared archive.
20778archive_cmds=$lt_archive_cmds_RC
20779archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20780postinstall_cmds=$lt_postinstall_cmds
20781postuninstall_cmds=$lt_postuninstall_cmds
20782
20783# Commands used to build a loadable module (assumed same as above if empty)
20784module_cmds=$lt_module_cmds_RC
20785module_expsym_cmds=$lt_module_expsym_cmds_RC
20786
20787# Commands to strip libraries.
20788old_striplib=$lt_old_striplib
20789striplib=$lt_striplib
20790
20791# Dependencies to place before the objects being linked to create a
20792# shared library.
20793predep_objects=$lt_predep_objects_RC
20794
20795# Dependencies to place after the objects being linked to create a
20796# shared library.
20797postdep_objects=$lt_postdep_objects_RC
20798
20799# Dependencies to place before the objects being linked to create a
20800# shared library.
20801predeps=$lt_predeps_RC
20802
20803# Dependencies to place after the objects being linked to create a
20804# shared library.
20805postdeps=$lt_postdeps_RC
20806
20807# The library search path used internally by the compiler when linking
20808# a shared library.
20809compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20810
20811# Method to check whether dependent libraries are shared objects.
20812deplibs_check_method=$lt_deplibs_check_method
20813
20814# Command to use when deplibs_check_method == file_magic.
20815file_magic_cmd=$lt_file_magic_cmd
20816
20817# Flag that allows shared libraries with undefined symbols to be built.
20818allow_undefined_flag=$lt_allow_undefined_flag_RC
20819
20820# Flag that forces no undefined symbols.
20821no_undefined_flag=$lt_no_undefined_flag_RC
20822
20823# Commands used to finish a libtool library installation in a directory.
20824finish_cmds=$lt_finish_cmds
20825
20826# Same as above, but a single script fragment to be evaled but not shown.
20827finish_eval=$lt_finish_eval
20828
20829# Take the output of nm and produce a listing of raw symbols and C names.
20830global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20831
20832# Transform the output of nm in a proper C declaration
20833global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20834
20835# Transform the output of nm in a C name address pair
20836global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20837
20838# This is the shared library runtime path variable.
20839runpath_var=$runpath_var
20840
20841# This is the shared library path variable.
20842shlibpath_var=$shlibpath_var
20843
20844# Is shlibpath searched before the hard-coded library search path?
20845shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20846
20847# How to hardcode a shared library path into an executable.
20848hardcode_action=$hardcode_action_RC
20849
20850# Whether we should hardcode library paths into libraries.
20851hardcode_into_libs=$hardcode_into_libs
20852
20853# Flag to hardcode \$libdir into a binary during linking.
20854# This must work even if \$libdir does not exist.
20855hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20856
20857# If ld is used when linking, flag to hardcode \$libdir into
20858# a binary during linking. This must work even if \$libdir does
20859# not exist.
20860hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20861
20862# Whether we need a single -rpath flag with a separated argument.
20863hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20864
20865# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20866# resulting binary.
20867hardcode_direct=$hardcode_direct_RC
20868
20869# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20870# resulting binary.
20871hardcode_minus_L=$hardcode_minus_L_RC
20872
20873# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20874# the resulting binary.
20875hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20876
20877# Set to yes if building a shared library automatically hardcodes DIR into the library
20878# and all subsequent libraries and executables linked against it.
20879hardcode_automatic=$hardcode_automatic_RC
20880
20881# Variables whose values should be saved in libtool wrapper scripts and
20882# restored at relink time.
20883variables_saved_for_relink="$variables_saved_for_relink"
20884
20885# Whether libtool must link a program against all its dependency libraries.
20886link_all_deplibs=$link_all_deplibs_RC
20887
20888# Compile-time system search path for libraries
20889sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20890
20891# Run-time system search path for libraries
20892sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20893
20894# Fix the shell variable \$srcfile for the compiler.
20895fix_srcfile_path="$fix_srcfile_path_RC"
20896
20897# Set to yes if exported symbols are required.
20898always_export_symbols=$always_export_symbols_RC
20899
20900# The commands to list exported symbols.
20901export_symbols_cmds=$lt_export_symbols_cmds_RC
20902
20903# The commands to extract the exported symbol list from a shared archive.
20904extract_expsyms_cmds=$lt_extract_expsyms_cmds
20905
20906# Symbols that should not be listed in the preloaded symbols.
20907exclude_expsyms=$lt_exclude_expsyms_RC
20908
20909# Symbols that must always be exported.
20910include_expsyms=$lt_include_expsyms_RC
20911
20912# ### END LIBTOOL TAG CONFIG: $tagname
20913
20914__EOF__
20915
20916
20917else
20918  # If there is no Makefile yet, we rely on a make rule to execute
20919  # `config.status --recheck' to rerun these tests and create the
20920  # libtool script then.
20921  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20922  if test -f "$ltmain_in"; then
20923    test -f Makefile && make "$ltmain"
20924  fi
20925fi
20926
20927
20928ac_ext=c
20929ac_cpp='$CPP $CPPFLAGS'
20930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932ac_compiler_gnu=$ac_cv_c_compiler_gnu
20933
20934CC="$lt_save_CC"
20935
20936	;;
20937
20938      *)
20939	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20940echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20941   { (exit 1); exit 1; }; }
20942	;;
20943      esac
20944
20945      # Append the new tag name to the list of available tags.
20946      if test -n "$tagname" ; then
20947      available_tags="$available_tags $tagname"
20948    fi
20949    fi
20950  done
20951  IFS="$lt_save_ifs"
20952
20953  # Now substitute the updated list of available tags.
20954  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20955    mv "${ofile}T" "$ofile"
20956    chmod +x "$ofile"
20957  else
20958    rm -f "${ofile}T"
20959    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20960echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20961   { (exit 1); exit 1; }; }
20962  fi
20963fi
20964
20965
20966
20967# This can be used to rebuild libtool when needed
20968LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20969
20970# Always use our own libtool.
20971LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20972
20973# Prevent multiple expansion
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
20998echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
20999    # Check whether --enable-nls was given.
21000if test "${enable_nls+set}" = set; then
21001  enableval=$enable_nls; USE_NLS=$enableval
21002else
21003  USE_NLS=yes
21004fi
21005
21006  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
21007echo "${ECHO_T}$USE_NLS" >&6; }
21008
21009
21010
21011
21012
21013
21014# Prepare PATH_SEPARATOR.
21015# The user is always right.
21016if test "${PATH_SEPARATOR+set}" != set; then
21017  echo "#! /bin/sh" >conf$$.sh
21018  echo  "exit 0"   >>conf$$.sh
21019  chmod +x conf$$.sh
21020  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21021    PATH_SEPARATOR=';'
21022  else
21023    PATH_SEPARATOR=:
21024  fi
21025  rm -f conf$$.sh
21026fi
21027
21028# Find out how to test for executable files. Don't use a zero-byte file,
21029# as systems may use methods other than mode bits to determine executability.
21030cat >conf$$.file <<_ASEOF
21031#! /bin/sh
21032exit 0
21033_ASEOF
21034chmod +x conf$$.file
21035if test -x conf$$.file >/dev/null 2>&1; then
21036  ac_executable_p="test -x"
21037else
21038  ac_executable_p="test -f"
21039fi
21040rm -f conf$$.file
21041
21042# Extract the first word of "msgfmt", so it can be a program name with args.
21043set dummy msgfmt; ac_word=$2
21044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21046if test "${ac_cv_path_MSGFMT+set}" = set; then
21047  echo $ECHO_N "(cached) $ECHO_C" >&6
21048else
21049  case "$MSGFMT" in
21050  [\\/]* | ?:[\\/]*)
21051    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21052    ;;
21053  *)
21054    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21055    for ac_dir in $PATH; do
21056      IFS="$ac_save_IFS"
21057      test -z "$ac_dir" && ac_dir=.
21058      for ac_exec_ext in '' $ac_executable_extensions; do
21059        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21060          echo "$as_me: trying $ac_dir/$ac_word..." >&5
21061          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
21062     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21063            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
21064            break 2
21065          fi
21066        fi
21067      done
21068    done
21069    IFS="$ac_save_IFS"
21070  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
21071    ;;
21072esac
21073fi
21074MSGFMT="$ac_cv_path_MSGFMT"
21075if test "$MSGFMT" != ":"; then
21076  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
21077echo "${ECHO_T}$MSGFMT" >&6; }
21078else
21079  { echo "$as_me:$LINENO: result: no" >&5
21080echo "${ECHO_T}no" >&6; }
21081fi
21082
21083  # Extract the first word of "gmsgfmt", so it can be a program name with args.
21084set dummy gmsgfmt; ac_word=$2
21085{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21087if test "${ac_cv_path_GMSGFMT+set}" = set; then
21088  echo $ECHO_N "(cached) $ECHO_C" >&6
21089else
21090  case $GMSGFMT in
21091  [\\/]* | ?:[\\/]*)
21092  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21093  ;;
21094  *)
21095  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21096for as_dir in $PATH
21097do
21098  IFS=$as_save_IFS
21099  test -z "$as_dir" && as_dir=.
21100  for ac_exec_ext in '' $ac_executable_extensions; do
21101  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21102    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21103    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21104    break 2
21105  fi
21106done
21107done
21108IFS=$as_save_IFS
21109
21110  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
21111  ;;
21112esac
21113fi
21114GMSGFMT=$ac_cv_path_GMSGFMT
21115if test -n "$GMSGFMT"; then
21116  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
21117echo "${ECHO_T}$GMSGFMT" >&6; }
21118else
21119  { echo "$as_me:$LINENO: result: no" >&5
21120echo "${ECHO_T}no" >&6; }
21121fi
21122
21123
21124
21125    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21126    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
21127    *) MSGFMT_015=$MSGFMT ;;
21128  esac
21129
21130  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21131    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
21132    *) GMSGFMT_015=$GMSGFMT ;;
21133  esac
21134
21135
21136
21137# Prepare PATH_SEPARATOR.
21138# The user is always right.
21139if test "${PATH_SEPARATOR+set}" != set; then
21140  echo "#! /bin/sh" >conf$$.sh
21141  echo  "exit 0"   >>conf$$.sh
21142  chmod +x conf$$.sh
21143  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21144    PATH_SEPARATOR=';'
21145  else
21146    PATH_SEPARATOR=:
21147  fi
21148  rm -f conf$$.sh
21149fi
21150
21151# Find out how to test for executable files. Don't use a zero-byte file,
21152# as systems may use methods other than mode bits to determine executability.
21153cat >conf$$.file <<_ASEOF
21154#! /bin/sh
21155exit 0
21156_ASEOF
21157chmod +x conf$$.file
21158if test -x conf$$.file >/dev/null 2>&1; then
21159  ac_executable_p="test -x"
21160else
21161  ac_executable_p="test -f"
21162fi
21163rm -f conf$$.file
21164
21165# Extract the first word of "xgettext", so it can be a program name with args.
21166set dummy xgettext; ac_word=$2
21167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21169if test "${ac_cv_path_XGETTEXT+set}" = set; then
21170  echo $ECHO_N "(cached) $ECHO_C" >&6
21171else
21172  case "$XGETTEXT" in
21173  [\\/]* | ?:[\\/]*)
21174    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21175    ;;
21176  *)
21177    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21178    for ac_dir in $PATH; do
21179      IFS="$ac_save_IFS"
21180      test -z "$ac_dir" && ac_dir=.
21181      for ac_exec_ext in '' $ac_executable_extensions; do
21182        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21183          echo "$as_me: trying $ac_dir/$ac_word..." >&5
21184          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
21185     (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
21186            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
21187            break 2
21188          fi
21189        fi
21190      done
21191    done
21192    IFS="$ac_save_IFS"
21193  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21194    ;;
21195esac
21196fi
21197XGETTEXT="$ac_cv_path_XGETTEXT"
21198if test "$XGETTEXT" != ":"; then
21199  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21200echo "${ECHO_T}$XGETTEXT" >&6; }
21201else
21202  { echo "$as_me:$LINENO: result: no" >&5
21203echo "${ECHO_T}no" >&6; }
21204fi
21205
21206    rm -f messages.po
21207
21208    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21209    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
21210    *) XGETTEXT_015=$XGETTEXT ;;
21211  esac
21212
21213
21214
21215# Prepare PATH_SEPARATOR.
21216# The user is always right.
21217if test "${PATH_SEPARATOR+set}" != set; then
21218  echo "#! /bin/sh" >conf$$.sh
21219  echo  "exit 0"   >>conf$$.sh
21220  chmod +x conf$$.sh
21221  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21222    PATH_SEPARATOR=';'
21223  else
21224    PATH_SEPARATOR=:
21225  fi
21226  rm -f conf$$.sh
21227fi
21228
21229# Find out how to test for executable files. Don't use a zero-byte file,
21230# as systems may use methods other than mode bits to determine executability.
21231cat >conf$$.file <<_ASEOF
21232#! /bin/sh
21233exit 0
21234_ASEOF
21235chmod +x conf$$.file
21236if test -x conf$$.file >/dev/null 2>&1; then
21237  ac_executable_p="test -x"
21238else
21239  ac_executable_p="test -f"
21240fi
21241rm -f conf$$.file
21242
21243# Extract the first word of "msgmerge", so it can be a program name with args.
21244set dummy msgmerge; ac_word=$2
21245{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21247if test "${ac_cv_path_MSGMERGE+set}" = set; then
21248  echo $ECHO_N "(cached) $ECHO_C" >&6
21249else
21250  case "$MSGMERGE" in
21251  [\\/]* | ?:[\\/]*)
21252    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
21253    ;;
21254  *)
21255    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21256    for ac_dir in $PATH; do
21257      IFS="$ac_save_IFS"
21258      test -z "$ac_dir" && ac_dir=.
21259      for ac_exec_ext in '' $ac_executable_extensions; do
21260        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21261          echo "$as_me: trying $ac_dir/$ac_word..." >&5
21262          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
21263            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
21264            break 2
21265          fi
21266        fi
21267      done
21268    done
21269    IFS="$ac_save_IFS"
21270  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
21271    ;;
21272esac
21273fi
21274MSGMERGE="$ac_cv_path_MSGMERGE"
21275if test "$MSGMERGE" != ":"; then
21276  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21277echo "${ECHO_T}$MSGMERGE" >&6; }
21278else
21279  { echo "$as_me:$LINENO: result: no" >&5
21280echo "${ECHO_T}no" >&6; }
21281fi
21282
21283
21284        test -n "$localedir" || localedir='${datadir}/locale'
21285
21286
21287  ac_config_commands="$ac_config_commands po-directories"
21288
21289
21290
21291    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
21292echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
21293if test "${ac_cv_gnu_library_2+set}" = set; then
21294  echo $ECHO_N "(cached) $ECHO_C" >&6
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
21303#include <features.h>
21304#ifdef __GNU_LIBRARY__
21305 #if (__GLIBC__ >= 2)
21306  Lucky GNU user
21307 #endif
21308#endif
21309
21310_ACEOF
21311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21312  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
21313  ac_cv_gnu_library_2=yes
21314else
21315  ac_cv_gnu_library_2=no
21316fi
21317rm -f conftest*
21318
21319
21320
21321fi
21322{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
21323echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
21324
21325    GLIBC2="$ac_cv_gnu_library_2"
21326
21327
21328
21329
21330  CFLAG_VISIBILITY=
21331  HAVE_VISIBILITY=0
21332  if test -n "$GCC"; then
21333    { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
21334echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
21335    if test "${gl_cv_cc_visibility+set}" = set; then
21336  echo $ECHO_N "(cached) $ECHO_C" >&6
21337else
21338
21339      gl_save_CFLAGS="$CFLAGS"
21340      CFLAGS="$CFLAGS -fvisibility=hidden"
21341      cat >conftest.$ac_ext <<_ACEOF
21342/* confdefs.h.  */
21343_ACEOF
21344cat confdefs.h >>conftest.$ac_ext
21345cat >>conftest.$ac_ext <<_ACEOF
21346/* end confdefs.h.  */
21347extern __attribute__((__visibility__("hidden"))) int hiddenvar;
21348         extern __attribute__((__visibility__("default"))) int exportedvar;
21349         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
21350         extern __attribute__((__visibility__("default"))) int exportedfunc (void);
21351int
21352main ()
21353{
21354
21355  ;
21356  return 0;
21357}
21358_ACEOF
21359rm -f conftest.$ac_objext
21360if { (ac_try="$ac_compile"
21361case "(($ac_try" in
21362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363  *) ac_try_echo=$ac_try;;
21364esac
21365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366  (eval "$ac_compile") 2>conftest.er1
21367  ac_status=$?
21368  grep -v '^ *+' conftest.er1 >conftest.err
21369  rm -f conftest.er1
21370  cat conftest.err >&5
21371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372  (exit $ac_status); } && {
21373	 test -z "$ac_c_werror_flag" ||
21374	 test ! -s conftest.err
21375       } && test -s conftest.$ac_objext; then
21376  gl_cv_cc_visibility=yes
21377else
21378  echo "$as_me: failed program was:" >&5
21379sed 's/^/| /' conftest.$ac_ext >&5
21380
21381	gl_cv_cc_visibility=no
21382fi
21383
21384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21385      CFLAGS="$gl_save_CFLAGS"
21386fi
21387
21388    { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
21389echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
21390    if test $gl_cv_cc_visibility = yes; then
21391      CFLAG_VISIBILITY="-fvisibility=hidden"
21392      HAVE_VISIBILITY=1
21393    fi
21394  fi
21395
21396
21397
21398cat >>confdefs.h <<_ACEOF
21399#define HAVE_VISIBILITY $HAVE_VISIBILITY
21400_ACEOF
21401
21402
21403{ echo "$as_me:$LINENO: checking for inline" >&5
21404echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21405if test "${ac_cv_c_inline+set}" = set; then
21406  echo $ECHO_N "(cached) $ECHO_C" >&6
21407else
21408  ac_cv_c_inline=no
21409for ac_kw in inline __inline__ __inline; do
21410  cat >conftest.$ac_ext <<_ACEOF
21411/* confdefs.h.  */
21412_ACEOF
21413cat confdefs.h >>conftest.$ac_ext
21414cat >>conftest.$ac_ext <<_ACEOF
21415/* end confdefs.h.  */
21416#ifndef __cplusplus
21417typedef int foo_t;
21418static $ac_kw foo_t static_foo () {return 0; }
21419$ac_kw foo_t foo () {return 0; }
21420#endif
21421
21422_ACEOF
21423rm -f conftest.$ac_objext
21424if { (ac_try="$ac_compile"
21425case "(($ac_try" in
21426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427  *) ac_try_echo=$ac_try;;
21428esac
21429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21430  (eval "$ac_compile") 2>conftest.er1
21431  ac_status=$?
21432  grep -v '^ *+' conftest.er1 >conftest.err
21433  rm -f conftest.er1
21434  cat conftest.err >&5
21435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436  (exit $ac_status); } && {
21437	 test -z "$ac_c_werror_flag" ||
21438	 test ! -s conftest.err
21439       } && test -s conftest.$ac_objext; then
21440  ac_cv_c_inline=$ac_kw
21441else
21442  echo "$as_me: failed program was:" >&5
21443sed 's/^/| /' conftest.$ac_ext >&5
21444
21445
21446fi
21447
21448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21449  test "$ac_cv_c_inline" != no && break
21450done
21451
21452fi
21453{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21454echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21455
21456
21457case $ac_cv_c_inline in
21458  inline | yes) ;;
21459  *)
21460    case $ac_cv_c_inline in
21461      no) ac_val=;;
21462      *) ac_val=$ac_cv_c_inline;;
21463    esac
21464    cat >>confdefs.h <<_ACEOF
21465#ifndef __cplusplus
21466#define inline $ac_val
21467#endif
21468_ACEOF
21469    ;;
21470esac
21471
21472{ echo "$as_me:$LINENO: checking for size_t" >&5
21473echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21474if test "${ac_cv_type_size_t+set}" = set; then
21475  echo $ECHO_N "(cached) $ECHO_C" >&6
21476else
21477  cat >conftest.$ac_ext <<_ACEOF
21478/* confdefs.h.  */
21479_ACEOF
21480cat confdefs.h >>conftest.$ac_ext
21481cat >>conftest.$ac_ext <<_ACEOF
21482/* end confdefs.h.  */
21483$ac_includes_default
21484typedef size_t ac__type_new_;
21485int
21486main ()
21487{
21488if ((ac__type_new_ *) 0)
21489  return 0;
21490if (sizeof (ac__type_new_))
21491  return 0;
21492  ;
21493  return 0;
21494}
21495_ACEOF
21496rm -f conftest.$ac_objext
21497if { (ac_try="$ac_compile"
21498case "(($ac_try" in
21499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500  *) ac_try_echo=$ac_try;;
21501esac
21502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21503  (eval "$ac_compile") 2>conftest.er1
21504  ac_status=$?
21505  grep -v '^ *+' conftest.er1 >conftest.err
21506  rm -f conftest.er1
21507  cat conftest.err >&5
21508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509  (exit $ac_status); } && {
21510	 test -z "$ac_c_werror_flag" ||
21511	 test ! -s conftest.err
21512       } && test -s conftest.$ac_objext; then
21513  ac_cv_type_size_t=yes
21514else
21515  echo "$as_me: failed program was:" >&5
21516sed 's/^/| /' conftest.$ac_ext >&5
21517
21518	ac_cv_type_size_t=no
21519fi
21520
21521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21522fi
21523{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21524echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21525if test $ac_cv_type_size_t = yes; then
21526  :
21527else
21528
21529cat >>confdefs.h <<_ACEOF
21530#define size_t unsigned int
21531_ACEOF
21532
21533fi
21534
21535
21536  { echo "$as_me:$LINENO: checking for stdint.h" >&5
21537echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
21538if test "${gl_cv_header_stdint_h+set}" = set; then
21539  echo $ECHO_N "(cached) $ECHO_C" >&6
21540else
21541  cat >conftest.$ac_ext <<_ACEOF
21542/* confdefs.h.  */
21543_ACEOF
21544cat confdefs.h >>conftest.$ac_ext
21545cat >>conftest.$ac_ext <<_ACEOF
21546/* end confdefs.h.  */
21547#include <sys/types.h>
21548#include <stdint.h>
21549int
21550main ()
21551{
21552uintmax_t i = (uintmax_t) -1; return !i;
21553  ;
21554  return 0;
21555}
21556_ACEOF
21557rm -f conftest.$ac_objext
21558if { (ac_try="$ac_compile"
21559case "(($ac_try" in
21560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561  *) ac_try_echo=$ac_try;;
21562esac
21563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21564  (eval "$ac_compile") 2>conftest.er1
21565  ac_status=$?
21566  grep -v '^ *+' conftest.er1 >conftest.err
21567  rm -f conftest.er1
21568  cat conftest.err >&5
21569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570  (exit $ac_status); } && {
21571	 test -z "$ac_c_werror_flag" ||
21572	 test ! -s conftest.err
21573       } && test -s conftest.$ac_objext; then
21574  gl_cv_header_stdint_h=yes
21575else
21576  echo "$as_me: failed program was:" >&5
21577sed 's/^/| /' conftest.$ac_ext >&5
21578
21579	gl_cv_header_stdint_h=no
21580fi
21581
21582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21583fi
21584{ echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
21585echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
21586  if test $gl_cv_header_stdint_h = yes; then
21587
21588cat >>confdefs.h <<_ACEOF
21589#define HAVE_STDINT_H_WITH_UINTMAX 1
21590_ACEOF
21591
21592  fi
21593
21594# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21595# for constant arguments.  Useless!
21596{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
21597echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
21598if test "${ac_cv_working_alloca_h+set}" = set; then
21599  echo $ECHO_N "(cached) $ECHO_C" >&6
21600else
21601  cat >conftest.$ac_ext <<_ACEOF
21602/* confdefs.h.  */
21603_ACEOF
21604cat confdefs.h >>conftest.$ac_ext
21605cat >>conftest.$ac_ext <<_ACEOF
21606/* end confdefs.h.  */
21607#include <alloca.h>
21608int
21609main ()
21610{
21611char *p = (char *) alloca (2 * sizeof (int));
21612			  if (p) return 0;
21613  ;
21614  return 0;
21615}
21616_ACEOF
21617rm -f conftest.$ac_objext conftest$ac_exeext
21618if { (ac_try="$ac_link"
21619case "(($ac_try" in
21620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621  *) ac_try_echo=$ac_try;;
21622esac
21623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624  (eval "$ac_link") 2>conftest.er1
21625  ac_status=$?
21626  grep -v '^ *+' conftest.er1 >conftest.err
21627  rm -f conftest.er1
21628  cat conftest.err >&5
21629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630  (exit $ac_status); } && {
21631	 test -z "$ac_c_werror_flag" ||
21632	 test ! -s conftest.err
21633       } && test -s conftest$ac_exeext &&
21634       $as_test_x conftest$ac_exeext; then
21635  ac_cv_working_alloca_h=yes
21636else
21637  echo "$as_me: failed program was:" >&5
21638sed 's/^/| /' conftest.$ac_ext >&5
21639
21640	ac_cv_working_alloca_h=no
21641fi
21642
21643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21644      conftest$ac_exeext conftest.$ac_ext
21645fi
21646{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21647echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
21648if test $ac_cv_working_alloca_h = yes; then
21649
21650cat >>confdefs.h <<\_ACEOF
21651#define HAVE_ALLOCA_H 1
21652_ACEOF
21653
21654fi
21655
21656{ echo "$as_me:$LINENO: checking for alloca" >&5
21657echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
21658if test "${ac_cv_func_alloca_works+set}" = set; then
21659  echo $ECHO_N "(cached) $ECHO_C" >&6
21660else
21661  cat >conftest.$ac_ext <<_ACEOF
21662/* confdefs.h.  */
21663_ACEOF
21664cat confdefs.h >>conftest.$ac_ext
21665cat >>conftest.$ac_ext <<_ACEOF
21666/* end confdefs.h.  */
21667#ifdef __GNUC__
21668# define alloca __builtin_alloca
21669#else
21670# ifdef _MSC_VER
21671#  include <malloc.h>
21672#  define alloca _alloca
21673# else
21674#  ifdef HAVE_ALLOCA_H
21675#   include <alloca.h>
21676#  else
21677#   ifdef _AIX
21678 #pragma alloca
21679#   else
21680#    ifndef alloca /* predefined by HP cc +Olibcalls */
21681char *alloca ();
21682#    endif
21683#   endif
21684#  endif
21685# endif
21686#endif
21687
21688int
21689main ()
21690{
21691char *p = (char *) alloca (1);
21692				    if (p) return 0;
21693  ;
21694  return 0;
21695}
21696_ACEOF
21697rm -f conftest.$ac_objext conftest$ac_exeext
21698if { (ac_try="$ac_link"
21699case "(($ac_try" in
21700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701  *) ac_try_echo=$ac_try;;
21702esac
21703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21704  (eval "$ac_link") 2>conftest.er1
21705  ac_status=$?
21706  grep -v '^ *+' conftest.er1 >conftest.err
21707  rm -f conftest.er1
21708  cat conftest.err >&5
21709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710  (exit $ac_status); } && {
21711	 test -z "$ac_c_werror_flag" ||
21712	 test ! -s conftest.err
21713       } && test -s conftest$ac_exeext &&
21714       $as_test_x conftest$ac_exeext; then
21715  ac_cv_func_alloca_works=yes
21716else
21717  echo "$as_me: failed program was:" >&5
21718sed 's/^/| /' conftest.$ac_ext >&5
21719
21720	ac_cv_func_alloca_works=no
21721fi
21722
21723rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21724      conftest$ac_exeext conftest.$ac_ext
21725fi
21726{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21727echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
21728
21729if test $ac_cv_func_alloca_works = yes; then
21730
21731cat >>confdefs.h <<\_ACEOF
21732#define HAVE_ALLOCA 1
21733_ACEOF
21734
21735else
21736  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21737# that cause trouble.  Some versions do not even contain alloca or
21738# contain a buggy version.  If you still want to use their alloca,
21739# use ar to extract alloca.o from them instead of compiling alloca.c.
21740
21741ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21742
21743cat >>confdefs.h <<\_ACEOF
21744#define C_ALLOCA 1
21745_ACEOF
21746
21747
21748{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21749echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
21750if test "${ac_cv_os_cray+set}" = set; then
21751  echo $ECHO_N "(cached) $ECHO_C" >&6
21752else
21753  cat >conftest.$ac_ext <<_ACEOF
21754/* confdefs.h.  */
21755_ACEOF
21756cat confdefs.h >>conftest.$ac_ext
21757cat >>conftest.$ac_ext <<_ACEOF
21758/* end confdefs.h.  */
21759#if defined CRAY && ! defined CRAY2
21760webecray
21761#else
21762wenotbecray
21763#endif
21764
21765_ACEOF
21766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21767  $EGREP "webecray" >/dev/null 2>&1; then
21768  ac_cv_os_cray=yes
21769else
21770  ac_cv_os_cray=no
21771fi
21772rm -f conftest*
21773
21774fi
21775{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21776echo "${ECHO_T}$ac_cv_os_cray" >&6; }
21777if test $ac_cv_os_cray = yes; then
21778  for ac_func in _getb67 GETB67 getb67; do
21779    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21780{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21781echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21782if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21783  echo $ECHO_N "(cached) $ECHO_C" >&6
21784else
21785  cat >conftest.$ac_ext <<_ACEOF
21786/* confdefs.h.  */
21787_ACEOF
21788cat confdefs.h >>conftest.$ac_ext
21789cat >>conftest.$ac_ext <<_ACEOF
21790/* end confdefs.h.  */
21791/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21792   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21793#define $ac_func innocuous_$ac_func
21794
21795/* System header to define __stub macros and hopefully few prototypes,
21796    which can conflict with char $ac_func (); below.
21797    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21798    <limits.h> exists even on freestanding compilers.  */
21799
21800#ifdef __STDC__
21801# include <limits.h>
21802#else
21803# include <assert.h>
21804#endif
21805
21806#undef $ac_func
21807
21808/* Override any GCC internal prototype to avoid an error.
21809   Use char because int might match the return type of a GCC
21810   builtin and then its argument prototype would still apply.  */
21811#ifdef __cplusplus
21812extern "C"
21813#endif
21814char $ac_func ();
21815/* The GNU C library defines this for functions which it implements
21816    to always fail with ENOSYS.  Some functions are actually named
21817    something starting with __ and the normal name is an alias.  */
21818#if defined __stub_$ac_func || defined __stub___$ac_func
21819choke me
21820#endif
21821
21822int
21823main ()
21824{
21825return $ac_func ();
21826  ;
21827  return 0;
21828}
21829_ACEOF
21830rm -f conftest.$ac_objext conftest$ac_exeext
21831if { (ac_try="$ac_link"
21832case "(($ac_try" in
21833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834  *) ac_try_echo=$ac_try;;
21835esac
21836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21837  (eval "$ac_link") 2>conftest.er1
21838  ac_status=$?
21839  grep -v '^ *+' conftest.er1 >conftest.err
21840  rm -f conftest.er1
21841  cat conftest.err >&5
21842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843  (exit $ac_status); } && {
21844	 test -z "$ac_c_werror_flag" ||
21845	 test ! -s conftest.err
21846       } && test -s conftest$ac_exeext &&
21847       $as_test_x conftest$ac_exeext; then
21848  eval "$as_ac_var=yes"
21849else
21850  echo "$as_me: failed program was:" >&5
21851sed 's/^/| /' conftest.$ac_ext >&5
21852
21853	eval "$as_ac_var=no"
21854fi
21855
21856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21857      conftest$ac_exeext conftest.$ac_ext
21858fi
21859ac_res=`eval echo '${'$as_ac_var'}'`
21860	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21861echo "${ECHO_T}$ac_res" >&6; }
21862if test `eval echo '${'$as_ac_var'}'` = yes; then
21863
21864cat >>confdefs.h <<_ACEOF
21865#define CRAY_STACKSEG_END $ac_func
21866_ACEOF
21867
21868    break
21869fi
21870
21871  done
21872fi
21873
21874{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21875echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
21876if test "${ac_cv_c_stack_direction+set}" = set; then
21877  echo $ECHO_N "(cached) $ECHO_C" >&6
21878else
21879  if test "$cross_compiling" = yes; then
21880  ac_cv_c_stack_direction=0
21881else
21882  cat >conftest.$ac_ext <<_ACEOF
21883/* confdefs.h.  */
21884_ACEOF
21885cat confdefs.h >>conftest.$ac_ext
21886cat >>conftest.$ac_ext <<_ACEOF
21887/* end confdefs.h.  */
21888$ac_includes_default
21889int
21890find_stack_direction ()
21891{
21892  static char *addr = 0;
21893  auto char dummy;
21894  if (addr == 0)
21895    {
21896      addr = &dummy;
21897      return find_stack_direction ();
21898    }
21899  else
21900    return (&dummy > addr) ? 1 : -1;
21901}
21902
21903int
21904main ()
21905{
21906  return find_stack_direction () < 0;
21907}
21908_ACEOF
21909rm -f conftest$ac_exeext
21910if { (ac_try="$ac_link"
21911case "(($ac_try" in
21912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21913  *) ac_try_echo=$ac_try;;
21914esac
21915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21916  (eval "$ac_link") 2>&5
21917  ac_status=$?
21918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21920  { (case "(($ac_try" in
21921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922  *) ac_try_echo=$ac_try;;
21923esac
21924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925  (eval "$ac_try") 2>&5
21926  ac_status=$?
21927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928  (exit $ac_status); }; }; then
21929  ac_cv_c_stack_direction=1
21930else
21931  echo "$as_me: program exited with status $ac_status" >&5
21932echo "$as_me: failed program was:" >&5
21933sed 's/^/| /' conftest.$ac_ext >&5
21934
21935( exit $ac_status )
21936ac_cv_c_stack_direction=-1
21937fi
21938rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21939fi
21940
21941
21942fi
21943{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21944echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
21945
21946cat >>confdefs.h <<_ACEOF
21947#define STACK_DIRECTION $ac_cv_c_stack_direction
21948_ACEOF
21949
21950
21951fi
21952
21953
21954
21955for ac_header in stdlib.h unistd.h
21956do
21957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21959  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21962  echo $ECHO_N "(cached) $ECHO_C" >&6
21963fi
21964ac_res=`eval echo '${'$as_ac_Header'}'`
21965	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21966echo "${ECHO_T}$ac_res" >&6; }
21967else
21968  # Is the header compilable?
21969{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21970echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21971cat >conftest.$ac_ext <<_ACEOF
21972/* confdefs.h.  */
21973_ACEOF
21974cat confdefs.h >>conftest.$ac_ext
21975cat >>conftest.$ac_ext <<_ACEOF
21976/* end confdefs.h.  */
21977$ac_includes_default
21978#include <$ac_header>
21979_ACEOF
21980rm -f conftest.$ac_objext
21981if { (ac_try="$ac_compile"
21982case "(($ac_try" in
21983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984  *) ac_try_echo=$ac_try;;
21985esac
21986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987  (eval "$ac_compile") 2>conftest.er1
21988  ac_status=$?
21989  grep -v '^ *+' conftest.er1 >conftest.err
21990  rm -f conftest.er1
21991  cat conftest.err >&5
21992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993  (exit $ac_status); } && {
21994	 test -z "$ac_c_werror_flag" ||
21995	 test ! -s conftest.err
21996       } && test -s conftest.$ac_objext; then
21997  ac_header_compiler=yes
21998else
21999  echo "$as_me: failed program was:" >&5
22000sed 's/^/| /' conftest.$ac_ext >&5
22001
22002	ac_header_compiler=no
22003fi
22004
22005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22007echo "${ECHO_T}$ac_header_compiler" >&6; }
22008
22009# Is the header present?
22010{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22011echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22012cat >conftest.$ac_ext <<_ACEOF
22013/* confdefs.h.  */
22014_ACEOF
22015cat confdefs.h >>conftest.$ac_ext
22016cat >>conftest.$ac_ext <<_ACEOF
22017/* end confdefs.h.  */
22018#include <$ac_header>
22019_ACEOF
22020if { (ac_try="$ac_cpp conftest.$ac_ext"
22021case "(($ac_try" in
22022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023  *) ac_try_echo=$ac_try;;
22024esac
22025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22026  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22027  ac_status=$?
22028  grep -v '^ *+' conftest.er1 >conftest.err
22029  rm -f conftest.er1
22030  cat conftest.err >&5
22031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032  (exit $ac_status); } >/dev/null && {
22033	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22034	 test ! -s conftest.err
22035       }; then
22036  ac_header_preproc=yes
22037else
22038  echo "$as_me: failed program was:" >&5
22039sed 's/^/| /' conftest.$ac_ext >&5
22040
22041  ac_header_preproc=no
22042fi
22043
22044rm -f conftest.err conftest.$ac_ext
22045{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22046echo "${ECHO_T}$ac_header_preproc" >&6; }
22047
22048# So?  What about this header?
22049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22050  yes:no: )
22051    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22052echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22053    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22054echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22055    ac_header_preproc=yes
22056    ;;
22057  no:yes:* )
22058    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22059echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22060    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22061echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22062    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22063echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22064    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22065echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22066    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22068    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22069echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22070
22071    ;;
22072esac
22073{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22075if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22076  echo $ECHO_N "(cached) $ECHO_C" >&6
22077else
22078  eval "$as_ac_Header=\$ac_header_preproc"
22079fi
22080ac_res=`eval echo '${'$as_ac_Header'}'`
22081	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22082echo "${ECHO_T}$ac_res" >&6; }
22083
22084fi
22085if test `eval echo '${'$as_ac_Header'}'` = yes; then
22086  cat >>confdefs.h <<_ACEOF
22087#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22088_ACEOF
22089
22090fi
22091
22092done
22093
22094
22095for ac_func in getpagesize
22096do
22097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22098{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22100if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22101  echo $ECHO_N "(cached) $ECHO_C" >&6
22102else
22103  cat >conftest.$ac_ext <<_ACEOF
22104/* confdefs.h.  */
22105_ACEOF
22106cat confdefs.h >>conftest.$ac_ext
22107cat >>conftest.$ac_ext <<_ACEOF
22108/* end confdefs.h.  */
22109/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22110   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22111#define $ac_func innocuous_$ac_func
22112
22113/* System header to define __stub macros and hopefully few prototypes,
22114    which can conflict with char $ac_func (); below.
22115    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22116    <limits.h> exists even on freestanding compilers.  */
22117
22118#ifdef __STDC__
22119# include <limits.h>
22120#else
22121# include <assert.h>
22122#endif
22123
22124#undef $ac_func
22125
22126/* Override any GCC internal prototype to avoid an error.
22127   Use char because int might match the return type of a GCC
22128   builtin and then its argument prototype would still apply.  */
22129#ifdef __cplusplus
22130extern "C"
22131#endif
22132char $ac_func ();
22133/* The GNU C library defines this for functions which it implements
22134    to always fail with ENOSYS.  Some functions are actually named
22135    something starting with __ and the normal name is an alias.  */
22136#if defined __stub_$ac_func || defined __stub___$ac_func
22137choke me
22138#endif
22139
22140int
22141main ()
22142{
22143return $ac_func ();
22144  ;
22145  return 0;
22146}
22147_ACEOF
22148rm -f conftest.$ac_objext conftest$ac_exeext
22149if { (ac_try="$ac_link"
22150case "(($ac_try" in
22151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22152  *) ac_try_echo=$ac_try;;
22153esac
22154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22155  (eval "$ac_link") 2>conftest.er1
22156  ac_status=$?
22157  grep -v '^ *+' conftest.er1 >conftest.err
22158  rm -f conftest.er1
22159  cat conftest.err >&5
22160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161  (exit $ac_status); } && {
22162	 test -z "$ac_c_werror_flag" ||
22163	 test ! -s conftest.err
22164       } && test -s conftest$ac_exeext &&
22165       $as_test_x conftest$ac_exeext; then
22166  eval "$as_ac_var=yes"
22167else
22168  echo "$as_me: failed program was:" >&5
22169sed 's/^/| /' conftest.$ac_ext >&5
22170
22171	eval "$as_ac_var=no"
22172fi
22173
22174rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22175      conftest$ac_exeext conftest.$ac_ext
22176fi
22177ac_res=`eval echo '${'$as_ac_var'}'`
22178	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22179echo "${ECHO_T}$ac_res" >&6; }
22180if test `eval echo '${'$as_ac_var'}'` = yes; then
22181  cat >>confdefs.h <<_ACEOF
22182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22183_ACEOF
22184
22185fi
22186done
22187
22188{ echo "$as_me:$LINENO: checking for working mmap" >&5
22189echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
22190if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22191  echo $ECHO_N "(cached) $ECHO_C" >&6
22192else
22193  if test "$cross_compiling" = yes; then
22194  ac_cv_func_mmap_fixed_mapped=no
22195else
22196  cat >conftest.$ac_ext <<_ACEOF
22197/* confdefs.h.  */
22198_ACEOF
22199cat confdefs.h >>conftest.$ac_ext
22200cat >>conftest.$ac_ext <<_ACEOF
22201/* end confdefs.h.  */
22202$ac_includes_default
22203/* malloc might have been renamed as rpl_malloc. */
22204#undef malloc
22205
22206/* Thanks to Mike Haertel and Jim Avera for this test.
22207   Here is a matrix of mmap possibilities:
22208	mmap private not fixed
22209	mmap private fixed at somewhere currently unmapped
22210	mmap private fixed at somewhere already mapped
22211	mmap shared not fixed
22212	mmap shared fixed at somewhere currently unmapped
22213	mmap shared fixed at somewhere already mapped
22214   For private mappings, we should verify that changes cannot be read()
22215   back from the file, nor mmap's back from the file at a different
22216   address.  (There have been systems where private was not correctly
22217   implemented like the infamous i386 svr4.0, and systems where the
22218   VM page cache was not coherent with the file system buffer cache
22219   like early versions of FreeBSD and possibly contemporary NetBSD.)
22220   For shared mappings, we should conversely verify that changes get
22221   propagated back to all the places they're supposed to be.
22222
22223   Grep wants private fixed already mapped.
22224   The main things grep needs to know about mmap are:
22225   * does it exist and is it safe to write into the mmap'd area
22226   * how to use it (BSD variants)  */
22227
22228#include <fcntl.h>
22229#include <sys/mman.h>
22230
22231#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22232char *malloc ();
22233#endif
22234
22235/* This mess was copied from the GNU getpagesize.h.  */
22236#ifndef HAVE_GETPAGESIZE
22237/* Assume that all systems that can run configure have sys/param.h.  */
22238# ifndef HAVE_SYS_PARAM_H
22239#  define HAVE_SYS_PARAM_H 1
22240# endif
22241
22242# ifdef _SC_PAGESIZE
22243#  define getpagesize() sysconf(_SC_PAGESIZE)
22244# else /* no _SC_PAGESIZE */
22245#  ifdef HAVE_SYS_PARAM_H
22246#   include <sys/param.h>
22247#   ifdef EXEC_PAGESIZE
22248#    define getpagesize() EXEC_PAGESIZE
22249#   else /* no EXEC_PAGESIZE */
22250#    ifdef NBPG
22251#     define getpagesize() NBPG * CLSIZE
22252#     ifndef CLSIZE
22253#      define CLSIZE 1
22254#     endif /* no CLSIZE */
22255#    else /* no NBPG */
22256#     ifdef NBPC
22257#      define getpagesize() NBPC
22258#     else /* no NBPC */
22259#      ifdef PAGESIZE
22260#       define getpagesize() PAGESIZE
22261#      endif /* PAGESIZE */
22262#     endif /* no NBPC */
22263#    endif /* no NBPG */
22264#   endif /* no EXEC_PAGESIZE */
22265#  else /* no HAVE_SYS_PARAM_H */
22266#   define getpagesize() 8192	/* punt totally */
22267#  endif /* no HAVE_SYS_PARAM_H */
22268# endif /* no _SC_PAGESIZE */
22269
22270#endif /* no HAVE_GETPAGESIZE */
22271
22272int
22273main ()
22274{
22275  char *data, *data2, *data3;
22276  int i, pagesize;
22277  int fd;
22278
22279  pagesize = getpagesize ();
22280
22281  /* First, make a file with some known garbage in it. */
22282  data = (char *) malloc (pagesize);
22283  if (!data)
22284    return 1;
22285  for (i = 0; i < pagesize; ++i)
22286    *(data + i) = rand ();
22287  umask (0);
22288  fd = creat ("conftest.mmap", 0600);
22289  if (fd < 0)
22290    return 1;
22291  if (write (fd, data, pagesize) != pagesize)
22292    return 1;
22293  close (fd);
22294
22295  /* Next, try to mmap the file at a fixed address which already has
22296     something else allocated at it.  If we can, also make sure that
22297     we see the same garbage.  */
22298  fd = open ("conftest.mmap", O_RDWR);
22299  if (fd < 0)
22300    return 1;
22301  data2 = (char *) malloc (2 * pagesize);
22302  if (!data2)
22303    return 1;
22304  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
22305  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22306		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
22307    return 1;
22308  for (i = 0; i < pagesize; ++i)
22309    if (*(data + i) != *(data2 + i))
22310      return 1;
22311
22312  /* Finally, make sure that changes to the mapped area do not
22313     percolate back to the file as seen by read().  (This is a bug on
22314     some variants of i386 svr4.0.)  */
22315  for (i = 0; i < pagesize; ++i)
22316    *(data2 + i) = *(data2 + i) + 1;
22317  data3 = (char *) malloc (pagesize);
22318  if (!data3)
22319    return 1;
22320  if (read (fd, data3, pagesize) != pagesize)
22321    return 1;
22322  for (i = 0; i < pagesize; ++i)
22323    if (*(data + i) != *(data3 + i))
22324      return 1;
22325  close (fd);
22326  return 0;
22327}
22328_ACEOF
22329rm -f conftest$ac_exeext
22330if { (ac_try="$ac_link"
22331case "(($ac_try" in
22332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22333  *) ac_try_echo=$ac_try;;
22334esac
22335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22336  (eval "$ac_link") 2>&5
22337  ac_status=$?
22338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22340  { (case "(($ac_try" in
22341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22342  *) ac_try_echo=$ac_try;;
22343esac
22344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22345  (eval "$ac_try") 2>&5
22346  ac_status=$?
22347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348  (exit $ac_status); }; }; then
22349  ac_cv_func_mmap_fixed_mapped=yes
22350else
22351  echo "$as_me: program exited with status $ac_status" >&5
22352echo "$as_me: failed program was:" >&5
22353sed 's/^/| /' conftest.$ac_ext >&5
22354
22355( exit $ac_status )
22356ac_cv_func_mmap_fixed_mapped=no
22357fi
22358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22359fi
22360
22361
22362fi
22363{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22364echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
22365if test $ac_cv_func_mmap_fixed_mapped = yes; then
22366
22367cat >>confdefs.h <<\_ACEOF
22368#define HAVE_MMAP 1
22369_ACEOF
22370
22371fi
22372rm -f conftest.mmap
22373
22374
22375
22376  { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
22377echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
22378if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
22379  echo $ECHO_N "(cached) $ECHO_C" >&6
22380else
22381
22382      if test "$cross_compiling" = yes; then
22383
22384          # Guess based on the CPU.
22385          case "$host_cpu" in
22386            alpha* | i3456786 | m68k | s390*)
22387              gt_cv_int_divbyzero_sigfpe="guessing yes";;
22388            *)
22389              gt_cv_int_divbyzero_sigfpe="guessing no";;
22390          esac
22391
22392else
22393  cat >conftest.$ac_ext <<_ACEOF
22394/* confdefs.h.  */
22395_ACEOF
22396cat confdefs.h >>conftest.$ac_ext
22397cat >>conftest.$ac_ext <<_ACEOF
22398/* end confdefs.h.  */
22399
22400#include <stdlib.h>
22401#include <signal.h>
22402
22403static void
22404#ifdef __cplusplus
22405sigfpe_handler (int sig)
22406#else
22407sigfpe_handler (sig) int sig;
22408#endif
22409{
22410  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
22411  exit (sig != SIGFPE);
22412}
22413
22414int x = 1;
22415int y = 0;
22416int z;
22417int nan;
22418
22419int main ()
22420{
22421  signal (SIGFPE, sigfpe_handler);
22422/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
22423#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
22424  signal (SIGTRAP, sigfpe_handler);
22425#endif
22426/* Linux/SPARC yields signal SIGILL.  */
22427#if defined (__sparc__) && defined (__linux__)
22428  signal (SIGILL, sigfpe_handler);
22429#endif
22430
22431  z = x / y;
22432  nan = y / y;
22433  exit (1);
22434}
22435
22436_ACEOF
22437rm -f conftest$ac_exeext
22438if { (ac_try="$ac_link"
22439case "(($ac_try" in
22440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22441  *) ac_try_echo=$ac_try;;
22442esac
22443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22444  (eval "$ac_link") 2>&5
22445  ac_status=$?
22446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22448  { (case "(($ac_try" in
22449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22450  *) ac_try_echo=$ac_try;;
22451esac
22452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22453  (eval "$ac_try") 2>&5
22454  ac_status=$?
22455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456  (exit $ac_status); }; }; then
22457  gt_cv_int_divbyzero_sigfpe=yes
22458else
22459  echo "$as_me: program exited with status $ac_status" >&5
22460echo "$as_me: failed program was:" >&5
22461sed 's/^/| /' conftest.$ac_ext >&5
22462
22463( exit $ac_status )
22464gt_cv_int_divbyzero_sigfpe=no
22465fi
22466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22467fi
22468
22469
22470
22471fi
22472{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
22473echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
22474  case "$gt_cv_int_divbyzero_sigfpe" in
22475    *yes) value=1;;
22476    *) value=0;;
22477  esac
22478
22479cat >>confdefs.h <<_ACEOF
22480#define INTDIV0_RAISES_SIGFPE $value
22481_ACEOF
22482
22483
22484
22485  { echo "$as_me:$LINENO: checking for inttypes.h" >&5
22486echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
22487if test "${gl_cv_header_inttypes_h+set}" = set; then
22488  echo $ECHO_N "(cached) $ECHO_C" >&6
22489else
22490  cat >conftest.$ac_ext <<_ACEOF
22491/* confdefs.h.  */
22492_ACEOF
22493cat confdefs.h >>conftest.$ac_ext
22494cat >>conftest.$ac_ext <<_ACEOF
22495/* end confdefs.h.  */
22496#include <sys/types.h>
22497#include <inttypes.h>
22498int
22499main ()
22500{
22501uintmax_t i = (uintmax_t) -1; return !i;
22502  ;
22503  return 0;
22504}
22505_ACEOF
22506rm -f conftest.$ac_objext
22507if { (ac_try="$ac_compile"
22508case "(($ac_try" in
22509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510  *) ac_try_echo=$ac_try;;
22511esac
22512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22513  (eval "$ac_compile") 2>conftest.er1
22514  ac_status=$?
22515  grep -v '^ *+' conftest.er1 >conftest.err
22516  rm -f conftest.er1
22517  cat conftest.err >&5
22518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519  (exit $ac_status); } && {
22520	 test -z "$ac_c_werror_flag" ||
22521	 test ! -s conftest.err
22522       } && test -s conftest.$ac_objext; then
22523  gl_cv_header_inttypes_h=yes
22524else
22525  echo "$as_me: failed program was:" >&5
22526sed 's/^/| /' conftest.$ac_ext >&5
22527
22528	gl_cv_header_inttypes_h=no
22529fi
22530
22531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22532fi
22533{ echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
22534echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
22535  if test $gl_cv_header_inttypes_h = yes; then
22536
22537cat >>confdefs.h <<_ACEOF
22538#define HAVE_INTTYPES_H_WITH_UINTMAX 1
22539_ACEOF
22540
22541  fi
22542
22543
22544  { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
22545echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
22546if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
22547  echo $ECHO_N "(cached) $ECHO_C" >&6
22548else
22549  cat >conftest.$ac_ext <<_ACEOF
22550/* confdefs.h.  */
22551_ACEOF
22552cat confdefs.h >>conftest.$ac_ext
22553cat >>conftest.$ac_ext <<_ACEOF
22554/* end confdefs.h.  */
22555unsigned long long int ull = 18446744073709551615ULL;
22556	    typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
22557			   ? 1 : -1)];
22558	   int i = 63;
22559int
22560main ()
22561{
22562unsigned long long int ullmax = 18446744073709551615ull;
22563	    return (ull << 63 | ull >> 63 | ull << i | ull >> i
22564		    | ullmax / ull | ullmax % ull);
22565  ;
22566  return 0;
22567}
22568_ACEOF
22569rm -f conftest.$ac_objext conftest$ac_exeext
22570if { (ac_try="$ac_link"
22571case "(($ac_try" in
22572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22573  *) ac_try_echo=$ac_try;;
22574esac
22575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22576  (eval "$ac_link") 2>conftest.er1
22577  ac_status=$?
22578  grep -v '^ *+' conftest.er1 >conftest.err
22579  rm -f conftest.er1
22580  cat conftest.err >&5
22581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582  (exit $ac_status); } && {
22583	 test -z "$ac_c_werror_flag" ||
22584	 test ! -s conftest.err
22585       } && test -s conftest$ac_exeext &&
22586       $as_test_x conftest$ac_exeext; then
22587  ac_cv_type_unsigned_long_long_int=yes
22588else
22589  echo "$as_me: failed program was:" >&5
22590sed 's/^/| /' conftest.$ac_ext >&5
22591
22592	ac_cv_type_unsigned_long_long_int=no
22593fi
22594
22595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22596      conftest$ac_exeext conftest.$ac_ext
22597fi
22598{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
22599echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
22600  if test $ac_cv_type_unsigned_long_long_int = yes; then
22601
22602cat >>confdefs.h <<\_ACEOF
22603#define HAVE_UNSIGNED_LONG_LONG_INT 1
22604_ACEOF
22605
22606  fi
22607
22608
22609
22610  ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
22611  if test $ac_cv_type_unsigned_long_long = yes; then
22612
22613cat >>confdefs.h <<\_ACEOF
22614#define HAVE_UNSIGNED_LONG_LONG 1
22615_ACEOF
22616
22617  fi
22618
22619
22620
22621
22622  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
22623
22624    test $ac_cv_type_unsigned_long_long = yes \
22625      && ac_type='unsigned long long' \
22626      || ac_type='unsigned long'
22627
22628cat >>confdefs.h <<_ACEOF
22629#define uintmax_t $ac_type
22630_ACEOF
22631
22632  else
22633
22634cat >>confdefs.h <<\_ACEOF
22635#define HAVE_UINTMAX_T 1
22636_ACEOF
22637
22638  fi
22639
22640
22641
22642for ac_header in inttypes.h
22643do
22644as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22646  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22649  echo $ECHO_N "(cached) $ECHO_C" >&6
22650fi
22651ac_res=`eval echo '${'$as_ac_Header'}'`
22652	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22653echo "${ECHO_T}$ac_res" >&6; }
22654else
22655  # Is the header compilable?
22656{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22658cat >conftest.$ac_ext <<_ACEOF
22659/* confdefs.h.  */
22660_ACEOF
22661cat confdefs.h >>conftest.$ac_ext
22662cat >>conftest.$ac_ext <<_ACEOF
22663/* end confdefs.h.  */
22664$ac_includes_default
22665#include <$ac_header>
22666_ACEOF
22667rm -f conftest.$ac_objext
22668if { (ac_try="$ac_compile"
22669case "(($ac_try" in
22670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22671  *) ac_try_echo=$ac_try;;
22672esac
22673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22674  (eval "$ac_compile") 2>conftest.er1
22675  ac_status=$?
22676  grep -v '^ *+' conftest.er1 >conftest.err
22677  rm -f conftest.er1
22678  cat conftest.err >&5
22679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22680  (exit $ac_status); } && {
22681	 test -z "$ac_c_werror_flag" ||
22682	 test ! -s conftest.err
22683       } && test -s conftest.$ac_objext; then
22684  ac_header_compiler=yes
22685else
22686  echo "$as_me: failed program was:" >&5
22687sed 's/^/| /' conftest.$ac_ext >&5
22688
22689	ac_header_compiler=no
22690fi
22691
22692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22693{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22694echo "${ECHO_T}$ac_header_compiler" >&6; }
22695
22696# Is the header present?
22697{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22698echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22699cat >conftest.$ac_ext <<_ACEOF
22700/* confdefs.h.  */
22701_ACEOF
22702cat confdefs.h >>conftest.$ac_ext
22703cat >>conftest.$ac_ext <<_ACEOF
22704/* end confdefs.h.  */
22705#include <$ac_header>
22706_ACEOF
22707if { (ac_try="$ac_cpp conftest.$ac_ext"
22708case "(($ac_try" in
22709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22710  *) ac_try_echo=$ac_try;;
22711esac
22712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22713  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22714  ac_status=$?
22715  grep -v '^ *+' conftest.er1 >conftest.err
22716  rm -f conftest.er1
22717  cat conftest.err >&5
22718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719  (exit $ac_status); } >/dev/null && {
22720	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22721	 test ! -s conftest.err
22722       }; then
22723  ac_header_preproc=yes
22724else
22725  echo "$as_me: failed program was:" >&5
22726sed 's/^/| /' conftest.$ac_ext >&5
22727
22728  ac_header_preproc=no
22729fi
22730
22731rm -f conftest.err conftest.$ac_ext
22732{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22733echo "${ECHO_T}$ac_header_preproc" >&6; }
22734
22735# So?  What about this header?
22736case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22737  yes:no: )
22738    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22739echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22740    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22741echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22742    ac_header_preproc=yes
22743    ;;
22744  no:yes:* )
22745    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22746echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22747    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22748echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22749    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22750echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22751    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22752echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22753    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22754echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22755    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22756echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22757
22758    ;;
22759esac
22760{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22763  echo $ECHO_N "(cached) $ECHO_C" >&6
22764else
22765  eval "$as_ac_Header=\$ac_header_preproc"
22766fi
22767ac_res=`eval echo '${'$as_ac_Header'}'`
22768	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22769echo "${ECHO_T}$ac_res" >&6; }
22770
22771fi
22772if test `eval echo '${'$as_ac_Header'}'` = yes; then
22773  cat >>confdefs.h <<_ACEOF
22774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22775_ACEOF
22776
22777fi
22778
22779done
22780
22781  if test $ac_cv_header_inttypes_h = yes; then
22782    { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
22783echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
22784if test "${gt_cv_inttypes_pri_broken+set}" = set; then
22785  echo $ECHO_N "(cached) $ECHO_C" >&6
22786else
22787
22788        cat >conftest.$ac_ext <<_ACEOF
22789/* confdefs.h.  */
22790_ACEOF
22791cat confdefs.h >>conftest.$ac_ext
22792cat >>conftest.$ac_ext <<_ACEOF
22793/* end confdefs.h.  */
22794#include <inttypes.h>
22795#ifdef PRId32
22796char *p = PRId32;
22797#endif
22798
22799int
22800main ()
22801{
22802
22803  ;
22804  return 0;
22805}
22806_ACEOF
22807rm -f conftest.$ac_objext
22808if { (ac_try="$ac_compile"
22809case "(($ac_try" in
22810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22811  *) ac_try_echo=$ac_try;;
22812esac
22813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22814  (eval "$ac_compile") 2>conftest.er1
22815  ac_status=$?
22816  grep -v '^ *+' conftest.er1 >conftest.err
22817  rm -f conftest.er1
22818  cat conftest.err >&5
22819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820  (exit $ac_status); } && {
22821	 test -z "$ac_c_werror_flag" ||
22822	 test ! -s conftest.err
22823       } && test -s conftest.$ac_objext; then
22824  gt_cv_inttypes_pri_broken=no
22825else
22826  echo "$as_me: failed program was:" >&5
22827sed 's/^/| /' conftest.$ac_ext >&5
22828
22829	gt_cv_inttypes_pri_broken=yes
22830fi
22831
22832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22833
22834fi
22835{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
22836echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
22837  fi
22838  if test "$gt_cv_inttypes_pri_broken" = yes; then
22839
22840cat >>confdefs.h <<_ACEOF
22841#define PRI_MACROS_BROKEN 1
22842_ACEOF
22843
22844    PRI_MACROS_BROKEN=1
22845  else
22846    PRI_MACROS_BROKEN=0
22847  fi
22848
22849
22850
22851
22852
22853       # Check whether --enable-threads was given.
22854if test "${enable_threads+set}" = set; then
22855  enableval=$enable_threads; gl_use_threads=$enableval
22856else
22857  case "$host_os" in
22858                            osf*) gl_use_threads=no ;;
22859       *)    gl_use_threads=yes ;;
22860     esac
22861
22862fi
22863
22864  if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
22865    # For using <pthread.h>:
22866    case "$host_os" in
22867      osf*)
22868        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
22869        # groks <pthread.h>. cc also understands the flag -pthread, but
22870        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
22871        # 2. putting a flag into CPPFLAGS that has an effect on the linker
22872        # causes the AC_TRY_LINK test below to succeed unexpectedly,
22873        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
22874        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22875        ;;
22876    esac
22877    # Some systems optimize for single-threaded programs by default, and
22878    # need special flags to disable these optimizations. For example, the
22879    # definition of 'errno' in <errno.h>.
22880    case "$host_os" in
22881      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
22882      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
22883    esac
22884  fi
22885
22886
22887
22888
22889
22890      if test "X$prefix" = "XNONE"; then
22891    acl_final_prefix="$ac_default_prefix"
22892  else
22893    acl_final_prefix="$prefix"
22894  fi
22895  if test "X$exec_prefix" = "XNONE"; then
22896    acl_final_exec_prefix='${prefix}'
22897  else
22898    acl_final_exec_prefix="$exec_prefix"
22899  fi
22900  acl_save_prefix="$prefix"
22901  prefix="$acl_final_prefix"
22902  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22903  prefix="$acl_save_prefix"
22904
22905
22906# Check whether --with-gnu-ld was given.
22907if test "${with_gnu_ld+set}" = set; then
22908  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22909else
22910  with_gnu_ld=no
22911fi
22912
22913# Prepare PATH_SEPARATOR.
22914# The user is always right.
22915if test "${PATH_SEPARATOR+set}" != set; then
22916  echo "#! /bin/sh" >conf$$.sh
22917  echo  "exit 0"   >>conf$$.sh
22918  chmod +x conf$$.sh
22919  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22920    PATH_SEPARATOR=';'
22921  else
22922    PATH_SEPARATOR=:
22923  fi
22924  rm -f conf$$.sh
22925fi
22926ac_prog=ld
22927if test "$GCC" = yes; then
22928  # Check if gcc -print-prog-name=ld gives a path.
22929  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
22930echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
22931  case $host in
22932  *-*-mingw*)
22933    # gcc leaves a trailing carriage return which upsets mingw
22934    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22935  *)
22936    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22937  esac
22938  case $ac_prog in
22939    # Accept absolute paths.
22940    [\\/]* | [A-Za-z]:[\\/]*)
22941      re_direlt='/[^/][^/]*/\.\./'
22942      # Canonicalize the path of ld
22943      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
22944      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22945	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22946      done
22947      test -z "$LD" && LD="$ac_prog"
22948      ;;
22949  "")
22950    # If it fails, then pretend we aren't using GCC.
22951    ac_prog=ld
22952    ;;
22953  *)
22954    # If it is relative, then search for the first ld in PATH.
22955    with_gnu_ld=unknown
22956    ;;
22957  esac
22958elif test "$with_gnu_ld" = yes; then
22959  { echo "$as_me:$LINENO: checking for GNU ld" >&5
22960echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
22961else
22962  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22963echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
22964fi
22965if test "${acl_cv_path_LD+set}" = set; then
22966  echo $ECHO_N "(cached) $ECHO_C" >&6
22967else
22968  if test -z "$LD"; then
22969  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
22970  for ac_dir in $PATH; do
22971    test -z "$ac_dir" && ac_dir=.
22972    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22973      acl_cv_path_LD="$ac_dir/$ac_prog"
22974      # Check to see if the program is GNU ld.  I'd rather use --version,
22975      # but apparently some GNU ld's only accept -v.
22976      # Break only if it was the GNU/non-GNU ld that we prefer.
22977      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
22978      *GNU* | *'with BFD'*)
22979	test "$with_gnu_ld" != no && break ;;
22980      *)
22981	test "$with_gnu_ld" != yes && break ;;
22982      esac
22983    fi
22984  done
22985  IFS="$ac_save_ifs"
22986else
22987  acl_cv_path_LD="$LD" # Let the user override the test with a path.
22988fi
22989fi
22990
22991LD="$acl_cv_path_LD"
22992if test -n "$LD"; then
22993  { echo "$as_me:$LINENO: result: $LD" >&5
22994echo "${ECHO_T}$LD" >&6; }
22995else
22996  { echo "$as_me:$LINENO: result: no" >&5
22997echo "${ECHO_T}no" >&6; }
22998fi
22999test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
23000echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
23001   { (exit 1); exit 1; }; }
23002{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
23003echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
23004if test "${acl_cv_prog_gnu_ld+set}" = set; then
23005  echo $ECHO_N "(cached) $ECHO_C" >&6
23006else
23007  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
23008case `$LD -v 2>&1 </dev/null` in
23009*GNU* | *'with BFD'*)
23010  acl_cv_prog_gnu_ld=yes ;;
23011*)
23012  acl_cv_prog_gnu_ld=no ;;
23013esac
23014fi
23015{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
23016echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
23017with_gnu_ld=$acl_cv_prog_gnu_ld
23018
23019
23020
23021
23022                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
23023echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
23024if test "${acl_cv_rpath+set}" = set; then
23025  echo $ECHO_N "(cached) $ECHO_C" >&6
23026else
23027
23028    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
23029    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
23030    . ./conftest.sh
23031    rm -f ./conftest.sh
23032    acl_cv_rpath=done
23033
23034fi
23035{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
23036echo "${ECHO_T}$acl_cv_rpath" >&6; }
23037  wl="$acl_cv_wl"
23038  libext="$acl_cv_libext"
23039  shlibext="$acl_cv_shlibext"
23040  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
23041  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
23042  hardcode_direct="$acl_cv_hardcode_direct"
23043  hardcode_minus_L="$acl_cv_hardcode_minus_L"
23044    # Check whether --enable-rpath was given.
23045if test "${enable_rpath+set}" = set; then
23046  enableval=$enable_rpath; :
23047else
23048  enable_rpath=yes
23049fi
23050
23051
23052
23053                  acl_libdirstem=lib
23054  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
23055  if test -n "$searchpath"; then
23056    acl_save_IFS="${IFS= 	}"; IFS=":"
23057    for searchdir in $searchpath; do
23058      if test -d "$searchdir"; then
23059        case "$searchdir" in
23060          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
23061          *) searchdir=`cd "$searchdir" && pwd`
23062             case "$searchdir" in
23063               */lib64 ) acl_libdirstem=lib64 ;;
23064             esac ;;
23065        esac
23066      fi
23067    done
23068    IFS="$acl_save_IFS"
23069  fi
23070
23071
23072
23073  gl_threads_api=none
23074  LIBTHREAD=
23075  LTLIBTHREAD=
23076  LIBMULTITHREAD=
23077  LTLIBMULTITHREAD=
23078  if test "$gl_use_threads" != no; then
23079        { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
23080echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
23081    gl_have_weak=no
23082    cat >conftest.$ac_ext <<_ACEOF
23083/* confdefs.h.  */
23084_ACEOF
23085cat confdefs.h >>conftest.$ac_ext
23086cat >>conftest.$ac_ext <<_ACEOF
23087/* end confdefs.h.  */
23088extern void xyzzy ();
23089#pragma weak xyzzy
23090int
23091main ()
23092{
23093xyzzy();
23094  ;
23095  return 0;
23096}
23097_ACEOF
23098rm -f conftest.$ac_objext conftest$ac_exeext
23099if { (ac_try="$ac_link"
23100case "(($ac_try" in
23101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23102  *) ac_try_echo=$ac_try;;
23103esac
23104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23105  (eval "$ac_link") 2>conftest.er1
23106  ac_status=$?
23107  grep -v '^ *+' conftest.er1 >conftest.err
23108  rm -f conftest.er1
23109  cat conftest.err >&5
23110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111  (exit $ac_status); } && {
23112	 test -z "$ac_c_werror_flag" ||
23113	 test ! -s conftest.err
23114       } && test -s conftest$ac_exeext &&
23115       $as_test_x conftest$ac_exeext; then
23116  gl_have_weak=yes
23117else
23118  echo "$as_me: failed program was:" >&5
23119sed 's/^/| /' conftest.$ac_ext >&5
23120
23121
23122fi
23123
23124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23125      conftest$ac_exeext conftest.$ac_ext
23126    { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
23127echo "${ECHO_T}$gl_have_weak" >&6; }
23128    if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
23129      # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
23130      # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
23131      if test "${ac_cv_header_pthread_h+set}" = set; then
23132  { echo "$as_me:$LINENO: checking for pthread.h" >&5
23133echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
23134if test "${ac_cv_header_pthread_h+set}" = set; then
23135  echo $ECHO_N "(cached) $ECHO_C" >&6
23136fi
23137{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23138echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
23139else
23140  # Is the header compilable?
23141{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
23142echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
23143cat >conftest.$ac_ext <<_ACEOF
23144/* confdefs.h.  */
23145_ACEOF
23146cat confdefs.h >>conftest.$ac_ext
23147cat >>conftest.$ac_ext <<_ACEOF
23148/* end confdefs.h.  */
23149$ac_includes_default
23150#include <pthread.h>
23151_ACEOF
23152rm -f conftest.$ac_objext
23153if { (ac_try="$ac_compile"
23154case "(($ac_try" in
23155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23156  *) ac_try_echo=$ac_try;;
23157esac
23158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23159  (eval "$ac_compile") 2>conftest.er1
23160  ac_status=$?
23161  grep -v '^ *+' conftest.er1 >conftest.err
23162  rm -f conftest.er1
23163  cat conftest.err >&5
23164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165  (exit $ac_status); } && {
23166	 test -z "$ac_c_werror_flag" ||
23167	 test ! -s conftest.err
23168       } && test -s conftest.$ac_objext; then
23169  ac_header_compiler=yes
23170else
23171  echo "$as_me: failed program was:" >&5
23172sed 's/^/| /' conftest.$ac_ext >&5
23173
23174	ac_header_compiler=no
23175fi
23176
23177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23178{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23179echo "${ECHO_T}$ac_header_compiler" >&6; }
23180
23181# Is the header present?
23182{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
23183echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
23184cat >conftest.$ac_ext <<_ACEOF
23185/* confdefs.h.  */
23186_ACEOF
23187cat confdefs.h >>conftest.$ac_ext
23188cat >>conftest.$ac_ext <<_ACEOF
23189/* end confdefs.h.  */
23190#include <pthread.h>
23191_ACEOF
23192if { (ac_try="$ac_cpp conftest.$ac_ext"
23193case "(($ac_try" in
23194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23195  *) ac_try_echo=$ac_try;;
23196esac
23197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23198  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23199  ac_status=$?
23200  grep -v '^ *+' conftest.er1 >conftest.err
23201  rm -f conftest.er1
23202  cat conftest.err >&5
23203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204  (exit $ac_status); } >/dev/null && {
23205	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23206	 test ! -s conftest.err
23207       }; then
23208  ac_header_preproc=yes
23209else
23210  echo "$as_me: failed program was:" >&5
23211sed 's/^/| /' conftest.$ac_ext >&5
23212
23213  ac_header_preproc=no
23214fi
23215
23216rm -f conftest.err conftest.$ac_ext
23217{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23218echo "${ECHO_T}$ac_header_preproc" >&6; }
23219
23220# So?  What about this header?
23221case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23222  yes:no: )
23223    { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23224echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23225    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23226echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23227    ac_header_preproc=yes
23228    ;;
23229  no:yes:* )
23230    { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23231echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23232    { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
23233echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
23234    { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23235echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23236    { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
23237echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23238    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23239echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23240    { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23241echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23242
23243    ;;
23244esac
23245{ echo "$as_me:$LINENO: checking for pthread.h" >&5
23246echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
23247if test "${ac_cv_header_pthread_h+set}" = set; then
23248  echo $ECHO_N "(cached) $ECHO_C" >&6
23249else
23250  ac_cv_header_pthread_h=$ac_header_preproc
23251fi
23252{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23253echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
23254
23255fi
23256if test $ac_cv_header_pthread_h = yes; then
23257  gl_have_pthread_h=yes
23258else
23259  gl_have_pthread_h=no
23260fi
23261
23262
23263      if test "$gl_have_pthread_h" = yes; then
23264        # Other possible tests:
23265        #   -lpthreads (FSU threads, PCthreads)
23266        #   -lgthreads
23267        gl_have_pthread=
23268        # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
23269        # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
23270        # the second one only in libpthread, and lock.c needs it.
23271        cat >conftest.$ac_ext <<_ACEOF
23272/* confdefs.h.  */
23273_ACEOF
23274cat confdefs.h >>conftest.$ac_ext
23275cat >>conftest.$ac_ext <<_ACEOF
23276/* end confdefs.h.  */
23277#include <pthread.h>
23278int
23279main ()
23280{
23281pthread_mutex_lock((pthread_mutex_t*)0);
23282           pthread_mutexattr_init((pthread_mutexattr_t*)0);
23283  ;
23284  return 0;
23285}
23286_ACEOF
23287rm -f conftest.$ac_objext conftest$ac_exeext
23288if { (ac_try="$ac_link"
23289case "(($ac_try" in
23290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23291  *) ac_try_echo=$ac_try;;
23292esac
23293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23294  (eval "$ac_link") 2>conftest.er1
23295  ac_status=$?
23296  grep -v '^ *+' conftest.er1 >conftest.err
23297  rm -f conftest.er1
23298  cat conftest.err >&5
23299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300  (exit $ac_status); } && {
23301	 test -z "$ac_c_werror_flag" ||
23302	 test ! -s conftest.err
23303       } && test -s conftest$ac_exeext &&
23304       $as_test_x conftest$ac_exeext; then
23305  gl_have_pthread=yes
23306else
23307  echo "$as_me: failed program was:" >&5
23308sed 's/^/| /' conftest.$ac_ext >&5
23309
23310
23311fi
23312
23313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23314      conftest$ac_exeext conftest.$ac_ext
23315        # Test for libpthread by looking for pthread_kill. (Not pthread_self,
23316        # since it is defined as a macro on OSF/1.)
23317        if test -n "$gl_have_pthread"; then
23318          # The program links fine without libpthread. But it may actually
23319          # need to link with libpthread in order to create multiple threads.
23320          { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
23321echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
23322if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
23323  echo $ECHO_N "(cached) $ECHO_C" >&6
23324else
23325  ac_check_lib_save_LIBS=$LIBS
23326LIBS="-lpthread  $LIBS"
23327cat >conftest.$ac_ext <<_ACEOF
23328/* confdefs.h.  */
23329_ACEOF
23330cat confdefs.h >>conftest.$ac_ext
23331cat >>conftest.$ac_ext <<_ACEOF
23332/* end confdefs.h.  */
23333
23334/* Override any GCC internal prototype to avoid an error.
23335   Use char because int might match the return type of a GCC
23336   builtin and then its argument prototype would still apply.  */
23337#ifdef __cplusplus
23338extern "C"
23339#endif
23340char pthread_kill ();
23341int
23342main ()
23343{
23344return pthread_kill ();
23345  ;
23346  return 0;
23347}
23348_ACEOF
23349rm -f conftest.$ac_objext conftest$ac_exeext
23350if { (ac_try="$ac_link"
23351case "(($ac_try" in
23352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23353  *) ac_try_echo=$ac_try;;
23354esac
23355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23356  (eval "$ac_link") 2>conftest.er1
23357  ac_status=$?
23358  grep -v '^ *+' conftest.er1 >conftest.err
23359  rm -f conftest.er1
23360  cat conftest.err >&5
23361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362  (exit $ac_status); } && {
23363	 test -z "$ac_c_werror_flag" ||
23364	 test ! -s conftest.err
23365       } && test -s conftest$ac_exeext &&
23366       $as_test_x conftest$ac_exeext; then
23367  ac_cv_lib_pthread_pthread_kill=yes
23368else
23369  echo "$as_me: failed program was:" >&5
23370sed 's/^/| /' conftest.$ac_ext >&5
23371
23372	ac_cv_lib_pthread_pthread_kill=no
23373fi
23374
23375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23376      conftest$ac_exeext conftest.$ac_ext
23377LIBS=$ac_check_lib_save_LIBS
23378fi
23379{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
23380echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
23381if test $ac_cv_lib_pthread_pthread_kill = yes; then
23382  LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
23383             # On Solaris and HP-UX, most pthread functions exist also in libc.
23384             # Therefore pthread_in_use() needs to actually try to create a
23385             # thread: pthread_create from libc will fail, whereas
23386             # pthread_create will actually create a thread.
23387             case "$host_os" in
23388               solaris* | hpux*)
23389
23390cat >>confdefs.h <<\_ACEOF
23391#define PTHREAD_IN_USE_DETECTION_HARD 1
23392_ACEOF
23393
23394             esac
23395
23396fi
23397
23398        else
23399          # Some library is needed. Try libpthread and libc_r.
23400          { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
23401echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
23402if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
23403  echo $ECHO_N "(cached) $ECHO_C" >&6
23404else
23405  ac_check_lib_save_LIBS=$LIBS
23406LIBS="-lpthread  $LIBS"
23407cat >conftest.$ac_ext <<_ACEOF
23408/* confdefs.h.  */
23409_ACEOF
23410cat confdefs.h >>conftest.$ac_ext
23411cat >>conftest.$ac_ext <<_ACEOF
23412/* end confdefs.h.  */
23413
23414/* Override any GCC internal prototype to avoid an error.
23415   Use char because int might match the return type of a GCC
23416   builtin and then its argument prototype would still apply.  */
23417#ifdef __cplusplus
23418extern "C"
23419#endif
23420char pthread_kill ();
23421int
23422main ()
23423{
23424return pthread_kill ();
23425  ;
23426  return 0;
23427}
23428_ACEOF
23429rm -f conftest.$ac_objext conftest$ac_exeext
23430if { (ac_try="$ac_link"
23431case "(($ac_try" in
23432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23433  *) ac_try_echo=$ac_try;;
23434esac
23435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23436  (eval "$ac_link") 2>conftest.er1
23437  ac_status=$?
23438  grep -v '^ *+' conftest.er1 >conftest.err
23439  rm -f conftest.er1
23440  cat conftest.err >&5
23441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442  (exit $ac_status); } && {
23443	 test -z "$ac_c_werror_flag" ||
23444	 test ! -s conftest.err
23445       } && test -s conftest$ac_exeext &&
23446       $as_test_x conftest$ac_exeext; then
23447  ac_cv_lib_pthread_pthread_kill=yes
23448else
23449  echo "$as_me: failed program was:" >&5
23450sed 's/^/| /' conftest.$ac_ext >&5
23451
23452	ac_cv_lib_pthread_pthread_kill=no
23453fi
23454
23455rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23456      conftest$ac_exeext conftest.$ac_ext
23457LIBS=$ac_check_lib_save_LIBS
23458fi
23459{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
23460echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
23461if test $ac_cv_lib_pthread_pthread_kill = yes; then
23462  gl_have_pthread=yes
23463             LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
23464             LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
23465fi
23466
23467          if test -z "$gl_have_pthread"; then
23468            # For FreeBSD 4.
23469            { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
23470echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
23471if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
23472  echo $ECHO_N "(cached) $ECHO_C" >&6
23473else
23474  ac_check_lib_save_LIBS=$LIBS
23475LIBS="-lc_r  $LIBS"
23476cat >conftest.$ac_ext <<_ACEOF
23477/* confdefs.h.  */
23478_ACEOF
23479cat confdefs.h >>conftest.$ac_ext
23480cat >>conftest.$ac_ext <<_ACEOF
23481/* end confdefs.h.  */
23482
23483/* Override any GCC internal prototype to avoid an error.
23484   Use char because int might match the return type of a GCC
23485   builtin and then its argument prototype would still apply.  */
23486#ifdef __cplusplus
23487extern "C"
23488#endif
23489char pthread_kill ();
23490int
23491main ()
23492{
23493return pthread_kill ();
23494  ;
23495  return 0;
23496}
23497_ACEOF
23498rm -f conftest.$ac_objext conftest$ac_exeext
23499if { (ac_try="$ac_link"
23500case "(($ac_try" in
23501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23502  *) ac_try_echo=$ac_try;;
23503esac
23504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23505  (eval "$ac_link") 2>conftest.er1
23506  ac_status=$?
23507  grep -v '^ *+' conftest.er1 >conftest.err
23508  rm -f conftest.er1
23509  cat conftest.err >&5
23510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511  (exit $ac_status); } && {
23512	 test -z "$ac_c_werror_flag" ||
23513	 test ! -s conftest.err
23514       } && test -s conftest$ac_exeext &&
23515       $as_test_x conftest$ac_exeext; then
23516  ac_cv_lib_c_r_pthread_kill=yes
23517else
23518  echo "$as_me: failed program was:" >&5
23519sed 's/^/| /' conftest.$ac_ext >&5
23520
23521	ac_cv_lib_c_r_pthread_kill=no
23522fi
23523
23524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23525      conftest$ac_exeext conftest.$ac_ext
23526LIBS=$ac_check_lib_save_LIBS
23527fi
23528{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
23529echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
23530if test $ac_cv_lib_c_r_pthread_kill = yes; then
23531  gl_have_pthread=yes
23532               LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
23533               LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
23534fi
23535
23536          fi
23537        fi
23538        if test -n "$gl_have_pthread"; then
23539          gl_threads_api=posix
23540
23541cat >>confdefs.h <<\_ACEOF
23542#define USE_POSIX_THREADS 1
23543_ACEOF
23544
23545          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
23546            if test $gl_have_weak = yes; then
23547
23548cat >>confdefs.h <<\_ACEOF
23549#define USE_POSIX_THREADS_WEAK 1
23550_ACEOF
23551
23552              LIBTHREAD=
23553              LTLIBTHREAD=
23554            fi
23555          fi
23556          # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
23557          # pthread_rwlock_* functions.
23558          { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
23559echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
23560if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
23561  echo $ECHO_N "(cached) $ECHO_C" >&6
23562else
23563  cat >conftest.$ac_ext <<_ACEOF
23564/* confdefs.h.  */
23565_ACEOF
23566cat confdefs.h >>conftest.$ac_ext
23567cat >>conftest.$ac_ext <<_ACEOF
23568/* end confdefs.h.  */
23569#include <pthread.h>
23570
23571typedef pthread_rwlock_t ac__type_new_;
23572int
23573main ()
23574{
23575if ((ac__type_new_ *) 0)
23576  return 0;
23577if (sizeof (ac__type_new_))
23578  return 0;
23579  ;
23580  return 0;
23581}
23582_ACEOF
23583rm -f conftest.$ac_objext
23584if { (ac_try="$ac_compile"
23585case "(($ac_try" in
23586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587  *) ac_try_echo=$ac_try;;
23588esac
23589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23590  (eval "$ac_compile") 2>conftest.er1
23591  ac_status=$?
23592  grep -v '^ *+' conftest.er1 >conftest.err
23593  rm -f conftest.er1
23594  cat conftest.err >&5
23595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596  (exit $ac_status); } && {
23597	 test -z "$ac_c_werror_flag" ||
23598	 test ! -s conftest.err
23599       } && test -s conftest.$ac_objext; then
23600  ac_cv_type_pthread_rwlock_t=yes
23601else
23602  echo "$as_me: failed program was:" >&5
23603sed 's/^/| /' conftest.$ac_ext >&5
23604
23605	ac_cv_type_pthread_rwlock_t=no
23606fi
23607
23608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23609fi
23610{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
23611echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
23612if test $ac_cv_type_pthread_rwlock_t = yes; then
23613
23614cat >>confdefs.h <<\_ACEOF
23615#define HAVE_PTHREAD_RWLOCK 1
23616_ACEOF
23617
23618fi
23619
23620          # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
23621          cat >conftest.$ac_ext <<_ACEOF
23622/* confdefs.h.  */
23623_ACEOF
23624cat confdefs.h >>conftest.$ac_ext
23625cat >>conftest.$ac_ext <<_ACEOF
23626/* end confdefs.h.  */
23627#include <pthread.h>
23628int
23629main ()
23630{
23631#if __FreeBSD__ == 4
23632error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
23633#else
23634int x = (int)PTHREAD_MUTEX_RECURSIVE;
23635return !x;
23636#endif
23637  ;
23638  return 0;
23639}
23640_ACEOF
23641rm -f conftest.$ac_objext
23642if { (ac_try="$ac_compile"
23643case "(($ac_try" in
23644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23645  *) ac_try_echo=$ac_try;;
23646esac
23647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23648  (eval "$ac_compile") 2>conftest.er1
23649  ac_status=$?
23650  grep -v '^ *+' conftest.er1 >conftest.err
23651  rm -f conftest.er1
23652  cat conftest.err >&5
23653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654  (exit $ac_status); } && {
23655	 test -z "$ac_c_werror_flag" ||
23656	 test ! -s conftest.err
23657       } && test -s conftest.$ac_objext; then
23658
23659cat >>confdefs.h <<\_ACEOF
23660#define HAVE_PTHREAD_MUTEX_RECURSIVE 1
23661_ACEOF
23662
23663else
23664  echo "$as_me: failed program was:" >&5
23665sed 's/^/| /' conftest.$ac_ext >&5
23666
23667
23668fi
23669
23670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23671        fi
23672      fi
23673    fi
23674    if test -z "$gl_have_pthread"; then
23675      if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
23676        gl_have_solaristhread=
23677        gl_save_LIBS="$LIBS"
23678        LIBS="$LIBS -lthread"
23679        cat >conftest.$ac_ext <<_ACEOF
23680/* confdefs.h.  */
23681_ACEOF
23682cat confdefs.h >>conftest.$ac_ext
23683cat >>conftest.$ac_ext <<_ACEOF
23684/* end confdefs.h.  */
23685#include <thread.h>
23686#include <synch.h>
23687int
23688main ()
23689{
23690thr_self();
23691  ;
23692  return 0;
23693}
23694_ACEOF
23695rm -f conftest.$ac_objext conftest$ac_exeext
23696if { (ac_try="$ac_link"
23697case "(($ac_try" in
23698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23699  *) ac_try_echo=$ac_try;;
23700esac
23701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23702  (eval "$ac_link") 2>conftest.er1
23703  ac_status=$?
23704  grep -v '^ *+' conftest.er1 >conftest.err
23705  rm -f conftest.er1
23706  cat conftest.err >&5
23707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708  (exit $ac_status); } && {
23709	 test -z "$ac_c_werror_flag" ||
23710	 test ! -s conftest.err
23711       } && test -s conftest$ac_exeext &&
23712       $as_test_x conftest$ac_exeext; then
23713  gl_have_solaristhread=yes
23714else
23715  echo "$as_me: failed program was:" >&5
23716sed 's/^/| /' conftest.$ac_ext >&5
23717
23718
23719fi
23720
23721rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23722      conftest$ac_exeext conftest.$ac_ext
23723        LIBS="$gl_save_LIBS"
23724        if test -n "$gl_have_solaristhread"; then
23725          gl_threads_api=solaris
23726          LIBTHREAD=-lthread
23727          LTLIBTHREAD=-lthread
23728          LIBMULTITHREAD="$LIBTHREAD"
23729          LTLIBMULTITHREAD="$LTLIBTHREAD"
23730
23731cat >>confdefs.h <<\_ACEOF
23732#define USE_SOLARIS_THREADS 1
23733_ACEOF
23734
23735          if test $gl_have_weak = yes; then
23736
23737cat >>confdefs.h <<\_ACEOF
23738#define USE_SOLARIS_THREADS_WEAK 1
23739_ACEOF
23740
23741            LIBTHREAD=
23742            LTLIBTHREAD=
23743          fi
23744        fi
23745      fi
23746    fi
23747    if test "$gl_use_threads" = pth; then
23748      gl_save_CPPFLAGS="$CPPFLAGS"
23749
23750
23751
23752
23753
23754  { echo "$as_me:$LINENO: checking how to link with libpth" >&5
23755echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
23756if test "${ac_cv_libpth_libs+set}" = set; then
23757  echo $ECHO_N "(cached) $ECHO_C" >&6
23758else
23759
23760
23761
23762
23763    use_additional=yes
23764
23765  acl_save_prefix="$prefix"
23766  prefix="$acl_final_prefix"
23767  acl_save_exec_prefix="$exec_prefix"
23768  exec_prefix="$acl_final_exec_prefix"
23769
23770    eval additional_includedir=\"$includedir\"
23771    eval additional_libdir=\"$libdir\"
23772
23773  exec_prefix="$acl_save_exec_prefix"
23774  prefix="$acl_save_prefix"
23775
23776
23777# Check whether --with-libpth-prefix was given.
23778if test "${with_libpth_prefix+set}" = set; then
23779  withval=$with_libpth_prefix;
23780    if test "X$withval" = "Xno"; then
23781      use_additional=no
23782    else
23783      if test "X$withval" = "X"; then
23784
23785  acl_save_prefix="$prefix"
23786  prefix="$acl_final_prefix"
23787  acl_save_exec_prefix="$exec_prefix"
23788  exec_prefix="$acl_final_exec_prefix"
23789
23790          eval additional_includedir=\"$includedir\"
23791          eval additional_libdir=\"$libdir\"
23792
23793  exec_prefix="$acl_save_exec_prefix"
23794  prefix="$acl_save_prefix"
23795
23796      else
23797        additional_includedir="$withval/include"
23798        additional_libdir="$withval/$acl_libdirstem"
23799      fi
23800    fi
23801
23802fi
23803
23804      LIBPTH=
23805  LTLIBPTH=
23806  INCPTH=
23807  rpathdirs=
23808  ltrpathdirs=
23809  names_already_handled=
23810  names_next_round='pth '
23811  while test -n "$names_next_round"; do
23812    names_this_round="$names_next_round"
23813    names_next_round=
23814    for name in $names_this_round; do
23815      already_handled=
23816      for n in $names_already_handled; do
23817        if test "$n" = "$name"; then
23818          already_handled=yes
23819          break
23820        fi
23821      done
23822      if test -z "$already_handled"; then
23823        names_already_handled="$names_already_handled $name"
23824                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23825        eval value=\"\$HAVE_LIB$uppername\"
23826        if test -n "$value"; then
23827          if test "$value" = yes; then
23828            eval value=\"\$LIB$uppername\"
23829            test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
23830            eval value=\"\$LTLIB$uppername\"
23831            test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
23832          else
23833                                    :
23834          fi
23835        else
23836                              found_dir=
23837          found_la=
23838          found_so=
23839          found_a=
23840          if test $use_additional = yes; then
23841            if test -n "$shlibext" \
23842               && { test -f "$additional_libdir/lib$name.$shlibext" \
23843                    || { test "$shlibext" = dll \
23844                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
23845              found_dir="$additional_libdir"
23846              if test -f "$additional_libdir/lib$name.$shlibext"; then
23847                found_so="$additional_libdir/lib$name.$shlibext"
23848              else
23849                found_so="$additional_libdir/lib$name.dll.a"
23850              fi
23851              if test -f "$additional_libdir/lib$name.la"; then
23852                found_la="$additional_libdir/lib$name.la"
23853              fi
23854            else
23855              if test -f "$additional_libdir/lib$name.$libext"; then
23856                found_dir="$additional_libdir"
23857                found_a="$additional_libdir/lib$name.$libext"
23858                if test -f "$additional_libdir/lib$name.la"; then
23859                  found_la="$additional_libdir/lib$name.la"
23860                fi
23861              fi
23862            fi
23863          fi
23864          if test "X$found_dir" = "X"; then
23865            for x in $LDFLAGS $LTLIBPTH; do
23866
23867  acl_save_prefix="$prefix"
23868  prefix="$acl_final_prefix"
23869  acl_save_exec_prefix="$exec_prefix"
23870  exec_prefix="$acl_final_exec_prefix"
23871  eval x=\"$x\"
23872  exec_prefix="$acl_save_exec_prefix"
23873  prefix="$acl_save_prefix"
23874
23875              case "$x" in
23876                -L*)
23877                  dir=`echo "X$x" | sed -e 's/^X-L//'`
23878                  if test -n "$shlibext" \
23879                     && { test -f "$dir/lib$name.$shlibext" \
23880                          || { test "$shlibext" = dll \
23881                               && test -f "$dir/lib$name.dll.a"; }; }; then
23882                    found_dir="$dir"
23883                    if test -f "$dir/lib$name.$shlibext"; then
23884                      found_so="$dir/lib$name.$shlibext"
23885                    else
23886                      found_so="$dir/lib$name.dll.a"
23887                    fi
23888                    if test -f "$dir/lib$name.la"; then
23889                      found_la="$dir/lib$name.la"
23890                    fi
23891                  else
23892                    if test -f "$dir/lib$name.$libext"; then
23893                      found_dir="$dir"
23894                      found_a="$dir/lib$name.$libext"
23895                      if test -f "$dir/lib$name.la"; then
23896                        found_la="$dir/lib$name.la"
23897                      fi
23898                    fi
23899                  fi
23900                  ;;
23901              esac
23902              if test "X$found_dir" != "X"; then
23903                break
23904              fi
23905            done
23906          fi
23907          if test "X$found_dir" != "X"; then
23908                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
23909            if test "X$found_so" != "X"; then
23910                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
23911                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
23912              else
23913                                                                                haveit=
23914                for x in $ltrpathdirs; do
23915                  if test "X$x" = "X$found_dir"; then
23916                    haveit=yes
23917                    break
23918                  fi
23919                done
23920                if test -z "$haveit"; then
23921                  ltrpathdirs="$ltrpathdirs $found_dir"
23922                fi
23923                                if test "$hardcode_direct" = yes; then
23924                                                      LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
23925                else
23926                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23927                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
23928                                                            haveit=
23929                    for x in $rpathdirs; do
23930                      if test "X$x" = "X$found_dir"; then
23931                        haveit=yes
23932                        break
23933                      fi
23934                    done
23935                    if test -z "$haveit"; then
23936                      rpathdirs="$rpathdirs $found_dir"
23937                    fi
23938                  else
23939                                                                                haveit=
23940                    for x in $LDFLAGS $LIBPTH; do
23941
23942  acl_save_prefix="$prefix"
23943  prefix="$acl_final_prefix"
23944  acl_save_exec_prefix="$exec_prefix"
23945  exec_prefix="$acl_final_exec_prefix"
23946  eval x=\"$x\"
23947  exec_prefix="$acl_save_exec_prefix"
23948  prefix="$acl_save_prefix"
23949
23950                      if test "X$x" = "X-L$found_dir"; then
23951                        haveit=yes
23952                        break
23953                      fi
23954                    done
23955                    if test -z "$haveit"; then
23956                      LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
23957                    fi
23958                    if test "$hardcode_minus_L" != no; then
23959                                                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
23960                    else
23961                                                                                                                                                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
23962                    fi
23963                  fi
23964                fi
23965              fi
23966            else
23967              if test "X$found_a" != "X"; then
23968                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
23969              else
23970                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
23971              fi
23972            fi
23973                        additional_includedir=
23974            case "$found_dir" in
23975              */$acl_libdirstem | */$acl_libdirstem/)
23976                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
23977                additional_includedir="$basedir/include"
23978                ;;
23979            esac
23980            if test "X$additional_includedir" != "X"; then
23981                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
23982                haveit=
23983                if test "X$additional_includedir" = "X/usr/local/include"; then
23984                  if test -n "$GCC"; then
23985                    case $host_os in
23986                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23987                    esac
23988                  fi
23989                fi
23990                if test -z "$haveit"; then
23991                  for x in $CPPFLAGS $INCPTH; do
23992
23993  acl_save_prefix="$prefix"
23994  prefix="$acl_final_prefix"
23995  acl_save_exec_prefix="$exec_prefix"
23996  exec_prefix="$acl_final_exec_prefix"
23997  eval x=\"$x\"
23998  exec_prefix="$acl_save_exec_prefix"
23999  prefix="$acl_save_prefix"
24000
24001                    if test "X$x" = "X-I$additional_includedir"; then
24002                      haveit=yes
24003                      break
24004                    fi
24005                  done
24006                  if test -z "$haveit"; then
24007                    if test -d "$additional_includedir"; then
24008                                            INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
24009                    fi
24010                  fi
24011                fi
24012              fi
24013            fi
24014                        if test -n "$found_la"; then
24015                                                        save_libdir="$libdir"
24016              case "$found_la" in
24017                */* | *\\*) . "$found_la" ;;
24018                *) . "./$found_la" ;;
24019              esac
24020              libdir="$save_libdir"
24021                            for dep in $dependency_libs; do
24022                case "$dep" in
24023                  -L*)
24024                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24025                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
24026                      haveit=
24027                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
24028                        if test -n "$GCC"; then
24029                          case $host_os in
24030                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24031                          esac
24032                        fi
24033                      fi
24034                      if test -z "$haveit"; then
24035                        haveit=
24036                        for x in $LDFLAGS $LIBPTH; do
24037
24038  acl_save_prefix="$prefix"
24039  prefix="$acl_final_prefix"
24040  acl_save_exec_prefix="$exec_prefix"
24041  exec_prefix="$acl_final_exec_prefix"
24042  eval x=\"$x\"
24043  exec_prefix="$acl_save_exec_prefix"
24044  prefix="$acl_save_prefix"
24045
24046                          if test "X$x" = "X-L$additional_libdir"; then
24047                            haveit=yes
24048                            break
24049                          fi
24050                        done
24051                        if test -z "$haveit"; then
24052                          if test -d "$additional_libdir"; then
24053                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
24054                          fi
24055                        fi
24056                        haveit=
24057                        for x in $LDFLAGS $LTLIBPTH; do
24058
24059  acl_save_prefix="$prefix"
24060  prefix="$acl_final_prefix"
24061  acl_save_exec_prefix="$exec_prefix"
24062  exec_prefix="$acl_final_exec_prefix"
24063  eval x=\"$x\"
24064  exec_prefix="$acl_save_exec_prefix"
24065  prefix="$acl_save_prefix"
24066
24067                          if test "X$x" = "X-L$additional_libdir"; then
24068                            haveit=yes
24069                            break
24070                          fi
24071                        done
24072                        if test -z "$haveit"; then
24073                          if test -d "$additional_libdir"; then
24074                                                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
24075                          fi
24076                        fi
24077                      fi
24078                    fi
24079                    ;;
24080                  -R*)
24081                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
24082                    if test "$enable_rpath" != no; then
24083                                                                  haveit=
24084                      for x in $rpathdirs; do
24085                        if test "X$x" = "X$dir"; then
24086                          haveit=yes
24087                          break
24088                        fi
24089                      done
24090                      if test -z "$haveit"; then
24091                        rpathdirs="$rpathdirs $dir"
24092                      fi
24093                                                                  haveit=
24094                      for x in $ltrpathdirs; do
24095                        if test "X$x" = "X$dir"; then
24096                          haveit=yes
24097                          break
24098                        fi
24099                      done
24100                      if test -z "$haveit"; then
24101                        ltrpathdirs="$ltrpathdirs $dir"
24102                      fi
24103                    fi
24104                    ;;
24105                  -l*)
24106                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24107                    ;;
24108                  *.la)
24109                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24110                    ;;
24111                  *)
24112                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
24113                    LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
24114                    ;;
24115                esac
24116              done
24117            fi
24118          else
24119                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
24120            LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
24121          fi
24122        fi
24123      fi
24124    done
24125  done
24126  if test "X$rpathdirs" != "X"; then
24127    if test -n "$hardcode_libdir_separator"; then
24128                        alldirs=
24129      for found_dir in $rpathdirs; do
24130        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24131      done
24132            acl_save_libdir="$libdir"
24133      libdir="$alldirs"
24134      eval flag=\"$hardcode_libdir_flag_spec\"
24135      libdir="$acl_save_libdir"
24136      LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
24137    else
24138            for found_dir in $rpathdirs; do
24139        acl_save_libdir="$libdir"
24140        libdir="$found_dir"
24141        eval flag=\"$hardcode_libdir_flag_spec\"
24142        libdir="$acl_save_libdir"
24143        LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
24144      done
24145    fi
24146  fi
24147  if test "X$ltrpathdirs" != "X"; then
24148            for found_dir in $ltrpathdirs; do
24149      LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
24150    done
24151  fi
24152
24153    ac_cv_libpth_libs="$LIBPTH"
24154    ac_cv_libpth_ltlibs="$LTLIBPTH"
24155    ac_cv_libpth_cppflags="$INCPTH"
24156
24157fi
24158{ echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
24159echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
24160  LIBPTH="$ac_cv_libpth_libs"
24161  LTLIBPTH="$ac_cv_libpth_ltlibs"
24162  INCPTH="$ac_cv_libpth_cppflags"
24163
24164  for element in $INCPTH; do
24165    haveit=
24166    for x in $CPPFLAGS; do
24167
24168  acl_save_prefix="$prefix"
24169  prefix="$acl_final_prefix"
24170  acl_save_exec_prefix="$exec_prefix"
24171  exec_prefix="$acl_final_exec_prefix"
24172  eval x=\"$x\"
24173  exec_prefix="$acl_save_exec_prefix"
24174  prefix="$acl_save_prefix"
24175
24176      if test "X$x" = "X$element"; then
24177        haveit=yes
24178        break
24179      fi
24180    done
24181    if test -z "$haveit"; then
24182      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24183    fi
24184  done
24185
24186
24187
24188      HAVE_LIBPTH=yes
24189
24190
24191
24192      gl_have_pth=
24193      gl_save_LIBS="$LIBS"
24194      LIBS="$LIBS -lpth"
24195      cat >conftest.$ac_ext <<_ACEOF
24196/* confdefs.h.  */
24197_ACEOF
24198cat confdefs.h >>conftest.$ac_ext
24199cat >>conftest.$ac_ext <<_ACEOF
24200/* end confdefs.h.  */
24201#include <pth.h>
24202int
24203main ()
24204{
24205pth_self();
24206  ;
24207  return 0;
24208}
24209_ACEOF
24210rm -f conftest.$ac_objext conftest$ac_exeext
24211if { (ac_try="$ac_link"
24212case "(($ac_try" in
24213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24214  *) ac_try_echo=$ac_try;;
24215esac
24216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24217  (eval "$ac_link") 2>conftest.er1
24218  ac_status=$?
24219  grep -v '^ *+' conftest.er1 >conftest.err
24220  rm -f conftest.er1
24221  cat conftest.err >&5
24222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24223  (exit $ac_status); } && {
24224	 test -z "$ac_c_werror_flag" ||
24225	 test ! -s conftest.err
24226       } && test -s conftest$ac_exeext &&
24227       $as_test_x conftest$ac_exeext; then
24228  gl_have_pth=yes
24229else
24230  echo "$as_me: failed program was:" >&5
24231sed 's/^/| /' conftest.$ac_ext >&5
24232
24233
24234fi
24235
24236rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24237      conftest$ac_exeext conftest.$ac_ext
24238      LIBS="$gl_save_LIBS"
24239      if test -n "$gl_have_pth"; then
24240        gl_threads_api=pth
24241        LIBTHREAD="$LIBPTH"
24242        LTLIBTHREAD="$LTLIBPTH"
24243        LIBMULTITHREAD="$LIBTHREAD"
24244        LTLIBMULTITHREAD="$LTLIBTHREAD"
24245
24246cat >>confdefs.h <<\_ACEOF
24247#define USE_PTH_THREADS 1
24248_ACEOF
24249
24250        if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
24251          if test $gl_have_weak = yes; then
24252
24253cat >>confdefs.h <<\_ACEOF
24254#define USE_PTH_THREADS_WEAK 1
24255_ACEOF
24256
24257            LIBTHREAD=
24258            LTLIBTHREAD=
24259          fi
24260        fi
24261      else
24262        CPPFLAGS="$gl_save_CPPFLAGS"
24263      fi
24264    fi
24265    if test -z "$gl_have_pthread"; then
24266      if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
24267        if { case "$host_os" in
24268               mingw*) true;;
24269               *) false;;
24270             esac
24271           }; then
24272          gl_threads_api=win32
24273
24274cat >>confdefs.h <<\_ACEOF
24275#define USE_WIN32_THREADS 1
24276_ACEOF
24277
24278        fi
24279      fi
24280    fi
24281  fi
24282  { echo "$as_me:$LINENO: checking for multithread API to use" >&5
24283echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
24284  { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
24285echo "${ECHO_T}$gl_threads_api" >&6; }
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305    use_additional=yes
24306
24307  acl_save_prefix="$prefix"
24308  prefix="$acl_final_prefix"
24309  acl_save_exec_prefix="$exec_prefix"
24310  exec_prefix="$acl_final_exec_prefix"
24311
24312    eval additional_includedir=\"$includedir\"
24313    eval additional_libdir=\"$libdir\"
24314
24315  exec_prefix="$acl_save_exec_prefix"
24316  prefix="$acl_save_prefix"
24317
24318
24319# Check whether --with-libiconv-prefix was given.
24320if test "${with_libiconv_prefix+set}" = set; then
24321  withval=$with_libiconv_prefix;
24322    if test "X$withval" = "Xno"; then
24323      use_additional=no
24324    else
24325      if test "X$withval" = "X"; then
24326
24327  acl_save_prefix="$prefix"
24328  prefix="$acl_final_prefix"
24329  acl_save_exec_prefix="$exec_prefix"
24330  exec_prefix="$acl_final_exec_prefix"
24331
24332          eval additional_includedir=\"$includedir\"
24333          eval additional_libdir=\"$libdir\"
24334
24335  exec_prefix="$acl_save_exec_prefix"
24336  prefix="$acl_save_prefix"
24337
24338      else
24339        additional_includedir="$withval/include"
24340        additional_libdir="$withval/$acl_libdirstem"
24341      fi
24342    fi
24343
24344fi
24345
24346      LIBICONV=
24347  LTLIBICONV=
24348  INCICONV=
24349  rpathdirs=
24350  ltrpathdirs=
24351  names_already_handled=
24352  names_next_round='iconv '
24353  while test -n "$names_next_round"; do
24354    names_this_round="$names_next_round"
24355    names_next_round=
24356    for name in $names_this_round; do
24357      already_handled=
24358      for n in $names_already_handled; do
24359        if test "$n" = "$name"; then
24360          already_handled=yes
24361          break
24362        fi
24363      done
24364      if test -z "$already_handled"; then
24365        names_already_handled="$names_already_handled $name"
24366                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24367        eval value=\"\$HAVE_LIB$uppername\"
24368        if test -n "$value"; then
24369          if test "$value" = yes; then
24370            eval value=\"\$LIB$uppername\"
24371            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
24372            eval value=\"\$LTLIB$uppername\"
24373            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
24374          else
24375                                    :
24376          fi
24377        else
24378                              found_dir=
24379          found_la=
24380          found_so=
24381          found_a=
24382          if test $use_additional = yes; then
24383            if test -n "$shlibext" \
24384               && { test -f "$additional_libdir/lib$name.$shlibext" \
24385                    || { test "$shlibext" = dll \
24386                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
24387              found_dir="$additional_libdir"
24388              if test -f "$additional_libdir/lib$name.$shlibext"; then
24389                found_so="$additional_libdir/lib$name.$shlibext"
24390              else
24391                found_so="$additional_libdir/lib$name.dll.a"
24392              fi
24393              if test -f "$additional_libdir/lib$name.la"; then
24394                found_la="$additional_libdir/lib$name.la"
24395              fi
24396            else
24397              if test -f "$additional_libdir/lib$name.$libext"; then
24398                found_dir="$additional_libdir"
24399                found_a="$additional_libdir/lib$name.$libext"
24400                if test -f "$additional_libdir/lib$name.la"; then
24401                  found_la="$additional_libdir/lib$name.la"
24402                fi
24403              fi
24404            fi
24405          fi
24406          if test "X$found_dir" = "X"; then
24407            for x in $LDFLAGS $LTLIBICONV; do
24408
24409  acl_save_prefix="$prefix"
24410  prefix="$acl_final_prefix"
24411  acl_save_exec_prefix="$exec_prefix"
24412  exec_prefix="$acl_final_exec_prefix"
24413  eval x=\"$x\"
24414  exec_prefix="$acl_save_exec_prefix"
24415  prefix="$acl_save_prefix"
24416
24417              case "$x" in
24418                -L*)
24419                  dir=`echo "X$x" | sed -e 's/^X-L//'`
24420                  if test -n "$shlibext" \
24421                     && { test -f "$dir/lib$name.$shlibext" \
24422                          || { test "$shlibext" = dll \
24423                               && test -f "$dir/lib$name.dll.a"; }; }; then
24424                    found_dir="$dir"
24425                    if test -f "$dir/lib$name.$shlibext"; then
24426                      found_so="$dir/lib$name.$shlibext"
24427                    else
24428                      found_so="$dir/lib$name.dll.a"
24429                    fi
24430                    if test -f "$dir/lib$name.la"; then
24431                      found_la="$dir/lib$name.la"
24432                    fi
24433                  else
24434                    if test -f "$dir/lib$name.$libext"; then
24435                      found_dir="$dir"
24436                      found_a="$dir/lib$name.$libext"
24437                      if test -f "$dir/lib$name.la"; then
24438                        found_la="$dir/lib$name.la"
24439                      fi
24440                    fi
24441                  fi
24442                  ;;
24443              esac
24444              if test "X$found_dir" != "X"; then
24445                break
24446              fi
24447            done
24448          fi
24449          if test "X$found_dir" != "X"; then
24450                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
24451            if test "X$found_so" != "X"; then
24452                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
24453                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24454              else
24455                                                                                haveit=
24456                for x in $ltrpathdirs; do
24457                  if test "X$x" = "X$found_dir"; then
24458                    haveit=yes
24459                    break
24460                  fi
24461                done
24462                if test -z "$haveit"; then
24463                  ltrpathdirs="$ltrpathdirs $found_dir"
24464                fi
24465                                if test "$hardcode_direct" = yes; then
24466                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24467                else
24468                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
24469                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24470                                                            haveit=
24471                    for x in $rpathdirs; do
24472                      if test "X$x" = "X$found_dir"; then
24473                        haveit=yes
24474                        break
24475                      fi
24476                    done
24477                    if test -z "$haveit"; then
24478                      rpathdirs="$rpathdirs $found_dir"
24479                    fi
24480                  else
24481                                                                                haveit=
24482                    for x in $LDFLAGS $LIBICONV; do
24483
24484  acl_save_prefix="$prefix"
24485  prefix="$acl_final_prefix"
24486  acl_save_exec_prefix="$exec_prefix"
24487  exec_prefix="$acl_final_exec_prefix"
24488  eval x=\"$x\"
24489  exec_prefix="$acl_save_exec_prefix"
24490  prefix="$acl_save_prefix"
24491
24492                      if test "X$x" = "X-L$found_dir"; then
24493                        haveit=yes
24494                        break
24495                      fi
24496                    done
24497                    if test -z "$haveit"; then
24498                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
24499                    fi
24500                    if test "$hardcode_minus_L" != no; then
24501                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
24502                    else
24503                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24504                    fi
24505                  fi
24506                fi
24507              fi
24508            else
24509              if test "X$found_a" != "X"; then
24510                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
24511              else
24512                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
24513              fi
24514            fi
24515                        additional_includedir=
24516            case "$found_dir" in
24517              */$acl_libdirstem | */$acl_libdirstem/)
24518                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
24519                additional_includedir="$basedir/include"
24520                ;;
24521            esac
24522            if test "X$additional_includedir" != "X"; then
24523                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
24524                haveit=
24525                if test "X$additional_includedir" = "X/usr/local/include"; then
24526                  if test -n "$GCC"; then
24527                    case $host_os in
24528                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24529                    esac
24530                  fi
24531                fi
24532                if test -z "$haveit"; then
24533                  for x in $CPPFLAGS $INCICONV; do
24534
24535  acl_save_prefix="$prefix"
24536  prefix="$acl_final_prefix"
24537  acl_save_exec_prefix="$exec_prefix"
24538  exec_prefix="$acl_final_exec_prefix"
24539  eval x=\"$x\"
24540  exec_prefix="$acl_save_exec_prefix"
24541  prefix="$acl_save_prefix"
24542
24543                    if test "X$x" = "X-I$additional_includedir"; then
24544                      haveit=yes
24545                      break
24546                    fi
24547                  done
24548                  if test -z "$haveit"; then
24549                    if test -d "$additional_includedir"; then
24550                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
24551                    fi
24552                  fi
24553                fi
24554              fi
24555            fi
24556                        if test -n "$found_la"; then
24557                                                        save_libdir="$libdir"
24558              case "$found_la" in
24559                */* | *\\*) . "$found_la" ;;
24560                *) . "./$found_la" ;;
24561              esac
24562              libdir="$save_libdir"
24563                            for dep in $dependency_libs; do
24564                case "$dep" in
24565                  -L*)
24566                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24567                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
24568                      haveit=
24569                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
24570                        if test -n "$GCC"; then
24571                          case $host_os in
24572                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24573                          esac
24574                        fi
24575                      fi
24576                      if test -z "$haveit"; then
24577                        haveit=
24578                        for x in $LDFLAGS $LIBICONV; do
24579
24580  acl_save_prefix="$prefix"
24581  prefix="$acl_final_prefix"
24582  acl_save_exec_prefix="$exec_prefix"
24583  exec_prefix="$acl_final_exec_prefix"
24584  eval x=\"$x\"
24585  exec_prefix="$acl_save_exec_prefix"
24586  prefix="$acl_save_prefix"
24587
24588                          if test "X$x" = "X-L$additional_libdir"; then
24589                            haveit=yes
24590                            break
24591                          fi
24592                        done
24593                        if test -z "$haveit"; then
24594                          if test -d "$additional_libdir"; then
24595                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
24596                          fi
24597                        fi
24598                        haveit=
24599                        for x in $LDFLAGS $LTLIBICONV; do
24600
24601  acl_save_prefix="$prefix"
24602  prefix="$acl_final_prefix"
24603  acl_save_exec_prefix="$exec_prefix"
24604  exec_prefix="$acl_final_exec_prefix"
24605  eval x=\"$x\"
24606  exec_prefix="$acl_save_exec_prefix"
24607  prefix="$acl_save_prefix"
24608
24609                          if test "X$x" = "X-L$additional_libdir"; then
24610                            haveit=yes
24611                            break
24612                          fi
24613                        done
24614                        if test -z "$haveit"; then
24615                          if test -d "$additional_libdir"; then
24616                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
24617                          fi
24618                        fi
24619                      fi
24620                    fi
24621                    ;;
24622                  -R*)
24623                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
24624                    if test "$enable_rpath" != no; then
24625                                                                  haveit=
24626                      for x in $rpathdirs; do
24627                        if test "X$x" = "X$dir"; then
24628                          haveit=yes
24629                          break
24630                        fi
24631                      done
24632                      if test -z "$haveit"; then
24633                        rpathdirs="$rpathdirs $dir"
24634                      fi
24635                                                                  haveit=
24636                      for x in $ltrpathdirs; do
24637                        if test "X$x" = "X$dir"; then
24638                          haveit=yes
24639                          break
24640                        fi
24641                      done
24642                      if test -z "$haveit"; then
24643                        ltrpathdirs="$ltrpathdirs $dir"
24644                      fi
24645                    fi
24646                    ;;
24647                  -l*)
24648                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24649                    ;;
24650                  *.la)
24651                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24652                    ;;
24653                  *)
24654                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
24655                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
24656                    ;;
24657                esac
24658              done
24659            fi
24660          else
24661                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
24662            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
24663          fi
24664        fi
24665      fi
24666    done
24667  done
24668  if test "X$rpathdirs" != "X"; then
24669    if test -n "$hardcode_libdir_separator"; then
24670                        alldirs=
24671      for found_dir in $rpathdirs; do
24672        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
24673      done
24674            acl_save_libdir="$libdir"
24675      libdir="$alldirs"
24676      eval flag=\"$hardcode_libdir_flag_spec\"
24677      libdir="$acl_save_libdir"
24678      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24679    else
24680            for found_dir in $rpathdirs; do
24681        acl_save_libdir="$libdir"
24682        libdir="$found_dir"
24683        eval flag=\"$hardcode_libdir_flag_spec\"
24684        libdir="$acl_save_libdir"
24685        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
24686      done
24687    fi
24688  fi
24689  if test "X$ltrpathdirs" != "X"; then
24690            for found_dir in $ltrpathdirs; do
24691      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
24692    done
24693  fi
24694
24695
24696
24697
24698
24699  cat >conftest.$ac_ext <<_ACEOF
24700/* confdefs.h.  */
24701_ACEOF
24702cat confdefs.h >>conftest.$ac_ext
24703cat >>conftest.$ac_ext <<_ACEOF
24704/* end confdefs.h.  */
24705int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
24706int
24707main ()
24708{
24709
24710  ;
24711  return 0;
24712}
24713_ACEOF
24714rm -f conftest.$ac_objext conftest$ac_exeext
24715if { (ac_try="$ac_link"
24716case "(($ac_try" in
24717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24718  *) ac_try_echo=$ac_try;;
24719esac
24720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24721  (eval "$ac_link") 2>conftest.er1
24722  ac_status=$?
24723  grep -v '^ *+' conftest.er1 >conftest.err
24724  rm -f conftest.er1
24725  cat conftest.err >&5
24726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727  (exit $ac_status); } && {
24728	 test -z "$ac_c_werror_flag" ||
24729	 test ! -s conftest.err
24730       } && test -s conftest$ac_exeext &&
24731       $as_test_x conftest$ac_exeext; then
24732
24733cat >>confdefs.h <<\_ACEOF
24734#define HAVE_BUILTIN_EXPECT 1
24735_ACEOF
24736
24737else
24738  echo "$as_me: failed program was:" >&5
24739sed 's/^/| /' conftest.$ac_ext >&5
24740
24741
24742fi
24743
24744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24745      conftest$ac_exeext conftest.$ac_ext
24746
24747
24748
24749
24750
24751
24752for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
24753do
24754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24756  { echo "$as_me:$LINENO: checking for $ac_header" >&5
24757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24759  echo $ECHO_N "(cached) $ECHO_C" >&6
24760fi
24761ac_res=`eval echo '${'$as_ac_Header'}'`
24762	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24763echo "${ECHO_T}$ac_res" >&6; }
24764else
24765  # Is the header compilable?
24766{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24767echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24768cat >conftest.$ac_ext <<_ACEOF
24769/* confdefs.h.  */
24770_ACEOF
24771cat confdefs.h >>conftest.$ac_ext
24772cat >>conftest.$ac_ext <<_ACEOF
24773/* end confdefs.h.  */
24774$ac_includes_default
24775#include <$ac_header>
24776_ACEOF
24777rm -f conftest.$ac_objext
24778if { (ac_try="$ac_compile"
24779case "(($ac_try" in
24780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24781  *) ac_try_echo=$ac_try;;
24782esac
24783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24784  (eval "$ac_compile") 2>conftest.er1
24785  ac_status=$?
24786  grep -v '^ *+' conftest.er1 >conftest.err
24787  rm -f conftest.er1
24788  cat conftest.err >&5
24789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790  (exit $ac_status); } && {
24791	 test -z "$ac_c_werror_flag" ||
24792	 test ! -s conftest.err
24793       } && test -s conftest.$ac_objext; then
24794  ac_header_compiler=yes
24795else
24796  echo "$as_me: failed program was:" >&5
24797sed 's/^/| /' conftest.$ac_ext >&5
24798
24799	ac_header_compiler=no
24800fi
24801
24802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24803{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24804echo "${ECHO_T}$ac_header_compiler" >&6; }
24805
24806# Is the header present?
24807{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24808echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24809cat >conftest.$ac_ext <<_ACEOF
24810/* confdefs.h.  */
24811_ACEOF
24812cat confdefs.h >>conftest.$ac_ext
24813cat >>conftest.$ac_ext <<_ACEOF
24814/* end confdefs.h.  */
24815#include <$ac_header>
24816_ACEOF
24817if { (ac_try="$ac_cpp conftest.$ac_ext"
24818case "(($ac_try" in
24819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24820  *) ac_try_echo=$ac_try;;
24821esac
24822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24823  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24824  ac_status=$?
24825  grep -v '^ *+' conftest.er1 >conftest.err
24826  rm -f conftest.er1
24827  cat conftest.err >&5
24828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24829  (exit $ac_status); } >/dev/null && {
24830	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24831	 test ! -s conftest.err
24832       }; then
24833  ac_header_preproc=yes
24834else
24835  echo "$as_me: failed program was:" >&5
24836sed 's/^/| /' conftest.$ac_ext >&5
24837
24838  ac_header_preproc=no
24839fi
24840
24841rm -f conftest.err conftest.$ac_ext
24842{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24843echo "${ECHO_T}$ac_header_preproc" >&6; }
24844
24845# So?  What about this header?
24846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24847  yes:no: )
24848    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24850    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24851echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24852    ac_header_preproc=yes
24853    ;;
24854  no:yes:* )
24855    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24856echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24857    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24858echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24859    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24860echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24861    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24862echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24863    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24865    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24866echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24867
24868    ;;
24869esac
24870{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24873  echo $ECHO_N "(cached) $ECHO_C" >&6
24874else
24875  eval "$as_ac_Header=\$ac_header_preproc"
24876fi
24877ac_res=`eval echo '${'$as_ac_Header'}'`
24878	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24879echo "${ECHO_T}$ac_res" >&6; }
24880
24881fi
24882if test `eval echo '${'$as_ac_Header'}'` = yes; then
24883  cat >>confdefs.h <<_ACEOF
24884#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24885_ACEOF
24886
24887fi
24888
24889done
24890
24891
24892
24893
24894
24895
24896
24897
24898
24899
24900
24901
24902
24903
24904
24905
24906
24907for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
24908    stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
24909    argz_next __fsetlocking
24910do
24911as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24912{ echo "$as_me:$LINENO: checking for $ac_func" >&5
24913echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24914if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24915  echo $ECHO_N "(cached) $ECHO_C" >&6
24916else
24917  cat >conftest.$ac_ext <<_ACEOF
24918/* confdefs.h.  */
24919_ACEOF
24920cat confdefs.h >>conftest.$ac_ext
24921cat >>conftest.$ac_ext <<_ACEOF
24922/* end confdefs.h.  */
24923/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24924   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24925#define $ac_func innocuous_$ac_func
24926
24927/* System header to define __stub macros and hopefully few prototypes,
24928    which can conflict with char $ac_func (); below.
24929    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24930    <limits.h> exists even on freestanding compilers.  */
24931
24932#ifdef __STDC__
24933# include <limits.h>
24934#else
24935# include <assert.h>
24936#endif
24937
24938#undef $ac_func
24939
24940/* Override any GCC internal prototype to avoid an error.
24941   Use char because int might match the return type of a GCC
24942   builtin and then its argument prototype would still apply.  */
24943#ifdef __cplusplus
24944extern "C"
24945#endif
24946char $ac_func ();
24947/* The GNU C library defines this for functions which it implements
24948    to always fail with ENOSYS.  Some functions are actually named
24949    something starting with __ and the normal name is an alias.  */
24950#if defined __stub_$ac_func || defined __stub___$ac_func
24951choke me
24952#endif
24953
24954int
24955main ()
24956{
24957return $ac_func ();
24958  ;
24959  return 0;
24960}
24961_ACEOF
24962rm -f conftest.$ac_objext conftest$ac_exeext
24963if { (ac_try="$ac_link"
24964case "(($ac_try" in
24965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966  *) ac_try_echo=$ac_try;;
24967esac
24968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24969  (eval "$ac_link") 2>conftest.er1
24970  ac_status=$?
24971  grep -v '^ *+' conftest.er1 >conftest.err
24972  rm -f conftest.er1
24973  cat conftest.err >&5
24974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975  (exit $ac_status); } && {
24976	 test -z "$ac_c_werror_flag" ||
24977	 test ! -s conftest.err
24978       } && test -s conftest$ac_exeext &&
24979       $as_test_x conftest$ac_exeext; then
24980  eval "$as_ac_var=yes"
24981else
24982  echo "$as_me: failed program was:" >&5
24983sed 's/^/| /' conftest.$ac_ext >&5
24984
24985	eval "$as_ac_var=no"
24986fi
24987
24988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24989      conftest$ac_exeext conftest.$ac_ext
24990fi
24991ac_res=`eval echo '${'$as_ac_var'}'`
24992	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24993echo "${ECHO_T}$ac_res" >&6; }
24994if test `eval echo '${'$as_ac_var'}'` = yes; then
24995  cat >>confdefs.h <<_ACEOF
24996#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24997_ACEOF
24998
24999fi
25000done
25001
25002
25003
25004  { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
25005echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
25006if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
25007  echo $ECHO_N "(cached) $ECHO_C" >&6
25008else
25009  cat >conftest.$ac_ext <<_ACEOF
25010/* confdefs.h.  */
25011_ACEOF
25012cat confdefs.h >>conftest.$ac_ext
25013cat >>conftest.$ac_ext <<_ACEOF
25014/* end confdefs.h.  */
25015#include <stdio.h>
25016int
25017main ()
25018{
25019
25020#ifndef feof_unlocked
25021  char *p = (char *) feof_unlocked;
25022#endif
25023
25024  ;
25025  return 0;
25026}
25027_ACEOF
25028rm -f conftest.$ac_objext
25029if { (ac_try="$ac_compile"
25030case "(($ac_try" in
25031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25032  *) ac_try_echo=$ac_try;;
25033esac
25034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25035  (eval "$ac_compile") 2>conftest.er1
25036  ac_status=$?
25037  grep -v '^ *+' conftest.er1 >conftest.err
25038  rm -f conftest.er1
25039  cat conftest.err >&5
25040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041  (exit $ac_status); } && {
25042	 test -z "$ac_c_werror_flag" ||
25043	 test ! -s conftest.err
25044       } && test -s conftest.$ac_objext; then
25045  ac_cv_have_decl_feof_unlocked=yes
25046else
25047  echo "$as_me: failed program was:" >&5
25048sed 's/^/| /' conftest.$ac_ext >&5
25049
25050	ac_cv_have_decl_feof_unlocked=no
25051fi
25052
25053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25054fi
25055{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
25056echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
25057  if test $ac_cv_have_decl_feof_unlocked = yes; then
25058    gt_value=1
25059  else
25060    gt_value=0
25061  fi
25062
25063cat >>confdefs.h <<_ACEOF
25064#define HAVE_DECL_FEOF_UNLOCKED $gt_value
25065_ACEOF
25066
25067
25068
25069  { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
25070echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
25071if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
25072  echo $ECHO_N "(cached) $ECHO_C" >&6
25073else
25074  cat >conftest.$ac_ext <<_ACEOF
25075/* confdefs.h.  */
25076_ACEOF
25077cat confdefs.h >>conftest.$ac_ext
25078cat >>conftest.$ac_ext <<_ACEOF
25079/* end confdefs.h.  */
25080#include <stdio.h>
25081int
25082main ()
25083{
25084
25085#ifndef fgets_unlocked
25086  char *p = (char *) fgets_unlocked;
25087#endif
25088
25089  ;
25090  return 0;
25091}
25092_ACEOF
25093rm -f conftest.$ac_objext
25094if { (ac_try="$ac_compile"
25095case "(($ac_try" in
25096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25097  *) ac_try_echo=$ac_try;;
25098esac
25099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25100  (eval "$ac_compile") 2>conftest.er1
25101  ac_status=$?
25102  grep -v '^ *+' conftest.er1 >conftest.err
25103  rm -f conftest.er1
25104  cat conftest.err >&5
25105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106  (exit $ac_status); } && {
25107	 test -z "$ac_c_werror_flag" ||
25108	 test ! -s conftest.err
25109       } && test -s conftest.$ac_objext; then
25110  ac_cv_have_decl_fgets_unlocked=yes
25111else
25112  echo "$as_me: failed program was:" >&5
25113sed 's/^/| /' conftest.$ac_ext >&5
25114
25115	ac_cv_have_decl_fgets_unlocked=no
25116fi
25117
25118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25119fi
25120{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
25121echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
25122  if test $ac_cv_have_decl_fgets_unlocked = yes; then
25123    gt_value=1
25124  else
25125    gt_value=0
25126  fi
25127
25128cat >>confdefs.h <<_ACEOF
25129#define HAVE_DECL_FGETS_UNLOCKED $gt_value
25130_ACEOF
25131
25132
25133
25134
25135
25136
25137
25138
25139          am_save_CPPFLAGS="$CPPFLAGS"
25140
25141  for element in $INCICONV; do
25142    haveit=
25143    for x in $CPPFLAGS; do
25144
25145  acl_save_prefix="$prefix"
25146  prefix="$acl_final_prefix"
25147  acl_save_exec_prefix="$exec_prefix"
25148  exec_prefix="$acl_final_exec_prefix"
25149  eval x=\"$x\"
25150  exec_prefix="$acl_save_exec_prefix"
25151  prefix="$acl_save_prefix"
25152
25153      if test "X$x" = "X$element"; then
25154        haveit=yes
25155        break
25156      fi
25157    done
25158    if test -z "$haveit"; then
25159      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
25160    fi
25161  done
25162
25163
25164  { echo "$as_me:$LINENO: checking for iconv" >&5
25165echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
25166if test "${am_cv_func_iconv+set}" = set; then
25167  echo $ECHO_N "(cached) $ECHO_C" >&6
25168else
25169
25170    am_cv_func_iconv="no, consider installing GNU libiconv"
25171    am_cv_lib_iconv=no
25172    cat >conftest.$ac_ext <<_ACEOF
25173/* confdefs.h.  */
25174_ACEOF
25175cat confdefs.h >>conftest.$ac_ext
25176cat >>conftest.$ac_ext <<_ACEOF
25177/* end confdefs.h.  */
25178#include <stdlib.h>
25179#include <iconv.h>
25180int
25181main ()
25182{
25183iconv_t cd = iconv_open("","");
25184       iconv(cd,NULL,NULL,NULL,NULL);
25185       iconv_close(cd);
25186  ;
25187  return 0;
25188}
25189_ACEOF
25190rm -f conftest.$ac_objext conftest$ac_exeext
25191if { (ac_try="$ac_link"
25192case "(($ac_try" in
25193  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194  *) ac_try_echo=$ac_try;;
25195esac
25196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25197  (eval "$ac_link") 2>conftest.er1
25198  ac_status=$?
25199  grep -v '^ *+' conftest.er1 >conftest.err
25200  rm -f conftest.er1
25201  cat conftest.err >&5
25202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203  (exit $ac_status); } && {
25204	 test -z "$ac_c_werror_flag" ||
25205	 test ! -s conftest.err
25206       } && test -s conftest$ac_exeext &&
25207       $as_test_x conftest$ac_exeext; then
25208  am_cv_func_iconv=yes
25209else
25210  echo "$as_me: failed program was:" >&5
25211sed 's/^/| /' conftest.$ac_ext >&5
25212
25213
25214fi
25215
25216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25217      conftest$ac_exeext conftest.$ac_ext
25218    if test "$am_cv_func_iconv" != yes; then
25219      am_save_LIBS="$LIBS"
25220      LIBS="$LIBS $LIBICONV"
25221      cat >conftest.$ac_ext <<_ACEOF
25222/* confdefs.h.  */
25223_ACEOF
25224cat confdefs.h >>conftest.$ac_ext
25225cat >>conftest.$ac_ext <<_ACEOF
25226/* end confdefs.h.  */
25227#include <stdlib.h>
25228#include <iconv.h>
25229int
25230main ()
25231{
25232iconv_t cd = iconv_open("","");
25233         iconv(cd,NULL,NULL,NULL,NULL);
25234         iconv_close(cd);
25235  ;
25236  return 0;
25237}
25238_ACEOF
25239rm -f conftest.$ac_objext conftest$ac_exeext
25240if { (ac_try="$ac_link"
25241case "(($ac_try" in
25242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25243  *) ac_try_echo=$ac_try;;
25244esac
25245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25246  (eval "$ac_link") 2>conftest.er1
25247  ac_status=$?
25248  grep -v '^ *+' conftest.er1 >conftest.err
25249  rm -f conftest.er1
25250  cat conftest.err >&5
25251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252  (exit $ac_status); } && {
25253	 test -z "$ac_c_werror_flag" ||
25254	 test ! -s conftest.err
25255       } && test -s conftest$ac_exeext &&
25256       $as_test_x conftest$ac_exeext; then
25257  am_cv_lib_iconv=yes
25258        am_cv_func_iconv=yes
25259else
25260  echo "$as_me: failed program was:" >&5
25261sed 's/^/| /' conftest.$ac_ext >&5
25262
25263
25264fi
25265
25266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25267      conftest$ac_exeext conftest.$ac_ext
25268      LIBS="$am_save_LIBS"
25269    fi
25270
25271fi
25272{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
25273echo "${ECHO_T}$am_cv_func_iconv" >&6; }
25274  if test "$am_cv_func_iconv" = yes; then
25275
25276cat >>confdefs.h <<\_ACEOF
25277#define HAVE_ICONV 1
25278_ACEOF
25279
25280  fi
25281  if test "$am_cv_lib_iconv" = yes; then
25282    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
25283echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
25284    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
25285echo "${ECHO_T}$LIBICONV" >&6; }
25286  else
25287            CPPFLAGS="$am_save_CPPFLAGS"
25288    LIBICONV=
25289    LTLIBICONV=
25290  fi
25291
25292
25293
25294  if test "$am_cv_func_iconv" = yes; then
25295    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
25296echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
25297    if test "${am_cv_proto_iconv+set}" = set; then
25298  echo $ECHO_N "(cached) $ECHO_C" >&6
25299else
25300
25301      cat >conftest.$ac_ext <<_ACEOF
25302/* confdefs.h.  */
25303_ACEOF
25304cat confdefs.h >>conftest.$ac_ext
25305cat >>conftest.$ac_ext <<_ACEOF
25306/* end confdefs.h.  */
25307
25308#include <stdlib.h>
25309#include <iconv.h>
25310extern
25311#ifdef __cplusplus
25312"C"
25313#endif
25314#if defined(__STDC__) || defined(__cplusplus)
25315size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
25316#else
25317size_t iconv();
25318#endif
25319
25320int
25321main ()
25322{
25323
25324  ;
25325  return 0;
25326}
25327_ACEOF
25328rm -f conftest.$ac_objext
25329if { (ac_try="$ac_compile"
25330case "(($ac_try" in
25331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25332  *) ac_try_echo=$ac_try;;
25333esac
25334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25335  (eval "$ac_compile") 2>conftest.er1
25336  ac_status=$?
25337  grep -v '^ *+' conftest.er1 >conftest.err
25338  rm -f conftest.er1
25339  cat conftest.err >&5
25340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341  (exit $ac_status); } && {
25342	 test -z "$ac_c_werror_flag" ||
25343	 test ! -s conftest.err
25344       } && test -s conftest.$ac_objext; then
25345  am_cv_proto_iconv_arg1=""
25346else
25347  echo "$as_me: failed program was:" >&5
25348sed 's/^/| /' conftest.$ac_ext >&5
25349
25350	am_cv_proto_iconv_arg1="const"
25351fi
25352
25353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25354      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);"
25355fi
25356
25357    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
25358    { echo "$as_me:$LINENO: result: ${ac_t:-
25359         }$am_cv_proto_iconv" >&5
25360echo "${ECHO_T}${ac_t:-
25361         }$am_cv_proto_iconv" >&6; }
25362
25363cat >>confdefs.h <<_ACEOF
25364#define ICONV_CONST $am_cv_proto_iconv_arg1
25365_ACEOF
25366
25367  fi
25368
25369
25370      { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
25371echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
25372if test "${gt_cv_nl_locale_name+set}" = set; then
25373  echo $ECHO_N "(cached) $ECHO_C" >&6
25374else
25375  cat >conftest.$ac_ext <<_ACEOF
25376/* confdefs.h.  */
25377_ACEOF
25378cat confdefs.h >>conftest.$ac_ext
25379cat >>conftest.$ac_ext <<_ACEOF
25380/* end confdefs.h.  */
25381#include <langinfo.h>
25382#include <locale.h>
25383int
25384main ()
25385{
25386char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
25387  ;
25388  return 0;
25389}
25390_ACEOF
25391rm -f conftest.$ac_objext conftest$ac_exeext
25392if { (ac_try="$ac_link"
25393case "(($ac_try" in
25394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25395  *) ac_try_echo=$ac_try;;
25396esac
25397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25398  (eval "$ac_link") 2>conftest.er1
25399  ac_status=$?
25400  grep -v '^ *+' conftest.er1 >conftest.err
25401  rm -f conftest.er1
25402  cat conftest.err >&5
25403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404  (exit $ac_status); } && {
25405	 test -z "$ac_c_werror_flag" ||
25406	 test ! -s conftest.err
25407       } && test -s conftest$ac_exeext &&
25408       $as_test_x conftest$ac_exeext; then
25409  gt_cv_nl_locale_name=yes
25410else
25411  echo "$as_me: failed program was:" >&5
25412sed 's/^/| /' conftest.$ac_ext >&5
25413
25414	gt_cv_nl_locale_name=no
25415fi
25416
25417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25418      conftest$ac_exeext conftest.$ac_ext
25419
25420fi
25421{ echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
25422echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
25423  if test $gt_cv_nl_locale_name = yes; then
25424
25425cat >>confdefs.h <<\_ACEOF
25426#define HAVE_NL_LOCALE_NAME 1
25427_ACEOF
25428
25429  fi
25430
25431                      for ac_prog in bison
25432do
25433  # Extract the first word of "$ac_prog", so it can be a program name with args.
25434set dummy $ac_prog; ac_word=$2
25435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25437if test "${ac_cv_prog_INTLBISON+set}" = set; then
25438  echo $ECHO_N "(cached) $ECHO_C" >&6
25439else
25440  if test -n "$INTLBISON"; then
25441  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
25442else
25443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25444for as_dir in $PATH
25445do
25446  IFS=$as_save_IFS
25447  test -z "$as_dir" && as_dir=.
25448  for ac_exec_ext in '' $ac_executable_extensions; do
25449  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25450    ac_cv_prog_INTLBISON="$ac_prog"
25451    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25452    break 2
25453  fi
25454done
25455done
25456IFS=$as_save_IFS
25457
25458fi
25459fi
25460INTLBISON=$ac_cv_prog_INTLBISON
25461if test -n "$INTLBISON"; then
25462  { echo "$as_me:$LINENO: result: $INTLBISON" >&5
25463echo "${ECHO_T}$INTLBISON" >&6; }
25464else
25465  { echo "$as_me:$LINENO: result: no" >&5
25466echo "${ECHO_T}no" >&6; }
25467fi
25468
25469
25470  test -n "$INTLBISON" && break
25471done
25472
25473  if test -z "$INTLBISON"; then
25474    ac_verc_fail=yes
25475  else
25476        { echo "$as_me:$LINENO: checking version of bison" >&5
25477echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
25478    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
25479    case $ac_prog_version in
25480      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
25481      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
25482         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
25483      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
25484    esac
25485    { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
25486echo "${ECHO_T}$ac_prog_version" >&6; }
25487  fi
25488  if test $ac_verc_fail = yes; then
25489    INTLBISON=:
25490  fi
25491
25492
25493  { echo "$as_me:$LINENO: checking for long long int" >&5
25494echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25495if test "${ac_cv_type_long_long_int+set}" = set; then
25496  echo $ECHO_N "(cached) $ECHO_C" >&6
25497else
25498  cat >conftest.$ac_ext <<_ACEOF
25499/* confdefs.h.  */
25500_ACEOF
25501cat confdefs.h >>conftest.$ac_ext
25502cat >>conftest.$ac_ext <<_ACEOF
25503/* end confdefs.h.  */
25504long long int ll = 9223372036854775807ll;
25505	    long long int nll = -9223372036854775807LL;
25506	    typedef int a[((-9223372036854775807LL < 0
25507			    && 0 < 9223372036854775807ll)
25508			   ? 1 : -1)];
25509	    int i = 63;
25510int
25511main ()
25512{
25513long long int llmax = 9223372036854775807ll;
25514	    return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
25515		    | (llmax / ll) | (llmax % ll));
25516  ;
25517  return 0;
25518}
25519_ACEOF
25520rm -f conftest.$ac_objext conftest$ac_exeext
25521if { (ac_try="$ac_link"
25522case "(($ac_try" in
25523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524  *) ac_try_echo=$ac_try;;
25525esac
25526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25527  (eval "$ac_link") 2>conftest.er1
25528  ac_status=$?
25529  grep -v '^ *+' conftest.er1 >conftest.err
25530  rm -f conftest.er1
25531  cat conftest.err >&5
25532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533  (exit $ac_status); } && {
25534	 test -z "$ac_c_werror_flag" ||
25535	 test ! -s conftest.err
25536       } && test -s conftest$ac_exeext &&
25537       $as_test_x conftest$ac_exeext; then
25538  ac_cv_type_long_long_int=yes
25539else
25540  echo "$as_me: failed program was:" >&5
25541sed 's/^/| /' conftest.$ac_ext >&5
25542
25543	ac_cv_type_long_long_int=no
25544fi
25545
25546rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25547      conftest$ac_exeext conftest.$ac_ext
25548fi
25549{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25550echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25551  if test $ac_cv_type_long_long_int = yes; then
25552
25553cat >>confdefs.h <<\_ACEOF
25554#define HAVE_LONG_LONG_INT 1
25555_ACEOF
25556
25557  fi
25558
25559
25560  { echo "$as_me:$LINENO: checking for long double" >&5
25561echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
25562if test "${gt_cv_c_long_double+set}" = set; then
25563  echo $ECHO_N "(cached) $ECHO_C" >&6
25564else
25565  if test "$GCC" = yes; then
25566       gt_cv_c_long_double=yes
25567     else
25568       cat >conftest.$ac_ext <<_ACEOF
25569/* confdefs.h.  */
25570_ACEOF
25571cat confdefs.h >>conftest.$ac_ext
25572cat >>conftest.$ac_ext <<_ACEOF
25573/* end confdefs.h.  */
25574
25575         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
25576         long double foo = 0.0;
25577         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
25578         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
25579
25580int
25581main ()
25582{
25583
25584  ;
25585  return 0;
25586}
25587_ACEOF
25588rm -f conftest.$ac_objext
25589if { (ac_try="$ac_compile"
25590case "(($ac_try" in
25591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25592  *) ac_try_echo=$ac_try;;
25593esac
25594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25595  (eval "$ac_compile") 2>conftest.er1
25596  ac_status=$?
25597  grep -v '^ *+' conftest.er1 >conftest.err
25598  rm -f conftest.er1
25599  cat conftest.err >&5
25600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601  (exit $ac_status); } && {
25602	 test -z "$ac_c_werror_flag" ||
25603	 test ! -s conftest.err
25604       } && test -s conftest.$ac_objext; then
25605  gt_cv_c_long_double=yes
25606else
25607  echo "$as_me: failed program was:" >&5
25608sed 's/^/| /' conftest.$ac_ext >&5
25609
25610	gt_cv_c_long_double=no
25611fi
25612
25613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25614     fi
25615fi
25616{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
25617echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
25618  if test $gt_cv_c_long_double = yes; then
25619
25620cat >>confdefs.h <<\_ACEOF
25621#define HAVE_LONG_DOUBLE 1
25622_ACEOF
25623
25624  fi
25625
25626
25627  { echo "$as_me:$LINENO: checking for wchar_t" >&5
25628echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
25629if test "${gt_cv_c_wchar_t+set}" = set; then
25630  echo $ECHO_N "(cached) $ECHO_C" >&6
25631else
25632  cat >conftest.$ac_ext <<_ACEOF
25633/* confdefs.h.  */
25634_ACEOF
25635cat confdefs.h >>conftest.$ac_ext
25636cat >>conftest.$ac_ext <<_ACEOF
25637/* end confdefs.h.  */
25638#include <stddef.h>
25639       wchar_t foo = (wchar_t)'\0';
25640int
25641main ()
25642{
25643
25644  ;
25645  return 0;
25646}
25647_ACEOF
25648rm -f conftest.$ac_objext
25649if { (ac_try="$ac_compile"
25650case "(($ac_try" in
25651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25652  *) ac_try_echo=$ac_try;;
25653esac
25654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25655  (eval "$ac_compile") 2>conftest.er1
25656  ac_status=$?
25657  grep -v '^ *+' conftest.er1 >conftest.err
25658  rm -f conftest.er1
25659  cat conftest.err >&5
25660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661  (exit $ac_status); } && {
25662	 test -z "$ac_c_werror_flag" ||
25663	 test ! -s conftest.err
25664       } && test -s conftest.$ac_objext; then
25665  gt_cv_c_wchar_t=yes
25666else
25667  echo "$as_me: failed program was:" >&5
25668sed 's/^/| /' conftest.$ac_ext >&5
25669
25670	gt_cv_c_wchar_t=no
25671fi
25672
25673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25674fi
25675{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
25676echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
25677  if test $gt_cv_c_wchar_t = yes; then
25678
25679cat >>confdefs.h <<\_ACEOF
25680#define HAVE_WCHAR_T 1
25681_ACEOF
25682
25683  fi
25684
25685
25686  { echo "$as_me:$LINENO: checking for wint_t" >&5
25687echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
25688if test "${gt_cv_c_wint_t+set}" = set; then
25689  echo $ECHO_N "(cached) $ECHO_C" >&6
25690else
25691  cat >conftest.$ac_ext <<_ACEOF
25692/* confdefs.h.  */
25693_ACEOF
25694cat confdefs.h >>conftest.$ac_ext
25695cat >>conftest.$ac_ext <<_ACEOF
25696/* end confdefs.h.  */
25697#include <wchar.h>
25698       wint_t foo = (wchar_t)'\0';
25699int
25700main ()
25701{
25702
25703  ;
25704  return 0;
25705}
25706_ACEOF
25707rm -f conftest.$ac_objext
25708if { (ac_try="$ac_compile"
25709case "(($ac_try" in
25710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25711  *) ac_try_echo=$ac_try;;
25712esac
25713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25714  (eval "$ac_compile") 2>conftest.er1
25715  ac_status=$?
25716  grep -v '^ *+' conftest.er1 >conftest.err
25717  rm -f conftest.er1
25718  cat conftest.err >&5
25719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720  (exit $ac_status); } && {
25721	 test -z "$ac_c_werror_flag" ||
25722	 test ! -s conftest.err
25723       } && test -s conftest.$ac_objext; then
25724  gt_cv_c_wint_t=yes
25725else
25726  echo "$as_me: failed program was:" >&5
25727sed 's/^/| /' conftest.$ac_ext >&5
25728
25729	gt_cv_c_wint_t=no
25730fi
25731
25732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25733fi
25734{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
25735echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
25736  if test $gt_cv_c_wint_t = yes; then
25737
25738cat >>confdefs.h <<\_ACEOF
25739#define HAVE_WINT_T 1
25740_ACEOF
25741
25742  fi
25743
25744
25745
25746
25747  { echo "$as_me:$LINENO: checking for intmax_t" >&5
25748echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
25749if test "${gt_cv_c_intmax_t+set}" = set; then
25750  echo $ECHO_N "(cached) $ECHO_C" >&6
25751else
25752  cat >conftest.$ac_ext <<_ACEOF
25753/* confdefs.h.  */
25754_ACEOF
25755cat confdefs.h >>conftest.$ac_ext
25756cat >>conftest.$ac_ext <<_ACEOF
25757/* end confdefs.h.  */
25758
25759#include <stddef.h>
25760#include <stdlib.h>
25761#if HAVE_STDINT_H_WITH_UINTMAX
25762#include <stdint.h>
25763#endif
25764#if HAVE_INTTYPES_H_WITH_UINTMAX
25765#include <inttypes.h>
25766#endif
25767
25768int
25769main ()
25770{
25771intmax_t x = -1;
25772        return !x;
25773  ;
25774  return 0;
25775}
25776_ACEOF
25777rm -f conftest.$ac_objext
25778if { (ac_try="$ac_compile"
25779case "(($ac_try" in
25780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25781  *) ac_try_echo=$ac_try;;
25782esac
25783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25784  (eval "$ac_compile") 2>conftest.er1
25785  ac_status=$?
25786  grep -v '^ *+' conftest.er1 >conftest.err
25787  rm -f conftest.er1
25788  cat conftest.err >&5
25789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790  (exit $ac_status); } && {
25791	 test -z "$ac_c_werror_flag" ||
25792	 test ! -s conftest.err
25793       } && test -s conftest.$ac_objext; then
25794  gt_cv_c_intmax_t=yes
25795else
25796  echo "$as_me: failed program was:" >&5
25797sed 's/^/| /' conftest.$ac_ext >&5
25798
25799	gt_cv_c_intmax_t=no
25800fi
25801
25802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25803fi
25804{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
25805echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
25806  if test $gt_cv_c_intmax_t = yes; then
25807
25808cat >>confdefs.h <<\_ACEOF
25809#define HAVE_INTMAX_T 1
25810_ACEOF
25811
25812  fi
25813
25814
25815
25816  { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
25817echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
25818if test "${gt_cv_func_printf_posix+set}" = set; then
25819  echo $ECHO_N "(cached) $ECHO_C" >&6
25820else
25821
25822      if test "$cross_compiling" = yes; then
25823
25824        cat >conftest.$ac_ext <<_ACEOF
25825/* confdefs.h.  */
25826_ACEOF
25827cat confdefs.h >>conftest.$ac_ext
25828cat >>conftest.$ac_ext <<_ACEOF
25829/* end confdefs.h.  */
25830
25831#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
25832  notposix
25833#endif
25834
25835_ACEOF
25836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25837  $EGREP "notposix" >/dev/null 2>&1; then
25838  gt_cv_func_printf_posix="guessing no"
25839else
25840  gt_cv_func_printf_posix="guessing yes"
25841fi
25842rm -f conftest*
25843
25844
25845else
25846  cat >conftest.$ac_ext <<_ACEOF
25847/* confdefs.h.  */
25848_ACEOF
25849cat confdefs.h >>conftest.$ac_ext
25850cat >>conftest.$ac_ext <<_ACEOF
25851/* end confdefs.h.  */
25852
25853#include <stdio.h>
25854#include <string.h>
25855/* The string "%2$d %1$d", with dollar characters protected from the shell's
25856   dollar expansion (possibly an autoconf bug).  */
25857static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
25858static char buf[100];
25859int main ()
25860{
25861  sprintf (buf, format, 33, 55);
25862  return (strcmp (buf, "55 33") != 0);
25863}
25864_ACEOF
25865rm -f conftest$ac_exeext
25866if { (ac_try="$ac_link"
25867case "(($ac_try" in
25868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25869  *) ac_try_echo=$ac_try;;
25870esac
25871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25872  (eval "$ac_link") 2>&5
25873  ac_status=$?
25874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25876  { (case "(($ac_try" in
25877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25878  *) ac_try_echo=$ac_try;;
25879esac
25880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25881  (eval "$ac_try") 2>&5
25882  ac_status=$?
25883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884  (exit $ac_status); }; }; then
25885  gt_cv_func_printf_posix=yes
25886else
25887  echo "$as_me: program exited with status $ac_status" >&5
25888echo "$as_me: failed program was:" >&5
25889sed 's/^/| /' conftest.$ac_ext >&5
25890
25891( exit $ac_status )
25892gt_cv_func_printf_posix=no
25893fi
25894rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25895fi
25896
25897
25898
25899fi
25900{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
25901echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
25902  case $gt_cv_func_printf_posix in
25903    *yes)
25904
25905cat >>confdefs.h <<\_ACEOF
25906#define HAVE_POSIX_PRINTF 1
25907_ACEOF
25908
25909      ;;
25910  esac
25911
25912
25913    { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
25914echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
25915if test "${ac_cv_gnu_library_2_1+set}" = set; then
25916  echo $ECHO_N "(cached) $ECHO_C" >&6
25917else
25918  cat >conftest.$ac_ext <<_ACEOF
25919/* confdefs.h.  */
25920_ACEOF
25921cat confdefs.h >>conftest.$ac_ext
25922cat >>conftest.$ac_ext <<_ACEOF
25923/* end confdefs.h.  */
25924
25925#include <features.h>
25926#ifdef __GNU_LIBRARY__
25927 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
25928  Lucky GNU user
25929 #endif
25930#endif
25931
25932_ACEOF
25933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25934  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
25935  ac_cv_gnu_library_2_1=yes
25936else
25937  ac_cv_gnu_library_2_1=no
25938fi
25939rm -f conftest*
25940
25941
25942
25943fi
25944{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
25945echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
25946
25947    GLIBC21="$ac_cv_gnu_library_2_1"
25948
25949
25950
25951
25952for ac_header in stdint.h
25953do
25954as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25955if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25956  { echo "$as_me:$LINENO: checking for $ac_header" >&5
25957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25959  echo $ECHO_N "(cached) $ECHO_C" >&6
25960fi
25961ac_res=`eval echo '${'$as_ac_Header'}'`
25962	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25963echo "${ECHO_T}$ac_res" >&6; }
25964else
25965  # Is the header compilable?
25966{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
25967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25968cat >conftest.$ac_ext <<_ACEOF
25969/* confdefs.h.  */
25970_ACEOF
25971cat confdefs.h >>conftest.$ac_ext
25972cat >>conftest.$ac_ext <<_ACEOF
25973/* end confdefs.h.  */
25974$ac_includes_default
25975#include <$ac_header>
25976_ACEOF
25977rm -f conftest.$ac_objext
25978if { (ac_try="$ac_compile"
25979case "(($ac_try" in
25980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25981  *) ac_try_echo=$ac_try;;
25982esac
25983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25984  (eval "$ac_compile") 2>conftest.er1
25985  ac_status=$?
25986  grep -v '^ *+' conftest.er1 >conftest.err
25987  rm -f conftest.er1
25988  cat conftest.err >&5
25989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990  (exit $ac_status); } && {
25991	 test -z "$ac_c_werror_flag" ||
25992	 test ! -s conftest.err
25993       } && test -s conftest.$ac_objext; then
25994  ac_header_compiler=yes
25995else
25996  echo "$as_me: failed program was:" >&5
25997sed 's/^/| /' conftest.$ac_ext >&5
25998
25999	ac_header_compiler=no
26000fi
26001
26002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26003{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26004echo "${ECHO_T}$ac_header_compiler" >&6; }
26005
26006# Is the header present?
26007{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26008echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26009cat >conftest.$ac_ext <<_ACEOF
26010/* confdefs.h.  */
26011_ACEOF
26012cat confdefs.h >>conftest.$ac_ext
26013cat >>conftest.$ac_ext <<_ACEOF
26014/* end confdefs.h.  */
26015#include <$ac_header>
26016_ACEOF
26017if { (ac_try="$ac_cpp conftest.$ac_ext"
26018case "(($ac_try" in
26019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26020  *) ac_try_echo=$ac_try;;
26021esac
26022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26023  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26024  ac_status=$?
26025  grep -v '^ *+' conftest.er1 >conftest.err
26026  rm -f conftest.er1
26027  cat conftest.err >&5
26028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029  (exit $ac_status); } >/dev/null && {
26030	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26031	 test ! -s conftest.err
26032       }; then
26033  ac_header_preproc=yes
26034else
26035  echo "$as_me: failed program was:" >&5
26036sed 's/^/| /' conftest.$ac_ext >&5
26037
26038  ac_header_preproc=no
26039fi
26040
26041rm -f conftest.err conftest.$ac_ext
26042{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26043echo "${ECHO_T}$ac_header_preproc" >&6; }
26044
26045# So?  What about this header?
26046case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26047  yes:no: )
26048    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26049echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26050    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26051echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26052    ac_header_preproc=yes
26053    ;;
26054  no:yes:* )
26055    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26056echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26057    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26058echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26059    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26060echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26061    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26062echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26063    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26064echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26065    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26066echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26067
26068    ;;
26069esac
26070{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26073  echo $ECHO_N "(cached) $ECHO_C" >&6
26074else
26075  eval "$as_ac_Header=\$ac_header_preproc"
26076fi
26077ac_res=`eval echo '${'$as_ac_Header'}'`
26078	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26079echo "${ECHO_T}$ac_res" >&6; }
26080
26081fi
26082if test `eval echo '${'$as_ac_Header'}'` = yes; then
26083  cat >>confdefs.h <<_ACEOF
26084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26085_ACEOF
26086
26087fi
26088
26089done
26090
26091    { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
26092echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
26093  if test "${gl_cv_size_max+set}" = set; then
26094  echo $ECHO_N "(cached) $ECHO_C" >&6
26095else
26096
26097    gl_cv_size_max=
26098    cat >conftest.$ac_ext <<_ACEOF
26099/* confdefs.h.  */
26100_ACEOF
26101cat confdefs.h >>conftest.$ac_ext
26102cat >>conftest.$ac_ext <<_ACEOF
26103/* end confdefs.h.  */
26104
26105#include <limits.h>
26106#if HAVE_STDINT_H
26107#include <stdint.h>
26108#endif
26109#ifdef SIZE_MAX
26110Found it
26111#endif
26112
26113_ACEOF
26114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26115  $EGREP "Found it" >/dev/null 2>&1; then
26116  gl_cv_size_max=yes
26117fi
26118rm -f conftest*
26119
26120    if test -z "$gl_cv_size_max"; then
26121                        if test "$cross_compiling" = yes; then
26122  # Depending upon the size, compute the lo and hi bounds.
26123cat >conftest.$ac_ext <<_ACEOF
26124/* confdefs.h.  */
26125_ACEOF
26126cat confdefs.h >>conftest.$ac_ext
26127cat >>conftest.$ac_ext <<_ACEOF
26128/* end confdefs.h.  */
26129#include <stddef.h>
26130#include <limits.h>
26131int
26132main ()
26133{
26134static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
26135test_array [0] = 0
26136
26137  ;
26138  return 0;
26139}
26140_ACEOF
26141rm -f conftest.$ac_objext
26142if { (ac_try="$ac_compile"
26143case "(($ac_try" in
26144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26145  *) ac_try_echo=$ac_try;;
26146esac
26147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26148  (eval "$ac_compile") 2>conftest.er1
26149  ac_status=$?
26150  grep -v '^ *+' conftest.er1 >conftest.err
26151  rm -f conftest.er1
26152  cat conftest.err >&5
26153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154  (exit $ac_status); } && {
26155	 test -z "$ac_c_werror_flag" ||
26156	 test ! -s conftest.err
26157       } && test -s conftest.$ac_objext; then
26158  ac_lo=0 ac_mid=0
26159  while :; do
26160    cat >conftest.$ac_ext <<_ACEOF
26161/* confdefs.h.  */
26162_ACEOF
26163cat confdefs.h >>conftest.$ac_ext
26164cat >>conftest.$ac_ext <<_ACEOF
26165/* end confdefs.h.  */
26166#include <stddef.h>
26167#include <limits.h>
26168int
26169main ()
26170{
26171static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
26172test_array [0] = 0
26173
26174  ;
26175  return 0;
26176}
26177_ACEOF
26178rm -f conftest.$ac_objext
26179if { (ac_try="$ac_compile"
26180case "(($ac_try" in
26181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26182  *) ac_try_echo=$ac_try;;
26183esac
26184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26185  (eval "$ac_compile") 2>conftest.er1
26186  ac_status=$?
26187  grep -v '^ *+' conftest.er1 >conftest.err
26188  rm -f conftest.er1
26189  cat conftest.err >&5
26190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191  (exit $ac_status); } && {
26192	 test -z "$ac_c_werror_flag" ||
26193	 test ! -s conftest.err
26194       } && test -s conftest.$ac_objext; then
26195  ac_hi=$ac_mid; break
26196else
26197  echo "$as_me: failed program was:" >&5
26198sed 's/^/| /' conftest.$ac_ext >&5
26199
26200	ac_lo=`expr $ac_mid + 1`
26201			if test $ac_lo -le $ac_mid; then
26202			  ac_lo= ac_hi=
26203			  break
26204			fi
26205			ac_mid=`expr 2 '*' $ac_mid + 1`
26206fi
26207
26208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26209  done
26210else
26211  echo "$as_me: failed program was:" >&5
26212sed 's/^/| /' conftest.$ac_ext >&5
26213
26214	cat >conftest.$ac_ext <<_ACEOF
26215/* confdefs.h.  */
26216_ACEOF
26217cat confdefs.h >>conftest.$ac_ext
26218cat >>conftest.$ac_ext <<_ACEOF
26219/* end confdefs.h.  */
26220#include <stddef.h>
26221#include <limits.h>
26222int
26223main ()
26224{
26225static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
26226test_array [0] = 0
26227
26228  ;
26229  return 0;
26230}
26231_ACEOF
26232rm -f conftest.$ac_objext
26233if { (ac_try="$ac_compile"
26234case "(($ac_try" in
26235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26236  *) ac_try_echo=$ac_try;;
26237esac
26238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26239  (eval "$ac_compile") 2>conftest.er1
26240  ac_status=$?
26241  grep -v '^ *+' conftest.er1 >conftest.err
26242  rm -f conftest.er1
26243  cat conftest.err >&5
26244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245  (exit $ac_status); } && {
26246	 test -z "$ac_c_werror_flag" ||
26247	 test ! -s conftest.err
26248       } && test -s conftest.$ac_objext; then
26249  ac_hi=-1 ac_mid=-1
26250  while :; do
26251    cat >conftest.$ac_ext <<_ACEOF
26252/* confdefs.h.  */
26253_ACEOF
26254cat confdefs.h >>conftest.$ac_ext
26255cat >>conftest.$ac_ext <<_ACEOF
26256/* end confdefs.h.  */
26257#include <stddef.h>
26258#include <limits.h>
26259int
26260main ()
26261{
26262static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
26263test_array [0] = 0
26264
26265  ;
26266  return 0;
26267}
26268_ACEOF
26269rm -f conftest.$ac_objext
26270if { (ac_try="$ac_compile"
26271case "(($ac_try" in
26272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26273  *) ac_try_echo=$ac_try;;
26274esac
26275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26276  (eval "$ac_compile") 2>conftest.er1
26277  ac_status=$?
26278  grep -v '^ *+' conftest.er1 >conftest.err
26279  rm -f conftest.er1
26280  cat conftest.err >&5
26281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282  (exit $ac_status); } && {
26283	 test -z "$ac_c_werror_flag" ||
26284	 test ! -s conftest.err
26285       } && test -s conftest.$ac_objext; then
26286  ac_lo=$ac_mid; break
26287else
26288  echo "$as_me: failed program was:" >&5
26289sed 's/^/| /' conftest.$ac_ext >&5
26290
26291	ac_hi=`expr '(' $ac_mid ')' - 1`
26292			if test $ac_mid -le $ac_hi; then
26293			  ac_lo= ac_hi=
26294			  break
26295			fi
26296			ac_mid=`expr 2 '*' $ac_mid`
26297fi
26298
26299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26300  done
26301else
26302  echo "$as_me: failed program was:" >&5
26303sed 's/^/| /' conftest.$ac_ext >&5
26304
26305	ac_lo= ac_hi=
26306fi
26307
26308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26309fi
26310
26311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26312# Binary search between lo and hi bounds.
26313while test "x$ac_lo" != "x$ac_hi"; do
26314  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26315  cat >conftest.$ac_ext <<_ACEOF
26316/* confdefs.h.  */
26317_ACEOF
26318cat confdefs.h >>conftest.$ac_ext
26319cat >>conftest.$ac_ext <<_ACEOF
26320/* end confdefs.h.  */
26321#include <stddef.h>
26322#include <limits.h>
26323int
26324main ()
26325{
26326static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
26327test_array [0] = 0
26328
26329  ;
26330  return 0;
26331}
26332_ACEOF
26333rm -f conftest.$ac_objext
26334if { (ac_try="$ac_compile"
26335case "(($ac_try" in
26336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337  *) ac_try_echo=$ac_try;;
26338esac
26339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26340  (eval "$ac_compile") 2>conftest.er1
26341  ac_status=$?
26342  grep -v '^ *+' conftest.er1 >conftest.err
26343  rm -f conftest.er1
26344  cat conftest.err >&5
26345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346  (exit $ac_status); } && {
26347	 test -z "$ac_c_werror_flag" ||
26348	 test ! -s conftest.err
26349       } && test -s conftest.$ac_objext; then
26350  ac_hi=$ac_mid
26351else
26352  echo "$as_me: failed program was:" >&5
26353sed 's/^/| /' conftest.$ac_ext >&5
26354
26355	ac_lo=`expr '(' $ac_mid ')' + 1`
26356fi
26357
26358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26359done
26360case $ac_lo in
26361?*) size_t_bits_minus_1=$ac_lo;;
26362'') size_t_bits_minus_1= ;;
26363esac
26364else
26365  cat >conftest.$ac_ext <<_ACEOF
26366/* confdefs.h.  */
26367_ACEOF
26368cat confdefs.h >>conftest.$ac_ext
26369cat >>conftest.$ac_ext <<_ACEOF
26370/* end confdefs.h.  */
26371#include <stddef.h>
26372#include <limits.h>
26373static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
26374static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
26375#include <stdio.h>
26376#include <stdlib.h>
26377int
26378main ()
26379{
26380
26381  FILE *f = fopen ("conftest.val", "w");
26382  if (! f)
26383    return 1;
26384  if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
26385    {
26386      long int i = longval ();
26387      if (i != (sizeof (size_t) * CHAR_BIT - 1))
26388	return 1;
26389      fprintf (f, "%ld\n", i);
26390    }
26391  else
26392    {
26393      unsigned long int i = ulongval ();
26394      if (i != (sizeof (size_t) * CHAR_BIT - 1))
26395	return 1;
26396      fprintf (f, "%lu\n", i);
26397    }
26398  return ferror (f) || fclose (f) != 0;
26399
26400  ;
26401  return 0;
26402}
26403_ACEOF
26404rm -f conftest$ac_exeext
26405if { (ac_try="$ac_link"
26406case "(($ac_try" in
26407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26408  *) ac_try_echo=$ac_try;;
26409esac
26410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26411  (eval "$ac_link") 2>&5
26412  ac_status=$?
26413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26414  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26415  { (case "(($ac_try" in
26416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26417  *) ac_try_echo=$ac_try;;
26418esac
26419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26420  (eval "$ac_try") 2>&5
26421  ac_status=$?
26422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423  (exit $ac_status); }; }; then
26424  size_t_bits_minus_1=`cat conftest.val`
26425else
26426  echo "$as_me: program exited with status $ac_status" >&5
26427echo "$as_me: failed program was:" >&5
26428sed 's/^/| /' conftest.$ac_ext >&5
26429
26430( exit $ac_status )
26431size_t_bits_minus_1=
26432fi
26433rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26434fi
26435rm -f conftest.val
26436
26437      if test "$cross_compiling" = yes; then
26438  # Depending upon the size, compute the lo and hi bounds.
26439cat >conftest.$ac_ext <<_ACEOF
26440/* confdefs.h.  */
26441_ACEOF
26442cat confdefs.h >>conftest.$ac_ext
26443cat >>conftest.$ac_ext <<_ACEOF
26444/* end confdefs.h.  */
26445#include <stddef.h>
26446int
26447main ()
26448{
26449static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
26450test_array [0] = 0
26451
26452  ;
26453  return 0;
26454}
26455_ACEOF
26456rm -f conftest.$ac_objext
26457if { (ac_try="$ac_compile"
26458case "(($ac_try" in
26459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26460  *) ac_try_echo=$ac_try;;
26461esac
26462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26463  (eval "$ac_compile") 2>conftest.er1
26464  ac_status=$?
26465  grep -v '^ *+' conftest.er1 >conftest.err
26466  rm -f conftest.er1
26467  cat conftest.err >&5
26468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469  (exit $ac_status); } && {
26470	 test -z "$ac_c_werror_flag" ||
26471	 test ! -s conftest.err
26472       } && test -s conftest.$ac_objext; then
26473  ac_lo=0 ac_mid=0
26474  while :; do
26475    cat >conftest.$ac_ext <<_ACEOF
26476/* confdefs.h.  */
26477_ACEOF
26478cat confdefs.h >>conftest.$ac_ext
26479cat >>conftest.$ac_ext <<_ACEOF
26480/* end confdefs.h.  */
26481#include <stddef.h>
26482int
26483main ()
26484{
26485static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
26486test_array [0] = 0
26487
26488  ;
26489  return 0;
26490}
26491_ACEOF
26492rm -f conftest.$ac_objext
26493if { (ac_try="$ac_compile"
26494case "(($ac_try" in
26495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26496  *) ac_try_echo=$ac_try;;
26497esac
26498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26499  (eval "$ac_compile") 2>conftest.er1
26500  ac_status=$?
26501  grep -v '^ *+' conftest.er1 >conftest.err
26502  rm -f conftest.er1
26503  cat conftest.err >&5
26504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505  (exit $ac_status); } && {
26506	 test -z "$ac_c_werror_flag" ||
26507	 test ! -s conftest.err
26508       } && test -s conftest.$ac_objext; then
26509  ac_hi=$ac_mid; break
26510else
26511  echo "$as_me: failed program was:" >&5
26512sed 's/^/| /' conftest.$ac_ext >&5
26513
26514	ac_lo=`expr $ac_mid + 1`
26515			if test $ac_lo -le $ac_mid; then
26516			  ac_lo= ac_hi=
26517			  break
26518			fi
26519			ac_mid=`expr 2 '*' $ac_mid + 1`
26520fi
26521
26522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26523  done
26524else
26525  echo "$as_me: failed program was:" >&5
26526sed 's/^/| /' conftest.$ac_ext >&5
26527
26528	cat >conftest.$ac_ext <<_ACEOF
26529/* confdefs.h.  */
26530_ACEOF
26531cat confdefs.h >>conftest.$ac_ext
26532cat >>conftest.$ac_ext <<_ACEOF
26533/* end confdefs.h.  */
26534#include <stddef.h>
26535int
26536main ()
26537{
26538static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
26539test_array [0] = 0
26540
26541  ;
26542  return 0;
26543}
26544_ACEOF
26545rm -f conftest.$ac_objext
26546if { (ac_try="$ac_compile"
26547case "(($ac_try" in
26548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26549  *) ac_try_echo=$ac_try;;
26550esac
26551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26552  (eval "$ac_compile") 2>conftest.er1
26553  ac_status=$?
26554  grep -v '^ *+' conftest.er1 >conftest.err
26555  rm -f conftest.er1
26556  cat conftest.err >&5
26557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26558  (exit $ac_status); } && {
26559	 test -z "$ac_c_werror_flag" ||
26560	 test ! -s conftest.err
26561       } && test -s conftest.$ac_objext; then
26562  ac_hi=-1 ac_mid=-1
26563  while :; do
26564    cat >conftest.$ac_ext <<_ACEOF
26565/* confdefs.h.  */
26566_ACEOF
26567cat confdefs.h >>conftest.$ac_ext
26568cat >>conftest.$ac_ext <<_ACEOF
26569/* end confdefs.h.  */
26570#include <stddef.h>
26571int
26572main ()
26573{
26574static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
26575test_array [0] = 0
26576
26577  ;
26578  return 0;
26579}
26580_ACEOF
26581rm -f conftest.$ac_objext
26582if { (ac_try="$ac_compile"
26583case "(($ac_try" in
26584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26585  *) ac_try_echo=$ac_try;;
26586esac
26587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26588  (eval "$ac_compile") 2>conftest.er1
26589  ac_status=$?
26590  grep -v '^ *+' conftest.er1 >conftest.err
26591  rm -f conftest.er1
26592  cat conftest.err >&5
26593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594  (exit $ac_status); } && {
26595	 test -z "$ac_c_werror_flag" ||
26596	 test ! -s conftest.err
26597       } && test -s conftest.$ac_objext; then
26598  ac_lo=$ac_mid; break
26599else
26600  echo "$as_me: failed program was:" >&5
26601sed 's/^/| /' conftest.$ac_ext >&5
26602
26603	ac_hi=`expr '(' $ac_mid ')' - 1`
26604			if test $ac_mid -le $ac_hi; then
26605			  ac_lo= ac_hi=
26606			  break
26607			fi
26608			ac_mid=`expr 2 '*' $ac_mid`
26609fi
26610
26611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26612  done
26613else
26614  echo "$as_me: failed program was:" >&5
26615sed 's/^/| /' conftest.$ac_ext >&5
26616
26617	ac_lo= ac_hi=
26618fi
26619
26620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26621fi
26622
26623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26624# Binary search between lo and hi bounds.
26625while test "x$ac_lo" != "x$ac_hi"; do
26626  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26627  cat >conftest.$ac_ext <<_ACEOF
26628/* confdefs.h.  */
26629_ACEOF
26630cat confdefs.h >>conftest.$ac_ext
26631cat >>conftest.$ac_ext <<_ACEOF
26632/* end confdefs.h.  */
26633#include <stddef.h>
26634int
26635main ()
26636{
26637static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
26638test_array [0] = 0
26639
26640  ;
26641  return 0;
26642}
26643_ACEOF
26644rm -f conftest.$ac_objext
26645if { (ac_try="$ac_compile"
26646case "(($ac_try" in
26647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26648  *) ac_try_echo=$ac_try;;
26649esac
26650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26651  (eval "$ac_compile") 2>conftest.er1
26652  ac_status=$?
26653  grep -v '^ *+' conftest.er1 >conftest.err
26654  rm -f conftest.er1
26655  cat conftest.err >&5
26656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657  (exit $ac_status); } && {
26658	 test -z "$ac_c_werror_flag" ||
26659	 test ! -s conftest.err
26660       } && test -s conftest.$ac_objext; then
26661  ac_hi=$ac_mid
26662else
26663  echo "$as_me: failed program was:" >&5
26664sed 's/^/| /' conftest.$ac_ext >&5
26665
26666	ac_lo=`expr '(' $ac_mid ')' + 1`
26667fi
26668
26669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26670done
26671case $ac_lo in
26672?*) fits_in_uint=$ac_lo;;
26673'') fits_in_uint= ;;
26674esac
26675else
26676  cat >conftest.$ac_ext <<_ACEOF
26677/* confdefs.h.  */
26678_ACEOF
26679cat confdefs.h >>conftest.$ac_ext
26680cat >>conftest.$ac_ext <<_ACEOF
26681/* end confdefs.h.  */
26682#include <stddef.h>
26683static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
26684static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
26685#include <stdio.h>
26686#include <stdlib.h>
26687int
26688main ()
26689{
26690
26691  FILE *f = fopen ("conftest.val", "w");
26692  if (! f)
26693    return 1;
26694  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
26695    {
26696      long int i = longval ();
26697      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
26698	return 1;
26699      fprintf (f, "%ld\n", i);
26700    }
26701  else
26702    {
26703      unsigned long int i = ulongval ();
26704      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
26705	return 1;
26706      fprintf (f, "%lu\n", i);
26707    }
26708  return ferror (f) || fclose (f) != 0;
26709
26710  ;
26711  return 0;
26712}
26713_ACEOF
26714rm -f conftest$ac_exeext
26715if { (ac_try="$ac_link"
26716case "(($ac_try" in
26717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26718  *) ac_try_echo=$ac_try;;
26719esac
26720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26721  (eval "$ac_link") 2>&5
26722  ac_status=$?
26723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26725  { (case "(($ac_try" in
26726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26727  *) ac_try_echo=$ac_try;;
26728esac
26729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26730  (eval "$ac_try") 2>&5
26731  ac_status=$?
26732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733  (exit $ac_status); }; }; then
26734  fits_in_uint=`cat conftest.val`
26735else
26736  echo "$as_me: program exited with status $ac_status" >&5
26737echo "$as_me: failed program was:" >&5
26738sed 's/^/| /' conftest.$ac_ext >&5
26739
26740( exit $ac_status )
26741fits_in_uint=
26742fi
26743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26744fi
26745rm -f conftest.val
26746
26747      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
26748        if test $fits_in_uint = 1; then
26749                              cat >conftest.$ac_ext <<_ACEOF
26750/* confdefs.h.  */
26751_ACEOF
26752cat confdefs.h >>conftest.$ac_ext
26753cat >>conftest.$ac_ext <<_ACEOF
26754/* end confdefs.h.  */
26755#include <stddef.h>
26756            extern size_t foo;
26757            extern unsigned long foo;
26758
26759int
26760main ()
26761{
26762
26763  ;
26764  return 0;
26765}
26766_ACEOF
26767rm -f conftest.$ac_objext
26768if { (ac_try="$ac_compile"
26769case "(($ac_try" in
26770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26771  *) ac_try_echo=$ac_try;;
26772esac
26773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26774  (eval "$ac_compile") 2>conftest.er1
26775  ac_status=$?
26776  grep -v '^ *+' conftest.er1 >conftest.err
26777  rm -f conftest.er1
26778  cat conftest.err >&5
26779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780  (exit $ac_status); } && {
26781	 test -z "$ac_c_werror_flag" ||
26782	 test ! -s conftest.err
26783       } && test -s conftest.$ac_objext; then
26784  fits_in_uint=0
26785else
26786  echo "$as_me: failed program was:" >&5
26787sed 's/^/| /' conftest.$ac_ext >&5
26788
26789
26790fi
26791
26792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26793        fi
26794                                if test $fits_in_uint = 1; then
26795          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
26796        else
26797          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
26798        fi
26799      else
26800                gl_cv_size_max='((size_t)~(size_t)0)'
26801      fi
26802    fi
26803
26804fi
26805
26806  { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
26807echo "${ECHO_T}$gl_cv_size_max" >&6; }
26808  if test "$gl_cv_size_max" != yes; then
26809
26810cat >>confdefs.h <<_ACEOF
26811#define SIZE_MAX $gl_cv_size_max
26812_ACEOF
26813
26814  fi
26815
26816
26817
26818
26819
26820for ac_header in stdint.h
26821do
26822as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26823if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26824  { echo "$as_me:$LINENO: checking for $ac_header" >&5
26825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26826if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26827  echo $ECHO_N "(cached) $ECHO_C" >&6
26828fi
26829ac_res=`eval echo '${'$as_ac_Header'}'`
26830	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26831echo "${ECHO_T}$ac_res" >&6; }
26832else
26833  # Is the header compilable?
26834{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
26835echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26836cat >conftest.$ac_ext <<_ACEOF
26837/* confdefs.h.  */
26838_ACEOF
26839cat confdefs.h >>conftest.$ac_ext
26840cat >>conftest.$ac_ext <<_ACEOF
26841/* end confdefs.h.  */
26842$ac_includes_default
26843#include <$ac_header>
26844_ACEOF
26845rm -f conftest.$ac_objext
26846if { (ac_try="$ac_compile"
26847case "(($ac_try" in
26848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26849  *) ac_try_echo=$ac_try;;
26850esac
26851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26852  (eval "$ac_compile") 2>conftest.er1
26853  ac_status=$?
26854  grep -v '^ *+' conftest.er1 >conftest.err
26855  rm -f conftest.er1
26856  cat conftest.err >&5
26857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858  (exit $ac_status); } && {
26859	 test -z "$ac_c_werror_flag" ||
26860	 test ! -s conftest.err
26861       } && test -s conftest.$ac_objext; then
26862  ac_header_compiler=yes
26863else
26864  echo "$as_me: failed program was:" >&5
26865sed 's/^/| /' conftest.$ac_ext >&5
26866
26867	ac_header_compiler=no
26868fi
26869
26870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26871{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26872echo "${ECHO_T}$ac_header_compiler" >&6; }
26873
26874# Is the header present?
26875{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
26876echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26877cat >conftest.$ac_ext <<_ACEOF
26878/* confdefs.h.  */
26879_ACEOF
26880cat confdefs.h >>conftest.$ac_ext
26881cat >>conftest.$ac_ext <<_ACEOF
26882/* end confdefs.h.  */
26883#include <$ac_header>
26884_ACEOF
26885if { (ac_try="$ac_cpp conftest.$ac_ext"
26886case "(($ac_try" in
26887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26888  *) ac_try_echo=$ac_try;;
26889esac
26890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26891  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26892  ac_status=$?
26893  grep -v '^ *+' conftest.er1 >conftest.err
26894  rm -f conftest.er1
26895  cat conftest.err >&5
26896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897  (exit $ac_status); } >/dev/null && {
26898	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26899	 test ! -s conftest.err
26900       }; then
26901  ac_header_preproc=yes
26902else
26903  echo "$as_me: failed program was:" >&5
26904sed 's/^/| /' conftest.$ac_ext >&5
26905
26906  ac_header_preproc=no
26907fi
26908
26909rm -f conftest.err conftest.$ac_ext
26910{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26911echo "${ECHO_T}$ac_header_preproc" >&6; }
26912
26913# So?  What about this header?
26914case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26915  yes:no: )
26916    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26917echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26918    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26919echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26920    ac_header_preproc=yes
26921    ;;
26922  no:yes:* )
26923    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26924echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26925    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26926echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26927    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26928echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26929    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26930echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26931    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26932echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26933    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26934echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26935
26936    ;;
26937esac
26938{ echo "$as_me:$LINENO: checking for $ac_header" >&5
26939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26941  echo $ECHO_N "(cached) $ECHO_C" >&6
26942else
26943  eval "$as_ac_Header=\$ac_header_preproc"
26944fi
26945ac_res=`eval echo '${'$as_ac_Header'}'`
26946	       { echo "$as_me:$LINENO: result: $ac_res" >&5
26947echo "${ECHO_T}$ac_res" >&6; }
26948
26949fi
26950if test `eval echo '${'$as_ac_Header'}'` = yes; then
26951  cat >>confdefs.h <<_ACEOF
26952#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26953_ACEOF
26954
26955fi
26956
26957done
26958
26959
26960
26961    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
26962echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
26963if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
26964  echo $ECHO_N "(cached) $ECHO_C" >&6
26965else
26966  gt_save_LIBS="$LIBS"
26967     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
26968     cat >conftest.$ac_ext <<_ACEOF
26969/* confdefs.h.  */
26970_ACEOF
26971cat confdefs.h >>conftest.$ac_ext
26972cat >>conftest.$ac_ext <<_ACEOF
26973/* end confdefs.h.  */
26974#include <CoreFoundation/CFPreferences.h>
26975int
26976main ()
26977{
26978CFPreferencesCopyAppValue(NULL, NULL)
26979  ;
26980  return 0;
26981}
26982_ACEOF
26983rm -f conftest.$ac_objext conftest$ac_exeext
26984if { (ac_try="$ac_link"
26985case "(($ac_try" in
26986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26987  *) ac_try_echo=$ac_try;;
26988esac
26989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26990  (eval "$ac_link") 2>conftest.er1
26991  ac_status=$?
26992  grep -v '^ *+' conftest.er1 >conftest.err
26993  rm -f conftest.er1
26994  cat conftest.err >&5
26995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26996  (exit $ac_status); } && {
26997	 test -z "$ac_c_werror_flag" ||
26998	 test ! -s conftest.err
26999       } && test -s conftest$ac_exeext &&
27000       $as_test_x conftest$ac_exeext; then
27001  gt_cv_func_CFPreferencesCopyAppValue=yes
27002else
27003  echo "$as_me: failed program was:" >&5
27004sed 's/^/| /' conftest.$ac_ext >&5
27005
27006	gt_cv_func_CFPreferencesCopyAppValue=no
27007fi
27008
27009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27010      conftest$ac_exeext conftest.$ac_ext
27011     LIBS="$gt_save_LIBS"
27012fi
27013{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
27014echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
27015  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
27016
27017cat >>confdefs.h <<\_ACEOF
27018#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
27019_ACEOF
27020
27021  fi
27022    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
27023echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
27024if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
27025  echo $ECHO_N "(cached) $ECHO_C" >&6
27026else
27027  gt_save_LIBS="$LIBS"
27028     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
27029     cat >conftest.$ac_ext <<_ACEOF
27030/* confdefs.h.  */
27031_ACEOF
27032cat confdefs.h >>conftest.$ac_ext
27033cat >>conftest.$ac_ext <<_ACEOF
27034/* end confdefs.h.  */
27035#include <CoreFoundation/CFLocale.h>
27036int
27037main ()
27038{
27039CFLocaleCopyCurrent();
27040  ;
27041  return 0;
27042}
27043_ACEOF
27044rm -f conftest.$ac_objext conftest$ac_exeext
27045if { (ac_try="$ac_link"
27046case "(($ac_try" in
27047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27048  *) ac_try_echo=$ac_try;;
27049esac
27050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27051  (eval "$ac_link") 2>conftest.er1
27052  ac_status=$?
27053  grep -v '^ *+' conftest.er1 >conftest.err
27054  rm -f conftest.er1
27055  cat conftest.err >&5
27056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057  (exit $ac_status); } && {
27058	 test -z "$ac_c_werror_flag" ||
27059	 test ! -s conftest.err
27060       } && test -s conftest$ac_exeext &&
27061       $as_test_x conftest$ac_exeext; then
27062  gt_cv_func_CFLocaleCopyCurrent=yes
27063else
27064  echo "$as_me: failed program was:" >&5
27065sed 's/^/| /' conftest.$ac_ext >&5
27066
27067	gt_cv_func_CFLocaleCopyCurrent=no
27068fi
27069
27070rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27071      conftest$ac_exeext conftest.$ac_ext
27072     LIBS="$gt_save_LIBS"
27073fi
27074{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
27075echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
27076  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
27077
27078cat >>confdefs.h <<\_ACEOF
27079#define HAVE_CFLOCALECOPYCURRENT 1
27080_ACEOF
27081
27082  fi
27083  INTL_MACOSX_LIBS=
27084  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
27085    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
27086  fi
27087
27088
27089
27090
27091
27092
27093
27094  { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
27095echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
27096if test "${ac_cv_type_ptrdiff_t+set}" = set; then
27097  echo $ECHO_N "(cached) $ECHO_C" >&6
27098else
27099  cat >conftest.$ac_ext <<_ACEOF
27100/* confdefs.h.  */
27101_ACEOF
27102cat confdefs.h >>conftest.$ac_ext
27103cat >>conftest.$ac_ext <<_ACEOF
27104/* end confdefs.h.  */
27105$ac_includes_default
27106typedef ptrdiff_t ac__type_new_;
27107int
27108main ()
27109{
27110if ((ac__type_new_ *) 0)
27111  return 0;
27112if (sizeof (ac__type_new_))
27113  return 0;
27114  ;
27115  return 0;
27116}
27117_ACEOF
27118rm -f conftest.$ac_objext
27119if { (ac_try="$ac_compile"
27120case "(($ac_try" in
27121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122  *) ac_try_echo=$ac_try;;
27123esac
27124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27125  (eval "$ac_compile") 2>conftest.er1
27126  ac_status=$?
27127  grep -v '^ *+' conftest.er1 >conftest.err
27128  rm -f conftest.er1
27129  cat conftest.err >&5
27130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131  (exit $ac_status); } && {
27132	 test -z "$ac_c_werror_flag" ||
27133	 test ! -s conftest.err
27134       } && test -s conftest.$ac_objext; then
27135  ac_cv_type_ptrdiff_t=yes
27136else
27137  echo "$as_me: failed program was:" >&5
27138sed 's/^/| /' conftest.$ac_ext >&5
27139
27140	ac_cv_type_ptrdiff_t=no
27141fi
27142
27143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27144fi
27145{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
27146echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
27147if test $ac_cv_type_ptrdiff_t = yes; then
27148  :
27149else
27150
27151cat >>confdefs.h <<\_ACEOF
27152#define ptrdiff_t long
27153_ACEOF
27154
27155
27156fi
27157
27158
27159
27160
27161for ac_header in stddef.h stdlib.h string.h
27162do
27163as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27165  { echo "$as_me:$LINENO: checking for $ac_header" >&5
27166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27168  echo $ECHO_N "(cached) $ECHO_C" >&6
27169fi
27170ac_res=`eval echo '${'$as_ac_Header'}'`
27171	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27172echo "${ECHO_T}$ac_res" >&6; }
27173else
27174  # Is the header compilable?
27175{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
27176echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27177cat >conftest.$ac_ext <<_ACEOF
27178/* confdefs.h.  */
27179_ACEOF
27180cat confdefs.h >>conftest.$ac_ext
27181cat >>conftest.$ac_ext <<_ACEOF
27182/* end confdefs.h.  */
27183$ac_includes_default
27184#include <$ac_header>
27185_ACEOF
27186rm -f conftest.$ac_objext
27187if { (ac_try="$ac_compile"
27188case "(($ac_try" in
27189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27190  *) ac_try_echo=$ac_try;;
27191esac
27192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27193  (eval "$ac_compile") 2>conftest.er1
27194  ac_status=$?
27195  grep -v '^ *+' conftest.er1 >conftest.err
27196  rm -f conftest.er1
27197  cat conftest.err >&5
27198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199  (exit $ac_status); } && {
27200	 test -z "$ac_c_werror_flag" ||
27201	 test ! -s conftest.err
27202       } && test -s conftest.$ac_objext; then
27203  ac_header_compiler=yes
27204else
27205  echo "$as_me: failed program was:" >&5
27206sed 's/^/| /' conftest.$ac_ext >&5
27207
27208	ac_header_compiler=no
27209fi
27210
27211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27212{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27213echo "${ECHO_T}$ac_header_compiler" >&6; }
27214
27215# Is the header present?
27216{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
27217echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27218cat >conftest.$ac_ext <<_ACEOF
27219/* confdefs.h.  */
27220_ACEOF
27221cat confdefs.h >>conftest.$ac_ext
27222cat >>conftest.$ac_ext <<_ACEOF
27223/* end confdefs.h.  */
27224#include <$ac_header>
27225_ACEOF
27226if { (ac_try="$ac_cpp conftest.$ac_ext"
27227case "(($ac_try" in
27228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27229  *) ac_try_echo=$ac_try;;
27230esac
27231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27232  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27233  ac_status=$?
27234  grep -v '^ *+' conftest.er1 >conftest.err
27235  rm -f conftest.er1
27236  cat conftest.err >&5
27237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238  (exit $ac_status); } >/dev/null && {
27239	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27240	 test ! -s conftest.err
27241       }; then
27242  ac_header_preproc=yes
27243else
27244  echo "$as_me: failed program was:" >&5
27245sed 's/^/| /' conftest.$ac_ext >&5
27246
27247  ac_header_preproc=no
27248fi
27249
27250rm -f conftest.err conftest.$ac_ext
27251{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27252echo "${ECHO_T}$ac_header_preproc" >&6; }
27253
27254# So?  What about this header?
27255case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27256  yes:no: )
27257    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27258echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27259    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27260echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27261    ac_header_preproc=yes
27262    ;;
27263  no:yes:* )
27264    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27265echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27266    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27267echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27268    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27269echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27270    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27271echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27272    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27273echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27274    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27275echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27276
27277    ;;
27278esac
27279{ echo "$as_me:$LINENO: checking for $ac_header" >&5
27280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27282  echo $ECHO_N "(cached) $ECHO_C" >&6
27283else
27284  eval "$as_ac_Header=\$ac_header_preproc"
27285fi
27286ac_res=`eval echo '${'$as_ac_Header'}'`
27287	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27288echo "${ECHO_T}$ac_res" >&6; }
27289
27290fi
27291if test `eval echo '${'$as_ac_Header'}'` = yes; then
27292  cat >>confdefs.h <<_ACEOF
27293#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27294_ACEOF
27295
27296fi
27297
27298done
27299
27300
27301
27302
27303
27304
27305
27306
27307for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
27308do
27309as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27310{ echo "$as_me:$LINENO: checking for $ac_func" >&5
27311echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27312if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27313  echo $ECHO_N "(cached) $ECHO_C" >&6
27314else
27315  cat >conftest.$ac_ext <<_ACEOF
27316/* confdefs.h.  */
27317_ACEOF
27318cat confdefs.h >>conftest.$ac_ext
27319cat >>conftest.$ac_ext <<_ACEOF
27320/* end confdefs.h.  */
27321/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27322   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27323#define $ac_func innocuous_$ac_func
27324
27325/* System header to define __stub macros and hopefully few prototypes,
27326    which can conflict with char $ac_func (); below.
27327    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27328    <limits.h> exists even on freestanding compilers.  */
27329
27330#ifdef __STDC__
27331# include <limits.h>
27332#else
27333# include <assert.h>
27334#endif
27335
27336#undef $ac_func
27337
27338/* Override any GCC internal prototype to avoid an error.
27339   Use char because int might match the return type of a GCC
27340   builtin and then its argument prototype would still apply.  */
27341#ifdef __cplusplus
27342extern "C"
27343#endif
27344char $ac_func ();
27345/* The GNU C library defines this for functions which it implements
27346    to always fail with ENOSYS.  Some functions are actually named
27347    something starting with __ and the normal name is an alias.  */
27348#if defined __stub_$ac_func || defined __stub___$ac_func
27349choke me
27350#endif
27351
27352int
27353main ()
27354{
27355return $ac_func ();
27356  ;
27357  return 0;
27358}
27359_ACEOF
27360rm -f conftest.$ac_objext conftest$ac_exeext
27361if { (ac_try="$ac_link"
27362case "(($ac_try" in
27363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27364  *) ac_try_echo=$ac_try;;
27365esac
27366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27367  (eval "$ac_link") 2>conftest.er1
27368  ac_status=$?
27369  grep -v '^ *+' conftest.er1 >conftest.err
27370  rm -f conftest.er1
27371  cat conftest.err >&5
27372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373  (exit $ac_status); } && {
27374	 test -z "$ac_c_werror_flag" ||
27375	 test ! -s conftest.err
27376       } && test -s conftest$ac_exeext &&
27377       $as_test_x conftest$ac_exeext; then
27378  eval "$as_ac_var=yes"
27379else
27380  echo "$as_me: failed program was:" >&5
27381sed 's/^/| /' conftest.$ac_ext >&5
27382
27383	eval "$as_ac_var=no"
27384fi
27385
27386rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27387      conftest$ac_exeext conftest.$ac_ext
27388fi
27389ac_res=`eval echo '${'$as_ac_var'}'`
27390	       { echo "$as_me:$LINENO: result: $ac_res" >&5
27391echo "${ECHO_T}$ac_res" >&6; }
27392if test `eval echo '${'$as_ac_var'}'` = yes; then
27393  cat >>confdefs.h <<_ACEOF
27394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27395_ACEOF
27396
27397fi
27398done
27399
27400
27401
27402  { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
27403echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
27404if test "${ac_cv_have_decl__snprintf+set}" = set; then
27405  echo $ECHO_N "(cached) $ECHO_C" >&6
27406else
27407  cat >conftest.$ac_ext <<_ACEOF
27408/* confdefs.h.  */
27409_ACEOF
27410cat confdefs.h >>conftest.$ac_ext
27411cat >>conftest.$ac_ext <<_ACEOF
27412/* end confdefs.h.  */
27413#include <stdio.h>
27414int
27415main ()
27416{
27417
27418#ifndef _snprintf
27419  char *p = (char *) _snprintf;
27420#endif
27421
27422  ;
27423  return 0;
27424}
27425_ACEOF
27426rm -f conftest.$ac_objext
27427if { (ac_try="$ac_compile"
27428case "(($ac_try" in
27429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27430  *) ac_try_echo=$ac_try;;
27431esac
27432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27433  (eval "$ac_compile") 2>conftest.er1
27434  ac_status=$?
27435  grep -v '^ *+' conftest.er1 >conftest.err
27436  rm -f conftest.er1
27437  cat conftest.err >&5
27438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439  (exit $ac_status); } && {
27440	 test -z "$ac_c_werror_flag" ||
27441	 test ! -s conftest.err
27442       } && test -s conftest.$ac_objext; then
27443  ac_cv_have_decl__snprintf=yes
27444else
27445  echo "$as_me: failed program was:" >&5
27446sed 's/^/| /' conftest.$ac_ext >&5
27447
27448	ac_cv_have_decl__snprintf=no
27449fi
27450
27451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27452fi
27453{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
27454echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
27455  if test $ac_cv_have_decl__snprintf = yes; then
27456    gt_value=1
27457  else
27458    gt_value=0
27459  fi
27460
27461cat >>confdefs.h <<_ACEOF
27462#define HAVE_DECL__SNPRINTF $gt_value
27463_ACEOF
27464
27465
27466
27467  { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
27468echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
27469if test "${ac_cv_have_decl__snwprintf+set}" = set; then
27470  echo $ECHO_N "(cached) $ECHO_C" >&6
27471else
27472  cat >conftest.$ac_ext <<_ACEOF
27473/* confdefs.h.  */
27474_ACEOF
27475cat confdefs.h >>conftest.$ac_ext
27476cat >>conftest.$ac_ext <<_ACEOF
27477/* end confdefs.h.  */
27478#include <stdio.h>
27479int
27480main ()
27481{
27482
27483#ifndef _snwprintf
27484  char *p = (char *) _snwprintf;
27485#endif
27486
27487  ;
27488  return 0;
27489}
27490_ACEOF
27491rm -f conftest.$ac_objext
27492if { (ac_try="$ac_compile"
27493case "(($ac_try" in
27494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27495  *) ac_try_echo=$ac_try;;
27496esac
27497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27498  (eval "$ac_compile") 2>conftest.er1
27499  ac_status=$?
27500  grep -v '^ *+' conftest.er1 >conftest.err
27501  rm -f conftest.er1
27502  cat conftest.err >&5
27503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504  (exit $ac_status); } && {
27505	 test -z "$ac_c_werror_flag" ||
27506	 test ! -s conftest.err
27507       } && test -s conftest.$ac_objext; then
27508  ac_cv_have_decl__snwprintf=yes
27509else
27510  echo "$as_me: failed program was:" >&5
27511sed 's/^/| /' conftest.$ac_ext >&5
27512
27513	ac_cv_have_decl__snwprintf=no
27514fi
27515
27516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27517fi
27518{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
27519echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
27520  if test $ac_cv_have_decl__snwprintf = yes; then
27521    gt_value=1
27522  else
27523    gt_value=0
27524  fi
27525
27526cat >>confdefs.h <<_ACEOF
27527#define HAVE_DECL__SNWPRINTF $gt_value
27528_ACEOF
27529
27530
27531
27532
27533  { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
27534echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
27535if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
27536  echo $ECHO_N "(cached) $ECHO_C" >&6
27537else
27538  cat >conftest.$ac_ext <<_ACEOF
27539/* confdefs.h.  */
27540_ACEOF
27541cat confdefs.h >>conftest.$ac_ext
27542cat >>conftest.$ac_ext <<_ACEOF
27543/* end confdefs.h.  */
27544#include <stdio.h>
27545int
27546main ()
27547{
27548
27549#ifndef getc_unlocked
27550  char *p = (char *) getc_unlocked;
27551#endif
27552
27553  ;
27554  return 0;
27555}
27556_ACEOF
27557rm -f conftest.$ac_objext
27558if { (ac_try="$ac_compile"
27559case "(($ac_try" in
27560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561  *) ac_try_echo=$ac_try;;
27562esac
27563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564  (eval "$ac_compile") 2>conftest.er1
27565  ac_status=$?
27566  grep -v '^ *+' conftest.er1 >conftest.err
27567  rm -f conftest.er1
27568  cat conftest.err >&5
27569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570  (exit $ac_status); } && {
27571	 test -z "$ac_c_werror_flag" ||
27572	 test ! -s conftest.err
27573       } && test -s conftest.$ac_objext; then
27574  ac_cv_have_decl_getc_unlocked=yes
27575else
27576  echo "$as_me: failed program was:" >&5
27577sed 's/^/| /' conftest.$ac_ext >&5
27578
27579	ac_cv_have_decl_getc_unlocked=no
27580fi
27581
27582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27583fi
27584{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
27585echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
27586  if test $ac_cv_have_decl_getc_unlocked = yes; then
27587    gt_value=1
27588  else
27589    gt_value=0
27590  fi
27591
27592cat >>confdefs.h <<_ACEOF
27593#define HAVE_DECL_GETC_UNLOCKED $gt_value
27594_ACEOF
27595
27596
27597
27598  case $gt_cv_func_printf_posix in
27599    *yes) HAVE_POSIX_PRINTF=1 ;;
27600    *) HAVE_POSIX_PRINTF=0 ;;
27601  esac
27602
27603  if test "$ac_cv_func_asprintf" = yes; then
27604    HAVE_ASPRINTF=1
27605  else
27606    HAVE_ASPRINTF=0
27607  fi
27608
27609  if test "$ac_cv_func_snprintf" = yes; then
27610    HAVE_SNPRINTF=1
27611  else
27612    HAVE_SNPRINTF=0
27613  fi
27614
27615  if test "$ac_cv_func_wprintf" = yes; then
27616    HAVE_WPRINTF=1
27617  else
27618    HAVE_WPRINTF=0
27619  fi
27620
27621
27622
27623  { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
27624echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
27625if test "${am_cv_langinfo_codeset+set}" = set; then
27626  echo $ECHO_N "(cached) $ECHO_C" >&6
27627else
27628  cat >conftest.$ac_ext <<_ACEOF
27629/* confdefs.h.  */
27630_ACEOF
27631cat confdefs.h >>conftest.$ac_ext
27632cat >>conftest.$ac_ext <<_ACEOF
27633/* end confdefs.h.  */
27634#include <langinfo.h>
27635int
27636main ()
27637{
27638char* cs = nl_langinfo(CODESET); return !cs;
27639  ;
27640  return 0;
27641}
27642_ACEOF
27643rm -f conftest.$ac_objext conftest$ac_exeext
27644if { (ac_try="$ac_link"
27645case "(($ac_try" in
27646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27647  *) ac_try_echo=$ac_try;;
27648esac
27649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27650  (eval "$ac_link") 2>conftest.er1
27651  ac_status=$?
27652  grep -v '^ *+' conftest.er1 >conftest.err
27653  rm -f conftest.er1
27654  cat conftest.err >&5
27655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656  (exit $ac_status); } && {
27657	 test -z "$ac_c_werror_flag" ||
27658	 test ! -s conftest.err
27659       } && test -s conftest$ac_exeext &&
27660       $as_test_x conftest$ac_exeext; then
27661  am_cv_langinfo_codeset=yes
27662else
27663  echo "$as_me: failed program was:" >&5
27664sed 's/^/| /' conftest.$ac_ext >&5
27665
27666	am_cv_langinfo_codeset=no
27667fi
27668
27669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27670      conftest$ac_exeext conftest.$ac_ext
27671
27672fi
27673{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
27674echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
27675  if test $am_cv_langinfo_codeset = yes; then
27676
27677cat >>confdefs.h <<\_ACEOF
27678#define HAVE_LANGINFO_CODESET 1
27679_ACEOF
27680
27681  fi
27682
27683
27684  { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
27685echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
27686if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
27687  echo $ECHO_N "(cached) $ECHO_C" >&6
27688else
27689  cat >conftest.$ac_ext <<_ACEOF
27690/* confdefs.h.  */
27691_ACEOF
27692cat confdefs.h >>conftest.$ac_ext
27693cat >>conftest.$ac_ext <<_ACEOF
27694/* end confdefs.h.  */
27695#include <locale.h>
27696int
27697main ()
27698{
27699return LC_MESSAGES
27700  ;
27701  return 0;
27702}
27703_ACEOF
27704rm -f conftest.$ac_objext conftest$ac_exeext
27705if { (ac_try="$ac_link"
27706case "(($ac_try" in
27707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27708  *) ac_try_echo=$ac_try;;
27709esac
27710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27711  (eval "$ac_link") 2>conftest.er1
27712  ac_status=$?
27713  grep -v '^ *+' conftest.er1 >conftest.err
27714  rm -f conftest.er1
27715  cat conftest.err >&5
27716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717  (exit $ac_status); } && {
27718	 test -z "$ac_c_werror_flag" ||
27719	 test ! -s conftest.err
27720       } && test -s conftest$ac_exeext &&
27721       $as_test_x conftest$ac_exeext; then
27722  gt_cv_val_LC_MESSAGES=yes
27723else
27724  echo "$as_me: failed program was:" >&5
27725sed 's/^/| /' conftest.$ac_ext >&5
27726
27727	gt_cv_val_LC_MESSAGES=no
27728fi
27729
27730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27731      conftest$ac_exeext conftest.$ac_ext
27732fi
27733{ echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
27734echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
27735  if test $gt_cv_val_LC_MESSAGES = yes; then
27736
27737cat >>confdefs.h <<\_ACEOF
27738#define HAVE_LC_MESSAGES 1
27739_ACEOF
27740
27741  fi
27742
27743
27744                if test "$enable_shared" = yes; then
27745    case "$host_os" in
27746      cygwin*) is_woe32dll=yes ;;
27747      *) is_woe32dll=no ;;
27748    esac
27749  else
27750    is_woe32dll=no
27751  fi
27752  WOE32DLL=$is_woe32dll
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774
27775
27776
27777
27778
27779
27780    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
27781echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
27782if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
27783  echo $ECHO_N "(cached) $ECHO_C" >&6
27784else
27785  gt_save_LIBS="$LIBS"
27786     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
27787     cat >conftest.$ac_ext <<_ACEOF
27788/* confdefs.h.  */
27789_ACEOF
27790cat confdefs.h >>conftest.$ac_ext
27791cat >>conftest.$ac_ext <<_ACEOF
27792/* end confdefs.h.  */
27793#include <CoreFoundation/CFPreferences.h>
27794int
27795main ()
27796{
27797CFPreferencesCopyAppValue(NULL, NULL)
27798  ;
27799  return 0;
27800}
27801_ACEOF
27802rm -f conftest.$ac_objext conftest$ac_exeext
27803if { (ac_try="$ac_link"
27804case "(($ac_try" in
27805  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27806  *) ac_try_echo=$ac_try;;
27807esac
27808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27809  (eval "$ac_link") 2>conftest.er1
27810  ac_status=$?
27811  grep -v '^ *+' conftest.er1 >conftest.err
27812  rm -f conftest.er1
27813  cat conftest.err >&5
27814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815  (exit $ac_status); } && {
27816	 test -z "$ac_c_werror_flag" ||
27817	 test ! -s conftest.err
27818       } && test -s conftest$ac_exeext &&
27819       $as_test_x conftest$ac_exeext; then
27820  gt_cv_func_CFPreferencesCopyAppValue=yes
27821else
27822  echo "$as_me: failed program was:" >&5
27823sed 's/^/| /' conftest.$ac_ext >&5
27824
27825	gt_cv_func_CFPreferencesCopyAppValue=no
27826fi
27827
27828rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27829      conftest$ac_exeext conftest.$ac_ext
27830     LIBS="$gt_save_LIBS"
27831fi
27832{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
27833echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
27834  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
27835
27836cat >>confdefs.h <<\_ACEOF
27837#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
27838_ACEOF
27839
27840  fi
27841    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
27842echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
27843if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
27844  echo $ECHO_N "(cached) $ECHO_C" >&6
27845else
27846  gt_save_LIBS="$LIBS"
27847     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
27848     cat >conftest.$ac_ext <<_ACEOF
27849/* confdefs.h.  */
27850_ACEOF
27851cat confdefs.h >>conftest.$ac_ext
27852cat >>conftest.$ac_ext <<_ACEOF
27853/* end confdefs.h.  */
27854#include <CoreFoundation/CFLocale.h>
27855int
27856main ()
27857{
27858CFLocaleCopyCurrent();
27859  ;
27860  return 0;
27861}
27862_ACEOF
27863rm -f conftest.$ac_objext conftest$ac_exeext
27864if { (ac_try="$ac_link"
27865case "(($ac_try" in
27866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27867  *) ac_try_echo=$ac_try;;
27868esac
27869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27870  (eval "$ac_link") 2>conftest.er1
27871  ac_status=$?
27872  grep -v '^ *+' conftest.er1 >conftest.err
27873  rm -f conftest.er1
27874  cat conftest.err >&5
27875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876  (exit $ac_status); } && {
27877	 test -z "$ac_c_werror_flag" ||
27878	 test ! -s conftest.err
27879       } && test -s conftest$ac_exeext &&
27880       $as_test_x conftest$ac_exeext; then
27881  gt_cv_func_CFLocaleCopyCurrent=yes
27882else
27883  echo "$as_me: failed program was:" >&5
27884sed 's/^/| /' conftest.$ac_ext >&5
27885
27886	gt_cv_func_CFLocaleCopyCurrent=no
27887fi
27888
27889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27890      conftest$ac_exeext conftest.$ac_ext
27891     LIBS="$gt_save_LIBS"
27892fi
27893{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
27894echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
27895  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
27896
27897cat >>confdefs.h <<\_ACEOF
27898#define HAVE_CFLOCALECOPYCURRENT 1
27899_ACEOF
27900
27901  fi
27902  INTL_MACOSX_LIBS=
27903  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
27904    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
27905  fi
27906
27907
27908
27909
27910
27911
27912    BUILD_INCLUDED_LIBINTL=no
27913    USE_INCLUDED_LIBINTL=no
27914
27915  LIBINTL=
27916  LTLIBINTL=
27917  POSUB=
27918
27919    case " $gt_needs " in
27920    *" need-formatstring-macros "*) gt_api_version=3 ;;
27921    *" need-ngettext "*) gt_api_version=2 ;;
27922    *) gt_api_version=1 ;;
27923  esac
27924  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
27925  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
27926
27927    if test "$USE_NLS" = "yes"; then
27928    gt_use_preinstalled_gnugettext=no
27929
27930      { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
27931echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
27932
27933# Check whether --with-included-gettext was given.
27934if test "${with_included_gettext+set}" = set; then
27935  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
27936else
27937  nls_cv_force_use_gnu_gettext=no
27938fi
27939
27940      { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
27941echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
27942
27943      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
27944      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
27945
27946
27947        if test $gt_api_version -ge 3; then
27948          gt_revision_test_code='
27949#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
27950#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
27951#endif
27952typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
27953'
27954        else
27955          gt_revision_test_code=
27956        fi
27957        if test $gt_api_version -ge 2; then
27958          gt_expression_test_code=' + * ngettext ("", "", 0)'
27959        else
27960          gt_expression_test_code=
27961        fi
27962
27963        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
27964echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
27965if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
27966  echo $ECHO_N "(cached) $ECHO_C" >&6
27967else
27968  cat >conftest.$ac_ext <<_ACEOF
27969/* confdefs.h.  */
27970_ACEOF
27971cat confdefs.h >>conftest.$ac_ext
27972cat >>conftest.$ac_ext <<_ACEOF
27973/* end confdefs.h.  */
27974#include <libintl.h>
27975$gt_revision_test_code
27976extern int _nl_msg_cat_cntr;
27977extern int *_nl_domain_bindings;
27978int
27979main ()
27980{
27981bindtextdomain ("", "");
27982return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
27983  ;
27984  return 0;
27985}
27986_ACEOF
27987rm -f conftest.$ac_objext conftest$ac_exeext
27988if { (ac_try="$ac_link"
27989case "(($ac_try" in
27990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27991  *) ac_try_echo=$ac_try;;
27992esac
27993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27994  (eval "$ac_link") 2>conftest.er1
27995  ac_status=$?
27996  grep -v '^ *+' conftest.er1 >conftest.err
27997  rm -f conftest.er1
27998  cat conftest.err >&5
27999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000  (exit $ac_status); } && {
28001	 test -z "$ac_c_werror_flag" ||
28002	 test ! -s conftest.err
28003       } && test -s conftest$ac_exeext &&
28004       $as_test_x conftest$ac_exeext; then
28005  eval "$gt_func_gnugettext_libc=yes"
28006else
28007  echo "$as_me: failed program was:" >&5
28008sed 's/^/| /' conftest.$ac_ext >&5
28009
28010	eval "$gt_func_gnugettext_libc=no"
28011fi
28012
28013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28014      conftest$ac_exeext conftest.$ac_ext
28015fi
28016ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
28017	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28018echo "${ECHO_T}$ac_res" >&6; }
28019
28020        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
28021
28022
28023
28024
28025    use_additional=yes
28026
28027  acl_save_prefix="$prefix"
28028  prefix="$acl_final_prefix"
28029  acl_save_exec_prefix="$exec_prefix"
28030  exec_prefix="$acl_final_exec_prefix"
28031
28032    eval additional_includedir=\"$includedir\"
28033    eval additional_libdir=\"$libdir\"
28034
28035  exec_prefix="$acl_save_exec_prefix"
28036  prefix="$acl_save_prefix"
28037
28038
28039# Check whether --with-libintl-prefix was given.
28040if test "${with_libintl_prefix+set}" = set; then
28041  withval=$with_libintl_prefix;
28042    if test "X$withval" = "Xno"; then
28043      use_additional=no
28044    else
28045      if test "X$withval" = "X"; then
28046
28047  acl_save_prefix="$prefix"
28048  prefix="$acl_final_prefix"
28049  acl_save_exec_prefix="$exec_prefix"
28050  exec_prefix="$acl_final_exec_prefix"
28051
28052          eval additional_includedir=\"$includedir\"
28053          eval additional_libdir=\"$libdir\"
28054
28055  exec_prefix="$acl_save_exec_prefix"
28056  prefix="$acl_save_prefix"
28057
28058      else
28059        additional_includedir="$withval/include"
28060        additional_libdir="$withval/$acl_libdirstem"
28061      fi
28062    fi
28063
28064fi
28065
28066      LIBINTL=
28067  LTLIBINTL=
28068  INCINTL=
28069  rpathdirs=
28070  ltrpathdirs=
28071  names_already_handled=
28072  names_next_round='intl '
28073  while test -n "$names_next_round"; do
28074    names_this_round="$names_next_round"
28075    names_next_round=
28076    for name in $names_this_round; do
28077      already_handled=
28078      for n in $names_already_handled; do
28079        if test "$n" = "$name"; then
28080          already_handled=yes
28081          break
28082        fi
28083      done
28084      if test -z "$already_handled"; then
28085        names_already_handled="$names_already_handled $name"
28086                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28087        eval value=\"\$HAVE_LIB$uppername\"
28088        if test -n "$value"; then
28089          if test "$value" = yes; then
28090            eval value=\"\$LIB$uppername\"
28091            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
28092            eval value=\"\$LTLIB$uppername\"
28093            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
28094          else
28095                                    :
28096          fi
28097        else
28098                              found_dir=
28099          found_la=
28100          found_so=
28101          found_a=
28102          if test $use_additional = yes; then
28103            if test -n "$shlibext" \
28104               && { test -f "$additional_libdir/lib$name.$shlibext" \
28105                    || { test "$shlibext" = dll \
28106                         && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
28107              found_dir="$additional_libdir"
28108              if test -f "$additional_libdir/lib$name.$shlibext"; then
28109                found_so="$additional_libdir/lib$name.$shlibext"
28110              else
28111                found_so="$additional_libdir/lib$name.dll.a"
28112              fi
28113              if test -f "$additional_libdir/lib$name.la"; then
28114                found_la="$additional_libdir/lib$name.la"
28115              fi
28116            else
28117              if test -f "$additional_libdir/lib$name.$libext"; then
28118                found_dir="$additional_libdir"
28119                found_a="$additional_libdir/lib$name.$libext"
28120                if test -f "$additional_libdir/lib$name.la"; then
28121                  found_la="$additional_libdir/lib$name.la"
28122                fi
28123              fi
28124            fi
28125          fi
28126          if test "X$found_dir" = "X"; then
28127            for x in $LDFLAGS $LTLIBINTL; do
28128
28129  acl_save_prefix="$prefix"
28130  prefix="$acl_final_prefix"
28131  acl_save_exec_prefix="$exec_prefix"
28132  exec_prefix="$acl_final_exec_prefix"
28133  eval x=\"$x\"
28134  exec_prefix="$acl_save_exec_prefix"
28135  prefix="$acl_save_prefix"
28136
28137              case "$x" in
28138                -L*)
28139                  dir=`echo "X$x" | sed -e 's/^X-L//'`
28140                  if test -n "$shlibext" \
28141                     && { test -f "$dir/lib$name.$shlibext" \
28142                          || { test "$shlibext" = dll \
28143                               && test -f "$dir/lib$name.dll.a"; }; }; then
28144                    found_dir="$dir"
28145                    if test -f "$dir/lib$name.$shlibext"; then
28146                      found_so="$dir/lib$name.$shlibext"
28147                    else
28148                      found_so="$dir/lib$name.dll.a"
28149                    fi
28150                    if test -f "$dir/lib$name.la"; then
28151                      found_la="$dir/lib$name.la"
28152                    fi
28153                  else
28154                    if test -f "$dir/lib$name.$libext"; then
28155                      found_dir="$dir"
28156                      found_a="$dir/lib$name.$libext"
28157                      if test -f "$dir/lib$name.la"; then
28158                        found_la="$dir/lib$name.la"
28159                      fi
28160                    fi
28161                  fi
28162                  ;;
28163              esac
28164              if test "X$found_dir" != "X"; then
28165                break
28166              fi
28167            done
28168          fi
28169          if test "X$found_dir" != "X"; then
28170                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
28171            if test "X$found_so" != "X"; then
28172                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
28173                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28174              else
28175                                                                                haveit=
28176                for x in $ltrpathdirs; do
28177                  if test "X$x" = "X$found_dir"; then
28178                    haveit=yes
28179                    break
28180                  fi
28181                done
28182                if test -z "$haveit"; then
28183                  ltrpathdirs="$ltrpathdirs $found_dir"
28184                fi
28185                                if test "$hardcode_direct" = yes; then
28186                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28187                else
28188                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
28189                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28190                                                            haveit=
28191                    for x in $rpathdirs; do
28192                      if test "X$x" = "X$found_dir"; then
28193                        haveit=yes
28194                        break
28195                      fi
28196                    done
28197                    if test -z "$haveit"; then
28198                      rpathdirs="$rpathdirs $found_dir"
28199                    fi
28200                  else
28201                                                                                haveit=
28202                    for x in $LDFLAGS $LIBINTL; do
28203
28204  acl_save_prefix="$prefix"
28205  prefix="$acl_final_prefix"
28206  acl_save_exec_prefix="$exec_prefix"
28207  exec_prefix="$acl_final_exec_prefix"
28208  eval x=\"$x\"
28209  exec_prefix="$acl_save_exec_prefix"
28210  prefix="$acl_save_prefix"
28211
28212                      if test "X$x" = "X-L$found_dir"; then
28213                        haveit=yes
28214                        break
28215                      fi
28216                    done
28217                    if test -z "$haveit"; then
28218                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
28219                    fi
28220                    if test "$hardcode_minus_L" != no; then
28221                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
28222                    else
28223                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
28224                    fi
28225                  fi
28226                fi
28227              fi
28228            else
28229              if test "X$found_a" != "X"; then
28230                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
28231              else
28232                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
28233              fi
28234            fi
28235                        additional_includedir=
28236            case "$found_dir" in
28237              */$acl_libdirstem | */$acl_libdirstem/)
28238                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
28239                additional_includedir="$basedir/include"
28240                ;;
28241            esac
28242            if test "X$additional_includedir" != "X"; then
28243                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
28244                haveit=
28245                if test "X$additional_includedir" = "X/usr/local/include"; then
28246                  if test -n "$GCC"; then
28247                    case $host_os in
28248                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28249                    esac
28250                  fi
28251                fi
28252                if test -z "$haveit"; then
28253                  for x in $CPPFLAGS $INCINTL; do
28254
28255  acl_save_prefix="$prefix"
28256  prefix="$acl_final_prefix"
28257  acl_save_exec_prefix="$exec_prefix"
28258  exec_prefix="$acl_final_exec_prefix"
28259  eval x=\"$x\"
28260  exec_prefix="$acl_save_exec_prefix"
28261  prefix="$acl_save_prefix"
28262
28263                    if test "X$x" = "X-I$additional_includedir"; then
28264                      haveit=yes
28265                      break
28266                    fi
28267                  done
28268                  if test -z "$haveit"; then
28269                    if test -d "$additional_includedir"; then
28270                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
28271                    fi
28272                  fi
28273                fi
28274              fi
28275            fi
28276                        if test -n "$found_la"; then
28277                                                        save_libdir="$libdir"
28278              case "$found_la" in
28279                */* | *\\*) . "$found_la" ;;
28280                *) . "./$found_la" ;;
28281              esac
28282              libdir="$save_libdir"
28283                            for dep in $dependency_libs; do
28284                case "$dep" in
28285                  -L*)
28286                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28287                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
28288                      haveit=
28289                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
28290                        if test -n "$GCC"; then
28291                          case $host_os in
28292                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
28293                          esac
28294                        fi
28295                      fi
28296                      if test -z "$haveit"; then
28297                        haveit=
28298                        for x in $LDFLAGS $LIBINTL; do
28299
28300  acl_save_prefix="$prefix"
28301  prefix="$acl_final_prefix"
28302  acl_save_exec_prefix="$exec_prefix"
28303  exec_prefix="$acl_final_exec_prefix"
28304  eval x=\"$x\"
28305  exec_prefix="$acl_save_exec_prefix"
28306  prefix="$acl_save_prefix"
28307
28308                          if test "X$x" = "X-L$additional_libdir"; then
28309                            haveit=yes
28310                            break
28311                          fi
28312                        done
28313                        if test -z "$haveit"; then
28314                          if test -d "$additional_libdir"; then
28315                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
28316                          fi
28317                        fi
28318                        haveit=
28319                        for x in $LDFLAGS $LTLIBINTL; do
28320
28321  acl_save_prefix="$prefix"
28322  prefix="$acl_final_prefix"
28323  acl_save_exec_prefix="$exec_prefix"
28324  exec_prefix="$acl_final_exec_prefix"
28325  eval x=\"$x\"
28326  exec_prefix="$acl_save_exec_prefix"
28327  prefix="$acl_save_prefix"
28328
28329                          if test "X$x" = "X-L$additional_libdir"; then
28330                            haveit=yes
28331                            break
28332                          fi
28333                        done
28334                        if test -z "$haveit"; then
28335                          if test -d "$additional_libdir"; then
28336                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
28337                          fi
28338                        fi
28339                      fi
28340                    fi
28341                    ;;
28342                  -R*)
28343                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
28344                    if test "$enable_rpath" != no; then
28345                                                                  haveit=
28346                      for x in $rpathdirs; do
28347                        if test "X$x" = "X$dir"; then
28348                          haveit=yes
28349                          break
28350                        fi
28351                      done
28352                      if test -z "$haveit"; then
28353                        rpathdirs="$rpathdirs $dir"
28354                      fi
28355                                                                  haveit=
28356                      for x in $ltrpathdirs; do
28357                        if test "X$x" = "X$dir"; then
28358                          haveit=yes
28359                          break
28360                        fi
28361                      done
28362                      if test -z "$haveit"; then
28363                        ltrpathdirs="$ltrpathdirs $dir"
28364                      fi
28365                    fi
28366                    ;;
28367                  -l*)
28368                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28369                    ;;
28370                  *.la)
28371                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28372                    ;;
28373                  *)
28374                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
28375                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
28376                    ;;
28377                esac
28378              done
28379            fi
28380          else
28381                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
28382            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
28383          fi
28384        fi
28385      fi
28386    done
28387  done
28388  if test "X$rpathdirs" != "X"; then
28389    if test -n "$hardcode_libdir_separator"; then
28390                        alldirs=
28391      for found_dir in $rpathdirs; do
28392        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
28393      done
28394            acl_save_libdir="$libdir"
28395      libdir="$alldirs"
28396      eval flag=\"$hardcode_libdir_flag_spec\"
28397      libdir="$acl_save_libdir"
28398      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
28399    else
28400            for found_dir in $rpathdirs; do
28401        acl_save_libdir="$libdir"
28402        libdir="$found_dir"
28403        eval flag=\"$hardcode_libdir_flag_spec\"
28404        libdir="$acl_save_libdir"
28405        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
28406      done
28407    fi
28408  fi
28409  if test "X$ltrpathdirs" != "X"; then
28410            for found_dir in $ltrpathdirs; do
28411      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
28412    done
28413  fi
28414
28415          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
28416echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
28417if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
28418  echo $ECHO_N "(cached) $ECHO_C" >&6
28419else
28420  gt_save_CPPFLAGS="$CPPFLAGS"
28421            CPPFLAGS="$CPPFLAGS $INCINTL"
28422            gt_save_LIBS="$LIBS"
28423            LIBS="$LIBS $LIBINTL"
28424                        cat >conftest.$ac_ext <<_ACEOF
28425/* confdefs.h.  */
28426_ACEOF
28427cat confdefs.h >>conftest.$ac_ext
28428cat >>conftest.$ac_ext <<_ACEOF
28429/* end confdefs.h.  */
28430#include <libintl.h>
28431$gt_revision_test_code
28432extern int _nl_msg_cat_cntr;
28433extern
28434#ifdef __cplusplus
28435"C"
28436#endif
28437const char *_nl_expand_alias (const char *);
28438int
28439main ()
28440{
28441bindtextdomain ("", "");
28442return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
28443  ;
28444  return 0;
28445}
28446_ACEOF
28447rm -f conftest.$ac_objext conftest$ac_exeext
28448if { (ac_try="$ac_link"
28449case "(($ac_try" in
28450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28451  *) ac_try_echo=$ac_try;;
28452esac
28453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28454  (eval "$ac_link") 2>conftest.er1
28455  ac_status=$?
28456  grep -v '^ *+' conftest.er1 >conftest.err
28457  rm -f conftest.er1
28458  cat conftest.err >&5
28459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460  (exit $ac_status); } && {
28461	 test -z "$ac_c_werror_flag" ||
28462	 test ! -s conftest.err
28463       } && test -s conftest$ac_exeext &&
28464       $as_test_x conftest$ac_exeext; then
28465  eval "$gt_func_gnugettext_libintl=yes"
28466else
28467  echo "$as_me: failed program was:" >&5
28468sed 's/^/| /' conftest.$ac_ext >&5
28469
28470	eval "$gt_func_gnugettext_libintl=no"
28471fi
28472
28473rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28474      conftest$ac_exeext conftest.$ac_ext
28475                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
28476              LIBS="$LIBS $LIBICONV"
28477              cat >conftest.$ac_ext <<_ACEOF
28478/* confdefs.h.  */
28479_ACEOF
28480cat confdefs.h >>conftest.$ac_ext
28481cat >>conftest.$ac_ext <<_ACEOF
28482/* end confdefs.h.  */
28483#include <libintl.h>
28484$gt_revision_test_code
28485extern int _nl_msg_cat_cntr;
28486extern
28487#ifdef __cplusplus
28488"C"
28489#endif
28490const char *_nl_expand_alias (const char *);
28491int
28492main ()
28493{
28494bindtextdomain ("", "");
28495return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
28496  ;
28497  return 0;
28498}
28499_ACEOF
28500rm -f conftest.$ac_objext conftest$ac_exeext
28501if { (ac_try="$ac_link"
28502case "(($ac_try" in
28503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504  *) ac_try_echo=$ac_try;;
28505esac
28506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507  (eval "$ac_link") 2>conftest.er1
28508  ac_status=$?
28509  grep -v '^ *+' conftest.er1 >conftest.err
28510  rm -f conftest.er1
28511  cat conftest.err >&5
28512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513  (exit $ac_status); } && {
28514	 test -z "$ac_c_werror_flag" ||
28515	 test ! -s conftest.err
28516       } && test -s conftest$ac_exeext &&
28517       $as_test_x conftest$ac_exeext; then
28518  LIBINTL="$LIBINTL $LIBICONV"
28519                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
28520                eval "$gt_func_gnugettext_libintl=yes"
28521
28522else
28523  echo "$as_me: failed program was:" >&5
28524sed 's/^/| /' conftest.$ac_ext >&5
28525
28526
28527fi
28528
28529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28530      conftest$ac_exeext conftest.$ac_ext
28531            fi
28532            CPPFLAGS="$gt_save_CPPFLAGS"
28533            LIBS="$gt_save_LIBS"
28534fi
28535ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
28536	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28537echo "${ECHO_T}$ac_res" >&6; }
28538        fi
28539
28540                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
28541           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
28542                && test "$PACKAGE" != gettext-runtime \
28543                && test "$PACKAGE" != gettext-tools; }; then
28544          gt_use_preinstalled_gnugettext=yes
28545        else
28546                    LIBINTL=
28547          LTLIBINTL=
28548          INCINTL=
28549        fi
28550
28551
28552        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
28553                              nls_cv_use_gnu_gettext=yes
28554        fi
28555      fi
28556
28557      if test "$nls_cv_use_gnu_gettext" = "yes"; then
28558                BUILD_INCLUDED_LIBINTL=yes
28559        USE_INCLUDED_LIBINTL=yes
28560        LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD"
28561        LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD"
28562        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
28563      fi
28564
28565      CATOBJEXT=
28566      if test "$gt_use_preinstalled_gnugettext" = "yes" \
28567         || test "$nls_cv_use_gnu_gettext" = "yes"; then
28568                CATOBJEXT=.gmo
28569      fi
28570
28571
28572    if test -n "$INTL_MACOSX_LIBS"; then
28573      if test "$gt_use_preinstalled_gnugettext" = "yes" \
28574         || test "$nls_cv_use_gnu_gettext" = "yes"; then
28575                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
28576        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
28577      fi
28578    fi
28579
28580    if test "$gt_use_preinstalled_gnugettext" = "yes" \
28581       || test "$nls_cv_use_gnu_gettext" = "yes"; then
28582
28583cat >>confdefs.h <<\_ACEOF
28584#define ENABLE_NLS 1
28585_ACEOF
28586
28587    else
28588      USE_NLS=no
28589    fi
28590  fi
28591
28592  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
28593echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
28594  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
28595echo "${ECHO_T}$USE_NLS" >&6; }
28596  if test "$USE_NLS" = "yes"; then
28597    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
28598echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
28599    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
28600      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
28601        gt_source="external libintl"
28602      else
28603        gt_source="libc"
28604      fi
28605    else
28606      gt_source="included intl directory"
28607    fi
28608    { echo "$as_me:$LINENO: result: $gt_source" >&5
28609echo "${ECHO_T}$gt_source" >&6; }
28610  fi
28611
28612  if test "$USE_NLS" = "yes"; then
28613
28614    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
28615      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
28616        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
28617echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
28618        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
28619echo "${ECHO_T}$LIBINTL" >&6; }
28620
28621  for element in $INCINTL; do
28622    haveit=
28623    for x in $CPPFLAGS; do
28624
28625  acl_save_prefix="$prefix"
28626  prefix="$acl_final_prefix"
28627  acl_save_exec_prefix="$exec_prefix"
28628  exec_prefix="$acl_final_exec_prefix"
28629  eval x=\"$x\"
28630  exec_prefix="$acl_save_exec_prefix"
28631  prefix="$acl_save_prefix"
28632
28633      if test "X$x" = "X$element"; then
28634        haveit=yes
28635        break
28636      fi
28637    done
28638    if test -z "$haveit"; then
28639      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
28640    fi
28641  done
28642
28643      fi
28644
28645
28646cat >>confdefs.h <<\_ACEOF
28647#define HAVE_GETTEXT 1
28648_ACEOF
28649
28650
28651cat >>confdefs.h <<\_ACEOF
28652#define HAVE_DCGETTEXT 1
28653_ACEOF
28654
28655    fi
28656
28657        POSUB=po
28658  fi
28659
28660
28661            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
28662      BUILD_INCLUDED_LIBINTL=yes
28663    fi
28664
28665
28666
28667
28668
28669        nls_cv_header_intl=
28670    nls_cv_header_libgt=
28671
28672        DATADIRNAME=share
28673
28674
28675        INSTOBJEXT=.mo
28676
28677
28678        GENCAT=gencat
28679
28680
28681        INTLOBJS=
28682    if test "$USE_INCLUDED_LIBINTL" = yes; then
28683      INTLOBJS="\$(GETTOBJS)"
28684    fi
28685
28686
28687        INTL_LIBTOOL_SUFFIX_PREFIX=l
28688
28689
28690
28691    INTLLIBS="$LIBINTL"
28692
28693
28694
28695
28696
28697
28698
28699
28700
28701
28702
28703
28704for ac_header in $gl_header_list
28705do
28706as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28708  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28711  echo $ECHO_N "(cached) $ECHO_C" >&6
28712fi
28713ac_res=`eval echo '${'$as_ac_Header'}'`
28714	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28715echo "${ECHO_T}$ac_res" >&6; }
28716else
28717  # Is the header compilable?
28718{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28719echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28720cat >conftest.$ac_ext <<_ACEOF
28721/* confdefs.h.  */
28722_ACEOF
28723cat confdefs.h >>conftest.$ac_ext
28724cat >>conftest.$ac_ext <<_ACEOF
28725/* end confdefs.h.  */
28726$ac_includes_default
28727#include <$ac_header>
28728_ACEOF
28729rm -f conftest.$ac_objext
28730if { (ac_try="$ac_compile"
28731case "(($ac_try" in
28732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28733  *) ac_try_echo=$ac_try;;
28734esac
28735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28736  (eval "$ac_compile") 2>conftest.er1
28737  ac_status=$?
28738  grep -v '^ *+' conftest.er1 >conftest.err
28739  rm -f conftest.er1
28740  cat conftest.err >&5
28741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742  (exit $ac_status); } && {
28743	 test -z "$ac_c_werror_flag" ||
28744	 test ! -s conftest.err
28745       } && test -s conftest.$ac_objext; then
28746  ac_header_compiler=yes
28747else
28748  echo "$as_me: failed program was:" >&5
28749sed 's/^/| /' conftest.$ac_ext >&5
28750
28751	ac_header_compiler=no
28752fi
28753
28754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28755{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28756echo "${ECHO_T}$ac_header_compiler" >&6; }
28757
28758# Is the header present?
28759{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28760echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28761cat >conftest.$ac_ext <<_ACEOF
28762/* confdefs.h.  */
28763_ACEOF
28764cat confdefs.h >>conftest.$ac_ext
28765cat >>conftest.$ac_ext <<_ACEOF
28766/* end confdefs.h.  */
28767#include <$ac_header>
28768_ACEOF
28769if { (ac_try="$ac_cpp conftest.$ac_ext"
28770case "(($ac_try" in
28771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28772  *) ac_try_echo=$ac_try;;
28773esac
28774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28775  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28776  ac_status=$?
28777  grep -v '^ *+' conftest.er1 >conftest.err
28778  rm -f conftest.er1
28779  cat conftest.err >&5
28780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781  (exit $ac_status); } >/dev/null && {
28782	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28783	 test ! -s conftest.err
28784       }; then
28785  ac_header_preproc=yes
28786else
28787  echo "$as_me: failed program was:" >&5
28788sed 's/^/| /' conftest.$ac_ext >&5
28789
28790  ac_header_preproc=no
28791fi
28792
28793rm -f conftest.err conftest.$ac_ext
28794{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28795echo "${ECHO_T}$ac_header_preproc" >&6; }
28796
28797# So?  What about this header?
28798case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28799  yes:no: )
28800    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28801echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28802    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28803echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28804    ac_header_preproc=yes
28805    ;;
28806  no:yes:* )
28807    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28808echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28809    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28810echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28811    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28812echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28813    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28814echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28815    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28816echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28817    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28818echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28819
28820    ;;
28821esac
28822{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28825  echo $ECHO_N "(cached) $ECHO_C" >&6
28826else
28827  eval "$as_ac_Header=\$ac_header_preproc"
28828fi
28829ac_res=`eval echo '${'$as_ac_Header'}'`
28830	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28831echo "${ECHO_T}$ac_res" >&6; }
28832
28833fi
28834if test `eval echo '${'$as_ac_Header'}'` = yes; then
28835  cat >>confdefs.h <<_ACEOF
28836#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28837_ACEOF
28838
28839fi
28840
28841done
28842
28843
28844
28845
28846
28847
28848
28849
28850
28851
28852
28853
28854
28855
28856for ac_header in stdlib.h
28857do
28858as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28860  { echo "$as_me:$LINENO: checking for $ac_header" >&5
28861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28863  echo $ECHO_N "(cached) $ECHO_C" >&6
28864fi
28865ac_res=`eval echo '${'$as_ac_Header'}'`
28866	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28867echo "${ECHO_T}$ac_res" >&6; }
28868else
28869  # Is the header compilable?
28870{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28871echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28872cat >conftest.$ac_ext <<_ACEOF
28873/* confdefs.h.  */
28874_ACEOF
28875cat confdefs.h >>conftest.$ac_ext
28876cat >>conftest.$ac_ext <<_ACEOF
28877/* end confdefs.h.  */
28878$ac_includes_default
28879#include <$ac_header>
28880_ACEOF
28881rm -f conftest.$ac_objext
28882if { (ac_try="$ac_compile"
28883case "(($ac_try" in
28884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28885  *) ac_try_echo=$ac_try;;
28886esac
28887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28888  (eval "$ac_compile") 2>conftest.er1
28889  ac_status=$?
28890  grep -v '^ *+' conftest.er1 >conftest.err
28891  rm -f conftest.er1
28892  cat conftest.err >&5
28893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894  (exit $ac_status); } && {
28895	 test -z "$ac_c_werror_flag" ||
28896	 test ! -s conftest.err
28897       } && test -s conftest.$ac_objext; then
28898  ac_header_compiler=yes
28899else
28900  echo "$as_me: failed program was:" >&5
28901sed 's/^/| /' conftest.$ac_ext >&5
28902
28903	ac_header_compiler=no
28904fi
28905
28906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28907{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28908echo "${ECHO_T}$ac_header_compiler" >&6; }
28909
28910# Is the header present?
28911{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28912echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28913cat >conftest.$ac_ext <<_ACEOF
28914/* confdefs.h.  */
28915_ACEOF
28916cat confdefs.h >>conftest.$ac_ext
28917cat >>conftest.$ac_ext <<_ACEOF
28918/* end confdefs.h.  */
28919#include <$ac_header>
28920_ACEOF
28921if { (ac_try="$ac_cpp conftest.$ac_ext"
28922case "(($ac_try" in
28923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924  *) ac_try_echo=$ac_try;;
28925esac
28926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28928  ac_status=$?
28929  grep -v '^ *+' conftest.er1 >conftest.err
28930  rm -f conftest.er1
28931  cat conftest.err >&5
28932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933  (exit $ac_status); } >/dev/null && {
28934	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28935	 test ! -s conftest.err
28936       }; then
28937  ac_header_preproc=yes
28938else
28939  echo "$as_me: failed program was:" >&5
28940sed 's/^/| /' conftest.$ac_ext >&5
28941
28942  ac_header_preproc=no
28943fi
28944
28945rm -f conftest.err conftest.$ac_ext
28946{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28947echo "${ECHO_T}$ac_header_preproc" >&6; }
28948
28949# So?  What about this header?
28950case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28951  yes:no: )
28952    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28953echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28954    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28955echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28956    ac_header_preproc=yes
28957    ;;
28958  no:yes:* )
28959    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28960echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28961    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28962echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28963    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28964echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28965    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28966echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28967    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28968echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28969    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28970echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28971
28972    ;;
28973esac
28974{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28977  echo $ECHO_N "(cached) $ECHO_C" >&6
28978else
28979  eval "$as_ac_Header=\$ac_header_preproc"
28980fi
28981ac_res=`eval echo '${'$as_ac_Header'}'`
28982	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28983echo "${ECHO_T}$ac_res" >&6; }
28984
28985fi
28986if test `eval echo '${'$as_ac_Header'}'` = yes; then
28987  cat >>confdefs.h <<_ACEOF
28988#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28989_ACEOF
28990
28991fi
28992
28993done
28994
28995{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
28996echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
28997if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
28998  echo $ECHO_N "(cached) $ECHO_C" >&6
28999else
29000  if test "$cross_compiling" = yes; then
29001  ac_cv_func_malloc_0_nonnull=no
29002else
29003  cat >conftest.$ac_ext <<_ACEOF
29004/* confdefs.h.  */
29005_ACEOF
29006cat confdefs.h >>conftest.$ac_ext
29007cat >>conftest.$ac_ext <<_ACEOF
29008/* end confdefs.h.  */
29009#if defined STDC_HEADERS || defined HAVE_STDLIB_H
29010# include <stdlib.h>
29011#else
29012char *malloc ();
29013#endif
29014
29015int
29016main ()
29017{
29018return ! malloc (0);
29019  ;
29020  return 0;
29021}
29022_ACEOF
29023rm -f conftest$ac_exeext
29024if { (ac_try="$ac_link"
29025case "(($ac_try" in
29026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29027  *) ac_try_echo=$ac_try;;
29028esac
29029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29030  (eval "$ac_link") 2>&5
29031  ac_status=$?
29032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29034  { (case "(($ac_try" in
29035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29036  *) ac_try_echo=$ac_try;;
29037esac
29038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29039  (eval "$ac_try") 2>&5
29040  ac_status=$?
29041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042  (exit $ac_status); }; }; then
29043  ac_cv_func_malloc_0_nonnull=yes
29044else
29045  echo "$as_me: program exited with status $ac_status" >&5
29046echo "$as_me: failed program was:" >&5
29047sed 's/^/| /' conftest.$ac_ext >&5
29048
29049( exit $ac_status )
29050ac_cv_func_malloc_0_nonnull=no
29051fi
29052rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29053fi
29054
29055
29056fi
29057{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
29058echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
29059if test $ac_cv_func_malloc_0_nonnull = yes; then
29060  gl_cv_func_malloc_0_nonnull=1
29061else
29062  gl_cv_func_malloc_0_nonnull=0
29063fi
29064
29065
29066
29067cat >>confdefs.h <<_ACEOF
29068#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
29069_ACEOF
29070
29071
29072
29073
29074
29075
29076
29077
29078
29079
29080
29081
29082
29083
29084{ echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
29085echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
29086if test "${ac_cv_have_decl_strerror_r+set}" = set; then
29087  echo $ECHO_N "(cached) $ECHO_C" >&6
29088else
29089  cat >conftest.$ac_ext <<_ACEOF
29090/* confdefs.h.  */
29091_ACEOF
29092cat confdefs.h >>conftest.$ac_ext
29093cat >>conftest.$ac_ext <<_ACEOF
29094/* end confdefs.h.  */
29095$ac_includes_default
29096int
29097main ()
29098{
29099#ifndef strerror_r
29100  (void) strerror_r;
29101#endif
29102
29103  ;
29104  return 0;
29105}
29106_ACEOF
29107rm -f conftest.$ac_objext
29108if { (ac_try="$ac_compile"
29109case "(($ac_try" in
29110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111  *) ac_try_echo=$ac_try;;
29112esac
29113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29114  (eval "$ac_compile") 2>conftest.er1
29115  ac_status=$?
29116  grep -v '^ *+' conftest.er1 >conftest.err
29117  rm -f conftest.er1
29118  cat conftest.err >&5
29119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120  (exit $ac_status); } && {
29121	 test -z "$ac_c_werror_flag" ||
29122	 test ! -s conftest.err
29123       } && test -s conftest.$ac_objext; then
29124  ac_cv_have_decl_strerror_r=yes
29125else
29126  echo "$as_me: failed program was:" >&5
29127sed 's/^/| /' conftest.$ac_ext >&5
29128
29129	ac_cv_have_decl_strerror_r=no
29130fi
29131
29132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29133fi
29134{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
29135echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
29136if test $ac_cv_have_decl_strerror_r = yes; then
29137
29138cat >>confdefs.h <<_ACEOF
29139#define HAVE_DECL_STRERROR_R 1
29140_ACEOF
29141
29142
29143else
29144  cat >>confdefs.h <<_ACEOF
29145#define HAVE_DECL_STRERROR_R 0
29146_ACEOF
29147
29148
29149fi
29150
29151
29152
29153for ac_func in strerror_r
29154do
29155as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29156{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29157echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29158if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29159  echo $ECHO_N "(cached) $ECHO_C" >&6
29160else
29161  cat >conftest.$ac_ext <<_ACEOF
29162/* confdefs.h.  */
29163_ACEOF
29164cat confdefs.h >>conftest.$ac_ext
29165cat >>conftest.$ac_ext <<_ACEOF
29166/* end confdefs.h.  */
29167/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29168   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29169#define $ac_func innocuous_$ac_func
29170
29171/* System header to define __stub macros and hopefully few prototypes,
29172    which can conflict with char $ac_func (); below.
29173    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29174    <limits.h> exists even on freestanding compilers.  */
29175
29176#ifdef __STDC__
29177# include <limits.h>
29178#else
29179# include <assert.h>
29180#endif
29181
29182#undef $ac_func
29183
29184/* Override any GCC internal prototype to avoid an error.
29185   Use char because int might match the return type of a GCC
29186   builtin and then its argument prototype would still apply.  */
29187#ifdef __cplusplus
29188extern "C"
29189#endif
29190char $ac_func ();
29191/* The GNU C library defines this for functions which it implements
29192    to always fail with ENOSYS.  Some functions are actually named
29193    something starting with __ and the normal name is an alias.  */
29194#if defined __stub_$ac_func || defined __stub___$ac_func
29195choke me
29196#endif
29197
29198int
29199main ()
29200{
29201return $ac_func ();
29202  ;
29203  return 0;
29204}
29205_ACEOF
29206rm -f conftest.$ac_objext conftest$ac_exeext
29207if { (ac_try="$ac_link"
29208case "(($ac_try" in
29209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29210  *) ac_try_echo=$ac_try;;
29211esac
29212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29213  (eval "$ac_link") 2>conftest.er1
29214  ac_status=$?
29215  grep -v '^ *+' conftest.er1 >conftest.err
29216  rm -f conftest.er1
29217  cat conftest.err >&5
29218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219  (exit $ac_status); } && {
29220	 test -z "$ac_c_werror_flag" ||
29221	 test ! -s conftest.err
29222       } && test -s conftest$ac_exeext &&
29223       $as_test_x conftest$ac_exeext; then
29224  eval "$as_ac_var=yes"
29225else
29226  echo "$as_me: failed program was:" >&5
29227sed 's/^/| /' conftest.$ac_ext >&5
29228
29229	eval "$as_ac_var=no"
29230fi
29231
29232rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29233      conftest$ac_exeext conftest.$ac_ext
29234fi
29235ac_res=`eval echo '${'$as_ac_var'}'`
29236	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29237echo "${ECHO_T}$ac_res" >&6; }
29238if test `eval echo '${'$as_ac_var'}'` = yes; then
29239  cat >>confdefs.h <<_ACEOF
29240#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29241_ACEOF
29242
29243fi
29244done
29245
29246{ echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
29247echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
29248if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
29249  echo $ECHO_N "(cached) $ECHO_C" >&6
29250else
29251
29252    ac_cv_func_strerror_r_char_p=no
29253    if test $ac_cv_have_decl_strerror_r = yes; then
29254      cat >conftest.$ac_ext <<_ACEOF
29255/* confdefs.h.  */
29256_ACEOF
29257cat confdefs.h >>conftest.$ac_ext
29258cat >>conftest.$ac_ext <<_ACEOF
29259/* end confdefs.h.  */
29260$ac_includes_default
29261int
29262main ()
29263{
29264
29265	  char buf[100];
29266	  char x = *strerror_r (0, buf, sizeof buf);
29267	  char *p = strerror_r (0, buf, sizeof buf);
29268	  return !p || x;
29269
29270  ;
29271  return 0;
29272}
29273_ACEOF
29274rm -f conftest.$ac_objext
29275if { (ac_try="$ac_compile"
29276case "(($ac_try" in
29277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278  *) ac_try_echo=$ac_try;;
29279esac
29280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29281  (eval "$ac_compile") 2>conftest.er1
29282  ac_status=$?
29283  grep -v '^ *+' conftest.er1 >conftest.err
29284  rm -f conftest.er1
29285  cat conftest.err >&5
29286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287  (exit $ac_status); } && {
29288	 test -z "$ac_c_werror_flag" ||
29289	 test ! -s conftest.err
29290       } && test -s conftest.$ac_objext; then
29291  ac_cv_func_strerror_r_char_p=yes
29292else
29293  echo "$as_me: failed program was:" >&5
29294sed 's/^/| /' conftest.$ac_ext >&5
29295
29296
29297fi
29298
29299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29300    else
29301      # strerror_r is not declared.  Choose between
29302      # systems that have relatively inaccessible declarations for the
29303      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
29304      # former has a strerror_r that returns char*, while the latter
29305      # has a strerror_r that returns `int'.
29306      # This test should segfault on the DEC system.
29307      if test "$cross_compiling" = yes; then
29308  :
29309else
29310  cat >conftest.$ac_ext <<_ACEOF
29311/* confdefs.h.  */
29312_ACEOF
29313cat confdefs.h >>conftest.$ac_ext
29314cat >>conftest.$ac_ext <<_ACEOF
29315/* end confdefs.h.  */
29316$ac_includes_default
29317	extern char *strerror_r ();
29318int
29319main ()
29320{
29321char buf[100];
29322	  char x = *strerror_r (0, buf, sizeof buf);
29323	  return ! isalpha (x);
29324  ;
29325  return 0;
29326}
29327_ACEOF
29328rm -f conftest$ac_exeext
29329if { (ac_try="$ac_link"
29330case "(($ac_try" in
29331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29332  *) ac_try_echo=$ac_try;;
29333esac
29334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29335  (eval "$ac_link") 2>&5
29336  ac_status=$?
29337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29339  { (case "(($ac_try" in
29340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29341  *) ac_try_echo=$ac_try;;
29342esac
29343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29344  (eval "$ac_try") 2>&5
29345  ac_status=$?
29346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347  (exit $ac_status); }; }; then
29348  ac_cv_func_strerror_r_char_p=yes
29349else
29350  echo "$as_me: program exited with status $ac_status" >&5
29351echo "$as_me: failed program was:" >&5
29352sed 's/^/| /' conftest.$ac_ext >&5
29353
29354fi
29355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29356fi
29357
29358
29359    fi
29360
29361fi
29362{ echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
29363echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
29364if test $ac_cv_func_strerror_r_char_p = yes; then
29365
29366cat >>confdefs.h <<\_ACEOF
29367#define STRERROR_R_CHAR_P 1
29368_ACEOF
29369
29370fi
29371
29372
29373  if test -z "$GETOPT_H"; then
29374
29375for ac_header in getopt.h
29376do
29377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29379  { echo "$as_me:$LINENO: checking for $ac_header" >&5
29380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29382  echo $ECHO_N "(cached) $ECHO_C" >&6
29383fi
29384ac_res=`eval echo '${'$as_ac_Header'}'`
29385	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29386echo "${ECHO_T}$ac_res" >&6; }
29387else
29388  # Is the header compilable?
29389{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29391cat >conftest.$ac_ext <<_ACEOF
29392/* confdefs.h.  */
29393_ACEOF
29394cat confdefs.h >>conftest.$ac_ext
29395cat >>conftest.$ac_ext <<_ACEOF
29396/* end confdefs.h.  */
29397$ac_includes_default
29398#include <$ac_header>
29399_ACEOF
29400rm -f conftest.$ac_objext
29401if { (ac_try="$ac_compile"
29402case "(($ac_try" in
29403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29404  *) ac_try_echo=$ac_try;;
29405esac
29406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29407  (eval "$ac_compile") 2>conftest.er1
29408  ac_status=$?
29409  grep -v '^ *+' conftest.er1 >conftest.err
29410  rm -f conftest.er1
29411  cat conftest.err >&5
29412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413  (exit $ac_status); } && {
29414	 test -z "$ac_c_werror_flag" ||
29415	 test ! -s conftest.err
29416       } && test -s conftest.$ac_objext; then
29417  ac_header_compiler=yes
29418else
29419  echo "$as_me: failed program was:" >&5
29420sed 's/^/| /' conftest.$ac_ext >&5
29421
29422	ac_header_compiler=no
29423fi
29424
29425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29426{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29427echo "${ECHO_T}$ac_header_compiler" >&6; }
29428
29429# Is the header present?
29430{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29431echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29432cat >conftest.$ac_ext <<_ACEOF
29433/* confdefs.h.  */
29434_ACEOF
29435cat confdefs.h >>conftest.$ac_ext
29436cat >>conftest.$ac_ext <<_ACEOF
29437/* end confdefs.h.  */
29438#include <$ac_header>
29439_ACEOF
29440if { (ac_try="$ac_cpp conftest.$ac_ext"
29441case "(($ac_try" in
29442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443  *) ac_try_echo=$ac_try;;
29444esac
29445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29447  ac_status=$?
29448  grep -v '^ *+' conftest.er1 >conftest.err
29449  rm -f conftest.er1
29450  cat conftest.err >&5
29451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29452  (exit $ac_status); } >/dev/null && {
29453	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29454	 test ! -s conftest.err
29455       }; then
29456  ac_header_preproc=yes
29457else
29458  echo "$as_me: failed program was:" >&5
29459sed 's/^/| /' conftest.$ac_ext >&5
29460
29461  ac_header_preproc=no
29462fi
29463
29464rm -f conftest.err conftest.$ac_ext
29465{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29466echo "${ECHO_T}$ac_header_preproc" >&6; }
29467
29468# So?  What about this header?
29469case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29470  yes:no: )
29471    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29472echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29473    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29474echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29475    ac_header_preproc=yes
29476    ;;
29477  no:yes:* )
29478    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29479echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29480    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29481echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29482    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29483echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29484    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29485echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29486    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29487echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29488    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29489echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29490
29491    ;;
29492esac
29493{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29496  echo $ECHO_N "(cached) $ECHO_C" >&6
29497else
29498  eval "$as_ac_Header=\$ac_header_preproc"
29499fi
29500ac_res=`eval echo '${'$as_ac_Header'}'`
29501	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29502echo "${ECHO_T}$ac_res" >&6; }
29503
29504fi
29505if test `eval echo '${'$as_ac_Header'}'` = yes; then
29506  cat >>confdefs.h <<_ACEOF
29507#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29508_ACEOF
29509
29510else
29511  GETOPT_H=getopt.h
29512fi
29513
29514done
29515
29516  fi
29517
29518  if test -z "$GETOPT_H"; then
29519
29520for ac_func in getopt_long_only
29521do
29522as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29523{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29524echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29525if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29526  echo $ECHO_N "(cached) $ECHO_C" >&6
29527else
29528  cat >conftest.$ac_ext <<_ACEOF
29529/* confdefs.h.  */
29530_ACEOF
29531cat confdefs.h >>conftest.$ac_ext
29532cat >>conftest.$ac_ext <<_ACEOF
29533/* end confdefs.h.  */
29534/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29535   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29536#define $ac_func innocuous_$ac_func
29537
29538/* System header to define __stub macros and hopefully few prototypes,
29539    which can conflict with char $ac_func (); below.
29540    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29541    <limits.h> exists even on freestanding compilers.  */
29542
29543#ifdef __STDC__
29544# include <limits.h>
29545#else
29546# include <assert.h>
29547#endif
29548
29549#undef $ac_func
29550
29551/* Override any GCC internal prototype to avoid an error.
29552   Use char because int might match the return type of a GCC
29553   builtin and then its argument prototype would still apply.  */
29554#ifdef __cplusplus
29555extern "C"
29556#endif
29557char $ac_func ();
29558/* The GNU C library defines this for functions which it implements
29559    to always fail with ENOSYS.  Some functions are actually named
29560    something starting with __ and the normal name is an alias.  */
29561#if defined __stub_$ac_func || defined __stub___$ac_func
29562choke me
29563#endif
29564
29565int
29566main ()
29567{
29568return $ac_func ();
29569  ;
29570  return 0;
29571}
29572_ACEOF
29573rm -f conftest.$ac_objext conftest$ac_exeext
29574if { (ac_try="$ac_link"
29575case "(($ac_try" in
29576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29577  *) ac_try_echo=$ac_try;;
29578esac
29579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29580  (eval "$ac_link") 2>conftest.er1
29581  ac_status=$?
29582  grep -v '^ *+' conftest.er1 >conftest.err
29583  rm -f conftest.er1
29584  cat conftest.err >&5
29585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586  (exit $ac_status); } && {
29587	 test -z "$ac_c_werror_flag" ||
29588	 test ! -s conftest.err
29589       } && test -s conftest$ac_exeext &&
29590       $as_test_x conftest$ac_exeext; then
29591  eval "$as_ac_var=yes"
29592else
29593  echo "$as_me: failed program was:" >&5
29594sed 's/^/| /' conftest.$ac_ext >&5
29595
29596	eval "$as_ac_var=no"
29597fi
29598
29599rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29600      conftest$ac_exeext conftest.$ac_ext
29601fi
29602ac_res=`eval echo '${'$as_ac_var'}'`
29603	       { echo "$as_me:$LINENO: result: $ac_res" >&5
29604echo "${ECHO_T}$ac_res" >&6; }
29605if test `eval echo '${'$as_ac_var'}'` = yes; then
29606  cat >>confdefs.h <<_ACEOF
29607#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29608_ACEOF
29609
29610else
29611  GETOPT_H=getopt.h
29612fi
29613done
29614
29615  fi
29616
29617      if test -z "$GETOPT_H"; then
29618    { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
29619echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
29620if test "${ac_cv_have_decl_optreset+set}" = set; then
29621  echo $ECHO_N "(cached) $ECHO_C" >&6
29622else
29623  cat >conftest.$ac_ext <<_ACEOF
29624/* confdefs.h.  */
29625_ACEOF
29626cat confdefs.h >>conftest.$ac_ext
29627cat >>conftest.$ac_ext <<_ACEOF
29628/* end confdefs.h.  */
29629#include <getopt.h>
29630
29631int
29632main ()
29633{
29634#ifndef optreset
29635  (void) optreset;
29636#endif
29637
29638  ;
29639  return 0;
29640}
29641_ACEOF
29642rm -f conftest.$ac_objext
29643if { (ac_try="$ac_compile"
29644case "(($ac_try" in
29645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29646  *) ac_try_echo=$ac_try;;
29647esac
29648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29649  (eval "$ac_compile") 2>conftest.er1
29650  ac_status=$?
29651  grep -v '^ *+' conftest.er1 >conftest.err
29652  rm -f conftest.er1
29653  cat conftest.err >&5
29654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29655  (exit $ac_status); } && {
29656	 test -z "$ac_c_werror_flag" ||
29657	 test ! -s conftest.err
29658       } && test -s conftest.$ac_objext; then
29659  ac_cv_have_decl_optreset=yes
29660else
29661  echo "$as_me: failed program was:" >&5
29662sed 's/^/| /' conftest.$ac_ext >&5
29663
29664	ac_cv_have_decl_optreset=no
29665fi
29666
29667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29668fi
29669{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
29670echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
29671if test $ac_cv_have_decl_optreset = yes; then
29672  GETOPT_H=getopt.h
29673fi
29674
29675  fi
29676
29677      if test -z "$GETOPT_H"; then
29678    { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
29679echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
29680if test "${gl_cv_func_gnu_getopt+set}" = set; then
29681  echo $ECHO_N "(cached) $ECHO_C" >&6
29682else
29683  if test "$cross_compiling" = yes; then
29684  	 	 	 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
29685echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
29686if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
29687  echo $ECHO_N "(cached) $ECHO_C" >&6
29688else
29689  cat >conftest.$ac_ext <<_ACEOF
29690/* confdefs.h.  */
29691_ACEOF
29692cat confdefs.h >>conftest.$ac_ext
29693cat >>conftest.$ac_ext <<_ACEOF
29694/* end confdefs.h.  */
29695#include <getopt.h>
29696
29697int
29698main ()
29699{
29700#ifndef getopt_clip
29701  (void) getopt_clip;
29702#endif
29703
29704  ;
29705  return 0;
29706}
29707_ACEOF
29708rm -f conftest.$ac_objext
29709if { (ac_try="$ac_compile"
29710case "(($ac_try" in
29711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29712  *) ac_try_echo=$ac_try;;
29713esac
29714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29715  (eval "$ac_compile") 2>conftest.er1
29716  ac_status=$?
29717  grep -v '^ *+' conftest.er1 >conftest.err
29718  rm -f conftest.er1
29719  cat conftest.err >&5
29720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29721  (exit $ac_status); } && {
29722	 test -z "$ac_c_werror_flag" ||
29723	 test ! -s conftest.err
29724       } && test -s conftest.$ac_objext; then
29725  ac_cv_have_decl_getopt_clip=yes
29726else
29727  echo "$as_me: failed program was:" >&5
29728sed 's/^/| /' conftest.$ac_ext >&5
29729
29730	ac_cv_have_decl_getopt_clip=no
29731fi
29732
29733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29734fi
29735{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
29736echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
29737if test $ac_cv_have_decl_getopt_clip = yes; then
29738  gl_cv_func_gnu_getopt=no
29739else
29740  gl_cv_func_gnu_getopt=yes
29741fi
29742
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#include <getopt.h>
29751int
29752main ()
29753{
29754
29755	     char *myargv[3];
29756	     myargv[0] = "conftest";
29757	     myargv[1] = "-+";
29758	     myargv[2] = 0;
29759	     return getopt (2, myargv, "+a") != '?';
29760
29761  ;
29762  return 0;
29763}
29764_ACEOF
29765rm -f conftest$ac_exeext
29766if { (ac_try="$ac_link"
29767case "(($ac_try" in
29768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29769  *) ac_try_echo=$ac_try;;
29770esac
29771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29772  (eval "$ac_link") 2>&5
29773  ac_status=$?
29774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29776  { (case "(($ac_try" in
29777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29778  *) ac_try_echo=$ac_try;;
29779esac
29780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29781  (eval "$ac_try") 2>&5
29782  ac_status=$?
29783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784  (exit $ac_status); }; }; then
29785  gl_cv_func_gnu_getopt=yes
29786else
29787  echo "$as_me: program exited with status $ac_status" >&5
29788echo "$as_me: failed program was:" >&5
29789sed 's/^/| /' conftest.$ac_ext >&5
29790
29791( exit $ac_status )
29792gl_cv_func_gnu_getopt=no
29793fi
29794rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29795fi
29796
29797
29798fi
29799{ echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
29800echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
29801    if test "$gl_cv_func_gnu_getopt" = "no"; then
29802      GETOPT_H=getopt.h
29803    fi
29804  fi
29805
29806
29807      { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
29808echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
29809if test "${ac_cv_have_decl_getenv+set}" = set; then
29810  echo $ECHO_N "(cached) $ECHO_C" >&6
29811else
29812  cat >conftest.$ac_ext <<_ACEOF
29813/* confdefs.h.  */
29814_ACEOF
29815cat confdefs.h >>conftest.$ac_ext
29816cat >>conftest.$ac_ext <<_ACEOF
29817/* end confdefs.h.  */
29818$ac_includes_default
29819int
29820main ()
29821{
29822#ifndef getenv
29823  (void) getenv;
29824#endif
29825
29826  ;
29827  return 0;
29828}
29829_ACEOF
29830rm -f conftest.$ac_objext
29831if { (ac_try="$ac_compile"
29832case "(($ac_try" in
29833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29834  *) ac_try_echo=$ac_try;;
29835esac
29836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29837  (eval "$ac_compile") 2>conftest.er1
29838  ac_status=$?
29839  grep -v '^ *+' conftest.er1 >conftest.err
29840  rm -f conftest.er1
29841  cat conftest.err >&5
29842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29843  (exit $ac_status); } && {
29844	 test -z "$ac_c_werror_flag" ||
29845	 test ! -s conftest.err
29846       } && test -s conftest.$ac_objext; then
29847  ac_cv_have_decl_getenv=yes
29848else
29849  echo "$as_me: failed program was:" >&5
29850sed 's/^/| /' conftest.$ac_ext >&5
29851
29852	ac_cv_have_decl_getenv=no
29853fi
29854
29855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29856fi
29857{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
29858echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
29859if test $ac_cv_have_decl_getenv = yes; then
29860
29861cat >>confdefs.h <<_ACEOF
29862#define HAVE_DECL_GETENV 1
29863_ACEOF
29864
29865
29866else
29867  cat >>confdefs.h <<_ACEOF
29868#define HAVE_DECL_GETENV 0
29869_ACEOF
29870
29871
29872fi
29873
29874
29875
29876
29877      { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
29878echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
29879if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
29880  echo $ECHO_N "(cached) $ECHO_C" >&6
29881else
29882  cat >conftest.$ac_ext <<_ACEOF
29883/* confdefs.h.  */
29884_ACEOF
29885cat confdefs.h >>conftest.$ac_ext
29886cat >>conftest.$ac_ext <<_ACEOF
29887/* end confdefs.h.  */
29888$ac_includes_default
29889int
29890main ()
29891{
29892#ifndef getc_unlocked
29893  (void) getc_unlocked;
29894#endif
29895
29896  ;
29897  return 0;
29898}
29899_ACEOF
29900rm -f conftest.$ac_objext
29901if { (ac_try="$ac_compile"
29902case "(($ac_try" in
29903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29904  *) ac_try_echo=$ac_try;;
29905esac
29906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29907  (eval "$ac_compile") 2>conftest.er1
29908  ac_status=$?
29909  grep -v '^ *+' conftest.er1 >conftest.err
29910  rm -f conftest.er1
29911  cat conftest.err >&5
29912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913  (exit $ac_status); } && {
29914	 test -z "$ac_c_werror_flag" ||
29915	 test ! -s conftest.err
29916       } && test -s conftest.$ac_objext; then
29917  ac_cv_have_decl_getc_unlocked=yes
29918else
29919  echo "$as_me: failed program was:" >&5
29920sed 's/^/| /' conftest.$ac_ext >&5
29921
29922	ac_cv_have_decl_getc_unlocked=no
29923fi
29924
29925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29926fi
29927{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
29928echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
29929if test $ac_cv_have_decl_getc_unlocked = yes; then
29930
29931cat >>confdefs.h <<_ACEOF
29932#define HAVE_DECL_GETC_UNLOCKED 1
29933_ACEOF
29934
29935
29936else
29937  cat >>confdefs.h <<_ACEOF
29938#define HAVE_DECL_GETC_UNLOCKED 0
29939_ACEOF
29940
29941
29942fi
29943
29944
29945
29946
29947
29948
29949
29950
29951
29952
29953
29954
29955
29956
29957
29958{ echo "$as_me:$LINENO: checking for mbstate_t" >&5
29959echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
29960if test "${ac_cv_type_mbstate_t+set}" = set; then
29961  echo $ECHO_N "(cached) $ECHO_C" >&6
29962else
29963  cat >conftest.$ac_ext <<_ACEOF
29964/* confdefs.h.  */
29965_ACEOF
29966cat confdefs.h >>conftest.$ac_ext
29967cat >>conftest.$ac_ext <<_ACEOF
29968/* end confdefs.h.  */
29969$ac_includes_default
29970#	    include <wchar.h>
29971int
29972main ()
29973{
29974mbstate_t x; return sizeof x;
29975  ;
29976  return 0;
29977}
29978_ACEOF
29979rm -f conftest.$ac_objext
29980if { (ac_try="$ac_compile"
29981case "(($ac_try" in
29982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29983  *) ac_try_echo=$ac_try;;
29984esac
29985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29986  (eval "$ac_compile") 2>conftest.er1
29987  ac_status=$?
29988  grep -v '^ *+' conftest.er1 >conftest.err
29989  rm -f conftest.er1
29990  cat conftest.err >&5
29991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29992  (exit $ac_status); } && {
29993	 test -z "$ac_c_werror_flag" ||
29994	 test ! -s conftest.err
29995       } && test -s conftest.$ac_objext; then
29996  ac_cv_type_mbstate_t=yes
29997else
29998  echo "$as_me: failed program was:" >&5
29999sed 's/^/| /' conftest.$ac_ext >&5
30000
30001	ac_cv_type_mbstate_t=no
30002fi
30003
30004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30005fi
30006{ echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
30007echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
30008   if test $ac_cv_type_mbstate_t = yes; then
30009
30010cat >>confdefs.h <<\_ACEOF
30011#define HAVE_MBSTATE_T 1
30012_ACEOF
30013
30014   else
30015
30016cat >>confdefs.h <<\_ACEOF
30017#define mbstate_t int
30018_ACEOF
30019
30020   fi
30021
30022    { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
30023echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; }
30024if test "${gl_cv_func_mbrtowc+set}" = set; then
30025  echo $ECHO_N "(cached) $ECHO_C" >&6
30026else
30027  cat >conftest.$ac_ext <<_ACEOF
30028/* confdefs.h.  */
30029_ACEOF
30030cat confdefs.h >>conftest.$ac_ext
30031cat >>conftest.$ac_ext <<_ACEOF
30032/* end confdefs.h.  */
30033#include <wchar.h>
30034int
30035main ()
30036{
30037wchar_t wc;
30038              char const s[] = "";
30039              size_t n = 1;
30040              mbstate_t state;
30041              return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
30042  ;
30043  return 0;
30044}
30045_ACEOF
30046rm -f conftest.$ac_objext conftest$ac_exeext
30047if { (ac_try="$ac_link"
30048case "(($ac_try" in
30049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050  *) ac_try_echo=$ac_try;;
30051esac
30052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30053  (eval "$ac_link") 2>conftest.er1
30054  ac_status=$?
30055  grep -v '^ *+' conftest.er1 >conftest.err
30056  rm -f conftest.er1
30057  cat conftest.err >&5
30058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059  (exit $ac_status); } && {
30060	 test -z "$ac_c_werror_flag" ||
30061	 test ! -s conftest.err
30062       } && test -s conftest$ac_exeext &&
30063       $as_test_x conftest$ac_exeext; then
30064  gl_cv_func_mbrtowc=yes
30065else
30066  echo "$as_me: failed program was:" >&5
30067sed 's/^/| /' conftest.$ac_ext >&5
30068
30069	gl_cv_func_mbrtowc=no
30070fi
30071
30072rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30073      conftest$ac_exeext conftest.$ac_ext
30074fi
30075{ echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
30076echo "${ECHO_T}$gl_cv_func_mbrtowc" >&6; }
30077  if test $gl_cv_func_mbrtowc = yes; then
30078
30079cat >>confdefs.h <<\_ACEOF
30080#define HAVE_MBRTOWC 1
30081_ACEOF
30082
30083  fi
30084
30085
30086                              { echo "$as_me:$LINENO: checking for shared library path variable" >&5
30087echo $ECHO_N "checking for shared library path variable... $ECHO_C" >&6; }
30088if test "${acl_cv_libpath+set}" = set; then
30089  echo $ECHO_N "(cached) $ECHO_C" >&6
30090else
30091
30092    LD="$LD" \
30093    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
30094    . ./conftest.sh
30095    rm -f ./conftest.sh
30096    acl_cv_libpath=${acl_cv_shlibpath_var:-none}
30097
30098fi
30099{ echo "$as_me:$LINENO: result: $acl_cv_libpath" >&5
30100echo "${ECHO_T}$acl_cv_libpath" >&6; }
30101  shlibpath_var="$acl_cv_shlibpath_var"
30102
30103
30104  { echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
30105echo $ECHO_N "checking whether to activate relocatable installation... $ECHO_C" >&6; }
30106  # Check whether --enable-relocatable was given.
30107if test "${enable_relocatable+set}" = set; then
30108  enableval=$enable_relocatable; if test "$enableval" != no; then
30109       RELOCATABLE=yes
30110     else
30111       RELOCATABLE=no
30112     fi
30113
30114else
30115  RELOCATABLE=no
30116fi
30117
30118
30119  { echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
30120echo "${ECHO_T}$RELOCATABLE" >&6; }
30121
30122
30123
30124    if test "X$prefix" = "XNONE"; then
30125    reloc_final_prefix="$ac_default_prefix"
30126  else
30127    reloc_final_prefix="$prefix"
30128  fi
30129
30130cat >>confdefs.h <<_ACEOF
30131#define INSTALLPREFIX "${reloc_final_prefix}"
30132_ACEOF
30133
30134
30135
30136
30137
30138
30139
30140
30141  is_noop=no
30142  use_elf_origin_trick=no
30143  if test $RELOCATABLE = yes; then
30144    # --enable-relocatable implies --disable-rpath
30145    enable_rpath=no
30146
30147cat >>confdefs.h <<\_ACEOF
30148#define ENABLE_RELOCATABLE 1
30149_ACEOF
30150
30151
30152
30153for ac_header in unistd.h mach-o/dyld.h
30154do
30155as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30157  { echo "$as_me:$LINENO: checking for $ac_header" >&5
30158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30160  echo $ECHO_N "(cached) $ECHO_C" >&6
30161fi
30162ac_res=`eval echo '${'$as_ac_Header'}'`
30163	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30164echo "${ECHO_T}$ac_res" >&6; }
30165else
30166  # Is the header compilable?
30167{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30168echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30169cat >conftest.$ac_ext <<_ACEOF
30170/* confdefs.h.  */
30171_ACEOF
30172cat confdefs.h >>conftest.$ac_ext
30173cat >>conftest.$ac_ext <<_ACEOF
30174/* end confdefs.h.  */
30175$ac_includes_default
30176#include <$ac_header>
30177_ACEOF
30178rm -f conftest.$ac_objext
30179if { (ac_try="$ac_compile"
30180case "(($ac_try" in
30181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30182  *) ac_try_echo=$ac_try;;
30183esac
30184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30185  (eval "$ac_compile") 2>conftest.er1
30186  ac_status=$?
30187  grep -v '^ *+' conftest.er1 >conftest.err
30188  rm -f conftest.er1
30189  cat conftest.err >&5
30190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191  (exit $ac_status); } && {
30192	 test -z "$ac_c_werror_flag" ||
30193	 test ! -s conftest.err
30194       } && test -s conftest.$ac_objext; then
30195  ac_header_compiler=yes
30196else
30197  echo "$as_me: failed program was:" >&5
30198sed 's/^/| /' conftest.$ac_ext >&5
30199
30200	ac_header_compiler=no
30201fi
30202
30203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30204{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30205echo "${ECHO_T}$ac_header_compiler" >&6; }
30206
30207# Is the header present?
30208{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30209echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30210cat >conftest.$ac_ext <<_ACEOF
30211/* confdefs.h.  */
30212_ACEOF
30213cat confdefs.h >>conftest.$ac_ext
30214cat >>conftest.$ac_ext <<_ACEOF
30215/* end confdefs.h.  */
30216#include <$ac_header>
30217_ACEOF
30218if { (ac_try="$ac_cpp conftest.$ac_ext"
30219case "(($ac_try" in
30220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30221  *) ac_try_echo=$ac_try;;
30222esac
30223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30224  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30225  ac_status=$?
30226  grep -v '^ *+' conftest.er1 >conftest.err
30227  rm -f conftest.er1
30228  cat conftest.err >&5
30229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230  (exit $ac_status); } >/dev/null && {
30231	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30232	 test ! -s conftest.err
30233       }; then
30234  ac_header_preproc=yes
30235else
30236  echo "$as_me: failed program was:" >&5
30237sed 's/^/| /' conftest.$ac_ext >&5
30238
30239  ac_header_preproc=no
30240fi
30241
30242rm -f conftest.err conftest.$ac_ext
30243{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30244echo "${ECHO_T}$ac_header_preproc" >&6; }
30245
30246# So?  What about this header?
30247case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30248  yes:no: )
30249    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30250echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30251    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30252echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30253    ac_header_preproc=yes
30254    ;;
30255  no:yes:* )
30256    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30257echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30258    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30259echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30260    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30261echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30262    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30263echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30264    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30265echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30266    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30267echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30268
30269    ;;
30270esac
30271{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30274  echo $ECHO_N "(cached) $ECHO_C" >&6
30275else
30276  eval "$as_ac_Header=\$ac_header_preproc"
30277fi
30278ac_res=`eval echo '${'$as_ac_Header'}'`
30279	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30280echo "${ECHO_T}$ac_res" >&6; }
30281
30282fi
30283if test `eval echo '${'$as_ac_Header'}'` = yes; then
30284  cat >>confdefs.h <<_ACEOF
30285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30286_ACEOF
30287
30288fi
30289
30290done
30291
30292
30293for ac_func in _NSGetExecutablePath
30294do
30295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30296{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30298if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30299  echo $ECHO_N "(cached) $ECHO_C" >&6
30300else
30301  cat >conftest.$ac_ext <<_ACEOF
30302/* confdefs.h.  */
30303_ACEOF
30304cat confdefs.h >>conftest.$ac_ext
30305cat >>conftest.$ac_ext <<_ACEOF
30306/* end confdefs.h.  */
30307/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30308   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30309#define $ac_func innocuous_$ac_func
30310
30311/* System header to define __stub macros and hopefully few prototypes,
30312    which can conflict with char $ac_func (); below.
30313    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30314    <limits.h> exists even on freestanding compilers.  */
30315
30316#ifdef __STDC__
30317# include <limits.h>
30318#else
30319# include <assert.h>
30320#endif
30321
30322#undef $ac_func
30323
30324/* Override any GCC internal prototype to avoid an error.
30325   Use char because int might match the return type of a GCC
30326   builtin and then its argument prototype would still apply.  */
30327#ifdef __cplusplus
30328extern "C"
30329#endif
30330char $ac_func ();
30331/* The GNU C library defines this for functions which it implements
30332    to always fail with ENOSYS.  Some functions are actually named
30333    something starting with __ and the normal name is an alias.  */
30334#if defined __stub_$ac_func || defined __stub___$ac_func
30335choke me
30336#endif
30337
30338int
30339main ()
30340{
30341return $ac_func ();
30342  ;
30343  return 0;
30344}
30345_ACEOF
30346rm -f conftest.$ac_objext conftest$ac_exeext
30347if { (ac_try="$ac_link"
30348case "(($ac_try" in
30349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350  *) ac_try_echo=$ac_try;;
30351esac
30352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353  (eval "$ac_link") 2>conftest.er1
30354  ac_status=$?
30355  grep -v '^ *+' conftest.er1 >conftest.err
30356  rm -f conftest.er1
30357  cat conftest.err >&5
30358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359  (exit $ac_status); } && {
30360	 test -z "$ac_c_werror_flag" ||
30361	 test ! -s conftest.err
30362       } && test -s conftest$ac_exeext &&
30363       $as_test_x conftest$ac_exeext; then
30364  eval "$as_ac_var=yes"
30365else
30366  echo "$as_me: failed program was:" >&5
30367sed 's/^/| /' conftest.$ac_ext >&5
30368
30369	eval "$as_ac_var=no"
30370fi
30371
30372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30373      conftest$ac_exeext conftest.$ac_ext
30374fi
30375ac_res=`eval echo '${'$as_ac_var'}'`
30376	       { echo "$as_me:$LINENO: result: $ac_res" >&5
30377echo "${ECHO_T}$ac_res" >&6; }
30378if test `eval echo '${'$as_ac_var'}'` = yes; then
30379  cat >>confdefs.h <<_ACEOF
30380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30381_ACEOF
30382
30383fi
30384done
30385
30386    case "$host_os" in
30387      mingw*) is_noop=yes ;;
30388      linux*) use_elf_origin_trick=yes ;;
30389    esac
30390    if test $is_noop = yes; then
30391      SET_RELOCATABLE="RELOCATABLE_LDFLAGS = :"
30392    else
30393      if test $use_elf_origin_trick = yes; then
30394                case "$ac_aux_dir" in
30395          /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
30396          *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
30397        esac
30398        SET_RELOCATABLE="RELOCATABLE_LDFLAGS = \"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
30399      else
30400                                        SET_RELOCATABLE="INSTALL_PROGRAM_ENV = RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
30401        case "$ac_aux_dir" in
30402          /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
30403          *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
30404        esac
30405      fi
30406    fi
30407  else
30408    SET_RELOCATABLE=
30409  fi
30410
30411   if test $is_noop = yes || test $use_elf_origin_trick = yes; then
30412  RELOCATABLE_VIA_LD_TRUE=
30413  RELOCATABLE_VIA_LD_FALSE='#'
30414else
30415  RELOCATABLE_VIA_LD_TRUE='#'
30416  RELOCATABLE_VIA_LD_FALSE=
30417fi
30418
30419
30420{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
30421echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
30422if test "${ac_cv_header_stdbool_h+set}" = set; then
30423  echo $ECHO_N "(cached) $ECHO_C" >&6
30424else
30425  cat >conftest.$ac_ext <<_ACEOF
30426/* confdefs.h.  */
30427_ACEOF
30428cat confdefs.h >>conftest.$ac_ext
30429cat >>conftest.$ac_ext <<_ACEOF
30430/* end confdefs.h.  */
30431
30432	  #include <stdbool.h>
30433	  #ifndef bool
30434	   "error: bool is not defined"
30435	  #endif
30436	  #ifndef false
30437	   "error: false is not defined"
30438	  #endif
30439	  #if false
30440	   "error: false is not 0"
30441	  #endif
30442	  #ifndef true
30443	   "error: true is not defined"
30444	  #endif
30445	  #if true != 1
30446	   "error: true is not 1"
30447	  #endif
30448	  #ifndef __bool_true_false_are_defined
30449	   "error: __bool_true_false_are_defined is not defined"
30450	  #endif
30451
30452	  struct s { _Bool s: 1; _Bool t; } s;
30453
30454	  char a[true == 1 ? 1 : -1];
30455	  char b[false == 0 ? 1 : -1];
30456	  char c[__bool_true_false_are_defined == 1 ? 1 : -1];
30457	  char d[(bool) 0.5 == true ? 1 : -1];
30458	  bool e = &s;
30459	  char f[(_Bool) 0.0 == false ? 1 : -1];
30460	  char g[true];
30461	  char h[sizeof (_Bool)];
30462	  char i[sizeof s.t];
30463	  enum { j = false, k = true, l = false * true, m = true * 256 };
30464	  _Bool n[m];
30465	  char o[sizeof n == m * sizeof n[0] ? 1 : -1];
30466	  char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
30467	  #if defined __xlc__ || defined __GNUC__
30468	   /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
30469	      reported by James Lemley on 2005-10-05; see
30470	      http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
30471	      This test is not quite right, since xlc is allowed to
30472	      reject this program, as the initializer for xlcbug is
30473	      not one of the forms that C requires support for.
30474	      However, doing the test right would require a run-time
30475	      test, and that would make cross-compilation harder.
30476	      Let us hope that IBM fixes the xlc bug, and also adds
30477	      support for this kind of constant expression.  In the
30478	      meantime, this test will reject xlc, which is OK, since
30479	      our stdbool.h substitute should suffice.  We also test
30480	      this with GCC, where it should work, to detect more
30481	      quickly whether someone messes up the test in the
30482	      future.  */
30483	   char digs[] = "0123456789";
30484	   int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
30485	  #endif
30486	  /* Catch a bug in an HP-UX C compiler.  See
30487	     http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
30488	     http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
30489	   */
30490	  _Bool q = true;
30491	  _Bool *pq = &q;
30492
30493int
30494main ()
30495{
30496
30497	  *pq |= q;
30498	  *pq |= ! q;
30499	  /* Refer to every declared value, to avoid compiler optimizations.  */
30500	  return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
30501		  + !m + !n + !o + !p + !q + !pq);
30502
30503  ;
30504  return 0;
30505}
30506_ACEOF
30507rm -f conftest.$ac_objext
30508if { (ac_try="$ac_compile"
30509case "(($ac_try" in
30510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30511  *) ac_try_echo=$ac_try;;
30512esac
30513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30514  (eval "$ac_compile") 2>conftest.er1
30515  ac_status=$?
30516  grep -v '^ *+' conftest.er1 >conftest.err
30517  rm -f conftest.er1
30518  cat conftest.err >&5
30519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30520  (exit $ac_status); } && {
30521	 test -z "$ac_c_werror_flag" ||
30522	 test ! -s conftest.err
30523       } && test -s conftest.$ac_objext; then
30524  ac_cv_header_stdbool_h=yes
30525else
30526  echo "$as_me: failed program was:" >&5
30527sed 's/^/| /' conftest.$ac_ext >&5
30528
30529	ac_cv_header_stdbool_h=no
30530fi
30531
30532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30533fi
30534{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
30535echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
30536   { echo "$as_me:$LINENO: checking for _Bool" >&5
30537echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
30538if test "${ac_cv_type__Bool+set}" = set; then
30539  echo $ECHO_N "(cached) $ECHO_C" >&6
30540else
30541  cat >conftest.$ac_ext <<_ACEOF
30542/* confdefs.h.  */
30543_ACEOF
30544cat confdefs.h >>conftest.$ac_ext
30545cat >>conftest.$ac_ext <<_ACEOF
30546/* end confdefs.h.  */
30547$ac_includes_default
30548typedef _Bool ac__type_new_;
30549int
30550main ()
30551{
30552if ((ac__type_new_ *) 0)
30553  return 0;
30554if (sizeof (ac__type_new_))
30555  return 0;
30556  ;
30557  return 0;
30558}
30559_ACEOF
30560rm -f conftest.$ac_objext
30561if { (ac_try="$ac_compile"
30562case "(($ac_try" in
30563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30564  *) ac_try_echo=$ac_try;;
30565esac
30566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30567  (eval "$ac_compile") 2>conftest.er1
30568  ac_status=$?
30569  grep -v '^ *+' conftest.er1 >conftest.err
30570  rm -f conftest.er1
30571  cat conftest.err >&5
30572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30573  (exit $ac_status); } && {
30574	 test -z "$ac_c_werror_flag" ||
30575	 test ! -s conftest.err
30576       } && test -s conftest.$ac_objext; then
30577  ac_cv_type__Bool=yes
30578else
30579  echo "$as_me: failed program was:" >&5
30580sed 's/^/| /' conftest.$ac_ext >&5
30581
30582	ac_cv_type__Bool=no
30583fi
30584
30585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30586fi
30587{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
30588echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
30589if test $ac_cv_type__Bool = yes; then
30590
30591cat >>confdefs.h <<_ACEOF
30592#define HAVE__BOOL 1
30593_ACEOF
30594
30595
30596fi
30597
30598   if test $ac_cv_header_stdbool_h = yes; then
30599
30600cat >>confdefs.h <<\_ACEOF
30601#define HAVE_STDBOOL_H 1
30602_ACEOF
30603
30604   fi
30605
30606      { echo "$as_me:$LINENO: checking whether strdup is declared" >&5
30607echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6; }
30608if test "${ac_cv_have_decl_strdup+set}" = set; then
30609  echo $ECHO_N "(cached) $ECHO_C" >&6
30610else
30611  cat >conftest.$ac_ext <<_ACEOF
30612/* confdefs.h.  */
30613_ACEOF
30614cat confdefs.h >>conftest.$ac_ext
30615cat >>conftest.$ac_ext <<_ACEOF
30616/* end confdefs.h.  */
30617$ac_includes_default
30618int
30619main ()
30620{
30621#ifndef strdup
30622  (void) strdup;
30623#endif
30624
30625  ;
30626  return 0;
30627}
30628_ACEOF
30629rm -f conftest.$ac_objext
30630if { (ac_try="$ac_compile"
30631case "(($ac_try" in
30632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30633  *) ac_try_echo=$ac_try;;
30634esac
30635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30636  (eval "$ac_compile") 2>conftest.er1
30637  ac_status=$?
30638  grep -v '^ *+' conftest.er1 >conftest.err
30639  rm -f conftest.er1
30640  cat conftest.err >&5
30641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30642  (exit $ac_status); } && {
30643	 test -z "$ac_c_werror_flag" ||
30644	 test ! -s conftest.err
30645       } && test -s conftest.$ac_objext; then
30646  ac_cv_have_decl_strdup=yes
30647else
30648  echo "$as_me: failed program was:" >&5
30649sed 's/^/| /' conftest.$ac_ext >&5
30650
30651	ac_cv_have_decl_strdup=no
30652fi
30653
30654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30655fi
30656{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
30657echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6; }
30658if test $ac_cv_have_decl_strdup = yes; then
30659
30660cat >>confdefs.h <<_ACEOF
30661#define HAVE_DECL_STRDUP 1
30662_ACEOF
30663
30664
30665else
30666  cat >>confdefs.h <<_ACEOF
30667#define HAVE_DECL_STRDUP 0
30668_ACEOF
30669
30670
30671fi
30672
30673
30674
30675
30676      { echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
30677echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6; }
30678if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
30679  echo $ECHO_N "(cached) $ECHO_C" >&6
30680else
30681  cat >conftest.$ac_ext <<_ACEOF
30682/* confdefs.h.  */
30683_ACEOF
30684cat confdefs.h >>conftest.$ac_ext
30685cat >>conftest.$ac_ext <<_ACEOF
30686/* end confdefs.h.  */
30687$ac_includes_default
30688int
30689main ()
30690{
30691#ifndef clearerr_unlocked
30692  (void) clearerr_unlocked;
30693#endif
30694
30695  ;
30696  return 0;
30697}
30698_ACEOF
30699rm -f conftest.$ac_objext
30700if { (ac_try="$ac_compile"
30701case "(($ac_try" in
30702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703  *) ac_try_echo=$ac_try;;
30704esac
30705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706  (eval "$ac_compile") 2>conftest.er1
30707  ac_status=$?
30708  grep -v '^ *+' conftest.er1 >conftest.err
30709  rm -f conftest.er1
30710  cat conftest.err >&5
30711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712  (exit $ac_status); } && {
30713	 test -z "$ac_c_werror_flag" ||
30714	 test ! -s conftest.err
30715       } && test -s conftest.$ac_objext; then
30716  ac_cv_have_decl_clearerr_unlocked=yes
30717else
30718  echo "$as_me: failed program was:" >&5
30719sed 's/^/| /' conftest.$ac_ext >&5
30720
30721	ac_cv_have_decl_clearerr_unlocked=no
30722fi
30723
30724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30725fi
30726{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
30727echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6; }
30728if test $ac_cv_have_decl_clearerr_unlocked = yes; then
30729
30730cat >>confdefs.h <<_ACEOF
30731#define HAVE_DECL_CLEARERR_UNLOCKED 1
30732_ACEOF
30733
30734
30735else
30736  cat >>confdefs.h <<_ACEOF
30737#define HAVE_DECL_CLEARERR_UNLOCKED 0
30738_ACEOF
30739
30740
30741fi
30742
30743
30744
30745
30746      { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
30747echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
30748if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
30749  echo $ECHO_N "(cached) $ECHO_C" >&6
30750else
30751  cat >conftest.$ac_ext <<_ACEOF
30752/* confdefs.h.  */
30753_ACEOF
30754cat confdefs.h >>conftest.$ac_ext
30755cat >>conftest.$ac_ext <<_ACEOF
30756/* end confdefs.h.  */
30757$ac_includes_default
30758int
30759main ()
30760{
30761#ifndef feof_unlocked
30762  (void) feof_unlocked;
30763#endif
30764
30765  ;
30766  return 0;
30767}
30768_ACEOF
30769rm -f conftest.$ac_objext
30770if { (ac_try="$ac_compile"
30771case "(($ac_try" in
30772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30773  *) ac_try_echo=$ac_try;;
30774esac
30775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30776  (eval "$ac_compile") 2>conftest.er1
30777  ac_status=$?
30778  grep -v '^ *+' conftest.er1 >conftest.err
30779  rm -f conftest.er1
30780  cat conftest.err >&5
30781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30782  (exit $ac_status); } && {
30783	 test -z "$ac_c_werror_flag" ||
30784	 test ! -s conftest.err
30785       } && test -s conftest.$ac_objext; then
30786  ac_cv_have_decl_feof_unlocked=yes
30787else
30788  echo "$as_me: failed program was:" >&5
30789sed 's/^/| /' conftest.$ac_ext >&5
30790
30791	ac_cv_have_decl_feof_unlocked=no
30792fi
30793
30794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30795fi
30796{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
30797echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
30798if test $ac_cv_have_decl_feof_unlocked = yes; then
30799
30800cat >>confdefs.h <<_ACEOF
30801#define HAVE_DECL_FEOF_UNLOCKED 1
30802_ACEOF
30803
30804
30805else
30806  cat >>confdefs.h <<_ACEOF
30807#define HAVE_DECL_FEOF_UNLOCKED 0
30808_ACEOF
30809
30810
30811fi
30812
30813
30814
30815
30816      { echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
30817echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6; }
30818if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
30819  echo $ECHO_N "(cached) $ECHO_C" >&6
30820else
30821  cat >conftest.$ac_ext <<_ACEOF
30822/* confdefs.h.  */
30823_ACEOF
30824cat confdefs.h >>conftest.$ac_ext
30825cat >>conftest.$ac_ext <<_ACEOF
30826/* end confdefs.h.  */
30827$ac_includes_default
30828int
30829main ()
30830{
30831#ifndef ferror_unlocked
30832  (void) ferror_unlocked;
30833#endif
30834
30835  ;
30836  return 0;
30837}
30838_ACEOF
30839rm -f conftest.$ac_objext
30840if { (ac_try="$ac_compile"
30841case "(($ac_try" in
30842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30843  *) ac_try_echo=$ac_try;;
30844esac
30845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30846  (eval "$ac_compile") 2>conftest.er1
30847  ac_status=$?
30848  grep -v '^ *+' conftest.er1 >conftest.err
30849  rm -f conftest.er1
30850  cat conftest.err >&5
30851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30852  (exit $ac_status); } && {
30853	 test -z "$ac_c_werror_flag" ||
30854	 test ! -s conftest.err
30855       } && test -s conftest.$ac_objext; then
30856  ac_cv_have_decl_ferror_unlocked=yes
30857else
30858  echo "$as_me: failed program was:" >&5
30859sed 's/^/| /' conftest.$ac_ext >&5
30860
30861	ac_cv_have_decl_ferror_unlocked=no
30862fi
30863
30864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30865fi
30866{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
30867echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6; }
30868if test $ac_cv_have_decl_ferror_unlocked = yes; then
30869
30870cat >>confdefs.h <<_ACEOF
30871#define HAVE_DECL_FERROR_UNLOCKED 1
30872_ACEOF
30873
30874
30875else
30876  cat >>confdefs.h <<_ACEOF
30877#define HAVE_DECL_FERROR_UNLOCKED 0
30878_ACEOF
30879
30880
30881fi
30882
30883
30884
30885
30886      { echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
30887echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6; }
30888if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
30889  echo $ECHO_N "(cached) $ECHO_C" >&6
30890else
30891  cat >conftest.$ac_ext <<_ACEOF
30892/* confdefs.h.  */
30893_ACEOF
30894cat confdefs.h >>conftest.$ac_ext
30895cat >>conftest.$ac_ext <<_ACEOF
30896/* end confdefs.h.  */
30897$ac_includes_default
30898int
30899main ()
30900{
30901#ifndef fflush_unlocked
30902  (void) fflush_unlocked;
30903#endif
30904
30905  ;
30906  return 0;
30907}
30908_ACEOF
30909rm -f conftest.$ac_objext
30910if { (ac_try="$ac_compile"
30911case "(($ac_try" in
30912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30913  *) ac_try_echo=$ac_try;;
30914esac
30915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30916  (eval "$ac_compile") 2>conftest.er1
30917  ac_status=$?
30918  grep -v '^ *+' conftest.er1 >conftest.err
30919  rm -f conftest.er1
30920  cat conftest.err >&5
30921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30922  (exit $ac_status); } && {
30923	 test -z "$ac_c_werror_flag" ||
30924	 test ! -s conftest.err
30925       } && test -s conftest.$ac_objext; then
30926  ac_cv_have_decl_fflush_unlocked=yes
30927else
30928  echo "$as_me: failed program was:" >&5
30929sed 's/^/| /' conftest.$ac_ext >&5
30930
30931	ac_cv_have_decl_fflush_unlocked=no
30932fi
30933
30934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30935fi
30936{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
30937echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6; }
30938if test $ac_cv_have_decl_fflush_unlocked = yes; then
30939
30940cat >>confdefs.h <<_ACEOF
30941#define HAVE_DECL_FFLUSH_UNLOCKED 1
30942_ACEOF
30943
30944
30945else
30946  cat >>confdefs.h <<_ACEOF
30947#define HAVE_DECL_FFLUSH_UNLOCKED 0
30948_ACEOF
30949
30950
30951fi
30952
30953
30954
30955
30956      { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
30957echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
30958if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
30959  echo $ECHO_N "(cached) $ECHO_C" >&6
30960else
30961  cat >conftest.$ac_ext <<_ACEOF
30962/* confdefs.h.  */
30963_ACEOF
30964cat confdefs.h >>conftest.$ac_ext
30965cat >>conftest.$ac_ext <<_ACEOF
30966/* end confdefs.h.  */
30967$ac_includes_default
30968int
30969main ()
30970{
30971#ifndef fgets_unlocked
30972  (void) fgets_unlocked;
30973#endif
30974
30975  ;
30976  return 0;
30977}
30978_ACEOF
30979rm -f conftest.$ac_objext
30980if { (ac_try="$ac_compile"
30981case "(($ac_try" in
30982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30983  *) ac_try_echo=$ac_try;;
30984esac
30985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30986  (eval "$ac_compile") 2>conftest.er1
30987  ac_status=$?
30988  grep -v '^ *+' conftest.er1 >conftest.err
30989  rm -f conftest.er1
30990  cat conftest.err >&5
30991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992  (exit $ac_status); } && {
30993	 test -z "$ac_c_werror_flag" ||
30994	 test ! -s conftest.err
30995       } && test -s conftest.$ac_objext; then
30996  ac_cv_have_decl_fgets_unlocked=yes
30997else
30998  echo "$as_me: failed program was:" >&5
30999sed 's/^/| /' conftest.$ac_ext >&5
31000
31001	ac_cv_have_decl_fgets_unlocked=no
31002fi
31003
31004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31005fi
31006{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
31007echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
31008if test $ac_cv_have_decl_fgets_unlocked = yes; then
31009
31010cat >>confdefs.h <<_ACEOF
31011#define HAVE_DECL_FGETS_UNLOCKED 1
31012_ACEOF
31013
31014
31015else
31016  cat >>confdefs.h <<_ACEOF
31017#define HAVE_DECL_FGETS_UNLOCKED 0
31018_ACEOF
31019
31020
31021fi
31022
31023
31024
31025
31026      { echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
31027echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6; }
31028if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
31029  echo $ECHO_N "(cached) $ECHO_C" >&6
31030else
31031  cat >conftest.$ac_ext <<_ACEOF
31032/* confdefs.h.  */
31033_ACEOF
31034cat confdefs.h >>conftest.$ac_ext
31035cat >>conftest.$ac_ext <<_ACEOF
31036/* end confdefs.h.  */
31037$ac_includes_default
31038int
31039main ()
31040{
31041#ifndef fputc_unlocked
31042  (void) fputc_unlocked;
31043#endif
31044
31045  ;
31046  return 0;
31047}
31048_ACEOF
31049rm -f conftest.$ac_objext
31050if { (ac_try="$ac_compile"
31051case "(($ac_try" in
31052  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31053  *) ac_try_echo=$ac_try;;
31054esac
31055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31056  (eval "$ac_compile") 2>conftest.er1
31057  ac_status=$?
31058  grep -v '^ *+' conftest.er1 >conftest.err
31059  rm -f conftest.er1
31060  cat conftest.err >&5
31061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062  (exit $ac_status); } && {
31063	 test -z "$ac_c_werror_flag" ||
31064	 test ! -s conftest.err
31065       } && test -s conftest.$ac_objext; then
31066  ac_cv_have_decl_fputc_unlocked=yes
31067else
31068  echo "$as_me: failed program was:" >&5
31069sed 's/^/| /' conftest.$ac_ext >&5
31070
31071	ac_cv_have_decl_fputc_unlocked=no
31072fi
31073
31074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31075fi
31076{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
31077echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6; }
31078if test $ac_cv_have_decl_fputc_unlocked = yes; then
31079
31080cat >>confdefs.h <<_ACEOF
31081#define HAVE_DECL_FPUTC_UNLOCKED 1
31082_ACEOF
31083
31084
31085else
31086  cat >>confdefs.h <<_ACEOF
31087#define HAVE_DECL_FPUTC_UNLOCKED 0
31088_ACEOF
31089
31090
31091fi
31092
31093
31094
31095
31096      { echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
31097echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6; }
31098if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
31099  echo $ECHO_N "(cached) $ECHO_C" >&6
31100else
31101  cat >conftest.$ac_ext <<_ACEOF
31102/* confdefs.h.  */
31103_ACEOF
31104cat confdefs.h >>conftest.$ac_ext
31105cat >>conftest.$ac_ext <<_ACEOF
31106/* end confdefs.h.  */
31107$ac_includes_default
31108int
31109main ()
31110{
31111#ifndef fputs_unlocked
31112  (void) fputs_unlocked;
31113#endif
31114
31115  ;
31116  return 0;
31117}
31118_ACEOF
31119rm -f conftest.$ac_objext
31120if { (ac_try="$ac_compile"
31121case "(($ac_try" in
31122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31123  *) ac_try_echo=$ac_try;;
31124esac
31125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31126  (eval "$ac_compile") 2>conftest.er1
31127  ac_status=$?
31128  grep -v '^ *+' conftest.er1 >conftest.err
31129  rm -f conftest.er1
31130  cat conftest.err >&5
31131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132  (exit $ac_status); } && {
31133	 test -z "$ac_c_werror_flag" ||
31134	 test ! -s conftest.err
31135       } && test -s conftest.$ac_objext; then
31136  ac_cv_have_decl_fputs_unlocked=yes
31137else
31138  echo "$as_me: failed program was:" >&5
31139sed 's/^/| /' conftest.$ac_ext >&5
31140
31141	ac_cv_have_decl_fputs_unlocked=no
31142fi
31143
31144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31145fi
31146{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
31147echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6; }
31148if test $ac_cv_have_decl_fputs_unlocked = yes; then
31149
31150cat >>confdefs.h <<_ACEOF
31151#define HAVE_DECL_FPUTS_UNLOCKED 1
31152_ACEOF
31153
31154
31155else
31156  cat >>confdefs.h <<_ACEOF
31157#define HAVE_DECL_FPUTS_UNLOCKED 0
31158_ACEOF
31159
31160
31161fi
31162
31163
31164
31165
31166      { echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
31167echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6; }
31168if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
31169  echo $ECHO_N "(cached) $ECHO_C" >&6
31170else
31171  cat >conftest.$ac_ext <<_ACEOF
31172/* confdefs.h.  */
31173_ACEOF
31174cat confdefs.h >>conftest.$ac_ext
31175cat >>conftest.$ac_ext <<_ACEOF
31176/* end confdefs.h.  */
31177$ac_includes_default
31178int
31179main ()
31180{
31181#ifndef fread_unlocked
31182  (void) fread_unlocked;
31183#endif
31184
31185  ;
31186  return 0;
31187}
31188_ACEOF
31189rm -f conftest.$ac_objext
31190if { (ac_try="$ac_compile"
31191case "(($ac_try" in
31192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31193  *) ac_try_echo=$ac_try;;
31194esac
31195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31196  (eval "$ac_compile") 2>conftest.er1
31197  ac_status=$?
31198  grep -v '^ *+' conftest.er1 >conftest.err
31199  rm -f conftest.er1
31200  cat conftest.err >&5
31201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31202  (exit $ac_status); } && {
31203	 test -z "$ac_c_werror_flag" ||
31204	 test ! -s conftest.err
31205       } && test -s conftest.$ac_objext; then
31206  ac_cv_have_decl_fread_unlocked=yes
31207else
31208  echo "$as_me: failed program was:" >&5
31209sed 's/^/| /' conftest.$ac_ext >&5
31210
31211	ac_cv_have_decl_fread_unlocked=no
31212fi
31213
31214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31215fi
31216{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
31217echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6; }
31218if test $ac_cv_have_decl_fread_unlocked = yes; then
31219
31220cat >>confdefs.h <<_ACEOF
31221#define HAVE_DECL_FREAD_UNLOCKED 1
31222_ACEOF
31223
31224
31225else
31226  cat >>confdefs.h <<_ACEOF
31227#define HAVE_DECL_FREAD_UNLOCKED 0
31228_ACEOF
31229
31230
31231fi
31232
31233
31234
31235
31236      { echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
31237echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6; }
31238if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
31239  echo $ECHO_N "(cached) $ECHO_C" >&6
31240else
31241  cat >conftest.$ac_ext <<_ACEOF
31242/* confdefs.h.  */
31243_ACEOF
31244cat confdefs.h >>conftest.$ac_ext
31245cat >>conftest.$ac_ext <<_ACEOF
31246/* end confdefs.h.  */
31247$ac_includes_default
31248int
31249main ()
31250{
31251#ifndef fwrite_unlocked
31252  (void) fwrite_unlocked;
31253#endif
31254
31255  ;
31256  return 0;
31257}
31258_ACEOF
31259rm -f conftest.$ac_objext
31260if { (ac_try="$ac_compile"
31261case "(($ac_try" in
31262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31263  *) ac_try_echo=$ac_try;;
31264esac
31265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31266  (eval "$ac_compile") 2>conftest.er1
31267  ac_status=$?
31268  grep -v '^ *+' conftest.er1 >conftest.err
31269  rm -f conftest.er1
31270  cat conftest.err >&5
31271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272  (exit $ac_status); } && {
31273	 test -z "$ac_c_werror_flag" ||
31274	 test ! -s conftest.err
31275       } && test -s conftest.$ac_objext; then
31276  ac_cv_have_decl_fwrite_unlocked=yes
31277else
31278  echo "$as_me: failed program was:" >&5
31279sed 's/^/| /' conftest.$ac_ext >&5
31280
31281	ac_cv_have_decl_fwrite_unlocked=no
31282fi
31283
31284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31285fi
31286{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
31287echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6; }
31288if test $ac_cv_have_decl_fwrite_unlocked = yes; then
31289
31290cat >>confdefs.h <<_ACEOF
31291#define HAVE_DECL_FWRITE_UNLOCKED 1
31292_ACEOF
31293
31294
31295else
31296  cat >>confdefs.h <<_ACEOF
31297#define HAVE_DECL_FWRITE_UNLOCKED 0
31298_ACEOF
31299
31300
31301fi
31302
31303
31304
31305
31306      { echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
31307echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6; }
31308if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
31309  echo $ECHO_N "(cached) $ECHO_C" >&6
31310else
31311  cat >conftest.$ac_ext <<_ACEOF
31312/* confdefs.h.  */
31313_ACEOF
31314cat confdefs.h >>conftest.$ac_ext
31315cat >>conftest.$ac_ext <<_ACEOF
31316/* end confdefs.h.  */
31317$ac_includes_default
31318int
31319main ()
31320{
31321#ifndef getchar_unlocked
31322  (void) getchar_unlocked;
31323#endif
31324
31325  ;
31326  return 0;
31327}
31328_ACEOF
31329rm -f conftest.$ac_objext
31330if { (ac_try="$ac_compile"
31331case "(($ac_try" in
31332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31333  *) ac_try_echo=$ac_try;;
31334esac
31335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31336  (eval "$ac_compile") 2>conftest.er1
31337  ac_status=$?
31338  grep -v '^ *+' conftest.er1 >conftest.err
31339  rm -f conftest.er1
31340  cat conftest.err >&5
31341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31342  (exit $ac_status); } && {
31343	 test -z "$ac_c_werror_flag" ||
31344	 test ! -s conftest.err
31345       } && test -s conftest.$ac_objext; then
31346  ac_cv_have_decl_getchar_unlocked=yes
31347else
31348  echo "$as_me: failed program was:" >&5
31349sed 's/^/| /' conftest.$ac_ext >&5
31350
31351	ac_cv_have_decl_getchar_unlocked=no
31352fi
31353
31354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31355fi
31356{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
31357echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6; }
31358if test $ac_cv_have_decl_getchar_unlocked = yes; then
31359
31360cat >>confdefs.h <<_ACEOF
31361#define HAVE_DECL_GETCHAR_UNLOCKED 1
31362_ACEOF
31363
31364
31365else
31366  cat >>confdefs.h <<_ACEOF
31367#define HAVE_DECL_GETCHAR_UNLOCKED 0
31368_ACEOF
31369
31370
31371fi
31372
31373
31374
31375
31376      { echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
31377echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6; }
31378if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
31379  echo $ECHO_N "(cached) $ECHO_C" >&6
31380else
31381  cat >conftest.$ac_ext <<_ACEOF
31382/* confdefs.h.  */
31383_ACEOF
31384cat confdefs.h >>conftest.$ac_ext
31385cat >>conftest.$ac_ext <<_ACEOF
31386/* end confdefs.h.  */
31387$ac_includes_default
31388int
31389main ()
31390{
31391#ifndef putc_unlocked
31392  (void) putc_unlocked;
31393#endif
31394
31395  ;
31396  return 0;
31397}
31398_ACEOF
31399rm -f conftest.$ac_objext
31400if { (ac_try="$ac_compile"
31401case "(($ac_try" in
31402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31403  *) ac_try_echo=$ac_try;;
31404esac
31405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31406  (eval "$ac_compile") 2>conftest.er1
31407  ac_status=$?
31408  grep -v '^ *+' conftest.er1 >conftest.err
31409  rm -f conftest.er1
31410  cat conftest.err >&5
31411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412  (exit $ac_status); } && {
31413	 test -z "$ac_c_werror_flag" ||
31414	 test ! -s conftest.err
31415       } && test -s conftest.$ac_objext; then
31416  ac_cv_have_decl_putc_unlocked=yes
31417else
31418  echo "$as_me: failed program was:" >&5
31419sed 's/^/| /' conftest.$ac_ext >&5
31420
31421	ac_cv_have_decl_putc_unlocked=no
31422fi
31423
31424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31425fi
31426{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
31427echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6; }
31428if test $ac_cv_have_decl_putc_unlocked = yes; then
31429
31430cat >>confdefs.h <<_ACEOF
31431#define HAVE_DECL_PUTC_UNLOCKED 1
31432_ACEOF
31433
31434
31435else
31436  cat >>confdefs.h <<_ACEOF
31437#define HAVE_DECL_PUTC_UNLOCKED 0
31438_ACEOF
31439
31440
31441fi
31442
31443
31444
31445
31446      { echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
31447echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6; }
31448if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
31449  echo $ECHO_N "(cached) $ECHO_C" >&6
31450else
31451  cat >conftest.$ac_ext <<_ACEOF
31452/* confdefs.h.  */
31453_ACEOF
31454cat confdefs.h >>conftest.$ac_ext
31455cat >>conftest.$ac_ext <<_ACEOF
31456/* end confdefs.h.  */
31457$ac_includes_default
31458int
31459main ()
31460{
31461#ifndef putchar_unlocked
31462  (void) putchar_unlocked;
31463#endif
31464
31465  ;
31466  return 0;
31467}
31468_ACEOF
31469rm -f conftest.$ac_objext
31470if { (ac_try="$ac_compile"
31471case "(($ac_try" in
31472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31473  *) ac_try_echo=$ac_try;;
31474esac
31475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31476  (eval "$ac_compile") 2>conftest.er1
31477  ac_status=$?
31478  grep -v '^ *+' conftest.er1 >conftest.err
31479  rm -f conftest.er1
31480  cat conftest.err >&5
31481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482  (exit $ac_status); } && {
31483	 test -z "$ac_c_werror_flag" ||
31484	 test ! -s conftest.err
31485       } && test -s conftest.$ac_objext; then
31486  ac_cv_have_decl_putchar_unlocked=yes
31487else
31488  echo "$as_me: failed program was:" >&5
31489sed 's/^/| /' conftest.$ac_ext >&5
31490
31491	ac_cv_have_decl_putchar_unlocked=no
31492fi
31493
31494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31495fi
31496{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
31497echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6; }
31498if test $ac_cv_have_decl_putchar_unlocked = yes; then
31499
31500cat >>confdefs.h <<_ACEOF
31501#define HAVE_DECL_PUTCHAR_UNLOCKED 1
31502_ACEOF
31503
31504
31505else
31506  cat >>confdefs.h <<_ACEOF
31507#define HAVE_DECL_PUTCHAR_UNLOCKED 0
31508_ACEOF
31509
31510
31511fi
31512
31513
31514
31515
31516
31517
31518
31519
31520for ac_func in $gl_func_list
31521do
31522as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31523{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31524echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31525if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31526  echo $ECHO_N "(cached) $ECHO_C" >&6
31527else
31528  cat >conftest.$ac_ext <<_ACEOF
31529/* confdefs.h.  */
31530_ACEOF
31531cat confdefs.h >>conftest.$ac_ext
31532cat >>conftest.$ac_ext <<_ACEOF
31533/* end confdefs.h.  */
31534/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31535   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31536#define $ac_func innocuous_$ac_func
31537
31538/* System header to define __stub macros and hopefully few prototypes,
31539    which can conflict with char $ac_func (); below.
31540    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31541    <limits.h> exists even on freestanding compilers.  */
31542
31543#ifdef __STDC__
31544# include <limits.h>
31545#else
31546# include <assert.h>
31547#endif
31548
31549#undef $ac_func
31550
31551/* Override any GCC internal prototype to avoid an error.
31552   Use char because int might match the return type of a GCC
31553   builtin and then its argument prototype would still apply.  */
31554#ifdef __cplusplus
31555extern "C"
31556#endif
31557char $ac_func ();
31558/* The GNU C library defines this for functions which it implements
31559    to always fail with ENOSYS.  Some functions are actually named
31560    something starting with __ and the normal name is an alias.  */
31561#if defined __stub_$ac_func || defined __stub___$ac_func
31562choke me
31563#endif
31564
31565int
31566main ()
31567{
31568return $ac_func ();
31569  ;
31570  return 0;
31571}
31572_ACEOF
31573rm -f conftest.$ac_objext conftest$ac_exeext
31574if { (ac_try="$ac_link"
31575case "(($ac_try" in
31576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31577  *) ac_try_echo=$ac_try;;
31578esac
31579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31580  (eval "$ac_link") 2>conftest.er1
31581  ac_status=$?
31582  grep -v '^ *+' conftest.er1 >conftest.err
31583  rm -f conftest.er1
31584  cat conftest.err >&5
31585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586  (exit $ac_status); } && {
31587	 test -z "$ac_c_werror_flag" ||
31588	 test ! -s conftest.err
31589       } && test -s conftest$ac_exeext &&
31590       $as_test_x conftest$ac_exeext; then
31591  eval "$as_ac_var=yes"
31592else
31593  echo "$as_me: failed program was:" >&5
31594sed 's/^/| /' conftest.$ac_ext >&5
31595
31596	eval "$as_ac_var=no"
31597fi
31598
31599rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31600      conftest$ac_exeext conftest.$ac_ext
31601fi
31602ac_res=`eval echo '${'$as_ac_var'}'`
31603	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31604echo "${ECHO_T}$ac_res" >&6; }
31605if test `eval echo '${'$as_ac_var'}'` = yes; then
31606  cat >>confdefs.h <<_ACEOF
31607#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31608_ACEOF
31609
31610fi
31611done
31612
31613
31614
31615
31616
31617
31618
31619
31620
31621
31622
31623
31624
31625
31626
31627   if false; then
31628  GL_COND_LIBTOOL_TRUE=
31629  GL_COND_LIBTOOL_FALSE='#'
31630else
31631  GL_COND_LIBTOOL_TRUE='#'
31632  GL_COND_LIBTOOL_FALSE=
31633fi
31634
31635  gl_cond_libtool=false
31636  gl_libdeps=
31637  gl_ltlibdeps=
31638  gl_source_base='gnulib-lib'
31639
31640
31641
31642
31643
31644  if test $ac_cv_func_alloca_works = no; then
31645
31646
31647  :
31648
31649
31650
31651
31652
31653
31654
31655
31656  :
31657
31658  fi
31659
31660  # Define an additional variable used in the Makefile substitution.
31661
31662  cat >conftest.$ac_ext <<_ACEOF
31663/* confdefs.h.  */
31664_ACEOF
31665cat confdefs.h >>conftest.$ac_ext
31666cat >>conftest.$ac_ext <<_ACEOF
31667/* end confdefs.h.  */
31668
31669#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
31670  Need own alloca
31671#endif
31672
31673_ACEOF
31674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31675  $EGREP "Need own alloca" >/dev/null 2>&1; then
31676  ALLOCA_H=alloca.h
31677else
31678  ALLOCA_H=
31679fi
31680rm -f conftest*
31681
31682
31683
31684
31685
31686
31687
31688
31689
31690  if test $ac_cv_func_alloca_works = no; then
31691
31692
31693  :
31694
31695
31696
31697
31698
31699
31700
31701
31702  :
31703
31704  fi
31705
31706  # Define an additional variable used in the Makefile substitution.
31707
31708  cat >conftest.$ac_ext <<_ACEOF
31709/* confdefs.h.  */
31710_ACEOF
31711cat confdefs.h >>conftest.$ac_ext
31712cat >>conftest.$ac_ext <<_ACEOF
31713/* end confdefs.h.  */
31714
31715#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
31716  Need own alloca
31717#endif
31718
31719_ACEOF
31720if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31721  $EGREP "Need own alloca" >/dev/null 2>&1; then
31722  ALLOCA_H=alloca.h
31723else
31724  ALLOCA_H=
31725fi
31726rm -f conftest*
31727
31728
31729
31730
31731
31732
31733
31734
31735
31736for ac_func in atexit
31737do
31738as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31739{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31741if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31742  echo $ECHO_N "(cached) $ECHO_C" >&6
31743else
31744  cat >conftest.$ac_ext <<_ACEOF
31745/* confdefs.h.  */
31746_ACEOF
31747cat confdefs.h >>conftest.$ac_ext
31748cat >>conftest.$ac_ext <<_ACEOF
31749/* end confdefs.h.  */
31750/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31751   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31752#define $ac_func innocuous_$ac_func
31753
31754/* System header to define __stub macros and hopefully few prototypes,
31755    which can conflict with char $ac_func (); below.
31756    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31757    <limits.h> exists even on freestanding compilers.  */
31758
31759#ifdef __STDC__
31760# include <limits.h>
31761#else
31762# include <assert.h>
31763#endif
31764
31765#undef $ac_func
31766
31767/* Override any GCC internal prototype to avoid an error.
31768   Use char because int might match the return type of a GCC
31769   builtin and then its argument prototype would still apply.  */
31770#ifdef __cplusplus
31771extern "C"
31772#endif
31773char $ac_func ();
31774/* The GNU C library defines this for functions which it implements
31775    to always fail with ENOSYS.  Some functions are actually named
31776    something starting with __ and the normal name is an alias.  */
31777#if defined __stub_$ac_func || defined __stub___$ac_func
31778choke me
31779#endif
31780
31781int
31782main ()
31783{
31784return $ac_func ();
31785  ;
31786  return 0;
31787}
31788_ACEOF
31789rm -f conftest.$ac_objext conftest$ac_exeext
31790if { (ac_try="$ac_link"
31791case "(($ac_try" in
31792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31793  *) ac_try_echo=$ac_try;;
31794esac
31795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31796  (eval "$ac_link") 2>conftest.er1
31797  ac_status=$?
31798  grep -v '^ *+' conftest.er1 >conftest.err
31799  rm -f conftest.er1
31800  cat conftest.err >&5
31801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31802  (exit $ac_status); } && {
31803	 test -z "$ac_c_werror_flag" ||
31804	 test ! -s conftest.err
31805       } && test -s conftest$ac_exeext &&
31806       $as_test_x conftest$ac_exeext; then
31807  eval "$as_ac_var=yes"
31808else
31809  echo "$as_me: failed program was:" >&5
31810sed 's/^/| /' conftest.$ac_ext >&5
31811
31812	eval "$as_ac_var=no"
31813fi
31814
31815rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31816      conftest$ac_exeext conftest.$ac_ext
31817fi
31818ac_res=`eval echo '${'$as_ac_var'}'`
31819	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31820echo "${ECHO_T}$ac_res" >&6; }
31821if test `eval echo '${'$as_ac_var'}'` = yes; then
31822  cat >>confdefs.h <<_ACEOF
31823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31824_ACEOF
31825
31826else
31827  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
31828fi
31829done
31830
31831  if test $ac_cv_func_atexit = no; then
31832
31833  :
31834
31835  fi
31836
31837
31838
31839for ac_func in canonicalize_file_name
31840do
31841as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31842{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31843echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31844if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31845  echo $ECHO_N "(cached) $ECHO_C" >&6
31846else
31847  cat >conftest.$ac_ext <<_ACEOF
31848/* confdefs.h.  */
31849_ACEOF
31850cat confdefs.h >>conftest.$ac_ext
31851cat >>conftest.$ac_ext <<_ACEOF
31852/* end confdefs.h.  */
31853/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31854   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31855#define $ac_func innocuous_$ac_func
31856
31857/* System header to define __stub macros and hopefully few prototypes,
31858    which can conflict with char $ac_func (); below.
31859    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31860    <limits.h> exists even on freestanding compilers.  */
31861
31862#ifdef __STDC__
31863# include <limits.h>
31864#else
31865# include <assert.h>
31866#endif
31867
31868#undef $ac_func
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 $ac_func ();
31877/* The GNU C library defines this for functions which it implements
31878    to always fail with ENOSYS.  Some functions are actually named
31879    something starting with __ and the normal name is an alias.  */
31880#if defined __stub_$ac_func || defined __stub___$ac_func
31881choke me
31882#endif
31883
31884int
31885main ()
31886{
31887return $ac_func ();
31888  ;
31889  return 0;
31890}
31891_ACEOF
31892rm -f conftest.$ac_objext conftest$ac_exeext
31893if { (ac_try="$ac_link"
31894case "(($ac_try" in
31895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31896  *) ac_try_echo=$ac_try;;
31897esac
31898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31899  (eval "$ac_link") 2>conftest.er1
31900  ac_status=$?
31901  grep -v '^ *+' conftest.er1 >conftest.err
31902  rm -f conftest.er1
31903  cat conftest.err >&5
31904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31905  (exit $ac_status); } && {
31906	 test -z "$ac_c_werror_flag" ||
31907	 test ! -s conftest.err
31908       } && test -s conftest$ac_exeext &&
31909       $as_test_x conftest$ac_exeext; then
31910  eval "$as_ac_var=yes"
31911else
31912  echo "$as_me: failed program was:" >&5
31913sed 's/^/| /' conftest.$ac_ext >&5
31914
31915	eval "$as_ac_var=no"
31916fi
31917
31918rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31919      conftest$ac_exeext conftest.$ac_ext
31920fi
31921ac_res=`eval echo '${'$as_ac_var'}'`
31922	       { echo "$as_me:$LINENO: result: $ac_res" >&5
31923echo "${ECHO_T}$ac_res" >&6; }
31924if test `eval echo '${'$as_ac_var'}'` = yes; then
31925  cat >>confdefs.h <<_ACEOF
31926#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31927_ACEOF
31928
31929fi
31930done
31931
31932  if test $ac_cv_func_canonicalize_file_name = no; then
31933    gl_LIBOBJS="$gl_LIBOBJS canonicalize.$ac_objext"
31934
31935cat >>confdefs.h <<\_ACEOF
31936#define realpath rpl_realpath
31937_ACEOF
31938
31939
31940
31941  :
31942
31943
31944
31945
31946
31947
31948
31949
31950
31951
31952for ac_func in getcwd readlink
31953do
31954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31955{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31957if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31958  echo $ECHO_N "(cached) $ECHO_C" >&6
31959else
31960  cat >conftest.$ac_ext <<_ACEOF
31961/* confdefs.h.  */
31962_ACEOF
31963cat confdefs.h >>conftest.$ac_ext
31964cat >>conftest.$ac_ext <<_ACEOF
31965/* end confdefs.h.  */
31966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31967   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31968#define $ac_func innocuous_$ac_func
31969
31970/* System header to define __stub macros and hopefully few prototypes,
31971    which can conflict with char $ac_func (); below.
31972    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31973    <limits.h> exists even on freestanding compilers.  */
31974
31975#ifdef __STDC__
31976# include <limits.h>
31977#else
31978# include <assert.h>
31979#endif
31980
31981#undef $ac_func
31982
31983/* Override any GCC internal prototype to avoid an error.
31984   Use char because int might match the return type of a GCC
31985   builtin and then its argument prototype would still apply.  */
31986#ifdef __cplusplus
31987extern "C"
31988#endif
31989char $ac_func ();
31990/* The GNU C library defines this for functions which it implements
31991    to always fail with ENOSYS.  Some functions are actually named
31992    something starting with __ and the normal name is an alias.  */
31993#if defined __stub_$ac_func || defined __stub___$ac_func
31994choke me
31995#endif
31996
31997int
31998main ()
31999{
32000return $ac_func ();
32001  ;
32002  return 0;
32003}
32004_ACEOF
32005rm -f conftest.$ac_objext conftest$ac_exeext
32006if { (ac_try="$ac_link"
32007case "(($ac_try" in
32008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009  *) ac_try_echo=$ac_try;;
32010esac
32011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012  (eval "$ac_link") 2>conftest.er1
32013  ac_status=$?
32014  grep -v '^ *+' conftest.er1 >conftest.err
32015  rm -f conftest.er1
32016  cat conftest.err >&5
32017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018  (exit $ac_status); } && {
32019	 test -z "$ac_c_werror_flag" ||
32020	 test ! -s conftest.err
32021       } && test -s conftest$ac_exeext &&
32022       $as_test_x conftest$ac_exeext; then
32023  eval "$as_ac_var=yes"
32024else
32025  echo "$as_me: failed program was:" >&5
32026sed 's/^/| /' conftest.$ac_ext >&5
32027
32028	eval "$as_ac_var=no"
32029fi
32030
32031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32032      conftest$ac_exeext conftest.$ac_ext
32033fi
32034ac_res=`eval echo '${'$as_ac_var'}'`
32035	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32036echo "${ECHO_T}$ac_res" >&6; }
32037if test `eval echo '${'$as_ac_var'}'` = yes; then
32038  cat >>confdefs.h <<_ACEOF
32039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32040_ACEOF
32041
32042fi
32043done
32044
32045
32046  fi
32047
32048
32049  ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in"
32050
32051
32052  { echo "$as_me:$LINENO: checking for error_at_line" >&5
32053echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
32054if test "${ac_cv_lib_error_at_line+set}" = set; then
32055  echo $ECHO_N "(cached) $ECHO_C" >&6
32056else
32057  cat >conftest.$ac_ext <<_ACEOF
32058/* confdefs.h.  */
32059_ACEOF
32060cat confdefs.h >>conftest.$ac_ext
32061cat >>conftest.$ac_ext <<_ACEOF
32062/* end confdefs.h.  */
32063#include <error.h>
32064int
32065main ()
32066{
32067error_at_line (0, 0, "", 0, "an error occurred");
32068  ;
32069  return 0;
32070}
32071_ACEOF
32072rm -f conftest.$ac_objext conftest$ac_exeext
32073if { (ac_try="$ac_link"
32074case "(($ac_try" in
32075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32076  *) ac_try_echo=$ac_try;;
32077esac
32078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32079  (eval "$ac_link") 2>conftest.er1
32080  ac_status=$?
32081  grep -v '^ *+' conftest.er1 >conftest.err
32082  rm -f conftest.er1
32083  cat conftest.err >&5
32084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32085  (exit $ac_status); } && {
32086	 test -z "$ac_c_werror_flag" ||
32087	 test ! -s conftest.err
32088       } && test -s conftest$ac_exeext &&
32089       $as_test_x conftest$ac_exeext; then
32090  ac_cv_lib_error_at_line=yes
32091else
32092  echo "$as_me: failed program was:" >&5
32093sed 's/^/| /' conftest.$ac_ext >&5
32094
32095	ac_cv_lib_error_at_line=no
32096fi
32097
32098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32099      conftest$ac_exeext conftest.$ac_ext
32100fi
32101{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
32102echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
32103if test $ac_cv_lib_error_at_line = no; then
32104  gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
32105fi
32106
32107
32108
32109  :
32110
32111
32112
32113cat >>confdefs.h <<\_ACEOF
32114#define GNULIB_FWRITEERROR 1
32115_ACEOF
32116
32117
32118
32119  if test -n "$GETOPT_H"; then
32120
32121  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
32122  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
32123
32124  GETOPT_H=getopt.h
32125
32126cat >>confdefs.h <<\_ACEOF
32127#define __GETOPT_PREFIX rpl_
32128_ACEOF
32129
32130
32131
32132
32133
32134  :
32135
32136
32137
32138
32139
32140
32141
32142fi
32143
32144
32145
32146
32147
32148
32149
32150          am_save_CPPFLAGS="$CPPFLAGS"
32151
32152  for element in $INCICONV; do
32153    haveit=
32154    for x in $CPPFLAGS; do
32155
32156  acl_save_prefix="$prefix"
32157  prefix="$acl_final_prefix"
32158  acl_save_exec_prefix="$exec_prefix"
32159  exec_prefix="$acl_final_exec_prefix"
32160  eval x=\"$x\"
32161  exec_prefix="$acl_save_exec_prefix"
32162  prefix="$acl_save_prefix"
32163
32164      if test "X$x" = "X$element"; then
32165        haveit=yes
32166        break
32167      fi
32168    done
32169    if test -z "$haveit"; then
32170      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
32171    fi
32172  done
32173
32174
32175  { echo "$as_me:$LINENO: checking for iconv" >&5
32176echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
32177if test "${am_cv_func_iconv+set}" = set; then
32178  echo $ECHO_N "(cached) $ECHO_C" >&6
32179else
32180
32181    am_cv_func_iconv="no, consider installing GNU libiconv"
32182    am_cv_lib_iconv=no
32183    cat >conftest.$ac_ext <<_ACEOF
32184/* confdefs.h.  */
32185_ACEOF
32186cat confdefs.h >>conftest.$ac_ext
32187cat >>conftest.$ac_ext <<_ACEOF
32188/* end confdefs.h.  */
32189#include <stdlib.h>
32190#include <iconv.h>
32191int
32192main ()
32193{
32194iconv_t cd = iconv_open("","");
32195       iconv(cd,NULL,NULL,NULL,NULL);
32196       iconv_close(cd);
32197  ;
32198  return 0;
32199}
32200_ACEOF
32201rm -f conftest.$ac_objext conftest$ac_exeext
32202if { (ac_try="$ac_link"
32203case "(($ac_try" in
32204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32205  *) ac_try_echo=$ac_try;;
32206esac
32207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32208  (eval "$ac_link") 2>conftest.er1
32209  ac_status=$?
32210  grep -v '^ *+' conftest.er1 >conftest.err
32211  rm -f conftest.er1
32212  cat conftest.err >&5
32213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214  (exit $ac_status); } && {
32215	 test -z "$ac_c_werror_flag" ||
32216	 test ! -s conftest.err
32217       } && test -s conftest$ac_exeext &&
32218       $as_test_x conftest$ac_exeext; then
32219  am_cv_func_iconv=yes
32220else
32221  echo "$as_me: failed program was:" >&5
32222sed 's/^/| /' conftest.$ac_ext >&5
32223
32224
32225fi
32226
32227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32228      conftest$ac_exeext conftest.$ac_ext
32229    if test "$am_cv_func_iconv" != yes; then
32230      am_save_LIBS="$LIBS"
32231      LIBS="$LIBS $LIBICONV"
32232      cat >conftest.$ac_ext <<_ACEOF
32233/* confdefs.h.  */
32234_ACEOF
32235cat confdefs.h >>conftest.$ac_ext
32236cat >>conftest.$ac_ext <<_ACEOF
32237/* end confdefs.h.  */
32238#include <stdlib.h>
32239#include <iconv.h>
32240int
32241main ()
32242{
32243iconv_t cd = iconv_open("","");
32244         iconv(cd,NULL,NULL,NULL,NULL);
32245         iconv_close(cd);
32246  ;
32247  return 0;
32248}
32249_ACEOF
32250rm -f conftest.$ac_objext conftest$ac_exeext
32251if { (ac_try="$ac_link"
32252case "(($ac_try" in
32253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32254  *) ac_try_echo=$ac_try;;
32255esac
32256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32257  (eval "$ac_link") 2>conftest.er1
32258  ac_status=$?
32259  grep -v '^ *+' conftest.er1 >conftest.err
32260  rm -f conftest.er1
32261  cat conftest.err >&5
32262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32263  (exit $ac_status); } && {
32264	 test -z "$ac_c_werror_flag" ||
32265	 test ! -s conftest.err
32266       } && test -s conftest$ac_exeext &&
32267       $as_test_x conftest$ac_exeext; then
32268  am_cv_lib_iconv=yes
32269        am_cv_func_iconv=yes
32270else
32271  echo "$as_me: failed program was:" >&5
32272sed 's/^/| /' conftest.$ac_ext >&5
32273
32274
32275fi
32276
32277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32278      conftest$ac_exeext conftest.$ac_ext
32279      LIBS="$am_save_LIBS"
32280    fi
32281
32282fi
32283{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
32284echo "${ECHO_T}$am_cv_func_iconv" >&6; }
32285  if test "$am_cv_func_iconv" = yes; then
32286
32287cat >>confdefs.h <<\_ACEOF
32288#define HAVE_ICONV 1
32289_ACEOF
32290
32291  fi
32292  if test "$am_cv_lib_iconv" = yes; then
32293    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
32294echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
32295    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
32296echo "${ECHO_T}$LIBICONV" >&6; }
32297  else
32298            CPPFLAGS="$am_save_CPPFLAGS"
32299    LIBICONV=
32300    LTLIBICONV=
32301  fi
32302
32303
32304
32305  if test "$am_cv_func_iconv" = yes; then
32306    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
32307echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
32308    if test "${am_cv_proto_iconv+set}" = set; then
32309  echo $ECHO_N "(cached) $ECHO_C" >&6
32310else
32311
32312      cat >conftest.$ac_ext <<_ACEOF
32313/* confdefs.h.  */
32314_ACEOF
32315cat confdefs.h >>conftest.$ac_ext
32316cat >>conftest.$ac_ext <<_ACEOF
32317/* end confdefs.h.  */
32318
32319#include <stdlib.h>
32320#include <iconv.h>
32321extern
32322#ifdef __cplusplus
32323"C"
32324#endif
32325#if defined(__STDC__) || defined(__cplusplus)
32326size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
32327#else
32328size_t iconv();
32329#endif
32330
32331int
32332main ()
32333{
32334
32335  ;
32336  return 0;
32337}
32338_ACEOF
32339rm -f conftest.$ac_objext
32340if { (ac_try="$ac_compile"
32341case "(($ac_try" in
32342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32343  *) ac_try_echo=$ac_try;;
32344esac
32345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32346  (eval "$ac_compile") 2>conftest.er1
32347  ac_status=$?
32348  grep -v '^ *+' conftest.er1 >conftest.err
32349  rm -f conftest.er1
32350  cat conftest.err >&5
32351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352  (exit $ac_status); } && {
32353	 test -z "$ac_c_werror_flag" ||
32354	 test ! -s conftest.err
32355       } && test -s conftest.$ac_objext; then
32356  am_cv_proto_iconv_arg1=""
32357else
32358  echo "$as_me: failed program was:" >&5
32359sed 's/^/| /' conftest.$ac_ext >&5
32360
32361	am_cv_proto_iconv_arg1="const"
32362fi
32363
32364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32365      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);"
32366fi
32367
32368    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
32369    { echo "$as_me:$LINENO: result: ${ac_t:-
32370         }$am_cv_proto_iconv" >&5
32371echo "${ECHO_T}${ac_t:-
32372         }$am_cv_proto_iconv" >&6; }
32373
32374cat >>confdefs.h <<_ACEOF
32375#define ICONV_CONST $am_cv_proto_iconv_arg1
32376_ACEOF
32377
32378  fi
32379
32380
32381  { echo "$as_me:$LINENO: checking whether to use Java" >&5
32382echo $ECHO_N "checking whether to use Java... $ECHO_C" >&6; }
32383  # Check whether --enable-java was given.
32384if test "${enable_java+set}" = set; then
32385  enableval=$enable_java; JAVA_CHOICE="$enableval"
32386else
32387  JAVA_CHOICE=yes
32388fi
32389
32390  { echo "$as_me:$LINENO: result: $JAVA_CHOICE" >&5
32391echo "${ECHO_T}$JAVA_CHOICE" >&6; }
32392  if test "$JAVA_CHOICE" = yes; then
32393    # Check whether --enable-native-java was given.
32394if test "${enable_native_java+set}" = set; then
32395  enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
32396fi
32397
32398  fi
32399
32400
32401  # You need to invoke gt_JAVACOMP yourself, possibly with arguments.
32402  ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in"
32403
32404
32405
32406
32407  :
32408
32409
32410
32411
32412
32413
32414
32415
32416
32417
32418
32419
32420  :
32421
32422
32423
32424
32425
32426    if test $ac_cv_header_wchar_h = yes; then
32427    gl_LIBOBJS="$gl_LIBOBJS mbchar.$ac_objext"
32428
32429  :
32430
32431
32432
32433
32434
32435
32436for ac_func in iswcntrl
32437do
32438as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32439{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32440echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32441if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32442  echo $ECHO_N "(cached) $ECHO_C" >&6
32443else
32444  cat >conftest.$ac_ext <<_ACEOF
32445/* confdefs.h.  */
32446_ACEOF
32447cat confdefs.h >>conftest.$ac_ext
32448cat >>conftest.$ac_ext <<_ACEOF
32449/* end confdefs.h.  */
32450/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32451   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32452#define $ac_func innocuous_$ac_func
32453
32454/* System header to define __stub macros and hopefully few prototypes,
32455    which can conflict with char $ac_func (); below.
32456    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32457    <limits.h> exists even on freestanding compilers.  */
32458
32459#ifdef __STDC__
32460# include <limits.h>
32461#else
32462# include <assert.h>
32463#endif
32464
32465#undef $ac_func
32466
32467/* Override any GCC internal prototype to avoid an error.
32468   Use char because int might match the return type of a GCC
32469   builtin and then its argument prototype would still apply.  */
32470#ifdef __cplusplus
32471extern "C"
32472#endif
32473char $ac_func ();
32474/* The GNU C library defines this for functions which it implements
32475    to always fail with ENOSYS.  Some functions are actually named
32476    something starting with __ and the normal name is an alias.  */
32477#if defined __stub_$ac_func || defined __stub___$ac_func
32478choke me
32479#endif
32480
32481int
32482main ()
32483{
32484return $ac_func ();
32485  ;
32486  return 0;
32487}
32488_ACEOF
32489rm -f conftest.$ac_objext conftest$ac_exeext
32490if { (ac_try="$ac_link"
32491case "(($ac_try" in
32492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32493  *) ac_try_echo=$ac_try;;
32494esac
32495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32496  (eval "$ac_link") 2>conftest.er1
32497  ac_status=$?
32498  grep -v '^ *+' conftest.er1 >conftest.err
32499  rm -f conftest.er1
32500  cat conftest.err >&5
32501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502  (exit $ac_status); } && {
32503	 test -z "$ac_c_werror_flag" ||
32504	 test ! -s conftest.err
32505       } && test -s conftest$ac_exeext &&
32506       $as_test_x conftest$ac_exeext; then
32507  eval "$as_ac_var=yes"
32508else
32509  echo "$as_me: failed program was:" >&5
32510sed 's/^/| /' conftest.$ac_ext >&5
32511
32512	eval "$as_ac_var=no"
32513fi
32514
32515rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32516      conftest$ac_exeext conftest.$ac_ext
32517fi
32518ac_res=`eval echo '${'$as_ac_var'}'`
32519	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32520echo "${ECHO_T}$ac_res" >&6; }
32521if test `eval echo '${'$as_ac_var'}'` = yes; then
32522  cat >>confdefs.h <<_ACEOF
32523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32524_ACEOF
32525
32526fi
32527done
32528
32529  fi
32530
32531
32532
32533
32534  :
32535
32536
32537
32538for ac_func in memchr
32539do
32540as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32541{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32542echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32543if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32544  echo $ECHO_N "(cached) $ECHO_C" >&6
32545else
32546  cat >conftest.$ac_ext <<_ACEOF
32547/* confdefs.h.  */
32548_ACEOF
32549cat confdefs.h >>conftest.$ac_ext
32550cat >>conftest.$ac_ext <<_ACEOF
32551/* end confdefs.h.  */
32552/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32553   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32554#define $ac_func innocuous_$ac_func
32555
32556/* System header to define __stub macros and hopefully few prototypes,
32557    which can conflict with char $ac_func (); below.
32558    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32559    <limits.h> exists even on freestanding compilers.  */
32560
32561#ifdef __STDC__
32562# include <limits.h>
32563#else
32564# include <assert.h>
32565#endif
32566
32567#undef $ac_func
32568
32569/* Override any GCC internal prototype to avoid an error.
32570   Use char because int might match the return type of a GCC
32571   builtin and then its argument prototype would still apply.  */
32572#ifdef __cplusplus
32573extern "C"
32574#endif
32575char $ac_func ();
32576/* The GNU C library defines this for functions which it implements
32577    to always fail with ENOSYS.  Some functions are actually named
32578    something starting with __ and the normal name is an alias.  */
32579#if defined __stub_$ac_func || defined __stub___$ac_func
32580choke me
32581#endif
32582
32583int
32584main ()
32585{
32586return $ac_func ();
32587  ;
32588  return 0;
32589}
32590_ACEOF
32591rm -f conftest.$ac_objext conftest$ac_exeext
32592if { (ac_try="$ac_link"
32593case "(($ac_try" in
32594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32595  *) ac_try_echo=$ac_try;;
32596esac
32597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32598  (eval "$ac_link") 2>conftest.er1
32599  ac_status=$?
32600  grep -v '^ *+' conftest.er1 >conftest.err
32601  rm -f conftest.er1
32602  cat conftest.err >&5
32603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604  (exit $ac_status); } && {
32605	 test -z "$ac_c_werror_flag" ||
32606	 test ! -s conftest.err
32607       } && test -s conftest$ac_exeext &&
32608       $as_test_x conftest$ac_exeext; then
32609  eval "$as_ac_var=yes"
32610else
32611  echo "$as_me: failed program was:" >&5
32612sed 's/^/| /' conftest.$ac_ext >&5
32613
32614	eval "$as_ac_var=no"
32615fi
32616
32617rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32618      conftest$ac_exeext conftest.$ac_ext
32619fi
32620ac_res=`eval echo '${'$as_ac_var'}'`
32621	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32622echo "${ECHO_T}$ac_res" >&6; }
32623if test `eval echo '${'$as_ac_var'}'` = yes; then
32624  cat >>confdefs.h <<_ACEOF
32625#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32626_ACEOF
32627
32628else
32629  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32630fi
32631done
32632
32633  if test $ac_cv_func_memchr = no; then
32634
32635
32636for ac_header in bp-sym.h
32637do
32638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32639if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32640  { echo "$as_me:$LINENO: checking for $ac_header" >&5
32641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32643  echo $ECHO_N "(cached) $ECHO_C" >&6
32644fi
32645ac_res=`eval echo '${'$as_ac_Header'}'`
32646	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32647echo "${ECHO_T}$ac_res" >&6; }
32648else
32649  # Is the header compilable?
32650{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32651echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32652cat >conftest.$ac_ext <<_ACEOF
32653/* confdefs.h.  */
32654_ACEOF
32655cat confdefs.h >>conftest.$ac_ext
32656cat >>conftest.$ac_ext <<_ACEOF
32657/* end confdefs.h.  */
32658$ac_includes_default
32659#include <$ac_header>
32660_ACEOF
32661rm -f conftest.$ac_objext
32662if { (ac_try="$ac_compile"
32663case "(($ac_try" in
32664  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32665  *) ac_try_echo=$ac_try;;
32666esac
32667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32668  (eval "$ac_compile") 2>conftest.er1
32669  ac_status=$?
32670  grep -v '^ *+' conftest.er1 >conftest.err
32671  rm -f conftest.er1
32672  cat conftest.err >&5
32673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32674  (exit $ac_status); } && {
32675	 test -z "$ac_c_werror_flag" ||
32676	 test ! -s conftest.err
32677       } && test -s conftest.$ac_objext; then
32678  ac_header_compiler=yes
32679else
32680  echo "$as_me: failed program was:" >&5
32681sed 's/^/| /' conftest.$ac_ext >&5
32682
32683	ac_header_compiler=no
32684fi
32685
32686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32687{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32688echo "${ECHO_T}$ac_header_compiler" >&6; }
32689
32690# Is the header present?
32691{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32693cat >conftest.$ac_ext <<_ACEOF
32694/* confdefs.h.  */
32695_ACEOF
32696cat confdefs.h >>conftest.$ac_ext
32697cat >>conftest.$ac_ext <<_ACEOF
32698/* end confdefs.h.  */
32699#include <$ac_header>
32700_ACEOF
32701if { (ac_try="$ac_cpp conftest.$ac_ext"
32702case "(($ac_try" in
32703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32704  *) ac_try_echo=$ac_try;;
32705esac
32706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32707  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32708  ac_status=$?
32709  grep -v '^ *+' conftest.er1 >conftest.err
32710  rm -f conftest.er1
32711  cat conftest.err >&5
32712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713  (exit $ac_status); } >/dev/null && {
32714	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32715	 test ! -s conftest.err
32716       }; then
32717  ac_header_preproc=yes
32718else
32719  echo "$as_me: failed program was:" >&5
32720sed 's/^/| /' conftest.$ac_ext >&5
32721
32722  ac_header_preproc=no
32723fi
32724
32725rm -f conftest.err conftest.$ac_ext
32726{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32727echo "${ECHO_T}$ac_header_preproc" >&6; }
32728
32729# So?  What about this header?
32730case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32731  yes:no: )
32732    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32733echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32734    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32735echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32736    ac_header_preproc=yes
32737    ;;
32738  no:yes:* )
32739    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32740echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32741    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32742echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32743    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32744echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32745    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32746echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32747    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32748echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32749    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32750echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32751
32752    ;;
32753esac
32754{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32756if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32757  echo $ECHO_N "(cached) $ECHO_C" >&6
32758else
32759  eval "$as_ac_Header=\$ac_header_preproc"
32760fi
32761ac_res=`eval echo '${'$as_ac_Header'}'`
32762	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32763echo "${ECHO_T}$ac_res" >&6; }
32764
32765fi
32766if test `eval echo '${'$as_ac_Header'}'` = yes; then
32767  cat >>confdefs.h <<_ACEOF
32768#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32769_ACEOF
32770
32771fi
32772
32773done
32774
32775
32776  fi
32777
32778
32779
32780for ac_func in memmove
32781do
32782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32783{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32785if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32786  echo $ECHO_N "(cached) $ECHO_C" >&6
32787else
32788  cat >conftest.$ac_ext <<_ACEOF
32789/* confdefs.h.  */
32790_ACEOF
32791cat confdefs.h >>conftest.$ac_ext
32792cat >>conftest.$ac_ext <<_ACEOF
32793/* end confdefs.h.  */
32794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32795   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32796#define $ac_func innocuous_$ac_func
32797
32798/* System header to define __stub macros and hopefully few prototypes,
32799    which can conflict with char $ac_func (); below.
32800    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32801    <limits.h> exists even on freestanding compilers.  */
32802
32803#ifdef __STDC__
32804# include <limits.h>
32805#else
32806# include <assert.h>
32807#endif
32808
32809#undef $ac_func
32810
32811/* Override any GCC internal prototype to avoid an error.
32812   Use char because int might match the return type of a GCC
32813   builtin and then its argument prototype would still apply.  */
32814#ifdef __cplusplus
32815extern "C"
32816#endif
32817char $ac_func ();
32818/* The GNU C library defines this for functions which it implements
32819    to always fail with ENOSYS.  Some functions are actually named
32820    something starting with __ and the normal name is an alias.  */
32821#if defined __stub_$ac_func || defined __stub___$ac_func
32822choke me
32823#endif
32824
32825int
32826main ()
32827{
32828return $ac_func ();
32829  ;
32830  return 0;
32831}
32832_ACEOF
32833rm -f conftest.$ac_objext conftest$ac_exeext
32834if { (ac_try="$ac_link"
32835case "(($ac_try" in
32836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32837  *) ac_try_echo=$ac_try;;
32838esac
32839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32840  (eval "$ac_link") 2>conftest.er1
32841  ac_status=$?
32842  grep -v '^ *+' conftest.er1 >conftest.err
32843  rm -f conftest.er1
32844  cat conftest.err >&5
32845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32846  (exit $ac_status); } && {
32847	 test -z "$ac_c_werror_flag" ||
32848	 test ! -s conftest.err
32849       } && test -s conftest$ac_exeext &&
32850       $as_test_x conftest$ac_exeext; then
32851  eval "$as_ac_var=yes"
32852else
32853  echo "$as_me: failed program was:" >&5
32854sed 's/^/| /' conftest.$ac_ext >&5
32855
32856	eval "$as_ac_var=no"
32857fi
32858
32859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32860      conftest$ac_exeext conftest.$ac_ext
32861fi
32862ac_res=`eval echo '${'$as_ac_var'}'`
32863	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32864echo "${ECHO_T}$ac_res" >&6; }
32865if test `eval echo '${'$as_ac_var'}'` = yes; then
32866  cat >>confdefs.h <<_ACEOF
32867#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32868_ACEOF
32869
32870else
32871  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32872fi
32873done
32874
32875  if test $ac_cv_func_memmove = no; then
32876
32877  :
32878
32879  fi
32880
32881
32882
32883  :
32884
32885
32886
32887
32888
32889
32890
32891
32892for ac_func in readlink
32893do
32894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32895{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32897if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32898  echo $ECHO_N "(cached) $ECHO_C" >&6
32899else
32900  cat >conftest.$ac_ext <<_ACEOF
32901/* confdefs.h.  */
32902_ACEOF
32903cat confdefs.h >>conftest.$ac_ext
32904cat >>conftest.$ac_ext <<_ACEOF
32905/* end confdefs.h.  */
32906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32907   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32908#define $ac_func innocuous_$ac_func
32909
32910/* System header to define __stub macros and hopefully few prototypes,
32911    which can conflict with char $ac_func (); below.
32912    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32913    <limits.h> exists even on freestanding compilers.  */
32914
32915#ifdef __STDC__
32916# include <limits.h>
32917#else
32918# include <assert.h>
32919#endif
32920
32921#undef $ac_func
32922
32923/* Override any GCC internal prototype to avoid an error.
32924   Use char because int might match the return type of a GCC
32925   builtin and then its argument prototype would still apply.  */
32926#ifdef __cplusplus
32927extern "C"
32928#endif
32929char $ac_func ();
32930/* The GNU C library defines this for functions which it implements
32931    to always fail with ENOSYS.  Some functions are actually named
32932    something starting with __ and the normal name is an alias.  */
32933#if defined __stub_$ac_func || defined __stub___$ac_func
32934choke me
32935#endif
32936
32937int
32938main ()
32939{
32940return $ac_func ();
32941  ;
32942  return 0;
32943}
32944_ACEOF
32945rm -f conftest.$ac_objext conftest$ac_exeext
32946if { (ac_try="$ac_link"
32947case "(($ac_try" in
32948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32949  *) ac_try_echo=$ac_try;;
32950esac
32951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32952  (eval "$ac_link") 2>conftest.er1
32953  ac_status=$?
32954  grep -v '^ *+' conftest.er1 >conftest.err
32955  rm -f conftest.er1
32956  cat conftest.err >&5
32957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32958  (exit $ac_status); } && {
32959	 test -z "$ac_c_werror_flag" ||
32960	 test ! -s conftest.err
32961       } && test -s conftest$ac_exeext &&
32962       $as_test_x conftest$ac_exeext; then
32963  eval "$as_ac_var=yes"
32964else
32965  echo "$as_me: failed program was:" >&5
32966sed 's/^/| /' conftest.$ac_ext >&5
32967
32968	eval "$as_ac_var=no"
32969fi
32970
32971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32972      conftest$ac_exeext conftest.$ac_ext
32973fi
32974ac_res=`eval echo '${'$as_ac_var'}'`
32975	       { echo "$as_me:$LINENO: result: $ac_res" >&5
32976echo "${ECHO_T}$ac_res" >&6; }
32977if test `eval echo '${'$as_ac_var'}'` = yes; then
32978  cat >>confdefs.h <<_ACEOF
32979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32980_ACEOF
32981
32982fi
32983done
32984
32985  if test $ac_cv_func_readlink = no; then
32986    gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
32987
32988  :
32989
32990  fi
32991
32992
32993
32994  if test $RELOCATABLE = yes; then
32995    gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
32996  fi
32997
32998
32999
33000
33001for ac_func in setenv unsetenv
33002do
33003as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33004{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33005echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33006if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33007  echo $ECHO_N "(cached) $ECHO_C" >&6
33008else
33009  cat >conftest.$ac_ext <<_ACEOF
33010/* confdefs.h.  */
33011_ACEOF
33012cat confdefs.h >>conftest.$ac_ext
33013cat >>conftest.$ac_ext <<_ACEOF
33014/* end confdefs.h.  */
33015/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33016   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33017#define $ac_func innocuous_$ac_func
33018
33019/* System header to define __stub macros and hopefully few prototypes,
33020    which can conflict with char $ac_func (); below.
33021    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33022    <limits.h> exists even on freestanding compilers.  */
33023
33024#ifdef __STDC__
33025# include <limits.h>
33026#else
33027# include <assert.h>
33028#endif
33029
33030#undef $ac_func
33031
33032/* Override any GCC internal prototype to avoid an error.
33033   Use char because int might match the return type of a GCC
33034   builtin and then its argument prototype would still apply.  */
33035#ifdef __cplusplus
33036extern "C"
33037#endif
33038char $ac_func ();
33039/* The GNU C library defines this for functions which it implements
33040    to always fail with ENOSYS.  Some functions are actually named
33041    something starting with __ and the normal name is an alias.  */
33042#if defined __stub_$ac_func || defined __stub___$ac_func
33043choke me
33044#endif
33045
33046int
33047main ()
33048{
33049return $ac_func ();
33050  ;
33051  return 0;
33052}
33053_ACEOF
33054rm -f conftest.$ac_objext conftest$ac_exeext
33055if { (ac_try="$ac_link"
33056case "(($ac_try" in
33057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33058  *) ac_try_echo=$ac_try;;
33059esac
33060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33061  (eval "$ac_link") 2>conftest.er1
33062  ac_status=$?
33063  grep -v '^ *+' conftest.er1 >conftest.err
33064  rm -f conftest.er1
33065  cat conftest.err >&5
33066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33067  (exit $ac_status); } && {
33068	 test -z "$ac_c_werror_flag" ||
33069	 test ! -s conftest.err
33070       } && test -s conftest$ac_exeext &&
33071       $as_test_x conftest$ac_exeext; then
33072  eval "$as_ac_var=yes"
33073else
33074  echo "$as_me: failed program was:" >&5
33075sed 's/^/| /' conftest.$ac_ext >&5
33076
33077	eval "$as_ac_var=no"
33078fi
33079
33080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33081      conftest$ac_exeext conftest.$ac_ext
33082fi
33083ac_res=`eval echo '${'$as_ac_var'}'`
33084	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33085echo "${ECHO_T}$ac_res" >&6; }
33086if test `eval echo '${'$as_ac_var'}'` = yes; then
33087  cat >>confdefs.h <<_ACEOF
33088#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33089_ACEOF
33090
33091else
33092  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33093fi
33094done
33095
33096  if test $ac_cv_func_setenv = no; then
33097
33098
33099
33100  :
33101
33102
33103
33104
33105
33106
33107for ac_header in search.h
33108do
33109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33111  { echo "$as_me:$LINENO: checking for $ac_header" >&5
33112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33114  echo $ECHO_N "(cached) $ECHO_C" >&6
33115fi
33116ac_res=`eval echo '${'$as_ac_Header'}'`
33117	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33118echo "${ECHO_T}$ac_res" >&6; }
33119else
33120  # Is the header compilable?
33121{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33122echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33123cat >conftest.$ac_ext <<_ACEOF
33124/* confdefs.h.  */
33125_ACEOF
33126cat confdefs.h >>conftest.$ac_ext
33127cat >>conftest.$ac_ext <<_ACEOF
33128/* end confdefs.h.  */
33129$ac_includes_default
33130#include <$ac_header>
33131_ACEOF
33132rm -f conftest.$ac_objext
33133if { (ac_try="$ac_compile"
33134case "(($ac_try" in
33135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33136  *) ac_try_echo=$ac_try;;
33137esac
33138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33139  (eval "$ac_compile") 2>conftest.er1
33140  ac_status=$?
33141  grep -v '^ *+' conftest.er1 >conftest.err
33142  rm -f conftest.er1
33143  cat conftest.err >&5
33144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145  (exit $ac_status); } && {
33146	 test -z "$ac_c_werror_flag" ||
33147	 test ! -s conftest.err
33148       } && test -s conftest.$ac_objext; then
33149  ac_header_compiler=yes
33150else
33151  echo "$as_me: failed program was:" >&5
33152sed 's/^/| /' conftest.$ac_ext >&5
33153
33154	ac_header_compiler=no
33155fi
33156
33157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33158{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33159echo "${ECHO_T}$ac_header_compiler" >&6; }
33160
33161# Is the header present?
33162{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33163echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33164cat >conftest.$ac_ext <<_ACEOF
33165/* confdefs.h.  */
33166_ACEOF
33167cat confdefs.h >>conftest.$ac_ext
33168cat >>conftest.$ac_ext <<_ACEOF
33169/* end confdefs.h.  */
33170#include <$ac_header>
33171_ACEOF
33172if { (ac_try="$ac_cpp conftest.$ac_ext"
33173case "(($ac_try" in
33174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33175  *) ac_try_echo=$ac_try;;
33176esac
33177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33178  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33179  ac_status=$?
33180  grep -v '^ *+' conftest.er1 >conftest.err
33181  rm -f conftest.er1
33182  cat conftest.err >&5
33183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33184  (exit $ac_status); } >/dev/null && {
33185	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33186	 test ! -s conftest.err
33187       }; then
33188  ac_header_preproc=yes
33189else
33190  echo "$as_me: failed program was:" >&5
33191sed 's/^/| /' conftest.$ac_ext >&5
33192
33193  ac_header_preproc=no
33194fi
33195
33196rm -f conftest.err conftest.$ac_ext
33197{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33198echo "${ECHO_T}$ac_header_preproc" >&6; }
33199
33200# So?  What about this header?
33201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33202  yes:no: )
33203    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33204echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33205    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33206echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33207    ac_header_preproc=yes
33208    ;;
33209  no:yes:* )
33210    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33211echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33212    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33213echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33214    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33215echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33216    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33217echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33218    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33219echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33220    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33221echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33222
33223    ;;
33224esac
33225{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33228  echo $ECHO_N "(cached) $ECHO_C" >&6
33229else
33230  eval "$as_ac_Header=\$ac_header_preproc"
33231fi
33232ac_res=`eval echo '${'$as_ac_Header'}'`
33233	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33234echo "${ECHO_T}$ac_res" >&6; }
33235
33236fi
33237if test `eval echo '${'$as_ac_Header'}'` = yes; then
33238  cat >>confdefs.h <<_ACEOF
33239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33240_ACEOF
33241
33242fi
33243
33244done
33245
33246
33247for ac_func in tsearch
33248do
33249as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33250{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33251echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33252if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33253  echo $ECHO_N "(cached) $ECHO_C" >&6
33254else
33255  cat >conftest.$ac_ext <<_ACEOF
33256/* confdefs.h.  */
33257_ACEOF
33258cat confdefs.h >>conftest.$ac_ext
33259cat >>conftest.$ac_ext <<_ACEOF
33260/* end confdefs.h.  */
33261/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33262   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33263#define $ac_func innocuous_$ac_func
33264
33265/* System header to define __stub macros and hopefully few prototypes,
33266    which can conflict with char $ac_func (); below.
33267    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33268    <limits.h> exists even on freestanding compilers.  */
33269
33270#ifdef __STDC__
33271# include <limits.h>
33272#else
33273# include <assert.h>
33274#endif
33275
33276#undef $ac_func
33277
33278/* Override any GCC internal prototype to avoid an error.
33279   Use char because int might match the return type of a GCC
33280   builtin and then its argument prototype would still apply.  */
33281#ifdef __cplusplus
33282extern "C"
33283#endif
33284char $ac_func ();
33285/* The GNU C library defines this for functions which it implements
33286    to always fail with ENOSYS.  Some functions are actually named
33287    something starting with __ and the normal name is an alias.  */
33288#if defined __stub_$ac_func || defined __stub___$ac_func
33289choke me
33290#endif
33291
33292int
33293main ()
33294{
33295return $ac_func ();
33296  ;
33297  return 0;
33298}
33299_ACEOF
33300rm -f conftest.$ac_objext conftest$ac_exeext
33301if { (ac_try="$ac_link"
33302case "(($ac_try" in
33303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33304  *) ac_try_echo=$ac_try;;
33305esac
33306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33307  (eval "$ac_link") 2>conftest.er1
33308  ac_status=$?
33309  grep -v '^ *+' conftest.er1 >conftest.err
33310  rm -f conftest.er1
33311  cat conftest.err >&5
33312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313  (exit $ac_status); } && {
33314	 test -z "$ac_c_werror_flag" ||
33315	 test ! -s conftest.err
33316       } && test -s conftest$ac_exeext &&
33317       $as_test_x conftest$ac_exeext; then
33318  eval "$as_ac_var=yes"
33319else
33320  echo "$as_me: failed program was:" >&5
33321sed 's/^/| /' conftest.$ac_ext >&5
33322
33323	eval "$as_ac_var=no"
33324fi
33325
33326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33327      conftest$ac_exeext conftest.$ac_ext
33328fi
33329ac_res=`eval echo '${'$as_ac_var'}'`
33330	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33331echo "${ECHO_T}$ac_res" >&6; }
33332if test `eval echo '${'$as_ac_var'}'` = yes; then
33333  cat >>confdefs.h <<_ACEOF
33334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33335_ACEOF
33336
33337fi
33338done
33339
33340
33341
33342  { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
33343echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
33344  if test "${gt_cv_var_environ_declaration+set}" = set; then
33345  echo $ECHO_N "(cached) $ECHO_C" >&6
33346else
33347
33348    cat >conftest.$ac_ext <<_ACEOF
33349/* confdefs.h.  */
33350_ACEOF
33351cat confdefs.h >>conftest.$ac_ext
33352cat >>conftest.$ac_ext <<_ACEOF
33353/* end confdefs.h.  */
33354#include <unistd.h>
33355      extern struct { int foo; } environ;
33356int
33357main ()
33358{
33359environ.foo = 1;
33360  ;
33361  return 0;
33362}
33363_ACEOF
33364rm -f conftest.$ac_objext
33365if { (ac_try="$ac_compile"
33366case "(($ac_try" in
33367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33368  *) ac_try_echo=$ac_try;;
33369esac
33370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33371  (eval "$ac_compile") 2>conftest.er1
33372  ac_status=$?
33373  grep -v '^ *+' conftest.er1 >conftest.err
33374  rm -f conftest.er1
33375  cat conftest.err >&5
33376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377  (exit $ac_status); } && {
33378	 test -z "$ac_c_werror_flag" ||
33379	 test ! -s conftest.err
33380       } && test -s conftest.$ac_objext; then
33381  gt_cv_var_environ_declaration=no
33382else
33383  echo "$as_me: failed program was:" >&5
33384sed 's/^/| /' conftest.$ac_ext >&5
33385
33386	gt_cv_var_environ_declaration=yes
33387fi
33388
33389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33390fi
33391
33392  { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
33393echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
33394  if test $gt_cv_var_environ_declaration = yes; then
33395
33396cat >>confdefs.h <<\_ACEOF
33397#define HAVE_ENVIRON_DECL 1
33398_ACEOF
33399
33400  fi
33401
33402
33403  fi
33404  if test $ac_cv_func_unsetenv = no; then
33405
33406
33407  :
33408
33409
33410
33411
33412
33413
33414
33415  { echo "$as_me:$LINENO: checking if environ is properly declared" >&5
33416echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6; }
33417  if test "${gt_cv_var_environ_declaration+set}" = set; then
33418  echo $ECHO_N "(cached) $ECHO_C" >&6
33419else
33420
33421    cat >conftest.$ac_ext <<_ACEOF
33422/* confdefs.h.  */
33423_ACEOF
33424cat confdefs.h >>conftest.$ac_ext
33425cat >>conftest.$ac_ext <<_ACEOF
33426/* end confdefs.h.  */
33427#include <unistd.h>
33428      extern struct { int foo; } environ;
33429int
33430main ()
33431{
33432environ.foo = 1;
33433  ;
33434  return 0;
33435}
33436_ACEOF
33437rm -f conftest.$ac_objext
33438if { (ac_try="$ac_compile"
33439case "(($ac_try" in
33440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33441  *) ac_try_echo=$ac_try;;
33442esac
33443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33444  (eval "$ac_compile") 2>conftest.er1
33445  ac_status=$?
33446  grep -v '^ *+' conftest.er1 >conftest.err
33447  rm -f conftest.er1
33448  cat conftest.err >&5
33449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450  (exit $ac_status); } && {
33451	 test -z "$ac_c_werror_flag" ||
33452	 test ! -s conftest.err
33453       } && test -s conftest.$ac_objext; then
33454  gt_cv_var_environ_declaration=no
33455else
33456  echo "$as_me: failed program was:" >&5
33457sed 's/^/| /' conftest.$ac_ext >&5
33458
33459	gt_cv_var_environ_declaration=yes
33460fi
33461
33462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33463fi
33464
33465  { echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
33466echo "${ECHO_T}$gt_cv_var_environ_declaration" >&6; }
33467  if test $gt_cv_var_environ_declaration = yes; then
33468
33469cat >>confdefs.h <<\_ACEOF
33470#define HAVE_ENVIRON_DECL 1
33471_ACEOF
33472
33473  fi
33474
33475
33476  else
33477    { echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
33478echo $ECHO_N "checking for unsetenv() return type... $ECHO_C" >&6; }
33479if test "${gt_cv_func_unsetenv_ret+set}" = set; then
33480  echo $ECHO_N "(cached) $ECHO_C" >&6
33481else
33482  cat >conftest.$ac_ext <<_ACEOF
33483/* confdefs.h.  */
33484_ACEOF
33485cat confdefs.h >>conftest.$ac_ext
33486cat >>conftest.$ac_ext <<_ACEOF
33487/* end confdefs.h.  */
33488#include <stdlib.h>
33489extern
33490#ifdef __cplusplus
33491"C"
33492#endif
33493#if defined(__STDC__) || defined(__cplusplus)
33494int unsetenv (const char *name);
33495#else
33496int unsetenv();
33497#endif
33498
33499int
33500main ()
33501{
33502
33503  ;
33504  return 0;
33505}
33506_ACEOF
33507rm -f conftest.$ac_objext
33508if { (ac_try="$ac_compile"
33509case "(($ac_try" in
33510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33511  *) ac_try_echo=$ac_try;;
33512esac
33513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33514  (eval "$ac_compile") 2>conftest.er1
33515  ac_status=$?
33516  grep -v '^ *+' conftest.er1 >conftest.err
33517  rm -f conftest.er1
33518  cat conftest.err >&5
33519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33520  (exit $ac_status); } && {
33521	 test -z "$ac_c_werror_flag" ||
33522	 test ! -s conftest.err
33523       } && test -s conftest.$ac_objext; then
33524  gt_cv_func_unsetenv_ret='int'
33525else
33526  echo "$as_me: failed program was:" >&5
33527sed 's/^/| /' conftest.$ac_ext >&5
33528
33529	gt_cv_func_unsetenv_ret='void'
33530fi
33531
33532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33533fi
33534{ echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
33535echo "${ECHO_T}$gt_cv_func_unsetenv_ret" >&6; }
33536    if test $gt_cv_func_unsetenv_ret = 'void'; then
33537
33538cat >>confdefs.h <<\_ACEOF
33539#define VOID_UNSETENV 1
33540_ACEOF
33541
33542    fi
33543  fi
33544
33545
33546  { echo "$as_me:$LINENO: checking for ssize_t" >&5
33547echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
33548if test "${gt_cv_ssize_t+set}" = set; then
33549  echo $ECHO_N "(cached) $ECHO_C" >&6
33550else
33551  cat >conftest.$ac_ext <<_ACEOF
33552/* confdefs.h.  */
33553_ACEOF
33554cat confdefs.h >>conftest.$ac_ext
33555cat >>conftest.$ac_ext <<_ACEOF
33556/* end confdefs.h.  */
33557#include <sys/types.h>
33558int
33559main ()
33560{
33561int x = sizeof (ssize_t *) + sizeof (ssize_t);
33562        return !x;
33563  ;
33564  return 0;
33565}
33566_ACEOF
33567rm -f conftest.$ac_objext
33568if { (ac_try="$ac_compile"
33569case "(($ac_try" in
33570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33571  *) ac_try_echo=$ac_try;;
33572esac
33573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33574  (eval "$ac_compile") 2>conftest.er1
33575  ac_status=$?
33576  grep -v '^ *+' conftest.er1 >conftest.err
33577  rm -f conftest.er1
33578  cat conftest.err >&5
33579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33580  (exit $ac_status); } && {
33581	 test -z "$ac_c_werror_flag" ||
33582	 test ! -s conftest.err
33583       } && test -s conftest.$ac_objext; then
33584  gt_cv_ssize_t=yes
33585else
33586  echo "$as_me: failed program was:" >&5
33587sed 's/^/| /' conftest.$ac_ext >&5
33588
33589	gt_cv_ssize_t=no
33590fi
33591
33592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33593fi
33594{ echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
33595echo "${ECHO_T}$gt_cv_ssize_t" >&6; }
33596  if test $gt_cv_ssize_t = no; then
33597
33598cat >>confdefs.h <<\_ACEOF
33599#define ssize_t int
33600_ACEOF
33601
33602  fi
33603
33604
33605
33606
33607  # Define two additional variables used in the Makefile substitution.
33608
33609  if test "$ac_cv_header_stdbool_h" = yes; then
33610    STDBOOL_H=''
33611  else
33612    STDBOOL_H='stdbool.h'
33613  fi
33614
33615
33616  if test "$ac_cv_type__Bool" = yes; then
33617    HAVE__BOOL=1
33618  else
33619    HAVE__BOOL=0
33620  fi
33621
33622
33623
33624
33625for ac_func in strdup
33626do
33627as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33628{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33629echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33630if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33631  echo $ECHO_N "(cached) $ECHO_C" >&6
33632else
33633  cat >conftest.$ac_ext <<_ACEOF
33634/* confdefs.h.  */
33635_ACEOF
33636cat confdefs.h >>conftest.$ac_ext
33637cat >>conftest.$ac_ext <<_ACEOF
33638/* end confdefs.h.  */
33639/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33640   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33641#define $ac_func innocuous_$ac_func
33642
33643/* System header to define __stub macros and hopefully few prototypes,
33644    which can conflict with char $ac_func (); below.
33645    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33646    <limits.h> exists even on freestanding compilers.  */
33647
33648#ifdef __STDC__
33649# include <limits.h>
33650#else
33651# include <assert.h>
33652#endif
33653
33654#undef $ac_func
33655
33656/* Override any GCC internal prototype to avoid an error.
33657   Use char because int might match the return type of a GCC
33658   builtin and then its argument prototype would still apply.  */
33659#ifdef __cplusplus
33660extern "C"
33661#endif
33662char $ac_func ();
33663/* The GNU C library defines this for functions which it implements
33664    to always fail with ENOSYS.  Some functions are actually named
33665    something starting with __ and the normal name is an alias.  */
33666#if defined __stub_$ac_func || defined __stub___$ac_func
33667choke me
33668#endif
33669
33670int
33671main ()
33672{
33673return $ac_func ();
33674  ;
33675  return 0;
33676}
33677_ACEOF
33678rm -f conftest.$ac_objext conftest$ac_exeext
33679if { (ac_try="$ac_link"
33680case "(($ac_try" in
33681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33682  *) ac_try_echo=$ac_try;;
33683esac
33684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33685  (eval "$ac_link") 2>conftest.er1
33686  ac_status=$?
33687  grep -v '^ *+' conftest.er1 >conftest.err
33688  rm -f conftest.er1
33689  cat conftest.err >&5
33690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691  (exit $ac_status); } && {
33692	 test -z "$ac_c_werror_flag" ||
33693	 test ! -s conftest.err
33694       } && test -s conftest$ac_exeext &&
33695       $as_test_x conftest$ac_exeext; then
33696  eval "$as_ac_var=yes"
33697else
33698  echo "$as_me: failed program was:" >&5
33699sed 's/^/| /' conftest.$ac_ext >&5
33700
33701	eval "$as_ac_var=no"
33702fi
33703
33704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33705      conftest$ac_exeext conftest.$ac_ext
33706fi
33707ac_res=`eval echo '${'$as_ac_var'}'`
33708	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33709echo "${ECHO_T}$ac_res" >&6; }
33710if test `eval echo '${'$as_ac_var'}'` = yes; then
33711  cat >>confdefs.h <<_ACEOF
33712#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33713_ACEOF
33714
33715else
33716  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33717fi
33718done
33719
33720
33721  :
33722
33723
33724
33725
33726
33727  :
33728
33729
33730
33731for ac_func in strerror
33732do
33733as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33734{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33735echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33736if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33737  echo $ECHO_N "(cached) $ECHO_C" >&6
33738else
33739  cat >conftest.$ac_ext <<_ACEOF
33740/* confdefs.h.  */
33741_ACEOF
33742cat confdefs.h >>conftest.$ac_ext
33743cat >>conftest.$ac_ext <<_ACEOF
33744/* end confdefs.h.  */
33745/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33746   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33747#define $ac_func innocuous_$ac_func
33748
33749/* System header to define __stub macros and hopefully few prototypes,
33750    which can conflict with char $ac_func (); below.
33751    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33752    <limits.h> exists even on freestanding compilers.  */
33753
33754#ifdef __STDC__
33755# include <limits.h>
33756#else
33757# include <assert.h>
33758#endif
33759
33760#undef $ac_func
33761
33762/* Override any GCC internal prototype to avoid an error.
33763   Use char because int might match the return type of a GCC
33764   builtin and then its argument prototype would still apply.  */
33765#ifdef __cplusplus
33766extern "C"
33767#endif
33768char $ac_func ();
33769/* The GNU C library defines this for functions which it implements
33770    to always fail with ENOSYS.  Some functions are actually named
33771    something starting with __ and the normal name is an alias.  */
33772#if defined __stub_$ac_func || defined __stub___$ac_func
33773choke me
33774#endif
33775
33776int
33777main ()
33778{
33779return $ac_func ();
33780  ;
33781  return 0;
33782}
33783_ACEOF
33784rm -f conftest.$ac_objext conftest$ac_exeext
33785if { (ac_try="$ac_link"
33786case "(($ac_try" in
33787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33788  *) ac_try_echo=$ac_try;;
33789esac
33790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33791  (eval "$ac_link") 2>conftest.er1
33792  ac_status=$?
33793  grep -v '^ *+' conftest.er1 >conftest.err
33794  rm -f conftest.er1
33795  cat conftest.err >&5
33796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797  (exit $ac_status); } && {
33798	 test -z "$ac_c_werror_flag" ||
33799	 test ! -s conftest.err
33800       } && test -s conftest$ac_exeext &&
33801       $as_test_x conftest$ac_exeext; then
33802  eval "$as_ac_var=yes"
33803else
33804  echo "$as_me: failed program was:" >&5
33805sed 's/^/| /' conftest.$ac_ext >&5
33806
33807	eval "$as_ac_var=no"
33808fi
33809
33810rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33811      conftest$ac_exeext conftest.$ac_ext
33812fi
33813ac_res=`eval echo '${'$as_ac_var'}'`
33814	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33815echo "${ECHO_T}$ac_res" >&6; }
33816if test `eval echo '${'$as_ac_var'}'` = yes; then
33817  cat >>confdefs.h <<_ACEOF
33818#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33819_ACEOF
33820
33821else
33822  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33823fi
33824done
33825
33826  if test $ac_cv_func_strerror = no; then
33827
33828  :
33829
33830  fi
33831
33832  if test $gl_cond_libtool = false; then
33833    gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
33834    gl_libdeps="$gl_libdeps $LIBICONV"
33835  fi
33836
33837      gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
33838
33839
33840  :
33841
33842
33843
33844
33845for ac_func in strtol
33846do
33847as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33848{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33849echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33850if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33851  echo $ECHO_N "(cached) $ECHO_C" >&6
33852else
33853  cat >conftest.$ac_ext <<_ACEOF
33854/* confdefs.h.  */
33855_ACEOF
33856cat confdefs.h >>conftest.$ac_ext
33857cat >>conftest.$ac_ext <<_ACEOF
33858/* end confdefs.h.  */
33859/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33860   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33861#define $ac_func innocuous_$ac_func
33862
33863/* System header to define __stub macros and hopefully few prototypes,
33864    which can conflict with char $ac_func (); below.
33865    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33866    <limits.h> exists even on freestanding compilers.  */
33867
33868#ifdef __STDC__
33869# include <limits.h>
33870#else
33871# include <assert.h>
33872#endif
33873
33874#undef $ac_func
33875
33876/* Override any GCC internal prototype to avoid an error.
33877   Use char because int might match the return type of a GCC
33878   builtin and then its argument prototype would still apply.  */
33879#ifdef __cplusplus
33880extern "C"
33881#endif
33882char $ac_func ();
33883/* The GNU C library defines this for functions which it implements
33884    to always fail with ENOSYS.  Some functions are actually named
33885    something starting with __ and the normal name is an alias.  */
33886#if defined __stub_$ac_func || defined __stub___$ac_func
33887choke me
33888#endif
33889
33890int
33891main ()
33892{
33893return $ac_func ();
33894  ;
33895  return 0;
33896}
33897_ACEOF
33898rm -f conftest.$ac_objext conftest$ac_exeext
33899if { (ac_try="$ac_link"
33900case "(($ac_try" in
33901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33902  *) ac_try_echo=$ac_try;;
33903esac
33904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33905  (eval "$ac_link") 2>conftest.er1
33906  ac_status=$?
33907  grep -v '^ *+' conftest.er1 >conftest.err
33908  rm -f conftest.er1
33909  cat conftest.err >&5
33910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911  (exit $ac_status); } && {
33912	 test -z "$ac_c_werror_flag" ||
33913	 test ! -s conftest.err
33914       } && test -s conftest$ac_exeext &&
33915       $as_test_x conftest$ac_exeext; then
33916  eval "$as_ac_var=yes"
33917else
33918  echo "$as_me: failed program was:" >&5
33919sed 's/^/| /' conftest.$ac_ext >&5
33920
33921	eval "$as_ac_var=no"
33922fi
33923
33924rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33925      conftest$ac_exeext conftest.$ac_ext
33926fi
33927ac_res=`eval echo '${'$as_ac_var'}'`
33928	       { echo "$as_me:$LINENO: result: $ac_res" >&5
33929echo "${ECHO_T}$ac_res" >&6; }
33930if test `eval echo '${'$as_ac_var'}'` = yes; then
33931  cat >>confdefs.h <<_ACEOF
33932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33933_ACEOF
33934
33935else
33936  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33937fi
33938done
33939
33940
33941
33942
33943for ac_func in strtoul
33944do
33945as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33946{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33947echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33948if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33949  echo $ECHO_N "(cached) $ECHO_C" >&6
33950else
33951  cat >conftest.$ac_ext <<_ACEOF
33952/* confdefs.h.  */
33953_ACEOF
33954cat confdefs.h >>conftest.$ac_ext
33955cat >>conftest.$ac_ext <<_ACEOF
33956/* end confdefs.h.  */
33957/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33958   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33959#define $ac_func innocuous_$ac_func
33960
33961/* System header to define __stub macros and hopefully few prototypes,
33962    which can conflict with char $ac_func (); below.
33963    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33964    <limits.h> exists even on freestanding compilers.  */
33965
33966#ifdef __STDC__
33967# include <limits.h>
33968#else
33969# include <assert.h>
33970#endif
33971
33972#undef $ac_func
33973
33974/* Override any GCC internal prototype to avoid an error.
33975   Use char because int might match the return type of a GCC
33976   builtin and then its argument prototype would still apply.  */
33977#ifdef __cplusplus
33978extern "C"
33979#endif
33980char $ac_func ();
33981/* The GNU C library defines this for functions which it implements
33982    to always fail with ENOSYS.  Some functions are actually named
33983    something starting with __ and the normal name is an alias.  */
33984#if defined __stub_$ac_func || defined __stub___$ac_func
33985choke me
33986#endif
33987
33988int
33989main ()
33990{
33991return $ac_func ();
33992  ;
33993  return 0;
33994}
33995_ACEOF
33996rm -f conftest.$ac_objext conftest$ac_exeext
33997if { (ac_try="$ac_link"
33998case "(($ac_try" in
33999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34000  *) ac_try_echo=$ac_try;;
34001esac
34002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34003  (eval "$ac_link") 2>conftest.er1
34004  ac_status=$?
34005  grep -v '^ *+' conftest.er1 >conftest.err
34006  rm -f conftest.er1
34007  cat conftest.err >&5
34008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009  (exit $ac_status); } && {
34010	 test -z "$ac_c_werror_flag" ||
34011	 test ! -s conftest.err
34012       } && test -s conftest$ac_exeext &&
34013       $as_test_x conftest$ac_exeext; then
34014  eval "$as_ac_var=yes"
34015else
34016  echo "$as_me: failed program was:" >&5
34017sed 's/^/| /' conftest.$ac_ext >&5
34018
34019	eval "$as_ac_var=no"
34020fi
34021
34022rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34023      conftest$ac_exeext conftest.$ac_ext
34024fi
34025ac_res=`eval echo '${'$as_ac_var'}'`
34026	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34027echo "${ECHO_T}$ac_res" >&6; }
34028if test `eval echo '${'$as_ac_var'}'` = yes; then
34029  cat >>confdefs.h <<_ACEOF
34030#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34031_ACEOF
34032
34033else
34034  gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34035fi
34036done
34037
34038
34039
34040
34041for ac_header in unistd.h
34042do
34043as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34044if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34045  { echo "$as_me:$LINENO: checking for $ac_header" >&5
34046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34048  echo $ECHO_N "(cached) $ECHO_C" >&6
34049fi
34050ac_res=`eval echo '${'$as_ac_Header'}'`
34051	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34052echo "${ECHO_T}$ac_res" >&6; }
34053else
34054  # Is the header compilable?
34055{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34056echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
34057cat >conftest.$ac_ext <<_ACEOF
34058/* confdefs.h.  */
34059_ACEOF
34060cat confdefs.h >>conftest.$ac_ext
34061cat >>conftest.$ac_ext <<_ACEOF
34062/* end confdefs.h.  */
34063$ac_includes_default
34064#include <$ac_header>
34065_ACEOF
34066rm -f conftest.$ac_objext
34067if { (ac_try="$ac_compile"
34068case "(($ac_try" in
34069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34070  *) ac_try_echo=$ac_try;;
34071esac
34072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34073  (eval "$ac_compile") 2>conftest.er1
34074  ac_status=$?
34075  grep -v '^ *+' conftest.er1 >conftest.err
34076  rm -f conftest.er1
34077  cat conftest.err >&5
34078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34079  (exit $ac_status); } && {
34080	 test -z "$ac_c_werror_flag" ||
34081	 test ! -s conftest.err
34082       } && test -s conftest.$ac_objext; then
34083  ac_header_compiler=yes
34084else
34085  echo "$as_me: failed program was:" >&5
34086sed 's/^/| /' conftest.$ac_ext >&5
34087
34088	ac_header_compiler=no
34089fi
34090
34091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34092{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34093echo "${ECHO_T}$ac_header_compiler" >&6; }
34094
34095# Is the header present?
34096{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34097echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
34098cat >conftest.$ac_ext <<_ACEOF
34099/* confdefs.h.  */
34100_ACEOF
34101cat confdefs.h >>conftest.$ac_ext
34102cat >>conftest.$ac_ext <<_ACEOF
34103/* end confdefs.h.  */
34104#include <$ac_header>
34105_ACEOF
34106if { (ac_try="$ac_cpp conftest.$ac_ext"
34107case "(($ac_try" in
34108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34109  *) ac_try_echo=$ac_try;;
34110esac
34111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34112  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34113  ac_status=$?
34114  grep -v '^ *+' conftest.er1 >conftest.err
34115  rm -f conftest.er1
34116  cat conftest.err >&5
34117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34118  (exit $ac_status); } >/dev/null && {
34119	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34120	 test ! -s conftest.err
34121       }; then
34122  ac_header_preproc=yes
34123else
34124  echo "$as_me: failed program was:" >&5
34125sed 's/^/| /' conftest.$ac_ext >&5
34126
34127  ac_header_preproc=no
34128fi
34129
34130rm -f conftest.err conftest.$ac_ext
34131{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34132echo "${ECHO_T}$ac_header_preproc" >&6; }
34133
34134# So?  What about this header?
34135case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34136  yes:no: )
34137    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34138echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34139    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34140echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34141    ac_header_preproc=yes
34142    ;;
34143  no:yes:* )
34144    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34145echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34146    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34147echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34148    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34149echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34150    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34151echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34152    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34153echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34154    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34155echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34156
34157    ;;
34158esac
34159{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34162  echo $ECHO_N "(cached) $ECHO_C" >&6
34163else
34164  eval "$as_ac_Header=\$ac_header_preproc"
34165fi
34166ac_res=`eval echo '${'$as_ac_Header'}'`
34167	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34168echo "${ECHO_T}$ac_res" >&6; }
34169
34170fi
34171if test `eval echo '${'$as_ac_Header'}'` = yes; then
34172  cat >>confdefs.h <<_ACEOF
34173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34174_ACEOF
34175
34176    UNISTD_H=''
34177
34178else
34179
34180    UNISTD_H='unistd.h'
34181
34182fi
34183
34184done
34185
34186
34187
34188
34189
34190cat >>confdefs.h <<\_ACEOF
34191#define USE_UNLOCKED_IO 1
34192_ACEOF
34193
34194
34195
34196
34197
34198  :
34199
34200
34201
34202
34203
34204
34205  :
34206
34207
34208
34209
34210
34211
34212  :
34213
34214
34215
34216
34217
34218
34219  :
34220
34221
34222
34223
34224
34225
34226  :
34227
34228
34229
34230
34231
34232
34233  :
34234
34235
34236
34237
34238
34239
34240  :
34241
34242
34243
34244
34245
34246
34247  :
34248
34249
34250
34251
34252
34253
34254  :
34255
34256
34257
34258
34259
34260
34261  :
34262
34263
34264
34265
34266
34267
34268  :
34269
34270
34271
34272
34273
34274
34275  :
34276
34277
34278
34279
34280
34281
34282  :
34283
34284
34285
34286
34287
34288
34289
34290
34291
34292
34293
34294
34295
34296
34297  :
34298
34299
34300
34301
34302
34303
34304
34305
34306
34307  :
34308
34309
34310
34311
34312
34313
34314
34315
34316
34317  { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
34318echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; }
34319if test "${ac_cv_have_decl_wcwidth+set}" = set; then
34320  echo $ECHO_N "(cached) $ECHO_C" >&6
34321else
34322  cat >conftest.$ac_ext <<_ACEOF
34323/* confdefs.h.  */
34324_ACEOF
34325cat confdefs.h >>conftest.$ac_ext
34326cat >>conftest.$ac_ext <<_ACEOF
34327/* end confdefs.h.  */
34328
34329/* AIX 3.2.5 declares wcwidth in <string.h>. */
34330#include <string.h>
34331#if HAVE_WCHAR_H
34332/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34333   <wchar.h>.
34334   BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
34335   <wchar.h>.  */
34336# include <stdio.h>
34337# include <time.h>
34338# include <wchar.h>
34339#endif
34340
34341
34342int
34343main ()
34344{
34345#ifndef wcwidth
34346  (void) wcwidth;
34347#endif
34348
34349  ;
34350  return 0;
34351}
34352_ACEOF
34353rm -f conftest.$ac_objext
34354if { (ac_try="$ac_compile"
34355case "(($ac_try" in
34356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34357  *) ac_try_echo=$ac_try;;
34358esac
34359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34360  (eval "$ac_compile") 2>conftest.er1
34361  ac_status=$?
34362  grep -v '^ *+' conftest.er1 >conftest.err
34363  rm -f conftest.er1
34364  cat conftest.err >&5
34365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34366  (exit $ac_status); } && {
34367	 test -z "$ac_c_werror_flag" ||
34368	 test ! -s conftest.err
34369       } && test -s conftest.$ac_objext; then
34370  ac_cv_have_decl_wcwidth=yes
34371else
34372  echo "$as_me: failed program was:" >&5
34373sed 's/^/| /' conftest.$ac_ext >&5
34374
34375	ac_cv_have_decl_wcwidth=no
34376fi
34377
34378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34379fi
34380{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
34381echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; }
34382if test $ac_cv_have_decl_wcwidth = yes; then
34383
34384cat >>confdefs.h <<_ACEOF
34385#define HAVE_DECL_WCWIDTH 1
34386_ACEOF
34387
34388
34389else
34390  cat >>confdefs.h <<_ACEOF
34391#define HAVE_DECL_WCWIDTH 0
34392_ACEOF
34393
34394
34395fi
34396
34397
34398
34399
34400
34401  :
34402
34403
34404
34405
34406
34407
34408  LIBGRT_LIBDEPS="$gl_libdeps"
34409
34410  LIBGRT_LTLIBDEPS="$gl_ltlibdeps"
34411
34412
34413
34414
34415
34416{ echo "$as_me:$LINENO: checking for size_t" >&5
34417echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
34418if test "${ac_cv_type_size_t+set}" = set; then
34419  echo $ECHO_N "(cached) $ECHO_C" >&6
34420else
34421  cat >conftest.$ac_ext <<_ACEOF
34422/* confdefs.h.  */
34423_ACEOF
34424cat confdefs.h >>conftest.$ac_ext
34425cat >>conftest.$ac_ext <<_ACEOF
34426/* end confdefs.h.  */
34427$ac_includes_default
34428typedef size_t ac__type_new_;
34429int
34430main ()
34431{
34432if ((ac__type_new_ *) 0)
34433  return 0;
34434if (sizeof (ac__type_new_))
34435  return 0;
34436  ;
34437  return 0;
34438}
34439_ACEOF
34440rm -f conftest.$ac_objext
34441if { (ac_try="$ac_compile"
34442case "(($ac_try" in
34443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34444  *) ac_try_echo=$ac_try;;
34445esac
34446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34447  (eval "$ac_compile") 2>conftest.er1
34448  ac_status=$?
34449  grep -v '^ *+' conftest.er1 >conftest.err
34450  rm -f conftest.er1
34451  cat conftest.err >&5
34452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34453  (exit $ac_status); } && {
34454	 test -z "$ac_c_werror_flag" ||
34455	 test ! -s conftest.err
34456       } && test -s conftest.$ac_objext; then
34457  ac_cv_type_size_t=yes
34458else
34459  echo "$as_me: failed program was:" >&5
34460sed 's/^/| /' conftest.$ac_ext >&5
34461
34462	ac_cv_type_size_t=no
34463fi
34464
34465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34466fi
34467{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34468echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
34469if test $ac_cv_type_size_t = yes; then
34470  :
34471else
34472
34473cat >>confdefs.h <<_ACEOF
34474#define size_t unsigned int
34475_ACEOF
34476
34477fi
34478
34479
34480for ac_func in setlocale
34481do
34482as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34483{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34484echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34485if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34486  echo $ECHO_N "(cached) $ECHO_C" >&6
34487else
34488  cat >conftest.$ac_ext <<_ACEOF
34489/* confdefs.h.  */
34490_ACEOF
34491cat confdefs.h >>conftest.$ac_ext
34492cat >>conftest.$ac_ext <<_ACEOF
34493/* end confdefs.h.  */
34494/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34495   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34496#define $ac_func innocuous_$ac_func
34497
34498/* System header to define __stub macros and hopefully few prototypes,
34499    which can conflict with char $ac_func (); below.
34500    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34501    <limits.h> exists even on freestanding compilers.  */
34502
34503#ifdef __STDC__
34504# include <limits.h>
34505#else
34506# include <assert.h>
34507#endif
34508
34509#undef $ac_func
34510
34511/* Override any GCC internal prototype to avoid an error.
34512   Use char because int might match the return type of a GCC
34513   builtin and then its argument prototype would still apply.  */
34514#ifdef __cplusplus
34515extern "C"
34516#endif
34517char $ac_func ();
34518/* The GNU C library defines this for functions which it implements
34519    to always fail with ENOSYS.  Some functions are actually named
34520    something starting with __ and the normal name is an alias.  */
34521#if defined __stub_$ac_func || defined __stub___$ac_func
34522choke me
34523#endif
34524
34525int
34526main ()
34527{
34528return $ac_func ();
34529  ;
34530  return 0;
34531}
34532_ACEOF
34533rm -f conftest.$ac_objext conftest$ac_exeext
34534if { (ac_try="$ac_link"
34535case "(($ac_try" in
34536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34537  *) ac_try_echo=$ac_try;;
34538esac
34539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34540  (eval "$ac_link") 2>conftest.er1
34541  ac_status=$?
34542  grep -v '^ *+' conftest.er1 >conftest.err
34543  rm -f conftest.er1
34544  cat conftest.err >&5
34545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34546  (exit $ac_status); } && {
34547	 test -z "$ac_c_werror_flag" ||
34548	 test ! -s conftest.err
34549       } && test -s conftest$ac_exeext &&
34550       $as_test_x conftest$ac_exeext; then
34551  eval "$as_ac_var=yes"
34552else
34553  echo "$as_me: failed program was:" >&5
34554sed 's/^/| /' conftest.$ac_ext >&5
34555
34556	eval "$as_ac_var=no"
34557fi
34558
34559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34560      conftest$ac_exeext conftest.$ac_ext
34561fi
34562ac_res=`eval echo '${'$as_ac_var'}'`
34563	       { echo "$as_me:$LINENO: result: $ac_res" >&5
34564echo "${ECHO_T}$ac_res" >&6; }
34565if test `eval echo '${'$as_ac_var'}'` = yes; then
34566  cat >>confdefs.h <<_ACEOF
34567#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34568_ACEOF
34569
34570fi
34571done
34572
34573
34574
34575
34576
34577ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
34578# Extract the first word of "perl", so it can be a program name with args.
34579set dummy perl; ac_word=$2
34580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34582if test "${ac_cv_path_PERL+set}" = set; then
34583  echo $ECHO_N "(cached) $ECHO_C" >&6
34584else
34585  case $PERL in
34586  [\\/]* | ?:[\\/]*)
34587  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34588  ;;
34589  *)
34590  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34591for as_dir in $PATH
34592do
34593  IFS=$as_save_IFS
34594  test -z "$as_dir" && as_dir=.
34595  for ac_exec_ext in '' $ac_executable_extensions; do
34596  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34597    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
34598    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34599    break 2
34600  fi
34601done
34602done
34603IFS=$as_save_IFS
34604
34605  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
34606  ;;
34607esac
34608fi
34609PERL=$ac_cv_path_PERL
34610if test -n "$PERL"; then
34611  { echo "$as_me:$LINENO: result: $PERL" >&5
34612echo "${ECHO_T}$PERL" >&6; }
34613else
34614  { echo "$as_me:$LINENO: result: no" >&5
34615echo "${ECHO_T}no" >&6; }
34616fi
34617
34618
34619
34620CROSS_COMPILING=$cross_compiling
34621
34622
34623
34624for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
34625do
34626  # Extract the first word of "$ac_prog", so it can be a program name with args.
34627set dummy $ac_prog; ac_word=$2
34628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
34629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34630if test "${ac_cv_prog_CXX+set}" = set; then
34631  echo $ECHO_N "(cached) $ECHO_C" >&6
34632else
34633  if test -n "$CXX"; then
34634  ac_cv_prog_CXX="$CXX" # Let the user override the test.
34635else
34636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34637for as_dir in $PATH
34638do
34639  IFS=$as_save_IFS
34640  test -z "$as_dir" && as_dir=.
34641  for ac_exec_ext in '' $ac_executable_extensions; do
34642  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34643    ac_cv_prog_CXX="$ac_prog"
34644    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34645    break 2
34646  fi
34647done
34648done
34649IFS=$as_save_IFS
34650
34651fi
34652fi
34653CXX=$ac_cv_prog_CXX
34654if test -n "$CXX"; then
34655  { echo "$as_me:$LINENO: result: $CXX" >&5
34656echo "${ECHO_T}$CXX" >&6; }
34657else
34658  { echo "$as_me:$LINENO: result: no" >&5
34659echo "${ECHO_T}no" >&6; }
34660fi
34661
34662
34663  test -n "$CXX" && break
34664done
34665test -n "$CXX" || CXX=":"
34666
34667if test "$CXX" != ":"; then
34668      { echo "$as_me:$LINENO: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
34669echo $ECHO_N "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... $ECHO_C" >&6; }
34670  ac_ext=cpp
34671ac_cpp='$CXXCPP $CPPFLAGS'
34672ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34673ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34674ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34675
34676
34677
34678  echo 'int main () { return 0; }' > conftest.$ac_ext
34679  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34680  (eval $ac_link) 2>&5
34681  ac_status=$?
34682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683  (exit $ac_status); } && test -s conftest$ac_exeext; then
34684    ac_cv_prog_cxx_works=yes
34685    if (./conftest; exit) 2>/dev/null; then
34686      ac_cv_prog_cxx_cross=no
34687    else
34688      ac_cv_prog_cxx_cross=yes
34689    fi
34690  else
34691    ac_cv_prog_cxx_works=no
34692  fi
34693  rm -fr conftest*
34694  ac_ext=c
34695ac_cpp='$CPP $CPPFLAGS'
34696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34698ac_compiler_gnu=$ac_cv_c_compiler_gnu
34699
34700  { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_works" >&5
34701echo "${ECHO_T}$ac_cv_prog_cxx_works" >&6; }
34702  if test $ac_cv_prog_cxx_works = no; then
34703    CXX=:
34704  else
34705            { echo "$as_me:$LINENO: checking whether the C++ compiler supports namespaces" >&5
34706echo $ECHO_N "checking whether the C++ compiler supports namespaces... $ECHO_C" >&6; }
34707    ac_ext=cpp
34708ac_cpp='$CXXCPP $CPPFLAGS'
34709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34712
34713    cat <<EOF > conftest.$ac_ext
34714#include <iostream>
34715namespace test { using namespace std; }
34716std::ostream* ptr;
34717int main () { return 0; }
34718EOF
34719    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34720  (eval $ac_link) 2>&5
34721  ac_status=$?
34722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34723  (exit $ac_status); } && test -s conftest$ac_exeext; then
34724      gt_cv_prog_cxx_namespaces=yes
34725    else
34726      gt_cv_prog_cxx_namespaces=no
34727    fi
34728    rm -fr conftest*
34729    ac_ext=c
34730ac_cpp='$CPP $CPPFLAGS'
34731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34733ac_compiler_gnu=$ac_cv_c_compiler_gnu
34734
34735    { echo "$as_me:$LINENO: result: $gt_cv_prog_cxx_namespaces" >&5
34736echo "${ECHO_T}$gt_cv_prog_cxx_namespaces" >&6; }
34737    if test $gt_cv_prog_cxx_namespaces = no; then
34738      CXX=:
34739    fi
34740  fi
34741fi
34742
34743
34744LIBSCHED=
34745if test $gl_threads_api = posix; then
34746  { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34747echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
34748if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34749  echo $ECHO_N "(cached) $ECHO_C" >&6
34750else
34751  ac_check_lib_save_LIBS=$LIBS
34752LIBS="-lrt  $LIBS"
34753cat >conftest.$ac_ext <<_ACEOF
34754/* confdefs.h.  */
34755_ACEOF
34756cat confdefs.h >>conftest.$ac_ext
34757cat >>conftest.$ac_ext <<_ACEOF
34758/* end confdefs.h.  */
34759
34760/* Override any GCC internal prototype to avoid an error.
34761   Use char because int might match the return type of a GCC
34762   builtin and then its argument prototype would still apply.  */
34763#ifdef __cplusplus
34764extern "C"
34765#endif
34766char sched_yield ();
34767int
34768main ()
34769{
34770return sched_yield ();
34771  ;
34772  return 0;
34773}
34774_ACEOF
34775rm -f conftest.$ac_objext conftest$ac_exeext
34776if { (ac_try="$ac_link"
34777case "(($ac_try" in
34778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34779  *) ac_try_echo=$ac_try;;
34780esac
34781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34782  (eval "$ac_link") 2>conftest.er1
34783  ac_status=$?
34784  grep -v '^ *+' conftest.er1 >conftest.err
34785  rm -f conftest.er1
34786  cat conftest.err >&5
34787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34788  (exit $ac_status); } && {
34789	 test -z "$ac_c_werror_flag" ||
34790	 test ! -s conftest.err
34791       } && test -s conftest$ac_exeext &&
34792       $as_test_x conftest$ac_exeext; then
34793  ac_cv_lib_rt_sched_yield=yes
34794else
34795  echo "$as_me: failed program was:" >&5
34796sed 's/^/| /' conftest.$ac_ext >&5
34797
34798	ac_cv_lib_rt_sched_yield=no
34799fi
34800
34801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34802      conftest$ac_exeext conftest.$ac_ext
34803LIBS=$ac_check_lib_save_LIBS
34804fi
34805{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34806echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
34807if test $ac_cv_lib_rt_sched_yield = yes; then
34808  LIBSCHED=-lrt
34809fi
34810
34811fi
34812
34813
34814# Check whether --enable-libasprintf was given.
34815if test "${enable_libasprintf+set}" = set; then
34816  enableval=$enable_libasprintf; if test "$enableval" != no; then
34817     SUBDIR_libasprintf=libasprintf
34818   else
34819     SUBDIR_libasprintf=
34820   fi
34821
34822else
34823  SUBDIR_libasprintf=libasprintf
34824fi
34825
34826if test "$CXX" = ":"; then
34827  SUBDIR_libasprintf=
34828fi
34829 if test -n "$SUBDIR_libasprintf"; then
34830  ENABLE_LIBASPRINTF_TRUE=
34831  ENABLE_LIBASPRINTF_FALSE='#'
34832else
34833  ENABLE_LIBASPRINTF_TRUE='#'
34834  ENABLE_LIBASPRINTF_FALSE=
34835fi
34836
34837
34838subdirs="$subdirs libasprintf"
34839
34840
34841ac_config_files="$ac_config_files Makefile"
34842
34843
34844ac_config_files="$ac_config_files doc/Makefile"
34845
34846
34847ac_config_files="$ac_config_files intl/Makefile"
34848
34849
34850ac_config_files="$ac_config_files intl-java/Makefile"
34851
34852
34853ac_config_files="$ac_config_files intl-csharp/Makefile"
34854
34855
34856ac_config_files="$ac_config_files gnulib-lib/Makefile"
34857
34858
34859ac_config_files="$ac_config_files src/Makefile"
34860
34861ac_config_files="$ac_config_files src/gettext.sh"
34862
34863
34864ac_config_files="$ac_config_files po/Makefile.in"
34865
34866
34867ac_config_files="$ac_config_files man/Makefile"
34868
34869ac_config_files="$ac_config_files man/x-to-1"
34870
34871
34872ac_config_files="$ac_config_files m4/Makefile"
34873
34874
34875ac_config_files="$ac_config_files tests/Makefile"
34876
34877
34878cat >confcache <<\_ACEOF
34879# This file is a shell script that caches the results of configure
34880# tests run on this system so they can be shared between configure
34881# scripts and configure runs, see configure's option --config-cache.
34882# It is not useful on other systems.  If it contains results you don't
34883# want to keep, you may remove or edit it.
34884#
34885# config.status only pays attention to the cache file if you give it
34886# the --recheck option to rerun configure.
34887#
34888# `ac_cv_env_foo' variables (set or unset) will be overridden when
34889# loading this file, other *unset* `ac_cv_foo' will be assigned the
34890# following values.
34891
34892_ACEOF
34893
34894# The following way of writing the cache mishandles newlines in values,
34895# but we know of no workaround that is simple, portable, and efficient.
34896# So, we kill variables containing newlines.
34897# Ultrix sh set writes to stderr and can't be redirected directly,
34898# and sets the high bit in the cache file unless we assign to the vars.
34899(
34900  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34901    eval ac_val=\$$ac_var
34902    case $ac_val in #(
34903    *${as_nl}*)
34904      case $ac_var in #(
34905      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34906echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34907      esac
34908      case $ac_var in #(
34909      _ | IFS | as_nl) ;; #(
34910      *) $as_unset $ac_var ;;
34911      esac ;;
34912    esac
34913  done
34914
34915  (set) 2>&1 |
34916    case $as_nl`(ac_space=' '; set) 2>&1` in #(
34917    *${as_nl}ac_space=\ *)
34918      # `set' does not quote correctly, so add quotes (double-quote
34919      # substitution turns \\\\ into \\, and sed turns \\ into \).
34920      sed -n \
34921	"s/'/'\\\\''/g;
34922	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34923      ;; #(
34924    *)
34925      # `set' quotes correctly as required by POSIX, so do not add quotes.
34926      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34927      ;;
34928    esac |
34929    sort
34930) |
34931  sed '
34932     /^ac_cv_env_/b end
34933     t clear
34934     :clear
34935     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34936     t end
34937     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34938     :end' >>confcache
34939if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34940  if test -w "$cache_file"; then
34941    test "x$cache_file" != "x/dev/null" &&
34942      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34943echo "$as_me: updating cache $cache_file" >&6;}
34944    cat confcache >$cache_file
34945  else
34946    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34947echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34948  fi
34949fi
34950rm -f confcache
34951
34952test "x$prefix" = xNONE && prefix=$ac_default_prefix
34953# Let make expand exec_prefix.
34954test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34955
34956DEFS=-DHAVE_CONFIG_H
34957
34958ac_libobjs=
34959ac_ltlibobjs=
34960for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34961  # 1. Remove the extension, and $U if already installed.
34962  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34963  ac_i=`echo "$ac_i" | sed "$ac_script"`
34964  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34965  #    will be set to the directory where LIBOBJS objects are built.
34966  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34967  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34968done
34969LIBOBJS=$ac_libobjs
34970
34971LTLIBOBJS=$ac_ltlibobjs
34972
34973
34974if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34975  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
34976Usually this means the macro was only invoked conditionally." >&5
34977echo "$as_me: error: conditional \"AMDEP\" was never defined.
34978Usually this means the macro was only invoked conditionally." >&2;}
34979   { (exit 1); exit 1; }; }
34980fi
34981if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34982  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
34983Usually this means the macro was only invoked conditionally." >&5
34984echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
34985Usually this means the macro was only invoked conditionally." >&2;}
34986   { (exit 1); exit 1; }; }
34987fi
34988if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34989  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
34990Usually this means the macro was only invoked conditionally." >&5
34991echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
34992Usually this means the macro was only invoked conditionally." >&2;}
34993   { (exit 1); exit 1; }; }
34994fi
34995if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
34996  { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
34997Usually this means the macro was only invoked conditionally." >&5
34998echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
34999Usually this means the macro was only invoked conditionally." >&2;}
35000   { (exit 1); exit 1; }; }
35001fi
35002if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
35003  { { echo "$as_me:$LINENO: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
35004Usually this means the macro was only invoked conditionally." >&5
35005echo "$as_me: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
35006Usually this means the macro was only invoked conditionally." >&2;}
35007   { (exit 1); exit 1; }; }
35008fi
35009
35010    gl_libobjs=
35011    gl_ltlibobjs=
35012    if test -n "$gl_LIBOBJS"; then
35013      # Remove the extension.
35014      sed_drop_objext='s/\.o$//;s/\.obj$//'
35015      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
35016        gl_libobjs="$gl_libobjs $i.$ac_objext"
35017        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
35018      done
35019    fi
35020    gl_LIBOBJS=$gl_libobjs
35021
35022    gl_LTLIBOBJS=$gl_ltlibobjs
35023
35024
35025if test -z "${ENABLE_LIBASPRINTF_TRUE}" && test -z "${ENABLE_LIBASPRINTF_FALSE}"; then
35026  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBASPRINTF\" was never defined.
35027Usually this means the macro was only invoked conditionally." >&5
35028echo "$as_me: error: conditional \"ENABLE_LIBASPRINTF\" was never defined.
35029Usually this means the macro was only invoked conditionally." >&2;}
35030   { (exit 1); exit 1; }; }
35031fi
35032
35033: ${CONFIG_STATUS=./config.status}
35034ac_clean_files_save=$ac_clean_files
35035ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35036{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35037echo "$as_me: creating $CONFIG_STATUS" >&6;}
35038cat >$CONFIG_STATUS <<_ACEOF
35039#! $SHELL
35040# Generated by $as_me.
35041# Run this file to recreate the current configuration.
35042# Compiler output produced by configure, useful for debugging
35043# configure, is in config.log if it exists.
35044
35045debug=false
35046ac_cs_recheck=false
35047ac_cs_silent=false
35048SHELL=\${CONFIG_SHELL-$SHELL}
35049_ACEOF
35050
35051cat >>$CONFIG_STATUS <<\_ACEOF
35052## --------------------- ##
35053## M4sh Initialization.  ##
35054## --------------------- ##
35055
35056# Be more Bourne compatible
35057DUALCASE=1; export DUALCASE # for MKS sh
35058if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35059  emulate sh
35060  NULLCMD=:
35061  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35062  # is contrary to our usage.  Disable this feature.
35063  alias -g '${1+"$@"}'='"$@"'
35064  setopt NO_GLOB_SUBST
35065else
35066  case `(set -o) 2>/dev/null` in
35067  *posix*) set -o posix ;;
35068esac
35069
35070fi
35071
35072
35073
35074
35075# PATH needs CR
35076# Avoid depending upon Character Ranges.
35077as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35078as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35079as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35080as_cr_digits='0123456789'
35081as_cr_alnum=$as_cr_Letters$as_cr_digits
35082
35083# The user is always right.
35084if test "${PATH_SEPARATOR+set}" != set; then
35085  echo "#! /bin/sh" >conf$$.sh
35086  echo  "exit 0"   >>conf$$.sh
35087  chmod +x conf$$.sh
35088  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35089    PATH_SEPARATOR=';'
35090  else
35091    PATH_SEPARATOR=:
35092  fi
35093  rm -f conf$$.sh
35094fi
35095
35096# Support unset when possible.
35097if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35098  as_unset=unset
35099else
35100  as_unset=false
35101fi
35102
35103
35104# IFS
35105# We need space, tab and new line, in precisely that order.  Quoting is
35106# there to prevent editors from complaining about space-tab.
35107# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35108# splitting by setting IFS to empty value.)
35109as_nl='
35110'
35111IFS=" ""	$as_nl"
35112
35113# Find who we are.  Look in the path if we contain no directory separator.
35114case $0 in
35115  *[\\/]* ) as_myself=$0 ;;
35116  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35117for as_dir in $PATH
35118do
35119  IFS=$as_save_IFS
35120  test -z "$as_dir" && as_dir=.
35121  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35122done
35123IFS=$as_save_IFS
35124
35125     ;;
35126esac
35127# We did not find ourselves, most probably we were run as `sh COMMAND'
35128# in which case we are not to be found in the path.
35129if test "x$as_myself" = x; then
35130  as_myself=$0
35131fi
35132if test ! -f "$as_myself"; then
35133  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35134  { (exit 1); exit 1; }
35135fi
35136
35137# Work around bugs in pre-3.0 UWIN ksh.
35138for as_var in ENV MAIL MAILPATH
35139do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35140done
35141PS1='$ '
35142PS2='> '
35143PS4='+ '
35144
35145# NLS nuisances.
35146for as_var in \
35147  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35148  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35149  LC_TELEPHONE LC_TIME
35150do
35151  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35152    eval $as_var=C; export $as_var
35153  else
35154    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35155  fi
35156done
35157
35158# Required to use basename.
35159if expr a : '\(a\)' >/dev/null 2>&1 &&
35160   test "X`expr 00001 : '.*\(...\)'`" = X001; then
35161  as_expr=expr
35162else
35163  as_expr=false
35164fi
35165
35166if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35167  as_basename=basename
35168else
35169  as_basename=false
35170fi
35171
35172
35173# Name of the executable.
35174as_me=`$as_basename -- "$0" ||
35175$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35176	 X"$0" : 'X\(//\)$' \| \
35177	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35178echo X/"$0" |
35179    sed '/^.*\/\([^/][^/]*\)\/*$/{
35180	    s//\1/
35181	    q
35182	  }
35183	  /^X\/\(\/\/\)$/{
35184	    s//\1/
35185	    q
35186	  }
35187	  /^X\/\(\/\).*/{
35188	    s//\1/
35189	    q
35190	  }
35191	  s/.*/./; q'`
35192
35193# CDPATH.
35194$as_unset CDPATH
35195
35196
35197
35198  as_lineno_1=$LINENO
35199  as_lineno_2=$LINENO
35200  test "x$as_lineno_1" != "x$as_lineno_2" &&
35201  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35202
35203  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35204  # uniformly replaced by the line number.  The first 'sed' inserts a
35205  # line-number line after each line using $LINENO; the second 'sed'
35206  # does the real work.  The second script uses 'N' to pair each
35207  # line-number line with the line containing $LINENO, and appends
35208  # trailing '-' during substitution so that $LINENO is not a special
35209  # case at line end.
35210  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35211  # scripts with optimization help from Paolo Bonzini.  Blame Lee
35212  # E. McMahon (1931-1989) for sed's syntax.  :-)
35213  sed -n '
35214    p
35215    /[$]LINENO/=
35216  ' <$as_myself |
35217    sed '
35218      s/[$]LINENO.*/&-/
35219      t lineno
35220      b
35221      :lineno
35222      N
35223      :loop
35224      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35225      t loop
35226      s/-\n.*//
35227    ' >$as_me.lineno &&
35228  chmod +x "$as_me.lineno" ||
35229    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35230   { (exit 1); exit 1; }; }
35231
35232  # Don't try to exec as it changes $[0], causing all sort of problems
35233  # (the dirname of $[0] is not the place where we might find the
35234  # original and so on.  Autoconf is especially sensitive to this).
35235  . "./$as_me.lineno"
35236  # Exit status is that of the last command.
35237  exit
35238}
35239
35240
35241if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35242  as_dirname=dirname
35243else
35244  as_dirname=false
35245fi
35246
35247ECHO_C= ECHO_N= ECHO_T=
35248case `echo -n x` in
35249-n*)
35250  case `echo 'x\c'` in
35251  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
35252  *)   ECHO_C='\c';;
35253  esac;;
35254*)
35255  ECHO_N='-n';;
35256esac
35257
35258if expr a : '\(a\)' >/dev/null 2>&1 &&
35259   test "X`expr 00001 : '.*\(...\)'`" = X001; then
35260  as_expr=expr
35261else
35262  as_expr=false
35263fi
35264
35265rm -f conf$$ conf$$.exe conf$$.file
35266if test -d conf$$.dir; then
35267  rm -f conf$$.dir/conf$$.file
35268else
35269  rm -f conf$$.dir
35270  mkdir conf$$.dir
35271fi
35272echo >conf$$.file
35273if ln -s conf$$.file conf$$ 2>/dev/null; then
35274  as_ln_s='ln -s'
35275  # ... but there are two gotchas:
35276  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35277  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35278  # In both cases, we have to default to `cp -p'.
35279  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35280    as_ln_s='cp -p'
35281elif ln conf$$.file conf$$ 2>/dev/null; then
35282  as_ln_s=ln
35283else
35284  as_ln_s='cp -p'
35285fi
35286rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35287rmdir conf$$.dir 2>/dev/null
35288
35289if mkdir -p . 2>/dev/null; then
35290  as_mkdir_p=:
35291else
35292  test -d ./-p && rmdir ./-p
35293  as_mkdir_p=false
35294fi
35295
35296if test -x / >/dev/null 2>&1; then
35297  as_test_x='test -x'
35298else
35299  if ls -dL / >/dev/null 2>&1; then
35300    as_ls_L_option=L
35301  else
35302    as_ls_L_option=
35303  fi
35304  as_test_x='
35305    eval sh -c '\''
35306      if test -d "$1"; then
35307        test -d "$1/.";
35308      else
35309	case $1 in
35310        -*)set "./$1";;
35311	esac;
35312	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35313	???[sx]*):;;*)false;;esac;fi
35314    '\'' sh
35315  '
35316fi
35317as_executable_p=$as_test_x
35318
35319# Sed expression to map a string onto a valid CPP name.
35320as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35321
35322# Sed expression to map a string onto a valid variable name.
35323as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35324
35325
35326exec 6>&1
35327
35328# Save the log message, to keep $[0] and so on meaningful, and to
35329# report actual input values of CONFIG_FILES etc. instead of their
35330# values after options handling.
35331ac_log="
35332This file was extended by $as_me, which was
35333generated by GNU Autoconf 2.61.  Invocation command line was
35334
35335  CONFIG_FILES    = $CONFIG_FILES
35336  CONFIG_HEADERS  = $CONFIG_HEADERS
35337  CONFIG_LINKS    = $CONFIG_LINKS
35338  CONFIG_COMMANDS = $CONFIG_COMMANDS
35339  $ $0 $@
35340
35341on `(hostname || uname -n) 2>/dev/null | sed 1q`
35342"
35343
35344_ACEOF
35345
35346cat >>$CONFIG_STATUS <<_ACEOF
35347# Files that config.status was made for.
35348config_files="$ac_config_files"
35349config_headers="$ac_config_headers"
35350config_commands="$ac_config_commands"
35351
35352_ACEOF
35353
35354cat >>$CONFIG_STATUS <<\_ACEOF
35355ac_cs_usage="\
35356\`$as_me' instantiates files from templates according to the
35357current configuration.
35358
35359Usage: $0 [OPTIONS] [FILE]...
35360
35361  -h, --help       print this help, then exit
35362  -V, --version    print version number and configuration settings, then exit
35363  -q, --quiet      do not print progress messages
35364  -d, --debug      don't remove temporary files
35365      --recheck    update $as_me by reconfiguring in the same conditions
35366  --file=FILE[:TEMPLATE]
35367		   instantiate the configuration file FILE
35368  --header=FILE[:TEMPLATE]
35369		   instantiate the configuration header FILE
35370
35371Configuration files:
35372$config_files
35373
35374Configuration headers:
35375$config_headers
35376
35377Configuration commands:
35378$config_commands
35379
35380Report bugs to <bug-autoconf@gnu.org>."
35381
35382_ACEOF
35383cat >>$CONFIG_STATUS <<_ACEOF
35384ac_cs_version="\\
35385config.status
35386configured by $0, generated by GNU Autoconf 2.61,
35387  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35388
35389Copyright (C) 2006 Free Software Foundation, Inc.
35390This config.status script is free software; the Free Software Foundation
35391gives unlimited permission to copy, distribute and modify it."
35392
35393ac_pwd='$ac_pwd'
35394srcdir='$srcdir'
35395INSTALL='$INSTALL'
35396MKDIR_P='$MKDIR_P'
35397_ACEOF
35398
35399cat >>$CONFIG_STATUS <<\_ACEOF
35400# If no file are specified by the user, then we need to provide default
35401# value.  By we need to know if files were specified by the user.
35402ac_need_defaults=:
35403while test $# != 0
35404do
35405  case $1 in
35406  --*=*)
35407    ac_option=`expr "X$1" : 'X\([^=]*\)='`
35408    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35409    ac_shift=:
35410    ;;
35411  *)
35412    ac_option=$1
35413    ac_optarg=$2
35414    ac_shift=shift
35415    ;;
35416  esac
35417
35418  case $ac_option in
35419  # Handling of the options.
35420  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35421    ac_cs_recheck=: ;;
35422  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35423    echo "$ac_cs_version"; exit ;;
35424  --debug | --debu | --deb | --de | --d | -d )
35425    debug=: ;;
35426  --file | --fil | --fi | --f )
35427    $ac_shift
35428    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35429    ac_need_defaults=false;;
35430  --header | --heade | --head | --hea )
35431    $ac_shift
35432    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35433    ac_need_defaults=false;;
35434  --he | --h)
35435    # Conflict between --help and --header
35436    { echo "$as_me: error: ambiguous option: $1
35437Try \`$0 --help' for more information." >&2
35438   { (exit 1); exit 1; }; };;
35439  --help | --hel | -h )
35440    echo "$ac_cs_usage"; exit ;;
35441  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35442  | -silent | --silent | --silen | --sile | --sil | --si | --s)
35443    ac_cs_silent=: ;;
35444
35445  # This is an error.
35446  -*) { echo "$as_me: error: unrecognized option: $1
35447Try \`$0 --help' for more information." >&2
35448   { (exit 1); exit 1; }; } ;;
35449
35450  *) ac_config_targets="$ac_config_targets $1"
35451     ac_need_defaults=false ;;
35452
35453  esac
35454  shift
35455done
35456
35457ac_configure_extra_args=
35458
35459if $ac_cs_silent; then
35460  exec 6>/dev/null
35461  ac_configure_extra_args="$ac_configure_extra_args --silent"
35462fi
35463
35464_ACEOF
35465cat >>$CONFIG_STATUS <<_ACEOF
35466if \$ac_cs_recheck; then
35467  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35468  CONFIG_SHELL=$SHELL
35469  export CONFIG_SHELL
35470  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35471fi
35472
35473_ACEOF
35474cat >>$CONFIG_STATUS <<\_ACEOF
35475exec 5>>config.log
35476{
35477  echo
35478  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35479## Running $as_me. ##
35480_ASBOX
35481  echo "$ac_log"
35482} >&5
35483
35484_ACEOF
35485cat >>$CONFIG_STATUS <<_ACEOF
35486#
35487# INIT-COMMANDS
35488#
35489AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35490# Capture the value of obsolete ALL_LINGUAS because we need it to compute
35491    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
35492    # from automake < 1.5.
35493    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35494    # Capture the value of LINGUAS because we need it to compute CATALOGS.
35495    LINGUAS="${LINGUAS-%UNSET%}"
35496
35497
35498_ACEOF
35499
35500cat >>$CONFIG_STATUS <<\_ACEOF
35501
35502# Handling of arguments.
35503for ac_config_target in $ac_config_targets
35504do
35505  case $ac_config_target in
35506    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
35507    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35508    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
35509    "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;;
35510    "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;;
35511    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35512    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
35513    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
35514    "intl-java/Makefile") CONFIG_FILES="$CONFIG_FILES intl-java/Makefile" ;;
35515    "intl-csharp/Makefile") CONFIG_FILES="$CONFIG_FILES intl-csharp/Makefile" ;;
35516    "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;;
35517    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
35518    "src/gettext.sh") CONFIG_FILES="$CONFIG_FILES src/gettext.sh" ;;
35519    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
35520    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
35521    "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;;
35522    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
35523    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
35524
35525  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35526echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35527   { (exit 1); exit 1; }; };;
35528  esac
35529done
35530
35531
35532# If the user did not use the arguments to specify the items to instantiate,
35533# then the envvar interface is used.  Set only those that are not.
35534# We use the long form for the default assignment because of an extremely
35535# bizarre bug on SunOS 4.1.3.
35536if $ac_need_defaults; then
35537  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35538  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35539  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35540fi
35541
35542# Have a temporary directory for convenience.  Make it in the build tree
35543# simply because there is no reason against having it here, and in addition,
35544# creating and moving files from /tmp can sometimes cause problems.
35545# Hook for its removal unless debugging.
35546# Note that there is a small window in which the directory will not be cleaned:
35547# after its creation but before its name has been assigned to `$tmp'.
35548$debug ||
35549{
35550  tmp=
35551  trap 'exit_status=$?
35552  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35553' 0
35554  trap '{ (exit 1); exit 1; }' 1 2 13 15
35555}
35556# Create a (secure) tmp directory for tmp files.
35557
35558{
35559  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35560  test -n "$tmp" && test -d "$tmp"
35561}  ||
35562{
35563  tmp=./conf$$-$RANDOM
35564  (umask 077 && mkdir "$tmp")
35565} ||
35566{
35567   echo "$me: cannot create a temporary directory in ." >&2
35568   { (exit 1); exit 1; }
35569}
35570
35571#
35572# Set up the sed scripts for CONFIG_FILES section.
35573#
35574
35575# No need to generate the scripts if there are no CONFIG_FILES.
35576# This happens for instance when ./config.status config.h
35577if test -n "$CONFIG_FILES"; then
35578
35579_ACEOF
35580
35581
35582
35583ac_delim='%!_!# '
35584for ac_last_try in false false false false false :; do
35585  cat >conf$$subs.sed <<_ACEOF
35586SHELL!$SHELL$ac_delim
35587PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35588PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35589PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35590PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35591PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35592PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35593exec_prefix!$exec_prefix$ac_delim
35594prefix!$prefix$ac_delim
35595program_transform_name!$program_transform_name$ac_delim
35596bindir!$bindir$ac_delim
35597sbindir!$sbindir$ac_delim
35598libexecdir!$libexecdir$ac_delim
35599datarootdir!$datarootdir$ac_delim
35600datadir!$datadir$ac_delim
35601sysconfdir!$sysconfdir$ac_delim
35602sharedstatedir!$sharedstatedir$ac_delim
35603localstatedir!$localstatedir$ac_delim
35604includedir!$includedir$ac_delim
35605oldincludedir!$oldincludedir$ac_delim
35606docdir!$docdir$ac_delim
35607infodir!$infodir$ac_delim
35608htmldir!$htmldir$ac_delim
35609dvidir!$dvidir$ac_delim
35610pdfdir!$pdfdir$ac_delim
35611psdir!$psdir$ac_delim
35612libdir!$libdir$ac_delim
35613localedir!$localedir$ac_delim
35614mandir!$mandir$ac_delim
35615DEFS!$DEFS$ac_delim
35616ECHO_C!$ECHO_C$ac_delim
35617ECHO_N!$ECHO_N$ac_delim
35618ECHO_T!$ECHO_T$ac_delim
35619LIBS!$LIBS$ac_delim
35620build_alias!$build_alias$ac_delim
35621host_alias!$host_alias$ac_delim
35622target_alias!$target_alias$ac_delim
35623INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35624INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35625INSTALL_DATA!$INSTALL_DATA$ac_delim
35626am__isrc!$am__isrc$ac_delim
35627CYGPATH_W!$CYGPATH_W$ac_delim
35628PACKAGE!$PACKAGE$ac_delim
35629VERSION!$VERSION$ac_delim
35630ACLOCAL!$ACLOCAL$ac_delim
35631AUTOCONF!$AUTOCONF$ac_delim
35632AUTOMAKE!$AUTOMAKE$ac_delim
35633AUTOHEADER!$AUTOHEADER$ac_delim
35634MAKEINFO!$MAKEINFO$ac_delim
35635install_sh!$install_sh$ac_delim
35636STRIP!$STRIP$ac_delim
35637INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
35638mkdir_p!$mkdir_p$ac_delim
35639AWK!$AWK$ac_delim
35640SET_MAKE!$SET_MAKE$ac_delim
35641am__leading_dot!$am__leading_dot$ac_delim
35642AMTAR!$AMTAR$ac_delim
35643am__tar!$am__tar$ac_delim
35644am__untar!$am__untar$ac_delim
35645CC!$CC$ac_delim
35646CFLAGS!$CFLAGS$ac_delim
35647LDFLAGS!$LDFLAGS$ac_delim
35648CPPFLAGS!$CPPFLAGS$ac_delim
35649ac_ct_CC!$ac_ct_CC$ac_delim
35650EXEEXT!$EXEEXT$ac_delim
35651OBJEXT!$OBJEXT$ac_delim
35652DEPDIR!$DEPDIR$ac_delim
35653am__include!$am__include$ac_delim
35654am__quote!$am__quote$ac_delim
35655AMDEP_TRUE!$AMDEP_TRUE$ac_delim
35656AMDEP_FALSE!$AMDEP_FALSE$ac_delim
35657AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
35658CCDEPMODE!$CCDEPMODE$ac_delim
35659am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
35660am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
35661YACC!$YACC$ac_delim
35662YFLAGS!$YFLAGS$ac_delim
35663JAVA_CHOICE!$JAVA_CHOICE$ac_delim
35664CPP!$CPP$ac_delim
35665GREP!$GREP$ac_delim
35666EGREP!$EGREP$ac_delim
35667HAVE_GCJ_IN_PATH!$HAVE_GCJ_IN_PATH$ac_delim
35668HAVE_JAVAC_IN_PATH!$HAVE_JAVAC_IN_PATH$ac_delim
35669HAVE_JIKES_IN_PATH!$HAVE_JIKES_IN_PATH$ac_delim
35670CONF_JAVAC!$CONF_JAVAC$ac_delim
35671CLASSPATH!$CLASSPATH$ac_delim
35672CLASSPATH_SEPARATOR!$CLASSPATH_SEPARATOR$ac_delim
35673HAVE_JAVAC_ENVVAR!$HAVE_JAVAC_ENVVAR$ac_delim
35674HAVE_GCJ_C!$HAVE_GCJ_C$ac_delim
35675HAVE_JAVAC!$HAVE_JAVAC$ac_delim
35676HAVE_JIKES!$HAVE_JIKES$ac_delim
35677JAR!$JAR$ac_delim
35678BUILDJAVA!$BUILDJAVA$ac_delim
35679CSHARP_CHOICE!$CSHARP_CHOICE$ac_delim
35680HAVE_CSCC_IN_PATH!$HAVE_CSCC_IN_PATH$ac_delim
35681HAVE_MCS_IN_PATH!$HAVE_MCS_IN_PATH$ac_delim
35682HAVE_CSC_IN_PATH!$HAVE_CSC_IN_PATH$ac_delim
35683_ACEOF
35684
35685  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35686    break
35687  elif $ac_last_try; then
35688    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35689echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35690   { (exit 1); exit 1; }; }
35691  else
35692    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35693  fi
35694done
35695
35696ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35697if test -n "$ac_eof"; then
35698  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35699  ac_eof=`expr $ac_eof + 1`
35700fi
35701
35702cat >>$CONFIG_STATUS <<_ACEOF
35703cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35704/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35705_ACEOF
35706sed '
35707s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35708s/^/s,@/; s/!/@,|#_!!_#|/
35709:n
35710t n
35711s/'"$ac_delim"'$/,g/; t
35712s/$/\\/; p
35713N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35714' >>$CONFIG_STATUS <conf$$subs.sed
35715rm -f conf$$subs.sed
35716cat >>$CONFIG_STATUS <<_ACEOF
35717CEOF$ac_eof
35718_ACEOF
35719
35720
35721ac_delim='%!_!# '
35722for ac_last_try in false false false false false :; do
35723  cat >conf$$subs.sed <<_ACEOF
35724HAVE_CSCC!$HAVE_CSCC$ac_delim
35725HAVE_MCS!$HAVE_MCS$ac_delim
35726HAVE_CSC!$HAVE_CSC$ac_delim
35727CSHARPCOMPFLAGS!$CSHARPCOMPFLAGS$ac_delim
35728BUILDCSHARP!$BUILDCSHARP$ac_delim
35729build!$build$ac_delim
35730build_cpu!$build_cpu$ac_delim
35731build_vendor!$build_vendor$ac_delim
35732build_os!$build_os$ac_delim
35733host!$host$ac_delim
35734host_cpu!$host_cpu$ac_delim
35735host_vendor!$host_vendor$ac_delim
35736host_os!$host_os$ac_delim
35737RANLIB!$RANLIB$ac_delim
35738LN_S!$LN_S$ac_delim
35739ECHO!$ECHO$ac_delim
35740AR!$AR$ac_delim
35741DLLTOOL!$DLLTOOL$ac_delim
35742AS!$AS$ac_delim
35743OBJDUMP!$OBJDUMP$ac_delim
35744CXX!$CXX$ac_delim
35745CXXFLAGS!$CXXFLAGS$ac_delim
35746ac_ct_CXX!$ac_ct_CXX$ac_delim
35747CXXDEPMODE!$CXXDEPMODE$ac_delim
35748am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
35749am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
35750CXXCPP!$CXXCPP$ac_delim
35751F77!$F77$ac_delim
35752FFLAGS!$FFLAGS$ac_delim
35753ac_ct_F77!$ac_ct_F77$ac_delim
35754LIBTOOL!$LIBTOOL$ac_delim
35755USE_NLS!$USE_NLS$ac_delim
35756MSGFMT!$MSGFMT$ac_delim
35757GMSGFMT!$GMSGFMT$ac_delim
35758MSGFMT_015!$MSGFMT_015$ac_delim
35759GMSGFMT_015!$GMSGFMT_015$ac_delim
35760XGETTEXT!$XGETTEXT$ac_delim
35761XGETTEXT_015!$XGETTEXT_015$ac_delim
35762MSGMERGE!$MSGMERGE$ac_delim
35763GLIBC2!$GLIBC2$ac_delim
35764CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
35765HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
35766ALLOCA!$ALLOCA$ac_delim
35767PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
35768LIBPTH!$LIBPTH$ac_delim
35769LTLIBPTH!$LTLIBPTH$ac_delim
35770LIBTHREAD!$LIBTHREAD$ac_delim
35771LTLIBTHREAD!$LTLIBTHREAD$ac_delim
35772LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
35773LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
35774LIBICONV!$LIBICONV$ac_delim
35775LTLIBICONV!$LTLIBICONV$ac_delim
35776INTLBISON!$INTLBISON$ac_delim
35777GLIBC21!$GLIBC21$ac_delim
35778INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
35779HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
35780HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
35781HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
35782HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
35783WOE32DLL!$WOE32DLL$ac_delim
35784BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
35785USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
35786CATOBJEXT!$CATOBJEXT$ac_delim
35787DATADIRNAME!$DATADIRNAME$ac_delim
35788INSTOBJEXT!$INSTOBJEXT$ac_delim
35789GENCAT!$GENCAT$ac_delim
35790INTLOBJS!$INTLOBJS$ac_delim
35791INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
35792INTLLIBS!$INTLLIBS$ac_delim
35793LIBINTL!$LIBINTL$ac_delim
35794LTLIBINTL!$LTLIBINTL$ac_delim
35795POSUB!$POSUB$ac_delim
35796GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
35797GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
35798ALLOCA_H!$ALLOCA_H$ac_delim
35799GETOPT_H!$GETOPT_H$ac_delim
35800RELOCATABLE!$RELOCATABLE$ac_delim
35801SET_RELOCATABLE!$SET_RELOCATABLE$ac_delim
35802RELOCATABLE_VIA_LD_TRUE!$RELOCATABLE_VIA_LD_TRUE$ac_delim
35803RELOCATABLE_VIA_LD_FALSE!$RELOCATABLE_VIA_LD_FALSE$ac_delim
35804STDBOOL_H!$STDBOOL_H$ac_delim
35805HAVE__BOOL!$HAVE__BOOL$ac_delim
35806UNISTD_H!$UNISTD_H$ac_delim
35807LIBGRT_LIBDEPS!$LIBGRT_LIBDEPS$ac_delim
35808LIBGRT_LTLIBDEPS!$LIBGRT_LTLIBDEPS$ac_delim
35809PERL!$PERL$ac_delim
35810CROSS_COMPILING!$CROSS_COMPILING$ac_delim
35811LIBSCHED!$LIBSCHED$ac_delim
35812ENABLE_LIBASPRINTF_TRUE!$ENABLE_LIBASPRINTF_TRUE$ac_delim
35813ENABLE_LIBASPRINTF_FALSE!$ENABLE_LIBASPRINTF_FALSE$ac_delim
35814subdirs!$subdirs$ac_delim
35815LIBOBJS!$LIBOBJS$ac_delim
35816LTLIBOBJS!$LTLIBOBJS$ac_delim
35817gl_LIBOBJS!$gl_LIBOBJS$ac_delim
35818gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim
35819_ACEOF
35820
35821  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
35822    break
35823  elif $ac_last_try; then
35824    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35825echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35826   { (exit 1); exit 1; }; }
35827  else
35828    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35829  fi
35830done
35831
35832ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35833if test -n "$ac_eof"; then
35834  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35835  ac_eof=`expr $ac_eof + 1`
35836fi
35837
35838cat >>$CONFIG_STATUS <<_ACEOF
35839cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35840/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35841_ACEOF
35842sed '
35843s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35844s/^/s,@/; s/!/@,|#_!!_#|/
35845:n
35846t n
35847s/'"$ac_delim"'$/,g/; t
35848s/$/\\/; p
35849N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35850' >>$CONFIG_STATUS <conf$$subs.sed
35851rm -f conf$$subs.sed
35852cat >>$CONFIG_STATUS <<_ACEOF
35853:end
35854s/|#_!!_#|//g
35855CEOF$ac_eof
35856_ACEOF
35857
35858
35859# VPATH may cause trouble with some makes, so we remove $(srcdir),
35860# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35861# trailing colons and then remove the whole line if VPATH becomes empty
35862# (actually we leave an empty line to preserve line numbers).
35863if test "x$srcdir" = x.; then
35864  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
35865s/:*\$(srcdir):*/:/
35866s/:*\${srcdir}:*/:/
35867s/:*@srcdir@:*/:/
35868s/^\([^=]*=[	 ]*\):*/\1/
35869s/:*$//
35870s/^[^=]*=[	 ]*$//
35871}'
35872fi
35873
35874cat >>$CONFIG_STATUS <<\_ACEOF
35875fi # test -n "$CONFIG_FILES"
35876
35877
35878for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35879do
35880  case $ac_tag in
35881  :[FHLC]) ac_mode=$ac_tag; continue;;
35882  esac
35883  case $ac_mode$ac_tag in
35884  :[FHL]*:*);;
35885  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35886echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35887   { (exit 1); exit 1; }; };;
35888  :[FH]-) ac_tag=-:-;;
35889  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35890  esac
35891  ac_save_IFS=$IFS
35892  IFS=:
35893  set x $ac_tag
35894  IFS=$ac_save_IFS
35895  shift
35896  ac_file=$1
35897  shift
35898
35899  case $ac_mode in
35900  :L) ac_source=$1;;
35901  :[FH])
35902    ac_file_inputs=
35903    for ac_f
35904    do
35905      case $ac_f in
35906      -) ac_f="$tmp/stdin";;
35907      *) # Look for the file first in the build tree, then in the source tree
35908	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
35909	 # because $ac_f cannot contain `:'.
35910	 test -f "$ac_f" ||
35911	   case $ac_f in
35912	   [\\/$]*) false;;
35913	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35914	   esac ||
35915	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35916echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35917   { (exit 1); exit 1; }; };;
35918      esac
35919      ac_file_inputs="$ac_file_inputs $ac_f"
35920    done
35921
35922    # Let's still pretend it is `configure' which instantiates (i.e., don't
35923    # use $as_me), people would be surprised to read:
35924    #    /* config.h.  Generated by config.status.  */
35925    configure_input="Generated from "`IFS=:
35926	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35927    if test x"$ac_file" != x-; then
35928      configure_input="$ac_file.  $configure_input"
35929      { echo "$as_me:$LINENO: creating $ac_file" >&5
35930echo "$as_me: creating $ac_file" >&6;}
35931    fi
35932
35933    case $ac_tag in
35934    *:-:* | *:-) cat >"$tmp/stdin";;
35935    esac
35936    ;;
35937  esac
35938
35939  ac_dir=`$as_dirname -- "$ac_file" ||
35940$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35941	 X"$ac_file" : 'X\(//\)[^/]' \| \
35942	 X"$ac_file" : 'X\(//\)$' \| \
35943	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35944echo X"$ac_file" |
35945    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35946	    s//\1/
35947	    q
35948	  }
35949	  /^X\(\/\/\)[^/].*/{
35950	    s//\1/
35951	    q
35952	  }
35953	  /^X\(\/\/\)$/{
35954	    s//\1/
35955	    q
35956	  }
35957	  /^X\(\/\).*/{
35958	    s//\1/
35959	    q
35960	  }
35961	  s/.*/./; q'`
35962  { as_dir="$ac_dir"
35963  case $as_dir in #(
35964  -*) as_dir=./$as_dir;;
35965  esac
35966  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35967    as_dirs=
35968    while :; do
35969      case $as_dir in #(
35970      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35971      *) as_qdir=$as_dir;;
35972      esac
35973      as_dirs="'$as_qdir' $as_dirs"
35974      as_dir=`$as_dirname -- "$as_dir" ||
35975$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35976	 X"$as_dir" : 'X\(//\)[^/]' \| \
35977	 X"$as_dir" : 'X\(//\)$' \| \
35978	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35979echo X"$as_dir" |
35980    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35981	    s//\1/
35982	    q
35983	  }
35984	  /^X\(\/\/\)[^/].*/{
35985	    s//\1/
35986	    q
35987	  }
35988	  /^X\(\/\/\)$/{
35989	    s//\1/
35990	    q
35991	  }
35992	  /^X\(\/\).*/{
35993	    s//\1/
35994	    q
35995	  }
35996	  s/.*/./; q'`
35997      test -d "$as_dir" && break
35998    done
35999    test -z "$as_dirs" || eval "mkdir $as_dirs"
36000  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36001echo "$as_me: error: cannot create directory $as_dir" >&2;}
36002   { (exit 1); exit 1; }; }; }
36003  ac_builddir=.
36004
36005case "$ac_dir" in
36006.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36007*)
36008  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36009  # A ".." for each directory in $ac_dir_suffix.
36010  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36011  case $ac_top_builddir_sub in
36012  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36013  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36014  esac ;;
36015esac
36016ac_abs_top_builddir=$ac_pwd
36017ac_abs_builddir=$ac_pwd$ac_dir_suffix
36018# for backward compatibility:
36019ac_top_builddir=$ac_top_build_prefix
36020
36021case $srcdir in
36022  .)  # We are building in place.
36023    ac_srcdir=.
36024    ac_top_srcdir=$ac_top_builddir_sub
36025    ac_abs_top_srcdir=$ac_pwd ;;
36026  [\\/]* | ?:[\\/]* )  # Absolute name.
36027    ac_srcdir=$srcdir$ac_dir_suffix;
36028    ac_top_srcdir=$srcdir
36029    ac_abs_top_srcdir=$srcdir ;;
36030  *) # Relative name.
36031    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36032    ac_top_srcdir=$ac_top_build_prefix$srcdir
36033    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36034esac
36035ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36036
36037
36038  case $ac_mode in
36039  :F)
36040  #
36041  # CONFIG_FILE
36042  #
36043
36044  case $INSTALL in
36045  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36046  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36047  esac
36048  ac_MKDIR_P=$MKDIR_P
36049  case $MKDIR_P in
36050  [\\/$]* | ?:[\\/]* ) ;;
36051  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36052  esac
36053_ACEOF
36054
36055cat >>$CONFIG_STATUS <<\_ACEOF
36056# If the template does not know about datarootdir, expand it.
36057# FIXME: This hack should be removed a few years after 2.60.
36058ac_datarootdir_hack=; ac_datarootdir_seen=
36059
36060case `sed -n '/datarootdir/ {
36061  p
36062  q
36063}
36064/@datadir@/p
36065/@docdir@/p
36066/@infodir@/p
36067/@localedir@/p
36068/@mandir@/p
36069' $ac_file_inputs` in
36070*datarootdir*) ac_datarootdir_seen=yes;;
36071*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36072  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36073echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36074_ACEOF
36075cat >>$CONFIG_STATUS <<_ACEOF
36076  ac_datarootdir_hack='
36077  s&@datadir@&$datadir&g
36078  s&@docdir@&$docdir&g
36079  s&@infodir@&$infodir&g
36080  s&@localedir@&$localedir&g
36081  s&@mandir@&$mandir&g
36082    s&\\\${datarootdir}&$datarootdir&g' ;;
36083esac
36084_ACEOF
36085
36086# Neutralize VPATH when `$srcdir' = `.'.
36087# Shell code in configure.ac might set extrasub.
36088# FIXME: do we really want to maintain this feature?
36089cat >>$CONFIG_STATUS <<_ACEOF
36090  sed "$ac_vpsub
36091$extrasub
36092_ACEOF
36093cat >>$CONFIG_STATUS <<\_ACEOF
36094:t
36095/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36096s&@configure_input@&$configure_input&;t t
36097s&@top_builddir@&$ac_top_builddir_sub&;t t
36098s&@srcdir@&$ac_srcdir&;t t
36099s&@abs_srcdir@&$ac_abs_srcdir&;t t
36100s&@top_srcdir@&$ac_top_srcdir&;t t
36101s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36102s&@builddir@&$ac_builddir&;t t
36103s&@abs_builddir@&$ac_abs_builddir&;t t
36104s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36105s&@INSTALL@&$ac_INSTALL&;t t
36106s&@MKDIR_P@&$ac_MKDIR_P&;t t
36107$ac_datarootdir_hack
36108" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
36109
36110test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36111  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36112  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36113  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36114which seems to be undefined.  Please make sure it is defined." >&5
36115echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36116which seems to be undefined.  Please make sure it is defined." >&2;}
36117
36118  rm -f "$tmp/stdin"
36119  case $ac_file in
36120  -) cat "$tmp/out"; rm -f "$tmp/out";;
36121  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36122  esac
36123 ;;
36124  :H)
36125  #
36126  # CONFIG_HEADER
36127  #
36128_ACEOF
36129
36130# Transform confdefs.h into a sed script `conftest.defines', that
36131# substitutes the proper values into config.h.in to produce config.h.
36132rm -f conftest.defines conftest.tail
36133# First, append a space to every undef/define line, to ease matching.
36134echo 's/$/ /' >conftest.defines
36135# Then, protect against being on the right side of a sed subst, or in
36136# an unquoted here document, in config.status.  If some macros were
36137# called several times there might be several #defines for the same
36138# symbol, which is useless.  But do not sort them, since the last
36139# AC_DEFINE must be honored.
36140ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36141# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36142# NAME is the cpp macro being defined, VALUE is the value it is being given.
36143# PARAMS is the parameter list in the macro definition--in most cases, it's
36144# just an empty string.
36145ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
36146ac_dB='\\)[	 (].*,\\1define\\2'
36147ac_dC=' '
36148ac_dD=' ,'
36149
36150uniq confdefs.h |
36151  sed -n '
36152	t rset
36153	:rset
36154	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
36155	t ok
36156	d
36157	:ok
36158	s/[\\&,]/\\&/g
36159	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36160	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36161  ' >>conftest.defines
36162
36163# Remove the space that was appended to ease matching.
36164# Then replace #undef with comments.  This is necessary, for
36165# example, in the case of _POSIX_SOURCE, which is predefined and required
36166# on some systems where configure will not decide to define it.
36167# (The regexp can be short, since the line contains either #define or #undef.)
36168echo 's/ $//
36169s,^[	 #]*u.*,/* & */,' >>conftest.defines
36170
36171# Break up conftest.defines:
36172ac_max_sed_lines=50
36173
36174# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36175# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36176# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36177# et cetera.
36178ac_in='$ac_file_inputs'
36179ac_out='"$tmp/out1"'
36180ac_nxt='"$tmp/out2"'
36181
36182while :
36183do
36184  # Write a here document:
36185    cat >>$CONFIG_STATUS <<_ACEOF
36186    # First, check the format of the line:
36187    cat >"\$tmp/defines.sed" <<\\CEOF
36188/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
36189/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
36190b
36191:def
36192_ACEOF
36193  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36194  echo 'CEOF
36195    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36196  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36197  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36198  grep . conftest.tail >/dev/null || break
36199  rm -f conftest.defines
36200  mv conftest.tail conftest.defines
36201done
36202rm -f conftest.defines conftest.tail
36203
36204echo "ac_result=$ac_in" >>$CONFIG_STATUS
36205cat >>$CONFIG_STATUS <<\_ACEOF
36206  if test x"$ac_file" != x-; then
36207    echo "/* $configure_input  */" >"$tmp/config.h"
36208    cat "$ac_result" >>"$tmp/config.h"
36209    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36210      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36211echo "$as_me: $ac_file is unchanged" >&6;}
36212    else
36213      rm -f $ac_file
36214      mv "$tmp/config.h" $ac_file
36215    fi
36216  else
36217    echo "/* $configure_input  */"
36218    cat "$ac_result"
36219  fi
36220  rm -f "$tmp/out12"
36221# Compute $ac_file's index in $config_headers.
36222_am_stamp_count=1
36223for _am_header in $config_headers :; do
36224  case $_am_header in
36225    $ac_file | $ac_file:* )
36226      break ;;
36227    * )
36228      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36229  esac
36230done
36231echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
36232$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36233	 X$ac_file : 'X\(//\)[^/]' \| \
36234	 X$ac_file : 'X\(//\)$' \| \
36235	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
36236echo X$ac_file |
36237    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36238	    s//\1/
36239	    q
36240	  }
36241	  /^X\(\/\/\)[^/].*/{
36242	    s//\1/
36243	    q
36244	  }
36245	  /^X\(\/\/\)$/{
36246	    s//\1/
36247	    q
36248	  }
36249	  /^X\(\/\).*/{
36250	    s//\1/
36251	    q
36252	  }
36253	  s/.*/./; q'`/stamp-h$_am_stamp_count
36254 ;;
36255
36256  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36257echo "$as_me: executing $ac_file commands" >&6;}
36258 ;;
36259  esac
36260
36261
36262  case $ac_file$ac_mode in
36263    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
36264  # Strip MF so we end up with the name of the file.
36265  mf=`echo "$mf" | sed -e 's/:.*$//'`
36266  # Check whether this is an Automake generated Makefile or not.
36267  # We used to match only the files named `Makefile.in', but
36268  # some people rename them; so instead we look at the file content.
36269  # Grep'ing the first line is not enough: some people post-process
36270  # each Makefile.in and add a new line on top of each file to say so.
36271  # Grep'ing the whole file is not good either: AIX grep has a line
36272  # limit of 2048, but all sed's we know have understand at least 4000.
36273  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
36274    dirpart=`$as_dirname -- "$mf" ||
36275$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36276	 X"$mf" : 'X\(//\)[^/]' \| \
36277	 X"$mf" : 'X\(//\)$' \| \
36278	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36279echo X"$mf" |
36280    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36281	    s//\1/
36282	    q
36283	  }
36284	  /^X\(\/\/\)[^/].*/{
36285	    s//\1/
36286	    q
36287	  }
36288	  /^X\(\/\/\)$/{
36289	    s//\1/
36290	    q
36291	  }
36292	  /^X\(\/\).*/{
36293	    s//\1/
36294	    q
36295	  }
36296	  s/.*/./; q'`
36297  else
36298    continue
36299  fi
36300  # Extract the definition of DEPDIR, am__include, and am__quote
36301  # from the Makefile without running `make'.
36302  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36303  test -z "$DEPDIR" && continue
36304  am__include=`sed -n 's/^am__include = //p' < "$mf"`
36305  test -z "am__include" && continue
36306  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36307  # When using ansi2knr, U may be empty or an underscore; expand it
36308  U=`sed -n 's/^U = //p' < "$mf"`
36309  # Find all dependency output files, they are included files with
36310  # $(DEPDIR) in their names.  We invoke sed twice because it is the
36311  # simplest approach to changing $(DEPDIR) to its actual value in the
36312  # expansion.
36313  for file in `sed -n "
36314    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36315       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36316    # Make sure the directory exists.
36317    test -f "$dirpart/$file" && continue
36318    fdir=`$as_dirname -- "$file" ||
36319$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36320	 X"$file" : 'X\(//\)[^/]' \| \
36321	 X"$file" : 'X\(//\)$' \| \
36322	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36323echo X"$file" |
36324    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36325	    s//\1/
36326	    q
36327	  }
36328	  /^X\(\/\/\)[^/].*/{
36329	    s//\1/
36330	    q
36331	  }
36332	  /^X\(\/\/\)$/{
36333	    s//\1/
36334	    q
36335	  }
36336	  /^X\(\/\).*/{
36337	    s//\1/
36338	    q
36339	  }
36340	  s/.*/./; q'`
36341    { as_dir=$dirpart/$fdir
36342  case $as_dir in #(
36343  -*) as_dir=./$as_dir;;
36344  esac
36345  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36346    as_dirs=
36347    while :; do
36348      case $as_dir in #(
36349      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36350      *) as_qdir=$as_dir;;
36351      esac
36352      as_dirs="'$as_qdir' $as_dirs"
36353      as_dir=`$as_dirname -- "$as_dir" ||
36354$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36355	 X"$as_dir" : 'X\(//\)[^/]' \| \
36356	 X"$as_dir" : 'X\(//\)$' \| \
36357	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36358echo X"$as_dir" |
36359    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36360	    s//\1/
36361	    q
36362	  }
36363	  /^X\(\/\/\)[^/].*/{
36364	    s//\1/
36365	    q
36366	  }
36367	  /^X\(\/\/\)$/{
36368	    s//\1/
36369	    q
36370	  }
36371	  /^X\(\/\).*/{
36372	    s//\1/
36373	    q
36374	  }
36375	  s/.*/./; q'`
36376      test -d "$as_dir" && break
36377    done
36378    test -z "$as_dirs" || eval "mkdir $as_dirs"
36379  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36380echo "$as_me: error: cannot create directory $as_dir" >&2;}
36381   { (exit 1); exit 1; }; }; }
36382    # echo "creating $dirpart/$file"
36383    echo '# dummy' > "$dirpart/$file"
36384  done
36385done
36386 ;;
36387    "po-directories":C)
36388    for ac_file in $CONFIG_FILES; do
36389      # Support "outfile[:infile[:infile...]]"
36390      case "$ac_file" in
36391        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36392      esac
36393      # PO directories have a Makefile.in generated from Makefile.in.in.
36394      case "$ac_file" in */Makefile.in)
36395        # Adjust a relative srcdir.
36396        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36397        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
36398        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36399        # In autoconf-2.13 it is called $ac_given_srcdir.
36400        # In autoconf-2.50 it is called $srcdir.
36401        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36402        case "$ac_given_srcdir" in
36403          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36404          /*) top_srcdir="$ac_given_srcdir" ;;
36405          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
36406        esac
36407        # Treat a directory as a PO directory if and only if it has a
36408        # POTFILES.in file. This allows packages to have multiple PO
36409        # directories under different names or in different locations.
36410        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36411          rm -f "$ac_dir/POTFILES"
36412          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36413          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36414          POMAKEFILEDEPS="POTFILES.in"
36415          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
36416          # on $ac_dir but don't depend on user-specified configuration
36417          # parameters.
36418          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36419            # The LINGUAS file contains the set of available languages.
36420            if test -n "$OBSOLETE_ALL_LINGUAS"; then
36421              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
36422            fi
36423            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36424            # Hide the ALL_LINGUAS assigment from automake < 1.5.
36425            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36426            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36427          else
36428            # The set of available languages was given in configure.in.
36429            # Hide the ALL_LINGUAS assigment from automake < 1.5.
36430            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36431          fi
36432          # Compute POFILES
36433          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
36434          # Compute UPDATEPOFILES
36435          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
36436          # Compute DUMMYPOFILES
36437          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
36438          # Compute GMOFILES
36439          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
36440          case "$ac_given_srcdir" in
36441            .) srcdirpre= ;;
36442            *) srcdirpre='$(srcdir)/' ;;
36443          esac
36444          POFILES=
36445          UPDATEPOFILES=
36446          DUMMYPOFILES=
36447          GMOFILES=
36448          for lang in $ALL_LINGUAS; do
36449            POFILES="$POFILES $srcdirpre$lang.po"
36450            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36451            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36452            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36453          done
36454          # CATALOGS depends on both $ac_dir and the user's LINGUAS
36455          # environment variable.
36456          INST_LINGUAS=
36457          if test -n "$ALL_LINGUAS"; then
36458            for presentlang in $ALL_LINGUAS; do
36459              useit=no
36460              if test "%UNSET%" != "$LINGUAS"; then
36461                desiredlanguages="$LINGUAS"
36462              else
36463                desiredlanguages="$ALL_LINGUAS"
36464              fi
36465              for desiredlang in $desiredlanguages; do
36466                # Use the presentlang catalog if desiredlang is
36467                #   a. equal to presentlang, or
36468                #   b. a variant of presentlang (because in this case,
36469                #      presentlang can be used as a fallback for messages
36470                #      which are not translated in the desiredlang catalog).
36471                case "$desiredlang" in
36472                  "$presentlang"*) useit=yes;;
36473                esac
36474              done
36475              if test $useit = yes; then
36476                INST_LINGUAS="$INST_LINGUAS $presentlang"
36477              fi
36478            done
36479          fi
36480          CATALOGS=
36481          if test -n "$INST_LINGUAS"; then
36482            for lang in $INST_LINGUAS; do
36483              CATALOGS="$CATALOGS $lang.gmo"
36484            done
36485          fi
36486          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36487          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"
36488          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36489            if test -f "$f"; then
36490              case "$f" in
36491                *.orig | *.bak | *~) ;;
36492                *) cat "$f" >> "$ac_dir/Makefile" ;;
36493              esac
36494            fi
36495          done
36496        fi
36497        ;;
36498      esac
36499    done ;;
36500    "gnulib-lib/Makefile":F)
36501  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
36502  mv $ac_file.tmp $ac_file
36503 ;;
36504    "src/Makefile":F)
36505  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
36506  mv $ac_file.tmp $ac_file
36507 ;;
36508    "src/gettext.sh":F) chmod a+x src/gettext.sh ;;
36509    "man/Makefile":F)
36510  sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
36511  mv $ac_file.tmp $ac_file
36512 ;;
36513
36514  esac
36515done # for ac_tag
36516
36517
36518{ (exit 0); exit 0; }
36519_ACEOF
36520chmod +x $CONFIG_STATUS
36521ac_clean_files=$ac_clean_files_save
36522
36523
36524# configure is writing to config.log, and then calls config.status.
36525# config.status does its own redirection, appending to config.log.
36526# Unfortunately, on DOS this fails, as config.log is still kept open
36527# by configure, so config.status won't be able to write to it; its
36528# output is simply discarded.  So we exec the FD to /dev/null,
36529# effectively closing config.log, so it can be properly (re)opened and
36530# appended to by config.status.  When coming back to configure, we
36531# need to make the FD available again.
36532if test "$no_create" != yes; then
36533  ac_cs_success=:
36534  ac_config_status_args=
36535  test "$silent" = yes &&
36536    ac_config_status_args="$ac_config_status_args --quiet"
36537  exec 5>/dev/null
36538  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36539  exec 5>>config.log
36540  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36541  # would make configure fail if this is the last instruction.
36542  $ac_cs_success || { (exit 1); exit 1; }
36543fi
36544
36545#
36546# CONFIG_SUBDIRS section.
36547#
36548if test "$no_recursion" != yes; then
36549
36550  # Remove --cache-file and --srcdir arguments so they do not pile up.
36551  ac_sub_configure_args=
36552  ac_prev=
36553  eval "set x $ac_configure_args"
36554  shift
36555  for ac_arg
36556  do
36557    if test -n "$ac_prev"; then
36558      ac_prev=
36559      continue
36560    fi
36561    case $ac_arg in
36562    -cache-file | --cache-file | --cache-fil | --cache-fi \
36563    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36564      ac_prev=cache_file ;;
36565    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36566    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36567    | --c=*)
36568      ;;
36569    --config-cache | -C)
36570      ;;
36571    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36572      ac_prev=srcdir ;;
36573    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36574      ;;
36575    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36576      ac_prev=prefix ;;
36577    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36578      ;;
36579    *)
36580      case $ac_arg in
36581      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36582      esac
36583      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
36584    esac
36585  done
36586
36587  # Always prepend --prefix to ensure using the same prefix
36588  # in subdir configurations.
36589  ac_arg="--prefix=$prefix"
36590  case $ac_arg in
36591  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36592  esac
36593  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
36594
36595  # Pass --silent
36596  if test "$silent" = yes; then
36597    ac_sub_configure_args="--silent $ac_sub_configure_args"
36598  fi
36599
36600  ac_popdir=`pwd`
36601  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36602
36603    # Do not complain, so a configure script can configure whichever
36604    # parts of a large source tree are present.
36605    test -d "$srcdir/$ac_dir" || continue
36606
36607    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36608    echo "$as_me:$LINENO: $ac_msg" >&5
36609    echo "$ac_msg" >&6
36610    { as_dir="$ac_dir"
36611  case $as_dir in #(
36612  -*) as_dir=./$as_dir;;
36613  esac
36614  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36615    as_dirs=
36616    while :; do
36617      case $as_dir in #(
36618      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36619      *) as_qdir=$as_dir;;
36620      esac
36621      as_dirs="'$as_qdir' $as_dirs"
36622      as_dir=`$as_dirname -- "$as_dir" ||
36623$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36624	 X"$as_dir" : 'X\(//\)[^/]' \| \
36625	 X"$as_dir" : 'X\(//\)$' \| \
36626	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36627echo X"$as_dir" |
36628    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36629	    s//\1/
36630	    q
36631	  }
36632	  /^X\(\/\/\)[^/].*/{
36633	    s//\1/
36634	    q
36635	  }
36636	  /^X\(\/\/\)$/{
36637	    s//\1/
36638	    q
36639	  }
36640	  /^X\(\/\).*/{
36641	    s//\1/
36642	    q
36643	  }
36644	  s/.*/./; q'`
36645      test -d "$as_dir" && break
36646    done
36647    test -z "$as_dirs" || eval "mkdir $as_dirs"
36648  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36649echo "$as_me: error: cannot create directory $as_dir" >&2;}
36650   { (exit 1); exit 1; }; }; }
36651    ac_builddir=.
36652
36653case "$ac_dir" in
36654.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36655*)
36656  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36657  # A ".." for each directory in $ac_dir_suffix.
36658  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36659  case $ac_top_builddir_sub in
36660  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36661  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36662  esac ;;
36663esac
36664ac_abs_top_builddir=$ac_pwd
36665ac_abs_builddir=$ac_pwd$ac_dir_suffix
36666# for backward compatibility:
36667ac_top_builddir=$ac_top_build_prefix
36668
36669case $srcdir in
36670  .)  # We are building in place.
36671    ac_srcdir=.
36672    ac_top_srcdir=$ac_top_builddir_sub
36673    ac_abs_top_srcdir=$ac_pwd ;;
36674  [\\/]* | ?:[\\/]* )  # Absolute name.
36675    ac_srcdir=$srcdir$ac_dir_suffix;
36676    ac_top_srcdir=$srcdir
36677    ac_abs_top_srcdir=$srcdir ;;
36678  *) # Relative name.
36679    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36680    ac_top_srcdir=$ac_top_build_prefix$srcdir
36681    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36682esac
36683ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36684
36685
36686    cd "$ac_dir"
36687
36688    # Check for guested configure; otherwise get Cygnus style configure.
36689    if test -f "$ac_srcdir/configure.gnu"; then
36690      ac_sub_configure=$ac_srcdir/configure.gnu
36691    elif test -f "$ac_srcdir/configure"; then
36692      ac_sub_configure=$ac_srcdir/configure
36693    elif test -f "$ac_srcdir/configure.in"; then
36694      # This should be Cygnus configure.
36695      ac_sub_configure=$ac_aux_dir/configure
36696    else
36697      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36698echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36699      ac_sub_configure=
36700    fi
36701
36702    # The recursion is here.
36703    if test -n "$ac_sub_configure"; then
36704      # Make the cache file name correct relative to the subdirectory.
36705      case $cache_file in
36706      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
36707      *) # Relative name.
36708	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
36709      esac
36710
36711      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36712echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
36713      # The eval makes quoting arguments work.
36714      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36715	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
36716	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
36717echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36718   { (exit 1); exit 1; }; }
36719    fi
36720
36721    cd "$ac_popdir"
36722  done
36723fi
36724
36725