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=.
719LIB@&t@OBJS=
720cross_compiling=no
721subdirs=
722MFLAGS=
723MAKEFLAGS=
724SHELL=${CONFIG_SHELL-/bin/sh}
725
726# Identity of this package.
727PACKAGE_NAME=
728PACKAGE_TARNAME=
729PACKAGE_VERSION=
730PACKAGE_STRING=
731PACKAGE_BUGREPORT=
732
733ac_unique_file="configure.in"
734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
737#ifdef HAVE_SYS_TYPES_H
738# include <sys/types.h>
739#endif
740#ifdef HAVE_SYS_STAT_H
741# include <sys/stat.h>
742#endif
743#ifdef STDC_HEADERS
744# include <stdlib.h>
745# include <stddef.h>
746#else
747# ifdef HAVE_STDLIB_H
748#  include <stdlib.h>
749# endif
750#endif
751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753#  include <memory.h>
754# endif
755# include <string.h>
756#endif
757#ifdef HAVE_STRINGS_H
758# include <strings.h>
759#endif
760#ifdef HAVE_INTTYPES_H
761# include <inttypes.h>
762#endif
763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
767# include <unistd.h>
768#endif"
769
770ac_subst_vars='SHELL
771PATH_SEPARATOR
772PACKAGE_NAME
773PACKAGE_TARNAME
774PACKAGE_VERSION
775PACKAGE_STRING
776PACKAGE_BUGREPORT
777exec_prefix
778prefix
779program_transform_name
780bindir
781sbindir
782libexecdir
783datarootdir
784datadir
785sysconfdir
786sharedstatedir
787localstatedir
788includedir
789oldincludedir
790docdir
791infodir
792htmldir
793dvidir
794pdfdir
795psdir
796libdir
797localedir
798mandir
799DEFS
800ECHO_C
801ECHO_N
802ECHO_T
803LIBS
804build_alias
805host_alias
806target_alias
807INSTALL_PROGRAM
808INSTALL_SCRIPT
809INSTALL_DATA
810am__isrc
811CYGPATH_W
812PACKAGE
813VERSION
814ACLOCAL
815AUTOCONF
816AUTOMAKE
817AUTOHEADER
818MAKEINFO
819install_sh
820STRIP
821INSTALL_STRIP_PROGRAM
822mkdir_p
823AWK
824SET_MAKE
825am__leading_dot
826AMTAR
827am__tar
828am__untar
829CC
830CFLAGS
831LDFLAGS
832CPPFLAGS
833ac_ct_CC
834EXEEXT
835OBJEXT
836DEPDIR
837am__include
838am__quote
839AMDEP_TRUE
840AMDEP_FALSE
841AMDEPBACKSLASH
842CCDEPMODE
843am__fastdepCC_TRUE
844am__fastdepCC_FALSE
845CXX
846CXXFLAGS
847ac_ct_CXX
848CXXDEPMODE
849am__fastdepCXX_TRUE
850am__fastdepCXX_FALSE
851CPP
852do_static_build_TRUE
853do_static_build_FALSE
854XMKMF
855CXXCPP
856X_CFLAGS
857X_PRE_LIBS
858X_LIBS
859X_EXTRA_LIBS
860GREP
861EGREP
862build
863build_cpu
864build_vendor
865build_os
866host
867host_cpu
868host_vendor
869host_os
870SED
871LN_S
872ECHO
873AR
874RANLIB
875DSYMUTIL
876NMEDIT
877F77
878FFLAGS
879ac_ct_F77
880LIBTOOL
881LIB@&t@OBJS
882LTLIBOBJS'
883ac_subst_files=''
884      ac_precious_vars='build_alias
885host_alias
886target_alias
887CC
888CFLAGS
889LDFLAGS
890LIBS
891CPPFLAGS
892CXX
893CXXFLAGS
894CCC
895CPP
896XMKMF
897CXXCPP
898F77
899FFLAGS'
900
901
902# Initialize some variables set by options.
903ac_init_help=
904ac_init_version=false
905# The variables have the same names as the options, with
906# dashes changed to underlines.
907cache_file=/dev/null
908exec_prefix=NONE
909no_create=
910no_recursion=
911prefix=NONE
912program_prefix=NONE
913program_suffix=NONE
914program_transform_name=s,x,x,
915silent=
916site=
917srcdir=
918verbose=
919x_includes=NONE
920x_libraries=NONE
921
922# Installation directory options.
923# These are left unexpanded so users can "make install exec_prefix=/foo"
924# and all the variables that are supposed to be based on exec_prefix
925# by default will actually change.
926# Use braces instead of parens because sh, perl, etc. also accept them.
927# (The list follows the same order as the GNU Coding Standards.)
928bindir='${exec_prefix}/bin'
929sbindir='${exec_prefix}/sbin'
930libexecdir='${exec_prefix}/libexec'
931datarootdir='${prefix}/share'
932datadir='${datarootdir}'
933sysconfdir='${prefix}/etc'
934sharedstatedir='${prefix}/com'
935localstatedir='${prefix}/var'
936includedir='${prefix}/include'
937oldincludedir='/usr/include'
938docdir='${datarootdir}/doc/${PACKAGE}'
939infodir='${datarootdir}/info'
940htmldir='${docdir}'
941dvidir='${docdir}'
942pdfdir='${docdir}'
943psdir='${docdir}'
944libdir='${exec_prefix}/lib'
945localedir='${datarootdir}/locale'
946mandir='${datarootdir}/man'
947
948ac_prev=
949ac_dashdash=
950for ac_option
951do
952  # If the previous option needs an argument, assign it.
953  if test -n "$ac_prev"; then
954    eval $ac_prev=\$ac_option
955    ac_prev=
956    continue
957  fi
958
959  case $ac_option in
960  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961  *)	ac_optarg=yes ;;
962  esac
963
964  # Accept the important Cygnus configure options, so we can diagnose typos.
965
966  case $ac_dashdash$ac_option in
967  --)
968    ac_dashdash=yes ;;
969
970  -bindir | --bindir | --bindi | --bind | --bin | --bi)
971    ac_prev=bindir ;;
972  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973    bindir=$ac_optarg ;;
974
975  -build | --build | --buil | --bui | --bu)
976    ac_prev=build_alias ;;
977  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978    build_alias=$ac_optarg ;;
979
980  -cache-file | --cache-file | --cache-fil | --cache-fi \
981  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982    ac_prev=cache_file ;;
983  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985    cache_file=$ac_optarg ;;
986
987  --config-cache | -C)
988    cache_file=config.cache ;;
989
990  -datadir | --datadir | --datadi | --datad)
991    ac_prev=datadir ;;
992  -datadir=* | --datadir=* | --datadi=* | --datad=*)
993    datadir=$ac_optarg ;;
994
995  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996  | --dataroo | --dataro | --datar)
997    ac_prev=datarootdir ;;
998  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000    datarootdir=$ac_optarg ;;
1001
1002  -disable-* | --disable-*)
1003    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004    # Reject names that are not valid shell variable names.
1005    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007   { (exit 1); exit 1; }; }
1008    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009    eval enable_$ac_feature=no ;;
1010
1011  -docdir | --docdir | --docdi | --doc | --do)
1012    ac_prev=docdir ;;
1013  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014    docdir=$ac_optarg ;;
1015
1016  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017    ac_prev=dvidir ;;
1018  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019    dvidir=$ac_optarg ;;
1020
1021  -enable-* | --enable-*)
1022    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023    # Reject names that are not valid shell variable names.
1024    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026   { (exit 1); exit 1; }; }
1027    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028    eval enable_$ac_feature=\$ac_optarg ;;
1029
1030  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032  | --exec | --exe | --ex)
1033    ac_prev=exec_prefix ;;
1034  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036  | --exec=* | --exe=* | --ex=*)
1037    exec_prefix=$ac_optarg ;;
1038
1039  -gas | --gas | --ga | --g)
1040    # Obsolete; use --with-gas.
1041    with_gas=yes ;;
1042
1043  -help | --help | --hel | --he | -h)
1044    ac_init_help=long ;;
1045  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046    ac_init_help=recursive ;;
1047  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048    ac_init_help=short ;;
1049
1050  -host | --host | --hos | --ho)
1051    ac_prev=host_alias ;;
1052  -host=* | --host=* | --hos=* | --ho=*)
1053    host_alias=$ac_optarg ;;
1054
1055  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056    ac_prev=htmldir ;;
1057  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058  | --ht=*)
1059    htmldir=$ac_optarg ;;
1060
1061  -includedir | --includedir | --includedi | --included | --include \
1062  | --includ | --inclu | --incl | --inc)
1063    ac_prev=includedir ;;
1064  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065  | --includ=* | --inclu=* | --incl=* | --inc=*)
1066    includedir=$ac_optarg ;;
1067
1068  -infodir | --infodir | --infodi | --infod | --info | --inf)
1069    ac_prev=infodir ;;
1070  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071    infodir=$ac_optarg ;;
1072
1073  -libdir | --libdir | --libdi | --libd)
1074    ac_prev=libdir ;;
1075  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076    libdir=$ac_optarg ;;
1077
1078  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079  | --libexe | --libex | --libe)
1080    ac_prev=libexecdir ;;
1081  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082  | --libexe=* | --libex=* | --libe=*)
1083    libexecdir=$ac_optarg ;;
1084
1085  -localedir | --localedir | --localedi | --localed | --locale)
1086    ac_prev=localedir ;;
1087  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088    localedir=$ac_optarg ;;
1089
1090  -localstatedir | --localstatedir | --localstatedi | --localstated \
1091  | --localstate | --localstat | --localsta | --localst | --locals)
1092    ac_prev=localstatedir ;;
1093  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095    localstatedir=$ac_optarg ;;
1096
1097  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098    ac_prev=mandir ;;
1099  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100    mandir=$ac_optarg ;;
1101
1102  -nfp | --nfp | --nf)
1103    # Obsolete; use --without-fp.
1104    with_fp=no ;;
1105
1106  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107  | --no-cr | --no-c | -n)
1108    no_create=yes ;;
1109
1110  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112    no_recursion=yes ;;
1113
1114  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116  | --oldin | --oldi | --old | --ol | --o)
1117    ac_prev=oldincludedir ;;
1118  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121    oldincludedir=$ac_optarg ;;
1122
1123  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124    ac_prev=prefix ;;
1125  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126    prefix=$ac_optarg ;;
1127
1128  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129  | --program-pre | --program-pr | --program-p)
1130    ac_prev=program_prefix ;;
1131  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133    program_prefix=$ac_optarg ;;
1134
1135  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136  | --program-suf | --program-su | --program-s)
1137    ac_prev=program_suffix ;;
1138  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140    program_suffix=$ac_optarg ;;
1141
1142  -program-transform-name | --program-transform-name \
1143  | --program-transform-nam | --program-transform-na \
1144  | --program-transform-n | --program-transform- \
1145  | --program-transform | --program-transfor \
1146  | --program-transfo | --program-transf \
1147  | --program-trans | --program-tran \
1148  | --progr-tra | --program-tr | --program-t)
1149    ac_prev=program_transform_name ;;
1150  -program-transform-name=* | --program-transform-name=* \
1151  | --program-transform-nam=* | --program-transform-na=* \
1152  | --program-transform-n=* | --program-transform-=* \
1153  | --program-transform=* | --program-transfor=* \
1154  | --program-transfo=* | --program-transf=* \
1155  | --program-trans=* | --program-tran=* \
1156  | --progr-tra=* | --program-tr=* | --program-t=*)
1157    program_transform_name=$ac_optarg ;;
1158
1159  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160    ac_prev=pdfdir ;;
1161  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162    pdfdir=$ac_optarg ;;
1163
1164  -psdir | --psdir | --psdi | --psd | --ps)
1165    ac_prev=psdir ;;
1166  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167    psdir=$ac_optarg ;;
1168
1169  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170  | -silent | --silent | --silen | --sile | --sil)
1171    silent=yes ;;
1172
1173  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174    ac_prev=sbindir ;;
1175  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176  | --sbi=* | --sb=*)
1177    sbindir=$ac_optarg ;;
1178
1179  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181  | --sharedst | --shareds | --shared | --share | --shar \
1182  | --sha | --sh)
1183    ac_prev=sharedstatedir ;;
1184  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187  | --sha=* | --sh=*)
1188    sharedstatedir=$ac_optarg ;;
1189
1190  -site | --site | --sit)
1191    ac_prev=site ;;
1192  -site=* | --site=* | --sit=*)
1193    site=$ac_optarg ;;
1194
1195  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196    ac_prev=srcdir ;;
1197  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198    srcdir=$ac_optarg ;;
1199
1200  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201  | --syscon | --sysco | --sysc | --sys | --sy)
1202    ac_prev=sysconfdir ;;
1203  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205    sysconfdir=$ac_optarg ;;
1206
1207  -target | --target | --targe | --targ | --tar | --ta | --t)
1208    ac_prev=target_alias ;;
1209  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210    target_alias=$ac_optarg ;;
1211
1212  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213    verbose=yes ;;
1214
1215  -version | --version | --versio | --versi | --vers | -V)
1216    ac_init_version=: ;;
1217
1218  -with-* | --with-*)
1219    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220    # Reject names that are not valid shell variable names.
1221    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222      { echo "$as_me: error: invalid package name: $ac_package" >&2
1223   { (exit 1); exit 1; }; }
1224    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225    eval with_$ac_package=\$ac_optarg ;;
1226
1227  -without-* | --without-*)
1228    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229    # Reject names that are not valid shell variable names.
1230    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231      { echo "$as_me: error: invalid package name: $ac_package" >&2
1232   { (exit 1); exit 1; }; }
1233    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234    eval with_$ac_package=no ;;
1235
1236  --x)
1237    # Obsolete; use --with-x.
1238    with_x=yes ;;
1239
1240  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241  | --x-incl | --x-inc | --x-in | --x-i)
1242    ac_prev=x_includes ;;
1243  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245    x_includes=$ac_optarg ;;
1246
1247  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249    ac_prev=x_libraries ;;
1250  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252    x_libraries=$ac_optarg ;;
1253
1254  -*) { echo "$as_me: error: unrecognized option: $ac_option
1255Try \`$0 --help' for more information." >&2
1256   { (exit 1); exit 1; }; }
1257    ;;
1258
1259  *=*)
1260    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261    # Reject names that are not valid shell variable names.
1262    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264   { (exit 1); exit 1; }; }
1265    eval $ac_envvar=\$ac_optarg
1266    export $ac_envvar ;;
1267
1268  *)
1269    # FIXME: should be removed in autoconf 3.0.
1270    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274    ;;
1275
1276  esac
1277done
1278
1279if test -n "$ac_prev"; then
1280  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281  { echo "$as_me: error: missing argument to $ac_option" >&2
1282   { (exit 1); exit 1; }; }
1283fi
1284
1285# Be sure to have absolute directory names.
1286for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287		datadir sysconfdir sharedstatedir localstatedir includedir \
1288		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289		libdir localedir mandir
1290do
1291  eval ac_val=\$$ac_var
1292  case $ac_val in
1293    [\\/$]* | ?:[\\/]* )  continue;;
1294    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295  esac
1296  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297   { (exit 1); exit 1; }; }
1298done
1299
1300# There might be people who depend on the old broken behavior: `$host'
1301# used to hold the argument of --host etc.
1302# FIXME: To remove some day.
1303build=$build_alias
1304host=$host_alias
1305target=$target_alias
1306
1307# FIXME: To remove some day.
1308if test "x$host_alias" != x; then
1309  if test "x$build_alias" = x; then
1310    cross_compiling=maybe
1311    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312    If a cross compiler is detected then cross compile mode will be used." >&2
1313  elif test "x$build_alias" != "x$host_alias"; then
1314    cross_compiling=yes
1315  fi
1316fi
1317
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
1322
1323
1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327  { echo "$as_me: error: Working directory cannot be determined" >&2
1328   { (exit 1); exit 1; }; }
1329test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330  { echo "$as_me: error: pwd does not report name of working directory" >&2
1331   { (exit 1); exit 1; }; }
1332
1333
1334# Find the source files, if location was not specified.
1335if test -z "$srcdir"; then
1336  ac_srcdir_defaulted=yes
1337  # Try the directory containing this script, then the parent directory.
1338  ac_confdir=`$as_dirname -- "$0" ||
1339$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340	 X"$0" : 'X\(//\)[^/]' \| \
1341	 X"$0" : 'X\(//\)$' \| \
1342	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1343echo X"$0" |
1344    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\/\)[^/].*/{
1349	    s//\1/
1350	    q
1351	  }
1352	  /^X\(\/\/\)$/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\).*/{
1357	    s//\1/
1358	    q
1359	  }
1360	  s/.*/./; q'`
1361  srcdir=$ac_confdir
1362  if test ! -r "$srcdir/$ac_unique_file"; then
1363    srcdir=..
1364  fi
1365else
1366  ac_srcdir_defaulted=no
1367fi
1368if test ! -r "$srcdir/$ac_unique_file"; then
1369  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371   { (exit 1); exit 1; }; }
1372fi
1373ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374ac_abs_confdir=`(
1375	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376   { (exit 1); exit 1; }; }
1377	pwd)`
1378# When building in place, set srcdir=.
1379if test "$ac_abs_confdir" = "$ac_pwd"; then
1380  srcdir=.
1381fi
1382# Remove unnecessary trailing slashes from srcdir.
1383# Double slashes in file names in object file debugging info
1384# mess up M-x gdb in Emacs.
1385case $srcdir in
1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387esac
1388for ac_var in $ac_precious_vars; do
1389  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390  eval ac_env_${ac_var}_value=\$${ac_var}
1391  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393done
1394
1395#
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399  # Omit some internal or obsolete options to make the list less imposing.
1400  # This message is too long to be a string in the A/UX 3.1 sh.
1401  cat <<_ACEOF
1402\`configure' configures this package to adapt to many kinds of systems.
1403
1404Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE.  See below for descriptions of some of the useful variables.
1408
1409Defaults for the options are specified in brackets.
1410
1411Configuration:
1412  -h, --help              display this help and exit
1413      --help=short        display options specific to this package
1414      --help=recursive    display the short help of all the included packages
1415  -V, --version           display version information and exit
1416  -q, --quiet, --silent   do not print \`checking...' messages
1417      --cache-file=FILE   cache test results in FILE [disabled]
1418  -C, --config-cache      alias for \`--cache-file=config.cache'
1419  -n, --no-create         do not create output files
1420      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1421
1422Installation directories:
1423  --prefix=PREFIX         install architecture-independent files in PREFIX
1424			  [$ac_default_prefix]
1425  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1426			  [PREFIX]
1427
1428By default, \`make install' will install all the files in
1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1430an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431for instance \`--prefix=\$HOME'.
1432
1433For better control, use the options below.
1434
1435Fine tuning of the installation directories:
1436  --bindir=DIR           user executables [EPREFIX/bin]
1437  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1438  --libexecdir=DIR       program executables [EPREFIX/libexec]
1439  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1440  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1441  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1442  --libdir=DIR           object code libraries [EPREFIX/lib]
1443  --includedir=DIR       C header files [PREFIX/include]
1444  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1445  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1446  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1447  --infodir=DIR          info documentation [DATAROOTDIR/info]
1448  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1449  --mandir=DIR           man documentation [DATAROOTDIR/man]
1450  --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1451  --htmldir=DIR          html documentation [DOCDIR]
1452  --dvidir=DIR           dvi documentation [DOCDIR]
1453  --pdfdir=DIR           pdf documentation [DOCDIR]
1454  --psdir=DIR            ps documentation [DOCDIR]
1455_ACEOF
1456
1457  cat <<\_ACEOF
1458
1459Program names:
1460  --program-prefix=PREFIX            prepend PREFIX to installed program names
1461  --program-suffix=SUFFIX            append SUFFIX to installed program names
1462  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1463
1464X features:
1465  --x-includes=DIR    X include files are in DIR
1466  --x-libraries=DIR   X library files are in DIR
1467
1468System types:
1469  --build=BUILD     configure for building on BUILD [guessed]
1470  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1471_ACEOF
1472fi
1473
1474if test -n "$ac_init_help"; then
1475
1476  cat <<\_ACEOF
1477
1478Optional Features:
1479  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1480  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1481  --disable-dependency-tracking  speeds up one-time build
1482  --enable-dependency-tracking   do not reject slow dependency extractors
1483  --enable-static-build   compile mp4v2 and faad2 from source and link
1484                          everything statically
1485  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1486  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1487  --enable-fast-install@<:@=PKGS@:>@
1488                          optimize for fast installation @<:@default=yes@:>@
1489  --disable-libtool-lock  avoid locking (might break parallel builds)
1490
1491Optional Packages:
1492  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1493  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1494  --with-x                use the X Window System
1495  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1496  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1497                          both@:>@
1498  --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1499
1500Some influential environment variables:
1501  CC          C compiler command
1502  CFLAGS      C compiler flags
1503  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1504              nonstandard directory <lib dir>
1505  LIBS        libraries to pass to the linker, e.g. -l<library>
1506  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1507              you have headers in a nonstandard directory <include dir>
1508  CXX         C++ compiler command
1509  CXXFLAGS    C++ compiler flags
1510  CPP         C preprocessor
1511  XMKMF       Path to xmkmf, Makefile generator for X Window System
1512  CXXCPP      C++ preprocessor
1513  F77         Fortran 77 compiler command
1514  FFLAGS      Fortran 77 compiler flags
1515
1516Use these variables to override the choices made by `configure' or to help
1517it to find libraries and programs with nonstandard names/locations.
1518
1519_ACEOF
1520ac_status=$?
1521fi
1522
1523if test "$ac_init_help" = "recursive"; then
1524  # If there are subdirs, report their specific --help.
1525  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526    test -d "$ac_dir" || continue
1527    ac_builddir=.
1528
1529case "$ac_dir" in
1530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531*)
1532  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1533  # A ".." for each directory in $ac_dir_suffix.
1534  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1535  case $ac_top_builddir_sub in
1536  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538  esac ;;
1539esac
1540ac_abs_top_builddir=$ac_pwd
1541ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542# for backward compatibility:
1543ac_top_builddir=$ac_top_build_prefix
1544
1545case $srcdir in
1546  .)  # We are building in place.
1547    ac_srcdir=.
1548    ac_top_srcdir=$ac_top_builddir_sub
1549    ac_abs_top_srcdir=$ac_pwd ;;
1550  [\\/]* | ?:[\\/]* )  # Absolute name.
1551    ac_srcdir=$srcdir$ac_dir_suffix;
1552    ac_top_srcdir=$srcdir
1553    ac_abs_top_srcdir=$srcdir ;;
1554  *) # Relative name.
1555    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556    ac_top_srcdir=$ac_top_build_prefix$srcdir
1557    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558esac
1559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561    cd "$ac_dir" || { ac_status=$?; continue; }
1562    # Check for guested configure.
1563    if test -f "$ac_srcdir/configure.gnu"; then
1564      echo &&
1565      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566    elif test -f "$ac_srcdir/configure"; then
1567      echo &&
1568      $SHELL "$ac_srcdir/configure" --help=recursive
1569    else
1570      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571    fi || ac_status=$?
1572    cd "$ac_pwd" || { ac_status=$?; break; }
1573  done
1574fi
1575
1576test -n "$ac_init_help" && exit $ac_status
1577if $ac_init_version; then
1578  cat <<\_ACEOF
1579configure
1580generated by GNU Autoconf 2.61
1581
1582Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15832002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1584This configure script is free software; the Free Software Foundation
1585gives unlimited permission to copy, distribute and modify it.
1586_ACEOF
1587  exit
1588fi
1589cat >config.log <<_ACEOF
1590This file contains any messages produced by compilers while
1591running configure, to aid debugging if configure makes a mistake.
1592
1593It was created by $as_me, which was
1594generated by GNU Autoconf 2.61.  Invocation command line was
1595
1596  $ $0 $@
1597
1598_ACEOF
1599exec 5>>config.log
1600{
1601cat <<_ASUNAME
1602@%:@@%:@ --------- @%:@@%:@
1603@%:@@%:@ Platform. @%:@@%:@
1604@%:@@%:@ --------- @%:@@%:@
1605
1606hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1607uname -m = `(uname -m) 2>/dev/null || echo unknown`
1608uname -r = `(uname -r) 2>/dev/null || echo unknown`
1609uname -s = `(uname -s) 2>/dev/null || echo unknown`
1610uname -v = `(uname -v) 2>/dev/null || echo unknown`
1611
1612/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1613/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1614
1615/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1616/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1617/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1618/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1619/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1620/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1621/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1622
1623_ASUNAME
1624
1625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626for as_dir in $PATH
1627do
1628  IFS=$as_save_IFS
1629  test -z "$as_dir" && as_dir=.
1630  echo "PATH: $as_dir"
1631done
1632IFS=$as_save_IFS
1633
1634} >&5
1635
1636cat >&5 <<_ACEOF
1637
1638
1639@%:@@%:@ ----------- @%:@@%:@
1640@%:@@%:@ Core tests. @%:@@%:@
1641@%:@@%:@ ----------- @%:@@%:@
1642
1643_ACEOF
1644
1645
1646# Keep a trace of the command line.
1647# Strip out --no-create and --no-recursion so they do not pile up.
1648# Strip out --silent because we don't want to record it for future runs.
1649# Also quote any args containing shell meta-characters.
1650# Make two passes to allow for proper duplicate-argument suppression.
1651ac_configure_args=
1652ac_configure_args0=
1653ac_configure_args1=
1654ac_must_keep_next=false
1655for ac_pass in 1 2
1656do
1657  for ac_arg
1658  do
1659    case $ac_arg in
1660    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1661    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1662    | -silent | --silent | --silen | --sile | --sil)
1663      continue ;;
1664    *\'*)
1665      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1666    esac
1667    case $ac_pass in
1668    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1669    2)
1670      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1671      if test $ac_must_keep_next = true; then
1672	ac_must_keep_next=false # Got value, back to normal.
1673      else
1674	case $ac_arg in
1675	  *=* | --config-cache | -C | -disable-* | --disable-* \
1676	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1677	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1678	  | -with-* | --with-* | -without-* | --without-* | --x)
1679	    case "$ac_configure_args0 " in
1680	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1681	    esac
1682	    ;;
1683	  -* ) ac_must_keep_next=true ;;
1684	esac
1685      fi
1686      ac_configure_args="$ac_configure_args '$ac_arg'"
1687      ;;
1688    esac
1689  done
1690done
1691$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1692$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1693
1694# When interrupted or exit'd, cleanup temporary files, and complete
1695# config.log.  We remove comments because anyway the quotes in there
1696# would cause problems or look ugly.
1697# WARNING: Use '\'' to represent an apostrophe within the trap.
1698# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1699trap 'exit_status=$?
1700  # Save into config.log some information that might help in debugging.
1701  {
1702    echo
1703
1704    cat <<\_ASBOX
1705@%:@@%:@ ---------------- @%:@@%:@
1706@%:@@%:@ Cache variables. @%:@@%:@
1707@%:@@%:@ ---------------- @%:@@%:@
1708_ASBOX
1709    echo
1710    # The following way of writing the cache mishandles newlines in values,
1711(
1712  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1713    eval ac_val=\$$ac_var
1714    case $ac_val in #(
1715    *${as_nl}*)
1716      case $ac_var in #(
1717      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1718echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1719      esac
1720      case $ac_var in #(
1721      _ | IFS | as_nl) ;; #(
1722      *) $as_unset $ac_var ;;
1723      esac ;;
1724    esac
1725  done
1726  (set) 2>&1 |
1727    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1728    *${as_nl}ac_space=\ *)
1729      sed -n \
1730	"s/'\''/'\''\\\\'\'''\''/g;
1731	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1732      ;; #(
1733    *)
1734      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1735      ;;
1736    esac |
1737    sort
1738)
1739    echo
1740
1741    cat <<\_ASBOX
1742@%:@@%:@ ----------------- @%:@@%:@
1743@%:@@%:@ Output variables. @%:@@%:@
1744@%:@@%:@ ----------------- @%:@@%:@
1745_ASBOX
1746    echo
1747    for ac_var in $ac_subst_vars
1748    do
1749      eval ac_val=\$$ac_var
1750      case $ac_val in
1751      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752      esac
1753      echo "$ac_var='\''$ac_val'\''"
1754    done | sort
1755    echo
1756
1757    if test -n "$ac_subst_files"; then
1758      cat <<\_ASBOX
1759@%:@@%:@ ------------------- @%:@@%:@
1760@%:@@%:@ File substitutions. @%:@@%:@
1761@%:@@%:@ ------------------- @%:@@%:@
1762_ASBOX
1763      echo
1764      for ac_var in $ac_subst_files
1765      do
1766	eval ac_val=\$$ac_var
1767	case $ac_val in
1768	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1769	esac
1770	echo "$ac_var='\''$ac_val'\''"
1771      done | sort
1772      echo
1773    fi
1774
1775    if test -s confdefs.h; then
1776      cat <<\_ASBOX
1777@%:@@%:@ ----------- @%:@@%:@
1778@%:@@%:@ confdefs.h. @%:@@%:@
1779@%:@@%:@ ----------- @%:@@%:@
1780_ASBOX
1781      echo
1782      cat confdefs.h
1783      echo
1784    fi
1785    test "$ac_signal" != 0 &&
1786      echo "$as_me: caught signal $ac_signal"
1787    echo "$as_me: exit $exit_status"
1788  } >&5
1789  rm -f core *.core core.conftest.* &&
1790    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1791    exit $exit_status
1792' 0
1793for ac_signal in 1 2 13 15; do
1794  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1795done
1796ac_signal=0
1797
1798# confdefs.h avoids OS command line length limits that DEFS can exceed.
1799rm -f -r conftest* confdefs.h
1800
1801# Predefined preprocessor variables.
1802
1803cat >>confdefs.h <<_ACEOF
1804@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1805_ACEOF
1806
1807
1808cat >>confdefs.h <<_ACEOF
1809@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1810_ACEOF
1811
1812
1813cat >>confdefs.h <<_ACEOF
1814@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1815_ACEOF
1816
1817
1818cat >>confdefs.h <<_ACEOF
1819@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1820_ACEOF
1821
1822
1823cat >>confdefs.h <<_ACEOF
1824@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1825_ACEOF
1826
1827
1828# Let the site file select an alternate cache file if it wants to.
1829# Prefer explicitly selected file to automatically selected ones.
1830if test -n "$CONFIG_SITE"; then
1831  set x "$CONFIG_SITE"
1832elif test "x$prefix" != xNONE; then
1833  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1834else
1835  set x "$ac_default_prefix/share/config.site" \
1836	"$ac_default_prefix/etc/config.site"
1837fi
1838shift
1839for ac_site_file
1840do
1841  if test -r "$ac_site_file"; then
1842    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1843echo "$as_me: loading site script $ac_site_file" >&6;}
1844    sed 's/^/| /' "$ac_site_file" >&5
1845    . "$ac_site_file"
1846  fi
1847done
1848
1849if test -r "$cache_file"; then
1850  # Some versions of bash will fail to source /dev/null (special
1851  # files actually), so we avoid doing that.
1852  if test -f "$cache_file"; then
1853    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1854echo "$as_me: loading cache $cache_file" >&6;}
1855    case $cache_file in
1856      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1857      *)                      . "./$cache_file";;
1858    esac
1859  fi
1860else
1861  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1862echo "$as_me: creating cache $cache_file" >&6;}
1863  >$cache_file
1864fi
1865
1866# Check that the precious variables saved in the cache have kept the same
1867# value.
1868ac_cache_corrupted=false
1869for ac_var in $ac_precious_vars; do
1870  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1871  eval ac_new_set=\$ac_env_${ac_var}_set
1872  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1873  eval ac_new_val=\$ac_env_${ac_var}_value
1874  case $ac_old_set,$ac_new_set in
1875    set,)
1876      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1877echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1878      ac_cache_corrupted=: ;;
1879    ,set)
1880      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1881echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1882      ac_cache_corrupted=: ;;
1883    ,);;
1884    *)
1885      if test "x$ac_old_val" != "x$ac_new_val"; then
1886	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1887echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1888	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1889echo "$as_me:   former value:  $ac_old_val" >&2;}
1890	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1891echo "$as_me:   current value: $ac_new_val" >&2;}
1892	ac_cache_corrupted=:
1893      fi;;
1894  esac
1895  # Pass precious variables to config.status.
1896  if test "$ac_new_set" = set; then
1897    case $ac_new_val in
1898    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1899    *) ac_arg=$ac_var=$ac_new_val ;;
1900    esac
1901    case " $ac_configure_args " in
1902      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1903      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1904    esac
1905  fi
1906done
1907if $ac_cache_corrupted; then
1908  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1909echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1910  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1911echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1912   { (exit 1); exit 1; }; }
1913fi
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931ac_ext=c
1932ac_cpp='$CPP $CPPFLAGS'
1933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1935ac_compiler_gnu=$ac_cv_c_compiler_gnu
1936
1937
1938ac_config_headers="$ac_config_headers config.h"
1939
1940am__api_version='1.10'
1941
1942ac_aux_dir=
1943for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1944  if test -f "$ac_dir/install-sh"; then
1945    ac_aux_dir=$ac_dir
1946    ac_install_sh="$ac_aux_dir/install-sh -c"
1947    break
1948  elif test -f "$ac_dir/install.sh"; then
1949    ac_aux_dir=$ac_dir
1950    ac_install_sh="$ac_aux_dir/install.sh -c"
1951    break
1952  elif test -f "$ac_dir/shtool"; then
1953    ac_aux_dir=$ac_dir
1954    ac_install_sh="$ac_aux_dir/shtool install -c"
1955    break
1956  fi
1957done
1958if test -z "$ac_aux_dir"; then
1959  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1960echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1961   { (exit 1); exit 1; }; }
1962fi
1963
1964# These three variables are undocumented and unsupported,
1965# and are intended to be withdrawn in a future Autoconf release.
1966# They can cause serious problems if a builder's source tree is in a directory
1967# whose full name contains unusual characters.
1968ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1969ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1970ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1971
1972
1973# Find a good install program.  We prefer a C program (faster),
1974# so one script is as good as another.  But avoid the broken or
1975# incompatible versions:
1976# SysV /etc/install, /usr/sbin/install
1977# SunOS /usr/etc/install
1978# IRIX /sbin/install
1979# AIX /bin/install
1980# AmigaOS /C/install, which installs bootblocks on floppy discs
1981# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1982# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1983# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1984# OS/2's system install, which has a completely different semantic
1985# ./install, which can be erroneously created by make from ./install.sh.
1986{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1987echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1988if test -z "$INSTALL"; then
1989if test "${ac_cv_path_install+set}" = set; then
1990  echo $ECHO_N "(cached) $ECHO_C" >&6
1991else
1992  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995  IFS=$as_save_IFS
1996  test -z "$as_dir" && as_dir=.
1997  # Account for people who put trailing slashes in PATH elements.
1998case $as_dir/ in
1999  ./ | .// | /cC/* | \
2000  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2001  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2002  /usr/ucb/* ) ;;
2003  *)
2004    # OSF1 and SCO ODT 3.0 have their own names for install.
2005    # Don't use installbsd from OSF since it installs stuff as root
2006    # by default.
2007    for ac_prog in ginstall scoinst install; do
2008      for ac_exec_ext in '' $ac_executable_extensions; do
2009	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2010	  if test $ac_prog = install &&
2011	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2012	    # AIX install.  It has an incompatible calling convention.
2013	    :
2014	  elif test $ac_prog = install &&
2015	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2016	    # program-specific install script used by HP pwplus--don't use.
2017	    :
2018	  else
2019	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2020	    break 3
2021	  fi
2022	fi
2023      done
2024    done
2025    ;;
2026esac
2027done
2028IFS=$as_save_IFS
2029
2030
2031fi
2032  if test "${ac_cv_path_install+set}" = set; then
2033    INSTALL=$ac_cv_path_install
2034  else
2035    # As a last resort, use the slow shell script.  Don't cache a
2036    # value for INSTALL within a source directory, because that will
2037    # break other packages using the cache if that directory is
2038    # removed, or if the value is a relative name.
2039    INSTALL=$ac_install_sh
2040  fi
2041fi
2042{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2043echo "${ECHO_T}$INSTALL" >&6; }
2044
2045# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2046# It thinks the first close brace ends the variable substitution.
2047test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2048
2049test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2050
2051test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2052
2053{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2054echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2055# Just in case
2056sleep 1
2057echo timestamp > conftest.file
2058# Do `set' in a subshell so we don't clobber the current shell's
2059# arguments.  Must try -L first in case configure is actually a
2060# symlink; some systems play weird games with the mod time of symlinks
2061# (eg FreeBSD returns the mod time of the symlink's containing
2062# directory).
2063if (
2064   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2065   if test "$*" = "X"; then
2066      # -L didn't work.
2067      set X `ls -t $srcdir/configure conftest.file`
2068   fi
2069   rm -f conftest.file
2070   if test "$*" != "X $srcdir/configure conftest.file" \
2071      && test "$*" != "X conftest.file $srcdir/configure"; then
2072
2073      # If neither matched, then we have a broken ls.  This can happen
2074      # if, for instance, CONFIG_SHELL is bash and it inherits a
2075      # broken ls alias from the environment.  This has actually
2076      # happened.  Such a system could not be considered "sane".
2077      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2078alias in your environment" >&5
2079echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2080alias in your environment" >&2;}
2081   { (exit 1); exit 1; }; }
2082   fi
2083
2084   test "$2" = conftest.file
2085   )
2086then
2087   # Ok.
2088   :
2089else
2090   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2091Check your system clock" >&5
2092echo "$as_me: error: newly created file is older than distributed files!
2093Check your system clock" >&2;}
2094   { (exit 1); exit 1; }; }
2095fi
2096{ echo "$as_me:$LINENO: result: yes" >&5
2097echo "${ECHO_T}yes" >&6; }
2098test "$program_prefix" != NONE &&
2099  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2100# Use a double $ so make ignores it.
2101test "$program_suffix" != NONE &&
2102  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2103# Double any \ or $.  echo might interpret backslashes.
2104# By default was `s,x,x', remove it if useless.
2105cat <<\_ACEOF >conftest.sed
2106s/[\\$]/&&/g;s/;s,x,x,$//
2107_ACEOF
2108program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2109rm -f conftest.sed
2110
2111# expand $ac_aux_dir to an absolute path
2112am_aux_dir=`cd $ac_aux_dir && pwd`
2113
2114test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2115# Use eval to expand $SHELL
2116if eval "$MISSING --run true"; then
2117  am_missing_run="$MISSING --run "
2118else
2119  am_missing_run=
2120  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2121echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2122fi
2123
2124{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2125echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2126if test -z "$MKDIR_P"; then
2127  if test "${ac_cv_path_mkdir+set}" = set; then
2128  echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2132do
2133  IFS=$as_save_IFS
2134  test -z "$as_dir" && as_dir=.
2135  for ac_prog in mkdir gmkdir; do
2136	 for ac_exec_ext in '' $ac_executable_extensions; do
2137	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2138	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2139	     'mkdir (GNU coreutils) '* | \
2140	     'mkdir (coreutils) '* | \
2141	     'mkdir (fileutils) '4.1*)
2142	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2143	       break 3;;
2144	   esac
2145	 done
2146       done
2147done
2148IFS=$as_save_IFS
2149
2150fi
2151
2152  if test "${ac_cv_path_mkdir+set}" = set; then
2153    MKDIR_P="$ac_cv_path_mkdir -p"
2154  else
2155    # As a last resort, use the slow shell script.  Don't cache a
2156    # value for MKDIR_P within a source directory, because that will
2157    # break other packages using the cache if that directory is
2158    # removed, or if the value is a relative name.
2159    test -d ./--version && rmdir ./--version
2160    MKDIR_P="$ac_install_sh -d"
2161  fi
2162fi
2163{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2164echo "${ECHO_T}$MKDIR_P" >&6; }
2165
2166mkdir_p="$MKDIR_P"
2167case $mkdir_p in
2168  [\\/$]* | ?:[\\/]*) ;;
2169  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2170esac
2171
2172for ac_prog in gawk mawk nawk awk
2173do
2174  # Extract the first word of "$ac_prog", so it can be a program name with args.
2175set dummy $ac_prog; ac_word=$2
2176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2178if test "${ac_cv_prog_AWK+set}" = set; then
2179  echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
2181  if test -n "$AWK"; then
2182  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2183else
2184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185for as_dir in $PATH
2186do
2187  IFS=$as_save_IFS
2188  test -z "$as_dir" && as_dir=.
2189  for ac_exec_ext in '' $ac_executable_extensions; do
2190  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2191    ac_cv_prog_AWK="$ac_prog"
2192    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193    break 2
2194  fi
2195done
2196done
2197IFS=$as_save_IFS
2198
2199fi
2200fi
2201AWK=$ac_cv_prog_AWK
2202if test -n "$AWK"; then
2203  { echo "$as_me:$LINENO: result: $AWK" >&5
2204echo "${ECHO_T}$AWK" >&6; }
2205else
2206  { echo "$as_me:$LINENO: result: no" >&5
2207echo "${ECHO_T}no" >&6; }
2208fi
2209
2210
2211  test -n "$AWK" && break
2212done
2213
2214{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2215echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2216set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2217if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2218  echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220  cat >conftest.make <<\_ACEOF
2221SHELL = /bin/sh
2222all:
2223	@echo '@@@%%%=$(MAKE)=@@@%%%'
2224_ACEOF
2225# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2226case `${MAKE-make} -f conftest.make 2>/dev/null` in
2227  *@@@%%%=?*=@@@%%%*)
2228    eval ac_cv_prog_make_${ac_make}_set=yes;;
2229  *)
2230    eval ac_cv_prog_make_${ac_make}_set=no;;
2231esac
2232rm -f conftest.make
2233fi
2234if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2235  { echo "$as_me:$LINENO: result: yes" >&5
2236echo "${ECHO_T}yes" >&6; }
2237  SET_MAKE=
2238else
2239  { echo "$as_me:$LINENO: result: no" >&5
2240echo "${ECHO_T}no" >&6; }
2241  SET_MAKE="MAKE=${MAKE-make}"
2242fi
2243
2244rm -rf .tst 2>/dev/null
2245mkdir .tst 2>/dev/null
2246if test -d .tst; then
2247  am__leading_dot=.
2248else
2249  am__leading_dot=_
2250fi
2251rmdir .tst 2>/dev/null
2252
2253if test "`cd $srcdir && pwd`" != "`pwd`"; then
2254  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2255  # is not polluted with repeated "-I."
2256  am__isrc=' -I$(srcdir)'
2257  # test to see if srcdir already configured
2258  if test -f $srcdir/config.status; then
2259    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2260echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2261   { (exit 1); exit 1; }; }
2262  fi
2263fi
2264
2265# test whether we have cygpath
2266if test -z "$CYGPATH_W"; then
2267  if (cygpath --version) >/dev/null 2>/dev/null; then
2268    CYGPATH_W='cygpath -w'
2269  else
2270    CYGPATH_W=echo
2271  fi
2272fi
2273
2274
2275# Define the identity of the package.
2276 PACKAGE=aacgain
2277 VERSION=1.4
2278
2279
2280cat >>confdefs.h <<_ACEOF
2281@%:@define PACKAGE "$PACKAGE"
2282_ACEOF
2283
2284
2285cat >>confdefs.h <<_ACEOF
2286@%:@define VERSION "$VERSION"
2287_ACEOF
2288
2289# Some tools Automake needs.
2290
2291ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2292
2293
2294AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2295
2296
2297AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2298
2299
2300AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2301
2302
2303MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2304
2305install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2306
2307# Installed binaries are usually stripped using `strip' when the user
2308# run `make install-strip'.  However `strip' might not be the right
2309# tool to use in cross-compilation environments, therefore Automake
2310# will honor the `STRIP' environment variable to overrule this program.
2311if test "$cross_compiling" != no; then
2312  if test -n "$ac_tool_prefix"; then
2313  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2314set dummy ${ac_tool_prefix}strip; ac_word=$2
2315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2317if test "${ac_cv_prog_STRIP+set}" = set; then
2318  echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320  if test -n "$STRIP"; then
2321  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2322else
2323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324for as_dir in $PATH
2325do
2326  IFS=$as_save_IFS
2327  test -z "$as_dir" && as_dir=.
2328  for ac_exec_ext in '' $ac_executable_extensions; do
2329  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2330    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2331    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2332    break 2
2333  fi
2334done
2335done
2336IFS=$as_save_IFS
2337
2338fi
2339fi
2340STRIP=$ac_cv_prog_STRIP
2341if test -n "$STRIP"; then
2342  { echo "$as_me:$LINENO: result: $STRIP" >&5
2343echo "${ECHO_T}$STRIP" >&6; }
2344else
2345  { echo "$as_me:$LINENO: result: no" >&5
2346echo "${ECHO_T}no" >&6; }
2347fi
2348
2349
2350fi
2351if test -z "$ac_cv_prog_STRIP"; then
2352  ac_ct_STRIP=$STRIP
2353  # Extract the first word of "strip", so it can be a program name with args.
2354set dummy strip; ac_word=$2
2355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2358  echo $ECHO_N "(cached) $ECHO_C" >&6
2359else
2360  if test -n "$ac_ct_STRIP"; then
2361  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2362else
2363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364for as_dir in $PATH
2365do
2366  IFS=$as_save_IFS
2367  test -z "$as_dir" && as_dir=.
2368  for ac_exec_ext in '' $ac_executable_extensions; do
2369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370    ac_cv_prog_ac_ct_STRIP="strip"
2371    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372    break 2
2373  fi
2374done
2375done
2376IFS=$as_save_IFS
2377
2378fi
2379fi
2380ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2381if test -n "$ac_ct_STRIP"; then
2382  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2383echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2384else
2385  { echo "$as_me:$LINENO: result: no" >&5
2386echo "${ECHO_T}no" >&6; }
2387fi
2388
2389  if test "x$ac_ct_STRIP" = x; then
2390    STRIP=":"
2391  else
2392    case $cross_compiling:$ac_tool_warned in
2393yes:)
2394{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2395whose name does not start with the host triplet.  If you think this
2396configuration is useful to you, please write to autoconf@gnu.org." >&5
2397echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2398whose name does not start with the host triplet.  If you think this
2399configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2400ac_tool_warned=yes ;;
2401esac
2402    STRIP=$ac_ct_STRIP
2403  fi
2404else
2405  STRIP="$ac_cv_prog_STRIP"
2406fi
2407
2408fi
2409INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2410
2411# We need awk for the "check" target.  The system "awk" is bad on
2412# some platforms.
2413# Always define AMTAR for backward compatibility.
2414
2415AMTAR=${AMTAR-"${am_missing_run}tar"}
2416
2417am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2418
2419
2420
2421
2422
2423ac_ext=cpp
2424ac_cpp='$CXXCPP $CPPFLAGS'
2425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2428
2429ac_ext=c
2430ac_cpp='$CPP $CPPFLAGS'
2431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434if test -n "$ac_tool_prefix"; then
2435  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2436set dummy ${ac_tool_prefix}gcc; ac_word=$2
2437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439if test "${ac_cv_prog_CC+set}" = set; then
2440  echo $ECHO_N "(cached) $ECHO_C" >&6
2441else
2442  if test -n "$CC"; then
2443  ac_cv_prog_CC="$CC" # Let the user override the test.
2444else
2445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH
2447do
2448  IFS=$as_save_IFS
2449  test -z "$as_dir" && as_dir=.
2450  for ac_exec_ext in '' $ac_executable_extensions; do
2451  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2453    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454    break 2
2455  fi
2456done
2457done
2458IFS=$as_save_IFS
2459
2460fi
2461fi
2462CC=$ac_cv_prog_CC
2463if test -n "$CC"; then
2464  { echo "$as_me:$LINENO: result: $CC" >&5
2465echo "${ECHO_T}$CC" >&6; }
2466else
2467  { echo "$as_me:$LINENO: result: no" >&5
2468echo "${ECHO_T}no" >&6; }
2469fi
2470
2471
2472fi
2473if test -z "$ac_cv_prog_CC"; then
2474  ac_ct_CC=$CC
2475  # Extract the first word of "gcc", so it can be a program name with args.
2476set dummy gcc; ac_word=$2
2477{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480  echo $ECHO_N "(cached) $ECHO_C" >&6
2481else
2482  if test -n "$ac_ct_CC"; then
2483  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2484else
2485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486for as_dir in $PATH
2487do
2488  IFS=$as_save_IFS
2489  test -z "$as_dir" && as_dir=.
2490  for ac_exec_ext in '' $ac_executable_extensions; do
2491  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492    ac_cv_prog_ac_ct_CC="gcc"
2493    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494    break 2
2495  fi
2496done
2497done
2498IFS=$as_save_IFS
2499
2500fi
2501fi
2502ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503if test -n "$ac_ct_CC"; then
2504  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505echo "${ECHO_T}$ac_ct_CC" >&6; }
2506else
2507  { echo "$as_me:$LINENO: result: no" >&5
2508echo "${ECHO_T}no" >&6; }
2509fi
2510
2511  if test "x$ac_ct_CC" = x; then
2512    CC=""
2513  else
2514    case $cross_compiling:$ac_tool_warned in
2515yes:)
2516{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517whose name does not start with the host triplet.  If you think this
2518configuration is useful to you, please write to autoconf@gnu.org." >&5
2519echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520whose name does not start with the host triplet.  If you think this
2521configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522ac_tool_warned=yes ;;
2523esac
2524    CC=$ac_ct_CC
2525  fi
2526else
2527  CC="$ac_cv_prog_CC"
2528fi
2529
2530if test -z "$CC"; then
2531          if test -n "$ac_tool_prefix"; then
2532    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2533set dummy ${ac_tool_prefix}cc; ac_word=$2
2534{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536if test "${ac_cv_prog_CC+set}" = set; then
2537  echo $ECHO_N "(cached) $ECHO_C" >&6
2538else
2539  if test -n "$CC"; then
2540  ac_cv_prog_CC="$CC" # Let the user override the test.
2541else
2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543for as_dir in $PATH
2544do
2545  IFS=$as_save_IFS
2546  test -z "$as_dir" && as_dir=.
2547  for ac_exec_ext in '' $ac_executable_extensions; do
2548  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549    ac_cv_prog_CC="${ac_tool_prefix}cc"
2550    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551    break 2
2552  fi
2553done
2554done
2555IFS=$as_save_IFS
2556
2557fi
2558fi
2559CC=$ac_cv_prog_CC
2560if test -n "$CC"; then
2561  { echo "$as_me:$LINENO: result: $CC" >&5
2562echo "${ECHO_T}$CC" >&6; }
2563else
2564  { echo "$as_me:$LINENO: result: no" >&5
2565echo "${ECHO_T}no" >&6; }
2566fi
2567
2568
2569  fi
2570fi
2571if test -z "$CC"; then
2572  # Extract the first word of "cc", so it can be a program name with args.
2573set dummy cc; ac_word=$2
2574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576if test "${ac_cv_prog_CC+set}" = set; then
2577  echo $ECHO_N "(cached) $ECHO_C" >&6
2578else
2579  if test -n "$CC"; then
2580  ac_cv_prog_CC="$CC" # Let the user override the test.
2581else
2582  ac_prog_rejected=no
2583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584for as_dir in $PATH
2585do
2586  IFS=$as_save_IFS
2587  test -z "$as_dir" && as_dir=.
2588  for ac_exec_ext in '' $ac_executable_extensions; do
2589  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2591       ac_prog_rejected=yes
2592       continue
2593     fi
2594    ac_cv_prog_CC="cc"
2595    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596    break 2
2597  fi
2598done
2599done
2600IFS=$as_save_IFS
2601
2602if test $ac_prog_rejected = yes; then
2603  # We found a bogon in the path, so make sure we never use it.
2604  set dummy $ac_cv_prog_CC
2605  shift
2606  if test $@%:@ != 0; then
2607    # We chose a different compiler from the bogus one.
2608    # However, it has the same basename, so the bogon will be chosen
2609    # first if we set CC to just the basename; use the full file name.
2610    shift
2611    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2612  fi
2613fi
2614fi
2615fi
2616CC=$ac_cv_prog_CC
2617if test -n "$CC"; then
2618  { echo "$as_me:$LINENO: result: $CC" >&5
2619echo "${ECHO_T}$CC" >&6; }
2620else
2621  { echo "$as_me:$LINENO: result: no" >&5
2622echo "${ECHO_T}no" >&6; }
2623fi
2624
2625
2626fi
2627if test -z "$CC"; then
2628  if test -n "$ac_tool_prefix"; then
2629  for ac_prog in cl.exe
2630  do
2631    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2632set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635if test "${ac_cv_prog_CC+set}" = set; then
2636  echo $ECHO_N "(cached) $ECHO_C" >&6
2637else
2638  if test -n "$CC"; then
2639  ac_cv_prog_CC="$CC" # Let the user override the test.
2640else
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644  IFS=$as_save_IFS
2645  test -z "$as_dir" && as_dir=.
2646  for ac_exec_ext in '' $ac_executable_extensions; do
2647  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2649    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650    break 2
2651  fi
2652done
2653done
2654IFS=$as_save_IFS
2655
2656fi
2657fi
2658CC=$ac_cv_prog_CC
2659if test -n "$CC"; then
2660  { echo "$as_me:$LINENO: result: $CC" >&5
2661echo "${ECHO_T}$CC" >&6; }
2662else
2663  { echo "$as_me:$LINENO: result: no" >&5
2664echo "${ECHO_T}no" >&6; }
2665fi
2666
2667
2668    test -n "$CC" && break
2669  done
2670fi
2671if test -z "$CC"; then
2672  ac_ct_CC=$CC
2673  for ac_prog in cl.exe
2674do
2675  # Extract the first word of "$ac_prog", so it can be a program name with args.
2676set dummy $ac_prog; ac_word=$2
2677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2679if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2680  echo $ECHO_N "(cached) $ECHO_C" >&6
2681else
2682  if test -n "$ac_ct_CC"; then
2683  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2684else
2685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH
2687do
2688  IFS=$as_save_IFS
2689  test -z "$as_dir" && as_dir=.
2690  for ac_exec_ext in '' $ac_executable_extensions; do
2691  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692    ac_cv_prog_ac_ct_CC="$ac_prog"
2693    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694    break 2
2695  fi
2696done
2697done
2698IFS=$as_save_IFS
2699
2700fi
2701fi
2702ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703if test -n "$ac_ct_CC"; then
2704  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2705echo "${ECHO_T}$ac_ct_CC" >&6; }
2706else
2707  { echo "$as_me:$LINENO: result: no" >&5
2708echo "${ECHO_T}no" >&6; }
2709fi
2710
2711
2712  test -n "$ac_ct_CC" && break
2713done
2714
2715  if test "x$ac_ct_CC" = x; then
2716    CC=""
2717  else
2718    case $cross_compiling:$ac_tool_warned in
2719yes:)
2720{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2721whose name does not start with the host triplet.  If you think this
2722configuration is useful to you, please write to autoconf@gnu.org." >&5
2723echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2724whose name does not start with the host triplet.  If you think this
2725configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2726ac_tool_warned=yes ;;
2727esac
2728    CC=$ac_ct_CC
2729  fi
2730fi
2731
2732fi
2733
2734
2735test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2736See \`config.log' for more details." >&5
2737echo "$as_me: error: no acceptable C compiler found in \$PATH
2738See \`config.log' for more details." >&2;}
2739   { (exit 1); exit 1; }; }
2740
2741# Provide some information about the compiler.
2742echo "$as_me:$LINENO: checking for C compiler version" >&5
2743ac_compiler=`set X $ac_compile; echo $2`
2744{ (ac_try="$ac_compiler --version >&5"
2745case "(($ac_try" in
2746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747  *) ac_try_echo=$ac_try;;
2748esac
2749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750  (eval "$ac_compiler --version >&5") 2>&5
2751  ac_status=$?
2752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753  (exit $ac_status); }
2754{ (ac_try="$ac_compiler -v >&5"
2755case "(($ac_try" in
2756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757  *) ac_try_echo=$ac_try;;
2758esac
2759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760  (eval "$ac_compiler -v >&5") 2>&5
2761  ac_status=$?
2762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763  (exit $ac_status); }
2764{ (ac_try="$ac_compiler -V >&5"
2765case "(($ac_try" in
2766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767  *) ac_try_echo=$ac_try;;
2768esac
2769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770  (eval "$ac_compiler -V >&5") 2>&5
2771  ac_status=$?
2772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773  (exit $ac_status); }
2774
2775cat >conftest.$ac_ext <<_ACEOF
2776/* confdefs.h.  */
2777_ACEOF
2778cat confdefs.h >>conftest.$ac_ext
2779cat >>conftest.$ac_ext <<_ACEOF
2780/* end confdefs.h.  */
2781
2782int
2783main ()
2784{
2785
2786  ;
2787  return 0;
2788}
2789_ACEOF
2790ac_clean_files_save=$ac_clean_files
2791ac_clean_files="$ac_clean_files a.out a.exe b.out"
2792# Try to create an executable without -o first, disregard a.out.
2793# It will help us diagnose broken compilers, and finding out an intuition
2794# of exeext.
2795{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2796echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2797ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2798#
2799# List of possible output files, starting from the most likely.
2800# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2801# only as a last resort.  b.out is created by i960 compilers.
2802ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2803#
2804# The IRIX 6 linker writes into existing files which may not be
2805# executable, retaining their permissions.  Remove them first so a
2806# subsequent execution test works.
2807ac_rmfiles=
2808for ac_file in $ac_files
2809do
2810  case $ac_file in
2811    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2812    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2813  esac
2814done
2815rm -f $ac_rmfiles
2816
2817if { (ac_try="$ac_link_default"
2818case "(($ac_try" in
2819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820  *) ac_try_echo=$ac_try;;
2821esac
2822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823  (eval "$ac_link_default") 2>&5
2824  ac_status=$?
2825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826  (exit $ac_status); }; then
2827  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2828# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2829# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2830# so that the user can short-circuit this test for compilers unknown to
2831# Autoconf.
2832for ac_file in $ac_files ''
2833do
2834  test -f "$ac_file" || continue
2835  case $ac_file in
2836    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2837	;;
2838    [ab].out )
2839	# We found the default executable, but exeext='' is most
2840	# certainly right.
2841	break;;
2842    *.* )
2843        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2844	then :; else
2845	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2846	fi
2847	# We set ac_cv_exeext here because the later test for it is not
2848	# safe: cross compilers may not add the suffix if given an `-o'
2849	# argument, so we may need to know it at that point already.
2850	# Even if this section looks crufty: it has the advantage of
2851	# actually working.
2852	break;;
2853    * )
2854	break;;
2855  esac
2856done
2857test "$ac_cv_exeext" = no && ac_cv_exeext=
2858
2859else
2860  ac_file=''
2861fi
2862
2863{ echo "$as_me:$LINENO: result: $ac_file" >&5
2864echo "${ECHO_T}$ac_file" >&6; }
2865if test -z "$ac_file"; then
2866  echo "$as_me: failed program was:" >&5
2867sed 's/^/| /' conftest.$ac_ext >&5
2868
2869{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2870See \`config.log' for more details." >&5
2871echo "$as_me: error: C compiler cannot create executables
2872See \`config.log' for more details." >&2;}
2873   { (exit 77); exit 77; }; }
2874fi
2875
2876ac_exeext=$ac_cv_exeext
2877
2878# Check that the compiler produces executables we can run.  If not, either
2879# the compiler is broken, or we cross compile.
2880{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2881echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2882# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2883# If not cross compiling, check that we can run a simple program.
2884if test "$cross_compiling" != yes; then
2885  if { ac_try='./$ac_file'
2886  { (case "(($ac_try" in
2887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888  *) ac_try_echo=$ac_try;;
2889esac
2890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891  (eval "$ac_try") 2>&5
2892  ac_status=$?
2893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894  (exit $ac_status); }; }; then
2895    cross_compiling=no
2896  else
2897    if test "$cross_compiling" = maybe; then
2898	cross_compiling=yes
2899    else
2900	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2901If you meant to cross compile, use \`--host'.
2902See \`config.log' for more details." >&5
2903echo "$as_me: error: cannot run C compiled programs.
2904If you meant to cross compile, use \`--host'.
2905See \`config.log' for more details." >&2;}
2906   { (exit 1); exit 1; }; }
2907    fi
2908  fi
2909fi
2910{ echo "$as_me:$LINENO: result: yes" >&5
2911echo "${ECHO_T}yes" >&6; }
2912
2913rm -f a.out a.exe conftest$ac_cv_exeext b.out
2914ac_clean_files=$ac_clean_files_save
2915# Check that the compiler produces executables we can run.  If not, either
2916# the compiler is broken, or we cross compile.
2917{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2918echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2919{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2920echo "${ECHO_T}$cross_compiling" >&6; }
2921
2922{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2923echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2924if { (ac_try="$ac_link"
2925case "(($ac_try" in
2926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927  *) ac_try_echo=$ac_try;;
2928esac
2929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930  (eval "$ac_link") 2>&5
2931  ac_status=$?
2932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933  (exit $ac_status); }; then
2934  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2935# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2936# work properly (i.e., refer to `conftest.exe'), while it won't with
2937# `rm'.
2938for ac_file in conftest.exe conftest conftest.*; do
2939  test -f "$ac_file" || continue
2940  case $ac_file in
2941    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2942    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2943	  break;;
2944    * ) break;;
2945  esac
2946done
2947else
2948  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2949See \`config.log' for more details." >&5
2950echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2951See \`config.log' for more details." >&2;}
2952   { (exit 1); exit 1; }; }
2953fi
2954
2955rm -f conftest$ac_cv_exeext
2956{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2957echo "${ECHO_T}$ac_cv_exeext" >&6; }
2958
2959rm -f conftest.$ac_ext
2960EXEEXT=$ac_cv_exeext
2961ac_exeext=$EXEEXT
2962{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2963echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2964if test "${ac_cv_objext+set}" = set; then
2965  echo $ECHO_N "(cached) $ECHO_C" >&6
2966else
2967  cat >conftest.$ac_ext <<_ACEOF
2968/* confdefs.h.  */
2969_ACEOF
2970cat confdefs.h >>conftest.$ac_ext
2971cat >>conftest.$ac_ext <<_ACEOF
2972/* end confdefs.h.  */
2973
2974int
2975main ()
2976{
2977
2978  ;
2979  return 0;
2980}
2981_ACEOF
2982rm -f conftest.o conftest.obj
2983if { (ac_try="$ac_compile"
2984case "(($ac_try" in
2985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986  *) ac_try_echo=$ac_try;;
2987esac
2988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989  (eval "$ac_compile") 2>&5
2990  ac_status=$?
2991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992  (exit $ac_status); }; then
2993  for ac_file in conftest.o conftest.obj conftest.*; do
2994  test -f "$ac_file" || continue;
2995  case $ac_file in
2996    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2997    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2998       break;;
2999  esac
3000done
3001else
3002  echo "$as_me: failed program was:" >&5
3003sed 's/^/| /' conftest.$ac_ext >&5
3004
3005{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3006See \`config.log' for more details." >&5
3007echo "$as_me: error: cannot compute suffix of object files: cannot compile
3008See \`config.log' for more details." >&2;}
3009   { (exit 1); exit 1; }; }
3010fi
3011
3012rm -f conftest.$ac_cv_objext conftest.$ac_ext
3013fi
3014{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3015echo "${ECHO_T}$ac_cv_objext" >&6; }
3016OBJEXT=$ac_cv_objext
3017ac_objext=$OBJEXT
3018{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3019echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3020if test "${ac_cv_c_compiler_gnu+set}" = set; then
3021  echo $ECHO_N "(cached) $ECHO_C" >&6
3022else
3023  cat >conftest.$ac_ext <<_ACEOF
3024/* confdefs.h.  */
3025_ACEOF
3026cat confdefs.h >>conftest.$ac_ext
3027cat >>conftest.$ac_ext <<_ACEOF
3028/* end confdefs.h.  */
3029
3030int
3031main ()
3032{
3033#ifndef __GNUC__
3034       choke me
3035#endif
3036
3037  ;
3038  return 0;
3039}
3040_ACEOF
3041rm -f conftest.$ac_objext
3042if { (ac_try="$ac_compile"
3043case "(($ac_try" in
3044  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045  *) ac_try_echo=$ac_try;;
3046esac
3047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048  (eval "$ac_compile") 2>conftest.er1
3049  ac_status=$?
3050  grep -v '^ *+' conftest.er1 >conftest.err
3051  rm -f conftest.er1
3052  cat conftest.err >&5
3053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054  (exit $ac_status); } && {
3055	 test -z "$ac_c_werror_flag" ||
3056	 test ! -s conftest.err
3057       } && test -s conftest.$ac_objext; then
3058  ac_compiler_gnu=yes
3059else
3060  echo "$as_me: failed program was:" >&5
3061sed 's/^/| /' conftest.$ac_ext >&5
3062
3063	ac_compiler_gnu=no
3064fi
3065
3066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067ac_cv_c_compiler_gnu=$ac_compiler_gnu
3068
3069fi
3070{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3071echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3072GCC=`test $ac_compiler_gnu = yes && echo yes`
3073ac_test_CFLAGS=${CFLAGS+set}
3074ac_save_CFLAGS=$CFLAGS
3075{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3076echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3077if test "${ac_cv_prog_cc_g+set}" = set; then
3078  echo $ECHO_N "(cached) $ECHO_C" >&6
3079else
3080  ac_save_c_werror_flag=$ac_c_werror_flag
3081   ac_c_werror_flag=yes
3082   ac_cv_prog_cc_g=no
3083   CFLAGS="-g"
3084   cat >conftest.$ac_ext <<_ACEOF
3085/* confdefs.h.  */
3086_ACEOF
3087cat confdefs.h >>conftest.$ac_ext
3088cat >>conftest.$ac_ext <<_ACEOF
3089/* end confdefs.h.  */
3090
3091int
3092main ()
3093{
3094
3095  ;
3096  return 0;
3097}
3098_ACEOF
3099rm -f conftest.$ac_objext
3100if { (ac_try="$ac_compile"
3101case "(($ac_try" in
3102  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103  *) ac_try_echo=$ac_try;;
3104esac
3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106  (eval "$ac_compile") 2>conftest.er1
3107  ac_status=$?
3108  grep -v '^ *+' conftest.er1 >conftest.err
3109  rm -f conftest.er1
3110  cat conftest.err >&5
3111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112  (exit $ac_status); } && {
3113	 test -z "$ac_c_werror_flag" ||
3114	 test ! -s conftest.err
3115       } && test -s conftest.$ac_objext; then
3116  ac_cv_prog_cc_g=yes
3117else
3118  echo "$as_me: failed program was:" >&5
3119sed 's/^/| /' conftest.$ac_ext >&5
3120
3121	CFLAGS=""
3122      cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h.  */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h.  */
3128
3129int
3130main ()
3131{
3132
3133  ;
3134  return 0;
3135}
3136_ACEOF
3137rm -f conftest.$ac_objext
3138if { (ac_try="$ac_compile"
3139case "(($ac_try" in
3140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141  *) ac_try_echo=$ac_try;;
3142esac
3143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144  (eval "$ac_compile") 2>conftest.er1
3145  ac_status=$?
3146  grep -v '^ *+' conftest.er1 >conftest.err
3147  rm -f conftest.er1
3148  cat conftest.err >&5
3149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150  (exit $ac_status); } && {
3151	 test -z "$ac_c_werror_flag" ||
3152	 test ! -s conftest.err
3153       } && test -s conftest.$ac_objext; then
3154  :
3155else
3156  echo "$as_me: failed program was:" >&5
3157sed 's/^/| /' conftest.$ac_ext >&5
3158
3159	ac_c_werror_flag=$ac_save_c_werror_flag
3160	 CFLAGS="-g"
3161	 cat >conftest.$ac_ext <<_ACEOF
3162/* confdefs.h.  */
3163_ACEOF
3164cat confdefs.h >>conftest.$ac_ext
3165cat >>conftest.$ac_ext <<_ACEOF
3166/* end confdefs.h.  */
3167
3168int
3169main ()
3170{
3171
3172  ;
3173  return 0;
3174}
3175_ACEOF
3176rm -f conftest.$ac_objext
3177if { (ac_try="$ac_compile"
3178case "(($ac_try" in
3179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180  *) ac_try_echo=$ac_try;;
3181esac
3182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183  (eval "$ac_compile") 2>conftest.er1
3184  ac_status=$?
3185  grep -v '^ *+' conftest.er1 >conftest.err
3186  rm -f conftest.er1
3187  cat conftest.err >&5
3188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189  (exit $ac_status); } && {
3190	 test -z "$ac_c_werror_flag" ||
3191	 test ! -s conftest.err
3192       } && test -s conftest.$ac_objext; then
3193  ac_cv_prog_cc_g=yes
3194else
3195  echo "$as_me: failed program was:" >&5
3196sed 's/^/| /' conftest.$ac_ext >&5
3197
3198
3199fi
3200
3201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202fi
3203
3204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205fi
3206
3207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208   ac_c_werror_flag=$ac_save_c_werror_flag
3209fi
3210{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3211echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3212if test "$ac_test_CFLAGS" = set; then
3213  CFLAGS=$ac_save_CFLAGS
3214elif test $ac_cv_prog_cc_g = yes; then
3215  if test "$GCC" = yes; then
3216    CFLAGS="-g -O2"
3217  else
3218    CFLAGS="-g"
3219  fi
3220else
3221  if test "$GCC" = yes; then
3222    CFLAGS="-O2"
3223  else
3224    CFLAGS=
3225  fi
3226fi
3227{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3228echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3229if test "${ac_cv_prog_cc_c89+set}" = set; then
3230  echo $ECHO_N "(cached) $ECHO_C" >&6
3231else
3232  ac_cv_prog_cc_c89=no
3233ac_save_CC=$CC
3234cat >conftest.$ac_ext <<_ACEOF
3235/* confdefs.h.  */
3236_ACEOF
3237cat confdefs.h >>conftest.$ac_ext
3238cat >>conftest.$ac_ext <<_ACEOF
3239/* end confdefs.h.  */
3240#include <stdarg.h>
3241#include <stdio.h>
3242#include <sys/types.h>
3243#include <sys/stat.h>
3244/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3245struct buf { int x; };
3246FILE * (*rcsopen) (struct buf *, struct stat *, int);
3247static char *e (p, i)
3248     char **p;
3249     int i;
3250{
3251  return p[i];
3252}
3253static char *f (char * (*g) (char **, int), char **p, ...)
3254{
3255  char *s;
3256  va_list v;
3257  va_start (v,p);
3258  s = g (p, va_arg (v,int));
3259  va_end (v);
3260  return s;
3261}
3262
3263/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3264   function prototypes and stuff, but not '\xHH' hex character constants.
3265   These don't provoke an error unfortunately, instead are silently treated
3266   as 'x'.  The following induces an error, until -std is added to get
3267   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3268   array size at least.  It's necessary to write '\x00'==0 to get something
3269   that's true only with -std.  */
3270int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3271
3272/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3273   inside strings and character constants.  */
3274#define FOO(x) 'x'
3275int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3276
3277int test (int i, double x);
3278struct s1 {int (*f) (int a);};
3279struct s2 {int (*f) (double a);};
3280int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3281int argc;
3282char **argv;
3283int
3284main ()
3285{
3286return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3287  ;
3288  return 0;
3289}
3290_ACEOF
3291for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3292	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3293do
3294  CC="$ac_save_CC $ac_arg"
3295  rm -f conftest.$ac_objext
3296if { (ac_try="$ac_compile"
3297case "(($ac_try" in
3298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299  *) ac_try_echo=$ac_try;;
3300esac
3301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302  (eval "$ac_compile") 2>conftest.er1
3303  ac_status=$?
3304  grep -v '^ *+' conftest.er1 >conftest.err
3305  rm -f conftest.er1
3306  cat conftest.err >&5
3307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308  (exit $ac_status); } && {
3309	 test -z "$ac_c_werror_flag" ||
3310	 test ! -s conftest.err
3311       } && test -s conftest.$ac_objext; then
3312  ac_cv_prog_cc_c89=$ac_arg
3313else
3314  echo "$as_me: failed program was:" >&5
3315sed 's/^/| /' conftest.$ac_ext >&5
3316
3317
3318fi
3319
3320rm -f core conftest.err conftest.$ac_objext
3321  test "x$ac_cv_prog_cc_c89" != "xno" && break
3322done
3323rm -f conftest.$ac_ext
3324CC=$ac_save_CC
3325
3326fi
3327# AC_CACHE_VAL
3328case "x$ac_cv_prog_cc_c89" in
3329  x)
3330    { echo "$as_me:$LINENO: result: none needed" >&5
3331echo "${ECHO_T}none needed" >&6; } ;;
3332  xno)
3333    { echo "$as_me:$LINENO: result: unsupported" >&5
3334echo "${ECHO_T}unsupported" >&6; } ;;
3335  *)
3336    CC="$CC $ac_cv_prog_cc_c89"
3337    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3338echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3339esac
3340
3341
3342ac_ext=cpp
3343ac_cpp='$CXXCPP $CPPFLAGS'
3344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3347DEPDIR="${am__leading_dot}deps"
3348
3349ac_config_commands="$ac_config_commands depfiles"
3350
3351
3352am_make=${MAKE-make}
3353cat > confinc << 'END'
3354am__doit:
3355	@echo done
3356.PHONY: am__doit
3357END
3358# If we don't find an include directive, just comment out the code.
3359{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3360echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3361am__include="#"
3362am__quote=
3363_am_result=none
3364# First try GNU make style include.
3365echo "include confinc" > confmf
3366# We grep out `Entering directory' and `Leaving directory'
3367# messages which can occur if `w' ends up in MAKEFLAGS.
3368# In particular we don't look at `^make:' because GNU make might
3369# be invoked under some other name (usually "gmake"), in which
3370# case it prints its new name instead of `make'.
3371if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3372   am__include=include
3373   am__quote=
3374   _am_result=GNU
3375fi
3376# Now try BSD make style include.
3377if test "$am__include" = "#"; then
3378   echo '.include "confinc"' > confmf
3379   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3380      am__include=.include
3381      am__quote="\""
3382      _am_result=BSD
3383   fi
3384fi
3385
3386
3387{ echo "$as_me:$LINENO: result: $_am_result" >&5
3388echo "${ECHO_T}$_am_result" >&6; }
3389rm -f confinc confmf
3390
3391# Check whether --enable-dependency-tracking was given.
3392if test "${enable_dependency_tracking+set}" = set; then
3393  enableval=$enable_dependency_tracking;
3394fi
3395
3396if test "x$enable_dependency_tracking" != xno; then
3397  am_depcomp="$ac_aux_dir/depcomp"
3398  AMDEPBACKSLASH='\'
3399fi
3400 if test "x$enable_dependency_tracking" != xno; then
3401  AMDEP_TRUE=
3402  AMDEP_FALSE='#'
3403else
3404  AMDEP_TRUE='#'
3405  AMDEP_FALSE=
3406fi
3407
3408
3409
3410depcc="$CC"   am_compiler_list=
3411
3412{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3413echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3414if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3415  echo $ECHO_N "(cached) $ECHO_C" >&6
3416else
3417  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3418  # We make a subdir and do the tests there.  Otherwise we can end up
3419  # making bogus files that we don't know about and never remove.  For
3420  # instance it was reported that on HP-UX the gcc test will end up
3421  # making a dummy file named `D' -- because `-MD' means `put the output
3422  # in D'.
3423  mkdir conftest.dir
3424  # Copy depcomp to subdir because otherwise we won't find it if we're
3425  # using a relative directory.
3426  cp "$am_depcomp" conftest.dir
3427  cd conftest.dir
3428  # We will build objects and dependencies in a subdirectory because
3429  # it helps to detect inapplicable dependency modes.  For instance
3430  # both Tru64's cc and ICC support -MD to output dependencies as a
3431  # side effect of compilation, but ICC will put the dependencies in
3432  # the current directory while Tru64 will put them in the object
3433  # directory.
3434  mkdir sub
3435
3436  am_cv_CC_dependencies_compiler_type=none
3437  if test "$am_compiler_list" = ""; then
3438     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3439  fi
3440  for depmode in $am_compiler_list; do
3441    # Setup a source with many dependencies, because some compilers
3442    # like to wrap large dependency lists on column 80 (with \), and
3443    # we should not choose a depcomp mode which is confused by this.
3444    #
3445    # We need to recreate these files for each test, as the compiler may
3446    # overwrite some of them when testing with obscure command lines.
3447    # This happens at least with the AIX C compiler.
3448    : > sub/conftest.c
3449    for i in 1 2 3 4 5 6; do
3450      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3451      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3452      # Solaris 8's {/usr,}/bin/sh.
3453      touch sub/conftst$i.h
3454    done
3455    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3456
3457    case $depmode in
3458    nosideeffect)
3459      # after this tag, mechanisms are not by side-effect, so they'll
3460      # only be used when explicitly requested
3461      if test "x$enable_dependency_tracking" = xyes; then
3462	continue
3463      else
3464	break
3465      fi
3466      ;;
3467    none) break ;;
3468    esac
3469    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3470    # mode.  It turns out that the SunPro C++ compiler does not properly
3471    # handle `-M -o', and we need to detect this.
3472    if depmode=$depmode \
3473       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3474       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3475       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3476         >/dev/null 2>conftest.err &&
3477       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3478       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3479       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3480       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3481      # icc doesn't choke on unknown options, it will just issue warnings
3482      # or remarks (even with -Werror).  So we grep stderr for any message
3483      # that says an option was ignored or not supported.
3484      # When given -MP, icc 7.0 and 7.1 complain thusly:
3485      #   icc: Command line warning: ignoring option '-M'; no argument required
3486      # The diagnosis changed in icc 8.0:
3487      #   icc: Command line remark: option '-MP' not supported
3488      if (grep 'ignoring option' conftest.err ||
3489          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3490        am_cv_CC_dependencies_compiler_type=$depmode
3491        break
3492      fi
3493    fi
3494  done
3495
3496  cd ..
3497  rm -rf conftest.dir
3498else
3499  am_cv_CC_dependencies_compiler_type=none
3500fi
3501
3502fi
3503{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3504echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3505CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3506
3507 if
3508  test "x$enable_dependency_tracking" != xno \
3509  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3510  am__fastdepCC_TRUE=
3511  am__fastdepCC_FALSE='#'
3512else
3513  am__fastdepCC_TRUE='#'
3514  am__fastdepCC_FALSE=
3515fi
3516
3517
3518ac_ext=cpp
3519ac_cpp='$CXXCPP $CPPFLAGS'
3520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3523if test -z "$CXX"; then
3524  if test -n "$CCC"; then
3525    CXX=$CCC
3526  else
3527    if test -n "$ac_tool_prefix"; then
3528  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3529  do
3530    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3531set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3534if test "${ac_cv_prog_CXX+set}" = set; then
3535  echo $ECHO_N "(cached) $ECHO_C" >&6
3536else
3537  if test -n "$CXX"; then
3538  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3539else
3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543  IFS=$as_save_IFS
3544  test -z "$as_dir" && as_dir=.
3545  for ac_exec_ext in '' $ac_executable_extensions; do
3546  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3548    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549    break 2
3550  fi
3551done
3552done
3553IFS=$as_save_IFS
3554
3555fi
3556fi
3557CXX=$ac_cv_prog_CXX
3558if test -n "$CXX"; then
3559  { echo "$as_me:$LINENO: result: $CXX" >&5
3560echo "${ECHO_T}$CXX" >&6; }
3561else
3562  { echo "$as_me:$LINENO: result: no" >&5
3563echo "${ECHO_T}no" >&6; }
3564fi
3565
3566
3567    test -n "$CXX" && break
3568  done
3569fi
3570if test -z "$CXX"; then
3571  ac_ct_CXX=$CXX
3572  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3573do
3574  # Extract the first word of "$ac_prog", so it can be a program name with args.
3575set dummy $ac_prog; ac_word=$2
3576{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3578if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3579  echo $ECHO_N "(cached) $ECHO_C" >&6
3580else
3581  if test -n "$ac_ct_CXX"; then
3582  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3583else
3584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585for as_dir in $PATH
3586do
3587  IFS=$as_save_IFS
3588  test -z "$as_dir" && as_dir=.
3589  for ac_exec_ext in '' $ac_executable_extensions; do
3590  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3591    ac_cv_prog_ac_ct_CXX="$ac_prog"
3592    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3593    break 2
3594  fi
3595done
3596done
3597IFS=$as_save_IFS
3598
3599fi
3600fi
3601ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3602if test -n "$ac_ct_CXX"; then
3603  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3604echo "${ECHO_T}$ac_ct_CXX" >&6; }
3605else
3606  { echo "$as_me:$LINENO: result: no" >&5
3607echo "${ECHO_T}no" >&6; }
3608fi
3609
3610
3611  test -n "$ac_ct_CXX" && break
3612done
3613
3614  if test "x$ac_ct_CXX" = x; then
3615    CXX="g++"
3616  else
3617    case $cross_compiling:$ac_tool_warned in
3618yes:)
3619{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3620whose name does not start with the host triplet.  If you think this
3621configuration is useful to you, please write to autoconf@gnu.org." >&5
3622echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3623whose name does not start with the host triplet.  If you think this
3624configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3625ac_tool_warned=yes ;;
3626esac
3627    CXX=$ac_ct_CXX
3628  fi
3629fi
3630
3631  fi
3632fi
3633# Provide some information about the compiler.
3634echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3635ac_compiler=`set X $ac_compile; echo $2`
3636{ (ac_try="$ac_compiler --version >&5"
3637case "(($ac_try" in
3638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639  *) ac_try_echo=$ac_try;;
3640esac
3641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642  (eval "$ac_compiler --version >&5") 2>&5
3643  ac_status=$?
3644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645  (exit $ac_status); }
3646{ (ac_try="$ac_compiler -v >&5"
3647case "(($ac_try" in
3648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649  *) ac_try_echo=$ac_try;;
3650esac
3651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652  (eval "$ac_compiler -v >&5") 2>&5
3653  ac_status=$?
3654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655  (exit $ac_status); }
3656{ (ac_try="$ac_compiler -V >&5"
3657case "(($ac_try" in
3658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659  *) ac_try_echo=$ac_try;;
3660esac
3661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662  (eval "$ac_compiler -V >&5") 2>&5
3663  ac_status=$?
3664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665  (exit $ac_status); }
3666
3667{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3668echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3669if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3670  echo $ECHO_N "(cached) $ECHO_C" >&6
3671else
3672  cat >conftest.$ac_ext <<_ACEOF
3673/* confdefs.h.  */
3674_ACEOF
3675cat confdefs.h >>conftest.$ac_ext
3676cat >>conftest.$ac_ext <<_ACEOF
3677/* end confdefs.h.  */
3678
3679int
3680main ()
3681{
3682#ifndef __GNUC__
3683       choke me
3684#endif
3685
3686  ;
3687  return 0;
3688}
3689_ACEOF
3690rm -f conftest.$ac_objext
3691if { (ac_try="$ac_compile"
3692case "(($ac_try" in
3693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694  *) ac_try_echo=$ac_try;;
3695esac
3696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697  (eval "$ac_compile") 2>conftest.er1
3698  ac_status=$?
3699  grep -v '^ *+' conftest.er1 >conftest.err
3700  rm -f conftest.er1
3701  cat conftest.err >&5
3702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703  (exit $ac_status); } && {
3704	 test -z "$ac_cxx_werror_flag" ||
3705	 test ! -s conftest.err
3706       } && test -s conftest.$ac_objext; then
3707  ac_compiler_gnu=yes
3708else
3709  echo "$as_me: failed program was:" >&5
3710sed 's/^/| /' conftest.$ac_ext >&5
3711
3712	ac_compiler_gnu=no
3713fi
3714
3715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3717
3718fi
3719{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3720echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3721GXX=`test $ac_compiler_gnu = yes && echo yes`
3722ac_test_CXXFLAGS=${CXXFLAGS+set}
3723ac_save_CXXFLAGS=$CXXFLAGS
3724{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3725echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3726if test "${ac_cv_prog_cxx_g+set}" = set; then
3727  echo $ECHO_N "(cached) $ECHO_C" >&6
3728else
3729  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3730   ac_cxx_werror_flag=yes
3731   ac_cv_prog_cxx_g=no
3732   CXXFLAGS="-g"
3733   cat >conftest.$ac_ext <<_ACEOF
3734/* confdefs.h.  */
3735_ACEOF
3736cat confdefs.h >>conftest.$ac_ext
3737cat >>conftest.$ac_ext <<_ACEOF
3738/* end confdefs.h.  */
3739
3740int
3741main ()
3742{
3743
3744  ;
3745  return 0;
3746}
3747_ACEOF
3748rm -f conftest.$ac_objext
3749if { (ac_try="$ac_compile"
3750case "(($ac_try" in
3751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752  *) ac_try_echo=$ac_try;;
3753esac
3754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3755  (eval "$ac_compile") 2>conftest.er1
3756  ac_status=$?
3757  grep -v '^ *+' conftest.er1 >conftest.err
3758  rm -f conftest.er1
3759  cat conftest.err >&5
3760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761  (exit $ac_status); } && {
3762	 test -z "$ac_cxx_werror_flag" ||
3763	 test ! -s conftest.err
3764       } && test -s conftest.$ac_objext; then
3765  ac_cv_prog_cxx_g=yes
3766else
3767  echo "$as_me: failed program was:" >&5
3768sed 's/^/| /' conftest.$ac_ext >&5
3769
3770	CXXFLAGS=""
3771      cat >conftest.$ac_ext <<_ACEOF
3772/* confdefs.h.  */
3773_ACEOF
3774cat confdefs.h >>conftest.$ac_ext
3775cat >>conftest.$ac_ext <<_ACEOF
3776/* end confdefs.h.  */
3777
3778int
3779main ()
3780{
3781
3782  ;
3783  return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext
3787if { (ac_try="$ac_compile"
3788case "(($ac_try" in
3789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790  *) ac_try_echo=$ac_try;;
3791esac
3792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3793  (eval "$ac_compile") 2>conftest.er1
3794  ac_status=$?
3795  grep -v '^ *+' conftest.er1 >conftest.err
3796  rm -f conftest.er1
3797  cat conftest.err >&5
3798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799  (exit $ac_status); } && {
3800	 test -z "$ac_cxx_werror_flag" ||
3801	 test ! -s conftest.err
3802       } && test -s conftest.$ac_objext; then
3803  :
3804else
3805  echo "$as_me: failed program was:" >&5
3806sed 's/^/| /' conftest.$ac_ext >&5
3807
3808	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3809	 CXXFLAGS="-g"
3810	 cat >conftest.$ac_ext <<_ACEOF
3811/* confdefs.h.  */
3812_ACEOF
3813cat confdefs.h >>conftest.$ac_ext
3814cat >>conftest.$ac_ext <<_ACEOF
3815/* end confdefs.h.  */
3816
3817int
3818main ()
3819{
3820
3821  ;
3822  return 0;
3823}
3824_ACEOF
3825rm -f conftest.$ac_objext
3826if { (ac_try="$ac_compile"
3827case "(($ac_try" in
3828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829  *) ac_try_echo=$ac_try;;
3830esac
3831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832  (eval "$ac_compile") 2>conftest.er1
3833  ac_status=$?
3834  grep -v '^ *+' conftest.er1 >conftest.err
3835  rm -f conftest.er1
3836  cat conftest.err >&5
3837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838  (exit $ac_status); } && {
3839	 test -z "$ac_cxx_werror_flag" ||
3840	 test ! -s conftest.err
3841       } && test -s conftest.$ac_objext; then
3842  ac_cv_prog_cxx_g=yes
3843else
3844  echo "$as_me: failed program was:" >&5
3845sed 's/^/| /' conftest.$ac_ext >&5
3846
3847
3848fi
3849
3850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851fi
3852
3853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854fi
3855
3856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3858fi
3859{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3860echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3861if test "$ac_test_CXXFLAGS" = set; then
3862  CXXFLAGS=$ac_save_CXXFLAGS
3863elif test $ac_cv_prog_cxx_g = yes; then
3864  if test "$GXX" = yes; then
3865    CXXFLAGS="-g -O2"
3866  else
3867    CXXFLAGS="-g"
3868  fi
3869else
3870  if test "$GXX" = yes; then
3871    CXXFLAGS="-O2"
3872  else
3873    CXXFLAGS=
3874  fi
3875fi
3876ac_ext=cpp
3877ac_cpp='$CXXCPP $CPPFLAGS'
3878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3881
3882depcc="$CXX"  am_compiler_list=
3883
3884{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3885echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3886if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3887  echo $ECHO_N "(cached) $ECHO_C" >&6
3888else
3889  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3890  # We make a subdir and do the tests there.  Otherwise we can end up
3891  # making bogus files that we don't know about and never remove.  For
3892  # instance it was reported that on HP-UX the gcc test will end up
3893  # making a dummy file named `D' -- because `-MD' means `put the output
3894  # in D'.
3895  mkdir conftest.dir
3896  # Copy depcomp to subdir because otherwise we won't find it if we're
3897  # using a relative directory.
3898  cp "$am_depcomp" conftest.dir
3899  cd conftest.dir
3900  # We will build objects and dependencies in a subdirectory because
3901  # it helps to detect inapplicable dependency modes.  For instance
3902  # both Tru64's cc and ICC support -MD to output dependencies as a
3903  # side effect of compilation, but ICC will put the dependencies in
3904  # the current directory while Tru64 will put them in the object
3905  # directory.
3906  mkdir sub
3907
3908  am_cv_CXX_dependencies_compiler_type=none
3909  if test "$am_compiler_list" = ""; then
3910     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3911  fi
3912  for depmode in $am_compiler_list; do
3913    # Setup a source with many dependencies, because some compilers
3914    # like to wrap large dependency lists on column 80 (with \), and
3915    # we should not choose a depcomp mode which is confused by this.
3916    #
3917    # We need to recreate these files for each test, as the compiler may
3918    # overwrite some of them when testing with obscure command lines.
3919    # This happens at least with the AIX C compiler.
3920    : > sub/conftest.c
3921    for i in 1 2 3 4 5 6; do
3922      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3923      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3924      # Solaris 8's {/usr,}/bin/sh.
3925      touch sub/conftst$i.h
3926    done
3927    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3928
3929    case $depmode in
3930    nosideeffect)
3931      # after this tag, mechanisms are not by side-effect, so they'll
3932      # only be used when explicitly requested
3933      if test "x$enable_dependency_tracking" = xyes; then
3934	continue
3935      else
3936	break
3937      fi
3938      ;;
3939    none) break ;;
3940    esac
3941    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3942    # mode.  It turns out that the SunPro C++ compiler does not properly
3943    # handle `-M -o', and we need to detect this.
3944    if depmode=$depmode \
3945       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3946       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3947       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3948         >/dev/null 2>conftest.err &&
3949       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3950       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3951       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3952       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3953      # icc doesn't choke on unknown options, it will just issue warnings
3954      # or remarks (even with -Werror).  So we grep stderr for any message
3955      # that says an option was ignored or not supported.
3956      # When given -MP, icc 7.0 and 7.1 complain thusly:
3957      #   icc: Command line warning: ignoring option '-M'; no argument required
3958      # The diagnosis changed in icc 8.0:
3959      #   icc: Command line remark: option '-MP' not supported
3960      if (grep 'ignoring option' conftest.err ||
3961          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3962        am_cv_CXX_dependencies_compiler_type=$depmode
3963        break
3964      fi
3965    fi
3966  done
3967
3968  cd ..
3969  rm -rf conftest.dir
3970else
3971  am_cv_CXX_dependencies_compiler_type=none
3972fi
3973
3974fi
3975{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3976echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3977CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3978
3979 if
3980  test "x$enable_dependency_tracking" != xno \
3981  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3982  am__fastdepCXX_TRUE=
3983  am__fastdepCXX_FALSE='#'
3984else
3985  am__fastdepCXX_TRUE='#'
3986  am__fastdepCXX_FALSE=
3987fi
3988
3989
3990ac_ext=c
3991ac_cpp='$CPP $CPPFLAGS'
3992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3996echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3997# On Suns, sometimes $CPP names a directory.
3998if test -n "$CPP" && test -d "$CPP"; then
3999  CPP=
4000fi
4001if test -z "$CPP"; then
4002  if test "${ac_cv_prog_CPP+set}" = set; then
4003  echo $ECHO_N "(cached) $ECHO_C" >&6
4004else
4005      # Double quotes because CPP needs to be expanded
4006    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4007    do
4008      ac_preproc_ok=false
4009for ac_c_preproc_warn_flag in '' yes
4010do
4011  # Use a header file that comes with gcc, so configuring glibc
4012  # with a fresh cross-compiler works.
4013  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4014  # <limits.h> exists even on freestanding compilers.
4015  # On the NeXT, cc -E runs the code through the compiler's parser,
4016  # not just through cpp. "Syntax error" is here to catch this case.
4017  cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h.  */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h.  */
4023@%:@ifdef __STDC__
4024@%:@ include <limits.h>
4025@%:@else
4026@%:@ include <assert.h>
4027@%:@endif
4028		     Syntax error
4029_ACEOF
4030if { (ac_try="$ac_cpp conftest.$ac_ext"
4031case "(($ac_try" in
4032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033  *) ac_try_echo=$ac_try;;
4034esac
4035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4037  ac_status=$?
4038  grep -v '^ *+' conftest.er1 >conftest.err
4039  rm -f conftest.er1
4040  cat conftest.err >&5
4041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042  (exit $ac_status); } >/dev/null && {
4043	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4044	 test ! -s conftest.err
4045       }; then
4046  :
4047else
4048  echo "$as_me: failed program was:" >&5
4049sed 's/^/| /' conftest.$ac_ext >&5
4050
4051  # Broken: fails on valid input.
4052continue
4053fi
4054
4055rm -f conftest.err conftest.$ac_ext
4056
4057  # OK, works on sane cases.  Now check whether nonexistent headers
4058  # can be detected and how.
4059  cat >conftest.$ac_ext <<_ACEOF
4060/* confdefs.h.  */
4061_ACEOF
4062cat confdefs.h >>conftest.$ac_ext
4063cat >>conftest.$ac_ext <<_ACEOF
4064/* end confdefs.h.  */
4065@%:@include <ac_nonexistent.h>
4066_ACEOF
4067if { (ac_try="$ac_cpp conftest.$ac_ext"
4068case "(($ac_try" in
4069  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070  *) ac_try_echo=$ac_try;;
4071esac
4072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4074  ac_status=$?
4075  grep -v '^ *+' conftest.er1 >conftest.err
4076  rm -f conftest.er1
4077  cat conftest.err >&5
4078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079  (exit $ac_status); } >/dev/null && {
4080	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4081	 test ! -s conftest.err
4082       }; then
4083  # Broken: success on invalid input.
4084continue
4085else
4086  echo "$as_me: failed program was:" >&5
4087sed 's/^/| /' conftest.$ac_ext >&5
4088
4089  # Passes both tests.
4090ac_preproc_ok=:
4091break
4092fi
4093
4094rm -f conftest.err conftest.$ac_ext
4095
4096done
4097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4098rm -f conftest.err conftest.$ac_ext
4099if $ac_preproc_ok; then
4100  break
4101fi
4102
4103    done
4104    ac_cv_prog_CPP=$CPP
4105
4106fi
4107  CPP=$ac_cv_prog_CPP
4108else
4109  ac_cv_prog_CPP=$CPP
4110fi
4111{ echo "$as_me:$LINENO: result: $CPP" >&5
4112echo "${ECHO_T}$CPP" >&6; }
4113ac_preproc_ok=false
4114for ac_c_preproc_warn_flag in '' yes
4115do
4116  # Use a header file that comes with gcc, so configuring glibc
4117  # with a fresh cross-compiler works.
4118  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4119  # <limits.h> exists even on freestanding compilers.
4120  # On the NeXT, cc -E runs the code through the compiler's parser,
4121  # not just through cpp. "Syntax error" is here to catch this case.
4122  cat >conftest.$ac_ext <<_ACEOF
4123/* confdefs.h.  */
4124_ACEOF
4125cat confdefs.h >>conftest.$ac_ext
4126cat >>conftest.$ac_ext <<_ACEOF
4127/* end confdefs.h.  */
4128@%:@ifdef __STDC__
4129@%:@ include <limits.h>
4130@%:@else
4131@%:@ include <assert.h>
4132@%:@endif
4133		     Syntax error
4134_ACEOF
4135if { (ac_try="$ac_cpp conftest.$ac_ext"
4136case "(($ac_try" in
4137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138  *) ac_try_echo=$ac_try;;
4139esac
4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4142  ac_status=$?
4143  grep -v '^ *+' conftest.er1 >conftest.err
4144  rm -f conftest.er1
4145  cat conftest.err >&5
4146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147  (exit $ac_status); } >/dev/null && {
4148	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4149	 test ! -s conftest.err
4150       }; then
4151  :
4152else
4153  echo "$as_me: failed program was:" >&5
4154sed 's/^/| /' conftest.$ac_ext >&5
4155
4156  # Broken: fails on valid input.
4157continue
4158fi
4159
4160rm -f conftest.err conftest.$ac_ext
4161
4162  # OK, works on sane cases.  Now check whether nonexistent headers
4163  # can be detected and how.
4164  cat >conftest.$ac_ext <<_ACEOF
4165/* confdefs.h.  */
4166_ACEOF
4167cat confdefs.h >>conftest.$ac_ext
4168cat >>conftest.$ac_ext <<_ACEOF
4169/* end confdefs.h.  */
4170@%:@include <ac_nonexistent.h>
4171_ACEOF
4172if { (ac_try="$ac_cpp conftest.$ac_ext"
4173case "(($ac_try" in
4174  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175  *) ac_try_echo=$ac_try;;
4176esac
4177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4179  ac_status=$?
4180  grep -v '^ *+' conftest.er1 >conftest.err
4181  rm -f conftest.er1
4182  cat conftest.err >&5
4183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184  (exit $ac_status); } >/dev/null && {
4185	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4186	 test ! -s conftest.err
4187       }; then
4188  # Broken: success on invalid input.
4189continue
4190else
4191  echo "$as_me: failed program was:" >&5
4192sed 's/^/| /' conftest.$ac_ext >&5
4193
4194  # Passes both tests.
4195ac_preproc_ok=:
4196break
4197fi
4198
4199rm -f conftest.err conftest.$ac_ext
4200
4201done
4202# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4203rm -f conftest.err conftest.$ac_ext
4204if $ac_preproc_ok; then
4205  :
4206else
4207  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4208See \`config.log' for more details." >&5
4209echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4210See \`config.log' for more details." >&2;}
4211   { (exit 1); exit 1; }; }
4212fi
4213
4214ac_ext=cpp
4215ac_cpp='$CXXCPP $CPPFLAGS'
4216ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4217ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4219
4220
4221# Check whether --enable-static_build was given.
4222if test "${enable_static_build+set}" = set; then
4223  enableval=$enable_static_build; static_build=${enableval}
4224else
4225  static_build=yes
4226fi
4227
4228
4229 if test "$static_build" = "yes"; then
4230  do_static_build_TRUE=
4231  do_static_build_FALSE='#'
4232else
4233  do_static_build_TRUE='#'
4234  do_static_build_FALSE=
4235fi
4236
4237
4238
4239{ echo "$as_me:$LINENO: checking for inline" >&5
4240echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4241if test "${ac_cv_c_inline+set}" = set; then
4242  echo $ECHO_N "(cached) $ECHO_C" >&6
4243else
4244  ac_cv_c_inline=no
4245for ac_kw in inline __inline__ __inline; do
4246  cat >conftest.$ac_ext <<_ACEOF
4247/* confdefs.h.  */
4248_ACEOF
4249cat confdefs.h >>conftest.$ac_ext
4250cat >>conftest.$ac_ext <<_ACEOF
4251/* end confdefs.h.  */
4252#ifndef __cplusplus
4253typedef int foo_t;
4254static $ac_kw foo_t static_foo () {return 0; }
4255$ac_kw foo_t foo () {return 0; }
4256#endif
4257
4258_ACEOF
4259rm -f conftest.$ac_objext
4260if { (ac_try="$ac_compile"
4261case "(($ac_try" in
4262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263  *) ac_try_echo=$ac_try;;
4264esac
4265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266  (eval "$ac_compile") 2>conftest.er1
4267  ac_status=$?
4268  grep -v '^ *+' conftest.er1 >conftest.err
4269  rm -f conftest.er1
4270  cat conftest.err >&5
4271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272  (exit $ac_status); } && {
4273	 test -z "$ac_cxx_werror_flag" ||
4274	 test ! -s conftest.err
4275       } && test -s conftest.$ac_objext; then
4276  ac_cv_c_inline=$ac_kw
4277else
4278  echo "$as_me: failed program was:" >&5
4279sed 's/^/| /' conftest.$ac_ext >&5
4280
4281
4282fi
4283
4284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285  test "$ac_cv_c_inline" != no && break
4286done
4287
4288fi
4289{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4290echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4291
4292
4293case $ac_cv_c_inline in
4294  inline | yes) ;;
4295  *)
4296    case $ac_cv_c_inline in
4297      no) ac_val=;;
4298      *) ac_val=$ac_cv_c_inline;;
4299    esac
4300    cat >>confdefs.h <<_ACEOF
4301#ifndef __cplusplus
4302#define inline $ac_val
4303#endif
4304_ACEOF
4305    ;;
4306esac
4307
4308{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4309echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4310if test "${ac_cv_c_const+set}" = set; then
4311  echo $ECHO_N "(cached) $ECHO_C" >&6
4312else
4313  cat >conftest.$ac_ext <<_ACEOF
4314/* confdefs.h.  */
4315_ACEOF
4316cat confdefs.h >>conftest.$ac_ext
4317cat >>conftest.$ac_ext <<_ACEOF
4318/* end confdefs.h.  */
4319
4320int
4321main ()
4322{
4323/* FIXME: Include the comments suggested by Paul. */
4324#ifndef __cplusplus
4325  /* Ultrix mips cc rejects this.  */
4326  typedef int charset[2];
4327  const charset cs;
4328  /* SunOS 4.1.1 cc rejects this.  */
4329  char const *const *pcpcc;
4330  char **ppc;
4331  /* NEC SVR4.0.2 mips cc rejects this.  */
4332  struct point {int x, y;};
4333  static struct point const zero = {0,0};
4334  /* AIX XL C 1.02.0.0 rejects this.
4335     It does not let you subtract one const X* pointer from another in
4336     an arm of an if-expression whose if-part is not a constant
4337     expression */
4338  const char *g = "string";
4339  pcpcc = &g + (g ? g-g : 0);
4340  /* HPUX 7.0 cc rejects these. */
4341  ++pcpcc;
4342  ppc = (char**) pcpcc;
4343  pcpcc = (char const *const *) ppc;
4344  { /* SCO 3.2v4 cc rejects this.  */
4345    char *t;
4346    char const *s = 0 ? (char *) 0 : (char const *) 0;
4347
4348    *t++ = 0;
4349    if (s) return 0;
4350  }
4351  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4352    int x[] = {25, 17};
4353    const int *foo = &x[0];
4354    ++foo;
4355  }
4356  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4357    typedef const int *iptr;
4358    iptr p = 0;
4359    ++p;
4360  }
4361  { /* AIX XL C 1.02.0.0 rejects this saying
4362       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4363    struct s { int j; const int *ap[3]; };
4364    struct s *b; b->j = 5;
4365  }
4366  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4367    const int foo = 10;
4368    if (!foo) return 0;
4369  }
4370  return !cs[0] && !zero.x;
4371#endif
4372
4373  ;
4374  return 0;
4375}
4376_ACEOF
4377rm -f conftest.$ac_objext
4378if { (ac_try="$ac_compile"
4379case "(($ac_try" in
4380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381  *) ac_try_echo=$ac_try;;
4382esac
4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384  (eval "$ac_compile") 2>conftest.er1
4385  ac_status=$?
4386  grep -v '^ *+' conftest.er1 >conftest.err
4387  rm -f conftest.er1
4388  cat conftest.err >&5
4389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390  (exit $ac_status); } && {
4391	 test -z "$ac_cxx_werror_flag" ||
4392	 test ! -s conftest.err
4393       } && test -s conftest.$ac_objext; then
4394  ac_cv_c_const=yes
4395else
4396  echo "$as_me: failed program was:" >&5
4397sed 's/^/| /' conftest.$ac_ext >&5
4398
4399	ac_cv_c_const=no
4400fi
4401
4402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403fi
4404{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4405echo "${ECHO_T}$ac_cv_c_const" >&6; }
4406if test $ac_cv_c_const = no; then
4407
4408cat >>confdefs.h <<\_ACEOF
4409@%:@define const
4410_ACEOF
4411
4412fi
4413
4414# Find a good install program.  We prefer a C program (faster),
4415# so one script is as good as another.  But avoid the broken or
4416# incompatible versions:
4417# SysV /etc/install, /usr/sbin/install
4418# SunOS /usr/etc/install
4419# IRIX /sbin/install
4420# AIX /bin/install
4421# AmigaOS /C/install, which installs bootblocks on floppy discs
4422# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4423# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4424# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4425# OS/2's system install, which has a completely different semantic
4426# ./install, which can be erroneously created by make from ./install.sh.
4427{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4428echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4429if test -z "$INSTALL"; then
4430if test "${ac_cv_path_install+set}" = set; then
4431  echo $ECHO_N "(cached) $ECHO_C" >&6
4432else
4433  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436  IFS=$as_save_IFS
4437  test -z "$as_dir" && as_dir=.
4438  # Account for people who put trailing slashes in PATH elements.
4439case $as_dir/ in
4440  ./ | .// | /cC/* | \
4441  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4442  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4443  /usr/ucb/* ) ;;
4444  *)
4445    # OSF1 and SCO ODT 3.0 have their own names for install.
4446    # Don't use installbsd from OSF since it installs stuff as root
4447    # by default.
4448    for ac_prog in ginstall scoinst install; do
4449      for ac_exec_ext in '' $ac_executable_extensions; do
4450	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4451	  if test $ac_prog = install &&
4452	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4453	    # AIX install.  It has an incompatible calling convention.
4454	    :
4455	  elif test $ac_prog = install &&
4456	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4457	    # program-specific install script used by HP pwplus--don't use.
4458	    :
4459	  else
4460	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4461	    break 3
4462	  fi
4463	fi
4464      done
4465    done
4466    ;;
4467esac
4468done
4469IFS=$as_save_IFS
4470
4471
4472fi
4473  if test "${ac_cv_path_install+set}" = set; then
4474    INSTALL=$ac_cv_path_install
4475  else
4476    # As a last resort, use the slow shell script.  Don't cache a
4477    # value for INSTALL within a source directory, because that will
4478    # break other packages using the cache if that directory is
4479    # removed, or if the value is a relative name.
4480    INSTALL=$ac_install_sh
4481  fi
4482fi
4483{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4484echo "${ECHO_T}$INSTALL" >&6; }
4485
4486# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4487# It thinks the first close brace ends the variable substitution.
4488test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4489
4490test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4491
4492test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4493
4494ac_ext=cpp
4495ac_cpp='$CXXCPP $CPPFLAGS'
4496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4499{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4500echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4501if test -z "$CXXCPP"; then
4502  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4503  echo $ECHO_N "(cached) $ECHO_C" >&6
4504else
4505      # Double quotes because CXXCPP needs to be expanded
4506    for CXXCPP in "$CXX -E" "/lib/cpp"
4507    do
4508      ac_preproc_ok=false
4509for ac_cxx_preproc_warn_flag in '' yes
4510do
4511  # Use a header file that comes with gcc, so configuring glibc
4512  # with a fresh cross-compiler works.
4513  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4514  # <limits.h> exists even on freestanding compilers.
4515  # On the NeXT, cc -E runs the code through the compiler's parser,
4516  # not just through cpp. "Syntax error" is here to catch this case.
4517  cat >conftest.$ac_ext <<_ACEOF
4518/* confdefs.h.  */
4519_ACEOF
4520cat confdefs.h >>conftest.$ac_ext
4521cat >>conftest.$ac_ext <<_ACEOF
4522/* end confdefs.h.  */
4523@%:@ifdef __STDC__
4524@%:@ include <limits.h>
4525@%:@else
4526@%:@ include <assert.h>
4527@%:@endif
4528		     Syntax error
4529_ACEOF
4530if { (ac_try="$ac_cpp conftest.$ac_ext"
4531case "(($ac_try" in
4532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533  *) ac_try_echo=$ac_try;;
4534esac
4535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4536  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4537  ac_status=$?
4538  grep -v '^ *+' conftest.er1 >conftest.err
4539  rm -f conftest.er1
4540  cat conftest.err >&5
4541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542  (exit $ac_status); } >/dev/null && {
4543	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4544	 test ! -s conftest.err
4545       }; then
4546  :
4547else
4548  echo "$as_me: failed program was:" >&5
4549sed 's/^/| /' conftest.$ac_ext >&5
4550
4551  # Broken: fails on valid input.
4552continue
4553fi
4554
4555rm -f conftest.err conftest.$ac_ext
4556
4557  # OK, works on sane cases.  Now check whether nonexistent headers
4558  # can be detected and how.
4559  cat >conftest.$ac_ext <<_ACEOF
4560/* confdefs.h.  */
4561_ACEOF
4562cat confdefs.h >>conftest.$ac_ext
4563cat >>conftest.$ac_ext <<_ACEOF
4564/* end confdefs.h.  */
4565@%:@include <ac_nonexistent.h>
4566_ACEOF
4567if { (ac_try="$ac_cpp conftest.$ac_ext"
4568case "(($ac_try" in
4569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570  *) ac_try_echo=$ac_try;;
4571esac
4572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4574  ac_status=$?
4575  grep -v '^ *+' conftest.er1 >conftest.err
4576  rm -f conftest.er1
4577  cat conftest.err >&5
4578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579  (exit $ac_status); } >/dev/null && {
4580	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4581	 test ! -s conftest.err
4582       }; then
4583  # Broken: success on invalid input.
4584continue
4585else
4586  echo "$as_me: failed program was:" >&5
4587sed 's/^/| /' conftest.$ac_ext >&5
4588
4589  # Passes both tests.
4590ac_preproc_ok=:
4591break
4592fi
4593
4594rm -f conftest.err conftest.$ac_ext
4595
4596done
4597# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4598rm -f conftest.err conftest.$ac_ext
4599if $ac_preproc_ok; then
4600  break
4601fi
4602
4603    done
4604    ac_cv_prog_CXXCPP=$CXXCPP
4605
4606fi
4607  CXXCPP=$ac_cv_prog_CXXCPP
4608else
4609  ac_cv_prog_CXXCPP=$CXXCPP
4610fi
4611{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4612echo "${ECHO_T}$CXXCPP" >&6; }
4613ac_preproc_ok=false
4614for ac_cxx_preproc_warn_flag in '' yes
4615do
4616  # Use a header file that comes with gcc, so configuring glibc
4617  # with a fresh cross-compiler works.
4618  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4619  # <limits.h> exists even on freestanding compilers.
4620  # On the NeXT, cc -E runs the code through the compiler's parser,
4621  # not just through cpp. "Syntax error" is here to catch this case.
4622  cat >conftest.$ac_ext <<_ACEOF
4623/* confdefs.h.  */
4624_ACEOF
4625cat confdefs.h >>conftest.$ac_ext
4626cat >>conftest.$ac_ext <<_ACEOF
4627/* end confdefs.h.  */
4628@%:@ifdef __STDC__
4629@%:@ include <limits.h>
4630@%:@else
4631@%:@ include <assert.h>
4632@%:@endif
4633		     Syntax error
4634_ACEOF
4635if { (ac_try="$ac_cpp conftest.$ac_ext"
4636case "(($ac_try" in
4637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638  *) ac_try_echo=$ac_try;;
4639esac
4640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4641  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4642  ac_status=$?
4643  grep -v '^ *+' conftest.er1 >conftest.err
4644  rm -f conftest.er1
4645  cat conftest.err >&5
4646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647  (exit $ac_status); } >/dev/null && {
4648	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4649	 test ! -s conftest.err
4650       }; then
4651  :
4652else
4653  echo "$as_me: failed program was:" >&5
4654sed 's/^/| /' conftest.$ac_ext >&5
4655
4656  # Broken: fails on valid input.
4657continue
4658fi
4659
4660rm -f conftest.err conftest.$ac_ext
4661
4662  # OK, works on sane cases.  Now check whether nonexistent headers
4663  # can be detected and how.
4664  cat >conftest.$ac_ext <<_ACEOF
4665/* confdefs.h.  */
4666_ACEOF
4667cat confdefs.h >>conftest.$ac_ext
4668cat >>conftest.$ac_ext <<_ACEOF
4669/* end confdefs.h.  */
4670@%:@include <ac_nonexistent.h>
4671_ACEOF
4672if { (ac_try="$ac_cpp conftest.$ac_ext"
4673case "(($ac_try" in
4674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675  *) ac_try_echo=$ac_try;;
4676esac
4677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4678  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4679  ac_status=$?
4680  grep -v '^ *+' conftest.er1 >conftest.err
4681  rm -f conftest.er1
4682  cat conftest.err >&5
4683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684  (exit $ac_status); } >/dev/null && {
4685	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4686	 test ! -s conftest.err
4687       }; then
4688  # Broken: success on invalid input.
4689continue
4690else
4691  echo "$as_me: failed program was:" >&5
4692sed 's/^/| /' conftest.$ac_ext >&5
4693
4694  # Passes both tests.
4695ac_preproc_ok=:
4696break
4697fi
4698
4699rm -f conftest.err conftest.$ac_ext
4700
4701done
4702# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4703rm -f conftest.err conftest.$ac_ext
4704if $ac_preproc_ok; then
4705  :
4706else
4707  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4708See \`config.log' for more details." >&5
4709echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4710See \`config.log' for more details." >&2;}
4711   { (exit 1); exit 1; }; }
4712fi
4713
4714ac_ext=cpp
4715ac_cpp='$CXXCPP $CPPFLAGS'
4716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4719
4720
4721{ echo "$as_me:$LINENO: checking for X" >&5
4722echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4723
4724
4725# Check whether --with-x was given.
4726if test "${with_x+set}" = set; then
4727  withval=$with_x;
4728fi
4729
4730# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4731if test "x$with_x" = xno; then
4732  # The user explicitly disabled X.
4733  have_x=disabled
4734else
4735  case $x_includes,$x_libraries in #(
4736    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4737echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4738   { (exit 1); exit 1; }; };; #(
4739    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4740  echo $ECHO_N "(cached) $ECHO_C" >&6
4741else
4742  # One or both of the vars are not set, and there is no cached value.
4743ac_x_includes=no ac_x_libraries=no
4744rm -f -r conftest.dir
4745if mkdir conftest.dir; then
4746  cd conftest.dir
4747  cat >Imakefile <<'_ACEOF'
4748incroot:
4749	@echo incroot='${INCROOT}'
4750usrlibdir:
4751	@echo usrlibdir='${USRLIBDIR}'
4752libdir:
4753	@echo libdir='${LIBDIR}'
4754_ACEOF
4755  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4756    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4757    for ac_var in incroot usrlibdir libdir; do
4758      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4759    done
4760    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4761    for ac_extension in a so sl; do
4762      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4763	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4764	ac_im_usrlibdir=$ac_im_libdir; break
4765      fi
4766    done
4767    # Screen out bogus values from the imake configuration.  They are
4768    # bogus both because they are the default anyway, and because
4769    # using them would break gcc on systems where it needs fixed includes.
4770    case $ac_im_incroot in
4771	/usr/include) ac_x_includes= ;;
4772	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4773    esac
4774    case $ac_im_usrlibdir in
4775	/usr/lib | /lib) ;;
4776	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4777    esac
4778  fi
4779  cd ..
4780  rm -f -r conftest.dir
4781fi
4782
4783# Standard set of common directories for X headers.
4784# Check X11 before X11Rn because it is often a symlink to the current release.
4785ac_x_header_dirs='
4786/usr/X11/include
4787/usr/X11R6/include
4788/usr/X11R5/include
4789/usr/X11R4/include
4790
4791/usr/include/X11
4792/usr/include/X11R6
4793/usr/include/X11R5
4794/usr/include/X11R4
4795
4796/usr/local/X11/include
4797/usr/local/X11R6/include
4798/usr/local/X11R5/include
4799/usr/local/X11R4/include
4800
4801/usr/local/include/X11
4802/usr/local/include/X11R6
4803/usr/local/include/X11R5
4804/usr/local/include/X11R4
4805
4806/usr/X386/include
4807/usr/x386/include
4808/usr/XFree86/include/X11
4809
4810/usr/include
4811/usr/local/include
4812/usr/unsupported/include
4813/usr/athena/include
4814/usr/local/x11r5/include
4815/usr/lpp/Xamples/include
4816
4817/usr/openwin/include
4818/usr/openwin/share/include'
4819
4820if test "$ac_x_includes" = no; then
4821  # Guess where to find include files, by looking for Xlib.h.
4822  # First, try using that file with no special directory specified.
4823  cat >conftest.$ac_ext <<_ACEOF
4824/* confdefs.h.  */
4825_ACEOF
4826cat confdefs.h >>conftest.$ac_ext
4827cat >>conftest.$ac_ext <<_ACEOF
4828/* end confdefs.h.  */
4829@%:@include <X11/Xlib.h>
4830_ACEOF
4831if { (ac_try="$ac_cpp conftest.$ac_ext"
4832case "(($ac_try" in
4833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834  *) ac_try_echo=$ac_try;;
4835esac
4836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4838  ac_status=$?
4839  grep -v '^ *+' conftest.er1 >conftest.err
4840  rm -f conftest.er1
4841  cat conftest.err >&5
4842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843  (exit $ac_status); } >/dev/null && {
4844	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4845	 test ! -s conftest.err
4846       }; then
4847  # We can compile using X headers with no special include directory.
4848ac_x_includes=
4849else
4850  echo "$as_me: failed program was:" >&5
4851sed 's/^/| /' conftest.$ac_ext >&5
4852
4853  for ac_dir in $ac_x_header_dirs; do
4854  if test -r "$ac_dir/X11/Xlib.h"; then
4855    ac_x_includes=$ac_dir
4856    break
4857  fi
4858done
4859fi
4860
4861rm -f conftest.err conftest.$ac_ext
4862fi # $ac_x_includes = no
4863
4864if test "$ac_x_libraries" = no; then
4865  # Check for the libraries.
4866  # See if we find them without any special options.
4867  # Don't add to $LIBS permanently.
4868  ac_save_LIBS=$LIBS
4869  LIBS="-lX11 $LIBS"
4870  cat >conftest.$ac_ext <<_ACEOF
4871/* confdefs.h.  */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h.  */
4876@%:@include <X11/Xlib.h>
4877int
4878main ()
4879{
4880XrmInitialize ()
4881  ;
4882  return 0;
4883}
4884_ACEOF
4885rm -f conftest.$ac_objext conftest$ac_exeext
4886if { (ac_try="$ac_link"
4887case "(($ac_try" in
4888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889  *) ac_try_echo=$ac_try;;
4890esac
4891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892  (eval "$ac_link") 2>conftest.er1
4893  ac_status=$?
4894  grep -v '^ *+' conftest.er1 >conftest.err
4895  rm -f conftest.er1
4896  cat conftest.err >&5
4897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898  (exit $ac_status); } && {
4899	 test -z "$ac_cxx_werror_flag" ||
4900	 test ! -s conftest.err
4901       } && test -s conftest$ac_exeext &&
4902       $as_test_x conftest$ac_exeext; then
4903  LIBS=$ac_save_LIBS
4904# We can link X programs with no special library path.
4905ac_x_libraries=
4906else
4907  echo "$as_me: failed program was:" >&5
4908sed 's/^/| /' conftest.$ac_ext >&5
4909
4910	LIBS=$ac_save_LIBS
4911for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4912do
4913  # Don't even attempt the hair of trying to link an X program!
4914  for ac_extension in a so sl; do
4915    if test -r "$ac_dir/libX11.$ac_extension"; then
4916      ac_x_libraries=$ac_dir
4917      break 2
4918    fi
4919  done
4920done
4921fi
4922
4923rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4924      conftest$ac_exeext conftest.$ac_ext
4925fi # $ac_x_libraries = no
4926
4927case $ac_x_includes,$ac_x_libraries in #(
4928  no,* | *,no | *\'*)
4929    # Didn't find X, or a directory has "'" in its name.
4930    ac_cv_have_x="have_x=no";; #(
4931  *)
4932    # Record where we found X for the cache.
4933    ac_cv_have_x="have_x=yes\
4934	ac_x_includes='$ac_x_includes'\
4935	ac_x_libraries='$ac_x_libraries'"
4936esac
4937fi
4938;; #(
4939    *) have_x=yes;;
4940  esac
4941  eval "$ac_cv_have_x"
4942fi # $with_x != no
4943
4944if test "$have_x" != yes; then
4945  { echo "$as_me:$LINENO: result: $have_x" >&5
4946echo "${ECHO_T}$have_x" >&6; }
4947  no_x=yes
4948else
4949  # If each of the values was on the command line, it overrides each guess.
4950  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4951  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4952  # Update the cache value to reflect the command line values.
4953  ac_cv_have_x="have_x=yes\
4954	ac_x_includes='$x_includes'\
4955	ac_x_libraries='$x_libraries'"
4956  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4957echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4958fi
4959
4960if test "$no_x" = yes; then
4961  # Not all programs may use this symbol, but it does not hurt to define it.
4962
4963cat >>confdefs.h <<\_ACEOF
4964@%:@define X_DISPLAY_MISSING 1
4965_ACEOF
4966
4967  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4968else
4969  if test -n "$x_includes"; then
4970    X_CFLAGS="$X_CFLAGS -I$x_includes"
4971  fi
4972
4973  # It would also be nice to do this for all -L options, not just this one.
4974  if test -n "$x_libraries"; then
4975    X_LIBS="$X_LIBS -L$x_libraries"
4976    # For Solaris; some versions of Sun CC require a space after -R and
4977    # others require no space.  Words are not sufficient . . . .
4978    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4979echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4980    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4981    ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
4982    ac_cxx_werror_flag=yes
4983    cat >conftest.$ac_ext <<_ACEOF
4984/* confdefs.h.  */
4985_ACEOF
4986cat confdefs.h >>conftest.$ac_ext
4987cat >>conftest.$ac_ext <<_ACEOF
4988/* end confdefs.h.  */
4989
4990int
4991main ()
4992{
4993
4994  ;
4995  return 0;
4996}
4997_ACEOF
4998rm -f conftest.$ac_objext conftest$ac_exeext
4999if { (ac_try="$ac_link"
5000case "(($ac_try" in
5001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002  *) ac_try_echo=$ac_try;;
5003esac
5004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005  (eval "$ac_link") 2>conftest.er1
5006  ac_status=$?
5007  grep -v '^ *+' conftest.er1 >conftest.err
5008  rm -f conftest.er1
5009  cat conftest.err >&5
5010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011  (exit $ac_status); } && {
5012	 test -z "$ac_cxx_werror_flag" ||
5013	 test ! -s conftest.err
5014       } && test -s conftest$ac_exeext &&
5015       $as_test_x conftest$ac_exeext; then
5016  { echo "$as_me:$LINENO: result: no" >&5
5017echo "${ECHO_T}no" >&6; }
5018       X_LIBS="$X_LIBS -R$x_libraries"
5019else
5020  echo "$as_me: failed program was:" >&5
5021sed 's/^/| /' conftest.$ac_ext >&5
5022
5023	LIBS="$ac_xsave_LIBS -R $x_libraries"
5024       cat >conftest.$ac_ext <<_ACEOF
5025/* confdefs.h.  */
5026_ACEOF
5027cat confdefs.h >>conftest.$ac_ext
5028cat >>conftest.$ac_ext <<_ACEOF
5029/* end confdefs.h.  */
5030
5031int
5032main ()
5033{
5034
5035  ;
5036  return 0;
5037}
5038_ACEOF
5039rm -f conftest.$ac_objext conftest$ac_exeext
5040if { (ac_try="$ac_link"
5041case "(($ac_try" in
5042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043  *) ac_try_echo=$ac_try;;
5044esac
5045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046  (eval "$ac_link") 2>conftest.er1
5047  ac_status=$?
5048  grep -v '^ *+' conftest.er1 >conftest.err
5049  rm -f conftest.er1
5050  cat conftest.err >&5
5051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052  (exit $ac_status); } && {
5053	 test -z "$ac_cxx_werror_flag" ||
5054	 test ! -s conftest.err
5055       } && test -s conftest$ac_exeext &&
5056       $as_test_x conftest$ac_exeext; then
5057  { echo "$as_me:$LINENO: result: yes" >&5
5058echo "${ECHO_T}yes" >&6; }
5059	  X_LIBS="$X_LIBS -R $x_libraries"
5060else
5061  echo "$as_me: failed program was:" >&5
5062sed 's/^/| /' conftest.$ac_ext >&5
5063
5064	{ echo "$as_me:$LINENO: result: neither works" >&5
5065echo "${ECHO_T}neither works" >&6; }
5066fi
5067
5068rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5069      conftest$ac_exeext conftest.$ac_ext
5070fi
5071
5072rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5073      conftest$ac_exeext conftest.$ac_ext
5074    ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
5075    LIBS=$ac_xsave_LIBS
5076  fi
5077
5078  # Check for system-dependent libraries X programs must link with.
5079  # Do this before checking for the system-independent R6 libraries
5080  # (-lICE), since we may need -lsocket or whatever for X linking.
5081
5082  if test "$ISC" = yes; then
5083    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5084  else
5085    # Martyn Johnson says this is needed for Ultrix, if the X
5086    # libraries were built with DECnet support.  And Karl Berry says
5087    # the Alpha needs dnet_stub (dnet does not exist).
5088    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5089    cat >conftest.$ac_ext <<_ACEOF
5090/* confdefs.h.  */
5091_ACEOF
5092cat confdefs.h >>conftest.$ac_ext
5093cat >>conftest.$ac_ext <<_ACEOF
5094/* end confdefs.h.  */
5095
5096/* Override any GCC internal prototype to avoid an error.
5097   Use char because int might match the return type of a GCC
5098   builtin and then its argument prototype would still apply.  */
5099#ifdef __cplusplus
5100extern "C"
5101#endif
5102char XOpenDisplay ();
5103int
5104main ()
5105{
5106return XOpenDisplay ();
5107  ;
5108  return 0;
5109}
5110_ACEOF
5111rm -f conftest.$ac_objext conftest$ac_exeext
5112if { (ac_try="$ac_link"
5113case "(($ac_try" in
5114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115  *) ac_try_echo=$ac_try;;
5116esac
5117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118  (eval "$ac_link") 2>conftest.er1
5119  ac_status=$?
5120  grep -v '^ *+' conftest.er1 >conftest.err
5121  rm -f conftest.er1
5122  cat conftest.err >&5
5123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124  (exit $ac_status); } && {
5125	 test -z "$ac_cxx_werror_flag" ||
5126	 test ! -s conftest.err
5127       } && test -s conftest$ac_exeext &&
5128       $as_test_x conftest$ac_exeext; then
5129  :
5130else
5131  echo "$as_me: failed program was:" >&5
5132sed 's/^/| /' conftest.$ac_ext >&5
5133
5134	{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5135echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
5136if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5137  echo $ECHO_N "(cached) $ECHO_C" >&6
5138else
5139  ac_check_lib_save_LIBS=$LIBS
5140LIBS="-ldnet  $LIBS"
5141cat >conftest.$ac_ext <<_ACEOF
5142/* confdefs.h.  */
5143_ACEOF
5144cat confdefs.h >>conftest.$ac_ext
5145cat >>conftest.$ac_ext <<_ACEOF
5146/* end confdefs.h.  */
5147
5148/* Override any GCC internal prototype to avoid an error.
5149   Use char because int might match the return type of a GCC
5150   builtin and then its argument prototype would still apply.  */
5151#ifdef __cplusplus
5152extern "C"
5153#endif
5154char dnet_ntoa ();
5155int
5156main ()
5157{
5158return dnet_ntoa ();
5159  ;
5160  return 0;
5161}
5162_ACEOF
5163rm -f conftest.$ac_objext conftest$ac_exeext
5164if { (ac_try="$ac_link"
5165case "(($ac_try" in
5166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167  *) ac_try_echo=$ac_try;;
5168esac
5169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5170  (eval "$ac_link") 2>conftest.er1
5171  ac_status=$?
5172  grep -v '^ *+' conftest.er1 >conftest.err
5173  rm -f conftest.er1
5174  cat conftest.err >&5
5175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176  (exit $ac_status); } && {
5177	 test -z "$ac_cxx_werror_flag" ||
5178	 test ! -s conftest.err
5179       } && test -s conftest$ac_exeext &&
5180       $as_test_x conftest$ac_exeext; then
5181  ac_cv_lib_dnet_dnet_ntoa=yes
5182else
5183  echo "$as_me: failed program was:" >&5
5184sed 's/^/| /' conftest.$ac_ext >&5
5185
5186	ac_cv_lib_dnet_dnet_ntoa=no
5187fi
5188
5189rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5190      conftest$ac_exeext conftest.$ac_ext
5191LIBS=$ac_check_lib_save_LIBS
5192fi
5193{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5194echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5195if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5196  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5197fi
5198
5199    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5200      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5201echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
5202if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5203  echo $ECHO_N "(cached) $ECHO_C" >&6
5204else
5205  ac_check_lib_save_LIBS=$LIBS
5206LIBS="-ldnet_stub  $LIBS"
5207cat >conftest.$ac_ext <<_ACEOF
5208/* confdefs.h.  */
5209_ACEOF
5210cat confdefs.h >>conftest.$ac_ext
5211cat >>conftest.$ac_ext <<_ACEOF
5212/* end confdefs.h.  */
5213
5214/* Override any GCC internal prototype to avoid an error.
5215   Use char because int might match the return type of a GCC
5216   builtin and then its argument prototype would still apply.  */
5217#ifdef __cplusplus
5218extern "C"
5219#endif
5220char dnet_ntoa ();
5221int
5222main ()
5223{
5224return dnet_ntoa ();
5225  ;
5226  return 0;
5227}
5228_ACEOF
5229rm -f conftest.$ac_objext conftest$ac_exeext
5230if { (ac_try="$ac_link"
5231case "(($ac_try" in
5232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5233  *) ac_try_echo=$ac_try;;
5234esac
5235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5236  (eval "$ac_link") 2>conftest.er1
5237  ac_status=$?
5238  grep -v '^ *+' conftest.er1 >conftest.err
5239  rm -f conftest.er1
5240  cat conftest.err >&5
5241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242  (exit $ac_status); } && {
5243	 test -z "$ac_cxx_werror_flag" ||
5244	 test ! -s conftest.err
5245       } && test -s conftest$ac_exeext &&
5246       $as_test_x conftest$ac_exeext; then
5247  ac_cv_lib_dnet_stub_dnet_ntoa=yes
5248else
5249  echo "$as_me: failed program was:" >&5
5250sed 's/^/| /' conftest.$ac_ext >&5
5251
5252	ac_cv_lib_dnet_stub_dnet_ntoa=no
5253fi
5254
5255rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5256      conftest$ac_exeext conftest.$ac_ext
5257LIBS=$ac_check_lib_save_LIBS
5258fi
5259{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5260echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5261if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5262  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5263fi
5264
5265    fi
5266fi
5267
5268rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5269      conftest$ac_exeext conftest.$ac_ext
5270    LIBS="$ac_xsave_LIBS"
5271
5272    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5273    # to get the SysV transport functions.
5274    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5275    # needs -lnsl.
5276    # The nsl library prevents programs from opening the X display
5277    # on Irix 5.2, according to T.E. Dickey.
5278    # The functions gethostbyname, getservbyname, and inet_addr are
5279    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5280    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
5281echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5282if test "${ac_cv_func_gethostbyname+set}" = set; then
5283  echo $ECHO_N "(cached) $ECHO_C" >&6
5284else
5285  cat >conftest.$ac_ext <<_ACEOF
5286/* confdefs.h.  */
5287_ACEOF
5288cat confdefs.h >>conftest.$ac_ext
5289cat >>conftest.$ac_ext <<_ACEOF
5290/* end confdefs.h.  */
5291/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5292   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5293#define gethostbyname innocuous_gethostbyname
5294
5295/* System header to define __stub macros and hopefully few prototypes,
5296    which can conflict with char gethostbyname (); below.
5297    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5298    <limits.h> exists even on freestanding compilers.  */
5299
5300#ifdef __STDC__
5301# include <limits.h>
5302#else
5303# include <assert.h>
5304#endif
5305
5306#undef gethostbyname
5307
5308/* Override any GCC internal prototype to avoid an error.
5309   Use char because int might match the return type of a GCC
5310   builtin and then its argument prototype would still apply.  */
5311#ifdef __cplusplus
5312extern "C"
5313#endif
5314char gethostbyname ();
5315/* The GNU C library defines this for functions which it implements
5316    to always fail with ENOSYS.  Some functions are actually named
5317    something starting with __ and the normal name is an alias.  */
5318#if defined __stub_gethostbyname || defined __stub___gethostbyname
5319choke me
5320#endif
5321
5322int
5323main ()
5324{
5325return gethostbyname ();
5326  ;
5327  return 0;
5328}
5329_ACEOF
5330rm -f conftest.$ac_objext conftest$ac_exeext
5331if { (ac_try="$ac_link"
5332case "(($ac_try" in
5333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5334  *) ac_try_echo=$ac_try;;
5335esac
5336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5337  (eval "$ac_link") 2>conftest.er1
5338  ac_status=$?
5339  grep -v '^ *+' conftest.er1 >conftest.err
5340  rm -f conftest.er1
5341  cat conftest.err >&5
5342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343  (exit $ac_status); } && {
5344	 test -z "$ac_cxx_werror_flag" ||
5345	 test ! -s conftest.err
5346       } && test -s conftest$ac_exeext &&
5347       $as_test_x conftest$ac_exeext; then
5348  ac_cv_func_gethostbyname=yes
5349else
5350  echo "$as_me: failed program was:" >&5
5351sed 's/^/| /' conftest.$ac_ext >&5
5352
5353	ac_cv_func_gethostbyname=no
5354fi
5355
5356rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5357      conftest$ac_exeext conftest.$ac_ext
5358fi
5359{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5360echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5361
5362    if test $ac_cv_func_gethostbyname = no; then
5363      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5364echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5365if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5366  echo $ECHO_N "(cached) $ECHO_C" >&6
5367else
5368  ac_check_lib_save_LIBS=$LIBS
5369LIBS="-lnsl  $LIBS"
5370cat >conftest.$ac_ext <<_ACEOF
5371/* confdefs.h.  */
5372_ACEOF
5373cat confdefs.h >>conftest.$ac_ext
5374cat >>conftest.$ac_ext <<_ACEOF
5375/* end confdefs.h.  */
5376
5377/* Override any GCC internal prototype to avoid an error.
5378   Use char because int might match the return type of a GCC
5379   builtin and then its argument prototype would still apply.  */
5380#ifdef __cplusplus
5381extern "C"
5382#endif
5383char gethostbyname ();
5384int
5385main ()
5386{
5387return gethostbyname ();
5388  ;
5389  return 0;
5390}
5391_ACEOF
5392rm -f conftest.$ac_objext conftest$ac_exeext
5393if { (ac_try="$ac_link"
5394case "(($ac_try" in
5395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396  *) ac_try_echo=$ac_try;;
5397esac
5398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399  (eval "$ac_link") 2>conftest.er1
5400  ac_status=$?
5401  grep -v '^ *+' conftest.er1 >conftest.err
5402  rm -f conftest.er1
5403  cat conftest.err >&5
5404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405  (exit $ac_status); } && {
5406	 test -z "$ac_cxx_werror_flag" ||
5407	 test ! -s conftest.err
5408       } && test -s conftest$ac_exeext &&
5409       $as_test_x conftest$ac_exeext; then
5410  ac_cv_lib_nsl_gethostbyname=yes
5411else
5412  echo "$as_me: failed program was:" >&5
5413sed 's/^/| /' conftest.$ac_ext >&5
5414
5415	ac_cv_lib_nsl_gethostbyname=no
5416fi
5417
5418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5419      conftest$ac_exeext conftest.$ac_ext
5420LIBS=$ac_check_lib_save_LIBS
5421fi
5422{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5423echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5424if test $ac_cv_lib_nsl_gethostbyname = yes; then
5425  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5426fi
5427
5428      if test $ac_cv_lib_nsl_gethostbyname = no; then
5429	{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5430echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
5431if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5432  echo $ECHO_N "(cached) $ECHO_C" >&6
5433else
5434  ac_check_lib_save_LIBS=$LIBS
5435LIBS="-lbsd  $LIBS"
5436cat >conftest.$ac_ext <<_ACEOF
5437/* confdefs.h.  */
5438_ACEOF
5439cat confdefs.h >>conftest.$ac_ext
5440cat >>conftest.$ac_ext <<_ACEOF
5441/* end confdefs.h.  */
5442
5443/* Override any GCC internal prototype to avoid an error.
5444   Use char because int might match the return type of a GCC
5445   builtin and then its argument prototype would still apply.  */
5446#ifdef __cplusplus
5447extern "C"
5448#endif
5449char gethostbyname ();
5450int
5451main ()
5452{
5453return gethostbyname ();
5454  ;
5455  return 0;
5456}
5457_ACEOF
5458rm -f conftest.$ac_objext conftest$ac_exeext
5459if { (ac_try="$ac_link"
5460case "(($ac_try" in
5461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462  *) ac_try_echo=$ac_try;;
5463esac
5464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465  (eval "$ac_link") 2>conftest.er1
5466  ac_status=$?
5467  grep -v '^ *+' conftest.er1 >conftest.err
5468  rm -f conftest.er1
5469  cat conftest.err >&5
5470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471  (exit $ac_status); } && {
5472	 test -z "$ac_cxx_werror_flag" ||
5473	 test ! -s conftest.err
5474       } && test -s conftest$ac_exeext &&
5475       $as_test_x conftest$ac_exeext; then
5476  ac_cv_lib_bsd_gethostbyname=yes
5477else
5478  echo "$as_me: failed program was:" >&5
5479sed 's/^/| /' conftest.$ac_ext >&5
5480
5481	ac_cv_lib_bsd_gethostbyname=no
5482fi
5483
5484rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5485      conftest$ac_exeext conftest.$ac_ext
5486LIBS=$ac_check_lib_save_LIBS
5487fi
5488{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5489echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
5490if test $ac_cv_lib_bsd_gethostbyname = yes; then
5491  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5492fi
5493
5494      fi
5495    fi
5496
5497    # lieder@skyler.mavd.honeywell.com says without -lsocket,
5498    # socket/setsockopt and other routines are undefined under SCO ODT
5499    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
5500    # on later versions), says Simon Leinen: it contains gethostby*
5501    # variants that don't use the name server (or something).  -lsocket
5502    # must be given before -lnsl if both are needed.  We assume that
5503    # if connect needs -lnsl, so does gethostbyname.
5504    { echo "$as_me:$LINENO: checking for connect" >&5
5505echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5506if test "${ac_cv_func_connect+set}" = set; then
5507  echo $ECHO_N "(cached) $ECHO_C" >&6
5508else
5509  cat >conftest.$ac_ext <<_ACEOF
5510/* confdefs.h.  */
5511_ACEOF
5512cat confdefs.h >>conftest.$ac_ext
5513cat >>conftest.$ac_ext <<_ACEOF
5514/* end confdefs.h.  */
5515/* Define connect to an innocuous variant, in case <limits.h> declares connect.
5516   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5517#define connect innocuous_connect
5518
5519/* System header to define __stub macros and hopefully few prototypes,
5520    which can conflict with char connect (); below.
5521    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5522    <limits.h> exists even on freestanding compilers.  */
5523
5524#ifdef __STDC__
5525# include <limits.h>
5526#else
5527# include <assert.h>
5528#endif
5529
5530#undef connect
5531
5532/* Override any GCC internal prototype to avoid an error.
5533   Use char because int might match the return type of a GCC
5534   builtin and then its argument prototype would still apply.  */
5535#ifdef __cplusplus
5536extern "C"
5537#endif
5538char connect ();
5539/* The GNU C library defines this for functions which it implements
5540    to always fail with ENOSYS.  Some functions are actually named
5541    something starting with __ and the normal name is an alias.  */
5542#if defined __stub_connect || defined __stub___connect
5543choke me
5544#endif
5545
5546int
5547main ()
5548{
5549return connect ();
5550  ;
5551  return 0;
5552}
5553_ACEOF
5554rm -f conftest.$ac_objext conftest$ac_exeext
5555if { (ac_try="$ac_link"
5556case "(($ac_try" in
5557  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558  *) ac_try_echo=$ac_try;;
5559esac
5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561  (eval "$ac_link") 2>conftest.er1
5562  ac_status=$?
5563  grep -v '^ *+' conftest.er1 >conftest.err
5564  rm -f conftest.er1
5565  cat conftest.err >&5
5566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567  (exit $ac_status); } && {
5568	 test -z "$ac_cxx_werror_flag" ||
5569	 test ! -s conftest.err
5570       } && test -s conftest$ac_exeext &&
5571       $as_test_x conftest$ac_exeext; then
5572  ac_cv_func_connect=yes
5573else
5574  echo "$as_me: failed program was:" >&5
5575sed 's/^/| /' conftest.$ac_ext >&5
5576
5577	ac_cv_func_connect=no
5578fi
5579
5580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5581      conftest$ac_exeext conftest.$ac_ext
5582fi
5583{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5584echo "${ECHO_T}$ac_cv_func_connect" >&6; }
5585
5586    if test $ac_cv_func_connect = no; then
5587      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5588echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
5589if test "${ac_cv_lib_socket_connect+set}" = set; then
5590  echo $ECHO_N "(cached) $ECHO_C" >&6
5591else
5592  ac_check_lib_save_LIBS=$LIBS
5593LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5594cat >conftest.$ac_ext <<_ACEOF
5595/* confdefs.h.  */
5596_ACEOF
5597cat confdefs.h >>conftest.$ac_ext
5598cat >>conftest.$ac_ext <<_ACEOF
5599/* end confdefs.h.  */
5600
5601/* Override any GCC internal prototype to avoid an error.
5602   Use char because int might match the return type of a GCC
5603   builtin and then its argument prototype would still apply.  */
5604#ifdef __cplusplus
5605extern "C"
5606#endif
5607char connect ();
5608int
5609main ()
5610{
5611return connect ();
5612  ;
5613  return 0;
5614}
5615_ACEOF
5616rm -f conftest.$ac_objext conftest$ac_exeext
5617if { (ac_try="$ac_link"
5618case "(($ac_try" in
5619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620  *) ac_try_echo=$ac_try;;
5621esac
5622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623  (eval "$ac_link") 2>conftest.er1
5624  ac_status=$?
5625  grep -v '^ *+' conftest.er1 >conftest.err
5626  rm -f conftest.er1
5627  cat conftest.err >&5
5628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629  (exit $ac_status); } && {
5630	 test -z "$ac_cxx_werror_flag" ||
5631	 test ! -s conftest.err
5632       } && test -s conftest$ac_exeext &&
5633       $as_test_x conftest$ac_exeext; then
5634  ac_cv_lib_socket_connect=yes
5635else
5636  echo "$as_me: failed program was:" >&5
5637sed 's/^/| /' conftest.$ac_ext >&5
5638
5639	ac_cv_lib_socket_connect=no
5640fi
5641
5642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5643      conftest$ac_exeext conftest.$ac_ext
5644LIBS=$ac_check_lib_save_LIBS
5645fi
5646{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5647echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5648if test $ac_cv_lib_socket_connect = yes; then
5649  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5650fi
5651
5652    fi
5653
5654    # Guillermo Gomez says -lposix is necessary on A/UX.
5655    { echo "$as_me:$LINENO: checking for remove" >&5
5656echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5657if test "${ac_cv_func_remove+set}" = set; then
5658  echo $ECHO_N "(cached) $ECHO_C" >&6
5659else
5660  cat >conftest.$ac_ext <<_ACEOF
5661/* confdefs.h.  */
5662_ACEOF
5663cat confdefs.h >>conftest.$ac_ext
5664cat >>conftest.$ac_ext <<_ACEOF
5665/* end confdefs.h.  */
5666/* Define remove to an innocuous variant, in case <limits.h> declares remove.
5667   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5668#define remove innocuous_remove
5669
5670/* System header to define __stub macros and hopefully few prototypes,
5671    which can conflict with char remove (); below.
5672    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5673    <limits.h> exists even on freestanding compilers.  */
5674
5675#ifdef __STDC__
5676# include <limits.h>
5677#else
5678# include <assert.h>
5679#endif
5680
5681#undef remove
5682
5683/* Override any GCC internal prototype to avoid an error.
5684   Use char because int might match the return type of a GCC
5685   builtin and then its argument prototype would still apply.  */
5686#ifdef __cplusplus
5687extern "C"
5688#endif
5689char remove ();
5690/* The GNU C library defines this for functions which it implements
5691    to always fail with ENOSYS.  Some functions are actually named
5692    something starting with __ and the normal name is an alias.  */
5693#if defined __stub_remove || defined __stub___remove
5694choke me
5695#endif
5696
5697int
5698main ()
5699{
5700return remove ();
5701  ;
5702  return 0;
5703}
5704_ACEOF
5705rm -f conftest.$ac_objext conftest$ac_exeext
5706if { (ac_try="$ac_link"
5707case "(($ac_try" in
5708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5709  *) ac_try_echo=$ac_try;;
5710esac
5711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712  (eval "$ac_link") 2>conftest.er1
5713  ac_status=$?
5714  grep -v '^ *+' conftest.er1 >conftest.err
5715  rm -f conftest.er1
5716  cat conftest.err >&5
5717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718  (exit $ac_status); } && {
5719	 test -z "$ac_cxx_werror_flag" ||
5720	 test ! -s conftest.err
5721       } && test -s conftest$ac_exeext &&
5722       $as_test_x conftest$ac_exeext; then
5723  ac_cv_func_remove=yes
5724else
5725  echo "$as_me: failed program was:" >&5
5726sed 's/^/| /' conftest.$ac_ext >&5
5727
5728	ac_cv_func_remove=no
5729fi
5730
5731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5732      conftest$ac_exeext conftest.$ac_ext
5733fi
5734{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5735echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5736
5737    if test $ac_cv_func_remove = no; then
5738      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5739echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5740if test "${ac_cv_lib_posix_remove+set}" = set; then
5741  echo $ECHO_N "(cached) $ECHO_C" >&6
5742else
5743  ac_check_lib_save_LIBS=$LIBS
5744LIBS="-lposix  $LIBS"
5745cat >conftest.$ac_ext <<_ACEOF
5746/* confdefs.h.  */
5747_ACEOF
5748cat confdefs.h >>conftest.$ac_ext
5749cat >>conftest.$ac_ext <<_ACEOF
5750/* end confdefs.h.  */
5751
5752/* Override any GCC internal prototype to avoid an error.
5753   Use char because int might match the return type of a GCC
5754   builtin and then its argument prototype would still apply.  */
5755#ifdef __cplusplus
5756extern "C"
5757#endif
5758char remove ();
5759int
5760main ()
5761{
5762return remove ();
5763  ;
5764  return 0;
5765}
5766_ACEOF
5767rm -f conftest.$ac_objext conftest$ac_exeext
5768if { (ac_try="$ac_link"
5769case "(($ac_try" in
5770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771  *) ac_try_echo=$ac_try;;
5772esac
5773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774  (eval "$ac_link") 2>conftest.er1
5775  ac_status=$?
5776  grep -v '^ *+' conftest.er1 >conftest.err
5777  rm -f conftest.er1
5778  cat conftest.err >&5
5779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780  (exit $ac_status); } && {
5781	 test -z "$ac_cxx_werror_flag" ||
5782	 test ! -s conftest.err
5783       } && test -s conftest$ac_exeext &&
5784       $as_test_x conftest$ac_exeext; then
5785  ac_cv_lib_posix_remove=yes
5786else
5787  echo "$as_me: failed program was:" >&5
5788sed 's/^/| /' conftest.$ac_ext >&5
5789
5790	ac_cv_lib_posix_remove=no
5791fi
5792
5793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5794      conftest$ac_exeext conftest.$ac_ext
5795LIBS=$ac_check_lib_save_LIBS
5796fi
5797{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5798echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5799if test $ac_cv_lib_posix_remove = yes; then
5800  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5801fi
5802
5803    fi
5804
5805    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5806    { echo "$as_me:$LINENO: checking for shmat" >&5
5807echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5808if test "${ac_cv_func_shmat+set}" = set; then
5809  echo $ECHO_N "(cached) $ECHO_C" >&6
5810else
5811  cat >conftest.$ac_ext <<_ACEOF
5812/* confdefs.h.  */
5813_ACEOF
5814cat confdefs.h >>conftest.$ac_ext
5815cat >>conftest.$ac_ext <<_ACEOF
5816/* end confdefs.h.  */
5817/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5818   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5819#define shmat innocuous_shmat
5820
5821/* System header to define __stub macros and hopefully few prototypes,
5822    which can conflict with char shmat (); below.
5823    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5824    <limits.h> exists even on freestanding compilers.  */
5825
5826#ifdef __STDC__
5827# include <limits.h>
5828#else
5829# include <assert.h>
5830#endif
5831
5832#undef shmat
5833
5834/* Override any GCC internal prototype to avoid an error.
5835   Use char because int might match the return type of a GCC
5836   builtin and then its argument prototype would still apply.  */
5837#ifdef __cplusplus
5838extern "C"
5839#endif
5840char shmat ();
5841/* The GNU C library defines this for functions which it implements
5842    to always fail with ENOSYS.  Some functions are actually named
5843    something starting with __ and the normal name is an alias.  */
5844#if defined __stub_shmat || defined __stub___shmat
5845choke me
5846#endif
5847
5848int
5849main ()
5850{
5851return shmat ();
5852  ;
5853  return 0;
5854}
5855_ACEOF
5856rm -f conftest.$ac_objext conftest$ac_exeext
5857if { (ac_try="$ac_link"
5858case "(($ac_try" in
5859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5860  *) ac_try_echo=$ac_try;;
5861esac
5862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5863  (eval "$ac_link") 2>conftest.er1
5864  ac_status=$?
5865  grep -v '^ *+' conftest.er1 >conftest.err
5866  rm -f conftest.er1
5867  cat conftest.err >&5
5868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869  (exit $ac_status); } && {
5870	 test -z "$ac_cxx_werror_flag" ||
5871	 test ! -s conftest.err
5872       } && test -s conftest$ac_exeext &&
5873       $as_test_x conftest$ac_exeext; then
5874  ac_cv_func_shmat=yes
5875else
5876  echo "$as_me: failed program was:" >&5
5877sed 's/^/| /' conftest.$ac_ext >&5
5878
5879	ac_cv_func_shmat=no
5880fi
5881
5882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5883      conftest$ac_exeext conftest.$ac_ext
5884fi
5885{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5886echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5887
5888    if test $ac_cv_func_shmat = no; then
5889      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5890echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5891if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5892  echo $ECHO_N "(cached) $ECHO_C" >&6
5893else
5894  ac_check_lib_save_LIBS=$LIBS
5895LIBS="-lipc  $LIBS"
5896cat >conftest.$ac_ext <<_ACEOF
5897/* confdefs.h.  */
5898_ACEOF
5899cat confdefs.h >>conftest.$ac_ext
5900cat >>conftest.$ac_ext <<_ACEOF
5901/* end confdefs.h.  */
5902
5903/* Override any GCC internal prototype to avoid an error.
5904   Use char because int might match the return type of a GCC
5905   builtin and then its argument prototype would still apply.  */
5906#ifdef __cplusplus
5907extern "C"
5908#endif
5909char shmat ();
5910int
5911main ()
5912{
5913return shmat ();
5914  ;
5915  return 0;
5916}
5917_ACEOF
5918rm -f conftest.$ac_objext conftest$ac_exeext
5919if { (ac_try="$ac_link"
5920case "(($ac_try" in
5921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922  *) ac_try_echo=$ac_try;;
5923esac
5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925  (eval "$ac_link") 2>conftest.er1
5926  ac_status=$?
5927  grep -v '^ *+' conftest.er1 >conftest.err
5928  rm -f conftest.er1
5929  cat conftest.err >&5
5930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931  (exit $ac_status); } && {
5932	 test -z "$ac_cxx_werror_flag" ||
5933	 test ! -s conftest.err
5934       } && test -s conftest$ac_exeext &&
5935       $as_test_x conftest$ac_exeext; then
5936  ac_cv_lib_ipc_shmat=yes
5937else
5938  echo "$as_me: failed program was:" >&5
5939sed 's/^/| /' conftest.$ac_ext >&5
5940
5941	ac_cv_lib_ipc_shmat=no
5942fi
5943
5944rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5945      conftest$ac_exeext conftest.$ac_ext
5946LIBS=$ac_check_lib_save_LIBS
5947fi
5948{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5949echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5950if test $ac_cv_lib_ipc_shmat = yes; then
5951  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5952fi
5953
5954    fi
5955  fi
5956
5957  # Check for libraries that X11R6 Xt/Xaw programs need.
5958  ac_save_LDFLAGS=$LDFLAGS
5959  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5960  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5961  # check for ICE first), but we must link in the order -lSM -lICE or
5962  # we get undefined symbols.  So assume we have SM if we have ICE.
5963  # These have to be linked with before -lX11, unlike the other
5964  # libraries we check for below, so use a different variable.
5965  # John Interrante, Karl Berry
5966  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5967echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5968if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5969  echo $ECHO_N "(cached) $ECHO_C" >&6
5970else
5971  ac_check_lib_save_LIBS=$LIBS
5972LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5973cat >conftest.$ac_ext <<_ACEOF
5974/* confdefs.h.  */
5975_ACEOF
5976cat confdefs.h >>conftest.$ac_ext
5977cat >>conftest.$ac_ext <<_ACEOF
5978/* end confdefs.h.  */
5979
5980/* Override any GCC internal prototype to avoid an error.
5981   Use char because int might match the return type of a GCC
5982   builtin and then its argument prototype would still apply.  */
5983#ifdef __cplusplus
5984extern "C"
5985#endif
5986char IceConnectionNumber ();
5987int
5988main ()
5989{
5990return IceConnectionNumber ();
5991  ;
5992  return 0;
5993}
5994_ACEOF
5995rm -f conftest.$ac_objext conftest$ac_exeext
5996if { (ac_try="$ac_link"
5997case "(($ac_try" in
5998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999  *) ac_try_echo=$ac_try;;
6000esac
6001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002  (eval "$ac_link") 2>conftest.er1
6003  ac_status=$?
6004  grep -v '^ *+' conftest.er1 >conftest.err
6005  rm -f conftest.er1
6006  cat conftest.err >&5
6007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008  (exit $ac_status); } && {
6009	 test -z "$ac_cxx_werror_flag" ||
6010	 test ! -s conftest.err
6011       } && test -s conftest$ac_exeext &&
6012       $as_test_x conftest$ac_exeext; then
6013  ac_cv_lib_ICE_IceConnectionNumber=yes
6014else
6015  echo "$as_me: failed program was:" >&5
6016sed 's/^/| /' conftest.$ac_ext >&5
6017
6018	ac_cv_lib_ICE_IceConnectionNumber=no
6019fi
6020
6021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6022      conftest$ac_exeext conftest.$ac_ext
6023LIBS=$ac_check_lib_save_LIBS
6024fi
6025{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6026echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6027if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6028  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6029fi
6030
6031  LDFLAGS=$ac_save_LDFLAGS
6032
6033fi
6034
6035{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6036echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6037if test "${ac_cv_path_GREP+set}" = set; then
6038  echo $ECHO_N "(cached) $ECHO_C" >&6
6039else
6040  # Extract the first word of "grep ggrep" to use in msg output
6041if test -z "$GREP"; then
6042set dummy grep ggrep; ac_prog_name=$2
6043if test "${ac_cv_path_GREP+set}" = set; then
6044  echo $ECHO_N "(cached) $ECHO_C" >&6
6045else
6046  ac_path_GREP_found=false
6047# Loop through the user's path and test for each of PROGNAME-LIST
6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6050do
6051  IFS=$as_save_IFS
6052  test -z "$as_dir" && as_dir=.
6053  for ac_prog in grep ggrep; do
6054  for ac_exec_ext in '' $ac_executable_extensions; do
6055    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6056    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6057    # Check for GNU ac_path_GREP and select it if it is found.
6058  # Check for GNU $ac_path_GREP
6059case `"$ac_path_GREP" --version 2>&1` in
6060*GNU*)
6061  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6062*)
6063  ac_count=0
6064  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6065  while :
6066  do
6067    cat "conftest.in" "conftest.in" >"conftest.tmp"
6068    mv "conftest.tmp" "conftest.in"
6069    cp "conftest.in" "conftest.nl"
6070    echo 'GREP' >> "conftest.nl"
6071    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6072    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6073    ac_count=`expr $ac_count + 1`
6074    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6075      # Best one so far, save it but keep looking for a better one
6076      ac_cv_path_GREP="$ac_path_GREP"
6077      ac_path_GREP_max=$ac_count
6078    fi
6079    # 10*(2^10) chars as input seems more than enough
6080    test $ac_count -gt 10 && break
6081  done
6082  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6083esac
6084
6085
6086    $ac_path_GREP_found && break 3
6087  done
6088done
6089
6090done
6091IFS=$as_save_IFS
6092
6093
6094fi
6095
6096GREP="$ac_cv_path_GREP"
6097if test -z "$GREP"; then
6098  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6099echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6100   { (exit 1); exit 1; }; }
6101fi
6102
6103else
6104  ac_cv_path_GREP=$GREP
6105fi
6106
6107
6108fi
6109{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6110echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6111 GREP="$ac_cv_path_GREP"
6112
6113
6114{ echo "$as_me:$LINENO: checking for egrep" >&5
6115echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6116if test "${ac_cv_path_EGREP+set}" = set; then
6117  echo $ECHO_N "(cached) $ECHO_C" >&6
6118else
6119  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6120   then ac_cv_path_EGREP="$GREP -E"
6121   else
6122     # Extract the first word of "egrep" to use in msg output
6123if test -z "$EGREP"; then
6124set dummy egrep; ac_prog_name=$2
6125if test "${ac_cv_path_EGREP+set}" = set; then
6126  echo $ECHO_N "(cached) $ECHO_C" >&6
6127else
6128  ac_path_EGREP_found=false
6129# Loop through the user's path and test for each of PROGNAME-LIST
6130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6132do
6133  IFS=$as_save_IFS
6134  test -z "$as_dir" && as_dir=.
6135  for ac_prog in egrep; do
6136  for ac_exec_ext in '' $ac_executable_extensions; do
6137    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6138    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6139    # Check for GNU ac_path_EGREP and select it if it is found.
6140  # Check for GNU $ac_path_EGREP
6141case `"$ac_path_EGREP" --version 2>&1` in
6142*GNU*)
6143  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6144*)
6145  ac_count=0
6146  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6147  while :
6148  do
6149    cat "conftest.in" "conftest.in" >"conftest.tmp"
6150    mv "conftest.tmp" "conftest.in"
6151    cp "conftest.in" "conftest.nl"
6152    echo 'EGREP' >> "conftest.nl"
6153    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6154    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6155    ac_count=`expr $ac_count + 1`
6156    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6157      # Best one so far, save it but keep looking for a better one
6158      ac_cv_path_EGREP="$ac_path_EGREP"
6159      ac_path_EGREP_max=$ac_count
6160    fi
6161    # 10*(2^10) chars as input seems more than enough
6162    test $ac_count -gt 10 && break
6163  done
6164  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6165esac
6166
6167
6168    $ac_path_EGREP_found && break 3
6169  done
6170done
6171
6172done
6173IFS=$as_save_IFS
6174
6175
6176fi
6177
6178EGREP="$ac_cv_path_EGREP"
6179if test -z "$EGREP"; then
6180  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6181echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6182   { (exit 1); exit 1; }; }
6183fi
6184
6185else
6186  ac_cv_path_EGREP=$EGREP
6187fi
6188
6189
6190   fi
6191fi
6192{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6193echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6194 EGREP="$ac_cv_path_EGREP"
6195
6196
6197{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6198echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6199if test "${ac_cv_header_stdc+set}" = set; then
6200  echo $ECHO_N "(cached) $ECHO_C" >&6
6201else
6202  cat >conftest.$ac_ext <<_ACEOF
6203/* confdefs.h.  */
6204_ACEOF
6205cat confdefs.h >>conftest.$ac_ext
6206cat >>conftest.$ac_ext <<_ACEOF
6207/* end confdefs.h.  */
6208#include <stdlib.h>
6209#include <stdarg.h>
6210#include <string.h>
6211#include <float.h>
6212
6213int
6214main ()
6215{
6216
6217  ;
6218  return 0;
6219}
6220_ACEOF
6221rm -f conftest.$ac_objext
6222if { (ac_try="$ac_compile"
6223case "(($ac_try" in
6224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225  *) ac_try_echo=$ac_try;;
6226esac
6227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228  (eval "$ac_compile") 2>conftest.er1
6229  ac_status=$?
6230  grep -v '^ *+' conftest.er1 >conftest.err
6231  rm -f conftest.er1
6232  cat conftest.err >&5
6233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234  (exit $ac_status); } && {
6235	 test -z "$ac_cxx_werror_flag" ||
6236	 test ! -s conftest.err
6237       } && test -s conftest.$ac_objext; then
6238  ac_cv_header_stdc=yes
6239else
6240  echo "$as_me: failed program was:" >&5
6241sed 's/^/| /' conftest.$ac_ext >&5
6242
6243	ac_cv_header_stdc=no
6244fi
6245
6246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6247
6248if test $ac_cv_header_stdc = yes; then
6249  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6250  cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h.  */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h.  */
6256#include <string.h>
6257
6258_ACEOF
6259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6260  $EGREP "memchr" >/dev/null 2>&1; then
6261  :
6262else
6263  ac_cv_header_stdc=no
6264fi
6265rm -f conftest*
6266
6267fi
6268
6269if test $ac_cv_header_stdc = yes; then
6270  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6271  cat >conftest.$ac_ext <<_ACEOF
6272/* confdefs.h.  */
6273_ACEOF
6274cat confdefs.h >>conftest.$ac_ext
6275cat >>conftest.$ac_ext <<_ACEOF
6276/* end confdefs.h.  */
6277#include <stdlib.h>
6278
6279_ACEOF
6280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6281  $EGREP "free" >/dev/null 2>&1; then
6282  :
6283else
6284  ac_cv_header_stdc=no
6285fi
6286rm -f conftest*
6287
6288fi
6289
6290if test $ac_cv_header_stdc = yes; then
6291  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6292  if test "$cross_compiling" = yes; then
6293  :
6294else
6295  cat >conftest.$ac_ext <<_ACEOF
6296/* confdefs.h.  */
6297_ACEOF
6298cat confdefs.h >>conftest.$ac_ext
6299cat >>conftest.$ac_ext <<_ACEOF
6300/* end confdefs.h.  */
6301#include <ctype.h>
6302#include <stdlib.h>
6303#if ((' ' & 0x0FF) == 0x020)
6304# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6305# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6306#else
6307# define ISLOWER(c) \
6308		   (('a' <= (c) && (c) <= 'i') \
6309		     || ('j' <= (c) && (c) <= 'r') \
6310		     || ('s' <= (c) && (c) <= 'z'))
6311# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6312#endif
6313
6314#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6315int
6316main ()
6317{
6318  int i;
6319  for (i = 0; i < 256; i++)
6320    if (XOR (islower (i), ISLOWER (i))
6321	|| toupper (i) != TOUPPER (i))
6322      return 2;
6323  return 0;
6324}
6325_ACEOF
6326rm -f conftest$ac_exeext
6327if { (ac_try="$ac_link"
6328case "(($ac_try" in
6329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330  *) ac_try_echo=$ac_try;;
6331esac
6332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333  (eval "$ac_link") 2>&5
6334  ac_status=$?
6335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6337  { (case "(($ac_try" in
6338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339  *) ac_try_echo=$ac_try;;
6340esac
6341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342  (eval "$ac_try") 2>&5
6343  ac_status=$?
6344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345  (exit $ac_status); }; }; then
6346  :
6347else
6348  echo "$as_me: program exited with status $ac_status" >&5
6349echo "$as_me: failed program was:" >&5
6350sed 's/^/| /' conftest.$ac_ext >&5
6351
6352( exit $ac_status )
6353ac_cv_header_stdc=no
6354fi
6355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6356fi
6357
6358
6359fi
6360fi
6361{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6362echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6363if test $ac_cv_header_stdc = yes; then
6364
6365cat >>confdefs.h <<\_ACEOF
6366@%:@define STDC_HEADERS 1
6367_ACEOF
6368
6369fi
6370
6371# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6382		  inttypes.h stdint.h unistd.h
6383do
6384as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6385{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6388  echo $ECHO_N "(cached) $ECHO_C" >&6
6389else
6390  cat >conftest.$ac_ext <<_ACEOF
6391/* confdefs.h.  */
6392_ACEOF
6393cat confdefs.h >>conftest.$ac_ext
6394cat >>conftest.$ac_ext <<_ACEOF
6395/* end confdefs.h.  */
6396$ac_includes_default
6397
6398@%:@include <$ac_header>
6399_ACEOF
6400rm -f conftest.$ac_objext
6401if { (ac_try="$ac_compile"
6402case "(($ac_try" in
6403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404  *) ac_try_echo=$ac_try;;
6405esac
6406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407  (eval "$ac_compile") 2>conftest.er1
6408  ac_status=$?
6409  grep -v '^ *+' conftest.er1 >conftest.err
6410  rm -f conftest.er1
6411  cat conftest.err >&5
6412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413  (exit $ac_status); } && {
6414	 test -z "$ac_cxx_werror_flag" ||
6415	 test ! -s conftest.err
6416       } && test -s conftest.$ac_objext; then
6417  eval "$as_ac_Header=yes"
6418else
6419  echo "$as_me: failed program was:" >&5
6420sed 's/^/| /' conftest.$ac_ext >&5
6421
6422	eval "$as_ac_Header=no"
6423fi
6424
6425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426fi
6427ac_res=`eval echo '${'$as_ac_Header'}'`
6428	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6429echo "${ECHO_T}$ac_res" >&6; }
6430if test `eval echo '${'$as_ac_Header'}'` = yes; then
6431  cat >>confdefs.h <<_ACEOF
6432@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6433_ACEOF
6434
6435fi
6436
6437done
6438
6439
6440{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
6441echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
6442if test "${ac_cv_c_bigendian+set}" = set; then
6443  echo $ECHO_N "(cached) $ECHO_C" >&6
6444else
6445  # See if sys/param.h defines the BYTE_ORDER macro.
6446cat >conftest.$ac_ext <<_ACEOF
6447/* confdefs.h.  */
6448_ACEOF
6449cat confdefs.h >>conftest.$ac_ext
6450cat >>conftest.$ac_ext <<_ACEOF
6451/* end confdefs.h.  */
6452#include <sys/types.h>
6453#include <sys/param.h>
6454
6455int
6456main ()
6457{
6458#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
6459	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
6460 bogus endian macros
6461#endif
6462
6463  ;
6464  return 0;
6465}
6466_ACEOF
6467rm -f conftest.$ac_objext
6468if { (ac_try="$ac_compile"
6469case "(($ac_try" in
6470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471  *) ac_try_echo=$ac_try;;
6472esac
6473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474  (eval "$ac_compile") 2>conftest.er1
6475  ac_status=$?
6476  grep -v '^ *+' conftest.er1 >conftest.err
6477  rm -f conftest.er1
6478  cat conftest.err >&5
6479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480  (exit $ac_status); } && {
6481	 test -z "$ac_cxx_werror_flag" ||
6482	 test ! -s conftest.err
6483       } && test -s conftest.$ac_objext; then
6484  # It does; now see whether it defined to BIG_ENDIAN or not.
6485cat >conftest.$ac_ext <<_ACEOF
6486/* confdefs.h.  */
6487_ACEOF
6488cat confdefs.h >>conftest.$ac_ext
6489cat >>conftest.$ac_ext <<_ACEOF
6490/* end confdefs.h.  */
6491#include <sys/types.h>
6492#include <sys/param.h>
6493
6494int
6495main ()
6496{
6497#if BYTE_ORDER != BIG_ENDIAN
6498 not big endian
6499#endif
6500
6501  ;
6502  return 0;
6503}
6504_ACEOF
6505rm -f conftest.$ac_objext
6506if { (ac_try="$ac_compile"
6507case "(($ac_try" in
6508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509  *) ac_try_echo=$ac_try;;
6510esac
6511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512  (eval "$ac_compile") 2>conftest.er1
6513  ac_status=$?
6514  grep -v '^ *+' conftest.er1 >conftest.err
6515  rm -f conftest.er1
6516  cat conftest.err >&5
6517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518  (exit $ac_status); } && {
6519	 test -z "$ac_cxx_werror_flag" ||
6520	 test ! -s conftest.err
6521       } && test -s conftest.$ac_objext; then
6522  ac_cv_c_bigendian=yes
6523else
6524  echo "$as_me: failed program was:" >&5
6525sed 's/^/| /' conftest.$ac_ext >&5
6526
6527	ac_cv_c_bigendian=no
6528fi
6529
6530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531else
6532  echo "$as_me: failed program was:" >&5
6533sed 's/^/| /' conftest.$ac_ext >&5
6534
6535	# It does not; compile a test program.
6536if test "$cross_compiling" = yes; then
6537  # try to guess the endianness by grepping values into an object file
6538  ac_cv_c_bigendian=unknown
6539  cat >conftest.$ac_ext <<_ACEOF
6540/* confdefs.h.  */
6541_ACEOF
6542cat confdefs.h >>conftest.$ac_ext
6543cat >>conftest.$ac_ext <<_ACEOF
6544/* end confdefs.h.  */
6545short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6546short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6547void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
6548short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6549short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6550void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
6551int
6552main ()
6553{
6554 _ascii (); _ebcdic ();
6555  ;
6556  return 0;
6557}
6558_ACEOF
6559rm -f conftest.$ac_objext
6560if { (ac_try="$ac_compile"
6561case "(($ac_try" in
6562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6563  *) ac_try_echo=$ac_try;;
6564esac
6565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6566  (eval "$ac_compile") 2>conftest.er1
6567  ac_status=$?
6568  grep -v '^ *+' conftest.er1 >conftest.err
6569  rm -f conftest.er1
6570  cat conftest.err >&5
6571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572  (exit $ac_status); } && {
6573	 test -z "$ac_cxx_werror_flag" ||
6574	 test ! -s conftest.err
6575       } && test -s conftest.$ac_objext; then
6576  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
6577  ac_cv_c_bigendian=yes
6578fi
6579if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6580  if test "$ac_cv_c_bigendian" = unknown; then
6581    ac_cv_c_bigendian=no
6582  else
6583    # finding both strings is unlikely to happen, but who knows?
6584    ac_cv_c_bigendian=unknown
6585  fi
6586fi
6587else
6588  echo "$as_me: failed program was:" >&5
6589sed 's/^/| /' conftest.$ac_ext >&5
6590
6591
6592fi
6593
6594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595else
6596  cat >conftest.$ac_ext <<_ACEOF
6597/* confdefs.h.  */
6598_ACEOF
6599cat confdefs.h >>conftest.$ac_ext
6600cat >>conftest.$ac_ext <<_ACEOF
6601/* end confdefs.h.  */
6602$ac_includes_default
6603int
6604main ()
6605{
6606
6607  /* Are we little or big endian?  From Harbison&Steele.  */
6608  union
6609  {
6610    long int l;
6611    char c[sizeof (long int)];
6612  } u;
6613  u.l = 1;
6614  return u.c[sizeof (long int) - 1] == 1;
6615
6616  ;
6617  return 0;
6618}
6619_ACEOF
6620rm -f conftest$ac_exeext
6621if { (ac_try="$ac_link"
6622case "(($ac_try" in
6623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624  *) ac_try_echo=$ac_try;;
6625esac
6626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6627  (eval "$ac_link") 2>&5
6628  ac_status=$?
6629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6631  { (case "(($ac_try" in
6632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6633  *) ac_try_echo=$ac_try;;
6634esac
6635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6636  (eval "$ac_try") 2>&5
6637  ac_status=$?
6638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639  (exit $ac_status); }; }; then
6640  ac_cv_c_bigendian=no
6641else
6642  echo "$as_me: program exited with status $ac_status" >&5
6643echo "$as_me: failed program was:" >&5
6644sed 's/^/| /' conftest.$ac_ext >&5
6645
6646( exit $ac_status )
6647ac_cv_c_bigendian=yes
6648fi
6649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6650fi
6651
6652
6653fi
6654
6655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656fi
6657{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
6658echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
6659case $ac_cv_c_bigendian in
6660  yes)
6661
6662cat >>confdefs.h <<\_ACEOF
6663@%:@define WORDS_BIGENDIAN 1
6664_ACEOF
6665 ;;
6666  no)
6667     ;;
6668  *)
6669    { { echo "$as_me:$LINENO: error: unknown endianness
6670presetting ac_cv_c_bigendian=no (or yes) will help" >&5
6671echo "$as_me: error: unknown endianness
6672presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
6673   { (exit 1); exit 1; }; } ;;
6674esac
6675
6676{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6677echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6678if test "${ac_cv_header_stdc+set}" = set; then
6679  echo $ECHO_N "(cached) $ECHO_C" >&6
6680else
6681  cat >conftest.$ac_ext <<_ACEOF
6682/* confdefs.h.  */
6683_ACEOF
6684cat confdefs.h >>conftest.$ac_ext
6685cat >>conftest.$ac_ext <<_ACEOF
6686/* end confdefs.h.  */
6687#include <stdlib.h>
6688#include <stdarg.h>
6689#include <string.h>
6690#include <float.h>
6691
6692int
6693main ()
6694{
6695
6696  ;
6697  return 0;
6698}
6699_ACEOF
6700rm -f conftest.$ac_objext
6701if { (ac_try="$ac_compile"
6702case "(($ac_try" in
6703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704  *) ac_try_echo=$ac_try;;
6705esac
6706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6707  (eval "$ac_compile") 2>conftest.er1
6708  ac_status=$?
6709  grep -v '^ *+' conftest.er1 >conftest.err
6710  rm -f conftest.er1
6711  cat conftest.err >&5
6712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713  (exit $ac_status); } && {
6714	 test -z "$ac_cxx_werror_flag" ||
6715	 test ! -s conftest.err
6716       } && test -s conftest.$ac_objext; then
6717  ac_cv_header_stdc=yes
6718else
6719  echo "$as_me: failed program was:" >&5
6720sed 's/^/| /' conftest.$ac_ext >&5
6721
6722	ac_cv_header_stdc=no
6723fi
6724
6725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726
6727if test $ac_cv_header_stdc = yes; then
6728  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6729  cat >conftest.$ac_ext <<_ACEOF
6730/* confdefs.h.  */
6731_ACEOF
6732cat confdefs.h >>conftest.$ac_ext
6733cat >>conftest.$ac_ext <<_ACEOF
6734/* end confdefs.h.  */
6735#include <string.h>
6736
6737_ACEOF
6738if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6739  $EGREP "memchr" >/dev/null 2>&1; then
6740  :
6741else
6742  ac_cv_header_stdc=no
6743fi
6744rm -f conftest*
6745
6746fi
6747
6748if test $ac_cv_header_stdc = yes; then
6749  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6750  cat >conftest.$ac_ext <<_ACEOF
6751/* confdefs.h.  */
6752_ACEOF
6753cat confdefs.h >>conftest.$ac_ext
6754cat >>conftest.$ac_ext <<_ACEOF
6755/* end confdefs.h.  */
6756#include <stdlib.h>
6757
6758_ACEOF
6759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6760  $EGREP "free" >/dev/null 2>&1; then
6761  :
6762else
6763  ac_cv_header_stdc=no
6764fi
6765rm -f conftest*
6766
6767fi
6768
6769if test $ac_cv_header_stdc = yes; then
6770  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6771  if test "$cross_compiling" = yes; then
6772  :
6773else
6774  cat >conftest.$ac_ext <<_ACEOF
6775/* confdefs.h.  */
6776_ACEOF
6777cat confdefs.h >>conftest.$ac_ext
6778cat >>conftest.$ac_ext <<_ACEOF
6779/* end confdefs.h.  */
6780#include <ctype.h>
6781#include <stdlib.h>
6782#if ((' ' & 0x0FF) == 0x020)
6783# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6784# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6785#else
6786# define ISLOWER(c) \
6787		   (('a' <= (c) && (c) <= 'i') \
6788		     || ('j' <= (c) && (c) <= 'r') \
6789		     || ('s' <= (c) && (c) <= 'z'))
6790# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6791#endif
6792
6793#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6794int
6795main ()
6796{
6797  int i;
6798  for (i = 0; i < 256; i++)
6799    if (XOR (islower (i), ISLOWER (i))
6800	|| toupper (i) != TOUPPER (i))
6801      return 2;
6802  return 0;
6803}
6804_ACEOF
6805rm -f conftest$ac_exeext
6806if { (ac_try="$ac_link"
6807case "(($ac_try" in
6808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809  *) ac_try_echo=$ac_try;;
6810esac
6811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812  (eval "$ac_link") 2>&5
6813  ac_status=$?
6814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6816  { (case "(($ac_try" in
6817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818  *) ac_try_echo=$ac_try;;
6819esac
6820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821  (eval "$ac_try") 2>&5
6822  ac_status=$?
6823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824  (exit $ac_status); }; }; then
6825  :
6826else
6827  echo "$as_me: program exited with status $ac_status" >&5
6828echo "$as_me: failed program was:" >&5
6829sed 's/^/| /' conftest.$ac_ext >&5
6830
6831( exit $ac_status )
6832ac_cv_header_stdc=no
6833fi
6834rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6835fi
6836
6837
6838fi
6839fi
6840{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6841echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6842if test $ac_cv_header_stdc = yes; then
6843
6844cat >>confdefs.h <<\_ACEOF
6845@%:@define STDC_HEADERS 1
6846_ACEOF
6847
6848fi
6849
6850
6851
6852for ac_header in stdint.h inttypes.h
6853do
6854as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6856  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6858if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6859  echo $ECHO_N "(cached) $ECHO_C" >&6
6860fi
6861ac_res=`eval echo '${'$as_ac_Header'}'`
6862	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6863echo "${ECHO_T}$ac_res" >&6; }
6864else
6865  # Is the header compilable?
6866{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6867echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6868cat >conftest.$ac_ext <<_ACEOF
6869/* confdefs.h.  */
6870_ACEOF
6871cat confdefs.h >>conftest.$ac_ext
6872cat >>conftest.$ac_ext <<_ACEOF
6873/* end confdefs.h.  */
6874$ac_includes_default
6875@%:@include <$ac_header>
6876_ACEOF
6877rm -f conftest.$ac_objext
6878if { (ac_try="$ac_compile"
6879case "(($ac_try" in
6880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6881  *) ac_try_echo=$ac_try;;
6882esac
6883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6884  (eval "$ac_compile") 2>conftest.er1
6885  ac_status=$?
6886  grep -v '^ *+' conftest.er1 >conftest.err
6887  rm -f conftest.er1
6888  cat conftest.err >&5
6889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890  (exit $ac_status); } && {
6891	 test -z "$ac_cxx_werror_flag" ||
6892	 test ! -s conftest.err
6893       } && test -s conftest.$ac_objext; then
6894  ac_header_compiler=yes
6895else
6896  echo "$as_me: failed program was:" >&5
6897sed 's/^/| /' conftest.$ac_ext >&5
6898
6899	ac_header_compiler=no
6900fi
6901
6902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6904echo "${ECHO_T}$ac_header_compiler" >&6; }
6905
6906# Is the header present?
6907{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6908echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6909cat >conftest.$ac_ext <<_ACEOF
6910/* confdefs.h.  */
6911_ACEOF
6912cat confdefs.h >>conftest.$ac_ext
6913cat >>conftest.$ac_ext <<_ACEOF
6914/* end confdefs.h.  */
6915@%:@include <$ac_header>
6916_ACEOF
6917if { (ac_try="$ac_cpp conftest.$ac_ext"
6918case "(($ac_try" in
6919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6920  *) ac_try_echo=$ac_try;;
6921esac
6922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6923  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6924  ac_status=$?
6925  grep -v '^ *+' conftest.er1 >conftest.err
6926  rm -f conftest.er1
6927  cat conftest.err >&5
6928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929  (exit $ac_status); } >/dev/null && {
6930	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6931	 test ! -s conftest.err
6932       }; then
6933  ac_header_preproc=yes
6934else
6935  echo "$as_me: failed program was:" >&5
6936sed 's/^/| /' conftest.$ac_ext >&5
6937
6938  ac_header_preproc=no
6939fi
6940
6941rm -f conftest.err conftest.$ac_ext
6942{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6943echo "${ECHO_T}$ac_header_preproc" >&6; }
6944
6945# So?  What about this header?
6946case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6947  yes:no: )
6948    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6949echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6950    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6951echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6952    ac_header_preproc=yes
6953    ;;
6954  no:yes:* )
6955    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6956echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6957    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6958echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6959    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6960echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6961    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6962echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6963    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6965    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6966echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6967
6968    ;;
6969esac
6970{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6973  echo $ECHO_N "(cached) $ECHO_C" >&6
6974else
6975  eval "$as_ac_Header=\$ac_header_preproc"
6976fi
6977ac_res=`eval echo '${'$as_ac_Header'}'`
6978	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6979echo "${ECHO_T}$ac_res" >&6; }
6980
6981fi
6982if test `eval echo '${'$as_ac_Header'}'` = yes; then
6983  cat >>confdefs.h <<_ACEOF
6984@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6985_ACEOF
6986
6987fi
6988
6989done
6990
6991
6992for ac_header in mathf.h
6993do
6994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6995if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6996  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6999  echo $ECHO_N "(cached) $ECHO_C" >&6
7000fi
7001ac_res=`eval echo '${'$as_ac_Header'}'`
7002	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7003echo "${ECHO_T}$ac_res" >&6; }
7004else
7005  # Is the header compilable?
7006{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7007echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7008cat >conftest.$ac_ext <<_ACEOF
7009/* confdefs.h.  */
7010_ACEOF
7011cat confdefs.h >>conftest.$ac_ext
7012cat >>conftest.$ac_ext <<_ACEOF
7013/* end confdefs.h.  */
7014$ac_includes_default
7015@%:@include <$ac_header>
7016_ACEOF
7017rm -f conftest.$ac_objext
7018if { (ac_try="$ac_compile"
7019case "(($ac_try" in
7020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7021  *) ac_try_echo=$ac_try;;
7022esac
7023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7024  (eval "$ac_compile") 2>conftest.er1
7025  ac_status=$?
7026  grep -v '^ *+' conftest.er1 >conftest.err
7027  rm -f conftest.er1
7028  cat conftest.err >&5
7029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030  (exit $ac_status); } && {
7031	 test -z "$ac_cxx_werror_flag" ||
7032	 test ! -s conftest.err
7033       } && test -s conftest.$ac_objext; then
7034  ac_header_compiler=yes
7035else
7036  echo "$as_me: failed program was:" >&5
7037sed 's/^/| /' conftest.$ac_ext >&5
7038
7039	ac_header_compiler=no
7040fi
7041
7042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7043{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7044echo "${ECHO_T}$ac_header_compiler" >&6; }
7045
7046# Is the header present?
7047{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7048echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7049cat >conftest.$ac_ext <<_ACEOF
7050/* confdefs.h.  */
7051_ACEOF
7052cat confdefs.h >>conftest.$ac_ext
7053cat >>conftest.$ac_ext <<_ACEOF
7054/* end confdefs.h.  */
7055@%:@include <$ac_header>
7056_ACEOF
7057if { (ac_try="$ac_cpp conftest.$ac_ext"
7058case "(($ac_try" in
7059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060  *) ac_try_echo=$ac_try;;
7061esac
7062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7064  ac_status=$?
7065  grep -v '^ *+' conftest.er1 >conftest.err
7066  rm -f conftest.er1
7067  cat conftest.err >&5
7068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069  (exit $ac_status); } >/dev/null && {
7070	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7071	 test ! -s conftest.err
7072       }; then
7073  ac_header_preproc=yes
7074else
7075  echo "$as_me: failed program was:" >&5
7076sed 's/^/| /' conftest.$ac_ext >&5
7077
7078  ac_header_preproc=no
7079fi
7080
7081rm -f conftest.err conftest.$ac_ext
7082{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7083echo "${ECHO_T}$ac_header_preproc" >&6; }
7084
7085# So?  What about this header?
7086case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7087  yes:no: )
7088    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7089echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7090    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7091echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7092    ac_header_preproc=yes
7093    ;;
7094  no:yes:* )
7095    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7096echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7097    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7098echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7099    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7100echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7101    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7102echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7103    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7104echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7105    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7106echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7107
7108    ;;
7109esac
7110{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7113  echo $ECHO_N "(cached) $ECHO_C" >&6
7114else
7115  eval "$as_ac_Header=\$ac_header_preproc"
7116fi
7117ac_res=`eval echo '${'$as_ac_Header'}'`
7118	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7119echo "${ECHO_T}$ac_res" >&6; }
7120
7121fi
7122if test `eval echo '${'$as_ac_Header'}'` = yes; then
7123  cat >>confdefs.h <<_ACEOF
7124@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7125_ACEOF
7126
7127fi
7128
7129done
7130
7131
7132for ac_header in float.h
7133do
7134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7136  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7137echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7138if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7139  echo $ECHO_N "(cached) $ECHO_C" >&6
7140fi
7141ac_res=`eval echo '${'$as_ac_Header'}'`
7142	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7143echo "${ECHO_T}$ac_res" >&6; }
7144else
7145  # Is the header compilable?
7146{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7147echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7148cat >conftest.$ac_ext <<_ACEOF
7149/* confdefs.h.  */
7150_ACEOF
7151cat confdefs.h >>conftest.$ac_ext
7152cat >>conftest.$ac_ext <<_ACEOF
7153/* end confdefs.h.  */
7154$ac_includes_default
7155@%:@include <$ac_header>
7156_ACEOF
7157rm -f conftest.$ac_objext
7158if { (ac_try="$ac_compile"
7159case "(($ac_try" in
7160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7161  *) ac_try_echo=$ac_try;;
7162esac
7163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7164  (eval "$ac_compile") 2>conftest.er1
7165  ac_status=$?
7166  grep -v '^ *+' conftest.er1 >conftest.err
7167  rm -f conftest.er1
7168  cat conftest.err >&5
7169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170  (exit $ac_status); } && {
7171	 test -z "$ac_cxx_werror_flag" ||
7172	 test ! -s conftest.err
7173       } && test -s conftest.$ac_objext; then
7174  ac_header_compiler=yes
7175else
7176  echo "$as_me: failed program was:" >&5
7177sed 's/^/| /' conftest.$ac_ext >&5
7178
7179	ac_header_compiler=no
7180fi
7181
7182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7184echo "${ECHO_T}$ac_header_compiler" >&6; }
7185
7186# Is the header present?
7187{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7188echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7189cat >conftest.$ac_ext <<_ACEOF
7190/* confdefs.h.  */
7191_ACEOF
7192cat confdefs.h >>conftest.$ac_ext
7193cat >>conftest.$ac_ext <<_ACEOF
7194/* end confdefs.h.  */
7195@%:@include <$ac_header>
7196_ACEOF
7197if { (ac_try="$ac_cpp conftest.$ac_ext"
7198case "(($ac_try" in
7199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200  *) ac_try_echo=$ac_try;;
7201esac
7202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7204  ac_status=$?
7205  grep -v '^ *+' conftest.er1 >conftest.err
7206  rm -f conftest.er1
7207  cat conftest.err >&5
7208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209  (exit $ac_status); } >/dev/null && {
7210	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7211	 test ! -s conftest.err
7212       }; then
7213  ac_header_preproc=yes
7214else
7215  echo "$as_me: failed program was:" >&5
7216sed 's/^/| /' conftest.$ac_ext >&5
7217
7218  ac_header_preproc=no
7219fi
7220
7221rm -f conftest.err conftest.$ac_ext
7222{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7223echo "${ECHO_T}$ac_header_preproc" >&6; }
7224
7225# So?  What about this header?
7226case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7227  yes:no: )
7228    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7229echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7230    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7231echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7232    ac_header_preproc=yes
7233    ;;
7234  no:yes:* )
7235    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7237    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7238echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7239    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7240echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7241    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7242echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7243    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7245    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7246echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7247
7248    ;;
7249esac
7250{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7252if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7253  echo $ECHO_N "(cached) $ECHO_C" >&6
7254else
7255  eval "$as_ac_Header=\$ac_header_preproc"
7256fi
7257ac_res=`eval echo '${'$as_ac_Header'}'`
7258	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7259echo "${ECHO_T}$ac_res" >&6; }
7260
7261fi
7262if test `eval echo '${'$as_ac_Header'}'` = yes; then
7263  cat >>confdefs.h <<_ACEOF
7264@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7265_ACEOF
7266
7267fi
7268
7269done
7270
7271
7272
7273for ac_func in strchr memcpy
7274do
7275as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7276{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7277echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7278if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7279  echo $ECHO_N "(cached) $ECHO_C" >&6
7280else
7281  cat >conftest.$ac_ext <<_ACEOF
7282/* confdefs.h.  */
7283_ACEOF
7284cat confdefs.h >>conftest.$ac_ext
7285cat >>conftest.$ac_ext <<_ACEOF
7286/* end confdefs.h.  */
7287/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7288   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7289#define $ac_func innocuous_$ac_func
7290
7291/* System header to define __stub macros and hopefully few prototypes,
7292    which can conflict with char $ac_func (); below.
7293    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7294    <limits.h> exists even on freestanding compilers.  */
7295
7296#ifdef __STDC__
7297# include <limits.h>
7298#else
7299# include <assert.h>
7300#endif
7301
7302#undef $ac_func
7303
7304/* Override any GCC internal prototype to avoid an error.
7305   Use char because int might match the return type of a GCC
7306   builtin and then its argument prototype would still apply.  */
7307#ifdef __cplusplus
7308extern "C"
7309#endif
7310char $ac_func ();
7311/* The GNU C library defines this for functions which it implements
7312    to always fail with ENOSYS.  Some functions are actually named
7313    something starting with __ and the normal name is an alias.  */
7314#if defined __stub_$ac_func || defined __stub___$ac_func
7315choke me
7316#endif
7317
7318int
7319main ()
7320{
7321return $ac_func ();
7322  ;
7323  return 0;
7324}
7325_ACEOF
7326rm -f conftest.$ac_objext conftest$ac_exeext
7327if { (ac_try="$ac_link"
7328case "(($ac_try" in
7329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330  *) ac_try_echo=$ac_try;;
7331esac
7332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7333  (eval "$ac_link") 2>conftest.er1
7334  ac_status=$?
7335  grep -v '^ *+' conftest.er1 >conftest.err
7336  rm -f conftest.er1
7337  cat conftest.err >&5
7338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339  (exit $ac_status); } && {
7340	 test -z "$ac_cxx_werror_flag" ||
7341	 test ! -s conftest.err
7342       } && test -s conftest$ac_exeext &&
7343       $as_test_x conftest$ac_exeext; then
7344  eval "$as_ac_var=yes"
7345else
7346  echo "$as_me: failed program was:" >&5
7347sed 's/^/| /' conftest.$ac_ext >&5
7348
7349	eval "$as_ac_var=no"
7350fi
7351
7352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7353      conftest$ac_exeext conftest.$ac_ext
7354fi
7355ac_res=`eval echo '${'$as_ac_var'}'`
7356	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7357echo "${ECHO_T}$ac_res" >&6; }
7358if test `eval echo '${'$as_ac_var'}'` = yes; then
7359  cat >>confdefs.h <<_ACEOF
7360@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7361_ACEOF
7362
7363fi
7364done
7365
7366
7367for ac_header in sys/time.h
7368do
7369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7370if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7371  { echo "$as_me:$LINENO: checking for $ac_header" >&5
7372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7374  echo $ECHO_N "(cached) $ECHO_C" >&6
7375fi
7376ac_res=`eval echo '${'$as_ac_Header'}'`
7377	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7378echo "${ECHO_T}$ac_res" >&6; }
7379else
7380  # Is the header compilable?
7381{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7382echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7383cat >conftest.$ac_ext <<_ACEOF
7384/* confdefs.h.  */
7385_ACEOF
7386cat confdefs.h >>conftest.$ac_ext
7387cat >>conftest.$ac_ext <<_ACEOF
7388/* end confdefs.h.  */
7389$ac_includes_default
7390@%:@include <$ac_header>
7391_ACEOF
7392rm -f conftest.$ac_objext
7393if { (ac_try="$ac_compile"
7394case "(($ac_try" in
7395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396  *) ac_try_echo=$ac_try;;
7397esac
7398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399  (eval "$ac_compile") 2>conftest.er1
7400  ac_status=$?
7401  grep -v '^ *+' conftest.er1 >conftest.err
7402  rm -f conftest.er1
7403  cat conftest.err >&5
7404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405  (exit $ac_status); } && {
7406	 test -z "$ac_cxx_werror_flag" ||
7407	 test ! -s conftest.err
7408       } && test -s conftest.$ac_objext; then
7409  ac_header_compiler=yes
7410else
7411  echo "$as_me: failed program was:" >&5
7412sed 's/^/| /' conftest.$ac_ext >&5
7413
7414	ac_header_compiler=no
7415fi
7416
7417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7419echo "${ECHO_T}$ac_header_compiler" >&6; }
7420
7421# Is the header present?
7422{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7423echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7424cat >conftest.$ac_ext <<_ACEOF
7425/* confdefs.h.  */
7426_ACEOF
7427cat confdefs.h >>conftest.$ac_ext
7428cat >>conftest.$ac_ext <<_ACEOF
7429/* end confdefs.h.  */
7430@%:@include <$ac_header>
7431_ACEOF
7432if { (ac_try="$ac_cpp conftest.$ac_ext"
7433case "(($ac_try" in
7434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435  *) ac_try_echo=$ac_try;;
7436esac
7437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7439  ac_status=$?
7440  grep -v '^ *+' conftest.er1 >conftest.err
7441  rm -f conftest.er1
7442  cat conftest.err >&5
7443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444  (exit $ac_status); } >/dev/null && {
7445	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7446	 test ! -s conftest.err
7447       }; then
7448  ac_header_preproc=yes
7449else
7450  echo "$as_me: failed program was:" >&5
7451sed 's/^/| /' conftest.$ac_ext >&5
7452
7453  ac_header_preproc=no
7454fi
7455
7456rm -f conftest.err conftest.$ac_ext
7457{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7458echo "${ECHO_T}$ac_header_preproc" >&6; }
7459
7460# So?  What about this header?
7461case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7462  yes:no: )
7463    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7464echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7465    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7466echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7467    ac_header_preproc=yes
7468    ;;
7469  no:yes:* )
7470    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7471echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7472    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7473echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7474    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7475echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7476    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7477echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7478    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7479echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7480    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7481echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7482
7483    ;;
7484esac
7485{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7487if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7488  echo $ECHO_N "(cached) $ECHO_C" >&6
7489else
7490  eval "$as_ac_Header=\$ac_header_preproc"
7491fi
7492ac_res=`eval echo '${'$as_ac_Header'}'`
7493	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7494echo "${ECHO_T}$ac_res" >&6; }
7495
7496fi
7497if test `eval echo '${'$as_ac_Header'}'` = yes; then
7498  cat >>confdefs.h <<_ACEOF
7499@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7500_ACEOF
7501
7502fi
7503
7504done
7505
7506{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7507echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7508if test "${ac_cv_header_time+set}" = set; then
7509  echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511  cat >conftest.$ac_ext <<_ACEOF
7512/* confdefs.h.  */
7513_ACEOF
7514cat confdefs.h >>conftest.$ac_ext
7515cat >>conftest.$ac_ext <<_ACEOF
7516/* end confdefs.h.  */
7517#include <sys/types.h>
7518#include <sys/time.h>
7519#include <time.h>
7520
7521int
7522main ()
7523{
7524if ((struct tm *) 0)
7525return 0;
7526  ;
7527  return 0;
7528}
7529_ACEOF
7530rm -f conftest.$ac_objext
7531if { (ac_try="$ac_compile"
7532case "(($ac_try" in
7533  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534  *) ac_try_echo=$ac_try;;
7535esac
7536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7537  (eval "$ac_compile") 2>conftest.er1
7538  ac_status=$?
7539  grep -v '^ *+' conftest.er1 >conftest.err
7540  rm -f conftest.er1
7541  cat conftest.err >&5
7542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543  (exit $ac_status); } && {
7544	 test -z "$ac_cxx_werror_flag" ||
7545	 test ! -s conftest.err
7546       } && test -s conftest.$ac_objext; then
7547  ac_cv_header_time=yes
7548else
7549  echo "$as_me: failed program was:" >&5
7550sed 's/^/| /' conftest.$ac_ext >&5
7551
7552	ac_cv_header_time=no
7553fi
7554
7555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7556fi
7557{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7558echo "${ECHO_T}$ac_cv_header_time" >&6; }
7559if test $ac_cv_header_time = yes; then
7560
7561cat >>confdefs.h <<\_ACEOF
7562@%:@define TIME_WITH_SYS_TIME 1
7563_ACEOF
7564
7565fi
7566
7567{ echo "$as_me:$LINENO: checking for int" >&5
7568echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7569if test "${ac_cv_type_int+set}" = set; then
7570  echo $ECHO_N "(cached) $ECHO_C" >&6
7571else
7572  cat >conftest.$ac_ext <<_ACEOF
7573/* confdefs.h.  */
7574_ACEOF
7575cat confdefs.h >>conftest.$ac_ext
7576cat >>conftest.$ac_ext <<_ACEOF
7577/* end confdefs.h.  */
7578$ac_includes_default
7579typedef int ac__type_new_;
7580int
7581main ()
7582{
7583if ((ac__type_new_ *) 0)
7584  return 0;
7585if (sizeof (ac__type_new_))
7586  return 0;
7587  ;
7588  return 0;
7589}
7590_ACEOF
7591rm -f conftest.$ac_objext
7592if { (ac_try="$ac_compile"
7593case "(($ac_try" in
7594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595  *) ac_try_echo=$ac_try;;
7596esac
7597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7598  (eval "$ac_compile") 2>conftest.er1
7599  ac_status=$?
7600  grep -v '^ *+' conftest.er1 >conftest.err
7601  rm -f conftest.er1
7602  cat conftest.err >&5
7603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604  (exit $ac_status); } && {
7605	 test -z "$ac_cxx_werror_flag" ||
7606	 test ! -s conftest.err
7607       } && test -s conftest.$ac_objext; then
7608  ac_cv_type_int=yes
7609else
7610  echo "$as_me: failed program was:" >&5
7611sed 's/^/| /' conftest.$ac_ext >&5
7612
7613	ac_cv_type_int=no
7614fi
7615
7616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617fi
7618{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7619echo "${ECHO_T}$ac_cv_type_int" >&6; }
7620
7621# The cast to long int works around a bug in the HP C Compiler
7622# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7623# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7624# This bug is HP SR number 8606223364.
7625{ echo "$as_me:$LINENO: checking size of int" >&5
7626echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
7627if test "${ac_cv_sizeof_int+set}" = set; then
7628  echo $ECHO_N "(cached) $ECHO_C" >&6
7629else
7630  if test "$cross_compiling" = yes; then
7631  # Depending upon the size, compute the lo and hi bounds.
7632cat >conftest.$ac_ext <<_ACEOF
7633/* confdefs.h.  */
7634_ACEOF
7635cat confdefs.h >>conftest.$ac_ext
7636cat >>conftest.$ac_ext <<_ACEOF
7637/* end confdefs.h.  */
7638$ac_includes_default
7639   typedef int ac__type_sizeof_;
7640int
7641main ()
7642{
7643static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
7644test_array @<:@0@:>@ = 0
7645
7646  ;
7647  return 0;
7648}
7649_ACEOF
7650rm -f conftest.$ac_objext
7651if { (ac_try="$ac_compile"
7652case "(($ac_try" in
7653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654  *) ac_try_echo=$ac_try;;
7655esac
7656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657  (eval "$ac_compile") 2>conftest.er1
7658  ac_status=$?
7659  grep -v '^ *+' conftest.er1 >conftest.err
7660  rm -f conftest.er1
7661  cat conftest.err >&5
7662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663  (exit $ac_status); } && {
7664	 test -z "$ac_cxx_werror_flag" ||
7665	 test ! -s conftest.err
7666       } && test -s conftest.$ac_objext; then
7667  ac_lo=0 ac_mid=0
7668  while :; do
7669    cat >conftest.$ac_ext <<_ACEOF
7670/* confdefs.h.  */
7671_ACEOF
7672cat confdefs.h >>conftest.$ac_ext
7673cat >>conftest.$ac_ext <<_ACEOF
7674/* end confdefs.h.  */
7675$ac_includes_default
7676   typedef int ac__type_sizeof_;
7677int
7678main ()
7679{
7680static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
7681test_array @<:@0@:>@ = 0
7682
7683  ;
7684  return 0;
7685}
7686_ACEOF
7687rm -f conftest.$ac_objext
7688if { (ac_try="$ac_compile"
7689case "(($ac_try" in
7690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691  *) ac_try_echo=$ac_try;;
7692esac
7693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7694  (eval "$ac_compile") 2>conftest.er1
7695  ac_status=$?
7696  grep -v '^ *+' conftest.er1 >conftest.err
7697  rm -f conftest.er1
7698  cat conftest.err >&5
7699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700  (exit $ac_status); } && {
7701	 test -z "$ac_cxx_werror_flag" ||
7702	 test ! -s conftest.err
7703       } && test -s conftest.$ac_objext; then
7704  ac_hi=$ac_mid; break
7705else
7706  echo "$as_me: failed program was:" >&5
7707sed 's/^/| /' conftest.$ac_ext >&5
7708
7709	ac_lo=`expr $ac_mid + 1`
7710			if test $ac_lo -le $ac_mid; then
7711			  ac_lo= ac_hi=
7712			  break
7713			fi
7714			ac_mid=`expr 2 '*' $ac_mid + 1`
7715fi
7716
7717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718  done
7719else
7720  echo "$as_me: failed program was:" >&5
7721sed 's/^/| /' conftest.$ac_ext >&5
7722
7723	cat >conftest.$ac_ext <<_ACEOF
7724/* confdefs.h.  */
7725_ACEOF
7726cat confdefs.h >>conftest.$ac_ext
7727cat >>conftest.$ac_ext <<_ACEOF
7728/* end confdefs.h.  */
7729$ac_includes_default
7730   typedef int ac__type_sizeof_;
7731int
7732main ()
7733{
7734static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
7735test_array @<:@0@:>@ = 0
7736
7737  ;
7738  return 0;
7739}
7740_ACEOF
7741rm -f conftest.$ac_objext
7742if { (ac_try="$ac_compile"
7743case "(($ac_try" in
7744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7745  *) ac_try_echo=$ac_try;;
7746esac
7747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7748  (eval "$ac_compile") 2>conftest.er1
7749  ac_status=$?
7750  grep -v '^ *+' conftest.er1 >conftest.err
7751  rm -f conftest.er1
7752  cat conftest.err >&5
7753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754  (exit $ac_status); } && {
7755	 test -z "$ac_cxx_werror_flag" ||
7756	 test ! -s conftest.err
7757       } && test -s conftest.$ac_objext; then
7758  ac_hi=-1 ac_mid=-1
7759  while :; do
7760    cat >conftest.$ac_ext <<_ACEOF
7761/* confdefs.h.  */
7762_ACEOF
7763cat confdefs.h >>conftest.$ac_ext
7764cat >>conftest.$ac_ext <<_ACEOF
7765/* end confdefs.h.  */
7766$ac_includes_default
7767   typedef int ac__type_sizeof_;
7768int
7769main ()
7770{
7771static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
7772test_array @<:@0@:>@ = 0
7773
7774  ;
7775  return 0;
7776}
7777_ACEOF
7778rm -f conftest.$ac_objext
7779if { (ac_try="$ac_compile"
7780case "(($ac_try" in
7781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782  *) ac_try_echo=$ac_try;;
7783esac
7784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785  (eval "$ac_compile") 2>conftest.er1
7786  ac_status=$?
7787  grep -v '^ *+' conftest.er1 >conftest.err
7788  rm -f conftest.er1
7789  cat conftest.err >&5
7790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791  (exit $ac_status); } && {
7792	 test -z "$ac_cxx_werror_flag" ||
7793	 test ! -s conftest.err
7794       } && test -s conftest.$ac_objext; then
7795  ac_lo=$ac_mid; break
7796else
7797  echo "$as_me: failed program was:" >&5
7798sed 's/^/| /' conftest.$ac_ext >&5
7799
7800	ac_hi=`expr '(' $ac_mid ')' - 1`
7801			if test $ac_mid -le $ac_hi; then
7802			  ac_lo= ac_hi=
7803			  break
7804			fi
7805			ac_mid=`expr 2 '*' $ac_mid`
7806fi
7807
7808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809  done
7810else
7811  echo "$as_me: failed program was:" >&5
7812sed 's/^/| /' conftest.$ac_ext >&5
7813
7814	ac_lo= ac_hi=
7815fi
7816
7817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818fi
7819
7820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821# Binary search between lo and hi bounds.
7822while test "x$ac_lo" != "x$ac_hi"; do
7823  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7824  cat >conftest.$ac_ext <<_ACEOF
7825/* confdefs.h.  */
7826_ACEOF
7827cat confdefs.h >>conftest.$ac_ext
7828cat >>conftest.$ac_ext <<_ACEOF
7829/* end confdefs.h.  */
7830$ac_includes_default
7831   typedef int ac__type_sizeof_;
7832int
7833main ()
7834{
7835static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
7836test_array @<:@0@:>@ = 0
7837
7838  ;
7839  return 0;
7840}
7841_ACEOF
7842rm -f conftest.$ac_objext
7843if { (ac_try="$ac_compile"
7844case "(($ac_try" in
7845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846  *) ac_try_echo=$ac_try;;
7847esac
7848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849  (eval "$ac_compile") 2>conftest.er1
7850  ac_status=$?
7851  grep -v '^ *+' conftest.er1 >conftest.err
7852  rm -f conftest.er1
7853  cat conftest.err >&5
7854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855  (exit $ac_status); } && {
7856	 test -z "$ac_cxx_werror_flag" ||
7857	 test ! -s conftest.err
7858       } && test -s conftest.$ac_objext; then
7859  ac_hi=$ac_mid
7860else
7861  echo "$as_me: failed program was:" >&5
7862sed 's/^/| /' conftest.$ac_ext >&5
7863
7864	ac_lo=`expr '(' $ac_mid ')' + 1`
7865fi
7866
7867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868done
7869case $ac_lo in
7870?*) ac_cv_sizeof_int=$ac_lo;;
7871'') if test "$ac_cv_type_int" = yes; then
7872     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7873See \`config.log' for more details." >&5
7874echo "$as_me: error: cannot compute sizeof (int)
7875See \`config.log' for more details." >&2;}
7876   { (exit 77); exit 77; }; }
7877   else
7878     ac_cv_sizeof_int=0
7879   fi ;;
7880esac
7881else
7882  cat >conftest.$ac_ext <<_ACEOF
7883/* confdefs.h.  */
7884_ACEOF
7885cat confdefs.h >>conftest.$ac_ext
7886cat >>conftest.$ac_ext <<_ACEOF
7887/* end confdefs.h.  */
7888$ac_includes_default
7889   typedef int ac__type_sizeof_;
7890static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7891static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7892@%:@include <stdio.h>
7893@%:@include <stdlib.h>
7894int
7895main ()
7896{
7897
7898  FILE *f = fopen ("conftest.val", "w");
7899  if (! f)
7900    return 1;
7901  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7902    {
7903      long int i = longval ();
7904      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7905	return 1;
7906      fprintf (f, "%ld\n", i);
7907    }
7908  else
7909    {
7910      unsigned long int i = ulongval ();
7911      if (i != ((long int) (sizeof (ac__type_sizeof_))))
7912	return 1;
7913      fprintf (f, "%lu\n", i);
7914    }
7915  return ferror (f) || fclose (f) != 0;
7916
7917  ;
7918  return 0;
7919}
7920_ACEOF
7921rm -f conftest$ac_exeext
7922if { (ac_try="$ac_link"
7923case "(($ac_try" in
7924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925  *) ac_try_echo=$ac_try;;
7926esac
7927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928  (eval "$ac_link") 2>&5
7929  ac_status=$?
7930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7932  { (case "(($ac_try" in
7933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934  *) ac_try_echo=$ac_try;;
7935esac
7936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937  (eval "$ac_try") 2>&5
7938  ac_status=$?
7939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940  (exit $ac_status); }; }; then
7941  ac_cv_sizeof_int=`cat conftest.val`
7942else
7943  echo "$as_me: program exited with status $ac_status" >&5
7944echo "$as_me: failed program was:" >&5
7945sed 's/^/| /' conftest.$ac_ext >&5
7946
7947( exit $ac_status )
7948if test "$ac_cv_type_int" = yes; then
7949     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
7950See \`config.log' for more details." >&5
7951echo "$as_me: error: cannot compute sizeof (int)
7952See \`config.log' for more details." >&2;}
7953   { (exit 77); exit 77; }; }
7954   else
7955     ac_cv_sizeof_int=0
7956   fi
7957fi
7958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7959fi
7960rm -f conftest.val
7961fi
7962{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7963echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
7964
7965
7966
7967cat >>confdefs.h <<_ACEOF
7968@%:@define SIZEOF_INT $ac_cv_sizeof_int
7969_ACEOF
7970
7971
7972{ echo "$as_me:$LINENO: checking for unsigned int" >&5
7973echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
7974if test "${ac_cv_type_unsigned_int+set}" = set; then
7975  echo $ECHO_N "(cached) $ECHO_C" >&6
7976else
7977  cat >conftest.$ac_ext <<_ACEOF
7978/* confdefs.h.  */
7979_ACEOF
7980cat confdefs.h >>conftest.$ac_ext
7981cat >>conftest.$ac_ext <<_ACEOF
7982/* end confdefs.h.  */
7983$ac_includes_default
7984typedef unsigned int ac__type_new_;
7985int
7986main ()
7987{
7988if ((ac__type_new_ *) 0)
7989  return 0;
7990if (sizeof (ac__type_new_))
7991  return 0;
7992  ;
7993  return 0;
7994}
7995_ACEOF
7996rm -f conftest.$ac_objext
7997if { (ac_try="$ac_compile"
7998case "(($ac_try" in
7999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000  *) ac_try_echo=$ac_try;;
8001esac
8002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003  (eval "$ac_compile") 2>conftest.er1
8004  ac_status=$?
8005  grep -v '^ *+' conftest.er1 >conftest.err
8006  rm -f conftest.er1
8007  cat conftest.err >&5
8008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009  (exit $ac_status); } && {
8010	 test -z "$ac_cxx_werror_flag" ||
8011	 test ! -s conftest.err
8012       } && test -s conftest.$ac_objext; then
8013  ac_cv_type_unsigned_int=yes
8014else
8015  echo "$as_me: failed program was:" >&5
8016sed 's/^/| /' conftest.$ac_ext >&5
8017
8018	ac_cv_type_unsigned_int=no
8019fi
8020
8021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022fi
8023{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
8024echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
8025
8026# The cast to long int works around a bug in the HP C Compiler
8027# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8028# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8029# This bug is HP SR number 8606223364.
8030{ echo "$as_me:$LINENO: checking size of unsigned int" >&5
8031echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
8032if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
8033  echo $ECHO_N "(cached) $ECHO_C" >&6
8034else
8035  if test "$cross_compiling" = yes; then
8036  # Depending upon the size, compute the lo and hi bounds.
8037cat >conftest.$ac_ext <<_ACEOF
8038/* confdefs.h.  */
8039_ACEOF
8040cat confdefs.h >>conftest.$ac_ext
8041cat >>conftest.$ac_ext <<_ACEOF
8042/* end confdefs.h.  */
8043$ac_includes_default
8044   typedef unsigned int ac__type_sizeof_;
8045int
8046main ()
8047{
8048static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
8049test_array @<:@0@:>@ = 0
8050
8051  ;
8052  return 0;
8053}
8054_ACEOF
8055rm -f conftest.$ac_objext
8056if { (ac_try="$ac_compile"
8057case "(($ac_try" in
8058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059  *) ac_try_echo=$ac_try;;
8060esac
8061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062  (eval "$ac_compile") 2>conftest.er1
8063  ac_status=$?
8064  grep -v '^ *+' conftest.er1 >conftest.err
8065  rm -f conftest.er1
8066  cat conftest.err >&5
8067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068  (exit $ac_status); } && {
8069	 test -z "$ac_cxx_werror_flag" ||
8070	 test ! -s conftest.err
8071       } && test -s conftest.$ac_objext; then
8072  ac_lo=0 ac_mid=0
8073  while :; do
8074    cat >conftest.$ac_ext <<_ACEOF
8075/* confdefs.h.  */
8076_ACEOF
8077cat confdefs.h >>conftest.$ac_ext
8078cat >>conftest.$ac_ext <<_ACEOF
8079/* end confdefs.h.  */
8080$ac_includes_default
8081   typedef unsigned int ac__type_sizeof_;
8082int
8083main ()
8084{
8085static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
8086test_array @<:@0@:>@ = 0
8087
8088  ;
8089  return 0;
8090}
8091_ACEOF
8092rm -f conftest.$ac_objext
8093if { (ac_try="$ac_compile"
8094case "(($ac_try" in
8095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096  *) ac_try_echo=$ac_try;;
8097esac
8098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099  (eval "$ac_compile") 2>conftest.er1
8100  ac_status=$?
8101  grep -v '^ *+' conftest.er1 >conftest.err
8102  rm -f conftest.er1
8103  cat conftest.err >&5
8104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105  (exit $ac_status); } && {
8106	 test -z "$ac_cxx_werror_flag" ||
8107	 test ! -s conftest.err
8108       } && test -s conftest.$ac_objext; then
8109  ac_hi=$ac_mid; break
8110else
8111  echo "$as_me: failed program was:" >&5
8112sed 's/^/| /' conftest.$ac_ext >&5
8113
8114	ac_lo=`expr $ac_mid + 1`
8115			if test $ac_lo -le $ac_mid; then
8116			  ac_lo= ac_hi=
8117			  break
8118			fi
8119			ac_mid=`expr 2 '*' $ac_mid + 1`
8120fi
8121
8122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123  done
8124else
8125  echo "$as_me: failed program was:" >&5
8126sed 's/^/| /' conftest.$ac_ext >&5
8127
8128	cat >conftest.$ac_ext <<_ACEOF
8129/* confdefs.h.  */
8130_ACEOF
8131cat confdefs.h >>conftest.$ac_ext
8132cat >>conftest.$ac_ext <<_ACEOF
8133/* end confdefs.h.  */
8134$ac_includes_default
8135   typedef unsigned int ac__type_sizeof_;
8136int
8137main ()
8138{
8139static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
8140test_array @<:@0@:>@ = 0
8141
8142  ;
8143  return 0;
8144}
8145_ACEOF
8146rm -f conftest.$ac_objext
8147if { (ac_try="$ac_compile"
8148case "(($ac_try" in
8149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150  *) ac_try_echo=$ac_try;;
8151esac
8152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153  (eval "$ac_compile") 2>conftest.er1
8154  ac_status=$?
8155  grep -v '^ *+' conftest.er1 >conftest.err
8156  rm -f conftest.er1
8157  cat conftest.err >&5
8158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159  (exit $ac_status); } && {
8160	 test -z "$ac_cxx_werror_flag" ||
8161	 test ! -s conftest.err
8162       } && test -s conftest.$ac_objext; then
8163  ac_hi=-1 ac_mid=-1
8164  while :; do
8165    cat >conftest.$ac_ext <<_ACEOF
8166/* confdefs.h.  */
8167_ACEOF
8168cat confdefs.h >>conftest.$ac_ext
8169cat >>conftest.$ac_ext <<_ACEOF
8170/* end confdefs.h.  */
8171$ac_includes_default
8172   typedef unsigned int ac__type_sizeof_;
8173int
8174main ()
8175{
8176static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
8177test_array @<:@0@:>@ = 0
8178
8179  ;
8180  return 0;
8181}
8182_ACEOF
8183rm -f conftest.$ac_objext
8184if { (ac_try="$ac_compile"
8185case "(($ac_try" in
8186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187  *) ac_try_echo=$ac_try;;
8188esac
8189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190  (eval "$ac_compile") 2>conftest.er1
8191  ac_status=$?
8192  grep -v '^ *+' conftest.er1 >conftest.err
8193  rm -f conftest.er1
8194  cat conftest.err >&5
8195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196  (exit $ac_status); } && {
8197	 test -z "$ac_cxx_werror_flag" ||
8198	 test ! -s conftest.err
8199       } && test -s conftest.$ac_objext; then
8200  ac_lo=$ac_mid; break
8201else
8202  echo "$as_me: failed program was:" >&5
8203sed 's/^/| /' conftest.$ac_ext >&5
8204
8205	ac_hi=`expr '(' $ac_mid ')' - 1`
8206			if test $ac_mid -le $ac_hi; then
8207			  ac_lo= ac_hi=
8208			  break
8209			fi
8210			ac_mid=`expr 2 '*' $ac_mid`
8211fi
8212
8213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214  done
8215else
8216  echo "$as_me: failed program was:" >&5
8217sed 's/^/| /' conftest.$ac_ext >&5
8218
8219	ac_lo= ac_hi=
8220fi
8221
8222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223fi
8224
8225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226# Binary search between lo and hi bounds.
8227while test "x$ac_lo" != "x$ac_hi"; do
8228  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8229  cat >conftest.$ac_ext <<_ACEOF
8230/* confdefs.h.  */
8231_ACEOF
8232cat confdefs.h >>conftest.$ac_ext
8233cat >>conftest.$ac_ext <<_ACEOF
8234/* end confdefs.h.  */
8235$ac_includes_default
8236   typedef unsigned int ac__type_sizeof_;
8237int
8238main ()
8239{
8240static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
8241test_array @<:@0@:>@ = 0
8242
8243  ;
8244  return 0;
8245}
8246_ACEOF
8247rm -f conftest.$ac_objext
8248if { (ac_try="$ac_compile"
8249case "(($ac_try" in
8250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251  *) ac_try_echo=$ac_try;;
8252esac
8253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254  (eval "$ac_compile") 2>conftest.er1
8255  ac_status=$?
8256  grep -v '^ *+' conftest.er1 >conftest.err
8257  rm -f conftest.er1
8258  cat conftest.err >&5
8259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260  (exit $ac_status); } && {
8261	 test -z "$ac_cxx_werror_flag" ||
8262	 test ! -s conftest.err
8263       } && test -s conftest.$ac_objext; then
8264  ac_hi=$ac_mid
8265else
8266  echo "$as_me: failed program was:" >&5
8267sed 's/^/| /' conftest.$ac_ext >&5
8268
8269	ac_lo=`expr '(' $ac_mid ')' + 1`
8270fi
8271
8272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8273done
8274case $ac_lo in
8275?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
8276'') if test "$ac_cv_type_unsigned_int" = yes; then
8277     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
8278See \`config.log' for more details." >&5
8279echo "$as_me: error: cannot compute sizeof (unsigned int)
8280See \`config.log' for more details." >&2;}
8281   { (exit 77); exit 77; }; }
8282   else
8283     ac_cv_sizeof_unsigned_int=0
8284   fi ;;
8285esac
8286else
8287  cat >conftest.$ac_ext <<_ACEOF
8288/* confdefs.h.  */
8289_ACEOF
8290cat confdefs.h >>conftest.$ac_ext
8291cat >>conftest.$ac_ext <<_ACEOF
8292/* end confdefs.h.  */
8293$ac_includes_default
8294   typedef unsigned int ac__type_sizeof_;
8295static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8296static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8297@%:@include <stdio.h>
8298@%:@include <stdlib.h>
8299int
8300main ()
8301{
8302
8303  FILE *f = fopen ("conftest.val", "w");
8304  if (! f)
8305    return 1;
8306  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8307    {
8308      long int i = longval ();
8309      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8310	return 1;
8311      fprintf (f, "%ld\n", i);
8312    }
8313  else
8314    {
8315      unsigned long int i = ulongval ();
8316      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8317	return 1;
8318      fprintf (f, "%lu\n", i);
8319    }
8320  return ferror (f) || fclose (f) != 0;
8321
8322  ;
8323  return 0;
8324}
8325_ACEOF
8326rm -f conftest$ac_exeext
8327if { (ac_try="$ac_link"
8328case "(($ac_try" in
8329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330  *) ac_try_echo=$ac_try;;
8331esac
8332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333  (eval "$ac_link") 2>&5
8334  ac_status=$?
8335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8337  { (case "(($ac_try" in
8338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339  *) ac_try_echo=$ac_try;;
8340esac
8341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342  (eval "$ac_try") 2>&5
8343  ac_status=$?
8344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345  (exit $ac_status); }; }; then
8346  ac_cv_sizeof_unsigned_int=`cat conftest.val`
8347else
8348  echo "$as_me: program exited with status $ac_status" >&5
8349echo "$as_me: failed program was:" >&5
8350sed 's/^/| /' conftest.$ac_ext >&5
8351
8352( exit $ac_status )
8353if test "$ac_cv_type_unsigned_int" = yes; then
8354     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
8355See \`config.log' for more details." >&5
8356echo "$as_me: error: cannot compute sizeof (unsigned int)
8357See \`config.log' for more details." >&2;}
8358   { (exit 77); exit 77; }; }
8359   else
8360     ac_cv_sizeof_unsigned_int=0
8361   fi
8362fi
8363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8364fi
8365rm -f conftest.val
8366fi
8367{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
8368echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
8369
8370
8371
8372cat >>confdefs.h <<_ACEOF
8373@%:@define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
8374_ACEOF
8375
8376
8377{ echo "$as_me:$LINENO: checking for long" >&5
8378echo $ECHO_N "checking for long... $ECHO_C" >&6; }
8379if test "${ac_cv_type_long+set}" = set; then
8380  echo $ECHO_N "(cached) $ECHO_C" >&6
8381else
8382  cat >conftest.$ac_ext <<_ACEOF
8383/* confdefs.h.  */
8384_ACEOF
8385cat confdefs.h >>conftest.$ac_ext
8386cat >>conftest.$ac_ext <<_ACEOF
8387/* end confdefs.h.  */
8388$ac_includes_default
8389typedef long ac__type_new_;
8390int
8391main ()
8392{
8393if ((ac__type_new_ *) 0)
8394  return 0;
8395if (sizeof (ac__type_new_))
8396  return 0;
8397  ;
8398  return 0;
8399}
8400_ACEOF
8401rm -f conftest.$ac_objext
8402if { (ac_try="$ac_compile"
8403case "(($ac_try" in
8404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405  *) ac_try_echo=$ac_try;;
8406esac
8407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408  (eval "$ac_compile") 2>conftest.er1
8409  ac_status=$?
8410  grep -v '^ *+' conftest.er1 >conftest.err
8411  rm -f conftest.er1
8412  cat conftest.err >&5
8413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414  (exit $ac_status); } && {
8415	 test -z "$ac_cxx_werror_flag" ||
8416	 test ! -s conftest.err
8417       } && test -s conftest.$ac_objext; then
8418  ac_cv_type_long=yes
8419else
8420  echo "$as_me: failed program was:" >&5
8421sed 's/^/| /' conftest.$ac_ext >&5
8422
8423	ac_cv_type_long=no
8424fi
8425
8426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8427fi
8428{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8429echo "${ECHO_T}$ac_cv_type_long" >&6; }
8430
8431# The cast to long int works around a bug in the HP C Compiler
8432# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8433# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8434# This bug is HP SR number 8606223364.
8435{ echo "$as_me:$LINENO: checking size of long" >&5
8436echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
8437if test "${ac_cv_sizeof_long+set}" = set; then
8438  echo $ECHO_N "(cached) $ECHO_C" >&6
8439else
8440  if test "$cross_compiling" = yes; then
8441  # Depending upon the size, compute the lo and hi bounds.
8442cat >conftest.$ac_ext <<_ACEOF
8443/* confdefs.h.  */
8444_ACEOF
8445cat confdefs.h >>conftest.$ac_ext
8446cat >>conftest.$ac_ext <<_ACEOF
8447/* end confdefs.h.  */
8448$ac_includes_default
8449   typedef long ac__type_sizeof_;
8450int
8451main ()
8452{
8453static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
8454test_array @<:@0@:>@ = 0
8455
8456  ;
8457  return 0;
8458}
8459_ACEOF
8460rm -f conftest.$ac_objext
8461if { (ac_try="$ac_compile"
8462case "(($ac_try" in
8463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464  *) ac_try_echo=$ac_try;;
8465esac
8466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467  (eval "$ac_compile") 2>conftest.er1
8468  ac_status=$?
8469  grep -v '^ *+' conftest.er1 >conftest.err
8470  rm -f conftest.er1
8471  cat conftest.err >&5
8472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473  (exit $ac_status); } && {
8474	 test -z "$ac_cxx_werror_flag" ||
8475	 test ! -s conftest.err
8476       } && test -s conftest.$ac_objext; then
8477  ac_lo=0 ac_mid=0
8478  while :; do
8479    cat >conftest.$ac_ext <<_ACEOF
8480/* confdefs.h.  */
8481_ACEOF
8482cat confdefs.h >>conftest.$ac_ext
8483cat >>conftest.$ac_ext <<_ACEOF
8484/* end confdefs.h.  */
8485$ac_includes_default
8486   typedef long ac__type_sizeof_;
8487int
8488main ()
8489{
8490static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
8491test_array @<:@0@:>@ = 0
8492
8493  ;
8494  return 0;
8495}
8496_ACEOF
8497rm -f conftest.$ac_objext
8498if { (ac_try="$ac_compile"
8499case "(($ac_try" in
8500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501  *) ac_try_echo=$ac_try;;
8502esac
8503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8504  (eval "$ac_compile") 2>conftest.er1
8505  ac_status=$?
8506  grep -v '^ *+' conftest.er1 >conftest.err
8507  rm -f conftest.er1
8508  cat conftest.err >&5
8509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510  (exit $ac_status); } && {
8511	 test -z "$ac_cxx_werror_flag" ||
8512	 test ! -s conftest.err
8513       } && test -s conftest.$ac_objext; then
8514  ac_hi=$ac_mid; break
8515else
8516  echo "$as_me: failed program was:" >&5
8517sed 's/^/| /' conftest.$ac_ext >&5
8518
8519	ac_lo=`expr $ac_mid + 1`
8520			if test $ac_lo -le $ac_mid; then
8521			  ac_lo= ac_hi=
8522			  break
8523			fi
8524			ac_mid=`expr 2 '*' $ac_mid + 1`
8525fi
8526
8527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528  done
8529else
8530  echo "$as_me: failed program was:" >&5
8531sed 's/^/| /' conftest.$ac_ext >&5
8532
8533	cat >conftest.$ac_ext <<_ACEOF
8534/* confdefs.h.  */
8535_ACEOF
8536cat confdefs.h >>conftest.$ac_ext
8537cat >>conftest.$ac_ext <<_ACEOF
8538/* end confdefs.h.  */
8539$ac_includes_default
8540   typedef long ac__type_sizeof_;
8541int
8542main ()
8543{
8544static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
8545test_array @<:@0@:>@ = 0
8546
8547  ;
8548  return 0;
8549}
8550_ACEOF
8551rm -f conftest.$ac_objext
8552if { (ac_try="$ac_compile"
8553case "(($ac_try" in
8554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555  *) ac_try_echo=$ac_try;;
8556esac
8557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8558  (eval "$ac_compile") 2>conftest.er1
8559  ac_status=$?
8560  grep -v '^ *+' conftest.er1 >conftest.err
8561  rm -f conftest.er1
8562  cat conftest.err >&5
8563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564  (exit $ac_status); } && {
8565	 test -z "$ac_cxx_werror_flag" ||
8566	 test ! -s conftest.err
8567       } && test -s conftest.$ac_objext; then
8568  ac_hi=-1 ac_mid=-1
8569  while :; do
8570    cat >conftest.$ac_ext <<_ACEOF
8571/* confdefs.h.  */
8572_ACEOF
8573cat confdefs.h >>conftest.$ac_ext
8574cat >>conftest.$ac_ext <<_ACEOF
8575/* end confdefs.h.  */
8576$ac_includes_default
8577   typedef long ac__type_sizeof_;
8578int
8579main ()
8580{
8581static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
8582test_array @<:@0@:>@ = 0
8583
8584  ;
8585  return 0;
8586}
8587_ACEOF
8588rm -f conftest.$ac_objext
8589if { (ac_try="$ac_compile"
8590case "(($ac_try" in
8591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592  *) ac_try_echo=$ac_try;;
8593esac
8594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595  (eval "$ac_compile") 2>conftest.er1
8596  ac_status=$?
8597  grep -v '^ *+' conftest.er1 >conftest.err
8598  rm -f conftest.er1
8599  cat conftest.err >&5
8600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601  (exit $ac_status); } && {
8602	 test -z "$ac_cxx_werror_flag" ||
8603	 test ! -s conftest.err
8604       } && test -s conftest.$ac_objext; then
8605  ac_lo=$ac_mid; break
8606else
8607  echo "$as_me: failed program was:" >&5
8608sed 's/^/| /' conftest.$ac_ext >&5
8609
8610	ac_hi=`expr '(' $ac_mid ')' - 1`
8611			if test $ac_mid -le $ac_hi; then
8612			  ac_lo= ac_hi=
8613			  break
8614			fi
8615			ac_mid=`expr 2 '*' $ac_mid`
8616fi
8617
8618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619  done
8620else
8621  echo "$as_me: failed program was:" >&5
8622sed 's/^/| /' conftest.$ac_ext >&5
8623
8624	ac_lo= ac_hi=
8625fi
8626
8627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8628fi
8629
8630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631# Binary search between lo and hi bounds.
8632while test "x$ac_lo" != "x$ac_hi"; do
8633  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8634  cat >conftest.$ac_ext <<_ACEOF
8635/* confdefs.h.  */
8636_ACEOF
8637cat confdefs.h >>conftest.$ac_ext
8638cat >>conftest.$ac_ext <<_ACEOF
8639/* end confdefs.h.  */
8640$ac_includes_default
8641   typedef long ac__type_sizeof_;
8642int
8643main ()
8644{
8645static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
8646test_array @<:@0@:>@ = 0
8647
8648  ;
8649  return 0;
8650}
8651_ACEOF
8652rm -f conftest.$ac_objext
8653if { (ac_try="$ac_compile"
8654case "(($ac_try" in
8655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656  *) ac_try_echo=$ac_try;;
8657esac
8658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659  (eval "$ac_compile") 2>conftest.er1
8660  ac_status=$?
8661  grep -v '^ *+' conftest.er1 >conftest.err
8662  rm -f conftest.er1
8663  cat conftest.err >&5
8664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665  (exit $ac_status); } && {
8666	 test -z "$ac_cxx_werror_flag" ||
8667	 test ! -s conftest.err
8668       } && test -s conftest.$ac_objext; then
8669  ac_hi=$ac_mid
8670else
8671  echo "$as_me: failed program was:" >&5
8672sed 's/^/| /' conftest.$ac_ext >&5
8673
8674	ac_lo=`expr '(' $ac_mid ')' + 1`
8675fi
8676
8677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678done
8679case $ac_lo in
8680?*) ac_cv_sizeof_long=$ac_lo;;
8681'') if test "$ac_cv_type_long" = yes; then
8682     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8683See \`config.log' for more details." >&5
8684echo "$as_me: error: cannot compute sizeof (long)
8685See \`config.log' for more details." >&2;}
8686   { (exit 77); exit 77; }; }
8687   else
8688     ac_cv_sizeof_long=0
8689   fi ;;
8690esac
8691else
8692  cat >conftest.$ac_ext <<_ACEOF
8693/* confdefs.h.  */
8694_ACEOF
8695cat confdefs.h >>conftest.$ac_ext
8696cat >>conftest.$ac_ext <<_ACEOF
8697/* end confdefs.h.  */
8698$ac_includes_default
8699   typedef long ac__type_sizeof_;
8700static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8701static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8702@%:@include <stdio.h>
8703@%:@include <stdlib.h>
8704int
8705main ()
8706{
8707
8708  FILE *f = fopen ("conftest.val", "w");
8709  if (! f)
8710    return 1;
8711  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8712    {
8713      long int i = longval ();
8714      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8715	return 1;
8716      fprintf (f, "%ld\n", i);
8717    }
8718  else
8719    {
8720      unsigned long int i = ulongval ();
8721      if (i != ((long int) (sizeof (ac__type_sizeof_))))
8722	return 1;
8723      fprintf (f, "%lu\n", i);
8724    }
8725  return ferror (f) || fclose (f) != 0;
8726
8727  ;
8728  return 0;
8729}
8730_ACEOF
8731rm -f conftest$ac_exeext
8732if { (ac_try="$ac_link"
8733case "(($ac_try" in
8734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735  *) ac_try_echo=$ac_try;;
8736esac
8737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738  (eval "$ac_link") 2>&5
8739  ac_status=$?
8740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8742  { (case "(($ac_try" in
8743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744  *) ac_try_echo=$ac_try;;
8745esac
8746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747  (eval "$ac_try") 2>&5
8748  ac_status=$?
8749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750  (exit $ac_status); }; }; then
8751  ac_cv_sizeof_long=`cat conftest.val`
8752else
8753  echo "$as_me: program exited with status $ac_status" >&5
8754echo "$as_me: failed program was:" >&5
8755sed 's/^/| /' conftest.$ac_ext >&5
8756
8757( exit $ac_status )
8758if test "$ac_cv_type_long" = yes; then
8759     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
8760See \`config.log' for more details." >&5
8761echo "$as_me: error: cannot compute sizeof (long)
8762See \`config.log' for more details." >&2;}
8763   { (exit 77); exit 77; }; }
8764   else
8765     ac_cv_sizeof_long=0
8766   fi
8767fi
8768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8769fi
8770rm -f conftest.val
8771fi
8772{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8773echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
8774
8775
8776
8777cat >>confdefs.h <<_ACEOF
8778@%:@define SIZEOF_LONG $ac_cv_sizeof_long
8779_ACEOF
8780
8781
8782{ echo "$as_me:$LINENO: checking for unsigned long" >&5
8783echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
8784if test "${ac_cv_type_unsigned_long+set}" = set; then
8785  echo $ECHO_N "(cached) $ECHO_C" >&6
8786else
8787  cat >conftest.$ac_ext <<_ACEOF
8788/* confdefs.h.  */
8789_ACEOF
8790cat confdefs.h >>conftest.$ac_ext
8791cat >>conftest.$ac_ext <<_ACEOF
8792/* end confdefs.h.  */
8793$ac_includes_default
8794typedef unsigned long ac__type_new_;
8795int
8796main ()
8797{
8798if ((ac__type_new_ *) 0)
8799  return 0;
8800if (sizeof (ac__type_new_))
8801  return 0;
8802  ;
8803  return 0;
8804}
8805_ACEOF
8806rm -f conftest.$ac_objext
8807if { (ac_try="$ac_compile"
8808case "(($ac_try" in
8809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8810  *) ac_try_echo=$ac_try;;
8811esac
8812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8813  (eval "$ac_compile") 2>conftest.er1
8814  ac_status=$?
8815  grep -v '^ *+' conftest.er1 >conftest.err
8816  rm -f conftest.er1
8817  cat conftest.err >&5
8818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819  (exit $ac_status); } && {
8820	 test -z "$ac_cxx_werror_flag" ||
8821	 test ! -s conftest.err
8822       } && test -s conftest.$ac_objext; then
8823  ac_cv_type_unsigned_long=yes
8824else
8825  echo "$as_me: failed program was:" >&5
8826sed 's/^/| /' conftest.$ac_ext >&5
8827
8828	ac_cv_type_unsigned_long=no
8829fi
8830
8831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8832fi
8833{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
8834echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
8835
8836# The cast to long int works around a bug in the HP C Compiler
8837# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8838# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8839# This bug is HP SR number 8606223364.
8840{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
8841echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
8842if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
8843  echo $ECHO_N "(cached) $ECHO_C" >&6
8844else
8845  if test "$cross_compiling" = yes; then
8846  # Depending upon the size, compute the lo and hi bounds.
8847cat >conftest.$ac_ext <<_ACEOF
8848/* confdefs.h.  */
8849_ACEOF
8850cat confdefs.h >>conftest.$ac_ext
8851cat >>conftest.$ac_ext <<_ACEOF
8852/* end confdefs.h.  */
8853$ac_includes_default
8854   typedef unsigned long ac__type_sizeof_;
8855int
8856main ()
8857{
8858static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
8859test_array @<:@0@:>@ = 0
8860
8861  ;
8862  return 0;
8863}
8864_ACEOF
8865rm -f conftest.$ac_objext
8866if { (ac_try="$ac_compile"
8867case "(($ac_try" in
8868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869  *) ac_try_echo=$ac_try;;
8870esac
8871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872  (eval "$ac_compile") 2>conftest.er1
8873  ac_status=$?
8874  grep -v '^ *+' conftest.er1 >conftest.err
8875  rm -f conftest.er1
8876  cat conftest.err >&5
8877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878  (exit $ac_status); } && {
8879	 test -z "$ac_cxx_werror_flag" ||
8880	 test ! -s conftest.err
8881       } && test -s conftest.$ac_objext; then
8882  ac_lo=0 ac_mid=0
8883  while :; do
8884    cat >conftest.$ac_ext <<_ACEOF
8885/* confdefs.h.  */
8886_ACEOF
8887cat confdefs.h >>conftest.$ac_ext
8888cat >>conftest.$ac_ext <<_ACEOF
8889/* end confdefs.h.  */
8890$ac_includes_default
8891   typedef unsigned long ac__type_sizeof_;
8892int
8893main ()
8894{
8895static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
8896test_array @<:@0@:>@ = 0
8897
8898  ;
8899  return 0;
8900}
8901_ACEOF
8902rm -f conftest.$ac_objext
8903if { (ac_try="$ac_compile"
8904case "(($ac_try" in
8905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906  *) ac_try_echo=$ac_try;;
8907esac
8908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909  (eval "$ac_compile") 2>conftest.er1
8910  ac_status=$?
8911  grep -v '^ *+' conftest.er1 >conftest.err
8912  rm -f conftest.er1
8913  cat conftest.err >&5
8914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915  (exit $ac_status); } && {
8916	 test -z "$ac_cxx_werror_flag" ||
8917	 test ! -s conftest.err
8918       } && test -s conftest.$ac_objext; then
8919  ac_hi=$ac_mid; break
8920else
8921  echo "$as_me: failed program was:" >&5
8922sed 's/^/| /' conftest.$ac_ext >&5
8923
8924	ac_lo=`expr $ac_mid + 1`
8925			if test $ac_lo -le $ac_mid; then
8926			  ac_lo= ac_hi=
8927			  break
8928			fi
8929			ac_mid=`expr 2 '*' $ac_mid + 1`
8930fi
8931
8932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933  done
8934else
8935  echo "$as_me: failed program was:" >&5
8936sed 's/^/| /' conftest.$ac_ext >&5
8937
8938	cat >conftest.$ac_ext <<_ACEOF
8939/* confdefs.h.  */
8940_ACEOF
8941cat confdefs.h >>conftest.$ac_ext
8942cat >>conftest.$ac_ext <<_ACEOF
8943/* end confdefs.h.  */
8944$ac_includes_default
8945   typedef unsigned long ac__type_sizeof_;
8946int
8947main ()
8948{
8949static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
8950test_array @<:@0@:>@ = 0
8951
8952  ;
8953  return 0;
8954}
8955_ACEOF
8956rm -f conftest.$ac_objext
8957if { (ac_try="$ac_compile"
8958case "(($ac_try" in
8959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8960  *) ac_try_echo=$ac_try;;
8961esac
8962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8963  (eval "$ac_compile") 2>conftest.er1
8964  ac_status=$?
8965  grep -v '^ *+' conftest.er1 >conftest.err
8966  rm -f conftest.er1
8967  cat conftest.err >&5
8968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969  (exit $ac_status); } && {
8970	 test -z "$ac_cxx_werror_flag" ||
8971	 test ! -s conftest.err
8972       } && test -s conftest.$ac_objext; then
8973  ac_hi=-1 ac_mid=-1
8974  while :; do
8975    cat >conftest.$ac_ext <<_ACEOF
8976/* confdefs.h.  */
8977_ACEOF
8978cat confdefs.h >>conftest.$ac_ext
8979cat >>conftest.$ac_ext <<_ACEOF
8980/* end confdefs.h.  */
8981$ac_includes_default
8982   typedef unsigned long ac__type_sizeof_;
8983int
8984main ()
8985{
8986static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
8987test_array @<:@0@:>@ = 0
8988
8989  ;
8990  return 0;
8991}
8992_ACEOF
8993rm -f conftest.$ac_objext
8994if { (ac_try="$ac_compile"
8995case "(($ac_try" in
8996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997  *) ac_try_echo=$ac_try;;
8998esac
8999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000  (eval "$ac_compile") 2>conftest.er1
9001  ac_status=$?
9002  grep -v '^ *+' conftest.er1 >conftest.err
9003  rm -f conftest.er1
9004  cat conftest.err >&5
9005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006  (exit $ac_status); } && {
9007	 test -z "$ac_cxx_werror_flag" ||
9008	 test ! -s conftest.err
9009       } && test -s conftest.$ac_objext; then
9010  ac_lo=$ac_mid; break
9011else
9012  echo "$as_me: failed program was:" >&5
9013sed 's/^/| /' conftest.$ac_ext >&5
9014
9015	ac_hi=`expr '(' $ac_mid ')' - 1`
9016			if test $ac_mid -le $ac_hi; then
9017			  ac_lo= ac_hi=
9018			  break
9019			fi
9020			ac_mid=`expr 2 '*' $ac_mid`
9021fi
9022
9023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9024  done
9025else
9026  echo "$as_me: failed program was:" >&5
9027sed 's/^/| /' conftest.$ac_ext >&5
9028
9029	ac_lo= ac_hi=
9030fi
9031
9032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033fi
9034
9035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9036# Binary search between lo and hi bounds.
9037while test "x$ac_lo" != "x$ac_hi"; do
9038  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9039  cat >conftest.$ac_ext <<_ACEOF
9040/* confdefs.h.  */
9041_ACEOF
9042cat confdefs.h >>conftest.$ac_ext
9043cat >>conftest.$ac_ext <<_ACEOF
9044/* end confdefs.h.  */
9045$ac_includes_default
9046   typedef unsigned long ac__type_sizeof_;
9047int
9048main ()
9049{
9050static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
9051test_array @<:@0@:>@ = 0
9052
9053  ;
9054  return 0;
9055}
9056_ACEOF
9057rm -f conftest.$ac_objext
9058if { (ac_try="$ac_compile"
9059case "(($ac_try" in
9060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061  *) ac_try_echo=$ac_try;;
9062esac
9063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064  (eval "$ac_compile") 2>conftest.er1
9065  ac_status=$?
9066  grep -v '^ *+' conftest.er1 >conftest.err
9067  rm -f conftest.er1
9068  cat conftest.err >&5
9069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070  (exit $ac_status); } && {
9071	 test -z "$ac_cxx_werror_flag" ||
9072	 test ! -s conftest.err
9073       } && test -s conftest.$ac_objext; then
9074  ac_hi=$ac_mid
9075else
9076  echo "$as_me: failed program was:" >&5
9077sed 's/^/| /' conftest.$ac_ext >&5
9078
9079	ac_lo=`expr '(' $ac_mid ')' + 1`
9080fi
9081
9082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9083done
9084case $ac_lo in
9085?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
9086'') if test "$ac_cv_type_unsigned_long" = yes; then
9087     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
9088See \`config.log' for more details." >&5
9089echo "$as_me: error: cannot compute sizeof (unsigned long)
9090See \`config.log' for more details." >&2;}
9091   { (exit 77); exit 77; }; }
9092   else
9093     ac_cv_sizeof_unsigned_long=0
9094   fi ;;
9095esac
9096else
9097  cat >conftest.$ac_ext <<_ACEOF
9098/* confdefs.h.  */
9099_ACEOF
9100cat confdefs.h >>conftest.$ac_ext
9101cat >>conftest.$ac_ext <<_ACEOF
9102/* end confdefs.h.  */
9103$ac_includes_default
9104   typedef unsigned long ac__type_sizeof_;
9105static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9106static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9107@%:@include <stdio.h>
9108@%:@include <stdlib.h>
9109int
9110main ()
9111{
9112
9113  FILE *f = fopen ("conftest.val", "w");
9114  if (! f)
9115    return 1;
9116  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9117    {
9118      long int i = longval ();
9119      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9120	return 1;
9121      fprintf (f, "%ld\n", i);
9122    }
9123  else
9124    {
9125      unsigned long int i = ulongval ();
9126      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9127	return 1;
9128      fprintf (f, "%lu\n", i);
9129    }
9130  return ferror (f) || fclose (f) != 0;
9131
9132  ;
9133  return 0;
9134}
9135_ACEOF
9136rm -f conftest$ac_exeext
9137if { (ac_try="$ac_link"
9138case "(($ac_try" in
9139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140  *) ac_try_echo=$ac_try;;
9141esac
9142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143  (eval "$ac_link") 2>&5
9144  ac_status=$?
9145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9147  { (case "(($ac_try" in
9148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149  *) ac_try_echo=$ac_try;;
9150esac
9151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152  (eval "$ac_try") 2>&5
9153  ac_status=$?
9154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155  (exit $ac_status); }; }; then
9156  ac_cv_sizeof_unsigned_long=`cat conftest.val`
9157else
9158  echo "$as_me: program exited with status $ac_status" >&5
9159echo "$as_me: failed program was:" >&5
9160sed 's/^/| /' conftest.$ac_ext >&5
9161
9162( exit $ac_status )
9163if test "$ac_cv_type_unsigned_long" = yes; then
9164     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
9165See \`config.log' for more details." >&5
9166echo "$as_me: error: cannot compute sizeof (unsigned long)
9167See \`config.log' for more details." >&2;}
9168   { (exit 77); exit 77; }; }
9169   else
9170     ac_cv_sizeof_unsigned_long=0
9171   fi
9172fi
9173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9174fi
9175rm -f conftest.val
9176fi
9177{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
9178echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
9179
9180
9181
9182cat >>confdefs.h <<_ACEOF
9183@%:@define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9184_ACEOF
9185
9186
9187{ echo "$as_me:$LINENO: checking for long long" >&5
9188echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9189if test "${ac_cv_type_long_long+set}" = set; then
9190  echo $ECHO_N "(cached) $ECHO_C" >&6
9191else
9192  cat >conftest.$ac_ext <<_ACEOF
9193/* confdefs.h.  */
9194_ACEOF
9195cat confdefs.h >>conftest.$ac_ext
9196cat >>conftest.$ac_ext <<_ACEOF
9197/* end confdefs.h.  */
9198$ac_includes_default
9199typedef long long ac__type_new_;
9200int
9201main ()
9202{
9203if ((ac__type_new_ *) 0)
9204  return 0;
9205if (sizeof (ac__type_new_))
9206  return 0;
9207  ;
9208  return 0;
9209}
9210_ACEOF
9211rm -f conftest.$ac_objext
9212if { (ac_try="$ac_compile"
9213case "(($ac_try" in
9214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9215  *) ac_try_echo=$ac_try;;
9216esac
9217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9218  (eval "$ac_compile") 2>conftest.er1
9219  ac_status=$?
9220  grep -v '^ *+' conftest.er1 >conftest.err
9221  rm -f conftest.er1
9222  cat conftest.err >&5
9223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224  (exit $ac_status); } && {
9225	 test -z "$ac_cxx_werror_flag" ||
9226	 test ! -s conftest.err
9227       } && test -s conftest.$ac_objext; then
9228  ac_cv_type_long_long=yes
9229else
9230  echo "$as_me: failed program was:" >&5
9231sed 's/^/| /' conftest.$ac_ext >&5
9232
9233	ac_cv_type_long_long=no
9234fi
9235
9236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9237fi
9238{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9239echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
9240
9241# The cast to long int works around a bug in the HP C Compiler
9242# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9243# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9244# This bug is HP SR number 8606223364.
9245{ echo "$as_me:$LINENO: checking size of long long" >&5
9246echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
9247if test "${ac_cv_sizeof_long_long+set}" = set; then
9248  echo $ECHO_N "(cached) $ECHO_C" >&6
9249else
9250  if test "$cross_compiling" = yes; then
9251  # Depending upon the size, compute the lo and hi bounds.
9252cat >conftest.$ac_ext <<_ACEOF
9253/* confdefs.h.  */
9254_ACEOF
9255cat confdefs.h >>conftest.$ac_ext
9256cat >>conftest.$ac_ext <<_ACEOF
9257/* end confdefs.h.  */
9258$ac_includes_default
9259   typedef long long ac__type_sizeof_;
9260int
9261main ()
9262{
9263static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
9264test_array @<:@0@:>@ = 0
9265
9266  ;
9267  return 0;
9268}
9269_ACEOF
9270rm -f conftest.$ac_objext
9271if { (ac_try="$ac_compile"
9272case "(($ac_try" in
9273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274  *) ac_try_echo=$ac_try;;
9275esac
9276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277  (eval "$ac_compile") 2>conftest.er1
9278  ac_status=$?
9279  grep -v '^ *+' conftest.er1 >conftest.err
9280  rm -f conftest.er1
9281  cat conftest.err >&5
9282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283  (exit $ac_status); } && {
9284	 test -z "$ac_cxx_werror_flag" ||
9285	 test ! -s conftest.err
9286       } && test -s conftest.$ac_objext; then
9287  ac_lo=0 ac_mid=0
9288  while :; do
9289    cat >conftest.$ac_ext <<_ACEOF
9290/* confdefs.h.  */
9291_ACEOF
9292cat confdefs.h >>conftest.$ac_ext
9293cat >>conftest.$ac_ext <<_ACEOF
9294/* end confdefs.h.  */
9295$ac_includes_default
9296   typedef long long ac__type_sizeof_;
9297int
9298main ()
9299{
9300static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
9301test_array @<:@0@:>@ = 0
9302
9303  ;
9304  return 0;
9305}
9306_ACEOF
9307rm -f conftest.$ac_objext
9308if { (ac_try="$ac_compile"
9309case "(($ac_try" in
9310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9311  *) ac_try_echo=$ac_try;;
9312esac
9313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314  (eval "$ac_compile") 2>conftest.er1
9315  ac_status=$?
9316  grep -v '^ *+' conftest.er1 >conftest.err
9317  rm -f conftest.er1
9318  cat conftest.err >&5
9319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320  (exit $ac_status); } && {
9321	 test -z "$ac_cxx_werror_flag" ||
9322	 test ! -s conftest.err
9323       } && test -s conftest.$ac_objext; then
9324  ac_hi=$ac_mid; break
9325else
9326  echo "$as_me: failed program was:" >&5
9327sed 's/^/| /' conftest.$ac_ext >&5
9328
9329	ac_lo=`expr $ac_mid + 1`
9330			if test $ac_lo -le $ac_mid; then
9331			  ac_lo= ac_hi=
9332			  break
9333			fi
9334			ac_mid=`expr 2 '*' $ac_mid + 1`
9335fi
9336
9337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9338  done
9339else
9340  echo "$as_me: failed program was:" >&5
9341sed 's/^/| /' conftest.$ac_ext >&5
9342
9343	cat >conftest.$ac_ext <<_ACEOF
9344/* confdefs.h.  */
9345_ACEOF
9346cat confdefs.h >>conftest.$ac_ext
9347cat >>conftest.$ac_ext <<_ACEOF
9348/* end confdefs.h.  */
9349$ac_includes_default
9350   typedef long long ac__type_sizeof_;
9351int
9352main ()
9353{
9354static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
9355test_array @<:@0@:>@ = 0
9356
9357  ;
9358  return 0;
9359}
9360_ACEOF
9361rm -f conftest.$ac_objext
9362if { (ac_try="$ac_compile"
9363case "(($ac_try" in
9364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365  *) ac_try_echo=$ac_try;;
9366esac
9367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368  (eval "$ac_compile") 2>conftest.er1
9369  ac_status=$?
9370  grep -v '^ *+' conftest.er1 >conftest.err
9371  rm -f conftest.er1
9372  cat conftest.err >&5
9373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374  (exit $ac_status); } && {
9375	 test -z "$ac_cxx_werror_flag" ||
9376	 test ! -s conftest.err
9377       } && test -s conftest.$ac_objext; then
9378  ac_hi=-1 ac_mid=-1
9379  while :; do
9380    cat >conftest.$ac_ext <<_ACEOF
9381/* confdefs.h.  */
9382_ACEOF
9383cat confdefs.h >>conftest.$ac_ext
9384cat >>conftest.$ac_ext <<_ACEOF
9385/* end confdefs.h.  */
9386$ac_includes_default
9387   typedef long long ac__type_sizeof_;
9388int
9389main ()
9390{
9391static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
9392test_array @<:@0@:>@ = 0
9393
9394  ;
9395  return 0;
9396}
9397_ACEOF
9398rm -f conftest.$ac_objext
9399if { (ac_try="$ac_compile"
9400case "(($ac_try" in
9401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9402  *) ac_try_echo=$ac_try;;
9403esac
9404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9405  (eval "$ac_compile") 2>conftest.er1
9406  ac_status=$?
9407  grep -v '^ *+' conftest.er1 >conftest.err
9408  rm -f conftest.er1
9409  cat conftest.err >&5
9410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411  (exit $ac_status); } && {
9412	 test -z "$ac_cxx_werror_flag" ||
9413	 test ! -s conftest.err
9414       } && test -s conftest.$ac_objext; then
9415  ac_lo=$ac_mid; break
9416else
9417  echo "$as_me: failed program was:" >&5
9418sed 's/^/| /' conftest.$ac_ext >&5
9419
9420	ac_hi=`expr '(' $ac_mid ')' - 1`
9421			if test $ac_mid -le $ac_hi; then
9422			  ac_lo= ac_hi=
9423			  break
9424			fi
9425			ac_mid=`expr 2 '*' $ac_mid`
9426fi
9427
9428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9429  done
9430else
9431  echo "$as_me: failed program was:" >&5
9432sed 's/^/| /' conftest.$ac_ext >&5
9433
9434	ac_lo= ac_hi=
9435fi
9436
9437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9438fi
9439
9440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9441# Binary search between lo and hi bounds.
9442while test "x$ac_lo" != "x$ac_hi"; do
9443  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9444  cat >conftest.$ac_ext <<_ACEOF
9445/* confdefs.h.  */
9446_ACEOF
9447cat confdefs.h >>conftest.$ac_ext
9448cat >>conftest.$ac_ext <<_ACEOF
9449/* end confdefs.h.  */
9450$ac_includes_default
9451   typedef long long ac__type_sizeof_;
9452int
9453main ()
9454{
9455static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
9456test_array @<:@0@:>@ = 0
9457
9458  ;
9459  return 0;
9460}
9461_ACEOF
9462rm -f conftest.$ac_objext
9463if { (ac_try="$ac_compile"
9464case "(($ac_try" in
9465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466  *) ac_try_echo=$ac_try;;
9467esac
9468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469  (eval "$ac_compile") 2>conftest.er1
9470  ac_status=$?
9471  grep -v '^ *+' conftest.er1 >conftest.err
9472  rm -f conftest.er1
9473  cat conftest.err >&5
9474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475  (exit $ac_status); } && {
9476	 test -z "$ac_cxx_werror_flag" ||
9477	 test ! -s conftest.err
9478       } && test -s conftest.$ac_objext; then
9479  ac_hi=$ac_mid
9480else
9481  echo "$as_me: failed program was:" >&5
9482sed 's/^/| /' conftest.$ac_ext >&5
9483
9484	ac_lo=`expr '(' $ac_mid ')' + 1`
9485fi
9486
9487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9488done
9489case $ac_lo in
9490?*) ac_cv_sizeof_long_long=$ac_lo;;
9491'') if test "$ac_cv_type_long_long" = yes; then
9492     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9493See \`config.log' for more details." >&5
9494echo "$as_me: error: cannot compute sizeof (long long)
9495See \`config.log' for more details." >&2;}
9496   { (exit 77); exit 77; }; }
9497   else
9498     ac_cv_sizeof_long_long=0
9499   fi ;;
9500esac
9501else
9502  cat >conftest.$ac_ext <<_ACEOF
9503/* confdefs.h.  */
9504_ACEOF
9505cat confdefs.h >>conftest.$ac_ext
9506cat >>conftest.$ac_ext <<_ACEOF
9507/* end confdefs.h.  */
9508$ac_includes_default
9509   typedef long long ac__type_sizeof_;
9510static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9511static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9512@%:@include <stdio.h>
9513@%:@include <stdlib.h>
9514int
9515main ()
9516{
9517
9518  FILE *f = fopen ("conftest.val", "w");
9519  if (! f)
9520    return 1;
9521  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9522    {
9523      long int i = longval ();
9524      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9525	return 1;
9526      fprintf (f, "%ld\n", i);
9527    }
9528  else
9529    {
9530      unsigned long int i = ulongval ();
9531      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9532	return 1;
9533      fprintf (f, "%lu\n", i);
9534    }
9535  return ferror (f) || fclose (f) != 0;
9536
9537  ;
9538  return 0;
9539}
9540_ACEOF
9541rm -f conftest$ac_exeext
9542if { (ac_try="$ac_link"
9543case "(($ac_try" in
9544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545  *) ac_try_echo=$ac_try;;
9546esac
9547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548  (eval "$ac_link") 2>&5
9549  ac_status=$?
9550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9552  { (case "(($ac_try" in
9553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554  *) ac_try_echo=$ac_try;;
9555esac
9556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557  (eval "$ac_try") 2>&5
9558  ac_status=$?
9559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560  (exit $ac_status); }; }; then
9561  ac_cv_sizeof_long_long=`cat conftest.val`
9562else
9563  echo "$as_me: program exited with status $ac_status" >&5
9564echo "$as_me: failed program was:" >&5
9565sed 's/^/| /' conftest.$ac_ext >&5
9566
9567( exit $ac_status )
9568if test "$ac_cv_type_long_long" = yes; then
9569     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9570See \`config.log' for more details." >&5
9571echo "$as_me: error: cannot compute sizeof (long long)
9572See \`config.log' for more details." >&2;}
9573   { (exit 77); exit 77; }; }
9574   else
9575     ac_cv_sizeof_long_long=0
9576   fi
9577fi
9578rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9579fi
9580rm -f conftest.val
9581fi
9582{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9583echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9584
9585
9586
9587cat >>confdefs.h <<_ACEOF
9588@%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9589_ACEOF
9590
9591
9592{ echo "$as_me:$LINENO: checking for unsigned long long" >&5
9593echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9594if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9595  echo $ECHO_N "(cached) $ECHO_C" >&6
9596else
9597  cat >conftest.$ac_ext <<_ACEOF
9598/* confdefs.h.  */
9599_ACEOF
9600cat confdefs.h >>conftest.$ac_ext
9601cat >>conftest.$ac_ext <<_ACEOF
9602/* end confdefs.h.  */
9603$ac_includes_default
9604typedef unsigned long long ac__type_new_;
9605int
9606main ()
9607{
9608if ((ac__type_new_ *) 0)
9609  return 0;
9610if (sizeof (ac__type_new_))
9611  return 0;
9612  ;
9613  return 0;
9614}
9615_ACEOF
9616rm -f conftest.$ac_objext
9617if { (ac_try="$ac_compile"
9618case "(($ac_try" in
9619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9620  *) ac_try_echo=$ac_try;;
9621esac
9622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9623  (eval "$ac_compile") 2>conftest.er1
9624  ac_status=$?
9625  grep -v '^ *+' conftest.er1 >conftest.err
9626  rm -f conftest.er1
9627  cat conftest.err >&5
9628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629  (exit $ac_status); } && {
9630	 test -z "$ac_cxx_werror_flag" ||
9631	 test ! -s conftest.err
9632       } && test -s conftest.$ac_objext; then
9633  ac_cv_type_unsigned_long_long=yes
9634else
9635  echo "$as_me: failed program was:" >&5
9636sed 's/^/| /' conftest.$ac_ext >&5
9637
9638	ac_cv_type_unsigned_long_long=no
9639fi
9640
9641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9642fi
9643{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9644echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9645
9646# The cast to long int works around a bug in the HP C Compiler
9647# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9648# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9649# This bug is HP SR number 8606223364.
9650{ echo "$as_me:$LINENO: checking size of unsigned long long" >&5
9651echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
9652if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
9653  echo $ECHO_N "(cached) $ECHO_C" >&6
9654else
9655  if test "$cross_compiling" = yes; then
9656  # Depending upon the size, compute the lo and hi bounds.
9657cat >conftest.$ac_ext <<_ACEOF
9658/* confdefs.h.  */
9659_ACEOF
9660cat confdefs.h >>conftest.$ac_ext
9661cat >>conftest.$ac_ext <<_ACEOF
9662/* end confdefs.h.  */
9663$ac_includes_default
9664   typedef unsigned long long ac__type_sizeof_;
9665int
9666main ()
9667{
9668static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
9669test_array @<:@0@:>@ = 0
9670
9671  ;
9672  return 0;
9673}
9674_ACEOF
9675rm -f conftest.$ac_objext
9676if { (ac_try="$ac_compile"
9677case "(($ac_try" in
9678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679  *) ac_try_echo=$ac_try;;
9680esac
9681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682  (eval "$ac_compile") 2>conftest.er1
9683  ac_status=$?
9684  grep -v '^ *+' conftest.er1 >conftest.err
9685  rm -f conftest.er1
9686  cat conftest.err >&5
9687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688  (exit $ac_status); } && {
9689	 test -z "$ac_cxx_werror_flag" ||
9690	 test ! -s conftest.err
9691       } && test -s conftest.$ac_objext; then
9692  ac_lo=0 ac_mid=0
9693  while :; do
9694    cat >conftest.$ac_ext <<_ACEOF
9695/* confdefs.h.  */
9696_ACEOF
9697cat confdefs.h >>conftest.$ac_ext
9698cat >>conftest.$ac_ext <<_ACEOF
9699/* end confdefs.h.  */
9700$ac_includes_default
9701   typedef unsigned long long ac__type_sizeof_;
9702int
9703main ()
9704{
9705static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
9706test_array @<:@0@:>@ = 0
9707
9708  ;
9709  return 0;
9710}
9711_ACEOF
9712rm -f conftest.$ac_objext
9713if { (ac_try="$ac_compile"
9714case "(($ac_try" in
9715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716  *) ac_try_echo=$ac_try;;
9717esac
9718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719  (eval "$ac_compile") 2>conftest.er1
9720  ac_status=$?
9721  grep -v '^ *+' conftest.er1 >conftest.err
9722  rm -f conftest.er1
9723  cat conftest.err >&5
9724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725  (exit $ac_status); } && {
9726	 test -z "$ac_cxx_werror_flag" ||
9727	 test ! -s conftest.err
9728       } && test -s conftest.$ac_objext; then
9729  ac_hi=$ac_mid; break
9730else
9731  echo "$as_me: failed program was:" >&5
9732sed 's/^/| /' conftest.$ac_ext >&5
9733
9734	ac_lo=`expr $ac_mid + 1`
9735			if test $ac_lo -le $ac_mid; then
9736			  ac_lo= ac_hi=
9737			  break
9738			fi
9739			ac_mid=`expr 2 '*' $ac_mid + 1`
9740fi
9741
9742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9743  done
9744else
9745  echo "$as_me: failed program was:" >&5
9746sed 's/^/| /' conftest.$ac_ext >&5
9747
9748	cat >conftest.$ac_ext <<_ACEOF
9749/* confdefs.h.  */
9750_ACEOF
9751cat confdefs.h >>conftest.$ac_ext
9752cat >>conftest.$ac_ext <<_ACEOF
9753/* end confdefs.h.  */
9754$ac_includes_default
9755   typedef unsigned long long ac__type_sizeof_;
9756int
9757main ()
9758{
9759static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
9760test_array @<:@0@:>@ = 0
9761
9762  ;
9763  return 0;
9764}
9765_ACEOF
9766rm -f conftest.$ac_objext
9767if { (ac_try="$ac_compile"
9768case "(($ac_try" in
9769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770  *) ac_try_echo=$ac_try;;
9771esac
9772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9773  (eval "$ac_compile") 2>conftest.er1
9774  ac_status=$?
9775  grep -v '^ *+' conftest.er1 >conftest.err
9776  rm -f conftest.er1
9777  cat conftest.err >&5
9778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779  (exit $ac_status); } && {
9780	 test -z "$ac_cxx_werror_flag" ||
9781	 test ! -s conftest.err
9782       } && test -s conftest.$ac_objext; then
9783  ac_hi=-1 ac_mid=-1
9784  while :; do
9785    cat >conftest.$ac_ext <<_ACEOF
9786/* confdefs.h.  */
9787_ACEOF
9788cat confdefs.h >>conftest.$ac_ext
9789cat >>conftest.$ac_ext <<_ACEOF
9790/* end confdefs.h.  */
9791$ac_includes_default
9792   typedef unsigned long long ac__type_sizeof_;
9793int
9794main ()
9795{
9796static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
9797test_array @<:@0@:>@ = 0
9798
9799  ;
9800  return 0;
9801}
9802_ACEOF
9803rm -f conftest.$ac_objext
9804if { (ac_try="$ac_compile"
9805case "(($ac_try" in
9806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807  *) ac_try_echo=$ac_try;;
9808esac
9809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810  (eval "$ac_compile") 2>conftest.er1
9811  ac_status=$?
9812  grep -v '^ *+' conftest.er1 >conftest.err
9813  rm -f conftest.er1
9814  cat conftest.err >&5
9815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816  (exit $ac_status); } && {
9817	 test -z "$ac_cxx_werror_flag" ||
9818	 test ! -s conftest.err
9819       } && test -s conftest.$ac_objext; then
9820  ac_lo=$ac_mid; break
9821else
9822  echo "$as_me: failed program was:" >&5
9823sed 's/^/| /' conftest.$ac_ext >&5
9824
9825	ac_hi=`expr '(' $ac_mid ')' - 1`
9826			if test $ac_mid -le $ac_hi; then
9827			  ac_lo= ac_hi=
9828			  break
9829			fi
9830			ac_mid=`expr 2 '*' $ac_mid`
9831fi
9832
9833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9834  done
9835else
9836  echo "$as_me: failed program was:" >&5
9837sed 's/^/| /' conftest.$ac_ext >&5
9838
9839	ac_lo= ac_hi=
9840fi
9841
9842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9843fi
9844
9845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9846# Binary search between lo and hi bounds.
9847while test "x$ac_lo" != "x$ac_hi"; do
9848  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9849  cat >conftest.$ac_ext <<_ACEOF
9850/* confdefs.h.  */
9851_ACEOF
9852cat confdefs.h >>conftest.$ac_ext
9853cat >>conftest.$ac_ext <<_ACEOF
9854/* end confdefs.h.  */
9855$ac_includes_default
9856   typedef unsigned long long ac__type_sizeof_;
9857int
9858main ()
9859{
9860static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
9861test_array @<:@0@:>@ = 0
9862
9863  ;
9864  return 0;
9865}
9866_ACEOF
9867rm -f conftest.$ac_objext
9868if { (ac_try="$ac_compile"
9869case "(($ac_try" in
9870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871  *) ac_try_echo=$ac_try;;
9872esac
9873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874  (eval "$ac_compile") 2>conftest.er1
9875  ac_status=$?
9876  grep -v '^ *+' conftest.er1 >conftest.err
9877  rm -f conftest.er1
9878  cat conftest.err >&5
9879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880  (exit $ac_status); } && {
9881	 test -z "$ac_cxx_werror_flag" ||
9882	 test ! -s conftest.err
9883       } && test -s conftest.$ac_objext; then
9884  ac_hi=$ac_mid
9885else
9886  echo "$as_me: failed program was:" >&5
9887sed 's/^/| /' conftest.$ac_ext >&5
9888
9889	ac_lo=`expr '(' $ac_mid ')' + 1`
9890fi
9891
9892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9893done
9894case $ac_lo in
9895?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
9896'') if test "$ac_cv_type_unsigned_long_long" = yes; then
9897     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
9898See \`config.log' for more details." >&5
9899echo "$as_me: error: cannot compute sizeof (unsigned long long)
9900See \`config.log' for more details." >&2;}
9901   { (exit 77); exit 77; }; }
9902   else
9903     ac_cv_sizeof_unsigned_long_long=0
9904   fi ;;
9905esac
9906else
9907  cat >conftest.$ac_ext <<_ACEOF
9908/* confdefs.h.  */
9909_ACEOF
9910cat confdefs.h >>conftest.$ac_ext
9911cat >>conftest.$ac_ext <<_ACEOF
9912/* end confdefs.h.  */
9913$ac_includes_default
9914   typedef unsigned long long ac__type_sizeof_;
9915static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9916static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9917@%:@include <stdio.h>
9918@%:@include <stdlib.h>
9919int
9920main ()
9921{
9922
9923  FILE *f = fopen ("conftest.val", "w");
9924  if (! f)
9925    return 1;
9926  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9927    {
9928      long int i = longval ();
9929      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9930	return 1;
9931      fprintf (f, "%ld\n", i);
9932    }
9933  else
9934    {
9935      unsigned long int i = ulongval ();
9936      if (i != ((long int) (sizeof (ac__type_sizeof_))))
9937	return 1;
9938      fprintf (f, "%lu\n", i);
9939    }
9940  return ferror (f) || fclose (f) != 0;
9941
9942  ;
9943  return 0;
9944}
9945_ACEOF
9946rm -f conftest$ac_exeext
9947if { (ac_try="$ac_link"
9948case "(($ac_try" in
9949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950  *) ac_try_echo=$ac_try;;
9951esac
9952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953  (eval "$ac_link") 2>&5
9954  ac_status=$?
9955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9957  { (case "(($ac_try" in
9958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959  *) ac_try_echo=$ac_try;;
9960esac
9961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962  (eval "$ac_try") 2>&5
9963  ac_status=$?
9964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965  (exit $ac_status); }; }; then
9966  ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
9967else
9968  echo "$as_me: program exited with status $ac_status" >&5
9969echo "$as_me: failed program was:" >&5
9970sed 's/^/| /' conftest.$ac_ext >&5
9971
9972( exit $ac_status )
9973if test "$ac_cv_type_unsigned_long_long" = yes; then
9974     { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
9975See \`config.log' for more details." >&5
9976echo "$as_me: error: cannot compute sizeof (unsigned long long)
9977See \`config.log' for more details." >&2;}
9978   { (exit 77); exit 77; }; }
9979   else
9980     ac_cv_sizeof_unsigned_long_long=0
9981   fi
9982fi
9983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9984fi
9985rm -f conftest.val
9986fi
9987{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
9988echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
9989
9990
9991
9992cat >>confdefs.h <<_ACEOF
9993@%:@define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9994_ACEOF
9995
9996
9997ac_ext=cpp
9998ac_cpp='$CXXCPP $CPPFLAGS'
9999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10002
10003{ echo "$as_me:$LINENO: checking for bool" >&5
10004echo $ECHO_N "checking for bool... $ECHO_C" >&6; }
10005if test "${ac_cv_type_bool+set}" = set; then
10006  echo $ECHO_N "(cached) $ECHO_C" >&6
10007else
10008  cat >conftest.$ac_ext <<_ACEOF
10009/* confdefs.h.  */
10010_ACEOF
10011cat confdefs.h >>conftest.$ac_ext
10012cat >>conftest.$ac_ext <<_ACEOF
10013/* end confdefs.h.  */
10014$ac_includes_default
10015typedef bool ac__type_new_;
10016int
10017main ()
10018{
10019if ((ac__type_new_ *) 0)
10020  return 0;
10021if (sizeof (ac__type_new_))
10022  return 0;
10023  ;
10024  return 0;
10025}
10026_ACEOF
10027rm -f conftest.$ac_objext
10028if { (ac_try="$ac_compile"
10029case "(($ac_try" in
10030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031  *) ac_try_echo=$ac_try;;
10032esac
10033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034  (eval "$ac_compile") 2>conftest.er1
10035  ac_status=$?
10036  grep -v '^ *+' conftest.er1 >conftest.err
10037  rm -f conftest.er1
10038  cat conftest.err >&5
10039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040  (exit $ac_status); } && {
10041	 test -z "$ac_cxx_werror_flag" ||
10042	 test ! -s conftest.err
10043       } && test -s conftest.$ac_objext; then
10044  ac_cv_type_bool=yes
10045else
10046  echo "$as_me: failed program was:" >&5
10047sed 's/^/| /' conftest.$ac_ext >&5
10048
10049	ac_cv_type_bool=no
10050fi
10051
10052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10053fi
10054{ echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
10055echo "${ECHO_T}$ac_cv_type_bool" >&6; }
10056
10057# The cast to long int works around a bug in the HP C Compiler
10058# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10059# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10060# This bug is HP SR number 8606223364.
10061{ echo "$as_me:$LINENO: checking size of bool" >&5
10062echo $ECHO_N "checking size of bool... $ECHO_C" >&6; }
10063if test "${ac_cv_sizeof_bool+set}" = set; then
10064  echo $ECHO_N "(cached) $ECHO_C" >&6
10065else
10066  if test "$cross_compiling" = yes; then
10067  # Depending upon the size, compute the lo and hi bounds.
10068cat >conftest.$ac_ext <<_ACEOF
10069/* confdefs.h.  */
10070_ACEOF
10071cat confdefs.h >>conftest.$ac_ext
10072cat >>conftest.$ac_ext <<_ACEOF
10073/* end confdefs.h.  */
10074$ac_includes_default
10075   typedef bool ac__type_sizeof_;
10076int
10077main ()
10078{
10079static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)@:>@;
10080test_array @<:@0@:>@ = 0
10081
10082  ;
10083  return 0;
10084}
10085_ACEOF
10086rm -f conftest.$ac_objext
10087if { (ac_try="$ac_compile"
10088case "(($ac_try" in
10089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090  *) ac_try_echo=$ac_try;;
10091esac
10092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093  (eval "$ac_compile") 2>conftest.er1
10094  ac_status=$?
10095  grep -v '^ *+' conftest.er1 >conftest.err
10096  rm -f conftest.er1
10097  cat conftest.err >&5
10098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099  (exit $ac_status); } && {
10100	 test -z "$ac_cxx_werror_flag" ||
10101	 test ! -s conftest.err
10102       } && test -s conftest.$ac_objext; then
10103  ac_lo=0 ac_mid=0
10104  while :; do
10105    cat >conftest.$ac_ext <<_ACEOF
10106/* confdefs.h.  */
10107_ACEOF
10108cat confdefs.h >>conftest.$ac_ext
10109cat >>conftest.$ac_ext <<_ACEOF
10110/* end confdefs.h.  */
10111$ac_includes_default
10112   typedef bool ac__type_sizeof_;
10113int
10114main ()
10115{
10116static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
10117test_array @<:@0@:>@ = 0
10118
10119  ;
10120  return 0;
10121}
10122_ACEOF
10123rm -f conftest.$ac_objext
10124if { (ac_try="$ac_compile"
10125case "(($ac_try" in
10126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127  *) ac_try_echo=$ac_try;;
10128esac
10129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130  (eval "$ac_compile") 2>conftest.er1
10131  ac_status=$?
10132  grep -v '^ *+' conftest.er1 >conftest.err
10133  rm -f conftest.er1
10134  cat conftest.err >&5
10135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136  (exit $ac_status); } && {
10137	 test -z "$ac_cxx_werror_flag" ||
10138	 test ! -s conftest.err
10139       } && test -s conftest.$ac_objext; then
10140  ac_hi=$ac_mid; break
10141else
10142  echo "$as_me: failed program was:" >&5
10143sed 's/^/| /' conftest.$ac_ext >&5
10144
10145	ac_lo=`expr $ac_mid + 1`
10146			if test $ac_lo -le $ac_mid; then
10147			  ac_lo= ac_hi=
10148			  break
10149			fi
10150			ac_mid=`expr 2 '*' $ac_mid + 1`
10151fi
10152
10153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154  done
10155else
10156  echo "$as_me: failed program was:" >&5
10157sed 's/^/| /' conftest.$ac_ext >&5
10158
10159	cat >conftest.$ac_ext <<_ACEOF
10160/* confdefs.h.  */
10161_ACEOF
10162cat confdefs.h >>conftest.$ac_ext
10163cat >>conftest.$ac_ext <<_ACEOF
10164/* end confdefs.h.  */
10165$ac_includes_default
10166   typedef bool ac__type_sizeof_;
10167int
10168main ()
10169{
10170static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)@:>@;
10171test_array @<:@0@:>@ = 0
10172
10173  ;
10174  return 0;
10175}
10176_ACEOF
10177rm -f conftest.$ac_objext
10178if { (ac_try="$ac_compile"
10179case "(($ac_try" in
10180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181  *) ac_try_echo=$ac_try;;
10182esac
10183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10184  (eval "$ac_compile") 2>conftest.er1
10185  ac_status=$?
10186  grep -v '^ *+' conftest.er1 >conftest.err
10187  rm -f conftest.er1
10188  cat conftest.err >&5
10189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190  (exit $ac_status); } && {
10191	 test -z "$ac_cxx_werror_flag" ||
10192	 test ! -s conftest.err
10193       } && test -s conftest.$ac_objext; then
10194  ac_hi=-1 ac_mid=-1
10195  while :; do
10196    cat >conftest.$ac_ext <<_ACEOF
10197/* confdefs.h.  */
10198_ACEOF
10199cat confdefs.h >>conftest.$ac_ext
10200cat >>conftest.$ac_ext <<_ACEOF
10201/* end confdefs.h.  */
10202$ac_includes_default
10203   typedef bool ac__type_sizeof_;
10204int
10205main ()
10206{
10207static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)@:>@;
10208test_array @<:@0@:>@ = 0
10209
10210  ;
10211  return 0;
10212}
10213_ACEOF
10214rm -f conftest.$ac_objext
10215if { (ac_try="$ac_compile"
10216case "(($ac_try" in
10217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218  *) ac_try_echo=$ac_try;;
10219esac
10220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221  (eval "$ac_compile") 2>conftest.er1
10222  ac_status=$?
10223  grep -v '^ *+' conftest.er1 >conftest.err
10224  rm -f conftest.er1
10225  cat conftest.err >&5
10226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227  (exit $ac_status); } && {
10228	 test -z "$ac_cxx_werror_flag" ||
10229	 test ! -s conftest.err
10230       } && test -s conftest.$ac_objext; then
10231  ac_lo=$ac_mid; break
10232else
10233  echo "$as_me: failed program was:" >&5
10234sed 's/^/| /' conftest.$ac_ext >&5
10235
10236	ac_hi=`expr '(' $ac_mid ')' - 1`
10237			if test $ac_mid -le $ac_hi; then
10238			  ac_lo= ac_hi=
10239			  break
10240			fi
10241			ac_mid=`expr 2 '*' $ac_mid`
10242fi
10243
10244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10245  done
10246else
10247  echo "$as_me: failed program was:" >&5
10248sed 's/^/| /' conftest.$ac_ext >&5
10249
10250	ac_lo= ac_hi=
10251fi
10252
10253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10254fi
10255
10256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10257# Binary search between lo and hi bounds.
10258while test "x$ac_lo" != "x$ac_hi"; do
10259  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10260  cat >conftest.$ac_ext <<_ACEOF
10261/* confdefs.h.  */
10262_ACEOF
10263cat confdefs.h >>conftest.$ac_ext
10264cat >>conftest.$ac_ext <<_ACEOF
10265/* end confdefs.h.  */
10266$ac_includes_default
10267   typedef bool ac__type_sizeof_;
10268int
10269main ()
10270{
10271static int test_array @<:@1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)@:>@;
10272test_array @<:@0@:>@ = 0
10273
10274  ;
10275  return 0;
10276}
10277_ACEOF
10278rm -f conftest.$ac_objext
10279if { (ac_try="$ac_compile"
10280case "(($ac_try" in
10281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282  *) ac_try_echo=$ac_try;;
10283esac
10284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285  (eval "$ac_compile") 2>conftest.er1
10286  ac_status=$?
10287  grep -v '^ *+' conftest.er1 >conftest.err
10288  rm -f conftest.er1
10289  cat conftest.err >&5
10290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291  (exit $ac_status); } && {
10292	 test -z "$ac_cxx_werror_flag" ||
10293	 test ! -s conftest.err
10294       } && test -s conftest.$ac_objext; then
10295  ac_hi=$ac_mid
10296else
10297  echo "$as_me: failed program was:" >&5
10298sed 's/^/| /' conftest.$ac_ext >&5
10299
10300	ac_lo=`expr '(' $ac_mid ')' + 1`
10301fi
10302
10303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10304done
10305case $ac_lo in
10306?*) ac_cv_sizeof_bool=$ac_lo;;
10307'') if test "$ac_cv_type_bool" = yes; then
10308     { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool)
10309See \`config.log' for more details." >&5
10310echo "$as_me: error: cannot compute sizeof (bool)
10311See \`config.log' for more details." >&2;}
10312   { (exit 77); exit 77; }; }
10313   else
10314     ac_cv_sizeof_bool=0
10315   fi ;;
10316esac
10317else
10318  cat >conftest.$ac_ext <<_ACEOF
10319/* confdefs.h.  */
10320_ACEOF
10321cat confdefs.h >>conftest.$ac_ext
10322cat >>conftest.$ac_ext <<_ACEOF
10323/* end confdefs.h.  */
10324$ac_includes_default
10325   typedef bool ac__type_sizeof_;
10326static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10327static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10328@%:@include <stdio.h>
10329@%:@include <stdlib.h>
10330int
10331main ()
10332{
10333
10334  FILE *f = fopen ("conftest.val", "w");
10335  if (! f)
10336    return 1;
10337  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10338    {
10339      long int i = longval ();
10340      if (i != ((long int) (sizeof (ac__type_sizeof_))))
10341	return 1;
10342      fprintf (f, "%ld\n", i);
10343    }
10344  else
10345    {
10346      unsigned long int i = ulongval ();
10347      if (i != ((long int) (sizeof (ac__type_sizeof_))))
10348	return 1;
10349      fprintf (f, "%lu\n", i);
10350    }
10351  return ferror (f) || fclose (f) != 0;
10352
10353  ;
10354  return 0;
10355}
10356_ACEOF
10357rm -f conftest$ac_exeext
10358if { (ac_try="$ac_link"
10359case "(($ac_try" in
10360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361  *) ac_try_echo=$ac_try;;
10362esac
10363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364  (eval "$ac_link") 2>&5
10365  ac_status=$?
10366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10368  { (case "(($ac_try" in
10369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370  *) ac_try_echo=$ac_try;;
10371esac
10372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373  (eval "$ac_try") 2>&5
10374  ac_status=$?
10375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376  (exit $ac_status); }; }; then
10377  ac_cv_sizeof_bool=`cat conftest.val`
10378else
10379  echo "$as_me: program exited with status $ac_status" >&5
10380echo "$as_me: failed program was:" >&5
10381sed 's/^/| /' conftest.$ac_ext >&5
10382
10383( exit $ac_status )
10384if test "$ac_cv_type_bool" = yes; then
10385     { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool)
10386See \`config.log' for more details." >&5
10387echo "$as_me: error: cannot compute sizeof (bool)
10388See \`config.log' for more details." >&2;}
10389   { (exit 77); exit 77; }; }
10390   else
10391     ac_cv_sizeof_bool=0
10392   fi
10393fi
10394rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10395fi
10396rm -f conftest.val
10397fi
10398{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_bool" >&5
10399echo "${ECHO_T}$ac_cv_sizeof_bool" >&6; }
10400
10401
10402
10403cat >>confdefs.h <<_ACEOF
10404@%:@define SIZEOF_BOOL $ac_cv_sizeof_bool
10405_ACEOF
10406
10407
10408ac_ext=cpp
10409ac_cpp='$CXXCPP $CPPFLAGS'
10410ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10411ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10412ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10413
10414
10415{ echo "$as_me:$LINENO: checking for fpos_t.__pos" >&5
10416echo $ECHO_N "checking for fpos_t.__pos... $ECHO_C" >&6; }
10417if test "${ac_cv_member_fpos_t___pos+set}" = set; then
10418  echo $ECHO_N "(cached) $ECHO_C" >&6
10419else
10420  cat >conftest.$ac_ext <<_ACEOF
10421/* confdefs.h.  */
10422_ACEOF
10423cat confdefs.h >>conftest.$ac_ext
10424cat >>conftest.$ac_ext <<_ACEOF
10425/* end confdefs.h.  */
10426#include <stdio.h>
10427
10428int
10429main ()
10430{
10431static fpos_t ac_aggr;
10432if (ac_aggr.__pos)
10433return 0;
10434  ;
10435  return 0;
10436}
10437_ACEOF
10438rm -f conftest.$ac_objext
10439if { (ac_try="$ac_compile"
10440case "(($ac_try" in
10441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442  *) ac_try_echo=$ac_try;;
10443esac
10444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445  (eval "$ac_compile") 2>conftest.er1
10446  ac_status=$?
10447  grep -v '^ *+' conftest.er1 >conftest.err
10448  rm -f conftest.er1
10449  cat conftest.err >&5
10450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451  (exit $ac_status); } && {
10452	 test -z "$ac_cxx_werror_flag" ||
10453	 test ! -s conftest.err
10454       } && test -s conftest.$ac_objext; then
10455  ac_cv_member_fpos_t___pos=yes
10456else
10457  echo "$as_me: failed program was:" >&5
10458sed 's/^/| /' conftest.$ac_ext >&5
10459
10460	cat >conftest.$ac_ext <<_ACEOF
10461/* confdefs.h.  */
10462_ACEOF
10463cat confdefs.h >>conftest.$ac_ext
10464cat >>conftest.$ac_ext <<_ACEOF
10465/* end confdefs.h.  */
10466#include <stdio.h>
10467
10468int
10469main ()
10470{
10471static fpos_t ac_aggr;
10472if (sizeof ac_aggr.__pos)
10473return 0;
10474  ;
10475  return 0;
10476}
10477_ACEOF
10478rm -f conftest.$ac_objext
10479if { (ac_try="$ac_compile"
10480case "(($ac_try" in
10481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482  *) ac_try_echo=$ac_try;;
10483esac
10484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485  (eval "$ac_compile") 2>conftest.er1
10486  ac_status=$?
10487  grep -v '^ *+' conftest.er1 >conftest.err
10488  rm -f conftest.er1
10489  cat conftest.err >&5
10490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491  (exit $ac_status); } && {
10492	 test -z "$ac_cxx_werror_flag" ||
10493	 test ! -s conftest.err
10494       } && test -s conftest.$ac_objext; then
10495  ac_cv_member_fpos_t___pos=yes
10496else
10497  echo "$as_me: failed program was:" >&5
10498sed 's/^/| /' conftest.$ac_ext >&5
10499
10500	ac_cv_member_fpos_t___pos=no
10501fi
10502
10503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10504fi
10505
10506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10507fi
10508{ echo "$as_me:$LINENO: result: $ac_cv_member_fpos_t___pos" >&5
10509echo "${ECHO_T}$ac_cv_member_fpos_t___pos" >&6; }
10510if test $ac_cv_member_fpos_t___pos = yes; then
10511
10512cat >>confdefs.h <<_ACEOF
10513@%:@define HAVE_FPOS_T___POS 1
10514_ACEOF
10515
10516
10517fi
10518
10519
10520
10521
10522
10523
10524
10525
10526for ac_header in fcntl.h unistd.h stdint.h inttypes.h getopt.h byteswap.h
10527do
10528as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10530  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10532if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10533  echo $ECHO_N "(cached) $ECHO_C" >&6
10534fi
10535ac_res=`eval echo '${'$as_ac_Header'}'`
10536	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10537echo "${ECHO_T}$ac_res" >&6; }
10538else
10539  # Is the header compilable?
10540{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10542cat >conftest.$ac_ext <<_ACEOF
10543/* confdefs.h.  */
10544_ACEOF
10545cat confdefs.h >>conftest.$ac_ext
10546cat >>conftest.$ac_ext <<_ACEOF
10547/* end confdefs.h.  */
10548$ac_includes_default
10549@%:@include <$ac_header>
10550_ACEOF
10551rm -f conftest.$ac_objext
10552if { (ac_try="$ac_compile"
10553case "(($ac_try" in
10554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555  *) ac_try_echo=$ac_try;;
10556esac
10557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10558  (eval "$ac_compile") 2>conftest.er1
10559  ac_status=$?
10560  grep -v '^ *+' conftest.er1 >conftest.err
10561  rm -f conftest.er1
10562  cat conftest.err >&5
10563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564  (exit $ac_status); } && {
10565	 test -z "$ac_cxx_werror_flag" ||
10566	 test ! -s conftest.err
10567       } && test -s conftest.$ac_objext; then
10568  ac_header_compiler=yes
10569else
10570  echo "$as_me: failed program was:" >&5
10571sed 's/^/| /' conftest.$ac_ext >&5
10572
10573	ac_header_compiler=no
10574fi
10575
10576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10577{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10578echo "${ECHO_T}$ac_header_compiler" >&6; }
10579
10580# Is the header present?
10581{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10582echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10583cat >conftest.$ac_ext <<_ACEOF
10584/* confdefs.h.  */
10585_ACEOF
10586cat confdefs.h >>conftest.$ac_ext
10587cat >>conftest.$ac_ext <<_ACEOF
10588/* end confdefs.h.  */
10589@%:@include <$ac_header>
10590_ACEOF
10591if { (ac_try="$ac_cpp conftest.$ac_ext"
10592case "(($ac_try" in
10593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594  *) ac_try_echo=$ac_try;;
10595esac
10596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10598  ac_status=$?
10599  grep -v '^ *+' conftest.er1 >conftest.err
10600  rm -f conftest.er1
10601  cat conftest.err >&5
10602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603  (exit $ac_status); } >/dev/null && {
10604	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10605	 test ! -s conftest.err
10606       }; then
10607  ac_header_preproc=yes
10608else
10609  echo "$as_me: failed program was:" >&5
10610sed 's/^/| /' conftest.$ac_ext >&5
10611
10612  ac_header_preproc=no
10613fi
10614
10615rm -f conftest.err conftest.$ac_ext
10616{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10617echo "${ECHO_T}$ac_header_preproc" >&6; }
10618
10619# So?  What about this header?
10620case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10621  yes:no: )
10622    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10623echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10624    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10625echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10626    ac_header_preproc=yes
10627    ;;
10628  no:yes:* )
10629    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10630echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10631    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10632echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10633    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10634echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10635    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10636echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10637    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10638echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10639    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10640echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10641
10642    ;;
10643esac
10644{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10647  echo $ECHO_N "(cached) $ECHO_C" >&6
10648else
10649  eval "$as_ac_Header=\$ac_header_preproc"
10650fi
10651ac_res=`eval echo '${'$as_ac_Header'}'`
10652	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10653echo "${ECHO_T}$ac_res" >&6; }
10654
10655fi
10656if test `eval echo '${'$as_ac_Header'}'` = yes; then
10657  cat >>confdefs.h <<_ACEOF
10658@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10659_ACEOF
10660
10661fi
10662
10663done
10664
10665
10666
10667
10668for ac_header in linux/cdrom.h sys/dvdio.h sys/time.h
10669do
10670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10672  { echo "$as_me:$LINENO: checking for $ac_header" >&5
10673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10675  echo $ECHO_N "(cached) $ECHO_C" >&6
10676fi
10677ac_res=`eval echo '${'$as_ac_Header'}'`
10678	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10679echo "${ECHO_T}$ac_res" >&6; }
10680else
10681  # Is the header compilable?
10682{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10684cat >conftest.$ac_ext <<_ACEOF
10685/* confdefs.h.  */
10686_ACEOF
10687cat confdefs.h >>conftest.$ac_ext
10688cat >>conftest.$ac_ext <<_ACEOF
10689/* end confdefs.h.  */
10690$ac_includes_default
10691@%:@include <$ac_header>
10692_ACEOF
10693rm -f conftest.$ac_objext
10694if { (ac_try="$ac_compile"
10695case "(($ac_try" in
10696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697  *) ac_try_echo=$ac_try;;
10698esac
10699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10700  (eval "$ac_compile") 2>conftest.er1
10701  ac_status=$?
10702  grep -v '^ *+' conftest.er1 >conftest.err
10703  rm -f conftest.er1
10704  cat conftest.err >&5
10705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706  (exit $ac_status); } && {
10707	 test -z "$ac_cxx_werror_flag" ||
10708	 test ! -s conftest.err
10709       } && test -s conftest.$ac_objext; then
10710  ac_header_compiler=yes
10711else
10712  echo "$as_me: failed program was:" >&5
10713sed 's/^/| /' conftest.$ac_ext >&5
10714
10715	ac_header_compiler=no
10716fi
10717
10718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10719{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10720echo "${ECHO_T}$ac_header_compiler" >&6; }
10721
10722# Is the header present?
10723{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10724echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10725cat >conftest.$ac_ext <<_ACEOF
10726/* confdefs.h.  */
10727_ACEOF
10728cat confdefs.h >>conftest.$ac_ext
10729cat >>conftest.$ac_ext <<_ACEOF
10730/* end confdefs.h.  */
10731@%:@include <$ac_header>
10732_ACEOF
10733if { (ac_try="$ac_cpp conftest.$ac_ext"
10734case "(($ac_try" in
10735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736  *) ac_try_echo=$ac_try;;
10737esac
10738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10740  ac_status=$?
10741  grep -v '^ *+' conftest.er1 >conftest.err
10742  rm -f conftest.er1
10743  cat conftest.err >&5
10744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745  (exit $ac_status); } >/dev/null && {
10746	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10747	 test ! -s conftest.err
10748       }; then
10749  ac_header_preproc=yes
10750else
10751  echo "$as_me: failed program was:" >&5
10752sed 's/^/| /' conftest.$ac_ext >&5
10753
10754  ac_header_preproc=no
10755fi
10756
10757rm -f conftest.err conftest.$ac_ext
10758{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10759echo "${ECHO_T}$ac_header_preproc" >&6; }
10760
10761# So?  What about this header?
10762case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10763  yes:no: )
10764    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10765echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10766    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10767echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10768    ac_header_preproc=yes
10769    ;;
10770  no:yes:* )
10771    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10773    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10774echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10775    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10776echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10777    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10778echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10779    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10781    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10782echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10783
10784    ;;
10785esac
10786{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10789  echo $ECHO_N "(cached) $ECHO_C" >&6
10790else
10791  eval "$as_ac_Header=\$ac_header_preproc"
10792fi
10793ac_res=`eval echo '${'$as_ac_Header'}'`
10794	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10795echo "${ECHO_T}$ac_res" >&6; }
10796
10797fi
10798if test `eval echo '${'$as_ac_Header'}'` = yes; then
10799  cat >>confdefs.h <<_ACEOF
10800@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10801_ACEOF
10802
10803fi
10804
10805done
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818for ac_func in strerror strcasestr poll getopt getopt_long getopt_long_only getrusage socketpair strsep inet_ntoa
10819do
10820as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10821{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10823if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10824  echo $ECHO_N "(cached) $ECHO_C" >&6
10825else
10826  cat >conftest.$ac_ext <<_ACEOF
10827/* confdefs.h.  */
10828_ACEOF
10829cat confdefs.h >>conftest.$ac_ext
10830cat >>conftest.$ac_ext <<_ACEOF
10831/* end confdefs.h.  */
10832/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10833   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10834#define $ac_func innocuous_$ac_func
10835
10836/* System header to define __stub macros and hopefully few prototypes,
10837    which can conflict with char $ac_func (); below.
10838    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10839    <limits.h> exists even on freestanding compilers.  */
10840
10841#ifdef __STDC__
10842# include <limits.h>
10843#else
10844# include <assert.h>
10845#endif
10846
10847#undef $ac_func
10848
10849/* Override any GCC internal prototype to avoid an error.
10850   Use char because int might match the return type of a GCC
10851   builtin and then its argument prototype would still apply.  */
10852#ifdef __cplusplus
10853extern "C"
10854#endif
10855char $ac_func ();
10856/* The GNU C library defines this for functions which it implements
10857    to always fail with ENOSYS.  Some functions are actually named
10858    something starting with __ and the normal name is an alias.  */
10859#if defined __stub_$ac_func || defined __stub___$ac_func
10860choke me
10861#endif
10862
10863int
10864main ()
10865{
10866return $ac_func ();
10867  ;
10868  return 0;
10869}
10870_ACEOF
10871rm -f conftest.$ac_objext conftest$ac_exeext
10872if { (ac_try="$ac_link"
10873case "(($ac_try" in
10874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875  *) ac_try_echo=$ac_try;;
10876esac
10877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878  (eval "$ac_link") 2>conftest.er1
10879  ac_status=$?
10880  grep -v '^ *+' conftest.er1 >conftest.err
10881  rm -f conftest.er1
10882  cat conftest.err >&5
10883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884  (exit $ac_status); } && {
10885	 test -z "$ac_cxx_werror_flag" ||
10886	 test ! -s conftest.err
10887       } && test -s conftest$ac_exeext &&
10888       $as_test_x conftest$ac_exeext; then
10889  eval "$as_ac_var=yes"
10890else
10891  echo "$as_me: failed program was:" >&5
10892sed 's/^/| /' conftest.$ac_ext >&5
10893
10894	eval "$as_ac_var=no"
10895fi
10896
10897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10898      conftest$ac_exeext conftest.$ac_ext
10899fi
10900ac_res=`eval echo '${'$as_ac_var'}'`
10901	       { echo "$as_me:$LINENO: result: $ac_res" >&5
10902echo "${ECHO_T}$ac_res" >&6; }
10903if test `eval echo '${'$as_ac_var'}'` = yes; then
10904  cat >>confdefs.h <<_ACEOF
10905@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10906_ACEOF
10907
10908fi
10909done
10910
10911
10912
10913{ echo "$as_me:$LINENO: checking for in_port_t" >&5
10914echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
10915if test "${ac_cv_type_in_port_t+set}" = set; then
10916  echo $ECHO_N "(cached) $ECHO_C" >&6
10917else
10918  cat >conftest.$ac_ext <<_ACEOF
10919/* confdefs.h.  */
10920_ACEOF
10921cat confdefs.h >>conftest.$ac_ext
10922cat >>conftest.$ac_ext <<_ACEOF
10923/* end confdefs.h.  */
10924#include <sys/types.h>
10925	 #include <sys/socket.h>
10926	 #include <netinet/in.h>
10927
10928typedef in_port_t ac__type_new_;
10929int
10930main ()
10931{
10932if ((ac__type_new_ *) 0)
10933  return 0;
10934if (sizeof (ac__type_new_))
10935  return 0;
10936  ;
10937  return 0;
10938}
10939_ACEOF
10940rm -f conftest.$ac_objext
10941if { (ac_try="$ac_compile"
10942case "(($ac_try" in
10943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944  *) ac_try_echo=$ac_try;;
10945esac
10946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947  (eval "$ac_compile") 2>conftest.er1
10948  ac_status=$?
10949  grep -v '^ *+' conftest.er1 >conftest.err
10950  rm -f conftest.er1
10951  cat conftest.err >&5
10952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953  (exit $ac_status); } && {
10954	 test -z "$ac_cxx_werror_flag" ||
10955	 test ! -s conftest.err
10956       } && test -s conftest.$ac_objext; then
10957  ac_cv_type_in_port_t=yes
10958else
10959  echo "$as_me: failed program was:" >&5
10960sed 's/^/| /' conftest.$ac_ext >&5
10961
10962	ac_cv_type_in_port_t=no
10963fi
10964
10965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10966fi
10967{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
10968echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
10969if test $ac_cv_type_in_port_t = yes; then
10970
10971cat >>confdefs.h <<_ACEOF
10972@%:@define HAVE_IN_PORT_T 1
10973_ACEOF
10974
10975
10976fi
10977{ echo "$as_me:$LINENO: checking for socklen_t" >&5
10978echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
10979if test "${ac_cv_type_socklen_t+set}" = set; then
10980  echo $ECHO_N "(cached) $ECHO_C" >&6
10981else
10982  cat >conftest.$ac_ext <<_ACEOF
10983/* confdefs.h.  */
10984_ACEOF
10985cat confdefs.h >>conftest.$ac_ext
10986cat >>conftest.$ac_ext <<_ACEOF
10987/* end confdefs.h.  */
10988#include <sys/types.h>
10989	 #include <sys/socket.h>
10990	 #include <netinet/in.h>
10991
10992typedef socklen_t ac__type_new_;
10993int
10994main ()
10995{
10996if ((ac__type_new_ *) 0)
10997  return 0;
10998if (sizeof (ac__type_new_))
10999  return 0;
11000  ;
11001  return 0;
11002}
11003_ACEOF
11004rm -f conftest.$ac_objext
11005if { (ac_try="$ac_compile"
11006case "(($ac_try" in
11007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008  *) ac_try_echo=$ac_try;;
11009esac
11010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011  (eval "$ac_compile") 2>conftest.er1
11012  ac_status=$?
11013  grep -v '^ *+' conftest.er1 >conftest.err
11014  rm -f conftest.er1
11015  cat conftest.err >&5
11016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017  (exit $ac_status); } && {
11018	 test -z "$ac_cxx_werror_flag" ||
11019	 test ! -s conftest.err
11020       } && test -s conftest.$ac_objext; then
11021  ac_cv_type_socklen_t=yes
11022else
11023  echo "$as_me: failed program was:" >&5
11024sed 's/^/| /' conftest.$ac_ext >&5
11025
11026	ac_cv_type_socklen_t=no
11027fi
11028
11029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11030fi
11031{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
11032echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
11033if test $ac_cv_type_socklen_t = yes; then
11034
11035cat >>confdefs.h <<_ACEOF
11036@%:@define HAVE_SOCKLEN_T 1
11037_ACEOF
11038
11039
11040fi
11041
11042
11043
11044
11045{ echo "$as_me:$LINENO: checking for uint8_t" >&5
11046echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
11047if test "${ac_cv_type_uint8_t+set}" = set; then
11048  echo $ECHO_N "(cached) $ECHO_C" >&6
11049else
11050  cat >conftest.$ac_ext <<_ACEOF
11051/* confdefs.h.  */
11052_ACEOF
11053cat confdefs.h >>conftest.$ac_ext
11054cat >>conftest.$ac_ext <<_ACEOF
11055/* end confdefs.h.  */
11056$ac_includes_default
11057typedef uint8_t ac__type_new_;
11058int
11059main ()
11060{
11061if ((ac__type_new_ *) 0)
11062  return 0;
11063if (sizeof (ac__type_new_))
11064  return 0;
11065  ;
11066  return 0;
11067}
11068_ACEOF
11069rm -f conftest.$ac_objext
11070if { (ac_try="$ac_compile"
11071case "(($ac_try" in
11072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073  *) ac_try_echo=$ac_try;;
11074esac
11075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076  (eval "$ac_compile") 2>conftest.er1
11077  ac_status=$?
11078  grep -v '^ *+' conftest.er1 >conftest.err
11079  rm -f conftest.er1
11080  cat conftest.err >&5
11081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082  (exit $ac_status); } && {
11083	 test -z "$ac_cxx_werror_flag" ||
11084	 test ! -s conftest.err
11085       } && test -s conftest.$ac_objext; then
11086  ac_cv_type_uint8_t=yes
11087else
11088  echo "$as_me: failed program was:" >&5
11089sed 's/^/| /' conftest.$ac_ext >&5
11090
11091	ac_cv_type_uint8_t=no
11092fi
11093
11094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095fi
11096{ echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11097echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
11098if test $ac_cv_type_uint8_t = yes; then
11099
11100cat >>confdefs.h <<_ACEOF
11101@%:@define HAVE_UINT8_T 1
11102_ACEOF
11103
11104
11105fi
11106{ echo "$as_me:$LINENO: checking for int8_t" >&5
11107echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
11108if test "${ac_cv_type_int8_t+set}" = set; then
11109  echo $ECHO_N "(cached) $ECHO_C" >&6
11110else
11111  cat >conftest.$ac_ext <<_ACEOF
11112/* confdefs.h.  */
11113_ACEOF
11114cat confdefs.h >>conftest.$ac_ext
11115cat >>conftest.$ac_ext <<_ACEOF
11116/* end confdefs.h.  */
11117$ac_includes_default
11118typedef int8_t ac__type_new_;
11119int
11120main ()
11121{
11122if ((ac__type_new_ *) 0)
11123  return 0;
11124if (sizeof (ac__type_new_))
11125  return 0;
11126  ;
11127  return 0;
11128}
11129_ACEOF
11130rm -f conftest.$ac_objext
11131if { (ac_try="$ac_compile"
11132case "(($ac_try" in
11133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134  *) ac_try_echo=$ac_try;;
11135esac
11136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137  (eval "$ac_compile") 2>conftest.er1
11138  ac_status=$?
11139  grep -v '^ *+' conftest.er1 >conftest.err
11140  rm -f conftest.er1
11141  cat conftest.err >&5
11142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143  (exit $ac_status); } && {
11144	 test -z "$ac_cxx_werror_flag" ||
11145	 test ! -s conftest.err
11146       } && test -s conftest.$ac_objext; then
11147  ac_cv_type_int8_t=yes
11148else
11149  echo "$as_me: failed program was:" >&5
11150sed 's/^/| /' conftest.$ac_ext >&5
11151
11152	ac_cv_type_int8_t=no
11153fi
11154
11155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11156fi
11157{ echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11158echo "${ECHO_T}$ac_cv_type_int8_t" >&6; }
11159if test $ac_cv_type_int8_t = yes; then
11160
11161cat >>confdefs.h <<_ACEOF
11162@%:@define HAVE_INT8_T 1
11163_ACEOF
11164
11165
11166fi
11167{ echo "$as_me:$LINENO: checking for uint16_t" >&5
11168echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
11169if test "${ac_cv_type_uint16_t+set}" = set; then
11170  echo $ECHO_N "(cached) $ECHO_C" >&6
11171else
11172  cat >conftest.$ac_ext <<_ACEOF
11173/* confdefs.h.  */
11174_ACEOF
11175cat confdefs.h >>conftest.$ac_ext
11176cat >>conftest.$ac_ext <<_ACEOF
11177/* end confdefs.h.  */
11178$ac_includes_default
11179typedef uint16_t ac__type_new_;
11180int
11181main ()
11182{
11183if ((ac__type_new_ *) 0)
11184  return 0;
11185if (sizeof (ac__type_new_))
11186  return 0;
11187  ;
11188  return 0;
11189}
11190_ACEOF
11191rm -f conftest.$ac_objext
11192if { (ac_try="$ac_compile"
11193case "(($ac_try" in
11194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195  *) ac_try_echo=$ac_try;;
11196esac
11197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11198  (eval "$ac_compile") 2>conftest.er1
11199  ac_status=$?
11200  grep -v '^ *+' conftest.er1 >conftest.err
11201  rm -f conftest.er1
11202  cat conftest.err >&5
11203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204  (exit $ac_status); } && {
11205	 test -z "$ac_cxx_werror_flag" ||
11206	 test ! -s conftest.err
11207       } && test -s conftest.$ac_objext; then
11208  ac_cv_type_uint16_t=yes
11209else
11210  echo "$as_me: failed program was:" >&5
11211sed 's/^/| /' conftest.$ac_ext >&5
11212
11213	ac_cv_type_uint16_t=no
11214fi
11215
11216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11217fi
11218{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11219echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
11220if test $ac_cv_type_uint16_t = yes; then
11221
11222cat >>confdefs.h <<_ACEOF
11223@%:@define HAVE_UINT16_T 1
11224_ACEOF
11225
11226
11227fi
11228{ echo "$as_me:$LINENO: checking for int16_t" >&5
11229echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
11230if test "${ac_cv_type_int16_t+set}" = set; then
11231  echo $ECHO_N "(cached) $ECHO_C" >&6
11232else
11233  cat >conftest.$ac_ext <<_ACEOF
11234/* confdefs.h.  */
11235_ACEOF
11236cat confdefs.h >>conftest.$ac_ext
11237cat >>conftest.$ac_ext <<_ACEOF
11238/* end confdefs.h.  */
11239$ac_includes_default
11240typedef int16_t ac__type_new_;
11241int
11242main ()
11243{
11244if ((ac__type_new_ *) 0)
11245  return 0;
11246if (sizeof (ac__type_new_))
11247  return 0;
11248  ;
11249  return 0;
11250}
11251_ACEOF
11252rm -f conftest.$ac_objext
11253if { (ac_try="$ac_compile"
11254case "(($ac_try" in
11255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256  *) ac_try_echo=$ac_try;;
11257esac
11258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259  (eval "$ac_compile") 2>conftest.er1
11260  ac_status=$?
11261  grep -v '^ *+' conftest.er1 >conftest.err
11262  rm -f conftest.er1
11263  cat conftest.err >&5
11264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265  (exit $ac_status); } && {
11266	 test -z "$ac_cxx_werror_flag" ||
11267	 test ! -s conftest.err
11268       } && test -s conftest.$ac_objext; then
11269  ac_cv_type_int16_t=yes
11270else
11271  echo "$as_me: failed program was:" >&5
11272sed 's/^/| /' conftest.$ac_ext >&5
11273
11274	ac_cv_type_int16_t=no
11275fi
11276
11277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11278fi
11279{ echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11280echo "${ECHO_T}$ac_cv_type_int16_t" >&6; }
11281if test $ac_cv_type_int16_t = yes; then
11282
11283cat >>confdefs.h <<_ACEOF
11284@%:@define HAVE_INT16_T 1
11285_ACEOF
11286
11287
11288fi
11289{ echo "$as_me:$LINENO: checking for uint32_t" >&5
11290echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
11291if test "${ac_cv_type_uint32_t+set}" = set; then
11292  echo $ECHO_N "(cached) $ECHO_C" >&6
11293else
11294  cat >conftest.$ac_ext <<_ACEOF
11295/* confdefs.h.  */
11296_ACEOF
11297cat confdefs.h >>conftest.$ac_ext
11298cat >>conftest.$ac_ext <<_ACEOF
11299/* end confdefs.h.  */
11300$ac_includes_default
11301typedef uint32_t ac__type_new_;
11302int
11303main ()
11304{
11305if ((ac__type_new_ *) 0)
11306  return 0;
11307if (sizeof (ac__type_new_))
11308  return 0;
11309  ;
11310  return 0;
11311}
11312_ACEOF
11313rm -f conftest.$ac_objext
11314if { (ac_try="$ac_compile"
11315case "(($ac_try" in
11316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317  *) ac_try_echo=$ac_try;;
11318esac
11319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320  (eval "$ac_compile") 2>conftest.er1
11321  ac_status=$?
11322  grep -v '^ *+' conftest.er1 >conftest.err
11323  rm -f conftest.er1
11324  cat conftest.err >&5
11325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326  (exit $ac_status); } && {
11327	 test -z "$ac_cxx_werror_flag" ||
11328	 test ! -s conftest.err
11329       } && test -s conftest.$ac_objext; then
11330  ac_cv_type_uint32_t=yes
11331else
11332  echo "$as_me: failed program was:" >&5
11333sed 's/^/| /' conftest.$ac_ext >&5
11334
11335	ac_cv_type_uint32_t=no
11336fi
11337
11338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11339fi
11340{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11341echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
11342if test $ac_cv_type_uint32_t = yes; then
11343
11344cat >>confdefs.h <<_ACEOF
11345@%:@define HAVE_UINT32_T 1
11346_ACEOF
11347
11348
11349fi
11350{ echo "$as_me:$LINENO: checking for int32_t" >&5
11351echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
11352if test "${ac_cv_type_int32_t+set}" = set; then
11353  echo $ECHO_N "(cached) $ECHO_C" >&6
11354else
11355  cat >conftest.$ac_ext <<_ACEOF
11356/* confdefs.h.  */
11357_ACEOF
11358cat confdefs.h >>conftest.$ac_ext
11359cat >>conftest.$ac_ext <<_ACEOF
11360/* end confdefs.h.  */
11361$ac_includes_default
11362typedef int32_t ac__type_new_;
11363int
11364main ()
11365{
11366if ((ac__type_new_ *) 0)
11367  return 0;
11368if (sizeof (ac__type_new_))
11369  return 0;
11370  ;
11371  return 0;
11372}
11373_ACEOF
11374rm -f conftest.$ac_objext
11375if { (ac_try="$ac_compile"
11376case "(($ac_try" in
11377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11378  *) ac_try_echo=$ac_try;;
11379esac
11380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381  (eval "$ac_compile") 2>conftest.er1
11382  ac_status=$?
11383  grep -v '^ *+' conftest.er1 >conftest.err
11384  rm -f conftest.er1
11385  cat conftest.err >&5
11386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387  (exit $ac_status); } && {
11388	 test -z "$ac_cxx_werror_flag" ||
11389	 test ! -s conftest.err
11390       } && test -s conftest.$ac_objext; then
11391  ac_cv_type_int32_t=yes
11392else
11393  echo "$as_me: failed program was:" >&5
11394sed 's/^/| /' conftest.$ac_ext >&5
11395
11396	ac_cv_type_int32_t=no
11397fi
11398
11399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11400fi
11401{ echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11402echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
11403if test $ac_cv_type_int32_t = yes; then
11404
11405cat >>confdefs.h <<_ACEOF
11406@%:@define HAVE_INT32_T 1
11407_ACEOF
11408
11409
11410fi
11411{ echo "$as_me:$LINENO: checking for uint64_t" >&5
11412echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
11413if test "${ac_cv_type_uint64_t+set}" = set; then
11414  echo $ECHO_N "(cached) $ECHO_C" >&6
11415else
11416  cat >conftest.$ac_ext <<_ACEOF
11417/* confdefs.h.  */
11418_ACEOF
11419cat confdefs.h >>conftest.$ac_ext
11420cat >>conftest.$ac_ext <<_ACEOF
11421/* end confdefs.h.  */
11422$ac_includes_default
11423typedef uint64_t ac__type_new_;
11424int
11425main ()
11426{
11427if ((ac__type_new_ *) 0)
11428  return 0;
11429if (sizeof (ac__type_new_))
11430  return 0;
11431  ;
11432  return 0;
11433}
11434_ACEOF
11435rm -f conftest.$ac_objext
11436if { (ac_try="$ac_compile"
11437case "(($ac_try" in
11438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439  *) ac_try_echo=$ac_try;;
11440esac
11441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442  (eval "$ac_compile") 2>conftest.er1
11443  ac_status=$?
11444  grep -v '^ *+' conftest.er1 >conftest.err
11445  rm -f conftest.er1
11446  cat conftest.err >&5
11447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448  (exit $ac_status); } && {
11449	 test -z "$ac_cxx_werror_flag" ||
11450	 test ! -s conftest.err
11451       } && test -s conftest.$ac_objext; then
11452  ac_cv_type_uint64_t=yes
11453else
11454  echo "$as_me: failed program was:" >&5
11455sed 's/^/| /' conftest.$ac_ext >&5
11456
11457	ac_cv_type_uint64_t=no
11458fi
11459
11460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11461fi
11462{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11463echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
11464if test $ac_cv_type_uint64_t = yes; then
11465
11466cat >>confdefs.h <<_ACEOF
11467@%:@define HAVE_UINT64_T 1
11468_ACEOF
11469
11470
11471fi
11472{ echo "$as_me:$LINENO: checking for int64_t" >&5
11473echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
11474if test "${ac_cv_type_int64_t+set}" = set; then
11475  echo $ECHO_N "(cached) $ECHO_C" >&6
11476else
11477  cat >conftest.$ac_ext <<_ACEOF
11478/* confdefs.h.  */
11479_ACEOF
11480cat confdefs.h >>conftest.$ac_ext
11481cat >>conftest.$ac_ext <<_ACEOF
11482/* end confdefs.h.  */
11483$ac_includes_default
11484typedef int64_t ac__type_new_;
11485int
11486main ()
11487{
11488if ((ac__type_new_ *) 0)
11489  return 0;
11490if (sizeof (ac__type_new_))
11491  return 0;
11492  ;
11493  return 0;
11494}
11495_ACEOF
11496rm -f conftest.$ac_objext
11497if { (ac_try="$ac_compile"
11498case "(($ac_try" in
11499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500  *) ac_try_echo=$ac_try;;
11501esac
11502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503  (eval "$ac_compile") 2>conftest.er1
11504  ac_status=$?
11505  grep -v '^ *+' conftest.er1 >conftest.err
11506  rm -f conftest.er1
11507  cat conftest.err >&5
11508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509  (exit $ac_status); } && {
11510	 test -z "$ac_cxx_werror_flag" ||
11511	 test ! -s conftest.err
11512       } && test -s conftest.$ac_objext; then
11513  ac_cv_type_int64_t=yes
11514else
11515  echo "$as_me: failed program was:" >&5
11516sed 's/^/| /' conftest.$ac_ext >&5
11517
11518	ac_cv_type_int64_t=no
11519fi
11520
11521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11522fi
11523{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11524echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
11525if test $ac_cv_type_int64_t = yes; then
11526
11527cat >>confdefs.h <<_ACEOF
11528@%:@define HAVE_INT64_T 1
11529_ACEOF
11530
11531
11532fi
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547if test "$ac_cv_sizeof_unsigned_short" = "4";
11548then
11549	cat >>confdefs.h <<\_ACEOF
11550@%:@define A_UINT32_T unsigned short
11551_ACEOF
11552
11553elif test "$ac_cv_sizeof_unsigned_int" = "4"
11554then
11555	cat >>confdefs.h <<\_ACEOF
11556@%:@define A_UINT32_T unsigned int
11557_ACEOF
11558
11559elif test "$ac_cv_sizeof_unsigned_long" = "4"
11560then
11561	cat >>confdefs.h <<\_ACEOF
11562@%:@define A_UINT32_T unsigned long
11563_ACEOF
11564
11565fi
11566
11567
11568
11569
11570if test "${ac_cv_sizeof_short}" = "4";
11571then
11572	cat >>confdefs.h <<\_ACEOF
11573@%:@define A_INT32_T short
11574_ACEOF
11575
11576elif test "${ac_cv_sizeof_int}" = "4";
11577then
11578	cat >>confdefs.h <<\_ACEOF
11579@%:@define A_INT32_T int
11580_ACEOF
11581
11582elif test "${ac_cv_sizeof_long}" = "4";
11583then
11584	cat >>confdefs.h <<\_ACEOF
11585@%:@define A_INT32_T long
11586_ACEOF
11587
11588fi
11589
11590
11591
11592
11593if test "${ac_cv_sizeof_unsigned_int}" = "8";
11594then
11595	cat >>confdefs.h <<\_ACEOF
11596@%:@define A_UINT64_T unsigned int
11597_ACEOF
11598
11599elif test "${ac_cv_sizeof_unsigned_long}" = "8";
11600then
11601	cat >>confdefs.h <<\_ACEOF
11602@%:@define A_UINT64_T unsigned long
11603_ACEOF
11604
11605elif test "${ac_cv_sizeof_unsigned_long_long}" = "8";
11606then
11607	cat >>confdefs.h <<\_ACEOF
11608@%:@define A_UINT64_T unsigned long long
11609_ACEOF
11610
11611fi
11612
11613
11614
11615
11616if test "${ac_cv_sizeof_int}" = "8";
11617then
11618	cat >>confdefs.h <<\_ACEOF
11619@%:@define A_INT64_T int
11620_ACEOF
11621
11622elif test "${ac_cv_sizeof_long}" = "8";
11623then
11624	cat >>confdefs.h <<\_ACEOF
11625@%:@define A_INT64_T long
11626_ACEOF
11627
11628elif test "${ac_cv_sizeof_long_long}" = "8";
11629then
11630	cat >>confdefs.h <<\_ACEOF
11631@%:@define A_INT64_T long long
11632_ACEOF
11633
11634fi
11635
11636
11637
11638
11639
11640{ echo "$as_me:$LINENO: checking for size_t" >&5
11641echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
11642if test "${ac_cv_type_size_t+set}" = set; then
11643  echo $ECHO_N "(cached) $ECHO_C" >&6
11644else
11645  cat >conftest.$ac_ext <<_ACEOF
11646/* confdefs.h.  */
11647_ACEOF
11648cat confdefs.h >>conftest.$ac_ext
11649cat >>conftest.$ac_ext <<_ACEOF
11650/* end confdefs.h.  */
11651$ac_includes_default
11652typedef size_t ac__type_new_;
11653int
11654main ()
11655{
11656if ((ac__type_new_ *) 0)
11657  return 0;
11658if (sizeof (ac__type_new_))
11659  return 0;
11660  ;
11661  return 0;
11662}
11663_ACEOF
11664rm -f conftest.$ac_objext
11665if { (ac_try="$ac_compile"
11666case "(($ac_try" in
11667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11668  *) ac_try_echo=$ac_try;;
11669esac
11670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671  (eval "$ac_compile") 2>conftest.er1
11672  ac_status=$?
11673  grep -v '^ *+' conftest.er1 >conftest.err
11674  rm -f conftest.er1
11675  cat conftest.err >&5
11676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677  (exit $ac_status); } && {
11678	 test -z "$ac_cxx_werror_flag" ||
11679	 test ! -s conftest.err
11680       } && test -s conftest.$ac_objext; then
11681  ac_cv_type_size_t=yes
11682else
11683  echo "$as_me: failed program was:" >&5
11684sed 's/^/| /' conftest.$ac_ext >&5
11685
11686	ac_cv_type_size_t=no
11687fi
11688
11689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11690fi
11691{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11692echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
11693if test $ac_cv_type_size_t = yes; then
11694  :
11695else
11696
11697cat >>confdefs.h <<_ACEOF
11698@%:@define size_t unsigned int
11699_ACEOF
11700
11701fi
11702
11703
11704# Check whether --enable-shared was given.
11705if test "${enable_shared+set}" = set; then
11706  enableval=$enable_shared; p=${PACKAGE-default}
11707    case $enableval in
11708    yes) enable_shared=yes ;;
11709    no) enable_shared=no ;;
11710    *)
11711      enable_shared=no
11712      # Look at the argument we got.  We use all the common list separators.
11713      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11714      for pkg in $enableval; do
11715	IFS="$lt_save_ifs"
11716	if test "X$pkg" = "X$p"; then
11717	  enable_shared=yes
11718	fi
11719      done
11720      IFS="$lt_save_ifs"
11721      ;;
11722    esac
11723else
11724  enable_shared=yes
11725fi
11726
11727
11728# Check whether --enable-static was given.
11729if test "${enable_static+set}" = set; then
11730  enableval=$enable_static; p=${PACKAGE-default}
11731    case $enableval in
11732    yes) enable_static=yes ;;
11733    no) enable_static=no ;;
11734    *)
11735     enable_static=no
11736      # Look at the argument we got.  We use all the common list separators.
11737      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11738      for pkg in $enableval; do
11739	IFS="$lt_save_ifs"
11740	if test "X$pkg" = "X$p"; then
11741	  enable_static=yes
11742	fi
11743      done
11744      IFS="$lt_save_ifs"
11745      ;;
11746    esac
11747else
11748  enable_static=yes
11749fi
11750
11751
11752# Check whether --enable-fast-install was given.
11753if test "${enable_fast_install+set}" = set; then
11754  enableval=$enable_fast_install; p=${PACKAGE-default}
11755    case $enableval in
11756    yes) enable_fast_install=yes ;;
11757    no) enable_fast_install=no ;;
11758    *)
11759      enable_fast_install=no
11760      # Look at the argument we got.  We use all the common list separators.
11761      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11762      for pkg in $enableval; do
11763	IFS="$lt_save_ifs"
11764	if test "X$pkg" = "X$p"; then
11765	  enable_fast_install=yes
11766	fi
11767      done
11768      IFS="$lt_save_ifs"
11769      ;;
11770    esac
11771else
11772  enable_fast_install=yes
11773fi
11774
11775
11776# Make sure we can run config.sub.
11777$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
11778  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
11779echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
11780   { (exit 1); exit 1; }; }
11781
11782{ echo "$as_me:$LINENO: checking build system type" >&5
11783echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
11784if test "${ac_cv_build+set}" = set; then
11785  echo $ECHO_N "(cached) $ECHO_C" >&6
11786else
11787  ac_build_alias=$build_alias
11788test "x$ac_build_alias" = x &&
11789  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
11790test "x$ac_build_alias" = x &&
11791  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
11792echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
11793   { (exit 1); exit 1; }; }
11794ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
11795  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
11796echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
11797   { (exit 1); exit 1; }; }
11798
11799fi
11800{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
11801echo "${ECHO_T}$ac_cv_build" >&6; }
11802case $ac_cv_build in
11803*-*-*) ;;
11804*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
11805echo "$as_me: error: invalid value of canonical build" >&2;}
11806   { (exit 1); exit 1; }; };;
11807esac
11808build=$ac_cv_build
11809ac_save_IFS=$IFS; IFS='-'
11810set x $ac_cv_build
11811shift
11812build_cpu=$1
11813build_vendor=$2
11814shift; shift
11815# Remember, the first character of IFS is used to create $*,
11816# except with old shells:
11817build_os=$*
11818IFS=$ac_save_IFS
11819case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
11820
11821
11822{ echo "$as_me:$LINENO: checking host system type" >&5
11823echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
11824if test "${ac_cv_host+set}" = set; then
11825  echo $ECHO_N "(cached) $ECHO_C" >&6
11826else
11827  if test "x$host_alias" = x; then
11828  ac_cv_host=$ac_cv_build
11829else
11830  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11831    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11832echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11833   { (exit 1); exit 1; }; }
11834fi
11835
11836fi
11837{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11838echo "${ECHO_T}$ac_cv_host" >&6; }
11839case $ac_cv_host in
11840*-*-*) ;;
11841*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11842echo "$as_me: error: invalid value of canonical host" >&2;}
11843   { (exit 1); exit 1; }; };;
11844esac
11845host=$ac_cv_host
11846ac_save_IFS=$IFS; IFS='-'
11847set x $ac_cv_host
11848shift
11849host_cpu=$1
11850host_vendor=$2
11851shift; shift
11852# Remember, the first character of IFS is used to create $*,
11853# except with old shells:
11854host_os=$*
11855IFS=$ac_save_IFS
11856case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11857
11858
11859{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11860echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
11861if test "${lt_cv_path_SED+set}" = set; then
11862  echo $ECHO_N "(cached) $ECHO_C" >&6
11863else
11864  # Loop through the user's path and test for sed and gsed.
11865# Then use that list of sed's as ones to test for truncation.
11866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867for as_dir in $PATH
11868do
11869  IFS=$as_save_IFS
11870  test -z "$as_dir" && as_dir=.
11871  for lt_ac_prog in sed gsed; do
11872    for ac_exec_ext in '' $ac_executable_extensions; do
11873      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
11874        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11875      fi
11876    done
11877  done
11878done
11879IFS=$as_save_IFS
11880lt_ac_max=0
11881lt_ac_count=0
11882# Add /usr/xpg4/bin/sed as it is typically found on Solaris
11883# along with /bin/sed that truncates output.
11884for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11885  test ! -f $lt_ac_sed && continue
11886  cat /dev/null > conftest.in
11887  lt_ac_count=0
11888  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11889  # Check for GNU sed and select it if it is found.
11890  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11891    lt_cv_path_SED=$lt_ac_sed
11892    break
11893  fi
11894  while true; do
11895    cat conftest.in conftest.in >conftest.tmp
11896    mv conftest.tmp conftest.in
11897    cp conftest.in conftest.nl
11898    echo >>conftest.nl
11899    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11900    cmp -s conftest.out conftest.nl || break
11901    # 10000 chars as input seems more than enough
11902    test $lt_ac_count -gt 10 && break
11903    lt_ac_count=`expr $lt_ac_count + 1`
11904    if test $lt_ac_count -gt $lt_ac_max; then
11905      lt_ac_max=$lt_ac_count
11906      lt_cv_path_SED=$lt_ac_sed
11907    fi
11908  done
11909done
11910
11911fi
11912
11913SED=$lt_cv_path_SED
11914
11915{ echo "$as_me:$LINENO: result: $SED" >&5
11916echo "${ECHO_T}$SED" >&6; }
11917
11918
11919# Check whether --with-gnu-ld was given.
11920if test "${with_gnu_ld+set}" = set; then
11921  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11922else
11923  with_gnu_ld=no
11924fi
11925
11926ac_prog=ld
11927if test "$GCC" = yes; then
11928  # Check if gcc -print-prog-name=ld gives a path.
11929  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11930echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11931  case $host in
11932  *-*-mingw*)
11933    # gcc leaves a trailing carriage return which upsets mingw
11934    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11935  *)
11936    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11937  esac
11938  case $ac_prog in
11939    # Accept absolute paths.
11940    [\\/]* | ?:[\\/]*)
11941      re_direlt='/[^/][^/]*/\.\./'
11942      # Canonicalize the pathname of ld
11943      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11944      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11945	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11946      done
11947      test -z "$LD" && LD="$ac_prog"
11948      ;;
11949  "")
11950    # If it fails, then pretend we aren't using GCC.
11951    ac_prog=ld
11952    ;;
11953  *)
11954    # If it is relative, then search for the first ld in PATH.
11955    with_gnu_ld=unknown
11956    ;;
11957  esac
11958elif test "$with_gnu_ld" = yes; then
11959  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11960echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11961else
11962  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11963echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11964fi
11965if test "${lt_cv_path_LD+set}" = set; then
11966  echo $ECHO_N "(cached) $ECHO_C" >&6
11967else
11968  if test -z "$LD"; then
11969  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11970  for ac_dir in $PATH; do
11971    IFS="$lt_save_ifs"
11972    test -z "$ac_dir" && ac_dir=.
11973    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11974      lt_cv_path_LD="$ac_dir/$ac_prog"
11975      # Check to see if the program is GNU ld.  I'd rather use --version,
11976      # but apparently some variants of GNU ld only accept -v.
11977      # Break only if it was the GNU/non-GNU ld that we prefer.
11978      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11979      *GNU* | *'with BFD'*)
11980	test "$with_gnu_ld" != no && break
11981	;;
11982      *)
11983	test "$with_gnu_ld" != yes && break
11984	;;
11985      esac
11986    fi
11987  done
11988  IFS="$lt_save_ifs"
11989else
11990  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11991fi
11992fi
11993
11994LD="$lt_cv_path_LD"
11995if test -n "$LD"; then
11996  { echo "$as_me:$LINENO: result: $LD" >&5
11997echo "${ECHO_T}$LD" >&6; }
11998else
11999  { echo "$as_me:$LINENO: result: no" >&5
12000echo "${ECHO_T}no" >&6; }
12001fi
12002test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12003echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12004   { (exit 1); exit 1; }; }
12005{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12006echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12007if test "${lt_cv_prog_gnu_ld+set}" = set; then
12008  echo $ECHO_N "(cached) $ECHO_C" >&6
12009else
12010  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12011case `$LD -v 2>&1 </dev/null` in
12012*GNU* | *'with BFD'*)
12013  lt_cv_prog_gnu_ld=yes
12014  ;;
12015*)
12016  lt_cv_prog_gnu_ld=no
12017  ;;
12018esac
12019fi
12020{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12021echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12022with_gnu_ld=$lt_cv_prog_gnu_ld
12023
12024
12025{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12026echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
12027if test "${lt_cv_ld_reload_flag+set}" = set; then
12028  echo $ECHO_N "(cached) $ECHO_C" >&6
12029else
12030  lt_cv_ld_reload_flag='-r'
12031fi
12032{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12033echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
12034reload_flag=$lt_cv_ld_reload_flag
12035case $reload_flag in
12036"" | " "*) ;;
12037*) reload_flag=" $reload_flag" ;;
12038esac
12039reload_cmds='$LD$reload_flag -o $output$reload_objs'
12040case $host_os in
12041  darwin*)
12042    if test "$GCC" = yes; then
12043      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12044    else
12045      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12046    fi
12047    ;;
12048esac
12049
12050{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
12051echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
12052if test "${lt_cv_path_NM+set}" = set; then
12053  echo $ECHO_N "(cached) $ECHO_C" >&6
12054else
12055  if test -n "$NM"; then
12056  # Let the user override the test.
12057  lt_cv_path_NM="$NM"
12058else
12059  lt_nm_to_check="${ac_tool_prefix}nm"
12060  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12061    lt_nm_to_check="$lt_nm_to_check nm"
12062  fi
12063  for lt_tmp_nm in $lt_nm_to_check; do
12064    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12065    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12066      IFS="$lt_save_ifs"
12067      test -z "$ac_dir" && ac_dir=.
12068      tmp_nm="$ac_dir/$lt_tmp_nm"
12069      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12070	# Check to see if the nm accepts a BSD-compat flag.
12071	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
12072	#   nm: unknown option "B" ignored
12073	# Tru64's nm complains that /dev/null is an invalid object file
12074	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12075	*/dev/null* | *'Invalid file or object type'*)
12076	  lt_cv_path_NM="$tmp_nm -B"
12077	  break
12078	  ;;
12079	*)
12080	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12081	  */dev/null*)
12082	    lt_cv_path_NM="$tmp_nm -p"
12083	    break
12084	    ;;
12085	  *)
12086	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12087	    continue # so that we can try to find one that supports BSD flags
12088	    ;;
12089	  esac
12090	  ;;
12091	esac
12092      fi
12093    done
12094    IFS="$lt_save_ifs"
12095  done
12096  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
12097fi
12098fi
12099{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
12100echo "${ECHO_T}$lt_cv_path_NM" >&6; }
12101NM="$lt_cv_path_NM"
12102
12103{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
12104echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
12105LN_S=$as_ln_s
12106if test "$LN_S" = "ln -s"; then
12107  { echo "$as_me:$LINENO: result: yes" >&5
12108echo "${ECHO_T}yes" >&6; }
12109else
12110  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12111echo "${ECHO_T}no, using $LN_S" >&6; }
12112fi
12113
12114{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
12115echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
12116if test "${lt_cv_deplibs_check_method+set}" = set; then
12117  echo $ECHO_N "(cached) $ECHO_C" >&6
12118else
12119  lt_cv_file_magic_cmd='$MAGIC_CMD'
12120lt_cv_file_magic_test_file=
12121lt_cv_deplibs_check_method='unknown'
12122# Need to set the preceding variable on all platforms that support
12123# interlibrary dependencies.
12124# 'none' -- dependencies not supported.
12125# `unknown' -- same as none, but documents that we really don't know.
12126# 'pass_all' -- all dependencies passed with no checks.
12127# 'test_compile' -- check by making test program.
12128# 'file_magic [[regex]]' -- check by looking for files in library path
12129# which responds to the $file_magic_cmd with a given extended regex.
12130# If you have `file' or equivalent on your system and you're not sure
12131# whether `pass_all' will *always* work, you probably want this one.
12132
12133case $host_os in
12134aix[4-9]*)
12135  lt_cv_deplibs_check_method=pass_all
12136  ;;
12137
12138beos*)
12139  lt_cv_deplibs_check_method=pass_all
12140  ;;
12141
12142bsdi[45]*)
12143  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12144  lt_cv_file_magic_cmd='/usr/bin/file -L'
12145  lt_cv_file_magic_test_file=/shlib/libc.so
12146  ;;
12147
12148cygwin*)
12149  # func_win32_libid is a shell function defined in ltmain.sh
12150  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12151  lt_cv_file_magic_cmd='func_win32_libid'
12152  ;;
12153
12154mingw* | pw32*)
12155  # Base MSYS/MinGW do not provide the 'file' command needed by
12156  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12157  # unless we find 'file', for example because we are cross-compiling.
12158  if ( file / ) >/dev/null 2>&1; then
12159    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12160    lt_cv_file_magic_cmd='func_win32_libid'
12161  else
12162    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12163    lt_cv_file_magic_cmd='$OBJDUMP -f'
12164  fi
12165  ;;
12166
12167darwin* | rhapsody*)
12168  lt_cv_deplibs_check_method=pass_all
12169  ;;
12170
12171freebsd* | dragonfly*)
12172  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12173    case $host_cpu in
12174    i*86 )
12175      # Not sure whether the presence of OpenBSD here was a mistake.
12176      # Let's accept both of them until this is cleared up.
12177      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12178      lt_cv_file_magic_cmd=/usr/bin/file
12179      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12180      ;;
12181    esac
12182  else
12183    lt_cv_deplibs_check_method=pass_all
12184  fi
12185  ;;
12186
12187gnu*)
12188  lt_cv_deplibs_check_method=pass_all
12189  ;;
12190
12191hpux10.20* | hpux11*)
12192  lt_cv_file_magic_cmd=/usr/bin/file
12193  case $host_cpu in
12194  ia64*)
12195    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12196    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12197    ;;
12198  hppa*64*)
12199    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]'
12200    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12201    ;;
12202  *)
12203    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12204    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12205    ;;
12206  esac
12207  ;;
12208
12209interix[3-9]*)
12210  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12211  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12212  ;;
12213
12214irix5* | irix6* | nonstopux*)
12215  case $LD in
12216  *-32|*"-32 ") libmagic=32-bit;;
12217  *-n32|*"-n32 ") libmagic=N32;;
12218  *-64|*"-64 ") libmagic=64-bit;;
12219  *) libmagic=never-match;;
12220  esac
12221  lt_cv_deplibs_check_method=pass_all
12222  ;;
12223
12224# This must be Linux ELF.
12225linux* | k*bsd*-gnu)
12226  lt_cv_deplibs_check_method=pass_all
12227  ;;
12228
12229netbsd*)
12230  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12231    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12232  else
12233    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12234  fi
12235  ;;
12236
12237newos6*)
12238  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12239  lt_cv_file_magic_cmd=/usr/bin/file
12240  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12241  ;;
12242
12243nto-qnx*)
12244  lt_cv_deplibs_check_method=unknown
12245  ;;
12246
12247openbsd*)
12248  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12249    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12250  else
12251    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12252  fi
12253  ;;
12254
12255osf3* | osf4* | osf5*)
12256  lt_cv_deplibs_check_method=pass_all
12257  ;;
12258
12259rdos*)
12260  lt_cv_deplibs_check_method=pass_all
12261  ;;
12262
12263solaris*)
12264  lt_cv_deplibs_check_method=pass_all
12265  ;;
12266
12267sysv4 | sysv4.3*)
12268  case $host_vendor in
12269  motorola)
12270    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]'
12271    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12272    ;;
12273  ncr)
12274    lt_cv_deplibs_check_method=pass_all
12275    ;;
12276  sequent)
12277    lt_cv_file_magic_cmd='/bin/file'
12278    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12279    ;;
12280  sni)
12281    lt_cv_file_magic_cmd='/bin/file'
12282    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12283    lt_cv_file_magic_test_file=/lib/libc.so
12284    ;;
12285  siemens)
12286    lt_cv_deplibs_check_method=pass_all
12287    ;;
12288  pc)
12289    lt_cv_deplibs_check_method=pass_all
12290    ;;
12291  esac
12292  ;;
12293
12294sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12295  lt_cv_deplibs_check_method=pass_all
12296  ;;
12297esac
12298
12299fi
12300{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12301echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12302file_magic_cmd=$lt_cv_file_magic_cmd
12303deplibs_check_method=$lt_cv_deplibs_check_method
12304test -z "$deplibs_check_method" && deplibs_check_method=unknown
12305
12306
12307
12308
12309# If no C compiler was specified, use CC.
12310LTCC=${LTCC-"$CC"}
12311
12312# If no C compiler flags were specified, use CFLAGS.
12313LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12314
12315# Allow CC to be a program name with arguments.
12316compiler=$CC
12317
12318
12319# Check whether --enable-libtool-lock was given.
12320if test "${enable_libtool_lock+set}" = set; then
12321  enableval=$enable_libtool_lock;
12322fi
12323
12324test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12325
12326# Some flags need to be propagated to the compiler or linker for good
12327# libtool support.
12328case $host in
12329ia64-*-hpux*)
12330  # Find out which ABI we are using.
12331  echo 'int i;' > conftest.$ac_ext
12332  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12333  (eval $ac_compile) 2>&5
12334  ac_status=$?
12335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336  (exit $ac_status); }; then
12337    case `/usr/bin/file conftest.$ac_objext` in
12338    *ELF-32*)
12339      HPUX_IA64_MODE="32"
12340      ;;
12341    *ELF-64*)
12342      HPUX_IA64_MODE="64"
12343      ;;
12344    esac
12345  fi
12346  rm -rf conftest*
12347  ;;
12348*-*-irix6*)
12349  # Find out which ABI we are using.
12350  echo '#line __oline__ "configure"' > conftest.$ac_ext
12351  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12352  (eval $ac_compile) 2>&5
12353  ac_status=$?
12354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355  (exit $ac_status); }; then
12356   if test "$lt_cv_prog_gnu_ld" = yes; then
12357    case `/usr/bin/file conftest.$ac_objext` in
12358    *32-bit*)
12359      LD="${LD-ld} -melf32bsmip"
12360      ;;
12361    *N32*)
12362      LD="${LD-ld} -melf32bmipn32"
12363      ;;
12364    *64-bit*)
12365      LD="${LD-ld} -melf64bmip"
12366      ;;
12367    esac
12368   else
12369    case `/usr/bin/file conftest.$ac_objext` in
12370    *32-bit*)
12371      LD="${LD-ld} -32"
12372      ;;
12373    *N32*)
12374      LD="${LD-ld} -n32"
12375      ;;
12376    *64-bit*)
12377      LD="${LD-ld} -64"
12378      ;;
12379    esac
12380   fi
12381  fi
12382  rm -rf conftest*
12383  ;;
12384
12385x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12386s390*-*linux*|sparc*-*linux*)
12387  # Find out which ABI we are using.
12388  echo 'int i;' > conftest.$ac_ext
12389  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12390  (eval $ac_compile) 2>&5
12391  ac_status=$?
12392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393  (exit $ac_status); }; then
12394    case `/usr/bin/file conftest.o` in
12395    *32-bit*)
12396      case $host in
12397        x86_64-*kfreebsd*-gnu)
12398          LD="${LD-ld} -m elf_i386_fbsd"
12399          ;;
12400        x86_64-*linux*)
12401          LD="${LD-ld} -m elf_i386"
12402          ;;
12403        ppc64-*linux*|powerpc64-*linux*)
12404          LD="${LD-ld} -m elf32ppclinux"
12405          ;;
12406        s390x-*linux*)
12407          LD="${LD-ld} -m elf_s390"
12408          ;;
12409        sparc64-*linux*)
12410          LD="${LD-ld} -m elf32_sparc"
12411          ;;
12412      esac
12413      ;;
12414    *64-bit*)
12415      case $host in
12416        x86_64-*kfreebsd*-gnu)
12417          LD="${LD-ld} -m elf_x86_64_fbsd"
12418          ;;
12419        x86_64-*linux*)
12420          LD="${LD-ld} -m elf_x86_64"
12421          ;;
12422        ppc*-*linux*|powerpc*-*linux*)
12423          LD="${LD-ld} -m elf64ppc"
12424          ;;
12425        s390*-*linux*)
12426          LD="${LD-ld} -m elf64_s390"
12427          ;;
12428        sparc*-*linux*)
12429          LD="${LD-ld} -m elf64_sparc"
12430          ;;
12431      esac
12432      ;;
12433    esac
12434  fi
12435  rm -rf conftest*
12436  ;;
12437
12438*-*-sco3.2v5*)
12439  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12440  SAVE_CFLAGS="$CFLAGS"
12441  CFLAGS="$CFLAGS -belf"
12442  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12443echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12444if test "${lt_cv_cc_needs_belf+set}" = set; then
12445  echo $ECHO_N "(cached) $ECHO_C" >&6
12446else
12447  ac_ext=c
12448ac_cpp='$CPP $CPPFLAGS'
12449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12451ac_compiler_gnu=$ac_cv_c_compiler_gnu
12452
12453     cat >conftest.$ac_ext <<_ACEOF
12454/* confdefs.h.  */
12455_ACEOF
12456cat confdefs.h >>conftest.$ac_ext
12457cat >>conftest.$ac_ext <<_ACEOF
12458/* end confdefs.h.  */
12459
12460int
12461main ()
12462{
12463
12464  ;
12465  return 0;
12466}
12467_ACEOF
12468rm -f conftest.$ac_objext conftest$ac_exeext
12469if { (ac_try="$ac_link"
12470case "(($ac_try" in
12471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12472  *) ac_try_echo=$ac_try;;
12473esac
12474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12475  (eval "$ac_link") 2>conftest.er1
12476  ac_status=$?
12477  grep -v '^ *+' conftest.er1 >conftest.err
12478  rm -f conftest.er1
12479  cat conftest.err >&5
12480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481  (exit $ac_status); } && {
12482	 test -z "$ac_c_werror_flag" ||
12483	 test ! -s conftest.err
12484       } && test -s conftest$ac_exeext &&
12485       $as_test_x conftest$ac_exeext; then
12486  lt_cv_cc_needs_belf=yes
12487else
12488  echo "$as_me: failed program was:" >&5
12489sed 's/^/| /' conftest.$ac_ext >&5
12490
12491	lt_cv_cc_needs_belf=no
12492fi
12493
12494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12495      conftest$ac_exeext conftest.$ac_ext
12496     ac_ext=c
12497ac_cpp='$CPP $CPPFLAGS'
12498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12500ac_compiler_gnu=$ac_cv_c_compiler_gnu
12501
12502fi
12503{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12504echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12505  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12506    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12507    CFLAGS="$SAVE_CFLAGS"
12508  fi
12509  ;;
12510sparc*-*solaris*)
12511  # Find out which ABI we are using.
12512  echo 'int i;' > conftest.$ac_ext
12513  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12514  (eval $ac_compile) 2>&5
12515  ac_status=$?
12516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517  (exit $ac_status); }; then
12518    case `/usr/bin/file conftest.o` in
12519    *64-bit*)
12520      case $lt_cv_prog_gnu_ld in
12521      yes*) LD="${LD-ld} -m elf64_sparc" ;;
12522      *)
12523        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12524	  LD="${LD-ld} -64"
12525	fi
12526	;;
12527      esac
12528      ;;
12529    esac
12530  fi
12531  rm -rf conftest*
12532  ;;
12533
12534
12535esac
12536
12537need_locks="$enable_libtool_lock"
12538
12539
12540
12541
12542for ac_header in dlfcn.h
12543do
12544as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12546  { echo "$as_me:$LINENO: checking for $ac_header" >&5
12547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12549  echo $ECHO_N "(cached) $ECHO_C" >&6
12550fi
12551ac_res=`eval echo '${'$as_ac_Header'}'`
12552	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12553echo "${ECHO_T}$ac_res" >&6; }
12554else
12555  # Is the header compilable?
12556{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12557echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12558cat >conftest.$ac_ext <<_ACEOF
12559/* confdefs.h.  */
12560_ACEOF
12561cat confdefs.h >>conftest.$ac_ext
12562cat >>conftest.$ac_ext <<_ACEOF
12563/* end confdefs.h.  */
12564$ac_includes_default
12565@%:@include <$ac_header>
12566_ACEOF
12567rm -f conftest.$ac_objext
12568if { (ac_try="$ac_compile"
12569case "(($ac_try" in
12570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571  *) ac_try_echo=$ac_try;;
12572esac
12573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574  (eval "$ac_compile") 2>conftest.er1
12575  ac_status=$?
12576  grep -v '^ *+' conftest.er1 >conftest.err
12577  rm -f conftest.er1
12578  cat conftest.err >&5
12579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580  (exit $ac_status); } && {
12581	 test -z "$ac_c_werror_flag" ||
12582	 test ! -s conftest.err
12583       } && test -s conftest.$ac_objext; then
12584  ac_header_compiler=yes
12585else
12586  echo "$as_me: failed program was:" >&5
12587sed 's/^/| /' conftest.$ac_ext >&5
12588
12589	ac_header_compiler=no
12590fi
12591
12592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12593{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12594echo "${ECHO_T}$ac_header_compiler" >&6; }
12595
12596# Is the header present?
12597{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12598echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12599cat >conftest.$ac_ext <<_ACEOF
12600/* confdefs.h.  */
12601_ACEOF
12602cat confdefs.h >>conftest.$ac_ext
12603cat >>conftest.$ac_ext <<_ACEOF
12604/* end confdefs.h.  */
12605@%:@include <$ac_header>
12606_ACEOF
12607if { (ac_try="$ac_cpp conftest.$ac_ext"
12608case "(($ac_try" in
12609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610  *) ac_try_echo=$ac_try;;
12611esac
12612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12614  ac_status=$?
12615  grep -v '^ *+' conftest.er1 >conftest.err
12616  rm -f conftest.er1
12617  cat conftest.err >&5
12618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619  (exit $ac_status); } >/dev/null && {
12620	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12621	 test ! -s conftest.err
12622       }; then
12623  ac_header_preproc=yes
12624else
12625  echo "$as_me: failed program was:" >&5
12626sed 's/^/| /' conftest.$ac_ext >&5
12627
12628  ac_header_preproc=no
12629fi
12630
12631rm -f conftest.err conftest.$ac_ext
12632{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12633echo "${ECHO_T}$ac_header_preproc" >&6; }
12634
12635# So?  What about this header?
12636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12637  yes:no: )
12638    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12639echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12640    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12641echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12642    ac_header_preproc=yes
12643    ;;
12644  no:yes:* )
12645    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12646echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12647    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12648echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12649    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12650echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12651    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12652echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12653    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12654echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12655    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12656echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12657
12658    ;;
12659esac
12660{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12663  echo $ECHO_N "(cached) $ECHO_C" >&6
12664else
12665  eval "$as_ac_Header=\$ac_header_preproc"
12666fi
12667ac_res=`eval echo '${'$as_ac_Header'}'`
12668	       { echo "$as_me:$LINENO: result: $ac_res" >&5
12669echo "${ECHO_T}$ac_res" >&6; }
12670
12671fi
12672if test `eval echo '${'$as_ac_Header'}'` = yes; then
12673  cat >>confdefs.h <<_ACEOF
12674@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12675_ACEOF
12676
12677fi
12678
12679done
12680
12681
12682
12683if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12684    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12685    (test "X$CXX" != "Xg++"))) ; then
12686  ac_ext=cpp
12687ac_cpp='$CXXCPP $CPPFLAGS'
12688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12691{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12692echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12693if test -z "$CXXCPP"; then
12694  if test "${ac_cv_prog_CXXCPP+set}" = set; then
12695  echo $ECHO_N "(cached) $ECHO_C" >&6
12696else
12697      # Double quotes because CXXCPP needs to be expanded
12698    for CXXCPP in "$CXX -E" "/lib/cpp"
12699    do
12700      ac_preproc_ok=false
12701for ac_cxx_preproc_warn_flag in '' yes
12702do
12703  # Use a header file that comes with gcc, so configuring glibc
12704  # with a fresh cross-compiler works.
12705  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12706  # <limits.h> exists even on freestanding compilers.
12707  # On the NeXT, cc -E runs the code through the compiler's parser,
12708  # not just through cpp. "Syntax error" is here to catch this case.
12709  cat >conftest.$ac_ext <<_ACEOF
12710/* confdefs.h.  */
12711_ACEOF
12712cat confdefs.h >>conftest.$ac_ext
12713cat >>conftest.$ac_ext <<_ACEOF
12714/* end confdefs.h.  */
12715@%:@ifdef __STDC__
12716@%:@ include <limits.h>
12717@%:@else
12718@%:@ include <assert.h>
12719@%:@endif
12720		     Syntax error
12721_ACEOF
12722if { (ac_try="$ac_cpp conftest.$ac_ext"
12723case "(($ac_try" in
12724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725  *) ac_try_echo=$ac_try;;
12726esac
12727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12729  ac_status=$?
12730  grep -v '^ *+' conftest.er1 >conftest.err
12731  rm -f conftest.er1
12732  cat conftest.err >&5
12733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734  (exit $ac_status); } >/dev/null && {
12735	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12736	 test ! -s conftest.err
12737       }; then
12738  :
12739else
12740  echo "$as_me: failed program was:" >&5
12741sed 's/^/| /' conftest.$ac_ext >&5
12742
12743  # Broken: fails on valid input.
12744continue
12745fi
12746
12747rm -f conftest.err conftest.$ac_ext
12748
12749  # OK, works on sane cases.  Now check whether nonexistent headers
12750  # can be detected and how.
12751  cat >conftest.$ac_ext <<_ACEOF
12752/* confdefs.h.  */
12753_ACEOF
12754cat confdefs.h >>conftest.$ac_ext
12755cat >>conftest.$ac_ext <<_ACEOF
12756/* end confdefs.h.  */
12757@%:@include <ac_nonexistent.h>
12758_ACEOF
12759if { (ac_try="$ac_cpp conftest.$ac_ext"
12760case "(($ac_try" in
12761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762  *) ac_try_echo=$ac_try;;
12763esac
12764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12766  ac_status=$?
12767  grep -v '^ *+' conftest.er1 >conftest.err
12768  rm -f conftest.er1
12769  cat conftest.err >&5
12770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771  (exit $ac_status); } >/dev/null && {
12772	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12773	 test ! -s conftest.err
12774       }; then
12775  # Broken: success on invalid input.
12776continue
12777else
12778  echo "$as_me: failed program was:" >&5
12779sed 's/^/| /' conftest.$ac_ext >&5
12780
12781  # Passes both tests.
12782ac_preproc_ok=:
12783break
12784fi
12785
12786rm -f conftest.err conftest.$ac_ext
12787
12788done
12789# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12790rm -f conftest.err conftest.$ac_ext
12791if $ac_preproc_ok; then
12792  break
12793fi
12794
12795    done
12796    ac_cv_prog_CXXCPP=$CXXCPP
12797
12798fi
12799  CXXCPP=$ac_cv_prog_CXXCPP
12800else
12801  ac_cv_prog_CXXCPP=$CXXCPP
12802fi
12803{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12804echo "${ECHO_T}$CXXCPP" >&6; }
12805ac_preproc_ok=false
12806for ac_cxx_preproc_warn_flag in '' yes
12807do
12808  # Use a header file that comes with gcc, so configuring glibc
12809  # with a fresh cross-compiler works.
12810  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12811  # <limits.h> exists even on freestanding compilers.
12812  # On the NeXT, cc -E runs the code through the compiler's parser,
12813  # not just through cpp. "Syntax error" is here to catch this case.
12814  cat >conftest.$ac_ext <<_ACEOF
12815/* confdefs.h.  */
12816_ACEOF
12817cat confdefs.h >>conftest.$ac_ext
12818cat >>conftest.$ac_ext <<_ACEOF
12819/* end confdefs.h.  */
12820@%:@ifdef __STDC__
12821@%:@ include <limits.h>
12822@%:@else
12823@%:@ include <assert.h>
12824@%:@endif
12825		     Syntax error
12826_ACEOF
12827if { (ac_try="$ac_cpp conftest.$ac_ext"
12828case "(($ac_try" in
12829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830  *) ac_try_echo=$ac_try;;
12831esac
12832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12834  ac_status=$?
12835  grep -v '^ *+' conftest.er1 >conftest.err
12836  rm -f conftest.er1
12837  cat conftest.err >&5
12838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839  (exit $ac_status); } >/dev/null && {
12840	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12841	 test ! -s conftest.err
12842       }; then
12843  :
12844else
12845  echo "$as_me: failed program was:" >&5
12846sed 's/^/| /' conftest.$ac_ext >&5
12847
12848  # Broken: fails on valid input.
12849continue
12850fi
12851
12852rm -f conftest.err conftest.$ac_ext
12853
12854  # OK, works on sane cases.  Now check whether nonexistent headers
12855  # can be detected and how.
12856  cat >conftest.$ac_ext <<_ACEOF
12857/* confdefs.h.  */
12858_ACEOF
12859cat confdefs.h >>conftest.$ac_ext
12860cat >>conftest.$ac_ext <<_ACEOF
12861/* end confdefs.h.  */
12862@%:@include <ac_nonexistent.h>
12863_ACEOF
12864if { (ac_try="$ac_cpp conftest.$ac_ext"
12865case "(($ac_try" in
12866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12867  *) ac_try_echo=$ac_try;;
12868esac
12869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12870  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12871  ac_status=$?
12872  grep -v '^ *+' conftest.er1 >conftest.err
12873  rm -f conftest.er1
12874  cat conftest.err >&5
12875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876  (exit $ac_status); } >/dev/null && {
12877	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12878	 test ! -s conftest.err
12879       }; then
12880  # Broken: success on invalid input.
12881continue
12882else
12883  echo "$as_me: failed program was:" >&5
12884sed 's/^/| /' conftest.$ac_ext >&5
12885
12886  # Passes both tests.
12887ac_preproc_ok=:
12888break
12889fi
12890
12891rm -f conftest.err conftest.$ac_ext
12892
12893done
12894# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12895rm -f conftest.err conftest.$ac_ext
12896if $ac_preproc_ok; then
12897  :
12898else
12899  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12900See \`config.log' for more details." >&5
12901echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12902See \`config.log' for more details." >&2;}
12903   { (exit 1); exit 1; }; }
12904fi
12905
12906ac_ext=cpp
12907ac_cpp='$CXXCPP $CPPFLAGS'
12908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12911
12912fi
12913
12914ac_ext=f
12915ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12916ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12917ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12918if test -n "$ac_tool_prefix"; then
12919  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
12920  do
12921    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12922set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12925if test "${ac_cv_prog_F77+set}" = set; then
12926  echo $ECHO_N "(cached) $ECHO_C" >&6
12927else
12928  if test -n "$F77"; then
12929  ac_cv_prog_F77="$F77" # Let the user override the test.
12930else
12931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12932for as_dir in $PATH
12933do
12934  IFS=$as_save_IFS
12935  test -z "$as_dir" && as_dir=.
12936  for ac_exec_ext in '' $ac_executable_extensions; do
12937  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12938    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12939    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12940    break 2
12941  fi
12942done
12943done
12944IFS=$as_save_IFS
12945
12946fi
12947fi
12948F77=$ac_cv_prog_F77
12949if test -n "$F77"; then
12950  { echo "$as_me:$LINENO: result: $F77" >&5
12951echo "${ECHO_T}$F77" >&6; }
12952else
12953  { echo "$as_me:$LINENO: result: no" >&5
12954echo "${ECHO_T}no" >&6; }
12955fi
12956
12957
12958    test -n "$F77" && break
12959  done
12960fi
12961if test -z "$F77"; then
12962  ac_ct_F77=$F77
12963  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
12964do
12965  # Extract the first word of "$ac_prog", so it can be a program name with args.
12966set dummy $ac_prog; ac_word=$2
12967{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12969if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12970  echo $ECHO_N "(cached) $ECHO_C" >&6
12971else
12972  if test -n "$ac_ct_F77"; then
12973  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12974else
12975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12976for as_dir in $PATH
12977do
12978  IFS=$as_save_IFS
12979  test -z "$as_dir" && as_dir=.
12980  for ac_exec_ext in '' $ac_executable_extensions; do
12981  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12982    ac_cv_prog_ac_ct_F77="$ac_prog"
12983    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12984    break 2
12985  fi
12986done
12987done
12988IFS=$as_save_IFS
12989
12990fi
12991fi
12992ac_ct_F77=$ac_cv_prog_ac_ct_F77
12993if test -n "$ac_ct_F77"; then
12994  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12995echo "${ECHO_T}$ac_ct_F77" >&6; }
12996else
12997  { echo "$as_me:$LINENO: result: no" >&5
12998echo "${ECHO_T}no" >&6; }
12999fi
13000
13001
13002  test -n "$ac_ct_F77" && break
13003done
13004
13005  if test "x$ac_ct_F77" = x; then
13006    F77=""
13007  else
13008    case $cross_compiling:$ac_tool_warned in
13009yes:)
13010{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13011whose name does not start with the host triplet.  If you think this
13012configuration is useful to you, please write to autoconf@gnu.org." >&5
13013echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13014whose name does not start with the host triplet.  If you think this
13015configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13016ac_tool_warned=yes ;;
13017esac
13018    F77=$ac_ct_F77
13019  fi
13020fi
13021
13022
13023# Provide some information about the compiler.
13024echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
13025ac_compiler=`set X $ac_compile; echo $2`
13026{ (ac_try="$ac_compiler --version >&5"
13027case "(($ac_try" in
13028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029  *) ac_try_echo=$ac_try;;
13030esac
13031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032  (eval "$ac_compiler --version >&5") 2>&5
13033  ac_status=$?
13034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035  (exit $ac_status); }
13036{ (ac_try="$ac_compiler -v >&5"
13037case "(($ac_try" in
13038  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039  *) ac_try_echo=$ac_try;;
13040esac
13041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042  (eval "$ac_compiler -v >&5") 2>&5
13043  ac_status=$?
13044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045  (exit $ac_status); }
13046{ (ac_try="$ac_compiler -V >&5"
13047case "(($ac_try" in
13048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049  *) ac_try_echo=$ac_try;;
13050esac
13051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052  (eval "$ac_compiler -V >&5") 2>&5
13053  ac_status=$?
13054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055  (exit $ac_status); }
13056rm -f a.out
13057
13058# If we don't use `.F' as extension, the preprocessor is not run on the
13059# input file.  (Note that this only needs to work for GNU compilers.)
13060ac_save_ext=$ac_ext
13061ac_ext=F
13062{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13063echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
13064if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13065  echo $ECHO_N "(cached) $ECHO_C" >&6
13066else
13067  cat >conftest.$ac_ext <<_ACEOF
13068      program main
13069#ifndef __GNUC__
13070       choke me
13071#endif
13072
13073      end
13074_ACEOF
13075rm -f conftest.$ac_objext
13076if { (ac_try="$ac_compile"
13077case "(($ac_try" in
13078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079  *) ac_try_echo=$ac_try;;
13080esac
13081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082  (eval "$ac_compile") 2>conftest.er1
13083  ac_status=$?
13084  grep -v '^ *+' conftest.er1 >conftest.err
13085  rm -f conftest.er1
13086  cat conftest.err >&5
13087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088  (exit $ac_status); } && {
13089	 test -z "$ac_f77_werror_flag" ||
13090	 test ! -s conftest.err
13091       } && test -s conftest.$ac_objext; then
13092  ac_compiler_gnu=yes
13093else
13094  echo "$as_me: failed program was:" >&5
13095sed 's/^/| /' conftest.$ac_ext >&5
13096
13097	ac_compiler_gnu=no
13098fi
13099
13100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13101ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13102
13103fi
13104{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13105echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
13106ac_ext=$ac_save_ext
13107ac_test_FFLAGS=${FFLAGS+set}
13108ac_save_FFLAGS=$FFLAGS
13109FFLAGS=
13110{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13111echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
13112if test "${ac_cv_prog_f77_g+set}" = set; then
13113  echo $ECHO_N "(cached) $ECHO_C" >&6
13114else
13115  FFLAGS=-g
13116cat >conftest.$ac_ext <<_ACEOF
13117      program main
13118
13119      end
13120_ACEOF
13121rm -f conftest.$ac_objext
13122if { (ac_try="$ac_compile"
13123case "(($ac_try" in
13124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125  *) ac_try_echo=$ac_try;;
13126esac
13127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13128  (eval "$ac_compile") 2>conftest.er1
13129  ac_status=$?
13130  grep -v '^ *+' conftest.er1 >conftest.err
13131  rm -f conftest.er1
13132  cat conftest.err >&5
13133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134  (exit $ac_status); } && {
13135	 test -z "$ac_f77_werror_flag" ||
13136	 test ! -s conftest.err
13137       } && test -s conftest.$ac_objext; then
13138  ac_cv_prog_f77_g=yes
13139else
13140  echo "$as_me: failed program was:" >&5
13141sed 's/^/| /' conftest.$ac_ext >&5
13142
13143	ac_cv_prog_f77_g=no
13144fi
13145
13146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13147
13148fi
13149{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13150echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
13151if test "$ac_test_FFLAGS" = set; then
13152  FFLAGS=$ac_save_FFLAGS
13153elif test $ac_cv_prog_f77_g = yes; then
13154  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13155    FFLAGS="-g -O2"
13156  else
13157    FFLAGS="-g"
13158  fi
13159else
13160  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
13161    FFLAGS="-O2"
13162  else
13163    FFLAGS=
13164  fi
13165fi
13166
13167G77=`test $ac_compiler_gnu = yes && echo yes`
13168ac_ext=cpp
13169ac_cpp='$CXXCPP $CPPFLAGS'
13170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13173
13174
13175
13176# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13177# find the maximum length of command line arguments
13178{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13179echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
13180if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13181  echo $ECHO_N "(cached) $ECHO_C" >&6
13182else
13183    i=0
13184  teststring="ABCD"
13185
13186  case $build_os in
13187  msdosdjgpp*)
13188    # On DJGPP, this test can blow up pretty badly due to problems in libc
13189    # (any single argument exceeding 2000 bytes causes a buffer overrun
13190    # during glob expansion).  Even if it were fixed, the result of this
13191    # check would be larger than it should be.
13192    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13193    ;;
13194
13195  gnu*)
13196    # Under GNU Hurd, this test is not required because there is
13197    # no limit to the length of command line arguments.
13198    # Libtool will interpret -1 as no limit whatsoever
13199    lt_cv_sys_max_cmd_len=-1;
13200    ;;
13201
13202  cygwin* | mingw*)
13203    # On Win9x/ME, this test blows up -- it succeeds, but takes
13204    # about 5 minutes as the teststring grows exponentially.
13205    # Worse, since 9x/ME are not pre-emptively multitasking,
13206    # you end up with a "frozen" computer, even though with patience
13207    # the test eventually succeeds (with a max line length of 256k).
13208    # Instead, let's just punt: use the minimum linelength reported by
13209    # all of the supported platforms: 8192 (on NT/2K/XP).
13210    lt_cv_sys_max_cmd_len=8192;
13211    ;;
13212
13213  amigaos*)
13214    # On AmigaOS with pdksh, this test takes hours, literally.
13215    # So we just punt and use a minimum line length of 8192.
13216    lt_cv_sys_max_cmd_len=8192;
13217    ;;
13218
13219  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
13220    # This has been around since 386BSD, at least.  Likely further.
13221    if test -x /sbin/sysctl; then
13222      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13223    elif test -x /usr/sbin/sysctl; then
13224      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13225    else
13226      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13227    fi
13228    # And add a safety zone
13229    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13230    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13231    ;;
13232
13233  interix*)
13234    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13235    lt_cv_sys_max_cmd_len=196608
13236    ;;
13237
13238  osf*)
13239    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13240    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13241    # nice to cause kernel panics so lets avoid the loop below.
13242    # First set a reasonable default.
13243    lt_cv_sys_max_cmd_len=16384
13244    #
13245    if test -x /sbin/sysconfig; then
13246      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13247        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13248      esac
13249    fi
13250    ;;
13251  sco3.2v5*)
13252    lt_cv_sys_max_cmd_len=102400
13253    ;;
13254  sysv5* | sco5v6* | sysv4.2uw2*)
13255    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13256    if test -n "$kargmax"; then
13257      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
13258    else
13259      lt_cv_sys_max_cmd_len=32768
13260    fi
13261    ;;
13262  *)
13263    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13264    if test -n "$lt_cv_sys_max_cmd_len"; then
13265      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13266      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13267    else
13268      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13269      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13270	       = "XX$teststring") >/dev/null 2>&1 &&
13271	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
13272	      lt_cv_sys_max_cmd_len=$new_result &&
13273	      test $i != 17 # 1/2 MB should be enough
13274      do
13275        i=`expr $i + 1`
13276        teststring=$teststring$teststring
13277      done
13278      teststring=
13279      # Add a significant safety factor because C++ compilers can tack on massive
13280      # amounts of additional arguments before passing them to the linker.
13281      # It appears as though 1/2 is a usable value.
13282      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13283    fi
13284    ;;
13285  esac
13286
13287fi
13288
13289if test -n $lt_cv_sys_max_cmd_len ; then
13290  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13291echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
13292else
13293  { echo "$as_me:$LINENO: result: none" >&5
13294echo "${ECHO_T}none" >&6; }
13295fi
13296
13297
13298
13299
13300
13301# Check for command to grab the raw symbol name followed by C symbol from nm.
13302{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13303echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
13304if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13305  echo $ECHO_N "(cached) $ECHO_C" >&6
13306else
13307
13308# These are sane defaults that work on at least a few old systems.
13309# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13310
13311# Character class describing NM global symbol codes.
13312symcode='[BCDEGRST]'
13313
13314# Regexp to match symbols that can be accessed directly from C.
13315sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13316
13317# Transform an extracted symbol line into a proper C declaration
13318lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13319
13320# Transform an extracted symbol line into symbol name and symbol address
13321lt_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'"
13322
13323# Define system-specific variables.
13324case $host_os in
13325aix*)
13326  symcode='[BCDT]'
13327  ;;
13328cygwin* | mingw* | pw32*)
13329  symcode='[ABCDGISTW]'
13330  ;;
13331hpux*) # Its linker distinguishes data from code symbols
13332  if test "$host_cpu" = ia64; then
13333    symcode='[ABCDEGRST]'
13334  fi
13335  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13336  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'"
13337  ;;
13338linux* | k*bsd*-gnu)
13339  if test "$host_cpu" = ia64; then
13340    symcode='[ABCDGIRSTW]'
13341    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13342    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'"
13343  fi
13344  ;;
13345irix* | nonstopux*)
13346  symcode='[BCDEGRST]'
13347  ;;
13348osf*)
13349  symcode='[BCDEGQRST]'
13350  ;;
13351solaris*)
13352  symcode='[BDRT]'
13353  ;;
13354sco3.2v5*)
13355  symcode='[DT]'
13356  ;;
13357sysv4.2uw2*)
13358  symcode='[DT]'
13359  ;;
13360sysv5* | sco5v6* | unixware* | OpenUNIX*)
13361  symcode='[ABDT]'
13362  ;;
13363sysv4)
13364  symcode='[DFNSTU]'
13365  ;;
13366esac
13367
13368# Handle CRLF in mingw tool chain
13369opt_cr=
13370case $build_os in
13371mingw*)
13372  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13373  ;;
13374esac
13375
13376# If we're using GNU nm, then use its standard symbol codes.
13377case `$NM -V 2>&1` in
13378*GNU* | *'with BFD'*)
13379  symcode='[ABCDGIRSTW]' ;;
13380esac
13381
13382# Try without a prefix undercore, then with it.
13383for ac_symprfx in "" "_"; do
13384
13385  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13386  symxfrm="\\1 $ac_symprfx\\2 \\2"
13387
13388  # Write the raw and C identifiers.
13389  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13390
13391  # Check to see that the pipe works correctly.
13392  pipe_works=no
13393
13394  rm -f conftest*
13395  cat > conftest.$ac_ext <<EOF
13396#ifdef __cplusplus
13397extern "C" {
13398#endif
13399char nm_test_var;
13400void nm_test_func(){}
13401#ifdef __cplusplus
13402}
13403#endif
13404int main(){nm_test_var='a';nm_test_func();return(0);}
13405EOF
13406
13407  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13408  (eval $ac_compile) 2>&5
13409  ac_status=$?
13410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411  (exit $ac_status); }; then
13412    # Now try to grab the symbols.
13413    nlist=conftest.nm
13414    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13415  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13416  ac_status=$?
13417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418  (exit $ac_status); } && test -s "$nlist"; then
13419      # Try sorting and uniquifying the output.
13420      if sort "$nlist" | uniq > "$nlist"T; then
13421	mv -f "$nlist"T "$nlist"
13422      else
13423	rm -f "$nlist"T
13424      fi
13425
13426      # Make sure that we snagged all the symbols we need.
13427      if grep ' nm_test_var$' "$nlist" >/dev/null; then
13428	if grep ' nm_test_func$' "$nlist" >/dev/null; then
13429	  cat <<EOF > conftest.$ac_ext
13430#ifdef __cplusplus
13431extern "C" {
13432#endif
13433
13434EOF
13435	  # Now generate the symbol file.
13436	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13437
13438	  cat <<EOF >> conftest.$ac_ext
13439#if defined (__STDC__) && __STDC__
13440# define lt_ptr_t void *
13441#else
13442# define lt_ptr_t char *
13443# define const
13444#endif
13445
13446/* The mapping between symbol names and symbols. */
13447const struct {
13448  const char *name;
13449  lt_ptr_t address;
13450}
13451lt_preloaded_symbols[] =
13452{
13453EOF
13454	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13455	  cat <<\EOF >> conftest.$ac_ext
13456  {0, (lt_ptr_t) 0}
13457};
13458
13459#ifdef __cplusplus
13460}
13461#endif
13462EOF
13463	  # Now try linking the two files.
13464	  mv conftest.$ac_objext conftstm.$ac_objext
13465	  lt_save_LIBS="$LIBS"
13466	  lt_save_CFLAGS="$CFLAGS"
13467	  LIBS="conftstm.$ac_objext"
13468	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13469	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13470  (eval $ac_link) 2>&5
13471  ac_status=$?
13472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473  (exit $ac_status); } && test -s conftest${ac_exeext}; then
13474	    pipe_works=yes
13475	  fi
13476	  LIBS="$lt_save_LIBS"
13477	  CFLAGS="$lt_save_CFLAGS"
13478	else
13479	  echo "cannot find nm_test_func in $nlist" >&5
13480	fi
13481      else
13482	echo "cannot find nm_test_var in $nlist" >&5
13483      fi
13484    else
13485      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13486    fi
13487  else
13488    echo "$progname: failed program was:" >&5
13489    cat conftest.$ac_ext >&5
13490  fi
13491  rm -rf conftest* conftst*
13492
13493  # Do not use the global_symbol_pipe unless it works.
13494  if test "$pipe_works" = yes; then
13495    break
13496  else
13497    lt_cv_sys_global_symbol_pipe=
13498  fi
13499done
13500
13501fi
13502
13503if test -z "$lt_cv_sys_global_symbol_pipe"; then
13504  lt_cv_sys_global_symbol_to_cdecl=
13505fi
13506if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13507  { echo "$as_me:$LINENO: result: failed" >&5
13508echo "${ECHO_T}failed" >&6; }
13509else
13510  { echo "$as_me:$LINENO: result: ok" >&5
13511echo "${ECHO_T}ok" >&6; }
13512fi
13513
13514{ echo "$as_me:$LINENO: checking for objdir" >&5
13515echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13516if test "${lt_cv_objdir+set}" = set; then
13517  echo $ECHO_N "(cached) $ECHO_C" >&6
13518else
13519  rm -f .libs 2>/dev/null
13520mkdir .libs 2>/dev/null
13521if test -d .libs; then
13522  lt_cv_objdir=.libs
13523else
13524  # MS-DOS does not allow filenames that begin with a dot.
13525  lt_cv_objdir=_libs
13526fi
13527rmdir .libs 2>/dev/null
13528fi
13529{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13530echo "${ECHO_T}$lt_cv_objdir" >&6; }
13531objdir=$lt_cv_objdir
13532
13533
13534
13535
13536
13537case $host_os in
13538aix3*)
13539  # AIX sometimes has problems with the GCC collect2 program.  For some
13540  # reason, if we set the COLLECT_NAMES environment variable, the problems
13541  # vanish in a puff of smoke.
13542  if test "X${COLLECT_NAMES+set}" != Xset; then
13543    COLLECT_NAMES=
13544    export COLLECT_NAMES
13545  fi
13546  ;;
13547esac
13548
13549# Sed substitution that helps us do robust quoting.  It backslashifies
13550# metacharacters that are still active within double-quoted strings.
13551Xsed='sed -e 1s/^X//'
13552sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13553
13554# Same as above, but do not quote variable references.
13555double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13556
13557# Sed substitution to delay expansion of an escaped shell variable in a
13558# double_quote_subst'ed string.
13559delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13560
13561# Sed substitution to avoid accidental globbing in evaled expressions
13562no_glob_subst='s/\*/\\\*/g'
13563
13564# Constants:
13565rm="rm -f"
13566
13567# Global variables:
13568default_ofile=libtool
13569can_build_shared=yes
13570
13571# All known linkers require a `.a' archive for static linking (except MSVC,
13572# which needs '.lib').
13573libext=a
13574ltmain="$ac_aux_dir/ltmain.sh"
13575ofile="$default_ofile"
13576with_gnu_ld="$lt_cv_prog_gnu_ld"
13577
13578if test -n "$ac_tool_prefix"; then
13579  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13580set dummy ${ac_tool_prefix}ar; ac_word=$2
13581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13583if test "${ac_cv_prog_AR+set}" = set; then
13584  echo $ECHO_N "(cached) $ECHO_C" >&6
13585else
13586  if test -n "$AR"; then
13587  ac_cv_prog_AR="$AR" # Let the user override the test.
13588else
13589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13590for as_dir in $PATH
13591do
13592  IFS=$as_save_IFS
13593  test -z "$as_dir" && as_dir=.
13594  for ac_exec_ext in '' $ac_executable_extensions; do
13595  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13596    ac_cv_prog_AR="${ac_tool_prefix}ar"
13597    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13598    break 2
13599  fi
13600done
13601done
13602IFS=$as_save_IFS
13603
13604fi
13605fi
13606AR=$ac_cv_prog_AR
13607if test -n "$AR"; then
13608  { echo "$as_me:$LINENO: result: $AR" >&5
13609echo "${ECHO_T}$AR" >&6; }
13610else
13611  { echo "$as_me:$LINENO: result: no" >&5
13612echo "${ECHO_T}no" >&6; }
13613fi
13614
13615
13616fi
13617if test -z "$ac_cv_prog_AR"; then
13618  ac_ct_AR=$AR
13619  # Extract the first word of "ar", so it can be a program name with args.
13620set dummy ar; ac_word=$2
13621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13623if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13624  echo $ECHO_N "(cached) $ECHO_C" >&6
13625else
13626  if test -n "$ac_ct_AR"; then
13627  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13628else
13629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630for as_dir in $PATH
13631do
13632  IFS=$as_save_IFS
13633  test -z "$as_dir" && as_dir=.
13634  for ac_exec_ext in '' $ac_executable_extensions; do
13635  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13636    ac_cv_prog_ac_ct_AR="ar"
13637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13638    break 2
13639  fi
13640done
13641done
13642IFS=$as_save_IFS
13643
13644fi
13645fi
13646ac_ct_AR=$ac_cv_prog_ac_ct_AR
13647if test -n "$ac_ct_AR"; then
13648  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13649echo "${ECHO_T}$ac_ct_AR" >&6; }
13650else
13651  { echo "$as_me:$LINENO: result: no" >&5
13652echo "${ECHO_T}no" >&6; }
13653fi
13654
13655  if test "x$ac_ct_AR" = x; then
13656    AR="false"
13657  else
13658    case $cross_compiling:$ac_tool_warned in
13659yes:)
13660{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13661whose name does not start with the host triplet.  If you think this
13662configuration is useful to you, please write to autoconf@gnu.org." >&5
13663echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13664whose name does not start with the host triplet.  If you think this
13665configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13666ac_tool_warned=yes ;;
13667esac
13668    AR=$ac_ct_AR
13669  fi
13670else
13671  AR="$ac_cv_prog_AR"
13672fi
13673
13674if test -n "$ac_tool_prefix"; then
13675  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13676set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13679if test "${ac_cv_prog_RANLIB+set}" = set; then
13680  echo $ECHO_N "(cached) $ECHO_C" >&6
13681else
13682  if test -n "$RANLIB"; then
13683  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13684else
13685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13686for as_dir in $PATH
13687do
13688  IFS=$as_save_IFS
13689  test -z "$as_dir" && as_dir=.
13690  for ac_exec_ext in '' $ac_executable_extensions; do
13691  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13692    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13693    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13694    break 2
13695  fi
13696done
13697done
13698IFS=$as_save_IFS
13699
13700fi
13701fi
13702RANLIB=$ac_cv_prog_RANLIB
13703if test -n "$RANLIB"; then
13704  { echo "$as_me:$LINENO: result: $RANLIB" >&5
13705echo "${ECHO_T}$RANLIB" >&6; }
13706else
13707  { echo "$as_me:$LINENO: result: no" >&5
13708echo "${ECHO_T}no" >&6; }
13709fi
13710
13711
13712fi
13713if test -z "$ac_cv_prog_RANLIB"; then
13714  ac_ct_RANLIB=$RANLIB
13715  # Extract the first word of "ranlib", so it can be a program name with args.
13716set dummy ranlib; ac_word=$2
13717{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13719if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13720  echo $ECHO_N "(cached) $ECHO_C" >&6
13721else
13722  if test -n "$ac_ct_RANLIB"; then
13723  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13724else
13725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726for as_dir in $PATH
13727do
13728  IFS=$as_save_IFS
13729  test -z "$as_dir" && as_dir=.
13730  for ac_exec_ext in '' $ac_executable_extensions; do
13731  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13732    ac_cv_prog_ac_ct_RANLIB="ranlib"
13733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13734    break 2
13735  fi
13736done
13737done
13738IFS=$as_save_IFS
13739
13740fi
13741fi
13742ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13743if test -n "$ac_ct_RANLIB"; then
13744  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13745echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13746else
13747  { echo "$as_me:$LINENO: result: no" >&5
13748echo "${ECHO_T}no" >&6; }
13749fi
13750
13751  if test "x$ac_ct_RANLIB" = x; then
13752    RANLIB=":"
13753  else
13754    case $cross_compiling:$ac_tool_warned in
13755yes:)
13756{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13757whose name does not start with the host triplet.  If you think this
13758configuration is useful to you, please write to autoconf@gnu.org." >&5
13759echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13760whose name does not start with the host triplet.  If you think this
13761configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13762ac_tool_warned=yes ;;
13763esac
13764    RANLIB=$ac_ct_RANLIB
13765  fi
13766else
13767  RANLIB="$ac_cv_prog_RANLIB"
13768fi
13769
13770if test -n "$ac_tool_prefix"; then
13771  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13772set dummy ${ac_tool_prefix}strip; ac_word=$2
13773{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13775if test "${ac_cv_prog_STRIP+set}" = set; then
13776  echo $ECHO_N "(cached) $ECHO_C" >&6
13777else
13778  if test -n "$STRIP"; then
13779  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13780else
13781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13782for as_dir in $PATH
13783do
13784  IFS=$as_save_IFS
13785  test -z "$as_dir" && as_dir=.
13786  for ac_exec_ext in '' $ac_executable_extensions; do
13787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13788    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13789    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13790    break 2
13791  fi
13792done
13793done
13794IFS=$as_save_IFS
13795
13796fi
13797fi
13798STRIP=$ac_cv_prog_STRIP
13799if test -n "$STRIP"; then
13800  { echo "$as_me:$LINENO: result: $STRIP" >&5
13801echo "${ECHO_T}$STRIP" >&6; }
13802else
13803  { echo "$as_me:$LINENO: result: no" >&5
13804echo "${ECHO_T}no" >&6; }
13805fi
13806
13807
13808fi
13809if test -z "$ac_cv_prog_STRIP"; then
13810  ac_ct_STRIP=$STRIP
13811  # Extract the first word of "strip", so it can be a program name with args.
13812set dummy strip; ac_word=$2
13813{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13815if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13816  echo $ECHO_N "(cached) $ECHO_C" >&6
13817else
13818  if test -n "$ac_ct_STRIP"; then
13819  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13820else
13821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13822for as_dir in $PATH
13823do
13824  IFS=$as_save_IFS
13825  test -z "$as_dir" && as_dir=.
13826  for ac_exec_ext in '' $ac_executable_extensions; do
13827  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13828    ac_cv_prog_ac_ct_STRIP="strip"
13829    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13830    break 2
13831  fi
13832done
13833done
13834IFS=$as_save_IFS
13835
13836fi
13837fi
13838ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13839if test -n "$ac_ct_STRIP"; then
13840  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13841echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13842else
13843  { echo "$as_me:$LINENO: result: no" >&5
13844echo "${ECHO_T}no" >&6; }
13845fi
13846
13847  if test "x$ac_ct_STRIP" = x; then
13848    STRIP=":"
13849  else
13850    case $cross_compiling:$ac_tool_warned in
13851yes:)
13852{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13853whose name does not start with the host triplet.  If you think this
13854configuration is useful to you, please write to autoconf@gnu.org." >&5
13855echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13856whose name does not start with the host triplet.  If you think this
13857configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13858ac_tool_warned=yes ;;
13859esac
13860    STRIP=$ac_ct_STRIP
13861  fi
13862else
13863  STRIP="$ac_cv_prog_STRIP"
13864fi
13865
13866
13867old_CC="$CC"
13868old_CFLAGS="$CFLAGS"
13869
13870# Set sane defaults for various variables
13871test -z "$AR" && AR=ar
13872test -z "$AR_FLAGS" && AR_FLAGS=cru
13873test -z "$AS" && AS=as
13874test -z "$CC" && CC=cc
13875test -z "$LTCC" && LTCC=$CC
13876test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13877test -z "$DLLTOOL" && DLLTOOL=dlltool
13878test -z "$LD" && LD=ld
13879test -z "$LN_S" && LN_S="ln -s"
13880test -z "$MAGIC_CMD" && MAGIC_CMD=file
13881test -z "$NM" && NM=nm
13882test -z "$SED" && SED=sed
13883test -z "$OBJDUMP" && OBJDUMP=objdump
13884test -z "$RANLIB" && RANLIB=:
13885test -z "$STRIP" && STRIP=:
13886test -z "$ac_objext" && ac_objext=o
13887
13888# Determine commands to create old-style static archives.
13889old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13890old_postinstall_cmds='chmod 644 $oldlib'
13891old_postuninstall_cmds=
13892
13893if test -n "$RANLIB"; then
13894  case $host_os in
13895  openbsd*)
13896    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13897    ;;
13898  *)
13899    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13900    ;;
13901  esac
13902  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13903fi
13904
13905for cc_temp in $compiler""; do
13906  case $cc_temp in
13907    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13908    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13909    \-*) ;;
13910    *) break;;
13911  esac
13912done
13913cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13914
13915
13916# Only perform the check for file, if the check method requires it
13917case $deplibs_check_method in
13918file_magic*)
13919  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13920    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13921echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13922if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13923  echo $ECHO_N "(cached) $ECHO_C" >&6
13924else
13925  case $MAGIC_CMD in
13926[\\/*] |  ?:[\\/]*)
13927  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13928  ;;
13929*)
13930  lt_save_MAGIC_CMD="$MAGIC_CMD"
13931  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13932  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13933  for ac_dir in $ac_dummy; do
13934    IFS="$lt_save_ifs"
13935    test -z "$ac_dir" && ac_dir=.
13936    if test -f $ac_dir/${ac_tool_prefix}file; then
13937      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13938      if test -n "$file_magic_test_file"; then
13939	case $deplibs_check_method in
13940	"file_magic "*)
13941	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13942	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13943	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13944	    $EGREP "$file_magic_regex" > /dev/null; then
13945	    :
13946	  else
13947	    cat <<EOF 1>&2
13948
13949*** Warning: the command libtool uses to detect shared libraries,
13950*** $file_magic_cmd, produces output that libtool cannot recognize.
13951*** The result is that libtool may fail to recognize shared libraries
13952*** as such.  This will affect the creation of libtool libraries that
13953*** depend on shared libraries, but programs linked with such libtool
13954*** libraries will work regardless of this problem.  Nevertheless, you
13955*** may want to report the problem to your system manager and/or to
13956*** bug-libtool@gnu.org
13957
13958EOF
13959	  fi ;;
13960	esac
13961      fi
13962      break
13963    fi
13964  done
13965  IFS="$lt_save_ifs"
13966  MAGIC_CMD="$lt_save_MAGIC_CMD"
13967  ;;
13968esac
13969fi
13970
13971MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13972if test -n "$MAGIC_CMD"; then
13973  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13974echo "${ECHO_T}$MAGIC_CMD" >&6; }
13975else
13976  { echo "$as_me:$LINENO: result: no" >&5
13977echo "${ECHO_T}no" >&6; }
13978fi
13979
13980if test -z "$lt_cv_path_MAGIC_CMD"; then
13981  if test -n "$ac_tool_prefix"; then
13982    { echo "$as_me:$LINENO: checking for file" >&5
13983echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13984if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13985  echo $ECHO_N "(cached) $ECHO_C" >&6
13986else
13987  case $MAGIC_CMD in
13988[\\/*] |  ?:[\\/]*)
13989  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13990  ;;
13991*)
13992  lt_save_MAGIC_CMD="$MAGIC_CMD"
13993  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13994  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13995  for ac_dir in $ac_dummy; do
13996    IFS="$lt_save_ifs"
13997    test -z "$ac_dir" && ac_dir=.
13998    if test -f $ac_dir/file; then
13999      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14000      if test -n "$file_magic_test_file"; then
14001	case $deplibs_check_method in
14002	"file_magic "*)
14003	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14004	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14005	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14006	    $EGREP "$file_magic_regex" > /dev/null; then
14007	    :
14008	  else
14009	    cat <<EOF 1>&2
14010
14011*** Warning: the command libtool uses to detect shared libraries,
14012*** $file_magic_cmd, produces output that libtool cannot recognize.
14013*** The result is that libtool may fail to recognize shared libraries
14014*** as such.  This will affect the creation of libtool libraries that
14015*** depend on shared libraries, but programs linked with such libtool
14016*** libraries will work regardless of this problem.  Nevertheless, you
14017*** may want to report the problem to your system manager and/or to
14018*** bug-libtool@gnu.org
14019
14020EOF
14021	  fi ;;
14022	esac
14023      fi
14024      break
14025    fi
14026  done
14027  IFS="$lt_save_ifs"
14028  MAGIC_CMD="$lt_save_MAGIC_CMD"
14029  ;;
14030esac
14031fi
14032
14033MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14034if test -n "$MAGIC_CMD"; then
14035  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14036echo "${ECHO_T}$MAGIC_CMD" >&6; }
14037else
14038  { echo "$as_me:$LINENO: result: no" >&5
14039echo "${ECHO_T}no" >&6; }
14040fi
14041
14042  else
14043    MAGIC_CMD=:
14044  fi
14045fi
14046
14047  fi
14048  ;;
14049esac
14050
14051
14052  case $host_os in
14053    rhapsody* | darwin*)
14054    if test -n "$ac_tool_prefix"; then
14055  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14056set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14057{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14059if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
14060  echo $ECHO_N "(cached) $ECHO_C" >&6
14061else
14062  if test -n "$DSYMUTIL"; then
14063  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14064else
14065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14066for as_dir in $PATH
14067do
14068  IFS=$as_save_IFS
14069  test -z "$as_dir" && as_dir=.
14070  for ac_exec_ext in '' $ac_executable_extensions; do
14071  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14072    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14074    break 2
14075  fi
14076done
14077done
14078IFS=$as_save_IFS
14079
14080fi
14081fi
14082DSYMUTIL=$ac_cv_prog_DSYMUTIL
14083if test -n "$DSYMUTIL"; then
14084  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
14085echo "${ECHO_T}$DSYMUTIL" >&6; }
14086else
14087  { echo "$as_me:$LINENO: result: no" >&5
14088echo "${ECHO_T}no" >&6; }
14089fi
14090
14091
14092fi
14093if test -z "$ac_cv_prog_DSYMUTIL"; then
14094  ac_ct_DSYMUTIL=$DSYMUTIL
14095  # Extract the first word of "dsymutil", so it can be a program name with args.
14096set dummy dsymutil; ac_word=$2
14097{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14099if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
14100  echo $ECHO_N "(cached) $ECHO_C" >&6
14101else
14102  if test -n "$ac_ct_DSYMUTIL"; then
14103  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14104else
14105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106for as_dir in $PATH
14107do
14108  IFS=$as_save_IFS
14109  test -z "$as_dir" && as_dir=.
14110  for ac_exec_ext in '' $ac_executable_extensions; do
14111  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14112    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14113    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14114    break 2
14115  fi
14116done
14117done
14118IFS=$as_save_IFS
14119
14120fi
14121fi
14122ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14123if test -n "$ac_ct_DSYMUTIL"; then
14124  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
14125echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
14126else
14127  { echo "$as_me:$LINENO: result: no" >&5
14128echo "${ECHO_T}no" >&6; }
14129fi
14130
14131  if test "x$ac_ct_DSYMUTIL" = x; then
14132    DSYMUTIL=":"
14133  else
14134    case $cross_compiling:$ac_tool_warned in
14135yes:)
14136{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14137whose name does not start with the host triplet.  If you think this
14138configuration is useful to you, please write to autoconf@gnu.org." >&5
14139echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14140whose name does not start with the host triplet.  If you think this
14141configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14142ac_tool_warned=yes ;;
14143esac
14144    DSYMUTIL=$ac_ct_DSYMUTIL
14145  fi
14146else
14147  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14148fi
14149
14150    if test -n "$ac_tool_prefix"; then
14151  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14152set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14153{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14155if test "${ac_cv_prog_NMEDIT+set}" = set; then
14156  echo $ECHO_N "(cached) $ECHO_C" >&6
14157else
14158  if test -n "$NMEDIT"; then
14159  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14160else
14161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14162for as_dir in $PATH
14163do
14164  IFS=$as_save_IFS
14165  test -z "$as_dir" && as_dir=.
14166  for ac_exec_ext in '' $ac_executable_extensions; do
14167  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14168    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14169    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14170    break 2
14171  fi
14172done
14173done
14174IFS=$as_save_IFS
14175
14176fi
14177fi
14178NMEDIT=$ac_cv_prog_NMEDIT
14179if test -n "$NMEDIT"; then
14180  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
14181echo "${ECHO_T}$NMEDIT" >&6; }
14182else
14183  { echo "$as_me:$LINENO: result: no" >&5
14184echo "${ECHO_T}no" >&6; }
14185fi
14186
14187
14188fi
14189if test -z "$ac_cv_prog_NMEDIT"; then
14190  ac_ct_NMEDIT=$NMEDIT
14191  # Extract the first word of "nmedit", so it can be a program name with args.
14192set dummy nmedit; ac_word=$2
14193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14195if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
14196  echo $ECHO_N "(cached) $ECHO_C" >&6
14197else
14198  if test -n "$ac_ct_NMEDIT"; then
14199  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14200else
14201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14202for as_dir in $PATH
14203do
14204  IFS=$as_save_IFS
14205  test -z "$as_dir" && as_dir=.
14206  for ac_exec_ext in '' $ac_executable_extensions; do
14207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14208    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14209    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14210    break 2
14211  fi
14212done
14213done
14214IFS=$as_save_IFS
14215
14216fi
14217fi
14218ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14219if test -n "$ac_ct_NMEDIT"; then
14220  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
14221echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
14222else
14223  { echo "$as_me:$LINENO: result: no" >&5
14224echo "${ECHO_T}no" >&6; }
14225fi
14226
14227  if test "x$ac_ct_NMEDIT" = x; then
14228    NMEDIT=":"
14229  else
14230    case $cross_compiling:$ac_tool_warned in
14231yes:)
14232{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14233whose name does not start with the host triplet.  If you think this
14234configuration is useful to you, please write to autoconf@gnu.org." >&5
14235echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14236whose name does not start with the host triplet.  If you think this
14237configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14238ac_tool_warned=yes ;;
14239esac
14240    NMEDIT=$ac_ct_NMEDIT
14241  fi
14242else
14243  NMEDIT="$ac_cv_prog_NMEDIT"
14244fi
14245
14246
14247    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
14248echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
14249if test "${lt_cv_apple_cc_single_mod+set}" = set; then
14250  echo $ECHO_N "(cached) $ECHO_C" >&6
14251else
14252  lt_cv_apple_cc_single_mod=no
14253      if test -z "${LT_MULTI_MODULE}"; then
14254   # By default we will add the -single_module flag. You can override
14255   # by either setting the environment variable LT_MULTI_MODULE
14256   # non-empty at configure time, or by adding -multi_module to the
14257   # link flags.
14258   echo "int foo(void){return 1;}" > conftest.c
14259   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14260     -dynamiclib ${wl}-single_module conftest.c
14261   if test -f libconftest.dylib; then
14262     lt_cv_apple_cc_single_mod=yes
14263     rm -rf libconftest.dylib*
14264   fi
14265   rm conftest.c
14266      fi
14267fi
14268{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
14269echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
14270    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
14271echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
14272if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
14273  echo $ECHO_N "(cached) $ECHO_C" >&6
14274else
14275  lt_cv_ld_exported_symbols_list=no
14276      save_LDFLAGS=$LDFLAGS
14277      echo "_main" > conftest.sym
14278      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14279      cat >conftest.$ac_ext <<_ACEOF
14280/* confdefs.h.  */
14281_ACEOF
14282cat confdefs.h >>conftest.$ac_ext
14283cat >>conftest.$ac_ext <<_ACEOF
14284/* end confdefs.h.  */
14285
14286int
14287main ()
14288{
14289
14290  ;
14291  return 0;
14292}
14293_ACEOF
14294rm -f conftest.$ac_objext conftest$ac_exeext
14295if { (ac_try="$ac_link"
14296case "(($ac_try" in
14297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14298  *) ac_try_echo=$ac_try;;
14299esac
14300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14301  (eval "$ac_link") 2>conftest.er1
14302  ac_status=$?
14303  grep -v '^ *+' conftest.er1 >conftest.err
14304  rm -f conftest.er1
14305  cat conftest.err >&5
14306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307  (exit $ac_status); } && {
14308	 test -z "$ac_cxx_werror_flag" ||
14309	 test ! -s conftest.err
14310       } && test -s conftest$ac_exeext &&
14311       $as_test_x conftest$ac_exeext; then
14312  lt_cv_ld_exported_symbols_list=yes
14313else
14314  echo "$as_me: failed program was:" >&5
14315sed 's/^/| /' conftest.$ac_ext >&5
14316
14317	lt_cv_ld_exported_symbols_list=no
14318fi
14319
14320rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14321      conftest$ac_exeext conftest.$ac_ext
14322   LDFLAGS="$save_LDFLAGS"
14323
14324fi
14325{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
14326echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
14327    case $host_os in
14328    rhapsody* | darwin1.[0123])
14329      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14330    darwin1.*)
14331     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14332    darwin*)
14333      # if running on 10.5 or later, the deployment target defaults
14334      # to the OS version, if on x86, and 10.4, the deployment
14335      # target defaults to 10.4. Don't you love it?
14336      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14337   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14338     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14339   10.[012]*)
14340     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14341   10.*)
14342     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14343      esac
14344    ;;
14345  esac
14346    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14347      _lt_dar_single_mod='$single_module'
14348    fi
14349    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14350      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14351    else
14352      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
14353    fi
14354    if test "$DSYMUTIL" != ":"; then
14355      _lt_dsymutil="~$DSYMUTIL \$lib || :"
14356    else
14357      _lt_dsymutil=
14358    fi
14359    ;;
14360  esac
14361
14362
14363enable_dlopen=no
14364enable_win32_dll=no
14365
14366# Check whether --enable-libtool-lock was given.
14367if test "${enable_libtool_lock+set}" = set; then
14368  enableval=$enable_libtool_lock;
14369fi
14370
14371test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14372
14373
14374# Check whether --with-pic was given.
14375if test "${with_pic+set}" = set; then
14376  withval=$with_pic; pic_mode="$withval"
14377else
14378  pic_mode=default
14379fi
14380
14381test -z "$pic_mode" && pic_mode=default
14382
14383# Use C for the default configuration in the libtool script
14384tagname=
14385lt_save_CC="$CC"
14386ac_ext=c
14387ac_cpp='$CPP $CPPFLAGS'
14388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14390ac_compiler_gnu=$ac_cv_c_compiler_gnu
14391
14392
14393# Source file extension for C test sources.
14394ac_ext=c
14395
14396# Object file extension for compiled C test sources.
14397objext=o
14398objext=$objext
14399
14400# Code to be used in simple compile tests
14401lt_simple_compile_test_code="int some_variable = 0;"
14402
14403# Code to be used in simple link tests
14404lt_simple_link_test_code='int main(){return(0);}'
14405
14406
14407# If no C compiler was specified, use CC.
14408LTCC=${LTCC-"$CC"}
14409
14410# If no C compiler flags were specified, use CFLAGS.
14411LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14412
14413# Allow CC to be a program name with arguments.
14414compiler=$CC
14415
14416
14417# save warnings/boilerplate of simple test code
14418ac_outfile=conftest.$ac_objext
14419echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14420eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14421_lt_compiler_boilerplate=`cat conftest.err`
14422$rm conftest*
14423
14424ac_outfile=conftest.$ac_objext
14425echo "$lt_simple_link_test_code" >conftest.$ac_ext
14426eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14427_lt_linker_boilerplate=`cat conftest.err`
14428$rm -r conftest*
14429
14430
14431## CAVEAT EMPTOR:
14432## There is no encapsulation within the following macros, do not change
14433## the running order or otherwise move them around unless you know exactly
14434## what you are doing...
14435
14436lt_prog_compiler_no_builtin_flag=
14437
14438if test "$GCC" = yes; then
14439  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14440
14441
14442{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14443echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
14444if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14445  echo $ECHO_N "(cached) $ECHO_C" >&6
14446else
14447  lt_cv_prog_compiler_rtti_exceptions=no
14448  ac_outfile=conftest.$ac_objext
14449   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14450   lt_compiler_flag="-fno-rtti -fno-exceptions"
14451   # Insert the option either (1) after the last *FLAGS variable, or
14452   # (2) before a word containing "conftest.", or (3) at the end.
14453   # Note that $ac_compile itself does not contain backslashes and begins
14454   # with a dollar sign (not a hyphen), so the echo should work correctly.
14455   # The option is referenced via a variable to avoid confusing sed.
14456   lt_compile=`echo "$ac_compile" | $SED \
14457   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14458   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14459   -e 's:$: $lt_compiler_flag:'`
14460   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14461   (eval "$lt_compile" 2>conftest.err)
14462   ac_status=$?
14463   cat conftest.err >&5
14464   echo "$as_me:__oline__: \$? = $ac_status" >&5
14465   if (exit $ac_status) && test -s "$ac_outfile"; then
14466     # The compiler can only warn and ignore the option if not recognized
14467     # So say no if there are warnings other than the usual output.
14468     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14469     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14470     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14471       lt_cv_prog_compiler_rtti_exceptions=yes
14472     fi
14473   fi
14474   $rm conftest*
14475
14476fi
14477{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14478echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14479
14480if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14481    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14482else
14483    :
14484fi
14485
14486fi
14487
14488lt_prog_compiler_wl=
14489lt_prog_compiler_pic=
14490lt_prog_compiler_static=
14491
14492{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14493echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14494
14495  if test "$GCC" = yes; then
14496    lt_prog_compiler_wl='-Wl,'
14497    lt_prog_compiler_static='-static'
14498
14499    case $host_os in
14500      aix*)
14501      # All AIX code is PIC.
14502      if test "$host_cpu" = ia64; then
14503	# AIX 5 now supports IA64 processor
14504	lt_prog_compiler_static='-Bstatic'
14505      fi
14506      ;;
14507
14508    amigaos*)
14509      # FIXME: we need at least 68020 code to build shared libraries, but
14510      # adding the `-m68020' flag to GCC prevents building anything better,
14511      # like `-m68040'.
14512      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14513      ;;
14514
14515    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14516      # PIC is the default for these OSes.
14517      ;;
14518
14519    mingw* | cygwin* | pw32* | os2*)
14520      # This hack is so that the source file can tell whether it is being
14521      # built for inclusion in a dll (and should export symbols for example).
14522      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14523      # (--disable-auto-import) libraries
14524      lt_prog_compiler_pic='-DDLL_EXPORT'
14525      ;;
14526
14527    darwin* | rhapsody*)
14528      # PIC is the default on this platform
14529      # Common symbols not allowed in MH_DYLIB files
14530      lt_prog_compiler_pic='-fno-common'
14531      ;;
14532
14533    interix[3-9]*)
14534      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14535      # Instead, we relocate shared libraries at runtime.
14536      ;;
14537
14538    msdosdjgpp*)
14539      # Just because we use GCC doesn't mean we suddenly get shared libraries
14540      # on systems that don't support them.
14541      lt_prog_compiler_can_build_shared=no
14542      enable_shared=no
14543      ;;
14544
14545    sysv4*MP*)
14546      if test -d /usr/nec; then
14547	lt_prog_compiler_pic=-Kconform_pic
14548      fi
14549      ;;
14550
14551    hpux*)
14552      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14553      # not for PA HP-UX.
14554      case $host_cpu in
14555      hppa*64*|ia64*)
14556	# +Z the default
14557	;;
14558      *)
14559	lt_prog_compiler_pic='-fPIC'
14560	;;
14561      esac
14562      ;;
14563
14564    *)
14565      lt_prog_compiler_pic='-fPIC'
14566      ;;
14567    esac
14568  else
14569    # PORTME Check for flag to pass linker flags through the system compiler.
14570    case $host_os in
14571    aix*)
14572      lt_prog_compiler_wl='-Wl,'
14573      if test "$host_cpu" = ia64; then
14574	# AIX 5 now supports IA64 processor
14575	lt_prog_compiler_static='-Bstatic'
14576      else
14577	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14578      fi
14579      ;;
14580      darwin*)
14581        # PIC is the default on this platform
14582        # Common symbols not allowed in MH_DYLIB files
14583       case $cc_basename in
14584         xlc*)
14585         lt_prog_compiler_pic='-qnocommon'
14586         lt_prog_compiler_wl='-Wl,'
14587         ;;
14588       esac
14589       ;;
14590
14591    mingw* | cygwin* | pw32* | os2*)
14592      # This hack is so that the source file can tell whether it is being
14593      # built for inclusion in a dll (and should export symbols for example).
14594      lt_prog_compiler_pic='-DDLL_EXPORT'
14595      ;;
14596
14597    hpux9* | hpux10* | hpux11*)
14598      lt_prog_compiler_wl='-Wl,'
14599      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14600      # not for PA HP-UX.
14601      case $host_cpu in
14602      hppa*64*|ia64*)
14603	# +Z the default
14604	;;
14605      *)
14606	lt_prog_compiler_pic='+Z'
14607	;;
14608      esac
14609      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14610      lt_prog_compiler_static='${wl}-a ${wl}archive'
14611      ;;
14612
14613    irix5* | irix6* | nonstopux*)
14614      lt_prog_compiler_wl='-Wl,'
14615      # PIC (with -KPIC) is the default.
14616      lt_prog_compiler_static='-non_shared'
14617      ;;
14618
14619    newsos6)
14620      lt_prog_compiler_pic='-KPIC'
14621      lt_prog_compiler_static='-Bstatic'
14622      ;;
14623
14624    linux* | k*bsd*-gnu)
14625      case $cc_basename in
14626      icc* | ecc*)
14627	lt_prog_compiler_wl='-Wl,'
14628	lt_prog_compiler_pic='-KPIC'
14629	lt_prog_compiler_static='-static'
14630        ;;
14631      pgcc* | pgf77* | pgf90* | pgf95*)
14632        # Portland Group compilers (*not* the Pentium gcc compiler,
14633	# which looks to be a dead project)
14634	lt_prog_compiler_wl='-Wl,'
14635	lt_prog_compiler_pic='-fpic'
14636	lt_prog_compiler_static='-Bstatic'
14637        ;;
14638      ccc*)
14639        lt_prog_compiler_wl='-Wl,'
14640        # All Alpha code is PIC.
14641        lt_prog_compiler_static='-non_shared'
14642        ;;
14643      *)
14644        case `$CC -V 2>&1 | sed 5q` in
14645	*Sun\ C*)
14646	  # Sun C 5.9
14647	  lt_prog_compiler_pic='-KPIC'
14648	  lt_prog_compiler_static='-Bstatic'
14649	  lt_prog_compiler_wl='-Wl,'
14650	  ;;
14651	*Sun\ F*)
14652	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14653	  lt_prog_compiler_pic='-KPIC'
14654	  lt_prog_compiler_static='-Bstatic'
14655	  lt_prog_compiler_wl=''
14656	  ;;
14657	esac
14658	;;
14659      esac
14660      ;;
14661
14662    osf3* | osf4* | osf5*)
14663      lt_prog_compiler_wl='-Wl,'
14664      # All OSF/1 code is PIC.
14665      lt_prog_compiler_static='-non_shared'
14666      ;;
14667
14668    rdos*)
14669      lt_prog_compiler_static='-non_shared'
14670      ;;
14671
14672    solaris*)
14673      lt_prog_compiler_pic='-KPIC'
14674      lt_prog_compiler_static='-Bstatic'
14675      case $cc_basename in
14676      f77* | f90* | f95*)
14677	lt_prog_compiler_wl='-Qoption ld ';;
14678      *)
14679	lt_prog_compiler_wl='-Wl,';;
14680      esac
14681      ;;
14682
14683    sunos4*)
14684      lt_prog_compiler_wl='-Qoption ld '
14685      lt_prog_compiler_pic='-PIC'
14686      lt_prog_compiler_static='-Bstatic'
14687      ;;
14688
14689    sysv4 | sysv4.2uw2* | sysv4.3*)
14690      lt_prog_compiler_wl='-Wl,'
14691      lt_prog_compiler_pic='-KPIC'
14692      lt_prog_compiler_static='-Bstatic'
14693      ;;
14694
14695    sysv4*MP*)
14696      if test -d /usr/nec ;then
14697	lt_prog_compiler_pic='-Kconform_pic'
14698	lt_prog_compiler_static='-Bstatic'
14699      fi
14700      ;;
14701
14702    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14703      lt_prog_compiler_wl='-Wl,'
14704      lt_prog_compiler_pic='-KPIC'
14705      lt_prog_compiler_static='-Bstatic'
14706      ;;
14707
14708    unicos*)
14709      lt_prog_compiler_wl='-Wl,'
14710      lt_prog_compiler_can_build_shared=no
14711      ;;
14712
14713    uts4*)
14714      lt_prog_compiler_pic='-pic'
14715      lt_prog_compiler_static='-Bstatic'
14716      ;;
14717
14718    *)
14719      lt_prog_compiler_can_build_shared=no
14720      ;;
14721    esac
14722  fi
14723
14724{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14725echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14726
14727#
14728# Check to make sure the PIC flag actually works.
14729#
14730if test -n "$lt_prog_compiler_pic"; then
14731
14732{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14733echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14734if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
14735  echo $ECHO_N "(cached) $ECHO_C" >&6
14736else
14737  lt_cv_prog_compiler_pic_works=no
14738  ac_outfile=conftest.$ac_objext
14739   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14740   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14741   # Insert the option either (1) after the last *FLAGS variable, or
14742   # (2) before a word containing "conftest.", or (3) at the end.
14743   # Note that $ac_compile itself does not contain backslashes and begins
14744   # with a dollar sign (not a hyphen), so the echo should work correctly.
14745   # The option is referenced via a variable to avoid confusing sed.
14746   lt_compile=`echo "$ac_compile" | $SED \
14747   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14748   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14749   -e 's:$: $lt_compiler_flag:'`
14750   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14751   (eval "$lt_compile" 2>conftest.err)
14752   ac_status=$?
14753   cat conftest.err >&5
14754   echo "$as_me:__oline__: \$? = $ac_status" >&5
14755   if (exit $ac_status) && test -s "$ac_outfile"; then
14756     # The compiler can only warn and ignore the option if not recognized
14757     # So say no if there are warnings other than the usual output.
14758     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14759     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14760     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14761       lt_cv_prog_compiler_pic_works=yes
14762     fi
14763   fi
14764   $rm conftest*
14765
14766fi
14767{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
14768echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
14769
14770if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14771    case $lt_prog_compiler_pic in
14772     "" | " "*) ;;
14773     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14774     esac
14775else
14776    lt_prog_compiler_pic=
14777     lt_prog_compiler_can_build_shared=no
14778fi
14779
14780fi
14781case $host_os in
14782  # For platforms which do not support PIC, -DPIC is meaningless:
14783  *djgpp*)
14784    lt_prog_compiler_pic=
14785    ;;
14786  *)
14787    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14788    ;;
14789esac
14790
14791#
14792# Check to make sure the static flag actually works.
14793#
14794wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14795{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14796echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14797if test "${lt_cv_prog_compiler_static_works+set}" = set; then
14798  echo $ECHO_N "(cached) $ECHO_C" >&6
14799else
14800  lt_cv_prog_compiler_static_works=no
14801   save_LDFLAGS="$LDFLAGS"
14802   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14803   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14804   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14805     # The linker can only warn and ignore the option if not recognized
14806     # So say no if there are warnings
14807     if test -s conftest.err; then
14808       # Append any errors to the config.log.
14809       cat conftest.err 1>&5
14810       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14811       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14812       if diff conftest.exp conftest.er2 >/dev/null; then
14813         lt_cv_prog_compiler_static_works=yes
14814       fi
14815     else
14816       lt_cv_prog_compiler_static_works=yes
14817     fi
14818   fi
14819   $rm -r conftest*
14820   LDFLAGS="$save_LDFLAGS"
14821
14822fi
14823{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
14824echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
14825
14826if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14827    :
14828else
14829    lt_prog_compiler_static=
14830fi
14831
14832
14833{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14834echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14835if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14836  echo $ECHO_N "(cached) $ECHO_C" >&6
14837else
14838  lt_cv_prog_compiler_c_o=no
14839   $rm -r conftest 2>/dev/null
14840   mkdir conftest
14841   cd conftest
14842   mkdir out
14843   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14844
14845   lt_compiler_flag="-o out/conftest2.$ac_objext"
14846   # Insert the option either (1) after the last *FLAGS variable, or
14847   # (2) before a word containing "conftest.", or (3) at the end.
14848   # Note that $ac_compile itself does not contain backslashes and begins
14849   # with a dollar sign (not a hyphen), so the echo should work correctly.
14850   lt_compile=`echo "$ac_compile" | $SED \
14851   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14852   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14853   -e 's:$: $lt_compiler_flag:'`
14854   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14855   (eval "$lt_compile" 2>out/conftest.err)
14856   ac_status=$?
14857   cat out/conftest.err >&5
14858   echo "$as_me:__oline__: \$? = $ac_status" >&5
14859   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14860   then
14861     # The compiler can only warn and ignore the option if not recognized
14862     # So say no if there are warnings
14863     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14864     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14865     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14866       lt_cv_prog_compiler_c_o=yes
14867     fi
14868   fi
14869   chmod u+w . 2>&5
14870   $rm conftest*
14871   # SGI C++ compiler will create directory out/ii_files/ for
14872   # template instantiation
14873   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14874   $rm out/* && rmdir out
14875   cd ..
14876   rmdir conftest
14877   $rm conftest*
14878
14879fi
14880{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14881echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14882
14883
14884hard_links="nottested"
14885if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14886  # do not overwrite the value of need_locks provided by the user
14887  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14888echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14889  hard_links=yes
14890  $rm conftest*
14891  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14892  touch conftest.a
14893  ln conftest.a conftest.b 2>&5 || hard_links=no
14894  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14895  { echo "$as_me:$LINENO: result: $hard_links" >&5
14896echo "${ECHO_T}$hard_links" >&6; }
14897  if test "$hard_links" = no; then
14898    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14899echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14900    need_locks=warn
14901  fi
14902else
14903  need_locks=no
14904fi
14905
14906{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14907echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14908
14909  runpath_var=
14910  allow_undefined_flag=
14911  enable_shared_with_static_runtimes=no
14912  archive_cmds=
14913  archive_expsym_cmds=
14914  old_archive_From_new_cmds=
14915  old_archive_from_expsyms_cmds=
14916  export_dynamic_flag_spec=
14917  whole_archive_flag_spec=
14918  thread_safe_flag_spec=
14919  hardcode_libdir_flag_spec=
14920  hardcode_libdir_flag_spec_ld=
14921  hardcode_libdir_separator=
14922  hardcode_direct=no
14923  hardcode_minus_L=no
14924  hardcode_shlibpath_var=unsupported
14925  link_all_deplibs=unknown
14926  hardcode_automatic=no
14927  module_cmds=
14928  module_expsym_cmds=
14929  always_export_symbols=no
14930  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14931  # include_expsyms should be a list of space-separated symbols to be *always*
14932  # included in the symbol list
14933  include_expsyms=
14934  # exclude_expsyms can be an extended regexp of symbols to exclude
14935  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14936  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14937  # as well as any symbol that contains `d'.
14938  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14939  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14940  # platforms (ab)use it in PIC code, but their linkers get confused if
14941  # the symbol is explicitly referenced.  Since portable code cannot
14942  # rely on this symbol name, it's probably fine to never include it in
14943  # preloaded symbol tables.
14944  # Exclude shared library initialization/finalization symbols.
14945  extract_expsyms_cmds=
14946  # Just being paranoid about ensuring that cc_basename is set.
14947  for cc_temp in $compiler""; do
14948  case $cc_temp in
14949    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14950    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14951    \-*) ;;
14952    *) break;;
14953  esac
14954done
14955cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14956
14957  case $host_os in
14958  cygwin* | mingw* | pw32*)
14959    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14960    # When not using gcc, we currently assume that we are using
14961    # Microsoft Visual C++.
14962    if test "$GCC" != yes; then
14963      with_gnu_ld=no
14964    fi
14965    ;;
14966  interix*)
14967    # we just hope/assume this is gcc and not c89 (= MSVC++)
14968    with_gnu_ld=yes
14969    ;;
14970  openbsd*)
14971    with_gnu_ld=no
14972    ;;
14973  esac
14974
14975  ld_shlibs=yes
14976  if test "$with_gnu_ld" = yes; then
14977    # If archive_cmds runs LD, not CC, wlarc should be empty
14978    wlarc='${wl}'
14979
14980    # Set some defaults for GNU ld with shared library support. These
14981    # are reset later if shared libraries are not supported. Putting them
14982    # here allows them to be overridden if necessary.
14983    runpath_var=LD_RUN_PATH
14984    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14985    export_dynamic_flag_spec='${wl}--export-dynamic'
14986    # ancient GNU ld didn't support --whole-archive et. al.
14987    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14988	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14989      else
14990  	whole_archive_flag_spec=
14991    fi
14992    supports_anon_versioning=no
14993    case `$LD -v 2>/dev/null` in
14994      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14995      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14996      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14997      *\ 2.11.*) ;; # other 2.11 versions
14998      *) supports_anon_versioning=yes ;;
14999    esac
15000
15001    # See if GNU ld supports shared libraries.
15002    case $host_os in
15003    aix[3-9]*)
15004      # On AIX/PPC, the GNU linker is very broken
15005      if test "$host_cpu" != ia64; then
15006	ld_shlibs=no
15007	cat <<EOF 1>&2
15008
15009*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15010*** to be unable to reliably create shared libraries on AIX.
15011*** Therefore, libtool is disabling shared libraries support.  If you
15012*** really care for shared libraries, you may want to modify your PATH
15013*** so that a non-GNU linker is found, and then restart.
15014
15015EOF
15016      fi
15017      ;;
15018
15019    amigaos*)
15020      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)'
15021      hardcode_libdir_flag_spec='-L$libdir'
15022      hardcode_minus_L=yes
15023
15024      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15025      # that the semantics of dynamic libraries on AmigaOS, at least up
15026      # to version 4, is to share data among multiple programs linked
15027      # with the same dynamic library.  Since this doesn't match the
15028      # behavior of shared libraries on other platforms, we can't use
15029      # them.
15030      ld_shlibs=no
15031      ;;
15032
15033    beos*)
15034      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15035	allow_undefined_flag=unsupported
15036	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15037	# support --undefined.  This deserves some investigation.  FIXME
15038	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15039      else
15040	ld_shlibs=no
15041      fi
15042      ;;
15043
15044    cygwin* | mingw* | pw32*)
15045      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15046      # as there is no search path for DLLs.
15047      hardcode_libdir_flag_spec='-L$libdir'
15048      allow_undefined_flag=unsupported
15049      always_export_symbols=no
15050      enable_shared_with_static_runtimes=yes
15051      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15052
15053      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15054        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15055	# If the export-symbols file already is a .def file (1st line
15056	# is EXPORTS), use it as is; otherwise, prepend...
15057	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15058	  cp $export_symbols $output_objdir/$soname.def;
15059	else
15060	  echo EXPORTS > $output_objdir/$soname.def;
15061	  cat $export_symbols >> $output_objdir/$soname.def;
15062	fi~
15063	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15064      else
15065	ld_shlibs=no
15066      fi
15067      ;;
15068
15069    interix[3-9]*)
15070      hardcode_direct=no
15071      hardcode_shlibpath_var=no
15072      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15073      export_dynamic_flag_spec='${wl}-E'
15074      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15075      # Instead, shared libraries are loaded at an image base (0x10000000 by
15076      # default) and relocated if they conflict, which is a slow very memory
15077      # consuming and fragmenting process.  To avoid this, we pick a random,
15078      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15079      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15080      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15081      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'
15082      ;;
15083
15084    gnu* | linux* | k*bsd*-gnu)
15085      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15086	tmp_addflag=
15087	case $cc_basename,$host_cpu in
15088	pgcc*)				# Portland Group C compiler
15089	  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'
15090	  tmp_addflag=' $pic_flag'
15091	  ;;
15092	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15093	  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'
15094	  tmp_addflag=' $pic_flag -Mnomain' ;;
15095	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15096	  tmp_addflag=' -i_dynamic' ;;
15097	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15098	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15099	ifc* | ifort*)			# Intel Fortran compiler
15100	  tmp_addflag=' -nofor_main' ;;
15101	esac
15102	case `$CC -V 2>&1 | sed 5q` in
15103	*Sun\ C*)			# Sun C 5.9
15104	  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'
15105	  tmp_sharedflag='-G' ;;
15106	*Sun\ F*)			# Sun Fortran 8.3
15107	  tmp_sharedflag='-G' ;;
15108	*)
15109	  tmp_sharedflag='-shared' ;;
15110	esac
15111	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15112
15113	if test $supports_anon_versioning = yes; then
15114	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15115  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15116  $echo "local: *; };" >> $output_objdir/$libname.ver~
15117	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15118	fi
15119      else
15120	ld_shlibs=no
15121      fi
15122      ;;
15123
15124    netbsd*)
15125      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15126	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15127	wlarc=
15128      else
15129	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15130	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15131      fi
15132      ;;
15133
15134    solaris*)
15135      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15136	ld_shlibs=no
15137	cat <<EOF 1>&2
15138
15139*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15140*** create shared libraries on Solaris systems.  Therefore, libtool
15141*** is disabling shared libraries support.  We urge you to upgrade GNU
15142*** binutils to release 2.9.1 or newer.  Another option is to modify
15143*** your PATH or compiler configuration so that the native linker is
15144*** used, and then restart.
15145
15146EOF
15147      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15148	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15149	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15150      else
15151	ld_shlibs=no
15152      fi
15153      ;;
15154
15155    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15156      case `$LD -v 2>&1` in
15157        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15158	ld_shlibs=no
15159	cat <<_LT_EOF 1>&2
15160
15161*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15162*** reliably create shared libraries on SCO systems.  Therefore, libtool
15163*** is disabling shared libraries support.  We urge you to upgrade GNU
15164*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15165*** your PATH or compiler configuration so that the native linker is
15166*** used, and then restart.
15167
15168_LT_EOF
15169	;;
15170	*)
15171	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15172	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15173	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15174	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15175	  else
15176	    ld_shlibs=no
15177	  fi
15178	;;
15179      esac
15180      ;;
15181
15182    sunos4*)
15183      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15184      wlarc=
15185      hardcode_direct=yes
15186      hardcode_shlibpath_var=no
15187      ;;
15188
15189    *)
15190      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15191	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15192	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15193      else
15194	ld_shlibs=no
15195      fi
15196      ;;
15197    esac
15198
15199    if test "$ld_shlibs" = no; then
15200      runpath_var=
15201      hardcode_libdir_flag_spec=
15202      export_dynamic_flag_spec=
15203      whole_archive_flag_spec=
15204    fi
15205  else
15206    # PORTME fill in a description of your system's linker (not GNU ld)
15207    case $host_os in
15208    aix3*)
15209      allow_undefined_flag=unsupported
15210      always_export_symbols=yes
15211      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'
15212      # Note: this linker hardcodes the directories in LIBPATH if there
15213      # are no directories specified by -L.
15214      hardcode_minus_L=yes
15215      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15216	# Neither direct hardcoding nor static linking is supported with a
15217	# broken collect2.
15218	hardcode_direct=unsupported
15219      fi
15220      ;;
15221
15222    aix[4-9]*)
15223      if test "$host_cpu" = ia64; then
15224	# On IA64, the linker does run time linking by default, so we don't
15225	# have to do anything special.
15226	aix_use_runtimelinking=no
15227	exp_sym_flag='-Bexport'
15228	no_entry_flag=""
15229      else
15230	# If we're using GNU nm, then we don't want the "-C" option.
15231	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15232	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15233	  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'
15234	else
15235	  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'
15236	fi
15237	aix_use_runtimelinking=no
15238
15239	# Test if we are trying to use run time linking or normal
15240	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15241	# need to do runtime linking.
15242	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15243	  for ld_flag in $LDFLAGS; do
15244  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15245  	    aix_use_runtimelinking=yes
15246  	    break
15247  	  fi
15248	  done
15249	  ;;
15250	esac
15251
15252	exp_sym_flag='-bexport'
15253	no_entry_flag='-bnoentry'
15254      fi
15255
15256      # When large executables or shared objects are built, AIX ld can
15257      # have problems creating the table of contents.  If linking a library
15258      # or program results in "error TOC overflow" add -mminimal-toc to
15259      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15260      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15261
15262      archive_cmds=''
15263      hardcode_direct=yes
15264      hardcode_libdir_separator=':'
15265      link_all_deplibs=yes
15266
15267      if test "$GCC" = yes; then
15268	case $host_os in aix4.[012]|aix4.[012].*)
15269	# We only want to do this on AIX 4.2 and lower, the check
15270	# below for broken collect2 doesn't work under 4.3+
15271	  collect2name=`${CC} -print-prog-name=collect2`
15272	  if test -f "$collect2name" && \
15273  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15274	  then
15275  	  # We have reworked collect2
15276  	  :
15277	  else
15278  	  # We have old collect2
15279  	  hardcode_direct=unsupported
15280  	  # It fails to find uninstalled libraries when the uninstalled
15281  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15282  	  # to unsupported forces relinking
15283  	  hardcode_minus_L=yes
15284  	  hardcode_libdir_flag_spec='-L$libdir'
15285  	  hardcode_libdir_separator=
15286	  fi
15287	  ;;
15288	esac
15289	shared_flag='-shared'
15290	if test "$aix_use_runtimelinking" = yes; then
15291	  shared_flag="$shared_flag "'${wl}-G'
15292	fi
15293      else
15294	# not using gcc
15295	if test "$host_cpu" = ia64; then
15296  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15297  	# chokes on -Wl,-G. The following line is correct:
15298	  shared_flag='-G'
15299	else
15300	  if test "$aix_use_runtimelinking" = yes; then
15301	    shared_flag='${wl}-G'
15302	  else
15303	    shared_flag='${wl}-bM:SRE'
15304	  fi
15305	fi
15306      fi
15307
15308      # It seems that -bexpall does not export symbols beginning with
15309      # underscore (_), so it is better to generate a list of symbols to export.
15310      always_export_symbols=yes
15311      if test "$aix_use_runtimelinking" = yes; then
15312	# Warning - without using the other runtime loading flags (-brtl),
15313	# -berok will link without error, but may produce a broken library.
15314	allow_undefined_flag='-berok'
15315       # Determine the default libpath from the value encoded in an empty executable.
15316       cat >conftest.$ac_ext <<_ACEOF
15317/* confdefs.h.  */
15318_ACEOF
15319cat confdefs.h >>conftest.$ac_ext
15320cat >>conftest.$ac_ext <<_ACEOF
15321/* end confdefs.h.  */
15322
15323int
15324main ()
15325{
15326
15327  ;
15328  return 0;
15329}
15330_ACEOF
15331rm -f conftest.$ac_objext conftest$ac_exeext
15332if { (ac_try="$ac_link"
15333case "(($ac_try" in
15334  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335  *) ac_try_echo=$ac_try;;
15336esac
15337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338  (eval "$ac_link") 2>conftest.er1
15339  ac_status=$?
15340  grep -v '^ *+' conftest.er1 >conftest.err
15341  rm -f conftest.er1
15342  cat conftest.err >&5
15343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344  (exit $ac_status); } && {
15345	 test -z "$ac_c_werror_flag" ||
15346	 test ! -s conftest.err
15347       } && test -s conftest$ac_exeext &&
15348       $as_test_x conftest$ac_exeext; then
15349
15350lt_aix_libpath_sed='
15351    /Import File Strings/,/^$/ {
15352	/^0/ {
15353	    s/^0  *\(.*\)$/\1/
15354	    p
15355	}
15356    }'
15357aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15358# Check for a 64-bit object if we didn't find anything.
15359if test -z "$aix_libpath"; then
15360  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15361fi
15362else
15363  echo "$as_me: failed program was:" >&5
15364sed 's/^/| /' conftest.$ac_ext >&5
15365
15366
15367fi
15368
15369rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15370      conftest$ac_exeext conftest.$ac_ext
15371if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15372
15373       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15374	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"
15375       else
15376	if test "$host_cpu" = ia64; then
15377	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15378	  allow_undefined_flag="-z nodefs"
15379	  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"
15380	else
15381	 # Determine the default libpath from the value encoded in an empty executable.
15382	 cat >conftest.$ac_ext <<_ACEOF
15383/* confdefs.h.  */
15384_ACEOF
15385cat confdefs.h >>conftest.$ac_ext
15386cat >>conftest.$ac_ext <<_ACEOF
15387/* end confdefs.h.  */
15388
15389int
15390main ()
15391{
15392
15393  ;
15394  return 0;
15395}
15396_ACEOF
15397rm -f conftest.$ac_objext conftest$ac_exeext
15398if { (ac_try="$ac_link"
15399case "(($ac_try" in
15400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401  *) ac_try_echo=$ac_try;;
15402esac
15403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404  (eval "$ac_link") 2>conftest.er1
15405  ac_status=$?
15406  grep -v '^ *+' conftest.er1 >conftest.err
15407  rm -f conftest.er1
15408  cat conftest.err >&5
15409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410  (exit $ac_status); } && {
15411	 test -z "$ac_c_werror_flag" ||
15412	 test ! -s conftest.err
15413       } && test -s conftest$ac_exeext &&
15414       $as_test_x conftest$ac_exeext; then
15415
15416lt_aix_libpath_sed='
15417    /Import File Strings/,/^$/ {
15418	/^0/ {
15419	    s/^0  *\(.*\)$/\1/
15420	    p
15421	}
15422    }'
15423aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15424# Check for a 64-bit object if we didn't find anything.
15425if test -z "$aix_libpath"; then
15426  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15427fi
15428else
15429  echo "$as_me: failed program was:" >&5
15430sed 's/^/| /' conftest.$ac_ext >&5
15431
15432
15433fi
15434
15435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15436      conftest$ac_exeext conftest.$ac_ext
15437if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15438
15439	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15440	  # Warning - without using the other run time loading flags,
15441	  # -berok will link without error, but may produce a broken library.
15442	  no_undefined_flag=' ${wl}-bernotok'
15443	  allow_undefined_flag=' ${wl}-berok'
15444	  # Exported symbols can be pulled into shared objects from archives
15445	  whole_archive_flag_spec='$convenience'
15446	  archive_cmds_need_lc=yes
15447	  # This is similar to how AIX traditionally builds its shared libraries.
15448	  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'
15449	fi
15450      fi
15451      ;;
15452
15453    amigaos*)
15454      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)'
15455      hardcode_libdir_flag_spec='-L$libdir'
15456      hardcode_minus_L=yes
15457      # see comment about different semantics on the GNU ld section
15458      ld_shlibs=no
15459      ;;
15460
15461    bsdi[45]*)
15462      export_dynamic_flag_spec=-rdynamic
15463      ;;
15464
15465    cygwin* | mingw* | pw32*)
15466      # When not using gcc, we currently assume that we are using
15467      # Microsoft Visual C++.
15468      # hardcode_libdir_flag_spec is actually meaningless, as there is
15469      # no search path for DLLs.
15470      hardcode_libdir_flag_spec=' '
15471      allow_undefined_flag=unsupported
15472      # Tell ltmain to make .lib files, not .a files.
15473      libext=lib
15474      # Tell ltmain to make .dll files, not .so files.
15475      shrext_cmds=".dll"
15476      # FIXME: Setting linknames here is a bad hack.
15477      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15478      # The linker will automatically build a .lib file if we build a DLL.
15479      old_archive_From_new_cmds='true'
15480      # FIXME: Should let the user specify the lib program.
15481      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15482      fix_srcfile_path='`cygpath -w "$srcfile"`'
15483      enable_shared_with_static_runtimes=yes
15484      ;;
15485
15486    darwin* | rhapsody*)
15487      case $host_os in
15488        rhapsody* | darwin1.[012])
15489         allow_undefined_flag='${wl}-undefined ${wl}suppress'
15490         ;;
15491       *) # Darwin 1.3 on
15492         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15493           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15494         else
15495           case ${MACOSX_DEPLOYMENT_TARGET} in
15496             10.[012])
15497               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15498               ;;
15499             10.*)
15500               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15501               ;;
15502           esac
15503         fi
15504         ;;
15505      esac
15506      archive_cmds_need_lc=no
15507      hardcode_direct=no
15508      hardcode_automatic=yes
15509      hardcode_shlibpath_var=unsupported
15510      whole_archive_flag_spec=''
15511      link_all_deplibs=yes
15512    if test "$GCC" = yes ; then
15513    	output_verbose_link_cmd='echo'
15514        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15515        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15516        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15517        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15518    else
15519      case $cc_basename in
15520        xlc*)
15521         output_verbose_link_cmd='echo'
15522         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15523         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15524          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15525         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15526          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}'
15527          ;;
15528       *)
15529         ld_shlibs=no
15530          ;;
15531      esac
15532    fi
15533      ;;
15534
15535    dgux*)
15536      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15537      hardcode_libdir_flag_spec='-L$libdir'
15538      hardcode_shlibpath_var=no
15539      ;;
15540
15541    freebsd1*)
15542      ld_shlibs=no
15543      ;;
15544
15545    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15546    # support.  Future versions do this automatically, but an explicit c++rt0.o
15547    # does not break anything, and helps significantly (at the cost of a little
15548    # extra space).
15549    freebsd2.2*)
15550      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15551      hardcode_libdir_flag_spec='-R$libdir'
15552      hardcode_direct=yes
15553      hardcode_shlibpath_var=no
15554      ;;
15555
15556    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15557    freebsd2*)
15558      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15559      hardcode_direct=yes
15560      hardcode_minus_L=yes
15561      hardcode_shlibpath_var=no
15562      ;;
15563
15564    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15565    freebsd* | dragonfly*)
15566      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15567      hardcode_libdir_flag_spec='-R$libdir'
15568      hardcode_direct=yes
15569      hardcode_shlibpath_var=no
15570      ;;
15571
15572    hpux9*)
15573      if test "$GCC" = yes; then
15574	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'
15575      else
15576	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'
15577      fi
15578      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15579      hardcode_libdir_separator=:
15580      hardcode_direct=yes
15581
15582      # hardcode_minus_L: Not really in the search PATH,
15583      # but as the default location of the library.
15584      hardcode_minus_L=yes
15585      export_dynamic_flag_spec='${wl}-E'
15586      ;;
15587
15588    hpux10*)
15589      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15590	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15591      else
15592	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15593      fi
15594      if test "$with_gnu_ld" = no; then
15595	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15596	hardcode_libdir_separator=:
15597
15598	hardcode_direct=yes
15599	export_dynamic_flag_spec='${wl}-E'
15600
15601	# hardcode_minus_L: Not really in the search PATH,
15602	# but as the default location of the library.
15603	hardcode_minus_L=yes
15604      fi
15605      ;;
15606
15607    hpux11*)
15608      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15609	case $host_cpu in
15610	hppa*64*)
15611	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15612	  ;;
15613	ia64*)
15614	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15615	  ;;
15616	*)
15617	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15618	  ;;
15619	esac
15620      else
15621	case $host_cpu in
15622	hppa*64*)
15623	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15624	  ;;
15625	ia64*)
15626	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15627	  ;;
15628	*)
15629	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15630	  ;;
15631	esac
15632      fi
15633      if test "$with_gnu_ld" = no; then
15634	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15635	hardcode_libdir_separator=:
15636
15637	case $host_cpu in
15638	hppa*64*|ia64*)
15639	  hardcode_libdir_flag_spec_ld='+b $libdir'
15640	  hardcode_direct=no
15641	  hardcode_shlibpath_var=no
15642	  ;;
15643	*)
15644	  hardcode_direct=yes
15645	  export_dynamic_flag_spec='${wl}-E'
15646
15647	  # hardcode_minus_L: Not really in the search PATH,
15648	  # but as the default location of the library.
15649	  hardcode_minus_L=yes
15650	  ;;
15651	esac
15652      fi
15653      ;;
15654
15655    irix5* | irix6* | nonstopux*)
15656      if test "$GCC" = yes; then
15657	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'
15658      else
15659	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'
15660	hardcode_libdir_flag_spec_ld='-rpath $libdir'
15661      fi
15662      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15663      hardcode_libdir_separator=:
15664      link_all_deplibs=yes
15665      ;;
15666
15667    netbsd*)
15668      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15669	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15670      else
15671	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15672      fi
15673      hardcode_libdir_flag_spec='-R$libdir'
15674      hardcode_direct=yes
15675      hardcode_shlibpath_var=no
15676      ;;
15677
15678    newsos6)
15679      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15680      hardcode_direct=yes
15681      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15682      hardcode_libdir_separator=:
15683      hardcode_shlibpath_var=no
15684      ;;
15685
15686    openbsd*)
15687      if test -f /usr/libexec/ld.so; then
15688	hardcode_direct=yes
15689	hardcode_shlibpath_var=no
15690	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15691	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15692	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15693	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15694	  export_dynamic_flag_spec='${wl}-E'
15695	else
15696	  case $host_os in
15697	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15698	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15699	     hardcode_libdir_flag_spec='-R$libdir'
15700	     ;;
15701	   *)
15702	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15703	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15704	     ;;
15705	  esac
15706        fi
15707      else
15708	ld_shlibs=no
15709      fi
15710      ;;
15711
15712    os2*)
15713      hardcode_libdir_flag_spec='-L$libdir'
15714      hardcode_minus_L=yes
15715      allow_undefined_flag=unsupported
15716      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'
15717      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15718      ;;
15719
15720    osf3*)
15721      if test "$GCC" = yes; then
15722	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15723	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'
15724      else
15725	allow_undefined_flag=' -expect_unresolved \*'
15726	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'
15727      fi
15728      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15729      hardcode_libdir_separator=:
15730      ;;
15731
15732    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15733      if test "$GCC" = yes; then
15734	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15735	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'
15736	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15737      else
15738	allow_undefined_flag=' -expect_unresolved \*'
15739	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'
15740	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15741	$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'
15742
15743	# Both c and cxx compiler support -rpath directly
15744	hardcode_libdir_flag_spec='-rpath $libdir'
15745      fi
15746      hardcode_libdir_separator=:
15747      ;;
15748
15749    solaris*)
15750      no_undefined_flag=' -z text'
15751      if test "$GCC" = yes; then
15752	wlarc='${wl}'
15753	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15754	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15755	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15756      else
15757	wlarc=''
15758	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15759	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15760  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15761      fi
15762      hardcode_libdir_flag_spec='-R$libdir'
15763      hardcode_shlibpath_var=no
15764      case $host_os in
15765      solaris2.[0-5] | solaris2.[0-5].*) ;;
15766      *)
15767	# The compiler driver will combine and reorder linker options,
15768	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15769	# but is careful enough not to reorder.
15770 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15771	if test "$GCC" = yes; then
15772	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15773	else
15774	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15775	fi
15776	;;
15777      esac
15778      link_all_deplibs=yes
15779      ;;
15780
15781    sunos4*)
15782      if test "x$host_vendor" = xsequent; then
15783	# Use $CC to link under sequent, because it throws in some extra .o
15784	# files that make .init and .fini sections work.
15785	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15786      else
15787	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15788      fi
15789      hardcode_libdir_flag_spec='-L$libdir'
15790      hardcode_direct=yes
15791      hardcode_minus_L=yes
15792      hardcode_shlibpath_var=no
15793      ;;
15794
15795    sysv4)
15796      case $host_vendor in
15797	sni)
15798	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15799	  hardcode_direct=yes # is this really true???
15800	;;
15801	siemens)
15802	  ## LD is ld it makes a PLAMLIB
15803	  ## CC just makes a GrossModule.
15804	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15805	  reload_cmds='$CC -r -o $output$reload_objs'
15806	  hardcode_direct=no
15807        ;;
15808	motorola)
15809	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15810	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15811	;;
15812      esac
15813      runpath_var='LD_RUN_PATH'
15814      hardcode_shlibpath_var=no
15815      ;;
15816
15817    sysv4.3*)
15818      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15819      hardcode_shlibpath_var=no
15820      export_dynamic_flag_spec='-Bexport'
15821      ;;
15822
15823    sysv4*MP*)
15824      if test -d /usr/nec; then
15825	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15826	hardcode_shlibpath_var=no
15827	runpath_var=LD_RUN_PATH
15828	hardcode_runpath_var=yes
15829	ld_shlibs=yes
15830      fi
15831      ;;
15832
15833    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15834      no_undefined_flag='${wl}-z,text'
15835      archive_cmds_need_lc=no
15836      hardcode_shlibpath_var=no
15837      runpath_var='LD_RUN_PATH'
15838
15839      if test "$GCC" = yes; then
15840	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15841	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15842      else
15843	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15844	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15845      fi
15846      ;;
15847
15848    sysv5* | sco3.2v5* | sco5v6*)
15849      # Note: We can NOT use -z defs as we might desire, because we do not
15850      # link with -lc, and that would cause any symbols used from libc to
15851      # always be unresolved, which means just about no library would
15852      # ever link correctly.  If we're not using GNU ld we use -z text
15853      # though, which does catch some bad symbols but isn't as heavy-handed
15854      # as -z defs.
15855      no_undefined_flag='${wl}-z,text'
15856      allow_undefined_flag='${wl}-z,nodefs'
15857      archive_cmds_need_lc=no
15858      hardcode_shlibpath_var=no
15859      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15860      hardcode_libdir_separator=':'
15861      link_all_deplibs=yes
15862      export_dynamic_flag_spec='${wl}-Bexport'
15863      runpath_var='LD_RUN_PATH'
15864
15865      if test "$GCC" = yes; then
15866	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15867	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15868      else
15869	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15870	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15871      fi
15872      ;;
15873
15874    uts4*)
15875      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15876      hardcode_libdir_flag_spec='-L$libdir'
15877      hardcode_shlibpath_var=no
15878      ;;
15879
15880    *)
15881      ld_shlibs=no
15882      ;;
15883    esac
15884  fi
15885
15886{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15887echo "${ECHO_T}$ld_shlibs" >&6; }
15888test "$ld_shlibs" = no && can_build_shared=no
15889
15890#
15891# Do we need to explicitly link libc?
15892#
15893case "x$archive_cmds_need_lc" in
15894x|xyes)
15895  # Assume -lc should be added
15896  archive_cmds_need_lc=yes
15897
15898  if test "$enable_shared" = yes && test "$GCC" = yes; then
15899    case $archive_cmds in
15900    *'~'*)
15901      # FIXME: we may have to deal with multi-command sequences.
15902      ;;
15903    '$CC '*)
15904      # Test whether the compiler implicitly links with -lc since on some
15905      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15906      # to ld, don't add -lc before -lgcc.
15907      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15908echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15909      $rm conftest*
15910      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15911
15912      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15913  (eval $ac_compile) 2>&5
15914  ac_status=$?
15915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916  (exit $ac_status); } 2>conftest.err; then
15917        soname=conftest
15918        lib=conftest
15919        libobjs=conftest.$ac_objext
15920        deplibs=
15921        wl=$lt_prog_compiler_wl
15922	pic_flag=$lt_prog_compiler_pic
15923        compiler_flags=-v
15924        linker_flags=-v
15925        verstring=
15926        output_objdir=.
15927        libname=conftest
15928        lt_save_allow_undefined_flag=$allow_undefined_flag
15929        allow_undefined_flag=
15930        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15931  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15932  ac_status=$?
15933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934  (exit $ac_status); }
15935        then
15936	  archive_cmds_need_lc=no
15937        else
15938	  archive_cmds_need_lc=yes
15939        fi
15940        allow_undefined_flag=$lt_save_allow_undefined_flag
15941      else
15942        cat conftest.err 1>&5
15943      fi
15944      $rm conftest*
15945      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15946echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15947      ;;
15948    esac
15949  fi
15950  ;;
15951esac
15952
15953{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15954echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15955library_names_spec=
15956libname_spec='lib$name'
15957soname_spec=
15958shrext_cmds=".so"
15959postinstall_cmds=
15960postuninstall_cmds=
15961finish_cmds=
15962finish_eval=
15963shlibpath_var=
15964shlibpath_overrides_runpath=unknown
15965version_type=none
15966dynamic_linker="$host_os ld.so"
15967sys_lib_dlsearch_path_spec="/lib /usr/lib"
15968
15969if test "$GCC" = yes; then
15970  case $host_os in
15971    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15972    *) lt_awk_arg="/^libraries:/" ;;
15973  esac
15974  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15975  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
15976    # if the path contains ";" then we assume it to be the separator
15977    # otherwise default to the standard path separator (i.e. ":") - it is
15978    # assumed that no part of a normal pathname contains ";" but that should
15979    # okay in the real world where ";" in dirpaths is itself problematic.
15980    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
15981  else
15982    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15983  fi
15984  # Ok, now we have the path, separated by spaces, we can step through it
15985  # and add multilib dir if necessary.
15986  lt_tmp_lt_search_path_spec=
15987  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15988  for lt_sys_path in $lt_search_path_spec; do
15989    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15990      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15991    else
15992      test -d "$lt_sys_path" && \
15993	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15994    fi
15995  done
15996  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
15997BEGIN {RS=" "; FS="/|\n";} {
15998  lt_foo="";
15999  lt_count=0;
16000  for (lt_i = NF; lt_i > 0; lt_i--) {
16001    if ($lt_i != "" && $lt_i != ".") {
16002      if ($lt_i == "..") {
16003        lt_count++;
16004      } else {
16005        if (lt_count == 0) {
16006          lt_foo="/" $lt_i lt_foo;
16007        } else {
16008          lt_count--;
16009        }
16010      }
16011    }
16012  }
16013  if (lt_foo != "") { lt_freq[lt_foo]++; }
16014  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16015}'`
16016  sys_lib_search_path_spec=`echo $lt_search_path_spec`
16017else
16018  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16019fi
16020need_lib_prefix=unknown
16021hardcode_into_libs=no
16022
16023# when you set need_version to no, make sure it does not cause -set_version
16024# flags to be left without arguments
16025need_version=unknown
16026
16027case $host_os in
16028aix3*)
16029  version_type=linux
16030  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16031  shlibpath_var=LIBPATH
16032
16033  # AIX 3 has no versioning support, so we append a major version to the name.
16034  soname_spec='${libname}${release}${shared_ext}$major'
16035  ;;
16036
16037aix[4-9]*)
16038  version_type=linux
16039  need_lib_prefix=no
16040  need_version=no
16041  hardcode_into_libs=yes
16042  if test "$host_cpu" = ia64; then
16043    # AIX 5 supports IA64
16044    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16045    shlibpath_var=LD_LIBRARY_PATH
16046  else
16047    # With GCC up to 2.95.x, collect2 would create an import file
16048    # for dependence libraries.  The import file would start with
16049    # the line `#! .'.  This would cause the generated library to
16050    # depend on `.', always an invalid library.  This was fixed in
16051    # development snapshots of GCC prior to 3.0.
16052    case $host_os in
16053      aix4 | aix4.[01] | aix4.[01].*)
16054      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16055	   echo ' yes '
16056	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16057	:
16058      else
16059	can_build_shared=no
16060      fi
16061      ;;
16062    esac
16063    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16064    # soname into executable. Probably we can add versioning support to
16065    # collect2, so additional links can be useful in future.
16066    if test "$aix_use_runtimelinking" = yes; then
16067      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16068      # instead of lib<name>.a to let people know that these are not
16069      # typical AIX shared libraries.
16070      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16071    else
16072      # We preserve .a as extension for shared libraries through AIX4.2
16073      # and later when we are not doing run time linking.
16074      library_names_spec='${libname}${release}.a $libname.a'
16075      soname_spec='${libname}${release}${shared_ext}$major'
16076    fi
16077    shlibpath_var=LIBPATH
16078  fi
16079  ;;
16080
16081amigaos*)
16082  library_names_spec='$libname.ixlibrary $libname.a'
16083  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16084  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'
16085  ;;
16086
16087beos*)
16088  library_names_spec='${libname}${shared_ext}'
16089  dynamic_linker="$host_os ld.so"
16090  shlibpath_var=LIBRARY_PATH
16091  ;;
16092
16093bsdi[45]*)
16094  version_type=linux
16095  need_version=no
16096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097  soname_spec='${libname}${release}${shared_ext}$major'
16098  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16099  shlibpath_var=LD_LIBRARY_PATH
16100  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16101  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16102  # the default ld.so.conf also contains /usr/contrib/lib and
16103  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16104  # libtool to hard-code these into programs
16105  ;;
16106
16107cygwin* | mingw* | pw32*)
16108  version_type=windows
16109  shrext_cmds=".dll"
16110  need_version=no
16111  need_lib_prefix=no
16112
16113  case $GCC,$host_os in
16114  yes,cygwin* | yes,mingw* | yes,pw32*)
16115    library_names_spec='$libname.dll.a'
16116    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16117    postinstall_cmds='base_file=`basename \${file}`~
16118      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16119      dldir=$destdir/`dirname \$dlpath`~
16120      test -d \$dldir || mkdir -p \$dldir~
16121      $install_prog $dir/$dlname \$dldir/$dlname~
16122      chmod a+x \$dldir/$dlname'
16123    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16124      dlpath=$dir/\$dldll~
16125       $rm \$dlpath'
16126    shlibpath_overrides_runpath=yes
16127
16128    case $host_os in
16129    cygwin*)
16130      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16131      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16132      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16133      ;;
16134    mingw*)
16135      # MinGW DLLs use traditional 'lib' prefix
16136      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16137      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16138      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16139        # It is most probably a Windows format PATH printed by
16140        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16141        # path with ; separators, and with drive letters. We can handle the
16142        # drive letters (cygwin fileutils understands them), so leave them,
16143        # especially as we might pass files found there to a mingw objdump,
16144        # which wouldn't understand a cygwinified path. Ahh.
16145        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16146      else
16147        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16148      fi
16149      ;;
16150    pw32*)
16151      # pw32 DLLs use 'pw' prefix rather than 'lib'
16152      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16153      ;;
16154    esac
16155    ;;
16156
16157  *)
16158    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16159    ;;
16160  esac
16161  dynamic_linker='Win32 ld.exe'
16162  # FIXME: first we should search . and the directory the executable is in
16163  shlibpath_var=PATH
16164  ;;
16165
16166darwin* | rhapsody*)
16167  dynamic_linker="$host_os dyld"
16168  version_type=darwin
16169  need_lib_prefix=no
16170  need_version=no
16171  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16172  soname_spec='${libname}${release}${major}$shared_ext'
16173  shlibpath_overrides_runpath=yes
16174  shlibpath_var=DYLD_LIBRARY_PATH
16175  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16176
16177  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16178  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16179  ;;
16180
16181dgux*)
16182  version_type=linux
16183  need_lib_prefix=no
16184  need_version=no
16185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16186  soname_spec='${libname}${release}${shared_ext}$major'
16187  shlibpath_var=LD_LIBRARY_PATH
16188  ;;
16189
16190freebsd1*)
16191  dynamic_linker=no
16192  ;;
16193
16194freebsd* | dragonfly*)
16195  # DragonFly does not have aout.  When/if they implement a new
16196  # versioning mechanism, adjust this.
16197  if test -x /usr/bin/objformat; then
16198    objformat=`/usr/bin/objformat`
16199  else
16200    case $host_os in
16201    freebsd[123]*) objformat=aout ;;
16202    *) objformat=elf ;;
16203    esac
16204  fi
16205  version_type=freebsd-$objformat
16206  case $version_type in
16207    freebsd-elf*)
16208      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16209      need_version=no
16210      need_lib_prefix=no
16211      ;;
16212    freebsd-*)
16213      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16214      need_version=yes
16215      ;;
16216  esac
16217  shlibpath_var=LD_LIBRARY_PATH
16218  case $host_os in
16219  freebsd2*)
16220    shlibpath_overrides_runpath=yes
16221    ;;
16222  freebsd3.[01]* | freebsdelf3.[01]*)
16223    shlibpath_overrides_runpath=yes
16224    hardcode_into_libs=yes
16225    ;;
16226  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16227  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16228    shlibpath_overrides_runpath=no
16229    hardcode_into_libs=yes
16230    ;;
16231  *) # from 4.6 on, and DragonFly
16232    shlibpath_overrides_runpath=yes
16233    hardcode_into_libs=yes
16234    ;;
16235  esac
16236  ;;
16237
16238gnu*)
16239  version_type=linux
16240  need_lib_prefix=no
16241  need_version=no
16242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16243  soname_spec='${libname}${release}${shared_ext}$major'
16244  shlibpath_var=LD_LIBRARY_PATH
16245  hardcode_into_libs=yes
16246  ;;
16247
16248hpux9* | hpux10* | hpux11*)
16249  # Give a soname corresponding to the major version so that dld.sl refuses to
16250  # link against other versions.
16251  version_type=sunos
16252  need_lib_prefix=no
16253  need_version=no
16254  case $host_cpu in
16255  ia64*)
16256    shrext_cmds='.so'
16257    hardcode_into_libs=yes
16258    dynamic_linker="$host_os dld.so"
16259    shlibpath_var=LD_LIBRARY_PATH
16260    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16261    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262    soname_spec='${libname}${release}${shared_ext}$major'
16263    if test "X$HPUX_IA64_MODE" = X32; then
16264      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16265    else
16266      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16267    fi
16268    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16269    ;;
16270   hppa*64*)
16271     shrext_cmds='.sl'
16272     hardcode_into_libs=yes
16273     dynamic_linker="$host_os dld.sl"
16274     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16275     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16276     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16277     soname_spec='${libname}${release}${shared_ext}$major'
16278     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16279     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16280     ;;
16281   *)
16282    shrext_cmds='.sl'
16283    dynamic_linker="$host_os dld.sl"
16284    shlibpath_var=SHLIB_PATH
16285    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16286    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287    soname_spec='${libname}${release}${shared_ext}$major'
16288    ;;
16289  esac
16290  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16291  postinstall_cmds='chmod 555 $lib'
16292  ;;
16293
16294interix[3-9]*)
16295  version_type=linux
16296  need_lib_prefix=no
16297  need_version=no
16298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16299  soname_spec='${libname}${release}${shared_ext}$major'
16300  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16301  shlibpath_var=LD_LIBRARY_PATH
16302  shlibpath_overrides_runpath=no
16303  hardcode_into_libs=yes
16304  ;;
16305
16306irix5* | irix6* | nonstopux*)
16307  case $host_os in
16308    nonstopux*) version_type=nonstopux ;;
16309    *)
16310	if test "$lt_cv_prog_gnu_ld" = yes; then
16311		version_type=linux
16312	else
16313		version_type=irix
16314	fi ;;
16315  esac
16316  need_lib_prefix=no
16317  need_version=no
16318  soname_spec='${libname}${release}${shared_ext}$major'
16319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16320  case $host_os in
16321  irix5* | nonstopux*)
16322    libsuff= shlibsuff=
16323    ;;
16324  *)
16325    case $LD in # libtool.m4 will add one of these switches to LD
16326    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16327      libsuff= shlibsuff= libmagic=32-bit;;
16328    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16329      libsuff=32 shlibsuff=N32 libmagic=N32;;
16330    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16331      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16332    *) libsuff= shlibsuff= libmagic=never-match;;
16333    esac
16334    ;;
16335  esac
16336  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16337  shlibpath_overrides_runpath=no
16338  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16339  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16340  hardcode_into_libs=yes
16341  ;;
16342
16343# No shared lib support for Linux oldld, aout, or coff.
16344linux*oldld* | linux*aout* | linux*coff*)
16345  dynamic_linker=no
16346  ;;
16347
16348# This must be Linux ELF.
16349linux* | k*bsd*-gnu)
16350  version_type=linux
16351  need_lib_prefix=no
16352  need_version=no
16353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16354  soname_spec='${libname}${release}${shared_ext}$major'
16355  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16356  shlibpath_var=LD_LIBRARY_PATH
16357  shlibpath_overrides_runpath=no
16358  # This implies no fast_install, which is unacceptable.
16359  # Some rework will be needed to allow for fast_install
16360  # before this can be enabled.
16361  hardcode_into_libs=yes
16362
16363  # Append ld.so.conf contents to the search path
16364  if test -f /etc/ld.so.conf; then
16365    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16366    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16367  fi
16368
16369  # We used to test for /lib/ld.so.1 and disable shared libraries on
16370  # powerpc, because MkLinux only supported shared libraries with the
16371  # GNU dynamic linker.  Since this was broken with cross compilers,
16372  # most powerpc-linux boxes support dynamic linking these days and
16373  # people can always --disable-shared, the test was removed, and we
16374  # assume the GNU/Linux dynamic linker is in use.
16375  dynamic_linker='GNU/Linux ld.so'
16376  ;;
16377
16378netbsd*)
16379  version_type=sunos
16380  need_lib_prefix=no
16381  need_version=no
16382  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16383    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16384    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16385    dynamic_linker='NetBSD (a.out) ld.so'
16386  else
16387    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16388    soname_spec='${libname}${release}${shared_ext}$major'
16389    dynamic_linker='NetBSD ld.elf_so'
16390  fi
16391  shlibpath_var=LD_LIBRARY_PATH
16392  shlibpath_overrides_runpath=yes
16393  hardcode_into_libs=yes
16394  ;;
16395
16396newsos6)
16397  version_type=linux
16398  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399  shlibpath_var=LD_LIBRARY_PATH
16400  shlibpath_overrides_runpath=yes
16401  ;;
16402
16403nto-qnx*)
16404  version_type=linux
16405  need_lib_prefix=no
16406  need_version=no
16407  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408  soname_spec='${libname}${release}${shared_ext}$major'
16409  shlibpath_var=LD_LIBRARY_PATH
16410  shlibpath_overrides_runpath=yes
16411  ;;
16412
16413openbsd*)
16414  version_type=sunos
16415  sys_lib_dlsearch_path_spec="/usr/lib"
16416  need_lib_prefix=no
16417  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16418  case $host_os in
16419    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16420    *)                         need_version=no  ;;
16421  esac
16422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16423  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16424  shlibpath_var=LD_LIBRARY_PATH
16425  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16426    case $host_os in
16427      openbsd2.[89] | openbsd2.[89].*)
16428	shlibpath_overrides_runpath=no
16429	;;
16430      *)
16431	shlibpath_overrides_runpath=yes
16432	;;
16433      esac
16434  else
16435    shlibpath_overrides_runpath=yes
16436  fi
16437  ;;
16438
16439os2*)
16440  libname_spec='$name'
16441  shrext_cmds=".dll"
16442  need_lib_prefix=no
16443  library_names_spec='$libname${shared_ext} $libname.a'
16444  dynamic_linker='OS/2 ld.exe'
16445  shlibpath_var=LIBPATH
16446  ;;
16447
16448osf3* | osf4* | osf5*)
16449  version_type=osf
16450  need_lib_prefix=no
16451  need_version=no
16452  soname_spec='${libname}${release}${shared_ext}$major'
16453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16454  shlibpath_var=LD_LIBRARY_PATH
16455  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16456  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16457  ;;
16458
16459rdos*)
16460  dynamic_linker=no
16461  ;;
16462
16463solaris*)
16464  version_type=linux
16465  need_lib_prefix=no
16466  need_version=no
16467  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16468  soname_spec='${libname}${release}${shared_ext}$major'
16469  shlibpath_var=LD_LIBRARY_PATH
16470  shlibpath_overrides_runpath=yes
16471  hardcode_into_libs=yes
16472  # ldd complains unless libraries are executable
16473  postinstall_cmds='chmod +x $lib'
16474  ;;
16475
16476sunos4*)
16477  version_type=sunos
16478  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16479  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16480  shlibpath_var=LD_LIBRARY_PATH
16481  shlibpath_overrides_runpath=yes
16482  if test "$with_gnu_ld" = yes; then
16483    need_lib_prefix=no
16484  fi
16485  need_version=yes
16486  ;;
16487
16488sysv4 | sysv4.3*)
16489  version_type=linux
16490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491  soname_spec='${libname}${release}${shared_ext}$major'
16492  shlibpath_var=LD_LIBRARY_PATH
16493  case $host_vendor in
16494    sni)
16495      shlibpath_overrides_runpath=no
16496      need_lib_prefix=no
16497      export_dynamic_flag_spec='${wl}-Blargedynsym'
16498      runpath_var=LD_RUN_PATH
16499      ;;
16500    siemens)
16501      need_lib_prefix=no
16502      ;;
16503    motorola)
16504      need_lib_prefix=no
16505      need_version=no
16506      shlibpath_overrides_runpath=no
16507      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16508      ;;
16509  esac
16510  ;;
16511
16512sysv4*MP*)
16513  if test -d /usr/nec ;then
16514    version_type=linux
16515    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16516    soname_spec='$libname${shared_ext}.$major'
16517    shlibpath_var=LD_LIBRARY_PATH
16518  fi
16519  ;;
16520
16521sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16522  version_type=freebsd-elf
16523  need_lib_prefix=no
16524  need_version=no
16525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16526  soname_spec='${libname}${release}${shared_ext}$major'
16527  shlibpath_var=LD_LIBRARY_PATH
16528  hardcode_into_libs=yes
16529  if test "$with_gnu_ld" = yes; then
16530    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16531    shlibpath_overrides_runpath=no
16532  else
16533    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16534    shlibpath_overrides_runpath=yes
16535    case $host_os in
16536      sco3.2v5*)
16537        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16538	;;
16539    esac
16540  fi
16541  sys_lib_dlsearch_path_spec='/usr/lib'
16542  ;;
16543
16544uts4*)
16545  version_type=linux
16546  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16547  soname_spec='${libname}${release}${shared_ext}$major'
16548  shlibpath_var=LD_LIBRARY_PATH
16549  ;;
16550
16551*)
16552  dynamic_linker=no
16553  ;;
16554esac
16555{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16556echo "${ECHO_T}$dynamic_linker" >&6; }
16557test "$dynamic_linker" = no && can_build_shared=no
16558
16559if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16560  echo $ECHO_N "(cached) $ECHO_C" >&6
16561else
16562  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16563fi
16564
16565sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16566if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16567  echo $ECHO_N "(cached) $ECHO_C" >&6
16568else
16569  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16570fi
16571
16572sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16573
16574variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16575if test "$GCC" = yes; then
16576  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16577fi
16578
16579{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16580echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16581hardcode_action=
16582if test -n "$hardcode_libdir_flag_spec" || \
16583   test -n "$runpath_var" || \
16584   test "X$hardcode_automatic" = "Xyes" ; then
16585
16586  # We can hardcode non-existant directories.
16587  if test "$hardcode_direct" != no &&
16588     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16589     # have to relink, otherwise we might link with an installed library
16590     # when we should be linking with a yet-to-be-installed one
16591     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16592     test "$hardcode_minus_L" != no; then
16593    # Linking always hardcodes the temporary library directory.
16594    hardcode_action=relink
16595  else
16596    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16597    hardcode_action=immediate
16598  fi
16599else
16600  # We cannot hardcode anything, or else we can only hardcode existing
16601  # directories.
16602  hardcode_action=unsupported
16603fi
16604{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16605echo "${ECHO_T}$hardcode_action" >&6; }
16606
16607if test "$hardcode_action" = relink; then
16608  # Fast installation is not supported
16609  enable_fast_install=no
16610elif test "$shlibpath_overrides_runpath" = yes ||
16611     test "$enable_shared" = no; then
16612  # Fast installation is not necessary
16613  enable_fast_install=needless
16614fi
16615
16616striplib=
16617old_striplib=
16618{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16619echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16620if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16621  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16622  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16623  { echo "$as_me:$LINENO: result: yes" >&5
16624echo "${ECHO_T}yes" >&6; }
16625else
16626# FIXME - insert some real tests, host_os isn't really good enough
16627  case $host_os in
16628   darwin*)
16629       if test -n "$STRIP" ; then
16630         striplib="$STRIP -x"
16631         old_striplib="$STRIP -S"
16632         { echo "$as_me:$LINENO: result: yes" >&5
16633echo "${ECHO_T}yes" >&6; }
16634       else
16635  { echo "$as_me:$LINENO: result: no" >&5
16636echo "${ECHO_T}no" >&6; }
16637fi
16638       ;;
16639   *)
16640  { echo "$as_me:$LINENO: result: no" >&5
16641echo "${ECHO_T}no" >&6; }
16642    ;;
16643  esac
16644fi
16645
16646if test "x$enable_dlopen" != xyes; then
16647  enable_dlopen=unknown
16648  enable_dlopen_self=unknown
16649  enable_dlopen_self_static=unknown
16650else
16651  lt_cv_dlopen=no
16652  lt_cv_dlopen_libs=
16653
16654  case $host_os in
16655  beos*)
16656    lt_cv_dlopen="load_add_on"
16657    lt_cv_dlopen_libs=
16658    lt_cv_dlopen_self=yes
16659    ;;
16660
16661  mingw* | pw32*)
16662    lt_cv_dlopen="LoadLibrary"
16663    lt_cv_dlopen_libs=
16664   ;;
16665
16666  cygwin*)
16667    lt_cv_dlopen="dlopen"
16668    lt_cv_dlopen_libs=
16669   ;;
16670
16671  darwin*)
16672  # if libdl is installed we need to link against it
16673    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16674echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16675if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16676  echo $ECHO_N "(cached) $ECHO_C" >&6
16677else
16678  ac_check_lib_save_LIBS=$LIBS
16679LIBS="-ldl  $LIBS"
16680cat >conftest.$ac_ext <<_ACEOF
16681/* confdefs.h.  */
16682_ACEOF
16683cat confdefs.h >>conftest.$ac_ext
16684cat >>conftest.$ac_ext <<_ACEOF
16685/* end confdefs.h.  */
16686
16687/* Override any GCC internal prototype to avoid an error.
16688   Use char because int might match the return type of a GCC
16689   builtin and then its argument prototype would still apply.  */
16690#ifdef __cplusplus
16691extern "C"
16692#endif
16693char dlopen ();
16694int
16695main ()
16696{
16697return dlopen ();
16698  ;
16699  return 0;
16700}
16701_ACEOF
16702rm -f conftest.$ac_objext conftest$ac_exeext
16703if { (ac_try="$ac_link"
16704case "(($ac_try" in
16705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706  *) ac_try_echo=$ac_try;;
16707esac
16708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709  (eval "$ac_link") 2>conftest.er1
16710  ac_status=$?
16711  grep -v '^ *+' conftest.er1 >conftest.err
16712  rm -f conftest.er1
16713  cat conftest.err >&5
16714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715  (exit $ac_status); } && {
16716	 test -z "$ac_c_werror_flag" ||
16717	 test ! -s conftest.err
16718       } && test -s conftest$ac_exeext &&
16719       $as_test_x conftest$ac_exeext; then
16720  ac_cv_lib_dl_dlopen=yes
16721else
16722  echo "$as_me: failed program was:" >&5
16723sed 's/^/| /' conftest.$ac_ext >&5
16724
16725	ac_cv_lib_dl_dlopen=no
16726fi
16727
16728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16729      conftest$ac_exeext conftest.$ac_ext
16730LIBS=$ac_check_lib_save_LIBS
16731fi
16732{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16733echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16734if test $ac_cv_lib_dl_dlopen = yes; then
16735  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16736else
16737
16738    lt_cv_dlopen="dyld"
16739    lt_cv_dlopen_libs=
16740    lt_cv_dlopen_self=yes
16741
16742fi
16743
16744   ;;
16745
16746  *)
16747    { echo "$as_me:$LINENO: checking for shl_load" >&5
16748echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16749if test "${ac_cv_func_shl_load+set}" = set; then
16750  echo $ECHO_N "(cached) $ECHO_C" >&6
16751else
16752  cat >conftest.$ac_ext <<_ACEOF
16753/* confdefs.h.  */
16754_ACEOF
16755cat confdefs.h >>conftest.$ac_ext
16756cat >>conftest.$ac_ext <<_ACEOF
16757/* end confdefs.h.  */
16758/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16759   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16760#define shl_load innocuous_shl_load
16761
16762/* System header to define __stub macros and hopefully few prototypes,
16763    which can conflict with char shl_load (); below.
16764    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16765    <limits.h> exists even on freestanding compilers.  */
16766
16767#ifdef __STDC__
16768# include <limits.h>
16769#else
16770# include <assert.h>
16771#endif
16772
16773#undef shl_load
16774
16775/* Override any GCC internal prototype to avoid an error.
16776   Use char because int might match the return type of a GCC
16777   builtin and then its argument prototype would still apply.  */
16778#ifdef __cplusplus
16779extern "C"
16780#endif
16781char shl_load ();
16782/* The GNU C library defines this for functions which it implements
16783    to always fail with ENOSYS.  Some functions are actually named
16784    something starting with __ and the normal name is an alias.  */
16785#if defined __stub_shl_load || defined __stub___shl_load
16786choke me
16787#endif
16788
16789int
16790main ()
16791{
16792return shl_load ();
16793  ;
16794  return 0;
16795}
16796_ACEOF
16797rm -f conftest.$ac_objext conftest$ac_exeext
16798if { (ac_try="$ac_link"
16799case "(($ac_try" in
16800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801  *) ac_try_echo=$ac_try;;
16802esac
16803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804  (eval "$ac_link") 2>conftest.er1
16805  ac_status=$?
16806  grep -v '^ *+' conftest.er1 >conftest.err
16807  rm -f conftest.er1
16808  cat conftest.err >&5
16809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810  (exit $ac_status); } && {
16811	 test -z "$ac_c_werror_flag" ||
16812	 test ! -s conftest.err
16813       } && test -s conftest$ac_exeext &&
16814       $as_test_x conftest$ac_exeext; then
16815  ac_cv_func_shl_load=yes
16816else
16817  echo "$as_me: failed program was:" >&5
16818sed 's/^/| /' conftest.$ac_ext >&5
16819
16820	ac_cv_func_shl_load=no
16821fi
16822
16823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16824      conftest$ac_exeext conftest.$ac_ext
16825fi
16826{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16827echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16828if test $ac_cv_func_shl_load = yes; then
16829  lt_cv_dlopen="shl_load"
16830else
16831  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16832echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16833if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16834  echo $ECHO_N "(cached) $ECHO_C" >&6
16835else
16836  ac_check_lib_save_LIBS=$LIBS
16837LIBS="-ldld  $LIBS"
16838cat >conftest.$ac_ext <<_ACEOF
16839/* confdefs.h.  */
16840_ACEOF
16841cat confdefs.h >>conftest.$ac_ext
16842cat >>conftest.$ac_ext <<_ACEOF
16843/* end confdefs.h.  */
16844
16845/* Override any GCC internal prototype to avoid an error.
16846   Use char because int might match the return type of a GCC
16847   builtin and then its argument prototype would still apply.  */
16848#ifdef __cplusplus
16849extern "C"
16850#endif
16851char shl_load ();
16852int
16853main ()
16854{
16855return shl_load ();
16856  ;
16857  return 0;
16858}
16859_ACEOF
16860rm -f conftest.$ac_objext conftest$ac_exeext
16861if { (ac_try="$ac_link"
16862case "(($ac_try" in
16863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864  *) ac_try_echo=$ac_try;;
16865esac
16866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867  (eval "$ac_link") 2>conftest.er1
16868  ac_status=$?
16869  grep -v '^ *+' conftest.er1 >conftest.err
16870  rm -f conftest.er1
16871  cat conftest.err >&5
16872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873  (exit $ac_status); } && {
16874	 test -z "$ac_c_werror_flag" ||
16875	 test ! -s conftest.err
16876       } && test -s conftest$ac_exeext &&
16877       $as_test_x conftest$ac_exeext; then
16878  ac_cv_lib_dld_shl_load=yes
16879else
16880  echo "$as_me: failed program was:" >&5
16881sed 's/^/| /' conftest.$ac_ext >&5
16882
16883	ac_cv_lib_dld_shl_load=no
16884fi
16885
16886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16887      conftest$ac_exeext conftest.$ac_ext
16888LIBS=$ac_check_lib_save_LIBS
16889fi
16890{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16891echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16892if test $ac_cv_lib_dld_shl_load = yes; then
16893  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16894else
16895  { echo "$as_me:$LINENO: checking for dlopen" >&5
16896echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16897if test "${ac_cv_func_dlopen+set}" = set; then
16898  echo $ECHO_N "(cached) $ECHO_C" >&6
16899else
16900  cat >conftest.$ac_ext <<_ACEOF
16901/* confdefs.h.  */
16902_ACEOF
16903cat confdefs.h >>conftest.$ac_ext
16904cat >>conftest.$ac_ext <<_ACEOF
16905/* end confdefs.h.  */
16906/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16907   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16908#define dlopen innocuous_dlopen
16909
16910/* System header to define __stub macros and hopefully few prototypes,
16911    which can conflict with char dlopen (); below.
16912    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16913    <limits.h> exists even on freestanding compilers.  */
16914
16915#ifdef __STDC__
16916# include <limits.h>
16917#else
16918# include <assert.h>
16919#endif
16920
16921#undef dlopen
16922
16923/* Override any GCC internal prototype to avoid an error.
16924   Use char because int might match the return type of a GCC
16925   builtin and then its argument prototype would still apply.  */
16926#ifdef __cplusplus
16927extern "C"
16928#endif
16929char dlopen ();
16930/* The GNU C library defines this for functions which it implements
16931    to always fail with ENOSYS.  Some functions are actually named
16932    something starting with __ and the normal name is an alias.  */
16933#if defined __stub_dlopen || defined __stub___dlopen
16934choke me
16935#endif
16936
16937int
16938main ()
16939{
16940return dlopen ();
16941  ;
16942  return 0;
16943}
16944_ACEOF
16945rm -f conftest.$ac_objext conftest$ac_exeext
16946if { (ac_try="$ac_link"
16947case "(($ac_try" in
16948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949  *) ac_try_echo=$ac_try;;
16950esac
16951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952  (eval "$ac_link") 2>conftest.er1
16953  ac_status=$?
16954  grep -v '^ *+' conftest.er1 >conftest.err
16955  rm -f conftest.er1
16956  cat conftest.err >&5
16957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958  (exit $ac_status); } && {
16959	 test -z "$ac_c_werror_flag" ||
16960	 test ! -s conftest.err
16961       } && test -s conftest$ac_exeext &&
16962       $as_test_x conftest$ac_exeext; then
16963  ac_cv_func_dlopen=yes
16964else
16965  echo "$as_me: failed program was:" >&5
16966sed 's/^/| /' conftest.$ac_ext >&5
16967
16968	ac_cv_func_dlopen=no
16969fi
16970
16971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16972      conftest$ac_exeext conftest.$ac_ext
16973fi
16974{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16975echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16976if test $ac_cv_func_dlopen = yes; then
16977  lt_cv_dlopen="dlopen"
16978else
16979  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16980echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16981if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16982  echo $ECHO_N "(cached) $ECHO_C" >&6
16983else
16984  ac_check_lib_save_LIBS=$LIBS
16985LIBS="-ldl  $LIBS"
16986cat >conftest.$ac_ext <<_ACEOF
16987/* confdefs.h.  */
16988_ACEOF
16989cat confdefs.h >>conftest.$ac_ext
16990cat >>conftest.$ac_ext <<_ACEOF
16991/* end confdefs.h.  */
16992
16993/* Override any GCC internal prototype to avoid an error.
16994   Use char because int might match the return type of a GCC
16995   builtin and then its argument prototype would still apply.  */
16996#ifdef __cplusplus
16997extern "C"
16998#endif
16999char dlopen ();
17000int
17001main ()
17002{
17003return dlopen ();
17004  ;
17005  return 0;
17006}
17007_ACEOF
17008rm -f conftest.$ac_objext conftest$ac_exeext
17009if { (ac_try="$ac_link"
17010case "(($ac_try" in
17011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012  *) ac_try_echo=$ac_try;;
17013esac
17014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015  (eval "$ac_link") 2>conftest.er1
17016  ac_status=$?
17017  grep -v '^ *+' conftest.er1 >conftest.err
17018  rm -f conftest.er1
17019  cat conftest.err >&5
17020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021  (exit $ac_status); } && {
17022	 test -z "$ac_c_werror_flag" ||
17023	 test ! -s conftest.err
17024       } && test -s conftest$ac_exeext &&
17025       $as_test_x conftest$ac_exeext; then
17026  ac_cv_lib_dl_dlopen=yes
17027else
17028  echo "$as_me: failed program was:" >&5
17029sed 's/^/| /' conftest.$ac_ext >&5
17030
17031	ac_cv_lib_dl_dlopen=no
17032fi
17033
17034rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17035      conftest$ac_exeext conftest.$ac_ext
17036LIBS=$ac_check_lib_save_LIBS
17037fi
17038{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17039echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
17040if test $ac_cv_lib_dl_dlopen = yes; then
17041  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17042else
17043  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17044echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
17045if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17046  echo $ECHO_N "(cached) $ECHO_C" >&6
17047else
17048  ac_check_lib_save_LIBS=$LIBS
17049LIBS="-lsvld  $LIBS"
17050cat >conftest.$ac_ext <<_ACEOF
17051/* confdefs.h.  */
17052_ACEOF
17053cat confdefs.h >>conftest.$ac_ext
17054cat >>conftest.$ac_ext <<_ACEOF
17055/* end confdefs.h.  */
17056
17057/* Override any GCC internal prototype to avoid an error.
17058   Use char because int might match the return type of a GCC
17059   builtin and then its argument prototype would still apply.  */
17060#ifdef __cplusplus
17061extern "C"
17062#endif
17063char dlopen ();
17064int
17065main ()
17066{
17067return dlopen ();
17068  ;
17069  return 0;
17070}
17071_ACEOF
17072rm -f conftest.$ac_objext conftest$ac_exeext
17073if { (ac_try="$ac_link"
17074case "(($ac_try" in
17075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076  *) ac_try_echo=$ac_try;;
17077esac
17078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17079  (eval "$ac_link") 2>conftest.er1
17080  ac_status=$?
17081  grep -v '^ *+' conftest.er1 >conftest.err
17082  rm -f conftest.er1
17083  cat conftest.err >&5
17084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085  (exit $ac_status); } && {
17086	 test -z "$ac_c_werror_flag" ||
17087	 test ! -s conftest.err
17088       } && test -s conftest$ac_exeext &&
17089       $as_test_x conftest$ac_exeext; then
17090  ac_cv_lib_svld_dlopen=yes
17091else
17092  echo "$as_me: failed program was:" >&5
17093sed 's/^/| /' conftest.$ac_ext >&5
17094
17095	ac_cv_lib_svld_dlopen=no
17096fi
17097
17098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17099      conftest$ac_exeext conftest.$ac_ext
17100LIBS=$ac_check_lib_save_LIBS
17101fi
17102{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17103echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
17104if test $ac_cv_lib_svld_dlopen = yes; then
17105  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17106else
17107  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17108echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
17109if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17110  echo $ECHO_N "(cached) $ECHO_C" >&6
17111else
17112  ac_check_lib_save_LIBS=$LIBS
17113LIBS="-ldld  $LIBS"
17114cat >conftest.$ac_ext <<_ACEOF
17115/* confdefs.h.  */
17116_ACEOF
17117cat confdefs.h >>conftest.$ac_ext
17118cat >>conftest.$ac_ext <<_ACEOF
17119/* end confdefs.h.  */
17120
17121/* Override any GCC internal prototype to avoid an error.
17122   Use char because int might match the return type of a GCC
17123   builtin and then its argument prototype would still apply.  */
17124#ifdef __cplusplus
17125extern "C"
17126#endif
17127char dld_link ();
17128int
17129main ()
17130{
17131return dld_link ();
17132  ;
17133  return 0;
17134}
17135_ACEOF
17136rm -f conftest.$ac_objext conftest$ac_exeext
17137if { (ac_try="$ac_link"
17138case "(($ac_try" in
17139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140  *) ac_try_echo=$ac_try;;
17141esac
17142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143  (eval "$ac_link") 2>conftest.er1
17144  ac_status=$?
17145  grep -v '^ *+' conftest.er1 >conftest.err
17146  rm -f conftest.er1
17147  cat conftest.err >&5
17148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149  (exit $ac_status); } && {
17150	 test -z "$ac_c_werror_flag" ||
17151	 test ! -s conftest.err
17152       } && test -s conftest$ac_exeext &&
17153       $as_test_x conftest$ac_exeext; then
17154  ac_cv_lib_dld_dld_link=yes
17155else
17156  echo "$as_me: failed program was:" >&5
17157sed 's/^/| /' conftest.$ac_ext >&5
17158
17159	ac_cv_lib_dld_dld_link=no
17160fi
17161
17162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17163      conftest$ac_exeext conftest.$ac_ext
17164LIBS=$ac_check_lib_save_LIBS
17165fi
17166{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17167echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
17168if test $ac_cv_lib_dld_dld_link = yes; then
17169  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17170fi
17171
17172
17173fi
17174
17175
17176fi
17177
17178
17179fi
17180
17181
17182fi
17183
17184
17185fi
17186
17187    ;;
17188  esac
17189
17190  if test "x$lt_cv_dlopen" != xno; then
17191    enable_dlopen=yes
17192  else
17193    enable_dlopen=no
17194  fi
17195
17196  case $lt_cv_dlopen in
17197  dlopen)
17198    save_CPPFLAGS="$CPPFLAGS"
17199    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17200
17201    save_LDFLAGS="$LDFLAGS"
17202    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17203
17204    save_LIBS="$LIBS"
17205    LIBS="$lt_cv_dlopen_libs $LIBS"
17206
17207    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17208echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
17209if test "${lt_cv_dlopen_self+set}" = set; then
17210  echo $ECHO_N "(cached) $ECHO_C" >&6
17211else
17212  	  if test "$cross_compiling" = yes; then :
17213  lt_cv_dlopen_self=cross
17214else
17215  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17216  lt_status=$lt_dlunknown
17217  cat > conftest.$ac_ext <<EOF
17218#line __oline__ "configure"
17219#include "confdefs.h"
17220
17221#if HAVE_DLFCN_H
17222#include <dlfcn.h>
17223#endif
17224
17225#include <stdio.h>
17226
17227#ifdef RTLD_GLOBAL
17228#  define LT_DLGLOBAL		RTLD_GLOBAL
17229#else
17230#  ifdef DL_GLOBAL
17231#    define LT_DLGLOBAL		DL_GLOBAL
17232#  else
17233#    define LT_DLGLOBAL		0
17234#  endif
17235#endif
17236
17237/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17238   find out it does not work in some platform. */
17239#ifndef LT_DLLAZY_OR_NOW
17240#  ifdef RTLD_LAZY
17241#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17242#  else
17243#    ifdef DL_LAZY
17244#      define LT_DLLAZY_OR_NOW		DL_LAZY
17245#    else
17246#      ifdef RTLD_NOW
17247#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17248#      else
17249#        ifdef DL_NOW
17250#          define LT_DLLAZY_OR_NOW	DL_NOW
17251#        else
17252#          define LT_DLLAZY_OR_NOW	0
17253#        endif
17254#      endif
17255#    endif
17256#  endif
17257#endif
17258
17259#ifdef __cplusplus
17260extern "C" void exit (int);
17261#endif
17262
17263void fnord() { int i=42;}
17264int main ()
17265{
17266  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17267  int status = $lt_dlunknown;
17268
17269  if (self)
17270    {
17271      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17272      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17273      /* dlclose (self); */
17274    }
17275  else
17276    puts (dlerror ());
17277
17278    exit (status);
17279}
17280EOF
17281  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17282  (eval $ac_link) 2>&5
17283  ac_status=$?
17284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17286    (./conftest; exit; ) >&5 2>/dev/null
17287    lt_status=$?
17288    case x$lt_status in
17289      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17290      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17291      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17292    esac
17293  else :
17294    # compilation failed
17295    lt_cv_dlopen_self=no
17296  fi
17297fi
17298rm -fr conftest*
17299
17300
17301fi
17302{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17303echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
17304
17305    if test "x$lt_cv_dlopen_self" = xyes; then
17306      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17307      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17308echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
17309if test "${lt_cv_dlopen_self_static+set}" = set; then
17310  echo $ECHO_N "(cached) $ECHO_C" >&6
17311else
17312  	  if test "$cross_compiling" = yes; then :
17313  lt_cv_dlopen_self_static=cross
17314else
17315  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17316  lt_status=$lt_dlunknown
17317  cat > conftest.$ac_ext <<EOF
17318#line __oline__ "configure"
17319#include "confdefs.h"
17320
17321#if HAVE_DLFCN_H
17322#include <dlfcn.h>
17323#endif
17324
17325#include <stdio.h>
17326
17327#ifdef RTLD_GLOBAL
17328#  define LT_DLGLOBAL		RTLD_GLOBAL
17329#else
17330#  ifdef DL_GLOBAL
17331#    define LT_DLGLOBAL		DL_GLOBAL
17332#  else
17333#    define LT_DLGLOBAL		0
17334#  endif
17335#endif
17336
17337/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17338   find out it does not work in some platform. */
17339#ifndef LT_DLLAZY_OR_NOW
17340#  ifdef RTLD_LAZY
17341#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17342#  else
17343#    ifdef DL_LAZY
17344#      define LT_DLLAZY_OR_NOW		DL_LAZY
17345#    else
17346#      ifdef RTLD_NOW
17347#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17348#      else
17349#        ifdef DL_NOW
17350#          define LT_DLLAZY_OR_NOW	DL_NOW
17351#        else
17352#          define LT_DLLAZY_OR_NOW	0
17353#        endif
17354#      endif
17355#    endif
17356#  endif
17357#endif
17358
17359#ifdef __cplusplus
17360extern "C" void exit (int);
17361#endif
17362
17363void fnord() { int i=42;}
17364int main ()
17365{
17366  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17367  int status = $lt_dlunknown;
17368
17369  if (self)
17370    {
17371      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17372      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17373      /* dlclose (self); */
17374    }
17375  else
17376    puts (dlerror ());
17377
17378    exit (status);
17379}
17380EOF
17381  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17382  (eval $ac_link) 2>&5
17383  ac_status=$?
17384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17386    (./conftest; exit; ) >&5 2>/dev/null
17387    lt_status=$?
17388    case x$lt_status in
17389      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17390      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17391      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17392    esac
17393  else :
17394    # compilation failed
17395    lt_cv_dlopen_self_static=no
17396  fi
17397fi
17398rm -fr conftest*
17399
17400
17401fi
17402{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17403echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
17404    fi
17405
17406    CPPFLAGS="$save_CPPFLAGS"
17407    LDFLAGS="$save_LDFLAGS"
17408    LIBS="$save_LIBS"
17409    ;;
17410  esac
17411
17412  case $lt_cv_dlopen_self in
17413  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17414  *) enable_dlopen_self=unknown ;;
17415  esac
17416
17417  case $lt_cv_dlopen_self_static in
17418  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17419  *) enable_dlopen_self_static=unknown ;;
17420  esac
17421fi
17422
17423
17424# Report which library types will actually be built
17425{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17426echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17427{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17428echo "${ECHO_T}$can_build_shared" >&6; }
17429
17430{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17431echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
17432test "$can_build_shared" = "no" && enable_shared=no
17433
17434# On AIX, shared libraries and static libraries use the same namespace, and
17435# are all built from PIC.
17436case $host_os in
17437aix3*)
17438  test "$enable_shared" = yes && enable_static=no
17439  if test -n "$RANLIB"; then
17440    archive_cmds="$archive_cmds~\$RANLIB \$lib"
17441    postinstall_cmds='$RANLIB $lib'
17442  fi
17443  ;;
17444
17445aix[4-9]*)
17446  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17447    test "$enable_shared" = yes && enable_static=no
17448  fi
17449    ;;
17450esac
17451{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17452echo "${ECHO_T}$enable_shared" >&6; }
17453
17454{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17455echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17456# Make sure either enable_shared or enable_static is yes.
17457test "$enable_shared" = yes || enable_static=yes
17458{ echo "$as_me:$LINENO: result: $enable_static" >&5
17459echo "${ECHO_T}$enable_static" >&6; }
17460
17461# The else clause should only fire when bootstrapping the
17462# libtool distribution, otherwise you forgot to ship ltmain.sh
17463# with your package, and you will get complaints that there are
17464# no rules to generate ltmain.sh.
17465if test -f "$ltmain"; then
17466  # See if we are running on zsh, and set the options which allow our commands through
17467  # without removal of \ escapes.
17468  if test -n "${ZSH_VERSION+set}" ; then
17469    setopt NO_GLOB_SUBST
17470  fi
17471  # Now quote all the things that may contain metacharacters while being
17472  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17473  # variables and quote the copies for generation of the libtool script.
17474  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17475    SED SHELL STRIP \
17476    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17477    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17478    deplibs_check_method reload_flag reload_cmds need_locks \
17479    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17480    lt_cv_sys_global_symbol_to_c_name_address \
17481    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17482    old_postinstall_cmds old_postuninstall_cmds \
17483    compiler \
17484    CC \
17485    LD \
17486    lt_prog_compiler_wl \
17487    lt_prog_compiler_pic \
17488    lt_prog_compiler_static \
17489    lt_prog_compiler_no_builtin_flag \
17490    export_dynamic_flag_spec \
17491    thread_safe_flag_spec \
17492    whole_archive_flag_spec \
17493    enable_shared_with_static_runtimes \
17494    old_archive_cmds \
17495    old_archive_from_new_cmds \
17496    predep_objects \
17497    postdep_objects \
17498    predeps \
17499    postdeps \
17500    compiler_lib_search_path \
17501    compiler_lib_search_dirs \
17502    archive_cmds \
17503    archive_expsym_cmds \
17504    postinstall_cmds \
17505    postuninstall_cmds \
17506    old_archive_from_expsyms_cmds \
17507    allow_undefined_flag \
17508    no_undefined_flag \
17509    export_symbols_cmds \
17510    hardcode_libdir_flag_spec \
17511    hardcode_libdir_flag_spec_ld \
17512    hardcode_libdir_separator \
17513    hardcode_automatic \
17514    module_cmds \
17515    module_expsym_cmds \
17516    lt_cv_prog_compiler_c_o \
17517    fix_srcfile_path \
17518    exclude_expsyms \
17519    include_expsyms; do
17520
17521    case $var in
17522    old_archive_cmds | \
17523    old_archive_from_new_cmds | \
17524    archive_cmds | \
17525    archive_expsym_cmds | \
17526    module_cmds | \
17527    module_expsym_cmds | \
17528    old_archive_from_expsyms_cmds | \
17529    export_symbols_cmds | \
17530    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17531    postinstall_cmds | postuninstall_cmds | \
17532    old_postinstall_cmds | old_postuninstall_cmds | \
17533    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17534      # Double-quote double-evaled strings.
17535      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17536      ;;
17537    *)
17538      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17539      ;;
17540    esac
17541  done
17542
17543  case $lt_echo in
17544  *'\$0 --fallback-echo"')
17545    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17546    ;;
17547  esac
17548
17549cfgfile="${ofile}T"
17550  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17551  $rm -f "$cfgfile"
17552  { echo "$as_me:$LINENO: creating $ofile" >&5
17553echo "$as_me: creating $ofile" >&6;}
17554
17555  cat <<__EOF__ >> "$cfgfile"
17556#! $SHELL
17557
17558# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17559# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17560# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17561#
17562# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
17563# Free Software Foundation, Inc.
17564#
17565# This file is part of GNU Libtool:
17566# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17567#
17568# This program is free software; you can redistribute it and/or modify
17569# it under the terms of the GNU General Public License as published by
17570# the Free Software Foundation; either version 2 of the License, or
17571# (at your option) any later version.
17572#
17573# This program is distributed in the hope that it will be useful, but
17574# WITHOUT ANY WARRANTY; without even the implied warranty of
17575# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17576# General Public License for more details.
17577#
17578# You should have received a copy of the GNU General Public License
17579# along with this program; if not, write to the Free Software
17580# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17581#
17582# As a special exception to the GNU General Public License, if you
17583# distribute this file as part of a program that contains a
17584# configuration script generated by Autoconf, you may include it under
17585# the same distribution terms that you use for the rest of that program.
17586
17587# A sed program that does not truncate output.
17588SED=$lt_SED
17589
17590# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17591Xsed="$SED -e 1s/^X//"
17592
17593# The HP-UX ksh and POSIX shell print the target directory to stdout
17594# if CDPATH is set.
17595(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17596
17597# The names of the tagged configurations supported by this script.
17598available_tags=
17599
17600# ### BEGIN LIBTOOL CONFIG
17601
17602# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17603
17604# Shell to use when invoking shell scripts.
17605SHELL=$lt_SHELL
17606
17607# Whether or not to build shared libraries.
17608build_libtool_libs=$enable_shared
17609
17610# Whether or not to build static libraries.
17611build_old_libs=$enable_static
17612
17613# Whether or not to add -lc for building shared libraries.
17614build_libtool_need_lc=$archive_cmds_need_lc
17615
17616# Whether or not to disallow shared libs when runtime libs are static
17617allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17618
17619# Whether or not to optimize for fast installation.
17620fast_install=$enable_fast_install
17621
17622# The host system.
17623host_alias=$host_alias
17624host=$host
17625host_os=$host_os
17626
17627# The build system.
17628build_alias=$build_alias
17629build=$build
17630build_os=$build_os
17631
17632# An echo program that does not interpret backslashes.
17633echo=$lt_echo
17634
17635# The archiver.
17636AR=$lt_AR
17637AR_FLAGS=$lt_AR_FLAGS
17638
17639# A C compiler.
17640LTCC=$lt_LTCC
17641
17642# LTCC compiler flags.
17643LTCFLAGS=$lt_LTCFLAGS
17644
17645# A language-specific compiler.
17646CC=$lt_compiler
17647
17648# Is the compiler the GNU C compiler?
17649with_gcc=$GCC
17650
17651# An ERE matcher.
17652EGREP=$lt_EGREP
17653
17654# The linker used to build libraries.
17655LD=$lt_LD
17656
17657# Whether we need hard or soft links.
17658LN_S=$lt_LN_S
17659
17660# A BSD-compatible nm program.
17661NM=$lt_NM
17662
17663# A symbol stripping program
17664STRIP=$lt_STRIP
17665
17666# Used to examine libraries when file_magic_cmd begins "file"
17667MAGIC_CMD=$MAGIC_CMD
17668
17669# Used on cygwin: DLL creation program.
17670DLLTOOL="$DLLTOOL"
17671
17672# Used on cygwin: object dumper.
17673OBJDUMP="$OBJDUMP"
17674
17675# Used on cygwin: assembler.
17676AS="$AS"
17677
17678# The name of the directory that contains temporary libtool files.
17679objdir=$objdir
17680
17681# How to create reloadable object files.
17682reload_flag=$lt_reload_flag
17683reload_cmds=$lt_reload_cmds
17684
17685# How to pass a linker flag through the compiler.
17686wl=$lt_lt_prog_compiler_wl
17687
17688# Object file suffix (normally "o").
17689objext="$ac_objext"
17690
17691# Old archive suffix (normally "a").
17692libext="$libext"
17693
17694# Shared library suffix (normally ".so").
17695shrext_cmds='$shrext_cmds'
17696
17697# Executable file suffix (normally "").
17698exeext="$exeext"
17699
17700# Additional compiler flags for building library objects.
17701pic_flag=$lt_lt_prog_compiler_pic
17702pic_mode=$pic_mode
17703
17704# What is the maximum length of a command?
17705max_cmd_len=$lt_cv_sys_max_cmd_len
17706
17707# Does compiler simultaneously support -c and -o options?
17708compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17709
17710# Must we lock files when doing compilation?
17711need_locks=$lt_need_locks
17712
17713# Do we need the lib prefix for modules?
17714need_lib_prefix=$need_lib_prefix
17715
17716# Do we need a version for libraries?
17717need_version=$need_version
17718
17719# Whether dlopen is supported.
17720dlopen_support=$enable_dlopen
17721
17722# Whether dlopen of programs is supported.
17723dlopen_self=$enable_dlopen_self
17724
17725# Whether dlopen of statically linked programs is supported.
17726dlopen_self_static=$enable_dlopen_self_static
17727
17728# Compiler flag to prevent dynamic linking.
17729link_static_flag=$lt_lt_prog_compiler_static
17730
17731# Compiler flag to turn off builtin functions.
17732no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17733
17734# Compiler flag to allow reflexive dlopens.
17735export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17736
17737# Compiler flag to generate shared objects directly from archives.
17738whole_archive_flag_spec=$lt_whole_archive_flag_spec
17739
17740# Compiler flag to generate thread-safe objects.
17741thread_safe_flag_spec=$lt_thread_safe_flag_spec
17742
17743# Library versioning type.
17744version_type=$version_type
17745
17746# Format of library name prefix.
17747libname_spec=$lt_libname_spec
17748
17749# List of archive names.  First name is the real one, the rest are links.
17750# The last name is the one that the linker finds with -lNAME.
17751library_names_spec=$lt_library_names_spec
17752
17753# The coded name of the library, if different from the real name.
17754soname_spec=$lt_soname_spec
17755
17756# Commands used to build and install an old-style archive.
17757RANLIB=$lt_RANLIB
17758old_archive_cmds=$lt_old_archive_cmds
17759old_postinstall_cmds=$lt_old_postinstall_cmds
17760old_postuninstall_cmds=$lt_old_postuninstall_cmds
17761
17762# Create an old-style archive from a shared archive.
17763old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17764
17765# Create a temporary old-style archive to link instead of a shared archive.
17766old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17767
17768# Commands used to build and install a shared archive.
17769archive_cmds=$lt_archive_cmds
17770archive_expsym_cmds=$lt_archive_expsym_cmds
17771postinstall_cmds=$lt_postinstall_cmds
17772postuninstall_cmds=$lt_postuninstall_cmds
17773
17774# Commands used to build a loadable module (assumed same as above if empty)
17775module_cmds=$lt_module_cmds
17776module_expsym_cmds=$lt_module_expsym_cmds
17777
17778# Commands to strip libraries.
17779old_striplib=$lt_old_striplib
17780striplib=$lt_striplib
17781
17782# Dependencies to place before the objects being linked to create a
17783# shared library.
17784predep_objects=$lt_predep_objects
17785
17786# Dependencies to place after the objects being linked to create a
17787# shared library.
17788postdep_objects=$lt_postdep_objects
17789
17790# Dependencies to place before the objects being linked to create a
17791# shared library.
17792predeps=$lt_predeps
17793
17794# Dependencies to place after the objects being linked to create a
17795# shared library.
17796postdeps=$lt_postdeps
17797
17798# The directories searched by this compiler when creating a shared
17799# library
17800compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17801
17802# The library search path used internally by the compiler when linking
17803# a shared library.
17804compiler_lib_search_path=$lt_compiler_lib_search_path
17805
17806# Method to check whether dependent libraries are shared objects.
17807deplibs_check_method=$lt_deplibs_check_method
17808
17809# Command to use when deplibs_check_method == file_magic.
17810file_magic_cmd=$lt_file_magic_cmd
17811
17812# Flag that allows shared libraries with undefined symbols to be built.
17813allow_undefined_flag=$lt_allow_undefined_flag
17814
17815# Flag that forces no undefined symbols.
17816no_undefined_flag=$lt_no_undefined_flag
17817
17818# Commands used to finish a libtool library installation in a directory.
17819finish_cmds=$lt_finish_cmds
17820
17821# Same as above, but a single script fragment to be evaled but not shown.
17822finish_eval=$lt_finish_eval
17823
17824# Take the output of nm and produce a listing of raw symbols and C names.
17825global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17826
17827# Transform the output of nm in a proper C declaration
17828global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17829
17830# Transform the output of nm in a C name address pair
17831global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17832
17833# This is the shared library runtime path variable.
17834runpath_var=$runpath_var
17835
17836# This is the shared library path variable.
17837shlibpath_var=$shlibpath_var
17838
17839# Is shlibpath searched before the hard-coded library search path?
17840shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17841
17842# How to hardcode a shared library path into an executable.
17843hardcode_action=$hardcode_action
17844
17845# Whether we should hardcode library paths into libraries.
17846hardcode_into_libs=$hardcode_into_libs
17847
17848# Flag to hardcode \$libdir into a binary during linking.
17849# This must work even if \$libdir does not exist.
17850hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17851
17852# If ld is used when linking, flag to hardcode \$libdir into
17853# a binary during linking. This must work even if \$libdir does
17854# not exist.
17855hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17856
17857# Whether we need a single -rpath flag with a separated argument.
17858hardcode_libdir_separator=$lt_hardcode_libdir_separator
17859
17860# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17861# resulting binary.
17862hardcode_direct=$hardcode_direct
17863
17864# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17865# resulting binary.
17866hardcode_minus_L=$hardcode_minus_L
17867
17868# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17869# the resulting binary.
17870hardcode_shlibpath_var=$hardcode_shlibpath_var
17871
17872# Set to yes if building a shared library automatically hardcodes DIR into the library
17873# and all subsequent libraries and executables linked against it.
17874hardcode_automatic=$hardcode_automatic
17875
17876# Variables whose values should be saved in libtool wrapper scripts and
17877# restored at relink time.
17878variables_saved_for_relink="$variables_saved_for_relink"
17879
17880# Whether libtool must link a program against all its dependency libraries.
17881link_all_deplibs=$link_all_deplibs
17882
17883# Compile-time system search path for libraries
17884sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17885
17886# Run-time system search path for libraries
17887sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17888
17889# Fix the shell variable \$srcfile for the compiler.
17890fix_srcfile_path=$lt_fix_srcfile_path
17891
17892# Set to yes if exported symbols are required.
17893always_export_symbols=$always_export_symbols
17894
17895# The commands to list exported symbols.
17896export_symbols_cmds=$lt_export_symbols_cmds
17897
17898# The commands to extract the exported symbol list from a shared archive.
17899extract_expsyms_cmds=$lt_extract_expsyms_cmds
17900
17901# Symbols that should not be listed in the preloaded symbols.
17902exclude_expsyms=$lt_exclude_expsyms
17903
17904# Symbols that must always be exported.
17905include_expsyms=$lt_include_expsyms
17906
17907# ### END LIBTOOL CONFIG
17908
17909__EOF__
17910
17911
17912  case $host_os in
17913  aix3*)
17914    cat <<\EOF >> "$cfgfile"
17915
17916# AIX sometimes has problems with the GCC collect2 program.  For some
17917# reason, if we set the COLLECT_NAMES environment variable, the problems
17918# vanish in a puff of smoke.
17919if test "X${COLLECT_NAMES+set}" != Xset; then
17920  COLLECT_NAMES=
17921  export COLLECT_NAMES
17922fi
17923EOF
17924    ;;
17925  esac
17926
17927  # We use sed instead of cat because bash on DJGPP gets confused if
17928  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17929  # text mode, it properly converts lines to CR/LF.  This bash problem
17930  # is reportedly fixed, but why not run on old versions too?
17931  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17932
17933  mv -f "$cfgfile" "$ofile" || \
17934    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17935  chmod +x "$ofile"
17936
17937else
17938  # If there is no Makefile yet, we rely on a make rule to execute
17939  # `config.status --recheck' to rerun these tests and create the
17940  # libtool script then.
17941  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17942  if test -f "$ltmain_in"; then
17943    test -f Makefile && make "$ltmain"
17944  fi
17945fi
17946
17947
17948ac_ext=cpp
17949ac_cpp='$CXXCPP $CPPFLAGS'
17950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17953
17954CC="$lt_save_CC"
17955
17956
17957# Check whether --with-tags was given.
17958if test "${with_tags+set}" = set; then
17959  withval=$with_tags; tagnames="$withval"
17960fi
17961
17962
17963if test -f "$ltmain" && test -n "$tagnames"; then
17964  if test ! -f "${ofile}"; then
17965    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17966echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17967  fi
17968
17969  if test -z "$LTCC"; then
17970    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17971    if test -z "$LTCC"; then
17972      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17973echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17974    else
17975      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17976echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17977    fi
17978  fi
17979  if test -z "$LTCFLAGS"; then
17980    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17981  fi
17982
17983  # Extract list of available tagged configurations in $ofile.
17984  # Note that this assumes the entire list is on one line.
17985  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17986
17987  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17988  for tagname in $tagnames; do
17989    IFS="$lt_save_ifs"
17990    # Check whether tagname contains only valid characters
17991    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17992    "") ;;
17993    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17994echo "$as_me: error: invalid tag name: $tagname" >&2;}
17995   { (exit 1); exit 1; }; }
17996	;;
17997    esac
17998
17999    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18000    then
18001      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18002echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18003   { (exit 1); exit 1; }; }
18004    fi
18005
18006    # Update the list of available tags.
18007    if test -n "$tagname"; then
18008      echo appending configuration tag \"$tagname\" to $ofile
18009
18010      case $tagname in
18011      CXX)
18012	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18013	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18014	    (test "X$CXX" != "Xg++"))) ; then
18015	  ac_ext=cpp
18016ac_cpp='$CXXCPP $CPPFLAGS'
18017ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18018ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18019ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18020
18021
18022
18023
18024archive_cmds_need_lc_CXX=no
18025allow_undefined_flag_CXX=
18026always_export_symbols_CXX=no
18027archive_expsym_cmds_CXX=
18028export_dynamic_flag_spec_CXX=
18029hardcode_direct_CXX=no
18030hardcode_libdir_flag_spec_CXX=
18031hardcode_libdir_flag_spec_ld_CXX=
18032hardcode_libdir_separator_CXX=
18033hardcode_minus_L_CXX=no
18034hardcode_shlibpath_var_CXX=unsupported
18035hardcode_automatic_CXX=no
18036module_cmds_CXX=
18037module_expsym_cmds_CXX=
18038link_all_deplibs_CXX=unknown
18039old_archive_cmds_CXX=$old_archive_cmds
18040no_undefined_flag_CXX=
18041whole_archive_flag_spec_CXX=
18042enable_shared_with_static_runtimes_CXX=no
18043
18044# Dependencies to place before and after the object being linked:
18045predep_objects_CXX=
18046postdep_objects_CXX=
18047predeps_CXX=
18048postdeps_CXX=
18049compiler_lib_search_path_CXX=
18050compiler_lib_search_dirs_CXX=
18051
18052# Source file extension for C++ test sources.
18053ac_ext=cpp
18054
18055# Object file extension for compiled C++ test sources.
18056objext=o
18057objext_CXX=$objext
18058
18059# Code to be used in simple compile tests
18060lt_simple_compile_test_code="int some_variable = 0;"
18061
18062# Code to be used in simple link tests
18063lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18064
18065# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18066
18067# If no C compiler was specified, use CC.
18068LTCC=${LTCC-"$CC"}
18069
18070# If no C compiler flags were specified, use CFLAGS.
18071LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18072
18073# Allow CC to be a program name with arguments.
18074compiler=$CC
18075
18076
18077# save warnings/boilerplate of simple test code
18078ac_outfile=conftest.$ac_objext
18079echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18080eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18081_lt_compiler_boilerplate=`cat conftest.err`
18082$rm conftest*
18083
18084ac_outfile=conftest.$ac_objext
18085echo "$lt_simple_link_test_code" >conftest.$ac_ext
18086eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18087_lt_linker_boilerplate=`cat conftest.err`
18088$rm -r conftest*
18089
18090
18091# Allow CC to be a program name with arguments.
18092lt_save_CC=$CC
18093lt_save_LD=$LD
18094lt_save_GCC=$GCC
18095GCC=$GXX
18096lt_save_with_gnu_ld=$with_gnu_ld
18097lt_save_path_LD=$lt_cv_path_LD
18098if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18099  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18100else
18101  $as_unset lt_cv_prog_gnu_ld
18102fi
18103if test -n "${lt_cv_path_LDCXX+set}"; then
18104  lt_cv_path_LD=$lt_cv_path_LDCXX
18105else
18106  $as_unset lt_cv_path_LD
18107fi
18108test -z "${LDCXX+set}" || LD=$LDCXX
18109CC=${CXX-"c++"}
18110compiler=$CC
18111compiler_CXX=$CC
18112for cc_temp in $compiler""; do
18113  case $cc_temp in
18114    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18115    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18116    \-*) ;;
18117    *) break;;
18118  esac
18119done
18120cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18121
18122
18123# We don't want -fno-exception wen compiling C++ code, so set the
18124# no_builtin_flag separately
18125if test "$GXX" = yes; then
18126  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18127else
18128  lt_prog_compiler_no_builtin_flag_CXX=
18129fi
18130
18131if test "$GXX" = yes; then
18132  # Set up default GNU C++ configuration
18133
18134
18135# Check whether --with-gnu-ld was given.
18136if test "${with_gnu_ld+set}" = set; then
18137  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18138else
18139  with_gnu_ld=no
18140fi
18141
18142ac_prog=ld
18143if test "$GCC" = yes; then
18144  # Check if gcc -print-prog-name=ld gives a path.
18145  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18146echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
18147  case $host in
18148  *-*-mingw*)
18149    # gcc leaves a trailing carriage return which upsets mingw
18150    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18151  *)
18152    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18153  esac
18154  case $ac_prog in
18155    # Accept absolute paths.
18156    [\\/]* | ?:[\\/]*)
18157      re_direlt='/[^/][^/]*/\.\./'
18158      # Canonicalize the pathname of ld
18159      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18160      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18161	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18162      done
18163      test -z "$LD" && LD="$ac_prog"
18164      ;;
18165  "")
18166    # If it fails, then pretend we aren't using GCC.
18167    ac_prog=ld
18168    ;;
18169  *)
18170    # If it is relative, then search for the first ld in PATH.
18171    with_gnu_ld=unknown
18172    ;;
18173  esac
18174elif test "$with_gnu_ld" = yes; then
18175  { echo "$as_me:$LINENO: checking for GNU ld" >&5
18176echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
18177else
18178  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18179echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
18180fi
18181if test "${lt_cv_path_LD+set}" = set; then
18182  echo $ECHO_N "(cached) $ECHO_C" >&6
18183else
18184  if test -z "$LD"; then
18185  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18186  for ac_dir in $PATH; do
18187    IFS="$lt_save_ifs"
18188    test -z "$ac_dir" && ac_dir=.
18189    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18190      lt_cv_path_LD="$ac_dir/$ac_prog"
18191      # Check to see if the program is GNU ld.  I'd rather use --version,
18192      # but apparently some variants of GNU ld only accept -v.
18193      # Break only if it was the GNU/non-GNU ld that we prefer.
18194      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18195      *GNU* | *'with BFD'*)
18196	test "$with_gnu_ld" != no && break
18197	;;
18198      *)
18199	test "$with_gnu_ld" != yes && break
18200	;;
18201      esac
18202    fi
18203  done
18204  IFS="$lt_save_ifs"
18205else
18206  lt_cv_path_LD="$LD" # Let the user override the test with a path.
18207fi
18208fi
18209
18210LD="$lt_cv_path_LD"
18211if test -n "$LD"; then
18212  { echo "$as_me:$LINENO: result: $LD" >&5
18213echo "${ECHO_T}$LD" >&6; }
18214else
18215  { echo "$as_me:$LINENO: result: no" >&5
18216echo "${ECHO_T}no" >&6; }
18217fi
18218test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18219echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18220   { (exit 1); exit 1; }; }
18221{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18222echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
18223if test "${lt_cv_prog_gnu_ld+set}" = set; then
18224  echo $ECHO_N "(cached) $ECHO_C" >&6
18225else
18226  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18227case `$LD -v 2>&1 </dev/null` in
18228*GNU* | *'with BFD'*)
18229  lt_cv_prog_gnu_ld=yes
18230  ;;
18231*)
18232  lt_cv_prog_gnu_ld=no
18233  ;;
18234esac
18235fi
18236{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18237echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
18238with_gnu_ld=$lt_cv_prog_gnu_ld
18239
18240
18241
18242  # Check if GNU C++ uses GNU ld as the underlying linker, since the
18243  # archiving commands below assume that GNU ld is being used.
18244  if test "$with_gnu_ld" = yes; then
18245    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18246    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'
18247
18248    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18249    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18250
18251    # If archive_cmds runs LD, not CC, wlarc should be empty
18252    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18253    #     investigate it a little bit more. (MM)
18254    wlarc='${wl}'
18255
18256    # ancient GNU ld didn't support --whole-archive et. al.
18257    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18258	grep 'no-whole-archive' > /dev/null; then
18259      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18260    else
18261      whole_archive_flag_spec_CXX=
18262    fi
18263  else
18264    with_gnu_ld=no
18265    wlarc=
18266
18267    # A generic and very simple default shared library creation
18268    # command for GNU C++ for the case where it uses the native
18269    # linker, instead of GNU ld.  If possible, this setting should
18270    # overridden to take advantage of the native linker features on
18271    # the platform it is being used on.
18272    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18273  fi
18274
18275  # Commands to make compiler produce verbose output that lists
18276  # what "hidden" libraries, object files and flags are used when
18277  # linking a shared library.
18278  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18279
18280else
18281  GXX=no
18282  with_gnu_ld=no
18283  wlarc=
18284fi
18285
18286# PORTME: fill in a description of your system's C++ link characteristics
18287{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18288echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18289ld_shlibs_CXX=yes
18290case $host_os in
18291  aix3*)
18292    # FIXME: insert proper C++ library support
18293    ld_shlibs_CXX=no
18294    ;;
18295  aix[4-9]*)
18296    if test "$host_cpu" = ia64; then
18297      # On IA64, the linker does run time linking by default, so we don't
18298      # have to do anything special.
18299      aix_use_runtimelinking=no
18300      exp_sym_flag='-Bexport'
18301      no_entry_flag=""
18302    else
18303      aix_use_runtimelinking=no
18304
18305      # Test if we are trying to use run time linking or normal
18306      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18307      # need to do runtime linking.
18308      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18309	for ld_flag in $LDFLAGS; do
18310	  case $ld_flag in
18311	  *-brtl*)
18312	    aix_use_runtimelinking=yes
18313	    break
18314	    ;;
18315	  esac
18316	done
18317	;;
18318      esac
18319
18320      exp_sym_flag='-bexport'
18321      no_entry_flag='-bnoentry'
18322    fi
18323
18324    # When large executables or shared objects are built, AIX ld can
18325    # have problems creating the table of contents.  If linking a library
18326    # or program results in "error TOC overflow" add -mminimal-toc to
18327    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18328    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18329
18330    archive_cmds_CXX=''
18331    hardcode_direct_CXX=yes
18332    hardcode_libdir_separator_CXX=':'
18333    link_all_deplibs_CXX=yes
18334
18335    if test "$GXX" = yes; then
18336      case $host_os in aix4.[012]|aix4.[012].*)
18337      # We only want to do this on AIX 4.2 and lower, the check
18338      # below for broken collect2 doesn't work under 4.3+
18339	collect2name=`${CC} -print-prog-name=collect2`
18340	if test -f "$collect2name" && \
18341	   strings "$collect2name" | grep resolve_lib_name >/dev/null
18342	then
18343	  # We have reworked collect2
18344	  :
18345	else
18346	  # We have old collect2
18347	  hardcode_direct_CXX=unsupported
18348	  # It fails to find uninstalled libraries when the uninstalled
18349	  # path is not listed in the libpath.  Setting hardcode_minus_L
18350	  # to unsupported forces relinking
18351	  hardcode_minus_L_CXX=yes
18352	  hardcode_libdir_flag_spec_CXX='-L$libdir'
18353	  hardcode_libdir_separator_CXX=
18354	fi
18355	;;
18356      esac
18357      shared_flag='-shared'
18358      if test "$aix_use_runtimelinking" = yes; then
18359	shared_flag="$shared_flag "'${wl}-G'
18360      fi
18361    else
18362      # not using gcc
18363      if test "$host_cpu" = ia64; then
18364	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18365	# chokes on -Wl,-G. The following line is correct:
18366	shared_flag='-G'
18367      else
18368	if test "$aix_use_runtimelinking" = yes; then
18369	  shared_flag='${wl}-G'
18370	else
18371	  shared_flag='${wl}-bM:SRE'
18372	fi
18373      fi
18374    fi
18375
18376    # It seems that -bexpall does not export symbols beginning with
18377    # underscore (_), so it is better to generate a list of symbols to export.
18378    always_export_symbols_CXX=yes
18379    if test "$aix_use_runtimelinking" = yes; then
18380      # Warning - without using the other runtime loading flags (-brtl),
18381      # -berok will link without error, but may produce a broken library.
18382      allow_undefined_flag_CXX='-berok'
18383      # Determine the default libpath from the value encoded in an empty executable.
18384      cat >conftest.$ac_ext <<_ACEOF
18385/* confdefs.h.  */
18386_ACEOF
18387cat confdefs.h >>conftest.$ac_ext
18388cat >>conftest.$ac_ext <<_ACEOF
18389/* end confdefs.h.  */
18390
18391int
18392main ()
18393{
18394
18395  ;
18396  return 0;
18397}
18398_ACEOF
18399rm -f conftest.$ac_objext conftest$ac_exeext
18400if { (ac_try="$ac_link"
18401case "(($ac_try" in
18402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18403  *) ac_try_echo=$ac_try;;
18404esac
18405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18406  (eval "$ac_link") 2>conftest.er1
18407  ac_status=$?
18408  grep -v '^ *+' conftest.er1 >conftest.err
18409  rm -f conftest.er1
18410  cat conftest.err >&5
18411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412  (exit $ac_status); } && {
18413	 test -z "$ac_cxx_werror_flag" ||
18414	 test ! -s conftest.err
18415       } && test -s conftest$ac_exeext &&
18416       $as_test_x conftest$ac_exeext; then
18417
18418lt_aix_libpath_sed='
18419    /Import File Strings/,/^$/ {
18420	/^0/ {
18421	    s/^0  *\(.*\)$/\1/
18422	    p
18423	}
18424    }'
18425aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18426# Check for a 64-bit object if we didn't find anything.
18427if test -z "$aix_libpath"; then
18428  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18429fi
18430else
18431  echo "$as_me: failed program was:" >&5
18432sed 's/^/| /' conftest.$ac_ext >&5
18433
18434
18435fi
18436
18437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18438      conftest$ac_exeext conftest.$ac_ext
18439if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18440
18441      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18442
18443      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"
18444     else
18445      if test "$host_cpu" = ia64; then
18446	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18447	allow_undefined_flag_CXX="-z nodefs"
18448	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"
18449      else
18450	# Determine the default libpath from the value encoded in an empty executable.
18451	cat >conftest.$ac_ext <<_ACEOF
18452/* confdefs.h.  */
18453_ACEOF
18454cat confdefs.h >>conftest.$ac_ext
18455cat >>conftest.$ac_ext <<_ACEOF
18456/* end confdefs.h.  */
18457
18458int
18459main ()
18460{
18461
18462  ;
18463  return 0;
18464}
18465_ACEOF
18466rm -f conftest.$ac_objext conftest$ac_exeext
18467if { (ac_try="$ac_link"
18468case "(($ac_try" in
18469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470  *) ac_try_echo=$ac_try;;
18471esac
18472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473  (eval "$ac_link") 2>conftest.er1
18474  ac_status=$?
18475  grep -v '^ *+' conftest.er1 >conftest.err
18476  rm -f conftest.er1
18477  cat conftest.err >&5
18478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479  (exit $ac_status); } && {
18480	 test -z "$ac_cxx_werror_flag" ||
18481	 test ! -s conftest.err
18482       } && test -s conftest$ac_exeext &&
18483       $as_test_x conftest$ac_exeext; then
18484
18485lt_aix_libpath_sed='
18486    /Import File Strings/,/^$/ {
18487	/^0/ {
18488	    s/^0  *\(.*\)$/\1/
18489	    p
18490	}
18491    }'
18492aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18493# Check for a 64-bit object if we didn't find anything.
18494if test -z "$aix_libpath"; then
18495  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18496fi
18497else
18498  echo "$as_me: failed program was:" >&5
18499sed 's/^/| /' conftest.$ac_ext >&5
18500
18501
18502fi
18503
18504rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18505      conftest$ac_exeext conftest.$ac_ext
18506if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18507
18508	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18509	# Warning - without using the other run time loading flags,
18510	# -berok will link without error, but may produce a broken library.
18511	no_undefined_flag_CXX=' ${wl}-bernotok'
18512	allow_undefined_flag_CXX=' ${wl}-berok'
18513	# Exported symbols can be pulled into shared objects from archives
18514	whole_archive_flag_spec_CXX='$convenience'
18515	archive_cmds_need_lc_CXX=yes
18516	# This is similar to how AIX traditionally builds its shared libraries.
18517	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'
18518      fi
18519    fi
18520    ;;
18521
18522  beos*)
18523    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18524      allow_undefined_flag_CXX=unsupported
18525      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18526      # support --undefined.  This deserves some investigation.  FIXME
18527      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18528    else
18529      ld_shlibs_CXX=no
18530    fi
18531    ;;
18532
18533  chorus*)
18534    case $cc_basename in
18535      *)
18536	# FIXME: insert proper C++ library support
18537	ld_shlibs_CXX=no
18538	;;
18539    esac
18540    ;;
18541
18542  cygwin* | mingw* | pw32*)
18543    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18544    # as there is no search path for DLLs.
18545    hardcode_libdir_flag_spec_CXX='-L$libdir'
18546    allow_undefined_flag_CXX=unsupported
18547    always_export_symbols_CXX=no
18548    enable_shared_with_static_runtimes_CXX=yes
18549
18550    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18551      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'
18552      # If the export-symbols file already is a .def file (1st line
18553      # is EXPORTS), use it as is; otherwise, prepend...
18554      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18555	cp $export_symbols $output_objdir/$soname.def;
18556      else
18557	echo EXPORTS > $output_objdir/$soname.def;
18558	cat $export_symbols >> $output_objdir/$soname.def;
18559      fi~
18560      $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'
18561    else
18562      ld_shlibs_CXX=no
18563    fi
18564  ;;
18565      darwin* | rhapsody*)
18566      archive_cmds_need_lc_CXX=no
18567      hardcode_direct_CXX=no
18568      hardcode_automatic_CXX=yes
18569      hardcode_shlibpath_var_CXX=unsupported
18570      whole_archive_flag_spec_CXX=''
18571      link_all_deplibs_CXX=yes
18572      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18573      if test "$GXX" = yes ; then
18574      output_verbose_link_cmd='echo'
18575      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18576      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18577      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18578      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18579      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18580        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${_lt_dsymutil}"
18581        archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
18582      fi
18583      else
18584      case $cc_basename in
18585        xlc*)
18586         output_verbose_link_cmd='echo'
18587          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18588          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18589          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18590          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18591          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}'
18592          ;;
18593       *)
18594         ld_shlibs_CXX=no
18595          ;;
18596      esac
18597      fi
18598        ;;
18599
18600  dgux*)
18601    case $cc_basename in
18602      ec++*)
18603	# FIXME: insert proper C++ library support
18604	ld_shlibs_CXX=no
18605	;;
18606      ghcx*)
18607	# Green Hills C++ Compiler
18608	# FIXME: insert proper C++ library support
18609	ld_shlibs_CXX=no
18610	;;
18611      *)
18612	# FIXME: insert proper C++ library support
18613	ld_shlibs_CXX=no
18614	;;
18615    esac
18616    ;;
18617  freebsd[12]*)
18618    # C++ shared libraries reported to be fairly broken before switch to ELF
18619    ld_shlibs_CXX=no
18620    ;;
18621  freebsd-elf*)
18622    archive_cmds_need_lc_CXX=no
18623    ;;
18624  freebsd* | dragonfly*)
18625    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18626    # conventions
18627    ld_shlibs_CXX=yes
18628    ;;
18629  gnu*)
18630    ;;
18631  hpux9*)
18632    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18633    hardcode_libdir_separator_CXX=:
18634    export_dynamic_flag_spec_CXX='${wl}-E'
18635    hardcode_direct_CXX=yes
18636    hardcode_minus_L_CXX=yes # Not in the search PATH,
18637				# but as the default
18638				# location of the library.
18639
18640    case $cc_basename in
18641    CC*)
18642      # FIXME: insert proper C++ library support
18643      ld_shlibs_CXX=no
18644      ;;
18645    aCC*)
18646      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'
18647      # Commands to make compiler produce verbose output that lists
18648      # what "hidden" libraries, object files and flags are used when
18649      # linking a shared library.
18650      #
18651      # There doesn't appear to be a way to prevent this compiler from
18652      # explicitly linking system object files so we need to strip them
18653      # from the output so that they don't get included in the library
18654      # dependencies.
18655      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'
18656      ;;
18657    *)
18658      if test "$GXX" = yes; then
18659        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'
18660      else
18661        # FIXME: insert proper C++ library support
18662        ld_shlibs_CXX=no
18663      fi
18664      ;;
18665    esac
18666    ;;
18667  hpux10*|hpux11*)
18668    if test $with_gnu_ld = no; then
18669      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18670      hardcode_libdir_separator_CXX=:
18671
18672      case $host_cpu in
18673      hppa*64*|ia64*) ;;
18674      *)
18675	export_dynamic_flag_spec_CXX='${wl}-E'
18676        ;;
18677      esac
18678    fi
18679    case $host_cpu in
18680    hppa*64*|ia64*)
18681      hardcode_direct_CXX=no
18682      hardcode_shlibpath_var_CXX=no
18683      ;;
18684    *)
18685      hardcode_direct_CXX=yes
18686      hardcode_minus_L_CXX=yes # Not in the search PATH,
18687					      # but as the default
18688					      # location of the library.
18689      ;;
18690    esac
18691
18692    case $cc_basename in
18693      CC*)
18694	# FIXME: insert proper C++ library support
18695	ld_shlibs_CXX=no
18696	;;
18697      aCC*)
18698	case $host_cpu in
18699	hppa*64*)
18700	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18701	  ;;
18702	ia64*)
18703	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18704	  ;;
18705	*)
18706	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18707	  ;;
18708	esac
18709	# Commands to make compiler produce verbose output that lists
18710	# what "hidden" libraries, object files and flags are used when
18711	# linking a shared library.
18712	#
18713	# There doesn't appear to be a way to prevent this compiler from
18714	# explicitly linking system object files so we need to strip them
18715	# from the output so that they don't get included in the library
18716	# dependencies.
18717	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'
18718	;;
18719      *)
18720	if test "$GXX" = yes; then
18721	  if test $with_gnu_ld = no; then
18722	    case $host_cpu in
18723	    hppa*64*)
18724	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18725	      ;;
18726	    ia64*)
18727	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18728	      ;;
18729	    *)
18730	      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'
18731	      ;;
18732	    esac
18733	  fi
18734	else
18735	  # FIXME: insert proper C++ library support
18736	  ld_shlibs_CXX=no
18737	fi
18738	;;
18739    esac
18740    ;;
18741  interix[3-9]*)
18742    hardcode_direct_CXX=no
18743    hardcode_shlibpath_var_CXX=no
18744    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18745    export_dynamic_flag_spec_CXX='${wl}-E'
18746    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18747    # Instead, shared libraries are loaded at an image base (0x10000000 by
18748    # default) and relocated if they conflict, which is a slow very memory
18749    # consuming and fragmenting process.  To avoid this, we pick a random,
18750    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18751    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18752    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'
18753    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'
18754    ;;
18755  irix5* | irix6*)
18756    case $cc_basename in
18757      CC*)
18758	# SGI C++
18759	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'
18760
18761	# Archives containing C++ object files must be created using
18762	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18763	# necessary to make sure instantiated templates are included
18764	# in the archive.
18765	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18766	;;
18767      *)
18768	if test "$GXX" = yes; then
18769	  if test "$with_gnu_ld" = no; then
18770	    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'
18771	  else
18772	    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'
18773	  fi
18774	fi
18775	link_all_deplibs_CXX=yes
18776	;;
18777    esac
18778    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18779    hardcode_libdir_separator_CXX=:
18780    ;;
18781  linux* | k*bsd*-gnu)
18782    case $cc_basename in
18783      KCC*)
18784	# Kuck and Associates, Inc. (KAI) C++ Compiler
18785
18786	# KCC will only create a shared library if the output file
18787	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18788	# to its proper name (with version) after linking.
18789	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'
18790	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'
18791	# Commands to make compiler produce verbose output that lists
18792	# what "hidden" libraries, object files and flags are used when
18793	# linking a shared library.
18794	#
18795	# There doesn't appear to be a way to prevent this compiler from
18796	# explicitly linking system object files so we need to strip them
18797	# from the output so that they don't get included in the library
18798	# dependencies.
18799	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'
18800
18801	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18802	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18803
18804	# Archives containing C++ object files must be created using
18805	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
18806	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18807	;;
18808      icpc*)
18809	# Intel C++
18810	with_gnu_ld=yes
18811	# version 8.0 and above of icpc choke on multiply defined symbols
18812	# if we add $predep_objects and $postdep_objects, however 7.1 and
18813	# earlier do not add the objects themselves.
18814	case `$CC -V 2>&1` in
18815	*"Version 7."*)
18816  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18817  	  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'
18818	  ;;
18819	*)  # Version 8.0 or newer
18820	  tmp_idyn=
18821	  case $host_cpu in
18822	    ia64*) tmp_idyn=' -i_dynamic';;
18823	  esac
18824  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18825	  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'
18826	  ;;
18827	esac
18828	archive_cmds_need_lc_CXX=no
18829	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18830	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18831	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18832	;;
18833      pgCC* | pgcpp*)
18834        # Portland Group C++ compiler
18835	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18836  	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'
18837
18838	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18839	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18840	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'
18841        ;;
18842      cxx*)
18843	# Compaq C++
18844	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18845	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'
18846
18847	runpath_var=LD_RUN_PATH
18848	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18849	hardcode_libdir_separator_CXX=:
18850
18851	# Commands to make compiler produce verbose output that lists
18852	# what "hidden" libraries, object files and flags are used when
18853	# linking a shared library.
18854	#
18855	# There doesn't appear to be a way to prevent this compiler from
18856	# explicitly linking system object files so we need to strip them
18857	# from the output so that they don't get included in the library
18858	# dependencies.
18859	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'
18860	;;
18861      *)
18862	case `$CC -V 2>&1 | sed 5q` in
18863	*Sun\ C*)
18864	  # Sun C++ 5.9
18865	  no_undefined_flag_CXX=' -zdefs'
18866	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18867	  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'
18868	  hardcode_libdir_flag_spec_CXX='-R$libdir'
18869	  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'
18870
18871	  # Not sure whether something based on
18872	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18873	  # would be better.
18874	  output_verbose_link_cmd='echo'
18875
18876	  # Archives containing C++ object files must be created using
18877	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18878	  # necessary to make sure instantiated templates are included
18879	  # in the archive.
18880	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18881	  ;;
18882	esac
18883	;;
18884    esac
18885    ;;
18886  lynxos*)
18887    # FIXME: insert proper C++ library support
18888    ld_shlibs_CXX=no
18889    ;;
18890  m88k*)
18891    # FIXME: insert proper C++ library support
18892    ld_shlibs_CXX=no
18893    ;;
18894  mvs*)
18895    case $cc_basename in
18896      cxx*)
18897	# FIXME: insert proper C++ library support
18898	ld_shlibs_CXX=no
18899	;;
18900      *)
18901	# FIXME: insert proper C++ library support
18902	ld_shlibs_CXX=no
18903	;;
18904    esac
18905    ;;
18906  netbsd*)
18907    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18908      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18909      wlarc=
18910      hardcode_libdir_flag_spec_CXX='-R$libdir'
18911      hardcode_direct_CXX=yes
18912      hardcode_shlibpath_var_CXX=no
18913    fi
18914    # Workaround some broken pre-1.5 toolchains
18915    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18916    ;;
18917  openbsd2*)
18918    # C++ shared libraries are fairly broken
18919    ld_shlibs_CXX=no
18920    ;;
18921  openbsd*)
18922    if test -f /usr/libexec/ld.so; then
18923      hardcode_direct_CXX=yes
18924      hardcode_shlibpath_var_CXX=no
18925      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18926      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18927      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18928	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18929	export_dynamic_flag_spec_CXX='${wl}-E'
18930	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18931      fi
18932      output_verbose_link_cmd='echo'
18933    else
18934      ld_shlibs_CXX=no
18935    fi
18936    ;;
18937  osf3*)
18938    case $cc_basename in
18939      KCC*)
18940	# Kuck and Associates, Inc. (KAI) C++ Compiler
18941
18942	# KCC will only create a shared library if the output file
18943	# ends with ".so" (or ".sl" for HP-UX), so rename the library
18944	# to its proper name (with version) after linking.
18945	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'
18946
18947	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18948	hardcode_libdir_separator_CXX=:
18949
18950	# Archives containing C++ object files must be created using
18951	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
18952	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18953
18954	;;
18955      RCC*)
18956	# Rational C++ 2.4.1
18957	# FIXME: insert proper C++ library support
18958	ld_shlibs_CXX=no
18959	;;
18960      cxx*)
18961	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18962	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'
18963
18964	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18965	hardcode_libdir_separator_CXX=:
18966
18967	# Commands to make compiler produce verbose output that lists
18968	# what "hidden" libraries, object files and flags are used when
18969	# linking a shared library.
18970	#
18971	# There doesn't appear to be a way to prevent this compiler from
18972	# explicitly linking system object files so we need to strip them
18973	# from the output so that they don't get included in the library
18974	# dependencies.
18975	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'
18976	;;
18977      *)
18978	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18979	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18980	  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'
18981
18982	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18983	  hardcode_libdir_separator_CXX=:
18984
18985	  # Commands to make compiler produce verbose output that lists
18986	  # what "hidden" libraries, object files and flags are used when
18987	  # linking a shared library.
18988	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18989
18990	else
18991	  # FIXME: insert proper C++ library support
18992	  ld_shlibs_CXX=no
18993	fi
18994	;;
18995    esac
18996    ;;
18997  osf4* | osf5*)
18998    case $cc_basename in
18999      KCC*)
19000	# Kuck and Associates, Inc. (KAI) C++ Compiler
19001
19002	# KCC will only create a shared library if the output file
19003	# ends with ".so" (or ".sl" for HP-UX), so rename the library
19004	# to its proper name (with version) after linking.
19005	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'
19006
19007	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19008	hardcode_libdir_separator_CXX=:
19009
19010	# Archives containing C++ object files must be created using
19011	# the KAI C++ compiler.
19012	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19013	;;
19014      RCC*)
19015	# Rational C++ 2.4.1
19016	# FIXME: insert proper C++ library support
19017	ld_shlibs_CXX=no
19018	;;
19019      cxx*)
19020	allow_undefined_flag_CXX=' -expect_unresolved \*'
19021	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'
19022	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19023	  echo "-hidden">> $lib.exp~
19024	  $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~
19025	  $rm $lib.exp'
19026
19027	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19028	hardcode_libdir_separator_CXX=:
19029
19030	# Commands to make compiler produce verbose output that lists
19031	# what "hidden" libraries, object files and flags are used when
19032	# linking a shared library.
19033	#
19034	# There doesn't appear to be a way to prevent this compiler from
19035	# explicitly linking system object files so we need to strip them
19036	# from the output so that they don't get included in the library
19037	# dependencies.
19038	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'
19039	;;
19040      *)
19041	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19042	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19043	 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'
19044
19045	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19046	  hardcode_libdir_separator_CXX=:
19047
19048	  # Commands to make compiler produce verbose output that lists
19049	  # what "hidden" libraries, object files and flags are used when
19050	  # linking a shared library.
19051	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19052
19053	else
19054	  # FIXME: insert proper C++ library support
19055	  ld_shlibs_CXX=no
19056	fi
19057	;;
19058    esac
19059    ;;
19060  psos*)
19061    # FIXME: insert proper C++ library support
19062    ld_shlibs_CXX=no
19063    ;;
19064  sunos4*)
19065    case $cc_basename in
19066      CC*)
19067	# Sun C++ 4.x
19068	# FIXME: insert proper C++ library support
19069	ld_shlibs_CXX=no
19070	;;
19071      lcc*)
19072	# Lucid
19073	# FIXME: insert proper C++ library support
19074	ld_shlibs_CXX=no
19075	;;
19076      *)
19077	# FIXME: insert proper C++ library support
19078	ld_shlibs_CXX=no
19079	;;
19080    esac
19081    ;;
19082  solaris*)
19083    case $cc_basename in
19084      CC*)
19085	# Sun C++ 4.2, 5.x and Centerline C++
19086        archive_cmds_need_lc_CXX=yes
19087	no_undefined_flag_CXX=' -zdefs'
19088	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19089	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19090	$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'
19091
19092	hardcode_libdir_flag_spec_CXX='-R$libdir'
19093	hardcode_shlibpath_var_CXX=no
19094	case $host_os in
19095	  solaris2.[0-5] | solaris2.[0-5].*) ;;
19096	  *)
19097	    # The compiler driver will combine and reorder linker options,
19098	    # but understands `-z linker_flag'.
19099	    # Supported since Solaris 2.6 (maybe 2.5.1?)
19100	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19101	    ;;
19102	esac
19103	link_all_deplibs_CXX=yes
19104
19105	output_verbose_link_cmd='echo'
19106
19107	# Archives containing C++ object files must be created using
19108	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
19109	# necessary to make sure instantiated templates are included
19110	# in the archive.
19111	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19112	;;
19113      gcx*)
19114	# Green Hills C++ Compiler
19115	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19116
19117	# The C++ compiler must be used to create the archive.
19118	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19119	;;
19120      *)
19121	# GNU C++ compiler with Solaris linker
19122	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19123	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19124	  if $CC --version | grep -v '^2\.7' > /dev/null; then
19125	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19126	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19127		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19128
19129	    # Commands to make compiler produce verbose output that lists
19130	    # what "hidden" libraries, object files and flags are used when
19131	    # linking a shared library.
19132	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19133	  else
19134	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
19135	    # platform.
19136	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19137	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19138		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19139
19140	    # Commands to make compiler produce verbose output that lists
19141	    # what "hidden" libraries, object files and flags are used when
19142	    # linking a shared library.
19143	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19144	  fi
19145
19146	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19147	  case $host_os in
19148	  solaris2.[0-5] | solaris2.[0-5].*) ;;
19149	  *)
19150	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19151	    ;;
19152	  esac
19153	fi
19154	;;
19155    esac
19156    ;;
19157  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19158    no_undefined_flag_CXX='${wl}-z,text'
19159    archive_cmds_need_lc_CXX=no
19160    hardcode_shlibpath_var_CXX=no
19161    runpath_var='LD_RUN_PATH'
19162
19163    case $cc_basename in
19164      CC*)
19165	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19166	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19167	;;
19168      *)
19169	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19170	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19171	;;
19172    esac
19173    ;;
19174  sysv5* | sco3.2v5* | sco5v6*)
19175    # Note: We can NOT use -z defs as we might desire, because we do not
19176    # link with -lc, and that would cause any symbols used from libc to
19177    # always be unresolved, which means just about no library would
19178    # ever link correctly.  If we're not using GNU ld we use -z text
19179    # though, which does catch some bad symbols but isn't as heavy-handed
19180    # as -z defs.
19181    # For security reasons, it is highly recommended that you always
19182    # use absolute paths for naming shared libraries, and exclude the
19183    # DT_RUNPATH tag from executables and libraries.  But doing so
19184    # requires that you compile everything twice, which is a pain.
19185    # So that behaviour is only enabled if SCOABSPATH is set to a
19186    # non-empty value in the environment.  Most likely only useful for
19187    # creating official distributions of packages.
19188    # This is a hack until libtool officially supports absolute path
19189    # names for shared libraries.
19190    no_undefined_flag_CXX='${wl}-z,text'
19191    allow_undefined_flag_CXX='${wl}-z,nodefs'
19192    archive_cmds_need_lc_CXX=no
19193    hardcode_shlibpath_var_CXX=no
19194    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19195    hardcode_libdir_separator_CXX=':'
19196    link_all_deplibs_CXX=yes
19197    export_dynamic_flag_spec_CXX='${wl}-Bexport'
19198    runpath_var='LD_RUN_PATH'
19199
19200    case $cc_basename in
19201      CC*)
19202	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19203	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19204	;;
19205      *)
19206	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19207	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19208	;;
19209    esac
19210    ;;
19211  tandem*)
19212    case $cc_basename in
19213      NCC*)
19214	# NonStop-UX NCC 3.20
19215	# FIXME: insert proper C++ library support
19216	ld_shlibs_CXX=no
19217	;;
19218      *)
19219	# FIXME: insert proper C++ library support
19220	ld_shlibs_CXX=no
19221	;;
19222    esac
19223    ;;
19224  vxworks*)
19225    # FIXME: insert proper C++ library support
19226    ld_shlibs_CXX=no
19227    ;;
19228  *)
19229    # FIXME: insert proper C++ library support
19230    ld_shlibs_CXX=no
19231    ;;
19232esac
19233{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19234echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19235test "$ld_shlibs_CXX" = no && can_build_shared=no
19236
19237GCC_CXX="$GXX"
19238LD_CXX="$LD"
19239
19240## CAVEAT EMPTOR:
19241## There is no encapsulation within the following macros, do not change
19242## the running order or otherwise move them around unless you know exactly
19243## what you are doing...
19244cat > conftest.$ac_ext <<EOF
19245class Foo
19246{
19247public:
19248  Foo (void) { a = 0; }
19249private:
19250  int a;
19251};
19252EOF
19253
19254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19255  (eval $ac_compile) 2>&5
19256  ac_status=$?
19257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258  (exit $ac_status); }; then
19259  # Parse the compiler output and extract the necessary
19260  # objects, libraries and library flags.
19261
19262  # Sentinel used to keep track of whether or not we are before
19263  # the conftest object file.
19264  pre_test_object_deps_done=no
19265
19266  # The `*' in the case matches for architectures that use `case' in
19267  # $output_verbose_cmd can trigger glob expansion during the loop
19268  # eval without this substitution.
19269  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19270
19271  for p in `eval $output_verbose_link_cmd`; do
19272    case $p in
19273
19274    -L* | -R* | -l*)
19275       # Some compilers place space between "-{L,R}" and the path.
19276       # Remove the space.
19277       if test $p = "-L" \
19278	  || test $p = "-R"; then
19279	 prev=$p
19280	 continue
19281       else
19282	 prev=
19283       fi
19284
19285       if test "$pre_test_object_deps_done" = no; then
19286	 case $p in
19287	 -L* | -R*)
19288	   # Internal compiler library paths should come after those
19289	   # provided the user.  The postdeps already come after the
19290	   # user supplied libs so there is no need to process them.
19291	   if test -z "$compiler_lib_search_path_CXX"; then
19292	     compiler_lib_search_path_CXX="${prev}${p}"
19293	   else
19294	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19295	   fi
19296	   ;;
19297	 # The "-l" case would never come before the object being
19298	 # linked, so don't bother handling this case.
19299	 esac
19300       else
19301	 if test -z "$postdeps_CXX"; then
19302	   postdeps_CXX="${prev}${p}"
19303	 else
19304	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19305	 fi
19306       fi
19307       ;;
19308
19309    *.$objext)
19310       # This assumes that the test object file only shows up
19311       # once in the compiler output.
19312       if test "$p" = "conftest.$objext"; then
19313	 pre_test_object_deps_done=yes
19314	 continue
19315       fi
19316
19317       if test "$pre_test_object_deps_done" = no; then
19318	 if test -z "$predep_objects_CXX"; then
19319	   predep_objects_CXX="$p"
19320	 else
19321	   predep_objects_CXX="$predep_objects_CXX $p"
19322	 fi
19323       else
19324	 if test -z "$postdep_objects_CXX"; then
19325	   postdep_objects_CXX="$p"
19326	 else
19327	   postdep_objects_CXX="$postdep_objects_CXX $p"
19328	 fi
19329       fi
19330       ;;
19331
19332    *) ;; # Ignore the rest.
19333
19334    esac
19335  done
19336
19337  # Clean up.
19338  rm -f a.out a.exe
19339else
19340  echo "libtool.m4: error: problem compiling CXX test program"
19341fi
19342
19343$rm -f confest.$objext
19344
19345compiler_lib_search_dirs_CXX=
19346if test -n "$compiler_lib_search_path_CXX"; then
19347  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19348fi
19349
19350# PORTME: override above test on systems where it is broken
19351case $host_os in
19352interix[3-9]*)
19353  # Interix 3.5 installs completely hosed .la files for C++, so rather than
19354  # hack all around it, let's just trust "g++" to DTRT.
19355  predep_objects_CXX=
19356  postdep_objects_CXX=
19357  postdeps_CXX=
19358  ;;
19359
19360linux*)
19361  case `$CC -V 2>&1 | sed 5q` in
19362  *Sun\ C*)
19363    # Sun C++ 5.9
19364    #
19365    # The more standards-conforming stlport4 library is
19366    # incompatible with the Cstd library. Avoid specifying
19367    # it if it's in CXXFLAGS. Ignore libCrun as
19368    # -library=stlport4 depends on it.
19369    case " $CXX $CXXFLAGS " in
19370    *" -library=stlport4 "*)
19371      solaris_use_stlport4=yes
19372      ;;
19373    esac
19374    if test "$solaris_use_stlport4" != yes; then
19375      postdeps_CXX='-library=Cstd -library=Crun'
19376    fi
19377    ;;
19378  esac
19379  ;;
19380
19381solaris*)
19382  case $cc_basename in
19383  CC*)
19384    # The more standards-conforming stlport4 library is
19385    # incompatible with the Cstd library. Avoid specifying
19386    # it if it's in CXXFLAGS. Ignore libCrun as
19387    # -library=stlport4 depends on it.
19388    case " $CXX $CXXFLAGS " in
19389    *" -library=stlport4 "*)
19390      solaris_use_stlport4=yes
19391      ;;
19392    esac
19393
19394    # Adding this requires a known-good setup of shared libraries for
19395    # Sun compiler versions before 5.6, else PIC objects from an old
19396    # archive will be linked into the output, leading to subtle bugs.
19397    if test "$solaris_use_stlport4" != yes; then
19398      postdeps_CXX='-library=Cstd -library=Crun'
19399    fi
19400    ;;
19401  esac
19402  ;;
19403esac
19404
19405case " $postdeps_CXX " in
19406*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19407esac
19408
19409lt_prog_compiler_wl_CXX=
19410lt_prog_compiler_pic_CXX=
19411lt_prog_compiler_static_CXX=
19412
19413{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19414echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19415
19416  # C++ specific cases for pic, static, wl, etc.
19417  if test "$GXX" = yes; then
19418    lt_prog_compiler_wl_CXX='-Wl,'
19419    lt_prog_compiler_static_CXX='-static'
19420
19421    case $host_os in
19422    aix*)
19423      # All AIX code is PIC.
19424      if test "$host_cpu" = ia64; then
19425	# AIX 5 now supports IA64 processor
19426	lt_prog_compiler_static_CXX='-Bstatic'
19427      fi
19428      ;;
19429    amigaos*)
19430      # FIXME: we need at least 68020 code to build shared libraries, but
19431      # adding the `-m68020' flag to GCC prevents building anything better,
19432      # like `-m68040'.
19433      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19434      ;;
19435    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19436      # PIC is the default for these OSes.
19437      ;;
19438    mingw* | cygwin* | os2* | pw32*)
19439      # This hack is so that the source file can tell whether it is being
19440      # built for inclusion in a dll (and should export symbols for example).
19441      # Although the cygwin gcc ignores -fPIC, still need this for old-style
19442      # (--disable-auto-import) libraries
19443      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19444      ;;
19445    darwin* | rhapsody*)
19446      # PIC is the default on this platform
19447      # Common symbols not allowed in MH_DYLIB files
19448      lt_prog_compiler_pic_CXX='-fno-common'
19449      ;;
19450    *djgpp*)
19451      # DJGPP does not support shared libraries at all
19452      lt_prog_compiler_pic_CXX=
19453      ;;
19454    interix[3-9]*)
19455      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19456      # Instead, we relocate shared libraries at runtime.
19457      ;;
19458    sysv4*MP*)
19459      if test -d /usr/nec; then
19460	lt_prog_compiler_pic_CXX=-Kconform_pic
19461      fi
19462      ;;
19463    hpux*)
19464      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19465      # not for PA HP-UX.
19466      case $host_cpu in
19467      hppa*64*|ia64*)
19468	;;
19469      *)
19470	lt_prog_compiler_pic_CXX='-fPIC'
19471	;;
19472      esac
19473      ;;
19474    *)
19475      lt_prog_compiler_pic_CXX='-fPIC'
19476      ;;
19477    esac
19478  else
19479    case $host_os in
19480      aix[4-9]*)
19481	# All AIX code is PIC.
19482	if test "$host_cpu" = ia64; then
19483	  # AIX 5 now supports IA64 processor
19484	  lt_prog_compiler_static_CXX='-Bstatic'
19485	else
19486	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19487	fi
19488	;;
19489      chorus*)
19490	case $cc_basename in
19491	cxch68*)
19492	  # Green Hills C++ Compiler
19493	  # _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"
19494	  ;;
19495	esac
19496	;;
19497       darwin*)
19498         # PIC is the default on this platform
19499         # Common symbols not allowed in MH_DYLIB files
19500         case $cc_basename in
19501           xlc*)
19502           lt_prog_compiler_pic_CXX='-qnocommon'
19503           lt_prog_compiler_wl_CXX='-Wl,'
19504           ;;
19505         esac
19506       ;;
19507      dgux*)
19508	case $cc_basename in
19509	  ec++*)
19510	    lt_prog_compiler_pic_CXX='-KPIC'
19511	    ;;
19512	  ghcx*)
19513	    # Green Hills C++ Compiler
19514	    lt_prog_compiler_pic_CXX='-pic'
19515	    ;;
19516	  *)
19517	    ;;
19518	esac
19519	;;
19520      freebsd* | dragonfly*)
19521	# FreeBSD uses GNU C++
19522	;;
19523      hpux9* | hpux10* | hpux11*)
19524	case $cc_basename in
19525	  CC*)
19526	    lt_prog_compiler_wl_CXX='-Wl,'
19527	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19528	    if test "$host_cpu" != ia64; then
19529	      lt_prog_compiler_pic_CXX='+Z'
19530	    fi
19531	    ;;
19532	  aCC*)
19533	    lt_prog_compiler_wl_CXX='-Wl,'
19534	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19535	    case $host_cpu in
19536	    hppa*64*|ia64*)
19537	      # +Z the default
19538	      ;;
19539	    *)
19540	      lt_prog_compiler_pic_CXX='+Z'
19541	      ;;
19542	    esac
19543	    ;;
19544	  *)
19545	    ;;
19546	esac
19547	;;
19548      interix*)
19549	# This is c89, which is MS Visual C++ (no shared libs)
19550	# Anyone wants to do a port?
19551	;;
19552      irix5* | irix6* | nonstopux*)
19553	case $cc_basename in
19554	  CC*)
19555	    lt_prog_compiler_wl_CXX='-Wl,'
19556	    lt_prog_compiler_static_CXX='-non_shared'
19557	    # CC pic flag -KPIC is the default.
19558	    ;;
19559	  *)
19560	    ;;
19561	esac
19562	;;
19563      linux* | k*bsd*-gnu)
19564	case $cc_basename in
19565	  KCC*)
19566	    # KAI C++ Compiler
19567	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19568	    lt_prog_compiler_pic_CXX='-fPIC'
19569	    ;;
19570	  icpc* | ecpc*)
19571	    # Intel C++
19572	    lt_prog_compiler_wl_CXX='-Wl,'
19573	    lt_prog_compiler_pic_CXX='-KPIC'
19574	    lt_prog_compiler_static_CXX='-static'
19575	    ;;
19576	  pgCC* | pgcpp*)
19577	    # Portland Group C++ compiler.
19578	    lt_prog_compiler_wl_CXX='-Wl,'
19579	    lt_prog_compiler_pic_CXX='-fpic'
19580	    lt_prog_compiler_static_CXX='-Bstatic'
19581	    ;;
19582	  cxx*)
19583	    # Compaq C++
19584	    # Make sure the PIC flag is empty.  It appears that all Alpha
19585	    # Linux and Compaq Tru64 Unix objects are PIC.
19586	    lt_prog_compiler_pic_CXX=
19587	    lt_prog_compiler_static_CXX='-non_shared'
19588	    ;;
19589	  *)
19590	    case `$CC -V 2>&1 | sed 5q` in
19591	    *Sun\ C*)
19592	      # Sun C++ 5.9
19593	      lt_prog_compiler_pic_CXX='-KPIC'
19594	      lt_prog_compiler_static_CXX='-Bstatic'
19595	      lt_prog_compiler_wl_CXX='-Qoption ld '
19596	      ;;
19597	    esac
19598	    ;;
19599	esac
19600	;;
19601      lynxos*)
19602	;;
19603      m88k*)
19604	;;
19605      mvs*)
19606	case $cc_basename in
19607	  cxx*)
19608	    lt_prog_compiler_pic_CXX='-W c,exportall'
19609	    ;;
19610	  *)
19611	    ;;
19612	esac
19613	;;
19614      netbsd*)
19615	;;
19616      osf3* | osf4* | osf5*)
19617	case $cc_basename in
19618	  KCC*)
19619	    lt_prog_compiler_wl_CXX='--backend -Wl,'
19620	    ;;
19621	  RCC*)
19622	    # Rational C++ 2.4.1
19623	    lt_prog_compiler_pic_CXX='-pic'
19624	    ;;
19625	  cxx*)
19626	    # Digital/Compaq C++
19627	    lt_prog_compiler_wl_CXX='-Wl,'
19628	    # Make sure the PIC flag is empty.  It appears that all Alpha
19629	    # Linux and Compaq Tru64 Unix objects are PIC.
19630	    lt_prog_compiler_pic_CXX=
19631	    lt_prog_compiler_static_CXX='-non_shared'
19632	    ;;
19633	  *)
19634	    ;;
19635	esac
19636	;;
19637      psos*)
19638	;;
19639      solaris*)
19640	case $cc_basename in
19641	  CC*)
19642	    # Sun C++ 4.2, 5.x and Centerline C++
19643	    lt_prog_compiler_pic_CXX='-KPIC'
19644	    lt_prog_compiler_static_CXX='-Bstatic'
19645	    lt_prog_compiler_wl_CXX='-Qoption ld '
19646	    ;;
19647	  gcx*)
19648	    # Green Hills C++ Compiler
19649	    lt_prog_compiler_pic_CXX='-PIC'
19650	    ;;
19651	  *)
19652	    ;;
19653	esac
19654	;;
19655      sunos4*)
19656	case $cc_basename in
19657	  CC*)
19658	    # Sun C++ 4.x
19659	    lt_prog_compiler_pic_CXX='-pic'
19660	    lt_prog_compiler_static_CXX='-Bstatic'
19661	    ;;
19662	  lcc*)
19663	    # Lucid
19664	    lt_prog_compiler_pic_CXX='-pic'
19665	    ;;
19666	  *)
19667	    ;;
19668	esac
19669	;;
19670      tandem*)
19671	case $cc_basename in
19672	  NCC*)
19673	    # NonStop-UX NCC 3.20
19674	    lt_prog_compiler_pic_CXX='-KPIC'
19675	    ;;
19676	  *)
19677	    ;;
19678	esac
19679	;;
19680      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19681	case $cc_basename in
19682	  CC*)
19683	    lt_prog_compiler_wl_CXX='-Wl,'
19684	    lt_prog_compiler_pic_CXX='-KPIC'
19685	    lt_prog_compiler_static_CXX='-Bstatic'
19686	    ;;
19687	esac
19688	;;
19689      vxworks*)
19690	;;
19691      *)
19692	lt_prog_compiler_can_build_shared_CXX=no
19693	;;
19694    esac
19695  fi
19696
19697{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19698echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19699
19700#
19701# Check to make sure the PIC flag actually works.
19702#
19703if test -n "$lt_prog_compiler_pic_CXX"; then
19704
19705{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19706echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19707if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
19708  echo $ECHO_N "(cached) $ECHO_C" >&6
19709else
19710  lt_cv_prog_compiler_pic_works_CXX=no
19711  ac_outfile=conftest.$ac_objext
19712   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19713   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19714   # Insert the option either (1) after the last *FLAGS variable, or
19715   # (2) before a word containing "conftest.", or (3) at the end.
19716   # Note that $ac_compile itself does not contain backslashes and begins
19717   # with a dollar sign (not a hyphen), so the echo should work correctly.
19718   # The option is referenced via a variable to avoid confusing sed.
19719   lt_compile=`echo "$ac_compile" | $SED \
19720   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19721   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19722   -e 's:$: $lt_compiler_flag:'`
19723   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
19724   (eval "$lt_compile" 2>conftest.err)
19725   ac_status=$?
19726   cat conftest.err >&5
19727   echo "$as_me:__oline__: \$? = $ac_status" >&5
19728   if (exit $ac_status) && test -s "$ac_outfile"; then
19729     # The compiler can only warn and ignore the option if not recognized
19730     # So say no if there are warnings other than the usual output.
19731     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19732     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19733     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19734       lt_cv_prog_compiler_pic_works_CXX=yes
19735     fi
19736   fi
19737   $rm conftest*
19738
19739fi
19740{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19741echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19742
19743if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19744    case $lt_prog_compiler_pic_CXX in
19745     "" | " "*) ;;
19746     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19747     esac
19748else
19749    lt_prog_compiler_pic_CXX=
19750     lt_prog_compiler_can_build_shared_CXX=no
19751fi
19752
19753fi
19754case $host_os in
19755  # For platforms which do not support PIC, -DPIC is meaningless:
19756  *djgpp*)
19757    lt_prog_compiler_pic_CXX=
19758    ;;
19759  *)
19760    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19761    ;;
19762esac
19763
19764#
19765# Check to make sure the static flag actually works.
19766#
19767wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19768{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19769echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19770if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
19771  echo $ECHO_N "(cached) $ECHO_C" >&6
19772else
19773  lt_cv_prog_compiler_static_works_CXX=no
19774   save_LDFLAGS="$LDFLAGS"
19775   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19776   echo "$lt_simple_link_test_code" > conftest.$ac_ext
19777   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19778     # The linker can only warn and ignore the option if not recognized
19779     # So say no if there are warnings
19780     if test -s conftest.err; then
19781       # Append any errors to the config.log.
19782       cat conftest.err 1>&5
19783       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19784       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19785       if diff conftest.exp conftest.er2 >/dev/null; then
19786         lt_cv_prog_compiler_static_works_CXX=yes
19787       fi
19788     else
19789       lt_cv_prog_compiler_static_works_CXX=yes
19790     fi
19791   fi
19792   $rm -r conftest*
19793   LDFLAGS="$save_LDFLAGS"
19794
19795fi
19796{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19797echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
19798
19799if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19800    :
19801else
19802    lt_prog_compiler_static_CXX=
19803fi
19804
19805
19806{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19807echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19808if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19809  echo $ECHO_N "(cached) $ECHO_C" >&6
19810else
19811  lt_cv_prog_compiler_c_o_CXX=no
19812   $rm -r conftest 2>/dev/null
19813   mkdir conftest
19814   cd conftest
19815   mkdir out
19816   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19817
19818   lt_compiler_flag="-o out/conftest2.$ac_objext"
19819   # Insert the option either (1) after the last *FLAGS variable, or
19820   # (2) before a word containing "conftest.", or (3) at the end.
19821   # Note that $ac_compile itself does not contain backslashes and begins
19822   # with a dollar sign (not a hyphen), so the echo should work correctly.
19823   lt_compile=`echo "$ac_compile" | $SED \
19824   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19825   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19826   -e 's:$: $lt_compiler_flag:'`
19827   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
19828   (eval "$lt_compile" 2>out/conftest.err)
19829   ac_status=$?
19830   cat out/conftest.err >&5
19831   echo "$as_me:__oline__: \$? = $ac_status" >&5
19832   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19833   then
19834     # The compiler can only warn and ignore the option if not recognized
19835     # So say no if there are warnings
19836     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19837     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19838     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19839       lt_cv_prog_compiler_c_o_CXX=yes
19840     fi
19841   fi
19842   chmod u+w . 2>&5
19843   $rm conftest*
19844   # SGI C++ compiler will create directory out/ii_files/ for
19845   # template instantiation
19846   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19847   $rm out/* && rmdir out
19848   cd ..
19849   rmdir conftest
19850   $rm conftest*
19851
19852fi
19853{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19854echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19855
19856
19857hard_links="nottested"
19858if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19859  # do not overwrite the value of need_locks provided by the user
19860  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19861echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19862  hard_links=yes
19863  $rm conftest*
19864  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19865  touch conftest.a
19866  ln conftest.a conftest.b 2>&5 || hard_links=no
19867  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19868  { echo "$as_me:$LINENO: result: $hard_links" >&5
19869echo "${ECHO_T}$hard_links" >&6; }
19870  if test "$hard_links" = no; then
19871    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19872echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19873    need_locks=warn
19874  fi
19875else
19876  need_locks=no
19877fi
19878
19879{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19880echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19881
19882  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19883  case $host_os in
19884  aix[4-9]*)
19885    # If we're using GNU nm, then we don't want the "-C" option.
19886    # -C means demangle to AIX nm, but means don't demangle with GNU nm
19887    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19888      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'
19889    else
19890      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'
19891    fi
19892    ;;
19893  pw32*)
19894    export_symbols_cmds_CXX="$ltdll_cmds"
19895  ;;
19896  cygwin* | mingw*)
19897    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'
19898  ;;
19899  *)
19900    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19901  ;;
19902  esac
19903  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19904
19905{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19906echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19907test "$ld_shlibs_CXX" = no && can_build_shared=no
19908
19909#
19910# Do we need to explicitly link libc?
19911#
19912case "x$archive_cmds_need_lc_CXX" in
19913x|xyes)
19914  # Assume -lc should be added
19915  archive_cmds_need_lc_CXX=yes
19916
19917  if test "$enable_shared" = yes && test "$GCC" = yes; then
19918    case $archive_cmds_CXX in
19919    *'~'*)
19920      # FIXME: we may have to deal with multi-command sequences.
19921      ;;
19922    '$CC '*)
19923      # Test whether the compiler implicitly links with -lc since on some
19924      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19925      # to ld, don't add -lc before -lgcc.
19926      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19927echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19928      $rm conftest*
19929      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19930
19931      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19932  (eval $ac_compile) 2>&5
19933  ac_status=$?
19934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935  (exit $ac_status); } 2>conftest.err; then
19936        soname=conftest
19937        lib=conftest
19938        libobjs=conftest.$ac_objext
19939        deplibs=
19940        wl=$lt_prog_compiler_wl_CXX
19941	pic_flag=$lt_prog_compiler_pic_CXX
19942        compiler_flags=-v
19943        linker_flags=-v
19944        verstring=
19945        output_objdir=.
19946        libname=conftest
19947        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19948        allow_undefined_flag_CXX=
19949        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19950  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19951  ac_status=$?
19952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953  (exit $ac_status); }
19954        then
19955	  archive_cmds_need_lc_CXX=no
19956        else
19957	  archive_cmds_need_lc_CXX=yes
19958        fi
19959        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19960      else
19961        cat conftest.err 1>&5
19962      fi
19963      $rm conftest*
19964      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19965echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19966      ;;
19967    esac
19968  fi
19969  ;;
19970esac
19971
19972{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19973echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19974library_names_spec=
19975libname_spec='lib$name'
19976soname_spec=
19977shrext_cmds=".so"
19978postinstall_cmds=
19979postuninstall_cmds=
19980finish_cmds=
19981finish_eval=
19982shlibpath_var=
19983shlibpath_overrides_runpath=unknown
19984version_type=none
19985dynamic_linker="$host_os ld.so"
19986sys_lib_dlsearch_path_spec="/lib /usr/lib"
19987
19988need_lib_prefix=unknown
19989hardcode_into_libs=no
19990
19991# when you set need_version to no, make sure it does not cause -set_version
19992# flags to be left without arguments
19993need_version=unknown
19994
19995case $host_os in
19996aix3*)
19997  version_type=linux
19998  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19999  shlibpath_var=LIBPATH
20000
20001  # AIX 3 has no versioning support, so we append a major version to the name.
20002  soname_spec='${libname}${release}${shared_ext}$major'
20003  ;;
20004
20005aix[4-9]*)
20006  version_type=linux
20007  need_lib_prefix=no
20008  need_version=no
20009  hardcode_into_libs=yes
20010  if test "$host_cpu" = ia64; then
20011    # AIX 5 supports IA64
20012    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20013    shlibpath_var=LD_LIBRARY_PATH
20014  else
20015    # With GCC up to 2.95.x, collect2 would create an import file
20016    # for dependence libraries.  The import file would start with
20017    # the line `#! .'.  This would cause the generated library to
20018    # depend on `.', always an invalid library.  This was fixed in
20019    # development snapshots of GCC prior to 3.0.
20020    case $host_os in
20021      aix4 | aix4.[01] | aix4.[01].*)
20022      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20023	   echo ' yes '
20024	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20025	:
20026      else
20027	can_build_shared=no
20028      fi
20029      ;;
20030    esac
20031    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20032    # soname into executable. Probably we can add versioning support to
20033    # collect2, so additional links can be useful in future.
20034    if test "$aix_use_runtimelinking" = yes; then
20035      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20036      # instead of lib<name>.a to let people know that these are not
20037      # typical AIX shared libraries.
20038      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20039    else
20040      # We preserve .a as extension for shared libraries through AIX4.2
20041      # and later when we are not doing run time linking.
20042      library_names_spec='${libname}${release}.a $libname.a'
20043      soname_spec='${libname}${release}${shared_ext}$major'
20044    fi
20045    shlibpath_var=LIBPATH
20046  fi
20047  ;;
20048
20049amigaos*)
20050  library_names_spec='$libname.ixlibrary $libname.a'
20051  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20052  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'
20053  ;;
20054
20055beos*)
20056  library_names_spec='${libname}${shared_ext}'
20057  dynamic_linker="$host_os ld.so"
20058  shlibpath_var=LIBRARY_PATH
20059  ;;
20060
20061bsdi[45]*)
20062  version_type=linux
20063  need_version=no
20064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20065  soname_spec='${libname}${release}${shared_ext}$major'
20066  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20067  shlibpath_var=LD_LIBRARY_PATH
20068  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20069  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20070  # the default ld.so.conf also contains /usr/contrib/lib and
20071  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20072  # libtool to hard-code these into programs
20073  ;;
20074
20075cygwin* | mingw* | pw32*)
20076  version_type=windows
20077  shrext_cmds=".dll"
20078  need_version=no
20079  need_lib_prefix=no
20080
20081  case $GCC,$host_os in
20082  yes,cygwin* | yes,mingw* | yes,pw32*)
20083    library_names_spec='$libname.dll.a'
20084    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20085    postinstall_cmds='base_file=`basename \${file}`~
20086      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20087      dldir=$destdir/`dirname \$dlpath`~
20088      test -d \$dldir || mkdir -p \$dldir~
20089      $install_prog $dir/$dlname \$dldir/$dlname~
20090      chmod a+x \$dldir/$dlname'
20091    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20092      dlpath=$dir/\$dldll~
20093       $rm \$dlpath'
20094    shlibpath_overrides_runpath=yes
20095
20096    case $host_os in
20097    cygwin*)
20098      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20099      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20100      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20101      ;;
20102    mingw*)
20103      # MinGW DLLs use traditional 'lib' prefix
20104      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20105      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20106      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20107        # It is most probably a Windows format PATH printed by
20108        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20109        # path with ; separators, and with drive letters. We can handle the
20110        # drive letters (cygwin fileutils understands them), so leave them,
20111        # especially as we might pass files found there to a mingw objdump,
20112        # which wouldn't understand a cygwinified path. Ahh.
20113        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20114      else
20115        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20116      fi
20117      ;;
20118    pw32*)
20119      # pw32 DLLs use 'pw' prefix rather than 'lib'
20120      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20121      ;;
20122    esac
20123    ;;
20124
20125  *)
20126    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20127    ;;
20128  esac
20129  dynamic_linker='Win32 ld.exe'
20130  # FIXME: first we should search . and the directory the executable is in
20131  shlibpath_var=PATH
20132  ;;
20133
20134darwin* | rhapsody*)
20135  dynamic_linker="$host_os dyld"
20136  version_type=darwin
20137  need_lib_prefix=no
20138  need_version=no
20139  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20140  soname_spec='${libname}${release}${major}$shared_ext'
20141  shlibpath_overrides_runpath=yes
20142  shlibpath_var=DYLD_LIBRARY_PATH
20143  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20144
20145  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20146  ;;
20147
20148dgux*)
20149  version_type=linux
20150  need_lib_prefix=no
20151  need_version=no
20152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20153  soname_spec='${libname}${release}${shared_ext}$major'
20154  shlibpath_var=LD_LIBRARY_PATH
20155  ;;
20156
20157freebsd1*)
20158  dynamic_linker=no
20159  ;;
20160
20161freebsd* | dragonfly*)
20162  # DragonFly does not have aout.  When/if they implement a new
20163  # versioning mechanism, adjust this.
20164  if test -x /usr/bin/objformat; then
20165    objformat=`/usr/bin/objformat`
20166  else
20167    case $host_os in
20168    freebsd[123]*) objformat=aout ;;
20169    *) objformat=elf ;;
20170    esac
20171  fi
20172  version_type=freebsd-$objformat
20173  case $version_type in
20174    freebsd-elf*)
20175      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20176      need_version=no
20177      need_lib_prefix=no
20178      ;;
20179    freebsd-*)
20180      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20181      need_version=yes
20182      ;;
20183  esac
20184  shlibpath_var=LD_LIBRARY_PATH
20185  case $host_os in
20186  freebsd2*)
20187    shlibpath_overrides_runpath=yes
20188    ;;
20189  freebsd3.[01]* | freebsdelf3.[01]*)
20190    shlibpath_overrides_runpath=yes
20191    hardcode_into_libs=yes
20192    ;;
20193  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20194  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20195    shlibpath_overrides_runpath=no
20196    hardcode_into_libs=yes
20197    ;;
20198  *) # from 4.6 on, and DragonFly
20199    shlibpath_overrides_runpath=yes
20200    hardcode_into_libs=yes
20201    ;;
20202  esac
20203  ;;
20204
20205gnu*)
20206  version_type=linux
20207  need_lib_prefix=no
20208  need_version=no
20209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20210  soname_spec='${libname}${release}${shared_ext}$major'
20211  shlibpath_var=LD_LIBRARY_PATH
20212  hardcode_into_libs=yes
20213  ;;
20214
20215hpux9* | hpux10* | hpux11*)
20216  # Give a soname corresponding to the major version so that dld.sl refuses to
20217  # link against other versions.
20218  version_type=sunos
20219  need_lib_prefix=no
20220  need_version=no
20221  case $host_cpu in
20222  ia64*)
20223    shrext_cmds='.so'
20224    hardcode_into_libs=yes
20225    dynamic_linker="$host_os dld.so"
20226    shlibpath_var=LD_LIBRARY_PATH
20227    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20228    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20229    soname_spec='${libname}${release}${shared_ext}$major'
20230    if test "X$HPUX_IA64_MODE" = X32; then
20231      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20232    else
20233      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20234    fi
20235    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20236    ;;
20237   hppa*64*)
20238     shrext_cmds='.sl'
20239     hardcode_into_libs=yes
20240     dynamic_linker="$host_os dld.sl"
20241     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20242     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20244     soname_spec='${libname}${release}${shared_ext}$major'
20245     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20246     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20247     ;;
20248   *)
20249    shrext_cmds='.sl'
20250    dynamic_linker="$host_os dld.sl"
20251    shlibpath_var=SHLIB_PATH
20252    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20253    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20254    soname_spec='${libname}${release}${shared_ext}$major'
20255    ;;
20256  esac
20257  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20258  postinstall_cmds='chmod 555 $lib'
20259  ;;
20260
20261interix[3-9]*)
20262  version_type=linux
20263  need_lib_prefix=no
20264  need_version=no
20265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20266  soname_spec='${libname}${release}${shared_ext}$major'
20267  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20268  shlibpath_var=LD_LIBRARY_PATH
20269  shlibpath_overrides_runpath=no
20270  hardcode_into_libs=yes
20271  ;;
20272
20273irix5* | irix6* | nonstopux*)
20274  case $host_os in
20275    nonstopux*) version_type=nonstopux ;;
20276    *)
20277	if test "$lt_cv_prog_gnu_ld" = yes; then
20278		version_type=linux
20279	else
20280		version_type=irix
20281	fi ;;
20282  esac
20283  need_lib_prefix=no
20284  need_version=no
20285  soname_spec='${libname}${release}${shared_ext}$major'
20286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20287  case $host_os in
20288  irix5* | nonstopux*)
20289    libsuff= shlibsuff=
20290    ;;
20291  *)
20292    case $LD in # libtool.m4 will add one of these switches to LD
20293    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20294      libsuff= shlibsuff= libmagic=32-bit;;
20295    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20296      libsuff=32 shlibsuff=N32 libmagic=N32;;
20297    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20298      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20299    *) libsuff= shlibsuff= libmagic=never-match;;
20300    esac
20301    ;;
20302  esac
20303  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20304  shlibpath_overrides_runpath=no
20305  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20306  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20307  hardcode_into_libs=yes
20308  ;;
20309
20310# No shared lib support for Linux oldld, aout, or coff.
20311linux*oldld* | linux*aout* | linux*coff*)
20312  dynamic_linker=no
20313  ;;
20314
20315# This must be Linux ELF.
20316linux* | k*bsd*-gnu)
20317  version_type=linux
20318  need_lib_prefix=no
20319  need_version=no
20320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20321  soname_spec='${libname}${release}${shared_ext}$major'
20322  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20323  shlibpath_var=LD_LIBRARY_PATH
20324  shlibpath_overrides_runpath=no
20325  # This implies no fast_install, which is unacceptable.
20326  # Some rework will be needed to allow for fast_install
20327  # before this can be enabled.
20328  hardcode_into_libs=yes
20329
20330  # Append ld.so.conf contents to the search path
20331  if test -f /etc/ld.so.conf; then
20332    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20333    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20334  fi
20335
20336  # We used to test for /lib/ld.so.1 and disable shared libraries on
20337  # powerpc, because MkLinux only supported shared libraries with the
20338  # GNU dynamic linker.  Since this was broken with cross compilers,
20339  # most powerpc-linux boxes support dynamic linking these days and
20340  # people can always --disable-shared, the test was removed, and we
20341  # assume the GNU/Linux dynamic linker is in use.
20342  dynamic_linker='GNU/Linux ld.so'
20343  ;;
20344
20345netbsd*)
20346  version_type=sunos
20347  need_lib_prefix=no
20348  need_version=no
20349  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20350    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20351    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20352    dynamic_linker='NetBSD (a.out) ld.so'
20353  else
20354    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20355    soname_spec='${libname}${release}${shared_ext}$major'
20356    dynamic_linker='NetBSD ld.elf_so'
20357  fi
20358  shlibpath_var=LD_LIBRARY_PATH
20359  shlibpath_overrides_runpath=yes
20360  hardcode_into_libs=yes
20361  ;;
20362
20363newsos6)
20364  version_type=linux
20365  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20366  shlibpath_var=LD_LIBRARY_PATH
20367  shlibpath_overrides_runpath=yes
20368  ;;
20369
20370nto-qnx*)
20371  version_type=linux
20372  need_lib_prefix=no
20373  need_version=no
20374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20375  soname_spec='${libname}${release}${shared_ext}$major'
20376  shlibpath_var=LD_LIBRARY_PATH
20377  shlibpath_overrides_runpath=yes
20378  ;;
20379
20380openbsd*)
20381  version_type=sunos
20382  sys_lib_dlsearch_path_spec="/usr/lib"
20383  need_lib_prefix=no
20384  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20385  case $host_os in
20386    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20387    *)                         need_version=no  ;;
20388  esac
20389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20390  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20391  shlibpath_var=LD_LIBRARY_PATH
20392  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20393    case $host_os in
20394      openbsd2.[89] | openbsd2.[89].*)
20395	shlibpath_overrides_runpath=no
20396	;;
20397      *)
20398	shlibpath_overrides_runpath=yes
20399	;;
20400      esac
20401  else
20402    shlibpath_overrides_runpath=yes
20403  fi
20404  ;;
20405
20406os2*)
20407  libname_spec='$name'
20408  shrext_cmds=".dll"
20409  need_lib_prefix=no
20410  library_names_spec='$libname${shared_ext} $libname.a'
20411  dynamic_linker='OS/2 ld.exe'
20412  shlibpath_var=LIBPATH
20413  ;;
20414
20415osf3* | osf4* | osf5*)
20416  version_type=osf
20417  need_lib_prefix=no
20418  need_version=no
20419  soname_spec='${libname}${release}${shared_ext}$major'
20420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20421  shlibpath_var=LD_LIBRARY_PATH
20422  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20423  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20424  ;;
20425
20426rdos*)
20427  dynamic_linker=no
20428  ;;
20429
20430solaris*)
20431  version_type=linux
20432  need_lib_prefix=no
20433  need_version=no
20434  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20435  soname_spec='${libname}${release}${shared_ext}$major'
20436  shlibpath_var=LD_LIBRARY_PATH
20437  shlibpath_overrides_runpath=yes
20438  hardcode_into_libs=yes
20439  # ldd complains unless libraries are executable
20440  postinstall_cmds='chmod +x $lib'
20441  ;;
20442
20443sunos4*)
20444  version_type=sunos
20445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20446  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20447  shlibpath_var=LD_LIBRARY_PATH
20448  shlibpath_overrides_runpath=yes
20449  if test "$with_gnu_ld" = yes; then
20450    need_lib_prefix=no
20451  fi
20452  need_version=yes
20453  ;;
20454
20455sysv4 | sysv4.3*)
20456  version_type=linux
20457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20458  soname_spec='${libname}${release}${shared_ext}$major'
20459  shlibpath_var=LD_LIBRARY_PATH
20460  case $host_vendor in
20461    sni)
20462      shlibpath_overrides_runpath=no
20463      need_lib_prefix=no
20464      export_dynamic_flag_spec='${wl}-Blargedynsym'
20465      runpath_var=LD_RUN_PATH
20466      ;;
20467    siemens)
20468      need_lib_prefix=no
20469      ;;
20470    motorola)
20471      need_lib_prefix=no
20472      need_version=no
20473      shlibpath_overrides_runpath=no
20474      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20475      ;;
20476  esac
20477  ;;
20478
20479sysv4*MP*)
20480  if test -d /usr/nec ;then
20481    version_type=linux
20482    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20483    soname_spec='$libname${shared_ext}.$major'
20484    shlibpath_var=LD_LIBRARY_PATH
20485  fi
20486  ;;
20487
20488sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20489  version_type=freebsd-elf
20490  need_lib_prefix=no
20491  need_version=no
20492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20493  soname_spec='${libname}${release}${shared_ext}$major'
20494  shlibpath_var=LD_LIBRARY_PATH
20495  hardcode_into_libs=yes
20496  if test "$with_gnu_ld" = yes; then
20497    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20498    shlibpath_overrides_runpath=no
20499  else
20500    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20501    shlibpath_overrides_runpath=yes
20502    case $host_os in
20503      sco3.2v5*)
20504        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20505	;;
20506    esac
20507  fi
20508  sys_lib_dlsearch_path_spec='/usr/lib'
20509  ;;
20510
20511uts4*)
20512  version_type=linux
20513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20514  soname_spec='${libname}${release}${shared_ext}$major'
20515  shlibpath_var=LD_LIBRARY_PATH
20516  ;;
20517
20518*)
20519  dynamic_linker=no
20520  ;;
20521esac
20522{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20523echo "${ECHO_T}$dynamic_linker" >&6; }
20524test "$dynamic_linker" = no && can_build_shared=no
20525
20526if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20527  echo $ECHO_N "(cached) $ECHO_C" >&6
20528else
20529  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20530fi
20531
20532sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20533if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20534  echo $ECHO_N "(cached) $ECHO_C" >&6
20535else
20536  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20537fi
20538
20539sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20540
20541variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20542if test "$GCC" = yes; then
20543  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20544fi
20545
20546{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20547echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20548hardcode_action_CXX=
20549if test -n "$hardcode_libdir_flag_spec_CXX" || \
20550   test -n "$runpath_var_CXX" || \
20551   test "X$hardcode_automatic_CXX" = "Xyes" ; then
20552
20553  # We can hardcode non-existant directories.
20554  if test "$hardcode_direct_CXX" != no &&
20555     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20556     # have to relink, otherwise we might link with an installed library
20557     # when we should be linking with a yet-to-be-installed one
20558     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20559     test "$hardcode_minus_L_CXX" != no; then
20560    # Linking always hardcodes the temporary library directory.
20561    hardcode_action_CXX=relink
20562  else
20563    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20564    hardcode_action_CXX=immediate
20565  fi
20566else
20567  # We cannot hardcode anything, or else we can only hardcode existing
20568  # directories.
20569  hardcode_action_CXX=unsupported
20570fi
20571{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20572echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20573
20574if test "$hardcode_action_CXX" = relink; then
20575  # Fast installation is not supported
20576  enable_fast_install=no
20577elif test "$shlibpath_overrides_runpath" = yes ||
20578     test "$enable_shared" = no; then
20579  # Fast installation is not necessary
20580  enable_fast_install=needless
20581fi
20582
20583
20584# The else clause should only fire when bootstrapping the
20585# libtool distribution, otherwise you forgot to ship ltmain.sh
20586# with your package, and you will get complaints that there are
20587# no rules to generate ltmain.sh.
20588if test -f "$ltmain"; then
20589  # See if we are running on zsh, and set the options which allow our commands through
20590  # without removal of \ escapes.
20591  if test -n "${ZSH_VERSION+set}" ; then
20592    setopt NO_GLOB_SUBST
20593  fi
20594  # Now quote all the things that may contain metacharacters while being
20595  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20596  # variables and quote the copies for generation of the libtool script.
20597  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20598    SED SHELL STRIP \
20599    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20600    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20601    deplibs_check_method reload_flag reload_cmds need_locks \
20602    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20603    lt_cv_sys_global_symbol_to_c_name_address \
20604    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20605    old_postinstall_cmds old_postuninstall_cmds \
20606    compiler_CXX \
20607    CC_CXX \
20608    LD_CXX \
20609    lt_prog_compiler_wl_CXX \
20610    lt_prog_compiler_pic_CXX \
20611    lt_prog_compiler_static_CXX \
20612    lt_prog_compiler_no_builtin_flag_CXX \
20613    export_dynamic_flag_spec_CXX \
20614    thread_safe_flag_spec_CXX \
20615    whole_archive_flag_spec_CXX \
20616    enable_shared_with_static_runtimes_CXX \
20617    old_archive_cmds_CXX \
20618    old_archive_from_new_cmds_CXX \
20619    predep_objects_CXX \
20620    postdep_objects_CXX \
20621    predeps_CXX \
20622    postdeps_CXX \
20623    compiler_lib_search_path_CXX \
20624    compiler_lib_search_dirs_CXX \
20625    archive_cmds_CXX \
20626    archive_expsym_cmds_CXX \
20627    postinstall_cmds_CXX \
20628    postuninstall_cmds_CXX \
20629    old_archive_from_expsyms_cmds_CXX \
20630    allow_undefined_flag_CXX \
20631    no_undefined_flag_CXX \
20632    export_symbols_cmds_CXX \
20633    hardcode_libdir_flag_spec_CXX \
20634    hardcode_libdir_flag_spec_ld_CXX \
20635    hardcode_libdir_separator_CXX \
20636    hardcode_automatic_CXX \
20637    module_cmds_CXX \
20638    module_expsym_cmds_CXX \
20639    lt_cv_prog_compiler_c_o_CXX \
20640    fix_srcfile_path_CXX \
20641    exclude_expsyms_CXX \
20642    include_expsyms_CXX; do
20643
20644    case $var in
20645    old_archive_cmds_CXX | \
20646    old_archive_from_new_cmds_CXX | \
20647    archive_cmds_CXX | \
20648    archive_expsym_cmds_CXX | \
20649    module_cmds_CXX | \
20650    module_expsym_cmds_CXX | \
20651    old_archive_from_expsyms_cmds_CXX | \
20652    export_symbols_cmds_CXX | \
20653    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20654    postinstall_cmds | postuninstall_cmds | \
20655    old_postinstall_cmds | old_postuninstall_cmds | \
20656    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20657      # Double-quote double-evaled strings.
20658      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20659      ;;
20660    *)
20661      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20662      ;;
20663    esac
20664  done
20665
20666  case $lt_echo in
20667  *'\$0 --fallback-echo"')
20668    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20669    ;;
20670  esac
20671
20672cfgfile="$ofile"
20673
20674  cat <<__EOF__ >> "$cfgfile"
20675# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20676
20677# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20678
20679# Shell to use when invoking shell scripts.
20680SHELL=$lt_SHELL
20681
20682# Whether or not to build shared libraries.
20683build_libtool_libs=$enable_shared
20684
20685# Whether or not to build static libraries.
20686build_old_libs=$enable_static
20687
20688# Whether or not to add -lc for building shared libraries.
20689build_libtool_need_lc=$archive_cmds_need_lc_CXX
20690
20691# Whether or not to disallow shared libs when runtime libs are static
20692allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20693
20694# Whether or not to optimize for fast installation.
20695fast_install=$enable_fast_install
20696
20697# The host system.
20698host_alias=$host_alias
20699host=$host
20700host_os=$host_os
20701
20702# The build system.
20703build_alias=$build_alias
20704build=$build
20705build_os=$build_os
20706
20707# An echo program that does not interpret backslashes.
20708echo=$lt_echo
20709
20710# The archiver.
20711AR=$lt_AR
20712AR_FLAGS=$lt_AR_FLAGS
20713
20714# A C compiler.
20715LTCC=$lt_LTCC
20716
20717# LTCC compiler flags.
20718LTCFLAGS=$lt_LTCFLAGS
20719
20720# A language-specific compiler.
20721CC=$lt_compiler_CXX
20722
20723# Is the compiler the GNU C compiler?
20724with_gcc=$GCC_CXX
20725
20726# An ERE matcher.
20727EGREP=$lt_EGREP
20728
20729# The linker used to build libraries.
20730LD=$lt_LD_CXX
20731
20732# Whether we need hard or soft links.
20733LN_S=$lt_LN_S
20734
20735# A BSD-compatible nm program.
20736NM=$lt_NM
20737
20738# A symbol stripping program
20739STRIP=$lt_STRIP
20740
20741# Used to examine libraries when file_magic_cmd begins "file"
20742MAGIC_CMD=$MAGIC_CMD
20743
20744# Used on cygwin: DLL creation program.
20745DLLTOOL="$DLLTOOL"
20746
20747# Used on cygwin: object dumper.
20748OBJDUMP="$OBJDUMP"
20749
20750# Used on cygwin: assembler.
20751AS="$AS"
20752
20753# The name of the directory that contains temporary libtool files.
20754objdir=$objdir
20755
20756# How to create reloadable object files.
20757reload_flag=$lt_reload_flag
20758reload_cmds=$lt_reload_cmds
20759
20760# How to pass a linker flag through the compiler.
20761wl=$lt_lt_prog_compiler_wl_CXX
20762
20763# Object file suffix (normally "o").
20764objext="$ac_objext"
20765
20766# Old archive suffix (normally "a").
20767libext="$libext"
20768
20769# Shared library suffix (normally ".so").
20770shrext_cmds='$shrext_cmds'
20771
20772# Executable file suffix (normally "").
20773exeext="$exeext"
20774
20775# Additional compiler flags for building library objects.
20776pic_flag=$lt_lt_prog_compiler_pic_CXX
20777pic_mode=$pic_mode
20778
20779# What is the maximum length of a command?
20780max_cmd_len=$lt_cv_sys_max_cmd_len
20781
20782# Does compiler simultaneously support -c and -o options?
20783compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20784
20785# Must we lock files when doing compilation?
20786need_locks=$lt_need_locks
20787
20788# Do we need the lib prefix for modules?
20789need_lib_prefix=$need_lib_prefix
20790
20791# Do we need a version for libraries?
20792need_version=$need_version
20793
20794# Whether dlopen is supported.
20795dlopen_support=$enable_dlopen
20796
20797# Whether dlopen of programs is supported.
20798dlopen_self=$enable_dlopen_self
20799
20800# Whether dlopen of statically linked programs is supported.
20801dlopen_self_static=$enable_dlopen_self_static
20802
20803# Compiler flag to prevent dynamic linking.
20804link_static_flag=$lt_lt_prog_compiler_static_CXX
20805
20806# Compiler flag to turn off builtin functions.
20807no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20808
20809# Compiler flag to allow reflexive dlopens.
20810export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20811
20812# Compiler flag to generate shared objects directly from archives.
20813whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20814
20815# Compiler flag to generate thread-safe objects.
20816thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20817
20818# Library versioning type.
20819version_type=$version_type
20820
20821# Format of library name prefix.
20822libname_spec=$lt_libname_spec
20823
20824# List of archive names.  First name is the real one, the rest are links.
20825# The last name is the one that the linker finds with -lNAME.
20826library_names_spec=$lt_library_names_spec
20827
20828# The coded name of the library, if different from the real name.
20829soname_spec=$lt_soname_spec
20830
20831# Commands used to build and install an old-style archive.
20832RANLIB=$lt_RANLIB
20833old_archive_cmds=$lt_old_archive_cmds_CXX
20834old_postinstall_cmds=$lt_old_postinstall_cmds
20835old_postuninstall_cmds=$lt_old_postuninstall_cmds
20836
20837# Create an old-style archive from a shared archive.
20838old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20839
20840# Create a temporary old-style archive to link instead of a shared archive.
20841old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20842
20843# Commands used to build and install a shared archive.
20844archive_cmds=$lt_archive_cmds_CXX
20845archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20846postinstall_cmds=$lt_postinstall_cmds
20847postuninstall_cmds=$lt_postuninstall_cmds
20848
20849# Commands used to build a loadable module (assumed same as above if empty)
20850module_cmds=$lt_module_cmds_CXX
20851module_expsym_cmds=$lt_module_expsym_cmds_CXX
20852
20853# Commands to strip libraries.
20854old_striplib=$lt_old_striplib
20855striplib=$lt_striplib
20856
20857# Dependencies to place before the objects being linked to create a
20858# shared library.
20859predep_objects=$lt_predep_objects_CXX
20860
20861# Dependencies to place after the objects being linked to create a
20862# shared library.
20863postdep_objects=$lt_postdep_objects_CXX
20864
20865# Dependencies to place before the objects being linked to create a
20866# shared library.
20867predeps=$lt_predeps_CXX
20868
20869# Dependencies to place after the objects being linked to create a
20870# shared library.
20871postdeps=$lt_postdeps_CXX
20872
20873# The directories searched by this compiler when creating a shared
20874# library
20875compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20876
20877# The library search path used internally by the compiler when linking
20878# a shared library.
20879compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20880
20881# Method to check whether dependent libraries are shared objects.
20882deplibs_check_method=$lt_deplibs_check_method
20883
20884# Command to use when deplibs_check_method == file_magic.
20885file_magic_cmd=$lt_file_magic_cmd
20886
20887# Flag that allows shared libraries with undefined symbols to be built.
20888allow_undefined_flag=$lt_allow_undefined_flag_CXX
20889
20890# Flag that forces no undefined symbols.
20891no_undefined_flag=$lt_no_undefined_flag_CXX
20892
20893# Commands used to finish a libtool library installation in a directory.
20894finish_cmds=$lt_finish_cmds
20895
20896# Same as above, but a single script fragment to be evaled but not shown.
20897finish_eval=$lt_finish_eval
20898
20899# Take the output of nm and produce a listing of raw symbols and C names.
20900global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20901
20902# Transform the output of nm in a proper C declaration
20903global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20904
20905# Transform the output of nm in a C name address pair
20906global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20907
20908# This is the shared library runtime path variable.
20909runpath_var=$runpath_var
20910
20911# This is the shared library path variable.
20912shlibpath_var=$shlibpath_var
20913
20914# Is shlibpath searched before the hard-coded library search path?
20915shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20916
20917# How to hardcode a shared library path into an executable.
20918hardcode_action=$hardcode_action_CXX
20919
20920# Whether we should hardcode library paths into libraries.
20921hardcode_into_libs=$hardcode_into_libs
20922
20923# Flag to hardcode \$libdir into a binary during linking.
20924# This must work even if \$libdir does not exist.
20925hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20926
20927# If ld is used when linking, flag to hardcode \$libdir into
20928# a binary during linking. This must work even if \$libdir does
20929# not exist.
20930hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20931
20932# Whether we need a single -rpath flag with a separated argument.
20933hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20934
20935# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20936# resulting binary.
20937hardcode_direct=$hardcode_direct_CXX
20938
20939# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20940# resulting binary.
20941hardcode_minus_L=$hardcode_minus_L_CXX
20942
20943# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20944# the resulting binary.
20945hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20946
20947# Set to yes if building a shared library automatically hardcodes DIR into the library
20948# and all subsequent libraries and executables linked against it.
20949hardcode_automatic=$hardcode_automatic_CXX
20950
20951# Variables whose values should be saved in libtool wrapper scripts and
20952# restored at relink time.
20953variables_saved_for_relink="$variables_saved_for_relink"
20954
20955# Whether libtool must link a program against all its dependency libraries.
20956link_all_deplibs=$link_all_deplibs_CXX
20957
20958# Compile-time system search path for libraries
20959sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20960
20961# Run-time system search path for libraries
20962sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20963
20964# Fix the shell variable \$srcfile for the compiler.
20965fix_srcfile_path=$lt_fix_srcfile_path
20966
20967# Set to yes if exported symbols are required.
20968always_export_symbols=$always_export_symbols_CXX
20969
20970# The commands to list exported symbols.
20971export_symbols_cmds=$lt_export_symbols_cmds_CXX
20972
20973# The commands to extract the exported symbol list from a shared archive.
20974extract_expsyms_cmds=$lt_extract_expsyms_cmds
20975
20976# Symbols that should not be listed in the preloaded symbols.
20977exclude_expsyms=$lt_exclude_expsyms_CXX
20978
20979# Symbols that must always be exported.
20980include_expsyms=$lt_include_expsyms_CXX
20981
20982# ### END LIBTOOL TAG CONFIG: $tagname
20983
20984__EOF__
20985
20986
20987else
20988  # If there is no Makefile yet, we rely on a make rule to execute
20989  # `config.status --recheck' to rerun these tests and create the
20990  # libtool script then.
20991  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20992  if test -f "$ltmain_in"; then
20993    test -f Makefile && make "$ltmain"
20994  fi
20995fi
20996
20997
20998ac_ext=cpp
20999ac_cpp='$CXXCPP $CPPFLAGS'
21000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21003
21004CC=$lt_save_CC
21005LDCXX=$LD
21006LD=$lt_save_LD
21007GCC=$lt_save_GCC
21008with_gnu_ldcxx=$with_gnu_ld
21009with_gnu_ld=$lt_save_with_gnu_ld
21010lt_cv_path_LDCXX=$lt_cv_path_LD
21011lt_cv_path_LD=$lt_save_path_LD
21012lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21013lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21014
21015	else
21016	  tagname=""
21017	fi
21018	;;
21019
21020      F77)
21021	if test -n "$F77" && test "X$F77" != "Xno"; then
21022
21023ac_ext=f
21024ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21025ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21026ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21027
21028
21029archive_cmds_need_lc_F77=no
21030allow_undefined_flag_F77=
21031always_export_symbols_F77=no
21032archive_expsym_cmds_F77=
21033export_dynamic_flag_spec_F77=
21034hardcode_direct_F77=no
21035hardcode_libdir_flag_spec_F77=
21036hardcode_libdir_flag_spec_ld_F77=
21037hardcode_libdir_separator_F77=
21038hardcode_minus_L_F77=no
21039hardcode_automatic_F77=no
21040module_cmds_F77=
21041module_expsym_cmds_F77=
21042link_all_deplibs_F77=unknown
21043old_archive_cmds_F77=$old_archive_cmds
21044no_undefined_flag_F77=
21045whole_archive_flag_spec_F77=
21046enable_shared_with_static_runtimes_F77=no
21047
21048# Source file extension for f77 test sources.
21049ac_ext=f
21050
21051# Object file extension for compiled f77 test sources.
21052objext=o
21053objext_F77=$objext
21054
21055# Code to be used in simple compile tests
21056lt_simple_compile_test_code="\
21057      subroutine t
21058      return
21059      end
21060"
21061
21062# Code to be used in simple link tests
21063lt_simple_link_test_code="\
21064      program t
21065      end
21066"
21067
21068# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21069
21070# If no C compiler was specified, use CC.
21071LTCC=${LTCC-"$CC"}
21072
21073# If no C compiler flags were specified, use CFLAGS.
21074LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21075
21076# Allow CC to be a program name with arguments.
21077compiler=$CC
21078
21079
21080# save warnings/boilerplate of simple test code
21081ac_outfile=conftest.$ac_objext
21082echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21083eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21084_lt_compiler_boilerplate=`cat conftest.err`
21085$rm conftest*
21086
21087ac_outfile=conftest.$ac_objext
21088echo "$lt_simple_link_test_code" >conftest.$ac_ext
21089eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21090_lt_linker_boilerplate=`cat conftest.err`
21091$rm -r conftest*
21092
21093
21094# Allow CC to be a program name with arguments.
21095lt_save_CC="$CC"
21096CC=${F77-"f77"}
21097compiler=$CC
21098compiler_F77=$CC
21099for cc_temp in $compiler""; do
21100  case $cc_temp in
21101    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21102    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21103    \-*) ;;
21104    *) break;;
21105  esac
21106done
21107cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21108
21109
21110{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21111echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21112{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21113echo "${ECHO_T}$can_build_shared" >&6; }
21114
21115{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21116echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
21117test "$can_build_shared" = "no" && enable_shared=no
21118
21119# On AIX, shared libraries and static libraries use the same namespace, and
21120# are all built from PIC.
21121case $host_os in
21122aix3*)
21123  test "$enable_shared" = yes && enable_static=no
21124  if test -n "$RANLIB"; then
21125    archive_cmds="$archive_cmds~\$RANLIB \$lib"
21126    postinstall_cmds='$RANLIB $lib'
21127  fi
21128  ;;
21129aix[4-9]*)
21130  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21131    test "$enable_shared" = yes && enable_static=no
21132  fi
21133  ;;
21134esac
21135{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21136echo "${ECHO_T}$enable_shared" >&6; }
21137
21138{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21139echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
21140# Make sure either enable_shared or enable_static is yes.
21141test "$enable_shared" = yes || enable_static=yes
21142{ echo "$as_me:$LINENO: result: $enable_static" >&5
21143echo "${ECHO_T}$enable_static" >&6; }
21144
21145GCC_F77="$G77"
21146LD_F77="$LD"
21147
21148lt_prog_compiler_wl_F77=
21149lt_prog_compiler_pic_F77=
21150lt_prog_compiler_static_F77=
21151
21152{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21153echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
21154
21155  if test "$GCC" = yes; then
21156    lt_prog_compiler_wl_F77='-Wl,'
21157    lt_prog_compiler_static_F77='-static'
21158
21159    case $host_os in
21160      aix*)
21161      # All AIX code is PIC.
21162      if test "$host_cpu" = ia64; then
21163	# AIX 5 now supports IA64 processor
21164	lt_prog_compiler_static_F77='-Bstatic'
21165      fi
21166      ;;
21167
21168    amigaos*)
21169      # FIXME: we need at least 68020 code to build shared libraries, but
21170      # adding the `-m68020' flag to GCC prevents building anything better,
21171      # like `-m68040'.
21172      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21173      ;;
21174
21175    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21176      # PIC is the default for these OSes.
21177      ;;
21178
21179    mingw* | cygwin* | pw32* | os2*)
21180      # This hack is so that the source file can tell whether it is being
21181      # built for inclusion in a dll (and should export symbols for example).
21182      # Although the cygwin gcc ignores -fPIC, still need this for old-style
21183      # (--disable-auto-import) libraries
21184      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21185      ;;
21186
21187    darwin* | rhapsody*)
21188      # PIC is the default on this platform
21189      # Common symbols not allowed in MH_DYLIB files
21190      lt_prog_compiler_pic_F77='-fno-common'
21191      ;;
21192
21193    interix[3-9]*)
21194      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21195      # Instead, we relocate shared libraries at runtime.
21196      ;;
21197
21198    msdosdjgpp*)
21199      # Just because we use GCC doesn't mean we suddenly get shared libraries
21200      # on systems that don't support them.
21201      lt_prog_compiler_can_build_shared_F77=no
21202      enable_shared=no
21203      ;;
21204
21205    sysv4*MP*)
21206      if test -d /usr/nec; then
21207	lt_prog_compiler_pic_F77=-Kconform_pic
21208      fi
21209      ;;
21210
21211    hpux*)
21212      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21213      # not for PA HP-UX.
21214      case $host_cpu in
21215      hppa*64*|ia64*)
21216	# +Z the default
21217	;;
21218      *)
21219	lt_prog_compiler_pic_F77='-fPIC'
21220	;;
21221      esac
21222      ;;
21223
21224    *)
21225      lt_prog_compiler_pic_F77='-fPIC'
21226      ;;
21227    esac
21228  else
21229    # PORTME Check for flag to pass linker flags through the system compiler.
21230    case $host_os in
21231    aix*)
21232      lt_prog_compiler_wl_F77='-Wl,'
21233      if test "$host_cpu" = ia64; then
21234	# AIX 5 now supports IA64 processor
21235	lt_prog_compiler_static_F77='-Bstatic'
21236      else
21237	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21238      fi
21239      ;;
21240      darwin*)
21241        # PIC is the default on this platform
21242        # Common symbols not allowed in MH_DYLIB files
21243       case $cc_basename in
21244         xlc*)
21245         lt_prog_compiler_pic_F77='-qnocommon'
21246         lt_prog_compiler_wl_F77='-Wl,'
21247         ;;
21248       esac
21249       ;;
21250
21251    mingw* | cygwin* | pw32* | os2*)
21252      # This hack is so that the source file can tell whether it is being
21253      # built for inclusion in a dll (and should export symbols for example).
21254      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21255      ;;
21256
21257    hpux9* | hpux10* | hpux11*)
21258      lt_prog_compiler_wl_F77='-Wl,'
21259      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21260      # not for PA HP-UX.
21261      case $host_cpu in
21262      hppa*64*|ia64*)
21263	# +Z the default
21264	;;
21265      *)
21266	lt_prog_compiler_pic_F77='+Z'
21267	;;
21268      esac
21269      # Is there a better lt_prog_compiler_static that works with the bundled CC?
21270      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21271      ;;
21272
21273    irix5* | irix6* | nonstopux*)
21274      lt_prog_compiler_wl_F77='-Wl,'
21275      # PIC (with -KPIC) is the default.
21276      lt_prog_compiler_static_F77='-non_shared'
21277      ;;
21278
21279    newsos6)
21280      lt_prog_compiler_pic_F77='-KPIC'
21281      lt_prog_compiler_static_F77='-Bstatic'
21282      ;;
21283
21284    linux* | k*bsd*-gnu)
21285      case $cc_basename in
21286      icc* | ecc*)
21287	lt_prog_compiler_wl_F77='-Wl,'
21288	lt_prog_compiler_pic_F77='-KPIC'
21289	lt_prog_compiler_static_F77='-static'
21290        ;;
21291      pgcc* | pgf77* | pgf90* | pgf95*)
21292        # Portland Group compilers (*not* the Pentium gcc compiler,
21293	# which looks to be a dead project)
21294	lt_prog_compiler_wl_F77='-Wl,'
21295	lt_prog_compiler_pic_F77='-fpic'
21296	lt_prog_compiler_static_F77='-Bstatic'
21297        ;;
21298      ccc*)
21299        lt_prog_compiler_wl_F77='-Wl,'
21300        # All Alpha code is PIC.
21301        lt_prog_compiler_static_F77='-non_shared'
21302        ;;
21303      *)
21304        case `$CC -V 2>&1 | sed 5q` in
21305	*Sun\ C*)
21306	  # Sun C 5.9
21307	  lt_prog_compiler_pic_F77='-KPIC'
21308	  lt_prog_compiler_static_F77='-Bstatic'
21309	  lt_prog_compiler_wl_F77='-Wl,'
21310	  ;;
21311	*Sun\ F*)
21312	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
21313	  lt_prog_compiler_pic_F77='-KPIC'
21314	  lt_prog_compiler_static_F77='-Bstatic'
21315	  lt_prog_compiler_wl_F77=''
21316	  ;;
21317	esac
21318	;;
21319      esac
21320      ;;
21321
21322    osf3* | osf4* | osf5*)
21323      lt_prog_compiler_wl_F77='-Wl,'
21324      # All OSF/1 code is PIC.
21325      lt_prog_compiler_static_F77='-non_shared'
21326      ;;
21327
21328    rdos*)
21329      lt_prog_compiler_static_F77='-non_shared'
21330      ;;
21331
21332    solaris*)
21333      lt_prog_compiler_pic_F77='-KPIC'
21334      lt_prog_compiler_static_F77='-Bstatic'
21335      case $cc_basename in
21336      f77* | f90* | f95*)
21337	lt_prog_compiler_wl_F77='-Qoption ld ';;
21338      *)
21339	lt_prog_compiler_wl_F77='-Wl,';;
21340      esac
21341      ;;
21342
21343    sunos4*)
21344      lt_prog_compiler_wl_F77='-Qoption ld '
21345      lt_prog_compiler_pic_F77='-PIC'
21346      lt_prog_compiler_static_F77='-Bstatic'
21347      ;;
21348
21349    sysv4 | sysv4.2uw2* | sysv4.3*)
21350      lt_prog_compiler_wl_F77='-Wl,'
21351      lt_prog_compiler_pic_F77='-KPIC'
21352      lt_prog_compiler_static_F77='-Bstatic'
21353      ;;
21354
21355    sysv4*MP*)
21356      if test -d /usr/nec ;then
21357	lt_prog_compiler_pic_F77='-Kconform_pic'
21358	lt_prog_compiler_static_F77='-Bstatic'
21359      fi
21360      ;;
21361
21362    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21363      lt_prog_compiler_wl_F77='-Wl,'
21364      lt_prog_compiler_pic_F77='-KPIC'
21365      lt_prog_compiler_static_F77='-Bstatic'
21366      ;;
21367
21368    unicos*)
21369      lt_prog_compiler_wl_F77='-Wl,'
21370      lt_prog_compiler_can_build_shared_F77=no
21371      ;;
21372
21373    uts4*)
21374      lt_prog_compiler_pic_F77='-pic'
21375      lt_prog_compiler_static_F77='-Bstatic'
21376      ;;
21377
21378    *)
21379      lt_prog_compiler_can_build_shared_F77=no
21380      ;;
21381    esac
21382  fi
21383
21384{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21385echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
21386
21387#
21388# Check to make sure the PIC flag actually works.
21389#
21390if test -n "$lt_prog_compiler_pic_F77"; then
21391
21392{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21393echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
21394if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
21395  echo $ECHO_N "(cached) $ECHO_C" >&6
21396else
21397  lt_cv_prog_compiler_pic_works_F77=no
21398  ac_outfile=conftest.$ac_objext
21399   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21400   lt_compiler_flag="$lt_prog_compiler_pic_F77"
21401   # Insert the option either (1) after the last *FLAGS variable, or
21402   # (2) before a word containing "conftest.", or (3) at the end.
21403   # Note that $ac_compile itself does not contain backslashes and begins
21404   # with a dollar sign (not a hyphen), so the echo should work correctly.
21405   # The option is referenced via a variable to avoid confusing sed.
21406   lt_compile=`echo "$ac_compile" | $SED \
21407   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21408   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21409   -e 's:$: $lt_compiler_flag:'`
21410   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
21411   (eval "$lt_compile" 2>conftest.err)
21412   ac_status=$?
21413   cat conftest.err >&5
21414   echo "$as_me:__oline__: \$? = $ac_status" >&5
21415   if (exit $ac_status) && test -s "$ac_outfile"; then
21416     # The compiler can only warn and ignore the option if not recognized
21417     # So say no if there are warnings other than the usual output.
21418     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21419     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21420     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21421       lt_cv_prog_compiler_pic_works_F77=yes
21422     fi
21423   fi
21424   $rm conftest*
21425
21426fi
21427{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
21428echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
21429
21430if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
21431    case $lt_prog_compiler_pic_F77 in
21432     "" | " "*) ;;
21433     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21434     esac
21435else
21436    lt_prog_compiler_pic_F77=
21437     lt_prog_compiler_can_build_shared_F77=no
21438fi
21439
21440fi
21441case $host_os in
21442  # For platforms which do not support PIC, -DPIC is meaningless:
21443  *djgpp*)
21444    lt_prog_compiler_pic_F77=
21445    ;;
21446  *)
21447    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21448    ;;
21449esac
21450
21451#
21452# Check to make sure the static flag actually works.
21453#
21454wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21455{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21456echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21457if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
21458  echo $ECHO_N "(cached) $ECHO_C" >&6
21459else
21460  lt_cv_prog_compiler_static_works_F77=no
21461   save_LDFLAGS="$LDFLAGS"
21462   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21463   echo "$lt_simple_link_test_code" > conftest.$ac_ext
21464   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21465     # The linker can only warn and ignore the option if not recognized
21466     # So say no if there are warnings
21467     if test -s conftest.err; then
21468       # Append any errors to the config.log.
21469       cat conftest.err 1>&5
21470       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21471       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21472       if diff conftest.exp conftest.er2 >/dev/null; then
21473         lt_cv_prog_compiler_static_works_F77=yes
21474       fi
21475     else
21476       lt_cv_prog_compiler_static_works_F77=yes
21477     fi
21478   fi
21479   $rm -r conftest*
21480   LDFLAGS="$save_LDFLAGS"
21481
21482fi
21483{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
21484echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
21485
21486if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
21487    :
21488else
21489    lt_prog_compiler_static_F77=
21490fi
21491
21492
21493{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21494echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21495if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21496  echo $ECHO_N "(cached) $ECHO_C" >&6
21497else
21498  lt_cv_prog_compiler_c_o_F77=no
21499   $rm -r conftest 2>/dev/null
21500   mkdir conftest
21501   cd conftest
21502   mkdir out
21503   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21504
21505   lt_compiler_flag="-o out/conftest2.$ac_objext"
21506   # Insert the option either (1) after the last *FLAGS variable, or
21507   # (2) before a word containing "conftest.", or (3) at the end.
21508   # Note that $ac_compile itself does not contain backslashes and begins
21509   # with a dollar sign (not a hyphen), so the echo should work correctly.
21510   lt_compile=`echo "$ac_compile" | $SED \
21511   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21512   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21513   -e 's:$: $lt_compiler_flag:'`
21514   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
21515   (eval "$lt_compile" 2>out/conftest.err)
21516   ac_status=$?
21517   cat out/conftest.err >&5
21518   echo "$as_me:__oline__: \$? = $ac_status" >&5
21519   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21520   then
21521     # The compiler can only warn and ignore the option if not recognized
21522     # So say no if there are warnings
21523     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21524     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21525     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21526       lt_cv_prog_compiler_c_o_F77=yes
21527     fi
21528   fi
21529   chmod u+w . 2>&5
21530   $rm conftest*
21531   # SGI C++ compiler will create directory out/ii_files/ for
21532   # template instantiation
21533   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21534   $rm out/* && rmdir out
21535   cd ..
21536   rmdir conftest
21537   $rm conftest*
21538
21539fi
21540{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21541echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21542
21543
21544hard_links="nottested"
21545if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21546  # do not overwrite the value of need_locks provided by the user
21547  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21548echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21549  hard_links=yes
21550  $rm conftest*
21551  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21552  touch conftest.a
21553  ln conftest.a conftest.b 2>&5 || hard_links=no
21554  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21555  { echo "$as_me:$LINENO: result: $hard_links" >&5
21556echo "${ECHO_T}$hard_links" >&6; }
21557  if test "$hard_links" = no; then
21558    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21559echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21560    need_locks=warn
21561  fi
21562else
21563  need_locks=no
21564fi
21565
21566{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21567echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21568
21569  runpath_var=
21570  allow_undefined_flag_F77=
21571  enable_shared_with_static_runtimes_F77=no
21572  archive_cmds_F77=
21573  archive_expsym_cmds_F77=
21574  old_archive_From_new_cmds_F77=
21575  old_archive_from_expsyms_cmds_F77=
21576  export_dynamic_flag_spec_F77=
21577  whole_archive_flag_spec_F77=
21578  thread_safe_flag_spec_F77=
21579  hardcode_libdir_flag_spec_F77=
21580  hardcode_libdir_flag_spec_ld_F77=
21581  hardcode_libdir_separator_F77=
21582  hardcode_direct_F77=no
21583  hardcode_minus_L_F77=no
21584  hardcode_shlibpath_var_F77=unsupported
21585  link_all_deplibs_F77=unknown
21586  hardcode_automatic_F77=no
21587  module_cmds_F77=
21588  module_expsym_cmds_F77=
21589  always_export_symbols_F77=no
21590  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21591  # include_expsyms should be a list of space-separated symbols to be *always*
21592  # included in the symbol list
21593  include_expsyms_F77=
21594  # exclude_expsyms can be an extended regexp of symbols to exclude
21595  # it will be wrapped by ` (' and `)$', so one must not match beginning or
21596  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21597  # as well as any symbol that contains `d'.
21598  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21599  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21600  # platforms (ab)use it in PIC code, but their linkers get confused if
21601  # the symbol is explicitly referenced.  Since portable code cannot
21602  # rely on this symbol name, it's probably fine to never include it in
21603  # preloaded symbol tables.
21604  # Exclude shared library initialization/finalization symbols.
21605  extract_expsyms_cmds=
21606  # Just being paranoid about ensuring that cc_basename is set.
21607  for cc_temp in $compiler""; do
21608  case $cc_temp in
21609    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21610    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21611    \-*) ;;
21612    *) break;;
21613  esac
21614done
21615cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21616
21617  case $host_os in
21618  cygwin* | mingw* | pw32*)
21619    # FIXME: the MSVC++ port hasn't been tested in a loooong time
21620    # When not using gcc, we currently assume that we are using
21621    # Microsoft Visual C++.
21622    if test "$GCC" != yes; then
21623      with_gnu_ld=no
21624    fi
21625    ;;
21626  interix*)
21627    # we just hope/assume this is gcc and not c89 (= MSVC++)
21628    with_gnu_ld=yes
21629    ;;
21630  openbsd*)
21631    with_gnu_ld=no
21632    ;;
21633  esac
21634
21635  ld_shlibs_F77=yes
21636  if test "$with_gnu_ld" = yes; then
21637    # If archive_cmds runs LD, not CC, wlarc should be empty
21638    wlarc='${wl}'
21639
21640    # Set some defaults for GNU ld with shared library support. These
21641    # are reset later if shared libraries are not supported. Putting them
21642    # here allows them to be overridden if necessary.
21643    runpath_var=LD_RUN_PATH
21644    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21645    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21646    # ancient GNU ld didn't support --whole-archive et. al.
21647    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21648	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21649      else
21650  	whole_archive_flag_spec_F77=
21651    fi
21652    supports_anon_versioning=no
21653    case `$LD -v 2>/dev/null` in
21654      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21655      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21656      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21657      *\ 2.11.*) ;; # other 2.11 versions
21658      *) supports_anon_versioning=yes ;;
21659    esac
21660
21661    # See if GNU ld supports shared libraries.
21662    case $host_os in
21663    aix[3-9]*)
21664      # On AIX/PPC, the GNU linker is very broken
21665      if test "$host_cpu" != ia64; then
21666	ld_shlibs_F77=no
21667	cat <<EOF 1>&2
21668
21669*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21670*** to be unable to reliably create shared libraries on AIX.
21671*** Therefore, libtool is disabling shared libraries support.  If you
21672*** really care for shared libraries, you may want to modify your PATH
21673*** so that a non-GNU linker is found, and then restart.
21674
21675EOF
21676      fi
21677      ;;
21678
21679    amigaos*)
21680      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)'
21681      hardcode_libdir_flag_spec_F77='-L$libdir'
21682      hardcode_minus_L_F77=yes
21683
21684      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21685      # that the semantics of dynamic libraries on AmigaOS, at least up
21686      # to version 4, is to share data among multiple programs linked
21687      # with the same dynamic library.  Since this doesn't match the
21688      # behavior of shared libraries on other platforms, we can't use
21689      # them.
21690      ld_shlibs_F77=no
21691      ;;
21692
21693    beos*)
21694      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21695	allow_undefined_flag_F77=unsupported
21696	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21697	# support --undefined.  This deserves some investigation.  FIXME
21698	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21699      else
21700	ld_shlibs_F77=no
21701      fi
21702      ;;
21703
21704    cygwin* | mingw* | pw32*)
21705      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21706      # as there is no search path for DLLs.
21707      hardcode_libdir_flag_spec_F77='-L$libdir'
21708      allow_undefined_flag_F77=unsupported
21709      always_export_symbols_F77=no
21710      enable_shared_with_static_runtimes_F77=yes
21711      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
21712
21713      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21714        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21715	# If the export-symbols file already is a .def file (1st line
21716	# is EXPORTS), use it as is; otherwise, prepend...
21717	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21718	  cp $export_symbols $output_objdir/$soname.def;
21719	else
21720	  echo EXPORTS > $output_objdir/$soname.def;
21721	  cat $export_symbols >> $output_objdir/$soname.def;
21722	fi~
21723	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21724      else
21725	ld_shlibs_F77=no
21726      fi
21727      ;;
21728
21729    interix[3-9]*)
21730      hardcode_direct_F77=no
21731      hardcode_shlibpath_var_F77=no
21732      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21733      export_dynamic_flag_spec_F77='${wl}-E'
21734      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21735      # Instead, shared libraries are loaded at an image base (0x10000000 by
21736      # default) and relocated if they conflict, which is a slow very memory
21737      # consuming and fragmenting process.  To avoid this, we pick a random,
21738      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21739      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21740      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'
21741      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'
21742      ;;
21743
21744    gnu* | linux* | k*bsd*-gnu)
21745      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21746	tmp_addflag=
21747	case $cc_basename,$host_cpu in
21748	pgcc*)				# Portland Group C compiler
21749	  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'
21750	  tmp_addflag=' $pic_flag'
21751	  ;;
21752	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
21753	  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'
21754	  tmp_addflag=' $pic_flag -Mnomain' ;;
21755	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
21756	  tmp_addflag=' -i_dynamic' ;;
21757	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
21758	  tmp_addflag=' -i_dynamic -nofor_main' ;;
21759	ifc* | ifort*)			# Intel Fortran compiler
21760	  tmp_addflag=' -nofor_main' ;;
21761	esac
21762	case `$CC -V 2>&1 | sed 5q` in
21763	*Sun\ C*)			# Sun C 5.9
21764	  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'
21765	  tmp_sharedflag='-G' ;;
21766	*Sun\ F*)			# Sun Fortran 8.3
21767	  tmp_sharedflag='-G' ;;
21768	*)
21769	  tmp_sharedflag='-shared' ;;
21770	esac
21771	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21772
21773	if test $supports_anon_versioning = yes; then
21774	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21775  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21776  $echo "local: *; };" >> $output_objdir/$libname.ver~
21777	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21778	fi
21779      else
21780	ld_shlibs_F77=no
21781      fi
21782      ;;
21783
21784    netbsd*)
21785      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21786	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21787	wlarc=
21788      else
21789	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21790	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21791      fi
21792      ;;
21793
21794    solaris*)
21795      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21796	ld_shlibs_F77=no
21797	cat <<EOF 1>&2
21798
21799*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21800*** create shared libraries on Solaris systems.  Therefore, libtool
21801*** is disabling shared libraries support.  We urge you to upgrade GNU
21802*** binutils to release 2.9.1 or newer.  Another option is to modify
21803*** your PATH or compiler configuration so that the native linker is
21804*** used, and then restart.
21805
21806EOF
21807      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21808	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21809	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21810      else
21811	ld_shlibs_F77=no
21812      fi
21813      ;;
21814
21815    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21816      case `$LD -v 2>&1` in
21817        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21818	ld_shlibs_F77=no
21819	cat <<_LT_EOF 1>&2
21820
21821*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21822*** reliably create shared libraries on SCO systems.  Therefore, libtool
21823*** is disabling shared libraries support.  We urge you to upgrade GNU
21824*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21825*** your PATH or compiler configuration so that the native linker is
21826*** used, and then restart.
21827
21828_LT_EOF
21829	;;
21830	*)
21831	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21832	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21833	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21834	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21835	  else
21836	    ld_shlibs_F77=no
21837	  fi
21838	;;
21839      esac
21840      ;;
21841
21842    sunos4*)
21843      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21844      wlarc=
21845      hardcode_direct_F77=yes
21846      hardcode_shlibpath_var_F77=no
21847      ;;
21848
21849    *)
21850      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21851	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21852	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21853      else
21854	ld_shlibs_F77=no
21855      fi
21856      ;;
21857    esac
21858
21859    if test "$ld_shlibs_F77" = no; then
21860      runpath_var=
21861      hardcode_libdir_flag_spec_F77=
21862      export_dynamic_flag_spec_F77=
21863      whole_archive_flag_spec_F77=
21864    fi
21865  else
21866    # PORTME fill in a description of your system's linker (not GNU ld)
21867    case $host_os in
21868    aix3*)
21869      allow_undefined_flag_F77=unsupported
21870      always_export_symbols_F77=yes
21871      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'
21872      # Note: this linker hardcodes the directories in LIBPATH if there
21873      # are no directories specified by -L.
21874      hardcode_minus_L_F77=yes
21875      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21876	# Neither direct hardcoding nor static linking is supported with a
21877	# broken collect2.
21878	hardcode_direct_F77=unsupported
21879      fi
21880      ;;
21881
21882    aix[4-9]*)
21883      if test "$host_cpu" = ia64; then
21884	# On IA64, the linker does run time linking by default, so we don't
21885	# have to do anything special.
21886	aix_use_runtimelinking=no
21887	exp_sym_flag='-Bexport'
21888	no_entry_flag=""
21889      else
21890	# If we're using GNU nm, then we don't want the "-C" option.
21891	# -C means demangle to AIX nm, but means don't demangle with GNU nm
21892	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21893	  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'
21894	else
21895	  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'
21896	fi
21897	aix_use_runtimelinking=no
21898
21899	# Test if we are trying to use run time linking or normal
21900	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21901	# need to do runtime linking.
21902	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
21903	  for ld_flag in $LDFLAGS; do
21904  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21905  	    aix_use_runtimelinking=yes
21906  	    break
21907  	  fi
21908	  done
21909	  ;;
21910	esac
21911
21912	exp_sym_flag='-bexport'
21913	no_entry_flag='-bnoentry'
21914      fi
21915
21916      # When large executables or shared objects are built, AIX ld can
21917      # have problems creating the table of contents.  If linking a library
21918      # or program results in "error TOC overflow" add -mminimal-toc to
21919      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21920      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21921
21922      archive_cmds_F77=''
21923      hardcode_direct_F77=yes
21924      hardcode_libdir_separator_F77=':'
21925      link_all_deplibs_F77=yes
21926
21927      if test "$GCC" = yes; then
21928	case $host_os in aix4.[012]|aix4.[012].*)
21929	# We only want to do this on AIX 4.2 and lower, the check
21930	# below for broken collect2 doesn't work under 4.3+
21931	  collect2name=`${CC} -print-prog-name=collect2`
21932	  if test -f "$collect2name" && \
21933  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
21934	  then
21935  	  # We have reworked collect2
21936  	  :
21937	  else
21938  	  # We have old collect2
21939  	  hardcode_direct_F77=unsupported
21940  	  # It fails to find uninstalled libraries when the uninstalled
21941  	  # path is not listed in the libpath.  Setting hardcode_minus_L
21942  	  # to unsupported forces relinking
21943  	  hardcode_minus_L_F77=yes
21944  	  hardcode_libdir_flag_spec_F77='-L$libdir'
21945  	  hardcode_libdir_separator_F77=
21946	  fi
21947	  ;;
21948	esac
21949	shared_flag='-shared'
21950	if test "$aix_use_runtimelinking" = yes; then
21951	  shared_flag="$shared_flag "'${wl}-G'
21952	fi
21953      else
21954	# not using gcc
21955	if test "$host_cpu" = ia64; then
21956  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21957  	# chokes on -Wl,-G. The following line is correct:
21958	  shared_flag='-G'
21959	else
21960	  if test "$aix_use_runtimelinking" = yes; then
21961	    shared_flag='${wl}-G'
21962	  else
21963	    shared_flag='${wl}-bM:SRE'
21964	  fi
21965	fi
21966      fi
21967
21968      # It seems that -bexpall does not export symbols beginning with
21969      # underscore (_), so it is better to generate a list of symbols to export.
21970      always_export_symbols_F77=yes
21971      if test "$aix_use_runtimelinking" = yes; then
21972	# Warning - without using the other runtime loading flags (-brtl),
21973	# -berok will link without error, but may produce a broken library.
21974	allow_undefined_flag_F77='-berok'
21975       # Determine the default libpath from the value encoded in an empty executable.
21976       cat >conftest.$ac_ext <<_ACEOF
21977      program main
21978
21979      end
21980_ACEOF
21981rm -f conftest.$ac_objext conftest$ac_exeext
21982if { (ac_try="$ac_link"
21983case "(($ac_try" in
21984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21985  *) ac_try_echo=$ac_try;;
21986esac
21987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988  (eval "$ac_link") 2>conftest.er1
21989  ac_status=$?
21990  grep -v '^ *+' conftest.er1 >conftest.err
21991  rm -f conftest.er1
21992  cat conftest.err >&5
21993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994  (exit $ac_status); } && {
21995	 test -z "$ac_f77_werror_flag" ||
21996	 test ! -s conftest.err
21997       } && test -s conftest$ac_exeext &&
21998       $as_test_x conftest$ac_exeext; then
21999
22000lt_aix_libpath_sed='
22001    /Import File Strings/,/^$/ {
22002	/^0/ {
22003	    s/^0  *\(.*\)$/\1/
22004	    p
22005	}
22006    }'
22007aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22008# Check for a 64-bit object if we didn't find anything.
22009if test -z "$aix_libpath"; then
22010  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22011fi
22012else
22013  echo "$as_me: failed program was:" >&5
22014sed 's/^/| /' conftest.$ac_ext >&5
22015
22016
22017fi
22018
22019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22020      conftest$ac_exeext conftest.$ac_ext
22021if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22022
22023       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22024	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"
22025       else
22026	if test "$host_cpu" = ia64; then
22027	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22028	  allow_undefined_flag_F77="-z nodefs"
22029	  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"
22030	else
22031	 # Determine the default libpath from the value encoded in an empty executable.
22032	 cat >conftest.$ac_ext <<_ACEOF
22033      program main
22034
22035      end
22036_ACEOF
22037rm -f conftest.$ac_objext conftest$ac_exeext
22038if { (ac_try="$ac_link"
22039case "(($ac_try" in
22040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22041  *) ac_try_echo=$ac_try;;
22042esac
22043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22044  (eval "$ac_link") 2>conftest.er1
22045  ac_status=$?
22046  grep -v '^ *+' conftest.er1 >conftest.err
22047  rm -f conftest.er1
22048  cat conftest.err >&5
22049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050  (exit $ac_status); } && {
22051	 test -z "$ac_f77_werror_flag" ||
22052	 test ! -s conftest.err
22053       } && test -s conftest$ac_exeext &&
22054       $as_test_x conftest$ac_exeext; then
22055
22056lt_aix_libpath_sed='
22057    /Import File Strings/,/^$/ {
22058	/^0/ {
22059	    s/^0  *\(.*\)$/\1/
22060	    p
22061	}
22062    }'
22063aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22064# Check for a 64-bit object if we didn't find anything.
22065if test -z "$aix_libpath"; then
22066  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22067fi
22068else
22069  echo "$as_me: failed program was:" >&5
22070sed 's/^/| /' conftest.$ac_ext >&5
22071
22072
22073fi
22074
22075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22076      conftest$ac_exeext conftest.$ac_ext
22077if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22078
22079	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22080	  # Warning - without using the other run time loading flags,
22081	  # -berok will link without error, but may produce a broken library.
22082	  no_undefined_flag_F77=' ${wl}-bernotok'
22083	  allow_undefined_flag_F77=' ${wl}-berok'
22084	  # Exported symbols can be pulled into shared objects from archives
22085	  whole_archive_flag_spec_F77='$convenience'
22086	  archive_cmds_need_lc_F77=yes
22087	  # This is similar to how AIX traditionally builds its shared libraries.
22088	  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'
22089	fi
22090      fi
22091      ;;
22092
22093    amigaos*)
22094      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)'
22095      hardcode_libdir_flag_spec_F77='-L$libdir'
22096      hardcode_minus_L_F77=yes
22097      # see comment about different semantics on the GNU ld section
22098      ld_shlibs_F77=no
22099      ;;
22100
22101    bsdi[45]*)
22102      export_dynamic_flag_spec_F77=-rdynamic
22103      ;;
22104
22105    cygwin* | mingw* | pw32*)
22106      # When not using gcc, we currently assume that we are using
22107      # Microsoft Visual C++.
22108      # hardcode_libdir_flag_spec is actually meaningless, as there is
22109      # no search path for DLLs.
22110      hardcode_libdir_flag_spec_F77=' '
22111      allow_undefined_flag_F77=unsupported
22112      # Tell ltmain to make .lib files, not .a files.
22113      libext=lib
22114      # Tell ltmain to make .dll files, not .so files.
22115      shrext_cmds=".dll"
22116      # FIXME: Setting linknames here is a bad hack.
22117      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22118      # The linker will automatically build a .lib file if we build a DLL.
22119      old_archive_From_new_cmds_F77='true'
22120      # FIXME: Should let the user specify the lib program.
22121      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
22122      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22123      enable_shared_with_static_runtimes_F77=yes
22124      ;;
22125
22126    darwin* | rhapsody*)
22127      case $host_os in
22128        rhapsody* | darwin1.[012])
22129         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22130         ;;
22131       *) # Darwin 1.3 on
22132         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22133           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22134         else
22135           case ${MACOSX_DEPLOYMENT_TARGET} in
22136             10.[012])
22137               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22138               ;;
22139             10.*)
22140               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22141               ;;
22142           esac
22143         fi
22144         ;;
22145      esac
22146      archive_cmds_need_lc_F77=no
22147      hardcode_direct_F77=no
22148      hardcode_automatic_F77=yes
22149      hardcode_shlibpath_var_F77=unsupported
22150      whole_archive_flag_spec_F77=''
22151      link_all_deplibs_F77=yes
22152    if test "$GCC" = yes ; then
22153    	output_verbose_link_cmd='echo'
22154        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
22155        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22156        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
22157        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
22158    else
22159      case $cc_basename in
22160        xlc*)
22161         output_verbose_link_cmd='echo'
22162         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
22163         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22164          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22165         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22166          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}'
22167          ;;
22168       *)
22169         ld_shlibs_F77=no
22170          ;;
22171      esac
22172    fi
22173      ;;
22174
22175    dgux*)
22176      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22177      hardcode_libdir_flag_spec_F77='-L$libdir'
22178      hardcode_shlibpath_var_F77=no
22179      ;;
22180
22181    freebsd1*)
22182      ld_shlibs_F77=no
22183      ;;
22184
22185    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22186    # support.  Future versions do this automatically, but an explicit c++rt0.o
22187    # does not break anything, and helps significantly (at the cost of a little
22188    # extra space).
22189    freebsd2.2*)
22190      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22191      hardcode_libdir_flag_spec_F77='-R$libdir'
22192      hardcode_direct_F77=yes
22193      hardcode_shlibpath_var_F77=no
22194      ;;
22195
22196    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22197    freebsd2*)
22198      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22199      hardcode_direct_F77=yes
22200      hardcode_minus_L_F77=yes
22201      hardcode_shlibpath_var_F77=no
22202      ;;
22203
22204    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22205    freebsd* | dragonfly*)
22206      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22207      hardcode_libdir_flag_spec_F77='-R$libdir'
22208      hardcode_direct_F77=yes
22209      hardcode_shlibpath_var_F77=no
22210      ;;
22211
22212    hpux9*)
22213      if test "$GCC" = yes; then
22214	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'
22215      else
22216	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'
22217      fi
22218      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22219      hardcode_libdir_separator_F77=:
22220      hardcode_direct_F77=yes
22221
22222      # hardcode_minus_L: Not really in the search PATH,
22223      # but as the default location of the library.
22224      hardcode_minus_L_F77=yes
22225      export_dynamic_flag_spec_F77='${wl}-E'
22226      ;;
22227
22228    hpux10*)
22229      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22230	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22231      else
22232	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22233      fi
22234      if test "$with_gnu_ld" = no; then
22235	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22236	hardcode_libdir_separator_F77=:
22237
22238	hardcode_direct_F77=yes
22239	export_dynamic_flag_spec_F77='${wl}-E'
22240
22241	# hardcode_minus_L: Not really in the search PATH,
22242	# but as the default location of the library.
22243	hardcode_minus_L_F77=yes
22244      fi
22245      ;;
22246
22247    hpux11*)
22248      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22249	case $host_cpu in
22250	hppa*64*)
22251	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22252	  ;;
22253	ia64*)
22254	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22255	  ;;
22256	*)
22257	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22258	  ;;
22259	esac
22260      else
22261	case $host_cpu in
22262	hppa*64*)
22263	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22264	  ;;
22265	ia64*)
22266	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22267	  ;;
22268	*)
22269	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22270	  ;;
22271	esac
22272      fi
22273      if test "$with_gnu_ld" = no; then
22274	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22275	hardcode_libdir_separator_F77=:
22276
22277	case $host_cpu in
22278	hppa*64*|ia64*)
22279	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22280	  hardcode_direct_F77=no
22281	  hardcode_shlibpath_var_F77=no
22282	  ;;
22283	*)
22284	  hardcode_direct_F77=yes
22285	  export_dynamic_flag_spec_F77='${wl}-E'
22286
22287	  # hardcode_minus_L: Not really in the search PATH,
22288	  # but as the default location of the library.
22289	  hardcode_minus_L_F77=yes
22290	  ;;
22291	esac
22292      fi
22293      ;;
22294
22295    irix5* | irix6* | nonstopux*)
22296      if test "$GCC" = yes; then
22297	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'
22298      else
22299	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'
22300	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22301      fi
22302      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22303      hardcode_libdir_separator_F77=:
22304      link_all_deplibs_F77=yes
22305      ;;
22306
22307    netbsd*)
22308      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22309	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
22310      else
22311	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
22312      fi
22313      hardcode_libdir_flag_spec_F77='-R$libdir'
22314      hardcode_direct_F77=yes
22315      hardcode_shlibpath_var_F77=no
22316      ;;
22317
22318    newsos6)
22319      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22320      hardcode_direct_F77=yes
22321      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22322      hardcode_libdir_separator_F77=:
22323      hardcode_shlibpath_var_F77=no
22324      ;;
22325
22326    openbsd*)
22327      if test -f /usr/libexec/ld.so; then
22328	hardcode_direct_F77=yes
22329	hardcode_shlibpath_var_F77=no
22330	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22331	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22332	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22333	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22334	  export_dynamic_flag_spec_F77='${wl}-E'
22335	else
22336	  case $host_os in
22337	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22338	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22339	     hardcode_libdir_flag_spec_F77='-R$libdir'
22340	     ;;
22341	   *)
22342	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22343	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22344	     ;;
22345	  esac
22346        fi
22347      else
22348	ld_shlibs_F77=no
22349      fi
22350      ;;
22351
22352    os2*)
22353      hardcode_libdir_flag_spec_F77='-L$libdir'
22354      hardcode_minus_L_F77=yes
22355      allow_undefined_flag_F77=unsupported
22356      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'
22357      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22358      ;;
22359
22360    osf3*)
22361      if test "$GCC" = yes; then
22362	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22363	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'
22364      else
22365	allow_undefined_flag_F77=' -expect_unresolved \*'
22366	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'
22367      fi
22368      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22369      hardcode_libdir_separator_F77=:
22370      ;;
22371
22372    osf4* | osf5*)	# as osf3* with the addition of -msym flag
22373      if test "$GCC" = yes; then
22374	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22375	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'
22376	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22377      else
22378	allow_undefined_flag_F77=' -expect_unresolved \*'
22379	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'
22380	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~
22381	$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'
22382
22383	# Both c and cxx compiler support -rpath directly
22384	hardcode_libdir_flag_spec_F77='-rpath $libdir'
22385      fi
22386      hardcode_libdir_separator_F77=:
22387      ;;
22388
22389    solaris*)
22390      no_undefined_flag_F77=' -z text'
22391      if test "$GCC" = yes; then
22392	wlarc='${wl}'
22393	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22394	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22395	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22396      else
22397	wlarc=''
22398	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22399	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22400  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22401      fi
22402      hardcode_libdir_flag_spec_F77='-R$libdir'
22403      hardcode_shlibpath_var_F77=no
22404      case $host_os in
22405      solaris2.[0-5] | solaris2.[0-5].*) ;;
22406      *)
22407	# The compiler driver will combine and reorder linker options,
22408	# but understands `-z linker_flag'.  GCC discards it without `$wl',
22409	# but is careful enough not to reorder.
22410 	# Supported since Solaris 2.6 (maybe 2.5.1?)
22411	if test "$GCC" = yes; then
22412	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
22413	else
22414	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
22415	fi
22416	;;
22417      esac
22418      link_all_deplibs_F77=yes
22419      ;;
22420
22421    sunos4*)
22422      if test "x$host_vendor" = xsequent; then
22423	# Use $CC to link under sequent, because it throws in some extra .o
22424	# files that make .init and .fini sections work.
22425	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22426      else
22427	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22428      fi
22429      hardcode_libdir_flag_spec_F77='-L$libdir'
22430      hardcode_direct_F77=yes
22431      hardcode_minus_L_F77=yes
22432      hardcode_shlibpath_var_F77=no
22433      ;;
22434
22435    sysv4)
22436      case $host_vendor in
22437	sni)
22438	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22439	  hardcode_direct_F77=yes # is this really true???
22440	;;
22441	siemens)
22442	  ## LD is ld it makes a PLAMLIB
22443	  ## CC just makes a GrossModule.
22444	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22445	  reload_cmds_F77='$CC -r -o $output$reload_objs'
22446	  hardcode_direct_F77=no
22447        ;;
22448	motorola)
22449	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22450	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22451	;;
22452      esac
22453      runpath_var='LD_RUN_PATH'
22454      hardcode_shlibpath_var_F77=no
22455      ;;
22456
22457    sysv4.3*)
22458      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22459      hardcode_shlibpath_var_F77=no
22460      export_dynamic_flag_spec_F77='-Bexport'
22461      ;;
22462
22463    sysv4*MP*)
22464      if test -d /usr/nec; then
22465	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22466	hardcode_shlibpath_var_F77=no
22467	runpath_var=LD_RUN_PATH
22468	hardcode_runpath_var=yes
22469	ld_shlibs_F77=yes
22470      fi
22471      ;;
22472
22473    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22474      no_undefined_flag_F77='${wl}-z,text'
22475      archive_cmds_need_lc_F77=no
22476      hardcode_shlibpath_var_F77=no
22477      runpath_var='LD_RUN_PATH'
22478
22479      if test "$GCC" = yes; then
22480	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22481	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22482      else
22483	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22484	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22485      fi
22486      ;;
22487
22488    sysv5* | sco3.2v5* | sco5v6*)
22489      # Note: We can NOT use -z defs as we might desire, because we do not
22490      # link with -lc, and that would cause any symbols used from libc to
22491      # always be unresolved, which means just about no library would
22492      # ever link correctly.  If we're not using GNU ld we use -z text
22493      # though, which does catch some bad symbols but isn't as heavy-handed
22494      # as -z defs.
22495      no_undefined_flag_F77='${wl}-z,text'
22496      allow_undefined_flag_F77='${wl}-z,nodefs'
22497      archive_cmds_need_lc_F77=no
22498      hardcode_shlibpath_var_F77=no
22499      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22500      hardcode_libdir_separator_F77=':'
22501      link_all_deplibs_F77=yes
22502      export_dynamic_flag_spec_F77='${wl}-Bexport'
22503      runpath_var='LD_RUN_PATH'
22504
22505      if test "$GCC" = yes; then
22506	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22507	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22508      else
22509	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22510	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22511      fi
22512      ;;
22513
22514    uts4*)
22515      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22516      hardcode_libdir_flag_spec_F77='-L$libdir'
22517      hardcode_shlibpath_var_F77=no
22518      ;;
22519
22520    *)
22521      ld_shlibs_F77=no
22522      ;;
22523    esac
22524  fi
22525
22526{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22527echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22528test "$ld_shlibs_F77" = no && can_build_shared=no
22529
22530#
22531# Do we need to explicitly link libc?
22532#
22533case "x$archive_cmds_need_lc_F77" in
22534x|xyes)
22535  # Assume -lc should be added
22536  archive_cmds_need_lc_F77=yes
22537
22538  if test "$enable_shared" = yes && test "$GCC" = yes; then
22539    case $archive_cmds_F77 in
22540    *'~'*)
22541      # FIXME: we may have to deal with multi-command sequences.
22542      ;;
22543    '$CC '*)
22544      # Test whether the compiler implicitly links with -lc since on some
22545      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22546      # to ld, don't add -lc before -lgcc.
22547      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22548echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22549      $rm conftest*
22550      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22551
22552      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22553  (eval $ac_compile) 2>&5
22554  ac_status=$?
22555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556  (exit $ac_status); } 2>conftest.err; then
22557        soname=conftest
22558        lib=conftest
22559        libobjs=conftest.$ac_objext
22560        deplibs=
22561        wl=$lt_prog_compiler_wl_F77
22562	pic_flag=$lt_prog_compiler_pic_F77
22563        compiler_flags=-v
22564        linker_flags=-v
22565        verstring=
22566        output_objdir=.
22567        libname=conftest
22568        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22569        allow_undefined_flag_F77=
22570        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22571  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22572  ac_status=$?
22573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574  (exit $ac_status); }
22575        then
22576	  archive_cmds_need_lc_F77=no
22577        else
22578	  archive_cmds_need_lc_F77=yes
22579        fi
22580        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22581      else
22582        cat conftest.err 1>&5
22583      fi
22584      $rm conftest*
22585      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22586echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22587      ;;
22588    esac
22589  fi
22590  ;;
22591esac
22592
22593{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22594echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22595library_names_spec=
22596libname_spec='lib$name'
22597soname_spec=
22598shrext_cmds=".so"
22599postinstall_cmds=
22600postuninstall_cmds=
22601finish_cmds=
22602finish_eval=
22603shlibpath_var=
22604shlibpath_overrides_runpath=unknown
22605version_type=none
22606dynamic_linker="$host_os ld.so"
22607sys_lib_dlsearch_path_spec="/lib /usr/lib"
22608
22609need_lib_prefix=unknown
22610hardcode_into_libs=no
22611
22612# when you set need_version to no, make sure it does not cause -set_version
22613# flags to be left without arguments
22614need_version=unknown
22615
22616case $host_os in
22617aix3*)
22618  version_type=linux
22619  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22620  shlibpath_var=LIBPATH
22621
22622  # AIX 3 has no versioning support, so we append a major version to the name.
22623  soname_spec='${libname}${release}${shared_ext}$major'
22624  ;;
22625
22626aix[4-9]*)
22627  version_type=linux
22628  need_lib_prefix=no
22629  need_version=no
22630  hardcode_into_libs=yes
22631  if test "$host_cpu" = ia64; then
22632    # AIX 5 supports IA64
22633    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22634    shlibpath_var=LD_LIBRARY_PATH
22635  else
22636    # With GCC up to 2.95.x, collect2 would create an import file
22637    # for dependence libraries.  The import file would start with
22638    # the line `#! .'.  This would cause the generated library to
22639    # depend on `.', always an invalid library.  This was fixed in
22640    # development snapshots of GCC prior to 3.0.
22641    case $host_os in
22642      aix4 | aix4.[01] | aix4.[01].*)
22643      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22644	   echo ' yes '
22645	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22646	:
22647      else
22648	can_build_shared=no
22649      fi
22650      ;;
22651    esac
22652    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22653    # soname into executable. Probably we can add versioning support to
22654    # collect2, so additional links can be useful in future.
22655    if test "$aix_use_runtimelinking" = yes; then
22656      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22657      # instead of lib<name>.a to let people know that these are not
22658      # typical AIX shared libraries.
22659      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22660    else
22661      # We preserve .a as extension for shared libraries through AIX4.2
22662      # and later when we are not doing run time linking.
22663      library_names_spec='${libname}${release}.a $libname.a'
22664      soname_spec='${libname}${release}${shared_ext}$major'
22665    fi
22666    shlibpath_var=LIBPATH
22667  fi
22668  ;;
22669
22670amigaos*)
22671  library_names_spec='$libname.ixlibrary $libname.a'
22672  # Create ${libname}_ixlibrary.a entries in /sys/libs.
22673  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'
22674  ;;
22675
22676beos*)
22677  library_names_spec='${libname}${shared_ext}'
22678  dynamic_linker="$host_os ld.so"
22679  shlibpath_var=LIBRARY_PATH
22680  ;;
22681
22682bsdi[45]*)
22683  version_type=linux
22684  need_version=no
22685  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22686  soname_spec='${libname}${release}${shared_ext}$major'
22687  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22688  shlibpath_var=LD_LIBRARY_PATH
22689  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22690  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22691  # the default ld.so.conf also contains /usr/contrib/lib and
22692  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22693  # libtool to hard-code these into programs
22694  ;;
22695
22696cygwin* | mingw* | pw32*)
22697  version_type=windows
22698  shrext_cmds=".dll"
22699  need_version=no
22700  need_lib_prefix=no
22701
22702  case $GCC,$host_os in
22703  yes,cygwin* | yes,mingw* | yes,pw32*)
22704    library_names_spec='$libname.dll.a'
22705    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22706    postinstall_cmds='base_file=`basename \${file}`~
22707      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22708      dldir=$destdir/`dirname \$dlpath`~
22709      test -d \$dldir || mkdir -p \$dldir~
22710      $install_prog $dir/$dlname \$dldir/$dlname~
22711      chmod a+x \$dldir/$dlname'
22712    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22713      dlpath=$dir/\$dldll~
22714       $rm \$dlpath'
22715    shlibpath_overrides_runpath=yes
22716
22717    case $host_os in
22718    cygwin*)
22719      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22720      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22721      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22722      ;;
22723    mingw*)
22724      # MinGW DLLs use traditional 'lib' prefix
22725      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22726      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22727      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22728        # It is most probably a Windows format PATH printed by
22729        # mingw gcc, but we are running on Cygwin. Gcc prints its search
22730        # path with ; separators, and with drive letters. We can handle the
22731        # drive letters (cygwin fileutils understands them), so leave them,
22732        # especially as we might pass files found there to a mingw objdump,
22733        # which wouldn't understand a cygwinified path. Ahh.
22734        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22735      else
22736        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22737      fi
22738      ;;
22739    pw32*)
22740      # pw32 DLLs use 'pw' prefix rather than 'lib'
22741      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22742      ;;
22743    esac
22744    ;;
22745
22746  *)
22747    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22748    ;;
22749  esac
22750  dynamic_linker='Win32 ld.exe'
22751  # FIXME: first we should search . and the directory the executable is in
22752  shlibpath_var=PATH
22753  ;;
22754
22755darwin* | rhapsody*)
22756  dynamic_linker="$host_os dyld"
22757  version_type=darwin
22758  need_lib_prefix=no
22759  need_version=no
22760  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22761  soname_spec='${libname}${release}${major}$shared_ext'
22762  shlibpath_overrides_runpath=yes
22763  shlibpath_var=DYLD_LIBRARY_PATH
22764  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22765
22766  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22767  ;;
22768
22769dgux*)
22770  version_type=linux
22771  need_lib_prefix=no
22772  need_version=no
22773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22774  soname_spec='${libname}${release}${shared_ext}$major'
22775  shlibpath_var=LD_LIBRARY_PATH
22776  ;;
22777
22778freebsd1*)
22779  dynamic_linker=no
22780  ;;
22781
22782freebsd* | dragonfly*)
22783  # DragonFly does not have aout.  When/if they implement a new
22784  # versioning mechanism, adjust this.
22785  if test -x /usr/bin/objformat; then
22786    objformat=`/usr/bin/objformat`
22787  else
22788    case $host_os in
22789    freebsd[123]*) objformat=aout ;;
22790    *) objformat=elf ;;
22791    esac
22792  fi
22793  version_type=freebsd-$objformat
22794  case $version_type in
22795    freebsd-elf*)
22796      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22797      need_version=no
22798      need_lib_prefix=no
22799      ;;
22800    freebsd-*)
22801      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22802      need_version=yes
22803      ;;
22804  esac
22805  shlibpath_var=LD_LIBRARY_PATH
22806  case $host_os in
22807  freebsd2*)
22808    shlibpath_overrides_runpath=yes
22809    ;;
22810  freebsd3.[01]* | freebsdelf3.[01]*)
22811    shlibpath_overrides_runpath=yes
22812    hardcode_into_libs=yes
22813    ;;
22814  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22815  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22816    shlibpath_overrides_runpath=no
22817    hardcode_into_libs=yes
22818    ;;
22819  *) # from 4.6 on, and DragonFly
22820    shlibpath_overrides_runpath=yes
22821    hardcode_into_libs=yes
22822    ;;
22823  esac
22824  ;;
22825
22826gnu*)
22827  version_type=linux
22828  need_lib_prefix=no
22829  need_version=no
22830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22831  soname_spec='${libname}${release}${shared_ext}$major'
22832  shlibpath_var=LD_LIBRARY_PATH
22833  hardcode_into_libs=yes
22834  ;;
22835
22836hpux9* | hpux10* | hpux11*)
22837  # Give a soname corresponding to the major version so that dld.sl refuses to
22838  # link against other versions.
22839  version_type=sunos
22840  need_lib_prefix=no
22841  need_version=no
22842  case $host_cpu in
22843  ia64*)
22844    shrext_cmds='.so'
22845    hardcode_into_libs=yes
22846    dynamic_linker="$host_os dld.so"
22847    shlibpath_var=LD_LIBRARY_PATH
22848    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22849    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22850    soname_spec='${libname}${release}${shared_ext}$major'
22851    if test "X$HPUX_IA64_MODE" = X32; then
22852      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22853    else
22854      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22855    fi
22856    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22857    ;;
22858   hppa*64*)
22859     shrext_cmds='.sl'
22860     hardcode_into_libs=yes
22861     dynamic_linker="$host_os dld.sl"
22862     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22863     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22864     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22865     soname_spec='${libname}${release}${shared_ext}$major'
22866     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22867     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22868     ;;
22869   *)
22870    shrext_cmds='.sl'
22871    dynamic_linker="$host_os dld.sl"
22872    shlibpath_var=SHLIB_PATH
22873    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22874    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22875    soname_spec='${libname}${release}${shared_ext}$major'
22876    ;;
22877  esac
22878  # HP-UX runs *really* slowly unless shared libraries are mode 555.
22879  postinstall_cmds='chmod 555 $lib'
22880  ;;
22881
22882interix[3-9]*)
22883  version_type=linux
22884  need_lib_prefix=no
22885  need_version=no
22886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22887  soname_spec='${libname}${release}${shared_ext}$major'
22888  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22889  shlibpath_var=LD_LIBRARY_PATH
22890  shlibpath_overrides_runpath=no
22891  hardcode_into_libs=yes
22892  ;;
22893
22894irix5* | irix6* | nonstopux*)
22895  case $host_os in
22896    nonstopux*) version_type=nonstopux ;;
22897    *)
22898	if test "$lt_cv_prog_gnu_ld" = yes; then
22899		version_type=linux
22900	else
22901		version_type=irix
22902	fi ;;
22903  esac
22904  need_lib_prefix=no
22905  need_version=no
22906  soname_spec='${libname}${release}${shared_ext}$major'
22907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22908  case $host_os in
22909  irix5* | nonstopux*)
22910    libsuff= shlibsuff=
22911    ;;
22912  *)
22913    case $LD in # libtool.m4 will add one of these switches to LD
22914    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22915      libsuff= shlibsuff= libmagic=32-bit;;
22916    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22917      libsuff=32 shlibsuff=N32 libmagic=N32;;
22918    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22919      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22920    *) libsuff= shlibsuff= libmagic=never-match;;
22921    esac
22922    ;;
22923  esac
22924  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22925  shlibpath_overrides_runpath=no
22926  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22927  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22928  hardcode_into_libs=yes
22929  ;;
22930
22931# No shared lib support for Linux oldld, aout, or coff.
22932linux*oldld* | linux*aout* | linux*coff*)
22933  dynamic_linker=no
22934  ;;
22935
22936# This must be Linux ELF.
22937linux* | k*bsd*-gnu)
22938  version_type=linux
22939  need_lib_prefix=no
22940  need_version=no
22941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22942  soname_spec='${libname}${release}${shared_ext}$major'
22943  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22944  shlibpath_var=LD_LIBRARY_PATH
22945  shlibpath_overrides_runpath=no
22946  # This implies no fast_install, which is unacceptable.
22947  # Some rework will be needed to allow for fast_install
22948  # before this can be enabled.
22949  hardcode_into_libs=yes
22950
22951  # Append ld.so.conf contents to the search path
22952  if test -f /etc/ld.so.conf; then
22953    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
22954    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22955  fi
22956
22957  # We used to test for /lib/ld.so.1 and disable shared libraries on
22958  # powerpc, because MkLinux only supported shared libraries with the
22959  # GNU dynamic linker.  Since this was broken with cross compilers,
22960  # most powerpc-linux boxes support dynamic linking these days and
22961  # people can always --disable-shared, the test was removed, and we
22962  # assume the GNU/Linux dynamic linker is in use.
22963  dynamic_linker='GNU/Linux ld.so'
22964  ;;
22965
22966netbsd*)
22967  version_type=sunos
22968  need_lib_prefix=no
22969  need_version=no
22970  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22971    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22972    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22973    dynamic_linker='NetBSD (a.out) ld.so'
22974  else
22975    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22976    soname_spec='${libname}${release}${shared_ext}$major'
22977    dynamic_linker='NetBSD ld.elf_so'
22978  fi
22979  shlibpath_var=LD_LIBRARY_PATH
22980  shlibpath_overrides_runpath=yes
22981  hardcode_into_libs=yes
22982  ;;
22983
22984newsos6)
22985  version_type=linux
22986  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22987  shlibpath_var=LD_LIBRARY_PATH
22988  shlibpath_overrides_runpath=yes
22989  ;;
22990
22991nto-qnx*)
22992  version_type=linux
22993  need_lib_prefix=no
22994  need_version=no
22995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22996  soname_spec='${libname}${release}${shared_ext}$major'
22997  shlibpath_var=LD_LIBRARY_PATH
22998  shlibpath_overrides_runpath=yes
22999  ;;
23000
23001openbsd*)
23002  version_type=sunos
23003  sys_lib_dlsearch_path_spec="/usr/lib"
23004  need_lib_prefix=no
23005  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23006  case $host_os in
23007    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23008    *)                         need_version=no  ;;
23009  esac
23010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23011  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23012  shlibpath_var=LD_LIBRARY_PATH
23013  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23014    case $host_os in
23015      openbsd2.[89] | openbsd2.[89].*)
23016	shlibpath_overrides_runpath=no
23017	;;
23018      *)
23019	shlibpath_overrides_runpath=yes
23020	;;
23021      esac
23022  else
23023    shlibpath_overrides_runpath=yes
23024  fi
23025  ;;
23026
23027os2*)
23028  libname_spec='$name'
23029  shrext_cmds=".dll"
23030  need_lib_prefix=no
23031  library_names_spec='$libname${shared_ext} $libname.a'
23032  dynamic_linker='OS/2 ld.exe'
23033  shlibpath_var=LIBPATH
23034  ;;
23035
23036osf3* | osf4* | osf5*)
23037  version_type=osf
23038  need_lib_prefix=no
23039  need_version=no
23040  soname_spec='${libname}${release}${shared_ext}$major'
23041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23042  shlibpath_var=LD_LIBRARY_PATH
23043  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23044  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23045  ;;
23046
23047rdos*)
23048  dynamic_linker=no
23049  ;;
23050
23051solaris*)
23052  version_type=linux
23053  need_lib_prefix=no
23054  need_version=no
23055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23056  soname_spec='${libname}${release}${shared_ext}$major'
23057  shlibpath_var=LD_LIBRARY_PATH
23058  shlibpath_overrides_runpath=yes
23059  hardcode_into_libs=yes
23060  # ldd complains unless libraries are executable
23061  postinstall_cmds='chmod +x $lib'
23062  ;;
23063
23064sunos4*)
23065  version_type=sunos
23066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23067  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23068  shlibpath_var=LD_LIBRARY_PATH
23069  shlibpath_overrides_runpath=yes
23070  if test "$with_gnu_ld" = yes; then
23071    need_lib_prefix=no
23072  fi
23073  need_version=yes
23074  ;;
23075
23076sysv4 | sysv4.3*)
23077  version_type=linux
23078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23079  soname_spec='${libname}${release}${shared_ext}$major'
23080  shlibpath_var=LD_LIBRARY_PATH
23081  case $host_vendor in
23082    sni)
23083      shlibpath_overrides_runpath=no
23084      need_lib_prefix=no
23085      export_dynamic_flag_spec='${wl}-Blargedynsym'
23086      runpath_var=LD_RUN_PATH
23087      ;;
23088    siemens)
23089      need_lib_prefix=no
23090      ;;
23091    motorola)
23092      need_lib_prefix=no
23093      need_version=no
23094      shlibpath_overrides_runpath=no
23095      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23096      ;;
23097  esac
23098  ;;
23099
23100sysv4*MP*)
23101  if test -d /usr/nec ;then
23102    version_type=linux
23103    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23104    soname_spec='$libname${shared_ext}.$major'
23105    shlibpath_var=LD_LIBRARY_PATH
23106  fi
23107  ;;
23108
23109sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23110  version_type=freebsd-elf
23111  need_lib_prefix=no
23112  need_version=no
23113  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23114  soname_spec='${libname}${release}${shared_ext}$major'
23115  shlibpath_var=LD_LIBRARY_PATH
23116  hardcode_into_libs=yes
23117  if test "$with_gnu_ld" = yes; then
23118    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23119    shlibpath_overrides_runpath=no
23120  else
23121    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23122    shlibpath_overrides_runpath=yes
23123    case $host_os in
23124      sco3.2v5*)
23125        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23126	;;
23127    esac
23128  fi
23129  sys_lib_dlsearch_path_spec='/usr/lib'
23130  ;;
23131
23132uts4*)
23133  version_type=linux
23134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23135  soname_spec='${libname}${release}${shared_ext}$major'
23136  shlibpath_var=LD_LIBRARY_PATH
23137  ;;
23138
23139*)
23140  dynamic_linker=no
23141  ;;
23142esac
23143{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23144echo "${ECHO_T}$dynamic_linker" >&6; }
23145test "$dynamic_linker" = no && can_build_shared=no
23146
23147if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23148  echo $ECHO_N "(cached) $ECHO_C" >&6
23149else
23150  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
23151fi
23152
23153sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23154if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23155  echo $ECHO_N "(cached) $ECHO_C" >&6
23156else
23157  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
23158fi
23159
23160sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23161
23162variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23163if test "$GCC" = yes; then
23164  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23165fi
23166
23167{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23168echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
23169hardcode_action_F77=
23170if test -n "$hardcode_libdir_flag_spec_F77" || \
23171   test -n "$runpath_var_F77" || \
23172   test "X$hardcode_automatic_F77" = "Xyes" ; then
23173
23174  # We can hardcode non-existant directories.
23175  if test "$hardcode_direct_F77" != no &&
23176     # If the only mechanism to avoid hardcoding is shlibpath_var, we
23177     # have to relink, otherwise we might link with an installed library
23178     # when we should be linking with a yet-to-be-installed one
23179     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23180     test "$hardcode_minus_L_F77" != no; then
23181    # Linking always hardcodes the temporary library directory.
23182    hardcode_action_F77=relink
23183  else
23184    # We can link without hardcoding, and we can hardcode nonexisting dirs.
23185    hardcode_action_F77=immediate
23186  fi
23187else
23188  # We cannot hardcode anything, or else we can only hardcode existing
23189  # directories.
23190  hardcode_action_F77=unsupported
23191fi
23192{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23193echo "${ECHO_T}$hardcode_action_F77" >&6; }
23194
23195if test "$hardcode_action_F77" = relink; then
23196  # Fast installation is not supported
23197  enable_fast_install=no
23198elif test "$shlibpath_overrides_runpath" = yes ||
23199     test "$enable_shared" = no; then
23200  # Fast installation is not necessary
23201  enable_fast_install=needless
23202fi
23203
23204
23205# The else clause should only fire when bootstrapping the
23206# libtool distribution, otherwise you forgot to ship ltmain.sh
23207# with your package, and you will get complaints that there are
23208# no rules to generate ltmain.sh.
23209if test -f "$ltmain"; then
23210  # See if we are running on zsh, and set the options which allow our commands through
23211  # without removal of \ escapes.
23212  if test -n "${ZSH_VERSION+set}" ; then
23213    setopt NO_GLOB_SUBST
23214  fi
23215  # Now quote all the things that may contain metacharacters while being
23216  # careful not to overquote the AC_SUBSTed values.  We take copies of the
23217  # variables and quote the copies for generation of the libtool script.
23218  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23219    SED SHELL STRIP \
23220    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23221    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23222    deplibs_check_method reload_flag reload_cmds need_locks \
23223    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23224    lt_cv_sys_global_symbol_to_c_name_address \
23225    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23226    old_postinstall_cmds old_postuninstall_cmds \
23227    compiler_F77 \
23228    CC_F77 \
23229    LD_F77 \
23230    lt_prog_compiler_wl_F77 \
23231    lt_prog_compiler_pic_F77 \
23232    lt_prog_compiler_static_F77 \
23233    lt_prog_compiler_no_builtin_flag_F77 \
23234    export_dynamic_flag_spec_F77 \
23235    thread_safe_flag_spec_F77 \
23236    whole_archive_flag_spec_F77 \
23237    enable_shared_with_static_runtimes_F77 \
23238    old_archive_cmds_F77 \
23239    old_archive_from_new_cmds_F77 \
23240    predep_objects_F77 \
23241    postdep_objects_F77 \
23242    predeps_F77 \
23243    postdeps_F77 \
23244    compiler_lib_search_path_F77 \
23245    compiler_lib_search_dirs_F77 \
23246    archive_cmds_F77 \
23247    archive_expsym_cmds_F77 \
23248    postinstall_cmds_F77 \
23249    postuninstall_cmds_F77 \
23250    old_archive_from_expsyms_cmds_F77 \
23251    allow_undefined_flag_F77 \
23252    no_undefined_flag_F77 \
23253    export_symbols_cmds_F77 \
23254    hardcode_libdir_flag_spec_F77 \
23255    hardcode_libdir_flag_spec_ld_F77 \
23256    hardcode_libdir_separator_F77 \
23257    hardcode_automatic_F77 \
23258    module_cmds_F77 \
23259    module_expsym_cmds_F77 \
23260    lt_cv_prog_compiler_c_o_F77 \
23261    fix_srcfile_path_F77 \
23262    exclude_expsyms_F77 \
23263    include_expsyms_F77; do
23264
23265    case $var in
23266    old_archive_cmds_F77 | \
23267    old_archive_from_new_cmds_F77 | \
23268    archive_cmds_F77 | \
23269    archive_expsym_cmds_F77 | \
23270    module_cmds_F77 | \
23271    module_expsym_cmds_F77 | \
23272    old_archive_from_expsyms_cmds_F77 | \
23273    export_symbols_cmds_F77 | \
23274    extract_expsyms_cmds | reload_cmds | finish_cmds | \
23275    postinstall_cmds | postuninstall_cmds | \
23276    old_postinstall_cmds | old_postuninstall_cmds | \
23277    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23278      # Double-quote double-evaled strings.
23279      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23280      ;;
23281    *)
23282      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23283      ;;
23284    esac
23285  done
23286
23287  case $lt_echo in
23288  *'\$0 --fallback-echo"')
23289    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23290    ;;
23291  esac
23292
23293cfgfile="$ofile"
23294
23295  cat <<__EOF__ >> "$cfgfile"
23296# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23297
23298# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23299
23300# Shell to use when invoking shell scripts.
23301SHELL=$lt_SHELL
23302
23303# Whether or not to build shared libraries.
23304build_libtool_libs=$enable_shared
23305
23306# Whether or not to build static libraries.
23307build_old_libs=$enable_static
23308
23309# Whether or not to add -lc for building shared libraries.
23310build_libtool_need_lc=$archive_cmds_need_lc_F77
23311
23312# Whether or not to disallow shared libs when runtime libs are static
23313allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23314
23315# Whether or not to optimize for fast installation.
23316fast_install=$enable_fast_install
23317
23318# The host system.
23319host_alias=$host_alias
23320host=$host
23321host_os=$host_os
23322
23323# The build system.
23324build_alias=$build_alias
23325build=$build
23326build_os=$build_os
23327
23328# An echo program that does not interpret backslashes.
23329echo=$lt_echo
23330
23331# The archiver.
23332AR=$lt_AR
23333AR_FLAGS=$lt_AR_FLAGS
23334
23335# A C compiler.
23336LTCC=$lt_LTCC
23337
23338# LTCC compiler flags.
23339LTCFLAGS=$lt_LTCFLAGS
23340
23341# A language-specific compiler.
23342CC=$lt_compiler_F77
23343
23344# Is the compiler the GNU C compiler?
23345with_gcc=$GCC_F77
23346
23347# An ERE matcher.
23348EGREP=$lt_EGREP
23349
23350# The linker used to build libraries.
23351LD=$lt_LD_F77
23352
23353# Whether we need hard or soft links.
23354LN_S=$lt_LN_S
23355
23356# A BSD-compatible nm program.
23357NM=$lt_NM
23358
23359# A symbol stripping program
23360STRIP=$lt_STRIP
23361
23362# Used to examine libraries when file_magic_cmd begins "file"
23363MAGIC_CMD=$MAGIC_CMD
23364
23365# Used on cygwin: DLL creation program.
23366DLLTOOL="$DLLTOOL"
23367
23368# Used on cygwin: object dumper.
23369OBJDUMP="$OBJDUMP"
23370
23371# Used on cygwin: assembler.
23372AS="$AS"
23373
23374# The name of the directory that contains temporary libtool files.
23375objdir=$objdir
23376
23377# How to create reloadable object files.
23378reload_flag=$lt_reload_flag
23379reload_cmds=$lt_reload_cmds
23380
23381# How to pass a linker flag through the compiler.
23382wl=$lt_lt_prog_compiler_wl_F77
23383
23384# Object file suffix (normally "o").
23385objext="$ac_objext"
23386
23387# Old archive suffix (normally "a").
23388libext="$libext"
23389
23390# Shared library suffix (normally ".so").
23391shrext_cmds='$shrext_cmds'
23392
23393# Executable file suffix (normally "").
23394exeext="$exeext"
23395
23396# Additional compiler flags for building library objects.
23397pic_flag=$lt_lt_prog_compiler_pic_F77
23398pic_mode=$pic_mode
23399
23400# What is the maximum length of a command?
23401max_cmd_len=$lt_cv_sys_max_cmd_len
23402
23403# Does compiler simultaneously support -c and -o options?
23404compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23405
23406# Must we lock files when doing compilation?
23407need_locks=$lt_need_locks
23408
23409# Do we need the lib prefix for modules?
23410need_lib_prefix=$need_lib_prefix
23411
23412# Do we need a version for libraries?
23413need_version=$need_version
23414
23415# Whether dlopen is supported.
23416dlopen_support=$enable_dlopen
23417
23418# Whether dlopen of programs is supported.
23419dlopen_self=$enable_dlopen_self
23420
23421# Whether dlopen of statically linked programs is supported.
23422dlopen_self_static=$enable_dlopen_self_static
23423
23424# Compiler flag to prevent dynamic linking.
23425link_static_flag=$lt_lt_prog_compiler_static_F77
23426
23427# Compiler flag to turn off builtin functions.
23428no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23429
23430# Compiler flag to allow reflexive dlopens.
23431export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23432
23433# Compiler flag to generate shared objects directly from archives.
23434whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23435
23436# Compiler flag to generate thread-safe objects.
23437thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23438
23439# Library versioning type.
23440version_type=$version_type
23441
23442# Format of library name prefix.
23443libname_spec=$lt_libname_spec
23444
23445# List of archive names.  First name is the real one, the rest are links.
23446# The last name is the one that the linker finds with -lNAME.
23447library_names_spec=$lt_library_names_spec
23448
23449# The coded name of the library, if different from the real name.
23450soname_spec=$lt_soname_spec
23451
23452# Commands used to build and install an old-style archive.
23453RANLIB=$lt_RANLIB
23454old_archive_cmds=$lt_old_archive_cmds_F77
23455old_postinstall_cmds=$lt_old_postinstall_cmds
23456old_postuninstall_cmds=$lt_old_postuninstall_cmds
23457
23458# Create an old-style archive from a shared archive.
23459old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23460
23461# Create a temporary old-style archive to link instead of a shared archive.
23462old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23463
23464# Commands used to build and install a shared archive.
23465archive_cmds=$lt_archive_cmds_F77
23466archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23467postinstall_cmds=$lt_postinstall_cmds
23468postuninstall_cmds=$lt_postuninstall_cmds
23469
23470# Commands used to build a loadable module (assumed same as above if empty)
23471module_cmds=$lt_module_cmds_F77
23472module_expsym_cmds=$lt_module_expsym_cmds_F77
23473
23474# Commands to strip libraries.
23475old_striplib=$lt_old_striplib
23476striplib=$lt_striplib
23477
23478# Dependencies to place before the objects being linked to create a
23479# shared library.
23480predep_objects=$lt_predep_objects_F77
23481
23482# Dependencies to place after the objects being linked to create a
23483# shared library.
23484postdep_objects=$lt_postdep_objects_F77
23485
23486# Dependencies to place before the objects being linked to create a
23487# shared library.
23488predeps=$lt_predeps_F77
23489
23490# Dependencies to place after the objects being linked to create a
23491# shared library.
23492postdeps=$lt_postdeps_F77
23493
23494# The directories searched by this compiler when creating a shared
23495# library
23496compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
23497
23498# The library search path used internally by the compiler when linking
23499# a shared library.
23500compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23501
23502# Method to check whether dependent libraries are shared objects.
23503deplibs_check_method=$lt_deplibs_check_method
23504
23505# Command to use when deplibs_check_method == file_magic.
23506file_magic_cmd=$lt_file_magic_cmd
23507
23508# Flag that allows shared libraries with undefined symbols to be built.
23509allow_undefined_flag=$lt_allow_undefined_flag_F77
23510
23511# Flag that forces no undefined symbols.
23512no_undefined_flag=$lt_no_undefined_flag_F77
23513
23514# Commands used to finish a libtool library installation in a directory.
23515finish_cmds=$lt_finish_cmds
23516
23517# Same as above, but a single script fragment to be evaled but not shown.
23518finish_eval=$lt_finish_eval
23519
23520# Take the output of nm and produce a listing of raw symbols and C names.
23521global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23522
23523# Transform the output of nm in a proper C declaration
23524global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23525
23526# Transform the output of nm in a C name address pair
23527global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23528
23529# This is the shared library runtime path variable.
23530runpath_var=$runpath_var
23531
23532# This is the shared library path variable.
23533shlibpath_var=$shlibpath_var
23534
23535# Is shlibpath searched before the hard-coded library search path?
23536shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23537
23538# How to hardcode a shared library path into an executable.
23539hardcode_action=$hardcode_action_F77
23540
23541# Whether we should hardcode library paths into libraries.
23542hardcode_into_libs=$hardcode_into_libs
23543
23544# Flag to hardcode \$libdir into a binary during linking.
23545# This must work even if \$libdir does not exist.
23546hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23547
23548# If ld is used when linking, flag to hardcode \$libdir into
23549# a binary during linking. This must work even if \$libdir does
23550# not exist.
23551hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23552
23553# Whether we need a single -rpath flag with a separated argument.
23554hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23555
23556# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23557# resulting binary.
23558hardcode_direct=$hardcode_direct_F77
23559
23560# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23561# resulting binary.
23562hardcode_minus_L=$hardcode_minus_L_F77
23563
23564# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23565# the resulting binary.
23566hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23567
23568# Set to yes if building a shared library automatically hardcodes DIR into the library
23569# and all subsequent libraries and executables linked against it.
23570hardcode_automatic=$hardcode_automatic_F77
23571
23572# Variables whose values should be saved in libtool wrapper scripts and
23573# restored at relink time.
23574variables_saved_for_relink="$variables_saved_for_relink"
23575
23576# Whether libtool must link a program against all its dependency libraries.
23577link_all_deplibs=$link_all_deplibs_F77
23578
23579# Compile-time system search path for libraries
23580sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23581
23582# Run-time system search path for libraries
23583sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23584
23585# Fix the shell variable \$srcfile for the compiler.
23586fix_srcfile_path=$lt_fix_srcfile_path
23587
23588# Set to yes if exported symbols are required.
23589always_export_symbols=$always_export_symbols_F77
23590
23591# The commands to list exported symbols.
23592export_symbols_cmds=$lt_export_symbols_cmds_F77
23593
23594# The commands to extract the exported symbol list from a shared archive.
23595extract_expsyms_cmds=$lt_extract_expsyms_cmds
23596
23597# Symbols that should not be listed in the preloaded symbols.
23598exclude_expsyms=$lt_exclude_expsyms_F77
23599
23600# Symbols that must always be exported.
23601include_expsyms=$lt_include_expsyms_F77
23602
23603# ### END LIBTOOL TAG CONFIG: $tagname
23604
23605__EOF__
23606
23607
23608else
23609  # If there is no Makefile yet, we rely on a make rule to execute
23610  # `config.status --recheck' to rerun these tests and create the
23611  # libtool script then.
23612  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23613  if test -f "$ltmain_in"; then
23614    test -f Makefile && make "$ltmain"
23615  fi
23616fi
23617
23618
23619ac_ext=cpp
23620ac_cpp='$CXXCPP $CPPFLAGS'
23621ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23622ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23623ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23624
23625CC="$lt_save_CC"
23626
23627	else
23628	  tagname=""
23629	fi
23630	;;
23631
23632      GCJ)
23633	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23634
23635
23636# Source file extension for Java test sources.
23637ac_ext=java
23638
23639# Object file extension for compiled Java test sources.
23640objext=o
23641objext_GCJ=$objext
23642
23643# Code to be used in simple compile tests
23644lt_simple_compile_test_code="class foo {}"
23645
23646# Code to be used in simple link tests
23647lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
23648
23649# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23650
23651# If no C compiler was specified, use CC.
23652LTCC=${LTCC-"$CC"}
23653
23654# If no C compiler flags were specified, use CFLAGS.
23655LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23656
23657# Allow CC to be a program name with arguments.
23658compiler=$CC
23659
23660
23661# save warnings/boilerplate of simple test code
23662ac_outfile=conftest.$ac_objext
23663echo "$lt_simple_compile_test_code" >conftest.$ac_ext
23664eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23665_lt_compiler_boilerplate=`cat conftest.err`
23666$rm conftest*
23667
23668ac_outfile=conftest.$ac_objext
23669echo "$lt_simple_link_test_code" >conftest.$ac_ext
23670eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23671_lt_linker_boilerplate=`cat conftest.err`
23672$rm -r conftest*
23673
23674
23675# Allow CC to be a program name with arguments.
23676lt_save_CC="$CC"
23677CC=${GCJ-"gcj"}
23678compiler=$CC
23679compiler_GCJ=$CC
23680for cc_temp in $compiler""; do
23681  case $cc_temp in
23682    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23683    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23684    \-*) ;;
23685    *) break;;
23686  esac
23687done
23688cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23689
23690
23691# GCJ did not exist at the time GCC didn't implicitly link libc in.
23692archive_cmds_need_lc_GCJ=no
23693
23694old_archive_cmds_GCJ=$old_archive_cmds
23695
23696## CAVEAT EMPTOR:
23697## There is no encapsulation within the following macros, do not change
23698## the running order or otherwise move them around unless you know exactly
23699## what you are doing...
23700
23701lt_prog_compiler_no_builtin_flag_GCJ=
23702
23703if test "$GCC" = yes; then
23704  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23705
23706
23707{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23708echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23709if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23710  echo $ECHO_N "(cached) $ECHO_C" >&6
23711else
23712  lt_cv_prog_compiler_rtti_exceptions=no
23713  ac_outfile=conftest.$ac_objext
23714   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23715   lt_compiler_flag="-fno-rtti -fno-exceptions"
23716   # Insert the option either (1) after the last *FLAGS variable, or
23717   # (2) before a word containing "conftest.", or (3) at the end.
23718   # Note that $ac_compile itself does not contain backslashes and begins
23719   # with a dollar sign (not a hyphen), so the echo should work correctly.
23720   # The option is referenced via a variable to avoid confusing sed.
23721   lt_compile=`echo "$ac_compile" | $SED \
23722   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23723   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23724   -e 's:$: $lt_compiler_flag:'`
23725   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
23726   (eval "$lt_compile" 2>conftest.err)
23727   ac_status=$?
23728   cat conftest.err >&5
23729   echo "$as_me:__oline__: \$? = $ac_status" >&5
23730   if (exit $ac_status) && test -s "$ac_outfile"; then
23731     # The compiler can only warn and ignore the option if not recognized
23732     # So say no if there are warnings other than the usual output.
23733     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23734     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23735     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23736       lt_cv_prog_compiler_rtti_exceptions=yes
23737     fi
23738   fi
23739   $rm conftest*
23740
23741fi
23742{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23743echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23744
23745if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23746    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23747else
23748    :
23749fi
23750
23751fi
23752
23753lt_prog_compiler_wl_GCJ=
23754lt_prog_compiler_pic_GCJ=
23755lt_prog_compiler_static_GCJ=
23756
23757{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23758echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23759
23760  if test "$GCC" = yes; then
23761    lt_prog_compiler_wl_GCJ='-Wl,'
23762    lt_prog_compiler_static_GCJ='-static'
23763
23764    case $host_os in
23765      aix*)
23766      # All AIX code is PIC.
23767      if test "$host_cpu" = ia64; then
23768	# AIX 5 now supports IA64 processor
23769	lt_prog_compiler_static_GCJ='-Bstatic'
23770      fi
23771      ;;
23772
23773    amigaos*)
23774      # FIXME: we need at least 68020 code to build shared libraries, but
23775      # adding the `-m68020' flag to GCC prevents building anything better,
23776      # like `-m68040'.
23777      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23778      ;;
23779
23780    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23781      # PIC is the default for these OSes.
23782      ;;
23783
23784    mingw* | cygwin* | pw32* | os2*)
23785      # This hack is so that the source file can tell whether it is being
23786      # built for inclusion in a dll (and should export symbols for example).
23787      # Although the cygwin gcc ignores -fPIC, still need this for old-style
23788      # (--disable-auto-import) libraries
23789
23790      ;;
23791
23792    darwin* | rhapsody*)
23793      # PIC is the default on this platform
23794      # Common symbols not allowed in MH_DYLIB files
23795      lt_prog_compiler_pic_GCJ='-fno-common'
23796      ;;
23797
23798    interix[3-9]*)
23799      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23800      # Instead, we relocate shared libraries at runtime.
23801      ;;
23802
23803    msdosdjgpp*)
23804      # Just because we use GCC doesn't mean we suddenly get shared libraries
23805      # on systems that don't support them.
23806      lt_prog_compiler_can_build_shared_GCJ=no
23807      enable_shared=no
23808      ;;
23809
23810    sysv4*MP*)
23811      if test -d /usr/nec; then
23812	lt_prog_compiler_pic_GCJ=-Kconform_pic
23813      fi
23814      ;;
23815
23816    hpux*)
23817      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23818      # not for PA HP-UX.
23819      case $host_cpu in
23820      hppa*64*|ia64*)
23821	# +Z the default
23822	;;
23823      *)
23824	lt_prog_compiler_pic_GCJ='-fPIC'
23825	;;
23826      esac
23827      ;;
23828
23829    *)
23830      lt_prog_compiler_pic_GCJ='-fPIC'
23831      ;;
23832    esac
23833  else
23834    # PORTME Check for flag to pass linker flags through the system compiler.
23835    case $host_os in
23836    aix*)
23837      lt_prog_compiler_wl_GCJ='-Wl,'
23838      if test "$host_cpu" = ia64; then
23839	# AIX 5 now supports IA64 processor
23840	lt_prog_compiler_static_GCJ='-Bstatic'
23841      else
23842	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23843      fi
23844      ;;
23845      darwin*)
23846        # PIC is the default on this platform
23847        # Common symbols not allowed in MH_DYLIB files
23848       case $cc_basename in
23849         xlc*)
23850         lt_prog_compiler_pic_GCJ='-qnocommon'
23851         lt_prog_compiler_wl_GCJ='-Wl,'
23852         ;;
23853       esac
23854       ;;
23855
23856    mingw* | cygwin* | pw32* | os2*)
23857      # This hack is so that the source file can tell whether it is being
23858      # built for inclusion in a dll (and should export symbols for example).
23859
23860      ;;
23861
23862    hpux9* | hpux10* | hpux11*)
23863      lt_prog_compiler_wl_GCJ='-Wl,'
23864      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23865      # not for PA HP-UX.
23866      case $host_cpu in
23867      hppa*64*|ia64*)
23868	# +Z the default
23869	;;
23870      *)
23871	lt_prog_compiler_pic_GCJ='+Z'
23872	;;
23873      esac
23874      # Is there a better lt_prog_compiler_static that works with the bundled CC?
23875      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23876      ;;
23877
23878    irix5* | irix6* | nonstopux*)
23879      lt_prog_compiler_wl_GCJ='-Wl,'
23880      # PIC (with -KPIC) is the default.
23881      lt_prog_compiler_static_GCJ='-non_shared'
23882      ;;
23883
23884    newsos6)
23885      lt_prog_compiler_pic_GCJ='-KPIC'
23886      lt_prog_compiler_static_GCJ='-Bstatic'
23887      ;;
23888
23889    linux* | k*bsd*-gnu)
23890      case $cc_basename in
23891      icc* | ecc*)
23892	lt_prog_compiler_wl_GCJ='-Wl,'
23893	lt_prog_compiler_pic_GCJ='-KPIC'
23894	lt_prog_compiler_static_GCJ='-static'
23895        ;;
23896      pgcc* | pgf77* | pgf90* | pgf95*)
23897        # Portland Group compilers (*not* the Pentium gcc compiler,
23898	# which looks to be a dead project)
23899	lt_prog_compiler_wl_GCJ='-Wl,'
23900	lt_prog_compiler_pic_GCJ='-fpic'
23901	lt_prog_compiler_static_GCJ='-Bstatic'
23902        ;;
23903      ccc*)
23904        lt_prog_compiler_wl_GCJ='-Wl,'
23905        # All Alpha code is PIC.
23906        lt_prog_compiler_static_GCJ='-non_shared'
23907        ;;
23908      *)
23909        case `$CC -V 2>&1 | sed 5q` in
23910	*Sun\ C*)
23911	  # Sun C 5.9
23912	  lt_prog_compiler_pic_GCJ='-KPIC'
23913	  lt_prog_compiler_static_GCJ='-Bstatic'
23914	  lt_prog_compiler_wl_GCJ='-Wl,'
23915	  ;;
23916	*Sun\ F*)
23917	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
23918	  lt_prog_compiler_pic_GCJ='-KPIC'
23919	  lt_prog_compiler_static_GCJ='-Bstatic'
23920	  lt_prog_compiler_wl_GCJ=''
23921	  ;;
23922	esac
23923	;;
23924      esac
23925      ;;
23926
23927    osf3* | osf4* | osf5*)
23928      lt_prog_compiler_wl_GCJ='-Wl,'
23929      # All OSF/1 code is PIC.
23930      lt_prog_compiler_static_GCJ='-non_shared'
23931      ;;
23932
23933    rdos*)
23934      lt_prog_compiler_static_GCJ='-non_shared'
23935      ;;
23936
23937    solaris*)
23938      lt_prog_compiler_pic_GCJ='-KPIC'
23939      lt_prog_compiler_static_GCJ='-Bstatic'
23940      case $cc_basename in
23941      f77* | f90* | f95*)
23942	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23943      *)
23944	lt_prog_compiler_wl_GCJ='-Wl,';;
23945      esac
23946      ;;
23947
23948    sunos4*)
23949      lt_prog_compiler_wl_GCJ='-Qoption ld '
23950      lt_prog_compiler_pic_GCJ='-PIC'
23951      lt_prog_compiler_static_GCJ='-Bstatic'
23952      ;;
23953
23954    sysv4 | sysv4.2uw2* | sysv4.3*)
23955      lt_prog_compiler_wl_GCJ='-Wl,'
23956      lt_prog_compiler_pic_GCJ='-KPIC'
23957      lt_prog_compiler_static_GCJ='-Bstatic'
23958      ;;
23959
23960    sysv4*MP*)
23961      if test -d /usr/nec ;then
23962	lt_prog_compiler_pic_GCJ='-Kconform_pic'
23963	lt_prog_compiler_static_GCJ='-Bstatic'
23964      fi
23965      ;;
23966
23967    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23968      lt_prog_compiler_wl_GCJ='-Wl,'
23969      lt_prog_compiler_pic_GCJ='-KPIC'
23970      lt_prog_compiler_static_GCJ='-Bstatic'
23971      ;;
23972
23973    unicos*)
23974      lt_prog_compiler_wl_GCJ='-Wl,'
23975      lt_prog_compiler_can_build_shared_GCJ=no
23976      ;;
23977
23978    uts4*)
23979      lt_prog_compiler_pic_GCJ='-pic'
23980      lt_prog_compiler_static_GCJ='-Bstatic'
23981      ;;
23982
23983    *)
23984      lt_prog_compiler_can_build_shared_GCJ=no
23985      ;;
23986    esac
23987  fi
23988
23989{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23990echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23991
23992#
23993# Check to make sure the PIC flag actually works.
23994#
23995if test -n "$lt_prog_compiler_pic_GCJ"; then
23996
23997{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23998echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23999if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
24000  echo $ECHO_N "(cached) $ECHO_C" >&6
24001else
24002  lt_cv_prog_compiler_pic_works_GCJ=no
24003  ac_outfile=conftest.$ac_objext
24004   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24005   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24006   # Insert the option either (1) after the last *FLAGS variable, or
24007   # (2) before a word containing "conftest.", or (3) at the end.
24008   # Note that $ac_compile itself does not contain backslashes and begins
24009   # with a dollar sign (not a hyphen), so the echo should work correctly.
24010   # The option is referenced via a variable to avoid confusing sed.
24011   lt_compile=`echo "$ac_compile" | $SED \
24012   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24013   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24014   -e 's:$: $lt_compiler_flag:'`
24015   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
24016   (eval "$lt_compile" 2>conftest.err)
24017   ac_status=$?
24018   cat conftest.err >&5
24019   echo "$as_me:__oline__: \$? = $ac_status" >&5
24020   if (exit $ac_status) && test -s "$ac_outfile"; then
24021     # The compiler can only warn and ignore the option if not recognized
24022     # So say no if there are warnings other than the usual output.
24023     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24024     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24025     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24026       lt_cv_prog_compiler_pic_works_GCJ=yes
24027     fi
24028   fi
24029   $rm conftest*
24030
24031fi
24032{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
24033echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
24034
24035if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
24036    case $lt_prog_compiler_pic_GCJ in
24037     "" | " "*) ;;
24038     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24039     esac
24040else
24041    lt_prog_compiler_pic_GCJ=
24042     lt_prog_compiler_can_build_shared_GCJ=no
24043fi
24044
24045fi
24046case $host_os in
24047  # For platforms which do not support PIC, -DPIC is meaningless:
24048  *djgpp*)
24049    lt_prog_compiler_pic_GCJ=
24050    ;;
24051  *)
24052    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24053    ;;
24054esac
24055
24056#
24057# Check to make sure the static flag actually works.
24058#
24059wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24060{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24061echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24062if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
24063  echo $ECHO_N "(cached) $ECHO_C" >&6
24064else
24065  lt_cv_prog_compiler_static_works_GCJ=no
24066   save_LDFLAGS="$LDFLAGS"
24067   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24068   echo "$lt_simple_link_test_code" > conftest.$ac_ext
24069   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24070     # The linker can only warn and ignore the option if not recognized
24071     # So say no if there are warnings
24072     if test -s conftest.err; then
24073       # Append any errors to the config.log.
24074       cat conftest.err 1>&5
24075       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24076       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24077       if diff conftest.exp conftest.er2 >/dev/null; then
24078         lt_cv_prog_compiler_static_works_GCJ=yes
24079       fi
24080     else
24081       lt_cv_prog_compiler_static_works_GCJ=yes
24082     fi
24083   fi
24084   $rm -r conftest*
24085   LDFLAGS="$save_LDFLAGS"
24086
24087fi
24088{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
24089echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
24090
24091if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
24092    :
24093else
24094    lt_prog_compiler_static_GCJ=
24095fi
24096
24097
24098{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24099echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
24100if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24101  echo $ECHO_N "(cached) $ECHO_C" >&6
24102else
24103  lt_cv_prog_compiler_c_o_GCJ=no
24104   $rm -r conftest 2>/dev/null
24105   mkdir conftest
24106   cd conftest
24107   mkdir out
24108   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24109
24110   lt_compiler_flag="-o out/conftest2.$ac_objext"
24111   # Insert the option either (1) after the last *FLAGS variable, or
24112   # (2) before a word containing "conftest.", or (3) at the end.
24113   # Note that $ac_compile itself does not contain backslashes and begins
24114   # with a dollar sign (not a hyphen), so the echo should work correctly.
24115   lt_compile=`echo "$ac_compile" | $SED \
24116   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24117   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24118   -e 's:$: $lt_compiler_flag:'`
24119   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
24120   (eval "$lt_compile" 2>out/conftest.err)
24121   ac_status=$?
24122   cat out/conftest.err >&5
24123   echo "$as_me:__oline__: \$? = $ac_status" >&5
24124   if (exit $ac_status) && test -s out/conftest2.$ac_objext
24125   then
24126     # The compiler can only warn and ignore the option if not recognized
24127     # So say no if there are warnings
24128     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24129     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24130     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24131       lt_cv_prog_compiler_c_o_GCJ=yes
24132     fi
24133   fi
24134   chmod u+w . 2>&5
24135   $rm conftest*
24136   # SGI C++ compiler will create directory out/ii_files/ for
24137   # template instantiation
24138   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24139   $rm out/* && rmdir out
24140   cd ..
24141   rmdir conftest
24142   $rm conftest*
24143
24144fi
24145{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24146echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
24147
24148
24149hard_links="nottested"
24150if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24151  # do not overwrite the value of need_locks provided by the user
24152  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24153echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
24154  hard_links=yes
24155  $rm conftest*
24156  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24157  touch conftest.a
24158  ln conftest.a conftest.b 2>&5 || hard_links=no
24159  ln conftest.a conftest.b 2>/dev/null && hard_links=no
24160  { echo "$as_me:$LINENO: result: $hard_links" >&5
24161echo "${ECHO_T}$hard_links" >&6; }
24162  if test "$hard_links" = no; then
24163    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24164echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24165    need_locks=warn
24166  fi
24167else
24168  need_locks=no
24169fi
24170
24171{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24172echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
24173
24174  runpath_var=
24175  allow_undefined_flag_GCJ=
24176  enable_shared_with_static_runtimes_GCJ=no
24177  archive_cmds_GCJ=
24178  archive_expsym_cmds_GCJ=
24179  old_archive_From_new_cmds_GCJ=
24180  old_archive_from_expsyms_cmds_GCJ=
24181  export_dynamic_flag_spec_GCJ=
24182  whole_archive_flag_spec_GCJ=
24183  thread_safe_flag_spec_GCJ=
24184  hardcode_libdir_flag_spec_GCJ=
24185  hardcode_libdir_flag_spec_ld_GCJ=
24186  hardcode_libdir_separator_GCJ=
24187  hardcode_direct_GCJ=no
24188  hardcode_minus_L_GCJ=no
24189  hardcode_shlibpath_var_GCJ=unsupported
24190  link_all_deplibs_GCJ=unknown
24191  hardcode_automatic_GCJ=no
24192  module_cmds_GCJ=
24193  module_expsym_cmds_GCJ=
24194  always_export_symbols_GCJ=no
24195  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24196  # include_expsyms should be a list of space-separated symbols to be *always*
24197  # included in the symbol list
24198  include_expsyms_GCJ=
24199  # exclude_expsyms can be an extended regexp of symbols to exclude
24200  # it will be wrapped by ` (' and `)$', so one must not match beginning or
24201  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24202  # as well as any symbol that contains `d'.
24203  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
24204  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24205  # platforms (ab)use it in PIC code, but their linkers get confused if
24206  # the symbol is explicitly referenced.  Since portable code cannot
24207  # rely on this symbol name, it's probably fine to never include it in
24208  # preloaded symbol tables.
24209  # Exclude shared library initialization/finalization symbols.
24210  extract_expsyms_cmds=
24211  # Just being paranoid about ensuring that cc_basename is set.
24212  for cc_temp in $compiler""; do
24213  case $cc_temp in
24214    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24215    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24216    \-*) ;;
24217    *) break;;
24218  esac
24219done
24220cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24221
24222  case $host_os in
24223  cygwin* | mingw* | pw32*)
24224    # FIXME: the MSVC++ port hasn't been tested in a loooong time
24225    # When not using gcc, we currently assume that we are using
24226    # Microsoft Visual C++.
24227    if test "$GCC" != yes; then
24228      with_gnu_ld=no
24229    fi
24230    ;;
24231  interix*)
24232    # we just hope/assume this is gcc and not c89 (= MSVC++)
24233    with_gnu_ld=yes
24234    ;;
24235  openbsd*)
24236    with_gnu_ld=no
24237    ;;
24238  esac
24239
24240  ld_shlibs_GCJ=yes
24241  if test "$with_gnu_ld" = yes; then
24242    # If archive_cmds runs LD, not CC, wlarc should be empty
24243    wlarc='${wl}'
24244
24245    # Set some defaults for GNU ld with shared library support. These
24246    # are reset later if shared libraries are not supported. Putting them
24247    # here allows them to be overridden if necessary.
24248    runpath_var=LD_RUN_PATH
24249    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24250    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24251    # ancient GNU ld didn't support --whole-archive et. al.
24252    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24253	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24254      else
24255  	whole_archive_flag_spec_GCJ=
24256    fi
24257    supports_anon_versioning=no
24258    case `$LD -v 2>/dev/null` in
24259      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24260      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24261      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24262      *\ 2.11.*) ;; # other 2.11 versions
24263      *) supports_anon_versioning=yes ;;
24264    esac
24265
24266    # See if GNU ld supports shared libraries.
24267    case $host_os in
24268    aix[3-9]*)
24269      # On AIX/PPC, the GNU linker is very broken
24270      if test "$host_cpu" != ia64; then
24271	ld_shlibs_GCJ=no
24272	cat <<EOF 1>&2
24273
24274*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24275*** to be unable to reliably create shared libraries on AIX.
24276*** Therefore, libtool is disabling shared libraries support.  If you
24277*** really care for shared libraries, you may want to modify your PATH
24278*** so that a non-GNU linker is found, and then restart.
24279
24280EOF
24281      fi
24282      ;;
24283
24284    amigaos*)
24285      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)'
24286      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24287      hardcode_minus_L_GCJ=yes
24288
24289      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24290      # that the semantics of dynamic libraries on AmigaOS, at least up
24291      # to version 4, is to share data among multiple programs linked
24292      # with the same dynamic library.  Since this doesn't match the
24293      # behavior of shared libraries on other platforms, we can't use
24294      # them.
24295      ld_shlibs_GCJ=no
24296      ;;
24297
24298    beos*)
24299      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24300	allow_undefined_flag_GCJ=unsupported
24301	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24302	# support --undefined.  This deserves some investigation.  FIXME
24303	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24304      else
24305	ld_shlibs_GCJ=no
24306      fi
24307      ;;
24308
24309    cygwin* | mingw* | pw32*)
24310      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24311      # as there is no search path for DLLs.
24312      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24313      allow_undefined_flag_GCJ=unsupported
24314      always_export_symbols_GCJ=no
24315      enable_shared_with_static_runtimes_GCJ=yes
24316      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
24317
24318      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24319        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24320	# If the export-symbols file already is a .def file (1st line
24321	# is EXPORTS), use it as is; otherwise, prepend...
24322	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24323	  cp $export_symbols $output_objdir/$soname.def;
24324	else
24325	  echo EXPORTS > $output_objdir/$soname.def;
24326	  cat $export_symbols >> $output_objdir/$soname.def;
24327	fi~
24328	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24329      else
24330	ld_shlibs_GCJ=no
24331      fi
24332      ;;
24333
24334    interix[3-9]*)
24335      hardcode_direct_GCJ=no
24336      hardcode_shlibpath_var_GCJ=no
24337      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24338      export_dynamic_flag_spec_GCJ='${wl}-E'
24339      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24340      # Instead, shared libraries are loaded at an image base (0x10000000 by
24341      # default) and relocated if they conflict, which is a slow very memory
24342      # consuming and fragmenting process.  To avoid this, we pick a random,
24343      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24344      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
24345      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'
24346      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'
24347      ;;
24348
24349    gnu* | linux* | k*bsd*-gnu)
24350      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24351	tmp_addflag=
24352	case $cc_basename,$host_cpu in
24353	pgcc*)				# Portland Group C compiler
24354	  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'
24355	  tmp_addflag=' $pic_flag'
24356	  ;;
24357	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
24358	  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'
24359	  tmp_addflag=' $pic_flag -Mnomain' ;;
24360	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
24361	  tmp_addflag=' -i_dynamic' ;;
24362	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
24363	  tmp_addflag=' -i_dynamic -nofor_main' ;;
24364	ifc* | ifort*)			# Intel Fortran compiler
24365	  tmp_addflag=' -nofor_main' ;;
24366	esac
24367	case `$CC -V 2>&1 | sed 5q` in
24368	*Sun\ C*)			# Sun C 5.9
24369	  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'
24370	  tmp_sharedflag='-G' ;;
24371	*Sun\ F*)			# Sun Fortran 8.3
24372	  tmp_sharedflag='-G' ;;
24373	*)
24374	  tmp_sharedflag='-shared' ;;
24375	esac
24376	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24377
24378	if test $supports_anon_versioning = yes; then
24379	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24380  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24381  $echo "local: *; };" >> $output_objdir/$libname.ver~
24382	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24383	fi
24384      else
24385	ld_shlibs_GCJ=no
24386      fi
24387      ;;
24388
24389    netbsd*)
24390      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24391	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24392	wlarc=
24393      else
24394	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24395	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24396      fi
24397      ;;
24398
24399    solaris*)
24400      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24401	ld_shlibs_GCJ=no
24402	cat <<EOF 1>&2
24403
24404*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24405*** create shared libraries on Solaris systems.  Therefore, libtool
24406*** is disabling shared libraries support.  We urge you to upgrade GNU
24407*** binutils to release 2.9.1 or newer.  Another option is to modify
24408*** your PATH or compiler configuration so that the native linker is
24409*** used, and then restart.
24410
24411EOF
24412      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24413	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24414	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24415      else
24416	ld_shlibs_GCJ=no
24417      fi
24418      ;;
24419
24420    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24421      case `$LD -v 2>&1` in
24422        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24423	ld_shlibs_GCJ=no
24424	cat <<_LT_EOF 1>&2
24425
24426*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24427*** reliably create shared libraries on SCO systems.  Therefore, libtool
24428*** is disabling shared libraries support.  We urge you to upgrade GNU
24429*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24430*** your PATH or compiler configuration so that the native linker is
24431*** used, and then restart.
24432
24433_LT_EOF
24434	;;
24435	*)
24436	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24437	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24438	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24439	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24440	  else
24441	    ld_shlibs_GCJ=no
24442	  fi
24443	;;
24444      esac
24445      ;;
24446
24447    sunos4*)
24448      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24449      wlarc=
24450      hardcode_direct_GCJ=yes
24451      hardcode_shlibpath_var_GCJ=no
24452      ;;
24453
24454    *)
24455      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24456	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24457	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24458      else
24459	ld_shlibs_GCJ=no
24460      fi
24461      ;;
24462    esac
24463
24464    if test "$ld_shlibs_GCJ" = no; then
24465      runpath_var=
24466      hardcode_libdir_flag_spec_GCJ=
24467      export_dynamic_flag_spec_GCJ=
24468      whole_archive_flag_spec_GCJ=
24469    fi
24470  else
24471    # PORTME fill in a description of your system's linker (not GNU ld)
24472    case $host_os in
24473    aix3*)
24474      allow_undefined_flag_GCJ=unsupported
24475      always_export_symbols_GCJ=yes
24476      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'
24477      # Note: this linker hardcodes the directories in LIBPATH if there
24478      # are no directories specified by -L.
24479      hardcode_minus_L_GCJ=yes
24480      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24481	# Neither direct hardcoding nor static linking is supported with a
24482	# broken collect2.
24483	hardcode_direct_GCJ=unsupported
24484      fi
24485      ;;
24486
24487    aix[4-9]*)
24488      if test "$host_cpu" = ia64; then
24489	# On IA64, the linker does run time linking by default, so we don't
24490	# have to do anything special.
24491	aix_use_runtimelinking=no
24492	exp_sym_flag='-Bexport'
24493	no_entry_flag=""
24494      else
24495	# If we're using GNU nm, then we don't want the "-C" option.
24496	# -C means demangle to AIX nm, but means don't demangle with GNU nm
24497	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24498	  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'
24499	else
24500	  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'
24501	fi
24502	aix_use_runtimelinking=no
24503
24504	# Test if we are trying to use run time linking or normal
24505	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
24506	# need to do runtime linking.
24507	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
24508	  for ld_flag in $LDFLAGS; do
24509  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24510  	    aix_use_runtimelinking=yes
24511  	    break
24512  	  fi
24513	  done
24514	  ;;
24515	esac
24516
24517	exp_sym_flag='-bexport'
24518	no_entry_flag='-bnoentry'
24519      fi
24520
24521      # When large executables or shared objects are built, AIX ld can
24522      # have problems creating the table of contents.  If linking a library
24523      # or program results in "error TOC overflow" add -mminimal-toc to
24524      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24525      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24526
24527      archive_cmds_GCJ=''
24528      hardcode_direct_GCJ=yes
24529      hardcode_libdir_separator_GCJ=':'
24530      link_all_deplibs_GCJ=yes
24531
24532      if test "$GCC" = yes; then
24533	case $host_os in aix4.[012]|aix4.[012].*)
24534	# We only want to do this on AIX 4.2 and lower, the check
24535	# below for broken collect2 doesn't work under 4.3+
24536	  collect2name=`${CC} -print-prog-name=collect2`
24537	  if test -f "$collect2name" && \
24538  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
24539	  then
24540  	  # We have reworked collect2
24541  	  :
24542	  else
24543  	  # We have old collect2
24544  	  hardcode_direct_GCJ=unsupported
24545  	  # It fails to find uninstalled libraries when the uninstalled
24546  	  # path is not listed in the libpath.  Setting hardcode_minus_L
24547  	  # to unsupported forces relinking
24548  	  hardcode_minus_L_GCJ=yes
24549  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
24550  	  hardcode_libdir_separator_GCJ=
24551	  fi
24552	  ;;
24553	esac
24554	shared_flag='-shared'
24555	if test "$aix_use_runtimelinking" = yes; then
24556	  shared_flag="$shared_flag "'${wl}-G'
24557	fi
24558      else
24559	# not using gcc
24560	if test "$host_cpu" = ia64; then
24561  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24562  	# chokes on -Wl,-G. The following line is correct:
24563	  shared_flag='-G'
24564	else
24565	  if test "$aix_use_runtimelinking" = yes; then
24566	    shared_flag='${wl}-G'
24567	  else
24568	    shared_flag='${wl}-bM:SRE'
24569	  fi
24570	fi
24571      fi
24572
24573      # It seems that -bexpall does not export symbols beginning with
24574      # underscore (_), so it is better to generate a list of symbols to export.
24575      always_export_symbols_GCJ=yes
24576      if test "$aix_use_runtimelinking" = yes; then
24577	# Warning - without using the other runtime loading flags (-brtl),
24578	# -berok will link without error, but may produce a broken library.
24579	allow_undefined_flag_GCJ='-berok'
24580       # Determine the default libpath from the value encoded in an empty executable.
24581       cat >conftest.$ac_ext <<_ACEOF
24582/* confdefs.h.  */
24583_ACEOF
24584cat confdefs.h >>conftest.$ac_ext
24585cat >>conftest.$ac_ext <<_ACEOF
24586/* end confdefs.h.  */
24587
24588int
24589main ()
24590{
24591
24592  ;
24593  return 0;
24594}
24595_ACEOF
24596rm -f conftest.$ac_objext conftest$ac_exeext
24597if { (ac_try="$ac_link"
24598case "(($ac_try" in
24599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24600  *) ac_try_echo=$ac_try;;
24601esac
24602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24603  (eval "$ac_link") 2>conftest.er1
24604  ac_status=$?
24605  grep -v '^ *+' conftest.er1 >conftest.err
24606  rm -f conftest.er1
24607  cat conftest.err >&5
24608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609  (exit $ac_status); } && {
24610	 test -z "$ac_cxx_werror_flag" ||
24611	 test ! -s conftest.err
24612       } && test -s conftest$ac_exeext &&
24613       $as_test_x conftest$ac_exeext; then
24614
24615lt_aix_libpath_sed='
24616    /Import File Strings/,/^$/ {
24617	/^0/ {
24618	    s/^0  *\(.*\)$/\1/
24619	    p
24620	}
24621    }'
24622aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24623# Check for a 64-bit object if we didn't find anything.
24624if test -z "$aix_libpath"; then
24625  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24626fi
24627else
24628  echo "$as_me: failed program was:" >&5
24629sed 's/^/| /' conftest.$ac_ext >&5
24630
24631
24632fi
24633
24634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24635      conftest$ac_exeext conftest.$ac_ext
24636if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24637
24638       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24639	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"
24640       else
24641	if test "$host_cpu" = ia64; then
24642	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24643	  allow_undefined_flag_GCJ="-z nodefs"
24644	  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"
24645	else
24646	 # Determine the default libpath from the value encoded in an empty executable.
24647	 cat >conftest.$ac_ext <<_ACEOF
24648/* confdefs.h.  */
24649_ACEOF
24650cat confdefs.h >>conftest.$ac_ext
24651cat >>conftest.$ac_ext <<_ACEOF
24652/* end confdefs.h.  */
24653
24654int
24655main ()
24656{
24657
24658  ;
24659  return 0;
24660}
24661_ACEOF
24662rm -f conftest.$ac_objext conftest$ac_exeext
24663if { (ac_try="$ac_link"
24664case "(($ac_try" in
24665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24666  *) ac_try_echo=$ac_try;;
24667esac
24668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24669  (eval "$ac_link") 2>conftest.er1
24670  ac_status=$?
24671  grep -v '^ *+' conftest.er1 >conftest.err
24672  rm -f conftest.er1
24673  cat conftest.err >&5
24674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675  (exit $ac_status); } && {
24676	 test -z "$ac_cxx_werror_flag" ||
24677	 test ! -s conftest.err
24678       } && test -s conftest$ac_exeext &&
24679       $as_test_x conftest$ac_exeext; then
24680
24681lt_aix_libpath_sed='
24682    /Import File Strings/,/^$/ {
24683	/^0/ {
24684	    s/^0  *\(.*\)$/\1/
24685	    p
24686	}
24687    }'
24688aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24689# Check for a 64-bit object if we didn't find anything.
24690if test -z "$aix_libpath"; then
24691  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24692fi
24693else
24694  echo "$as_me: failed program was:" >&5
24695sed 's/^/| /' conftest.$ac_ext >&5
24696
24697
24698fi
24699
24700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24701      conftest$ac_exeext conftest.$ac_ext
24702if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24703
24704	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24705	  # Warning - without using the other run time loading flags,
24706	  # -berok will link without error, but may produce a broken library.
24707	  no_undefined_flag_GCJ=' ${wl}-bernotok'
24708	  allow_undefined_flag_GCJ=' ${wl}-berok'
24709	  # Exported symbols can be pulled into shared objects from archives
24710	  whole_archive_flag_spec_GCJ='$convenience'
24711	  archive_cmds_need_lc_GCJ=yes
24712	  # This is similar to how AIX traditionally builds its shared libraries.
24713	  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'
24714	fi
24715      fi
24716      ;;
24717
24718    amigaos*)
24719      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)'
24720      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24721      hardcode_minus_L_GCJ=yes
24722      # see comment about different semantics on the GNU ld section
24723      ld_shlibs_GCJ=no
24724      ;;
24725
24726    bsdi[45]*)
24727      export_dynamic_flag_spec_GCJ=-rdynamic
24728      ;;
24729
24730    cygwin* | mingw* | pw32*)
24731      # When not using gcc, we currently assume that we are using
24732      # Microsoft Visual C++.
24733      # hardcode_libdir_flag_spec is actually meaningless, as there is
24734      # no search path for DLLs.
24735      hardcode_libdir_flag_spec_GCJ=' '
24736      allow_undefined_flag_GCJ=unsupported
24737      # Tell ltmain to make .lib files, not .a files.
24738      libext=lib
24739      # Tell ltmain to make .dll files, not .so files.
24740      shrext_cmds=".dll"
24741      # FIXME: Setting linknames here is a bad hack.
24742      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24743      # The linker will automatically build a .lib file if we build a DLL.
24744      old_archive_From_new_cmds_GCJ='true'
24745      # FIXME: Should let the user specify the lib program.
24746      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
24747      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24748      enable_shared_with_static_runtimes_GCJ=yes
24749      ;;
24750
24751    darwin* | rhapsody*)
24752      case $host_os in
24753        rhapsody* | darwin1.[012])
24754         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24755         ;;
24756       *) # Darwin 1.3 on
24757         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24758           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24759         else
24760           case ${MACOSX_DEPLOYMENT_TARGET} in
24761             10.[012])
24762               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24763               ;;
24764             10.*)
24765               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24766               ;;
24767           esac
24768         fi
24769         ;;
24770      esac
24771      archive_cmds_need_lc_GCJ=no
24772      hardcode_direct_GCJ=no
24773      hardcode_automatic_GCJ=yes
24774      hardcode_shlibpath_var_GCJ=unsupported
24775      whole_archive_flag_spec_GCJ=''
24776      link_all_deplibs_GCJ=yes
24777    if test "$GCC" = yes ; then
24778    	output_verbose_link_cmd='echo'
24779        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
24780        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
24781        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
24782        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
24783    else
24784      case $cc_basename in
24785        xlc*)
24786         output_verbose_link_cmd='echo'
24787         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
24788         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24789          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24790         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24791          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}'
24792          ;;
24793       *)
24794         ld_shlibs_GCJ=no
24795          ;;
24796      esac
24797    fi
24798      ;;
24799
24800    dgux*)
24801      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24802      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24803      hardcode_shlibpath_var_GCJ=no
24804      ;;
24805
24806    freebsd1*)
24807      ld_shlibs_GCJ=no
24808      ;;
24809
24810    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24811    # support.  Future versions do this automatically, but an explicit c++rt0.o
24812    # does not break anything, and helps significantly (at the cost of a little
24813    # extra space).
24814    freebsd2.2*)
24815      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24816      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24817      hardcode_direct_GCJ=yes
24818      hardcode_shlibpath_var_GCJ=no
24819      ;;
24820
24821    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24822    freebsd2*)
24823      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24824      hardcode_direct_GCJ=yes
24825      hardcode_minus_L_GCJ=yes
24826      hardcode_shlibpath_var_GCJ=no
24827      ;;
24828
24829    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24830    freebsd* | dragonfly*)
24831      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24832      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24833      hardcode_direct_GCJ=yes
24834      hardcode_shlibpath_var_GCJ=no
24835      ;;
24836
24837    hpux9*)
24838      if test "$GCC" = yes; then
24839	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'
24840      else
24841	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'
24842      fi
24843      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24844      hardcode_libdir_separator_GCJ=:
24845      hardcode_direct_GCJ=yes
24846
24847      # hardcode_minus_L: Not really in the search PATH,
24848      # but as the default location of the library.
24849      hardcode_minus_L_GCJ=yes
24850      export_dynamic_flag_spec_GCJ='${wl}-E'
24851      ;;
24852
24853    hpux10*)
24854      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24855	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24856      else
24857	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24858      fi
24859      if test "$with_gnu_ld" = no; then
24860	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24861	hardcode_libdir_separator_GCJ=:
24862
24863	hardcode_direct_GCJ=yes
24864	export_dynamic_flag_spec_GCJ='${wl}-E'
24865
24866	# hardcode_minus_L: Not really in the search PATH,
24867	# but as the default location of the library.
24868	hardcode_minus_L_GCJ=yes
24869      fi
24870      ;;
24871
24872    hpux11*)
24873      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24874	case $host_cpu in
24875	hppa*64*)
24876	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24877	  ;;
24878	ia64*)
24879	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24880	  ;;
24881	*)
24882	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24883	  ;;
24884	esac
24885      else
24886	case $host_cpu in
24887	hppa*64*)
24888	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24889	  ;;
24890	ia64*)
24891	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24892	  ;;
24893	*)
24894	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24895	  ;;
24896	esac
24897      fi
24898      if test "$with_gnu_ld" = no; then
24899	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24900	hardcode_libdir_separator_GCJ=:
24901
24902	case $host_cpu in
24903	hppa*64*|ia64*)
24904	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24905	  hardcode_direct_GCJ=no
24906	  hardcode_shlibpath_var_GCJ=no
24907	  ;;
24908	*)
24909	  hardcode_direct_GCJ=yes
24910	  export_dynamic_flag_spec_GCJ='${wl}-E'
24911
24912	  # hardcode_minus_L: Not really in the search PATH,
24913	  # but as the default location of the library.
24914	  hardcode_minus_L_GCJ=yes
24915	  ;;
24916	esac
24917      fi
24918      ;;
24919
24920    irix5* | irix6* | nonstopux*)
24921      if test "$GCC" = yes; then
24922	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'
24923      else
24924	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'
24925	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24926      fi
24927      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24928      hardcode_libdir_separator_GCJ=:
24929      link_all_deplibs_GCJ=yes
24930      ;;
24931
24932    netbsd*)
24933      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24934	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24935      else
24936	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24937      fi
24938      hardcode_libdir_flag_spec_GCJ='-R$libdir'
24939      hardcode_direct_GCJ=yes
24940      hardcode_shlibpath_var_GCJ=no
24941      ;;
24942
24943    newsos6)
24944      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24945      hardcode_direct_GCJ=yes
24946      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24947      hardcode_libdir_separator_GCJ=:
24948      hardcode_shlibpath_var_GCJ=no
24949      ;;
24950
24951    openbsd*)
24952      if test -f /usr/libexec/ld.so; then
24953	hardcode_direct_GCJ=yes
24954	hardcode_shlibpath_var_GCJ=no
24955	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24956	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24957	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24958	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24959	  export_dynamic_flag_spec_GCJ='${wl}-E'
24960	else
24961	  case $host_os in
24962	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24963	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24964	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
24965	     ;;
24966	   *)
24967	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24968	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24969	     ;;
24970	  esac
24971        fi
24972      else
24973	ld_shlibs_GCJ=no
24974      fi
24975      ;;
24976
24977    os2*)
24978      hardcode_libdir_flag_spec_GCJ='-L$libdir'
24979      hardcode_minus_L_GCJ=yes
24980      allow_undefined_flag_GCJ=unsupported
24981      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'
24982      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24983      ;;
24984
24985    osf3*)
24986      if test "$GCC" = yes; then
24987	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24988	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'
24989      else
24990	allow_undefined_flag_GCJ=' -expect_unresolved \*'
24991	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'
24992      fi
24993      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24994      hardcode_libdir_separator_GCJ=:
24995      ;;
24996
24997    osf4* | osf5*)	# as osf3* with the addition of -msym flag
24998      if test "$GCC" = yes; then
24999	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25000	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'
25001	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25002      else
25003	allow_undefined_flag_GCJ=' -expect_unresolved \*'
25004	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'
25005	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~
25006	$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'
25007
25008	# Both c and cxx compiler support -rpath directly
25009	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25010      fi
25011      hardcode_libdir_separator_GCJ=:
25012      ;;
25013
25014    solaris*)
25015      no_undefined_flag_GCJ=' -z text'
25016      if test "$GCC" = yes; then
25017	wlarc='${wl}'
25018	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25019	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25020	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25021      else
25022	wlarc=''
25023	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25024	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25025  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25026      fi
25027      hardcode_libdir_flag_spec_GCJ='-R$libdir'
25028      hardcode_shlibpath_var_GCJ=no
25029      case $host_os in
25030      solaris2.[0-5] | solaris2.[0-5].*) ;;
25031      *)
25032	# The compiler driver will combine and reorder linker options,
25033	# but understands `-z linker_flag'.  GCC discards it without `$wl',
25034	# but is careful enough not to reorder.
25035 	# Supported since Solaris 2.6 (maybe 2.5.1?)
25036	if test "$GCC" = yes; then
25037	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
25038	else
25039	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
25040	fi
25041	;;
25042      esac
25043      link_all_deplibs_GCJ=yes
25044      ;;
25045
25046    sunos4*)
25047      if test "x$host_vendor" = xsequent; then
25048	# Use $CC to link under sequent, because it throws in some extra .o
25049	# files that make .init and .fini sections work.
25050	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25051      else
25052	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25053      fi
25054      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25055      hardcode_direct_GCJ=yes
25056      hardcode_minus_L_GCJ=yes
25057      hardcode_shlibpath_var_GCJ=no
25058      ;;
25059
25060    sysv4)
25061      case $host_vendor in
25062	sni)
25063	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25064	  hardcode_direct_GCJ=yes # is this really true???
25065	;;
25066	siemens)
25067	  ## LD is ld it makes a PLAMLIB
25068	  ## CC just makes a GrossModule.
25069	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25070	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25071	  hardcode_direct_GCJ=no
25072        ;;
25073	motorola)
25074	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25075	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25076	;;
25077      esac
25078      runpath_var='LD_RUN_PATH'
25079      hardcode_shlibpath_var_GCJ=no
25080      ;;
25081
25082    sysv4.3*)
25083      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25084      hardcode_shlibpath_var_GCJ=no
25085      export_dynamic_flag_spec_GCJ='-Bexport'
25086      ;;
25087
25088    sysv4*MP*)
25089      if test -d /usr/nec; then
25090	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25091	hardcode_shlibpath_var_GCJ=no
25092	runpath_var=LD_RUN_PATH
25093	hardcode_runpath_var=yes
25094	ld_shlibs_GCJ=yes
25095      fi
25096      ;;
25097
25098    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
25099      no_undefined_flag_GCJ='${wl}-z,text'
25100      archive_cmds_need_lc_GCJ=no
25101      hardcode_shlibpath_var_GCJ=no
25102      runpath_var='LD_RUN_PATH'
25103
25104      if test "$GCC" = yes; then
25105	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25106	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25107      else
25108	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25109	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25110      fi
25111      ;;
25112
25113    sysv5* | sco3.2v5* | sco5v6*)
25114      # Note: We can NOT use -z defs as we might desire, because we do not
25115      # link with -lc, and that would cause any symbols used from libc to
25116      # always be unresolved, which means just about no library would
25117      # ever link correctly.  If we're not using GNU ld we use -z text
25118      # though, which does catch some bad symbols but isn't as heavy-handed
25119      # as -z defs.
25120      no_undefined_flag_GCJ='${wl}-z,text'
25121      allow_undefined_flag_GCJ='${wl}-z,nodefs'
25122      archive_cmds_need_lc_GCJ=no
25123      hardcode_shlibpath_var_GCJ=no
25124      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25125      hardcode_libdir_separator_GCJ=':'
25126      link_all_deplibs_GCJ=yes
25127      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25128      runpath_var='LD_RUN_PATH'
25129
25130      if test "$GCC" = yes; then
25131	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25132	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25133      else
25134	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25135	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25136      fi
25137      ;;
25138
25139    uts4*)
25140      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25141      hardcode_libdir_flag_spec_GCJ='-L$libdir'
25142      hardcode_shlibpath_var_GCJ=no
25143      ;;
25144
25145    *)
25146      ld_shlibs_GCJ=no
25147      ;;
25148    esac
25149  fi
25150
25151{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25152echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
25153test "$ld_shlibs_GCJ" = no && can_build_shared=no
25154
25155#
25156# Do we need to explicitly link libc?
25157#
25158case "x$archive_cmds_need_lc_GCJ" in
25159x|xyes)
25160  # Assume -lc should be added
25161  archive_cmds_need_lc_GCJ=yes
25162
25163  if test "$enable_shared" = yes && test "$GCC" = yes; then
25164    case $archive_cmds_GCJ in
25165    *'~'*)
25166      # FIXME: we may have to deal with multi-command sequences.
25167      ;;
25168    '$CC '*)
25169      # Test whether the compiler implicitly links with -lc since on some
25170      # systems, -lgcc has to come before -lc. If gcc already passes -lc
25171      # to ld, don't add -lc before -lgcc.
25172      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25173echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
25174      $rm conftest*
25175      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
25176
25177      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25178  (eval $ac_compile) 2>&5
25179  ac_status=$?
25180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181  (exit $ac_status); } 2>conftest.err; then
25182        soname=conftest
25183        lib=conftest
25184        libobjs=conftest.$ac_objext
25185        deplibs=
25186        wl=$lt_prog_compiler_wl_GCJ
25187	pic_flag=$lt_prog_compiler_pic_GCJ
25188        compiler_flags=-v
25189        linker_flags=-v
25190        verstring=
25191        output_objdir=.
25192        libname=conftest
25193        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25194        allow_undefined_flag_GCJ=
25195        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25196  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25197  ac_status=$?
25198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199  (exit $ac_status); }
25200        then
25201	  archive_cmds_need_lc_GCJ=no
25202        else
25203	  archive_cmds_need_lc_GCJ=yes
25204        fi
25205        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25206      else
25207        cat conftest.err 1>&5
25208      fi
25209      $rm conftest*
25210      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25211echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
25212      ;;
25213    esac
25214  fi
25215  ;;
25216esac
25217
25218{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25219echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
25220library_names_spec=
25221libname_spec='lib$name'
25222soname_spec=
25223shrext_cmds=".so"
25224postinstall_cmds=
25225postuninstall_cmds=
25226finish_cmds=
25227finish_eval=
25228shlibpath_var=
25229shlibpath_overrides_runpath=unknown
25230version_type=none
25231dynamic_linker="$host_os ld.so"
25232sys_lib_dlsearch_path_spec="/lib /usr/lib"
25233
25234need_lib_prefix=unknown
25235hardcode_into_libs=no
25236
25237# when you set need_version to no, make sure it does not cause -set_version
25238# flags to be left without arguments
25239need_version=unknown
25240
25241case $host_os in
25242aix3*)
25243  version_type=linux
25244  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25245  shlibpath_var=LIBPATH
25246
25247  # AIX 3 has no versioning support, so we append a major version to the name.
25248  soname_spec='${libname}${release}${shared_ext}$major'
25249  ;;
25250
25251aix[4-9]*)
25252  version_type=linux
25253  need_lib_prefix=no
25254  need_version=no
25255  hardcode_into_libs=yes
25256  if test "$host_cpu" = ia64; then
25257    # AIX 5 supports IA64
25258    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25259    shlibpath_var=LD_LIBRARY_PATH
25260  else
25261    # With GCC up to 2.95.x, collect2 would create an import file
25262    # for dependence libraries.  The import file would start with
25263    # the line `#! .'.  This would cause the generated library to
25264    # depend on `.', always an invalid library.  This was fixed in
25265    # development snapshots of GCC prior to 3.0.
25266    case $host_os in
25267      aix4 | aix4.[01] | aix4.[01].*)
25268      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25269	   echo ' yes '
25270	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25271	:
25272      else
25273	can_build_shared=no
25274      fi
25275      ;;
25276    esac
25277    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25278    # soname into executable. Probably we can add versioning support to
25279    # collect2, so additional links can be useful in future.
25280    if test "$aix_use_runtimelinking" = yes; then
25281      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25282      # instead of lib<name>.a to let people know that these are not
25283      # typical AIX shared libraries.
25284      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25285    else
25286      # We preserve .a as extension for shared libraries through AIX4.2
25287      # and later when we are not doing run time linking.
25288      library_names_spec='${libname}${release}.a $libname.a'
25289      soname_spec='${libname}${release}${shared_ext}$major'
25290    fi
25291    shlibpath_var=LIBPATH
25292  fi
25293  ;;
25294
25295amigaos*)
25296  library_names_spec='$libname.ixlibrary $libname.a'
25297  # Create ${libname}_ixlibrary.a entries in /sys/libs.
25298  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'
25299  ;;
25300
25301beos*)
25302  library_names_spec='${libname}${shared_ext}'
25303  dynamic_linker="$host_os ld.so"
25304  shlibpath_var=LIBRARY_PATH
25305  ;;
25306
25307bsdi[45]*)
25308  version_type=linux
25309  need_version=no
25310  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25311  soname_spec='${libname}${release}${shared_ext}$major'
25312  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25313  shlibpath_var=LD_LIBRARY_PATH
25314  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25315  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25316  # the default ld.so.conf also contains /usr/contrib/lib and
25317  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25318  # libtool to hard-code these into programs
25319  ;;
25320
25321cygwin* | mingw* | pw32*)
25322  version_type=windows
25323  shrext_cmds=".dll"
25324  need_version=no
25325  need_lib_prefix=no
25326
25327  case $GCC,$host_os in
25328  yes,cygwin* | yes,mingw* | yes,pw32*)
25329    library_names_spec='$libname.dll.a'
25330    # DLL is installed to $(libdir)/../bin by postinstall_cmds
25331    postinstall_cmds='base_file=`basename \${file}`~
25332      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25333      dldir=$destdir/`dirname \$dlpath`~
25334      test -d \$dldir || mkdir -p \$dldir~
25335      $install_prog $dir/$dlname \$dldir/$dlname~
25336      chmod a+x \$dldir/$dlname'
25337    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25338      dlpath=$dir/\$dldll~
25339       $rm \$dlpath'
25340    shlibpath_overrides_runpath=yes
25341
25342    case $host_os in
25343    cygwin*)
25344      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25345      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25346      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25347      ;;
25348    mingw*)
25349      # MinGW DLLs use traditional 'lib' prefix
25350      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25351      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25352      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25353        # It is most probably a Windows format PATH printed by
25354        # mingw gcc, but we are running on Cygwin. Gcc prints its search
25355        # path with ; separators, and with drive letters. We can handle the
25356        # drive letters (cygwin fileutils understands them), so leave them,
25357        # especially as we might pass files found there to a mingw objdump,
25358        # which wouldn't understand a cygwinified path. Ahh.
25359        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25360      else
25361        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25362      fi
25363      ;;
25364    pw32*)
25365      # pw32 DLLs use 'pw' prefix rather than 'lib'
25366      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25367      ;;
25368    esac
25369    ;;
25370
25371  *)
25372    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25373    ;;
25374  esac
25375  dynamic_linker='Win32 ld.exe'
25376  # FIXME: first we should search . and the directory the executable is in
25377  shlibpath_var=PATH
25378  ;;
25379
25380darwin* | rhapsody*)
25381  dynamic_linker="$host_os dyld"
25382  version_type=darwin
25383  need_lib_prefix=no
25384  need_version=no
25385  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25386  soname_spec='${libname}${release}${major}$shared_ext'
25387  shlibpath_overrides_runpath=yes
25388  shlibpath_var=DYLD_LIBRARY_PATH
25389  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25390
25391  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25392  ;;
25393
25394dgux*)
25395  version_type=linux
25396  need_lib_prefix=no
25397  need_version=no
25398  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25399  soname_spec='${libname}${release}${shared_ext}$major'
25400  shlibpath_var=LD_LIBRARY_PATH
25401  ;;
25402
25403freebsd1*)
25404  dynamic_linker=no
25405  ;;
25406
25407freebsd* | dragonfly*)
25408  # DragonFly does not have aout.  When/if they implement a new
25409  # versioning mechanism, adjust this.
25410  if test -x /usr/bin/objformat; then
25411    objformat=`/usr/bin/objformat`
25412  else
25413    case $host_os in
25414    freebsd[123]*) objformat=aout ;;
25415    *) objformat=elf ;;
25416    esac
25417  fi
25418  version_type=freebsd-$objformat
25419  case $version_type in
25420    freebsd-elf*)
25421      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25422      need_version=no
25423      need_lib_prefix=no
25424      ;;
25425    freebsd-*)
25426      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25427      need_version=yes
25428      ;;
25429  esac
25430  shlibpath_var=LD_LIBRARY_PATH
25431  case $host_os in
25432  freebsd2*)
25433    shlibpath_overrides_runpath=yes
25434    ;;
25435  freebsd3.[01]* | freebsdelf3.[01]*)
25436    shlibpath_overrides_runpath=yes
25437    hardcode_into_libs=yes
25438    ;;
25439  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25440  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25441    shlibpath_overrides_runpath=no
25442    hardcode_into_libs=yes
25443    ;;
25444  *) # from 4.6 on, and DragonFly
25445    shlibpath_overrides_runpath=yes
25446    hardcode_into_libs=yes
25447    ;;
25448  esac
25449  ;;
25450
25451gnu*)
25452  version_type=linux
25453  need_lib_prefix=no
25454  need_version=no
25455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25456  soname_spec='${libname}${release}${shared_ext}$major'
25457  shlibpath_var=LD_LIBRARY_PATH
25458  hardcode_into_libs=yes
25459  ;;
25460
25461hpux9* | hpux10* | hpux11*)
25462  # Give a soname corresponding to the major version so that dld.sl refuses to
25463  # link against other versions.
25464  version_type=sunos
25465  need_lib_prefix=no
25466  need_version=no
25467  case $host_cpu in
25468  ia64*)
25469    shrext_cmds='.so'
25470    hardcode_into_libs=yes
25471    dynamic_linker="$host_os dld.so"
25472    shlibpath_var=LD_LIBRARY_PATH
25473    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25474    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25475    soname_spec='${libname}${release}${shared_ext}$major'
25476    if test "X$HPUX_IA64_MODE" = X32; then
25477      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25478    else
25479      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25480    fi
25481    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25482    ;;
25483   hppa*64*)
25484     shrext_cmds='.sl'
25485     hardcode_into_libs=yes
25486     dynamic_linker="$host_os dld.sl"
25487     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25488     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25489     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25490     soname_spec='${libname}${release}${shared_ext}$major'
25491     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25492     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25493     ;;
25494   *)
25495    shrext_cmds='.sl'
25496    dynamic_linker="$host_os dld.sl"
25497    shlibpath_var=SHLIB_PATH
25498    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25499    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25500    soname_spec='${libname}${release}${shared_ext}$major'
25501    ;;
25502  esac
25503  # HP-UX runs *really* slowly unless shared libraries are mode 555.
25504  postinstall_cmds='chmod 555 $lib'
25505  ;;
25506
25507interix[3-9]*)
25508  version_type=linux
25509  need_lib_prefix=no
25510  need_version=no
25511  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25512  soname_spec='${libname}${release}${shared_ext}$major'
25513  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25514  shlibpath_var=LD_LIBRARY_PATH
25515  shlibpath_overrides_runpath=no
25516  hardcode_into_libs=yes
25517  ;;
25518
25519irix5* | irix6* | nonstopux*)
25520  case $host_os in
25521    nonstopux*) version_type=nonstopux ;;
25522    *)
25523	if test "$lt_cv_prog_gnu_ld" = yes; then
25524		version_type=linux
25525	else
25526		version_type=irix
25527	fi ;;
25528  esac
25529  need_lib_prefix=no
25530  need_version=no
25531  soname_spec='${libname}${release}${shared_ext}$major'
25532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25533  case $host_os in
25534  irix5* | nonstopux*)
25535    libsuff= shlibsuff=
25536    ;;
25537  *)
25538    case $LD in # libtool.m4 will add one of these switches to LD
25539    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25540      libsuff= shlibsuff= libmagic=32-bit;;
25541    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25542      libsuff=32 shlibsuff=N32 libmagic=N32;;
25543    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25544      libsuff=64 shlibsuff=64 libmagic=64-bit;;
25545    *) libsuff= shlibsuff= libmagic=never-match;;
25546    esac
25547    ;;
25548  esac
25549  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25550  shlibpath_overrides_runpath=no
25551  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25552  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25553  hardcode_into_libs=yes
25554  ;;
25555
25556# No shared lib support for Linux oldld, aout, or coff.
25557linux*oldld* | linux*aout* | linux*coff*)
25558  dynamic_linker=no
25559  ;;
25560
25561# This must be Linux ELF.
25562linux* | k*bsd*-gnu)
25563  version_type=linux
25564  need_lib_prefix=no
25565  need_version=no
25566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25567  soname_spec='${libname}${release}${shared_ext}$major'
25568  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25569  shlibpath_var=LD_LIBRARY_PATH
25570  shlibpath_overrides_runpath=no
25571  # This implies no fast_install, which is unacceptable.
25572  # Some rework will be needed to allow for fast_install
25573  # before this can be enabled.
25574  hardcode_into_libs=yes
25575
25576  # Append ld.so.conf contents to the search path
25577  if test -f /etc/ld.so.conf; then
25578    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
25579    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25580  fi
25581
25582  # We used to test for /lib/ld.so.1 and disable shared libraries on
25583  # powerpc, because MkLinux only supported shared libraries with the
25584  # GNU dynamic linker.  Since this was broken with cross compilers,
25585  # most powerpc-linux boxes support dynamic linking these days and
25586  # people can always --disable-shared, the test was removed, and we
25587  # assume the GNU/Linux dynamic linker is in use.
25588  dynamic_linker='GNU/Linux ld.so'
25589  ;;
25590
25591netbsd*)
25592  version_type=sunos
25593  need_lib_prefix=no
25594  need_version=no
25595  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25596    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25597    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25598    dynamic_linker='NetBSD (a.out) ld.so'
25599  else
25600    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25601    soname_spec='${libname}${release}${shared_ext}$major'
25602    dynamic_linker='NetBSD ld.elf_so'
25603  fi
25604  shlibpath_var=LD_LIBRARY_PATH
25605  shlibpath_overrides_runpath=yes
25606  hardcode_into_libs=yes
25607  ;;
25608
25609newsos6)
25610  version_type=linux
25611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25612  shlibpath_var=LD_LIBRARY_PATH
25613  shlibpath_overrides_runpath=yes
25614  ;;
25615
25616nto-qnx*)
25617  version_type=linux
25618  need_lib_prefix=no
25619  need_version=no
25620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25621  soname_spec='${libname}${release}${shared_ext}$major'
25622  shlibpath_var=LD_LIBRARY_PATH
25623  shlibpath_overrides_runpath=yes
25624  ;;
25625
25626openbsd*)
25627  version_type=sunos
25628  sys_lib_dlsearch_path_spec="/usr/lib"
25629  need_lib_prefix=no
25630  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25631  case $host_os in
25632    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25633    *)                         need_version=no  ;;
25634  esac
25635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25636  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25637  shlibpath_var=LD_LIBRARY_PATH
25638  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25639    case $host_os in
25640      openbsd2.[89] | openbsd2.[89].*)
25641	shlibpath_overrides_runpath=no
25642	;;
25643      *)
25644	shlibpath_overrides_runpath=yes
25645	;;
25646      esac
25647  else
25648    shlibpath_overrides_runpath=yes
25649  fi
25650  ;;
25651
25652os2*)
25653  libname_spec='$name'
25654  shrext_cmds=".dll"
25655  need_lib_prefix=no
25656  library_names_spec='$libname${shared_ext} $libname.a'
25657  dynamic_linker='OS/2 ld.exe'
25658  shlibpath_var=LIBPATH
25659  ;;
25660
25661osf3* | osf4* | osf5*)
25662  version_type=osf
25663  need_lib_prefix=no
25664  need_version=no
25665  soname_spec='${libname}${release}${shared_ext}$major'
25666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25667  shlibpath_var=LD_LIBRARY_PATH
25668  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25669  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25670  ;;
25671
25672rdos*)
25673  dynamic_linker=no
25674  ;;
25675
25676solaris*)
25677  version_type=linux
25678  need_lib_prefix=no
25679  need_version=no
25680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25681  soname_spec='${libname}${release}${shared_ext}$major'
25682  shlibpath_var=LD_LIBRARY_PATH
25683  shlibpath_overrides_runpath=yes
25684  hardcode_into_libs=yes
25685  # ldd complains unless libraries are executable
25686  postinstall_cmds='chmod +x $lib'
25687  ;;
25688
25689sunos4*)
25690  version_type=sunos
25691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25692  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25693  shlibpath_var=LD_LIBRARY_PATH
25694  shlibpath_overrides_runpath=yes
25695  if test "$with_gnu_ld" = yes; then
25696    need_lib_prefix=no
25697  fi
25698  need_version=yes
25699  ;;
25700
25701sysv4 | sysv4.3*)
25702  version_type=linux
25703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25704  soname_spec='${libname}${release}${shared_ext}$major'
25705  shlibpath_var=LD_LIBRARY_PATH
25706  case $host_vendor in
25707    sni)
25708      shlibpath_overrides_runpath=no
25709      need_lib_prefix=no
25710      export_dynamic_flag_spec='${wl}-Blargedynsym'
25711      runpath_var=LD_RUN_PATH
25712      ;;
25713    siemens)
25714      need_lib_prefix=no
25715      ;;
25716    motorola)
25717      need_lib_prefix=no
25718      need_version=no
25719      shlibpath_overrides_runpath=no
25720      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25721      ;;
25722  esac
25723  ;;
25724
25725sysv4*MP*)
25726  if test -d /usr/nec ;then
25727    version_type=linux
25728    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25729    soname_spec='$libname${shared_ext}.$major'
25730    shlibpath_var=LD_LIBRARY_PATH
25731  fi
25732  ;;
25733
25734sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25735  version_type=freebsd-elf
25736  need_lib_prefix=no
25737  need_version=no
25738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25739  soname_spec='${libname}${release}${shared_ext}$major'
25740  shlibpath_var=LD_LIBRARY_PATH
25741  hardcode_into_libs=yes
25742  if test "$with_gnu_ld" = yes; then
25743    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25744    shlibpath_overrides_runpath=no
25745  else
25746    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25747    shlibpath_overrides_runpath=yes
25748    case $host_os in
25749      sco3.2v5*)
25750        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25751	;;
25752    esac
25753  fi
25754  sys_lib_dlsearch_path_spec='/usr/lib'
25755  ;;
25756
25757uts4*)
25758  version_type=linux
25759  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25760  soname_spec='${libname}${release}${shared_ext}$major'
25761  shlibpath_var=LD_LIBRARY_PATH
25762  ;;
25763
25764*)
25765  dynamic_linker=no
25766  ;;
25767esac
25768{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25769echo "${ECHO_T}$dynamic_linker" >&6; }
25770test "$dynamic_linker" = no && can_build_shared=no
25771
25772if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
25773  echo $ECHO_N "(cached) $ECHO_C" >&6
25774else
25775  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
25776fi
25777
25778sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
25779if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
25780  echo $ECHO_N "(cached) $ECHO_C" >&6
25781else
25782  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
25783fi
25784
25785sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
25786
25787variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25788if test "$GCC" = yes; then
25789  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25790fi
25791
25792{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25793echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25794hardcode_action_GCJ=
25795if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25796   test -n "$runpath_var_GCJ" || \
25797   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25798
25799  # We can hardcode non-existant directories.
25800  if test "$hardcode_direct_GCJ" != no &&
25801     # If the only mechanism to avoid hardcoding is shlibpath_var, we
25802     # have to relink, otherwise we might link with an installed library
25803     # when we should be linking with a yet-to-be-installed one
25804     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25805     test "$hardcode_minus_L_GCJ" != no; then
25806    # Linking always hardcodes the temporary library directory.
25807    hardcode_action_GCJ=relink
25808  else
25809    # We can link without hardcoding, and we can hardcode nonexisting dirs.
25810    hardcode_action_GCJ=immediate
25811  fi
25812else
25813  # We cannot hardcode anything, or else we can only hardcode existing
25814  # directories.
25815  hardcode_action_GCJ=unsupported
25816fi
25817{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25818echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25819
25820if test "$hardcode_action_GCJ" = relink; then
25821  # Fast installation is not supported
25822  enable_fast_install=no
25823elif test "$shlibpath_overrides_runpath" = yes ||
25824     test "$enable_shared" = no; then
25825  # Fast installation is not necessary
25826  enable_fast_install=needless
25827fi
25828
25829
25830# The else clause should only fire when bootstrapping the
25831# libtool distribution, otherwise you forgot to ship ltmain.sh
25832# with your package, and you will get complaints that there are
25833# no rules to generate ltmain.sh.
25834if test -f "$ltmain"; then
25835  # See if we are running on zsh, and set the options which allow our commands through
25836  # without removal of \ escapes.
25837  if test -n "${ZSH_VERSION+set}" ; then
25838    setopt NO_GLOB_SUBST
25839  fi
25840  # Now quote all the things that may contain metacharacters while being
25841  # careful not to overquote the AC_SUBSTed values.  We take copies of the
25842  # variables and quote the copies for generation of the libtool script.
25843  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25844    SED SHELL STRIP \
25845    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25846    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25847    deplibs_check_method reload_flag reload_cmds need_locks \
25848    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25849    lt_cv_sys_global_symbol_to_c_name_address \
25850    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25851    old_postinstall_cmds old_postuninstall_cmds \
25852    compiler_GCJ \
25853    CC_GCJ \
25854    LD_GCJ \
25855    lt_prog_compiler_wl_GCJ \
25856    lt_prog_compiler_pic_GCJ \
25857    lt_prog_compiler_static_GCJ \
25858    lt_prog_compiler_no_builtin_flag_GCJ \
25859    export_dynamic_flag_spec_GCJ \
25860    thread_safe_flag_spec_GCJ \
25861    whole_archive_flag_spec_GCJ \
25862    enable_shared_with_static_runtimes_GCJ \
25863    old_archive_cmds_GCJ \
25864    old_archive_from_new_cmds_GCJ \
25865    predep_objects_GCJ \
25866    postdep_objects_GCJ \
25867    predeps_GCJ \
25868    postdeps_GCJ \
25869    compiler_lib_search_path_GCJ \
25870    compiler_lib_search_dirs_GCJ \
25871    archive_cmds_GCJ \
25872    archive_expsym_cmds_GCJ \
25873    postinstall_cmds_GCJ \
25874    postuninstall_cmds_GCJ \
25875    old_archive_from_expsyms_cmds_GCJ \
25876    allow_undefined_flag_GCJ \
25877    no_undefined_flag_GCJ \
25878    export_symbols_cmds_GCJ \
25879    hardcode_libdir_flag_spec_GCJ \
25880    hardcode_libdir_flag_spec_ld_GCJ \
25881    hardcode_libdir_separator_GCJ \
25882    hardcode_automatic_GCJ \
25883    module_cmds_GCJ \
25884    module_expsym_cmds_GCJ \
25885    lt_cv_prog_compiler_c_o_GCJ \
25886    fix_srcfile_path_GCJ \
25887    exclude_expsyms_GCJ \
25888    include_expsyms_GCJ; do
25889
25890    case $var in
25891    old_archive_cmds_GCJ | \
25892    old_archive_from_new_cmds_GCJ | \
25893    archive_cmds_GCJ | \
25894    archive_expsym_cmds_GCJ | \
25895    module_cmds_GCJ | \
25896    module_expsym_cmds_GCJ | \
25897    old_archive_from_expsyms_cmds_GCJ | \
25898    export_symbols_cmds_GCJ | \
25899    extract_expsyms_cmds | reload_cmds | finish_cmds | \
25900    postinstall_cmds | postuninstall_cmds | \
25901    old_postinstall_cmds | old_postuninstall_cmds | \
25902    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25903      # Double-quote double-evaled strings.
25904      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25905      ;;
25906    *)
25907      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25908      ;;
25909    esac
25910  done
25911
25912  case $lt_echo in
25913  *'\$0 --fallback-echo"')
25914    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25915    ;;
25916  esac
25917
25918cfgfile="$ofile"
25919
25920  cat <<__EOF__ >> "$cfgfile"
25921# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25922
25923# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25924
25925# Shell to use when invoking shell scripts.
25926SHELL=$lt_SHELL
25927
25928# Whether or not to build shared libraries.
25929build_libtool_libs=$enable_shared
25930
25931# Whether or not to build static libraries.
25932build_old_libs=$enable_static
25933
25934# Whether or not to add -lc for building shared libraries.
25935build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25936
25937# Whether or not to disallow shared libs when runtime libs are static
25938allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25939
25940# Whether or not to optimize for fast installation.
25941fast_install=$enable_fast_install
25942
25943# The host system.
25944host_alias=$host_alias
25945host=$host
25946host_os=$host_os
25947
25948# The build system.
25949build_alias=$build_alias
25950build=$build
25951build_os=$build_os
25952
25953# An echo program that does not interpret backslashes.
25954echo=$lt_echo
25955
25956# The archiver.
25957AR=$lt_AR
25958AR_FLAGS=$lt_AR_FLAGS
25959
25960# A C compiler.
25961LTCC=$lt_LTCC
25962
25963# LTCC compiler flags.
25964LTCFLAGS=$lt_LTCFLAGS
25965
25966# A language-specific compiler.
25967CC=$lt_compiler_GCJ
25968
25969# Is the compiler the GNU C compiler?
25970with_gcc=$GCC_GCJ
25971
25972# An ERE matcher.
25973EGREP=$lt_EGREP
25974
25975# The linker used to build libraries.
25976LD=$lt_LD_GCJ
25977
25978# Whether we need hard or soft links.
25979LN_S=$lt_LN_S
25980
25981# A BSD-compatible nm program.
25982NM=$lt_NM
25983
25984# A symbol stripping program
25985STRIP=$lt_STRIP
25986
25987# Used to examine libraries when file_magic_cmd begins "file"
25988MAGIC_CMD=$MAGIC_CMD
25989
25990# Used on cygwin: DLL creation program.
25991DLLTOOL="$DLLTOOL"
25992
25993# Used on cygwin: object dumper.
25994OBJDUMP="$OBJDUMP"
25995
25996# Used on cygwin: assembler.
25997AS="$AS"
25998
25999# The name of the directory that contains temporary libtool files.
26000objdir=$objdir
26001
26002# How to create reloadable object files.
26003reload_flag=$lt_reload_flag
26004reload_cmds=$lt_reload_cmds
26005
26006# How to pass a linker flag through the compiler.
26007wl=$lt_lt_prog_compiler_wl_GCJ
26008
26009# Object file suffix (normally "o").
26010objext="$ac_objext"
26011
26012# Old archive suffix (normally "a").
26013libext="$libext"
26014
26015# Shared library suffix (normally ".so").
26016shrext_cmds='$shrext_cmds'
26017
26018# Executable file suffix (normally "").
26019exeext="$exeext"
26020
26021# Additional compiler flags for building library objects.
26022pic_flag=$lt_lt_prog_compiler_pic_GCJ
26023pic_mode=$pic_mode
26024
26025# What is the maximum length of a command?
26026max_cmd_len=$lt_cv_sys_max_cmd_len
26027
26028# Does compiler simultaneously support -c and -o options?
26029compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26030
26031# Must we lock files when doing compilation?
26032need_locks=$lt_need_locks
26033
26034# Do we need the lib prefix for modules?
26035need_lib_prefix=$need_lib_prefix
26036
26037# Do we need a version for libraries?
26038need_version=$need_version
26039
26040# Whether dlopen is supported.
26041dlopen_support=$enable_dlopen
26042
26043# Whether dlopen of programs is supported.
26044dlopen_self=$enable_dlopen_self
26045
26046# Whether dlopen of statically linked programs is supported.
26047dlopen_self_static=$enable_dlopen_self_static
26048
26049# Compiler flag to prevent dynamic linking.
26050link_static_flag=$lt_lt_prog_compiler_static_GCJ
26051
26052# Compiler flag to turn off builtin functions.
26053no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26054
26055# Compiler flag to allow reflexive dlopens.
26056export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26057
26058# Compiler flag to generate shared objects directly from archives.
26059whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26060
26061# Compiler flag to generate thread-safe objects.
26062thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26063
26064# Library versioning type.
26065version_type=$version_type
26066
26067# Format of library name prefix.
26068libname_spec=$lt_libname_spec
26069
26070# List of archive names.  First name is the real one, the rest are links.
26071# The last name is the one that the linker finds with -lNAME.
26072library_names_spec=$lt_library_names_spec
26073
26074# The coded name of the library, if different from the real name.
26075soname_spec=$lt_soname_spec
26076
26077# Commands used to build and install an old-style archive.
26078RANLIB=$lt_RANLIB
26079old_archive_cmds=$lt_old_archive_cmds_GCJ
26080old_postinstall_cmds=$lt_old_postinstall_cmds
26081old_postuninstall_cmds=$lt_old_postuninstall_cmds
26082
26083# Create an old-style archive from a shared archive.
26084old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26085
26086# Create a temporary old-style archive to link instead of a shared archive.
26087old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26088
26089# Commands used to build and install a shared archive.
26090archive_cmds=$lt_archive_cmds_GCJ
26091archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26092postinstall_cmds=$lt_postinstall_cmds
26093postuninstall_cmds=$lt_postuninstall_cmds
26094
26095# Commands used to build a loadable module (assumed same as above if empty)
26096module_cmds=$lt_module_cmds_GCJ
26097module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26098
26099# Commands to strip libraries.
26100old_striplib=$lt_old_striplib
26101striplib=$lt_striplib
26102
26103# Dependencies to place before the objects being linked to create a
26104# shared library.
26105predep_objects=$lt_predep_objects_GCJ
26106
26107# Dependencies to place after the objects being linked to create a
26108# shared library.
26109postdep_objects=$lt_postdep_objects_GCJ
26110
26111# Dependencies to place before the objects being linked to create a
26112# shared library.
26113predeps=$lt_predeps_GCJ
26114
26115# Dependencies to place after the objects being linked to create a
26116# shared library.
26117postdeps=$lt_postdeps_GCJ
26118
26119# The directories searched by this compiler when creating a shared
26120# library
26121compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
26122
26123# The library search path used internally by the compiler when linking
26124# a shared library.
26125compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26126
26127# Method to check whether dependent libraries are shared objects.
26128deplibs_check_method=$lt_deplibs_check_method
26129
26130# Command to use when deplibs_check_method == file_magic.
26131file_magic_cmd=$lt_file_magic_cmd
26132
26133# Flag that allows shared libraries with undefined symbols to be built.
26134allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26135
26136# Flag that forces no undefined symbols.
26137no_undefined_flag=$lt_no_undefined_flag_GCJ
26138
26139# Commands used to finish a libtool library installation in a directory.
26140finish_cmds=$lt_finish_cmds
26141
26142# Same as above, but a single script fragment to be evaled but not shown.
26143finish_eval=$lt_finish_eval
26144
26145# Take the output of nm and produce a listing of raw symbols and C names.
26146global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26147
26148# Transform the output of nm in a proper C declaration
26149global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26150
26151# Transform the output of nm in a C name address pair
26152global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26153
26154# This is the shared library runtime path variable.
26155runpath_var=$runpath_var
26156
26157# This is the shared library path variable.
26158shlibpath_var=$shlibpath_var
26159
26160# Is shlibpath searched before the hard-coded library search path?
26161shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26162
26163# How to hardcode a shared library path into an executable.
26164hardcode_action=$hardcode_action_GCJ
26165
26166# Whether we should hardcode library paths into libraries.
26167hardcode_into_libs=$hardcode_into_libs
26168
26169# Flag to hardcode \$libdir into a binary during linking.
26170# This must work even if \$libdir does not exist.
26171hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26172
26173# If ld is used when linking, flag to hardcode \$libdir into
26174# a binary during linking. This must work even if \$libdir does
26175# not exist.
26176hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26177
26178# Whether we need a single -rpath flag with a separated argument.
26179hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26180
26181# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26182# resulting binary.
26183hardcode_direct=$hardcode_direct_GCJ
26184
26185# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26186# resulting binary.
26187hardcode_minus_L=$hardcode_minus_L_GCJ
26188
26189# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26190# the resulting binary.
26191hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26192
26193# Set to yes if building a shared library automatically hardcodes DIR into the library
26194# and all subsequent libraries and executables linked against it.
26195hardcode_automatic=$hardcode_automatic_GCJ
26196
26197# Variables whose values should be saved in libtool wrapper scripts and
26198# restored at relink time.
26199variables_saved_for_relink="$variables_saved_for_relink"
26200
26201# Whether libtool must link a program against all its dependency libraries.
26202link_all_deplibs=$link_all_deplibs_GCJ
26203
26204# Compile-time system search path for libraries
26205sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26206
26207# Run-time system search path for libraries
26208sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26209
26210# Fix the shell variable \$srcfile for the compiler.
26211fix_srcfile_path=$lt_fix_srcfile_path
26212
26213# Set to yes if exported symbols are required.
26214always_export_symbols=$always_export_symbols_GCJ
26215
26216# The commands to list exported symbols.
26217export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26218
26219# The commands to extract the exported symbol list from a shared archive.
26220extract_expsyms_cmds=$lt_extract_expsyms_cmds
26221
26222# Symbols that should not be listed in the preloaded symbols.
26223exclude_expsyms=$lt_exclude_expsyms_GCJ
26224
26225# Symbols that must always be exported.
26226include_expsyms=$lt_include_expsyms_GCJ
26227
26228# ### END LIBTOOL TAG CONFIG: $tagname
26229
26230__EOF__
26231
26232
26233else
26234  # If there is no Makefile yet, we rely on a make rule to execute
26235  # `config.status --recheck' to rerun these tests and create the
26236  # libtool script then.
26237  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26238  if test -f "$ltmain_in"; then
26239    test -f Makefile && make "$ltmain"
26240  fi
26241fi
26242
26243
26244ac_ext=cpp
26245ac_cpp='$CXXCPP $CPPFLAGS'
26246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26249
26250CC="$lt_save_CC"
26251
26252	else
26253	  tagname=""
26254	fi
26255	;;
26256
26257      RC)
26258
26259
26260# Source file extension for RC test sources.
26261ac_ext=rc
26262
26263# Object file extension for compiled RC test sources.
26264objext=o
26265objext_RC=$objext
26266
26267# Code to be used in simple compile tests
26268lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
26269
26270# Code to be used in simple link tests
26271lt_simple_link_test_code="$lt_simple_compile_test_code"
26272
26273# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26274
26275# If no C compiler was specified, use CC.
26276LTCC=${LTCC-"$CC"}
26277
26278# If no C compiler flags were specified, use CFLAGS.
26279LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26280
26281# Allow CC to be a program name with arguments.
26282compiler=$CC
26283
26284
26285# save warnings/boilerplate of simple test code
26286ac_outfile=conftest.$ac_objext
26287echo "$lt_simple_compile_test_code" >conftest.$ac_ext
26288eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26289_lt_compiler_boilerplate=`cat conftest.err`
26290$rm conftest*
26291
26292ac_outfile=conftest.$ac_objext
26293echo "$lt_simple_link_test_code" >conftest.$ac_ext
26294eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26295_lt_linker_boilerplate=`cat conftest.err`
26296$rm -r conftest*
26297
26298
26299# Allow CC to be a program name with arguments.
26300lt_save_CC="$CC"
26301CC=${RC-"windres"}
26302compiler=$CC
26303compiler_RC=$CC
26304for cc_temp in $compiler""; do
26305  case $cc_temp in
26306    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26307    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26308    \-*) ;;
26309    *) break;;
26310  esac
26311done
26312cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26313
26314lt_cv_prog_compiler_c_o_RC=yes
26315
26316# The else clause should only fire when bootstrapping the
26317# libtool distribution, otherwise you forgot to ship ltmain.sh
26318# with your package, and you will get complaints that there are
26319# no rules to generate ltmain.sh.
26320if test -f "$ltmain"; then
26321  # See if we are running on zsh, and set the options which allow our commands through
26322  # without removal of \ escapes.
26323  if test -n "${ZSH_VERSION+set}" ; then
26324    setopt NO_GLOB_SUBST
26325  fi
26326  # Now quote all the things that may contain metacharacters while being
26327  # careful not to overquote the AC_SUBSTed values.  We take copies of the
26328  # variables and quote the copies for generation of the libtool script.
26329  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
26330    SED SHELL STRIP \
26331    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26332    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26333    deplibs_check_method reload_flag reload_cmds need_locks \
26334    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26335    lt_cv_sys_global_symbol_to_c_name_address \
26336    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26337    old_postinstall_cmds old_postuninstall_cmds \
26338    compiler_RC \
26339    CC_RC \
26340    LD_RC \
26341    lt_prog_compiler_wl_RC \
26342    lt_prog_compiler_pic_RC \
26343    lt_prog_compiler_static_RC \
26344    lt_prog_compiler_no_builtin_flag_RC \
26345    export_dynamic_flag_spec_RC \
26346    thread_safe_flag_spec_RC \
26347    whole_archive_flag_spec_RC \
26348    enable_shared_with_static_runtimes_RC \
26349    old_archive_cmds_RC \
26350    old_archive_from_new_cmds_RC \
26351    predep_objects_RC \
26352    postdep_objects_RC \
26353    predeps_RC \
26354    postdeps_RC \
26355    compiler_lib_search_path_RC \
26356    compiler_lib_search_dirs_RC \
26357    archive_cmds_RC \
26358    archive_expsym_cmds_RC \
26359    postinstall_cmds_RC \
26360    postuninstall_cmds_RC \
26361    old_archive_from_expsyms_cmds_RC \
26362    allow_undefined_flag_RC \
26363    no_undefined_flag_RC \
26364    export_symbols_cmds_RC \
26365    hardcode_libdir_flag_spec_RC \
26366    hardcode_libdir_flag_spec_ld_RC \
26367    hardcode_libdir_separator_RC \
26368    hardcode_automatic_RC \
26369    module_cmds_RC \
26370    module_expsym_cmds_RC \
26371    lt_cv_prog_compiler_c_o_RC \
26372    fix_srcfile_path_RC \
26373    exclude_expsyms_RC \
26374    include_expsyms_RC; do
26375
26376    case $var in
26377    old_archive_cmds_RC | \
26378    old_archive_from_new_cmds_RC | \
26379    archive_cmds_RC | \
26380    archive_expsym_cmds_RC | \
26381    module_cmds_RC | \
26382    module_expsym_cmds_RC | \
26383    old_archive_from_expsyms_cmds_RC | \
26384    export_symbols_cmds_RC | \
26385    extract_expsyms_cmds | reload_cmds | finish_cmds | \
26386    postinstall_cmds | postuninstall_cmds | \
26387    old_postinstall_cmds | old_postuninstall_cmds | \
26388    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26389      # Double-quote double-evaled strings.
26390      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26391      ;;
26392    *)
26393      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26394      ;;
26395    esac
26396  done
26397
26398  case $lt_echo in
26399  *'\$0 --fallback-echo"')
26400    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26401    ;;
26402  esac
26403
26404cfgfile="$ofile"
26405
26406  cat <<__EOF__ >> "$cfgfile"
26407# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26408
26409# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26410
26411# Shell to use when invoking shell scripts.
26412SHELL=$lt_SHELL
26413
26414# Whether or not to build shared libraries.
26415build_libtool_libs=$enable_shared
26416
26417# Whether or not to build static libraries.
26418build_old_libs=$enable_static
26419
26420# Whether or not to add -lc for building shared libraries.
26421build_libtool_need_lc=$archive_cmds_need_lc_RC
26422
26423# Whether or not to disallow shared libs when runtime libs are static
26424allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26425
26426# Whether or not to optimize for fast installation.
26427fast_install=$enable_fast_install
26428
26429# The host system.
26430host_alias=$host_alias
26431host=$host
26432host_os=$host_os
26433
26434# The build system.
26435build_alias=$build_alias
26436build=$build
26437build_os=$build_os
26438
26439# An echo program that does not interpret backslashes.
26440echo=$lt_echo
26441
26442# The archiver.
26443AR=$lt_AR
26444AR_FLAGS=$lt_AR_FLAGS
26445
26446# A C compiler.
26447LTCC=$lt_LTCC
26448
26449# LTCC compiler flags.
26450LTCFLAGS=$lt_LTCFLAGS
26451
26452# A language-specific compiler.
26453CC=$lt_compiler_RC
26454
26455# Is the compiler the GNU C compiler?
26456with_gcc=$GCC_RC
26457
26458# An ERE matcher.
26459EGREP=$lt_EGREP
26460
26461# The linker used to build libraries.
26462LD=$lt_LD_RC
26463
26464# Whether we need hard or soft links.
26465LN_S=$lt_LN_S
26466
26467# A BSD-compatible nm program.
26468NM=$lt_NM
26469
26470# A symbol stripping program
26471STRIP=$lt_STRIP
26472
26473# Used to examine libraries when file_magic_cmd begins "file"
26474MAGIC_CMD=$MAGIC_CMD
26475
26476# Used on cygwin: DLL creation program.
26477DLLTOOL="$DLLTOOL"
26478
26479# Used on cygwin: object dumper.
26480OBJDUMP="$OBJDUMP"
26481
26482# Used on cygwin: assembler.
26483AS="$AS"
26484
26485# The name of the directory that contains temporary libtool files.
26486objdir=$objdir
26487
26488# How to create reloadable object files.
26489reload_flag=$lt_reload_flag
26490reload_cmds=$lt_reload_cmds
26491
26492# How to pass a linker flag through the compiler.
26493wl=$lt_lt_prog_compiler_wl_RC
26494
26495# Object file suffix (normally "o").
26496objext="$ac_objext"
26497
26498# Old archive suffix (normally "a").
26499libext="$libext"
26500
26501# Shared library suffix (normally ".so").
26502shrext_cmds='$shrext_cmds'
26503
26504# Executable file suffix (normally "").
26505exeext="$exeext"
26506
26507# Additional compiler flags for building library objects.
26508pic_flag=$lt_lt_prog_compiler_pic_RC
26509pic_mode=$pic_mode
26510
26511# What is the maximum length of a command?
26512max_cmd_len=$lt_cv_sys_max_cmd_len
26513
26514# Does compiler simultaneously support -c and -o options?
26515compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26516
26517# Must we lock files when doing compilation?
26518need_locks=$lt_need_locks
26519
26520# Do we need the lib prefix for modules?
26521need_lib_prefix=$need_lib_prefix
26522
26523# Do we need a version for libraries?
26524need_version=$need_version
26525
26526# Whether dlopen is supported.
26527dlopen_support=$enable_dlopen
26528
26529# Whether dlopen of programs is supported.
26530dlopen_self=$enable_dlopen_self
26531
26532# Whether dlopen of statically linked programs is supported.
26533dlopen_self_static=$enable_dlopen_self_static
26534
26535# Compiler flag to prevent dynamic linking.
26536link_static_flag=$lt_lt_prog_compiler_static_RC
26537
26538# Compiler flag to turn off builtin functions.
26539no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26540
26541# Compiler flag to allow reflexive dlopens.
26542export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26543
26544# Compiler flag to generate shared objects directly from archives.
26545whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26546
26547# Compiler flag to generate thread-safe objects.
26548thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26549
26550# Library versioning type.
26551version_type=$version_type
26552
26553# Format of library name prefix.
26554libname_spec=$lt_libname_spec
26555
26556# List of archive names.  First name is the real one, the rest are links.
26557# The last name is the one that the linker finds with -lNAME.
26558library_names_spec=$lt_library_names_spec
26559
26560# The coded name of the library, if different from the real name.
26561soname_spec=$lt_soname_spec
26562
26563# Commands used to build and install an old-style archive.
26564RANLIB=$lt_RANLIB
26565old_archive_cmds=$lt_old_archive_cmds_RC
26566old_postinstall_cmds=$lt_old_postinstall_cmds
26567old_postuninstall_cmds=$lt_old_postuninstall_cmds
26568
26569# Create an old-style archive from a shared archive.
26570old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26571
26572# Create a temporary old-style archive to link instead of a shared archive.
26573old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26574
26575# Commands used to build and install a shared archive.
26576archive_cmds=$lt_archive_cmds_RC
26577archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26578postinstall_cmds=$lt_postinstall_cmds
26579postuninstall_cmds=$lt_postuninstall_cmds
26580
26581# Commands used to build a loadable module (assumed same as above if empty)
26582module_cmds=$lt_module_cmds_RC
26583module_expsym_cmds=$lt_module_expsym_cmds_RC
26584
26585# Commands to strip libraries.
26586old_striplib=$lt_old_striplib
26587striplib=$lt_striplib
26588
26589# Dependencies to place before the objects being linked to create a
26590# shared library.
26591predep_objects=$lt_predep_objects_RC
26592
26593# Dependencies to place after the objects being linked to create a
26594# shared library.
26595postdep_objects=$lt_postdep_objects_RC
26596
26597# Dependencies to place before the objects being linked to create a
26598# shared library.
26599predeps=$lt_predeps_RC
26600
26601# Dependencies to place after the objects being linked to create a
26602# shared library.
26603postdeps=$lt_postdeps_RC
26604
26605# The directories searched by this compiler when creating a shared
26606# library
26607compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
26608
26609# The library search path used internally by the compiler when linking
26610# a shared library.
26611compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26612
26613# Method to check whether dependent libraries are shared objects.
26614deplibs_check_method=$lt_deplibs_check_method
26615
26616# Command to use when deplibs_check_method == file_magic.
26617file_magic_cmd=$lt_file_magic_cmd
26618
26619# Flag that allows shared libraries with undefined symbols to be built.
26620allow_undefined_flag=$lt_allow_undefined_flag_RC
26621
26622# Flag that forces no undefined symbols.
26623no_undefined_flag=$lt_no_undefined_flag_RC
26624
26625# Commands used to finish a libtool library installation in a directory.
26626finish_cmds=$lt_finish_cmds
26627
26628# Same as above, but a single script fragment to be evaled but not shown.
26629finish_eval=$lt_finish_eval
26630
26631# Take the output of nm and produce a listing of raw symbols and C names.
26632global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26633
26634# Transform the output of nm in a proper C declaration
26635global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26636
26637# Transform the output of nm in a C name address pair
26638global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26639
26640# This is the shared library runtime path variable.
26641runpath_var=$runpath_var
26642
26643# This is the shared library path variable.
26644shlibpath_var=$shlibpath_var
26645
26646# Is shlibpath searched before the hard-coded library search path?
26647shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26648
26649# How to hardcode a shared library path into an executable.
26650hardcode_action=$hardcode_action_RC
26651
26652# Whether we should hardcode library paths into libraries.
26653hardcode_into_libs=$hardcode_into_libs
26654
26655# Flag to hardcode \$libdir into a binary during linking.
26656# This must work even if \$libdir does not exist.
26657hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26658
26659# If ld is used when linking, flag to hardcode \$libdir into
26660# a binary during linking. This must work even if \$libdir does
26661# not exist.
26662hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26663
26664# Whether we need a single -rpath flag with a separated argument.
26665hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26666
26667# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26668# resulting binary.
26669hardcode_direct=$hardcode_direct_RC
26670
26671# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26672# resulting binary.
26673hardcode_minus_L=$hardcode_minus_L_RC
26674
26675# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26676# the resulting binary.
26677hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26678
26679# Set to yes if building a shared library automatically hardcodes DIR into the library
26680# and all subsequent libraries and executables linked against it.
26681hardcode_automatic=$hardcode_automatic_RC
26682
26683# Variables whose values should be saved in libtool wrapper scripts and
26684# restored at relink time.
26685variables_saved_for_relink="$variables_saved_for_relink"
26686
26687# Whether libtool must link a program against all its dependency libraries.
26688link_all_deplibs=$link_all_deplibs_RC
26689
26690# Compile-time system search path for libraries
26691sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26692
26693# Run-time system search path for libraries
26694sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26695
26696# Fix the shell variable \$srcfile for the compiler.
26697fix_srcfile_path=$lt_fix_srcfile_path
26698
26699# Set to yes if exported symbols are required.
26700always_export_symbols=$always_export_symbols_RC
26701
26702# The commands to list exported symbols.
26703export_symbols_cmds=$lt_export_symbols_cmds_RC
26704
26705# The commands to extract the exported symbol list from a shared archive.
26706extract_expsyms_cmds=$lt_extract_expsyms_cmds
26707
26708# Symbols that should not be listed in the preloaded symbols.
26709exclude_expsyms=$lt_exclude_expsyms_RC
26710
26711# Symbols that must always be exported.
26712include_expsyms=$lt_include_expsyms_RC
26713
26714# ### END LIBTOOL TAG CONFIG: $tagname
26715
26716__EOF__
26717
26718
26719else
26720  # If there is no Makefile yet, we rely on a make rule to execute
26721  # `config.status --recheck' to rerun these tests and create the
26722  # libtool script then.
26723  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26724  if test -f "$ltmain_in"; then
26725    test -f Makefile && make "$ltmain"
26726  fi
26727fi
26728
26729
26730ac_ext=cpp
26731ac_cpp='$CXXCPP $CPPFLAGS'
26732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26735
26736CC="$lt_save_CC"
26737
26738	;;
26739
26740      *)
26741	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26742echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26743   { (exit 1); exit 1; }; }
26744	;;
26745      esac
26746
26747      # Append the new tag name to the list of available tags.
26748      if test -n "$tagname" ; then
26749      available_tags="$available_tags $tagname"
26750    fi
26751    fi
26752  done
26753  IFS="$lt_save_ifs"
26754
26755  # Now substitute the updated list of available tags.
26756  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26757    mv "${ofile}T" "$ofile"
26758    chmod +x "$ofile"
26759  else
26760    rm -f "${ofile}T"
26761    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26762echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26763   { (exit 1); exit 1; }; }
26764  fi
26765fi
26766
26767
26768
26769# This can be used to rebuild libtool when needed
26770LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26771
26772# Always use our own libtool.
26773LIBTOOL='$(SHELL) $(top_builddir)/libtool'
26774
26775# Prevent multiple expansion
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797ac_config_files="$ac_config_files Makefile aacgain/Makefile mp3gain/Makefile mp3gain/mpglibDBL/Makefile faad2/libfaad/Makefile mpeg4ip/lib/mp4v2/Makefile"
26798
26799cat >confcache <<\_ACEOF
26800# This file is a shell script that caches the results of configure
26801# tests run on this system so they can be shared between configure
26802# scripts and configure runs, see configure's option --config-cache.
26803# It is not useful on other systems.  If it contains results you don't
26804# want to keep, you may remove or edit it.
26805#
26806# config.status only pays attention to the cache file if you give it
26807# the --recheck option to rerun configure.
26808#
26809# `ac_cv_env_foo' variables (set or unset) will be overridden when
26810# loading this file, other *unset* `ac_cv_foo' will be assigned the
26811# following values.
26812
26813_ACEOF
26814
26815# The following way of writing the cache mishandles newlines in values,
26816# but we know of no workaround that is simple, portable, and efficient.
26817# So, we kill variables containing newlines.
26818# Ultrix sh set writes to stderr and can't be redirected directly,
26819# and sets the high bit in the cache file unless we assign to the vars.
26820(
26821  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26822    eval ac_val=\$$ac_var
26823    case $ac_val in #(
26824    *${as_nl}*)
26825      case $ac_var in #(
26826      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26827echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26828      esac
26829      case $ac_var in #(
26830      _ | IFS | as_nl) ;; #(
26831      *) $as_unset $ac_var ;;
26832      esac ;;
26833    esac
26834  done
26835
26836  (set) 2>&1 |
26837    case $as_nl`(ac_space=' '; set) 2>&1` in #(
26838    *${as_nl}ac_space=\ *)
26839      # `set' does not quote correctly, so add quotes (double-quote
26840      # substitution turns \\\\ into \\, and sed turns \\ into \).
26841      sed -n \
26842	"s/'/'\\\\''/g;
26843	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26844      ;; #(
26845    *)
26846      # `set' quotes correctly as required by POSIX, so do not add quotes.
26847      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26848      ;;
26849    esac |
26850    sort
26851) |
26852  sed '
26853     /^ac_cv_env_/b end
26854     t clear
26855     :clear
26856     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26857     t end
26858     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26859     :end' >>confcache
26860if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26861  if test -w "$cache_file"; then
26862    test "x$cache_file" != "x/dev/null" &&
26863      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26864echo "$as_me: updating cache $cache_file" >&6;}
26865    cat confcache >$cache_file
26866  else
26867    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26868echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26869  fi
26870fi
26871rm -f confcache
26872
26873test "x$prefix" = xNONE && prefix=$ac_default_prefix
26874# Let make expand exec_prefix.
26875test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26876
26877DEFS=-DHAVE_CONFIG_H
26878
26879ac_libobjs=
26880ac_ltlibobjs=
26881for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
26882  # 1. Remove the extension, and $U if already installed.
26883  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26884  ac_i=`echo "$ac_i" | sed "$ac_script"`
26885  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26886  #    will be set to the directory where LIBOBJS objects are built.
26887  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26888  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26889done
26890LIB@&t@OBJS=$ac_libobjs
26891
26892LTLIBOBJS=$ac_ltlibobjs
26893
26894
26895if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26896  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26897Usually this means the macro was only invoked conditionally." >&5
26898echo "$as_me: error: conditional \"AMDEP\" was never defined.
26899Usually this means the macro was only invoked conditionally." >&2;}
26900   { (exit 1); exit 1; }; }
26901fi
26902if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26903  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26904Usually this means the macro was only invoked conditionally." >&5
26905echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26906Usually this means the macro was only invoked conditionally." >&2;}
26907   { (exit 1); exit 1; }; }
26908fi
26909if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26910  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26911Usually this means the macro was only invoked conditionally." >&5
26912echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26913Usually this means the macro was only invoked conditionally." >&2;}
26914   { (exit 1); exit 1; }; }
26915fi
26916if test -z "${do_static_build_TRUE}" && test -z "${do_static_build_FALSE}"; then
26917  { { echo "$as_me:$LINENO: error: conditional \"do_static_build\" was never defined.
26918Usually this means the macro was only invoked conditionally." >&5
26919echo "$as_me: error: conditional \"do_static_build\" was never defined.
26920Usually this means the macro was only invoked conditionally." >&2;}
26921   { (exit 1); exit 1; }; }
26922fi
26923
26924: ${CONFIG_STATUS=./config.status}
26925ac_clean_files_save=$ac_clean_files
26926ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26927{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26928echo "$as_me: creating $CONFIG_STATUS" >&6;}
26929cat >$CONFIG_STATUS <<_ACEOF
26930#! $SHELL
26931# Generated by $as_me.
26932# Run this file to recreate the current configuration.
26933# Compiler output produced by configure, useful for debugging
26934# configure, is in config.log if it exists.
26935
26936debug=false
26937ac_cs_recheck=false
26938ac_cs_silent=false
26939SHELL=\${CONFIG_SHELL-$SHELL}
26940_ACEOF
26941
26942cat >>$CONFIG_STATUS <<\_ACEOF
26943## --------------------- ##
26944## M4sh Initialization.  ##
26945## --------------------- ##
26946
26947# Be more Bourne compatible
26948DUALCASE=1; export DUALCASE # for MKS sh
26949if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26950  emulate sh
26951  NULLCMD=:
26952  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26953  # is contrary to our usage.  Disable this feature.
26954  alias -g '${1+"$@"}'='"$@"'
26955  setopt NO_GLOB_SUBST
26956else
26957  case `(set -o) 2>/dev/null` in
26958  *posix*) set -o posix ;;
26959esac
26960
26961fi
26962
26963
26964
26965
26966# PATH needs CR
26967# Avoid depending upon Character Ranges.
26968as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26969as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26970as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26971as_cr_digits='0123456789'
26972as_cr_alnum=$as_cr_Letters$as_cr_digits
26973
26974# The user is always right.
26975if test "${PATH_SEPARATOR+set}" != set; then
26976  echo "#! /bin/sh" >conf$$.sh
26977  echo  "exit 0"   >>conf$$.sh
26978  chmod +x conf$$.sh
26979  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26980    PATH_SEPARATOR=';'
26981  else
26982    PATH_SEPARATOR=:
26983  fi
26984  rm -f conf$$.sh
26985fi
26986
26987# Support unset when possible.
26988if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26989  as_unset=unset
26990else
26991  as_unset=false
26992fi
26993
26994
26995# IFS
26996# We need space, tab and new line, in precisely that order.  Quoting is
26997# there to prevent editors from complaining about space-tab.
26998# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26999# splitting by setting IFS to empty value.)
27000as_nl='
27001'
27002IFS=" ""	$as_nl"
27003
27004# Find who we are.  Look in the path if we contain no directory separator.
27005case $0 in
27006  *[\\/]* ) as_myself=$0 ;;
27007  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27008for as_dir in $PATH
27009do
27010  IFS=$as_save_IFS
27011  test -z "$as_dir" && as_dir=.
27012  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27013done
27014IFS=$as_save_IFS
27015
27016     ;;
27017esac
27018# We did not find ourselves, most probably we were run as `sh COMMAND'
27019# in which case we are not to be found in the path.
27020if test "x$as_myself" = x; then
27021  as_myself=$0
27022fi
27023if test ! -f "$as_myself"; then
27024  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27025  { (exit 1); exit 1; }
27026fi
27027
27028# Work around bugs in pre-3.0 UWIN ksh.
27029for as_var in ENV MAIL MAILPATH
27030do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27031done
27032PS1='$ '
27033PS2='> '
27034PS4='+ '
27035
27036# NLS nuisances.
27037for as_var in \
27038  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27039  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27040  LC_TELEPHONE LC_TIME
27041do
27042  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27043    eval $as_var=C; export $as_var
27044  else
27045    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27046  fi
27047done
27048
27049# Required to use basename.
27050if expr a : '\(a\)' >/dev/null 2>&1 &&
27051   test "X`expr 00001 : '.*\(...\)'`" = X001; then
27052  as_expr=expr
27053else
27054  as_expr=false
27055fi
27056
27057if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27058  as_basename=basename
27059else
27060  as_basename=false
27061fi
27062
27063
27064# Name of the executable.
27065as_me=`$as_basename -- "$0" ||
27066$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27067	 X"$0" : 'X\(//\)$' \| \
27068	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27069echo X/"$0" |
27070    sed '/^.*\/\([^/][^/]*\)\/*$/{
27071	    s//\1/
27072	    q
27073	  }
27074	  /^X\/\(\/\/\)$/{
27075	    s//\1/
27076	    q
27077	  }
27078	  /^X\/\(\/\).*/{
27079	    s//\1/
27080	    q
27081	  }
27082	  s/.*/./; q'`
27083
27084# CDPATH.
27085$as_unset CDPATH
27086
27087
27088
27089  as_lineno_1=$LINENO
27090  as_lineno_2=$LINENO
27091  test "x$as_lineno_1" != "x$as_lineno_2" &&
27092  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27093
27094  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27095  # uniformly replaced by the line number.  The first 'sed' inserts a
27096  # line-number line after each line using $LINENO; the second 'sed'
27097  # does the real work.  The second script uses 'N' to pair each
27098  # line-number line with the line containing $LINENO, and appends
27099  # trailing '-' during substitution so that $LINENO is not a special
27100  # case at line end.
27101  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27102  # scripts with optimization help from Paolo Bonzini.  Blame Lee
27103  # E. McMahon (1931-1989) for sed's syntax.  :-)
27104  sed -n '
27105    p
27106    /[$]LINENO/=
27107  ' <$as_myself |
27108    sed '
27109      s/[$]LINENO.*/&-/
27110      t lineno
27111      b
27112      :lineno
27113      N
27114      :loop
27115      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27116      t loop
27117      s/-\n.*//
27118    ' >$as_me.lineno &&
27119  chmod +x "$as_me.lineno" ||
27120    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27121   { (exit 1); exit 1; }; }
27122
27123  # Don't try to exec as it changes $[0], causing all sort of problems
27124  # (the dirname of $[0] is not the place where we might find the
27125  # original and so on.  Autoconf is especially sensitive to this).
27126  . "./$as_me.lineno"
27127  # Exit status is that of the last command.
27128  exit
27129}
27130
27131
27132if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27133  as_dirname=dirname
27134else
27135  as_dirname=false
27136fi
27137
27138ECHO_C= ECHO_N= ECHO_T=
27139case `echo -n x` in
27140-n*)
27141  case `echo 'x\c'` in
27142  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
27143  *)   ECHO_C='\c';;
27144  esac;;
27145*)
27146  ECHO_N='-n';;
27147esac
27148
27149if expr a : '\(a\)' >/dev/null 2>&1 &&
27150   test "X`expr 00001 : '.*\(...\)'`" = X001; then
27151  as_expr=expr
27152else
27153  as_expr=false
27154fi
27155
27156rm -f conf$$ conf$$.exe conf$$.file
27157if test -d conf$$.dir; then
27158  rm -f conf$$.dir/conf$$.file
27159else
27160  rm -f conf$$.dir
27161  mkdir conf$$.dir
27162fi
27163echo >conf$$.file
27164if ln -s conf$$.file conf$$ 2>/dev/null; then
27165  as_ln_s='ln -s'
27166  # ... but there are two gotchas:
27167  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27168  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27169  # In both cases, we have to default to `cp -p'.
27170  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27171    as_ln_s='cp -p'
27172elif ln conf$$.file conf$$ 2>/dev/null; then
27173  as_ln_s=ln
27174else
27175  as_ln_s='cp -p'
27176fi
27177rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27178rmdir conf$$.dir 2>/dev/null
27179
27180if mkdir -p . 2>/dev/null; then
27181  as_mkdir_p=:
27182else
27183  test -d ./-p && rmdir ./-p
27184  as_mkdir_p=false
27185fi
27186
27187if test -x / >/dev/null 2>&1; then
27188  as_test_x='test -x'
27189else
27190  if ls -dL / >/dev/null 2>&1; then
27191    as_ls_L_option=L
27192  else
27193    as_ls_L_option=
27194  fi
27195  as_test_x='
27196    eval sh -c '\''
27197      if test -d "$1"; then
27198        test -d "$1/.";
27199      else
27200	case $1 in
27201        -*)set "./$1";;
27202	esac;
27203	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27204	???[sx]*):;;*)false;;esac;fi
27205    '\'' sh
27206  '
27207fi
27208as_executable_p=$as_test_x
27209
27210# Sed expression to map a string onto a valid CPP name.
27211as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27212
27213# Sed expression to map a string onto a valid variable name.
27214as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27215
27216
27217exec 6>&1
27218
27219# Save the log message, to keep $[0] and so on meaningful, and to
27220# report actual input values of CONFIG_FILES etc. instead of their
27221# values after options handling.
27222ac_log="
27223This file was extended by $as_me, which was
27224generated by GNU Autoconf 2.61.  Invocation command line was
27225
27226  CONFIG_FILES    = $CONFIG_FILES
27227  CONFIG_HEADERS  = $CONFIG_HEADERS
27228  CONFIG_LINKS    = $CONFIG_LINKS
27229  CONFIG_COMMANDS = $CONFIG_COMMANDS
27230  $ $0 $@
27231
27232on `(hostname || uname -n) 2>/dev/null | sed 1q`
27233"
27234
27235_ACEOF
27236
27237cat >>$CONFIG_STATUS <<_ACEOF
27238# Files that config.status was made for.
27239config_files="$ac_config_files"
27240config_headers="$ac_config_headers"
27241config_commands="$ac_config_commands"
27242
27243_ACEOF
27244
27245cat >>$CONFIG_STATUS <<\_ACEOF
27246ac_cs_usage="\
27247\`$as_me' instantiates files from templates according to the
27248current configuration.
27249
27250Usage: $0 [OPTIONS] [FILE]...
27251
27252  -h, --help       print this help, then exit
27253  -V, --version    print version number and configuration settings, then exit
27254  -q, --quiet      do not print progress messages
27255  -d, --debug      don't remove temporary files
27256      --recheck    update $as_me by reconfiguring in the same conditions
27257  --file=FILE[:TEMPLATE]
27258		   instantiate the configuration file FILE
27259  --header=FILE[:TEMPLATE]
27260		   instantiate the configuration header FILE
27261
27262Configuration files:
27263$config_files
27264
27265Configuration headers:
27266$config_headers
27267
27268Configuration commands:
27269$config_commands
27270
27271Report bugs to <bug-autoconf@gnu.org>."
27272
27273_ACEOF
27274cat >>$CONFIG_STATUS <<_ACEOF
27275ac_cs_version="\\
27276config.status
27277configured by $0, generated by GNU Autoconf 2.61,
27278  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27279
27280Copyright (C) 2006 Free Software Foundation, Inc.
27281This config.status script is free software; the Free Software Foundation
27282gives unlimited permission to copy, distribute and modify it."
27283
27284ac_pwd='$ac_pwd'
27285srcdir='$srcdir'
27286INSTALL='$INSTALL'
27287MKDIR_P='$MKDIR_P'
27288_ACEOF
27289
27290cat >>$CONFIG_STATUS <<\_ACEOF
27291# If no file are specified by the user, then we need to provide default
27292# value.  By we need to know if files were specified by the user.
27293ac_need_defaults=:
27294while test $# != 0
27295do
27296  case $1 in
27297  --*=*)
27298    ac_option=`expr "X$1" : 'X\([^=]*\)='`
27299    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27300    ac_shift=:
27301    ;;
27302  *)
27303    ac_option=$1
27304    ac_optarg=$2
27305    ac_shift=shift
27306    ;;
27307  esac
27308
27309  case $ac_option in
27310  # Handling of the options.
27311  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27312    ac_cs_recheck=: ;;
27313  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27314    echo "$ac_cs_version"; exit ;;
27315  --debug | --debu | --deb | --de | --d | -d )
27316    debug=: ;;
27317  --file | --fil | --fi | --f )
27318    $ac_shift
27319    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27320    ac_need_defaults=false;;
27321  --header | --heade | --head | --hea )
27322    $ac_shift
27323    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27324    ac_need_defaults=false;;
27325  --he | --h)
27326    # Conflict between --help and --header
27327    { echo "$as_me: error: ambiguous option: $1
27328Try \`$0 --help' for more information." >&2
27329   { (exit 1); exit 1; }; };;
27330  --help | --hel | -h )
27331    echo "$ac_cs_usage"; exit ;;
27332  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27333  | -silent | --silent | --silen | --sile | --sil | --si | --s)
27334    ac_cs_silent=: ;;
27335
27336  # This is an error.
27337  -*) { echo "$as_me: error: unrecognized option: $1
27338Try \`$0 --help' for more information." >&2
27339   { (exit 1); exit 1; }; } ;;
27340
27341  *) ac_config_targets="$ac_config_targets $1"
27342     ac_need_defaults=false ;;
27343
27344  esac
27345  shift
27346done
27347
27348ac_configure_extra_args=
27349
27350if $ac_cs_silent; then
27351  exec 6>/dev/null
27352  ac_configure_extra_args="$ac_configure_extra_args --silent"
27353fi
27354
27355_ACEOF
27356cat >>$CONFIG_STATUS <<_ACEOF
27357if \$ac_cs_recheck; then
27358  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27359  CONFIG_SHELL=$SHELL
27360  export CONFIG_SHELL
27361  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27362fi
27363
27364_ACEOF
27365cat >>$CONFIG_STATUS <<\_ACEOF
27366exec 5>>config.log
27367{
27368  echo
27369  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
27370@%:@@%:@ Running $as_me. @%:@@%:@
27371_ASBOX
27372  echo "$ac_log"
27373} >&5
27374
27375_ACEOF
27376cat >>$CONFIG_STATUS <<_ACEOF
27377#
27378# INIT-COMMANDS
27379#
27380AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27381
27382_ACEOF
27383
27384cat >>$CONFIG_STATUS <<\_ACEOF
27385
27386# Handling of arguments.
27387for ac_config_target in $ac_config_targets
27388do
27389  case $ac_config_target in
27390    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27391    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27392    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27393    "aacgain/Makefile") CONFIG_FILES="$CONFIG_FILES aacgain/Makefile" ;;
27394    "mp3gain/Makefile") CONFIG_FILES="$CONFIG_FILES mp3gain/Makefile" ;;
27395    "mp3gain/mpglibDBL/Makefile") CONFIG_FILES="$CONFIG_FILES mp3gain/mpglibDBL/Makefile" ;;
27396    "faad2/libfaad/Makefile") CONFIG_FILES="$CONFIG_FILES faad2/libfaad/Makefile" ;;
27397    "mpeg4ip/lib/mp4v2/Makefile") CONFIG_FILES="$CONFIG_FILES mpeg4ip/lib/mp4v2/Makefile" ;;
27398
27399  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27400echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27401   { (exit 1); exit 1; }; };;
27402  esac
27403done
27404
27405
27406# If the user did not use the arguments to specify the items to instantiate,
27407# then the envvar interface is used.  Set only those that are not.
27408# We use the long form for the default assignment because of an extremely
27409# bizarre bug on SunOS 4.1.3.
27410if $ac_need_defaults; then
27411  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27412  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27413  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27414fi
27415
27416# Have a temporary directory for convenience.  Make it in the build tree
27417# simply because there is no reason against having it here, and in addition,
27418# creating and moving files from /tmp can sometimes cause problems.
27419# Hook for its removal unless debugging.
27420# Note that there is a small window in which the directory will not be cleaned:
27421# after its creation but before its name has been assigned to `$tmp'.
27422$debug ||
27423{
27424  tmp=
27425  trap 'exit_status=$?
27426  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27427' 0
27428  trap '{ (exit 1); exit 1; }' 1 2 13 15
27429}
27430# Create a (secure) tmp directory for tmp files.
27431
27432{
27433  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27434  test -n "$tmp" && test -d "$tmp"
27435}  ||
27436{
27437  tmp=./conf$$-$RANDOM
27438  (umask 077 && mkdir "$tmp")
27439} ||
27440{
27441   echo "$me: cannot create a temporary directory in ." >&2
27442   { (exit 1); exit 1; }
27443}
27444
27445#
27446# Set up the sed scripts for CONFIG_FILES section.
27447#
27448
27449# No need to generate the scripts if there are no CONFIG_FILES.
27450# This happens for instance when ./config.status config.h
27451if test -n "$CONFIG_FILES"; then
27452
27453_ACEOF
27454
27455
27456
27457ac_delim='%!_!# '
27458for ac_last_try in false false false false false :; do
27459  cat >conf$$subs.sed <<_ACEOF
27460SHELL!$SHELL$ac_delim
27461PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27462PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27463PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27464PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27465PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27466PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27467exec_prefix!$exec_prefix$ac_delim
27468prefix!$prefix$ac_delim
27469program_transform_name!$program_transform_name$ac_delim
27470bindir!$bindir$ac_delim
27471sbindir!$sbindir$ac_delim
27472libexecdir!$libexecdir$ac_delim
27473datarootdir!$datarootdir$ac_delim
27474datadir!$datadir$ac_delim
27475sysconfdir!$sysconfdir$ac_delim
27476sharedstatedir!$sharedstatedir$ac_delim
27477localstatedir!$localstatedir$ac_delim
27478includedir!$includedir$ac_delim
27479oldincludedir!$oldincludedir$ac_delim
27480docdir!$docdir$ac_delim
27481infodir!$infodir$ac_delim
27482htmldir!$htmldir$ac_delim
27483dvidir!$dvidir$ac_delim
27484pdfdir!$pdfdir$ac_delim
27485psdir!$psdir$ac_delim
27486libdir!$libdir$ac_delim
27487localedir!$localedir$ac_delim
27488mandir!$mandir$ac_delim
27489DEFS!$DEFS$ac_delim
27490ECHO_C!$ECHO_C$ac_delim
27491ECHO_N!$ECHO_N$ac_delim
27492ECHO_T!$ECHO_T$ac_delim
27493LIBS!$LIBS$ac_delim
27494build_alias!$build_alias$ac_delim
27495host_alias!$host_alias$ac_delim
27496target_alias!$target_alias$ac_delim
27497INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27498INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27499INSTALL_DATA!$INSTALL_DATA$ac_delim
27500am__isrc!$am__isrc$ac_delim
27501CYGPATH_W!$CYGPATH_W$ac_delim
27502PACKAGE!$PACKAGE$ac_delim
27503VERSION!$VERSION$ac_delim
27504ACLOCAL!$ACLOCAL$ac_delim
27505AUTOCONF!$AUTOCONF$ac_delim
27506AUTOMAKE!$AUTOMAKE$ac_delim
27507AUTOHEADER!$AUTOHEADER$ac_delim
27508MAKEINFO!$MAKEINFO$ac_delim
27509install_sh!$install_sh$ac_delim
27510STRIP!$STRIP$ac_delim
27511INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27512mkdir_p!$mkdir_p$ac_delim
27513AWK!$AWK$ac_delim
27514SET_MAKE!$SET_MAKE$ac_delim
27515am__leading_dot!$am__leading_dot$ac_delim
27516AMTAR!$AMTAR$ac_delim
27517am__tar!$am__tar$ac_delim
27518am__untar!$am__untar$ac_delim
27519CC!$CC$ac_delim
27520CFLAGS!$CFLAGS$ac_delim
27521LDFLAGS!$LDFLAGS$ac_delim
27522CPPFLAGS!$CPPFLAGS$ac_delim
27523ac_ct_CC!$ac_ct_CC$ac_delim
27524EXEEXT!$EXEEXT$ac_delim
27525OBJEXT!$OBJEXT$ac_delim
27526DEPDIR!$DEPDIR$ac_delim
27527am__include!$am__include$ac_delim
27528am__quote!$am__quote$ac_delim
27529AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27530AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27531AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27532CCDEPMODE!$CCDEPMODE$ac_delim
27533am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27534am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27535CXX!$CXX$ac_delim
27536CXXFLAGS!$CXXFLAGS$ac_delim
27537ac_ct_CXX!$ac_ct_CXX$ac_delim
27538CXXDEPMODE!$CXXDEPMODE$ac_delim
27539am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27540am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27541CPP!$CPP$ac_delim
27542do_static_build_TRUE!$do_static_build_TRUE$ac_delim
27543do_static_build_FALSE!$do_static_build_FALSE$ac_delim
27544XMKMF!$XMKMF$ac_delim
27545CXXCPP!$CXXCPP$ac_delim
27546X_CFLAGS!$X_CFLAGS$ac_delim
27547X_PRE_LIBS!$X_PRE_LIBS$ac_delim
27548X_LIBS!$X_LIBS$ac_delim
27549X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
27550GREP!$GREP$ac_delim
27551EGREP!$EGREP$ac_delim
27552build!$build$ac_delim
27553build_cpu!$build_cpu$ac_delim
27554build_vendor!$build_vendor$ac_delim
27555build_os!$build_os$ac_delim
27556host!$host$ac_delim
27557_ACEOF
27558
27559  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27560    break
27561  elif $ac_last_try; then
27562    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27563echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27564   { (exit 1); exit 1; }; }
27565  else
27566    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27567  fi
27568done
27569
27570ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27571if test -n "$ac_eof"; then
27572  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27573  ac_eof=`expr $ac_eof + 1`
27574fi
27575
27576cat >>$CONFIG_STATUS <<_ACEOF
27577cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27578/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27579_ACEOF
27580sed '
27581s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27582s/^/s,@/; s/!/@,|#_!!_#|/
27583:n
27584t n
27585s/'"$ac_delim"'$/,g/; t
27586s/$/\\/; p
27587N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27588' >>$CONFIG_STATUS <conf$$subs.sed
27589rm -f conf$$subs.sed
27590cat >>$CONFIG_STATUS <<_ACEOF
27591CEOF$ac_eof
27592_ACEOF
27593
27594
27595ac_delim='%!_!# '
27596for ac_last_try in false false false false false :; do
27597  cat >conf$$subs.sed <<_ACEOF
27598host_cpu!$host_cpu$ac_delim
27599host_vendor!$host_vendor$ac_delim
27600host_os!$host_os$ac_delim
27601SED!$SED$ac_delim
27602LN_S!$LN_S$ac_delim
27603ECHO!$ECHO$ac_delim
27604AR!$AR$ac_delim
27605RANLIB!$RANLIB$ac_delim
27606DSYMUTIL!$DSYMUTIL$ac_delim
27607NMEDIT!$NMEDIT$ac_delim
27608F77!$F77$ac_delim
27609FFLAGS!$FFLAGS$ac_delim
27610ac_ct_F77!$ac_ct_F77$ac_delim
27611LIBTOOL!$LIBTOOL$ac_delim
27612LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
27613LTLIBOBJS!$LTLIBOBJS$ac_delim
27614_ACEOF
27615
27616  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
27617    break
27618  elif $ac_last_try; then
27619    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27620echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27621   { (exit 1); exit 1; }; }
27622  else
27623    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27624  fi
27625done
27626
27627ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27628if test -n "$ac_eof"; then
27629  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27630  ac_eof=`expr $ac_eof + 1`
27631fi
27632
27633cat >>$CONFIG_STATUS <<_ACEOF
27634cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27635/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27636_ACEOF
27637sed '
27638s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27639s/^/s,@/; s/!/@,|#_!!_#|/
27640:n
27641t n
27642s/'"$ac_delim"'$/,g/; t
27643s/$/\\/; p
27644N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27645' >>$CONFIG_STATUS <conf$$subs.sed
27646rm -f conf$$subs.sed
27647cat >>$CONFIG_STATUS <<_ACEOF
27648:end
27649s/|#_!!_#|//g
27650CEOF$ac_eof
27651_ACEOF
27652
27653
27654# VPATH may cause trouble with some makes, so we remove $(srcdir),
27655# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27656# trailing colons and then remove the whole line if VPATH becomes empty
27657# (actually we leave an empty line to preserve line numbers).
27658if test "x$srcdir" = x.; then
27659  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
27660s/:*\$(srcdir):*/:/
27661s/:*\${srcdir}:*/:/
27662s/:*@srcdir@:*/:/
27663s/^\([^=]*=[	 ]*\):*/\1/
27664s/:*$//
27665s/^[^=]*=[	 ]*$//
27666}'
27667fi
27668
27669cat >>$CONFIG_STATUS <<\_ACEOF
27670fi # test -n "$CONFIG_FILES"
27671
27672
27673for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27674do
27675  case $ac_tag in
27676  :[FHLC]) ac_mode=$ac_tag; continue;;
27677  esac
27678  case $ac_mode$ac_tag in
27679  :[FHL]*:*);;
27680  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27681echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27682   { (exit 1); exit 1; }; };;
27683  :[FH]-) ac_tag=-:-;;
27684  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27685  esac
27686  ac_save_IFS=$IFS
27687  IFS=:
27688  set x $ac_tag
27689  IFS=$ac_save_IFS
27690  shift
27691  ac_file=$1
27692  shift
27693
27694  case $ac_mode in
27695  :L) ac_source=$1;;
27696  :[FH])
27697    ac_file_inputs=
27698    for ac_f
27699    do
27700      case $ac_f in
27701      -) ac_f="$tmp/stdin";;
27702      *) # Look for the file first in the build tree, then in the source tree
27703	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
27704	 # because $ac_f cannot contain `:'.
27705	 test -f "$ac_f" ||
27706	   case $ac_f in
27707	   [\\/$]*) false;;
27708	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27709	   esac ||
27710	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27711echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27712   { (exit 1); exit 1; }; };;
27713      esac
27714      ac_file_inputs="$ac_file_inputs $ac_f"
27715    done
27716
27717    # Let's still pretend it is `configure' which instantiates (i.e., don't
27718    # use $as_me), people would be surprised to read:
27719    #    /* config.h.  Generated by config.status.  */
27720    configure_input="Generated from "`IFS=:
27721	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27722    if test x"$ac_file" != x-; then
27723      configure_input="$ac_file.  $configure_input"
27724      { echo "$as_me:$LINENO: creating $ac_file" >&5
27725echo "$as_me: creating $ac_file" >&6;}
27726    fi
27727
27728    case $ac_tag in
27729    *:-:* | *:-) cat >"$tmp/stdin";;
27730    esac
27731    ;;
27732  esac
27733
27734  ac_dir=`$as_dirname -- "$ac_file" ||
27735$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27736	 X"$ac_file" : 'X\(//\)[^/]' \| \
27737	 X"$ac_file" : 'X\(//\)$' \| \
27738	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27739echo X"$ac_file" |
27740    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27741	    s//\1/
27742	    q
27743	  }
27744	  /^X\(\/\/\)[^/].*/{
27745	    s//\1/
27746	    q
27747	  }
27748	  /^X\(\/\/\)$/{
27749	    s//\1/
27750	    q
27751	  }
27752	  /^X\(\/\).*/{
27753	    s//\1/
27754	    q
27755	  }
27756	  s/.*/./; q'`
27757  { as_dir="$ac_dir"
27758  case $as_dir in #(
27759  -*) as_dir=./$as_dir;;
27760  esac
27761  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27762    as_dirs=
27763    while :; do
27764      case $as_dir in #(
27765      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27766      *) as_qdir=$as_dir;;
27767      esac
27768      as_dirs="'$as_qdir' $as_dirs"
27769      as_dir=`$as_dirname -- "$as_dir" ||
27770$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27771	 X"$as_dir" : 'X\(//\)[^/]' \| \
27772	 X"$as_dir" : 'X\(//\)$' \| \
27773	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27774echo X"$as_dir" |
27775    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27776	    s//\1/
27777	    q
27778	  }
27779	  /^X\(\/\/\)[^/].*/{
27780	    s//\1/
27781	    q
27782	  }
27783	  /^X\(\/\/\)$/{
27784	    s//\1/
27785	    q
27786	  }
27787	  /^X\(\/\).*/{
27788	    s//\1/
27789	    q
27790	  }
27791	  s/.*/./; q'`
27792      test -d "$as_dir" && break
27793    done
27794    test -z "$as_dirs" || eval "mkdir $as_dirs"
27795  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27796echo "$as_me: error: cannot create directory $as_dir" >&2;}
27797   { (exit 1); exit 1; }; }; }
27798  ac_builddir=.
27799
27800case "$ac_dir" in
27801.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27802*)
27803  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27804  # A ".." for each directory in $ac_dir_suffix.
27805  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27806  case $ac_top_builddir_sub in
27807  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27808  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27809  esac ;;
27810esac
27811ac_abs_top_builddir=$ac_pwd
27812ac_abs_builddir=$ac_pwd$ac_dir_suffix
27813# for backward compatibility:
27814ac_top_builddir=$ac_top_build_prefix
27815
27816case $srcdir in
27817  .)  # We are building in place.
27818    ac_srcdir=.
27819    ac_top_srcdir=$ac_top_builddir_sub
27820    ac_abs_top_srcdir=$ac_pwd ;;
27821  [\\/]* | ?:[\\/]* )  # Absolute name.
27822    ac_srcdir=$srcdir$ac_dir_suffix;
27823    ac_top_srcdir=$srcdir
27824    ac_abs_top_srcdir=$srcdir ;;
27825  *) # Relative name.
27826    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27827    ac_top_srcdir=$ac_top_build_prefix$srcdir
27828    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27829esac
27830ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27831
27832
27833  case $ac_mode in
27834  :F)
27835  #
27836  # CONFIG_FILE
27837  #
27838
27839  case $INSTALL in
27840  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27841  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27842  esac
27843  ac_MKDIR_P=$MKDIR_P
27844  case $MKDIR_P in
27845  [\\/$]* | ?:[\\/]* ) ;;
27846  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27847  esac
27848_ACEOF
27849
27850cat >>$CONFIG_STATUS <<\_ACEOF
27851# If the template does not know about datarootdir, expand it.
27852# FIXME: This hack should be removed a few years after 2.60.
27853ac_datarootdir_hack=; ac_datarootdir_seen=
27854
27855case `sed -n '/datarootdir/ {
27856  p
27857  q
27858}
27859/@datadir@/p
27860/@docdir@/p
27861/@infodir@/p
27862/@localedir@/p
27863/@mandir@/p
27864' $ac_file_inputs` in
27865*datarootdir*) ac_datarootdir_seen=yes;;
27866*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27867  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27868echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27869_ACEOF
27870cat >>$CONFIG_STATUS <<_ACEOF
27871  ac_datarootdir_hack='
27872  s&@datadir@&$datadir&g
27873  s&@docdir@&$docdir&g
27874  s&@infodir@&$infodir&g
27875  s&@localedir@&$localedir&g
27876  s&@mandir@&$mandir&g
27877    s&\\\${datarootdir}&$datarootdir&g' ;;
27878esac
27879_ACEOF
27880
27881# Neutralize VPATH when `$srcdir' = `.'.
27882# Shell code in configure.ac might set extrasub.
27883# FIXME: do we really want to maintain this feature?
27884cat >>$CONFIG_STATUS <<_ACEOF
27885  sed "$ac_vpsub
27886$extrasub
27887_ACEOF
27888cat >>$CONFIG_STATUS <<\_ACEOF
27889:t
27890/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27891s&@configure_input@&$configure_input&;t t
27892s&@top_builddir@&$ac_top_builddir_sub&;t t
27893s&@srcdir@&$ac_srcdir&;t t
27894s&@abs_srcdir@&$ac_abs_srcdir&;t t
27895s&@top_srcdir@&$ac_top_srcdir&;t t
27896s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27897s&@builddir@&$ac_builddir&;t t
27898s&@abs_builddir@&$ac_abs_builddir&;t t
27899s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27900s&@INSTALL@&$ac_INSTALL&;t t
27901s&@MKDIR_P@&$ac_MKDIR_P&;t t
27902$ac_datarootdir_hack
27903" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27904
27905test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27906  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27907  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27908  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27909which seems to be undefined.  Please make sure it is defined." >&5
27910echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27911which seems to be undefined.  Please make sure it is defined." >&2;}
27912
27913  rm -f "$tmp/stdin"
27914  case $ac_file in
27915  -) cat "$tmp/out"; rm -f "$tmp/out";;
27916  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27917  esac
27918 ;;
27919  :H)
27920  #
27921  # CONFIG_HEADER
27922  #
27923_ACEOF
27924
27925# Transform confdefs.h into a sed script `conftest.defines', that
27926# substitutes the proper values into config.h.in to produce config.h.
27927rm -f conftest.defines conftest.tail
27928# First, append a space to every undef/define line, to ease matching.
27929echo 's/$/ /' >conftest.defines
27930# Then, protect against being on the right side of a sed subst, or in
27931# an unquoted here document, in config.status.  If some macros were
27932# called several times there might be several #defines for the same
27933# symbol, which is useless.  But do not sort them, since the last
27934# AC_DEFINE must be honored.
27935ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27936# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27937# NAME is the cpp macro being defined, VALUE is the value it is being given.
27938# PARAMS is the parameter list in the macro definition--in most cases, it's
27939# just an empty string.
27940ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
27941ac_dB='\\)[	 (].*,\\1define\\2'
27942ac_dC=' '
27943ac_dD=' ,'
27944
27945uniq confdefs.h |
27946  sed -n '
27947	t rset
27948	:rset
27949	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
27950	t ok
27951	d
27952	:ok
27953	s/[\\&,]/\\&/g
27954	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27955	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27956  ' >>conftest.defines
27957
27958# Remove the space that was appended to ease matching.
27959# Then replace #undef with comments.  This is necessary, for
27960# example, in the case of _POSIX_SOURCE, which is predefined and required
27961# on some systems where configure will not decide to define it.
27962# (The regexp can be short, since the line contains either #define or #undef.)
27963echo 's/ $//
27964s,^[	 #]*u.*,/* & */,' >>conftest.defines
27965
27966# Break up conftest.defines:
27967ac_max_sed_lines=50
27968
27969# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27970# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27971# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27972# et cetera.
27973ac_in='$ac_file_inputs'
27974ac_out='"$tmp/out1"'
27975ac_nxt='"$tmp/out2"'
27976
27977while :
27978do
27979  # Write a here document:
27980    cat >>$CONFIG_STATUS <<_ACEOF
27981    # First, check the format of the line:
27982    cat >"\$tmp/defines.sed" <<\\CEOF
27983/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
27984/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
27985b
27986:def
27987_ACEOF
27988  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27989  echo 'CEOF
27990    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27991  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27992  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27993  grep . conftest.tail >/dev/null || break
27994  rm -f conftest.defines
27995  mv conftest.tail conftest.defines
27996done
27997rm -f conftest.defines conftest.tail
27998
27999echo "ac_result=$ac_in" >>$CONFIG_STATUS
28000cat >>$CONFIG_STATUS <<\_ACEOF
28001  if test x"$ac_file" != x-; then
28002    echo "/* $configure_input  */" >"$tmp/config.h"
28003    cat "$ac_result" >>"$tmp/config.h"
28004    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28005      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28006echo "$as_me: $ac_file is unchanged" >&6;}
28007    else
28008      rm -f $ac_file
28009      mv "$tmp/config.h" $ac_file
28010    fi
28011  else
28012    echo "/* $configure_input  */"
28013    cat "$ac_result"
28014  fi
28015  rm -f "$tmp/out12"
28016# Compute $ac_file's index in $config_headers.
28017_am_arg=$ac_file
28018_am_stamp_count=1
28019for _am_header in $config_headers :; do
28020  case $_am_header in
28021    $_am_arg | $_am_arg:* )
28022      break ;;
28023    * )
28024      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28025  esac
28026done
28027echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28028$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28029	 X"$_am_arg" : 'X\(//\)[^/]' \| \
28030	 X"$_am_arg" : 'X\(//\)$' \| \
28031	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28032echo X"$_am_arg" |
28033    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28034	    s//\1/
28035	    q
28036	  }
28037	  /^X\(\/\/\)[^/].*/{
28038	    s//\1/
28039	    q
28040	  }
28041	  /^X\(\/\/\)$/{
28042	    s//\1/
28043	    q
28044	  }
28045	  /^X\(\/\).*/{
28046	    s//\1/
28047	    q
28048	  }
28049	  s/.*/./; q'`/stamp-h$_am_stamp_count
28050 ;;
28051
28052  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28053echo "$as_me: executing $ac_file commands" >&6;}
28054 ;;
28055  esac
28056
28057
28058  case $ac_file$ac_mode in
28059    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28060  # Strip MF so we end up with the name of the file.
28061  mf=`echo "$mf" | sed -e 's/:.*$//'`
28062  # Check whether this is an Automake generated Makefile or not.
28063  # We used to match only the files named `Makefile.in', but
28064  # some people rename them; so instead we look at the file content.
28065  # Grep'ing the first line is not enough: some people post-process
28066  # each Makefile.in and add a new line on top of each file to say so.
28067  # Grep'ing the whole file is not good either: AIX grep has a line
28068  # limit of 2048, but all sed's we know have understand at least 4000.
28069  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28070    dirpart=`$as_dirname -- "$mf" ||
28071$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28072	 X"$mf" : 'X\(//\)[^/]' \| \
28073	 X"$mf" : 'X\(//\)$' \| \
28074	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28075echo X"$mf" |
28076    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28077	    s//\1/
28078	    q
28079	  }
28080	  /^X\(\/\/\)[^/].*/{
28081	    s//\1/
28082	    q
28083	  }
28084	  /^X\(\/\/\)$/{
28085	    s//\1/
28086	    q
28087	  }
28088	  /^X\(\/\).*/{
28089	    s//\1/
28090	    q
28091	  }
28092	  s/.*/./; q'`
28093  else
28094    continue
28095  fi
28096  # Extract the definition of DEPDIR, am__include, and am__quote
28097  # from the Makefile without running `make'.
28098  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28099  test -z "$DEPDIR" && continue
28100  am__include=`sed -n 's/^am__include = //p' < "$mf"`
28101  test -z "am__include" && continue
28102  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28103  # When using ansi2knr, U may be empty or an underscore; expand it
28104  U=`sed -n 's/^U = //p' < "$mf"`
28105  # Find all dependency output files, they are included files with
28106  # $(DEPDIR) in their names.  We invoke sed twice because it is the
28107  # simplest approach to changing $(DEPDIR) to its actual value in the
28108  # expansion.
28109  for file in `sed -n "
28110    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28111       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28112    # Make sure the directory exists.
28113    test -f "$dirpart/$file" && continue
28114    fdir=`$as_dirname -- "$file" ||
28115$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28116	 X"$file" : 'X\(//\)[^/]' \| \
28117	 X"$file" : 'X\(//\)$' \| \
28118	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28119echo X"$file" |
28120    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28121	    s//\1/
28122	    q
28123	  }
28124	  /^X\(\/\/\)[^/].*/{
28125	    s//\1/
28126	    q
28127	  }
28128	  /^X\(\/\/\)$/{
28129	    s//\1/
28130	    q
28131	  }
28132	  /^X\(\/\).*/{
28133	    s//\1/
28134	    q
28135	  }
28136	  s/.*/./; q'`
28137    { as_dir=$dirpart/$fdir
28138  case $as_dir in #(
28139  -*) as_dir=./$as_dir;;
28140  esac
28141  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28142    as_dirs=
28143    while :; do
28144      case $as_dir in #(
28145      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28146      *) as_qdir=$as_dir;;
28147      esac
28148      as_dirs="'$as_qdir' $as_dirs"
28149      as_dir=`$as_dirname -- "$as_dir" ||
28150$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28151	 X"$as_dir" : 'X\(//\)[^/]' \| \
28152	 X"$as_dir" : 'X\(//\)$' \| \
28153	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28154echo X"$as_dir" |
28155    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28156	    s//\1/
28157	    q
28158	  }
28159	  /^X\(\/\/\)[^/].*/{
28160	    s//\1/
28161	    q
28162	  }
28163	  /^X\(\/\/\)$/{
28164	    s//\1/
28165	    q
28166	  }
28167	  /^X\(\/\).*/{
28168	    s//\1/
28169	    q
28170	  }
28171	  s/.*/./; q'`
28172      test -d "$as_dir" && break
28173    done
28174    test -z "$as_dirs" || eval "mkdir $as_dirs"
28175  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28176echo "$as_me: error: cannot create directory $as_dir" >&2;}
28177   { (exit 1); exit 1; }; }; }
28178    # echo "creating $dirpart/$file"
28179    echo '# dummy' > "$dirpart/$file"
28180  done
28181done
28182 ;;
28183
28184  esac
28185done # for ac_tag
28186
28187
28188{ (exit 0); exit 0; }
28189_ACEOF
28190chmod +x $CONFIG_STATUS
28191ac_clean_files=$ac_clean_files_save
28192
28193
28194# configure is writing to config.log, and then calls config.status.
28195# config.status does its own redirection, appending to config.log.
28196# Unfortunately, on DOS this fails, as config.log is still kept open
28197# by configure, so config.status won't be able to write to it; its
28198# output is simply discarded.  So we exec the FD to /dev/null,
28199# effectively closing config.log, so it can be properly (re)opened and
28200# appended to by config.status.  When coming back to configure, we
28201# need to make the FD available again.
28202if test "$no_create" != yes; then
28203  ac_cs_success=:
28204  ac_config_status_args=
28205  test "$silent" = yes &&
28206    ac_config_status_args="$ac_config_status_args --quiet"
28207  exec 5>/dev/null
28208  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28209  exec 5>>config.log
28210  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28211  # would make configure fail if this is the last instruction.
28212  $ac_cs_success || { (exit 1); exit 1; }
28213fi
28214
28215
28216ln -sf ../config.h faad2/config.h
28217ln -sf ../config.h aacgain/config.h
28218ln -sf config.h mpeg4ip_config.h
28219