1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241  emulate sh
242  NULLCMD=:
243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244  # is contrary to our usage.  Disable this feature.
245  alias -g '${1+"$@"}'='"$@"'
246  setopt NO_GLOB_SUBST
247else
248  case `(set -o) 2>/dev/null` in
249  *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258  CONFIG_SHELL=$as_shell
259	       as_have_required=yes
260	       if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278  (exit $1)
279}
280as_func_success () {
281  as_func_return 0
282}
283as_func_failure () {
284  as_func_return 1
285}
286as_func_ret_success () {
287  return 0
288}
289as_func_ret_failure () {
290  return 1
291}
292
293exitcode=0
294if as_func_success; then
295  :
296else
297  exitcode=1
298  echo as_func_success failed.
299fi
300
301if as_func_failure; then
302  exitcode=1
303  echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307  :
308else
309  exitcode=1
310  echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314  exitcode=1
315  echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319  :
320else
321  exitcode=1
322  echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328  as_lineno_1=$LINENO
329  as_lineno_2=$LINENO
330  test "x$as_lineno_1" != "x$as_lineno_2" &&
331  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335  break
336fi
337
338fi
339
340      done
341
342      if test "x$CONFIG_SHELL" != x; then
343  for as_var in BASH_ENV ENV
344        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345        done
346        export CONFIG_SHELL
347        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351    if test $as_have_required = no; then
352  echo This script requires a shell more modern than all the
353      echo shells that I found on your system.  Please install a
354      echo modern shell, or manually run the script under such a
355      echo shell if you do have one.
356      { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367  (exit \$1)
368}
369as_func_success () {
370  as_func_return 0
371}
372as_func_failure () {
373  as_func_return 1
374}
375as_func_ret_success () {
376  return 0
377}
378as_func_ret_failure () {
379  return 1
380}
381
382exitcode=0
383if as_func_success; then
384  :
385else
386  exitcode=1
387  echo as_func_success failed.
388fi
389
390if as_func_failure; then
391  exitcode=1
392  echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396  :
397else
398  exitcode=1
399  echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403  exitcode=1
404  echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408  :
409else
410  exitcode=1
411  echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415  echo No shell found that supports shell functions.
416  echo Please tell autoconf@gnu.org about your system,
417  echo including any error possibly output before this
418  echo message
419}
420
421
422
423  as_lineno_1=$LINENO
424  as_lineno_2=$LINENO
425  test "x$as_lineno_1" != "x$as_lineno_2" &&
426  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429  # uniformly replaced by the line number.  The first 'sed' inserts a
430  # line-number line after each line using $LINENO; the second 'sed'
431  # does the real work.  The second script uses 'N' to pair each
432  # line-number line with the line containing $LINENO, and appends
433  # trailing '-' during substitution so that $LINENO is not a special
434  # case at line end.
435  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436  # scripts with optimization help from Paolo Bonzini.  Blame Lee
437  # E. McMahon (1931-1989) for sed's syntax.  :-)
438  sed -n '
439    p
440    /[$]LINENO/=
441  ' <$as_myself |
442    sed '
443      s/[$]LINENO.*/&-/
444      t lineno
445      b
446      :lineno
447      N
448      :loop
449      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450      t loop
451      s/-\n.*//
452    ' >$as_me.lineno &&
453  chmod +x "$as_me.lineno" ||
454    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455   { (exit 1); exit 1; }; }
456
457  # Don't try to exec as it changes $[0], causing all sort of problems
458  # (the dirname of $[0] is not the place where we might find the
459  # original and so on.  Autoconf is especially sensitive to this).
460  . "./$as_me.lineno"
461  # Exit status is that of the last command.
462  exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467  as_dirname=dirname
468else
469  as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475  case `echo 'x\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  *)   ECHO_C='\c';;
478  esac;;
479*)
480  ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484   test "X`expr 00001 : '.*\(...\)'`" = X001; then
485  as_expr=expr
486else
487  as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492  rm -f conf$$.dir/conf$$.file
493else
494  rm -f conf$$.dir
495  mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499  as_ln_s='ln -s'
500  # ... but there are two gotchas:
501  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503  # In both cases, we have to default to `cp -p'.
504  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505    as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507  as_ln_s=ln
508else
509  as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515  as_mkdir_p=:
516else
517  test -d ./-p && rmdir ./-p
518  as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522  as_test_x='test -x'
523else
524  if ls -dL / >/dev/null 2>&1; then
525    as_ls_L_option=L
526  else
527    as_ls_L_option=
528  fi
529  as_test_x='
530    eval sh -c '\''
531      if test -d "$1"; then
532        test -d "$1/.";
533      else
534	case $1 in
535        -*)set "./$1";;
536	esac;
537	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538	???[sx]*):;;*)false;;esac;fi
539    '\'' sh
540  '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553# Check that we are running under the correct shell.
554SHELL=${CONFIG_SHELL-/bin/sh}
555
556case X$ECHO in
557X*--fallback-echo)
558  # Remove one level of quotation (which was required for Make).
559  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560  ;;
561esac
562
563echo=${ECHO-echo}
564if test "X$1" = X--no-reexec; then
565  # Discard the --no-reexec flag, and continue.
566  shift
567elif test "X$1" = X--fallback-echo; then
568  # Avoid inline document here, it may be left over
569  :
570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571  # Yippee, $echo works!
572  :
573else
574  # Restart under the correct shell.
575  exec $SHELL "$0" --no-reexec ${1+"$@"}
576fi
577
578if test "X$1" = X--fallback-echo; then
579  # used as fallback echo
580  shift
581  cat <<EOF
582$*
583EOF
584  exit 0
585fi
586
587# The HP-UX ksh and POSIX shell print the target directory to stdout
588# if CDPATH is set.
589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591if test -z "$ECHO"; then
592if test "X${echo_test_string+set}" != Xset; then
593# find a string as large as possible, as long as the shell can cope with it
594  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597       echo_test_string=`eval $cmd` &&
598       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599    then
600      break
601    fi
602  done
603fi
604
605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607   test "X$echo_testing_string" = "X$echo_test_string"; then
608  :
609else
610  # The Solaris, AIX, and Digital Unix default echo programs unquote
611  # backslashes.  This makes it impossible to quote backslashes using
612  #   echo "$something" | sed 's/\\/\\\\/g'
613  #
614  # So, first we look for a working echo in the user's PATH.
615
616  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617  for dir in $PATH /usr/ucb; do
618    IFS="$lt_save_ifs"
619    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622       test "X$echo_testing_string" = "X$echo_test_string"; then
623      echo="$dir/echo"
624      break
625    fi
626  done
627  IFS="$lt_save_ifs"
628
629  if test "X$echo" = Xecho; then
630    # We didn't find a better echo, so look for alternatives.
631    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633       test "X$echo_testing_string" = "X$echo_test_string"; then
634      # This shell has a builtin print -r that does the trick.
635      echo='print -r'
636    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637	 test "X$CONFIG_SHELL" != X/bin/ksh; then
638      # If we have ksh, try running configure again with it.
639      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640      export ORIGINAL_CONFIG_SHELL
641      CONFIG_SHELL=/bin/ksh
642      export CONFIG_SHELL
643      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644    else
645      # Try using printf.
646      echo='printf %s\n'
647      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649	 test "X$echo_testing_string" = "X$echo_test_string"; then
650	# Cool, printf works
651	:
652      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653	   test "X$echo_testing_string" = 'X\t' &&
654	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655	   test "X$echo_testing_string" = "X$echo_test_string"; then
656	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657	export CONFIG_SHELL
658	SHELL="$CONFIG_SHELL"
659	export SHELL
660	echo="$CONFIG_SHELL $0 --fallback-echo"
661      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662	   test "X$echo_testing_string" = 'X\t' &&
663	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664	   test "X$echo_testing_string" = "X$echo_test_string"; then
665	echo="$CONFIG_SHELL $0 --fallback-echo"
666      else
667	# maybe with a smaller string...
668	prev=:
669
670	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672	  then
673	    break
674	  fi
675	  prev="$cmd"
676	done
677
678	if test "$prev" != 'sed 50q "$0"'; then
679	  echo_test_string=`eval $prev`
680	  export echo_test_string
681	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682	else
683	  # Oops.  We lost completely, so just stick with echo.
684	  echo=echo
685	fi
686      fi
687    fi
688  fi
689fi
690fi
691
692# Copy echo and quote the copy suitably for passing to libtool from
693# the Makefile, instead of quoting the original, which is used later.
694ECHO=$echo
695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697fi
698
699
700
701
702tagnames=${tagnames+${tagnames},}CXX
703
704tagnames=${tagnames+${tagnames},}F77
705
706exec 7<&0 </dev/null 6>&1
707
708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713#
714# Initializations.
715#
716ac_default_prefix=/usr/local
717ac_clean_files=
718ac_config_libobj_dir=.
719LIBOBJS=
720cross_compiling=no
721subdirs=
722MFLAGS=
723MAKEFLAGS=
724SHELL=${CONFIG_SHELL-/bin/sh}
725
726# Identity of this package.
727PACKAGE_NAME=
728PACKAGE_TARNAME=
729PACKAGE_VERSION=
730PACKAGE_STRING=
731PACKAGE_BUGREPORT=
732
733ac_unique_file="libgamin"
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
807build
808build_cpu
809build_vendor
810build_os
811host
812host_cpu
813host_vendor
814host_os
815target
816target_cpu
817target_vendor
818target_os
819GAMIN_MAJOR_VERSION
820GAMIN_MINOR_VERSION
821GAMIN_MICRO_VERSION
822GAMIN_VERSION
823GAMIN_VERSION_INFO
824FAM_VERSION_INFO
825INSTALL_PROGRAM
826INSTALL_SCRIPT
827INSTALL_DATA
828am__isrc
829CYGPATH_W
830PACKAGE
831VERSION
832ACLOCAL
833AUTOCONF
834AUTOMAKE
835AUTOHEADER
836MAKEINFO
837install_sh
838STRIP
839INSTALL_STRIP_PROGRAM
840mkdir_p
841AWK
842SET_MAKE
843am__leading_dot
844AMTAR
845am__tar
846am__untar
847CC
848CFLAGS
849LDFLAGS
850CPPFLAGS
851ac_ct_CC
852EXEEXT
853OBJEXT
854DEPDIR
855am__include
856am__quote
857AMDEP_TRUE
858AMDEP_FALSE
859AMDEPBACKSLASH
860CCDEPMODE
861am__fastdepCC_TRUE
862am__fastdepCC_FALSE
863SED
864GREP
865EGREP
866LN_S
867ECHO
868AR
869RANLIB
870CPP
871CXX
872CXXFLAGS
873ac_ct_CXX
874CXXDEPMODE
875am__fastdepCXX_TRUE
876am__fastdepCXX_FALSE
877CXXCPP
878F77
879FFLAGS
880ac_ct_F77
881LIBTOOL
882RELDATE
883BUILD_DOCS_TRUE
884BUILD_DOCS_FALSE
885HTML_DIR
886ENABLE_GTK_DOC_TRUE
887ENABLE_GTK_DOC_FALSE
888BUILD_LIBGAMIN_TRUE
889BUILD_LIBGAMIN_FALSE
890PKG_CONFIG
891DAEMON_CFLAGS
892DAEMON_LIBS
893BUILD_SERVER_TRUE
894BUILD_SERVER_FALSE
895TEST_CFLAGS
896TEST_LIBS
897BUILD_TESTS_TRUE
898BUILD_TESTS_FALSE
899GAMIN_DEBUG_TRUE
900GAMIN_DEBUG_FALSE
901ENABLE_INOTIFY_TRUE
902ENABLE_INOTIFY_FALSE
903ENABLE_DNOTIFY_TRUE
904ENABLE_DNOTIFY_FALSE
905ENABLE_KQUEUE_TRUE
906ENABLE_KQUEUE_FALSE
907THREAD_LIBS
908WITH_THREADS
909ENABLE_HURD_MACH_NOTIFY_TRUE
910ENABLE_HURD_MACH_NOTIFY_FALSE
911MIG
912PYTHON
913WITH_PYTHON_TRUE
914WITH_PYTHON_FALSE
915pythondir
916PYTHON_VERSION
917PYTHON_INCLUDES
918PYTHON_SITE_PACKAGES
919AM_CFLAGS
920LIBOBJS
921LTLIBOBJS'
922ac_subst_files=''
923      ac_precious_vars='build_alias
924host_alias
925target_alias
926CC
927CFLAGS
928LDFLAGS
929LIBS
930CPPFLAGS
931CPP
932CXX
933CXXFLAGS
934CCC
935CXXCPP
936F77
937FFLAGS
938PKG_CONFIG
939DAEMON_CFLAGS
940DAEMON_LIBS
941TEST_CFLAGS
942TEST_LIBS'
943
944
945# Initialize some variables set by options.
946ac_init_help=
947ac_init_version=false
948# The variables have the same names as the options, with
949# dashes changed to underlines.
950cache_file=/dev/null
951exec_prefix=NONE
952no_create=
953no_recursion=
954prefix=NONE
955program_prefix=NONE
956program_suffix=NONE
957program_transform_name=s,x,x,
958silent=
959site=
960srcdir=
961verbose=
962x_includes=NONE
963x_libraries=NONE
964
965# Installation directory options.
966# These are left unexpanded so users can "make install exec_prefix=/foo"
967# and all the variables that are supposed to be based on exec_prefix
968# by default will actually change.
969# Use braces instead of parens because sh, perl, etc. also accept them.
970# (The list follows the same order as the GNU Coding Standards.)
971bindir='${exec_prefix}/bin'
972sbindir='${exec_prefix}/sbin'
973libexecdir='${exec_prefix}/libexec'
974datarootdir='${prefix}/share'
975datadir='${datarootdir}'
976sysconfdir='${prefix}/etc'
977sharedstatedir='${prefix}/com'
978localstatedir='${prefix}/var'
979includedir='${prefix}/include'
980oldincludedir='/usr/include'
981docdir='${datarootdir}/doc/${PACKAGE}'
982infodir='${datarootdir}/info'
983htmldir='${docdir}'
984dvidir='${docdir}'
985pdfdir='${docdir}'
986psdir='${docdir}'
987libdir='${exec_prefix}/lib'
988localedir='${datarootdir}/locale'
989mandir='${datarootdir}/man'
990
991ac_prev=
992ac_dashdash=
993for ac_option
994do
995  # If the previous option needs an argument, assign it.
996  if test -n "$ac_prev"; then
997    eval $ac_prev=\$ac_option
998    ac_prev=
999    continue
1000  fi
1001
1002  case $ac_option in
1003  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004  *)	ac_optarg=yes ;;
1005  esac
1006
1007  # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009  case $ac_dashdash$ac_option in
1010  --)
1011    ac_dashdash=yes ;;
1012
1013  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014    ac_prev=bindir ;;
1015  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016    bindir=$ac_optarg ;;
1017
1018  -build | --build | --buil | --bui | --bu)
1019    ac_prev=build_alias ;;
1020  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021    build_alias=$ac_optarg ;;
1022
1023  -cache-file | --cache-file | --cache-fil | --cache-fi \
1024  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025    ac_prev=cache_file ;;
1026  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028    cache_file=$ac_optarg ;;
1029
1030  --config-cache | -C)
1031    cache_file=config.cache ;;
1032
1033  -datadir | --datadir | --datadi | --datad)
1034    ac_prev=datadir ;;
1035  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036    datadir=$ac_optarg ;;
1037
1038  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039  | --dataroo | --dataro | --datar)
1040    ac_prev=datarootdir ;;
1041  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043    datarootdir=$ac_optarg ;;
1044
1045  -disable-* | --disable-*)
1046    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047    # Reject names that are not valid shell variable names.
1048    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1050   { (exit 1); exit 1; }; }
1051    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1052    eval enable_$ac_feature=no ;;
1053
1054  -docdir | --docdir | --docdi | --doc | --do)
1055    ac_prev=docdir ;;
1056  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057    docdir=$ac_optarg ;;
1058
1059  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1060    ac_prev=dvidir ;;
1061  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062    dvidir=$ac_optarg ;;
1063
1064  -enable-* | --enable-*)
1065    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066    # Reject names that are not valid shell variable names.
1067    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1068      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1069   { (exit 1); exit 1; }; }
1070    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1071    eval enable_$ac_feature=\$ac_optarg ;;
1072
1073  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075  | --exec | --exe | --ex)
1076    ac_prev=exec_prefix ;;
1077  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079  | --exec=* | --exe=* | --ex=*)
1080    exec_prefix=$ac_optarg ;;
1081
1082  -gas | --gas | --ga | --g)
1083    # Obsolete; use --with-gas.
1084    with_gas=yes ;;
1085
1086  -help | --help | --hel | --he | -h)
1087    ac_init_help=long ;;
1088  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089    ac_init_help=recursive ;;
1090  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091    ac_init_help=short ;;
1092
1093  -host | --host | --hos | --ho)
1094    ac_prev=host_alias ;;
1095  -host=* | --host=* | --hos=* | --ho=*)
1096    host_alias=$ac_optarg ;;
1097
1098  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099    ac_prev=htmldir ;;
1100  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101  | --ht=*)
1102    htmldir=$ac_optarg ;;
1103
1104  -includedir | --includedir | --includedi | --included | --include \
1105  | --includ | --inclu | --incl | --inc)
1106    ac_prev=includedir ;;
1107  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108  | --includ=* | --inclu=* | --incl=* | --inc=*)
1109    includedir=$ac_optarg ;;
1110
1111  -infodir | --infodir | --infodi | --infod | --info | --inf)
1112    ac_prev=infodir ;;
1113  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114    infodir=$ac_optarg ;;
1115
1116  -libdir | --libdir | --libdi | --libd)
1117    ac_prev=libdir ;;
1118  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119    libdir=$ac_optarg ;;
1120
1121  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122  | --libexe | --libex | --libe)
1123    ac_prev=libexecdir ;;
1124  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125  | --libexe=* | --libex=* | --libe=*)
1126    libexecdir=$ac_optarg ;;
1127
1128  -localedir | --localedir | --localedi | --localed | --locale)
1129    ac_prev=localedir ;;
1130  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131    localedir=$ac_optarg ;;
1132
1133  -localstatedir | --localstatedir | --localstatedi | --localstated \
1134  | --localstate | --localstat | --localsta | --localst | --locals)
1135    ac_prev=localstatedir ;;
1136  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138    localstatedir=$ac_optarg ;;
1139
1140  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141    ac_prev=mandir ;;
1142  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143    mandir=$ac_optarg ;;
1144
1145  -nfp | --nfp | --nf)
1146    # Obsolete; use --without-fp.
1147    with_fp=no ;;
1148
1149  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150  | --no-cr | --no-c | -n)
1151    no_create=yes ;;
1152
1153  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155    no_recursion=yes ;;
1156
1157  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159  | --oldin | --oldi | --old | --ol | --o)
1160    ac_prev=oldincludedir ;;
1161  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164    oldincludedir=$ac_optarg ;;
1165
1166  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167    ac_prev=prefix ;;
1168  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169    prefix=$ac_optarg ;;
1170
1171  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172  | --program-pre | --program-pr | --program-p)
1173    ac_prev=program_prefix ;;
1174  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176    program_prefix=$ac_optarg ;;
1177
1178  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179  | --program-suf | --program-su | --program-s)
1180    ac_prev=program_suffix ;;
1181  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183    program_suffix=$ac_optarg ;;
1184
1185  -program-transform-name | --program-transform-name \
1186  | --program-transform-nam | --program-transform-na \
1187  | --program-transform-n | --program-transform- \
1188  | --program-transform | --program-transfor \
1189  | --program-transfo | --program-transf \
1190  | --program-trans | --program-tran \
1191  | --progr-tra | --program-tr | --program-t)
1192    ac_prev=program_transform_name ;;
1193  -program-transform-name=* | --program-transform-name=* \
1194  | --program-transform-nam=* | --program-transform-na=* \
1195  | --program-transform-n=* | --program-transform-=* \
1196  | --program-transform=* | --program-transfor=* \
1197  | --program-transfo=* | --program-transf=* \
1198  | --program-trans=* | --program-tran=* \
1199  | --progr-tra=* | --program-tr=* | --program-t=*)
1200    program_transform_name=$ac_optarg ;;
1201
1202  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203    ac_prev=pdfdir ;;
1204  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205    pdfdir=$ac_optarg ;;
1206
1207  -psdir | --psdir | --psdi | --psd | --ps)
1208    ac_prev=psdir ;;
1209  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210    psdir=$ac_optarg ;;
1211
1212  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213  | -silent | --silent | --silen | --sile | --sil)
1214    silent=yes ;;
1215
1216  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217    ac_prev=sbindir ;;
1218  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219  | --sbi=* | --sb=*)
1220    sbindir=$ac_optarg ;;
1221
1222  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224  | --sharedst | --shareds | --shared | --share | --shar \
1225  | --sha | --sh)
1226    ac_prev=sharedstatedir ;;
1227  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230  | --sha=* | --sh=*)
1231    sharedstatedir=$ac_optarg ;;
1232
1233  -site | --site | --sit)
1234    ac_prev=site ;;
1235  -site=* | --site=* | --sit=*)
1236    site=$ac_optarg ;;
1237
1238  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239    ac_prev=srcdir ;;
1240  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241    srcdir=$ac_optarg ;;
1242
1243  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244  | --syscon | --sysco | --sysc | --sys | --sy)
1245    ac_prev=sysconfdir ;;
1246  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248    sysconfdir=$ac_optarg ;;
1249
1250  -target | --target | --targe | --targ | --tar | --ta | --t)
1251    ac_prev=target_alias ;;
1252  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253    target_alias=$ac_optarg ;;
1254
1255  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256    verbose=yes ;;
1257
1258  -version | --version | --versio | --versi | --vers | -V)
1259    ac_init_version=: ;;
1260
1261  -with-* | --with-*)
1262    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263    # Reject names that are not valid shell variable names.
1264    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265      { echo "$as_me: error: invalid package name: $ac_package" >&2
1266   { (exit 1); exit 1; }; }
1267    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1268    eval with_$ac_package=\$ac_optarg ;;
1269
1270  -without-* | --without-*)
1271    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272    # Reject names that are not valid shell variable names.
1273    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274      { echo "$as_me: error: invalid package name: $ac_package" >&2
1275   { (exit 1); exit 1; }; }
1276    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1277    eval with_$ac_package=no ;;
1278
1279  --x)
1280    # Obsolete; use --with-x.
1281    with_x=yes ;;
1282
1283  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284  | --x-incl | --x-inc | --x-in | --x-i)
1285    ac_prev=x_includes ;;
1286  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1288    x_includes=$ac_optarg ;;
1289
1290  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292    ac_prev=x_libraries ;;
1293  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1295    x_libraries=$ac_optarg ;;
1296
1297  -*) { echo "$as_me: error: unrecognized option: $ac_option
1298Try \`$0 --help' for more information." >&2
1299   { (exit 1); exit 1; }; }
1300    ;;
1301
1302  *=*)
1303    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304    # Reject names that are not valid shell variable names.
1305    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1306      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1307   { (exit 1); exit 1; }; }
1308    eval $ac_envvar=\$ac_optarg
1309    export $ac_envvar ;;
1310
1311  *)
1312    # FIXME: should be removed in autoconf 3.0.
1313    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1317    ;;
1318
1319  esac
1320done
1321
1322if test -n "$ac_prev"; then
1323  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1324  { echo "$as_me: error: missing argument to $ac_option" >&2
1325   { (exit 1); exit 1; }; }
1326fi
1327
1328# Be sure to have absolute directory names.
1329for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330		datadir sysconfdir sharedstatedir localstatedir includedir \
1331		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332		libdir localedir mandir
1333do
1334  eval ac_val=\$$ac_var
1335  case $ac_val in
1336    [\\/$]* | ?:[\\/]* )  continue;;
1337    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338  esac
1339  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1340   { (exit 1); exit 1; }; }
1341done
1342
1343# There might be people who depend on the old broken behavior: `$host'
1344# used to hold the argument of --host etc.
1345# FIXME: To remove some day.
1346build=$build_alias
1347host=$host_alias
1348target=$target_alias
1349
1350# FIXME: To remove some day.
1351if test "x$host_alias" != x; then
1352  if test "x$build_alias" = x; then
1353    cross_compiling=maybe
1354    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1355    If a cross compiler is detected then cross compile mode will be used." >&2
1356  elif test "x$build_alias" != "x$host_alias"; then
1357    cross_compiling=yes
1358  fi
1359fi
1360
1361ac_tool_prefix=
1362test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
1364test "$silent" = yes && exec 6>/dev/null
1365
1366
1367ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368ac_ls_di=`ls -di .` &&
1369ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1370  { echo "$as_me: error: Working directory cannot be determined" >&2
1371   { (exit 1); exit 1; }; }
1372test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373  { echo "$as_me: error: pwd does not report name of working directory" >&2
1374   { (exit 1); exit 1; }; }
1375
1376
1377# Find the source files, if location was not specified.
1378if test -z "$srcdir"; then
1379  ac_srcdir_defaulted=yes
1380  # Try the directory containing this script, then the parent directory.
1381  ac_confdir=`$as_dirname -- "$0" ||
1382$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383	 X"$0" : 'X\(//\)[^/]' \| \
1384	 X"$0" : 'X\(//\)$' \| \
1385	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1386echo X"$0" |
1387    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388	    s//\1/
1389	    q
1390	  }
1391	  /^X\(\/\/\)[^/].*/{
1392	    s//\1/
1393	    q
1394	  }
1395	  /^X\(\/\/\)$/{
1396	    s//\1/
1397	    q
1398	  }
1399	  /^X\(\/\).*/{
1400	    s//\1/
1401	    q
1402	  }
1403	  s/.*/./; q'`
1404  srcdir=$ac_confdir
1405  if test ! -r "$srcdir/$ac_unique_file"; then
1406    srcdir=..
1407  fi
1408else
1409  ac_srcdir_defaulted=no
1410fi
1411if test ! -r "$srcdir/$ac_unique_file"; then
1412  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1414   { (exit 1); exit 1; }; }
1415fi
1416ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417ac_abs_confdir=`(
1418	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1419   { (exit 1); exit 1; }; }
1420	pwd)`
1421# When building in place, set srcdir=.
1422if test "$ac_abs_confdir" = "$ac_pwd"; then
1423  srcdir=.
1424fi
1425# Remove unnecessary trailing slashes from srcdir.
1426# Double slashes in file names in object file debugging info
1427# mess up M-x gdb in Emacs.
1428case $srcdir in
1429*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430esac
1431for ac_var in $ac_precious_vars; do
1432  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1433  eval ac_env_${ac_var}_value=\$${ac_var}
1434  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1435  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1436done
1437
1438#
1439# Report the --help message.
1440#
1441if test "$ac_init_help" = "long"; then
1442  # Omit some internal or obsolete options to make the list less imposing.
1443  # This message is too long to be a string in the A/UX 3.1 sh.
1444  cat <<_ACEOF
1445\`configure' configures this package to adapt to many kinds of systems.
1446
1447Usage: $0 [OPTION]... [VAR=VALUE]...
1448
1449To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450VAR=VALUE.  See below for descriptions of some of the useful variables.
1451
1452Defaults for the options are specified in brackets.
1453
1454Configuration:
1455  -h, --help              display this help and exit
1456      --help=short        display options specific to this package
1457      --help=recursive    display the short help of all the included packages
1458  -V, --version           display version information and exit
1459  -q, --quiet, --silent   do not print \`checking...' messages
1460      --cache-file=FILE   cache test results in FILE [disabled]
1461  -C, --config-cache      alias for \`--cache-file=config.cache'
1462  -n, --no-create         do not create output files
1463      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1464
1465Installation directories:
1466  --prefix=PREFIX         install architecture-independent files in PREFIX
1467			  [$ac_default_prefix]
1468  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1469			  [PREFIX]
1470
1471By default, \`make install' will install all the files in
1472\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1473an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474for instance \`--prefix=\$HOME'.
1475
1476For better control, use the options below.
1477
1478Fine tuning of the installation directories:
1479  --bindir=DIR           user executables [EPREFIX/bin]
1480  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1481  --libexecdir=DIR       program executables [EPREFIX/libexec]
1482  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1483  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1484  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1485  --libdir=DIR           object code libraries [EPREFIX/lib]
1486  --includedir=DIR       C header files [PREFIX/include]
1487  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1488  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1489  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1490  --infodir=DIR          info documentation [DATAROOTDIR/info]
1491  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1492  --mandir=DIR           man documentation [DATAROOTDIR/man]
1493  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1494  --htmldir=DIR          html documentation [DOCDIR]
1495  --dvidir=DIR           dvi documentation [DOCDIR]
1496  --pdfdir=DIR           pdf documentation [DOCDIR]
1497  --psdir=DIR            ps documentation [DOCDIR]
1498_ACEOF
1499
1500  cat <<\_ACEOF
1501
1502Program names:
1503  --program-prefix=PREFIX            prepend PREFIX to installed program names
1504  --program-suffix=SUFFIX            append SUFFIX to installed program names
1505  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1506
1507System types:
1508  --build=BUILD     configure for building on BUILD [guessed]
1509  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1510  --target=TARGET   configure for building compilers for TARGET [HOST]
1511_ACEOF
1512fi
1513
1514if test -n "$ac_init_help"; then
1515
1516  cat <<\_ACEOF
1517
1518Optional Features:
1519  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1520  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1521  --enable-shared[=PKGS]  build shared libraries [default=yes]
1522  --enable-static[=PKGS]  build static libraries [default=yes]
1523  --enable-fast-install[=PKGS]
1524                          optimize for fast installation [default=yes]
1525  --disable-dependency-tracking  speeds up one-time build
1526  --enable-dependency-tracking   do not reject slow dependency extractors
1527  --disable-libtool-lock  avoid locking (might break parallel builds)
1528  --enable-docs           Build documentation (requires Doxygen)
1529  --enable-gtk-doc        Use gtk-doc to build documentation (default=auto)
1530  --enable-libgamin       Build libgamin/libfam (default=yes)
1531  --enable-server         Build gam_server (default=yes)
1532  --disable-more-warnings Minimum compiler warnings
1533#	AC_HELP_STRING([--enable-debug], [Enable debugging support]),
1534#	[debug=$enableval], [
1535#	if test -d $srcdir/CVS; then
1536#		debug=yes
1537#	else
1538#		debug=no
1539#	fi
1540#	])
1541	  --disable-debug         Disable debugging support
1542  --enable-debug-api      Enable debugging API
1543  --disable-kernel        Use polling regardless of what kernel-level systems
1544                          are available
1545  --disable-inotify       Disable the INotify backend
1546  --disable-dnotify       Disable the DNotify backend
1547  --disable-kqueue        Disable the KQueue backend
1548  --disable-hurd_mach_notify
1549                          Disable the Hurd Mach Notify backend
1550
1551Optional Packages:
1552  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1553  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1554  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1555  --with-pic              try to use only PIC/non-PIC objects [default=use
1556                          both]
1557  --with-tags[=TAGS]      include additional configurations [automatic]
1558  --with-html-dir=PATH path to installed docs
1559  --with-threads          add multithread support(on)
1560  --with-python[=DIR]     build Python bindings if found
1561
1562Some influential environment variables:
1563  CC          C compiler command
1564  CFLAGS      C compiler flags
1565  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1566              nonstandard directory <lib dir>
1567  LIBS        libraries to pass to the linker, e.g. -l<library>
1568  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1569              you have headers in a nonstandard directory <include dir>
1570  CPP         C preprocessor
1571  CXX         C++ compiler command
1572  CXXFLAGS    C++ compiler flags
1573  CXXCPP      C++ preprocessor
1574  F77         Fortran 77 compiler command
1575  FFLAGS      Fortran 77 compiler flags
1576  PKG_CONFIG  path to pkg-config utility
1577  DAEMON_CFLAGS
1578              C compiler flags for DAEMON, overriding pkg-config
1579  DAEMON_LIBS linker flags for DAEMON, overriding pkg-config
1580  TEST_CFLAGS C compiler flags for TEST, overriding pkg-config
1581  TEST_LIBS   linker flags for TEST, overriding pkg-config
1582
1583Use these variables to override the choices made by `configure' or to help
1584it to find libraries and programs with nonstandard names/locations.
1585
1586_ACEOF
1587ac_status=$?
1588fi
1589
1590if test "$ac_init_help" = "recursive"; then
1591  # If there are subdirs, report their specific --help.
1592  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1593    test -d "$ac_dir" || continue
1594    ac_builddir=.
1595
1596case "$ac_dir" in
1597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598*)
1599  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1600  # A ".." for each directory in $ac_dir_suffix.
1601  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1602  case $ac_top_builddir_sub in
1603  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1605  esac ;;
1606esac
1607ac_abs_top_builddir=$ac_pwd
1608ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609# for backward compatibility:
1610ac_top_builddir=$ac_top_build_prefix
1611
1612case $srcdir in
1613  .)  # We are building in place.
1614    ac_srcdir=.
1615    ac_top_srcdir=$ac_top_builddir_sub
1616    ac_abs_top_srcdir=$ac_pwd ;;
1617  [\\/]* | ?:[\\/]* )  # Absolute name.
1618    ac_srcdir=$srcdir$ac_dir_suffix;
1619    ac_top_srcdir=$srcdir
1620    ac_abs_top_srcdir=$srcdir ;;
1621  *) # Relative name.
1622    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623    ac_top_srcdir=$ac_top_build_prefix$srcdir
1624    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1625esac
1626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627
1628    cd "$ac_dir" || { ac_status=$?; continue; }
1629    # Check for guested configure.
1630    if test -f "$ac_srcdir/configure.gnu"; then
1631      echo &&
1632      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633    elif test -f "$ac_srcdir/configure"; then
1634      echo &&
1635      $SHELL "$ac_srcdir/configure" --help=recursive
1636    else
1637      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1638    fi || ac_status=$?
1639    cd "$ac_pwd" || { ac_status=$?; break; }
1640  done
1641fi
1642
1643test -n "$ac_init_help" && exit $ac_status
1644if $ac_init_version; then
1645  cat <<\_ACEOF
1646configure
1647generated by GNU Autoconf 2.61
1648
1649Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16502002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1651This configure script is free software; the Free Software Foundation
1652gives unlimited permission to copy, distribute and modify it.
1653_ACEOF
1654  exit
1655fi
1656cat >config.log <<_ACEOF
1657This file contains any messages produced by compilers while
1658running configure, to aid debugging if configure makes a mistake.
1659
1660It was created by $as_me, which was
1661generated by GNU Autoconf 2.61.  Invocation command line was
1662
1663  $ $0 $@
1664
1665_ACEOF
1666exec 5>>config.log
1667{
1668cat <<_ASUNAME
1669## --------- ##
1670## Platform. ##
1671## --------- ##
1672
1673hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1674uname -m = `(uname -m) 2>/dev/null || echo unknown`
1675uname -r = `(uname -r) 2>/dev/null || echo unknown`
1676uname -s = `(uname -s) 2>/dev/null || echo unknown`
1677uname -v = `(uname -v) 2>/dev/null || echo unknown`
1678
1679/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1680/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1681
1682/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1683/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1684/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1685/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1686/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1687/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1688/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1689
1690_ASUNAME
1691
1692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693for as_dir in $PATH
1694do
1695  IFS=$as_save_IFS
1696  test -z "$as_dir" && as_dir=.
1697  echo "PATH: $as_dir"
1698done
1699IFS=$as_save_IFS
1700
1701} >&5
1702
1703cat >&5 <<_ACEOF
1704
1705
1706## ----------- ##
1707## Core tests. ##
1708## ----------- ##
1709
1710_ACEOF
1711
1712
1713# Keep a trace of the command line.
1714# Strip out --no-create and --no-recursion so they do not pile up.
1715# Strip out --silent because we don't want to record it for future runs.
1716# Also quote any args containing shell meta-characters.
1717# Make two passes to allow for proper duplicate-argument suppression.
1718ac_configure_args=
1719ac_configure_args0=
1720ac_configure_args1=
1721ac_must_keep_next=false
1722for ac_pass in 1 2
1723do
1724  for ac_arg
1725  do
1726    case $ac_arg in
1727    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1728    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1729    | -silent | --silent | --silen | --sile | --sil)
1730      continue ;;
1731    *\'*)
1732      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1733    esac
1734    case $ac_pass in
1735    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1736    2)
1737      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1738      if test $ac_must_keep_next = true; then
1739	ac_must_keep_next=false # Got value, back to normal.
1740      else
1741	case $ac_arg in
1742	  *=* | --config-cache | -C | -disable-* | --disable-* \
1743	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1744	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1745	  | -with-* | --with-* | -without-* | --without-* | --x)
1746	    case "$ac_configure_args0 " in
1747	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1748	    esac
1749	    ;;
1750	  -* ) ac_must_keep_next=true ;;
1751	esac
1752      fi
1753      ac_configure_args="$ac_configure_args '$ac_arg'"
1754      ;;
1755    esac
1756  done
1757done
1758$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1759$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1760
1761# When interrupted or exit'd, cleanup temporary files, and complete
1762# config.log.  We remove comments because anyway the quotes in there
1763# would cause problems or look ugly.
1764# WARNING: Use '\'' to represent an apostrophe within the trap.
1765# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1766trap 'exit_status=$?
1767  # Save into config.log some information that might help in debugging.
1768  {
1769    echo
1770
1771    cat <<\_ASBOX
1772## ---------------- ##
1773## Cache variables. ##
1774## ---------------- ##
1775_ASBOX
1776    echo
1777    # The following way of writing the cache mishandles newlines in values,
1778(
1779  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1780    eval ac_val=\$$ac_var
1781    case $ac_val in #(
1782    *${as_nl}*)
1783      case $ac_var in #(
1784      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1785echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1786      esac
1787      case $ac_var in #(
1788      _ | IFS | as_nl) ;; #(
1789      *) $as_unset $ac_var ;;
1790      esac ;;
1791    esac
1792  done
1793  (set) 2>&1 |
1794    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1795    *${as_nl}ac_space=\ *)
1796      sed -n \
1797	"s/'\''/'\''\\\\'\'''\''/g;
1798	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1799      ;; #(
1800    *)
1801      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1802      ;;
1803    esac |
1804    sort
1805)
1806    echo
1807
1808    cat <<\_ASBOX
1809## ----------------- ##
1810## Output variables. ##
1811## ----------------- ##
1812_ASBOX
1813    echo
1814    for ac_var in $ac_subst_vars
1815    do
1816      eval ac_val=\$$ac_var
1817      case $ac_val in
1818      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819      esac
1820      echo "$ac_var='\''$ac_val'\''"
1821    done | sort
1822    echo
1823
1824    if test -n "$ac_subst_files"; then
1825      cat <<\_ASBOX
1826## ------------------- ##
1827## File substitutions. ##
1828## ------------------- ##
1829_ASBOX
1830      echo
1831      for ac_var in $ac_subst_files
1832      do
1833	eval ac_val=\$$ac_var
1834	case $ac_val in
1835	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836	esac
1837	echo "$ac_var='\''$ac_val'\''"
1838      done | sort
1839      echo
1840    fi
1841
1842    if test -s confdefs.h; then
1843      cat <<\_ASBOX
1844## ----------- ##
1845## confdefs.h. ##
1846## ----------- ##
1847_ASBOX
1848      echo
1849      cat confdefs.h
1850      echo
1851    fi
1852    test "$ac_signal" != 0 &&
1853      echo "$as_me: caught signal $ac_signal"
1854    echo "$as_me: exit $exit_status"
1855  } >&5
1856  rm -f core *.core core.conftest.* &&
1857    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1858    exit $exit_status
1859' 0
1860for ac_signal in 1 2 13 15; do
1861  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1862done
1863ac_signal=0
1864
1865# confdefs.h avoids OS command line length limits that DEFS can exceed.
1866rm -f -r conftest* confdefs.h
1867
1868# Predefined preprocessor variables.
1869
1870cat >>confdefs.h <<_ACEOF
1871#define PACKAGE_NAME "$PACKAGE_NAME"
1872_ACEOF
1873
1874
1875cat >>confdefs.h <<_ACEOF
1876#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1877_ACEOF
1878
1879
1880cat >>confdefs.h <<_ACEOF
1881#define PACKAGE_VERSION "$PACKAGE_VERSION"
1882_ACEOF
1883
1884
1885cat >>confdefs.h <<_ACEOF
1886#define PACKAGE_STRING "$PACKAGE_STRING"
1887_ACEOF
1888
1889
1890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1892_ACEOF
1893
1894
1895# Let the site file select an alternate cache file if it wants to.
1896# Prefer explicitly selected file to automatically selected ones.
1897if test -n "$CONFIG_SITE"; then
1898  set x "$CONFIG_SITE"
1899elif test "x$prefix" != xNONE; then
1900  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1901else
1902  set x "$ac_default_prefix/share/config.site" \
1903	"$ac_default_prefix/etc/config.site"
1904fi
1905shift
1906for ac_site_file
1907do
1908  if test -r "$ac_site_file"; then
1909    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1910echo "$as_me: loading site script $ac_site_file" >&6;}
1911    sed 's/^/| /' "$ac_site_file" >&5
1912    . "$ac_site_file"
1913  fi
1914done
1915
1916if test -r "$cache_file"; then
1917  # Some versions of bash will fail to source /dev/null (special
1918  # files actually), so we avoid doing that.
1919  if test -f "$cache_file"; then
1920    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1921echo "$as_me: loading cache $cache_file" >&6;}
1922    case $cache_file in
1923      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1924      *)                      . "./$cache_file";;
1925    esac
1926  fi
1927else
1928  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1929echo "$as_me: creating cache $cache_file" >&6;}
1930  >$cache_file
1931fi
1932
1933# Check that the precious variables saved in the cache have kept the same
1934# value.
1935ac_cache_corrupted=false
1936for ac_var in $ac_precious_vars; do
1937  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1938  eval ac_new_set=\$ac_env_${ac_var}_set
1939  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1940  eval ac_new_val=\$ac_env_${ac_var}_value
1941  case $ac_old_set,$ac_new_set in
1942    set,)
1943      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1944echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1945      ac_cache_corrupted=: ;;
1946    ,set)
1947      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1948echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1949      ac_cache_corrupted=: ;;
1950    ,);;
1951    *)
1952      if test "x$ac_old_val" != "x$ac_new_val"; then
1953	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1954echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1955	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1956echo "$as_me:   former value:  $ac_old_val" >&2;}
1957	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1958echo "$as_me:   current value: $ac_new_val" >&2;}
1959	ac_cache_corrupted=:
1960      fi;;
1961  esac
1962  # Pass precious variables to config.status.
1963  if test "$ac_new_set" = set; then
1964    case $ac_new_val in
1965    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1966    *) ac_arg=$ac_var=$ac_new_val ;;
1967    esac
1968    case " $ac_configure_args " in
1969      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1970      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1971    esac
1972  fi
1973done
1974if $ac_cache_corrupted; then
1975  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1976echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1977  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1978echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1979   { (exit 1); exit 1; }; }
1980fi
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998ac_ext=c
1999ac_cpp='$CPP $CPPFLAGS'
2000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003
2004
2005ac_config_headers="$ac_config_headers config.h"
2006
2007ac_aux_dir=
2008for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2009  if test -f "$ac_dir/install-sh"; then
2010    ac_aux_dir=$ac_dir
2011    ac_install_sh="$ac_aux_dir/install-sh -c"
2012    break
2013  elif test -f "$ac_dir/install.sh"; then
2014    ac_aux_dir=$ac_dir
2015    ac_install_sh="$ac_aux_dir/install.sh -c"
2016    break
2017  elif test -f "$ac_dir/shtool"; then
2018    ac_aux_dir=$ac_dir
2019    ac_install_sh="$ac_aux_dir/shtool install -c"
2020    break
2021  fi
2022done
2023if test -z "$ac_aux_dir"; then
2024  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2025echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2026   { (exit 1); exit 1; }; }
2027fi
2028
2029# These three variables are undocumented and unsupported,
2030# and are intended to be withdrawn in a future Autoconf release.
2031# They can cause serious problems if a builder's source tree is in a directory
2032# whose full name contains unusual characters.
2033ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2034ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2035ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2036
2037
2038# Make sure we can run config.sub.
2039$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2040  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2041echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2042   { (exit 1); exit 1; }; }
2043
2044{ echo "$as_me:$LINENO: checking build system type" >&5
2045echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2046if test "${ac_cv_build+set}" = set; then
2047  echo $ECHO_N "(cached) $ECHO_C" >&6
2048else
2049  ac_build_alias=$build_alias
2050test "x$ac_build_alias" = x &&
2051  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2052test "x$ac_build_alias" = x &&
2053  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2054echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2055   { (exit 1); exit 1; }; }
2056ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2057  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2058echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2059   { (exit 1); exit 1; }; }
2060
2061fi
2062{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2063echo "${ECHO_T}$ac_cv_build" >&6; }
2064case $ac_cv_build in
2065*-*-*) ;;
2066*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2067echo "$as_me: error: invalid value of canonical build" >&2;}
2068   { (exit 1); exit 1; }; };;
2069esac
2070build=$ac_cv_build
2071ac_save_IFS=$IFS; IFS='-'
2072set x $ac_cv_build
2073shift
2074build_cpu=$1
2075build_vendor=$2
2076shift; shift
2077# Remember, the first character of IFS is used to create $*,
2078# except with old shells:
2079build_os=$*
2080IFS=$ac_save_IFS
2081case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2082
2083
2084{ echo "$as_me:$LINENO: checking host system type" >&5
2085echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2086if test "${ac_cv_host+set}" = set; then
2087  echo $ECHO_N "(cached) $ECHO_C" >&6
2088else
2089  if test "x$host_alias" = x; then
2090  ac_cv_host=$ac_cv_build
2091else
2092  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2093    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2094echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2095   { (exit 1); exit 1; }; }
2096fi
2097
2098fi
2099{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2100echo "${ECHO_T}$ac_cv_host" >&6; }
2101case $ac_cv_host in
2102*-*-*) ;;
2103*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2104echo "$as_me: error: invalid value of canonical host" >&2;}
2105   { (exit 1); exit 1; }; };;
2106esac
2107host=$ac_cv_host
2108ac_save_IFS=$IFS; IFS='-'
2109set x $ac_cv_host
2110shift
2111host_cpu=$1
2112host_vendor=$2
2113shift; shift
2114# Remember, the first character of IFS is used to create $*,
2115# except with old shells:
2116host_os=$*
2117IFS=$ac_save_IFS
2118case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2119
2120
2121{ echo "$as_me:$LINENO: checking target system type" >&5
2122echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2123if test "${ac_cv_target+set}" = set; then
2124  echo $ECHO_N "(cached) $ECHO_C" >&6
2125else
2126  if test "x$target_alias" = x; then
2127  ac_cv_target=$ac_cv_host
2128else
2129  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2130    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2131echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2132   { (exit 1); exit 1; }; }
2133fi
2134
2135fi
2136{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2137echo "${ECHO_T}$ac_cv_target" >&6; }
2138case $ac_cv_target in
2139*-*-*) ;;
2140*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2141echo "$as_me: error: invalid value of canonical target" >&2;}
2142   { (exit 1); exit 1; }; };;
2143esac
2144target=$ac_cv_target
2145ac_save_IFS=$IFS; IFS='-'
2146set x $ac_cv_target
2147shift
2148target_cpu=$1
2149target_vendor=$2
2150shift; shift
2151# Remember, the first character of IFS is used to create $*,
2152# except with old shells:
2153target_os=$*
2154IFS=$ac_save_IFS
2155case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2156
2157
2158# The aliases save the names the user supplied, while $host etc.
2159# will get canonicalized.
2160test -n "$target_alias" &&
2161  test "$program_prefix$program_suffix$program_transform_name" = \
2162    NONENONEs,x,x, &&
2163  program_prefix=${target_alias}-
2164
2165# get any external flags setting before we start playing with the CFLAGS variable
2166ENV_CFLAGS="$CFLAGS"
2167
2168GAMIN_MAJOR_VERSION=0
2169GAMIN_MINOR_VERSION=1
2170GAMIN_MICRO_VERSION=10
2171GAMIN_VERSION=$GAMIN_MAJOR_VERSION.$GAMIN_MINOR_VERSION.$GAMIN_MICRO_VERSION$GAMIN_MICRO_VERSION_SUFFIX
2172GAMIN_VERSION_INFO=`expr $GAMIN_MAJOR_VERSION + $GAMIN_MINOR_VERSION`:$GAMIN_MICRO_VERSION:$GAMIN_MINOR_VERSION
2173
2174
2175
2176
2177
2178
2179
2180FAM_VERSION_INFO="0:0:0"
2181
2182
2183
2184VERSION=${GAMIN_VERSION}
2185
2186am__api_version='1.10'
2187
2188# Find a good install program.  We prefer a C program (faster),
2189# so one script is as good as another.  But avoid the broken or
2190# incompatible versions:
2191# SysV /etc/install, /usr/sbin/install
2192# SunOS /usr/etc/install
2193# IRIX /sbin/install
2194# AIX /bin/install
2195# AmigaOS /C/install, which installs bootblocks on floppy discs
2196# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2197# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2198# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2199# OS/2's system install, which has a completely different semantic
2200# ./install, which can be erroneously created by make from ./install.sh.
2201{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2202echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2203if test -z "$INSTALL"; then
2204if test "${ac_cv_path_install+set}" = set; then
2205  echo $ECHO_N "(cached) $ECHO_C" >&6
2206else
2207  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208for as_dir in $PATH
2209do
2210  IFS=$as_save_IFS
2211  test -z "$as_dir" && as_dir=.
2212  # Account for people who put trailing slashes in PATH elements.
2213case $as_dir/ in
2214  ./ | .// | /cC/* | \
2215  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2216  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2217  /usr/ucb/* ) ;;
2218  *)
2219    # OSF1 and SCO ODT 3.0 have their own names for install.
2220    # Don't use installbsd from OSF since it installs stuff as root
2221    # by default.
2222    for ac_prog in ginstall scoinst install; do
2223      for ac_exec_ext in '' $ac_executable_extensions; do
2224	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2225	  if test $ac_prog = install &&
2226	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2227	    # AIX install.  It has an incompatible calling convention.
2228	    :
2229	  elif test $ac_prog = install &&
2230	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2231	    # program-specific install script used by HP pwplus--don't use.
2232	    :
2233	  else
2234	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2235	    break 3
2236	  fi
2237	fi
2238      done
2239    done
2240    ;;
2241esac
2242done
2243IFS=$as_save_IFS
2244
2245
2246fi
2247  if test "${ac_cv_path_install+set}" = set; then
2248    INSTALL=$ac_cv_path_install
2249  else
2250    # As a last resort, use the slow shell script.  Don't cache a
2251    # value for INSTALL within a source directory, because that will
2252    # break other packages using the cache if that directory is
2253    # removed, or if the value is a relative name.
2254    INSTALL=$ac_install_sh
2255  fi
2256fi
2257{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2258echo "${ECHO_T}$INSTALL" >&6; }
2259
2260# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2261# It thinks the first close brace ends the variable substitution.
2262test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2263
2264test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2265
2266test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2267
2268{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2269echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2270# Just in case
2271sleep 1
2272echo timestamp > conftest.file
2273# Do `set' in a subshell so we don't clobber the current shell's
2274# arguments.  Must try -L first in case configure is actually a
2275# symlink; some systems play weird games with the mod time of symlinks
2276# (eg FreeBSD returns the mod time of the symlink's containing
2277# directory).
2278if (
2279   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2280   if test "$*" = "X"; then
2281      # -L didn't work.
2282      set X `ls -t $srcdir/configure conftest.file`
2283   fi
2284   rm -f conftest.file
2285   if test "$*" != "X $srcdir/configure conftest.file" \
2286      && test "$*" != "X conftest.file $srcdir/configure"; then
2287
2288      # If neither matched, then we have a broken ls.  This can happen
2289      # if, for instance, CONFIG_SHELL is bash and it inherits a
2290      # broken ls alias from the environment.  This has actually
2291      # happened.  Such a system could not be considered "sane".
2292      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2293alias in your environment" >&5
2294echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2295alias in your environment" >&2;}
2296   { (exit 1); exit 1; }; }
2297   fi
2298
2299   test "$2" = conftest.file
2300   )
2301then
2302   # Ok.
2303   :
2304else
2305   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2306Check your system clock" >&5
2307echo "$as_me: error: newly created file is older than distributed files!
2308Check your system clock" >&2;}
2309   { (exit 1); exit 1; }; }
2310fi
2311{ echo "$as_me:$LINENO: result: yes" >&5
2312echo "${ECHO_T}yes" >&6; }
2313test "$program_prefix" != NONE &&
2314  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2315# Use a double $ so make ignores it.
2316test "$program_suffix" != NONE &&
2317  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2318# Double any \ or $.  echo might interpret backslashes.
2319# By default was `s,x,x', remove it if useless.
2320cat <<\_ACEOF >conftest.sed
2321s/[\\$]/&&/g;s/;s,x,x,$//
2322_ACEOF
2323program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2324rm -f conftest.sed
2325
2326# expand $ac_aux_dir to an absolute path
2327am_aux_dir=`cd $ac_aux_dir && pwd`
2328
2329test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2330# Use eval to expand $SHELL
2331if eval "$MISSING --run true"; then
2332  am_missing_run="$MISSING --run "
2333else
2334  am_missing_run=
2335  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2336echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2337fi
2338
2339{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2340echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2341if test -z "$MKDIR_P"; then
2342  if test "${ac_cv_path_mkdir+set}" = set; then
2343  echo $ECHO_N "(cached) $ECHO_C" >&6
2344else
2345  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2347do
2348  IFS=$as_save_IFS
2349  test -z "$as_dir" && as_dir=.
2350  for ac_prog in mkdir gmkdir; do
2351	 for ac_exec_ext in '' $ac_executable_extensions; do
2352	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2353	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2354	     'mkdir (GNU coreutils) '* | \
2355	     'mkdir (coreutils) '* | \
2356	     'mkdir (fileutils) '4.1*)
2357	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2358	       break 3;;
2359	   esac
2360	 done
2361       done
2362done
2363IFS=$as_save_IFS
2364
2365fi
2366
2367  if test "${ac_cv_path_mkdir+set}" = set; then
2368    MKDIR_P="$ac_cv_path_mkdir -p"
2369  else
2370    # As a last resort, use the slow shell script.  Don't cache a
2371    # value for MKDIR_P within a source directory, because that will
2372    # break other packages using the cache if that directory is
2373    # removed, or if the value is a relative name.
2374    test -d ./--version && rmdir ./--version
2375    MKDIR_P="$ac_install_sh -d"
2376  fi
2377fi
2378{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2379echo "${ECHO_T}$MKDIR_P" >&6; }
2380
2381mkdir_p="$MKDIR_P"
2382case $mkdir_p in
2383  [\\/$]* | ?:[\\/]*) ;;
2384  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2385esac
2386
2387for ac_prog in gawk mawk nawk awk
2388do
2389  # Extract the first word of "$ac_prog", so it can be a program name with args.
2390set dummy $ac_prog; ac_word=$2
2391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2393if test "${ac_cv_prog_AWK+set}" = set; then
2394  echo $ECHO_N "(cached) $ECHO_C" >&6
2395else
2396  if test -n "$AWK"; then
2397  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2398else
2399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400for as_dir in $PATH
2401do
2402  IFS=$as_save_IFS
2403  test -z "$as_dir" && as_dir=.
2404  for ac_exec_ext in '' $ac_executable_extensions; do
2405  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2406    ac_cv_prog_AWK="$ac_prog"
2407    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408    break 2
2409  fi
2410done
2411done
2412IFS=$as_save_IFS
2413
2414fi
2415fi
2416AWK=$ac_cv_prog_AWK
2417if test -n "$AWK"; then
2418  { echo "$as_me:$LINENO: result: $AWK" >&5
2419echo "${ECHO_T}$AWK" >&6; }
2420else
2421  { echo "$as_me:$LINENO: result: no" >&5
2422echo "${ECHO_T}no" >&6; }
2423fi
2424
2425
2426  test -n "$AWK" && break
2427done
2428
2429{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2430echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2431set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2432if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2433  echo $ECHO_N "(cached) $ECHO_C" >&6
2434else
2435  cat >conftest.make <<\_ACEOF
2436SHELL = /bin/sh
2437all:
2438	@echo '@@@%%%=$(MAKE)=@@@%%%'
2439_ACEOF
2440# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2441case `${MAKE-make} -f conftest.make 2>/dev/null` in
2442  *@@@%%%=?*=@@@%%%*)
2443    eval ac_cv_prog_make_${ac_make}_set=yes;;
2444  *)
2445    eval ac_cv_prog_make_${ac_make}_set=no;;
2446esac
2447rm -f conftest.make
2448fi
2449if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2450  { echo "$as_me:$LINENO: result: yes" >&5
2451echo "${ECHO_T}yes" >&6; }
2452  SET_MAKE=
2453else
2454  { echo "$as_me:$LINENO: result: no" >&5
2455echo "${ECHO_T}no" >&6; }
2456  SET_MAKE="MAKE=${MAKE-make}"
2457fi
2458
2459rm -rf .tst 2>/dev/null
2460mkdir .tst 2>/dev/null
2461if test -d .tst; then
2462  am__leading_dot=.
2463else
2464  am__leading_dot=_
2465fi
2466rmdir .tst 2>/dev/null
2467
2468if test "`cd $srcdir && pwd`" != "`pwd`"; then
2469  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2470  # is not polluted with repeated "-I."
2471  am__isrc=' -I$(srcdir)'
2472  # test to see if srcdir already configured
2473  if test -f $srcdir/config.status; then
2474    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2475echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2476   { (exit 1); exit 1; }; }
2477  fi
2478fi
2479
2480# test whether we have cygpath
2481if test -z "$CYGPATH_W"; then
2482  if (cygpath --version) >/dev/null 2>/dev/null; then
2483    CYGPATH_W='cygpath -w'
2484  else
2485    CYGPATH_W=echo
2486  fi
2487fi
2488
2489
2490# Define the identity of the package.
2491 PACKAGE=gamin
2492 VERSION=$VERSION
2493
2494
2495cat >>confdefs.h <<_ACEOF
2496#define PACKAGE "$PACKAGE"
2497_ACEOF
2498
2499
2500cat >>confdefs.h <<_ACEOF
2501#define VERSION "$VERSION"
2502_ACEOF
2503
2504# Some tools Automake needs.
2505
2506ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2507
2508
2509AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2510
2511
2512AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2513
2514
2515AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2516
2517
2518MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2519
2520install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2521
2522# Installed binaries are usually stripped using `strip' when the user
2523# run `make install-strip'.  However `strip' might not be the right
2524# tool to use in cross-compilation environments, therefore Automake
2525# will honor the `STRIP' environment variable to overrule this program.
2526if test "$cross_compiling" != no; then
2527  if test -n "$ac_tool_prefix"; then
2528  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2529set dummy ${ac_tool_prefix}strip; ac_word=$2
2530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532if test "${ac_cv_prog_STRIP+set}" = set; then
2533  echo $ECHO_N "(cached) $ECHO_C" >&6
2534else
2535  if test -n "$STRIP"; then
2536  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2537else
2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539for as_dir in $PATH
2540do
2541  IFS=$as_save_IFS
2542  test -z "$as_dir" && as_dir=.
2543  for ac_exec_ext in '' $ac_executable_extensions; do
2544  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2545    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2546    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547    break 2
2548  fi
2549done
2550done
2551IFS=$as_save_IFS
2552
2553fi
2554fi
2555STRIP=$ac_cv_prog_STRIP
2556if test -n "$STRIP"; then
2557  { echo "$as_me:$LINENO: result: $STRIP" >&5
2558echo "${ECHO_T}$STRIP" >&6; }
2559else
2560  { echo "$as_me:$LINENO: result: no" >&5
2561echo "${ECHO_T}no" >&6; }
2562fi
2563
2564
2565fi
2566if test -z "$ac_cv_prog_STRIP"; then
2567  ac_ct_STRIP=$STRIP
2568  # Extract the first word of "strip", so it can be a program name with args.
2569set dummy strip; ac_word=$2
2570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2572if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2573  echo $ECHO_N "(cached) $ECHO_C" >&6
2574else
2575  if test -n "$ac_ct_STRIP"; then
2576  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2577else
2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581  IFS=$as_save_IFS
2582  test -z "$as_dir" && as_dir=.
2583  for ac_exec_ext in '' $ac_executable_extensions; do
2584  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585    ac_cv_prog_ac_ct_STRIP="strip"
2586    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587    break 2
2588  fi
2589done
2590done
2591IFS=$as_save_IFS
2592
2593fi
2594fi
2595ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2596if test -n "$ac_ct_STRIP"; then
2597  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2598echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2599else
2600  { echo "$as_me:$LINENO: result: no" >&5
2601echo "${ECHO_T}no" >&6; }
2602fi
2603
2604  if test "x$ac_ct_STRIP" = x; then
2605    STRIP=":"
2606  else
2607    case $cross_compiling:$ac_tool_warned in
2608yes:)
2609{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2610whose name does not start with the host triplet.  If you think this
2611configuration is useful to you, please write to autoconf@gnu.org." >&5
2612echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2613whose name does not start with the host triplet.  If you think this
2614configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2615ac_tool_warned=yes ;;
2616esac
2617    STRIP=$ac_ct_STRIP
2618  fi
2619else
2620  STRIP="$ac_cv_prog_STRIP"
2621fi
2622
2623fi
2624INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2625
2626# We need awk for the "check" target.  The system "awk" is bad on
2627# some platforms.
2628# Always define AMTAR for backward compatibility.
2629
2630AMTAR=${AMTAR-"${am_missing_run}tar"}
2631
2632am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2633
2634
2635
2636
2637
2638
2639# Check whether --enable-shared was given.
2640if test "${enable_shared+set}" = set; then
2641  enableval=$enable_shared; p=${PACKAGE-default}
2642    case $enableval in
2643    yes) enable_shared=yes ;;
2644    no) enable_shared=no ;;
2645    *)
2646      enable_shared=no
2647      # Look at the argument we got.  We use all the common list separators.
2648      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2649      for pkg in $enableval; do
2650	IFS="$lt_save_ifs"
2651	if test "X$pkg" = "X$p"; then
2652	  enable_shared=yes
2653	fi
2654      done
2655      IFS="$lt_save_ifs"
2656      ;;
2657    esac
2658else
2659  enable_shared=yes
2660fi
2661
2662
2663# Check whether --enable-static was given.
2664if test "${enable_static+set}" = set; then
2665  enableval=$enable_static; p=${PACKAGE-default}
2666    case $enableval in
2667    yes) enable_static=yes ;;
2668    no) enable_static=no ;;
2669    *)
2670     enable_static=no
2671      # Look at the argument we got.  We use all the common list separators.
2672      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2673      for pkg in $enableval; do
2674	IFS="$lt_save_ifs"
2675	if test "X$pkg" = "X$p"; then
2676	  enable_static=yes
2677	fi
2678      done
2679      IFS="$lt_save_ifs"
2680      ;;
2681    esac
2682else
2683  enable_static=yes
2684fi
2685
2686
2687# Check whether --enable-fast-install was given.
2688if test "${enable_fast_install+set}" = set; then
2689  enableval=$enable_fast_install; p=${PACKAGE-default}
2690    case $enableval in
2691    yes) enable_fast_install=yes ;;
2692    no) enable_fast_install=no ;;
2693    *)
2694      enable_fast_install=no
2695      # Look at the argument we got.  We use all the common list separators.
2696      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2697      for pkg in $enableval; do
2698	IFS="$lt_save_ifs"
2699	if test "X$pkg" = "X$p"; then
2700	  enable_fast_install=yes
2701	fi
2702      done
2703      IFS="$lt_save_ifs"
2704      ;;
2705    esac
2706else
2707  enable_fast_install=yes
2708fi
2709
2710
2711DEPDIR="${am__leading_dot}deps"
2712
2713ac_config_commands="$ac_config_commands depfiles"
2714
2715
2716am_make=${MAKE-make}
2717cat > confinc << 'END'
2718am__doit:
2719	@echo done
2720.PHONY: am__doit
2721END
2722# If we don't find an include directive, just comment out the code.
2723{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2724echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2725am__include="#"
2726am__quote=
2727_am_result=none
2728# First try GNU make style include.
2729echo "include confinc" > confmf
2730# We grep out `Entering directory' and `Leaving directory'
2731# messages which can occur if `w' ends up in MAKEFLAGS.
2732# In particular we don't look at `^make:' because GNU make might
2733# be invoked under some other name (usually "gmake"), in which
2734# case it prints its new name instead of `make'.
2735if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2736   am__include=include
2737   am__quote=
2738   _am_result=GNU
2739fi
2740# Now try BSD make style include.
2741if test "$am__include" = "#"; then
2742   echo '.include "confinc"' > confmf
2743   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2744      am__include=.include
2745      am__quote="\""
2746      _am_result=BSD
2747   fi
2748fi
2749
2750
2751{ echo "$as_me:$LINENO: result: $_am_result" >&5
2752echo "${ECHO_T}$_am_result" >&6; }
2753rm -f confinc confmf
2754
2755# Check whether --enable-dependency-tracking was given.
2756if test "${enable_dependency_tracking+set}" = set; then
2757  enableval=$enable_dependency_tracking;
2758fi
2759
2760if test "x$enable_dependency_tracking" != xno; then
2761  am_depcomp="$ac_aux_dir/depcomp"
2762  AMDEPBACKSLASH='\'
2763fi
2764 if test "x$enable_dependency_tracking" != xno; then
2765  AMDEP_TRUE=
2766  AMDEP_FALSE='#'
2767else
2768  AMDEP_TRUE='#'
2769  AMDEP_FALSE=
2770fi
2771
2772
2773ac_ext=c
2774ac_cpp='$CPP $CPPFLAGS'
2775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777ac_compiler_gnu=$ac_cv_c_compiler_gnu
2778if test -n "$ac_tool_prefix"; then
2779  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2780set dummy ${ac_tool_prefix}gcc; ac_word=$2
2781{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2783if test "${ac_cv_prog_CC+set}" = set; then
2784  echo $ECHO_N "(cached) $ECHO_C" >&6
2785else
2786  if test -n "$CC"; then
2787  ac_cv_prog_CC="$CC" # Let the user override the test.
2788else
2789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790for as_dir in $PATH
2791do
2792  IFS=$as_save_IFS
2793  test -z "$as_dir" && as_dir=.
2794  for ac_exec_ext in '' $ac_executable_extensions; do
2795  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2797    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798    break 2
2799  fi
2800done
2801done
2802IFS=$as_save_IFS
2803
2804fi
2805fi
2806CC=$ac_cv_prog_CC
2807if test -n "$CC"; then
2808  { echo "$as_me:$LINENO: result: $CC" >&5
2809echo "${ECHO_T}$CC" >&6; }
2810else
2811  { echo "$as_me:$LINENO: result: no" >&5
2812echo "${ECHO_T}no" >&6; }
2813fi
2814
2815
2816fi
2817if test -z "$ac_cv_prog_CC"; then
2818  ac_ct_CC=$CC
2819  # Extract the first word of "gcc", so it can be a program name with args.
2820set dummy gcc; ac_word=$2
2821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2824  echo $ECHO_N "(cached) $ECHO_C" >&6
2825else
2826  if test -n "$ac_ct_CC"; then
2827  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2828else
2829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830for as_dir in $PATH
2831do
2832  IFS=$as_save_IFS
2833  test -z "$as_dir" && as_dir=.
2834  for ac_exec_ext in '' $ac_executable_extensions; do
2835  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2836    ac_cv_prog_ac_ct_CC="gcc"
2837    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838    break 2
2839  fi
2840done
2841done
2842IFS=$as_save_IFS
2843
2844fi
2845fi
2846ac_ct_CC=$ac_cv_prog_ac_ct_CC
2847if test -n "$ac_ct_CC"; then
2848  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2849echo "${ECHO_T}$ac_ct_CC" >&6; }
2850else
2851  { echo "$as_me:$LINENO: result: no" >&5
2852echo "${ECHO_T}no" >&6; }
2853fi
2854
2855  if test "x$ac_ct_CC" = x; then
2856    CC=""
2857  else
2858    case $cross_compiling:$ac_tool_warned in
2859yes:)
2860{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2861whose name does not start with the host triplet.  If you think this
2862configuration is useful to you, please write to autoconf@gnu.org." >&5
2863echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2864whose name does not start with the host triplet.  If you think this
2865configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2866ac_tool_warned=yes ;;
2867esac
2868    CC=$ac_ct_CC
2869  fi
2870else
2871  CC="$ac_cv_prog_CC"
2872fi
2873
2874if test -z "$CC"; then
2875          if test -n "$ac_tool_prefix"; then
2876    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2877set dummy ${ac_tool_prefix}cc; ac_word=$2
2878{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2880if test "${ac_cv_prog_CC+set}" = set; then
2881  echo $ECHO_N "(cached) $ECHO_C" >&6
2882else
2883  if test -n "$CC"; then
2884  ac_cv_prog_CC="$CC" # Let the user override the test.
2885else
2886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887for as_dir in $PATH
2888do
2889  IFS=$as_save_IFS
2890  test -z "$as_dir" && as_dir=.
2891  for ac_exec_ext in '' $ac_executable_extensions; do
2892  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893    ac_cv_prog_CC="${ac_tool_prefix}cc"
2894    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2895    break 2
2896  fi
2897done
2898done
2899IFS=$as_save_IFS
2900
2901fi
2902fi
2903CC=$ac_cv_prog_CC
2904if test -n "$CC"; then
2905  { echo "$as_me:$LINENO: result: $CC" >&5
2906echo "${ECHO_T}$CC" >&6; }
2907else
2908  { echo "$as_me:$LINENO: result: no" >&5
2909echo "${ECHO_T}no" >&6; }
2910fi
2911
2912
2913  fi
2914fi
2915if test -z "$CC"; then
2916  # Extract the first word of "cc", so it can be a program name with args.
2917set dummy cc; ac_word=$2
2918{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2920if test "${ac_cv_prog_CC+set}" = set; then
2921  echo $ECHO_N "(cached) $ECHO_C" >&6
2922else
2923  if test -n "$CC"; then
2924  ac_cv_prog_CC="$CC" # Let the user override the test.
2925else
2926  ac_prog_rejected=no
2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928for as_dir in $PATH
2929do
2930  IFS=$as_save_IFS
2931  test -z "$as_dir" && as_dir=.
2932  for ac_exec_ext in '' $ac_executable_extensions; do
2933  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2935       ac_prog_rejected=yes
2936       continue
2937     fi
2938    ac_cv_prog_CC="cc"
2939    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940    break 2
2941  fi
2942done
2943done
2944IFS=$as_save_IFS
2945
2946if test $ac_prog_rejected = yes; then
2947  # We found a bogon in the path, so make sure we never use it.
2948  set dummy $ac_cv_prog_CC
2949  shift
2950  if test $# != 0; then
2951    # We chose a different compiler from the bogus one.
2952    # However, it has the same basename, so the bogon will be chosen
2953    # first if we set CC to just the basename; use the full file name.
2954    shift
2955    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2956  fi
2957fi
2958fi
2959fi
2960CC=$ac_cv_prog_CC
2961if test -n "$CC"; then
2962  { echo "$as_me:$LINENO: result: $CC" >&5
2963echo "${ECHO_T}$CC" >&6; }
2964else
2965  { echo "$as_me:$LINENO: result: no" >&5
2966echo "${ECHO_T}no" >&6; }
2967fi
2968
2969
2970fi
2971if test -z "$CC"; then
2972  if test -n "$ac_tool_prefix"; then
2973  for ac_prog in cl.exe
2974  do
2975    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2976set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2979if test "${ac_cv_prog_CC+set}" = set; then
2980  echo $ECHO_N "(cached) $ECHO_C" >&6
2981else
2982  if test -n "$CC"; then
2983  ac_cv_prog_CC="$CC" # Let the user override the test.
2984else
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988  IFS=$as_save_IFS
2989  test -z "$as_dir" && as_dir=.
2990  for ac_exec_ext in '' $ac_executable_extensions; do
2991  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994    break 2
2995  fi
2996done
2997done
2998IFS=$as_save_IFS
2999
3000fi
3001fi
3002CC=$ac_cv_prog_CC
3003if test -n "$CC"; then
3004  { echo "$as_me:$LINENO: result: $CC" >&5
3005echo "${ECHO_T}$CC" >&6; }
3006else
3007  { echo "$as_me:$LINENO: result: no" >&5
3008echo "${ECHO_T}no" >&6; }
3009fi
3010
3011
3012    test -n "$CC" && break
3013  done
3014fi
3015if test -z "$CC"; then
3016  ac_ct_CC=$CC
3017  for ac_prog in cl.exe
3018do
3019  # Extract the first word of "$ac_prog", so it can be a program name with args.
3020set dummy $ac_prog; ac_word=$2
3021{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3023if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3024  echo $ECHO_N "(cached) $ECHO_C" >&6
3025else
3026  if test -n "$ac_ct_CC"; then
3027  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3028else
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032  IFS=$as_save_IFS
3033  test -z "$as_dir" && as_dir=.
3034  for ac_exec_ext in '' $ac_executable_extensions; do
3035  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036    ac_cv_prog_ac_ct_CC="$ac_prog"
3037    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3038    break 2
3039  fi
3040done
3041done
3042IFS=$as_save_IFS
3043
3044fi
3045fi
3046ac_ct_CC=$ac_cv_prog_ac_ct_CC
3047if test -n "$ac_ct_CC"; then
3048  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3049echo "${ECHO_T}$ac_ct_CC" >&6; }
3050else
3051  { echo "$as_me:$LINENO: result: no" >&5
3052echo "${ECHO_T}no" >&6; }
3053fi
3054
3055
3056  test -n "$ac_ct_CC" && break
3057done
3058
3059  if test "x$ac_ct_CC" = x; then
3060    CC=""
3061  else
3062    case $cross_compiling:$ac_tool_warned in
3063yes:)
3064{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3065whose name does not start with the host triplet.  If you think this
3066configuration is useful to you, please write to autoconf@gnu.org." >&5
3067echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3068whose name does not start with the host triplet.  If you think this
3069configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3070ac_tool_warned=yes ;;
3071esac
3072    CC=$ac_ct_CC
3073  fi
3074fi
3075
3076fi
3077
3078
3079test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3080See \`config.log' for more details." >&5
3081echo "$as_me: error: no acceptable C compiler found in \$PATH
3082See \`config.log' for more details." >&2;}
3083   { (exit 1); exit 1; }; }
3084
3085# Provide some information about the compiler.
3086echo "$as_me:$LINENO: checking for C compiler version" >&5
3087ac_compiler=`set X $ac_compile; echo $2`
3088{ (ac_try="$ac_compiler --version >&5"
3089case "(($ac_try" in
3090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091  *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094  (eval "$ac_compiler --version >&5") 2>&5
3095  ac_status=$?
3096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097  (exit $ac_status); }
3098{ (ac_try="$ac_compiler -v >&5"
3099case "(($ac_try" in
3100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101  *) ac_try_echo=$ac_try;;
3102esac
3103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104  (eval "$ac_compiler -v >&5") 2>&5
3105  ac_status=$?
3106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107  (exit $ac_status); }
3108{ (ac_try="$ac_compiler -V >&5"
3109case "(($ac_try" in
3110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111  *) ac_try_echo=$ac_try;;
3112esac
3113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114  (eval "$ac_compiler -V >&5") 2>&5
3115  ac_status=$?
3116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117  (exit $ac_status); }
3118
3119cat >conftest.$ac_ext <<_ACEOF
3120/* confdefs.h.  */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h.  */
3125
3126int
3127main ()
3128{
3129
3130  ;
3131  return 0;
3132}
3133_ACEOF
3134ac_clean_files_save=$ac_clean_files
3135ac_clean_files="$ac_clean_files a.out a.exe b.out"
3136# Try to create an executable without -o first, disregard a.out.
3137# It will help us diagnose broken compilers, and finding out an intuition
3138# of exeext.
3139{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3140echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3141ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3142#
3143# List of possible output files, starting from the most likely.
3144# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3145# only as a last resort.  b.out is created by i960 compilers.
3146ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3147#
3148# The IRIX 6 linker writes into existing files which may not be
3149# executable, retaining their permissions.  Remove them first so a
3150# subsequent execution test works.
3151ac_rmfiles=
3152for ac_file in $ac_files
3153do
3154  case $ac_file in
3155    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3156    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3157  esac
3158done
3159rm -f $ac_rmfiles
3160
3161if { (ac_try="$ac_link_default"
3162case "(($ac_try" in
3163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164  *) ac_try_echo=$ac_try;;
3165esac
3166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167  (eval "$ac_link_default") 2>&5
3168  ac_status=$?
3169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170  (exit $ac_status); }; then
3171  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3172# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3173# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3174# so that the user can short-circuit this test for compilers unknown to
3175# Autoconf.
3176for ac_file in $ac_files ''
3177do
3178  test -f "$ac_file" || continue
3179  case $ac_file in
3180    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3181	;;
3182    [ab].out )
3183	# We found the default executable, but exeext='' is most
3184	# certainly right.
3185	break;;
3186    *.* )
3187        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3188	then :; else
3189	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3190	fi
3191	# We set ac_cv_exeext here because the later test for it is not
3192	# safe: cross compilers may not add the suffix if given an `-o'
3193	# argument, so we may need to know it at that point already.
3194	# Even if this section looks crufty: it has the advantage of
3195	# actually working.
3196	break;;
3197    * )
3198	break;;
3199  esac
3200done
3201test "$ac_cv_exeext" = no && ac_cv_exeext=
3202
3203else
3204  ac_file=''
3205fi
3206
3207{ echo "$as_me:$LINENO: result: $ac_file" >&5
3208echo "${ECHO_T}$ac_file" >&6; }
3209if test -z "$ac_file"; then
3210  echo "$as_me: failed program was:" >&5
3211sed 's/^/| /' conftest.$ac_ext >&5
3212
3213{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3214See \`config.log' for more details." >&5
3215echo "$as_me: error: C compiler cannot create executables
3216See \`config.log' for more details." >&2;}
3217   { (exit 77); exit 77; }; }
3218fi
3219
3220ac_exeext=$ac_cv_exeext
3221
3222# Check that the compiler produces executables we can run.  If not, either
3223# the compiler is broken, or we cross compile.
3224{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3225echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3226# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3227# If not cross compiling, check that we can run a simple program.
3228if test "$cross_compiling" != yes; then
3229  if { ac_try='./$ac_file'
3230  { (case "(($ac_try" in
3231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232  *) ac_try_echo=$ac_try;;
3233esac
3234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235  (eval "$ac_try") 2>&5
3236  ac_status=$?
3237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238  (exit $ac_status); }; }; then
3239    cross_compiling=no
3240  else
3241    if test "$cross_compiling" = maybe; then
3242	cross_compiling=yes
3243    else
3244	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3245If you meant to cross compile, use \`--host'.
3246See \`config.log' for more details." >&5
3247echo "$as_me: error: cannot run C compiled programs.
3248If you meant to cross compile, use \`--host'.
3249See \`config.log' for more details." >&2;}
3250   { (exit 1); exit 1; }; }
3251    fi
3252  fi
3253fi
3254{ echo "$as_me:$LINENO: result: yes" >&5
3255echo "${ECHO_T}yes" >&6; }
3256
3257rm -f a.out a.exe conftest$ac_cv_exeext b.out
3258ac_clean_files=$ac_clean_files_save
3259# Check that the compiler produces executables we can run.  If not, either
3260# the compiler is broken, or we cross compile.
3261{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3262echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3263{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3264echo "${ECHO_T}$cross_compiling" >&6; }
3265
3266{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3267echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3268if { (ac_try="$ac_link"
3269case "(($ac_try" in
3270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271  *) ac_try_echo=$ac_try;;
3272esac
3273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274  (eval "$ac_link") 2>&5
3275  ac_status=$?
3276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277  (exit $ac_status); }; then
3278  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3279# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3280# work properly (i.e., refer to `conftest.exe'), while it won't with
3281# `rm'.
3282for ac_file in conftest.exe conftest conftest.*; do
3283  test -f "$ac_file" || continue
3284  case $ac_file in
3285    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3286    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3287	  break;;
3288    * ) break;;
3289  esac
3290done
3291else
3292  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3293See \`config.log' for more details." >&5
3294echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3295See \`config.log' for more details." >&2;}
3296   { (exit 1); exit 1; }; }
3297fi
3298
3299rm -f conftest$ac_cv_exeext
3300{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3301echo "${ECHO_T}$ac_cv_exeext" >&6; }
3302
3303rm -f conftest.$ac_ext
3304EXEEXT=$ac_cv_exeext
3305ac_exeext=$EXEEXT
3306{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3307echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3308if test "${ac_cv_objext+set}" = set; then
3309  echo $ECHO_N "(cached) $ECHO_C" >&6
3310else
3311  cat >conftest.$ac_ext <<_ACEOF
3312/* confdefs.h.  */
3313_ACEOF
3314cat confdefs.h >>conftest.$ac_ext
3315cat >>conftest.$ac_ext <<_ACEOF
3316/* end confdefs.h.  */
3317
3318int
3319main ()
3320{
3321
3322  ;
3323  return 0;
3324}
3325_ACEOF
3326rm -f conftest.o conftest.obj
3327if { (ac_try="$ac_compile"
3328case "(($ac_try" in
3329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330  *) ac_try_echo=$ac_try;;
3331esac
3332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333  (eval "$ac_compile") 2>&5
3334  ac_status=$?
3335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336  (exit $ac_status); }; then
3337  for ac_file in conftest.o conftest.obj conftest.*; do
3338  test -f "$ac_file" || continue;
3339  case $ac_file in
3340    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3341    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3342       break;;
3343  esac
3344done
3345else
3346  echo "$as_me: failed program was:" >&5
3347sed 's/^/| /' conftest.$ac_ext >&5
3348
3349{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3350See \`config.log' for more details." >&5
3351echo "$as_me: error: cannot compute suffix of object files: cannot compile
3352See \`config.log' for more details." >&2;}
3353   { (exit 1); exit 1; }; }
3354fi
3355
3356rm -f conftest.$ac_cv_objext conftest.$ac_ext
3357fi
3358{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3359echo "${ECHO_T}$ac_cv_objext" >&6; }
3360OBJEXT=$ac_cv_objext
3361ac_objext=$OBJEXT
3362{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3363echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3364if test "${ac_cv_c_compiler_gnu+set}" = set; then
3365  echo $ECHO_N "(cached) $ECHO_C" >&6
3366else
3367  cat >conftest.$ac_ext <<_ACEOF
3368/* confdefs.h.  */
3369_ACEOF
3370cat confdefs.h >>conftest.$ac_ext
3371cat >>conftest.$ac_ext <<_ACEOF
3372/* end confdefs.h.  */
3373
3374int
3375main ()
3376{
3377#ifndef __GNUC__
3378       choke me
3379#endif
3380
3381  ;
3382  return 0;
3383}
3384_ACEOF
3385rm -f conftest.$ac_objext
3386if { (ac_try="$ac_compile"
3387case "(($ac_try" in
3388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389  *) ac_try_echo=$ac_try;;
3390esac
3391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392  (eval "$ac_compile") 2>conftest.er1
3393  ac_status=$?
3394  grep -v '^ *+' conftest.er1 >conftest.err
3395  rm -f conftest.er1
3396  cat conftest.err >&5
3397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398  (exit $ac_status); } && {
3399	 test -z "$ac_c_werror_flag" ||
3400	 test ! -s conftest.err
3401       } && test -s conftest.$ac_objext; then
3402  ac_compiler_gnu=yes
3403else
3404  echo "$as_me: failed program was:" >&5
3405sed 's/^/| /' conftest.$ac_ext >&5
3406
3407	ac_compiler_gnu=no
3408fi
3409
3410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411ac_cv_c_compiler_gnu=$ac_compiler_gnu
3412
3413fi
3414{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3415echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3416GCC=`test $ac_compiler_gnu = yes && echo yes`
3417ac_test_CFLAGS=${CFLAGS+set}
3418ac_save_CFLAGS=$CFLAGS
3419{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3420echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3421if test "${ac_cv_prog_cc_g+set}" = set; then
3422  echo $ECHO_N "(cached) $ECHO_C" >&6
3423else
3424  ac_save_c_werror_flag=$ac_c_werror_flag
3425   ac_c_werror_flag=yes
3426   ac_cv_prog_cc_g=no
3427   CFLAGS="-g"
3428   cat >conftest.$ac_ext <<_ACEOF
3429/* confdefs.h.  */
3430_ACEOF
3431cat confdefs.h >>conftest.$ac_ext
3432cat >>conftest.$ac_ext <<_ACEOF
3433/* end confdefs.h.  */
3434
3435int
3436main ()
3437{
3438
3439  ;
3440  return 0;
3441}
3442_ACEOF
3443rm -f conftest.$ac_objext
3444if { (ac_try="$ac_compile"
3445case "(($ac_try" in
3446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447  *) ac_try_echo=$ac_try;;
3448esac
3449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450  (eval "$ac_compile") 2>conftest.er1
3451  ac_status=$?
3452  grep -v '^ *+' conftest.er1 >conftest.err
3453  rm -f conftest.er1
3454  cat conftest.err >&5
3455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456  (exit $ac_status); } && {
3457	 test -z "$ac_c_werror_flag" ||
3458	 test ! -s conftest.err
3459       } && test -s conftest.$ac_objext; then
3460  ac_cv_prog_cc_g=yes
3461else
3462  echo "$as_me: failed program was:" >&5
3463sed 's/^/| /' conftest.$ac_ext >&5
3464
3465	CFLAGS=""
3466      cat >conftest.$ac_ext <<_ACEOF
3467/* confdefs.h.  */
3468_ACEOF
3469cat confdefs.h >>conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
3471/* end confdefs.h.  */
3472
3473int
3474main ()
3475{
3476
3477  ;
3478  return 0;
3479}
3480_ACEOF
3481rm -f conftest.$ac_objext
3482if { (ac_try="$ac_compile"
3483case "(($ac_try" in
3484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485  *) ac_try_echo=$ac_try;;
3486esac
3487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488  (eval "$ac_compile") 2>conftest.er1
3489  ac_status=$?
3490  grep -v '^ *+' conftest.er1 >conftest.err
3491  rm -f conftest.er1
3492  cat conftest.err >&5
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); } && {
3495	 test -z "$ac_c_werror_flag" ||
3496	 test ! -s conftest.err
3497       } && test -s conftest.$ac_objext; then
3498  :
3499else
3500  echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503	ac_c_werror_flag=$ac_save_c_werror_flag
3504	 CFLAGS="-g"
3505	 cat >conftest.$ac_ext <<_ACEOF
3506/* confdefs.h.  */
3507_ACEOF
3508cat confdefs.h >>conftest.$ac_ext
3509cat >>conftest.$ac_ext <<_ACEOF
3510/* end confdefs.h.  */
3511
3512int
3513main ()
3514{
3515
3516  ;
3517  return 0;
3518}
3519_ACEOF
3520rm -f conftest.$ac_objext
3521if { (ac_try="$ac_compile"
3522case "(($ac_try" in
3523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524  *) ac_try_echo=$ac_try;;
3525esac
3526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527  (eval "$ac_compile") 2>conftest.er1
3528  ac_status=$?
3529  grep -v '^ *+' conftest.er1 >conftest.err
3530  rm -f conftest.er1
3531  cat conftest.err >&5
3532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533  (exit $ac_status); } && {
3534	 test -z "$ac_c_werror_flag" ||
3535	 test ! -s conftest.err
3536       } && test -s conftest.$ac_objext; then
3537  ac_cv_prog_cc_g=yes
3538else
3539  echo "$as_me: failed program was:" >&5
3540sed 's/^/| /' conftest.$ac_ext >&5
3541
3542
3543fi
3544
3545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546fi
3547
3548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549fi
3550
3551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552   ac_c_werror_flag=$ac_save_c_werror_flag
3553fi
3554{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3555echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3556if test "$ac_test_CFLAGS" = set; then
3557  CFLAGS=$ac_save_CFLAGS
3558elif test $ac_cv_prog_cc_g = yes; then
3559  if test "$GCC" = yes; then
3560    CFLAGS="-g -O2"
3561  else
3562    CFLAGS="-g"
3563  fi
3564else
3565  if test "$GCC" = yes; then
3566    CFLAGS="-O2"
3567  else
3568    CFLAGS=
3569  fi
3570fi
3571{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3572echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3573if test "${ac_cv_prog_cc_c89+set}" = set; then
3574  echo $ECHO_N "(cached) $ECHO_C" >&6
3575else
3576  ac_cv_prog_cc_c89=no
3577ac_save_CC=$CC
3578cat >conftest.$ac_ext <<_ACEOF
3579/* confdefs.h.  */
3580_ACEOF
3581cat confdefs.h >>conftest.$ac_ext
3582cat >>conftest.$ac_ext <<_ACEOF
3583/* end confdefs.h.  */
3584#include <stdarg.h>
3585#include <stdio.h>
3586#include <sys/types.h>
3587#include <sys/stat.h>
3588/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3589struct buf { int x; };
3590FILE * (*rcsopen) (struct buf *, struct stat *, int);
3591static char *e (p, i)
3592     char **p;
3593     int i;
3594{
3595  return p[i];
3596}
3597static char *f (char * (*g) (char **, int), char **p, ...)
3598{
3599  char *s;
3600  va_list v;
3601  va_start (v,p);
3602  s = g (p, va_arg (v,int));
3603  va_end (v);
3604  return s;
3605}
3606
3607/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3608   function prototypes and stuff, but not '\xHH' hex character constants.
3609   These don't provoke an error unfortunately, instead are silently treated
3610   as 'x'.  The following induces an error, until -std is added to get
3611   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3612   array size at least.  It's necessary to write '\x00'==0 to get something
3613   that's true only with -std.  */
3614int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3615
3616/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3617   inside strings and character constants.  */
3618#define FOO(x) 'x'
3619int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3620
3621int test (int i, double x);
3622struct s1 {int (*f) (int a);};
3623struct s2 {int (*f) (double a);};
3624int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3625int argc;
3626char **argv;
3627int
3628main ()
3629{
3630return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3631  ;
3632  return 0;
3633}
3634_ACEOF
3635for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3636	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3637do
3638  CC="$ac_save_CC $ac_arg"
3639  rm -f conftest.$ac_objext
3640if { (ac_try="$ac_compile"
3641case "(($ac_try" in
3642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643  *) ac_try_echo=$ac_try;;
3644esac
3645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646  (eval "$ac_compile") 2>conftest.er1
3647  ac_status=$?
3648  grep -v '^ *+' conftest.er1 >conftest.err
3649  rm -f conftest.er1
3650  cat conftest.err >&5
3651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652  (exit $ac_status); } && {
3653	 test -z "$ac_c_werror_flag" ||
3654	 test ! -s conftest.err
3655       } && test -s conftest.$ac_objext; then
3656  ac_cv_prog_cc_c89=$ac_arg
3657else
3658  echo "$as_me: failed program was:" >&5
3659sed 's/^/| /' conftest.$ac_ext >&5
3660
3661
3662fi
3663
3664rm -f core conftest.err conftest.$ac_objext
3665  test "x$ac_cv_prog_cc_c89" != "xno" && break
3666done
3667rm -f conftest.$ac_ext
3668CC=$ac_save_CC
3669
3670fi
3671# AC_CACHE_VAL
3672case "x$ac_cv_prog_cc_c89" in
3673  x)
3674    { echo "$as_me:$LINENO: result: none needed" >&5
3675echo "${ECHO_T}none needed" >&6; } ;;
3676  xno)
3677    { echo "$as_me:$LINENO: result: unsupported" >&5
3678echo "${ECHO_T}unsupported" >&6; } ;;
3679  *)
3680    CC="$CC $ac_cv_prog_cc_c89"
3681    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3682echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3683esac
3684
3685
3686ac_ext=c
3687ac_cpp='$CPP $CPPFLAGS'
3688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691
3692depcc="$CC"   am_compiler_list=
3693
3694{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3695echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3696if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3697  echo $ECHO_N "(cached) $ECHO_C" >&6
3698else
3699  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3700  # We make a subdir and do the tests there.  Otherwise we can end up
3701  # making bogus files that we don't know about and never remove.  For
3702  # instance it was reported that on HP-UX the gcc test will end up
3703  # making a dummy file named `D' -- because `-MD' means `put the output
3704  # in D'.
3705  mkdir conftest.dir
3706  # Copy depcomp to subdir because otherwise we won't find it if we're
3707  # using a relative directory.
3708  cp "$am_depcomp" conftest.dir
3709  cd conftest.dir
3710  # We will build objects and dependencies in a subdirectory because
3711  # it helps to detect inapplicable dependency modes.  For instance
3712  # both Tru64's cc and ICC support -MD to output dependencies as a
3713  # side effect of compilation, but ICC will put the dependencies in
3714  # the current directory while Tru64 will put them in the object
3715  # directory.
3716  mkdir sub
3717
3718  am_cv_CC_dependencies_compiler_type=none
3719  if test "$am_compiler_list" = ""; then
3720     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3721  fi
3722  for depmode in $am_compiler_list; do
3723    # Setup a source with many dependencies, because some compilers
3724    # like to wrap large dependency lists on column 80 (with \), and
3725    # we should not choose a depcomp mode which is confused by this.
3726    #
3727    # We need to recreate these files for each test, as the compiler may
3728    # overwrite some of them when testing with obscure command lines.
3729    # This happens at least with the AIX C compiler.
3730    : > sub/conftest.c
3731    for i in 1 2 3 4 5 6; do
3732      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3733      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3734      # Solaris 8's {/usr,}/bin/sh.
3735      touch sub/conftst$i.h
3736    done
3737    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3738
3739    case $depmode in
3740    nosideeffect)
3741      # after this tag, mechanisms are not by side-effect, so they'll
3742      # only be used when explicitly requested
3743      if test "x$enable_dependency_tracking" = xyes; then
3744	continue
3745      else
3746	break
3747      fi
3748      ;;
3749    none) break ;;
3750    esac
3751    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3752    # mode.  It turns out that the SunPro C++ compiler does not properly
3753    # handle `-M -o', and we need to detect this.
3754    if depmode=$depmode \
3755       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3756       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3757       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3758         >/dev/null 2>conftest.err &&
3759       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3760       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3761       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3762       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3763      # icc doesn't choke on unknown options, it will just issue warnings
3764      # or remarks (even with -Werror).  So we grep stderr for any message
3765      # that says an option was ignored or not supported.
3766      # When given -MP, icc 7.0 and 7.1 complain thusly:
3767      #   icc: Command line warning: ignoring option '-M'; no argument required
3768      # The diagnosis changed in icc 8.0:
3769      #   icc: Command line remark: option '-MP' not supported
3770      if (grep 'ignoring option' conftest.err ||
3771          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3772        am_cv_CC_dependencies_compiler_type=$depmode
3773        break
3774      fi
3775    fi
3776  done
3777
3778  cd ..
3779  rm -rf conftest.dir
3780else
3781  am_cv_CC_dependencies_compiler_type=none
3782fi
3783
3784fi
3785{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3786echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3787CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3788
3789 if
3790  test "x$enable_dependency_tracking" != xno \
3791  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3792  am__fastdepCC_TRUE=
3793  am__fastdepCC_FALSE='#'
3794else
3795  am__fastdepCC_TRUE='#'
3796  am__fastdepCC_FALSE=
3797fi
3798
3799
3800{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3801echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3802if test "${lt_cv_path_SED+set}" = set; then
3803  echo $ECHO_N "(cached) $ECHO_C" >&6
3804else
3805  # Loop through the user's path and test for sed and gsed.
3806# Then use that list of sed's as ones to test for truncation.
3807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810  IFS=$as_save_IFS
3811  test -z "$as_dir" && as_dir=.
3812  for lt_ac_prog in sed gsed; do
3813    for ac_exec_ext in '' $ac_executable_extensions; do
3814      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3815        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3816      fi
3817    done
3818  done
3819done
3820IFS=$as_save_IFS
3821lt_ac_max=0
3822lt_ac_count=0
3823# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3824# along with /bin/sed that truncates output.
3825for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3826  test ! -f $lt_ac_sed && continue
3827  cat /dev/null > conftest.in
3828  lt_ac_count=0
3829  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3830  # Check for GNU sed and select it if it is found.
3831  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3832    lt_cv_path_SED=$lt_ac_sed
3833    break
3834  fi
3835  while true; do
3836    cat conftest.in conftest.in >conftest.tmp
3837    mv conftest.tmp conftest.in
3838    cp conftest.in conftest.nl
3839    echo >>conftest.nl
3840    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3841    cmp -s conftest.out conftest.nl || break
3842    # 10000 chars as input seems more than enough
3843    test $lt_ac_count -gt 10 && break
3844    lt_ac_count=`expr $lt_ac_count + 1`
3845    if test $lt_ac_count -gt $lt_ac_max; then
3846      lt_ac_max=$lt_ac_count
3847      lt_cv_path_SED=$lt_ac_sed
3848    fi
3849  done
3850done
3851
3852fi
3853
3854SED=$lt_cv_path_SED
3855
3856{ echo "$as_me:$LINENO: result: $SED" >&5
3857echo "${ECHO_T}$SED" >&6; }
3858
3859{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3860echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3861if test "${ac_cv_path_GREP+set}" = set; then
3862  echo $ECHO_N "(cached) $ECHO_C" >&6
3863else
3864  # Extract the first word of "grep ggrep" to use in msg output
3865if test -z "$GREP"; then
3866set dummy grep ggrep; ac_prog_name=$2
3867if test "${ac_cv_path_GREP+set}" = set; then
3868  echo $ECHO_N "(cached) $ECHO_C" >&6
3869else
3870  ac_path_GREP_found=false
3871# Loop through the user's path and test for each of PROGNAME-LIST
3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3874do
3875  IFS=$as_save_IFS
3876  test -z "$as_dir" && as_dir=.
3877  for ac_prog in grep ggrep; do
3878  for ac_exec_ext in '' $ac_executable_extensions; do
3879    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3880    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3881    # Check for GNU ac_path_GREP and select it if it is found.
3882  # Check for GNU $ac_path_GREP
3883case `"$ac_path_GREP" --version 2>&1` in
3884*GNU*)
3885  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3886*)
3887  ac_count=0
3888  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3889  while :
3890  do
3891    cat "conftest.in" "conftest.in" >"conftest.tmp"
3892    mv "conftest.tmp" "conftest.in"
3893    cp "conftest.in" "conftest.nl"
3894    echo 'GREP' >> "conftest.nl"
3895    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3896    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3897    ac_count=`expr $ac_count + 1`
3898    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3899      # Best one so far, save it but keep looking for a better one
3900      ac_cv_path_GREP="$ac_path_GREP"
3901      ac_path_GREP_max=$ac_count
3902    fi
3903    # 10*(2^10) chars as input seems more than enough
3904    test $ac_count -gt 10 && break
3905  done
3906  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3907esac
3908
3909
3910    $ac_path_GREP_found && break 3
3911  done
3912done
3913
3914done
3915IFS=$as_save_IFS
3916
3917
3918fi
3919
3920GREP="$ac_cv_path_GREP"
3921if test -z "$GREP"; then
3922  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3923echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3924   { (exit 1); exit 1; }; }
3925fi
3926
3927else
3928  ac_cv_path_GREP=$GREP
3929fi
3930
3931
3932fi
3933{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3934echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3935 GREP="$ac_cv_path_GREP"
3936
3937
3938{ echo "$as_me:$LINENO: checking for egrep" >&5
3939echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3940if test "${ac_cv_path_EGREP+set}" = set; then
3941  echo $ECHO_N "(cached) $ECHO_C" >&6
3942else
3943  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3944   then ac_cv_path_EGREP="$GREP -E"
3945   else
3946     # Extract the first word of "egrep" to use in msg output
3947if test -z "$EGREP"; then
3948set dummy egrep; ac_prog_name=$2
3949if test "${ac_cv_path_EGREP+set}" = set; then
3950  echo $ECHO_N "(cached) $ECHO_C" >&6
3951else
3952  ac_path_EGREP_found=false
3953# Loop through the user's path and test for each of PROGNAME-LIST
3954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3956do
3957  IFS=$as_save_IFS
3958  test -z "$as_dir" && as_dir=.
3959  for ac_prog in egrep; do
3960  for ac_exec_ext in '' $ac_executable_extensions; do
3961    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3962    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3963    # Check for GNU ac_path_EGREP and select it if it is found.
3964  # Check for GNU $ac_path_EGREP
3965case `"$ac_path_EGREP" --version 2>&1` in
3966*GNU*)
3967  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3968*)
3969  ac_count=0
3970  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3971  while :
3972  do
3973    cat "conftest.in" "conftest.in" >"conftest.tmp"
3974    mv "conftest.tmp" "conftest.in"
3975    cp "conftest.in" "conftest.nl"
3976    echo 'EGREP' >> "conftest.nl"
3977    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3978    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3979    ac_count=`expr $ac_count + 1`
3980    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3981      # Best one so far, save it but keep looking for a better one
3982      ac_cv_path_EGREP="$ac_path_EGREP"
3983      ac_path_EGREP_max=$ac_count
3984    fi
3985    # 10*(2^10) chars as input seems more than enough
3986    test $ac_count -gt 10 && break
3987  done
3988  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989esac
3990
3991
3992    $ac_path_EGREP_found && break 3
3993  done
3994done
3995
3996done
3997IFS=$as_save_IFS
3998
3999
4000fi
4001
4002EGREP="$ac_cv_path_EGREP"
4003if test -z "$EGREP"; then
4004  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4005echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4006   { (exit 1); exit 1; }; }
4007fi
4008
4009else
4010  ac_cv_path_EGREP=$EGREP
4011fi
4012
4013
4014   fi
4015fi
4016{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4017echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4018 EGREP="$ac_cv_path_EGREP"
4019
4020
4021
4022# Check whether --with-gnu-ld was given.
4023if test "${with_gnu_ld+set}" = set; then
4024  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4025else
4026  with_gnu_ld=no
4027fi
4028
4029ac_prog=ld
4030if test "$GCC" = yes; then
4031  # Check if gcc -print-prog-name=ld gives a path.
4032  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4033echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4034  case $host in
4035  *-*-mingw*)
4036    # gcc leaves a trailing carriage return which upsets mingw
4037    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4038  *)
4039    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4040  esac
4041  case $ac_prog in
4042    # Accept absolute paths.
4043    [\\/]* | ?:[\\/]*)
4044      re_direlt='/[^/][^/]*/\.\./'
4045      # Canonicalize the pathname of ld
4046      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4047      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4048	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4049      done
4050      test -z "$LD" && LD="$ac_prog"
4051      ;;
4052  "")
4053    # If it fails, then pretend we aren't using GCC.
4054    ac_prog=ld
4055    ;;
4056  *)
4057    # If it is relative, then search for the first ld in PATH.
4058    with_gnu_ld=unknown
4059    ;;
4060  esac
4061elif test "$with_gnu_ld" = yes; then
4062  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4063echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4064else
4065  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4066echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4067fi
4068if test "${lt_cv_path_LD+set}" = set; then
4069  echo $ECHO_N "(cached) $ECHO_C" >&6
4070else
4071  if test -z "$LD"; then
4072  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4073  for ac_dir in $PATH; do
4074    IFS="$lt_save_ifs"
4075    test -z "$ac_dir" && ac_dir=.
4076    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4077      lt_cv_path_LD="$ac_dir/$ac_prog"
4078      # Check to see if the program is GNU ld.  I'd rather use --version,
4079      # but apparently some variants of GNU ld only accept -v.
4080      # Break only if it was the GNU/non-GNU ld that we prefer.
4081      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4082      *GNU* | *'with BFD'*)
4083	test "$with_gnu_ld" != no && break
4084	;;
4085      *)
4086	test "$with_gnu_ld" != yes && break
4087	;;
4088      esac
4089    fi
4090  done
4091  IFS="$lt_save_ifs"
4092else
4093  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4094fi
4095fi
4096
4097LD="$lt_cv_path_LD"
4098if test -n "$LD"; then
4099  { echo "$as_me:$LINENO: result: $LD" >&5
4100echo "${ECHO_T}$LD" >&6; }
4101else
4102  { echo "$as_me:$LINENO: result: no" >&5
4103echo "${ECHO_T}no" >&6; }
4104fi
4105test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4106echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4107   { (exit 1); exit 1; }; }
4108{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4109echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4110if test "${lt_cv_prog_gnu_ld+set}" = set; then
4111  echo $ECHO_N "(cached) $ECHO_C" >&6
4112else
4113  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4114case `$LD -v 2>&1 </dev/null` in
4115*GNU* | *'with BFD'*)
4116  lt_cv_prog_gnu_ld=yes
4117  ;;
4118*)
4119  lt_cv_prog_gnu_ld=no
4120  ;;
4121esac
4122fi
4123{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4124echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4125with_gnu_ld=$lt_cv_prog_gnu_ld
4126
4127
4128{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4129echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4130if test "${lt_cv_ld_reload_flag+set}" = set; then
4131  echo $ECHO_N "(cached) $ECHO_C" >&6
4132else
4133  lt_cv_ld_reload_flag='-r'
4134fi
4135{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4136echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4137reload_flag=$lt_cv_ld_reload_flag
4138case $reload_flag in
4139"" | " "*) ;;
4140*) reload_flag=" $reload_flag" ;;
4141esac
4142reload_cmds='$LD$reload_flag -o $output$reload_objs'
4143case $host_os in
4144  darwin*)
4145    if test "$GCC" = yes; then
4146      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4147    else
4148      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4149    fi
4150    ;;
4151esac
4152
4153{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4154echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4155if test "${lt_cv_path_NM+set}" = set; then
4156  echo $ECHO_N "(cached) $ECHO_C" >&6
4157else
4158  if test -n "$NM"; then
4159  # Let the user override the test.
4160  lt_cv_path_NM="$NM"
4161else
4162  lt_nm_to_check="${ac_tool_prefix}nm"
4163  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4164    lt_nm_to_check="$lt_nm_to_check nm"
4165  fi
4166  for lt_tmp_nm in $lt_nm_to_check; do
4167    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4168    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4169      IFS="$lt_save_ifs"
4170      test -z "$ac_dir" && ac_dir=.
4171      tmp_nm="$ac_dir/$lt_tmp_nm"
4172      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4173	# Check to see if the nm accepts a BSD-compat flag.
4174	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4175	#   nm: unknown option "B" ignored
4176	# Tru64's nm complains that /dev/null is an invalid object file
4177	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4178	*/dev/null* | *'Invalid file or object type'*)
4179	  lt_cv_path_NM="$tmp_nm -B"
4180	  break
4181	  ;;
4182	*)
4183	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4184	  */dev/null*)
4185	    lt_cv_path_NM="$tmp_nm -p"
4186	    break
4187	    ;;
4188	  *)
4189	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4190	    continue # so that we can try to find one that supports BSD flags
4191	    ;;
4192	  esac
4193	  ;;
4194	esac
4195      fi
4196    done
4197    IFS="$lt_save_ifs"
4198  done
4199  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4200fi
4201fi
4202{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4203echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4204NM="$lt_cv_path_NM"
4205
4206{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4207echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4208LN_S=$as_ln_s
4209if test "$LN_S" = "ln -s"; then
4210  { echo "$as_me:$LINENO: result: yes" >&5
4211echo "${ECHO_T}yes" >&6; }
4212else
4213  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4214echo "${ECHO_T}no, using $LN_S" >&6; }
4215fi
4216
4217{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4218echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4219if test "${lt_cv_deplibs_check_method+set}" = set; then
4220  echo $ECHO_N "(cached) $ECHO_C" >&6
4221else
4222  lt_cv_file_magic_cmd='$MAGIC_CMD'
4223lt_cv_file_magic_test_file=
4224lt_cv_deplibs_check_method='unknown'
4225# Need to set the preceding variable on all platforms that support
4226# interlibrary dependencies.
4227# 'none' -- dependencies not supported.
4228# `unknown' -- same as none, but documents that we really don't know.
4229# 'pass_all' -- all dependencies passed with no checks.
4230# 'test_compile' -- check by making test program.
4231# 'file_magic [[regex]]' -- check by looking for files in library path
4232# which responds to the $file_magic_cmd with a given extended regex.
4233# If you have `file' or equivalent on your system and you're not sure
4234# whether `pass_all' will *always* work, you probably want this one.
4235
4236case $host_os in
4237aix4* | aix5*)
4238  lt_cv_deplibs_check_method=pass_all
4239  ;;
4240
4241beos*)
4242  lt_cv_deplibs_check_method=pass_all
4243  ;;
4244
4245bsdi[45]*)
4246  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4247  lt_cv_file_magic_cmd='/usr/bin/file -L'
4248  lt_cv_file_magic_test_file=/shlib/libc.so
4249  ;;
4250
4251cygwin*)
4252  # func_win32_libid is a shell function defined in ltmain.sh
4253  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4254  lt_cv_file_magic_cmd='func_win32_libid'
4255  ;;
4256
4257mingw* | pw32*)
4258  # Base MSYS/MinGW do not provide the 'file' command needed by
4259  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4260  # unless we find 'file', for example because we are cross-compiling.
4261  if ( file / ) >/dev/null 2>&1; then
4262    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4263    lt_cv_file_magic_cmd='func_win32_libid'
4264  else
4265    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4266    lt_cv_file_magic_cmd='$OBJDUMP -f'
4267  fi
4268  ;;
4269
4270darwin* | rhapsody*)
4271  lt_cv_deplibs_check_method=pass_all
4272  ;;
4273
4274freebsd* | dragonfly*)
4275  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4276    case $host_cpu in
4277    i*86 )
4278      # Not sure whether the presence of OpenBSD here was a mistake.
4279      # Let's accept both of them until this is cleared up.
4280      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4281      lt_cv_file_magic_cmd=/usr/bin/file
4282      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4283      ;;
4284    esac
4285  else
4286    lt_cv_deplibs_check_method=pass_all
4287  fi
4288  ;;
4289
4290gnu*)
4291  lt_cv_deplibs_check_method=pass_all
4292  ;;
4293
4294hpux10.20* | hpux11*)
4295  lt_cv_file_magic_cmd=/usr/bin/file
4296  case $host_cpu in
4297  ia64*)
4298    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4299    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4300    ;;
4301  hppa*64*)
4302    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]'
4303    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4304    ;;
4305  *)
4306    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4307    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4308    ;;
4309  esac
4310  ;;
4311
4312interix[3-9]*)
4313  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4314  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4315  ;;
4316
4317irix5* | irix6* | nonstopux*)
4318  case $LD in
4319  *-32|*"-32 ") libmagic=32-bit;;
4320  *-n32|*"-n32 ") libmagic=N32;;
4321  *-64|*"-64 ") libmagic=64-bit;;
4322  *) libmagic=never-match;;
4323  esac
4324  lt_cv_deplibs_check_method=pass_all
4325  ;;
4326
4327# This must be Linux ELF.
4328linux* | k*bsd*-gnu)
4329  lt_cv_deplibs_check_method=pass_all
4330  ;;
4331
4332netbsd*)
4333  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4334    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4335  else
4336    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4337  fi
4338  ;;
4339
4340newos6*)
4341  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4342  lt_cv_file_magic_cmd=/usr/bin/file
4343  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4344  ;;
4345
4346nto-qnx*)
4347  lt_cv_deplibs_check_method=unknown
4348  ;;
4349
4350openbsd*)
4351  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4352    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4353  else
4354    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4355  fi
4356  ;;
4357
4358osf3* | osf4* | osf5*)
4359  lt_cv_deplibs_check_method=pass_all
4360  ;;
4361
4362rdos*)
4363  lt_cv_deplibs_check_method=pass_all
4364  ;;
4365
4366solaris*)
4367  lt_cv_deplibs_check_method=pass_all
4368  ;;
4369
4370sysv4 | sysv4.3*)
4371  case $host_vendor in
4372  motorola)
4373    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]'
4374    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4375    ;;
4376  ncr)
4377    lt_cv_deplibs_check_method=pass_all
4378    ;;
4379  sequent)
4380    lt_cv_file_magic_cmd='/bin/file'
4381    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4382    ;;
4383  sni)
4384    lt_cv_file_magic_cmd='/bin/file'
4385    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4386    lt_cv_file_magic_test_file=/lib/libc.so
4387    ;;
4388  siemens)
4389    lt_cv_deplibs_check_method=pass_all
4390    ;;
4391  pc)
4392    lt_cv_deplibs_check_method=pass_all
4393    ;;
4394  esac
4395  ;;
4396
4397sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4398  lt_cv_deplibs_check_method=pass_all
4399  ;;
4400esac
4401
4402fi
4403{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4404echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4405file_magic_cmd=$lt_cv_file_magic_cmd
4406deplibs_check_method=$lt_cv_deplibs_check_method
4407test -z "$deplibs_check_method" && deplibs_check_method=unknown
4408
4409
4410
4411
4412# If no C compiler was specified, use CC.
4413LTCC=${LTCC-"$CC"}
4414
4415# If no C compiler flags were specified, use CFLAGS.
4416LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4417
4418# Allow CC to be a program name with arguments.
4419compiler=$CC
4420
4421
4422# Check whether --enable-libtool-lock was given.
4423if test "${enable_libtool_lock+set}" = set; then
4424  enableval=$enable_libtool_lock;
4425fi
4426
4427test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4428
4429# Some flags need to be propagated to the compiler or linker for good
4430# libtool support.
4431case $host in
4432ia64-*-hpux*)
4433  # Find out which ABI we are using.
4434  echo 'int i;' > conftest.$ac_ext
4435  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4436  (eval $ac_compile) 2>&5
4437  ac_status=$?
4438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439  (exit $ac_status); }; then
4440    case `/usr/bin/file conftest.$ac_objext` in
4441    *ELF-32*)
4442      HPUX_IA64_MODE="32"
4443      ;;
4444    *ELF-64*)
4445      HPUX_IA64_MODE="64"
4446      ;;
4447    esac
4448  fi
4449  rm -rf conftest*
4450  ;;
4451*-*-irix6*)
4452  # Find out which ABI we are using.
4453  echo '#line 4453 "configure"' > conftest.$ac_ext
4454  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455  (eval $ac_compile) 2>&5
4456  ac_status=$?
4457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458  (exit $ac_status); }; then
4459   if test "$lt_cv_prog_gnu_ld" = yes; then
4460    case `/usr/bin/file conftest.$ac_objext` in
4461    *32-bit*)
4462      LD="${LD-ld} -melf32bsmip"
4463      ;;
4464    *N32*)
4465      LD="${LD-ld} -melf32bmipn32"
4466      ;;
4467    *64-bit*)
4468      LD="${LD-ld} -melf64bmip"
4469      ;;
4470    esac
4471   else
4472    case `/usr/bin/file conftest.$ac_objext` in
4473    *32-bit*)
4474      LD="${LD-ld} -32"
4475      ;;
4476    *N32*)
4477      LD="${LD-ld} -n32"
4478      ;;
4479    *64-bit*)
4480      LD="${LD-ld} -64"
4481      ;;
4482    esac
4483   fi
4484  fi
4485  rm -rf conftest*
4486  ;;
4487
4488x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4489s390*-*linux*|sparc*-*linux*)
4490  # Find out which ABI we are using.
4491  echo 'int i;' > conftest.$ac_ext
4492  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493  (eval $ac_compile) 2>&5
4494  ac_status=$?
4495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496  (exit $ac_status); }; then
4497    case `/usr/bin/file conftest.o` in
4498    *32-bit*)
4499      case $host in
4500        x86_64-*kfreebsd*-gnu)
4501          LD="${LD-ld} -m elf_i386_fbsd"
4502          ;;
4503        x86_64-*linux*)
4504          LD="${LD-ld} -m elf_i386"
4505          ;;
4506        ppc64-*linux*|powerpc64-*linux*)
4507          LD="${LD-ld} -m elf32ppclinux"
4508          ;;
4509        s390x-*linux*)
4510          LD="${LD-ld} -m elf_s390"
4511          ;;
4512        sparc64-*linux*)
4513          LD="${LD-ld} -m elf32_sparc"
4514          ;;
4515      esac
4516      ;;
4517    *64-bit*)
4518      libsuff=64
4519      case $host in
4520        x86_64-*kfreebsd*-gnu)
4521          LD="${LD-ld} -m elf_x86_64_fbsd"
4522          ;;
4523        x86_64-*linux*)
4524          LD="${LD-ld} -m elf_x86_64"
4525          ;;
4526        ppc*-*linux*|powerpc*-*linux*)
4527          LD="${LD-ld} -m elf64ppc"
4528          ;;
4529        s390*-*linux*)
4530          LD="${LD-ld} -m elf64_s390"
4531          ;;
4532        sparc*-*linux*)
4533          LD="${LD-ld} -m elf64_sparc"
4534          ;;
4535      esac
4536      ;;
4537    esac
4538  fi
4539  rm -rf conftest*
4540  ;;
4541
4542*-*-sco3.2v5*)
4543  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4544  SAVE_CFLAGS="$CFLAGS"
4545  CFLAGS="$CFLAGS -belf"
4546  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4547echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4548if test "${lt_cv_cc_needs_belf+set}" = set; then
4549  echo $ECHO_N "(cached) $ECHO_C" >&6
4550else
4551  ac_ext=c
4552ac_cpp='$CPP $CPPFLAGS'
4553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556
4557     cat >conftest.$ac_ext <<_ACEOF
4558/* confdefs.h.  */
4559_ACEOF
4560cat confdefs.h >>conftest.$ac_ext
4561cat >>conftest.$ac_ext <<_ACEOF
4562/* end confdefs.h.  */
4563
4564int
4565main ()
4566{
4567
4568  ;
4569  return 0;
4570}
4571_ACEOF
4572rm -f conftest.$ac_objext conftest$ac_exeext
4573if { (ac_try="$ac_link"
4574case "(($ac_try" in
4575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576  *) ac_try_echo=$ac_try;;
4577esac
4578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579  (eval "$ac_link") 2>conftest.er1
4580  ac_status=$?
4581  grep -v '^ *+' conftest.er1 >conftest.err
4582  rm -f conftest.er1
4583  cat conftest.err >&5
4584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585  (exit $ac_status); } && {
4586	 test -z "$ac_c_werror_flag" ||
4587	 test ! -s conftest.err
4588       } && test -s conftest$ac_exeext &&
4589       $as_test_x conftest$ac_exeext; then
4590  lt_cv_cc_needs_belf=yes
4591else
4592  echo "$as_me: failed program was:" >&5
4593sed 's/^/| /' conftest.$ac_ext >&5
4594
4595	lt_cv_cc_needs_belf=no
4596fi
4597
4598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4599      conftest$ac_exeext conftest.$ac_ext
4600     ac_ext=c
4601ac_cpp='$CPP $CPPFLAGS'
4602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604ac_compiler_gnu=$ac_cv_c_compiler_gnu
4605
4606fi
4607{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4608echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4609  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4610    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4611    CFLAGS="$SAVE_CFLAGS"
4612  fi
4613  ;;
4614sparc*-*solaris*)
4615  # Find out which ABI we are using.
4616  echo 'int i;' > conftest.$ac_ext
4617  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618  (eval $ac_compile) 2>&5
4619  ac_status=$?
4620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621  (exit $ac_status); }; then
4622    case `/usr/bin/file conftest.o` in
4623    *64-bit*)
4624      case $lt_cv_prog_gnu_ld in
4625      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4626      *)    LD="${LD-ld} -64" ;;
4627      esac
4628      ;;
4629    esac
4630  fi
4631  rm -rf conftest*
4632  ;;
4633
4634
4635esac
4636
4637need_locks="$enable_libtool_lock"
4638
4639
4640ac_ext=c
4641ac_cpp='$CPP $CPPFLAGS'
4642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4644ac_compiler_gnu=$ac_cv_c_compiler_gnu
4645{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4646echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4647# On Suns, sometimes $CPP names a directory.
4648if test -n "$CPP" && test -d "$CPP"; then
4649  CPP=
4650fi
4651if test -z "$CPP"; then
4652  if test "${ac_cv_prog_CPP+set}" = set; then
4653  echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655      # Double quotes because CPP needs to be expanded
4656    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4657    do
4658      ac_preproc_ok=false
4659for ac_c_preproc_warn_flag in '' yes
4660do
4661  # Use a header file that comes with gcc, so configuring glibc
4662  # with a fresh cross-compiler works.
4663  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4664  # <limits.h> exists even on freestanding compilers.
4665  # On the NeXT, cc -E runs the code through the compiler's parser,
4666  # not just through cpp. "Syntax error" is here to catch this case.
4667  cat >conftest.$ac_ext <<_ACEOF
4668/* confdefs.h.  */
4669_ACEOF
4670cat confdefs.h >>conftest.$ac_ext
4671cat >>conftest.$ac_ext <<_ACEOF
4672/* end confdefs.h.  */
4673#ifdef __STDC__
4674# include <limits.h>
4675#else
4676# include <assert.h>
4677#endif
4678		     Syntax error
4679_ACEOF
4680if { (ac_try="$ac_cpp conftest.$ac_ext"
4681case "(($ac_try" in
4682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683  *) ac_try_echo=$ac_try;;
4684esac
4685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4687  ac_status=$?
4688  grep -v '^ *+' conftest.er1 >conftest.err
4689  rm -f conftest.er1
4690  cat conftest.err >&5
4691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692  (exit $ac_status); } >/dev/null && {
4693	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4694	 test ! -s conftest.err
4695       }; then
4696  :
4697else
4698  echo "$as_me: failed program was:" >&5
4699sed 's/^/| /' conftest.$ac_ext >&5
4700
4701  # Broken: fails on valid input.
4702continue
4703fi
4704
4705rm -f conftest.err conftest.$ac_ext
4706
4707  # OK, works on sane cases.  Now check whether nonexistent headers
4708  # can be detected and how.
4709  cat >conftest.$ac_ext <<_ACEOF
4710/* confdefs.h.  */
4711_ACEOF
4712cat confdefs.h >>conftest.$ac_ext
4713cat >>conftest.$ac_ext <<_ACEOF
4714/* end confdefs.h.  */
4715#include <ac_nonexistent.h>
4716_ACEOF
4717if { (ac_try="$ac_cpp conftest.$ac_ext"
4718case "(($ac_try" in
4719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720  *) ac_try_echo=$ac_try;;
4721esac
4722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4723  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4724  ac_status=$?
4725  grep -v '^ *+' conftest.er1 >conftest.err
4726  rm -f conftest.er1
4727  cat conftest.err >&5
4728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729  (exit $ac_status); } >/dev/null && {
4730	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4731	 test ! -s conftest.err
4732       }; then
4733  # Broken: success on invalid input.
4734continue
4735else
4736  echo "$as_me: failed program was:" >&5
4737sed 's/^/| /' conftest.$ac_ext >&5
4738
4739  # Passes both tests.
4740ac_preproc_ok=:
4741break
4742fi
4743
4744rm -f conftest.err conftest.$ac_ext
4745
4746done
4747# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4748rm -f conftest.err conftest.$ac_ext
4749if $ac_preproc_ok; then
4750  break
4751fi
4752
4753    done
4754    ac_cv_prog_CPP=$CPP
4755
4756fi
4757  CPP=$ac_cv_prog_CPP
4758else
4759  ac_cv_prog_CPP=$CPP
4760fi
4761{ echo "$as_me:$LINENO: result: $CPP" >&5
4762echo "${ECHO_T}$CPP" >&6; }
4763ac_preproc_ok=false
4764for ac_c_preproc_warn_flag in '' yes
4765do
4766  # Use a header file that comes with gcc, so configuring glibc
4767  # with a fresh cross-compiler works.
4768  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4769  # <limits.h> exists even on freestanding compilers.
4770  # On the NeXT, cc -E runs the code through the compiler's parser,
4771  # not just through cpp. "Syntax error" is here to catch this case.
4772  cat >conftest.$ac_ext <<_ACEOF
4773/* confdefs.h.  */
4774_ACEOF
4775cat confdefs.h >>conftest.$ac_ext
4776cat >>conftest.$ac_ext <<_ACEOF
4777/* end confdefs.h.  */
4778#ifdef __STDC__
4779# include <limits.h>
4780#else
4781# include <assert.h>
4782#endif
4783		     Syntax error
4784_ACEOF
4785if { (ac_try="$ac_cpp conftest.$ac_ext"
4786case "(($ac_try" in
4787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788  *) ac_try_echo=$ac_try;;
4789esac
4790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4791  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4792  ac_status=$?
4793  grep -v '^ *+' conftest.er1 >conftest.err
4794  rm -f conftest.er1
4795  cat conftest.err >&5
4796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797  (exit $ac_status); } >/dev/null && {
4798	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4799	 test ! -s conftest.err
4800       }; then
4801  :
4802else
4803  echo "$as_me: failed program was:" >&5
4804sed 's/^/| /' conftest.$ac_ext >&5
4805
4806  # Broken: fails on valid input.
4807continue
4808fi
4809
4810rm -f conftest.err conftest.$ac_ext
4811
4812  # OK, works on sane cases.  Now check whether nonexistent headers
4813  # can be detected and how.
4814  cat >conftest.$ac_ext <<_ACEOF
4815/* confdefs.h.  */
4816_ACEOF
4817cat confdefs.h >>conftest.$ac_ext
4818cat >>conftest.$ac_ext <<_ACEOF
4819/* end confdefs.h.  */
4820#include <ac_nonexistent.h>
4821_ACEOF
4822if { (ac_try="$ac_cpp conftest.$ac_ext"
4823case "(($ac_try" in
4824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825  *) ac_try_echo=$ac_try;;
4826esac
4827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4828  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4829  ac_status=$?
4830  grep -v '^ *+' conftest.er1 >conftest.err
4831  rm -f conftest.er1
4832  cat conftest.err >&5
4833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834  (exit $ac_status); } >/dev/null && {
4835	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4836	 test ! -s conftest.err
4837       }; then
4838  # Broken: success on invalid input.
4839continue
4840else
4841  echo "$as_me: failed program was:" >&5
4842sed 's/^/| /' conftest.$ac_ext >&5
4843
4844  # Passes both tests.
4845ac_preproc_ok=:
4846break
4847fi
4848
4849rm -f conftest.err conftest.$ac_ext
4850
4851done
4852# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4853rm -f conftest.err conftest.$ac_ext
4854if $ac_preproc_ok; then
4855  :
4856else
4857  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4858See \`config.log' for more details." >&5
4859echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4860See \`config.log' for more details." >&2;}
4861   { (exit 1); exit 1; }; }
4862fi
4863
4864ac_ext=c
4865ac_cpp='$CPP $CPPFLAGS'
4866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868ac_compiler_gnu=$ac_cv_c_compiler_gnu
4869
4870
4871{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4872echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4873if test "${ac_cv_header_stdc+set}" = set; then
4874  echo $ECHO_N "(cached) $ECHO_C" >&6
4875else
4876  cat >conftest.$ac_ext <<_ACEOF
4877/* confdefs.h.  */
4878_ACEOF
4879cat confdefs.h >>conftest.$ac_ext
4880cat >>conftest.$ac_ext <<_ACEOF
4881/* end confdefs.h.  */
4882#include <stdlib.h>
4883#include <stdarg.h>
4884#include <string.h>
4885#include <float.h>
4886
4887int
4888main ()
4889{
4890
4891  ;
4892  return 0;
4893}
4894_ACEOF
4895rm -f conftest.$ac_objext
4896if { (ac_try="$ac_compile"
4897case "(($ac_try" in
4898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899  *) ac_try_echo=$ac_try;;
4900esac
4901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902  (eval "$ac_compile") 2>conftest.er1
4903  ac_status=$?
4904  grep -v '^ *+' conftest.er1 >conftest.err
4905  rm -f conftest.er1
4906  cat conftest.err >&5
4907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908  (exit $ac_status); } && {
4909	 test -z "$ac_c_werror_flag" ||
4910	 test ! -s conftest.err
4911       } && test -s conftest.$ac_objext; then
4912  ac_cv_header_stdc=yes
4913else
4914  echo "$as_me: failed program was:" >&5
4915sed 's/^/| /' conftest.$ac_ext >&5
4916
4917	ac_cv_header_stdc=no
4918fi
4919
4920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921
4922if test $ac_cv_header_stdc = yes; then
4923  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4924  cat >conftest.$ac_ext <<_ACEOF
4925/* confdefs.h.  */
4926_ACEOF
4927cat confdefs.h >>conftest.$ac_ext
4928cat >>conftest.$ac_ext <<_ACEOF
4929/* end confdefs.h.  */
4930#include <string.h>
4931
4932_ACEOF
4933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4934  $EGREP "memchr" >/dev/null 2>&1; then
4935  :
4936else
4937  ac_cv_header_stdc=no
4938fi
4939rm -f conftest*
4940
4941fi
4942
4943if test $ac_cv_header_stdc = yes; then
4944  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4945  cat >conftest.$ac_ext <<_ACEOF
4946/* confdefs.h.  */
4947_ACEOF
4948cat confdefs.h >>conftest.$ac_ext
4949cat >>conftest.$ac_ext <<_ACEOF
4950/* end confdefs.h.  */
4951#include <stdlib.h>
4952
4953_ACEOF
4954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4955  $EGREP "free" >/dev/null 2>&1; then
4956  :
4957else
4958  ac_cv_header_stdc=no
4959fi
4960rm -f conftest*
4961
4962fi
4963
4964if test $ac_cv_header_stdc = yes; then
4965  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4966  if test "$cross_compiling" = yes; then
4967  :
4968else
4969  cat >conftest.$ac_ext <<_ACEOF
4970/* confdefs.h.  */
4971_ACEOF
4972cat confdefs.h >>conftest.$ac_ext
4973cat >>conftest.$ac_ext <<_ACEOF
4974/* end confdefs.h.  */
4975#include <ctype.h>
4976#include <stdlib.h>
4977#if ((' ' & 0x0FF) == 0x020)
4978# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4979# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4980#else
4981# define ISLOWER(c) \
4982		   (('a' <= (c) && (c) <= 'i') \
4983		     || ('j' <= (c) && (c) <= 'r') \
4984		     || ('s' <= (c) && (c) <= 'z'))
4985# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4986#endif
4987
4988#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4989int
4990main ()
4991{
4992  int i;
4993  for (i = 0; i < 256; i++)
4994    if (XOR (islower (i), ISLOWER (i))
4995	|| toupper (i) != TOUPPER (i))
4996      return 2;
4997  return 0;
4998}
4999_ACEOF
5000rm -f conftest$ac_exeext
5001if { (ac_try="$ac_link"
5002case "(($ac_try" in
5003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004  *) ac_try_echo=$ac_try;;
5005esac
5006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007  (eval "$ac_link") 2>&5
5008  ac_status=$?
5009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5011  { (case "(($ac_try" in
5012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013  *) ac_try_echo=$ac_try;;
5014esac
5015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016  (eval "$ac_try") 2>&5
5017  ac_status=$?
5018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019  (exit $ac_status); }; }; then
5020  :
5021else
5022  echo "$as_me: program exited with status $ac_status" >&5
5023echo "$as_me: failed program was:" >&5
5024sed 's/^/| /' conftest.$ac_ext >&5
5025
5026( exit $ac_status )
5027ac_cv_header_stdc=no
5028fi
5029rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5030fi
5031
5032
5033fi
5034fi
5035{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5036echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5037if test $ac_cv_header_stdc = yes; then
5038
5039cat >>confdefs.h <<\_ACEOF
5040#define STDC_HEADERS 1
5041_ACEOF
5042
5043fi
5044
5045# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5056		  inttypes.h stdint.h unistd.h
5057do
5058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5059{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5062  echo $ECHO_N "(cached) $ECHO_C" >&6
5063else
5064  cat >conftest.$ac_ext <<_ACEOF
5065/* confdefs.h.  */
5066_ACEOF
5067cat confdefs.h >>conftest.$ac_ext
5068cat >>conftest.$ac_ext <<_ACEOF
5069/* end confdefs.h.  */
5070$ac_includes_default
5071
5072#include <$ac_header>
5073_ACEOF
5074rm -f conftest.$ac_objext
5075if { (ac_try="$ac_compile"
5076case "(($ac_try" in
5077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078  *) ac_try_echo=$ac_try;;
5079esac
5080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5081  (eval "$ac_compile") 2>conftest.er1
5082  ac_status=$?
5083  grep -v '^ *+' conftest.er1 >conftest.err
5084  rm -f conftest.er1
5085  cat conftest.err >&5
5086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087  (exit $ac_status); } && {
5088	 test -z "$ac_c_werror_flag" ||
5089	 test ! -s conftest.err
5090       } && test -s conftest.$ac_objext; then
5091  eval "$as_ac_Header=yes"
5092else
5093  echo "$as_me: failed program was:" >&5
5094sed 's/^/| /' conftest.$ac_ext >&5
5095
5096	eval "$as_ac_Header=no"
5097fi
5098
5099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100fi
5101ac_res=`eval echo '${'$as_ac_Header'}'`
5102	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5103echo "${ECHO_T}$ac_res" >&6; }
5104if test `eval echo '${'$as_ac_Header'}'` = yes; then
5105  cat >>confdefs.h <<_ACEOF
5106#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5107_ACEOF
5108
5109fi
5110
5111done
5112
5113
5114
5115for ac_header in dlfcn.h
5116do
5117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5119  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5122  echo $ECHO_N "(cached) $ECHO_C" >&6
5123fi
5124ac_res=`eval echo '${'$as_ac_Header'}'`
5125	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5126echo "${ECHO_T}$ac_res" >&6; }
5127else
5128  # Is the header compilable?
5129{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5130echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5131cat >conftest.$ac_ext <<_ACEOF
5132/* confdefs.h.  */
5133_ACEOF
5134cat confdefs.h >>conftest.$ac_ext
5135cat >>conftest.$ac_ext <<_ACEOF
5136/* end confdefs.h.  */
5137$ac_includes_default
5138#include <$ac_header>
5139_ACEOF
5140rm -f conftest.$ac_objext
5141if { (ac_try="$ac_compile"
5142case "(($ac_try" in
5143  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144  *) ac_try_echo=$ac_try;;
5145esac
5146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5147  (eval "$ac_compile") 2>conftest.er1
5148  ac_status=$?
5149  grep -v '^ *+' conftest.er1 >conftest.err
5150  rm -f conftest.er1
5151  cat conftest.err >&5
5152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153  (exit $ac_status); } && {
5154	 test -z "$ac_c_werror_flag" ||
5155	 test ! -s conftest.err
5156       } && test -s conftest.$ac_objext; then
5157  ac_header_compiler=yes
5158else
5159  echo "$as_me: failed program was:" >&5
5160sed 's/^/| /' conftest.$ac_ext >&5
5161
5162	ac_header_compiler=no
5163fi
5164
5165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5167echo "${ECHO_T}$ac_header_compiler" >&6; }
5168
5169# Is the header present?
5170{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5171echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5172cat >conftest.$ac_ext <<_ACEOF
5173/* confdefs.h.  */
5174_ACEOF
5175cat confdefs.h >>conftest.$ac_ext
5176cat >>conftest.$ac_ext <<_ACEOF
5177/* end confdefs.h.  */
5178#include <$ac_header>
5179_ACEOF
5180if { (ac_try="$ac_cpp conftest.$ac_ext"
5181case "(($ac_try" in
5182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183  *) ac_try_echo=$ac_try;;
5184esac
5185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5187  ac_status=$?
5188  grep -v '^ *+' conftest.er1 >conftest.err
5189  rm -f conftest.er1
5190  cat conftest.err >&5
5191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192  (exit $ac_status); } >/dev/null && {
5193	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5194	 test ! -s conftest.err
5195       }; then
5196  ac_header_preproc=yes
5197else
5198  echo "$as_me: failed program was:" >&5
5199sed 's/^/| /' conftest.$ac_ext >&5
5200
5201  ac_header_preproc=no
5202fi
5203
5204rm -f conftest.err conftest.$ac_ext
5205{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5206echo "${ECHO_T}$ac_header_preproc" >&6; }
5207
5208# So?  What about this header?
5209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5210  yes:no: )
5211    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5213    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5215    ac_header_preproc=yes
5216    ;;
5217  no:yes:* )
5218    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5220    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5221echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5222    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5224    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5225echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5226    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5228    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5230
5231    ;;
5232esac
5233{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5236  echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238  eval "$as_ac_Header=\$ac_header_preproc"
5239fi
5240ac_res=`eval echo '${'$as_ac_Header'}'`
5241	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5242echo "${ECHO_T}$ac_res" >&6; }
5243
5244fi
5245if test `eval echo '${'$as_ac_Header'}'` = yes; then
5246  cat >>confdefs.h <<_ACEOF
5247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5248_ACEOF
5249
5250fi
5251
5252done
5253
5254ac_ext=cpp
5255ac_cpp='$CXXCPP $CPPFLAGS'
5256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5259if test -z "$CXX"; then
5260  if test -n "$CCC"; then
5261    CXX=$CCC
5262  else
5263    if test -n "$ac_tool_prefix"; then
5264  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5265  do
5266    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5270if test "${ac_cv_prog_CXX+set}" = set; then
5271  echo $ECHO_N "(cached) $ECHO_C" >&6
5272else
5273  if test -n "$CXX"; then
5274  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5275else
5276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH
5278do
5279  IFS=$as_save_IFS
5280  test -z "$as_dir" && as_dir=.
5281  for ac_exec_ext in '' $ac_executable_extensions; do
5282  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5284    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285    break 2
5286  fi
5287done
5288done
5289IFS=$as_save_IFS
5290
5291fi
5292fi
5293CXX=$ac_cv_prog_CXX
5294if test -n "$CXX"; then
5295  { echo "$as_me:$LINENO: result: $CXX" >&5
5296echo "${ECHO_T}$CXX" >&6; }
5297else
5298  { echo "$as_me:$LINENO: result: no" >&5
5299echo "${ECHO_T}no" >&6; }
5300fi
5301
5302
5303    test -n "$CXX" && break
5304  done
5305fi
5306if test -z "$CXX"; then
5307  ac_ct_CXX=$CXX
5308  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5309do
5310  # Extract the first word of "$ac_prog", so it can be a program name with args.
5311set dummy $ac_prog; ac_word=$2
5312{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5314if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5315  echo $ECHO_N "(cached) $ECHO_C" >&6
5316else
5317  if test -n "$ac_ct_CXX"; then
5318  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5319else
5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH
5322do
5323  IFS=$as_save_IFS
5324  test -z "$as_dir" && as_dir=.
5325  for ac_exec_ext in '' $ac_executable_extensions; do
5326  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327    ac_cv_prog_ac_ct_CXX="$ac_prog"
5328    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329    break 2
5330  fi
5331done
5332done
5333IFS=$as_save_IFS
5334
5335fi
5336fi
5337ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5338if test -n "$ac_ct_CXX"; then
5339  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5340echo "${ECHO_T}$ac_ct_CXX" >&6; }
5341else
5342  { echo "$as_me:$LINENO: result: no" >&5
5343echo "${ECHO_T}no" >&6; }
5344fi
5345
5346
5347  test -n "$ac_ct_CXX" && break
5348done
5349
5350  if test "x$ac_ct_CXX" = x; then
5351    CXX="g++"
5352  else
5353    case $cross_compiling:$ac_tool_warned in
5354yes:)
5355{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5356whose name does not start with the host triplet.  If you think this
5357configuration is useful to you, please write to autoconf@gnu.org." >&5
5358echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5359whose name does not start with the host triplet.  If you think this
5360configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5361ac_tool_warned=yes ;;
5362esac
5363    CXX=$ac_ct_CXX
5364  fi
5365fi
5366
5367  fi
5368fi
5369# Provide some information about the compiler.
5370echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5371ac_compiler=`set X $ac_compile; echo $2`
5372{ (ac_try="$ac_compiler --version >&5"
5373case "(($ac_try" in
5374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375  *) ac_try_echo=$ac_try;;
5376esac
5377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378  (eval "$ac_compiler --version >&5") 2>&5
5379  ac_status=$?
5380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381  (exit $ac_status); }
5382{ (ac_try="$ac_compiler -v >&5"
5383case "(($ac_try" in
5384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385  *) ac_try_echo=$ac_try;;
5386esac
5387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388  (eval "$ac_compiler -v >&5") 2>&5
5389  ac_status=$?
5390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391  (exit $ac_status); }
5392{ (ac_try="$ac_compiler -V >&5"
5393case "(($ac_try" in
5394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395  *) ac_try_echo=$ac_try;;
5396esac
5397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398  (eval "$ac_compiler -V >&5") 2>&5
5399  ac_status=$?
5400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401  (exit $ac_status); }
5402
5403{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5404echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5405if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5406  echo $ECHO_N "(cached) $ECHO_C" >&6
5407else
5408  cat >conftest.$ac_ext <<_ACEOF
5409/* confdefs.h.  */
5410_ACEOF
5411cat confdefs.h >>conftest.$ac_ext
5412cat >>conftest.$ac_ext <<_ACEOF
5413/* end confdefs.h.  */
5414
5415int
5416main ()
5417{
5418#ifndef __GNUC__
5419       choke me
5420#endif
5421
5422  ;
5423  return 0;
5424}
5425_ACEOF
5426rm -f conftest.$ac_objext
5427if { (ac_try="$ac_compile"
5428case "(($ac_try" in
5429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430  *) ac_try_echo=$ac_try;;
5431esac
5432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433  (eval "$ac_compile") 2>conftest.er1
5434  ac_status=$?
5435  grep -v '^ *+' conftest.er1 >conftest.err
5436  rm -f conftest.er1
5437  cat conftest.err >&5
5438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439  (exit $ac_status); } && {
5440	 test -z "$ac_cxx_werror_flag" ||
5441	 test ! -s conftest.err
5442       } && test -s conftest.$ac_objext; then
5443  ac_compiler_gnu=yes
5444else
5445  echo "$as_me: failed program was:" >&5
5446sed 's/^/| /' conftest.$ac_ext >&5
5447
5448	ac_compiler_gnu=no
5449fi
5450
5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5453
5454fi
5455{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5456echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5457GXX=`test $ac_compiler_gnu = yes && echo yes`
5458ac_test_CXXFLAGS=${CXXFLAGS+set}
5459ac_save_CXXFLAGS=$CXXFLAGS
5460{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5461echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5462if test "${ac_cv_prog_cxx_g+set}" = set; then
5463  echo $ECHO_N "(cached) $ECHO_C" >&6
5464else
5465  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5466   ac_cxx_werror_flag=yes
5467   ac_cv_prog_cxx_g=no
5468   CXXFLAGS="-g"
5469   cat >conftest.$ac_ext <<_ACEOF
5470/* confdefs.h.  */
5471_ACEOF
5472cat confdefs.h >>conftest.$ac_ext
5473cat >>conftest.$ac_ext <<_ACEOF
5474/* end confdefs.h.  */
5475
5476int
5477main ()
5478{
5479
5480  ;
5481  return 0;
5482}
5483_ACEOF
5484rm -f conftest.$ac_objext
5485if { (ac_try="$ac_compile"
5486case "(($ac_try" in
5487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488  *) ac_try_echo=$ac_try;;
5489esac
5490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491  (eval "$ac_compile") 2>conftest.er1
5492  ac_status=$?
5493  grep -v '^ *+' conftest.er1 >conftest.err
5494  rm -f conftest.er1
5495  cat conftest.err >&5
5496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497  (exit $ac_status); } && {
5498	 test -z "$ac_cxx_werror_flag" ||
5499	 test ! -s conftest.err
5500       } && test -s conftest.$ac_objext; then
5501  ac_cv_prog_cxx_g=yes
5502else
5503  echo "$as_me: failed program was:" >&5
5504sed 's/^/| /' conftest.$ac_ext >&5
5505
5506	CXXFLAGS=""
5507      cat >conftest.$ac_ext <<_ACEOF
5508/* confdefs.h.  */
5509_ACEOF
5510cat confdefs.h >>conftest.$ac_ext
5511cat >>conftest.$ac_ext <<_ACEOF
5512/* end confdefs.h.  */
5513
5514int
5515main ()
5516{
5517
5518  ;
5519  return 0;
5520}
5521_ACEOF
5522rm -f conftest.$ac_objext
5523if { (ac_try="$ac_compile"
5524case "(($ac_try" in
5525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526  *) ac_try_echo=$ac_try;;
5527esac
5528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529  (eval "$ac_compile") 2>conftest.er1
5530  ac_status=$?
5531  grep -v '^ *+' conftest.er1 >conftest.err
5532  rm -f conftest.er1
5533  cat conftest.err >&5
5534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535  (exit $ac_status); } && {
5536	 test -z "$ac_cxx_werror_flag" ||
5537	 test ! -s conftest.err
5538       } && test -s conftest.$ac_objext; then
5539  :
5540else
5541  echo "$as_me: failed program was:" >&5
5542sed 's/^/| /' conftest.$ac_ext >&5
5543
5544	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5545	 CXXFLAGS="-g"
5546	 cat >conftest.$ac_ext <<_ACEOF
5547/* confdefs.h.  */
5548_ACEOF
5549cat confdefs.h >>conftest.$ac_ext
5550cat >>conftest.$ac_ext <<_ACEOF
5551/* end confdefs.h.  */
5552
5553int
5554main ()
5555{
5556
5557  ;
5558  return 0;
5559}
5560_ACEOF
5561rm -f conftest.$ac_objext
5562if { (ac_try="$ac_compile"
5563case "(($ac_try" in
5564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565  *) ac_try_echo=$ac_try;;
5566esac
5567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568  (eval "$ac_compile") 2>conftest.er1
5569  ac_status=$?
5570  grep -v '^ *+' conftest.er1 >conftest.err
5571  rm -f conftest.er1
5572  cat conftest.err >&5
5573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574  (exit $ac_status); } && {
5575	 test -z "$ac_cxx_werror_flag" ||
5576	 test ! -s conftest.err
5577       } && test -s conftest.$ac_objext; then
5578  ac_cv_prog_cxx_g=yes
5579else
5580  echo "$as_me: failed program was:" >&5
5581sed 's/^/| /' conftest.$ac_ext >&5
5582
5583
5584fi
5585
5586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587fi
5588
5589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590fi
5591
5592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5594fi
5595{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5596echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5597if test "$ac_test_CXXFLAGS" = set; then
5598  CXXFLAGS=$ac_save_CXXFLAGS
5599elif test $ac_cv_prog_cxx_g = yes; then
5600  if test "$GXX" = yes; then
5601    CXXFLAGS="-g -O2"
5602  else
5603    CXXFLAGS="-g"
5604  fi
5605else
5606  if test "$GXX" = yes; then
5607    CXXFLAGS="-O2"
5608  else
5609    CXXFLAGS=
5610  fi
5611fi
5612ac_ext=cpp
5613ac_cpp='$CXXCPP $CPPFLAGS'
5614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5617
5618depcc="$CXX"  am_compiler_list=
5619
5620{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5621echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5622if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5623  echo $ECHO_N "(cached) $ECHO_C" >&6
5624else
5625  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5626  # We make a subdir and do the tests there.  Otherwise we can end up
5627  # making bogus files that we don't know about and never remove.  For
5628  # instance it was reported that on HP-UX the gcc test will end up
5629  # making a dummy file named `D' -- because `-MD' means `put the output
5630  # in D'.
5631  mkdir conftest.dir
5632  # Copy depcomp to subdir because otherwise we won't find it if we're
5633  # using a relative directory.
5634  cp "$am_depcomp" conftest.dir
5635  cd conftest.dir
5636  # We will build objects and dependencies in a subdirectory because
5637  # it helps to detect inapplicable dependency modes.  For instance
5638  # both Tru64's cc and ICC support -MD to output dependencies as a
5639  # side effect of compilation, but ICC will put the dependencies in
5640  # the current directory while Tru64 will put them in the object
5641  # directory.
5642  mkdir sub
5643
5644  am_cv_CXX_dependencies_compiler_type=none
5645  if test "$am_compiler_list" = ""; then
5646     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5647  fi
5648  for depmode in $am_compiler_list; do
5649    # Setup a source with many dependencies, because some compilers
5650    # like to wrap large dependency lists on column 80 (with \), and
5651    # we should not choose a depcomp mode which is confused by this.
5652    #
5653    # We need to recreate these files for each test, as the compiler may
5654    # overwrite some of them when testing with obscure command lines.
5655    # This happens at least with the AIX C compiler.
5656    : > sub/conftest.c
5657    for i in 1 2 3 4 5 6; do
5658      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5659      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5660      # Solaris 8's {/usr,}/bin/sh.
5661      touch sub/conftst$i.h
5662    done
5663    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5664
5665    case $depmode in
5666    nosideeffect)
5667      # after this tag, mechanisms are not by side-effect, so they'll
5668      # only be used when explicitly requested
5669      if test "x$enable_dependency_tracking" = xyes; then
5670	continue
5671      else
5672	break
5673      fi
5674      ;;
5675    none) break ;;
5676    esac
5677    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5678    # mode.  It turns out that the SunPro C++ compiler does not properly
5679    # handle `-M -o', and we need to detect this.
5680    if depmode=$depmode \
5681       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5682       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5683       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5684         >/dev/null 2>conftest.err &&
5685       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5686       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5687       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5688       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5689      # icc doesn't choke on unknown options, it will just issue warnings
5690      # or remarks (even with -Werror).  So we grep stderr for any message
5691      # that says an option was ignored or not supported.
5692      # When given -MP, icc 7.0 and 7.1 complain thusly:
5693      #   icc: Command line warning: ignoring option '-M'; no argument required
5694      # The diagnosis changed in icc 8.0:
5695      #   icc: Command line remark: option '-MP' not supported
5696      if (grep 'ignoring option' conftest.err ||
5697          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5698        am_cv_CXX_dependencies_compiler_type=$depmode
5699        break
5700      fi
5701    fi
5702  done
5703
5704  cd ..
5705  rm -rf conftest.dir
5706else
5707  am_cv_CXX_dependencies_compiler_type=none
5708fi
5709
5710fi
5711{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5712echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5713CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5714
5715 if
5716  test "x$enable_dependency_tracking" != xno \
5717  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5718  am__fastdepCXX_TRUE=
5719  am__fastdepCXX_FALSE='#'
5720else
5721  am__fastdepCXX_TRUE='#'
5722  am__fastdepCXX_FALSE=
5723fi
5724
5725
5726
5727
5728if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5729    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5730    (test "X$CXX" != "Xg++"))) ; then
5731  ac_ext=cpp
5732ac_cpp='$CXXCPP $CPPFLAGS'
5733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5736{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5737echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5738if test -z "$CXXCPP"; then
5739  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5740  echo $ECHO_N "(cached) $ECHO_C" >&6
5741else
5742      # Double quotes because CXXCPP needs to be expanded
5743    for CXXCPP in "$CXX -E" "/lib/cpp"
5744    do
5745      ac_preproc_ok=false
5746for ac_cxx_preproc_warn_flag in '' yes
5747do
5748  # Use a header file that comes with gcc, so configuring glibc
5749  # with a fresh cross-compiler works.
5750  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5751  # <limits.h> exists even on freestanding compilers.
5752  # On the NeXT, cc -E runs the code through the compiler's parser,
5753  # not just through cpp. "Syntax error" is here to catch this case.
5754  cat >conftest.$ac_ext <<_ACEOF
5755/* confdefs.h.  */
5756_ACEOF
5757cat confdefs.h >>conftest.$ac_ext
5758cat >>conftest.$ac_ext <<_ACEOF
5759/* end confdefs.h.  */
5760#ifdef __STDC__
5761# include <limits.h>
5762#else
5763# include <assert.h>
5764#endif
5765		     Syntax error
5766_ACEOF
5767if { (ac_try="$ac_cpp conftest.$ac_ext"
5768case "(($ac_try" in
5769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770  *) ac_try_echo=$ac_try;;
5771esac
5772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5773  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5774  ac_status=$?
5775  grep -v '^ *+' conftest.er1 >conftest.err
5776  rm -f conftest.er1
5777  cat conftest.err >&5
5778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779  (exit $ac_status); } >/dev/null && {
5780	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5781	 test ! -s conftest.err
5782       }; then
5783  :
5784else
5785  echo "$as_me: failed program was:" >&5
5786sed 's/^/| /' conftest.$ac_ext >&5
5787
5788  # Broken: fails on valid input.
5789continue
5790fi
5791
5792rm -f conftest.err conftest.$ac_ext
5793
5794  # OK, works on sane cases.  Now check whether nonexistent headers
5795  # can be detected and how.
5796  cat >conftest.$ac_ext <<_ACEOF
5797/* confdefs.h.  */
5798_ACEOF
5799cat confdefs.h >>conftest.$ac_ext
5800cat >>conftest.$ac_ext <<_ACEOF
5801/* end confdefs.h.  */
5802#include <ac_nonexistent.h>
5803_ACEOF
5804if { (ac_try="$ac_cpp conftest.$ac_ext"
5805case "(($ac_try" in
5806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807  *) ac_try_echo=$ac_try;;
5808esac
5809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5811  ac_status=$?
5812  grep -v '^ *+' conftest.er1 >conftest.err
5813  rm -f conftest.er1
5814  cat conftest.err >&5
5815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816  (exit $ac_status); } >/dev/null && {
5817	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5818	 test ! -s conftest.err
5819       }; then
5820  # Broken: success on invalid input.
5821continue
5822else
5823  echo "$as_me: failed program was:" >&5
5824sed 's/^/| /' conftest.$ac_ext >&5
5825
5826  # Passes both tests.
5827ac_preproc_ok=:
5828break
5829fi
5830
5831rm -f conftest.err conftest.$ac_ext
5832
5833done
5834# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5835rm -f conftest.err conftest.$ac_ext
5836if $ac_preproc_ok; then
5837  break
5838fi
5839
5840    done
5841    ac_cv_prog_CXXCPP=$CXXCPP
5842
5843fi
5844  CXXCPP=$ac_cv_prog_CXXCPP
5845else
5846  ac_cv_prog_CXXCPP=$CXXCPP
5847fi
5848{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5849echo "${ECHO_T}$CXXCPP" >&6; }
5850ac_preproc_ok=false
5851for ac_cxx_preproc_warn_flag in '' yes
5852do
5853  # Use a header file that comes with gcc, so configuring glibc
5854  # with a fresh cross-compiler works.
5855  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5856  # <limits.h> exists even on freestanding compilers.
5857  # On the NeXT, cc -E runs the code through the compiler's parser,
5858  # not just through cpp. "Syntax error" is here to catch this case.
5859  cat >conftest.$ac_ext <<_ACEOF
5860/* confdefs.h.  */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h.  */
5865#ifdef __STDC__
5866# include <limits.h>
5867#else
5868# include <assert.h>
5869#endif
5870		     Syntax error
5871_ACEOF
5872if { (ac_try="$ac_cpp conftest.$ac_ext"
5873case "(($ac_try" in
5874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875  *) ac_try_echo=$ac_try;;
5876esac
5877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5879  ac_status=$?
5880  grep -v '^ *+' conftest.er1 >conftest.err
5881  rm -f conftest.er1
5882  cat conftest.err >&5
5883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884  (exit $ac_status); } >/dev/null && {
5885	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5886	 test ! -s conftest.err
5887       }; then
5888  :
5889else
5890  echo "$as_me: failed program was:" >&5
5891sed 's/^/| /' conftest.$ac_ext >&5
5892
5893  # Broken: fails on valid input.
5894continue
5895fi
5896
5897rm -f conftest.err conftest.$ac_ext
5898
5899  # OK, works on sane cases.  Now check whether nonexistent headers
5900  # can be detected and how.
5901  cat >conftest.$ac_ext <<_ACEOF
5902/* confdefs.h.  */
5903_ACEOF
5904cat confdefs.h >>conftest.$ac_ext
5905cat >>conftest.$ac_ext <<_ACEOF
5906/* end confdefs.h.  */
5907#include <ac_nonexistent.h>
5908_ACEOF
5909if { (ac_try="$ac_cpp conftest.$ac_ext"
5910case "(($ac_try" in
5911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912  *) ac_try_echo=$ac_try;;
5913esac
5914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5916  ac_status=$?
5917  grep -v '^ *+' conftest.er1 >conftest.err
5918  rm -f conftest.er1
5919  cat conftest.err >&5
5920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921  (exit $ac_status); } >/dev/null && {
5922	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5923	 test ! -s conftest.err
5924       }; then
5925  # Broken: success on invalid input.
5926continue
5927else
5928  echo "$as_me: failed program was:" >&5
5929sed 's/^/| /' conftest.$ac_ext >&5
5930
5931  # Passes both tests.
5932ac_preproc_ok=:
5933break
5934fi
5935
5936rm -f conftest.err conftest.$ac_ext
5937
5938done
5939# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5940rm -f conftest.err conftest.$ac_ext
5941if $ac_preproc_ok; then
5942  :
5943else
5944  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5945See \`config.log' for more details." >&5
5946echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5947See \`config.log' for more details." >&2;}
5948   { (exit 1); exit 1; }; }
5949fi
5950
5951ac_ext=cpp
5952ac_cpp='$CXXCPP $CPPFLAGS'
5953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5956
5957fi
5958
5959
5960ac_ext=f
5961ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5962ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5964if test -n "$ac_tool_prefix"; then
5965  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
5966  do
5967    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5968set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5969{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5971if test "${ac_cv_prog_F77+set}" = set; then
5972  echo $ECHO_N "(cached) $ECHO_C" >&6
5973else
5974  if test -n "$F77"; then
5975  ac_cv_prog_F77="$F77" # Let the user override the test.
5976else
5977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978for as_dir in $PATH
5979do
5980  IFS=$as_save_IFS
5981  test -z "$as_dir" && as_dir=.
5982  for ac_exec_ext in '' $ac_executable_extensions; do
5983  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5985    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5986    break 2
5987  fi
5988done
5989done
5990IFS=$as_save_IFS
5991
5992fi
5993fi
5994F77=$ac_cv_prog_F77
5995if test -n "$F77"; then
5996  { echo "$as_me:$LINENO: result: $F77" >&5
5997echo "${ECHO_T}$F77" >&6; }
5998else
5999  { echo "$as_me:$LINENO: result: no" >&5
6000echo "${ECHO_T}no" >&6; }
6001fi
6002
6003
6004    test -n "$F77" && break
6005  done
6006fi
6007if test -z "$F77"; then
6008  ac_ct_F77=$F77
6009  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
6010do
6011  # Extract the first word of "$ac_prog", so it can be a program name with args.
6012set dummy $ac_prog; ac_word=$2
6013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6015if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6016  echo $ECHO_N "(cached) $ECHO_C" >&6
6017else
6018  if test -n "$ac_ct_F77"; then
6019  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6020else
6021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022for as_dir in $PATH
6023do
6024  IFS=$as_save_IFS
6025  test -z "$as_dir" && as_dir=.
6026  for ac_exec_ext in '' $ac_executable_extensions; do
6027  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028    ac_cv_prog_ac_ct_F77="$ac_prog"
6029    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6030    break 2
6031  fi
6032done
6033done
6034IFS=$as_save_IFS
6035
6036fi
6037fi
6038ac_ct_F77=$ac_cv_prog_ac_ct_F77
6039if test -n "$ac_ct_F77"; then
6040  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6041echo "${ECHO_T}$ac_ct_F77" >&6; }
6042else
6043  { echo "$as_me:$LINENO: result: no" >&5
6044echo "${ECHO_T}no" >&6; }
6045fi
6046
6047
6048  test -n "$ac_ct_F77" && break
6049done
6050
6051  if test "x$ac_ct_F77" = x; then
6052    F77=""
6053  else
6054    case $cross_compiling:$ac_tool_warned in
6055yes:)
6056{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6057whose name does not start with the host triplet.  If you think this
6058configuration is useful to you, please write to autoconf@gnu.org." >&5
6059echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6060whose name does not start with the host triplet.  If you think this
6061configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6062ac_tool_warned=yes ;;
6063esac
6064    F77=$ac_ct_F77
6065  fi
6066fi
6067
6068
6069# Provide some information about the compiler.
6070echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6071ac_compiler=`set X $ac_compile; echo $2`
6072{ (ac_try="$ac_compiler --version >&5"
6073case "(($ac_try" in
6074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075  *) ac_try_echo=$ac_try;;
6076esac
6077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078  (eval "$ac_compiler --version >&5") 2>&5
6079  ac_status=$?
6080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081  (exit $ac_status); }
6082{ (ac_try="$ac_compiler -v >&5"
6083case "(($ac_try" in
6084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085  *) ac_try_echo=$ac_try;;
6086esac
6087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088  (eval "$ac_compiler -v >&5") 2>&5
6089  ac_status=$?
6090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091  (exit $ac_status); }
6092{ (ac_try="$ac_compiler -V >&5"
6093case "(($ac_try" in
6094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095  *) ac_try_echo=$ac_try;;
6096esac
6097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098  (eval "$ac_compiler -V >&5") 2>&5
6099  ac_status=$?
6100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101  (exit $ac_status); }
6102rm -f a.out
6103
6104# If we don't use `.F' as extension, the preprocessor is not run on the
6105# input file.  (Note that this only needs to work for GNU compilers.)
6106ac_save_ext=$ac_ext
6107ac_ext=F
6108{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6109echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6110if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6111  echo $ECHO_N "(cached) $ECHO_C" >&6
6112else
6113  cat >conftest.$ac_ext <<_ACEOF
6114      program main
6115#ifndef __GNUC__
6116       choke me
6117#endif
6118
6119      end
6120_ACEOF
6121rm -f conftest.$ac_objext
6122if { (ac_try="$ac_compile"
6123case "(($ac_try" in
6124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125  *) ac_try_echo=$ac_try;;
6126esac
6127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128  (eval "$ac_compile") 2>conftest.er1
6129  ac_status=$?
6130  grep -v '^ *+' conftest.er1 >conftest.err
6131  rm -f conftest.er1
6132  cat conftest.err >&5
6133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134  (exit $ac_status); } && {
6135	 test -z "$ac_f77_werror_flag" ||
6136	 test ! -s conftest.err
6137       } && test -s conftest.$ac_objext; then
6138  ac_compiler_gnu=yes
6139else
6140  echo "$as_me: failed program was:" >&5
6141sed 's/^/| /' conftest.$ac_ext >&5
6142
6143	ac_compiler_gnu=no
6144fi
6145
6146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6148
6149fi
6150{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6151echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6152ac_ext=$ac_save_ext
6153ac_test_FFLAGS=${FFLAGS+set}
6154ac_save_FFLAGS=$FFLAGS
6155FFLAGS=
6156{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6157echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6158if test "${ac_cv_prog_f77_g+set}" = set; then
6159  echo $ECHO_N "(cached) $ECHO_C" >&6
6160else
6161  FFLAGS=-g
6162cat >conftest.$ac_ext <<_ACEOF
6163      program main
6164
6165      end
6166_ACEOF
6167rm -f conftest.$ac_objext
6168if { (ac_try="$ac_compile"
6169case "(($ac_try" in
6170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171  *) ac_try_echo=$ac_try;;
6172esac
6173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174  (eval "$ac_compile") 2>conftest.er1
6175  ac_status=$?
6176  grep -v '^ *+' conftest.er1 >conftest.err
6177  rm -f conftest.er1
6178  cat conftest.err >&5
6179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180  (exit $ac_status); } && {
6181	 test -z "$ac_f77_werror_flag" ||
6182	 test ! -s conftest.err
6183       } && test -s conftest.$ac_objext; then
6184  ac_cv_prog_f77_g=yes
6185else
6186  echo "$as_me: failed program was:" >&5
6187sed 's/^/| /' conftest.$ac_ext >&5
6188
6189	ac_cv_prog_f77_g=no
6190fi
6191
6192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6193
6194fi
6195{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6196echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6197if test "$ac_test_FFLAGS" = set; then
6198  FFLAGS=$ac_save_FFLAGS
6199elif test $ac_cv_prog_f77_g = yes; then
6200  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6201    FFLAGS="-g -O2"
6202  else
6203    FFLAGS="-g"
6204  fi
6205else
6206  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6207    FFLAGS="-O2"
6208  else
6209    FFLAGS=
6210  fi
6211fi
6212
6213G77=`test $ac_compiler_gnu = yes && echo yes`
6214ac_ext=c
6215ac_cpp='$CPP $CPPFLAGS'
6216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6218ac_compiler_gnu=$ac_cv_c_compiler_gnu
6219
6220
6221
6222# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6223
6224# find the maximum length of command line arguments
6225{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6226echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6227if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6228  echo $ECHO_N "(cached) $ECHO_C" >&6
6229else
6230    i=0
6231  teststring="ABCD"
6232
6233  case $build_os in
6234  msdosdjgpp*)
6235    # On DJGPP, this test can blow up pretty badly due to problems in libc
6236    # (any single argument exceeding 2000 bytes causes a buffer overrun
6237    # during glob expansion).  Even if it were fixed, the result of this
6238    # check would be larger than it should be.
6239    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6240    ;;
6241
6242  gnu*)
6243    # Under GNU Hurd, this test is not required because there is
6244    # no limit to the length of command line arguments.
6245    # Libtool will interpret -1 as no limit whatsoever
6246    lt_cv_sys_max_cmd_len=-1;
6247    ;;
6248
6249  cygwin* | mingw*)
6250    # On Win9x/ME, this test blows up -- it succeeds, but takes
6251    # about 5 minutes as the teststring grows exponentially.
6252    # Worse, since 9x/ME are not pre-emptively multitasking,
6253    # you end up with a "frozen" computer, even though with patience
6254    # the test eventually succeeds (with a max line length of 256k).
6255    # Instead, let's just punt: use the minimum linelength reported by
6256    # all of the supported platforms: 8192 (on NT/2K/XP).
6257    lt_cv_sys_max_cmd_len=8192;
6258    ;;
6259
6260  amigaos*)
6261    # On AmigaOS with pdksh, this test takes hours, literally.
6262    # So we just punt and use a minimum line length of 8192.
6263    lt_cv_sys_max_cmd_len=8192;
6264    ;;
6265
6266  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6267    # This has been around since 386BSD, at least.  Likely further.
6268    if test -x /sbin/sysctl; then
6269      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6270    elif test -x /usr/sbin/sysctl; then
6271      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6272    else
6273      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6274    fi
6275    # And add a safety zone
6276    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6277    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6278    ;;
6279
6280  interix*)
6281    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6282    lt_cv_sys_max_cmd_len=196608
6283    ;;
6284
6285  osf*)
6286    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6287    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6288    # nice to cause kernel panics so lets avoid the loop below.
6289    # First set a reasonable default.
6290    lt_cv_sys_max_cmd_len=16384
6291    #
6292    if test -x /sbin/sysconfig; then
6293      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6294        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6295      esac
6296    fi
6297    ;;
6298  sco3.2v5*)
6299    lt_cv_sys_max_cmd_len=102400
6300    ;;
6301  sysv5* | sco5v6* | sysv4.2uw2*)
6302    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6303    if test -n "$kargmax"; then
6304      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6305    else
6306      lt_cv_sys_max_cmd_len=32768
6307    fi
6308    ;;
6309  *)
6310    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6311    if test -n "$lt_cv_sys_max_cmd_len"; then
6312      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6313      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6314    else
6315      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6316      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6317	       = "XX$teststring") >/dev/null 2>&1 &&
6318	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6319	      lt_cv_sys_max_cmd_len=$new_result &&
6320	      test $i != 17 # 1/2 MB should be enough
6321      do
6322        i=`expr $i + 1`
6323        teststring=$teststring$teststring
6324      done
6325      teststring=
6326      # Add a significant safety factor because C++ compilers can tack on massive
6327      # amounts of additional arguments before passing them to the linker.
6328      # It appears as though 1/2 is a usable value.
6329      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6330    fi
6331    ;;
6332  esac
6333
6334fi
6335
6336if test -n $lt_cv_sys_max_cmd_len ; then
6337  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6338echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6339else
6340  { echo "$as_me:$LINENO: result: none" >&5
6341echo "${ECHO_T}none" >&6; }
6342fi
6343
6344
6345
6346
6347
6348# Check for command to grab the raw symbol name followed by C symbol from nm.
6349{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6350echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6351if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6352  echo $ECHO_N "(cached) $ECHO_C" >&6
6353else
6354
6355# These are sane defaults that work on at least a few old systems.
6356# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6357
6358# Character class describing NM global symbol codes.
6359symcode='[BCDEGRST]'
6360
6361# Regexp to match symbols that can be accessed directly from C.
6362sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6363
6364# Transform an extracted symbol line into a proper C declaration
6365lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6366
6367# Transform an extracted symbol line into symbol name and symbol address
6368lt_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'"
6369
6370# Define system-specific variables.
6371case $host_os in
6372aix*)
6373  symcode='[BCDT]'
6374  ;;
6375cygwin* | mingw* | pw32*)
6376  symcode='[ABCDGISTW]'
6377  ;;
6378hpux*) # Its linker distinguishes data from code symbols
6379  if test "$host_cpu" = ia64; then
6380    symcode='[ABCDEGRST]'
6381  fi
6382  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6383  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'"
6384  ;;
6385linux* | k*bsd*-gnu)
6386  if test "$host_cpu" = ia64; then
6387    symcode='[ABCDGIRSTW]'
6388    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6389    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'"
6390  fi
6391  ;;
6392irix* | nonstopux*)
6393  symcode='[BCDEGRST]'
6394  ;;
6395osf*)
6396  symcode='[BCDEGQRST]'
6397  ;;
6398solaris*)
6399  symcode='[BDRT]'
6400  ;;
6401sco3.2v5*)
6402  symcode='[DT]'
6403  ;;
6404sysv4.2uw2*)
6405  symcode='[DT]'
6406  ;;
6407sysv5* | sco5v6* | unixware* | OpenUNIX*)
6408  symcode='[ABDT]'
6409  ;;
6410sysv4)
6411  symcode='[DFNSTU]'
6412  ;;
6413esac
6414
6415# Handle CRLF in mingw tool chain
6416opt_cr=
6417case $build_os in
6418mingw*)
6419  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6420  ;;
6421esac
6422
6423# If we're using GNU nm, then use its standard symbol codes.
6424case `$NM -V 2>&1` in
6425*GNU* | *'with BFD'*)
6426  symcode='[ABCDGIRSTW]' ;;
6427esac
6428
6429# Try without a prefix undercore, then with it.
6430for ac_symprfx in "" "_"; do
6431
6432  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6433  symxfrm="\\1 $ac_symprfx\\2 \\2"
6434
6435  # Write the raw and C identifiers.
6436  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6437
6438  # Check to see that the pipe works correctly.
6439  pipe_works=no
6440
6441  rm -f conftest*
6442  cat > conftest.$ac_ext <<EOF
6443#ifdef __cplusplus
6444extern "C" {
6445#endif
6446char nm_test_var;
6447void nm_test_func(){}
6448#ifdef __cplusplus
6449}
6450#endif
6451int main(){nm_test_var='a';nm_test_func();return(0);}
6452EOF
6453
6454  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6455  (eval $ac_compile) 2>&5
6456  ac_status=$?
6457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458  (exit $ac_status); }; then
6459    # Now try to grab the symbols.
6460    nlist=conftest.nm
6461    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6462  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6463  ac_status=$?
6464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465  (exit $ac_status); } && test -s "$nlist"; then
6466      # Try sorting and uniquifying the output.
6467      if sort "$nlist" | uniq > "$nlist"T; then
6468	mv -f "$nlist"T "$nlist"
6469      else
6470	rm -f "$nlist"T
6471      fi
6472
6473      # Make sure that we snagged all the symbols we need.
6474      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6475	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6476	  cat <<EOF > conftest.$ac_ext
6477#ifdef __cplusplus
6478extern "C" {
6479#endif
6480
6481EOF
6482	  # Now generate the symbol file.
6483	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6484
6485	  cat <<EOF >> conftest.$ac_ext
6486#if defined (__STDC__) && __STDC__
6487# define lt_ptr_t void *
6488#else
6489# define lt_ptr_t char *
6490# define const
6491#endif
6492
6493/* The mapping between symbol names and symbols. */
6494const struct {
6495  const char *name;
6496  lt_ptr_t address;
6497}
6498lt_preloaded_symbols[] =
6499{
6500EOF
6501	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6502	  cat <<\EOF >> conftest.$ac_ext
6503  {0, (lt_ptr_t) 0}
6504};
6505
6506#ifdef __cplusplus
6507}
6508#endif
6509EOF
6510	  # Now try linking the two files.
6511	  mv conftest.$ac_objext conftstm.$ac_objext
6512	  lt_save_LIBS="$LIBS"
6513	  lt_save_CFLAGS="$CFLAGS"
6514	  LIBS="conftstm.$ac_objext"
6515	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6516	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6517  (eval $ac_link) 2>&5
6518  ac_status=$?
6519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6521	    pipe_works=yes
6522	  fi
6523	  LIBS="$lt_save_LIBS"
6524	  CFLAGS="$lt_save_CFLAGS"
6525	else
6526	  echo "cannot find nm_test_func in $nlist" >&5
6527	fi
6528      else
6529	echo "cannot find nm_test_var in $nlist" >&5
6530      fi
6531    else
6532      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6533    fi
6534  else
6535    echo "$progname: failed program was:" >&5
6536    cat conftest.$ac_ext >&5
6537  fi
6538  rm -f conftest* conftst*
6539
6540  # Do not use the global_symbol_pipe unless it works.
6541  if test "$pipe_works" = yes; then
6542    break
6543  else
6544    lt_cv_sys_global_symbol_pipe=
6545  fi
6546done
6547
6548fi
6549
6550if test -z "$lt_cv_sys_global_symbol_pipe"; then
6551  lt_cv_sys_global_symbol_to_cdecl=
6552fi
6553if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6554  { echo "$as_me:$LINENO: result: failed" >&5
6555echo "${ECHO_T}failed" >&6; }
6556else
6557  { echo "$as_me:$LINENO: result: ok" >&5
6558echo "${ECHO_T}ok" >&6; }
6559fi
6560
6561{ echo "$as_me:$LINENO: checking for objdir" >&5
6562echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6563if test "${lt_cv_objdir+set}" = set; then
6564  echo $ECHO_N "(cached) $ECHO_C" >&6
6565else
6566  rm -f .libs 2>/dev/null
6567mkdir .libs 2>/dev/null
6568if test -d .libs; then
6569  lt_cv_objdir=.libs
6570else
6571  # MS-DOS does not allow filenames that begin with a dot.
6572  lt_cv_objdir=_libs
6573fi
6574rmdir .libs 2>/dev/null
6575fi
6576{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6577echo "${ECHO_T}$lt_cv_objdir" >&6; }
6578objdir=$lt_cv_objdir
6579
6580
6581
6582
6583
6584case $host_os in
6585aix3*)
6586  # AIX sometimes has problems with the GCC collect2 program.  For some
6587  # reason, if we set the COLLECT_NAMES environment variable, the problems
6588  # vanish in a puff of smoke.
6589  if test "X${COLLECT_NAMES+set}" != Xset; then
6590    COLLECT_NAMES=
6591    export COLLECT_NAMES
6592  fi
6593  ;;
6594esac
6595
6596# Sed substitution that helps us do robust quoting.  It backslashifies
6597# metacharacters that are still active within double-quoted strings.
6598Xsed='sed -e 1s/^X//'
6599sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6600
6601# Same as above, but do not quote variable references.
6602double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6603
6604# Sed substitution to delay expansion of an escaped shell variable in a
6605# double_quote_subst'ed string.
6606delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6607
6608# Sed substitution to avoid accidental globbing in evaled expressions
6609no_glob_subst='s/\*/\\\*/g'
6610
6611# Constants:
6612rm="rm -f"
6613
6614# Global variables:
6615default_ofile=libtool
6616can_build_shared=yes
6617
6618# All known linkers require a `.a' archive for static linking (except MSVC,
6619# which needs '.lib').
6620libext=a
6621ltmain="$ac_aux_dir/ltmain.sh"
6622ofile="$default_ofile"
6623with_gnu_ld="$lt_cv_prog_gnu_ld"
6624
6625if test -n "$ac_tool_prefix"; then
6626  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6627set dummy ${ac_tool_prefix}ar; ac_word=$2
6628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630if test "${ac_cv_prog_AR+set}" = set; then
6631  echo $ECHO_N "(cached) $ECHO_C" >&6
6632else
6633  if test -n "$AR"; then
6634  ac_cv_prog_AR="$AR" # Let the user override the test.
6635else
6636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637for as_dir in $PATH
6638do
6639  IFS=$as_save_IFS
6640  test -z "$as_dir" && as_dir=.
6641  for ac_exec_ext in '' $ac_executable_extensions; do
6642  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6643    ac_cv_prog_AR="${ac_tool_prefix}ar"
6644    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645    break 2
6646  fi
6647done
6648done
6649IFS=$as_save_IFS
6650
6651fi
6652fi
6653AR=$ac_cv_prog_AR
6654if test -n "$AR"; then
6655  { echo "$as_me:$LINENO: result: $AR" >&5
6656echo "${ECHO_T}$AR" >&6; }
6657else
6658  { echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6; }
6660fi
6661
6662
6663fi
6664if test -z "$ac_cv_prog_AR"; then
6665  ac_ct_AR=$AR
6666  # Extract the first word of "ar", so it can be a program name with args.
6667set dummy ar; ac_word=$2
6668{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6671  echo $ECHO_N "(cached) $ECHO_C" >&6
6672else
6673  if test -n "$ac_ct_AR"; then
6674  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6675else
6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in $PATH
6678do
6679  IFS=$as_save_IFS
6680  test -z "$as_dir" && as_dir=.
6681  for ac_exec_ext in '' $ac_executable_extensions; do
6682  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6683    ac_cv_prog_ac_ct_AR="ar"
6684    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6685    break 2
6686  fi
6687done
6688done
6689IFS=$as_save_IFS
6690
6691fi
6692fi
6693ac_ct_AR=$ac_cv_prog_ac_ct_AR
6694if test -n "$ac_ct_AR"; then
6695  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6696echo "${ECHO_T}$ac_ct_AR" >&6; }
6697else
6698  { echo "$as_me:$LINENO: result: no" >&5
6699echo "${ECHO_T}no" >&6; }
6700fi
6701
6702  if test "x$ac_ct_AR" = x; then
6703    AR="false"
6704  else
6705    case $cross_compiling:$ac_tool_warned in
6706yes:)
6707{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6708whose name does not start with the host triplet.  If you think this
6709configuration is useful to you, please write to autoconf@gnu.org." >&5
6710echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6711whose name does not start with the host triplet.  If you think this
6712configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6713ac_tool_warned=yes ;;
6714esac
6715    AR=$ac_ct_AR
6716  fi
6717else
6718  AR="$ac_cv_prog_AR"
6719fi
6720
6721if test -n "$ac_tool_prefix"; then
6722  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6723set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6724{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6726if test "${ac_cv_prog_RANLIB+set}" = set; then
6727  echo $ECHO_N "(cached) $ECHO_C" >&6
6728else
6729  if test -n "$RANLIB"; then
6730  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6731else
6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733for as_dir in $PATH
6734do
6735  IFS=$as_save_IFS
6736  test -z "$as_dir" && as_dir=.
6737  for ac_exec_ext in '' $ac_executable_extensions; do
6738  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6740    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6741    break 2
6742  fi
6743done
6744done
6745IFS=$as_save_IFS
6746
6747fi
6748fi
6749RANLIB=$ac_cv_prog_RANLIB
6750if test -n "$RANLIB"; then
6751  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6752echo "${ECHO_T}$RANLIB" >&6; }
6753else
6754  { echo "$as_me:$LINENO: result: no" >&5
6755echo "${ECHO_T}no" >&6; }
6756fi
6757
6758
6759fi
6760if test -z "$ac_cv_prog_RANLIB"; then
6761  ac_ct_RANLIB=$RANLIB
6762  # Extract the first word of "ranlib", so it can be a program name with args.
6763set dummy ranlib; ac_word=$2
6764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6767  echo $ECHO_N "(cached) $ECHO_C" >&6
6768else
6769  if test -n "$ac_ct_RANLIB"; then
6770  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6771else
6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775  IFS=$as_save_IFS
6776  test -z "$as_dir" && as_dir=.
6777  for ac_exec_ext in '' $ac_executable_extensions; do
6778  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6779    ac_cv_prog_ac_ct_RANLIB="ranlib"
6780    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781    break 2
6782  fi
6783done
6784done
6785IFS=$as_save_IFS
6786
6787fi
6788fi
6789ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6790if test -n "$ac_ct_RANLIB"; then
6791  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6792echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6793else
6794  { echo "$as_me:$LINENO: result: no" >&5
6795echo "${ECHO_T}no" >&6; }
6796fi
6797
6798  if test "x$ac_ct_RANLIB" = x; then
6799    RANLIB=":"
6800  else
6801    case $cross_compiling:$ac_tool_warned in
6802yes:)
6803{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6804whose name does not start with the host triplet.  If you think this
6805configuration is useful to you, please write to autoconf@gnu.org." >&5
6806echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6807whose name does not start with the host triplet.  If you think this
6808configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6809ac_tool_warned=yes ;;
6810esac
6811    RANLIB=$ac_ct_RANLIB
6812  fi
6813else
6814  RANLIB="$ac_cv_prog_RANLIB"
6815fi
6816
6817if test -n "$ac_tool_prefix"; then
6818  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6819set dummy ${ac_tool_prefix}strip; ac_word=$2
6820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822if test "${ac_cv_prog_STRIP+set}" = set; then
6823  echo $ECHO_N "(cached) $ECHO_C" >&6
6824else
6825  if test -n "$STRIP"; then
6826  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6827else
6828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829for as_dir in $PATH
6830do
6831  IFS=$as_save_IFS
6832  test -z "$as_dir" && as_dir=.
6833  for ac_exec_ext in '' $ac_executable_extensions; do
6834  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6835    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6836    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6837    break 2
6838  fi
6839done
6840done
6841IFS=$as_save_IFS
6842
6843fi
6844fi
6845STRIP=$ac_cv_prog_STRIP
6846if test -n "$STRIP"; then
6847  { echo "$as_me:$LINENO: result: $STRIP" >&5
6848echo "${ECHO_T}$STRIP" >&6; }
6849else
6850  { echo "$as_me:$LINENO: result: no" >&5
6851echo "${ECHO_T}no" >&6; }
6852fi
6853
6854
6855fi
6856if test -z "$ac_cv_prog_STRIP"; then
6857  ac_ct_STRIP=$STRIP
6858  # Extract the first word of "strip", so it can be a program name with args.
6859set dummy strip; ac_word=$2
6860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6863  echo $ECHO_N "(cached) $ECHO_C" >&6
6864else
6865  if test -n "$ac_ct_STRIP"; then
6866  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6867else
6868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869for as_dir in $PATH
6870do
6871  IFS=$as_save_IFS
6872  test -z "$as_dir" && as_dir=.
6873  for ac_exec_ext in '' $ac_executable_extensions; do
6874  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6875    ac_cv_prog_ac_ct_STRIP="strip"
6876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877    break 2
6878  fi
6879done
6880done
6881IFS=$as_save_IFS
6882
6883fi
6884fi
6885ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6886if test -n "$ac_ct_STRIP"; then
6887  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6888echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6889else
6890  { echo "$as_me:$LINENO: result: no" >&5
6891echo "${ECHO_T}no" >&6; }
6892fi
6893
6894  if test "x$ac_ct_STRIP" = x; then
6895    STRIP=":"
6896  else
6897    case $cross_compiling:$ac_tool_warned in
6898yes:)
6899{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6900whose name does not start with the host triplet.  If you think this
6901configuration is useful to you, please write to autoconf@gnu.org." >&5
6902echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6903whose name does not start with the host triplet.  If you think this
6904configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6905ac_tool_warned=yes ;;
6906esac
6907    STRIP=$ac_ct_STRIP
6908  fi
6909else
6910  STRIP="$ac_cv_prog_STRIP"
6911fi
6912
6913
6914old_CC="$CC"
6915old_CFLAGS="$CFLAGS"
6916
6917# Set sane defaults for various variables
6918test -z "$AR" && AR=ar
6919test -z "$AR_FLAGS" && AR_FLAGS=cru
6920test -z "$AS" && AS=as
6921test -z "$CC" && CC=cc
6922test -z "$LTCC" && LTCC=$CC
6923test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6924test -z "$DLLTOOL" && DLLTOOL=dlltool
6925test -z "$LD" && LD=ld
6926test -z "$LN_S" && LN_S="ln -s"
6927test -z "$MAGIC_CMD" && MAGIC_CMD=file
6928test -z "$NM" && NM=nm
6929test -z "$SED" && SED=sed
6930test -z "$OBJDUMP" && OBJDUMP=objdump
6931test -z "$RANLIB" && RANLIB=:
6932test -z "$STRIP" && STRIP=:
6933test -z "$ac_objext" && ac_objext=o
6934
6935# Determine commands to create old-style static archives.
6936old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6937old_postinstall_cmds='chmod 644 $oldlib'
6938old_postuninstall_cmds=
6939
6940if test -n "$RANLIB"; then
6941  case $host_os in
6942  openbsd*)
6943    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6944    ;;
6945  *)
6946    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6947    ;;
6948  esac
6949  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6950fi
6951
6952for cc_temp in $compiler""; do
6953  case $cc_temp in
6954    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6955    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6956    \-*) ;;
6957    *) break;;
6958  esac
6959done
6960cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6961
6962
6963# Only perform the check for file, if the check method requires it
6964case $deplibs_check_method in
6965file_magic*)
6966  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6967    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6968echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6969if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6970  echo $ECHO_N "(cached) $ECHO_C" >&6
6971else
6972  case $MAGIC_CMD in
6973[\\/*] |  ?:[\\/]*)
6974  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6975  ;;
6976*)
6977  lt_save_MAGIC_CMD="$MAGIC_CMD"
6978  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6979  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6980  for ac_dir in $ac_dummy; do
6981    IFS="$lt_save_ifs"
6982    test -z "$ac_dir" && ac_dir=.
6983    if test -f $ac_dir/${ac_tool_prefix}file; then
6984      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6985      if test -n "$file_magic_test_file"; then
6986	case $deplibs_check_method in
6987	"file_magic "*)
6988	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6989	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6990	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6991	    $EGREP "$file_magic_regex" > /dev/null; then
6992	    :
6993	  else
6994	    cat <<EOF 1>&2
6995
6996*** Warning: the command libtool uses to detect shared libraries,
6997*** $file_magic_cmd, produces output that libtool cannot recognize.
6998*** The result is that libtool may fail to recognize shared libraries
6999*** as such.  This will affect the creation of libtool libraries that
7000*** depend on shared libraries, but programs linked with such libtool
7001*** libraries will work regardless of this problem.  Nevertheless, you
7002*** may want to report the problem to your system manager and/or to
7003*** bug-libtool@gnu.org
7004
7005EOF
7006	  fi ;;
7007	esac
7008      fi
7009      break
7010    fi
7011  done
7012  IFS="$lt_save_ifs"
7013  MAGIC_CMD="$lt_save_MAGIC_CMD"
7014  ;;
7015esac
7016fi
7017
7018MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7019if test -n "$MAGIC_CMD"; then
7020  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7021echo "${ECHO_T}$MAGIC_CMD" >&6; }
7022else
7023  { echo "$as_me:$LINENO: result: no" >&5
7024echo "${ECHO_T}no" >&6; }
7025fi
7026
7027if test -z "$lt_cv_path_MAGIC_CMD"; then
7028  if test -n "$ac_tool_prefix"; then
7029    { echo "$as_me:$LINENO: checking for file" >&5
7030echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7031if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7032  echo $ECHO_N "(cached) $ECHO_C" >&6
7033else
7034  case $MAGIC_CMD in
7035[\\/*] |  ?:[\\/]*)
7036  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7037  ;;
7038*)
7039  lt_save_MAGIC_CMD="$MAGIC_CMD"
7040  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7041  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7042  for ac_dir in $ac_dummy; do
7043    IFS="$lt_save_ifs"
7044    test -z "$ac_dir" && ac_dir=.
7045    if test -f $ac_dir/file; then
7046      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7047      if test -n "$file_magic_test_file"; then
7048	case $deplibs_check_method in
7049	"file_magic "*)
7050	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7051	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7052	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7053	    $EGREP "$file_magic_regex" > /dev/null; then
7054	    :
7055	  else
7056	    cat <<EOF 1>&2
7057
7058*** Warning: the command libtool uses to detect shared libraries,
7059*** $file_magic_cmd, produces output that libtool cannot recognize.
7060*** The result is that libtool may fail to recognize shared libraries
7061*** as such.  This will affect the creation of libtool libraries that
7062*** depend on shared libraries, but programs linked with such libtool
7063*** libraries will work regardless of this problem.  Nevertheless, you
7064*** may want to report the problem to your system manager and/or to
7065*** bug-libtool@gnu.org
7066
7067EOF
7068	  fi ;;
7069	esac
7070      fi
7071      break
7072    fi
7073  done
7074  IFS="$lt_save_ifs"
7075  MAGIC_CMD="$lt_save_MAGIC_CMD"
7076  ;;
7077esac
7078fi
7079
7080MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7081if test -n "$MAGIC_CMD"; then
7082  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7083echo "${ECHO_T}$MAGIC_CMD" >&6; }
7084else
7085  { echo "$as_me:$LINENO: result: no" >&5
7086echo "${ECHO_T}no" >&6; }
7087fi
7088
7089  else
7090    MAGIC_CMD=:
7091  fi
7092fi
7093
7094  fi
7095  ;;
7096esac
7097
7098enable_dlopen=no
7099enable_win32_dll=no
7100
7101# Check whether --enable-libtool-lock was given.
7102if test "${enable_libtool_lock+set}" = set; then
7103  enableval=$enable_libtool_lock;
7104fi
7105
7106test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7107
7108
7109# Check whether --with-pic was given.
7110if test "${with_pic+set}" = set; then
7111  withval=$with_pic; pic_mode="$withval"
7112else
7113  pic_mode=default
7114fi
7115
7116test -z "$pic_mode" && pic_mode=default
7117
7118# Use C for the default configuration in the libtool script
7119tagname=
7120lt_save_CC="$CC"
7121ac_ext=c
7122ac_cpp='$CPP $CPPFLAGS'
7123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7125ac_compiler_gnu=$ac_cv_c_compiler_gnu
7126
7127
7128# Source file extension for C test sources.
7129ac_ext=c
7130
7131# Object file extension for compiled C test sources.
7132objext=o
7133objext=$objext
7134
7135# Code to be used in simple compile tests
7136lt_simple_compile_test_code="int some_variable = 0;"
7137
7138# Code to be used in simple link tests
7139lt_simple_link_test_code='int main(){return(0);}'
7140
7141
7142# If no C compiler was specified, use CC.
7143LTCC=${LTCC-"$CC"}
7144
7145# If no C compiler flags were specified, use CFLAGS.
7146LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7147
7148# Allow CC to be a program name with arguments.
7149compiler=$CC
7150
7151
7152# save warnings/boilerplate of simple test code
7153ac_outfile=conftest.$ac_objext
7154echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7155eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7156_lt_compiler_boilerplate=`cat conftest.err`
7157$rm conftest*
7158
7159ac_outfile=conftest.$ac_objext
7160echo "$lt_simple_link_test_code" >conftest.$ac_ext
7161eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7162_lt_linker_boilerplate=`cat conftest.err`
7163$rm conftest*
7164
7165
7166
7167lt_prog_compiler_no_builtin_flag=
7168
7169if test "$GCC" = yes; then
7170  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7171
7172
7173{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7174echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7175if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7176  echo $ECHO_N "(cached) $ECHO_C" >&6
7177else
7178  lt_cv_prog_compiler_rtti_exceptions=no
7179  ac_outfile=conftest.$ac_objext
7180   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7181   lt_compiler_flag="-fno-rtti -fno-exceptions"
7182   # Insert the option either (1) after the last *FLAGS variable, or
7183   # (2) before a word containing "conftest.", or (3) at the end.
7184   # Note that $ac_compile itself does not contain backslashes and begins
7185   # with a dollar sign (not a hyphen), so the echo should work correctly.
7186   # The option is referenced via a variable to avoid confusing sed.
7187   lt_compile=`echo "$ac_compile" | $SED \
7188   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7189   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7190   -e 's:$: $lt_compiler_flag:'`
7191   (eval echo "\"\$as_me:7191: $lt_compile\"" >&5)
7192   (eval "$lt_compile" 2>conftest.err)
7193   ac_status=$?
7194   cat conftest.err >&5
7195   echo "$as_me:7195: \$? = $ac_status" >&5
7196   if (exit $ac_status) && test -s "$ac_outfile"; then
7197     # The compiler can only warn and ignore the option if not recognized
7198     # So say no if there are warnings other than the usual output.
7199     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7200     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7201     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7202       lt_cv_prog_compiler_rtti_exceptions=yes
7203     fi
7204   fi
7205   $rm conftest*
7206
7207fi
7208{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7209echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7210
7211if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7212    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7213else
7214    :
7215fi
7216
7217fi
7218
7219lt_prog_compiler_wl=
7220lt_prog_compiler_pic=
7221lt_prog_compiler_static=
7222
7223{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7224echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7225
7226  if test "$GCC" = yes; then
7227    lt_prog_compiler_wl='-Wl,'
7228    lt_prog_compiler_static='-static'
7229
7230    case $host_os in
7231      aix*)
7232      # All AIX code is PIC.
7233      if test "$host_cpu" = ia64; then
7234	# AIX 5 now supports IA64 processor
7235	lt_prog_compiler_static='-Bstatic'
7236      fi
7237      ;;
7238
7239    amigaos*)
7240      # FIXME: we need at least 68020 code to build shared libraries, but
7241      # adding the `-m68020' flag to GCC prevents building anything better,
7242      # like `-m68040'.
7243      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7244      ;;
7245
7246    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7247      # PIC is the default for these OSes.
7248      ;;
7249
7250    mingw* | cygwin* | pw32* | os2*)
7251      # This hack is so that the source file can tell whether it is being
7252      # built for inclusion in a dll (and should export symbols for example).
7253      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7254      # (--disable-auto-import) libraries
7255      lt_prog_compiler_pic='-DDLL_EXPORT'
7256      ;;
7257
7258    darwin* | rhapsody*)
7259      # PIC is the default on this platform
7260      # Common symbols not allowed in MH_DYLIB files
7261      lt_prog_compiler_pic='-fno-common'
7262      ;;
7263
7264    interix[3-9]*)
7265      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7266      # Instead, we relocate shared libraries at runtime.
7267      ;;
7268
7269    msdosdjgpp*)
7270      # Just because we use GCC doesn't mean we suddenly get shared libraries
7271      # on systems that don't support them.
7272      lt_prog_compiler_can_build_shared=no
7273      enable_shared=no
7274      ;;
7275
7276    sysv4*MP*)
7277      if test -d /usr/nec; then
7278	lt_prog_compiler_pic=-Kconform_pic
7279      fi
7280      ;;
7281
7282    hpux*)
7283      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7284      # not for PA HP-UX.
7285      case $host_cpu in
7286      hppa*64*|ia64*)
7287	# +Z the default
7288	;;
7289      *)
7290	lt_prog_compiler_pic='-fPIC'
7291	;;
7292      esac
7293      ;;
7294
7295    *)
7296      lt_prog_compiler_pic='-fPIC'
7297      ;;
7298    esac
7299  else
7300    # PORTME Check for flag to pass linker flags through the system compiler.
7301    case $host_os in
7302    aix*)
7303      lt_prog_compiler_wl='-Wl,'
7304      if test "$host_cpu" = ia64; then
7305	# AIX 5 now supports IA64 processor
7306	lt_prog_compiler_static='-Bstatic'
7307      else
7308	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7309      fi
7310      ;;
7311      darwin*)
7312        # PIC is the default on this platform
7313        # Common symbols not allowed in MH_DYLIB files
7314       case $cc_basename in
7315         xlc*)
7316         lt_prog_compiler_pic='-qnocommon'
7317         lt_prog_compiler_wl='-Wl,'
7318         ;;
7319       esac
7320       ;;
7321
7322    mingw* | cygwin* | pw32* | os2*)
7323      # This hack is so that the source file can tell whether it is being
7324      # built for inclusion in a dll (and should export symbols for example).
7325      lt_prog_compiler_pic='-DDLL_EXPORT'
7326      ;;
7327
7328    hpux9* | hpux10* | hpux11*)
7329      lt_prog_compiler_wl='-Wl,'
7330      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7331      # not for PA HP-UX.
7332      case $host_cpu in
7333      hppa*64*|ia64*)
7334	# +Z the default
7335	;;
7336      *)
7337	lt_prog_compiler_pic='+Z'
7338	;;
7339      esac
7340      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7341      lt_prog_compiler_static='${wl}-a ${wl}archive'
7342      ;;
7343
7344    irix5* | irix6* | nonstopux*)
7345      lt_prog_compiler_wl='-Wl,'
7346      # PIC (with -KPIC) is the default.
7347      lt_prog_compiler_static='-non_shared'
7348      ;;
7349
7350    newsos6)
7351      lt_prog_compiler_pic='-KPIC'
7352      lt_prog_compiler_static='-Bstatic'
7353      ;;
7354
7355    linux* | k*bsd*-gnu)
7356      case $cc_basename in
7357      icc* | ecc*)
7358	lt_prog_compiler_wl='-Wl,'
7359	lt_prog_compiler_pic='-KPIC'
7360	lt_prog_compiler_static='-static'
7361        ;;
7362      pgcc* | pgf77* | pgf90* | pgf95*)
7363        # Portland Group compilers (*not* the Pentium gcc compiler,
7364	# which looks to be a dead project)
7365	lt_prog_compiler_wl='-Wl,'
7366	lt_prog_compiler_pic='-fpic'
7367	lt_prog_compiler_static='-Bstatic'
7368        ;;
7369      ccc*)
7370        lt_prog_compiler_wl='-Wl,'
7371        # All Alpha code is PIC.
7372        lt_prog_compiler_static='-non_shared'
7373        ;;
7374      *)
7375        case `$CC -V 2>&1 | sed 5q` in
7376	*Sun\ C*)
7377	  # Sun C 5.9
7378	  lt_prog_compiler_pic='-KPIC'
7379	  lt_prog_compiler_static='-Bstatic'
7380	  lt_prog_compiler_wl='-Wl,'
7381	  ;;
7382	*Sun\ F*)
7383	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7384	  lt_prog_compiler_pic='-KPIC'
7385	  lt_prog_compiler_static='-Bstatic'
7386	  lt_prog_compiler_wl=''
7387	  ;;
7388	esac
7389	;;
7390      esac
7391      ;;
7392
7393    osf3* | osf4* | osf5*)
7394      lt_prog_compiler_wl='-Wl,'
7395      # All OSF/1 code is PIC.
7396      lt_prog_compiler_static='-non_shared'
7397      ;;
7398
7399    rdos*)
7400      lt_prog_compiler_static='-non_shared'
7401      ;;
7402
7403    solaris*)
7404      lt_prog_compiler_pic='-KPIC'
7405      lt_prog_compiler_static='-Bstatic'
7406      case $cc_basename in
7407      f77* | f90* | f95*)
7408	lt_prog_compiler_wl='-Qoption ld ';;
7409      *)
7410	lt_prog_compiler_wl='-Wl,';;
7411      esac
7412      ;;
7413
7414    sunos4*)
7415      lt_prog_compiler_wl='-Qoption ld '
7416      lt_prog_compiler_pic='-PIC'
7417      lt_prog_compiler_static='-Bstatic'
7418      ;;
7419
7420    sysv4 | sysv4.2uw2* | sysv4.3*)
7421      lt_prog_compiler_wl='-Wl,'
7422      lt_prog_compiler_pic='-KPIC'
7423      lt_prog_compiler_static='-Bstatic'
7424      ;;
7425
7426    sysv4*MP*)
7427      if test -d /usr/nec ;then
7428	lt_prog_compiler_pic='-Kconform_pic'
7429	lt_prog_compiler_static='-Bstatic'
7430      fi
7431      ;;
7432
7433    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7434      lt_prog_compiler_wl='-Wl,'
7435      lt_prog_compiler_pic='-KPIC'
7436      lt_prog_compiler_static='-Bstatic'
7437      ;;
7438
7439    unicos*)
7440      lt_prog_compiler_wl='-Wl,'
7441      lt_prog_compiler_can_build_shared=no
7442      ;;
7443
7444    uts4*)
7445      lt_prog_compiler_pic='-pic'
7446      lt_prog_compiler_static='-Bstatic'
7447      ;;
7448
7449    *)
7450      lt_prog_compiler_can_build_shared=no
7451      ;;
7452    esac
7453  fi
7454
7455{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7456echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7457
7458#
7459# Check to make sure the PIC flag actually works.
7460#
7461if test -n "$lt_prog_compiler_pic"; then
7462
7463{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7464echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7465if test "${lt_prog_compiler_pic_works+set}" = set; then
7466  echo $ECHO_N "(cached) $ECHO_C" >&6
7467else
7468  lt_prog_compiler_pic_works=no
7469  ac_outfile=conftest.$ac_objext
7470   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7471   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7472   # Insert the option either (1) after the last *FLAGS variable, or
7473   # (2) before a word containing "conftest.", or (3) at the end.
7474   # Note that $ac_compile itself does not contain backslashes and begins
7475   # with a dollar sign (not a hyphen), so the echo should work correctly.
7476   # The option is referenced via a variable to avoid confusing sed.
7477   lt_compile=`echo "$ac_compile" | $SED \
7478   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7479   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7480   -e 's:$: $lt_compiler_flag:'`
7481   (eval echo "\"\$as_me:7481: $lt_compile\"" >&5)
7482   (eval "$lt_compile" 2>conftest.err)
7483   ac_status=$?
7484   cat conftest.err >&5
7485   echo "$as_me:7485: \$? = $ac_status" >&5
7486   if (exit $ac_status) && test -s "$ac_outfile"; then
7487     # The compiler can only warn and ignore the option if not recognized
7488     # So say no if there are warnings other than the usual output.
7489     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7490     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7491     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7492       lt_prog_compiler_pic_works=yes
7493     fi
7494   fi
7495   $rm conftest*
7496
7497fi
7498{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7499echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7500
7501if test x"$lt_prog_compiler_pic_works" = xyes; then
7502    case $lt_prog_compiler_pic in
7503     "" | " "*) ;;
7504     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7505     esac
7506else
7507    lt_prog_compiler_pic=
7508     lt_prog_compiler_can_build_shared=no
7509fi
7510
7511fi
7512case $host_os in
7513  # For platforms which do not support PIC, -DPIC is meaningless:
7514  *djgpp*)
7515    lt_prog_compiler_pic=
7516    ;;
7517  *)
7518    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7519    ;;
7520esac
7521
7522#
7523# Check to make sure the static flag actually works.
7524#
7525wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7526{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7527echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7528if test "${lt_prog_compiler_static_works+set}" = set; then
7529  echo $ECHO_N "(cached) $ECHO_C" >&6
7530else
7531  lt_prog_compiler_static_works=no
7532   save_LDFLAGS="$LDFLAGS"
7533   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7534   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7535   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7536     # The linker can only warn and ignore the option if not recognized
7537     # So say no if there are warnings
7538     if test -s conftest.err; then
7539       # Append any errors to the config.log.
7540       cat conftest.err 1>&5
7541       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7542       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7543       if diff conftest.exp conftest.er2 >/dev/null; then
7544         lt_prog_compiler_static_works=yes
7545       fi
7546     else
7547       lt_prog_compiler_static_works=yes
7548     fi
7549   fi
7550   $rm conftest*
7551   LDFLAGS="$save_LDFLAGS"
7552
7553fi
7554{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7555echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7556
7557if test x"$lt_prog_compiler_static_works" = xyes; then
7558    :
7559else
7560    lt_prog_compiler_static=
7561fi
7562
7563
7564{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7565echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7566if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7567  echo $ECHO_N "(cached) $ECHO_C" >&6
7568else
7569  lt_cv_prog_compiler_c_o=no
7570   $rm -r conftest 2>/dev/null
7571   mkdir conftest
7572   cd conftest
7573   mkdir out
7574   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7575
7576   lt_compiler_flag="-o out/conftest2.$ac_objext"
7577   # Insert the option either (1) after the last *FLAGS variable, or
7578   # (2) before a word containing "conftest.", or (3) at the end.
7579   # Note that $ac_compile itself does not contain backslashes and begins
7580   # with a dollar sign (not a hyphen), so the echo should work correctly.
7581   lt_compile=`echo "$ac_compile" | $SED \
7582   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7583   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7584   -e 's:$: $lt_compiler_flag:'`
7585   (eval echo "\"\$as_me:7585: $lt_compile\"" >&5)
7586   (eval "$lt_compile" 2>out/conftest.err)
7587   ac_status=$?
7588   cat out/conftest.err >&5
7589   echo "$as_me:7589: \$? = $ac_status" >&5
7590   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7591   then
7592     # The compiler can only warn and ignore the option if not recognized
7593     # So say no if there are warnings
7594     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7595     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7596     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7597       lt_cv_prog_compiler_c_o=yes
7598     fi
7599   fi
7600   chmod u+w . 2>&5
7601   $rm conftest*
7602   # SGI C++ compiler will create directory out/ii_files/ for
7603   # template instantiation
7604   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7605   $rm out/* && rmdir out
7606   cd ..
7607   rmdir conftest
7608   $rm conftest*
7609
7610fi
7611{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7612echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7613
7614
7615hard_links="nottested"
7616if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7617  # do not overwrite the value of need_locks provided by the user
7618  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7619echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7620  hard_links=yes
7621  $rm conftest*
7622  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7623  touch conftest.a
7624  ln conftest.a conftest.b 2>&5 || hard_links=no
7625  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7626  { echo "$as_me:$LINENO: result: $hard_links" >&5
7627echo "${ECHO_T}$hard_links" >&6; }
7628  if test "$hard_links" = no; then
7629    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7630echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7631    need_locks=warn
7632  fi
7633else
7634  need_locks=no
7635fi
7636
7637{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7638echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7639
7640  runpath_var=
7641  allow_undefined_flag=
7642  enable_shared_with_static_runtimes=no
7643  archive_cmds=
7644  archive_expsym_cmds=
7645  old_archive_From_new_cmds=
7646  old_archive_from_expsyms_cmds=
7647  export_dynamic_flag_spec=
7648  whole_archive_flag_spec=
7649  thread_safe_flag_spec=
7650  hardcode_libdir_flag_spec=
7651  hardcode_libdir_flag_spec_ld=
7652  hardcode_libdir_separator=
7653  hardcode_direct=no
7654  hardcode_minus_L=no
7655  hardcode_shlibpath_var=unsupported
7656  link_all_deplibs=unknown
7657  hardcode_automatic=no
7658  module_cmds=
7659  module_expsym_cmds=
7660  always_export_symbols=no
7661  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7662  # include_expsyms should be a list of space-separated symbols to be *always*
7663  # included in the symbol list
7664  include_expsyms=
7665  # exclude_expsyms can be an extended regexp of symbols to exclude
7666  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7667  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7668  # as well as any symbol that contains `d'.
7669  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7670  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7671  # platforms (ab)use it in PIC code, but their linkers get confused if
7672  # the symbol is explicitly referenced.  Since portable code cannot
7673  # rely on this symbol name, it's probably fine to never include it in
7674  # preloaded symbol tables.
7675  extract_expsyms_cmds=
7676  # Just being paranoid about ensuring that cc_basename is set.
7677  for cc_temp in $compiler""; do
7678  case $cc_temp in
7679    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7680    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7681    \-*) ;;
7682    *) break;;
7683  esac
7684done
7685cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7686
7687  case $host_os in
7688  cygwin* | mingw* | pw32*)
7689    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7690    # When not using gcc, we currently assume that we are using
7691    # Microsoft Visual C++.
7692    if test "$GCC" != yes; then
7693      with_gnu_ld=no
7694    fi
7695    ;;
7696  interix*)
7697    # we just hope/assume this is gcc and not c89 (= MSVC++)
7698    with_gnu_ld=yes
7699    ;;
7700  openbsd*)
7701    with_gnu_ld=no
7702    ;;
7703  esac
7704
7705  ld_shlibs=yes
7706  if test "$with_gnu_ld" = yes; then
7707    # If archive_cmds runs LD, not CC, wlarc should be empty
7708    wlarc='${wl}'
7709
7710    # Set some defaults for GNU ld with shared library support. These
7711    # are reset later if shared libraries are not supported. Putting them
7712    # here allows them to be overridden if necessary.
7713    runpath_var=LD_RUN_PATH
7714    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7715    export_dynamic_flag_spec='${wl}--export-dynamic'
7716    # ancient GNU ld didn't support --whole-archive et. al.
7717    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7718	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7719      else
7720  	whole_archive_flag_spec=
7721    fi
7722    supports_anon_versioning=no
7723    case `$LD -v 2>/dev/null` in
7724      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7725      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7726      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7727      *\ 2.11.*) ;; # other 2.11 versions
7728      *) supports_anon_versioning=yes ;;
7729    esac
7730
7731    # See if GNU ld supports shared libraries.
7732    case $host_os in
7733    aix3* | aix4* | aix5*)
7734      # On AIX/PPC, the GNU linker is very broken
7735      if test "$host_cpu" != ia64; then
7736	ld_shlibs=no
7737	cat <<EOF 1>&2
7738
7739*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7740*** to be unable to reliably create shared libraries on AIX.
7741*** Therefore, libtool is disabling shared libraries support.  If you
7742*** really care for shared libraries, you may want to modify your PATH
7743*** so that a non-GNU linker is found, and then restart.
7744
7745EOF
7746      fi
7747      ;;
7748
7749    amigaos*)
7750      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)'
7751      hardcode_libdir_flag_spec='-L$libdir'
7752      hardcode_minus_L=yes
7753
7754      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7755      # that the semantics of dynamic libraries on AmigaOS, at least up
7756      # to version 4, is to share data among multiple programs linked
7757      # with the same dynamic library.  Since this doesn't match the
7758      # behavior of shared libraries on other platforms, we can't use
7759      # them.
7760      ld_shlibs=no
7761      ;;
7762
7763    beos*)
7764      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7765	allow_undefined_flag=unsupported
7766	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7767	# support --undefined.  This deserves some investigation.  FIXME
7768	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7769      else
7770	ld_shlibs=no
7771      fi
7772      ;;
7773
7774    cygwin* | mingw* | pw32*)
7775      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7776      # as there is no search path for DLLs.
7777      hardcode_libdir_flag_spec='-L$libdir'
7778      allow_undefined_flag=unsupported
7779      always_export_symbols=no
7780      enable_shared_with_static_runtimes=yes
7781      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7782
7783      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7784        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7785	# If the export-symbols file already is a .def file (1st line
7786	# is EXPORTS), use it as is; otherwise, prepend...
7787	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7788	  cp $export_symbols $output_objdir/$soname.def;
7789	else
7790	  echo EXPORTS > $output_objdir/$soname.def;
7791	  cat $export_symbols >> $output_objdir/$soname.def;
7792	fi~
7793	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7794      else
7795	ld_shlibs=no
7796      fi
7797      ;;
7798
7799    interix[3-9]*)
7800      hardcode_direct=no
7801      hardcode_shlibpath_var=no
7802      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7803      export_dynamic_flag_spec='${wl}-E'
7804      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7805      # Instead, shared libraries are loaded at an image base (0x10000000 by
7806      # default) and relocated if they conflict, which is a slow very memory
7807      # consuming and fragmenting process.  To avoid this, we pick a random,
7808      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7809      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7810      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7811      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'
7812      ;;
7813
7814    gnu* | linux* | k*bsd*-gnu)
7815      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7816	tmp_addflag=
7817	case $cc_basename,$host_cpu in
7818	pgcc*)				# Portland Group C compiler
7819	  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'
7820	  tmp_addflag=' $pic_flag'
7821	  ;;
7822	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7823	  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'
7824	  tmp_addflag=' $pic_flag -Mnomain' ;;
7825	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7826	  tmp_addflag=' -i_dynamic' ;;
7827	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7828	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7829	ifc* | ifort*)			# Intel Fortran compiler
7830	  tmp_addflag=' -nofor_main' ;;
7831	esac
7832	case `$CC -V 2>&1 | sed 5q` in
7833	*Sun\ C*)			# Sun C 5.9
7834	  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'
7835	  tmp_sharedflag='-G' ;;
7836	*Sun\ F*)			# Sun Fortran 8.3
7837	  tmp_sharedflag='-G' ;;
7838	*)
7839	  tmp_sharedflag='-shared' ;;
7840	esac
7841	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7842
7843	if test $supports_anon_versioning = yes; then
7844	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7845  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7846  $echo "local: *; };" >> $output_objdir/$libname.ver~
7847	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7848	fi
7849      else
7850	ld_shlibs=no
7851      fi
7852      ;;
7853
7854    netbsd*)
7855      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7856	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7857	wlarc=
7858      else
7859	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7860	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7861      fi
7862      ;;
7863
7864    solaris*)
7865      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7866	ld_shlibs=no
7867	cat <<EOF 1>&2
7868
7869*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7870*** create shared libraries on Solaris systems.  Therefore, libtool
7871*** is disabling shared libraries support.  We urge you to upgrade GNU
7872*** binutils to release 2.9.1 or newer.  Another option is to modify
7873*** your PATH or compiler configuration so that the native linker is
7874*** used, and then restart.
7875
7876EOF
7877      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7878	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7879	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7880      else
7881	ld_shlibs=no
7882      fi
7883      ;;
7884
7885    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7886      case `$LD -v 2>&1` in
7887        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7888	ld_shlibs=no
7889	cat <<_LT_EOF 1>&2
7890
7891*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7892*** reliably create shared libraries on SCO systems.  Therefore, libtool
7893*** is disabling shared libraries support.  We urge you to upgrade GNU
7894*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7895*** your PATH or compiler configuration so that the native linker is
7896*** used, and then restart.
7897
7898_LT_EOF
7899	;;
7900	*)
7901	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7902	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7903	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7904	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7905	  else
7906	    ld_shlibs=no
7907	  fi
7908	;;
7909      esac
7910      ;;
7911
7912    sunos4*)
7913      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7914      wlarc=
7915      hardcode_direct=yes
7916      hardcode_shlibpath_var=no
7917      ;;
7918
7919    *)
7920      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7921	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7922	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7923      else
7924	ld_shlibs=no
7925      fi
7926      ;;
7927    esac
7928
7929    if test "$ld_shlibs" = no; then
7930      runpath_var=
7931      hardcode_libdir_flag_spec=
7932      export_dynamic_flag_spec=
7933      whole_archive_flag_spec=
7934    fi
7935  else
7936    # PORTME fill in a description of your system's linker (not GNU ld)
7937    case $host_os in
7938    aix3*)
7939      allow_undefined_flag=unsupported
7940      always_export_symbols=yes
7941      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'
7942      # Note: this linker hardcodes the directories in LIBPATH if there
7943      # are no directories specified by -L.
7944      hardcode_minus_L=yes
7945      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7946	# Neither direct hardcoding nor static linking is supported with a
7947	# broken collect2.
7948	hardcode_direct=unsupported
7949      fi
7950      ;;
7951
7952    aix4* | aix5*)
7953      if test "$host_cpu" = ia64; then
7954	# On IA64, the linker does run time linking by default, so we don't
7955	# have to do anything special.
7956	aix_use_runtimelinking=no
7957	exp_sym_flag='-Bexport'
7958	no_entry_flag=""
7959      else
7960	# If we're using GNU nm, then we don't want the "-C" option.
7961	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7962	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7963	  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'
7964	else
7965	  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'
7966	fi
7967	aix_use_runtimelinking=no
7968
7969	# Test if we are trying to use run time linking or normal
7970	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7971	# need to do runtime linking.
7972	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7973	  for ld_flag in $LDFLAGS; do
7974  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7975  	    aix_use_runtimelinking=yes
7976  	    break
7977  	  fi
7978	  done
7979	  ;;
7980	esac
7981
7982	exp_sym_flag='-bexport'
7983	no_entry_flag='-bnoentry'
7984      fi
7985
7986      # When large executables or shared objects are built, AIX ld can
7987      # have problems creating the table of contents.  If linking a library
7988      # or program results in "error TOC overflow" add -mminimal-toc to
7989      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7990      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7991
7992      archive_cmds=''
7993      hardcode_direct=yes
7994      hardcode_libdir_separator=':'
7995      link_all_deplibs=yes
7996
7997      if test "$GCC" = yes; then
7998	case $host_os in aix4.[012]|aix4.[012].*)
7999	# We only want to do this on AIX 4.2 and lower, the check
8000	# below for broken collect2 doesn't work under 4.3+
8001	  collect2name=`${CC} -print-prog-name=collect2`
8002	  if test -f "$collect2name" && \
8003  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8004	  then
8005  	  # We have reworked collect2
8006  	  :
8007	  else
8008  	  # We have old collect2
8009  	  hardcode_direct=unsupported
8010  	  # It fails to find uninstalled libraries when the uninstalled
8011  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8012  	  # to unsupported forces relinking
8013  	  hardcode_minus_L=yes
8014  	  hardcode_libdir_flag_spec='-L$libdir'
8015  	  hardcode_libdir_separator=
8016	  fi
8017	  ;;
8018	esac
8019	shared_flag='-shared'
8020	if test "$aix_use_runtimelinking" = yes; then
8021	  shared_flag="$shared_flag "'${wl}-G'
8022	fi
8023      else
8024	# not using gcc
8025	if test "$host_cpu" = ia64; then
8026  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8027  	# chokes on -Wl,-G. The following line is correct:
8028	  shared_flag='-G'
8029	else
8030	  if test "$aix_use_runtimelinking" = yes; then
8031	    shared_flag='${wl}-G'
8032	  else
8033	    shared_flag='${wl}-bM:SRE'
8034	  fi
8035	fi
8036      fi
8037
8038      # It seems that -bexpall does not export symbols beginning with
8039      # underscore (_), so it is better to generate a list of symbols to export.
8040      always_export_symbols=yes
8041      if test "$aix_use_runtimelinking" = yes; then
8042	# Warning - without using the other runtime loading flags (-brtl),
8043	# -berok will link without error, but may produce a broken library.
8044	allow_undefined_flag='-berok'
8045       # Determine the default libpath from the value encoded in an empty executable.
8046       cat >conftest.$ac_ext <<_ACEOF
8047/* confdefs.h.  */
8048_ACEOF
8049cat confdefs.h >>conftest.$ac_ext
8050cat >>conftest.$ac_ext <<_ACEOF
8051/* end confdefs.h.  */
8052
8053int
8054main ()
8055{
8056
8057  ;
8058  return 0;
8059}
8060_ACEOF
8061rm -f conftest.$ac_objext conftest$ac_exeext
8062if { (ac_try="$ac_link"
8063case "(($ac_try" in
8064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065  *) ac_try_echo=$ac_try;;
8066esac
8067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068  (eval "$ac_link") 2>conftest.er1
8069  ac_status=$?
8070  grep -v '^ *+' conftest.er1 >conftest.err
8071  rm -f conftest.er1
8072  cat conftest.err >&5
8073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074  (exit $ac_status); } && {
8075	 test -z "$ac_c_werror_flag" ||
8076	 test ! -s conftest.err
8077       } && test -s conftest$ac_exeext &&
8078       $as_test_x conftest$ac_exeext; then
8079
8080lt_aix_libpath_sed='
8081    /Import File Strings/,/^$/ {
8082	/^0/ {
8083	    s/^0  *\(.*\)$/\1/
8084	    p
8085	}
8086    }'
8087aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8088# Check for a 64-bit object if we didn't find anything.
8089if test -z "$aix_libpath"; then
8090  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8091fi
8092else
8093  echo "$as_me: failed program was:" >&5
8094sed 's/^/| /' conftest.$ac_ext >&5
8095
8096
8097fi
8098
8099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8100      conftest$ac_exeext conftest.$ac_ext
8101if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8102
8103       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8104	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"
8105       else
8106	if test "$host_cpu" = ia64; then
8107	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8108	  allow_undefined_flag="-z nodefs"
8109	  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"
8110	else
8111	 # Determine the default libpath from the value encoded in an empty executable.
8112	 cat >conftest.$ac_ext <<_ACEOF
8113/* confdefs.h.  */
8114_ACEOF
8115cat confdefs.h >>conftest.$ac_ext
8116cat >>conftest.$ac_ext <<_ACEOF
8117/* end confdefs.h.  */
8118
8119int
8120main ()
8121{
8122
8123  ;
8124  return 0;
8125}
8126_ACEOF
8127rm -f conftest.$ac_objext conftest$ac_exeext
8128if { (ac_try="$ac_link"
8129case "(($ac_try" in
8130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131  *) ac_try_echo=$ac_try;;
8132esac
8133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134  (eval "$ac_link") 2>conftest.er1
8135  ac_status=$?
8136  grep -v '^ *+' conftest.er1 >conftest.err
8137  rm -f conftest.er1
8138  cat conftest.err >&5
8139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140  (exit $ac_status); } && {
8141	 test -z "$ac_c_werror_flag" ||
8142	 test ! -s conftest.err
8143       } && test -s conftest$ac_exeext &&
8144       $as_test_x conftest$ac_exeext; then
8145
8146lt_aix_libpath_sed='
8147    /Import File Strings/,/^$/ {
8148	/^0/ {
8149	    s/^0  *\(.*\)$/\1/
8150	    p
8151	}
8152    }'
8153aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8154# Check for a 64-bit object if we didn't find anything.
8155if test -z "$aix_libpath"; then
8156  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8157fi
8158else
8159  echo "$as_me: failed program was:" >&5
8160sed 's/^/| /' conftest.$ac_ext >&5
8161
8162
8163fi
8164
8165rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8166      conftest$ac_exeext conftest.$ac_ext
8167if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8168
8169	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8170	  # Warning - without using the other run time loading flags,
8171	  # -berok will link without error, but may produce a broken library.
8172	  no_undefined_flag=' ${wl}-bernotok'
8173	  allow_undefined_flag=' ${wl}-berok'
8174	  # Exported symbols can be pulled into shared objects from archives
8175	  whole_archive_flag_spec='$convenience'
8176	  archive_cmds_need_lc=yes
8177	  # This is similar to how AIX traditionally builds its shared libraries.
8178	  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'
8179	fi
8180      fi
8181      ;;
8182
8183    amigaos*)
8184      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)'
8185      hardcode_libdir_flag_spec='-L$libdir'
8186      hardcode_minus_L=yes
8187      # see comment about different semantics on the GNU ld section
8188      ld_shlibs=no
8189      ;;
8190
8191    bsdi[45]*)
8192      export_dynamic_flag_spec=-rdynamic
8193      ;;
8194
8195    cygwin* | mingw* | pw32*)
8196      # When not using gcc, we currently assume that we are using
8197      # Microsoft Visual C++.
8198      # hardcode_libdir_flag_spec is actually meaningless, as there is
8199      # no search path for DLLs.
8200      hardcode_libdir_flag_spec=' '
8201      allow_undefined_flag=unsupported
8202      # Tell ltmain to make .lib files, not .a files.
8203      libext=lib
8204      # Tell ltmain to make .dll files, not .so files.
8205      shrext_cmds=".dll"
8206      # FIXME: Setting linknames here is a bad hack.
8207      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8208      # The linker will automatically build a .lib file if we build a DLL.
8209      old_archive_From_new_cmds='true'
8210      # FIXME: Should let the user specify the lib program.
8211      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8212      fix_srcfile_path='`cygpath -w "$srcfile"`'
8213      enable_shared_with_static_runtimes=yes
8214      ;;
8215
8216    darwin* | rhapsody*)
8217      case $host_os in
8218        rhapsody* | darwin1.[012])
8219         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8220         ;;
8221       *) # Darwin 1.3 on
8222         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8223           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8224         else
8225           case ${MACOSX_DEPLOYMENT_TARGET} in
8226             10.[012])
8227               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8228               ;;
8229             10.*)
8230               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8231               ;;
8232           esac
8233         fi
8234         ;;
8235      esac
8236      archive_cmds_need_lc=no
8237      hardcode_direct=no
8238      hardcode_automatic=yes
8239      hardcode_shlibpath_var=unsupported
8240      whole_archive_flag_spec=''
8241      link_all_deplibs=yes
8242    if test "$GCC" = yes ; then
8243    	output_verbose_link_cmd='echo'
8244        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8245      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8246      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8247      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8248      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}'
8249    else
8250      case $cc_basename in
8251        xlc*)
8252         output_verbose_link_cmd='echo'
8253         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8254         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8255          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8256         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}'
8257          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}'
8258          ;;
8259       *)
8260         ld_shlibs=no
8261          ;;
8262      esac
8263    fi
8264      ;;
8265
8266    dgux*)
8267      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8268      hardcode_libdir_flag_spec='-L$libdir'
8269      hardcode_shlibpath_var=no
8270      ;;
8271
8272    freebsd1*)
8273      ld_shlibs=no
8274      ;;
8275
8276    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8277    # support.  Future versions do this automatically, but an explicit c++rt0.o
8278    # does not break anything, and helps significantly (at the cost of a little
8279    # extra space).
8280    freebsd2.2*)
8281      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8282      hardcode_libdir_flag_spec='-R$libdir'
8283      hardcode_direct=yes
8284      hardcode_shlibpath_var=no
8285      ;;
8286
8287    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8288    freebsd2*)
8289      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8290      hardcode_direct=yes
8291      hardcode_minus_L=yes
8292      hardcode_shlibpath_var=no
8293      ;;
8294
8295    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8296    freebsd* | dragonfly*)
8297      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8298      hardcode_libdir_flag_spec='-R$libdir'
8299      hardcode_direct=yes
8300      hardcode_shlibpath_var=no
8301      ;;
8302
8303    hpux9*)
8304      if test "$GCC" = yes; then
8305	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'
8306      else
8307	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'
8308      fi
8309      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8310      hardcode_libdir_separator=:
8311      hardcode_direct=yes
8312
8313      # hardcode_minus_L: Not really in the search PATH,
8314      # but as the default location of the library.
8315      hardcode_minus_L=yes
8316      export_dynamic_flag_spec='${wl}-E'
8317      ;;
8318
8319    hpux10*)
8320      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8321	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8322      else
8323	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8324      fi
8325      if test "$with_gnu_ld" = no; then
8326	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8327	hardcode_libdir_separator=:
8328
8329	hardcode_direct=yes
8330	export_dynamic_flag_spec='${wl}-E'
8331
8332	# hardcode_minus_L: Not really in the search PATH,
8333	# but as the default location of the library.
8334	hardcode_minus_L=yes
8335      fi
8336      ;;
8337
8338    hpux11*)
8339      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8340	case $host_cpu in
8341	hppa*64*)
8342	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8343	  ;;
8344	ia64*)
8345	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8346	  ;;
8347	*)
8348	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8349	  ;;
8350	esac
8351      else
8352	case $host_cpu in
8353	hppa*64*)
8354	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8355	  ;;
8356	ia64*)
8357	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8358	  ;;
8359	*)
8360	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8361	  ;;
8362	esac
8363      fi
8364      if test "$with_gnu_ld" = no; then
8365	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8366	hardcode_libdir_separator=:
8367
8368	case $host_cpu in
8369	hppa*64*|ia64*)
8370	  hardcode_libdir_flag_spec_ld='+b $libdir'
8371	  hardcode_direct=no
8372	  hardcode_shlibpath_var=no
8373	  ;;
8374	*)
8375	  hardcode_direct=yes
8376	  export_dynamic_flag_spec='${wl}-E'
8377
8378	  # hardcode_minus_L: Not really in the search PATH,
8379	  # but as the default location of the library.
8380	  hardcode_minus_L=yes
8381	  ;;
8382	esac
8383      fi
8384      ;;
8385
8386    irix5* | irix6* | nonstopux*)
8387      if test "$GCC" = yes; then
8388	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'
8389      else
8390	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'
8391	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8392      fi
8393      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8394      hardcode_libdir_separator=:
8395      link_all_deplibs=yes
8396      ;;
8397
8398    netbsd*)
8399      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8400	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8401      else
8402	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8403      fi
8404      hardcode_libdir_flag_spec='-R$libdir'
8405      hardcode_direct=yes
8406      hardcode_shlibpath_var=no
8407      ;;
8408
8409    newsos6)
8410      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8411      hardcode_direct=yes
8412      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8413      hardcode_libdir_separator=:
8414      hardcode_shlibpath_var=no
8415      ;;
8416
8417    openbsd*)
8418      if test -f /usr/libexec/ld.so; then
8419	hardcode_direct=yes
8420	hardcode_shlibpath_var=no
8421	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8422	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8423	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8424	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8425	  export_dynamic_flag_spec='${wl}-E'
8426	else
8427	  case $host_os in
8428	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8429	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8430	     hardcode_libdir_flag_spec='-R$libdir'
8431	     ;;
8432	   *)
8433	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8434	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8435	     ;;
8436	  esac
8437        fi
8438      else
8439	ld_shlibs=no
8440      fi
8441      ;;
8442
8443    os2*)
8444      hardcode_libdir_flag_spec='-L$libdir'
8445      hardcode_minus_L=yes
8446      allow_undefined_flag=unsupported
8447      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'
8448      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8449      ;;
8450
8451    osf3*)
8452      if test "$GCC" = yes; then
8453	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8454	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'
8455      else
8456	allow_undefined_flag=' -expect_unresolved \*'
8457	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'
8458      fi
8459      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8460      hardcode_libdir_separator=:
8461      ;;
8462
8463    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8464      if test "$GCC" = yes; then
8465	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8466	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'
8467	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8468      else
8469	allow_undefined_flag=' -expect_unresolved \*'
8470	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'
8471	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8472	$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'
8473
8474	# Both c and cxx compiler support -rpath directly
8475	hardcode_libdir_flag_spec='-rpath $libdir'
8476      fi
8477      hardcode_libdir_separator=:
8478      ;;
8479
8480    solaris*)
8481      no_undefined_flag=' -z text'
8482      if test "$GCC" = yes; then
8483	wlarc='${wl}'
8484	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8485	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8486	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8487      else
8488	wlarc=''
8489	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8490	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8491  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8492      fi
8493      hardcode_libdir_flag_spec='-R$libdir'
8494      hardcode_shlibpath_var=no
8495      case $host_os in
8496      solaris2.[0-5] | solaris2.[0-5].*) ;;
8497      *)
8498	# The compiler driver will combine and reorder linker options,
8499	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8500	# but is careful enough not to reorder.
8501 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8502	if test "$GCC" = yes; then
8503	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8504	else
8505	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8506	fi
8507	;;
8508      esac
8509      link_all_deplibs=yes
8510      ;;
8511
8512    sunos4*)
8513      if test "x$host_vendor" = xsequent; then
8514	# Use $CC to link under sequent, because it throws in some extra .o
8515	# files that make .init and .fini sections work.
8516	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8517      else
8518	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8519      fi
8520      hardcode_libdir_flag_spec='-L$libdir'
8521      hardcode_direct=yes
8522      hardcode_minus_L=yes
8523      hardcode_shlibpath_var=no
8524      ;;
8525
8526    sysv4)
8527      case $host_vendor in
8528	sni)
8529	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8530	  hardcode_direct=yes # is this really true???
8531	;;
8532	siemens)
8533	  ## LD is ld it makes a PLAMLIB
8534	  ## CC just makes a GrossModule.
8535	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8536	  reload_cmds='$CC -r -o $output$reload_objs'
8537	  hardcode_direct=no
8538        ;;
8539	motorola)
8540	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8541	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8542	;;
8543      esac
8544      runpath_var='LD_RUN_PATH'
8545      hardcode_shlibpath_var=no
8546      ;;
8547
8548    sysv4.3*)
8549      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8550      hardcode_shlibpath_var=no
8551      export_dynamic_flag_spec='-Bexport'
8552      ;;
8553
8554    sysv4*MP*)
8555      if test -d /usr/nec; then
8556	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8557	hardcode_shlibpath_var=no
8558	runpath_var=LD_RUN_PATH
8559	hardcode_runpath_var=yes
8560	ld_shlibs=yes
8561      fi
8562      ;;
8563
8564    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8565      no_undefined_flag='${wl}-z,text'
8566      archive_cmds_need_lc=no
8567      hardcode_shlibpath_var=no
8568      runpath_var='LD_RUN_PATH'
8569
8570      if test "$GCC" = yes; then
8571	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8572	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8573      else
8574	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8575	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8576      fi
8577      ;;
8578
8579    sysv5* | sco3.2v5* | sco5v6*)
8580      # Note: We can NOT use -z defs as we might desire, because we do not
8581      # link with -lc, and that would cause any symbols used from libc to
8582      # always be unresolved, which means just about no library would
8583      # ever link correctly.  If we're not using GNU ld we use -z text
8584      # though, which does catch some bad symbols but isn't as heavy-handed
8585      # as -z defs.
8586      no_undefined_flag='${wl}-z,text'
8587      allow_undefined_flag='${wl}-z,nodefs'
8588      archive_cmds_need_lc=no
8589      hardcode_shlibpath_var=no
8590      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8591      hardcode_libdir_separator=':'
8592      link_all_deplibs=yes
8593      export_dynamic_flag_spec='${wl}-Bexport'
8594      runpath_var='LD_RUN_PATH'
8595
8596      if test "$GCC" = yes; then
8597	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8598	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8599      else
8600	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8601	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8602      fi
8603      ;;
8604
8605    uts4*)
8606      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8607      hardcode_libdir_flag_spec='-L$libdir'
8608      hardcode_shlibpath_var=no
8609      ;;
8610
8611    *)
8612      ld_shlibs=no
8613      ;;
8614    esac
8615  fi
8616
8617{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8618echo "${ECHO_T}$ld_shlibs" >&6; }
8619test "$ld_shlibs" = no && can_build_shared=no
8620
8621#
8622# Do we need to explicitly link libc?
8623#
8624case "x$archive_cmds_need_lc" in
8625x|xyes)
8626  # Assume -lc should be added
8627  archive_cmds_need_lc=yes
8628
8629  if test "$enable_shared" = yes && test "$GCC" = yes; then
8630    case $archive_cmds in
8631    *'~'*)
8632      # FIXME: we may have to deal with multi-command sequences.
8633      ;;
8634    '$CC '*)
8635      # Test whether the compiler implicitly links with -lc since on some
8636      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8637      # to ld, don't add -lc before -lgcc.
8638      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8639echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8640      $rm conftest*
8641      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8642
8643      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8644  (eval $ac_compile) 2>&5
8645  ac_status=$?
8646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647  (exit $ac_status); } 2>conftest.err; then
8648        soname=conftest
8649        lib=conftest
8650        libobjs=conftest.$ac_objext
8651        deplibs=
8652        wl=$lt_prog_compiler_wl
8653	pic_flag=$lt_prog_compiler_pic
8654        compiler_flags=-v
8655        linker_flags=-v
8656        verstring=
8657        output_objdir=.
8658        libname=conftest
8659        lt_save_allow_undefined_flag=$allow_undefined_flag
8660        allow_undefined_flag=
8661        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8662  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8663  ac_status=$?
8664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665  (exit $ac_status); }
8666        then
8667	  archive_cmds_need_lc=no
8668        else
8669	  archive_cmds_need_lc=yes
8670        fi
8671        allow_undefined_flag=$lt_save_allow_undefined_flag
8672      else
8673        cat conftest.err 1>&5
8674      fi
8675      $rm conftest*
8676      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8677echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8678      ;;
8679    esac
8680  fi
8681  ;;
8682esac
8683
8684{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8685echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8686library_names_spec=
8687libname_spec='lib$name'
8688soname_spec=
8689shrext_cmds=".so"
8690postinstall_cmds=
8691postuninstall_cmds=
8692finish_cmds=
8693finish_eval=
8694shlibpath_var=
8695shlibpath_overrides_runpath=unknown
8696version_type=none
8697dynamic_linker="$host_os ld.so"
8698sys_lib_dlsearch_path_spec="/lib /usr/lib"
8699
8700if test "$GCC" = yes; then
8701  case $host_os in
8702    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8703    *) lt_awk_arg="/^libraries:/" ;;
8704  esac
8705  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8706  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8707    # if the path contains ";" then we assume it to be the separator
8708    # otherwise default to the standard path separator (i.e. ":") - it is
8709    # assumed that no part of a normal pathname contains ";" but that should
8710    # okay in the real world where ";" in dirpaths is itself problematic.
8711    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8712  else
8713    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8714  fi
8715  # Ok, now we have the path, separated by spaces, we can step through it
8716  # and add multilib dir if necessary.
8717  lt_tmp_lt_search_path_spec=
8718  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8719  for lt_sys_path in $lt_search_path_spec; do
8720    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8721      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8722    else
8723      test -d "$lt_sys_path" && \
8724	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8725    fi
8726  done
8727  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8728BEGIN {RS=" "; FS="/|\n";} {
8729  lt_foo="";
8730  lt_count=0;
8731  for (lt_i = NF; lt_i > 0; lt_i--) {
8732    if ($lt_i != "" && $lt_i != ".") {
8733      if ($lt_i == "..") {
8734        lt_count++;
8735      } else {
8736        if (lt_count == 0) {
8737          lt_foo="/" $lt_i lt_foo;
8738        } else {
8739          lt_count--;
8740        }
8741      }
8742    }
8743  }
8744  if (lt_foo != "") { lt_freq[lt_foo]++; }
8745  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8746}'`
8747  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8748else
8749  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8750fi
8751need_lib_prefix=unknown
8752hardcode_into_libs=no
8753
8754# when you set need_version to no, make sure it does not cause -set_version
8755# flags to be left without arguments
8756need_version=unknown
8757
8758case $host_os in
8759aix3*)
8760  version_type=linux
8761  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8762  shlibpath_var=LIBPATH
8763
8764  # AIX 3 has no versioning support, so we append a major version to the name.
8765  soname_spec='${libname}${release}${shared_ext}$major'
8766  ;;
8767
8768aix4* | aix5*)
8769  version_type=linux
8770  need_lib_prefix=no
8771  need_version=no
8772  hardcode_into_libs=yes
8773  if test "$host_cpu" = ia64; then
8774    # AIX 5 supports IA64
8775    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8776    shlibpath_var=LD_LIBRARY_PATH
8777  else
8778    # With GCC up to 2.95.x, collect2 would create an import file
8779    # for dependence libraries.  The import file would start with
8780    # the line `#! .'.  This would cause the generated library to
8781    # depend on `.', always an invalid library.  This was fixed in
8782    # development snapshots of GCC prior to 3.0.
8783    case $host_os in
8784      aix4 | aix4.[01] | aix4.[01].*)
8785      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8786	   echo ' yes '
8787	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8788	:
8789      else
8790	can_build_shared=no
8791      fi
8792      ;;
8793    esac
8794    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8795    # soname into executable. Probably we can add versioning support to
8796    # collect2, so additional links can be useful in future.
8797    if test "$aix_use_runtimelinking" = yes; then
8798      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8799      # instead of lib<name>.a to let people know that these are not
8800      # typical AIX shared libraries.
8801      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8802    else
8803      # We preserve .a as extension for shared libraries through AIX4.2
8804      # and later when we are not doing run time linking.
8805      library_names_spec='${libname}${release}.a $libname.a'
8806      soname_spec='${libname}${release}${shared_ext}$major'
8807    fi
8808    shlibpath_var=LIBPATH
8809  fi
8810  ;;
8811
8812amigaos*)
8813  library_names_spec='$libname.ixlibrary $libname.a'
8814  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8815  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'
8816  ;;
8817
8818beos*)
8819  library_names_spec='${libname}${shared_ext}'
8820  dynamic_linker="$host_os ld.so"
8821  shlibpath_var=LIBRARY_PATH
8822  ;;
8823
8824bsdi[45]*)
8825  version_type=linux
8826  need_version=no
8827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828  soname_spec='${libname}${release}${shared_ext}$major'
8829  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8830  shlibpath_var=LD_LIBRARY_PATH
8831  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8832  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8833  # the default ld.so.conf also contains /usr/contrib/lib and
8834  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8835  # libtool to hard-code these into programs
8836  ;;
8837
8838cygwin* | mingw* | pw32*)
8839  version_type=windows
8840  shrext_cmds=".dll"
8841  need_version=no
8842  need_lib_prefix=no
8843
8844  case $GCC,$host_os in
8845  yes,cygwin* | yes,mingw* | yes,pw32*)
8846    library_names_spec='$libname.dll.a'
8847    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8848    postinstall_cmds='base_file=`basename \${file}`~
8849      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8850      dldir=$destdir/`dirname \$dlpath`~
8851      test -d \$dldir || mkdir -p \$dldir~
8852      $install_prog $dir/$dlname \$dldir/$dlname~
8853      chmod a+x \$dldir/$dlname'
8854    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8855      dlpath=$dir/\$dldll~
8856       $rm \$dlpath'
8857    shlibpath_overrides_runpath=yes
8858
8859    case $host_os in
8860    cygwin*)
8861      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8862      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8863      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8864      ;;
8865    mingw*)
8866      # MinGW DLLs use traditional 'lib' prefix
8867      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8868      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8869      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8870        # It is most probably a Windows format PATH printed by
8871        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8872        # path with ; separators, and with drive letters. We can handle the
8873        # drive letters (cygwin fileutils understands them), so leave them,
8874        # especially as we might pass files found there to a mingw objdump,
8875        # which wouldn't understand a cygwinified path. Ahh.
8876        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8877      else
8878        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8879      fi
8880      ;;
8881    pw32*)
8882      # pw32 DLLs use 'pw' prefix rather than 'lib'
8883      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8884      ;;
8885    esac
8886    ;;
8887
8888  *)
8889    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8890    ;;
8891  esac
8892  dynamic_linker='Win32 ld.exe'
8893  # FIXME: first we should search . and the directory the executable is in
8894  shlibpath_var=PATH
8895  ;;
8896
8897darwin* | rhapsody*)
8898  dynamic_linker="$host_os dyld"
8899  version_type=darwin
8900  need_lib_prefix=no
8901  need_version=no
8902  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8903  soname_spec='${libname}${release}${major}$shared_ext'
8904  shlibpath_overrides_runpath=yes
8905  shlibpath_var=DYLD_LIBRARY_PATH
8906  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8907
8908  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8909  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8910  ;;
8911
8912dgux*)
8913  version_type=linux
8914  need_lib_prefix=no
8915  need_version=no
8916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8917  soname_spec='${libname}${release}${shared_ext}$major'
8918  shlibpath_var=LD_LIBRARY_PATH
8919  ;;
8920
8921freebsd1*)
8922  dynamic_linker=no
8923  ;;
8924
8925freebsd* | dragonfly*)
8926  # DragonFly does not have aout.  When/if they implement a new
8927  # versioning mechanism, adjust this.
8928  if test -x /usr/bin/objformat; then
8929    objformat=`/usr/bin/objformat`
8930  else
8931    case $host_os in
8932    freebsd[123]*) objformat=aout ;;
8933    *) objformat=elf ;;
8934    esac
8935  fi
8936  version_type=freebsd-$objformat
8937  case $version_type in
8938    freebsd-elf*)
8939      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8940      need_version=no
8941      need_lib_prefix=no
8942      ;;
8943    freebsd-*)
8944      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8945      need_version=yes
8946      ;;
8947  esac
8948  shlibpath_var=LD_LIBRARY_PATH
8949  case $host_os in
8950  freebsd2*)
8951    shlibpath_overrides_runpath=yes
8952    ;;
8953  freebsd3.[01]* | freebsdelf3.[01]*)
8954    shlibpath_overrides_runpath=yes
8955    hardcode_into_libs=yes
8956    ;;
8957  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8958  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8959    shlibpath_overrides_runpath=no
8960    hardcode_into_libs=yes
8961    ;;
8962  *) # from 4.6 on, and DragonFly
8963    shlibpath_overrides_runpath=yes
8964    hardcode_into_libs=yes
8965    ;;
8966  esac
8967  ;;
8968
8969gnu*)
8970  version_type=linux
8971  need_lib_prefix=no
8972  need_version=no
8973  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8974  soname_spec='${libname}${release}${shared_ext}$major'
8975  shlibpath_var=LD_LIBRARY_PATH
8976  hardcode_into_libs=yes
8977  ;;
8978
8979hpux9* | hpux10* | hpux11*)
8980  # Give a soname corresponding to the major version so that dld.sl refuses to
8981  # link against other versions.
8982  version_type=sunos
8983  need_lib_prefix=no
8984  need_version=no
8985  case $host_cpu in
8986  ia64*)
8987    shrext_cmds='.so'
8988    hardcode_into_libs=yes
8989    dynamic_linker="$host_os dld.so"
8990    shlibpath_var=LD_LIBRARY_PATH
8991    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8992    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993    soname_spec='${libname}${release}${shared_ext}$major'
8994    if test "X$HPUX_IA64_MODE" = X32; then
8995      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8996    else
8997      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8998    fi
8999    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9000    ;;
9001   hppa*64*)
9002     shrext_cmds='.sl'
9003     hardcode_into_libs=yes
9004     dynamic_linker="$host_os dld.sl"
9005     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9006     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008     soname_spec='${libname}${release}${shared_ext}$major'
9009     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9010     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9011     ;;
9012   *)
9013    shrext_cmds='.sl'
9014    dynamic_linker="$host_os dld.sl"
9015    shlibpath_var=SHLIB_PATH
9016    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9017    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9018    soname_spec='${libname}${release}${shared_ext}$major'
9019    ;;
9020  esac
9021  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9022  postinstall_cmds='chmod 555 $lib'
9023  ;;
9024
9025interix[3-9]*)
9026  version_type=linux
9027  need_lib_prefix=no
9028  need_version=no
9029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9030  soname_spec='${libname}${release}${shared_ext}$major'
9031  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9032  shlibpath_var=LD_LIBRARY_PATH
9033  shlibpath_overrides_runpath=no
9034  hardcode_into_libs=yes
9035  ;;
9036
9037irix5* | irix6* | nonstopux*)
9038  case $host_os in
9039    nonstopux*) version_type=nonstopux ;;
9040    *)
9041	if test "$lt_cv_prog_gnu_ld" = yes; then
9042		version_type=linux
9043	else
9044		version_type=irix
9045	fi ;;
9046  esac
9047  need_lib_prefix=no
9048  need_version=no
9049  soname_spec='${libname}${release}${shared_ext}$major'
9050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9051  case $host_os in
9052  irix5* | nonstopux*)
9053    libsuff= shlibsuff=
9054    ;;
9055  *)
9056    case $LD in # libtool.m4 will add one of these switches to LD
9057    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9058      libsuff= shlibsuff= libmagic=32-bit;;
9059    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9060      libsuff=32 shlibsuff=N32 libmagic=N32;;
9061    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9062      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9063    *) libsuff= shlibsuff= libmagic=never-match;;
9064    esac
9065    ;;
9066  esac
9067  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9068  shlibpath_overrides_runpath=no
9069  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9070  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9071  hardcode_into_libs=yes
9072  ;;
9073
9074# No shared lib support for Linux oldld, aout, or coff.
9075linux*oldld* | linux*aout* | linux*coff*)
9076  dynamic_linker=no
9077  ;;
9078
9079# This must be Linux ELF.
9080linux* | k*bsd*-gnu)
9081  version_type=linux
9082  need_lib_prefix=no
9083  need_version=no
9084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085  soname_spec='${libname}${release}${shared_ext}$major'
9086  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9087  shlibpath_var=LD_LIBRARY_PATH
9088  shlibpath_overrides_runpath=no
9089  # This implies no fast_install, which is unacceptable.
9090  # Some rework will be needed to allow for fast_install
9091  # before this can be enabled.
9092  hardcode_into_libs=yes
9093  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9094  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9095
9096  # Append ld.so.conf contents to the search path
9097  if test -f /etc/ld.so.conf; then
9098    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' ' '`
9099    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9100  fi
9101
9102  # We used to test for /lib/ld.so.1 and disable shared libraries on
9103  # powerpc, because MkLinux only supported shared libraries with the
9104  # GNU dynamic linker.  Since this was broken with cross compilers,
9105  # most powerpc-linux boxes support dynamic linking these days and
9106  # people can always --disable-shared, the test was removed, and we
9107  # assume the GNU/Linux dynamic linker is in use.
9108  dynamic_linker='GNU/Linux ld.so'
9109  ;;
9110
9111netbsd*)
9112  version_type=sunos
9113  need_lib_prefix=no
9114  need_version=no
9115  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9116    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9117    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9118    dynamic_linker='NetBSD (a.out) ld.so'
9119  else
9120    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9121    soname_spec='${libname}${release}${shared_ext}$major'
9122    dynamic_linker='NetBSD ld.elf_so'
9123  fi
9124  shlibpath_var=LD_LIBRARY_PATH
9125  shlibpath_overrides_runpath=yes
9126  hardcode_into_libs=yes
9127  ;;
9128
9129newsos6)
9130  version_type=linux
9131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132  shlibpath_var=LD_LIBRARY_PATH
9133  shlibpath_overrides_runpath=yes
9134  ;;
9135
9136nto-qnx*)
9137  version_type=linux
9138  need_lib_prefix=no
9139  need_version=no
9140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141  soname_spec='${libname}${release}${shared_ext}$major'
9142  shlibpath_var=LD_LIBRARY_PATH
9143  shlibpath_overrides_runpath=yes
9144  ;;
9145
9146openbsd*)
9147  version_type=sunos
9148  sys_lib_dlsearch_path_spec="/usr/lib"
9149  need_lib_prefix=no
9150  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9151  case $host_os in
9152    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9153    *)                         need_version=no  ;;
9154  esac
9155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9156  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9157  shlibpath_var=LD_LIBRARY_PATH
9158  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9159    case $host_os in
9160      openbsd2.[89] | openbsd2.[89].*)
9161	shlibpath_overrides_runpath=no
9162	;;
9163      *)
9164	shlibpath_overrides_runpath=yes
9165	;;
9166      esac
9167  else
9168    shlibpath_overrides_runpath=yes
9169  fi
9170  ;;
9171
9172os2*)
9173  libname_spec='$name'
9174  shrext_cmds=".dll"
9175  need_lib_prefix=no
9176  library_names_spec='$libname${shared_ext} $libname.a'
9177  dynamic_linker='OS/2 ld.exe'
9178  shlibpath_var=LIBPATH
9179  ;;
9180
9181osf3* | osf4* | osf5*)
9182  version_type=osf
9183  need_lib_prefix=no
9184  need_version=no
9185  soname_spec='${libname}${release}${shared_ext}$major'
9186  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187  shlibpath_var=LD_LIBRARY_PATH
9188  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9189  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9190  ;;
9191
9192rdos*)
9193  dynamic_linker=no
9194  ;;
9195
9196solaris*)
9197  version_type=linux
9198  need_lib_prefix=no
9199  need_version=no
9200  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201  soname_spec='${libname}${release}${shared_ext}$major'
9202  shlibpath_var=LD_LIBRARY_PATH
9203  shlibpath_overrides_runpath=yes
9204  hardcode_into_libs=yes
9205  # ldd complains unless libraries are executable
9206  postinstall_cmds='chmod +x $lib'
9207  ;;
9208
9209sunos4*)
9210  version_type=sunos
9211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9212  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9213  shlibpath_var=LD_LIBRARY_PATH
9214  shlibpath_overrides_runpath=yes
9215  if test "$with_gnu_ld" = yes; then
9216    need_lib_prefix=no
9217  fi
9218  need_version=yes
9219  ;;
9220
9221sysv4 | sysv4.3*)
9222  version_type=linux
9223  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224  soname_spec='${libname}${release}${shared_ext}$major'
9225  shlibpath_var=LD_LIBRARY_PATH
9226  case $host_vendor in
9227    sni)
9228      shlibpath_overrides_runpath=no
9229      need_lib_prefix=no
9230      export_dynamic_flag_spec='${wl}-Blargedynsym'
9231      runpath_var=LD_RUN_PATH
9232      ;;
9233    siemens)
9234      need_lib_prefix=no
9235      ;;
9236    motorola)
9237      need_lib_prefix=no
9238      need_version=no
9239      shlibpath_overrides_runpath=no
9240      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9241      ;;
9242  esac
9243  ;;
9244
9245sysv4*MP*)
9246  if test -d /usr/nec ;then
9247    version_type=linux
9248    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9249    soname_spec='$libname${shared_ext}.$major'
9250    shlibpath_var=LD_LIBRARY_PATH
9251  fi
9252  ;;
9253
9254sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9255  version_type=freebsd-elf
9256  need_lib_prefix=no
9257  need_version=no
9258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9259  soname_spec='${libname}${release}${shared_ext}$major'
9260  shlibpath_var=LD_LIBRARY_PATH
9261  hardcode_into_libs=yes
9262  if test "$with_gnu_ld" = yes; then
9263    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9264    shlibpath_overrides_runpath=no
9265  else
9266    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9267    shlibpath_overrides_runpath=yes
9268    case $host_os in
9269      sco3.2v5*)
9270        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9271	;;
9272    esac
9273  fi
9274  sys_lib_dlsearch_path_spec='/usr/lib'
9275  ;;
9276
9277uts4*)
9278  version_type=linux
9279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280  soname_spec='${libname}${release}${shared_ext}$major'
9281  shlibpath_var=LD_LIBRARY_PATH
9282  ;;
9283
9284*)
9285  dynamic_linker=no
9286  ;;
9287esac
9288{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9289echo "${ECHO_T}$dynamic_linker" >&6; }
9290test "$dynamic_linker" = no && can_build_shared=no
9291
9292variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9293if test "$GCC" = yes; then
9294  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9295fi
9296
9297{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9298echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9299hardcode_action=
9300if test -n "$hardcode_libdir_flag_spec" || \
9301   test -n "$runpath_var" || \
9302   test "X$hardcode_automatic" = "Xyes" ; then
9303
9304  # We can hardcode non-existant directories.
9305  if test "$hardcode_direct" != no &&
9306     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9307     # have to relink, otherwise we might link with an installed library
9308     # when we should be linking with a yet-to-be-installed one
9309     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9310     test "$hardcode_minus_L" != no; then
9311    # Linking always hardcodes the temporary library directory.
9312    hardcode_action=relink
9313  else
9314    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9315    hardcode_action=immediate
9316  fi
9317else
9318  # We cannot hardcode anything, or else we can only hardcode existing
9319  # directories.
9320  hardcode_action=unsupported
9321fi
9322{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9323echo "${ECHO_T}$hardcode_action" >&6; }
9324
9325if test "$hardcode_action" = relink; then
9326  # Fast installation is not supported
9327  enable_fast_install=no
9328elif test "$shlibpath_overrides_runpath" = yes ||
9329     test "$enable_shared" = no; then
9330  # Fast installation is not necessary
9331  enable_fast_install=needless
9332fi
9333
9334striplib=
9335old_striplib=
9336{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9337echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9338if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9339  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9340  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9341  { echo "$as_me:$LINENO: result: yes" >&5
9342echo "${ECHO_T}yes" >&6; }
9343else
9344# FIXME - insert some real tests, host_os isn't really good enough
9345  case $host_os in
9346   darwin*)
9347       if test -n "$STRIP" ; then
9348         striplib="$STRIP -x"
9349         old_striplib="$STRIP -S"
9350         { echo "$as_me:$LINENO: result: yes" >&5
9351echo "${ECHO_T}yes" >&6; }
9352       else
9353  { echo "$as_me:$LINENO: result: no" >&5
9354echo "${ECHO_T}no" >&6; }
9355fi
9356       ;;
9357   *)
9358  { echo "$as_me:$LINENO: result: no" >&5
9359echo "${ECHO_T}no" >&6; }
9360    ;;
9361  esac
9362fi
9363
9364if test "x$enable_dlopen" != xyes; then
9365  enable_dlopen=unknown
9366  enable_dlopen_self=unknown
9367  enable_dlopen_self_static=unknown
9368else
9369  lt_cv_dlopen=no
9370  lt_cv_dlopen_libs=
9371
9372  case $host_os in
9373  beos*)
9374    lt_cv_dlopen="load_add_on"
9375    lt_cv_dlopen_libs=
9376    lt_cv_dlopen_self=yes
9377    ;;
9378
9379  mingw* | pw32*)
9380    lt_cv_dlopen="LoadLibrary"
9381    lt_cv_dlopen_libs=
9382   ;;
9383
9384  cygwin*)
9385    lt_cv_dlopen="dlopen"
9386    lt_cv_dlopen_libs=
9387   ;;
9388
9389  darwin*)
9390  # if libdl is installed we need to link against it
9391    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9392echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9393if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9394  echo $ECHO_N "(cached) $ECHO_C" >&6
9395else
9396  ac_check_lib_save_LIBS=$LIBS
9397LIBS="-ldl  $LIBS"
9398cat >conftest.$ac_ext <<_ACEOF
9399/* confdefs.h.  */
9400_ACEOF
9401cat confdefs.h >>conftest.$ac_ext
9402cat >>conftest.$ac_ext <<_ACEOF
9403/* end confdefs.h.  */
9404
9405/* Override any GCC internal prototype to avoid an error.
9406   Use char because int might match the return type of a GCC
9407   builtin and then its argument prototype would still apply.  */
9408#ifdef __cplusplus
9409extern "C"
9410#endif
9411char dlopen ();
9412int
9413main ()
9414{
9415return dlopen ();
9416  ;
9417  return 0;
9418}
9419_ACEOF
9420rm -f conftest.$ac_objext conftest$ac_exeext
9421if { (ac_try="$ac_link"
9422case "(($ac_try" in
9423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9424  *) ac_try_echo=$ac_try;;
9425esac
9426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9427  (eval "$ac_link") 2>conftest.er1
9428  ac_status=$?
9429  grep -v '^ *+' conftest.er1 >conftest.err
9430  rm -f conftest.er1
9431  cat conftest.err >&5
9432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433  (exit $ac_status); } && {
9434	 test -z "$ac_c_werror_flag" ||
9435	 test ! -s conftest.err
9436       } && test -s conftest$ac_exeext &&
9437       $as_test_x conftest$ac_exeext; then
9438  ac_cv_lib_dl_dlopen=yes
9439else
9440  echo "$as_me: failed program was:" >&5
9441sed 's/^/| /' conftest.$ac_ext >&5
9442
9443	ac_cv_lib_dl_dlopen=no
9444fi
9445
9446rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9447      conftest$ac_exeext conftest.$ac_ext
9448LIBS=$ac_check_lib_save_LIBS
9449fi
9450{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9451echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9452if test $ac_cv_lib_dl_dlopen = yes; then
9453  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9454else
9455
9456    lt_cv_dlopen="dyld"
9457    lt_cv_dlopen_libs=
9458    lt_cv_dlopen_self=yes
9459
9460fi
9461
9462   ;;
9463
9464  *)
9465    { echo "$as_me:$LINENO: checking for shl_load" >&5
9466echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9467if test "${ac_cv_func_shl_load+set}" = set; then
9468  echo $ECHO_N "(cached) $ECHO_C" >&6
9469else
9470  cat >conftest.$ac_ext <<_ACEOF
9471/* confdefs.h.  */
9472_ACEOF
9473cat confdefs.h >>conftest.$ac_ext
9474cat >>conftest.$ac_ext <<_ACEOF
9475/* end confdefs.h.  */
9476/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9477   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9478#define shl_load innocuous_shl_load
9479
9480/* System header to define __stub macros and hopefully few prototypes,
9481    which can conflict with char shl_load (); below.
9482    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9483    <limits.h> exists even on freestanding compilers.  */
9484
9485#ifdef __STDC__
9486# include <limits.h>
9487#else
9488# include <assert.h>
9489#endif
9490
9491#undef shl_load
9492
9493/* Override any GCC internal prototype to avoid an error.
9494   Use char because int might match the return type of a GCC
9495   builtin and then its argument prototype would still apply.  */
9496#ifdef __cplusplus
9497extern "C"
9498#endif
9499char shl_load ();
9500/* The GNU C library defines this for functions which it implements
9501    to always fail with ENOSYS.  Some functions are actually named
9502    something starting with __ and the normal name is an alias.  */
9503#if defined __stub_shl_load || defined __stub___shl_load
9504choke me
9505#endif
9506
9507int
9508main ()
9509{
9510return shl_load ();
9511  ;
9512  return 0;
9513}
9514_ACEOF
9515rm -f conftest.$ac_objext conftest$ac_exeext
9516if { (ac_try="$ac_link"
9517case "(($ac_try" in
9518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9519  *) ac_try_echo=$ac_try;;
9520esac
9521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9522  (eval "$ac_link") 2>conftest.er1
9523  ac_status=$?
9524  grep -v '^ *+' conftest.er1 >conftest.err
9525  rm -f conftest.er1
9526  cat conftest.err >&5
9527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528  (exit $ac_status); } && {
9529	 test -z "$ac_c_werror_flag" ||
9530	 test ! -s conftest.err
9531       } && test -s conftest$ac_exeext &&
9532       $as_test_x conftest$ac_exeext; then
9533  ac_cv_func_shl_load=yes
9534else
9535  echo "$as_me: failed program was:" >&5
9536sed 's/^/| /' conftest.$ac_ext >&5
9537
9538	ac_cv_func_shl_load=no
9539fi
9540
9541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9542      conftest$ac_exeext conftest.$ac_ext
9543fi
9544{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9545echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9546if test $ac_cv_func_shl_load = yes; then
9547  lt_cv_dlopen="shl_load"
9548else
9549  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9550echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9551if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9552  echo $ECHO_N "(cached) $ECHO_C" >&6
9553else
9554  ac_check_lib_save_LIBS=$LIBS
9555LIBS="-ldld  $LIBS"
9556cat >conftest.$ac_ext <<_ACEOF
9557/* confdefs.h.  */
9558_ACEOF
9559cat confdefs.h >>conftest.$ac_ext
9560cat >>conftest.$ac_ext <<_ACEOF
9561/* end confdefs.h.  */
9562
9563/* Override any GCC internal prototype to avoid an error.
9564   Use char because int might match the return type of a GCC
9565   builtin and then its argument prototype would still apply.  */
9566#ifdef __cplusplus
9567extern "C"
9568#endif
9569char shl_load ();
9570int
9571main ()
9572{
9573return shl_load ();
9574  ;
9575  return 0;
9576}
9577_ACEOF
9578rm -f conftest.$ac_objext conftest$ac_exeext
9579if { (ac_try="$ac_link"
9580case "(($ac_try" in
9581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582  *) ac_try_echo=$ac_try;;
9583esac
9584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585  (eval "$ac_link") 2>conftest.er1
9586  ac_status=$?
9587  grep -v '^ *+' conftest.er1 >conftest.err
9588  rm -f conftest.er1
9589  cat conftest.err >&5
9590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591  (exit $ac_status); } && {
9592	 test -z "$ac_c_werror_flag" ||
9593	 test ! -s conftest.err
9594       } && test -s conftest$ac_exeext &&
9595       $as_test_x conftest$ac_exeext; then
9596  ac_cv_lib_dld_shl_load=yes
9597else
9598  echo "$as_me: failed program was:" >&5
9599sed 's/^/| /' conftest.$ac_ext >&5
9600
9601	ac_cv_lib_dld_shl_load=no
9602fi
9603
9604rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9605      conftest$ac_exeext conftest.$ac_ext
9606LIBS=$ac_check_lib_save_LIBS
9607fi
9608{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9609echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9610if test $ac_cv_lib_dld_shl_load = yes; then
9611  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9612else
9613  { echo "$as_me:$LINENO: checking for dlopen" >&5
9614echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9615if test "${ac_cv_func_dlopen+set}" = set; then
9616  echo $ECHO_N "(cached) $ECHO_C" >&6
9617else
9618  cat >conftest.$ac_ext <<_ACEOF
9619/* confdefs.h.  */
9620_ACEOF
9621cat confdefs.h >>conftest.$ac_ext
9622cat >>conftest.$ac_ext <<_ACEOF
9623/* end confdefs.h.  */
9624/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9625   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9626#define dlopen innocuous_dlopen
9627
9628/* System header to define __stub macros and hopefully few prototypes,
9629    which can conflict with char dlopen (); below.
9630    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9631    <limits.h> exists even on freestanding compilers.  */
9632
9633#ifdef __STDC__
9634# include <limits.h>
9635#else
9636# include <assert.h>
9637#endif
9638
9639#undef dlopen
9640
9641/* Override any GCC internal prototype to avoid an error.
9642   Use char because int might match the return type of a GCC
9643   builtin and then its argument prototype would still apply.  */
9644#ifdef __cplusplus
9645extern "C"
9646#endif
9647char dlopen ();
9648/* The GNU C library defines this for functions which it implements
9649    to always fail with ENOSYS.  Some functions are actually named
9650    something starting with __ and the normal name is an alias.  */
9651#if defined __stub_dlopen || defined __stub___dlopen
9652choke me
9653#endif
9654
9655int
9656main ()
9657{
9658return dlopen ();
9659  ;
9660  return 0;
9661}
9662_ACEOF
9663rm -f conftest.$ac_objext conftest$ac_exeext
9664if { (ac_try="$ac_link"
9665case "(($ac_try" in
9666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667  *) ac_try_echo=$ac_try;;
9668esac
9669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670  (eval "$ac_link") 2>conftest.er1
9671  ac_status=$?
9672  grep -v '^ *+' conftest.er1 >conftest.err
9673  rm -f conftest.er1
9674  cat conftest.err >&5
9675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676  (exit $ac_status); } && {
9677	 test -z "$ac_c_werror_flag" ||
9678	 test ! -s conftest.err
9679       } && test -s conftest$ac_exeext &&
9680       $as_test_x conftest$ac_exeext; then
9681  ac_cv_func_dlopen=yes
9682else
9683  echo "$as_me: failed program was:" >&5
9684sed 's/^/| /' conftest.$ac_ext >&5
9685
9686	ac_cv_func_dlopen=no
9687fi
9688
9689rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9690      conftest$ac_exeext conftest.$ac_ext
9691fi
9692{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9693echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9694if test $ac_cv_func_dlopen = yes; then
9695  lt_cv_dlopen="dlopen"
9696else
9697  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9698echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9699if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9700  echo $ECHO_N "(cached) $ECHO_C" >&6
9701else
9702  ac_check_lib_save_LIBS=$LIBS
9703LIBS="-ldl  $LIBS"
9704cat >conftest.$ac_ext <<_ACEOF
9705/* confdefs.h.  */
9706_ACEOF
9707cat confdefs.h >>conftest.$ac_ext
9708cat >>conftest.$ac_ext <<_ACEOF
9709/* end confdefs.h.  */
9710
9711/* Override any GCC internal prototype to avoid an error.
9712   Use char because int might match the return type of a GCC
9713   builtin and then its argument prototype would still apply.  */
9714#ifdef __cplusplus
9715extern "C"
9716#endif
9717char dlopen ();
9718int
9719main ()
9720{
9721return dlopen ();
9722  ;
9723  return 0;
9724}
9725_ACEOF
9726rm -f conftest.$ac_objext conftest$ac_exeext
9727if { (ac_try="$ac_link"
9728case "(($ac_try" in
9729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730  *) ac_try_echo=$ac_try;;
9731esac
9732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733  (eval "$ac_link") 2>conftest.er1
9734  ac_status=$?
9735  grep -v '^ *+' conftest.er1 >conftest.err
9736  rm -f conftest.er1
9737  cat conftest.err >&5
9738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739  (exit $ac_status); } && {
9740	 test -z "$ac_c_werror_flag" ||
9741	 test ! -s conftest.err
9742       } && test -s conftest$ac_exeext &&
9743       $as_test_x conftest$ac_exeext; then
9744  ac_cv_lib_dl_dlopen=yes
9745else
9746  echo "$as_me: failed program was:" >&5
9747sed 's/^/| /' conftest.$ac_ext >&5
9748
9749	ac_cv_lib_dl_dlopen=no
9750fi
9751
9752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9753      conftest$ac_exeext conftest.$ac_ext
9754LIBS=$ac_check_lib_save_LIBS
9755fi
9756{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9757echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9758if test $ac_cv_lib_dl_dlopen = yes; then
9759  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9760else
9761  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9762echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9763if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9764  echo $ECHO_N "(cached) $ECHO_C" >&6
9765else
9766  ac_check_lib_save_LIBS=$LIBS
9767LIBS="-lsvld  $LIBS"
9768cat >conftest.$ac_ext <<_ACEOF
9769/* confdefs.h.  */
9770_ACEOF
9771cat confdefs.h >>conftest.$ac_ext
9772cat >>conftest.$ac_ext <<_ACEOF
9773/* end confdefs.h.  */
9774
9775/* Override any GCC internal prototype to avoid an error.
9776   Use char because int might match the return type of a GCC
9777   builtin and then its argument prototype would still apply.  */
9778#ifdef __cplusplus
9779extern "C"
9780#endif
9781char dlopen ();
9782int
9783main ()
9784{
9785return dlopen ();
9786  ;
9787  return 0;
9788}
9789_ACEOF
9790rm -f conftest.$ac_objext conftest$ac_exeext
9791if { (ac_try="$ac_link"
9792case "(($ac_try" in
9793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794  *) ac_try_echo=$ac_try;;
9795esac
9796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9797  (eval "$ac_link") 2>conftest.er1
9798  ac_status=$?
9799  grep -v '^ *+' conftest.er1 >conftest.err
9800  rm -f conftest.er1
9801  cat conftest.err >&5
9802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803  (exit $ac_status); } && {
9804	 test -z "$ac_c_werror_flag" ||
9805	 test ! -s conftest.err
9806       } && test -s conftest$ac_exeext &&
9807       $as_test_x conftest$ac_exeext; then
9808  ac_cv_lib_svld_dlopen=yes
9809else
9810  echo "$as_me: failed program was:" >&5
9811sed 's/^/| /' conftest.$ac_ext >&5
9812
9813	ac_cv_lib_svld_dlopen=no
9814fi
9815
9816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9817      conftest$ac_exeext conftest.$ac_ext
9818LIBS=$ac_check_lib_save_LIBS
9819fi
9820{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9821echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9822if test $ac_cv_lib_svld_dlopen = yes; then
9823  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9824else
9825  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9826echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9827if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9828  echo $ECHO_N "(cached) $ECHO_C" >&6
9829else
9830  ac_check_lib_save_LIBS=$LIBS
9831LIBS="-ldld  $LIBS"
9832cat >conftest.$ac_ext <<_ACEOF
9833/* confdefs.h.  */
9834_ACEOF
9835cat confdefs.h >>conftest.$ac_ext
9836cat >>conftest.$ac_ext <<_ACEOF
9837/* end confdefs.h.  */
9838
9839/* Override any GCC internal prototype to avoid an error.
9840   Use char because int might match the return type of a GCC
9841   builtin and then its argument prototype would still apply.  */
9842#ifdef __cplusplus
9843extern "C"
9844#endif
9845char dld_link ();
9846int
9847main ()
9848{
9849return dld_link ();
9850  ;
9851  return 0;
9852}
9853_ACEOF
9854rm -f conftest.$ac_objext conftest$ac_exeext
9855if { (ac_try="$ac_link"
9856case "(($ac_try" in
9857  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858  *) ac_try_echo=$ac_try;;
9859esac
9860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861  (eval "$ac_link") 2>conftest.er1
9862  ac_status=$?
9863  grep -v '^ *+' conftest.er1 >conftest.err
9864  rm -f conftest.er1
9865  cat conftest.err >&5
9866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867  (exit $ac_status); } && {
9868	 test -z "$ac_c_werror_flag" ||
9869	 test ! -s conftest.err
9870       } && test -s conftest$ac_exeext &&
9871       $as_test_x conftest$ac_exeext; then
9872  ac_cv_lib_dld_dld_link=yes
9873else
9874  echo "$as_me: failed program was:" >&5
9875sed 's/^/| /' conftest.$ac_ext >&5
9876
9877	ac_cv_lib_dld_dld_link=no
9878fi
9879
9880rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9881      conftest$ac_exeext conftest.$ac_ext
9882LIBS=$ac_check_lib_save_LIBS
9883fi
9884{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9885echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9886if test $ac_cv_lib_dld_dld_link = yes; then
9887  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9888fi
9889
9890
9891fi
9892
9893
9894fi
9895
9896
9897fi
9898
9899
9900fi
9901
9902
9903fi
9904
9905    ;;
9906  esac
9907
9908  if test "x$lt_cv_dlopen" != xno; then
9909    enable_dlopen=yes
9910  else
9911    enable_dlopen=no
9912  fi
9913
9914  case $lt_cv_dlopen in
9915  dlopen)
9916    save_CPPFLAGS="$CPPFLAGS"
9917    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9918
9919    save_LDFLAGS="$LDFLAGS"
9920    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9921
9922    save_LIBS="$LIBS"
9923    LIBS="$lt_cv_dlopen_libs $LIBS"
9924
9925    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9926echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9927if test "${lt_cv_dlopen_self+set}" = set; then
9928  echo $ECHO_N "(cached) $ECHO_C" >&6
9929else
9930  	  if test "$cross_compiling" = yes; then :
9931  lt_cv_dlopen_self=cross
9932else
9933  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9934  lt_status=$lt_dlunknown
9935  cat > conftest.$ac_ext <<EOF
9936#line 9936 "configure"
9937#include "confdefs.h"
9938
9939#if HAVE_DLFCN_H
9940#include <dlfcn.h>
9941#endif
9942
9943#include <stdio.h>
9944
9945#ifdef RTLD_GLOBAL
9946#  define LT_DLGLOBAL		RTLD_GLOBAL
9947#else
9948#  ifdef DL_GLOBAL
9949#    define LT_DLGLOBAL		DL_GLOBAL
9950#  else
9951#    define LT_DLGLOBAL		0
9952#  endif
9953#endif
9954
9955/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9956   find out it does not work in some platform. */
9957#ifndef LT_DLLAZY_OR_NOW
9958#  ifdef RTLD_LAZY
9959#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9960#  else
9961#    ifdef DL_LAZY
9962#      define LT_DLLAZY_OR_NOW		DL_LAZY
9963#    else
9964#      ifdef RTLD_NOW
9965#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9966#      else
9967#        ifdef DL_NOW
9968#          define LT_DLLAZY_OR_NOW	DL_NOW
9969#        else
9970#          define LT_DLLAZY_OR_NOW	0
9971#        endif
9972#      endif
9973#    endif
9974#  endif
9975#endif
9976
9977#ifdef __cplusplus
9978extern "C" void exit (int);
9979#endif
9980
9981void fnord() { int i=42;}
9982int main ()
9983{
9984  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9985  int status = $lt_dlunknown;
9986
9987  if (self)
9988    {
9989      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9990      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9991      /* dlclose (self); */
9992    }
9993  else
9994    puts (dlerror ());
9995
9996    exit (status);
9997}
9998EOF
9999  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10000  (eval $ac_link) 2>&5
10001  ac_status=$?
10002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10004    (./conftest; exit; ) >&5 2>/dev/null
10005    lt_status=$?
10006    case x$lt_status in
10007      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10008      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10009      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10010    esac
10011  else :
10012    # compilation failed
10013    lt_cv_dlopen_self=no
10014  fi
10015fi
10016rm -fr conftest*
10017
10018
10019fi
10020{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10021echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10022
10023    if test "x$lt_cv_dlopen_self" = xyes; then
10024      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10025      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10026echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10027if test "${lt_cv_dlopen_self_static+set}" = set; then
10028  echo $ECHO_N "(cached) $ECHO_C" >&6
10029else
10030  	  if test "$cross_compiling" = yes; then :
10031  lt_cv_dlopen_self_static=cross
10032else
10033  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10034  lt_status=$lt_dlunknown
10035  cat > conftest.$ac_ext <<EOF
10036#line 10036 "configure"
10037#include "confdefs.h"
10038
10039#if HAVE_DLFCN_H
10040#include <dlfcn.h>
10041#endif
10042
10043#include <stdio.h>
10044
10045#ifdef RTLD_GLOBAL
10046#  define LT_DLGLOBAL		RTLD_GLOBAL
10047#else
10048#  ifdef DL_GLOBAL
10049#    define LT_DLGLOBAL		DL_GLOBAL
10050#  else
10051#    define LT_DLGLOBAL		0
10052#  endif
10053#endif
10054
10055/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10056   find out it does not work in some platform. */
10057#ifndef LT_DLLAZY_OR_NOW
10058#  ifdef RTLD_LAZY
10059#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10060#  else
10061#    ifdef DL_LAZY
10062#      define LT_DLLAZY_OR_NOW		DL_LAZY
10063#    else
10064#      ifdef RTLD_NOW
10065#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10066#      else
10067#        ifdef DL_NOW
10068#          define LT_DLLAZY_OR_NOW	DL_NOW
10069#        else
10070#          define LT_DLLAZY_OR_NOW	0
10071#        endif
10072#      endif
10073#    endif
10074#  endif
10075#endif
10076
10077#ifdef __cplusplus
10078extern "C" void exit (int);
10079#endif
10080
10081void fnord() { int i=42;}
10082int main ()
10083{
10084  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10085  int status = $lt_dlunknown;
10086
10087  if (self)
10088    {
10089      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10090      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10091      /* dlclose (self); */
10092    }
10093  else
10094    puts (dlerror ());
10095
10096    exit (status);
10097}
10098EOF
10099  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10100  (eval $ac_link) 2>&5
10101  ac_status=$?
10102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10104    (./conftest; exit; ) >&5 2>/dev/null
10105    lt_status=$?
10106    case x$lt_status in
10107      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10108      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10109      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10110    esac
10111  else :
10112    # compilation failed
10113    lt_cv_dlopen_self_static=no
10114  fi
10115fi
10116rm -fr conftest*
10117
10118
10119fi
10120{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10121echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10122    fi
10123
10124    CPPFLAGS="$save_CPPFLAGS"
10125    LDFLAGS="$save_LDFLAGS"
10126    LIBS="$save_LIBS"
10127    ;;
10128  esac
10129
10130  case $lt_cv_dlopen_self in
10131  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10132  *) enable_dlopen_self=unknown ;;
10133  esac
10134
10135  case $lt_cv_dlopen_self_static in
10136  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10137  *) enable_dlopen_self_static=unknown ;;
10138  esac
10139fi
10140
10141
10142# Report which library types will actually be built
10143{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10144echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10145{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10146echo "${ECHO_T}$can_build_shared" >&6; }
10147
10148{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10149echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10150test "$can_build_shared" = "no" && enable_shared=no
10151
10152# On AIX, shared libraries and static libraries use the same namespace, and
10153# are all built from PIC.
10154case $host_os in
10155aix3*)
10156  test "$enable_shared" = yes && enable_static=no
10157  if test -n "$RANLIB"; then
10158    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10159    postinstall_cmds='$RANLIB $lib'
10160  fi
10161  ;;
10162
10163aix4* | aix5*)
10164  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10165    test "$enable_shared" = yes && enable_static=no
10166  fi
10167    ;;
10168esac
10169{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10170echo "${ECHO_T}$enable_shared" >&6; }
10171
10172{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10173echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10174# Make sure either enable_shared or enable_static is yes.
10175test "$enable_shared" = yes || enable_static=yes
10176{ echo "$as_me:$LINENO: result: $enable_static" >&5
10177echo "${ECHO_T}$enable_static" >&6; }
10178
10179# The else clause should only fire when bootstrapping the
10180# libtool distribution, otherwise you forgot to ship ltmain.sh
10181# with your package, and you will get complaints that there are
10182# no rules to generate ltmain.sh.
10183if test -f "$ltmain"; then
10184  # See if we are running on zsh, and set the options which allow our commands through
10185  # without removal of \ escapes.
10186  if test -n "${ZSH_VERSION+set}" ; then
10187    setopt NO_GLOB_SUBST
10188  fi
10189  # Now quote all the things that may contain metacharacters while being
10190  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10191  # variables and quote the copies for generation of the libtool script.
10192  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10193    SED SHELL STRIP \
10194    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10195    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10196    deplibs_check_method reload_flag reload_cmds need_locks \
10197    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10198    lt_cv_sys_global_symbol_to_c_name_address \
10199    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10200    old_postinstall_cmds old_postuninstall_cmds \
10201    compiler \
10202    CC \
10203    LD \
10204    lt_prog_compiler_wl \
10205    lt_prog_compiler_pic \
10206    lt_prog_compiler_static \
10207    lt_prog_compiler_no_builtin_flag \
10208    export_dynamic_flag_spec \
10209    thread_safe_flag_spec \
10210    whole_archive_flag_spec \
10211    enable_shared_with_static_runtimes \
10212    old_archive_cmds \
10213    old_archive_from_new_cmds \
10214    predep_objects \
10215    postdep_objects \
10216    predeps \
10217    postdeps \
10218    compiler_lib_search_path \
10219    archive_cmds \
10220    archive_expsym_cmds \
10221    postinstall_cmds \
10222    postuninstall_cmds \
10223    old_archive_from_expsyms_cmds \
10224    allow_undefined_flag \
10225    no_undefined_flag \
10226    export_symbols_cmds \
10227    hardcode_libdir_flag_spec \
10228    hardcode_libdir_flag_spec_ld \
10229    hardcode_libdir_separator \
10230    hardcode_automatic \
10231    module_cmds \
10232    module_expsym_cmds \
10233    lt_cv_prog_compiler_c_o \
10234    fix_srcfile_path \
10235    exclude_expsyms \
10236    include_expsyms; do
10237
10238    case $var in
10239    old_archive_cmds | \
10240    old_archive_from_new_cmds | \
10241    archive_cmds | \
10242    archive_expsym_cmds | \
10243    module_cmds | \
10244    module_expsym_cmds | \
10245    old_archive_from_expsyms_cmds | \
10246    export_symbols_cmds | \
10247    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10248    postinstall_cmds | postuninstall_cmds | \
10249    old_postinstall_cmds | old_postuninstall_cmds | \
10250    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10251      # Double-quote double-evaled strings.
10252      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10253      ;;
10254    *)
10255      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10256      ;;
10257    esac
10258  done
10259
10260  case $lt_echo in
10261  *'\$0 --fallback-echo"')
10262    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10263    ;;
10264  esac
10265
10266cfgfile="${ofile}T"
10267  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10268  $rm -f "$cfgfile"
10269  { echo "$as_me:$LINENO: creating $ofile" >&5
10270echo "$as_me: creating $ofile" >&6;}
10271
10272  cat <<__EOF__ >> "$cfgfile"
10273#! $SHELL
10274
10275# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10276# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10277# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10278#
10279# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10280# Free Software Foundation, Inc.
10281#
10282# This file is part of GNU Libtool:
10283# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10284#
10285# This program is free software; you can redistribute it and/or modify
10286# it under the terms of the GNU General Public License as published by
10287# the Free Software Foundation; either version 2 of the License, or
10288# (at your option) any later version.
10289#
10290# This program is distributed in the hope that it will be useful, but
10291# WITHOUT ANY WARRANTY; without even the implied warranty of
10292# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10293# General Public License for more details.
10294#
10295# You should have received a copy of the GNU General Public License
10296# along with this program; if not, write to the Free Software
10297# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10298#
10299# As a special exception to the GNU General Public License, if you
10300# distribute this file as part of a program that contains a
10301# configuration script generated by Autoconf, you may include it under
10302# the same distribution terms that you use for the rest of that program.
10303
10304# A sed program that does not truncate output.
10305SED=$lt_SED
10306
10307# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10308Xsed="$SED -e 1s/^X//"
10309
10310# The HP-UX ksh and POSIX shell print the target directory to stdout
10311# if CDPATH is set.
10312(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10313
10314# The names of the tagged configurations supported by this script.
10315available_tags=
10316
10317# ### BEGIN LIBTOOL CONFIG
10318
10319# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10320
10321# Shell to use when invoking shell scripts.
10322SHELL=$lt_SHELL
10323
10324# Whether or not to build shared libraries.
10325build_libtool_libs=$enable_shared
10326
10327# Whether or not to build static libraries.
10328build_old_libs=$enable_static
10329
10330# Whether or not to add -lc for building shared libraries.
10331build_libtool_need_lc=$archive_cmds_need_lc
10332
10333# Whether or not to disallow shared libs when runtime libs are static
10334allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10335
10336# Whether or not to optimize for fast installation.
10337fast_install=$enable_fast_install
10338
10339# The host system.
10340host_alias=$host_alias
10341host=$host
10342host_os=$host_os
10343
10344# The build system.
10345build_alias=$build_alias
10346build=$build
10347build_os=$build_os
10348
10349# An echo program that does not interpret backslashes.
10350echo=$lt_echo
10351
10352# The archiver.
10353AR=$lt_AR
10354AR_FLAGS=$lt_AR_FLAGS
10355
10356# A C compiler.
10357LTCC=$lt_LTCC
10358
10359# LTCC compiler flags.
10360LTCFLAGS=$lt_LTCFLAGS
10361
10362# A language-specific compiler.
10363CC=$lt_compiler
10364
10365# Is the compiler the GNU C compiler?
10366with_gcc=$GCC
10367
10368# An ERE matcher.
10369EGREP=$lt_EGREP
10370
10371# The linker used to build libraries.
10372LD=$lt_LD
10373
10374# Whether we need hard or soft links.
10375LN_S=$lt_LN_S
10376
10377# A BSD-compatible nm program.
10378NM=$lt_NM
10379
10380# A symbol stripping program
10381STRIP=$lt_STRIP
10382
10383# Used to examine libraries when file_magic_cmd begins "file"
10384MAGIC_CMD=$MAGIC_CMD
10385
10386# Used on cygwin: DLL creation program.
10387DLLTOOL="$DLLTOOL"
10388
10389# Used on cygwin: object dumper.
10390OBJDUMP="$OBJDUMP"
10391
10392# Used on cygwin: assembler.
10393AS="$AS"
10394
10395# The name of the directory that contains temporary libtool files.
10396objdir=$objdir
10397
10398# How to create reloadable object files.
10399reload_flag=$lt_reload_flag
10400reload_cmds=$lt_reload_cmds
10401
10402# How to pass a linker flag through the compiler.
10403wl=$lt_lt_prog_compiler_wl
10404
10405# Object file suffix (normally "o").
10406objext="$ac_objext"
10407
10408# Old archive suffix (normally "a").
10409libext="$libext"
10410
10411# Shared library suffix (normally ".so").
10412shrext_cmds='$shrext_cmds'
10413
10414# Executable file suffix (normally "").
10415exeext="$exeext"
10416
10417# Additional compiler flags for building library objects.
10418pic_flag=$lt_lt_prog_compiler_pic
10419pic_mode=$pic_mode
10420
10421# What is the maximum length of a command?
10422max_cmd_len=$lt_cv_sys_max_cmd_len
10423
10424# Does compiler simultaneously support -c and -o options?
10425compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10426
10427# Must we lock files when doing compilation?
10428need_locks=$lt_need_locks
10429
10430# Do we need the lib prefix for modules?
10431need_lib_prefix=$need_lib_prefix
10432
10433# Do we need a version for libraries?
10434need_version=$need_version
10435
10436# Whether dlopen is supported.
10437dlopen_support=$enable_dlopen
10438
10439# Whether dlopen of programs is supported.
10440dlopen_self=$enable_dlopen_self
10441
10442# Whether dlopen of statically linked programs is supported.
10443dlopen_self_static=$enable_dlopen_self_static
10444
10445# Compiler flag to prevent dynamic linking.
10446link_static_flag=$lt_lt_prog_compiler_static
10447
10448# Compiler flag to turn off builtin functions.
10449no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10450
10451# Compiler flag to allow reflexive dlopens.
10452export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10453
10454# Compiler flag to generate shared objects directly from archives.
10455whole_archive_flag_spec=$lt_whole_archive_flag_spec
10456
10457# Compiler flag to generate thread-safe objects.
10458thread_safe_flag_spec=$lt_thread_safe_flag_spec
10459
10460# Library versioning type.
10461version_type=$version_type
10462
10463# Format of library name prefix.
10464libname_spec=$lt_libname_spec
10465
10466# List of archive names.  First name is the real one, the rest are links.
10467# The last name is the one that the linker finds with -lNAME.
10468library_names_spec=$lt_library_names_spec
10469
10470# The coded name of the library, if different from the real name.
10471soname_spec=$lt_soname_spec
10472
10473# Commands used to build and install an old-style archive.
10474RANLIB=$lt_RANLIB
10475old_archive_cmds=$lt_old_archive_cmds
10476old_postinstall_cmds=$lt_old_postinstall_cmds
10477old_postuninstall_cmds=$lt_old_postuninstall_cmds
10478
10479# Create an old-style archive from a shared archive.
10480old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10481
10482# Create a temporary old-style archive to link instead of a shared archive.
10483old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10484
10485# Commands used to build and install a shared archive.
10486archive_cmds=$lt_archive_cmds
10487archive_expsym_cmds=$lt_archive_expsym_cmds
10488postinstall_cmds=$lt_postinstall_cmds
10489postuninstall_cmds=$lt_postuninstall_cmds
10490
10491# Commands used to build a loadable module (assumed same as above if empty)
10492module_cmds=$lt_module_cmds
10493module_expsym_cmds=$lt_module_expsym_cmds
10494
10495# Commands to strip libraries.
10496old_striplib=$lt_old_striplib
10497striplib=$lt_striplib
10498
10499# Dependencies to place before the objects being linked to create a
10500# shared library.
10501predep_objects=$lt_predep_objects
10502
10503# Dependencies to place after the objects being linked to create a
10504# shared library.
10505postdep_objects=$lt_postdep_objects
10506
10507# Dependencies to place before the objects being linked to create a
10508# shared library.
10509predeps=$lt_predeps
10510
10511# Dependencies to place after the objects being linked to create a
10512# shared library.
10513postdeps=$lt_postdeps
10514
10515# The library search path used internally by the compiler when linking
10516# a shared library.
10517compiler_lib_search_path=$lt_compiler_lib_search_path
10518
10519# Method to check whether dependent libraries are shared objects.
10520deplibs_check_method=$lt_deplibs_check_method
10521
10522# Command to use when deplibs_check_method == file_magic.
10523file_magic_cmd=$lt_file_magic_cmd
10524
10525# Flag that allows shared libraries with undefined symbols to be built.
10526allow_undefined_flag=$lt_allow_undefined_flag
10527
10528# Flag that forces no undefined symbols.
10529no_undefined_flag=$lt_no_undefined_flag
10530
10531# Commands used to finish a libtool library installation in a directory.
10532finish_cmds=$lt_finish_cmds
10533
10534# Same as above, but a single script fragment to be evaled but not shown.
10535finish_eval=$lt_finish_eval
10536
10537# Take the output of nm and produce a listing of raw symbols and C names.
10538global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10539
10540# Transform the output of nm in a proper C declaration
10541global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10542
10543# Transform the output of nm in a C name address pair
10544global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10545
10546# This is the shared library runtime path variable.
10547runpath_var=$runpath_var
10548
10549# This is the shared library path variable.
10550shlibpath_var=$shlibpath_var
10551
10552# Is shlibpath searched before the hard-coded library search path?
10553shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10554
10555# How to hardcode a shared library path into an executable.
10556hardcode_action=$hardcode_action
10557
10558# Whether we should hardcode library paths into libraries.
10559hardcode_into_libs=$hardcode_into_libs
10560
10561# Flag to hardcode \$libdir into a binary during linking.
10562# This must work even if \$libdir does not exist.
10563hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10564
10565# If ld is used when linking, flag to hardcode \$libdir into
10566# a binary during linking. This must work even if \$libdir does
10567# not exist.
10568hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10569
10570# Whether we need a single -rpath flag with a separated argument.
10571hardcode_libdir_separator=$lt_hardcode_libdir_separator
10572
10573# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10574# resulting binary.
10575hardcode_direct=$hardcode_direct
10576
10577# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10578# resulting binary.
10579hardcode_minus_L=$hardcode_minus_L
10580
10581# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10582# the resulting binary.
10583hardcode_shlibpath_var=$hardcode_shlibpath_var
10584
10585# Set to yes if building a shared library automatically hardcodes DIR into the library
10586# and all subsequent libraries and executables linked against it.
10587hardcode_automatic=$hardcode_automatic
10588
10589# Variables whose values should be saved in libtool wrapper scripts and
10590# restored at relink time.
10591variables_saved_for_relink="$variables_saved_for_relink"
10592
10593# Whether libtool must link a program against all its dependency libraries.
10594link_all_deplibs=$link_all_deplibs
10595
10596# Compile-time system search path for libraries
10597sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10598
10599# Run-time system search path for libraries
10600sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10601
10602# Fix the shell variable \$srcfile for the compiler.
10603fix_srcfile_path=$lt_fix_srcfile_path
10604
10605# Set to yes if exported symbols are required.
10606always_export_symbols=$always_export_symbols
10607
10608# The commands to list exported symbols.
10609export_symbols_cmds=$lt_export_symbols_cmds
10610
10611# The commands to extract the exported symbol list from a shared archive.
10612extract_expsyms_cmds=$lt_extract_expsyms_cmds
10613
10614# Symbols that should not be listed in the preloaded symbols.
10615exclude_expsyms=$lt_exclude_expsyms
10616
10617# Symbols that must always be exported.
10618include_expsyms=$lt_include_expsyms
10619
10620# ### END LIBTOOL CONFIG
10621
10622__EOF__
10623
10624
10625  case $host_os in
10626  aix3*)
10627    cat <<\EOF >> "$cfgfile"
10628
10629# AIX sometimes has problems with the GCC collect2 program.  For some
10630# reason, if we set the COLLECT_NAMES environment variable, the problems
10631# vanish in a puff of smoke.
10632if test "X${COLLECT_NAMES+set}" != Xset; then
10633  COLLECT_NAMES=
10634  export COLLECT_NAMES
10635fi
10636EOF
10637    ;;
10638  esac
10639
10640  # We use sed instead of cat because bash on DJGPP gets confused if
10641  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10642  # text mode, it properly converts lines to CR/LF.  This bash problem
10643  # is reportedly fixed, but why not run on old versions too?
10644  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10645
10646  mv -f "$cfgfile" "$ofile" || \
10647    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10648  chmod +x "$ofile"
10649
10650else
10651  # If there is no Makefile yet, we rely on a make rule to execute
10652  # `config.status --recheck' to rerun these tests and create the
10653  # libtool script then.
10654  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10655  if test -f "$ltmain_in"; then
10656    test -f Makefile && make "$ltmain"
10657  fi
10658fi
10659
10660
10661ac_ext=c
10662ac_cpp='$CPP $CPPFLAGS'
10663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10665ac_compiler_gnu=$ac_cv_c_compiler_gnu
10666
10667CC="$lt_save_CC"
10668
10669
10670# Check whether --with-tags was given.
10671if test "${with_tags+set}" = set; then
10672  withval=$with_tags; tagnames="$withval"
10673fi
10674
10675
10676if test -f "$ltmain" && test -n "$tagnames"; then
10677  if test ! -f "${ofile}"; then
10678    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10679echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10680  fi
10681
10682  if test -z "$LTCC"; then
10683    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10684    if test -z "$LTCC"; then
10685      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10686echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10687    else
10688      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10689echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10690    fi
10691  fi
10692  if test -z "$LTCFLAGS"; then
10693    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10694  fi
10695
10696  # Extract list of available tagged configurations in $ofile.
10697  # Note that this assumes the entire list is on one line.
10698  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10699
10700  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10701  for tagname in $tagnames; do
10702    IFS="$lt_save_ifs"
10703    # Check whether tagname contains only valid characters
10704    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10705    "") ;;
10706    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10707echo "$as_me: error: invalid tag name: $tagname" >&2;}
10708   { (exit 1); exit 1; }; }
10709	;;
10710    esac
10711
10712    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10713    then
10714      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10715echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10716   { (exit 1); exit 1; }; }
10717    fi
10718
10719    # Update the list of available tags.
10720    if test -n "$tagname"; then
10721      echo appending configuration tag \"$tagname\" to $ofile
10722
10723      case $tagname in
10724      CXX)
10725	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10726	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10727	    (test "X$CXX" != "Xg++"))) ; then
10728	  ac_ext=cpp
10729ac_cpp='$CXXCPP $CPPFLAGS'
10730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10733
10734
10735
10736
10737archive_cmds_need_lc_CXX=no
10738allow_undefined_flag_CXX=
10739always_export_symbols_CXX=no
10740archive_expsym_cmds_CXX=
10741export_dynamic_flag_spec_CXX=
10742hardcode_direct_CXX=no
10743hardcode_libdir_flag_spec_CXX=
10744hardcode_libdir_flag_spec_ld_CXX=
10745hardcode_libdir_separator_CXX=
10746hardcode_minus_L_CXX=no
10747hardcode_shlibpath_var_CXX=unsupported
10748hardcode_automatic_CXX=no
10749module_cmds_CXX=
10750module_expsym_cmds_CXX=
10751link_all_deplibs_CXX=unknown
10752old_archive_cmds_CXX=$old_archive_cmds
10753no_undefined_flag_CXX=
10754whole_archive_flag_spec_CXX=
10755enable_shared_with_static_runtimes_CXX=no
10756
10757# Dependencies to place before and after the object being linked:
10758predep_objects_CXX=
10759postdep_objects_CXX=
10760predeps_CXX=
10761postdeps_CXX=
10762compiler_lib_search_path_CXX=
10763
10764# Source file extension for C++ test sources.
10765ac_ext=cpp
10766
10767# Object file extension for compiled C++ test sources.
10768objext=o
10769objext_CXX=$objext
10770
10771# Code to be used in simple compile tests
10772lt_simple_compile_test_code="int some_variable = 0;"
10773
10774# Code to be used in simple link tests
10775lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10776
10777# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10778
10779# If no C compiler was specified, use CC.
10780LTCC=${LTCC-"$CC"}
10781
10782# If no C compiler flags were specified, use CFLAGS.
10783LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10784
10785# Allow CC to be a program name with arguments.
10786compiler=$CC
10787
10788
10789# save warnings/boilerplate of simple test code
10790ac_outfile=conftest.$ac_objext
10791echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10792eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10793_lt_compiler_boilerplate=`cat conftest.err`
10794$rm conftest*
10795
10796ac_outfile=conftest.$ac_objext
10797echo "$lt_simple_link_test_code" >conftest.$ac_ext
10798eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10799_lt_linker_boilerplate=`cat conftest.err`
10800$rm conftest*
10801
10802
10803# Allow CC to be a program name with arguments.
10804lt_save_CC=$CC
10805lt_save_LD=$LD
10806lt_save_GCC=$GCC
10807GCC=$GXX
10808lt_save_with_gnu_ld=$with_gnu_ld
10809lt_save_path_LD=$lt_cv_path_LD
10810if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10811  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10812else
10813  $as_unset lt_cv_prog_gnu_ld
10814fi
10815if test -n "${lt_cv_path_LDCXX+set}"; then
10816  lt_cv_path_LD=$lt_cv_path_LDCXX
10817else
10818  $as_unset lt_cv_path_LD
10819fi
10820test -z "${LDCXX+set}" || LD=$LDCXX
10821CC=${CXX-"c++"}
10822compiler=$CC
10823compiler_CXX=$CC
10824for cc_temp in $compiler""; do
10825  case $cc_temp in
10826    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10827    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10828    \-*) ;;
10829    *) break;;
10830  esac
10831done
10832cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10833
10834
10835# We don't want -fno-exception wen compiling C++ code, so set the
10836# no_builtin_flag separately
10837if test "$GXX" = yes; then
10838  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10839else
10840  lt_prog_compiler_no_builtin_flag_CXX=
10841fi
10842
10843if test "$GXX" = yes; then
10844  # Set up default GNU C++ configuration
10845
10846
10847# Check whether --with-gnu-ld was given.
10848if test "${with_gnu_ld+set}" = set; then
10849  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10850else
10851  with_gnu_ld=no
10852fi
10853
10854ac_prog=ld
10855if test "$GCC" = yes; then
10856  # Check if gcc -print-prog-name=ld gives a path.
10857  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10858echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10859  case $host in
10860  *-*-mingw*)
10861    # gcc leaves a trailing carriage return which upsets mingw
10862    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10863  *)
10864    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10865  esac
10866  case $ac_prog in
10867    # Accept absolute paths.
10868    [\\/]* | ?:[\\/]*)
10869      re_direlt='/[^/][^/]*/\.\./'
10870      # Canonicalize the pathname of ld
10871      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10872      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10873	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10874      done
10875      test -z "$LD" && LD="$ac_prog"
10876      ;;
10877  "")
10878    # If it fails, then pretend we aren't using GCC.
10879    ac_prog=ld
10880    ;;
10881  *)
10882    # If it is relative, then search for the first ld in PATH.
10883    with_gnu_ld=unknown
10884    ;;
10885  esac
10886elif test "$with_gnu_ld" = yes; then
10887  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10888echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10889else
10890  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10891echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10892fi
10893if test "${lt_cv_path_LD+set}" = set; then
10894  echo $ECHO_N "(cached) $ECHO_C" >&6
10895else
10896  if test -z "$LD"; then
10897  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10898  for ac_dir in $PATH; do
10899    IFS="$lt_save_ifs"
10900    test -z "$ac_dir" && ac_dir=.
10901    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10902      lt_cv_path_LD="$ac_dir/$ac_prog"
10903      # Check to see if the program is GNU ld.  I'd rather use --version,
10904      # but apparently some variants of GNU ld only accept -v.
10905      # Break only if it was the GNU/non-GNU ld that we prefer.
10906      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10907      *GNU* | *'with BFD'*)
10908	test "$with_gnu_ld" != no && break
10909	;;
10910      *)
10911	test "$with_gnu_ld" != yes && break
10912	;;
10913      esac
10914    fi
10915  done
10916  IFS="$lt_save_ifs"
10917else
10918  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10919fi
10920fi
10921
10922LD="$lt_cv_path_LD"
10923if test -n "$LD"; then
10924  { echo "$as_me:$LINENO: result: $LD" >&5
10925echo "${ECHO_T}$LD" >&6; }
10926else
10927  { echo "$as_me:$LINENO: result: no" >&5
10928echo "${ECHO_T}no" >&6; }
10929fi
10930test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10931echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10932   { (exit 1); exit 1; }; }
10933{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10934echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10935if test "${lt_cv_prog_gnu_ld+set}" = set; then
10936  echo $ECHO_N "(cached) $ECHO_C" >&6
10937else
10938  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10939case `$LD -v 2>&1 </dev/null` in
10940*GNU* | *'with BFD'*)
10941  lt_cv_prog_gnu_ld=yes
10942  ;;
10943*)
10944  lt_cv_prog_gnu_ld=no
10945  ;;
10946esac
10947fi
10948{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10949echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10950with_gnu_ld=$lt_cv_prog_gnu_ld
10951
10952
10953
10954  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10955  # archiving commands below assume that GNU ld is being used.
10956  if test "$with_gnu_ld" = yes; then
10957    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10958    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'
10959
10960    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10961    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10962
10963    # If archive_cmds runs LD, not CC, wlarc should be empty
10964    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10965    #     investigate it a little bit more. (MM)
10966    wlarc='${wl}'
10967
10968    # ancient GNU ld didn't support --whole-archive et. al.
10969    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10970	grep 'no-whole-archive' > /dev/null; then
10971      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10972    else
10973      whole_archive_flag_spec_CXX=
10974    fi
10975  else
10976    with_gnu_ld=no
10977    wlarc=
10978
10979    # A generic and very simple default shared library creation
10980    # command for GNU C++ for the case where it uses the native
10981    # linker, instead of GNU ld.  If possible, this setting should
10982    # overridden to take advantage of the native linker features on
10983    # the platform it is being used on.
10984    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10985  fi
10986
10987  # Commands to make compiler produce verbose output that lists
10988  # what "hidden" libraries, object files and flags are used when
10989  # linking a shared library.
10990  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10991
10992else
10993  GXX=no
10994  with_gnu_ld=no
10995  wlarc=
10996fi
10997
10998# PORTME: fill in a description of your system's C++ link characteristics
10999{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11000echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11001ld_shlibs_CXX=yes
11002case $host_os in
11003  aix3*)
11004    # FIXME: insert proper C++ library support
11005    ld_shlibs_CXX=no
11006    ;;
11007  aix4* | aix5*)
11008    if test "$host_cpu" = ia64; then
11009      # On IA64, the linker does run time linking by default, so we don't
11010      # have to do anything special.
11011      aix_use_runtimelinking=no
11012      exp_sym_flag='-Bexport'
11013      no_entry_flag=""
11014    else
11015      aix_use_runtimelinking=no
11016
11017      # Test if we are trying to use run time linking or normal
11018      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11019      # need to do runtime linking.
11020      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11021	for ld_flag in $LDFLAGS; do
11022	  case $ld_flag in
11023	  *-brtl*)
11024	    aix_use_runtimelinking=yes
11025	    break
11026	    ;;
11027	  esac
11028	done
11029	;;
11030      esac
11031
11032      exp_sym_flag='-bexport'
11033      no_entry_flag='-bnoentry'
11034    fi
11035
11036    # When large executables or shared objects are built, AIX ld can
11037    # have problems creating the table of contents.  If linking a library
11038    # or program results in "error TOC overflow" add -mminimal-toc to
11039    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11040    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11041
11042    archive_cmds_CXX=''
11043    hardcode_direct_CXX=yes
11044    hardcode_libdir_separator_CXX=':'
11045    link_all_deplibs_CXX=yes
11046
11047    if test "$GXX" = yes; then
11048      case $host_os in aix4.[012]|aix4.[012].*)
11049      # We only want to do this on AIX 4.2 and lower, the check
11050      # below for broken collect2 doesn't work under 4.3+
11051	collect2name=`${CC} -print-prog-name=collect2`
11052	if test -f "$collect2name" && \
11053	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11054	then
11055	  # We have reworked collect2
11056	  :
11057	else
11058	  # We have old collect2
11059	  hardcode_direct_CXX=unsupported
11060	  # It fails to find uninstalled libraries when the uninstalled
11061	  # path is not listed in the libpath.  Setting hardcode_minus_L
11062	  # to unsupported forces relinking
11063	  hardcode_minus_L_CXX=yes
11064	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11065	  hardcode_libdir_separator_CXX=
11066	fi
11067	;;
11068      esac
11069      shared_flag='-shared'
11070      if test "$aix_use_runtimelinking" = yes; then
11071	shared_flag="$shared_flag "'${wl}-G'
11072      fi
11073    else
11074      # not using gcc
11075      if test "$host_cpu" = ia64; then
11076	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11077	# chokes on -Wl,-G. The following line is correct:
11078	shared_flag='-G'
11079      else
11080	if test "$aix_use_runtimelinking" = yes; then
11081	  shared_flag='${wl}-G'
11082	else
11083	  shared_flag='${wl}-bM:SRE'
11084	fi
11085      fi
11086    fi
11087
11088    # It seems that -bexpall does not export symbols beginning with
11089    # underscore (_), so it is better to generate a list of symbols to export.
11090    always_export_symbols_CXX=yes
11091    if test "$aix_use_runtimelinking" = yes; then
11092      # Warning - without using the other runtime loading flags (-brtl),
11093      # -berok will link without error, but may produce a broken library.
11094      allow_undefined_flag_CXX='-berok'
11095      # Determine the default libpath from the value encoded in an empty executable.
11096      cat >conftest.$ac_ext <<_ACEOF
11097/* confdefs.h.  */
11098_ACEOF
11099cat confdefs.h >>conftest.$ac_ext
11100cat >>conftest.$ac_ext <<_ACEOF
11101/* end confdefs.h.  */
11102
11103int
11104main ()
11105{
11106
11107  ;
11108  return 0;
11109}
11110_ACEOF
11111rm -f conftest.$ac_objext conftest$ac_exeext
11112if { (ac_try="$ac_link"
11113case "(($ac_try" in
11114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115  *) ac_try_echo=$ac_try;;
11116esac
11117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118  (eval "$ac_link") 2>conftest.er1
11119  ac_status=$?
11120  grep -v '^ *+' conftest.er1 >conftest.err
11121  rm -f conftest.er1
11122  cat conftest.err >&5
11123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124  (exit $ac_status); } && {
11125	 test -z "$ac_cxx_werror_flag" ||
11126	 test ! -s conftest.err
11127       } && test -s conftest$ac_exeext &&
11128       $as_test_x conftest$ac_exeext; then
11129
11130lt_aix_libpath_sed='
11131    /Import File Strings/,/^$/ {
11132	/^0/ {
11133	    s/^0  *\(.*\)$/\1/
11134	    p
11135	}
11136    }'
11137aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11138# Check for a 64-bit object if we didn't find anything.
11139if test -z "$aix_libpath"; then
11140  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11141fi
11142else
11143  echo "$as_me: failed program was:" >&5
11144sed 's/^/| /' conftest.$ac_ext >&5
11145
11146
11147fi
11148
11149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11150      conftest$ac_exeext conftest.$ac_ext
11151if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11152
11153      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11154
11155      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"
11156     else
11157      if test "$host_cpu" = ia64; then
11158	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11159	allow_undefined_flag_CXX="-z nodefs"
11160	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"
11161      else
11162	# Determine the default libpath from the value encoded in an empty executable.
11163	cat >conftest.$ac_ext <<_ACEOF
11164/* confdefs.h.  */
11165_ACEOF
11166cat confdefs.h >>conftest.$ac_ext
11167cat >>conftest.$ac_ext <<_ACEOF
11168/* end confdefs.h.  */
11169
11170int
11171main ()
11172{
11173
11174  ;
11175  return 0;
11176}
11177_ACEOF
11178rm -f conftest.$ac_objext conftest$ac_exeext
11179if { (ac_try="$ac_link"
11180case "(($ac_try" in
11181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182  *) ac_try_echo=$ac_try;;
11183esac
11184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185  (eval "$ac_link") 2>conftest.er1
11186  ac_status=$?
11187  grep -v '^ *+' conftest.er1 >conftest.err
11188  rm -f conftest.er1
11189  cat conftest.err >&5
11190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191  (exit $ac_status); } && {
11192	 test -z "$ac_cxx_werror_flag" ||
11193	 test ! -s conftest.err
11194       } && test -s conftest$ac_exeext &&
11195       $as_test_x conftest$ac_exeext; then
11196
11197lt_aix_libpath_sed='
11198    /Import File Strings/,/^$/ {
11199	/^0/ {
11200	    s/^0  *\(.*\)$/\1/
11201	    p
11202	}
11203    }'
11204aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11205# Check for a 64-bit object if we didn't find anything.
11206if test -z "$aix_libpath"; then
11207  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11208fi
11209else
11210  echo "$as_me: failed program was:" >&5
11211sed 's/^/| /' conftest.$ac_ext >&5
11212
11213
11214fi
11215
11216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11217      conftest$ac_exeext conftest.$ac_ext
11218if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11219
11220	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11221	# Warning - without using the other run time loading flags,
11222	# -berok will link without error, but may produce a broken library.
11223	no_undefined_flag_CXX=' ${wl}-bernotok'
11224	allow_undefined_flag_CXX=' ${wl}-berok'
11225	# Exported symbols can be pulled into shared objects from archives
11226	whole_archive_flag_spec_CXX='$convenience'
11227	archive_cmds_need_lc_CXX=yes
11228	# This is similar to how AIX traditionally builds its shared libraries.
11229	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'
11230      fi
11231    fi
11232    ;;
11233
11234  beos*)
11235    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11236      allow_undefined_flag_CXX=unsupported
11237      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11238      # support --undefined.  This deserves some investigation.  FIXME
11239      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11240    else
11241      ld_shlibs_CXX=no
11242    fi
11243    ;;
11244
11245  chorus*)
11246    case $cc_basename in
11247      *)
11248	# FIXME: insert proper C++ library support
11249	ld_shlibs_CXX=no
11250	;;
11251    esac
11252    ;;
11253
11254  cygwin* | mingw* | pw32*)
11255    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11256    # as there is no search path for DLLs.
11257    hardcode_libdir_flag_spec_CXX='-L$libdir'
11258    allow_undefined_flag_CXX=unsupported
11259    always_export_symbols_CXX=no
11260    enable_shared_with_static_runtimes_CXX=yes
11261
11262    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11263      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'
11264      # If the export-symbols file already is a .def file (1st line
11265      # is EXPORTS), use it as is; otherwise, prepend...
11266      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11267	cp $export_symbols $output_objdir/$soname.def;
11268      else
11269	echo EXPORTS > $output_objdir/$soname.def;
11270	cat $export_symbols >> $output_objdir/$soname.def;
11271      fi~
11272      $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'
11273    else
11274      ld_shlibs_CXX=no
11275    fi
11276  ;;
11277      darwin* | rhapsody*)
11278        case $host_os in
11279        rhapsody* | darwin1.[012])
11280         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11281         ;;
11282       *) # Darwin 1.3 on
11283         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11284           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11285         else
11286           case ${MACOSX_DEPLOYMENT_TARGET} in
11287             10.[012])
11288               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11289               ;;
11290             10.*)
11291               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11292               ;;
11293           esac
11294         fi
11295         ;;
11296        esac
11297      archive_cmds_need_lc_CXX=no
11298      hardcode_direct_CXX=no
11299      hardcode_automatic_CXX=yes
11300      hardcode_shlibpath_var_CXX=unsupported
11301      whole_archive_flag_spec_CXX=''
11302      link_all_deplibs_CXX=yes
11303
11304    if test "$GXX" = yes ; then
11305      lt_int_apple_cc_single_mod=no
11306      output_verbose_link_cmd='echo'
11307      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11308       lt_int_apple_cc_single_mod=yes
11309      fi
11310      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11311       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11312      else
11313          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'
11314        fi
11315        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11316        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11317          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11318            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11319          else
11320            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11321          fi
11322            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}'
11323      else
11324      case $cc_basename in
11325        xlc*)
11326         output_verbose_link_cmd='echo'
11327          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'
11328          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11329          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11330          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}'
11331          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}'
11332          ;;
11333       *)
11334         ld_shlibs_CXX=no
11335          ;;
11336      esac
11337      fi
11338        ;;
11339
11340  dgux*)
11341    case $cc_basename in
11342      ec++*)
11343	# FIXME: insert proper C++ library support
11344	ld_shlibs_CXX=no
11345	;;
11346      ghcx*)
11347	# Green Hills C++ Compiler
11348	# FIXME: insert proper C++ library support
11349	ld_shlibs_CXX=no
11350	;;
11351      *)
11352	# FIXME: insert proper C++ library support
11353	ld_shlibs_CXX=no
11354	;;
11355    esac
11356    ;;
11357  freebsd[12]*)
11358    # C++ shared libraries reported to be fairly broken before switch to ELF
11359    ld_shlibs_CXX=no
11360    ;;
11361  freebsd-elf*)
11362    archive_cmds_need_lc_CXX=no
11363    ;;
11364  freebsd* | dragonfly*)
11365    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11366    # conventions
11367    ld_shlibs_CXX=yes
11368    ;;
11369  gnu*)
11370    ;;
11371  hpux9*)
11372    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11373    hardcode_libdir_separator_CXX=:
11374    export_dynamic_flag_spec_CXX='${wl}-E'
11375    hardcode_direct_CXX=yes
11376    hardcode_minus_L_CXX=yes # Not in the search PATH,
11377				# but as the default
11378				# location of the library.
11379
11380    case $cc_basename in
11381    CC*)
11382      # FIXME: insert proper C++ library support
11383      ld_shlibs_CXX=no
11384      ;;
11385    aCC*)
11386      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'
11387      # Commands to make compiler produce verbose output that lists
11388      # what "hidden" libraries, object files and flags are used when
11389      # linking a shared library.
11390      #
11391      # There doesn't appear to be a way to prevent this compiler from
11392      # explicitly linking system object files so we need to strip them
11393      # from the output so that they don't get included in the library
11394      # dependencies.
11395      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'
11396      ;;
11397    *)
11398      if test "$GXX" = yes; then
11399        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'
11400      else
11401        # FIXME: insert proper C++ library support
11402        ld_shlibs_CXX=no
11403      fi
11404      ;;
11405    esac
11406    ;;
11407  hpux10*|hpux11*)
11408    if test $with_gnu_ld = no; then
11409      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11410      hardcode_libdir_separator_CXX=:
11411
11412      case $host_cpu in
11413      hppa*64*|ia64*) ;;
11414      *)
11415	export_dynamic_flag_spec_CXX='${wl}-E'
11416        ;;
11417      esac
11418    fi
11419    case $host_cpu in
11420    hppa*64*|ia64*)
11421      hardcode_direct_CXX=no
11422      hardcode_shlibpath_var_CXX=no
11423      ;;
11424    *)
11425      hardcode_direct_CXX=yes
11426      hardcode_minus_L_CXX=yes # Not in the search PATH,
11427					      # but as the default
11428					      # location of the library.
11429      ;;
11430    esac
11431
11432    case $cc_basename in
11433      CC*)
11434	# FIXME: insert proper C++ library support
11435	ld_shlibs_CXX=no
11436	;;
11437      aCC*)
11438	case $host_cpu in
11439	hppa*64*)
11440	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11441	  ;;
11442	ia64*)
11443	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11444	  ;;
11445	*)
11446	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11447	  ;;
11448	esac
11449	# Commands to make compiler produce verbose output that lists
11450	# what "hidden" libraries, object files and flags are used when
11451	# linking a shared library.
11452	#
11453	# There doesn't appear to be a way to prevent this compiler from
11454	# explicitly linking system object files so we need to strip them
11455	# from the output so that they don't get included in the library
11456	# dependencies.
11457	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'
11458	;;
11459      *)
11460	if test "$GXX" = yes; then
11461	  if test $with_gnu_ld = no; then
11462	    case $host_cpu in
11463	    hppa*64*)
11464	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11465	      ;;
11466	    ia64*)
11467	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11468	      ;;
11469	    *)
11470	      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'
11471	      ;;
11472	    esac
11473	  fi
11474	else
11475	  # FIXME: insert proper C++ library support
11476	  ld_shlibs_CXX=no
11477	fi
11478	;;
11479    esac
11480    ;;
11481  interix[3-9]*)
11482    hardcode_direct_CXX=no
11483    hardcode_shlibpath_var_CXX=no
11484    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11485    export_dynamic_flag_spec_CXX='${wl}-E'
11486    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11487    # Instead, shared libraries are loaded at an image base (0x10000000 by
11488    # default) and relocated if they conflict, which is a slow very memory
11489    # consuming and fragmenting process.  To avoid this, we pick a random,
11490    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11491    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11492    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'
11493    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'
11494    ;;
11495  irix5* | irix6*)
11496    case $cc_basename in
11497      CC*)
11498	# SGI C++
11499	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'
11500
11501	# Archives containing C++ object files must be created using
11502	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11503	# necessary to make sure instantiated templates are included
11504	# in the archive.
11505	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11506	;;
11507      *)
11508	if test "$GXX" = yes; then
11509	  if test "$with_gnu_ld" = no; then
11510	    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'
11511	  else
11512	    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'
11513	  fi
11514	fi
11515	link_all_deplibs_CXX=yes
11516	;;
11517    esac
11518    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11519    hardcode_libdir_separator_CXX=:
11520    ;;
11521  linux* | k*bsd*-gnu)
11522    case $cc_basename in
11523      KCC*)
11524	# Kuck and Associates, Inc. (KAI) C++ Compiler
11525
11526	# KCC will only create a shared library if the output file
11527	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11528	# to its proper name (with version) after linking.
11529	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'
11530	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'
11531	# Commands to make compiler produce verbose output that lists
11532	# what "hidden" libraries, object files and flags are used when
11533	# linking a shared library.
11534	#
11535	# There doesn't appear to be a way to prevent this compiler from
11536	# explicitly linking system object files so we need to strip them
11537	# from the output so that they don't get included in the library
11538	# dependencies.
11539	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'
11540
11541	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11542	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11543
11544	# Archives containing C++ object files must be created using
11545	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11546	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11547	;;
11548      icpc*)
11549	# Intel C++
11550	with_gnu_ld=yes
11551	# version 8.0 and above of icpc choke on multiply defined symbols
11552	# if we add $predep_objects and $postdep_objects, however 7.1 and
11553	# earlier do not add the objects themselves.
11554	case `$CC -V 2>&1` in
11555	*"Version 7."*)
11556  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11557  	  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'
11558	  ;;
11559	*)  # Version 8.0 or newer
11560	  tmp_idyn=
11561	  case $host_cpu in
11562	    ia64*) tmp_idyn=' -i_dynamic';;
11563	  esac
11564  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11565	  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'
11566	  ;;
11567	esac
11568	archive_cmds_need_lc_CXX=no
11569	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11570	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11571	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11572	;;
11573      pgCC*)
11574        # Portland Group C++ compiler
11575	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11576  	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'
11577
11578	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11579	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11580	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'
11581        ;;
11582      cxx*)
11583	# Compaq C++
11584	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11585	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'
11586
11587	runpath_var=LD_RUN_PATH
11588	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11589	hardcode_libdir_separator_CXX=:
11590
11591	# Commands to make compiler produce verbose output that lists
11592	# what "hidden" libraries, object files and flags are used when
11593	# linking a shared library.
11594	#
11595	# There doesn't appear to be a way to prevent this compiler from
11596	# explicitly linking system object files so we need to strip them
11597	# from the output so that they don't get included in the library
11598	# dependencies.
11599	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'
11600	;;
11601      *)
11602	case `$CC -V 2>&1 | sed 5q` in
11603	*Sun\ C*)
11604	  # Sun C++ 5.9
11605	  no_undefined_flag_CXX=' -zdefs'
11606	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11607	  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'
11608	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11609	  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'
11610
11611	  # Not sure whether something based on
11612	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11613	  # would be better.
11614	  output_verbose_link_cmd='echo'
11615
11616	  # Archives containing C++ object files must be created using
11617	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11618	  # necessary to make sure instantiated templates are included
11619	  # in the archive.
11620	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11621	  ;;
11622	esac
11623	;;
11624    esac
11625    ;;
11626  lynxos*)
11627    # FIXME: insert proper C++ library support
11628    ld_shlibs_CXX=no
11629    ;;
11630  m88k*)
11631    # FIXME: insert proper C++ library support
11632    ld_shlibs_CXX=no
11633    ;;
11634  mvs*)
11635    case $cc_basename in
11636      cxx*)
11637	# FIXME: insert proper C++ library support
11638	ld_shlibs_CXX=no
11639	;;
11640      *)
11641	# FIXME: insert proper C++ library support
11642	ld_shlibs_CXX=no
11643	;;
11644    esac
11645    ;;
11646  netbsd*)
11647    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11648      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11649      wlarc=
11650      hardcode_libdir_flag_spec_CXX='-R$libdir'
11651      hardcode_direct_CXX=yes
11652      hardcode_shlibpath_var_CXX=no
11653    fi
11654    # Workaround some broken pre-1.5 toolchains
11655    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11656    ;;
11657  openbsd2*)
11658    # C++ shared libraries are fairly broken
11659    ld_shlibs_CXX=no
11660    ;;
11661  openbsd*)
11662    if test -f /usr/libexec/ld.so; then
11663      hardcode_direct_CXX=yes
11664      hardcode_shlibpath_var_CXX=no
11665      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11666      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11667      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11668	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11669	export_dynamic_flag_spec_CXX='${wl}-E'
11670	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11671      fi
11672      output_verbose_link_cmd='echo'
11673    else
11674      ld_shlibs_CXX=no
11675    fi
11676    ;;
11677  osf3*)
11678    case $cc_basename in
11679      KCC*)
11680	# Kuck and Associates, Inc. (KAI) C++ Compiler
11681
11682	# KCC will only create a shared library if the output file
11683	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11684	# to its proper name (with version) after linking.
11685	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'
11686
11687	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11688	hardcode_libdir_separator_CXX=:
11689
11690	# Archives containing C++ object files must be created using
11691	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11692	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11693
11694	;;
11695      RCC*)
11696	# Rational C++ 2.4.1
11697	# FIXME: insert proper C++ library support
11698	ld_shlibs_CXX=no
11699	;;
11700      cxx*)
11701	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11702	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'
11703
11704	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11705	hardcode_libdir_separator_CXX=:
11706
11707	# Commands to make compiler produce verbose output that lists
11708	# what "hidden" libraries, object files and flags are used when
11709	# linking a shared library.
11710	#
11711	# There doesn't appear to be a way to prevent this compiler from
11712	# explicitly linking system object files so we need to strip them
11713	# from the output so that they don't get included in the library
11714	# dependencies.
11715	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'
11716	;;
11717      *)
11718	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11719	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11720	  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'
11721
11722	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11723	  hardcode_libdir_separator_CXX=:
11724
11725	  # Commands to make compiler produce verbose output that lists
11726	  # what "hidden" libraries, object files and flags are used when
11727	  # linking a shared library.
11728	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11729
11730	else
11731	  # FIXME: insert proper C++ library support
11732	  ld_shlibs_CXX=no
11733	fi
11734	;;
11735    esac
11736    ;;
11737  osf4* | osf5*)
11738    case $cc_basename in
11739      KCC*)
11740	# Kuck and Associates, Inc. (KAI) C++ Compiler
11741
11742	# KCC will only create a shared library if the output file
11743	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11744	# to its proper name (with version) after linking.
11745	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'
11746
11747	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11748	hardcode_libdir_separator_CXX=:
11749
11750	# Archives containing C++ object files must be created using
11751	# the KAI C++ compiler.
11752	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11753	;;
11754      RCC*)
11755	# Rational C++ 2.4.1
11756	# FIXME: insert proper C++ library support
11757	ld_shlibs_CXX=no
11758	;;
11759      cxx*)
11760	allow_undefined_flag_CXX=' -expect_unresolved \*'
11761	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'
11762	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11763	  echo "-hidden">> $lib.exp~
11764	  $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~
11765	  $rm $lib.exp'
11766
11767	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11768	hardcode_libdir_separator_CXX=:
11769
11770	# Commands to make compiler produce verbose output that lists
11771	# what "hidden" libraries, object files and flags are used when
11772	# linking a shared library.
11773	#
11774	# There doesn't appear to be a way to prevent this compiler from
11775	# explicitly linking system object files so we need to strip them
11776	# from the output so that they don't get included in the library
11777	# dependencies.
11778	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'
11779	;;
11780      *)
11781	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11782	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11783	 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'
11784
11785	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11786	  hardcode_libdir_separator_CXX=:
11787
11788	  # Commands to make compiler produce verbose output that lists
11789	  # what "hidden" libraries, object files and flags are used when
11790	  # linking a shared library.
11791	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11792
11793	else
11794	  # FIXME: insert proper C++ library support
11795	  ld_shlibs_CXX=no
11796	fi
11797	;;
11798    esac
11799    ;;
11800  psos*)
11801    # FIXME: insert proper C++ library support
11802    ld_shlibs_CXX=no
11803    ;;
11804  sunos4*)
11805    case $cc_basename in
11806      CC*)
11807	# Sun C++ 4.x
11808	# FIXME: insert proper C++ library support
11809	ld_shlibs_CXX=no
11810	;;
11811      lcc*)
11812	# Lucid
11813	# FIXME: insert proper C++ library support
11814	ld_shlibs_CXX=no
11815	;;
11816      *)
11817	# FIXME: insert proper C++ library support
11818	ld_shlibs_CXX=no
11819	;;
11820    esac
11821    ;;
11822  solaris*)
11823    case $cc_basename in
11824      CC*)
11825	# Sun C++ 4.2, 5.x and Centerline C++
11826        archive_cmds_need_lc_CXX=yes
11827	no_undefined_flag_CXX=' -zdefs'
11828	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11829	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11830	$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'
11831
11832	hardcode_libdir_flag_spec_CXX='-R$libdir'
11833	hardcode_shlibpath_var_CXX=no
11834	case $host_os in
11835	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11836	  *)
11837	    # The compiler driver will combine and reorder linker options,
11838	    # but understands `-z linker_flag'.
11839	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11840	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11841	    ;;
11842	esac
11843	link_all_deplibs_CXX=yes
11844
11845	output_verbose_link_cmd='echo'
11846
11847	# Archives containing C++ object files must be created using
11848	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11849	# necessary to make sure instantiated templates are included
11850	# in the archive.
11851	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11852	;;
11853      gcx*)
11854	# Green Hills C++ Compiler
11855	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11856
11857	# The C++ compiler must be used to create the archive.
11858	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11859	;;
11860      *)
11861	# GNU C++ compiler with Solaris linker
11862	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11863	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11864	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11865	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11866	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11867		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11868
11869	    # Commands to make compiler produce verbose output that lists
11870	    # what "hidden" libraries, object files and flags are used when
11871	    # linking a shared library.
11872	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11873	  else
11874	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11875	    # platform.
11876	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11877	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11878		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11879
11880	    # Commands to make compiler produce verbose output that lists
11881	    # what "hidden" libraries, object files and flags are used when
11882	    # linking a shared library.
11883	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11884	  fi
11885
11886	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11887	  case $host_os in
11888	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11889	  *)
11890	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11891	    ;;
11892	  esac
11893	fi
11894	;;
11895    esac
11896    ;;
11897  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11898    no_undefined_flag_CXX='${wl}-z,text'
11899    archive_cmds_need_lc_CXX=no
11900    hardcode_shlibpath_var_CXX=no
11901    runpath_var='LD_RUN_PATH'
11902
11903    case $cc_basename in
11904      CC*)
11905	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11906	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11907	;;
11908      *)
11909	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11910	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11911	;;
11912    esac
11913    ;;
11914  sysv5* | sco3.2v5* | sco5v6*)
11915    # Note: We can NOT use -z defs as we might desire, because we do not
11916    # link with -lc, and that would cause any symbols used from libc to
11917    # always be unresolved, which means just about no library would
11918    # ever link correctly.  If we're not using GNU ld we use -z text
11919    # though, which does catch some bad symbols but isn't as heavy-handed
11920    # as -z defs.
11921    # For security reasons, it is highly recommended that you always
11922    # use absolute paths for naming shared libraries, and exclude the
11923    # DT_RUNPATH tag from executables and libraries.  But doing so
11924    # requires that you compile everything twice, which is a pain.
11925    # So that behaviour is only enabled if SCOABSPATH is set to a
11926    # non-empty value in the environment.  Most likely only useful for
11927    # creating official distributions of packages.
11928    # This is a hack until libtool officially supports absolute path
11929    # names for shared libraries.
11930    no_undefined_flag_CXX='${wl}-z,text'
11931    allow_undefined_flag_CXX='${wl}-z,nodefs'
11932    archive_cmds_need_lc_CXX=no
11933    hardcode_shlibpath_var_CXX=no
11934    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11935    hardcode_libdir_separator_CXX=':'
11936    link_all_deplibs_CXX=yes
11937    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11938    runpath_var='LD_RUN_PATH'
11939
11940    case $cc_basename in
11941      CC*)
11942	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11943	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11944	;;
11945      *)
11946	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11947	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11948	;;
11949    esac
11950    ;;
11951  tandem*)
11952    case $cc_basename in
11953      NCC*)
11954	# NonStop-UX NCC 3.20
11955	# FIXME: insert proper C++ library support
11956	ld_shlibs_CXX=no
11957	;;
11958      *)
11959	# FIXME: insert proper C++ library support
11960	ld_shlibs_CXX=no
11961	;;
11962    esac
11963    ;;
11964  vxworks*)
11965    # FIXME: insert proper C++ library support
11966    ld_shlibs_CXX=no
11967    ;;
11968  *)
11969    # FIXME: insert proper C++ library support
11970    ld_shlibs_CXX=no
11971    ;;
11972esac
11973{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11974echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11975test "$ld_shlibs_CXX" = no && can_build_shared=no
11976
11977GCC_CXX="$GXX"
11978LD_CXX="$LD"
11979
11980
11981cat > conftest.$ac_ext <<EOF
11982class Foo
11983{
11984public:
11985  Foo (void) { a = 0; }
11986private:
11987  int a;
11988};
11989EOF
11990
11991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11992  (eval $ac_compile) 2>&5
11993  ac_status=$?
11994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995  (exit $ac_status); }; then
11996  # Parse the compiler output and extract the necessary
11997  # objects, libraries and library flags.
11998
11999  # Sentinel used to keep track of whether or not we are before
12000  # the conftest object file.
12001  pre_test_object_deps_done=no
12002
12003  # The `*' in the case matches for architectures that use `case' in
12004  # $output_verbose_cmd can trigger glob expansion during the loop
12005  # eval without this substitution.
12006  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12007
12008  for p in `eval $output_verbose_link_cmd`; do
12009    case $p in
12010
12011    -L* | -R* | -l*)
12012       # Some compilers place space between "-{L,R}" and the path.
12013       # Remove the space.
12014       if test $p = "-L" \
12015	  || test $p = "-R"; then
12016	 prev=$p
12017	 continue
12018       else
12019	 prev=
12020       fi
12021
12022       if test "$pre_test_object_deps_done" = no; then
12023	 case $p in
12024	 -L* | -R*)
12025	   # Internal compiler library paths should come after those
12026	   # provided the user.  The postdeps already come after the
12027	   # user supplied libs so there is no need to process them.
12028	   if test -z "$compiler_lib_search_path_CXX"; then
12029	     compiler_lib_search_path_CXX="${prev}${p}"
12030	   else
12031	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12032	   fi
12033	   ;;
12034	 # The "-l" case would never come before the object being
12035	 # linked, so don't bother handling this case.
12036	 esac
12037       else
12038	 if test -z "$postdeps_CXX"; then
12039	   postdeps_CXX="${prev}${p}"
12040	 else
12041	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12042	 fi
12043       fi
12044       ;;
12045
12046    *.$objext)
12047       # This assumes that the test object file only shows up
12048       # once in the compiler output.
12049       if test "$p" = "conftest.$objext"; then
12050	 pre_test_object_deps_done=yes
12051	 continue
12052       fi
12053
12054       if test "$pre_test_object_deps_done" = no; then
12055	 if test -z "$predep_objects_CXX"; then
12056	   predep_objects_CXX="$p"
12057	 else
12058	   predep_objects_CXX="$predep_objects_CXX $p"
12059	 fi
12060       else
12061	 if test -z "$postdep_objects_CXX"; then
12062	   postdep_objects_CXX="$p"
12063	 else
12064	   postdep_objects_CXX="$postdep_objects_CXX $p"
12065	 fi
12066       fi
12067       ;;
12068
12069    *) ;; # Ignore the rest.
12070
12071    esac
12072  done
12073
12074  # Clean up.
12075  rm -f a.out a.exe
12076else
12077  echo "libtool.m4: error: problem compiling CXX test program"
12078fi
12079
12080$rm -f confest.$objext
12081
12082# PORTME: override above test on systems where it is broken
12083case $host_os in
12084interix[3-9]*)
12085  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12086  # hack all around it, let's just trust "g++" to DTRT.
12087  predep_objects_CXX=
12088  postdep_objects_CXX=
12089  postdeps_CXX=
12090  ;;
12091
12092linux*)
12093  case `$CC -V 2>&1 | sed 5q` in
12094  *Sun\ C*)
12095    # Sun C++ 5.9
12096    #
12097    # The more standards-conforming stlport4 library is
12098    # incompatible with the Cstd library. Avoid specifying
12099    # it if it's in CXXFLAGS. Ignore libCrun as
12100    # -library=stlport4 depends on it.
12101    case " $CXX $CXXFLAGS " in
12102    *" -library=stlport4 "*)
12103      solaris_use_stlport4=yes
12104      ;;
12105    esac
12106    if test "$solaris_use_stlport4" != yes; then
12107      postdeps_CXX='-library=Cstd -library=Crun'
12108    fi
12109    ;;
12110  esac
12111  ;;
12112
12113solaris*)
12114  case $cc_basename in
12115  CC*)
12116    # The more standards-conforming stlport4 library is
12117    # incompatible with the Cstd library. Avoid specifying
12118    # it if it's in CXXFLAGS. Ignore libCrun as
12119    # -library=stlport4 depends on it.
12120    case " $CXX $CXXFLAGS " in
12121    *" -library=stlport4 "*)
12122      solaris_use_stlport4=yes
12123      ;;
12124    esac
12125
12126    # Adding this requires a known-good setup of shared libraries for
12127    # Sun compiler versions before 5.6, else PIC objects from an old
12128    # archive will be linked into the output, leading to subtle bugs.
12129    if test "$solaris_use_stlport4" != yes; then
12130      postdeps_CXX='-library=Cstd -library=Crun'
12131    fi
12132    ;;
12133  esac
12134  ;;
12135esac
12136
12137
12138case " $postdeps_CXX " in
12139*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12140esac
12141
12142lt_prog_compiler_wl_CXX=
12143lt_prog_compiler_pic_CXX=
12144lt_prog_compiler_static_CXX=
12145
12146{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12147echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12148
12149  # C++ specific cases for pic, static, wl, etc.
12150  if test "$GXX" = yes; then
12151    lt_prog_compiler_wl_CXX='-Wl,'
12152    lt_prog_compiler_static_CXX='-static'
12153
12154    case $host_os in
12155    aix*)
12156      # All AIX code is PIC.
12157      if test "$host_cpu" = ia64; then
12158	# AIX 5 now supports IA64 processor
12159	lt_prog_compiler_static_CXX='-Bstatic'
12160      fi
12161      ;;
12162    amigaos*)
12163      # FIXME: we need at least 68020 code to build shared libraries, but
12164      # adding the `-m68020' flag to GCC prevents building anything better,
12165      # like `-m68040'.
12166      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12167      ;;
12168    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12169      # PIC is the default for these OSes.
12170      ;;
12171    mingw* | cygwin* | os2* | pw32*)
12172      # This hack is so that the source file can tell whether it is being
12173      # built for inclusion in a dll (and should export symbols for example).
12174      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12175      # (--disable-auto-import) libraries
12176      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12177      ;;
12178    darwin* | rhapsody*)
12179      # PIC is the default on this platform
12180      # Common symbols not allowed in MH_DYLIB files
12181      lt_prog_compiler_pic_CXX='-fno-common'
12182      ;;
12183    *djgpp*)
12184      # DJGPP does not support shared libraries at all
12185      lt_prog_compiler_pic_CXX=
12186      ;;
12187    interix[3-9]*)
12188      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12189      # Instead, we relocate shared libraries at runtime.
12190      ;;
12191    sysv4*MP*)
12192      if test -d /usr/nec; then
12193	lt_prog_compiler_pic_CXX=-Kconform_pic
12194      fi
12195      ;;
12196    hpux*)
12197      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12198      # not for PA HP-UX.
12199      case $host_cpu in
12200      hppa*64*|ia64*)
12201	;;
12202      *)
12203	lt_prog_compiler_pic_CXX='-fPIC'
12204	;;
12205      esac
12206      ;;
12207    *)
12208      lt_prog_compiler_pic_CXX='-fPIC'
12209      ;;
12210    esac
12211  else
12212    case $host_os in
12213      aix4* | aix5*)
12214	# All AIX code is PIC.
12215	if test "$host_cpu" = ia64; then
12216	  # AIX 5 now supports IA64 processor
12217	  lt_prog_compiler_static_CXX='-Bstatic'
12218	else
12219	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12220	fi
12221	;;
12222      chorus*)
12223	case $cc_basename in
12224	cxch68*)
12225	  # Green Hills C++ Compiler
12226	  # _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"
12227	  ;;
12228	esac
12229	;;
12230       darwin*)
12231         # PIC is the default on this platform
12232         # Common symbols not allowed in MH_DYLIB files
12233         case $cc_basename in
12234           xlc*)
12235           lt_prog_compiler_pic_CXX='-qnocommon'
12236           lt_prog_compiler_wl_CXX='-Wl,'
12237           ;;
12238         esac
12239       ;;
12240      dgux*)
12241	case $cc_basename in
12242	  ec++*)
12243	    lt_prog_compiler_pic_CXX='-KPIC'
12244	    ;;
12245	  ghcx*)
12246	    # Green Hills C++ Compiler
12247	    lt_prog_compiler_pic_CXX='-pic'
12248	    ;;
12249	  *)
12250	    ;;
12251	esac
12252	;;
12253      freebsd* | dragonfly*)
12254	# FreeBSD uses GNU C++
12255	;;
12256      hpux9* | hpux10* | hpux11*)
12257	case $cc_basename in
12258	  CC*)
12259	    lt_prog_compiler_wl_CXX='-Wl,'
12260	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12261	    if test "$host_cpu" != ia64; then
12262	      lt_prog_compiler_pic_CXX='+Z'
12263	    fi
12264	    ;;
12265	  aCC*)
12266	    lt_prog_compiler_wl_CXX='-Wl,'
12267	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12268	    case $host_cpu in
12269	    hppa*64*|ia64*)
12270	      # +Z the default
12271	      ;;
12272	    *)
12273	      lt_prog_compiler_pic_CXX='+Z'
12274	      ;;
12275	    esac
12276	    ;;
12277	  *)
12278	    ;;
12279	esac
12280	;;
12281      interix*)
12282	# This is c89, which is MS Visual C++ (no shared libs)
12283	# Anyone wants to do a port?
12284	;;
12285      irix5* | irix6* | nonstopux*)
12286	case $cc_basename in
12287	  CC*)
12288	    lt_prog_compiler_wl_CXX='-Wl,'
12289	    lt_prog_compiler_static_CXX='-non_shared'
12290	    # CC pic flag -KPIC is the default.
12291	    ;;
12292	  *)
12293	    ;;
12294	esac
12295	;;
12296      linux* | k*bsd*-gnu)
12297	case $cc_basename in
12298	  KCC*)
12299	    # KAI C++ Compiler
12300	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12301	    lt_prog_compiler_pic_CXX='-fPIC'
12302	    ;;
12303	  icpc* | ecpc*)
12304	    # Intel C++
12305	    lt_prog_compiler_wl_CXX='-Wl,'
12306	    lt_prog_compiler_pic_CXX='-KPIC'
12307	    lt_prog_compiler_static_CXX='-static'
12308	    ;;
12309	  pgCC*)
12310	    # Portland Group C++ compiler.
12311	    lt_prog_compiler_wl_CXX='-Wl,'
12312	    lt_prog_compiler_pic_CXX='-fpic'
12313	    lt_prog_compiler_static_CXX='-Bstatic'
12314	    ;;
12315	  cxx*)
12316	    # Compaq C++
12317	    # Make sure the PIC flag is empty.  It appears that all Alpha
12318	    # Linux and Compaq Tru64 Unix objects are PIC.
12319	    lt_prog_compiler_pic_CXX=
12320	    lt_prog_compiler_static_CXX='-non_shared'
12321	    ;;
12322	  *)
12323	    case `$CC -V 2>&1 | sed 5q` in
12324	    *Sun\ C*)
12325	      # Sun C++ 5.9
12326	      lt_prog_compiler_pic_CXX='-KPIC'
12327	      lt_prog_compiler_static_CXX='-Bstatic'
12328	      lt_prog_compiler_wl_CXX='-Qoption ld '
12329	      ;;
12330	    esac
12331	    ;;
12332	esac
12333	;;
12334      lynxos*)
12335	;;
12336      m88k*)
12337	;;
12338      mvs*)
12339	case $cc_basename in
12340	  cxx*)
12341	    lt_prog_compiler_pic_CXX='-W c,exportall'
12342	    ;;
12343	  *)
12344	    ;;
12345	esac
12346	;;
12347      netbsd*)
12348	;;
12349      osf3* | osf4* | osf5*)
12350	case $cc_basename in
12351	  KCC*)
12352	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12353	    ;;
12354	  RCC*)
12355	    # Rational C++ 2.4.1
12356	    lt_prog_compiler_pic_CXX='-pic'
12357	    ;;
12358	  cxx*)
12359	    # Digital/Compaq C++
12360	    lt_prog_compiler_wl_CXX='-Wl,'
12361	    # Make sure the PIC flag is empty.  It appears that all Alpha
12362	    # Linux and Compaq Tru64 Unix objects are PIC.
12363	    lt_prog_compiler_pic_CXX=
12364	    lt_prog_compiler_static_CXX='-non_shared'
12365	    ;;
12366	  *)
12367	    ;;
12368	esac
12369	;;
12370      psos*)
12371	;;
12372      solaris*)
12373	case $cc_basename in
12374	  CC*)
12375	    # Sun C++ 4.2, 5.x and Centerline C++
12376	    lt_prog_compiler_pic_CXX='-KPIC'
12377	    lt_prog_compiler_static_CXX='-Bstatic'
12378	    lt_prog_compiler_wl_CXX='-Qoption ld '
12379	    ;;
12380	  gcx*)
12381	    # Green Hills C++ Compiler
12382	    lt_prog_compiler_pic_CXX='-PIC'
12383	    ;;
12384	  *)
12385	    ;;
12386	esac
12387	;;
12388      sunos4*)
12389	case $cc_basename in
12390	  CC*)
12391	    # Sun C++ 4.x
12392	    lt_prog_compiler_pic_CXX='-pic'
12393	    lt_prog_compiler_static_CXX='-Bstatic'
12394	    ;;
12395	  lcc*)
12396	    # Lucid
12397	    lt_prog_compiler_pic_CXX='-pic'
12398	    ;;
12399	  *)
12400	    ;;
12401	esac
12402	;;
12403      tandem*)
12404	case $cc_basename in
12405	  NCC*)
12406	    # NonStop-UX NCC 3.20
12407	    lt_prog_compiler_pic_CXX='-KPIC'
12408	    ;;
12409	  *)
12410	    ;;
12411	esac
12412	;;
12413      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12414	case $cc_basename in
12415	  CC*)
12416	    lt_prog_compiler_wl_CXX='-Wl,'
12417	    lt_prog_compiler_pic_CXX='-KPIC'
12418	    lt_prog_compiler_static_CXX='-Bstatic'
12419	    ;;
12420	esac
12421	;;
12422      vxworks*)
12423	;;
12424      *)
12425	lt_prog_compiler_can_build_shared_CXX=no
12426	;;
12427    esac
12428  fi
12429
12430{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12431echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12432
12433#
12434# Check to make sure the PIC flag actually works.
12435#
12436if test -n "$lt_prog_compiler_pic_CXX"; then
12437
12438{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12439echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12440if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12441  echo $ECHO_N "(cached) $ECHO_C" >&6
12442else
12443  lt_prog_compiler_pic_works_CXX=no
12444  ac_outfile=conftest.$ac_objext
12445   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12446   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12447   # Insert the option either (1) after the last *FLAGS variable, or
12448   # (2) before a word containing "conftest.", or (3) at the end.
12449   # Note that $ac_compile itself does not contain backslashes and begins
12450   # with a dollar sign (not a hyphen), so the echo should work correctly.
12451   # The option is referenced via a variable to avoid confusing sed.
12452   lt_compile=`echo "$ac_compile" | $SED \
12453   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12454   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12455   -e 's:$: $lt_compiler_flag:'`
12456   (eval echo "\"\$as_me:12456: $lt_compile\"" >&5)
12457   (eval "$lt_compile" 2>conftest.err)
12458   ac_status=$?
12459   cat conftest.err >&5
12460   echo "$as_me:12460: \$? = $ac_status" >&5
12461   if (exit $ac_status) && test -s "$ac_outfile"; then
12462     # The compiler can only warn and ignore the option if not recognized
12463     # So say no if there are warnings other than the usual output.
12464     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12465     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12466     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12467       lt_prog_compiler_pic_works_CXX=yes
12468     fi
12469   fi
12470   $rm conftest*
12471
12472fi
12473{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12474echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12475
12476if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12477    case $lt_prog_compiler_pic_CXX in
12478     "" | " "*) ;;
12479     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12480     esac
12481else
12482    lt_prog_compiler_pic_CXX=
12483     lt_prog_compiler_can_build_shared_CXX=no
12484fi
12485
12486fi
12487case $host_os in
12488  # For platforms which do not support PIC, -DPIC is meaningless:
12489  *djgpp*)
12490    lt_prog_compiler_pic_CXX=
12491    ;;
12492  *)
12493    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12494    ;;
12495esac
12496
12497#
12498# Check to make sure the static flag actually works.
12499#
12500wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12501{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12502echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12503if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12504  echo $ECHO_N "(cached) $ECHO_C" >&6
12505else
12506  lt_prog_compiler_static_works_CXX=no
12507   save_LDFLAGS="$LDFLAGS"
12508   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12509   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12510   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12511     # The linker can only warn and ignore the option if not recognized
12512     # So say no if there are warnings
12513     if test -s conftest.err; then
12514       # Append any errors to the config.log.
12515       cat conftest.err 1>&5
12516       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12517       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12518       if diff conftest.exp conftest.er2 >/dev/null; then
12519         lt_prog_compiler_static_works_CXX=yes
12520       fi
12521     else
12522       lt_prog_compiler_static_works_CXX=yes
12523     fi
12524   fi
12525   $rm conftest*
12526   LDFLAGS="$save_LDFLAGS"
12527
12528fi
12529{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12530echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12531
12532if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12533    :
12534else
12535    lt_prog_compiler_static_CXX=
12536fi
12537
12538
12539{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12540echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12541if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12542  echo $ECHO_N "(cached) $ECHO_C" >&6
12543else
12544  lt_cv_prog_compiler_c_o_CXX=no
12545   $rm -r conftest 2>/dev/null
12546   mkdir conftest
12547   cd conftest
12548   mkdir out
12549   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12550
12551   lt_compiler_flag="-o out/conftest2.$ac_objext"
12552   # Insert the option either (1) after the last *FLAGS variable, or
12553   # (2) before a word containing "conftest.", or (3) at the end.
12554   # Note that $ac_compile itself does not contain backslashes and begins
12555   # with a dollar sign (not a hyphen), so the echo should work correctly.
12556   lt_compile=`echo "$ac_compile" | $SED \
12557   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12558   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12559   -e 's:$: $lt_compiler_flag:'`
12560   (eval echo "\"\$as_me:12560: $lt_compile\"" >&5)
12561   (eval "$lt_compile" 2>out/conftest.err)
12562   ac_status=$?
12563   cat out/conftest.err >&5
12564   echo "$as_me:12564: \$? = $ac_status" >&5
12565   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12566   then
12567     # The compiler can only warn and ignore the option if not recognized
12568     # So say no if there are warnings
12569     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12570     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12571     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12572       lt_cv_prog_compiler_c_o_CXX=yes
12573     fi
12574   fi
12575   chmod u+w . 2>&5
12576   $rm conftest*
12577   # SGI C++ compiler will create directory out/ii_files/ for
12578   # template instantiation
12579   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12580   $rm out/* && rmdir out
12581   cd ..
12582   rmdir conftest
12583   $rm conftest*
12584
12585fi
12586{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12587echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12588
12589
12590hard_links="nottested"
12591if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12592  # do not overwrite the value of need_locks provided by the user
12593  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12594echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12595  hard_links=yes
12596  $rm conftest*
12597  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12598  touch conftest.a
12599  ln conftest.a conftest.b 2>&5 || hard_links=no
12600  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12601  { echo "$as_me:$LINENO: result: $hard_links" >&5
12602echo "${ECHO_T}$hard_links" >&6; }
12603  if test "$hard_links" = no; then
12604    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12605echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12606    need_locks=warn
12607  fi
12608else
12609  need_locks=no
12610fi
12611
12612{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12613echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12614
12615  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12616  case $host_os in
12617  aix4* | aix5*)
12618    # If we're using GNU nm, then we don't want the "-C" option.
12619    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12620    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12621      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'
12622    else
12623      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'
12624    fi
12625    ;;
12626  pw32*)
12627    export_symbols_cmds_CXX="$ltdll_cmds"
12628  ;;
12629  cygwin* | mingw*)
12630    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'
12631  ;;
12632  *)
12633    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12634  ;;
12635  esac
12636
12637{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12638echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12639test "$ld_shlibs_CXX" = no && can_build_shared=no
12640
12641#
12642# Do we need to explicitly link libc?
12643#
12644case "x$archive_cmds_need_lc_CXX" in
12645x|xyes)
12646  # Assume -lc should be added
12647  archive_cmds_need_lc_CXX=yes
12648
12649  if test "$enable_shared" = yes && test "$GCC" = yes; then
12650    case $archive_cmds_CXX in
12651    *'~'*)
12652      # FIXME: we may have to deal with multi-command sequences.
12653      ;;
12654    '$CC '*)
12655      # Test whether the compiler implicitly links with -lc since on some
12656      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12657      # to ld, don't add -lc before -lgcc.
12658      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12659echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12660      $rm conftest*
12661      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12662
12663      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12664  (eval $ac_compile) 2>&5
12665  ac_status=$?
12666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667  (exit $ac_status); } 2>conftest.err; then
12668        soname=conftest
12669        lib=conftest
12670        libobjs=conftest.$ac_objext
12671        deplibs=
12672        wl=$lt_prog_compiler_wl_CXX
12673	pic_flag=$lt_prog_compiler_pic_CXX
12674        compiler_flags=-v
12675        linker_flags=-v
12676        verstring=
12677        output_objdir=.
12678        libname=conftest
12679        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12680        allow_undefined_flag_CXX=
12681        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12682  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12683  ac_status=$?
12684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685  (exit $ac_status); }
12686        then
12687	  archive_cmds_need_lc_CXX=no
12688        else
12689	  archive_cmds_need_lc_CXX=yes
12690        fi
12691        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12692      else
12693        cat conftest.err 1>&5
12694      fi
12695      $rm conftest*
12696      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12697echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12698      ;;
12699    esac
12700  fi
12701  ;;
12702esac
12703
12704{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12705echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12706library_names_spec=
12707libname_spec='lib$name'
12708soname_spec=
12709shrext_cmds=".so"
12710postinstall_cmds=
12711postuninstall_cmds=
12712finish_cmds=
12713finish_eval=
12714shlibpath_var=
12715shlibpath_overrides_runpath=unknown
12716version_type=none
12717dynamic_linker="$host_os ld.so"
12718sys_lib_dlsearch_path_spec="/lib /usr/lib"
12719
12720need_lib_prefix=unknown
12721hardcode_into_libs=no
12722
12723# when you set need_version to no, make sure it does not cause -set_version
12724# flags to be left without arguments
12725need_version=unknown
12726
12727case $host_os in
12728aix3*)
12729  version_type=linux
12730  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12731  shlibpath_var=LIBPATH
12732
12733  # AIX 3 has no versioning support, so we append a major version to the name.
12734  soname_spec='${libname}${release}${shared_ext}$major'
12735  ;;
12736
12737aix4* | aix5*)
12738  version_type=linux
12739  need_lib_prefix=no
12740  need_version=no
12741  hardcode_into_libs=yes
12742  if test "$host_cpu" = ia64; then
12743    # AIX 5 supports IA64
12744    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12745    shlibpath_var=LD_LIBRARY_PATH
12746  else
12747    # With GCC up to 2.95.x, collect2 would create an import file
12748    # for dependence libraries.  The import file would start with
12749    # the line `#! .'.  This would cause the generated library to
12750    # depend on `.', always an invalid library.  This was fixed in
12751    # development snapshots of GCC prior to 3.0.
12752    case $host_os in
12753      aix4 | aix4.[01] | aix4.[01].*)
12754      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12755	   echo ' yes '
12756	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12757	:
12758      else
12759	can_build_shared=no
12760      fi
12761      ;;
12762    esac
12763    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12764    # soname into executable. Probably we can add versioning support to
12765    # collect2, so additional links can be useful in future.
12766    if test "$aix_use_runtimelinking" = yes; then
12767      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12768      # instead of lib<name>.a to let people know that these are not
12769      # typical AIX shared libraries.
12770      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12771    else
12772      # We preserve .a as extension for shared libraries through AIX4.2
12773      # and later when we are not doing run time linking.
12774      library_names_spec='${libname}${release}.a $libname.a'
12775      soname_spec='${libname}${release}${shared_ext}$major'
12776    fi
12777    shlibpath_var=LIBPATH
12778  fi
12779  ;;
12780
12781amigaos*)
12782  library_names_spec='$libname.ixlibrary $libname.a'
12783  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12784  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'
12785  ;;
12786
12787beos*)
12788  library_names_spec='${libname}${shared_ext}'
12789  dynamic_linker="$host_os ld.so"
12790  shlibpath_var=LIBRARY_PATH
12791  ;;
12792
12793bsdi[45]*)
12794  version_type=linux
12795  need_version=no
12796  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12797  soname_spec='${libname}${release}${shared_ext}$major'
12798  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12799  shlibpath_var=LD_LIBRARY_PATH
12800  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12801  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12802  # the default ld.so.conf also contains /usr/contrib/lib and
12803  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12804  # libtool to hard-code these into programs
12805  ;;
12806
12807cygwin* | mingw* | pw32*)
12808  version_type=windows
12809  shrext_cmds=".dll"
12810  need_version=no
12811  need_lib_prefix=no
12812
12813  case $GCC,$host_os in
12814  yes,cygwin* | yes,mingw* | yes,pw32*)
12815    library_names_spec='$libname.dll.a'
12816    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12817    postinstall_cmds='base_file=`basename \${file}`~
12818      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12819      dldir=$destdir/`dirname \$dlpath`~
12820      test -d \$dldir || mkdir -p \$dldir~
12821      $install_prog $dir/$dlname \$dldir/$dlname~
12822      chmod a+x \$dldir/$dlname'
12823    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12824      dlpath=$dir/\$dldll~
12825       $rm \$dlpath'
12826    shlibpath_overrides_runpath=yes
12827
12828    case $host_os in
12829    cygwin*)
12830      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12831      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12832      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12833      ;;
12834    mingw*)
12835      # MinGW DLLs use traditional 'lib' prefix
12836      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12837      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12838      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12839        # It is most probably a Windows format PATH printed by
12840        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12841        # path with ; separators, and with drive letters. We can handle the
12842        # drive letters (cygwin fileutils understands them), so leave them,
12843        # especially as we might pass files found there to a mingw objdump,
12844        # which wouldn't understand a cygwinified path. Ahh.
12845        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12846      else
12847        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12848      fi
12849      ;;
12850    pw32*)
12851      # pw32 DLLs use 'pw' prefix rather than 'lib'
12852      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12853      ;;
12854    esac
12855    ;;
12856
12857  *)
12858    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12859    ;;
12860  esac
12861  dynamic_linker='Win32 ld.exe'
12862  # FIXME: first we should search . and the directory the executable is in
12863  shlibpath_var=PATH
12864  ;;
12865
12866darwin* | rhapsody*)
12867  dynamic_linker="$host_os dyld"
12868  version_type=darwin
12869  need_lib_prefix=no
12870  need_version=no
12871  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12872  soname_spec='${libname}${release}${major}$shared_ext'
12873  shlibpath_overrides_runpath=yes
12874  shlibpath_var=DYLD_LIBRARY_PATH
12875  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12876
12877  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12878  ;;
12879
12880dgux*)
12881  version_type=linux
12882  need_lib_prefix=no
12883  need_version=no
12884  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12885  soname_spec='${libname}${release}${shared_ext}$major'
12886  shlibpath_var=LD_LIBRARY_PATH
12887  ;;
12888
12889freebsd1*)
12890  dynamic_linker=no
12891  ;;
12892
12893freebsd* | dragonfly*)
12894  # DragonFly does not have aout.  When/if they implement a new
12895  # versioning mechanism, adjust this.
12896  if test -x /usr/bin/objformat; then
12897    objformat=`/usr/bin/objformat`
12898  else
12899    case $host_os in
12900    freebsd[123]*) objformat=aout ;;
12901    *) objformat=elf ;;
12902    esac
12903  fi
12904  version_type=freebsd-$objformat
12905  case $version_type in
12906    freebsd-elf*)
12907      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12908      need_version=no
12909      need_lib_prefix=no
12910      ;;
12911    freebsd-*)
12912      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12913      need_version=yes
12914      ;;
12915  esac
12916  shlibpath_var=LD_LIBRARY_PATH
12917  case $host_os in
12918  freebsd2*)
12919    shlibpath_overrides_runpath=yes
12920    ;;
12921  freebsd3.[01]* | freebsdelf3.[01]*)
12922    shlibpath_overrides_runpath=yes
12923    hardcode_into_libs=yes
12924    ;;
12925  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12926  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12927    shlibpath_overrides_runpath=no
12928    hardcode_into_libs=yes
12929    ;;
12930  *) # from 4.6 on, and DragonFly
12931    shlibpath_overrides_runpath=yes
12932    hardcode_into_libs=yes
12933    ;;
12934  esac
12935  ;;
12936
12937gnu*)
12938  version_type=linux
12939  need_lib_prefix=no
12940  need_version=no
12941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12942  soname_spec='${libname}${release}${shared_ext}$major'
12943  shlibpath_var=LD_LIBRARY_PATH
12944  hardcode_into_libs=yes
12945  ;;
12946
12947hpux9* | hpux10* | hpux11*)
12948  # Give a soname corresponding to the major version so that dld.sl refuses to
12949  # link against other versions.
12950  version_type=sunos
12951  need_lib_prefix=no
12952  need_version=no
12953  case $host_cpu in
12954  ia64*)
12955    shrext_cmds='.so'
12956    hardcode_into_libs=yes
12957    dynamic_linker="$host_os dld.so"
12958    shlibpath_var=LD_LIBRARY_PATH
12959    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12960    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12961    soname_spec='${libname}${release}${shared_ext}$major'
12962    if test "X$HPUX_IA64_MODE" = X32; then
12963      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12964    else
12965      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12966    fi
12967    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12968    ;;
12969   hppa*64*)
12970     shrext_cmds='.sl'
12971     hardcode_into_libs=yes
12972     dynamic_linker="$host_os dld.sl"
12973     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12974     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12975     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12976     soname_spec='${libname}${release}${shared_ext}$major'
12977     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12978     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12979     ;;
12980   *)
12981    shrext_cmds='.sl'
12982    dynamic_linker="$host_os dld.sl"
12983    shlibpath_var=SHLIB_PATH
12984    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12985    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12986    soname_spec='${libname}${release}${shared_ext}$major'
12987    ;;
12988  esac
12989  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12990  postinstall_cmds='chmod 555 $lib'
12991  ;;
12992
12993interix[3-9]*)
12994  version_type=linux
12995  need_lib_prefix=no
12996  need_version=no
12997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12998  soname_spec='${libname}${release}${shared_ext}$major'
12999  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13000  shlibpath_var=LD_LIBRARY_PATH
13001  shlibpath_overrides_runpath=no
13002  hardcode_into_libs=yes
13003  ;;
13004
13005irix5* | irix6* | nonstopux*)
13006  case $host_os in
13007    nonstopux*) version_type=nonstopux ;;
13008    *)
13009	if test "$lt_cv_prog_gnu_ld" = yes; then
13010		version_type=linux
13011	else
13012		version_type=irix
13013	fi ;;
13014  esac
13015  need_lib_prefix=no
13016  need_version=no
13017  soname_spec='${libname}${release}${shared_ext}$major'
13018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13019  case $host_os in
13020  irix5* | nonstopux*)
13021    libsuff= shlibsuff=
13022    ;;
13023  *)
13024    case $LD in # libtool.m4 will add one of these switches to LD
13025    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13026      libsuff= shlibsuff= libmagic=32-bit;;
13027    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13028      libsuff=32 shlibsuff=N32 libmagic=N32;;
13029    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13030      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13031    *) libsuff= shlibsuff= libmagic=never-match;;
13032    esac
13033    ;;
13034  esac
13035  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13036  shlibpath_overrides_runpath=no
13037  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13038  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13039  hardcode_into_libs=yes
13040  ;;
13041
13042# No shared lib support for Linux oldld, aout, or coff.
13043linux*oldld* | linux*aout* | linux*coff*)
13044  dynamic_linker=no
13045  ;;
13046
13047# This must be Linux ELF.
13048linux* | k*bsd*-gnu)
13049  version_type=linux
13050  need_lib_prefix=no
13051  need_version=no
13052  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13053  soname_spec='${libname}${release}${shared_ext}$major'
13054  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13055  shlibpath_var=LD_LIBRARY_PATH
13056  shlibpath_overrides_runpath=no
13057  # This implies no fast_install, which is unacceptable.
13058  # Some rework will be needed to allow for fast_install
13059  # before this can be enabled.
13060  hardcode_into_libs=yes
13061  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13062  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13063
13064  # Append ld.so.conf contents to the search path
13065  if test -f /etc/ld.so.conf; then
13066    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' ' '`
13067    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13068  fi
13069
13070  # We used to test for /lib/ld.so.1 and disable shared libraries on
13071  # powerpc, because MkLinux only supported shared libraries with the
13072  # GNU dynamic linker.  Since this was broken with cross compilers,
13073  # most powerpc-linux boxes support dynamic linking these days and
13074  # people can always --disable-shared, the test was removed, and we
13075  # assume the GNU/Linux dynamic linker is in use.
13076  dynamic_linker='GNU/Linux ld.so'
13077  ;;
13078
13079netbsd*)
13080  version_type=sunos
13081  need_lib_prefix=no
13082  need_version=no
13083  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13084    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13085    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13086    dynamic_linker='NetBSD (a.out) ld.so'
13087  else
13088    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13089    soname_spec='${libname}${release}${shared_ext}$major'
13090    dynamic_linker='NetBSD ld.elf_so'
13091  fi
13092  shlibpath_var=LD_LIBRARY_PATH
13093  shlibpath_overrides_runpath=yes
13094  hardcode_into_libs=yes
13095  ;;
13096
13097newsos6)
13098  version_type=linux
13099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13100  shlibpath_var=LD_LIBRARY_PATH
13101  shlibpath_overrides_runpath=yes
13102  ;;
13103
13104nto-qnx*)
13105  version_type=linux
13106  need_lib_prefix=no
13107  need_version=no
13108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13109  soname_spec='${libname}${release}${shared_ext}$major'
13110  shlibpath_var=LD_LIBRARY_PATH
13111  shlibpath_overrides_runpath=yes
13112  ;;
13113
13114openbsd*)
13115  version_type=sunos
13116  sys_lib_dlsearch_path_spec="/usr/lib"
13117  need_lib_prefix=no
13118  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13119  case $host_os in
13120    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13121    *)                         need_version=no  ;;
13122  esac
13123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13124  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13125  shlibpath_var=LD_LIBRARY_PATH
13126  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13127    case $host_os in
13128      openbsd2.[89] | openbsd2.[89].*)
13129	shlibpath_overrides_runpath=no
13130	;;
13131      *)
13132	shlibpath_overrides_runpath=yes
13133	;;
13134      esac
13135  else
13136    shlibpath_overrides_runpath=yes
13137  fi
13138  ;;
13139
13140os2*)
13141  libname_spec='$name'
13142  shrext_cmds=".dll"
13143  need_lib_prefix=no
13144  library_names_spec='$libname${shared_ext} $libname.a'
13145  dynamic_linker='OS/2 ld.exe'
13146  shlibpath_var=LIBPATH
13147  ;;
13148
13149osf3* | osf4* | osf5*)
13150  version_type=osf
13151  need_lib_prefix=no
13152  need_version=no
13153  soname_spec='${libname}${release}${shared_ext}$major'
13154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13155  shlibpath_var=LD_LIBRARY_PATH
13156  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13157  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13158  ;;
13159
13160rdos*)
13161  dynamic_linker=no
13162  ;;
13163
13164solaris*)
13165  version_type=linux
13166  need_lib_prefix=no
13167  need_version=no
13168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13169  soname_spec='${libname}${release}${shared_ext}$major'
13170  shlibpath_var=LD_LIBRARY_PATH
13171  shlibpath_overrides_runpath=yes
13172  hardcode_into_libs=yes
13173  # ldd complains unless libraries are executable
13174  postinstall_cmds='chmod +x $lib'
13175  ;;
13176
13177sunos4*)
13178  version_type=sunos
13179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13180  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13181  shlibpath_var=LD_LIBRARY_PATH
13182  shlibpath_overrides_runpath=yes
13183  if test "$with_gnu_ld" = yes; then
13184    need_lib_prefix=no
13185  fi
13186  need_version=yes
13187  ;;
13188
13189sysv4 | sysv4.3*)
13190  version_type=linux
13191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13192  soname_spec='${libname}${release}${shared_ext}$major'
13193  shlibpath_var=LD_LIBRARY_PATH
13194  case $host_vendor in
13195    sni)
13196      shlibpath_overrides_runpath=no
13197      need_lib_prefix=no
13198      export_dynamic_flag_spec='${wl}-Blargedynsym'
13199      runpath_var=LD_RUN_PATH
13200      ;;
13201    siemens)
13202      need_lib_prefix=no
13203      ;;
13204    motorola)
13205      need_lib_prefix=no
13206      need_version=no
13207      shlibpath_overrides_runpath=no
13208      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13209      ;;
13210  esac
13211  ;;
13212
13213sysv4*MP*)
13214  if test -d /usr/nec ;then
13215    version_type=linux
13216    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13217    soname_spec='$libname${shared_ext}.$major'
13218    shlibpath_var=LD_LIBRARY_PATH
13219  fi
13220  ;;
13221
13222sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13223  version_type=freebsd-elf
13224  need_lib_prefix=no
13225  need_version=no
13226  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13227  soname_spec='${libname}${release}${shared_ext}$major'
13228  shlibpath_var=LD_LIBRARY_PATH
13229  hardcode_into_libs=yes
13230  if test "$with_gnu_ld" = yes; then
13231    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13232    shlibpath_overrides_runpath=no
13233  else
13234    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13235    shlibpath_overrides_runpath=yes
13236    case $host_os in
13237      sco3.2v5*)
13238        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13239	;;
13240    esac
13241  fi
13242  sys_lib_dlsearch_path_spec='/usr/lib'
13243  ;;
13244
13245uts4*)
13246  version_type=linux
13247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13248  soname_spec='${libname}${release}${shared_ext}$major'
13249  shlibpath_var=LD_LIBRARY_PATH
13250  ;;
13251
13252*)
13253  dynamic_linker=no
13254  ;;
13255esac
13256{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13257echo "${ECHO_T}$dynamic_linker" >&6; }
13258test "$dynamic_linker" = no && can_build_shared=no
13259
13260variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13261if test "$GCC" = yes; then
13262  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13263fi
13264
13265{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13266echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13267hardcode_action_CXX=
13268if test -n "$hardcode_libdir_flag_spec_CXX" || \
13269   test -n "$runpath_var_CXX" || \
13270   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13271
13272  # We can hardcode non-existant directories.
13273  if test "$hardcode_direct_CXX" != no &&
13274     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13275     # have to relink, otherwise we might link with an installed library
13276     # when we should be linking with a yet-to-be-installed one
13277     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13278     test "$hardcode_minus_L_CXX" != no; then
13279    # Linking always hardcodes the temporary library directory.
13280    hardcode_action_CXX=relink
13281  else
13282    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13283    hardcode_action_CXX=immediate
13284  fi
13285else
13286  # We cannot hardcode anything, or else we can only hardcode existing
13287  # directories.
13288  hardcode_action_CXX=unsupported
13289fi
13290{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13291echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13292
13293if test "$hardcode_action_CXX" = relink; then
13294  # Fast installation is not supported
13295  enable_fast_install=no
13296elif test "$shlibpath_overrides_runpath" = yes ||
13297     test "$enable_shared" = no; then
13298  # Fast installation is not necessary
13299  enable_fast_install=needless
13300fi
13301
13302
13303# The else clause should only fire when bootstrapping the
13304# libtool distribution, otherwise you forgot to ship ltmain.sh
13305# with your package, and you will get complaints that there are
13306# no rules to generate ltmain.sh.
13307if test -f "$ltmain"; then
13308  # See if we are running on zsh, and set the options which allow our commands through
13309  # without removal of \ escapes.
13310  if test -n "${ZSH_VERSION+set}" ; then
13311    setopt NO_GLOB_SUBST
13312  fi
13313  # Now quote all the things that may contain metacharacters while being
13314  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13315  # variables and quote the copies for generation of the libtool script.
13316  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13317    SED SHELL STRIP \
13318    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13319    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13320    deplibs_check_method reload_flag reload_cmds need_locks \
13321    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13322    lt_cv_sys_global_symbol_to_c_name_address \
13323    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13324    old_postinstall_cmds old_postuninstall_cmds \
13325    compiler_CXX \
13326    CC_CXX \
13327    LD_CXX \
13328    lt_prog_compiler_wl_CXX \
13329    lt_prog_compiler_pic_CXX \
13330    lt_prog_compiler_static_CXX \
13331    lt_prog_compiler_no_builtin_flag_CXX \
13332    export_dynamic_flag_spec_CXX \
13333    thread_safe_flag_spec_CXX \
13334    whole_archive_flag_spec_CXX \
13335    enable_shared_with_static_runtimes_CXX \
13336    old_archive_cmds_CXX \
13337    old_archive_from_new_cmds_CXX \
13338    predep_objects_CXX \
13339    postdep_objects_CXX \
13340    predeps_CXX \
13341    postdeps_CXX \
13342    compiler_lib_search_path_CXX \
13343    archive_cmds_CXX \
13344    archive_expsym_cmds_CXX \
13345    postinstall_cmds_CXX \
13346    postuninstall_cmds_CXX \
13347    old_archive_from_expsyms_cmds_CXX \
13348    allow_undefined_flag_CXX \
13349    no_undefined_flag_CXX \
13350    export_symbols_cmds_CXX \
13351    hardcode_libdir_flag_spec_CXX \
13352    hardcode_libdir_flag_spec_ld_CXX \
13353    hardcode_libdir_separator_CXX \
13354    hardcode_automatic_CXX \
13355    module_cmds_CXX \
13356    module_expsym_cmds_CXX \
13357    lt_cv_prog_compiler_c_o_CXX \
13358    fix_srcfile_path_CXX \
13359    exclude_expsyms_CXX \
13360    include_expsyms_CXX; do
13361
13362    case $var in
13363    old_archive_cmds_CXX | \
13364    old_archive_from_new_cmds_CXX | \
13365    archive_cmds_CXX | \
13366    archive_expsym_cmds_CXX | \
13367    module_cmds_CXX | \
13368    module_expsym_cmds_CXX | \
13369    old_archive_from_expsyms_cmds_CXX | \
13370    export_symbols_cmds_CXX | \
13371    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13372    postinstall_cmds | postuninstall_cmds | \
13373    old_postinstall_cmds | old_postuninstall_cmds | \
13374    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13375      # Double-quote double-evaled strings.
13376      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13377      ;;
13378    *)
13379      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13380      ;;
13381    esac
13382  done
13383
13384  case $lt_echo in
13385  *'\$0 --fallback-echo"')
13386    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13387    ;;
13388  esac
13389
13390cfgfile="$ofile"
13391
13392  cat <<__EOF__ >> "$cfgfile"
13393# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13394
13395# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13396
13397# Shell to use when invoking shell scripts.
13398SHELL=$lt_SHELL
13399
13400# Whether or not to build shared libraries.
13401build_libtool_libs=$enable_shared
13402
13403# Whether or not to build static libraries.
13404build_old_libs=$enable_static
13405
13406# Whether or not to add -lc for building shared libraries.
13407build_libtool_need_lc=$archive_cmds_need_lc_CXX
13408
13409# Whether or not to disallow shared libs when runtime libs are static
13410allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13411
13412# Whether or not to optimize for fast installation.
13413fast_install=$enable_fast_install
13414
13415# The host system.
13416host_alias=$host_alias
13417host=$host
13418host_os=$host_os
13419
13420# The build system.
13421build_alias=$build_alias
13422build=$build
13423build_os=$build_os
13424
13425# An echo program that does not interpret backslashes.
13426echo=$lt_echo
13427
13428# The archiver.
13429AR=$lt_AR
13430AR_FLAGS=$lt_AR_FLAGS
13431
13432# A C compiler.
13433LTCC=$lt_LTCC
13434
13435# LTCC compiler flags.
13436LTCFLAGS=$lt_LTCFLAGS
13437
13438# A language-specific compiler.
13439CC=$lt_compiler_CXX
13440
13441# Is the compiler the GNU C compiler?
13442with_gcc=$GCC_CXX
13443
13444# An ERE matcher.
13445EGREP=$lt_EGREP
13446
13447# The linker used to build libraries.
13448LD=$lt_LD_CXX
13449
13450# Whether we need hard or soft links.
13451LN_S=$lt_LN_S
13452
13453# A BSD-compatible nm program.
13454NM=$lt_NM
13455
13456# A symbol stripping program
13457STRIP=$lt_STRIP
13458
13459# Used to examine libraries when file_magic_cmd begins "file"
13460MAGIC_CMD=$MAGIC_CMD
13461
13462# Used on cygwin: DLL creation program.
13463DLLTOOL="$DLLTOOL"
13464
13465# Used on cygwin: object dumper.
13466OBJDUMP="$OBJDUMP"
13467
13468# Used on cygwin: assembler.
13469AS="$AS"
13470
13471# The name of the directory that contains temporary libtool files.
13472objdir=$objdir
13473
13474# How to create reloadable object files.
13475reload_flag=$lt_reload_flag
13476reload_cmds=$lt_reload_cmds
13477
13478# How to pass a linker flag through the compiler.
13479wl=$lt_lt_prog_compiler_wl_CXX
13480
13481# Object file suffix (normally "o").
13482objext="$ac_objext"
13483
13484# Old archive suffix (normally "a").
13485libext="$libext"
13486
13487# Shared library suffix (normally ".so").
13488shrext_cmds='$shrext_cmds'
13489
13490# Executable file suffix (normally "").
13491exeext="$exeext"
13492
13493# Additional compiler flags for building library objects.
13494pic_flag=$lt_lt_prog_compiler_pic_CXX
13495pic_mode=$pic_mode
13496
13497# What is the maximum length of a command?
13498max_cmd_len=$lt_cv_sys_max_cmd_len
13499
13500# Does compiler simultaneously support -c and -o options?
13501compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13502
13503# Must we lock files when doing compilation?
13504need_locks=$lt_need_locks
13505
13506# Do we need the lib prefix for modules?
13507need_lib_prefix=$need_lib_prefix
13508
13509# Do we need a version for libraries?
13510need_version=$need_version
13511
13512# Whether dlopen is supported.
13513dlopen_support=$enable_dlopen
13514
13515# Whether dlopen of programs is supported.
13516dlopen_self=$enable_dlopen_self
13517
13518# Whether dlopen of statically linked programs is supported.
13519dlopen_self_static=$enable_dlopen_self_static
13520
13521# Compiler flag to prevent dynamic linking.
13522link_static_flag=$lt_lt_prog_compiler_static_CXX
13523
13524# Compiler flag to turn off builtin functions.
13525no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13526
13527# Compiler flag to allow reflexive dlopens.
13528export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13529
13530# Compiler flag to generate shared objects directly from archives.
13531whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13532
13533# Compiler flag to generate thread-safe objects.
13534thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13535
13536# Library versioning type.
13537version_type=$version_type
13538
13539# Format of library name prefix.
13540libname_spec=$lt_libname_spec
13541
13542# List of archive names.  First name is the real one, the rest are links.
13543# The last name is the one that the linker finds with -lNAME.
13544library_names_spec=$lt_library_names_spec
13545
13546# The coded name of the library, if different from the real name.
13547soname_spec=$lt_soname_spec
13548
13549# Commands used to build and install an old-style archive.
13550RANLIB=$lt_RANLIB
13551old_archive_cmds=$lt_old_archive_cmds_CXX
13552old_postinstall_cmds=$lt_old_postinstall_cmds
13553old_postuninstall_cmds=$lt_old_postuninstall_cmds
13554
13555# Create an old-style archive from a shared archive.
13556old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13557
13558# Create a temporary old-style archive to link instead of a shared archive.
13559old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13560
13561# Commands used to build and install a shared archive.
13562archive_cmds=$lt_archive_cmds_CXX
13563archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13564postinstall_cmds=$lt_postinstall_cmds
13565postuninstall_cmds=$lt_postuninstall_cmds
13566
13567# Commands used to build a loadable module (assumed same as above if empty)
13568module_cmds=$lt_module_cmds_CXX
13569module_expsym_cmds=$lt_module_expsym_cmds_CXX
13570
13571# Commands to strip libraries.
13572old_striplib=$lt_old_striplib
13573striplib=$lt_striplib
13574
13575# Dependencies to place before the objects being linked to create a
13576# shared library.
13577predep_objects=$lt_predep_objects_CXX
13578
13579# Dependencies to place after the objects being linked to create a
13580# shared library.
13581postdep_objects=$lt_postdep_objects_CXX
13582
13583# Dependencies to place before the objects being linked to create a
13584# shared library.
13585predeps=$lt_predeps_CXX
13586
13587# Dependencies to place after the objects being linked to create a
13588# shared library.
13589postdeps=$lt_postdeps_CXX
13590
13591# The library search path used internally by the compiler when linking
13592# a shared library.
13593compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13594
13595# Method to check whether dependent libraries are shared objects.
13596deplibs_check_method=$lt_deplibs_check_method
13597
13598# Command to use when deplibs_check_method == file_magic.
13599file_magic_cmd=$lt_file_magic_cmd
13600
13601# Flag that allows shared libraries with undefined symbols to be built.
13602allow_undefined_flag=$lt_allow_undefined_flag_CXX
13603
13604# Flag that forces no undefined symbols.
13605no_undefined_flag=$lt_no_undefined_flag_CXX
13606
13607# Commands used to finish a libtool library installation in a directory.
13608finish_cmds=$lt_finish_cmds
13609
13610# Same as above, but a single script fragment to be evaled but not shown.
13611finish_eval=$lt_finish_eval
13612
13613# Take the output of nm and produce a listing of raw symbols and C names.
13614global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13615
13616# Transform the output of nm in a proper C declaration
13617global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13618
13619# Transform the output of nm in a C name address pair
13620global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13621
13622# This is the shared library runtime path variable.
13623runpath_var=$runpath_var
13624
13625# This is the shared library path variable.
13626shlibpath_var=$shlibpath_var
13627
13628# Is shlibpath searched before the hard-coded library search path?
13629shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13630
13631# How to hardcode a shared library path into an executable.
13632hardcode_action=$hardcode_action_CXX
13633
13634# Whether we should hardcode library paths into libraries.
13635hardcode_into_libs=$hardcode_into_libs
13636
13637# Flag to hardcode \$libdir into a binary during linking.
13638# This must work even if \$libdir does not exist.
13639hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13640
13641# If ld is used when linking, flag to hardcode \$libdir into
13642# a binary during linking. This must work even if \$libdir does
13643# not exist.
13644hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13645
13646# Whether we need a single -rpath flag with a separated argument.
13647hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13648
13649# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13650# resulting binary.
13651hardcode_direct=$hardcode_direct_CXX
13652
13653# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13654# resulting binary.
13655hardcode_minus_L=$hardcode_minus_L_CXX
13656
13657# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13658# the resulting binary.
13659hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13660
13661# Set to yes if building a shared library automatically hardcodes DIR into the library
13662# and all subsequent libraries and executables linked against it.
13663hardcode_automatic=$hardcode_automatic_CXX
13664
13665# Variables whose values should be saved in libtool wrapper scripts and
13666# restored at relink time.
13667variables_saved_for_relink="$variables_saved_for_relink"
13668
13669# Whether libtool must link a program against all its dependency libraries.
13670link_all_deplibs=$link_all_deplibs_CXX
13671
13672# Compile-time system search path for libraries
13673sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13674
13675# Run-time system search path for libraries
13676sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13677
13678# Fix the shell variable \$srcfile for the compiler.
13679fix_srcfile_path=$lt_fix_srcfile_path
13680
13681# Set to yes if exported symbols are required.
13682always_export_symbols=$always_export_symbols_CXX
13683
13684# The commands to list exported symbols.
13685export_symbols_cmds=$lt_export_symbols_cmds_CXX
13686
13687# The commands to extract the exported symbol list from a shared archive.
13688extract_expsyms_cmds=$lt_extract_expsyms_cmds
13689
13690# Symbols that should not be listed in the preloaded symbols.
13691exclude_expsyms=$lt_exclude_expsyms_CXX
13692
13693# Symbols that must always be exported.
13694include_expsyms=$lt_include_expsyms_CXX
13695
13696# ### END LIBTOOL TAG CONFIG: $tagname
13697
13698__EOF__
13699
13700
13701else
13702  # If there is no Makefile yet, we rely on a make rule to execute
13703  # `config.status --recheck' to rerun these tests and create the
13704  # libtool script then.
13705  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13706  if test -f "$ltmain_in"; then
13707    test -f Makefile && make "$ltmain"
13708  fi
13709fi
13710
13711
13712ac_ext=c
13713ac_cpp='$CPP $CPPFLAGS'
13714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13716ac_compiler_gnu=$ac_cv_c_compiler_gnu
13717
13718CC=$lt_save_CC
13719LDCXX=$LD
13720LD=$lt_save_LD
13721GCC=$lt_save_GCC
13722with_gnu_ldcxx=$with_gnu_ld
13723with_gnu_ld=$lt_save_with_gnu_ld
13724lt_cv_path_LDCXX=$lt_cv_path_LD
13725lt_cv_path_LD=$lt_save_path_LD
13726lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13727lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13728
13729	else
13730	  tagname=""
13731	fi
13732	;;
13733
13734      F77)
13735	if test -n "$F77" && test "X$F77" != "Xno"; then
13736
13737ac_ext=f
13738ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13739ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13740ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13741
13742
13743archive_cmds_need_lc_F77=no
13744allow_undefined_flag_F77=
13745always_export_symbols_F77=no
13746archive_expsym_cmds_F77=
13747export_dynamic_flag_spec_F77=
13748hardcode_direct_F77=no
13749hardcode_libdir_flag_spec_F77=
13750hardcode_libdir_flag_spec_ld_F77=
13751hardcode_libdir_separator_F77=
13752hardcode_minus_L_F77=no
13753hardcode_automatic_F77=no
13754module_cmds_F77=
13755module_expsym_cmds_F77=
13756link_all_deplibs_F77=unknown
13757old_archive_cmds_F77=$old_archive_cmds
13758no_undefined_flag_F77=
13759whole_archive_flag_spec_F77=
13760enable_shared_with_static_runtimes_F77=no
13761
13762# Source file extension for f77 test sources.
13763ac_ext=f
13764
13765# Object file extension for compiled f77 test sources.
13766objext=o
13767objext_F77=$objext
13768
13769# Code to be used in simple compile tests
13770lt_simple_compile_test_code="\
13771      subroutine t
13772      return
13773      end
13774"
13775
13776# Code to be used in simple link tests
13777lt_simple_link_test_code="\
13778      program t
13779      end
13780"
13781
13782# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13783
13784# If no C compiler was specified, use CC.
13785LTCC=${LTCC-"$CC"}
13786
13787# If no C compiler flags were specified, use CFLAGS.
13788LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13789
13790# Allow CC to be a program name with arguments.
13791compiler=$CC
13792
13793
13794# save warnings/boilerplate of simple test code
13795ac_outfile=conftest.$ac_objext
13796echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13797eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13798_lt_compiler_boilerplate=`cat conftest.err`
13799$rm conftest*
13800
13801ac_outfile=conftest.$ac_objext
13802echo "$lt_simple_link_test_code" >conftest.$ac_ext
13803eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13804_lt_linker_boilerplate=`cat conftest.err`
13805$rm conftest*
13806
13807
13808# Allow CC to be a program name with arguments.
13809lt_save_CC="$CC"
13810CC=${F77-"f77"}
13811compiler=$CC
13812compiler_F77=$CC
13813for cc_temp in $compiler""; do
13814  case $cc_temp in
13815    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13816    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13817    \-*) ;;
13818    *) break;;
13819  esac
13820done
13821cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13822
13823
13824{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13825echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13826{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13827echo "${ECHO_T}$can_build_shared" >&6; }
13828
13829{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13830echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13831test "$can_build_shared" = "no" && enable_shared=no
13832
13833# On AIX, shared libraries and static libraries use the same namespace, and
13834# are all built from PIC.
13835case $host_os in
13836aix3*)
13837  test "$enable_shared" = yes && enable_static=no
13838  if test -n "$RANLIB"; then
13839    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13840    postinstall_cmds='$RANLIB $lib'
13841  fi
13842  ;;
13843aix4* | aix5*)
13844  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13845    test "$enable_shared" = yes && enable_static=no
13846  fi
13847  ;;
13848esac
13849{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13850echo "${ECHO_T}$enable_shared" >&6; }
13851
13852{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13853echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13854# Make sure either enable_shared or enable_static is yes.
13855test "$enable_shared" = yes || enable_static=yes
13856{ echo "$as_me:$LINENO: result: $enable_static" >&5
13857echo "${ECHO_T}$enable_static" >&6; }
13858
13859GCC_F77="$G77"
13860LD_F77="$LD"
13861
13862lt_prog_compiler_wl_F77=
13863lt_prog_compiler_pic_F77=
13864lt_prog_compiler_static_F77=
13865
13866{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13867echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13868
13869  if test "$GCC" = yes; then
13870    lt_prog_compiler_wl_F77='-Wl,'
13871    lt_prog_compiler_static_F77='-static'
13872
13873    case $host_os in
13874      aix*)
13875      # All AIX code is PIC.
13876      if test "$host_cpu" = ia64; then
13877	# AIX 5 now supports IA64 processor
13878	lt_prog_compiler_static_F77='-Bstatic'
13879      fi
13880      ;;
13881
13882    amigaos*)
13883      # FIXME: we need at least 68020 code to build shared libraries, but
13884      # adding the `-m68020' flag to GCC prevents building anything better,
13885      # like `-m68040'.
13886      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13887      ;;
13888
13889    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13890      # PIC is the default for these OSes.
13891      ;;
13892
13893    mingw* | cygwin* | pw32* | os2*)
13894      # This hack is so that the source file can tell whether it is being
13895      # built for inclusion in a dll (and should export symbols for example).
13896      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13897      # (--disable-auto-import) libraries
13898      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13899      ;;
13900
13901    darwin* | rhapsody*)
13902      # PIC is the default on this platform
13903      # Common symbols not allowed in MH_DYLIB files
13904      lt_prog_compiler_pic_F77='-fno-common'
13905      ;;
13906
13907    interix[3-9]*)
13908      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13909      # Instead, we relocate shared libraries at runtime.
13910      ;;
13911
13912    msdosdjgpp*)
13913      # Just because we use GCC doesn't mean we suddenly get shared libraries
13914      # on systems that don't support them.
13915      lt_prog_compiler_can_build_shared_F77=no
13916      enable_shared=no
13917      ;;
13918
13919    sysv4*MP*)
13920      if test -d /usr/nec; then
13921	lt_prog_compiler_pic_F77=-Kconform_pic
13922      fi
13923      ;;
13924
13925    hpux*)
13926      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13927      # not for PA HP-UX.
13928      case $host_cpu in
13929      hppa*64*|ia64*)
13930	# +Z the default
13931	;;
13932      *)
13933	lt_prog_compiler_pic_F77='-fPIC'
13934	;;
13935      esac
13936      ;;
13937
13938    *)
13939      lt_prog_compiler_pic_F77='-fPIC'
13940      ;;
13941    esac
13942  else
13943    # PORTME Check for flag to pass linker flags through the system compiler.
13944    case $host_os in
13945    aix*)
13946      lt_prog_compiler_wl_F77='-Wl,'
13947      if test "$host_cpu" = ia64; then
13948	# AIX 5 now supports IA64 processor
13949	lt_prog_compiler_static_F77='-Bstatic'
13950      else
13951	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13952      fi
13953      ;;
13954      darwin*)
13955        # PIC is the default on this platform
13956        # Common symbols not allowed in MH_DYLIB files
13957       case $cc_basename in
13958         xlc*)
13959         lt_prog_compiler_pic_F77='-qnocommon'
13960         lt_prog_compiler_wl_F77='-Wl,'
13961         ;;
13962       esac
13963       ;;
13964
13965    mingw* | cygwin* | pw32* | os2*)
13966      # This hack is so that the source file can tell whether it is being
13967      # built for inclusion in a dll (and should export symbols for example).
13968      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13969      ;;
13970
13971    hpux9* | hpux10* | hpux11*)
13972      lt_prog_compiler_wl_F77='-Wl,'
13973      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13974      # not for PA HP-UX.
13975      case $host_cpu in
13976      hppa*64*|ia64*)
13977	# +Z the default
13978	;;
13979      *)
13980	lt_prog_compiler_pic_F77='+Z'
13981	;;
13982      esac
13983      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13984      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13985      ;;
13986
13987    irix5* | irix6* | nonstopux*)
13988      lt_prog_compiler_wl_F77='-Wl,'
13989      # PIC (with -KPIC) is the default.
13990      lt_prog_compiler_static_F77='-non_shared'
13991      ;;
13992
13993    newsos6)
13994      lt_prog_compiler_pic_F77='-KPIC'
13995      lt_prog_compiler_static_F77='-Bstatic'
13996      ;;
13997
13998    linux* | k*bsd*-gnu)
13999      case $cc_basename in
14000      icc* | ecc*)
14001	lt_prog_compiler_wl_F77='-Wl,'
14002	lt_prog_compiler_pic_F77='-KPIC'
14003	lt_prog_compiler_static_F77='-static'
14004        ;;
14005      pgcc* | pgf77* | pgf90* | pgf95*)
14006        # Portland Group compilers (*not* the Pentium gcc compiler,
14007	# which looks to be a dead project)
14008	lt_prog_compiler_wl_F77='-Wl,'
14009	lt_prog_compiler_pic_F77='-fpic'
14010	lt_prog_compiler_static_F77='-Bstatic'
14011        ;;
14012      ccc*)
14013        lt_prog_compiler_wl_F77='-Wl,'
14014        # All Alpha code is PIC.
14015        lt_prog_compiler_static_F77='-non_shared'
14016        ;;
14017      *)
14018        case `$CC -V 2>&1 | sed 5q` in
14019	*Sun\ C*)
14020	  # Sun C 5.9
14021	  lt_prog_compiler_pic_F77='-KPIC'
14022	  lt_prog_compiler_static_F77='-Bstatic'
14023	  lt_prog_compiler_wl_F77='-Wl,'
14024	  ;;
14025	*Sun\ F*)
14026	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14027	  lt_prog_compiler_pic_F77='-KPIC'
14028	  lt_prog_compiler_static_F77='-Bstatic'
14029	  lt_prog_compiler_wl_F77=''
14030	  ;;
14031	esac
14032	;;
14033      esac
14034      ;;
14035
14036    osf3* | osf4* | osf5*)
14037      lt_prog_compiler_wl_F77='-Wl,'
14038      # All OSF/1 code is PIC.
14039      lt_prog_compiler_static_F77='-non_shared'
14040      ;;
14041
14042    rdos*)
14043      lt_prog_compiler_static_F77='-non_shared'
14044      ;;
14045
14046    solaris*)
14047      lt_prog_compiler_pic_F77='-KPIC'
14048      lt_prog_compiler_static_F77='-Bstatic'
14049      case $cc_basename in
14050      f77* | f90* | f95*)
14051	lt_prog_compiler_wl_F77='-Qoption ld ';;
14052      *)
14053	lt_prog_compiler_wl_F77='-Wl,';;
14054      esac
14055      ;;
14056
14057    sunos4*)
14058      lt_prog_compiler_wl_F77='-Qoption ld '
14059      lt_prog_compiler_pic_F77='-PIC'
14060      lt_prog_compiler_static_F77='-Bstatic'
14061      ;;
14062
14063    sysv4 | sysv4.2uw2* | sysv4.3*)
14064      lt_prog_compiler_wl_F77='-Wl,'
14065      lt_prog_compiler_pic_F77='-KPIC'
14066      lt_prog_compiler_static_F77='-Bstatic'
14067      ;;
14068
14069    sysv4*MP*)
14070      if test -d /usr/nec ;then
14071	lt_prog_compiler_pic_F77='-Kconform_pic'
14072	lt_prog_compiler_static_F77='-Bstatic'
14073      fi
14074      ;;
14075
14076    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14077      lt_prog_compiler_wl_F77='-Wl,'
14078      lt_prog_compiler_pic_F77='-KPIC'
14079      lt_prog_compiler_static_F77='-Bstatic'
14080      ;;
14081
14082    unicos*)
14083      lt_prog_compiler_wl_F77='-Wl,'
14084      lt_prog_compiler_can_build_shared_F77=no
14085      ;;
14086
14087    uts4*)
14088      lt_prog_compiler_pic_F77='-pic'
14089      lt_prog_compiler_static_F77='-Bstatic'
14090      ;;
14091
14092    *)
14093      lt_prog_compiler_can_build_shared_F77=no
14094      ;;
14095    esac
14096  fi
14097
14098{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14099echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14100
14101#
14102# Check to make sure the PIC flag actually works.
14103#
14104if test -n "$lt_prog_compiler_pic_F77"; then
14105
14106{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14107echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14108if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14109  echo $ECHO_N "(cached) $ECHO_C" >&6
14110else
14111  lt_prog_compiler_pic_works_F77=no
14112  ac_outfile=conftest.$ac_objext
14113   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14114   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14115   # Insert the option either (1) after the last *FLAGS variable, or
14116   # (2) before a word containing "conftest.", or (3) at the end.
14117   # Note that $ac_compile itself does not contain backslashes and begins
14118   # with a dollar sign (not a hyphen), so the echo should work correctly.
14119   # The option is referenced via a variable to avoid confusing sed.
14120   lt_compile=`echo "$ac_compile" | $SED \
14121   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14122   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14123   -e 's:$: $lt_compiler_flag:'`
14124   (eval echo "\"\$as_me:14124: $lt_compile\"" >&5)
14125   (eval "$lt_compile" 2>conftest.err)
14126   ac_status=$?
14127   cat conftest.err >&5
14128   echo "$as_me:14128: \$? = $ac_status" >&5
14129   if (exit $ac_status) && test -s "$ac_outfile"; then
14130     # The compiler can only warn and ignore the option if not recognized
14131     # So say no if there are warnings other than the usual output.
14132     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14133     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14134     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14135       lt_prog_compiler_pic_works_F77=yes
14136     fi
14137   fi
14138   $rm conftest*
14139
14140fi
14141{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14142echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14143
14144if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14145    case $lt_prog_compiler_pic_F77 in
14146     "" | " "*) ;;
14147     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14148     esac
14149else
14150    lt_prog_compiler_pic_F77=
14151     lt_prog_compiler_can_build_shared_F77=no
14152fi
14153
14154fi
14155case $host_os in
14156  # For platforms which do not support PIC, -DPIC is meaningless:
14157  *djgpp*)
14158    lt_prog_compiler_pic_F77=
14159    ;;
14160  *)
14161    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14162    ;;
14163esac
14164
14165#
14166# Check to make sure the static flag actually works.
14167#
14168wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14169{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14170echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14171if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14172  echo $ECHO_N "(cached) $ECHO_C" >&6
14173else
14174  lt_prog_compiler_static_works_F77=no
14175   save_LDFLAGS="$LDFLAGS"
14176   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14177   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14178   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14179     # The linker can only warn and ignore the option if not recognized
14180     # So say no if there are warnings
14181     if test -s conftest.err; then
14182       # Append any errors to the config.log.
14183       cat conftest.err 1>&5
14184       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14185       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14186       if diff conftest.exp conftest.er2 >/dev/null; then
14187         lt_prog_compiler_static_works_F77=yes
14188       fi
14189     else
14190       lt_prog_compiler_static_works_F77=yes
14191     fi
14192   fi
14193   $rm conftest*
14194   LDFLAGS="$save_LDFLAGS"
14195
14196fi
14197{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14198echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14199
14200if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14201    :
14202else
14203    lt_prog_compiler_static_F77=
14204fi
14205
14206
14207{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14208echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14209if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14210  echo $ECHO_N "(cached) $ECHO_C" >&6
14211else
14212  lt_cv_prog_compiler_c_o_F77=no
14213   $rm -r conftest 2>/dev/null
14214   mkdir conftest
14215   cd conftest
14216   mkdir out
14217   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14218
14219   lt_compiler_flag="-o out/conftest2.$ac_objext"
14220   # Insert the option either (1) after the last *FLAGS variable, or
14221   # (2) before a word containing "conftest.", or (3) at the end.
14222   # Note that $ac_compile itself does not contain backslashes and begins
14223   # with a dollar sign (not a hyphen), so the echo should work correctly.
14224   lt_compile=`echo "$ac_compile" | $SED \
14225   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14226   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14227   -e 's:$: $lt_compiler_flag:'`
14228   (eval echo "\"\$as_me:14228: $lt_compile\"" >&5)
14229   (eval "$lt_compile" 2>out/conftest.err)
14230   ac_status=$?
14231   cat out/conftest.err >&5
14232   echo "$as_me:14232: \$? = $ac_status" >&5
14233   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14234   then
14235     # The compiler can only warn and ignore the option if not recognized
14236     # So say no if there are warnings
14237     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14238     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14239     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14240       lt_cv_prog_compiler_c_o_F77=yes
14241     fi
14242   fi
14243   chmod u+w . 2>&5
14244   $rm conftest*
14245   # SGI C++ compiler will create directory out/ii_files/ for
14246   # template instantiation
14247   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14248   $rm out/* && rmdir out
14249   cd ..
14250   rmdir conftest
14251   $rm conftest*
14252
14253fi
14254{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14255echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14256
14257
14258hard_links="nottested"
14259if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14260  # do not overwrite the value of need_locks provided by the user
14261  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14262echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14263  hard_links=yes
14264  $rm conftest*
14265  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14266  touch conftest.a
14267  ln conftest.a conftest.b 2>&5 || hard_links=no
14268  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14269  { echo "$as_me:$LINENO: result: $hard_links" >&5
14270echo "${ECHO_T}$hard_links" >&6; }
14271  if test "$hard_links" = no; then
14272    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14273echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14274    need_locks=warn
14275  fi
14276else
14277  need_locks=no
14278fi
14279
14280{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14281echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14282
14283  runpath_var=
14284  allow_undefined_flag_F77=
14285  enable_shared_with_static_runtimes_F77=no
14286  archive_cmds_F77=
14287  archive_expsym_cmds_F77=
14288  old_archive_From_new_cmds_F77=
14289  old_archive_from_expsyms_cmds_F77=
14290  export_dynamic_flag_spec_F77=
14291  whole_archive_flag_spec_F77=
14292  thread_safe_flag_spec_F77=
14293  hardcode_libdir_flag_spec_F77=
14294  hardcode_libdir_flag_spec_ld_F77=
14295  hardcode_libdir_separator_F77=
14296  hardcode_direct_F77=no
14297  hardcode_minus_L_F77=no
14298  hardcode_shlibpath_var_F77=unsupported
14299  link_all_deplibs_F77=unknown
14300  hardcode_automatic_F77=no
14301  module_cmds_F77=
14302  module_expsym_cmds_F77=
14303  always_export_symbols_F77=no
14304  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14305  # include_expsyms should be a list of space-separated symbols to be *always*
14306  # included in the symbol list
14307  include_expsyms_F77=
14308  # exclude_expsyms can be an extended regexp of symbols to exclude
14309  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14310  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14311  # as well as any symbol that contains `d'.
14312  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14313  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14314  # platforms (ab)use it in PIC code, but their linkers get confused if
14315  # the symbol is explicitly referenced.  Since portable code cannot
14316  # rely on this symbol name, it's probably fine to never include it in
14317  # preloaded symbol tables.
14318  extract_expsyms_cmds=
14319  # Just being paranoid about ensuring that cc_basename is set.
14320  for cc_temp in $compiler""; do
14321  case $cc_temp in
14322    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14323    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14324    \-*) ;;
14325    *) break;;
14326  esac
14327done
14328cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14329
14330  case $host_os in
14331  cygwin* | mingw* | pw32*)
14332    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14333    # When not using gcc, we currently assume that we are using
14334    # Microsoft Visual C++.
14335    if test "$GCC" != yes; then
14336      with_gnu_ld=no
14337    fi
14338    ;;
14339  interix*)
14340    # we just hope/assume this is gcc and not c89 (= MSVC++)
14341    with_gnu_ld=yes
14342    ;;
14343  openbsd*)
14344    with_gnu_ld=no
14345    ;;
14346  esac
14347
14348  ld_shlibs_F77=yes
14349  if test "$with_gnu_ld" = yes; then
14350    # If archive_cmds runs LD, not CC, wlarc should be empty
14351    wlarc='${wl}'
14352
14353    # Set some defaults for GNU ld with shared library support. These
14354    # are reset later if shared libraries are not supported. Putting them
14355    # here allows them to be overridden if necessary.
14356    runpath_var=LD_RUN_PATH
14357    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14358    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14359    # ancient GNU ld didn't support --whole-archive et. al.
14360    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14361	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14362      else
14363  	whole_archive_flag_spec_F77=
14364    fi
14365    supports_anon_versioning=no
14366    case `$LD -v 2>/dev/null` in
14367      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14368      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14369      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14370      *\ 2.11.*) ;; # other 2.11 versions
14371      *) supports_anon_versioning=yes ;;
14372    esac
14373
14374    # See if GNU ld supports shared libraries.
14375    case $host_os in
14376    aix3* | aix4* | aix5*)
14377      # On AIX/PPC, the GNU linker is very broken
14378      if test "$host_cpu" != ia64; then
14379	ld_shlibs_F77=no
14380	cat <<EOF 1>&2
14381
14382*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14383*** to be unable to reliably create shared libraries on AIX.
14384*** Therefore, libtool is disabling shared libraries support.  If you
14385*** really care for shared libraries, you may want to modify your PATH
14386*** so that a non-GNU linker is found, and then restart.
14387
14388EOF
14389      fi
14390      ;;
14391
14392    amigaos*)
14393      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)'
14394      hardcode_libdir_flag_spec_F77='-L$libdir'
14395      hardcode_minus_L_F77=yes
14396
14397      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14398      # that the semantics of dynamic libraries on AmigaOS, at least up
14399      # to version 4, is to share data among multiple programs linked
14400      # with the same dynamic library.  Since this doesn't match the
14401      # behavior of shared libraries on other platforms, we can't use
14402      # them.
14403      ld_shlibs_F77=no
14404      ;;
14405
14406    beos*)
14407      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14408	allow_undefined_flag_F77=unsupported
14409	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14410	# support --undefined.  This deserves some investigation.  FIXME
14411	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14412      else
14413	ld_shlibs_F77=no
14414      fi
14415      ;;
14416
14417    cygwin* | mingw* | pw32*)
14418      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14419      # as there is no search path for DLLs.
14420      hardcode_libdir_flag_spec_F77='-L$libdir'
14421      allow_undefined_flag_F77=unsupported
14422      always_export_symbols_F77=no
14423      enable_shared_with_static_runtimes_F77=yes
14424      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14425
14426      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14427        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14428	# If the export-symbols file already is a .def file (1st line
14429	# is EXPORTS), use it as is; otherwise, prepend...
14430	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14431	  cp $export_symbols $output_objdir/$soname.def;
14432	else
14433	  echo EXPORTS > $output_objdir/$soname.def;
14434	  cat $export_symbols >> $output_objdir/$soname.def;
14435	fi~
14436	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14437      else
14438	ld_shlibs_F77=no
14439      fi
14440      ;;
14441
14442    interix[3-9]*)
14443      hardcode_direct_F77=no
14444      hardcode_shlibpath_var_F77=no
14445      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14446      export_dynamic_flag_spec_F77='${wl}-E'
14447      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14448      # Instead, shared libraries are loaded at an image base (0x10000000 by
14449      # default) and relocated if they conflict, which is a slow very memory
14450      # consuming and fragmenting process.  To avoid this, we pick a random,
14451      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14452      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14453      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'
14454      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'
14455      ;;
14456
14457    gnu* | linux* | k*bsd*-gnu)
14458      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14459	tmp_addflag=
14460	case $cc_basename,$host_cpu in
14461	pgcc*)				# Portland Group C compiler
14462	  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'
14463	  tmp_addflag=' $pic_flag'
14464	  ;;
14465	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14466	  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'
14467	  tmp_addflag=' $pic_flag -Mnomain' ;;
14468	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14469	  tmp_addflag=' -i_dynamic' ;;
14470	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14471	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14472	ifc* | ifort*)			# Intel Fortran compiler
14473	  tmp_addflag=' -nofor_main' ;;
14474	esac
14475	case `$CC -V 2>&1 | sed 5q` in
14476	*Sun\ C*)			# Sun C 5.9
14477	  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'
14478	  tmp_sharedflag='-G' ;;
14479	*Sun\ F*)			# Sun Fortran 8.3
14480	  tmp_sharedflag='-G' ;;
14481	*)
14482	  tmp_sharedflag='-shared' ;;
14483	esac
14484	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14485
14486	if test $supports_anon_versioning = yes; then
14487	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14488  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14489  $echo "local: *; };" >> $output_objdir/$libname.ver~
14490	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14491	fi
14492      else
14493	ld_shlibs_F77=no
14494      fi
14495      ;;
14496
14497    netbsd*)
14498      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14499	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14500	wlarc=
14501      else
14502	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14503	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14504      fi
14505      ;;
14506
14507    solaris*)
14508      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14509	ld_shlibs_F77=no
14510	cat <<EOF 1>&2
14511
14512*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14513*** create shared libraries on Solaris systems.  Therefore, libtool
14514*** is disabling shared libraries support.  We urge you to upgrade GNU
14515*** binutils to release 2.9.1 or newer.  Another option is to modify
14516*** your PATH or compiler configuration so that the native linker is
14517*** used, and then restart.
14518
14519EOF
14520      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14521	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14522	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14523      else
14524	ld_shlibs_F77=no
14525      fi
14526      ;;
14527
14528    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14529      case `$LD -v 2>&1` in
14530        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14531	ld_shlibs_F77=no
14532	cat <<_LT_EOF 1>&2
14533
14534*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14535*** reliably create shared libraries on SCO systems.  Therefore, libtool
14536*** is disabling shared libraries support.  We urge you to upgrade GNU
14537*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14538*** your PATH or compiler configuration so that the native linker is
14539*** used, and then restart.
14540
14541_LT_EOF
14542	;;
14543	*)
14544	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14545	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14546	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14547	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14548	  else
14549	    ld_shlibs_F77=no
14550	  fi
14551	;;
14552      esac
14553      ;;
14554
14555    sunos4*)
14556      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14557      wlarc=
14558      hardcode_direct_F77=yes
14559      hardcode_shlibpath_var_F77=no
14560      ;;
14561
14562    *)
14563      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14564	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14565	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14566      else
14567	ld_shlibs_F77=no
14568      fi
14569      ;;
14570    esac
14571
14572    if test "$ld_shlibs_F77" = no; then
14573      runpath_var=
14574      hardcode_libdir_flag_spec_F77=
14575      export_dynamic_flag_spec_F77=
14576      whole_archive_flag_spec_F77=
14577    fi
14578  else
14579    # PORTME fill in a description of your system's linker (not GNU ld)
14580    case $host_os in
14581    aix3*)
14582      allow_undefined_flag_F77=unsupported
14583      always_export_symbols_F77=yes
14584      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'
14585      # Note: this linker hardcodes the directories in LIBPATH if there
14586      # are no directories specified by -L.
14587      hardcode_minus_L_F77=yes
14588      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14589	# Neither direct hardcoding nor static linking is supported with a
14590	# broken collect2.
14591	hardcode_direct_F77=unsupported
14592      fi
14593      ;;
14594
14595    aix4* | aix5*)
14596      if test "$host_cpu" = ia64; then
14597	# On IA64, the linker does run time linking by default, so we don't
14598	# have to do anything special.
14599	aix_use_runtimelinking=no
14600	exp_sym_flag='-Bexport'
14601	no_entry_flag=""
14602      else
14603	# If we're using GNU nm, then we don't want the "-C" option.
14604	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14605	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14606	  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'
14607	else
14608	  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'
14609	fi
14610	aix_use_runtimelinking=no
14611
14612	# Test if we are trying to use run time linking or normal
14613	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14614	# need to do runtime linking.
14615	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14616	  for ld_flag in $LDFLAGS; do
14617  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14618  	    aix_use_runtimelinking=yes
14619  	    break
14620  	  fi
14621	  done
14622	  ;;
14623	esac
14624
14625	exp_sym_flag='-bexport'
14626	no_entry_flag='-bnoentry'
14627      fi
14628
14629      # When large executables or shared objects are built, AIX ld can
14630      # have problems creating the table of contents.  If linking a library
14631      # or program results in "error TOC overflow" add -mminimal-toc to
14632      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14633      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14634
14635      archive_cmds_F77=''
14636      hardcode_direct_F77=yes
14637      hardcode_libdir_separator_F77=':'
14638      link_all_deplibs_F77=yes
14639
14640      if test "$GCC" = yes; then
14641	case $host_os in aix4.[012]|aix4.[012].*)
14642	# We only want to do this on AIX 4.2 and lower, the check
14643	# below for broken collect2 doesn't work under 4.3+
14644	  collect2name=`${CC} -print-prog-name=collect2`
14645	  if test -f "$collect2name" && \
14646  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14647	  then
14648  	  # We have reworked collect2
14649  	  :
14650	  else
14651  	  # We have old collect2
14652  	  hardcode_direct_F77=unsupported
14653  	  # It fails to find uninstalled libraries when the uninstalled
14654  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14655  	  # to unsupported forces relinking
14656  	  hardcode_minus_L_F77=yes
14657  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14658  	  hardcode_libdir_separator_F77=
14659	  fi
14660	  ;;
14661	esac
14662	shared_flag='-shared'
14663	if test "$aix_use_runtimelinking" = yes; then
14664	  shared_flag="$shared_flag "'${wl}-G'
14665	fi
14666      else
14667	# not using gcc
14668	if test "$host_cpu" = ia64; then
14669  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14670  	# chokes on -Wl,-G. The following line is correct:
14671	  shared_flag='-G'
14672	else
14673	  if test "$aix_use_runtimelinking" = yes; then
14674	    shared_flag='${wl}-G'
14675	  else
14676	    shared_flag='${wl}-bM:SRE'
14677	  fi
14678	fi
14679      fi
14680
14681      # It seems that -bexpall does not export symbols beginning with
14682      # underscore (_), so it is better to generate a list of symbols to export.
14683      always_export_symbols_F77=yes
14684      if test "$aix_use_runtimelinking" = yes; then
14685	# Warning - without using the other runtime loading flags (-brtl),
14686	# -berok will link without error, but may produce a broken library.
14687	allow_undefined_flag_F77='-berok'
14688       # Determine the default libpath from the value encoded in an empty executable.
14689       cat >conftest.$ac_ext <<_ACEOF
14690      program main
14691
14692      end
14693_ACEOF
14694rm -f conftest.$ac_objext conftest$ac_exeext
14695if { (ac_try="$ac_link"
14696case "(($ac_try" in
14697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698  *) ac_try_echo=$ac_try;;
14699esac
14700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701  (eval "$ac_link") 2>conftest.er1
14702  ac_status=$?
14703  grep -v '^ *+' conftest.er1 >conftest.err
14704  rm -f conftest.er1
14705  cat conftest.err >&5
14706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707  (exit $ac_status); } && {
14708	 test -z "$ac_f77_werror_flag" ||
14709	 test ! -s conftest.err
14710       } && test -s conftest$ac_exeext &&
14711       $as_test_x conftest$ac_exeext; then
14712
14713lt_aix_libpath_sed='
14714    /Import File Strings/,/^$/ {
14715	/^0/ {
14716	    s/^0  *\(.*\)$/\1/
14717	    p
14718	}
14719    }'
14720aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14721# Check for a 64-bit object if we didn't find anything.
14722if test -z "$aix_libpath"; then
14723  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14724fi
14725else
14726  echo "$as_me: failed program was:" >&5
14727sed 's/^/| /' conftest.$ac_ext >&5
14728
14729
14730fi
14731
14732rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14733      conftest$ac_exeext conftest.$ac_ext
14734if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14735
14736       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14737	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"
14738       else
14739	if test "$host_cpu" = ia64; then
14740	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14741	  allow_undefined_flag_F77="-z nodefs"
14742	  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"
14743	else
14744	 # Determine the default libpath from the value encoded in an empty executable.
14745	 cat >conftest.$ac_ext <<_ACEOF
14746      program main
14747
14748      end
14749_ACEOF
14750rm -f conftest.$ac_objext conftest$ac_exeext
14751if { (ac_try="$ac_link"
14752case "(($ac_try" in
14753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754  *) ac_try_echo=$ac_try;;
14755esac
14756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757  (eval "$ac_link") 2>conftest.er1
14758  ac_status=$?
14759  grep -v '^ *+' conftest.er1 >conftest.err
14760  rm -f conftest.er1
14761  cat conftest.err >&5
14762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763  (exit $ac_status); } && {
14764	 test -z "$ac_f77_werror_flag" ||
14765	 test ! -s conftest.err
14766       } && test -s conftest$ac_exeext &&
14767       $as_test_x conftest$ac_exeext; then
14768
14769lt_aix_libpath_sed='
14770    /Import File Strings/,/^$/ {
14771	/^0/ {
14772	    s/^0  *\(.*\)$/\1/
14773	    p
14774	}
14775    }'
14776aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14777# Check for a 64-bit object if we didn't find anything.
14778if test -z "$aix_libpath"; then
14779  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14780fi
14781else
14782  echo "$as_me: failed program was:" >&5
14783sed 's/^/| /' conftest.$ac_ext >&5
14784
14785
14786fi
14787
14788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14789      conftest$ac_exeext conftest.$ac_ext
14790if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14791
14792	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14793	  # Warning - without using the other run time loading flags,
14794	  # -berok will link without error, but may produce a broken library.
14795	  no_undefined_flag_F77=' ${wl}-bernotok'
14796	  allow_undefined_flag_F77=' ${wl}-berok'
14797	  # Exported symbols can be pulled into shared objects from archives
14798	  whole_archive_flag_spec_F77='$convenience'
14799	  archive_cmds_need_lc_F77=yes
14800	  # This is similar to how AIX traditionally builds its shared libraries.
14801	  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'
14802	fi
14803      fi
14804      ;;
14805
14806    amigaos*)
14807      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)'
14808      hardcode_libdir_flag_spec_F77='-L$libdir'
14809      hardcode_minus_L_F77=yes
14810      # see comment about different semantics on the GNU ld section
14811      ld_shlibs_F77=no
14812      ;;
14813
14814    bsdi[45]*)
14815      export_dynamic_flag_spec_F77=-rdynamic
14816      ;;
14817
14818    cygwin* | mingw* | pw32*)
14819      # When not using gcc, we currently assume that we are using
14820      # Microsoft Visual C++.
14821      # hardcode_libdir_flag_spec is actually meaningless, as there is
14822      # no search path for DLLs.
14823      hardcode_libdir_flag_spec_F77=' '
14824      allow_undefined_flag_F77=unsupported
14825      # Tell ltmain to make .lib files, not .a files.
14826      libext=lib
14827      # Tell ltmain to make .dll files, not .so files.
14828      shrext_cmds=".dll"
14829      # FIXME: Setting linknames here is a bad hack.
14830      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14831      # The linker will automatically build a .lib file if we build a DLL.
14832      old_archive_From_new_cmds_F77='true'
14833      # FIXME: Should let the user specify the lib program.
14834      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14835      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14836      enable_shared_with_static_runtimes_F77=yes
14837      ;;
14838
14839    darwin* | rhapsody*)
14840      case $host_os in
14841        rhapsody* | darwin1.[012])
14842         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14843         ;;
14844       *) # Darwin 1.3 on
14845         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14846           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14847         else
14848           case ${MACOSX_DEPLOYMENT_TARGET} in
14849             10.[012])
14850               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14851               ;;
14852             10.*)
14853               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14854               ;;
14855           esac
14856         fi
14857         ;;
14858      esac
14859      archive_cmds_need_lc_F77=no
14860      hardcode_direct_F77=no
14861      hardcode_automatic_F77=yes
14862      hardcode_shlibpath_var_F77=unsupported
14863      whole_archive_flag_spec_F77=''
14864      link_all_deplibs_F77=yes
14865    if test "$GCC" = yes ; then
14866    	output_verbose_link_cmd='echo'
14867        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14868      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14869      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14870      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14871      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}'
14872    else
14873      case $cc_basename in
14874        xlc*)
14875         output_verbose_link_cmd='echo'
14876         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14877         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14878          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14879         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}'
14880          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}'
14881          ;;
14882       *)
14883         ld_shlibs_F77=no
14884          ;;
14885      esac
14886    fi
14887      ;;
14888
14889    dgux*)
14890      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14891      hardcode_libdir_flag_spec_F77='-L$libdir'
14892      hardcode_shlibpath_var_F77=no
14893      ;;
14894
14895    freebsd1*)
14896      ld_shlibs_F77=no
14897      ;;
14898
14899    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14900    # support.  Future versions do this automatically, but an explicit c++rt0.o
14901    # does not break anything, and helps significantly (at the cost of a little
14902    # extra space).
14903    freebsd2.2*)
14904      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14905      hardcode_libdir_flag_spec_F77='-R$libdir'
14906      hardcode_direct_F77=yes
14907      hardcode_shlibpath_var_F77=no
14908      ;;
14909
14910    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14911    freebsd2*)
14912      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14913      hardcode_direct_F77=yes
14914      hardcode_minus_L_F77=yes
14915      hardcode_shlibpath_var_F77=no
14916      ;;
14917
14918    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14919    freebsd* | dragonfly*)
14920      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14921      hardcode_libdir_flag_spec_F77='-R$libdir'
14922      hardcode_direct_F77=yes
14923      hardcode_shlibpath_var_F77=no
14924      ;;
14925
14926    hpux9*)
14927      if test "$GCC" = yes; then
14928	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'
14929      else
14930	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'
14931      fi
14932      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14933      hardcode_libdir_separator_F77=:
14934      hardcode_direct_F77=yes
14935
14936      # hardcode_minus_L: Not really in the search PATH,
14937      # but as the default location of the library.
14938      hardcode_minus_L_F77=yes
14939      export_dynamic_flag_spec_F77='${wl}-E'
14940      ;;
14941
14942    hpux10*)
14943      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14944	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14945      else
14946	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14947      fi
14948      if test "$with_gnu_ld" = no; then
14949	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14950	hardcode_libdir_separator_F77=:
14951
14952	hardcode_direct_F77=yes
14953	export_dynamic_flag_spec_F77='${wl}-E'
14954
14955	# hardcode_minus_L: Not really in the search PATH,
14956	# but as the default location of the library.
14957	hardcode_minus_L_F77=yes
14958      fi
14959      ;;
14960
14961    hpux11*)
14962      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14963	case $host_cpu in
14964	hppa*64*)
14965	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14966	  ;;
14967	ia64*)
14968	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14969	  ;;
14970	*)
14971	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14972	  ;;
14973	esac
14974      else
14975	case $host_cpu in
14976	hppa*64*)
14977	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14978	  ;;
14979	ia64*)
14980	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14981	  ;;
14982	*)
14983	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14984	  ;;
14985	esac
14986      fi
14987      if test "$with_gnu_ld" = no; then
14988	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14989	hardcode_libdir_separator_F77=:
14990
14991	case $host_cpu in
14992	hppa*64*|ia64*)
14993	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14994	  hardcode_direct_F77=no
14995	  hardcode_shlibpath_var_F77=no
14996	  ;;
14997	*)
14998	  hardcode_direct_F77=yes
14999	  export_dynamic_flag_spec_F77='${wl}-E'
15000
15001	  # hardcode_minus_L: Not really in the search PATH,
15002	  # but as the default location of the library.
15003	  hardcode_minus_L_F77=yes
15004	  ;;
15005	esac
15006      fi
15007      ;;
15008
15009    irix5* | irix6* | nonstopux*)
15010      if test "$GCC" = yes; then
15011	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'
15012      else
15013	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'
15014	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15015      fi
15016      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15017      hardcode_libdir_separator_F77=:
15018      link_all_deplibs_F77=yes
15019      ;;
15020
15021    netbsd*)
15022      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15023	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15024      else
15025	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15026      fi
15027      hardcode_libdir_flag_spec_F77='-R$libdir'
15028      hardcode_direct_F77=yes
15029      hardcode_shlibpath_var_F77=no
15030      ;;
15031
15032    newsos6)
15033      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15034      hardcode_direct_F77=yes
15035      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15036      hardcode_libdir_separator_F77=:
15037      hardcode_shlibpath_var_F77=no
15038      ;;
15039
15040    openbsd*)
15041      if test -f /usr/libexec/ld.so; then
15042	hardcode_direct_F77=yes
15043	hardcode_shlibpath_var_F77=no
15044	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15045	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15046	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15047	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15048	  export_dynamic_flag_spec_F77='${wl}-E'
15049	else
15050	  case $host_os in
15051	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15052	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15053	     hardcode_libdir_flag_spec_F77='-R$libdir'
15054	     ;;
15055	   *)
15056	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15057	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15058	     ;;
15059	  esac
15060        fi
15061      else
15062	ld_shlibs_F77=no
15063      fi
15064      ;;
15065
15066    os2*)
15067      hardcode_libdir_flag_spec_F77='-L$libdir'
15068      hardcode_minus_L_F77=yes
15069      allow_undefined_flag_F77=unsupported
15070      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'
15071      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15072      ;;
15073
15074    osf3*)
15075      if test "$GCC" = yes; then
15076	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15077	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'
15078      else
15079	allow_undefined_flag_F77=' -expect_unresolved \*'
15080	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'
15081      fi
15082      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15083      hardcode_libdir_separator_F77=:
15084      ;;
15085
15086    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15087      if test "$GCC" = yes; then
15088	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15089	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'
15090	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15091      else
15092	allow_undefined_flag_F77=' -expect_unresolved \*'
15093	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'
15094	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~
15095	$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'
15096
15097	# Both c and cxx compiler support -rpath directly
15098	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15099      fi
15100      hardcode_libdir_separator_F77=:
15101      ;;
15102
15103    solaris*)
15104      no_undefined_flag_F77=' -z text'
15105      if test "$GCC" = yes; then
15106	wlarc='${wl}'
15107	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15108	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15109	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15110      else
15111	wlarc=''
15112	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15113	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15114  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15115      fi
15116      hardcode_libdir_flag_spec_F77='-R$libdir'
15117      hardcode_shlibpath_var_F77=no
15118      case $host_os in
15119      solaris2.[0-5] | solaris2.[0-5].*) ;;
15120      *)
15121	# The compiler driver will combine and reorder linker options,
15122	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15123	# but is careful enough not to reorder.
15124 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15125	if test "$GCC" = yes; then
15126	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15127	else
15128	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15129	fi
15130	;;
15131      esac
15132      link_all_deplibs_F77=yes
15133      ;;
15134
15135    sunos4*)
15136      if test "x$host_vendor" = xsequent; then
15137	# Use $CC to link under sequent, because it throws in some extra .o
15138	# files that make .init and .fini sections work.
15139	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15140      else
15141	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15142      fi
15143      hardcode_libdir_flag_spec_F77='-L$libdir'
15144      hardcode_direct_F77=yes
15145      hardcode_minus_L_F77=yes
15146      hardcode_shlibpath_var_F77=no
15147      ;;
15148
15149    sysv4)
15150      case $host_vendor in
15151	sni)
15152	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15153	  hardcode_direct_F77=yes # is this really true???
15154	;;
15155	siemens)
15156	  ## LD is ld it makes a PLAMLIB
15157	  ## CC just makes a GrossModule.
15158	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15159	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15160	  hardcode_direct_F77=no
15161        ;;
15162	motorola)
15163	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15164	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15165	;;
15166      esac
15167      runpath_var='LD_RUN_PATH'
15168      hardcode_shlibpath_var_F77=no
15169      ;;
15170
15171    sysv4.3*)
15172      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15173      hardcode_shlibpath_var_F77=no
15174      export_dynamic_flag_spec_F77='-Bexport'
15175      ;;
15176
15177    sysv4*MP*)
15178      if test -d /usr/nec; then
15179	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15180	hardcode_shlibpath_var_F77=no
15181	runpath_var=LD_RUN_PATH
15182	hardcode_runpath_var=yes
15183	ld_shlibs_F77=yes
15184      fi
15185      ;;
15186
15187    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15188      no_undefined_flag_F77='${wl}-z,text'
15189      archive_cmds_need_lc_F77=no
15190      hardcode_shlibpath_var_F77=no
15191      runpath_var='LD_RUN_PATH'
15192
15193      if test "$GCC" = yes; then
15194	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15195	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15196      else
15197	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15198	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15199      fi
15200      ;;
15201
15202    sysv5* | sco3.2v5* | sco5v6*)
15203      # Note: We can NOT use -z defs as we might desire, because we do not
15204      # link with -lc, and that would cause any symbols used from libc to
15205      # always be unresolved, which means just about no library would
15206      # ever link correctly.  If we're not using GNU ld we use -z text
15207      # though, which does catch some bad symbols but isn't as heavy-handed
15208      # as -z defs.
15209      no_undefined_flag_F77='${wl}-z,text'
15210      allow_undefined_flag_F77='${wl}-z,nodefs'
15211      archive_cmds_need_lc_F77=no
15212      hardcode_shlibpath_var_F77=no
15213      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15214      hardcode_libdir_separator_F77=':'
15215      link_all_deplibs_F77=yes
15216      export_dynamic_flag_spec_F77='${wl}-Bexport'
15217      runpath_var='LD_RUN_PATH'
15218
15219      if test "$GCC" = yes; then
15220	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15221	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15222      else
15223	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15224	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15225      fi
15226      ;;
15227
15228    uts4*)
15229      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15230      hardcode_libdir_flag_spec_F77='-L$libdir'
15231      hardcode_shlibpath_var_F77=no
15232      ;;
15233
15234    *)
15235      ld_shlibs_F77=no
15236      ;;
15237    esac
15238  fi
15239
15240{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15241echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15242test "$ld_shlibs_F77" = no && can_build_shared=no
15243
15244#
15245# Do we need to explicitly link libc?
15246#
15247case "x$archive_cmds_need_lc_F77" in
15248x|xyes)
15249  # Assume -lc should be added
15250  archive_cmds_need_lc_F77=yes
15251
15252  if test "$enable_shared" = yes && test "$GCC" = yes; then
15253    case $archive_cmds_F77 in
15254    *'~'*)
15255      # FIXME: we may have to deal with multi-command sequences.
15256      ;;
15257    '$CC '*)
15258      # Test whether the compiler implicitly links with -lc since on some
15259      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15260      # to ld, don't add -lc before -lgcc.
15261      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15262echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15263      $rm conftest*
15264      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15265
15266      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15267  (eval $ac_compile) 2>&5
15268  ac_status=$?
15269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270  (exit $ac_status); } 2>conftest.err; then
15271        soname=conftest
15272        lib=conftest
15273        libobjs=conftest.$ac_objext
15274        deplibs=
15275        wl=$lt_prog_compiler_wl_F77
15276	pic_flag=$lt_prog_compiler_pic_F77
15277        compiler_flags=-v
15278        linker_flags=-v
15279        verstring=
15280        output_objdir=.
15281        libname=conftest
15282        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15283        allow_undefined_flag_F77=
15284        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15285  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15286  ac_status=$?
15287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288  (exit $ac_status); }
15289        then
15290	  archive_cmds_need_lc_F77=no
15291        else
15292	  archive_cmds_need_lc_F77=yes
15293        fi
15294        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15295      else
15296        cat conftest.err 1>&5
15297      fi
15298      $rm conftest*
15299      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15300echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15301      ;;
15302    esac
15303  fi
15304  ;;
15305esac
15306
15307{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15308echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15309library_names_spec=
15310libname_spec='lib$name'
15311soname_spec=
15312shrext_cmds=".so"
15313postinstall_cmds=
15314postuninstall_cmds=
15315finish_cmds=
15316finish_eval=
15317shlibpath_var=
15318shlibpath_overrides_runpath=unknown
15319version_type=none
15320dynamic_linker="$host_os ld.so"
15321sys_lib_dlsearch_path_spec="/lib /usr/lib"
15322
15323need_lib_prefix=unknown
15324hardcode_into_libs=no
15325
15326# when you set need_version to no, make sure it does not cause -set_version
15327# flags to be left without arguments
15328need_version=unknown
15329
15330case $host_os in
15331aix3*)
15332  version_type=linux
15333  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15334  shlibpath_var=LIBPATH
15335
15336  # AIX 3 has no versioning support, so we append a major version to the name.
15337  soname_spec='${libname}${release}${shared_ext}$major'
15338  ;;
15339
15340aix4* | aix5*)
15341  version_type=linux
15342  need_lib_prefix=no
15343  need_version=no
15344  hardcode_into_libs=yes
15345  if test "$host_cpu" = ia64; then
15346    # AIX 5 supports IA64
15347    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15348    shlibpath_var=LD_LIBRARY_PATH
15349  else
15350    # With GCC up to 2.95.x, collect2 would create an import file
15351    # for dependence libraries.  The import file would start with
15352    # the line `#! .'.  This would cause the generated library to
15353    # depend on `.', always an invalid library.  This was fixed in
15354    # development snapshots of GCC prior to 3.0.
15355    case $host_os in
15356      aix4 | aix4.[01] | aix4.[01].*)
15357      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15358	   echo ' yes '
15359	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15360	:
15361      else
15362	can_build_shared=no
15363      fi
15364      ;;
15365    esac
15366    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15367    # soname into executable. Probably we can add versioning support to
15368    # collect2, so additional links can be useful in future.
15369    if test "$aix_use_runtimelinking" = yes; then
15370      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15371      # instead of lib<name>.a to let people know that these are not
15372      # typical AIX shared libraries.
15373      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15374    else
15375      # We preserve .a as extension for shared libraries through AIX4.2
15376      # and later when we are not doing run time linking.
15377      library_names_spec='${libname}${release}.a $libname.a'
15378      soname_spec='${libname}${release}${shared_ext}$major'
15379    fi
15380    shlibpath_var=LIBPATH
15381  fi
15382  ;;
15383
15384amigaos*)
15385  library_names_spec='$libname.ixlibrary $libname.a'
15386  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15387  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'
15388  ;;
15389
15390beos*)
15391  library_names_spec='${libname}${shared_ext}'
15392  dynamic_linker="$host_os ld.so"
15393  shlibpath_var=LIBRARY_PATH
15394  ;;
15395
15396bsdi[45]*)
15397  version_type=linux
15398  need_version=no
15399  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15400  soname_spec='${libname}${release}${shared_ext}$major'
15401  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15402  shlibpath_var=LD_LIBRARY_PATH
15403  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15404  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15405  # the default ld.so.conf also contains /usr/contrib/lib and
15406  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15407  # libtool to hard-code these into programs
15408  ;;
15409
15410cygwin* | mingw* | pw32*)
15411  version_type=windows
15412  shrext_cmds=".dll"
15413  need_version=no
15414  need_lib_prefix=no
15415
15416  case $GCC,$host_os in
15417  yes,cygwin* | yes,mingw* | yes,pw32*)
15418    library_names_spec='$libname.dll.a'
15419    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15420    postinstall_cmds='base_file=`basename \${file}`~
15421      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15422      dldir=$destdir/`dirname \$dlpath`~
15423      test -d \$dldir || mkdir -p \$dldir~
15424      $install_prog $dir/$dlname \$dldir/$dlname~
15425      chmod a+x \$dldir/$dlname'
15426    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15427      dlpath=$dir/\$dldll~
15428       $rm \$dlpath'
15429    shlibpath_overrides_runpath=yes
15430
15431    case $host_os in
15432    cygwin*)
15433      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15434      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15435      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15436      ;;
15437    mingw*)
15438      # MinGW DLLs use traditional 'lib' prefix
15439      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15440      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15441      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15442        # It is most probably a Windows format PATH printed by
15443        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15444        # path with ; separators, and with drive letters. We can handle the
15445        # drive letters (cygwin fileutils understands them), so leave them,
15446        # especially as we might pass files found there to a mingw objdump,
15447        # which wouldn't understand a cygwinified path. Ahh.
15448        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15449      else
15450        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15451      fi
15452      ;;
15453    pw32*)
15454      # pw32 DLLs use 'pw' prefix rather than 'lib'
15455      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15456      ;;
15457    esac
15458    ;;
15459
15460  *)
15461    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15462    ;;
15463  esac
15464  dynamic_linker='Win32 ld.exe'
15465  # FIXME: first we should search . and the directory the executable is in
15466  shlibpath_var=PATH
15467  ;;
15468
15469darwin* | rhapsody*)
15470  dynamic_linker="$host_os dyld"
15471  version_type=darwin
15472  need_lib_prefix=no
15473  need_version=no
15474  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15475  soname_spec='${libname}${release}${major}$shared_ext'
15476  shlibpath_overrides_runpath=yes
15477  shlibpath_var=DYLD_LIBRARY_PATH
15478  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15479
15480  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15481  ;;
15482
15483dgux*)
15484  version_type=linux
15485  need_lib_prefix=no
15486  need_version=no
15487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15488  soname_spec='${libname}${release}${shared_ext}$major'
15489  shlibpath_var=LD_LIBRARY_PATH
15490  ;;
15491
15492freebsd1*)
15493  dynamic_linker=no
15494  ;;
15495
15496freebsd* | dragonfly*)
15497  # DragonFly does not have aout.  When/if they implement a new
15498  # versioning mechanism, adjust this.
15499  if test -x /usr/bin/objformat; then
15500    objformat=`/usr/bin/objformat`
15501  else
15502    case $host_os in
15503    freebsd[123]*) objformat=aout ;;
15504    *) objformat=elf ;;
15505    esac
15506  fi
15507  version_type=freebsd-$objformat
15508  case $version_type in
15509    freebsd-elf*)
15510      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15511      need_version=no
15512      need_lib_prefix=no
15513      ;;
15514    freebsd-*)
15515      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15516      need_version=yes
15517      ;;
15518  esac
15519  shlibpath_var=LD_LIBRARY_PATH
15520  case $host_os in
15521  freebsd2*)
15522    shlibpath_overrides_runpath=yes
15523    ;;
15524  freebsd3.[01]* | freebsdelf3.[01]*)
15525    shlibpath_overrides_runpath=yes
15526    hardcode_into_libs=yes
15527    ;;
15528  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15529  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15530    shlibpath_overrides_runpath=no
15531    hardcode_into_libs=yes
15532    ;;
15533  *) # from 4.6 on, and DragonFly
15534    shlibpath_overrides_runpath=yes
15535    hardcode_into_libs=yes
15536    ;;
15537  esac
15538  ;;
15539
15540gnu*)
15541  version_type=linux
15542  need_lib_prefix=no
15543  need_version=no
15544  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15545  soname_spec='${libname}${release}${shared_ext}$major'
15546  shlibpath_var=LD_LIBRARY_PATH
15547  hardcode_into_libs=yes
15548  ;;
15549
15550hpux9* | hpux10* | hpux11*)
15551  # Give a soname corresponding to the major version so that dld.sl refuses to
15552  # link against other versions.
15553  version_type=sunos
15554  need_lib_prefix=no
15555  need_version=no
15556  case $host_cpu in
15557  ia64*)
15558    shrext_cmds='.so'
15559    hardcode_into_libs=yes
15560    dynamic_linker="$host_os dld.so"
15561    shlibpath_var=LD_LIBRARY_PATH
15562    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15563    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15564    soname_spec='${libname}${release}${shared_ext}$major'
15565    if test "X$HPUX_IA64_MODE" = X32; then
15566      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15567    else
15568      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15569    fi
15570    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15571    ;;
15572   hppa*64*)
15573     shrext_cmds='.sl'
15574     hardcode_into_libs=yes
15575     dynamic_linker="$host_os dld.sl"
15576     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15577     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15579     soname_spec='${libname}${release}${shared_ext}$major'
15580     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15581     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15582     ;;
15583   *)
15584    shrext_cmds='.sl'
15585    dynamic_linker="$host_os dld.sl"
15586    shlibpath_var=SHLIB_PATH
15587    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15588    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15589    soname_spec='${libname}${release}${shared_ext}$major'
15590    ;;
15591  esac
15592  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15593  postinstall_cmds='chmod 555 $lib'
15594  ;;
15595
15596interix[3-9]*)
15597  version_type=linux
15598  need_lib_prefix=no
15599  need_version=no
15600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15601  soname_spec='${libname}${release}${shared_ext}$major'
15602  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15603  shlibpath_var=LD_LIBRARY_PATH
15604  shlibpath_overrides_runpath=no
15605  hardcode_into_libs=yes
15606  ;;
15607
15608irix5* | irix6* | nonstopux*)
15609  case $host_os in
15610    nonstopux*) version_type=nonstopux ;;
15611    *)
15612	if test "$lt_cv_prog_gnu_ld" = yes; then
15613		version_type=linux
15614	else
15615		version_type=irix
15616	fi ;;
15617  esac
15618  need_lib_prefix=no
15619  need_version=no
15620  soname_spec='${libname}${release}${shared_ext}$major'
15621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15622  case $host_os in
15623  irix5* | nonstopux*)
15624    libsuff= shlibsuff=
15625    ;;
15626  *)
15627    case $LD in # libtool.m4 will add one of these switches to LD
15628    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15629      libsuff= shlibsuff= libmagic=32-bit;;
15630    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15631      libsuff=32 shlibsuff=N32 libmagic=N32;;
15632    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15633      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15634    *) libsuff= shlibsuff= libmagic=never-match;;
15635    esac
15636    ;;
15637  esac
15638  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15639  shlibpath_overrides_runpath=no
15640  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15641  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15642  hardcode_into_libs=yes
15643  ;;
15644
15645# No shared lib support for Linux oldld, aout, or coff.
15646linux*oldld* | linux*aout* | linux*coff*)
15647  dynamic_linker=no
15648  ;;
15649
15650# This must be Linux ELF.
15651linux* | k*bsd*-gnu)
15652  version_type=linux
15653  need_lib_prefix=no
15654  need_version=no
15655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656  soname_spec='${libname}${release}${shared_ext}$major'
15657  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15658  shlibpath_var=LD_LIBRARY_PATH
15659  shlibpath_overrides_runpath=no
15660  # This implies no fast_install, which is unacceptable.
15661  # Some rework will be needed to allow for fast_install
15662  # before this can be enabled.
15663  hardcode_into_libs=yes
15664  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15665  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15666
15667  # Append ld.so.conf contents to the search path
15668  if test -f /etc/ld.so.conf; then
15669    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' ' '`
15670    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15671  fi
15672
15673  # We used to test for /lib/ld.so.1 and disable shared libraries on
15674  # powerpc, because MkLinux only supported shared libraries with the
15675  # GNU dynamic linker.  Since this was broken with cross compilers,
15676  # most powerpc-linux boxes support dynamic linking these days and
15677  # people can always --disable-shared, the test was removed, and we
15678  # assume the GNU/Linux dynamic linker is in use.
15679  dynamic_linker='GNU/Linux ld.so'
15680  ;;
15681
15682netbsd*)
15683  version_type=sunos
15684  need_lib_prefix=no
15685  need_version=no
15686  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15687    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15688    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15689    dynamic_linker='NetBSD (a.out) ld.so'
15690  else
15691    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15692    soname_spec='${libname}${release}${shared_ext}$major'
15693    dynamic_linker='NetBSD ld.elf_so'
15694  fi
15695  shlibpath_var=LD_LIBRARY_PATH
15696  shlibpath_overrides_runpath=yes
15697  hardcode_into_libs=yes
15698  ;;
15699
15700newsos6)
15701  version_type=linux
15702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15703  shlibpath_var=LD_LIBRARY_PATH
15704  shlibpath_overrides_runpath=yes
15705  ;;
15706
15707nto-qnx*)
15708  version_type=linux
15709  need_lib_prefix=no
15710  need_version=no
15711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15712  soname_spec='${libname}${release}${shared_ext}$major'
15713  shlibpath_var=LD_LIBRARY_PATH
15714  shlibpath_overrides_runpath=yes
15715  ;;
15716
15717openbsd*)
15718  version_type=sunos
15719  sys_lib_dlsearch_path_spec="/usr/lib"
15720  need_lib_prefix=no
15721  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15722  case $host_os in
15723    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15724    *)                         need_version=no  ;;
15725  esac
15726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15727  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15728  shlibpath_var=LD_LIBRARY_PATH
15729  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15730    case $host_os in
15731      openbsd2.[89] | openbsd2.[89].*)
15732	shlibpath_overrides_runpath=no
15733	;;
15734      *)
15735	shlibpath_overrides_runpath=yes
15736	;;
15737      esac
15738  else
15739    shlibpath_overrides_runpath=yes
15740  fi
15741  ;;
15742
15743os2*)
15744  libname_spec='$name'
15745  shrext_cmds=".dll"
15746  need_lib_prefix=no
15747  library_names_spec='$libname${shared_ext} $libname.a'
15748  dynamic_linker='OS/2 ld.exe'
15749  shlibpath_var=LIBPATH
15750  ;;
15751
15752osf3* | osf4* | osf5*)
15753  version_type=osf
15754  need_lib_prefix=no
15755  need_version=no
15756  soname_spec='${libname}${release}${shared_ext}$major'
15757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15758  shlibpath_var=LD_LIBRARY_PATH
15759  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15760  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15761  ;;
15762
15763rdos*)
15764  dynamic_linker=no
15765  ;;
15766
15767solaris*)
15768  version_type=linux
15769  need_lib_prefix=no
15770  need_version=no
15771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15772  soname_spec='${libname}${release}${shared_ext}$major'
15773  shlibpath_var=LD_LIBRARY_PATH
15774  shlibpath_overrides_runpath=yes
15775  hardcode_into_libs=yes
15776  # ldd complains unless libraries are executable
15777  postinstall_cmds='chmod +x $lib'
15778  ;;
15779
15780sunos4*)
15781  version_type=sunos
15782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15783  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15784  shlibpath_var=LD_LIBRARY_PATH
15785  shlibpath_overrides_runpath=yes
15786  if test "$with_gnu_ld" = yes; then
15787    need_lib_prefix=no
15788  fi
15789  need_version=yes
15790  ;;
15791
15792sysv4 | sysv4.3*)
15793  version_type=linux
15794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15795  soname_spec='${libname}${release}${shared_ext}$major'
15796  shlibpath_var=LD_LIBRARY_PATH
15797  case $host_vendor in
15798    sni)
15799      shlibpath_overrides_runpath=no
15800      need_lib_prefix=no
15801      export_dynamic_flag_spec='${wl}-Blargedynsym'
15802      runpath_var=LD_RUN_PATH
15803      ;;
15804    siemens)
15805      need_lib_prefix=no
15806      ;;
15807    motorola)
15808      need_lib_prefix=no
15809      need_version=no
15810      shlibpath_overrides_runpath=no
15811      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15812      ;;
15813  esac
15814  ;;
15815
15816sysv4*MP*)
15817  if test -d /usr/nec ;then
15818    version_type=linux
15819    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15820    soname_spec='$libname${shared_ext}.$major'
15821    shlibpath_var=LD_LIBRARY_PATH
15822  fi
15823  ;;
15824
15825sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15826  version_type=freebsd-elf
15827  need_lib_prefix=no
15828  need_version=no
15829  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15830  soname_spec='${libname}${release}${shared_ext}$major'
15831  shlibpath_var=LD_LIBRARY_PATH
15832  hardcode_into_libs=yes
15833  if test "$with_gnu_ld" = yes; then
15834    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15835    shlibpath_overrides_runpath=no
15836  else
15837    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15838    shlibpath_overrides_runpath=yes
15839    case $host_os in
15840      sco3.2v5*)
15841        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15842	;;
15843    esac
15844  fi
15845  sys_lib_dlsearch_path_spec='/usr/lib'
15846  ;;
15847
15848uts4*)
15849  version_type=linux
15850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15851  soname_spec='${libname}${release}${shared_ext}$major'
15852  shlibpath_var=LD_LIBRARY_PATH
15853  ;;
15854
15855*)
15856  dynamic_linker=no
15857  ;;
15858esac
15859{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15860echo "${ECHO_T}$dynamic_linker" >&6; }
15861test "$dynamic_linker" = no && can_build_shared=no
15862
15863variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15864if test "$GCC" = yes; then
15865  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15866fi
15867
15868{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15869echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15870hardcode_action_F77=
15871if test -n "$hardcode_libdir_flag_spec_F77" || \
15872   test -n "$runpath_var_F77" || \
15873   test "X$hardcode_automatic_F77" = "Xyes" ; then
15874
15875  # We can hardcode non-existant directories.
15876  if test "$hardcode_direct_F77" != no &&
15877     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15878     # have to relink, otherwise we might link with an installed library
15879     # when we should be linking with a yet-to-be-installed one
15880     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15881     test "$hardcode_minus_L_F77" != no; then
15882    # Linking always hardcodes the temporary library directory.
15883    hardcode_action_F77=relink
15884  else
15885    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15886    hardcode_action_F77=immediate
15887  fi
15888else
15889  # We cannot hardcode anything, or else we can only hardcode existing
15890  # directories.
15891  hardcode_action_F77=unsupported
15892fi
15893{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15894echo "${ECHO_T}$hardcode_action_F77" >&6; }
15895
15896if test "$hardcode_action_F77" = relink; then
15897  # Fast installation is not supported
15898  enable_fast_install=no
15899elif test "$shlibpath_overrides_runpath" = yes ||
15900     test "$enable_shared" = no; then
15901  # Fast installation is not necessary
15902  enable_fast_install=needless
15903fi
15904
15905
15906# The else clause should only fire when bootstrapping the
15907# libtool distribution, otherwise you forgot to ship ltmain.sh
15908# with your package, and you will get complaints that there are
15909# no rules to generate ltmain.sh.
15910if test -f "$ltmain"; then
15911  # See if we are running on zsh, and set the options which allow our commands through
15912  # without removal of \ escapes.
15913  if test -n "${ZSH_VERSION+set}" ; then
15914    setopt NO_GLOB_SUBST
15915  fi
15916  # Now quote all the things that may contain metacharacters while being
15917  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15918  # variables and quote the copies for generation of the libtool script.
15919  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15920    SED SHELL STRIP \
15921    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15922    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15923    deplibs_check_method reload_flag reload_cmds need_locks \
15924    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15925    lt_cv_sys_global_symbol_to_c_name_address \
15926    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15927    old_postinstall_cmds old_postuninstall_cmds \
15928    compiler_F77 \
15929    CC_F77 \
15930    LD_F77 \
15931    lt_prog_compiler_wl_F77 \
15932    lt_prog_compiler_pic_F77 \
15933    lt_prog_compiler_static_F77 \
15934    lt_prog_compiler_no_builtin_flag_F77 \
15935    export_dynamic_flag_spec_F77 \
15936    thread_safe_flag_spec_F77 \
15937    whole_archive_flag_spec_F77 \
15938    enable_shared_with_static_runtimes_F77 \
15939    old_archive_cmds_F77 \
15940    old_archive_from_new_cmds_F77 \
15941    predep_objects_F77 \
15942    postdep_objects_F77 \
15943    predeps_F77 \
15944    postdeps_F77 \
15945    compiler_lib_search_path_F77 \
15946    archive_cmds_F77 \
15947    archive_expsym_cmds_F77 \
15948    postinstall_cmds_F77 \
15949    postuninstall_cmds_F77 \
15950    old_archive_from_expsyms_cmds_F77 \
15951    allow_undefined_flag_F77 \
15952    no_undefined_flag_F77 \
15953    export_symbols_cmds_F77 \
15954    hardcode_libdir_flag_spec_F77 \
15955    hardcode_libdir_flag_spec_ld_F77 \
15956    hardcode_libdir_separator_F77 \
15957    hardcode_automatic_F77 \
15958    module_cmds_F77 \
15959    module_expsym_cmds_F77 \
15960    lt_cv_prog_compiler_c_o_F77 \
15961    fix_srcfile_path_F77 \
15962    exclude_expsyms_F77 \
15963    include_expsyms_F77; do
15964
15965    case $var in
15966    old_archive_cmds_F77 | \
15967    old_archive_from_new_cmds_F77 | \
15968    archive_cmds_F77 | \
15969    archive_expsym_cmds_F77 | \
15970    module_cmds_F77 | \
15971    module_expsym_cmds_F77 | \
15972    old_archive_from_expsyms_cmds_F77 | \
15973    export_symbols_cmds_F77 | \
15974    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15975    postinstall_cmds | postuninstall_cmds | \
15976    old_postinstall_cmds | old_postuninstall_cmds | \
15977    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15978      # Double-quote double-evaled strings.
15979      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15980      ;;
15981    *)
15982      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15983      ;;
15984    esac
15985  done
15986
15987  case $lt_echo in
15988  *'\$0 --fallback-echo"')
15989    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15990    ;;
15991  esac
15992
15993cfgfile="$ofile"
15994
15995  cat <<__EOF__ >> "$cfgfile"
15996# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15997
15998# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15999
16000# Shell to use when invoking shell scripts.
16001SHELL=$lt_SHELL
16002
16003# Whether or not to build shared libraries.
16004build_libtool_libs=$enable_shared
16005
16006# Whether or not to build static libraries.
16007build_old_libs=$enable_static
16008
16009# Whether or not to add -lc for building shared libraries.
16010build_libtool_need_lc=$archive_cmds_need_lc_F77
16011
16012# Whether or not to disallow shared libs when runtime libs are static
16013allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16014
16015# Whether or not to optimize for fast installation.
16016fast_install=$enable_fast_install
16017
16018# The host system.
16019host_alias=$host_alias
16020host=$host
16021host_os=$host_os
16022
16023# The build system.
16024build_alias=$build_alias
16025build=$build
16026build_os=$build_os
16027
16028# An echo program that does not interpret backslashes.
16029echo=$lt_echo
16030
16031# The archiver.
16032AR=$lt_AR
16033AR_FLAGS=$lt_AR_FLAGS
16034
16035# A C compiler.
16036LTCC=$lt_LTCC
16037
16038# LTCC compiler flags.
16039LTCFLAGS=$lt_LTCFLAGS
16040
16041# A language-specific compiler.
16042CC=$lt_compiler_F77
16043
16044# Is the compiler the GNU C compiler?
16045with_gcc=$GCC_F77
16046
16047# An ERE matcher.
16048EGREP=$lt_EGREP
16049
16050# The linker used to build libraries.
16051LD=$lt_LD_F77
16052
16053# Whether we need hard or soft links.
16054LN_S=$lt_LN_S
16055
16056# A BSD-compatible nm program.
16057NM=$lt_NM
16058
16059# A symbol stripping program
16060STRIP=$lt_STRIP
16061
16062# Used to examine libraries when file_magic_cmd begins "file"
16063MAGIC_CMD=$MAGIC_CMD
16064
16065# Used on cygwin: DLL creation program.
16066DLLTOOL="$DLLTOOL"
16067
16068# Used on cygwin: object dumper.
16069OBJDUMP="$OBJDUMP"
16070
16071# Used on cygwin: assembler.
16072AS="$AS"
16073
16074# The name of the directory that contains temporary libtool files.
16075objdir=$objdir
16076
16077# How to create reloadable object files.
16078reload_flag=$lt_reload_flag
16079reload_cmds=$lt_reload_cmds
16080
16081# How to pass a linker flag through the compiler.
16082wl=$lt_lt_prog_compiler_wl_F77
16083
16084# Object file suffix (normally "o").
16085objext="$ac_objext"
16086
16087# Old archive suffix (normally "a").
16088libext="$libext"
16089
16090# Shared library suffix (normally ".so").
16091shrext_cmds='$shrext_cmds'
16092
16093# Executable file suffix (normally "").
16094exeext="$exeext"
16095
16096# Additional compiler flags for building library objects.
16097pic_flag=$lt_lt_prog_compiler_pic_F77
16098pic_mode=$pic_mode
16099
16100# What is the maximum length of a command?
16101max_cmd_len=$lt_cv_sys_max_cmd_len
16102
16103# Does compiler simultaneously support -c and -o options?
16104compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16105
16106# Must we lock files when doing compilation?
16107need_locks=$lt_need_locks
16108
16109# Do we need the lib prefix for modules?
16110need_lib_prefix=$need_lib_prefix
16111
16112# Do we need a version for libraries?
16113need_version=$need_version
16114
16115# Whether dlopen is supported.
16116dlopen_support=$enable_dlopen
16117
16118# Whether dlopen of programs is supported.
16119dlopen_self=$enable_dlopen_self
16120
16121# Whether dlopen of statically linked programs is supported.
16122dlopen_self_static=$enable_dlopen_self_static
16123
16124# Compiler flag to prevent dynamic linking.
16125link_static_flag=$lt_lt_prog_compiler_static_F77
16126
16127# Compiler flag to turn off builtin functions.
16128no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16129
16130# Compiler flag to allow reflexive dlopens.
16131export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16132
16133# Compiler flag to generate shared objects directly from archives.
16134whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16135
16136# Compiler flag to generate thread-safe objects.
16137thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16138
16139# Library versioning type.
16140version_type=$version_type
16141
16142# Format of library name prefix.
16143libname_spec=$lt_libname_spec
16144
16145# List of archive names.  First name is the real one, the rest are links.
16146# The last name is the one that the linker finds with -lNAME.
16147library_names_spec=$lt_library_names_spec
16148
16149# The coded name of the library, if different from the real name.
16150soname_spec=$lt_soname_spec
16151
16152# Commands used to build and install an old-style archive.
16153RANLIB=$lt_RANLIB
16154old_archive_cmds=$lt_old_archive_cmds_F77
16155old_postinstall_cmds=$lt_old_postinstall_cmds
16156old_postuninstall_cmds=$lt_old_postuninstall_cmds
16157
16158# Create an old-style archive from a shared archive.
16159old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16160
16161# Create a temporary old-style archive to link instead of a shared archive.
16162old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16163
16164# Commands used to build and install a shared archive.
16165archive_cmds=$lt_archive_cmds_F77
16166archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16167postinstall_cmds=$lt_postinstall_cmds
16168postuninstall_cmds=$lt_postuninstall_cmds
16169
16170# Commands used to build a loadable module (assumed same as above if empty)
16171module_cmds=$lt_module_cmds_F77
16172module_expsym_cmds=$lt_module_expsym_cmds_F77
16173
16174# Commands to strip libraries.
16175old_striplib=$lt_old_striplib
16176striplib=$lt_striplib
16177
16178# Dependencies to place before the objects being linked to create a
16179# shared library.
16180predep_objects=$lt_predep_objects_F77
16181
16182# Dependencies to place after the objects being linked to create a
16183# shared library.
16184postdep_objects=$lt_postdep_objects_F77
16185
16186# Dependencies to place before the objects being linked to create a
16187# shared library.
16188predeps=$lt_predeps_F77
16189
16190# Dependencies to place after the objects being linked to create a
16191# shared library.
16192postdeps=$lt_postdeps_F77
16193
16194# The library search path used internally by the compiler when linking
16195# a shared library.
16196compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16197
16198# Method to check whether dependent libraries are shared objects.
16199deplibs_check_method=$lt_deplibs_check_method
16200
16201# Command to use when deplibs_check_method == file_magic.
16202file_magic_cmd=$lt_file_magic_cmd
16203
16204# Flag that allows shared libraries with undefined symbols to be built.
16205allow_undefined_flag=$lt_allow_undefined_flag_F77
16206
16207# Flag that forces no undefined symbols.
16208no_undefined_flag=$lt_no_undefined_flag_F77
16209
16210# Commands used to finish a libtool library installation in a directory.
16211finish_cmds=$lt_finish_cmds
16212
16213# Same as above, but a single script fragment to be evaled but not shown.
16214finish_eval=$lt_finish_eval
16215
16216# Take the output of nm and produce a listing of raw symbols and C names.
16217global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16218
16219# Transform the output of nm in a proper C declaration
16220global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16221
16222# Transform the output of nm in a C name address pair
16223global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16224
16225# This is the shared library runtime path variable.
16226runpath_var=$runpath_var
16227
16228# This is the shared library path variable.
16229shlibpath_var=$shlibpath_var
16230
16231# Is shlibpath searched before the hard-coded library search path?
16232shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16233
16234# How to hardcode a shared library path into an executable.
16235hardcode_action=$hardcode_action_F77
16236
16237# Whether we should hardcode library paths into libraries.
16238hardcode_into_libs=$hardcode_into_libs
16239
16240# Flag to hardcode \$libdir into a binary during linking.
16241# This must work even if \$libdir does not exist.
16242hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16243
16244# If ld is used when linking, flag to hardcode \$libdir into
16245# a binary during linking. This must work even if \$libdir does
16246# not exist.
16247hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16248
16249# Whether we need a single -rpath flag with a separated argument.
16250hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16251
16252# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16253# resulting binary.
16254hardcode_direct=$hardcode_direct_F77
16255
16256# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16257# resulting binary.
16258hardcode_minus_L=$hardcode_minus_L_F77
16259
16260# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16261# the resulting binary.
16262hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16263
16264# Set to yes if building a shared library automatically hardcodes DIR into the library
16265# and all subsequent libraries and executables linked against it.
16266hardcode_automatic=$hardcode_automatic_F77
16267
16268# Variables whose values should be saved in libtool wrapper scripts and
16269# restored at relink time.
16270variables_saved_for_relink="$variables_saved_for_relink"
16271
16272# Whether libtool must link a program against all its dependency libraries.
16273link_all_deplibs=$link_all_deplibs_F77
16274
16275# Compile-time system search path for libraries
16276sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16277
16278# Run-time system search path for libraries
16279sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16280
16281# Fix the shell variable \$srcfile for the compiler.
16282fix_srcfile_path=$lt_fix_srcfile_path
16283
16284# Set to yes if exported symbols are required.
16285always_export_symbols=$always_export_symbols_F77
16286
16287# The commands to list exported symbols.
16288export_symbols_cmds=$lt_export_symbols_cmds_F77
16289
16290# The commands to extract the exported symbol list from a shared archive.
16291extract_expsyms_cmds=$lt_extract_expsyms_cmds
16292
16293# Symbols that should not be listed in the preloaded symbols.
16294exclude_expsyms=$lt_exclude_expsyms_F77
16295
16296# Symbols that must always be exported.
16297include_expsyms=$lt_include_expsyms_F77
16298
16299# ### END LIBTOOL TAG CONFIG: $tagname
16300
16301__EOF__
16302
16303
16304else
16305  # If there is no Makefile yet, we rely on a make rule to execute
16306  # `config.status --recheck' to rerun these tests and create the
16307  # libtool script then.
16308  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16309  if test -f "$ltmain_in"; then
16310    test -f Makefile && make "$ltmain"
16311  fi
16312fi
16313
16314
16315ac_ext=c
16316ac_cpp='$CPP $CPPFLAGS'
16317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16319ac_compiler_gnu=$ac_cv_c_compiler_gnu
16320
16321CC="$lt_save_CC"
16322
16323	else
16324	  tagname=""
16325	fi
16326	;;
16327
16328      GCJ)
16329	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16330
16331
16332# Source file extension for Java test sources.
16333ac_ext=java
16334
16335# Object file extension for compiled Java test sources.
16336objext=o
16337objext_GCJ=$objext
16338
16339# Code to be used in simple compile tests
16340lt_simple_compile_test_code="class foo {}"
16341
16342# Code to be used in simple link tests
16343lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16344
16345# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16346
16347# If no C compiler was specified, use CC.
16348LTCC=${LTCC-"$CC"}
16349
16350# If no C compiler flags were specified, use CFLAGS.
16351LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16352
16353# Allow CC to be a program name with arguments.
16354compiler=$CC
16355
16356
16357# save warnings/boilerplate of simple test code
16358ac_outfile=conftest.$ac_objext
16359echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16360eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16361_lt_compiler_boilerplate=`cat conftest.err`
16362$rm conftest*
16363
16364ac_outfile=conftest.$ac_objext
16365echo "$lt_simple_link_test_code" >conftest.$ac_ext
16366eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16367_lt_linker_boilerplate=`cat conftest.err`
16368$rm conftest*
16369
16370
16371# Allow CC to be a program name with arguments.
16372lt_save_CC="$CC"
16373CC=${GCJ-"gcj"}
16374compiler=$CC
16375compiler_GCJ=$CC
16376for cc_temp in $compiler""; do
16377  case $cc_temp in
16378    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16379    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16380    \-*) ;;
16381    *) break;;
16382  esac
16383done
16384cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16385
16386
16387# GCJ did not exist at the time GCC didn't implicitly link libc in.
16388archive_cmds_need_lc_GCJ=no
16389
16390old_archive_cmds_GCJ=$old_archive_cmds
16391
16392
16393lt_prog_compiler_no_builtin_flag_GCJ=
16394
16395if test "$GCC" = yes; then
16396  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16397
16398
16399{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16400echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16401if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16402  echo $ECHO_N "(cached) $ECHO_C" >&6
16403else
16404  lt_cv_prog_compiler_rtti_exceptions=no
16405  ac_outfile=conftest.$ac_objext
16406   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16407   lt_compiler_flag="-fno-rtti -fno-exceptions"
16408   # Insert the option either (1) after the last *FLAGS variable, or
16409   # (2) before a word containing "conftest.", or (3) at the end.
16410   # Note that $ac_compile itself does not contain backslashes and begins
16411   # with a dollar sign (not a hyphen), so the echo should work correctly.
16412   # The option is referenced via a variable to avoid confusing sed.
16413   lt_compile=`echo "$ac_compile" | $SED \
16414   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16415   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16416   -e 's:$: $lt_compiler_flag:'`
16417   (eval echo "\"\$as_me:16417: $lt_compile\"" >&5)
16418   (eval "$lt_compile" 2>conftest.err)
16419   ac_status=$?
16420   cat conftest.err >&5
16421   echo "$as_me:16421: \$? = $ac_status" >&5
16422   if (exit $ac_status) && test -s "$ac_outfile"; then
16423     # The compiler can only warn and ignore the option if not recognized
16424     # So say no if there are warnings other than the usual output.
16425     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16426     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16427     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16428       lt_cv_prog_compiler_rtti_exceptions=yes
16429     fi
16430   fi
16431   $rm conftest*
16432
16433fi
16434{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16435echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16436
16437if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16438    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16439else
16440    :
16441fi
16442
16443fi
16444
16445lt_prog_compiler_wl_GCJ=
16446lt_prog_compiler_pic_GCJ=
16447lt_prog_compiler_static_GCJ=
16448
16449{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16450echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16451
16452  if test "$GCC" = yes; then
16453    lt_prog_compiler_wl_GCJ='-Wl,'
16454    lt_prog_compiler_static_GCJ='-static'
16455
16456    case $host_os in
16457      aix*)
16458      # All AIX code is PIC.
16459      if test "$host_cpu" = ia64; then
16460	# AIX 5 now supports IA64 processor
16461	lt_prog_compiler_static_GCJ='-Bstatic'
16462      fi
16463      ;;
16464
16465    amigaos*)
16466      # FIXME: we need at least 68020 code to build shared libraries, but
16467      # adding the `-m68020' flag to GCC prevents building anything better,
16468      # like `-m68040'.
16469      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16470      ;;
16471
16472    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16473      # PIC is the default for these OSes.
16474      ;;
16475
16476    mingw* | cygwin* | pw32* | os2*)
16477      # This hack is so that the source file can tell whether it is being
16478      # built for inclusion in a dll (and should export symbols for example).
16479      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16480      # (--disable-auto-import) libraries
16481      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16482      ;;
16483
16484    darwin* | rhapsody*)
16485      # PIC is the default on this platform
16486      # Common symbols not allowed in MH_DYLIB files
16487      lt_prog_compiler_pic_GCJ='-fno-common'
16488      ;;
16489
16490    interix[3-9]*)
16491      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16492      # Instead, we relocate shared libraries at runtime.
16493      ;;
16494
16495    msdosdjgpp*)
16496      # Just because we use GCC doesn't mean we suddenly get shared libraries
16497      # on systems that don't support them.
16498      lt_prog_compiler_can_build_shared_GCJ=no
16499      enable_shared=no
16500      ;;
16501
16502    sysv4*MP*)
16503      if test -d /usr/nec; then
16504	lt_prog_compiler_pic_GCJ=-Kconform_pic
16505      fi
16506      ;;
16507
16508    hpux*)
16509      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16510      # not for PA HP-UX.
16511      case $host_cpu in
16512      hppa*64*|ia64*)
16513	# +Z the default
16514	;;
16515      *)
16516	lt_prog_compiler_pic_GCJ='-fPIC'
16517	;;
16518      esac
16519      ;;
16520
16521    *)
16522      lt_prog_compiler_pic_GCJ='-fPIC'
16523      ;;
16524    esac
16525  else
16526    # PORTME Check for flag to pass linker flags through the system compiler.
16527    case $host_os in
16528    aix*)
16529      lt_prog_compiler_wl_GCJ='-Wl,'
16530      if test "$host_cpu" = ia64; then
16531	# AIX 5 now supports IA64 processor
16532	lt_prog_compiler_static_GCJ='-Bstatic'
16533      else
16534	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16535      fi
16536      ;;
16537      darwin*)
16538        # PIC is the default on this platform
16539        # Common symbols not allowed in MH_DYLIB files
16540       case $cc_basename in
16541         xlc*)
16542         lt_prog_compiler_pic_GCJ='-qnocommon'
16543         lt_prog_compiler_wl_GCJ='-Wl,'
16544         ;;
16545       esac
16546       ;;
16547
16548    mingw* | cygwin* | pw32* | os2*)
16549      # This hack is so that the source file can tell whether it is being
16550      # built for inclusion in a dll (and should export symbols for example).
16551      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16552      ;;
16553
16554    hpux9* | hpux10* | hpux11*)
16555      lt_prog_compiler_wl_GCJ='-Wl,'
16556      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16557      # not for PA HP-UX.
16558      case $host_cpu in
16559      hppa*64*|ia64*)
16560	# +Z the default
16561	;;
16562      *)
16563	lt_prog_compiler_pic_GCJ='+Z'
16564	;;
16565      esac
16566      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16567      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16568      ;;
16569
16570    irix5* | irix6* | nonstopux*)
16571      lt_prog_compiler_wl_GCJ='-Wl,'
16572      # PIC (with -KPIC) is the default.
16573      lt_prog_compiler_static_GCJ='-non_shared'
16574      ;;
16575
16576    newsos6)
16577      lt_prog_compiler_pic_GCJ='-KPIC'
16578      lt_prog_compiler_static_GCJ='-Bstatic'
16579      ;;
16580
16581    linux* | k*bsd*-gnu)
16582      case $cc_basename in
16583      icc* | ecc*)
16584	lt_prog_compiler_wl_GCJ='-Wl,'
16585	lt_prog_compiler_pic_GCJ='-KPIC'
16586	lt_prog_compiler_static_GCJ='-static'
16587        ;;
16588      pgcc* | pgf77* | pgf90* | pgf95*)
16589        # Portland Group compilers (*not* the Pentium gcc compiler,
16590	# which looks to be a dead project)
16591	lt_prog_compiler_wl_GCJ='-Wl,'
16592	lt_prog_compiler_pic_GCJ='-fpic'
16593	lt_prog_compiler_static_GCJ='-Bstatic'
16594        ;;
16595      ccc*)
16596        lt_prog_compiler_wl_GCJ='-Wl,'
16597        # All Alpha code is PIC.
16598        lt_prog_compiler_static_GCJ='-non_shared'
16599        ;;
16600      *)
16601        case `$CC -V 2>&1 | sed 5q` in
16602	*Sun\ C*)
16603	  # Sun C 5.9
16604	  lt_prog_compiler_pic_GCJ='-KPIC'
16605	  lt_prog_compiler_static_GCJ='-Bstatic'
16606	  lt_prog_compiler_wl_GCJ='-Wl,'
16607	  ;;
16608	*Sun\ F*)
16609	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16610	  lt_prog_compiler_pic_GCJ='-KPIC'
16611	  lt_prog_compiler_static_GCJ='-Bstatic'
16612	  lt_prog_compiler_wl_GCJ=''
16613	  ;;
16614	esac
16615	;;
16616      esac
16617      ;;
16618
16619    osf3* | osf4* | osf5*)
16620      lt_prog_compiler_wl_GCJ='-Wl,'
16621      # All OSF/1 code is PIC.
16622      lt_prog_compiler_static_GCJ='-non_shared'
16623      ;;
16624
16625    rdos*)
16626      lt_prog_compiler_static_GCJ='-non_shared'
16627      ;;
16628
16629    solaris*)
16630      lt_prog_compiler_pic_GCJ='-KPIC'
16631      lt_prog_compiler_static_GCJ='-Bstatic'
16632      case $cc_basename in
16633      f77* | f90* | f95*)
16634	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16635      *)
16636	lt_prog_compiler_wl_GCJ='-Wl,';;
16637      esac
16638      ;;
16639
16640    sunos4*)
16641      lt_prog_compiler_wl_GCJ='-Qoption ld '
16642      lt_prog_compiler_pic_GCJ='-PIC'
16643      lt_prog_compiler_static_GCJ='-Bstatic'
16644      ;;
16645
16646    sysv4 | sysv4.2uw2* | sysv4.3*)
16647      lt_prog_compiler_wl_GCJ='-Wl,'
16648      lt_prog_compiler_pic_GCJ='-KPIC'
16649      lt_prog_compiler_static_GCJ='-Bstatic'
16650      ;;
16651
16652    sysv4*MP*)
16653      if test -d /usr/nec ;then
16654	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16655	lt_prog_compiler_static_GCJ='-Bstatic'
16656      fi
16657      ;;
16658
16659    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16660      lt_prog_compiler_wl_GCJ='-Wl,'
16661      lt_prog_compiler_pic_GCJ='-KPIC'
16662      lt_prog_compiler_static_GCJ='-Bstatic'
16663      ;;
16664
16665    unicos*)
16666      lt_prog_compiler_wl_GCJ='-Wl,'
16667      lt_prog_compiler_can_build_shared_GCJ=no
16668      ;;
16669
16670    uts4*)
16671      lt_prog_compiler_pic_GCJ='-pic'
16672      lt_prog_compiler_static_GCJ='-Bstatic'
16673      ;;
16674
16675    *)
16676      lt_prog_compiler_can_build_shared_GCJ=no
16677      ;;
16678    esac
16679  fi
16680
16681{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16682echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16683
16684#
16685# Check to make sure the PIC flag actually works.
16686#
16687if test -n "$lt_prog_compiler_pic_GCJ"; then
16688
16689{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16690echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16691if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16692  echo $ECHO_N "(cached) $ECHO_C" >&6
16693else
16694  lt_prog_compiler_pic_works_GCJ=no
16695  ac_outfile=conftest.$ac_objext
16696   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16697   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16698   # Insert the option either (1) after the last *FLAGS variable, or
16699   # (2) before a word containing "conftest.", or (3) at the end.
16700   # Note that $ac_compile itself does not contain backslashes and begins
16701   # with a dollar sign (not a hyphen), so the echo should work correctly.
16702   # The option is referenced via a variable to avoid confusing sed.
16703   lt_compile=`echo "$ac_compile" | $SED \
16704   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16705   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16706   -e 's:$: $lt_compiler_flag:'`
16707   (eval echo "\"\$as_me:16707: $lt_compile\"" >&5)
16708   (eval "$lt_compile" 2>conftest.err)
16709   ac_status=$?
16710   cat conftest.err >&5
16711   echo "$as_me:16711: \$? = $ac_status" >&5
16712   if (exit $ac_status) && test -s "$ac_outfile"; then
16713     # The compiler can only warn and ignore the option if not recognized
16714     # So say no if there are warnings other than the usual output.
16715     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16716     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16717     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16718       lt_prog_compiler_pic_works_GCJ=yes
16719     fi
16720   fi
16721   $rm conftest*
16722
16723fi
16724{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16725echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16726
16727if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16728    case $lt_prog_compiler_pic_GCJ in
16729     "" | " "*) ;;
16730     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16731     esac
16732else
16733    lt_prog_compiler_pic_GCJ=
16734     lt_prog_compiler_can_build_shared_GCJ=no
16735fi
16736
16737fi
16738case $host_os in
16739  # For platforms which do not support PIC, -DPIC is meaningless:
16740  *djgpp*)
16741    lt_prog_compiler_pic_GCJ=
16742    ;;
16743  *)
16744    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16745    ;;
16746esac
16747
16748#
16749# Check to make sure the static flag actually works.
16750#
16751wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16752{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16753echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16754if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16755  echo $ECHO_N "(cached) $ECHO_C" >&6
16756else
16757  lt_prog_compiler_static_works_GCJ=no
16758   save_LDFLAGS="$LDFLAGS"
16759   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16760   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16761   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16762     # The linker can only warn and ignore the option if not recognized
16763     # So say no if there are warnings
16764     if test -s conftest.err; then
16765       # Append any errors to the config.log.
16766       cat conftest.err 1>&5
16767       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16768       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16769       if diff conftest.exp conftest.er2 >/dev/null; then
16770         lt_prog_compiler_static_works_GCJ=yes
16771       fi
16772     else
16773       lt_prog_compiler_static_works_GCJ=yes
16774     fi
16775   fi
16776   $rm conftest*
16777   LDFLAGS="$save_LDFLAGS"
16778
16779fi
16780{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16781echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16782
16783if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16784    :
16785else
16786    lt_prog_compiler_static_GCJ=
16787fi
16788
16789
16790{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16791echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16792if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16793  echo $ECHO_N "(cached) $ECHO_C" >&6
16794else
16795  lt_cv_prog_compiler_c_o_GCJ=no
16796   $rm -r conftest 2>/dev/null
16797   mkdir conftest
16798   cd conftest
16799   mkdir out
16800   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16801
16802   lt_compiler_flag="-o out/conftest2.$ac_objext"
16803   # Insert the option either (1) after the last *FLAGS variable, or
16804   # (2) before a word containing "conftest.", or (3) at the end.
16805   # Note that $ac_compile itself does not contain backslashes and begins
16806   # with a dollar sign (not a hyphen), so the echo should work correctly.
16807   lt_compile=`echo "$ac_compile" | $SED \
16808   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16809   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16810   -e 's:$: $lt_compiler_flag:'`
16811   (eval echo "\"\$as_me:16811: $lt_compile\"" >&5)
16812   (eval "$lt_compile" 2>out/conftest.err)
16813   ac_status=$?
16814   cat out/conftest.err >&5
16815   echo "$as_me:16815: \$? = $ac_status" >&5
16816   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16817   then
16818     # The compiler can only warn and ignore the option if not recognized
16819     # So say no if there are warnings
16820     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16821     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16822     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16823       lt_cv_prog_compiler_c_o_GCJ=yes
16824     fi
16825   fi
16826   chmod u+w . 2>&5
16827   $rm conftest*
16828   # SGI C++ compiler will create directory out/ii_files/ for
16829   # template instantiation
16830   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16831   $rm out/* && rmdir out
16832   cd ..
16833   rmdir conftest
16834   $rm conftest*
16835
16836fi
16837{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16838echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16839
16840
16841hard_links="nottested"
16842if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16843  # do not overwrite the value of need_locks provided by the user
16844  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16845echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16846  hard_links=yes
16847  $rm conftest*
16848  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16849  touch conftest.a
16850  ln conftest.a conftest.b 2>&5 || hard_links=no
16851  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16852  { echo "$as_me:$LINENO: result: $hard_links" >&5
16853echo "${ECHO_T}$hard_links" >&6; }
16854  if test "$hard_links" = no; then
16855    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16856echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16857    need_locks=warn
16858  fi
16859else
16860  need_locks=no
16861fi
16862
16863{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16864echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16865
16866  runpath_var=
16867  allow_undefined_flag_GCJ=
16868  enable_shared_with_static_runtimes_GCJ=no
16869  archive_cmds_GCJ=
16870  archive_expsym_cmds_GCJ=
16871  old_archive_From_new_cmds_GCJ=
16872  old_archive_from_expsyms_cmds_GCJ=
16873  export_dynamic_flag_spec_GCJ=
16874  whole_archive_flag_spec_GCJ=
16875  thread_safe_flag_spec_GCJ=
16876  hardcode_libdir_flag_spec_GCJ=
16877  hardcode_libdir_flag_spec_ld_GCJ=
16878  hardcode_libdir_separator_GCJ=
16879  hardcode_direct_GCJ=no
16880  hardcode_minus_L_GCJ=no
16881  hardcode_shlibpath_var_GCJ=unsupported
16882  link_all_deplibs_GCJ=unknown
16883  hardcode_automatic_GCJ=no
16884  module_cmds_GCJ=
16885  module_expsym_cmds_GCJ=
16886  always_export_symbols_GCJ=no
16887  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16888  # include_expsyms should be a list of space-separated symbols to be *always*
16889  # included in the symbol list
16890  include_expsyms_GCJ=
16891  # exclude_expsyms can be an extended regexp of symbols to exclude
16892  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16893  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16894  # as well as any symbol that contains `d'.
16895  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16896  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16897  # platforms (ab)use it in PIC code, but their linkers get confused if
16898  # the symbol is explicitly referenced.  Since portable code cannot
16899  # rely on this symbol name, it's probably fine to never include it in
16900  # preloaded symbol tables.
16901  extract_expsyms_cmds=
16902  # Just being paranoid about ensuring that cc_basename is set.
16903  for cc_temp in $compiler""; do
16904  case $cc_temp in
16905    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16906    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16907    \-*) ;;
16908    *) break;;
16909  esac
16910done
16911cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16912
16913  case $host_os in
16914  cygwin* | mingw* | pw32*)
16915    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16916    # When not using gcc, we currently assume that we are using
16917    # Microsoft Visual C++.
16918    if test "$GCC" != yes; then
16919      with_gnu_ld=no
16920    fi
16921    ;;
16922  interix*)
16923    # we just hope/assume this is gcc and not c89 (= MSVC++)
16924    with_gnu_ld=yes
16925    ;;
16926  openbsd*)
16927    with_gnu_ld=no
16928    ;;
16929  esac
16930
16931  ld_shlibs_GCJ=yes
16932  if test "$with_gnu_ld" = yes; then
16933    # If archive_cmds runs LD, not CC, wlarc should be empty
16934    wlarc='${wl}'
16935
16936    # Set some defaults for GNU ld with shared library support. These
16937    # are reset later if shared libraries are not supported. Putting them
16938    # here allows them to be overridden if necessary.
16939    runpath_var=LD_RUN_PATH
16940    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16941    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16942    # ancient GNU ld didn't support --whole-archive et. al.
16943    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16944	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16945      else
16946  	whole_archive_flag_spec_GCJ=
16947    fi
16948    supports_anon_versioning=no
16949    case `$LD -v 2>/dev/null` in
16950      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16951      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16952      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16953      *\ 2.11.*) ;; # other 2.11 versions
16954      *) supports_anon_versioning=yes ;;
16955    esac
16956
16957    # See if GNU ld supports shared libraries.
16958    case $host_os in
16959    aix3* | aix4* | aix5*)
16960      # On AIX/PPC, the GNU linker is very broken
16961      if test "$host_cpu" != ia64; then
16962	ld_shlibs_GCJ=no
16963	cat <<EOF 1>&2
16964
16965*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16966*** to be unable to reliably create shared libraries on AIX.
16967*** Therefore, libtool is disabling shared libraries support.  If you
16968*** really care for shared libraries, you may want to modify your PATH
16969*** so that a non-GNU linker is found, and then restart.
16970
16971EOF
16972      fi
16973      ;;
16974
16975    amigaos*)
16976      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)'
16977      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16978      hardcode_minus_L_GCJ=yes
16979
16980      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16981      # that the semantics of dynamic libraries on AmigaOS, at least up
16982      # to version 4, is to share data among multiple programs linked
16983      # with the same dynamic library.  Since this doesn't match the
16984      # behavior of shared libraries on other platforms, we can't use
16985      # them.
16986      ld_shlibs_GCJ=no
16987      ;;
16988
16989    beos*)
16990      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16991	allow_undefined_flag_GCJ=unsupported
16992	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16993	# support --undefined.  This deserves some investigation.  FIXME
16994	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16995      else
16996	ld_shlibs_GCJ=no
16997      fi
16998      ;;
16999
17000    cygwin* | mingw* | pw32*)
17001      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17002      # as there is no search path for DLLs.
17003      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17004      allow_undefined_flag_GCJ=unsupported
17005      always_export_symbols_GCJ=no
17006      enable_shared_with_static_runtimes_GCJ=yes
17007      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17008
17009      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17010        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17011	# If the export-symbols file already is a .def file (1st line
17012	# is EXPORTS), use it as is; otherwise, prepend...
17013	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17014	  cp $export_symbols $output_objdir/$soname.def;
17015	else
17016	  echo EXPORTS > $output_objdir/$soname.def;
17017	  cat $export_symbols >> $output_objdir/$soname.def;
17018	fi~
17019	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17020      else
17021	ld_shlibs_GCJ=no
17022      fi
17023      ;;
17024
17025    interix[3-9]*)
17026      hardcode_direct_GCJ=no
17027      hardcode_shlibpath_var_GCJ=no
17028      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17029      export_dynamic_flag_spec_GCJ='${wl}-E'
17030      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17031      # Instead, shared libraries are loaded at an image base (0x10000000 by
17032      # default) and relocated if they conflict, which is a slow very memory
17033      # consuming and fragmenting process.  To avoid this, we pick a random,
17034      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17035      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17036      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'
17037      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'
17038      ;;
17039
17040    gnu* | linux* | k*bsd*-gnu)
17041      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17042	tmp_addflag=
17043	case $cc_basename,$host_cpu in
17044	pgcc*)				# Portland Group C compiler
17045	  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'
17046	  tmp_addflag=' $pic_flag'
17047	  ;;
17048	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17049	  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'
17050	  tmp_addflag=' $pic_flag -Mnomain' ;;
17051	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17052	  tmp_addflag=' -i_dynamic' ;;
17053	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17054	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17055	ifc* | ifort*)			# Intel Fortran compiler
17056	  tmp_addflag=' -nofor_main' ;;
17057	esac
17058	case `$CC -V 2>&1 | sed 5q` in
17059	*Sun\ C*)			# Sun C 5.9
17060	  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'
17061	  tmp_sharedflag='-G' ;;
17062	*Sun\ F*)			# Sun Fortran 8.3
17063	  tmp_sharedflag='-G' ;;
17064	*)
17065	  tmp_sharedflag='-shared' ;;
17066	esac
17067	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17068
17069	if test $supports_anon_versioning = yes; then
17070	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17071  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17072  $echo "local: *; };" >> $output_objdir/$libname.ver~
17073	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17074	fi
17075      else
17076	ld_shlibs_GCJ=no
17077      fi
17078      ;;
17079
17080    netbsd*)
17081      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17082	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17083	wlarc=
17084      else
17085	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17086	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17087      fi
17088      ;;
17089
17090    solaris*)
17091      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17092	ld_shlibs_GCJ=no
17093	cat <<EOF 1>&2
17094
17095*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17096*** create shared libraries on Solaris systems.  Therefore, libtool
17097*** is disabling shared libraries support.  We urge you to upgrade GNU
17098*** binutils to release 2.9.1 or newer.  Another option is to modify
17099*** your PATH or compiler configuration so that the native linker is
17100*** used, and then restart.
17101
17102EOF
17103      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17104	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17105	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17106      else
17107	ld_shlibs_GCJ=no
17108      fi
17109      ;;
17110
17111    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17112      case `$LD -v 2>&1` in
17113        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17114	ld_shlibs_GCJ=no
17115	cat <<_LT_EOF 1>&2
17116
17117*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17118*** reliably create shared libraries on SCO systems.  Therefore, libtool
17119*** is disabling shared libraries support.  We urge you to upgrade GNU
17120*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17121*** your PATH or compiler configuration so that the native linker is
17122*** used, and then restart.
17123
17124_LT_EOF
17125	;;
17126	*)
17127	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17128	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17129	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17130	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17131	  else
17132	    ld_shlibs_GCJ=no
17133	  fi
17134	;;
17135      esac
17136      ;;
17137
17138    sunos4*)
17139      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17140      wlarc=
17141      hardcode_direct_GCJ=yes
17142      hardcode_shlibpath_var_GCJ=no
17143      ;;
17144
17145    *)
17146      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17147	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17148	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17149      else
17150	ld_shlibs_GCJ=no
17151      fi
17152      ;;
17153    esac
17154
17155    if test "$ld_shlibs_GCJ" = no; then
17156      runpath_var=
17157      hardcode_libdir_flag_spec_GCJ=
17158      export_dynamic_flag_spec_GCJ=
17159      whole_archive_flag_spec_GCJ=
17160    fi
17161  else
17162    # PORTME fill in a description of your system's linker (not GNU ld)
17163    case $host_os in
17164    aix3*)
17165      allow_undefined_flag_GCJ=unsupported
17166      always_export_symbols_GCJ=yes
17167      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'
17168      # Note: this linker hardcodes the directories in LIBPATH if there
17169      # are no directories specified by -L.
17170      hardcode_minus_L_GCJ=yes
17171      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17172	# Neither direct hardcoding nor static linking is supported with a
17173	# broken collect2.
17174	hardcode_direct_GCJ=unsupported
17175      fi
17176      ;;
17177
17178    aix4* | aix5*)
17179      if test "$host_cpu" = ia64; then
17180	# On IA64, the linker does run time linking by default, so we don't
17181	# have to do anything special.
17182	aix_use_runtimelinking=no
17183	exp_sym_flag='-Bexport'
17184	no_entry_flag=""
17185      else
17186	# If we're using GNU nm, then we don't want the "-C" option.
17187	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17188	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17189	  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'
17190	else
17191	  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'
17192	fi
17193	aix_use_runtimelinking=no
17194
17195	# Test if we are trying to use run time linking or normal
17196	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17197	# need to do runtime linking.
17198	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17199	  for ld_flag in $LDFLAGS; do
17200  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17201  	    aix_use_runtimelinking=yes
17202  	    break
17203  	  fi
17204	  done
17205	  ;;
17206	esac
17207
17208	exp_sym_flag='-bexport'
17209	no_entry_flag='-bnoentry'
17210      fi
17211
17212      # When large executables or shared objects are built, AIX ld can
17213      # have problems creating the table of contents.  If linking a library
17214      # or program results in "error TOC overflow" add -mminimal-toc to
17215      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17216      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17217
17218      archive_cmds_GCJ=''
17219      hardcode_direct_GCJ=yes
17220      hardcode_libdir_separator_GCJ=':'
17221      link_all_deplibs_GCJ=yes
17222
17223      if test "$GCC" = yes; then
17224	case $host_os in aix4.[012]|aix4.[012].*)
17225	# We only want to do this on AIX 4.2 and lower, the check
17226	# below for broken collect2 doesn't work under 4.3+
17227	  collect2name=`${CC} -print-prog-name=collect2`
17228	  if test -f "$collect2name" && \
17229  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17230	  then
17231  	  # We have reworked collect2
17232  	  :
17233	  else
17234  	  # We have old collect2
17235  	  hardcode_direct_GCJ=unsupported
17236  	  # It fails to find uninstalled libraries when the uninstalled
17237  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17238  	  # to unsupported forces relinking
17239  	  hardcode_minus_L_GCJ=yes
17240  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17241  	  hardcode_libdir_separator_GCJ=
17242	  fi
17243	  ;;
17244	esac
17245	shared_flag='-shared'
17246	if test "$aix_use_runtimelinking" = yes; then
17247	  shared_flag="$shared_flag "'${wl}-G'
17248	fi
17249      else
17250	# not using gcc
17251	if test "$host_cpu" = ia64; then
17252  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17253  	# chokes on -Wl,-G. The following line is correct:
17254	  shared_flag='-G'
17255	else
17256	  if test "$aix_use_runtimelinking" = yes; then
17257	    shared_flag='${wl}-G'
17258	  else
17259	    shared_flag='${wl}-bM:SRE'
17260	  fi
17261	fi
17262      fi
17263
17264      # It seems that -bexpall does not export symbols beginning with
17265      # underscore (_), so it is better to generate a list of symbols to export.
17266      always_export_symbols_GCJ=yes
17267      if test "$aix_use_runtimelinking" = yes; then
17268	# Warning - without using the other runtime loading flags (-brtl),
17269	# -berok will link without error, but may produce a broken library.
17270	allow_undefined_flag_GCJ='-berok'
17271       # Determine the default libpath from the value encoded in an empty executable.
17272       cat >conftest.$ac_ext <<_ACEOF
17273/* confdefs.h.  */
17274_ACEOF
17275cat confdefs.h >>conftest.$ac_ext
17276cat >>conftest.$ac_ext <<_ACEOF
17277/* end confdefs.h.  */
17278
17279int
17280main ()
17281{
17282
17283  ;
17284  return 0;
17285}
17286_ACEOF
17287rm -f conftest.$ac_objext conftest$ac_exeext
17288if { (ac_try="$ac_link"
17289case "(($ac_try" in
17290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291  *) ac_try_echo=$ac_try;;
17292esac
17293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294  (eval "$ac_link") 2>conftest.er1
17295  ac_status=$?
17296  grep -v '^ *+' conftest.er1 >conftest.err
17297  rm -f conftest.er1
17298  cat conftest.err >&5
17299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300  (exit $ac_status); } && {
17301	 test -z "$ac_c_werror_flag" ||
17302	 test ! -s conftest.err
17303       } && test -s conftest$ac_exeext &&
17304       $as_test_x conftest$ac_exeext; then
17305
17306lt_aix_libpath_sed='
17307    /Import File Strings/,/^$/ {
17308	/^0/ {
17309	    s/^0  *\(.*\)$/\1/
17310	    p
17311	}
17312    }'
17313aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17314# Check for a 64-bit object if we didn't find anything.
17315if test -z "$aix_libpath"; then
17316  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17317fi
17318else
17319  echo "$as_me: failed program was:" >&5
17320sed 's/^/| /' conftest.$ac_ext >&5
17321
17322
17323fi
17324
17325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17326      conftest$ac_exeext conftest.$ac_ext
17327if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17328
17329       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17330	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"
17331       else
17332	if test "$host_cpu" = ia64; then
17333	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17334	  allow_undefined_flag_GCJ="-z nodefs"
17335	  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"
17336	else
17337	 # Determine the default libpath from the value encoded in an empty executable.
17338	 cat >conftest.$ac_ext <<_ACEOF
17339/* confdefs.h.  */
17340_ACEOF
17341cat confdefs.h >>conftest.$ac_ext
17342cat >>conftest.$ac_ext <<_ACEOF
17343/* end confdefs.h.  */
17344
17345int
17346main ()
17347{
17348
17349  ;
17350  return 0;
17351}
17352_ACEOF
17353rm -f conftest.$ac_objext conftest$ac_exeext
17354if { (ac_try="$ac_link"
17355case "(($ac_try" in
17356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357  *) ac_try_echo=$ac_try;;
17358esac
17359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360  (eval "$ac_link") 2>conftest.er1
17361  ac_status=$?
17362  grep -v '^ *+' conftest.er1 >conftest.err
17363  rm -f conftest.er1
17364  cat conftest.err >&5
17365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366  (exit $ac_status); } && {
17367	 test -z "$ac_c_werror_flag" ||
17368	 test ! -s conftest.err
17369       } && test -s conftest$ac_exeext &&
17370       $as_test_x conftest$ac_exeext; then
17371
17372lt_aix_libpath_sed='
17373    /Import File Strings/,/^$/ {
17374	/^0/ {
17375	    s/^0  *\(.*\)$/\1/
17376	    p
17377	}
17378    }'
17379aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17380# Check for a 64-bit object if we didn't find anything.
17381if test -z "$aix_libpath"; then
17382  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17383fi
17384else
17385  echo "$as_me: failed program was:" >&5
17386sed 's/^/| /' conftest.$ac_ext >&5
17387
17388
17389fi
17390
17391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17392      conftest$ac_exeext conftest.$ac_ext
17393if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17394
17395	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17396	  # Warning - without using the other run time loading flags,
17397	  # -berok will link without error, but may produce a broken library.
17398	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17399	  allow_undefined_flag_GCJ=' ${wl}-berok'
17400	  # Exported symbols can be pulled into shared objects from archives
17401	  whole_archive_flag_spec_GCJ='$convenience'
17402	  archive_cmds_need_lc_GCJ=yes
17403	  # This is similar to how AIX traditionally builds its shared libraries.
17404	  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'
17405	fi
17406      fi
17407      ;;
17408
17409    amigaos*)
17410      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)'
17411      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17412      hardcode_minus_L_GCJ=yes
17413      # see comment about different semantics on the GNU ld section
17414      ld_shlibs_GCJ=no
17415      ;;
17416
17417    bsdi[45]*)
17418      export_dynamic_flag_spec_GCJ=-rdynamic
17419      ;;
17420
17421    cygwin* | mingw* | pw32*)
17422      # When not using gcc, we currently assume that we are using
17423      # Microsoft Visual C++.
17424      # hardcode_libdir_flag_spec is actually meaningless, as there is
17425      # no search path for DLLs.
17426      hardcode_libdir_flag_spec_GCJ=' '
17427      allow_undefined_flag_GCJ=unsupported
17428      # Tell ltmain to make .lib files, not .a files.
17429      libext=lib
17430      # Tell ltmain to make .dll files, not .so files.
17431      shrext_cmds=".dll"
17432      # FIXME: Setting linknames here is a bad hack.
17433      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17434      # The linker will automatically build a .lib file if we build a DLL.
17435      old_archive_From_new_cmds_GCJ='true'
17436      # FIXME: Should let the user specify the lib program.
17437      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17438      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17439      enable_shared_with_static_runtimes_GCJ=yes
17440      ;;
17441
17442    darwin* | rhapsody*)
17443      case $host_os in
17444        rhapsody* | darwin1.[012])
17445         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17446         ;;
17447       *) # Darwin 1.3 on
17448         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17449           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17450         else
17451           case ${MACOSX_DEPLOYMENT_TARGET} in
17452             10.[012])
17453               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17454               ;;
17455             10.*)
17456               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17457               ;;
17458           esac
17459         fi
17460         ;;
17461      esac
17462      archive_cmds_need_lc_GCJ=no
17463      hardcode_direct_GCJ=no
17464      hardcode_automatic_GCJ=yes
17465      hardcode_shlibpath_var_GCJ=unsupported
17466      whole_archive_flag_spec_GCJ=''
17467      link_all_deplibs_GCJ=yes
17468    if test "$GCC" = yes ; then
17469    	output_verbose_link_cmd='echo'
17470        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17471      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17472      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17473      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17474      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}'
17475    else
17476      case $cc_basename in
17477        xlc*)
17478         output_verbose_link_cmd='echo'
17479         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17480         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17481          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17482         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}'
17483          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}'
17484          ;;
17485       *)
17486         ld_shlibs_GCJ=no
17487          ;;
17488      esac
17489    fi
17490      ;;
17491
17492    dgux*)
17493      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17494      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17495      hardcode_shlibpath_var_GCJ=no
17496      ;;
17497
17498    freebsd1*)
17499      ld_shlibs_GCJ=no
17500      ;;
17501
17502    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17503    # support.  Future versions do this automatically, but an explicit c++rt0.o
17504    # does not break anything, and helps significantly (at the cost of a little
17505    # extra space).
17506    freebsd2.2*)
17507      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17508      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17509      hardcode_direct_GCJ=yes
17510      hardcode_shlibpath_var_GCJ=no
17511      ;;
17512
17513    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17514    freebsd2*)
17515      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17516      hardcode_direct_GCJ=yes
17517      hardcode_minus_L_GCJ=yes
17518      hardcode_shlibpath_var_GCJ=no
17519      ;;
17520
17521    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17522    freebsd* | dragonfly*)
17523      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17524      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17525      hardcode_direct_GCJ=yes
17526      hardcode_shlibpath_var_GCJ=no
17527      ;;
17528
17529    hpux9*)
17530      if test "$GCC" = yes; then
17531	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'
17532      else
17533	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'
17534      fi
17535      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17536      hardcode_libdir_separator_GCJ=:
17537      hardcode_direct_GCJ=yes
17538
17539      # hardcode_minus_L: Not really in the search PATH,
17540      # but as the default location of the library.
17541      hardcode_minus_L_GCJ=yes
17542      export_dynamic_flag_spec_GCJ='${wl}-E'
17543      ;;
17544
17545    hpux10*)
17546      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17547	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17548      else
17549	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17550      fi
17551      if test "$with_gnu_ld" = no; then
17552	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17553	hardcode_libdir_separator_GCJ=:
17554
17555	hardcode_direct_GCJ=yes
17556	export_dynamic_flag_spec_GCJ='${wl}-E'
17557
17558	# hardcode_minus_L: Not really in the search PATH,
17559	# but as the default location of the library.
17560	hardcode_minus_L_GCJ=yes
17561      fi
17562      ;;
17563
17564    hpux11*)
17565      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17566	case $host_cpu in
17567	hppa*64*)
17568	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17569	  ;;
17570	ia64*)
17571	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17572	  ;;
17573	*)
17574	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17575	  ;;
17576	esac
17577      else
17578	case $host_cpu in
17579	hppa*64*)
17580	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17581	  ;;
17582	ia64*)
17583	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17584	  ;;
17585	*)
17586	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17587	  ;;
17588	esac
17589      fi
17590      if test "$with_gnu_ld" = no; then
17591	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17592	hardcode_libdir_separator_GCJ=:
17593
17594	case $host_cpu in
17595	hppa*64*|ia64*)
17596	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17597	  hardcode_direct_GCJ=no
17598	  hardcode_shlibpath_var_GCJ=no
17599	  ;;
17600	*)
17601	  hardcode_direct_GCJ=yes
17602	  export_dynamic_flag_spec_GCJ='${wl}-E'
17603
17604	  # hardcode_minus_L: Not really in the search PATH,
17605	  # but as the default location of the library.
17606	  hardcode_minus_L_GCJ=yes
17607	  ;;
17608	esac
17609      fi
17610      ;;
17611
17612    irix5* | irix6* | nonstopux*)
17613      if test "$GCC" = yes; then
17614	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'
17615      else
17616	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'
17617	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17618      fi
17619      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17620      hardcode_libdir_separator_GCJ=:
17621      link_all_deplibs_GCJ=yes
17622      ;;
17623
17624    netbsd*)
17625      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17626	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17627      else
17628	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17629      fi
17630      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17631      hardcode_direct_GCJ=yes
17632      hardcode_shlibpath_var_GCJ=no
17633      ;;
17634
17635    newsos6)
17636      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17637      hardcode_direct_GCJ=yes
17638      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17639      hardcode_libdir_separator_GCJ=:
17640      hardcode_shlibpath_var_GCJ=no
17641      ;;
17642
17643    openbsd*)
17644      if test -f /usr/libexec/ld.so; then
17645	hardcode_direct_GCJ=yes
17646	hardcode_shlibpath_var_GCJ=no
17647	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17648	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17649	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17650	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17651	  export_dynamic_flag_spec_GCJ='${wl}-E'
17652	else
17653	  case $host_os in
17654	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17655	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17656	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
17657	     ;;
17658	   *)
17659	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17660	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17661	     ;;
17662	  esac
17663        fi
17664      else
17665	ld_shlibs_GCJ=no
17666      fi
17667      ;;
17668
17669    os2*)
17670      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17671      hardcode_minus_L_GCJ=yes
17672      allow_undefined_flag_GCJ=unsupported
17673      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'
17674      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17675      ;;
17676
17677    osf3*)
17678      if test "$GCC" = yes; then
17679	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17680	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'
17681      else
17682	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17683	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'
17684      fi
17685      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17686      hardcode_libdir_separator_GCJ=:
17687      ;;
17688
17689    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17690      if test "$GCC" = yes; then
17691	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17692	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'
17693	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17694      else
17695	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17696	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'
17697	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~
17698	$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'
17699
17700	# Both c and cxx compiler support -rpath directly
17701	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17702      fi
17703      hardcode_libdir_separator_GCJ=:
17704      ;;
17705
17706    solaris*)
17707      no_undefined_flag_GCJ=' -z text'
17708      if test "$GCC" = yes; then
17709	wlarc='${wl}'
17710	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17711	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17712	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17713      else
17714	wlarc=''
17715	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17716	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17717  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17718      fi
17719      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17720      hardcode_shlibpath_var_GCJ=no
17721      case $host_os in
17722      solaris2.[0-5] | solaris2.[0-5].*) ;;
17723      *)
17724	# The compiler driver will combine and reorder linker options,
17725	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17726	# but is careful enough not to reorder.
17727 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17728	if test "$GCC" = yes; then
17729	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17730	else
17731	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17732	fi
17733	;;
17734      esac
17735      link_all_deplibs_GCJ=yes
17736      ;;
17737
17738    sunos4*)
17739      if test "x$host_vendor" = xsequent; then
17740	# Use $CC to link under sequent, because it throws in some extra .o
17741	# files that make .init and .fini sections work.
17742	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17743      else
17744	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17745      fi
17746      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17747      hardcode_direct_GCJ=yes
17748      hardcode_minus_L_GCJ=yes
17749      hardcode_shlibpath_var_GCJ=no
17750      ;;
17751
17752    sysv4)
17753      case $host_vendor in
17754	sni)
17755	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17756	  hardcode_direct_GCJ=yes # is this really true???
17757	;;
17758	siemens)
17759	  ## LD is ld it makes a PLAMLIB
17760	  ## CC just makes a GrossModule.
17761	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17762	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17763	  hardcode_direct_GCJ=no
17764        ;;
17765	motorola)
17766	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17767	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17768	;;
17769      esac
17770      runpath_var='LD_RUN_PATH'
17771      hardcode_shlibpath_var_GCJ=no
17772      ;;
17773
17774    sysv4.3*)
17775      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17776      hardcode_shlibpath_var_GCJ=no
17777      export_dynamic_flag_spec_GCJ='-Bexport'
17778      ;;
17779
17780    sysv4*MP*)
17781      if test -d /usr/nec; then
17782	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17783	hardcode_shlibpath_var_GCJ=no
17784	runpath_var=LD_RUN_PATH
17785	hardcode_runpath_var=yes
17786	ld_shlibs_GCJ=yes
17787      fi
17788      ;;
17789
17790    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17791      no_undefined_flag_GCJ='${wl}-z,text'
17792      archive_cmds_need_lc_GCJ=no
17793      hardcode_shlibpath_var_GCJ=no
17794      runpath_var='LD_RUN_PATH'
17795
17796      if test "$GCC" = yes; then
17797	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17798	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17799      else
17800	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17801	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17802      fi
17803      ;;
17804
17805    sysv5* | sco3.2v5* | sco5v6*)
17806      # Note: We can NOT use -z defs as we might desire, because we do not
17807      # link with -lc, and that would cause any symbols used from libc to
17808      # always be unresolved, which means just about no library would
17809      # ever link correctly.  If we're not using GNU ld we use -z text
17810      # though, which does catch some bad symbols but isn't as heavy-handed
17811      # as -z defs.
17812      no_undefined_flag_GCJ='${wl}-z,text'
17813      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17814      archive_cmds_need_lc_GCJ=no
17815      hardcode_shlibpath_var_GCJ=no
17816      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17817      hardcode_libdir_separator_GCJ=':'
17818      link_all_deplibs_GCJ=yes
17819      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17820      runpath_var='LD_RUN_PATH'
17821
17822      if test "$GCC" = yes; then
17823	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17824	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17825      else
17826	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17827	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17828      fi
17829      ;;
17830
17831    uts4*)
17832      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17833      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17834      hardcode_shlibpath_var_GCJ=no
17835      ;;
17836
17837    *)
17838      ld_shlibs_GCJ=no
17839      ;;
17840    esac
17841  fi
17842
17843{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17844echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17845test "$ld_shlibs_GCJ" = no && can_build_shared=no
17846
17847#
17848# Do we need to explicitly link libc?
17849#
17850case "x$archive_cmds_need_lc_GCJ" in
17851x|xyes)
17852  # Assume -lc should be added
17853  archive_cmds_need_lc_GCJ=yes
17854
17855  if test "$enable_shared" = yes && test "$GCC" = yes; then
17856    case $archive_cmds_GCJ in
17857    *'~'*)
17858      # FIXME: we may have to deal with multi-command sequences.
17859      ;;
17860    '$CC '*)
17861      # Test whether the compiler implicitly links with -lc since on some
17862      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17863      # to ld, don't add -lc before -lgcc.
17864      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17865echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17866      $rm conftest*
17867      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17868
17869      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17870  (eval $ac_compile) 2>&5
17871  ac_status=$?
17872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873  (exit $ac_status); } 2>conftest.err; then
17874        soname=conftest
17875        lib=conftest
17876        libobjs=conftest.$ac_objext
17877        deplibs=
17878        wl=$lt_prog_compiler_wl_GCJ
17879	pic_flag=$lt_prog_compiler_pic_GCJ
17880        compiler_flags=-v
17881        linker_flags=-v
17882        verstring=
17883        output_objdir=.
17884        libname=conftest
17885        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17886        allow_undefined_flag_GCJ=
17887        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17888  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17889  ac_status=$?
17890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891  (exit $ac_status); }
17892        then
17893	  archive_cmds_need_lc_GCJ=no
17894        else
17895	  archive_cmds_need_lc_GCJ=yes
17896        fi
17897        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17898      else
17899        cat conftest.err 1>&5
17900      fi
17901      $rm conftest*
17902      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17903echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17904      ;;
17905    esac
17906  fi
17907  ;;
17908esac
17909
17910{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17911echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17912library_names_spec=
17913libname_spec='lib$name'
17914soname_spec=
17915shrext_cmds=".so"
17916postinstall_cmds=
17917postuninstall_cmds=
17918finish_cmds=
17919finish_eval=
17920shlibpath_var=
17921shlibpath_overrides_runpath=unknown
17922version_type=none
17923dynamic_linker="$host_os ld.so"
17924sys_lib_dlsearch_path_spec="/lib /usr/lib"
17925
17926need_lib_prefix=unknown
17927hardcode_into_libs=no
17928
17929# when you set need_version to no, make sure it does not cause -set_version
17930# flags to be left without arguments
17931need_version=unknown
17932
17933case $host_os in
17934aix3*)
17935  version_type=linux
17936  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17937  shlibpath_var=LIBPATH
17938
17939  # AIX 3 has no versioning support, so we append a major version to the name.
17940  soname_spec='${libname}${release}${shared_ext}$major'
17941  ;;
17942
17943aix4* | aix5*)
17944  version_type=linux
17945  need_lib_prefix=no
17946  need_version=no
17947  hardcode_into_libs=yes
17948  if test "$host_cpu" = ia64; then
17949    # AIX 5 supports IA64
17950    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17951    shlibpath_var=LD_LIBRARY_PATH
17952  else
17953    # With GCC up to 2.95.x, collect2 would create an import file
17954    # for dependence libraries.  The import file would start with
17955    # the line `#! .'.  This would cause the generated library to
17956    # depend on `.', always an invalid library.  This was fixed in
17957    # development snapshots of GCC prior to 3.0.
17958    case $host_os in
17959      aix4 | aix4.[01] | aix4.[01].*)
17960      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17961	   echo ' yes '
17962	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17963	:
17964      else
17965	can_build_shared=no
17966      fi
17967      ;;
17968    esac
17969    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17970    # soname into executable. Probably we can add versioning support to
17971    # collect2, so additional links can be useful in future.
17972    if test "$aix_use_runtimelinking" = yes; then
17973      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17974      # instead of lib<name>.a to let people know that these are not
17975      # typical AIX shared libraries.
17976      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17977    else
17978      # We preserve .a as extension for shared libraries through AIX4.2
17979      # and later when we are not doing run time linking.
17980      library_names_spec='${libname}${release}.a $libname.a'
17981      soname_spec='${libname}${release}${shared_ext}$major'
17982    fi
17983    shlibpath_var=LIBPATH
17984  fi
17985  ;;
17986
17987amigaos*)
17988  library_names_spec='$libname.ixlibrary $libname.a'
17989  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17990  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'
17991  ;;
17992
17993beos*)
17994  library_names_spec='${libname}${shared_ext}'
17995  dynamic_linker="$host_os ld.so"
17996  shlibpath_var=LIBRARY_PATH
17997  ;;
17998
17999bsdi[45]*)
18000  version_type=linux
18001  need_version=no
18002  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18003  soname_spec='${libname}${release}${shared_ext}$major'
18004  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18005  shlibpath_var=LD_LIBRARY_PATH
18006  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18007  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18008  # the default ld.so.conf also contains /usr/contrib/lib and
18009  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18010  # libtool to hard-code these into programs
18011  ;;
18012
18013cygwin* | mingw* | pw32*)
18014  version_type=windows
18015  shrext_cmds=".dll"
18016  need_version=no
18017  need_lib_prefix=no
18018
18019  case $GCC,$host_os in
18020  yes,cygwin* | yes,mingw* | yes,pw32*)
18021    library_names_spec='$libname.dll.a'
18022    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18023    postinstall_cmds='base_file=`basename \${file}`~
18024      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18025      dldir=$destdir/`dirname \$dlpath`~
18026      test -d \$dldir || mkdir -p \$dldir~
18027      $install_prog $dir/$dlname \$dldir/$dlname~
18028      chmod a+x \$dldir/$dlname'
18029    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18030      dlpath=$dir/\$dldll~
18031       $rm \$dlpath'
18032    shlibpath_overrides_runpath=yes
18033
18034    case $host_os in
18035    cygwin*)
18036      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18037      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18038      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18039      ;;
18040    mingw*)
18041      # MinGW DLLs use traditional 'lib' prefix
18042      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18043      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18044      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18045        # It is most probably a Windows format PATH printed by
18046        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18047        # path with ; separators, and with drive letters. We can handle the
18048        # drive letters (cygwin fileutils understands them), so leave them,
18049        # especially as we might pass files found there to a mingw objdump,
18050        # which wouldn't understand a cygwinified path. Ahh.
18051        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18052      else
18053        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18054      fi
18055      ;;
18056    pw32*)
18057      # pw32 DLLs use 'pw' prefix rather than 'lib'
18058      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18059      ;;
18060    esac
18061    ;;
18062
18063  *)
18064    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18065    ;;
18066  esac
18067  dynamic_linker='Win32 ld.exe'
18068  # FIXME: first we should search . and the directory the executable is in
18069  shlibpath_var=PATH
18070  ;;
18071
18072darwin* | rhapsody*)
18073  dynamic_linker="$host_os dyld"
18074  version_type=darwin
18075  need_lib_prefix=no
18076  need_version=no
18077  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18078  soname_spec='${libname}${release}${major}$shared_ext'
18079  shlibpath_overrides_runpath=yes
18080  shlibpath_var=DYLD_LIBRARY_PATH
18081  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18082
18083  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18084  ;;
18085
18086dgux*)
18087  version_type=linux
18088  need_lib_prefix=no
18089  need_version=no
18090  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18091  soname_spec='${libname}${release}${shared_ext}$major'
18092  shlibpath_var=LD_LIBRARY_PATH
18093  ;;
18094
18095freebsd1*)
18096  dynamic_linker=no
18097  ;;
18098
18099freebsd* | dragonfly*)
18100  # DragonFly does not have aout.  When/if they implement a new
18101  # versioning mechanism, adjust this.
18102  if test -x /usr/bin/objformat; then
18103    objformat=`/usr/bin/objformat`
18104  else
18105    case $host_os in
18106    freebsd[123]*) objformat=aout ;;
18107    *) objformat=elf ;;
18108    esac
18109  fi
18110  version_type=freebsd-$objformat
18111  case $version_type in
18112    freebsd-elf*)
18113      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18114      need_version=no
18115      need_lib_prefix=no
18116      ;;
18117    freebsd-*)
18118      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18119      need_version=yes
18120      ;;
18121  esac
18122  shlibpath_var=LD_LIBRARY_PATH
18123  case $host_os in
18124  freebsd2*)
18125    shlibpath_overrides_runpath=yes
18126    ;;
18127  freebsd3.[01]* | freebsdelf3.[01]*)
18128    shlibpath_overrides_runpath=yes
18129    hardcode_into_libs=yes
18130    ;;
18131  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18132  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18133    shlibpath_overrides_runpath=no
18134    hardcode_into_libs=yes
18135    ;;
18136  *) # from 4.6 on, and DragonFly
18137    shlibpath_overrides_runpath=yes
18138    hardcode_into_libs=yes
18139    ;;
18140  esac
18141  ;;
18142
18143gnu*)
18144  version_type=linux
18145  need_lib_prefix=no
18146  need_version=no
18147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18148  soname_spec='${libname}${release}${shared_ext}$major'
18149  shlibpath_var=LD_LIBRARY_PATH
18150  hardcode_into_libs=yes
18151  ;;
18152
18153hpux9* | hpux10* | hpux11*)
18154  # Give a soname corresponding to the major version so that dld.sl refuses to
18155  # link against other versions.
18156  version_type=sunos
18157  need_lib_prefix=no
18158  need_version=no
18159  case $host_cpu in
18160  ia64*)
18161    shrext_cmds='.so'
18162    hardcode_into_libs=yes
18163    dynamic_linker="$host_os dld.so"
18164    shlibpath_var=LD_LIBRARY_PATH
18165    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18166    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18167    soname_spec='${libname}${release}${shared_ext}$major'
18168    if test "X$HPUX_IA64_MODE" = X32; then
18169      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18170    else
18171      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18172    fi
18173    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18174    ;;
18175   hppa*64*)
18176     shrext_cmds='.sl'
18177     hardcode_into_libs=yes
18178     dynamic_linker="$host_os dld.sl"
18179     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18180     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18181     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182     soname_spec='${libname}${release}${shared_ext}$major'
18183     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18184     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18185     ;;
18186   *)
18187    shrext_cmds='.sl'
18188    dynamic_linker="$host_os dld.sl"
18189    shlibpath_var=SHLIB_PATH
18190    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18191    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18192    soname_spec='${libname}${release}${shared_ext}$major'
18193    ;;
18194  esac
18195  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18196  postinstall_cmds='chmod 555 $lib'
18197  ;;
18198
18199interix[3-9]*)
18200  version_type=linux
18201  need_lib_prefix=no
18202  need_version=no
18203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18204  soname_spec='${libname}${release}${shared_ext}$major'
18205  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18206  shlibpath_var=LD_LIBRARY_PATH
18207  shlibpath_overrides_runpath=no
18208  hardcode_into_libs=yes
18209  ;;
18210
18211irix5* | irix6* | nonstopux*)
18212  case $host_os in
18213    nonstopux*) version_type=nonstopux ;;
18214    *)
18215	if test "$lt_cv_prog_gnu_ld" = yes; then
18216		version_type=linux
18217	else
18218		version_type=irix
18219	fi ;;
18220  esac
18221  need_lib_prefix=no
18222  need_version=no
18223  soname_spec='${libname}${release}${shared_ext}$major'
18224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18225  case $host_os in
18226  irix5* | nonstopux*)
18227    libsuff= shlibsuff=
18228    ;;
18229  *)
18230    case $LD in # libtool.m4 will add one of these switches to LD
18231    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18232      libsuff= shlibsuff= libmagic=32-bit;;
18233    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18234      libsuff=32 shlibsuff=N32 libmagic=N32;;
18235    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18236      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18237    *) libsuff= shlibsuff= libmagic=never-match;;
18238    esac
18239    ;;
18240  esac
18241  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18242  shlibpath_overrides_runpath=no
18243  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18244  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18245  hardcode_into_libs=yes
18246  ;;
18247
18248# No shared lib support for Linux oldld, aout, or coff.
18249linux*oldld* | linux*aout* | linux*coff*)
18250  dynamic_linker=no
18251  ;;
18252
18253# This must be Linux ELF.
18254linux* | k*bsd*-gnu)
18255  version_type=linux
18256  need_lib_prefix=no
18257  need_version=no
18258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18259  soname_spec='${libname}${release}${shared_ext}$major'
18260  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18261  shlibpath_var=LD_LIBRARY_PATH
18262  shlibpath_overrides_runpath=no
18263  # This implies no fast_install, which is unacceptable.
18264  # Some rework will be needed to allow for fast_install
18265  # before this can be enabled.
18266  hardcode_into_libs=yes
18267  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18268  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18269
18270  # Append ld.so.conf contents to the search path
18271  if test -f /etc/ld.so.conf; then
18272    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' ' '`
18273    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18274  fi
18275
18276  # We used to test for /lib/ld.so.1 and disable shared libraries on
18277  # powerpc, because MkLinux only supported shared libraries with the
18278  # GNU dynamic linker.  Since this was broken with cross compilers,
18279  # most powerpc-linux boxes support dynamic linking these days and
18280  # people can always --disable-shared, the test was removed, and we
18281  # assume the GNU/Linux dynamic linker is in use.
18282  dynamic_linker='GNU/Linux ld.so'
18283  ;;
18284
18285netbsd*)
18286  version_type=sunos
18287  need_lib_prefix=no
18288  need_version=no
18289  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18290    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18291    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18292    dynamic_linker='NetBSD (a.out) ld.so'
18293  else
18294    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18295    soname_spec='${libname}${release}${shared_ext}$major'
18296    dynamic_linker='NetBSD ld.elf_so'
18297  fi
18298  shlibpath_var=LD_LIBRARY_PATH
18299  shlibpath_overrides_runpath=yes
18300  hardcode_into_libs=yes
18301  ;;
18302
18303newsos6)
18304  version_type=linux
18305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18306  shlibpath_var=LD_LIBRARY_PATH
18307  shlibpath_overrides_runpath=yes
18308  ;;
18309
18310nto-qnx*)
18311  version_type=linux
18312  need_lib_prefix=no
18313  need_version=no
18314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18315  soname_spec='${libname}${release}${shared_ext}$major'
18316  shlibpath_var=LD_LIBRARY_PATH
18317  shlibpath_overrides_runpath=yes
18318  ;;
18319
18320openbsd*)
18321  version_type=sunos
18322  sys_lib_dlsearch_path_spec="/usr/lib"
18323  need_lib_prefix=no
18324  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18325  case $host_os in
18326    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18327    *)                         need_version=no  ;;
18328  esac
18329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18330  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18331  shlibpath_var=LD_LIBRARY_PATH
18332  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18333    case $host_os in
18334      openbsd2.[89] | openbsd2.[89].*)
18335	shlibpath_overrides_runpath=no
18336	;;
18337      *)
18338	shlibpath_overrides_runpath=yes
18339	;;
18340      esac
18341  else
18342    shlibpath_overrides_runpath=yes
18343  fi
18344  ;;
18345
18346os2*)
18347  libname_spec='$name'
18348  shrext_cmds=".dll"
18349  need_lib_prefix=no
18350  library_names_spec='$libname${shared_ext} $libname.a'
18351  dynamic_linker='OS/2 ld.exe'
18352  shlibpath_var=LIBPATH
18353  ;;
18354
18355osf3* | osf4* | osf5*)
18356  version_type=osf
18357  need_lib_prefix=no
18358  need_version=no
18359  soname_spec='${libname}${release}${shared_ext}$major'
18360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18361  shlibpath_var=LD_LIBRARY_PATH
18362  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18363  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18364  ;;
18365
18366rdos*)
18367  dynamic_linker=no
18368  ;;
18369
18370solaris*)
18371  version_type=linux
18372  need_lib_prefix=no
18373  need_version=no
18374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18375  soname_spec='${libname}${release}${shared_ext}$major'
18376  shlibpath_var=LD_LIBRARY_PATH
18377  shlibpath_overrides_runpath=yes
18378  hardcode_into_libs=yes
18379  # ldd complains unless libraries are executable
18380  postinstall_cmds='chmod +x $lib'
18381  ;;
18382
18383sunos4*)
18384  version_type=sunos
18385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18386  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18387  shlibpath_var=LD_LIBRARY_PATH
18388  shlibpath_overrides_runpath=yes
18389  if test "$with_gnu_ld" = yes; then
18390    need_lib_prefix=no
18391  fi
18392  need_version=yes
18393  ;;
18394
18395sysv4 | sysv4.3*)
18396  version_type=linux
18397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18398  soname_spec='${libname}${release}${shared_ext}$major'
18399  shlibpath_var=LD_LIBRARY_PATH
18400  case $host_vendor in
18401    sni)
18402      shlibpath_overrides_runpath=no
18403      need_lib_prefix=no
18404      export_dynamic_flag_spec='${wl}-Blargedynsym'
18405      runpath_var=LD_RUN_PATH
18406      ;;
18407    siemens)
18408      need_lib_prefix=no
18409      ;;
18410    motorola)
18411      need_lib_prefix=no
18412      need_version=no
18413      shlibpath_overrides_runpath=no
18414      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18415      ;;
18416  esac
18417  ;;
18418
18419sysv4*MP*)
18420  if test -d /usr/nec ;then
18421    version_type=linux
18422    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18423    soname_spec='$libname${shared_ext}.$major'
18424    shlibpath_var=LD_LIBRARY_PATH
18425  fi
18426  ;;
18427
18428sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18429  version_type=freebsd-elf
18430  need_lib_prefix=no
18431  need_version=no
18432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18433  soname_spec='${libname}${release}${shared_ext}$major'
18434  shlibpath_var=LD_LIBRARY_PATH
18435  hardcode_into_libs=yes
18436  if test "$with_gnu_ld" = yes; then
18437    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18438    shlibpath_overrides_runpath=no
18439  else
18440    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18441    shlibpath_overrides_runpath=yes
18442    case $host_os in
18443      sco3.2v5*)
18444        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18445	;;
18446    esac
18447  fi
18448  sys_lib_dlsearch_path_spec='/usr/lib'
18449  ;;
18450
18451uts4*)
18452  version_type=linux
18453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18454  soname_spec='${libname}${release}${shared_ext}$major'
18455  shlibpath_var=LD_LIBRARY_PATH
18456  ;;
18457
18458*)
18459  dynamic_linker=no
18460  ;;
18461esac
18462{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18463echo "${ECHO_T}$dynamic_linker" >&6; }
18464test "$dynamic_linker" = no && can_build_shared=no
18465
18466variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18467if test "$GCC" = yes; then
18468  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18469fi
18470
18471{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18472echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18473hardcode_action_GCJ=
18474if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18475   test -n "$runpath_var_GCJ" || \
18476   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18477
18478  # We can hardcode non-existant directories.
18479  if test "$hardcode_direct_GCJ" != no &&
18480     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18481     # have to relink, otherwise we might link with an installed library
18482     # when we should be linking with a yet-to-be-installed one
18483     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18484     test "$hardcode_minus_L_GCJ" != no; then
18485    # Linking always hardcodes the temporary library directory.
18486    hardcode_action_GCJ=relink
18487  else
18488    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18489    hardcode_action_GCJ=immediate
18490  fi
18491else
18492  # We cannot hardcode anything, or else we can only hardcode existing
18493  # directories.
18494  hardcode_action_GCJ=unsupported
18495fi
18496{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18497echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18498
18499if test "$hardcode_action_GCJ" = relink; then
18500  # Fast installation is not supported
18501  enable_fast_install=no
18502elif test "$shlibpath_overrides_runpath" = yes ||
18503     test "$enable_shared" = no; then
18504  # Fast installation is not necessary
18505  enable_fast_install=needless
18506fi
18507
18508
18509# The else clause should only fire when bootstrapping the
18510# libtool distribution, otherwise you forgot to ship ltmain.sh
18511# with your package, and you will get complaints that there are
18512# no rules to generate ltmain.sh.
18513if test -f "$ltmain"; then
18514  # See if we are running on zsh, and set the options which allow our commands through
18515  # without removal of \ escapes.
18516  if test -n "${ZSH_VERSION+set}" ; then
18517    setopt NO_GLOB_SUBST
18518  fi
18519  # Now quote all the things that may contain metacharacters while being
18520  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18521  # variables and quote the copies for generation of the libtool script.
18522  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18523    SED SHELL STRIP \
18524    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18525    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18526    deplibs_check_method reload_flag reload_cmds need_locks \
18527    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18528    lt_cv_sys_global_symbol_to_c_name_address \
18529    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18530    old_postinstall_cmds old_postuninstall_cmds \
18531    compiler_GCJ \
18532    CC_GCJ \
18533    LD_GCJ \
18534    lt_prog_compiler_wl_GCJ \
18535    lt_prog_compiler_pic_GCJ \
18536    lt_prog_compiler_static_GCJ \
18537    lt_prog_compiler_no_builtin_flag_GCJ \
18538    export_dynamic_flag_spec_GCJ \
18539    thread_safe_flag_spec_GCJ \
18540    whole_archive_flag_spec_GCJ \
18541    enable_shared_with_static_runtimes_GCJ \
18542    old_archive_cmds_GCJ \
18543    old_archive_from_new_cmds_GCJ \
18544    predep_objects_GCJ \
18545    postdep_objects_GCJ \
18546    predeps_GCJ \
18547    postdeps_GCJ \
18548    compiler_lib_search_path_GCJ \
18549    archive_cmds_GCJ \
18550    archive_expsym_cmds_GCJ \
18551    postinstall_cmds_GCJ \
18552    postuninstall_cmds_GCJ \
18553    old_archive_from_expsyms_cmds_GCJ \
18554    allow_undefined_flag_GCJ \
18555    no_undefined_flag_GCJ \
18556    export_symbols_cmds_GCJ \
18557    hardcode_libdir_flag_spec_GCJ \
18558    hardcode_libdir_flag_spec_ld_GCJ \
18559    hardcode_libdir_separator_GCJ \
18560    hardcode_automatic_GCJ \
18561    module_cmds_GCJ \
18562    module_expsym_cmds_GCJ \
18563    lt_cv_prog_compiler_c_o_GCJ \
18564    fix_srcfile_path_GCJ \
18565    exclude_expsyms_GCJ \
18566    include_expsyms_GCJ; do
18567
18568    case $var in
18569    old_archive_cmds_GCJ | \
18570    old_archive_from_new_cmds_GCJ | \
18571    archive_cmds_GCJ | \
18572    archive_expsym_cmds_GCJ | \
18573    module_cmds_GCJ | \
18574    module_expsym_cmds_GCJ | \
18575    old_archive_from_expsyms_cmds_GCJ | \
18576    export_symbols_cmds_GCJ | \
18577    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18578    postinstall_cmds | postuninstall_cmds | \
18579    old_postinstall_cmds | old_postuninstall_cmds | \
18580    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18581      # Double-quote double-evaled strings.
18582      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18583      ;;
18584    *)
18585      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18586      ;;
18587    esac
18588  done
18589
18590  case $lt_echo in
18591  *'\$0 --fallback-echo"')
18592    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18593    ;;
18594  esac
18595
18596cfgfile="$ofile"
18597
18598  cat <<__EOF__ >> "$cfgfile"
18599# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18600
18601# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18602
18603# Shell to use when invoking shell scripts.
18604SHELL=$lt_SHELL
18605
18606# Whether or not to build shared libraries.
18607build_libtool_libs=$enable_shared
18608
18609# Whether or not to build static libraries.
18610build_old_libs=$enable_static
18611
18612# Whether or not to add -lc for building shared libraries.
18613build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18614
18615# Whether or not to disallow shared libs when runtime libs are static
18616allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18617
18618# Whether or not to optimize for fast installation.
18619fast_install=$enable_fast_install
18620
18621# The host system.
18622host_alias=$host_alias
18623host=$host
18624host_os=$host_os
18625
18626# The build system.
18627build_alias=$build_alias
18628build=$build
18629build_os=$build_os
18630
18631# An echo program that does not interpret backslashes.
18632echo=$lt_echo
18633
18634# The archiver.
18635AR=$lt_AR
18636AR_FLAGS=$lt_AR_FLAGS
18637
18638# A C compiler.
18639LTCC=$lt_LTCC
18640
18641# LTCC compiler flags.
18642LTCFLAGS=$lt_LTCFLAGS
18643
18644# A language-specific compiler.
18645CC=$lt_compiler_GCJ
18646
18647# Is the compiler the GNU C compiler?
18648with_gcc=$GCC_GCJ
18649
18650# An ERE matcher.
18651EGREP=$lt_EGREP
18652
18653# The linker used to build libraries.
18654LD=$lt_LD_GCJ
18655
18656# Whether we need hard or soft links.
18657LN_S=$lt_LN_S
18658
18659# A BSD-compatible nm program.
18660NM=$lt_NM
18661
18662# A symbol stripping program
18663STRIP=$lt_STRIP
18664
18665# Used to examine libraries when file_magic_cmd begins "file"
18666MAGIC_CMD=$MAGIC_CMD
18667
18668# Used on cygwin: DLL creation program.
18669DLLTOOL="$DLLTOOL"
18670
18671# Used on cygwin: object dumper.
18672OBJDUMP="$OBJDUMP"
18673
18674# Used on cygwin: assembler.
18675AS="$AS"
18676
18677# The name of the directory that contains temporary libtool files.
18678objdir=$objdir
18679
18680# How to create reloadable object files.
18681reload_flag=$lt_reload_flag
18682reload_cmds=$lt_reload_cmds
18683
18684# How to pass a linker flag through the compiler.
18685wl=$lt_lt_prog_compiler_wl_GCJ
18686
18687# Object file suffix (normally "o").
18688objext="$ac_objext"
18689
18690# Old archive suffix (normally "a").
18691libext="$libext"
18692
18693# Shared library suffix (normally ".so").
18694shrext_cmds='$shrext_cmds'
18695
18696# Executable file suffix (normally "").
18697exeext="$exeext"
18698
18699# Additional compiler flags for building library objects.
18700pic_flag=$lt_lt_prog_compiler_pic_GCJ
18701pic_mode=$pic_mode
18702
18703# What is the maximum length of a command?
18704max_cmd_len=$lt_cv_sys_max_cmd_len
18705
18706# Does compiler simultaneously support -c and -o options?
18707compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18708
18709# Must we lock files when doing compilation?
18710need_locks=$lt_need_locks
18711
18712# Do we need the lib prefix for modules?
18713need_lib_prefix=$need_lib_prefix
18714
18715# Do we need a version for libraries?
18716need_version=$need_version
18717
18718# Whether dlopen is supported.
18719dlopen_support=$enable_dlopen
18720
18721# Whether dlopen of programs is supported.
18722dlopen_self=$enable_dlopen_self
18723
18724# Whether dlopen of statically linked programs is supported.
18725dlopen_self_static=$enable_dlopen_self_static
18726
18727# Compiler flag to prevent dynamic linking.
18728link_static_flag=$lt_lt_prog_compiler_static_GCJ
18729
18730# Compiler flag to turn off builtin functions.
18731no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18732
18733# Compiler flag to allow reflexive dlopens.
18734export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18735
18736# Compiler flag to generate shared objects directly from archives.
18737whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18738
18739# Compiler flag to generate thread-safe objects.
18740thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18741
18742# Library versioning type.
18743version_type=$version_type
18744
18745# Format of library name prefix.
18746libname_spec=$lt_libname_spec
18747
18748# List of archive names.  First name is the real one, the rest are links.
18749# The last name is the one that the linker finds with -lNAME.
18750library_names_spec=$lt_library_names_spec
18751
18752# The coded name of the library, if different from the real name.
18753soname_spec=$lt_soname_spec
18754
18755# Commands used to build and install an old-style archive.
18756RANLIB=$lt_RANLIB
18757old_archive_cmds=$lt_old_archive_cmds_GCJ
18758old_postinstall_cmds=$lt_old_postinstall_cmds
18759old_postuninstall_cmds=$lt_old_postuninstall_cmds
18760
18761# Create an old-style archive from a shared archive.
18762old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18763
18764# Create a temporary old-style archive to link instead of a shared archive.
18765old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18766
18767# Commands used to build and install a shared archive.
18768archive_cmds=$lt_archive_cmds_GCJ
18769archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18770postinstall_cmds=$lt_postinstall_cmds
18771postuninstall_cmds=$lt_postuninstall_cmds
18772
18773# Commands used to build a loadable module (assumed same as above if empty)
18774module_cmds=$lt_module_cmds_GCJ
18775module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18776
18777# Commands to strip libraries.
18778old_striplib=$lt_old_striplib
18779striplib=$lt_striplib
18780
18781# Dependencies to place before the objects being linked to create a
18782# shared library.
18783predep_objects=$lt_predep_objects_GCJ
18784
18785# Dependencies to place after the objects being linked to create a
18786# shared library.
18787postdep_objects=$lt_postdep_objects_GCJ
18788
18789# Dependencies to place before the objects being linked to create a
18790# shared library.
18791predeps=$lt_predeps_GCJ
18792
18793# Dependencies to place after the objects being linked to create a
18794# shared library.
18795postdeps=$lt_postdeps_GCJ
18796
18797# The library search path used internally by the compiler when linking
18798# a shared library.
18799compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18800
18801# Method to check whether dependent libraries are shared objects.
18802deplibs_check_method=$lt_deplibs_check_method
18803
18804# Command to use when deplibs_check_method == file_magic.
18805file_magic_cmd=$lt_file_magic_cmd
18806
18807# Flag that allows shared libraries with undefined symbols to be built.
18808allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18809
18810# Flag that forces no undefined symbols.
18811no_undefined_flag=$lt_no_undefined_flag_GCJ
18812
18813# Commands used to finish a libtool library installation in a directory.
18814finish_cmds=$lt_finish_cmds
18815
18816# Same as above, but a single script fragment to be evaled but not shown.
18817finish_eval=$lt_finish_eval
18818
18819# Take the output of nm and produce a listing of raw symbols and C names.
18820global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18821
18822# Transform the output of nm in a proper C declaration
18823global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18824
18825# Transform the output of nm in a C name address pair
18826global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18827
18828# This is the shared library runtime path variable.
18829runpath_var=$runpath_var
18830
18831# This is the shared library path variable.
18832shlibpath_var=$shlibpath_var
18833
18834# Is shlibpath searched before the hard-coded library search path?
18835shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18836
18837# How to hardcode a shared library path into an executable.
18838hardcode_action=$hardcode_action_GCJ
18839
18840# Whether we should hardcode library paths into libraries.
18841hardcode_into_libs=$hardcode_into_libs
18842
18843# Flag to hardcode \$libdir into a binary during linking.
18844# This must work even if \$libdir does not exist.
18845hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18846
18847# If ld is used when linking, flag to hardcode \$libdir into
18848# a binary during linking. This must work even if \$libdir does
18849# not exist.
18850hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18851
18852# Whether we need a single -rpath flag with a separated argument.
18853hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18854
18855# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18856# resulting binary.
18857hardcode_direct=$hardcode_direct_GCJ
18858
18859# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18860# resulting binary.
18861hardcode_minus_L=$hardcode_minus_L_GCJ
18862
18863# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18864# the resulting binary.
18865hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18866
18867# Set to yes if building a shared library automatically hardcodes DIR into the library
18868# and all subsequent libraries and executables linked against it.
18869hardcode_automatic=$hardcode_automatic_GCJ
18870
18871# Variables whose values should be saved in libtool wrapper scripts and
18872# restored at relink time.
18873variables_saved_for_relink="$variables_saved_for_relink"
18874
18875# Whether libtool must link a program against all its dependency libraries.
18876link_all_deplibs=$link_all_deplibs_GCJ
18877
18878# Compile-time system search path for libraries
18879sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18880
18881# Run-time system search path for libraries
18882sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18883
18884# Fix the shell variable \$srcfile for the compiler.
18885fix_srcfile_path=$lt_fix_srcfile_path
18886
18887# Set to yes if exported symbols are required.
18888always_export_symbols=$always_export_symbols_GCJ
18889
18890# The commands to list exported symbols.
18891export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18892
18893# The commands to extract the exported symbol list from a shared archive.
18894extract_expsyms_cmds=$lt_extract_expsyms_cmds
18895
18896# Symbols that should not be listed in the preloaded symbols.
18897exclude_expsyms=$lt_exclude_expsyms_GCJ
18898
18899# Symbols that must always be exported.
18900include_expsyms=$lt_include_expsyms_GCJ
18901
18902# ### END LIBTOOL TAG CONFIG: $tagname
18903
18904__EOF__
18905
18906
18907else
18908  # If there is no Makefile yet, we rely on a make rule to execute
18909  # `config.status --recheck' to rerun these tests and create the
18910  # libtool script then.
18911  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18912  if test -f "$ltmain_in"; then
18913    test -f Makefile && make "$ltmain"
18914  fi
18915fi
18916
18917
18918ac_ext=c
18919ac_cpp='$CPP $CPPFLAGS'
18920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18922ac_compiler_gnu=$ac_cv_c_compiler_gnu
18923
18924CC="$lt_save_CC"
18925
18926	else
18927	  tagname=""
18928	fi
18929	;;
18930
18931      RC)
18932
18933
18934# Source file extension for RC test sources.
18935ac_ext=rc
18936
18937# Object file extension for compiled RC test sources.
18938objext=o
18939objext_RC=$objext
18940
18941# Code to be used in simple compile tests
18942lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18943
18944# Code to be used in simple link tests
18945lt_simple_link_test_code="$lt_simple_compile_test_code"
18946
18947# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18948
18949# If no C compiler was specified, use CC.
18950LTCC=${LTCC-"$CC"}
18951
18952# If no C compiler flags were specified, use CFLAGS.
18953LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18954
18955# Allow CC to be a program name with arguments.
18956compiler=$CC
18957
18958
18959# save warnings/boilerplate of simple test code
18960ac_outfile=conftest.$ac_objext
18961echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18962eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18963_lt_compiler_boilerplate=`cat conftest.err`
18964$rm conftest*
18965
18966ac_outfile=conftest.$ac_objext
18967echo "$lt_simple_link_test_code" >conftest.$ac_ext
18968eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18969_lt_linker_boilerplate=`cat conftest.err`
18970$rm conftest*
18971
18972
18973# Allow CC to be a program name with arguments.
18974lt_save_CC="$CC"
18975CC=${RC-"windres"}
18976compiler=$CC
18977compiler_RC=$CC
18978for cc_temp in $compiler""; do
18979  case $cc_temp in
18980    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18981    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18982    \-*) ;;
18983    *) break;;
18984  esac
18985done
18986cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18987
18988lt_cv_prog_compiler_c_o_RC=yes
18989
18990# The else clause should only fire when bootstrapping the
18991# libtool distribution, otherwise you forgot to ship ltmain.sh
18992# with your package, and you will get complaints that there are
18993# no rules to generate ltmain.sh.
18994if test -f "$ltmain"; then
18995  # See if we are running on zsh, and set the options which allow our commands through
18996  # without removal of \ escapes.
18997  if test -n "${ZSH_VERSION+set}" ; then
18998    setopt NO_GLOB_SUBST
18999  fi
19000  # Now quote all the things that may contain metacharacters while being
19001  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19002  # variables and quote the copies for generation of the libtool script.
19003  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19004    SED SHELL STRIP \
19005    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19006    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19007    deplibs_check_method reload_flag reload_cmds need_locks \
19008    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19009    lt_cv_sys_global_symbol_to_c_name_address \
19010    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19011    old_postinstall_cmds old_postuninstall_cmds \
19012    compiler_RC \
19013    CC_RC \
19014    LD_RC \
19015    lt_prog_compiler_wl_RC \
19016    lt_prog_compiler_pic_RC \
19017    lt_prog_compiler_static_RC \
19018    lt_prog_compiler_no_builtin_flag_RC \
19019    export_dynamic_flag_spec_RC \
19020    thread_safe_flag_spec_RC \
19021    whole_archive_flag_spec_RC \
19022    enable_shared_with_static_runtimes_RC \
19023    old_archive_cmds_RC \
19024    old_archive_from_new_cmds_RC \
19025    predep_objects_RC \
19026    postdep_objects_RC \
19027    predeps_RC \
19028    postdeps_RC \
19029    compiler_lib_search_path_RC \
19030    archive_cmds_RC \
19031    archive_expsym_cmds_RC \
19032    postinstall_cmds_RC \
19033    postuninstall_cmds_RC \
19034    old_archive_from_expsyms_cmds_RC \
19035    allow_undefined_flag_RC \
19036    no_undefined_flag_RC \
19037    export_symbols_cmds_RC \
19038    hardcode_libdir_flag_spec_RC \
19039    hardcode_libdir_flag_spec_ld_RC \
19040    hardcode_libdir_separator_RC \
19041    hardcode_automatic_RC \
19042    module_cmds_RC \
19043    module_expsym_cmds_RC \
19044    lt_cv_prog_compiler_c_o_RC \
19045    fix_srcfile_path_RC \
19046    exclude_expsyms_RC \
19047    include_expsyms_RC; do
19048
19049    case $var in
19050    old_archive_cmds_RC | \
19051    old_archive_from_new_cmds_RC | \
19052    archive_cmds_RC | \
19053    archive_expsym_cmds_RC | \
19054    module_cmds_RC | \
19055    module_expsym_cmds_RC | \
19056    old_archive_from_expsyms_cmds_RC | \
19057    export_symbols_cmds_RC | \
19058    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19059    postinstall_cmds | postuninstall_cmds | \
19060    old_postinstall_cmds | old_postuninstall_cmds | \
19061    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19062      # Double-quote double-evaled strings.
19063      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19064      ;;
19065    *)
19066      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19067      ;;
19068    esac
19069  done
19070
19071  case $lt_echo in
19072  *'\$0 --fallback-echo"')
19073    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19074    ;;
19075  esac
19076
19077cfgfile="$ofile"
19078
19079  cat <<__EOF__ >> "$cfgfile"
19080# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19081
19082# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19083
19084# Shell to use when invoking shell scripts.
19085SHELL=$lt_SHELL
19086
19087# Whether or not to build shared libraries.
19088build_libtool_libs=$enable_shared
19089
19090# Whether or not to build static libraries.
19091build_old_libs=$enable_static
19092
19093# Whether or not to add -lc for building shared libraries.
19094build_libtool_need_lc=$archive_cmds_need_lc_RC
19095
19096# Whether or not to disallow shared libs when runtime libs are static
19097allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19098
19099# Whether or not to optimize for fast installation.
19100fast_install=$enable_fast_install
19101
19102# The host system.
19103host_alias=$host_alias
19104host=$host
19105host_os=$host_os
19106
19107# The build system.
19108build_alias=$build_alias
19109build=$build
19110build_os=$build_os
19111
19112# An echo program that does not interpret backslashes.
19113echo=$lt_echo
19114
19115# The archiver.
19116AR=$lt_AR
19117AR_FLAGS=$lt_AR_FLAGS
19118
19119# A C compiler.
19120LTCC=$lt_LTCC
19121
19122# LTCC compiler flags.
19123LTCFLAGS=$lt_LTCFLAGS
19124
19125# A language-specific compiler.
19126CC=$lt_compiler_RC
19127
19128# Is the compiler the GNU C compiler?
19129with_gcc=$GCC_RC
19130
19131# An ERE matcher.
19132EGREP=$lt_EGREP
19133
19134# The linker used to build libraries.
19135LD=$lt_LD_RC
19136
19137# Whether we need hard or soft links.
19138LN_S=$lt_LN_S
19139
19140# A BSD-compatible nm program.
19141NM=$lt_NM
19142
19143# A symbol stripping program
19144STRIP=$lt_STRIP
19145
19146# Used to examine libraries when file_magic_cmd begins "file"
19147MAGIC_CMD=$MAGIC_CMD
19148
19149# Used on cygwin: DLL creation program.
19150DLLTOOL="$DLLTOOL"
19151
19152# Used on cygwin: object dumper.
19153OBJDUMP="$OBJDUMP"
19154
19155# Used on cygwin: assembler.
19156AS="$AS"
19157
19158# The name of the directory that contains temporary libtool files.
19159objdir=$objdir
19160
19161# How to create reloadable object files.
19162reload_flag=$lt_reload_flag
19163reload_cmds=$lt_reload_cmds
19164
19165# How to pass a linker flag through the compiler.
19166wl=$lt_lt_prog_compiler_wl_RC
19167
19168# Object file suffix (normally "o").
19169objext="$ac_objext"
19170
19171# Old archive suffix (normally "a").
19172libext="$libext"
19173
19174# Shared library suffix (normally ".so").
19175shrext_cmds='$shrext_cmds'
19176
19177# Executable file suffix (normally "").
19178exeext="$exeext"
19179
19180# Additional compiler flags for building library objects.
19181pic_flag=$lt_lt_prog_compiler_pic_RC
19182pic_mode=$pic_mode
19183
19184# What is the maximum length of a command?
19185max_cmd_len=$lt_cv_sys_max_cmd_len
19186
19187# Does compiler simultaneously support -c and -o options?
19188compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19189
19190# Must we lock files when doing compilation?
19191need_locks=$lt_need_locks
19192
19193# Do we need the lib prefix for modules?
19194need_lib_prefix=$need_lib_prefix
19195
19196# Do we need a version for libraries?
19197need_version=$need_version
19198
19199# Whether dlopen is supported.
19200dlopen_support=$enable_dlopen
19201
19202# Whether dlopen of programs is supported.
19203dlopen_self=$enable_dlopen_self
19204
19205# Whether dlopen of statically linked programs is supported.
19206dlopen_self_static=$enable_dlopen_self_static
19207
19208# Compiler flag to prevent dynamic linking.
19209link_static_flag=$lt_lt_prog_compiler_static_RC
19210
19211# Compiler flag to turn off builtin functions.
19212no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19213
19214# Compiler flag to allow reflexive dlopens.
19215export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19216
19217# Compiler flag to generate shared objects directly from archives.
19218whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19219
19220# Compiler flag to generate thread-safe objects.
19221thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19222
19223# Library versioning type.
19224version_type=$version_type
19225
19226# Format of library name prefix.
19227libname_spec=$lt_libname_spec
19228
19229# List of archive names.  First name is the real one, the rest are links.
19230# The last name is the one that the linker finds with -lNAME.
19231library_names_spec=$lt_library_names_spec
19232
19233# The coded name of the library, if different from the real name.
19234soname_spec=$lt_soname_spec
19235
19236# Commands used to build and install an old-style archive.
19237RANLIB=$lt_RANLIB
19238old_archive_cmds=$lt_old_archive_cmds_RC
19239old_postinstall_cmds=$lt_old_postinstall_cmds
19240old_postuninstall_cmds=$lt_old_postuninstall_cmds
19241
19242# Create an old-style archive from a shared archive.
19243old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19244
19245# Create a temporary old-style archive to link instead of a shared archive.
19246old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19247
19248# Commands used to build and install a shared archive.
19249archive_cmds=$lt_archive_cmds_RC
19250archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19251postinstall_cmds=$lt_postinstall_cmds
19252postuninstall_cmds=$lt_postuninstall_cmds
19253
19254# Commands used to build a loadable module (assumed same as above if empty)
19255module_cmds=$lt_module_cmds_RC
19256module_expsym_cmds=$lt_module_expsym_cmds_RC
19257
19258# Commands to strip libraries.
19259old_striplib=$lt_old_striplib
19260striplib=$lt_striplib
19261
19262# Dependencies to place before the objects being linked to create a
19263# shared library.
19264predep_objects=$lt_predep_objects_RC
19265
19266# Dependencies to place after the objects being linked to create a
19267# shared library.
19268postdep_objects=$lt_postdep_objects_RC
19269
19270# Dependencies to place before the objects being linked to create a
19271# shared library.
19272predeps=$lt_predeps_RC
19273
19274# Dependencies to place after the objects being linked to create a
19275# shared library.
19276postdeps=$lt_postdeps_RC
19277
19278# The library search path used internally by the compiler when linking
19279# a shared library.
19280compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19281
19282# Method to check whether dependent libraries are shared objects.
19283deplibs_check_method=$lt_deplibs_check_method
19284
19285# Command to use when deplibs_check_method == file_magic.
19286file_magic_cmd=$lt_file_magic_cmd
19287
19288# Flag that allows shared libraries with undefined symbols to be built.
19289allow_undefined_flag=$lt_allow_undefined_flag_RC
19290
19291# Flag that forces no undefined symbols.
19292no_undefined_flag=$lt_no_undefined_flag_RC
19293
19294# Commands used to finish a libtool library installation in a directory.
19295finish_cmds=$lt_finish_cmds
19296
19297# Same as above, but a single script fragment to be evaled but not shown.
19298finish_eval=$lt_finish_eval
19299
19300# Take the output of nm and produce a listing of raw symbols and C names.
19301global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19302
19303# Transform the output of nm in a proper C declaration
19304global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19305
19306# Transform the output of nm in a C name address pair
19307global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19308
19309# This is the shared library runtime path variable.
19310runpath_var=$runpath_var
19311
19312# This is the shared library path variable.
19313shlibpath_var=$shlibpath_var
19314
19315# Is shlibpath searched before the hard-coded library search path?
19316shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19317
19318# How to hardcode a shared library path into an executable.
19319hardcode_action=$hardcode_action_RC
19320
19321# Whether we should hardcode library paths into libraries.
19322hardcode_into_libs=$hardcode_into_libs
19323
19324# Flag to hardcode \$libdir into a binary during linking.
19325# This must work even if \$libdir does not exist.
19326hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19327
19328# If ld is used when linking, flag to hardcode \$libdir into
19329# a binary during linking. This must work even if \$libdir does
19330# not exist.
19331hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19332
19333# Whether we need a single -rpath flag with a separated argument.
19334hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19335
19336# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19337# resulting binary.
19338hardcode_direct=$hardcode_direct_RC
19339
19340# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19341# resulting binary.
19342hardcode_minus_L=$hardcode_minus_L_RC
19343
19344# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19345# the resulting binary.
19346hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19347
19348# Set to yes if building a shared library automatically hardcodes DIR into the library
19349# and all subsequent libraries and executables linked against it.
19350hardcode_automatic=$hardcode_automatic_RC
19351
19352# Variables whose values should be saved in libtool wrapper scripts and
19353# restored at relink time.
19354variables_saved_for_relink="$variables_saved_for_relink"
19355
19356# Whether libtool must link a program against all its dependency libraries.
19357link_all_deplibs=$link_all_deplibs_RC
19358
19359# Compile-time system search path for libraries
19360sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19361
19362# Run-time system search path for libraries
19363sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19364
19365# Fix the shell variable \$srcfile for the compiler.
19366fix_srcfile_path=$lt_fix_srcfile_path
19367
19368# Set to yes if exported symbols are required.
19369always_export_symbols=$always_export_symbols_RC
19370
19371# The commands to list exported symbols.
19372export_symbols_cmds=$lt_export_symbols_cmds_RC
19373
19374# The commands to extract the exported symbol list from a shared archive.
19375extract_expsyms_cmds=$lt_extract_expsyms_cmds
19376
19377# Symbols that should not be listed in the preloaded symbols.
19378exclude_expsyms=$lt_exclude_expsyms_RC
19379
19380# Symbols that must always be exported.
19381include_expsyms=$lt_include_expsyms_RC
19382
19383# ### END LIBTOOL TAG CONFIG: $tagname
19384
19385__EOF__
19386
19387
19388else
19389  # If there is no Makefile yet, we rely on a make rule to execute
19390  # `config.status --recheck' to rerun these tests and create the
19391  # libtool script then.
19392  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19393  if test -f "$ltmain_in"; then
19394    test -f Makefile && make "$ltmain"
19395  fi
19396fi
19397
19398
19399ac_ext=c
19400ac_cpp='$CPP $CPPFLAGS'
19401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19403ac_compiler_gnu=$ac_cv_c_compiler_gnu
19404
19405CC="$lt_save_CC"
19406
19407	;;
19408
19409      *)
19410	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19411echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19412   { (exit 1); exit 1; }; }
19413	;;
19414      esac
19415
19416      # Append the new tag name to the list of available tags.
19417      if test -n "$tagname" ; then
19418      available_tags="$available_tags $tagname"
19419    fi
19420    fi
19421  done
19422  IFS="$lt_save_ifs"
19423
19424  # Now substitute the updated list of available tags.
19425  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19426    mv "${ofile}T" "$ofile"
19427    chmod +x "$ofile"
19428  else
19429    rm -f "${ofile}T"
19430    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19431echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19432   { (exit 1); exit 1; }; }
19433  fi
19434fi
19435
19436
19437
19438# This can be used to rebuild libtool when needed
19439LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19440
19441# Always use our own libtool.
19442LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19443
19444# Prevent multiple expansion
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467cat >>confdefs.h <<\_ACEOF
19468#define _GNU_SOURCE 1
19469_ACEOF
19470
19471
19472
19473{ echo "$as_me:$LINENO: checking for AIX" >&5
19474echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
19475cat >conftest.$ac_ext <<_ACEOF
19476/* confdefs.h.  */
19477_ACEOF
19478cat confdefs.h >>conftest.$ac_ext
19479cat >>conftest.$ac_ext <<_ACEOF
19480/* end confdefs.h.  */
19481#ifdef _AIX
19482  yes
19483#endif
19484
19485_ACEOF
19486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19487  $EGREP "yes" >/dev/null 2>&1; then
19488  { echo "$as_me:$LINENO: result: yes" >&5
19489echo "${ECHO_T}yes" >&6; }
19490cat >>confdefs.h <<\_ACEOF
19491#define _ALL_SOURCE 1
19492_ACEOF
19493
19494else
19495  { echo "$as_me:$LINENO: result: no" >&5
19496echo "${ECHO_T}no" >&6; }
19497fi
19498rm -f conftest*
19499
19500
19501if test "${ac_cv_header_minix_config_h+set}" = set; then
19502  { echo "$as_me:$LINENO: checking for minix/config.h" >&5
19503echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
19504if test "${ac_cv_header_minix_config_h+set}" = set; then
19505  echo $ECHO_N "(cached) $ECHO_C" >&6
19506fi
19507{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
19508echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
19509else
19510  # Is the header compilable?
19511{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
19512echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
19513cat >conftest.$ac_ext <<_ACEOF
19514/* confdefs.h.  */
19515_ACEOF
19516cat confdefs.h >>conftest.$ac_ext
19517cat >>conftest.$ac_ext <<_ACEOF
19518/* end confdefs.h.  */
19519$ac_includes_default
19520#include <minix/config.h>
19521_ACEOF
19522rm -f conftest.$ac_objext
19523if { (ac_try="$ac_compile"
19524case "(($ac_try" in
19525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19526  *) ac_try_echo=$ac_try;;
19527esac
19528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19529  (eval "$ac_compile") 2>conftest.er1
19530  ac_status=$?
19531  grep -v '^ *+' conftest.er1 >conftest.err
19532  rm -f conftest.er1
19533  cat conftest.err >&5
19534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535  (exit $ac_status); } && {
19536	 test -z "$ac_c_werror_flag" ||
19537	 test ! -s conftest.err
19538       } && test -s conftest.$ac_objext; then
19539  ac_header_compiler=yes
19540else
19541  echo "$as_me: failed program was:" >&5
19542sed 's/^/| /' conftest.$ac_ext >&5
19543
19544	ac_header_compiler=no
19545fi
19546
19547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19548{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19549echo "${ECHO_T}$ac_header_compiler" >&6; }
19550
19551# Is the header present?
19552{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
19553echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
19554cat >conftest.$ac_ext <<_ACEOF
19555/* confdefs.h.  */
19556_ACEOF
19557cat confdefs.h >>conftest.$ac_ext
19558cat >>conftest.$ac_ext <<_ACEOF
19559/* end confdefs.h.  */
19560#include <minix/config.h>
19561_ACEOF
19562if { (ac_try="$ac_cpp conftest.$ac_ext"
19563case "(($ac_try" in
19564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565  *) ac_try_echo=$ac_try;;
19566esac
19567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19569  ac_status=$?
19570  grep -v '^ *+' conftest.er1 >conftest.err
19571  rm -f conftest.er1
19572  cat conftest.err >&5
19573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574  (exit $ac_status); } >/dev/null && {
19575	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19576	 test ! -s conftest.err
19577       }; then
19578  ac_header_preproc=yes
19579else
19580  echo "$as_me: failed program was:" >&5
19581sed 's/^/| /' conftest.$ac_ext >&5
19582
19583  ac_header_preproc=no
19584fi
19585
19586rm -f conftest.err conftest.$ac_ext
19587{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19588echo "${ECHO_T}$ac_header_preproc" >&6; }
19589
19590# So?  What about this header?
19591case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19592  yes:no: )
19593    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
19594echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19595    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
19596echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
19597    ac_header_preproc=yes
19598    ;;
19599  no:yes:* )
19600    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
19601echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
19602    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
19603echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
19604    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
19605echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
19606    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
19607echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19608    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
19609echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
19610    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
19611echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
19612
19613    ;;
19614esac
19615{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
19616echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
19617if test "${ac_cv_header_minix_config_h+set}" = set; then
19618  echo $ECHO_N "(cached) $ECHO_C" >&6
19619else
19620  ac_cv_header_minix_config_h=$ac_header_preproc
19621fi
19622{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
19623echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
19624
19625fi
19626if test $ac_cv_header_minix_config_h = yes; then
19627  MINIX=yes
19628else
19629  MINIX=
19630fi
19631
19632
19633if test "$MINIX" = yes; then
19634
19635cat >>confdefs.h <<\_ACEOF
19636#define _POSIX_SOURCE 1
19637_ACEOF
19638
19639
19640cat >>confdefs.h <<\_ACEOF
19641#define _POSIX_1_SOURCE 2
19642_ACEOF
19643
19644
19645cat >>confdefs.h <<\_ACEOF
19646#define _MINIX 1
19647_ACEOF
19648
19649fi
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661  { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
19662echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
19663if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
19664  echo $ECHO_N "(cached) $ECHO_C" >&6
19665else
19666  cat >conftest.$ac_ext <<_ACEOF
19667/* confdefs.h.  */
19668_ACEOF
19669cat confdefs.h >>conftest.$ac_ext
19670cat >>conftest.$ac_ext <<_ACEOF
19671/* end confdefs.h.  */
19672
19673#	  define __EXTENSIONS__ 1
19674	  $ac_includes_default
19675int
19676main ()
19677{
19678
19679  ;
19680  return 0;
19681}
19682_ACEOF
19683rm -f conftest.$ac_objext
19684if { (ac_try="$ac_compile"
19685case "(($ac_try" in
19686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687  *) ac_try_echo=$ac_try;;
19688esac
19689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690  (eval "$ac_compile") 2>conftest.er1
19691  ac_status=$?
19692  grep -v '^ *+' conftest.er1 >conftest.err
19693  rm -f conftest.er1
19694  cat conftest.err >&5
19695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696  (exit $ac_status); } && {
19697	 test -z "$ac_c_werror_flag" ||
19698	 test ! -s conftest.err
19699       } && test -s conftest.$ac_objext; then
19700  ac_cv_safe_to_define___extensions__=yes
19701else
19702  echo "$as_me: failed program was:" >&5
19703sed 's/^/| /' conftest.$ac_ext >&5
19704
19705	ac_cv_safe_to_define___extensions__=no
19706fi
19707
19708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19709fi
19710{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
19711echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
19712  test $ac_cv_safe_to_define___extensions__ = yes &&
19713    cat >>confdefs.h <<\_ACEOF
19714#define __EXTENSIONS__ 1
19715_ACEOF
19716
19717  cat >>confdefs.h <<\_ACEOF
19718#define _POSIX_PTHREAD_SEMANTICS 1
19719_ACEOF
19720
19721  cat >>confdefs.h <<\_ACEOF
19722#define _TANDEM_SOURCE 1
19723_ACEOF
19724
19725
19726ac_ext=c
19727ac_cpp='$CPP $CPPFLAGS'
19728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19730ac_compiler_gnu=$ac_cv_c_compiler_gnu
19731if test -n "$ac_tool_prefix"; then
19732  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19733set dummy ${ac_tool_prefix}gcc; ac_word=$2
19734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19736if test "${ac_cv_prog_CC+set}" = set; then
19737  echo $ECHO_N "(cached) $ECHO_C" >&6
19738else
19739  if test -n "$CC"; then
19740  ac_cv_prog_CC="$CC" # Let the user override the test.
19741else
19742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19743for as_dir in $PATH
19744do
19745  IFS=$as_save_IFS
19746  test -z "$as_dir" && as_dir=.
19747  for ac_exec_ext in '' $ac_executable_extensions; do
19748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19749    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19751    break 2
19752  fi
19753done
19754done
19755IFS=$as_save_IFS
19756
19757fi
19758fi
19759CC=$ac_cv_prog_CC
19760if test -n "$CC"; then
19761  { echo "$as_me:$LINENO: result: $CC" >&5
19762echo "${ECHO_T}$CC" >&6; }
19763else
19764  { echo "$as_me:$LINENO: result: no" >&5
19765echo "${ECHO_T}no" >&6; }
19766fi
19767
19768
19769fi
19770if test -z "$ac_cv_prog_CC"; then
19771  ac_ct_CC=$CC
19772  # Extract the first word of "gcc", so it can be a program name with args.
19773set dummy gcc; ac_word=$2
19774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19776if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19777  echo $ECHO_N "(cached) $ECHO_C" >&6
19778else
19779  if test -n "$ac_ct_CC"; then
19780  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19781else
19782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19783for as_dir in $PATH
19784do
19785  IFS=$as_save_IFS
19786  test -z "$as_dir" && as_dir=.
19787  for ac_exec_ext in '' $ac_executable_extensions; do
19788  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19789    ac_cv_prog_ac_ct_CC="gcc"
19790    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19791    break 2
19792  fi
19793done
19794done
19795IFS=$as_save_IFS
19796
19797fi
19798fi
19799ac_ct_CC=$ac_cv_prog_ac_ct_CC
19800if test -n "$ac_ct_CC"; then
19801  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19802echo "${ECHO_T}$ac_ct_CC" >&6; }
19803else
19804  { echo "$as_me:$LINENO: result: no" >&5
19805echo "${ECHO_T}no" >&6; }
19806fi
19807
19808  if test "x$ac_ct_CC" = x; then
19809    CC=""
19810  else
19811    case $cross_compiling:$ac_tool_warned in
19812yes:)
19813{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19814whose name does not start with the host triplet.  If you think this
19815configuration is useful to you, please write to autoconf@gnu.org." >&5
19816echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19817whose name does not start with the host triplet.  If you think this
19818configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19819ac_tool_warned=yes ;;
19820esac
19821    CC=$ac_ct_CC
19822  fi
19823else
19824  CC="$ac_cv_prog_CC"
19825fi
19826
19827if test -z "$CC"; then
19828          if test -n "$ac_tool_prefix"; then
19829    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19830set dummy ${ac_tool_prefix}cc; ac_word=$2
19831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19833if test "${ac_cv_prog_CC+set}" = set; then
19834  echo $ECHO_N "(cached) $ECHO_C" >&6
19835else
19836  if test -n "$CC"; then
19837  ac_cv_prog_CC="$CC" # Let the user override the test.
19838else
19839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19840for as_dir in $PATH
19841do
19842  IFS=$as_save_IFS
19843  test -z "$as_dir" && as_dir=.
19844  for ac_exec_ext in '' $ac_executable_extensions; do
19845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19846    ac_cv_prog_CC="${ac_tool_prefix}cc"
19847    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19848    break 2
19849  fi
19850done
19851done
19852IFS=$as_save_IFS
19853
19854fi
19855fi
19856CC=$ac_cv_prog_CC
19857if test -n "$CC"; then
19858  { echo "$as_me:$LINENO: result: $CC" >&5
19859echo "${ECHO_T}$CC" >&6; }
19860else
19861  { echo "$as_me:$LINENO: result: no" >&5
19862echo "${ECHO_T}no" >&6; }
19863fi
19864
19865
19866  fi
19867fi
19868if test -z "$CC"; then
19869  # Extract the first word of "cc", so it can be a program name with args.
19870set dummy cc; ac_word=$2
19871{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19873if test "${ac_cv_prog_CC+set}" = set; then
19874  echo $ECHO_N "(cached) $ECHO_C" >&6
19875else
19876  if test -n "$CC"; then
19877  ac_cv_prog_CC="$CC" # Let the user override the test.
19878else
19879  ac_prog_rejected=no
19880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19881for as_dir in $PATH
19882do
19883  IFS=$as_save_IFS
19884  test -z "$as_dir" && as_dir=.
19885  for ac_exec_ext in '' $ac_executable_extensions; do
19886  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19887    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19888       ac_prog_rejected=yes
19889       continue
19890     fi
19891    ac_cv_prog_CC="cc"
19892    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19893    break 2
19894  fi
19895done
19896done
19897IFS=$as_save_IFS
19898
19899if test $ac_prog_rejected = yes; then
19900  # We found a bogon in the path, so make sure we never use it.
19901  set dummy $ac_cv_prog_CC
19902  shift
19903  if test $# != 0; then
19904    # We chose a different compiler from the bogus one.
19905    # However, it has the same basename, so the bogon will be chosen
19906    # first if we set CC to just the basename; use the full file name.
19907    shift
19908    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19909  fi
19910fi
19911fi
19912fi
19913CC=$ac_cv_prog_CC
19914if test -n "$CC"; then
19915  { echo "$as_me:$LINENO: result: $CC" >&5
19916echo "${ECHO_T}$CC" >&6; }
19917else
19918  { echo "$as_me:$LINENO: result: no" >&5
19919echo "${ECHO_T}no" >&6; }
19920fi
19921
19922
19923fi
19924if test -z "$CC"; then
19925  if test -n "$ac_tool_prefix"; then
19926  for ac_prog in cl.exe
19927  do
19928    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19929set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19932if test "${ac_cv_prog_CC+set}" = set; then
19933  echo $ECHO_N "(cached) $ECHO_C" >&6
19934else
19935  if test -n "$CC"; then
19936  ac_cv_prog_CC="$CC" # Let the user override the test.
19937else
19938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19939for as_dir in $PATH
19940do
19941  IFS=$as_save_IFS
19942  test -z "$as_dir" && as_dir=.
19943  for ac_exec_ext in '' $ac_executable_extensions; do
19944  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19945    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19946    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19947    break 2
19948  fi
19949done
19950done
19951IFS=$as_save_IFS
19952
19953fi
19954fi
19955CC=$ac_cv_prog_CC
19956if test -n "$CC"; then
19957  { echo "$as_me:$LINENO: result: $CC" >&5
19958echo "${ECHO_T}$CC" >&6; }
19959else
19960  { echo "$as_me:$LINENO: result: no" >&5
19961echo "${ECHO_T}no" >&6; }
19962fi
19963
19964
19965    test -n "$CC" && break
19966  done
19967fi
19968if test -z "$CC"; then
19969  ac_ct_CC=$CC
19970  for ac_prog in cl.exe
19971do
19972  # Extract the first word of "$ac_prog", so it can be a program name with args.
19973set dummy $ac_prog; ac_word=$2
19974{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19976if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19977  echo $ECHO_N "(cached) $ECHO_C" >&6
19978else
19979  if test -n "$ac_ct_CC"; then
19980  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19981else
19982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19983for as_dir in $PATH
19984do
19985  IFS=$as_save_IFS
19986  test -z "$as_dir" && as_dir=.
19987  for ac_exec_ext in '' $ac_executable_extensions; do
19988  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19989    ac_cv_prog_ac_ct_CC="$ac_prog"
19990    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19991    break 2
19992  fi
19993done
19994done
19995IFS=$as_save_IFS
19996
19997fi
19998fi
19999ac_ct_CC=$ac_cv_prog_ac_ct_CC
20000if test -n "$ac_ct_CC"; then
20001  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20002echo "${ECHO_T}$ac_ct_CC" >&6; }
20003else
20004  { echo "$as_me:$LINENO: result: no" >&5
20005echo "${ECHO_T}no" >&6; }
20006fi
20007
20008
20009  test -n "$ac_ct_CC" && break
20010done
20011
20012  if test "x$ac_ct_CC" = x; then
20013    CC=""
20014  else
20015    case $cross_compiling:$ac_tool_warned in
20016yes:)
20017{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20018whose name does not start with the host triplet.  If you think this
20019configuration is useful to you, please write to autoconf@gnu.org." >&5
20020echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20021whose name does not start with the host triplet.  If you think this
20022configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20023ac_tool_warned=yes ;;
20024esac
20025    CC=$ac_ct_CC
20026  fi
20027fi
20028
20029fi
20030
20031
20032test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20033See \`config.log' for more details." >&5
20034echo "$as_me: error: no acceptable C compiler found in \$PATH
20035See \`config.log' for more details." >&2;}
20036   { (exit 1); exit 1; }; }
20037
20038# Provide some information about the compiler.
20039echo "$as_me:$LINENO: checking for C compiler version" >&5
20040ac_compiler=`set X $ac_compile; echo $2`
20041{ (ac_try="$ac_compiler --version >&5"
20042case "(($ac_try" in
20043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044  *) ac_try_echo=$ac_try;;
20045esac
20046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047  (eval "$ac_compiler --version >&5") 2>&5
20048  ac_status=$?
20049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050  (exit $ac_status); }
20051{ (ac_try="$ac_compiler -v >&5"
20052case "(($ac_try" in
20053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20054  *) ac_try_echo=$ac_try;;
20055esac
20056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20057  (eval "$ac_compiler -v >&5") 2>&5
20058  ac_status=$?
20059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060  (exit $ac_status); }
20061{ (ac_try="$ac_compiler -V >&5"
20062case "(($ac_try" in
20063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20064  *) ac_try_echo=$ac_try;;
20065esac
20066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20067  (eval "$ac_compiler -V >&5") 2>&5
20068  ac_status=$?
20069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070  (exit $ac_status); }
20071
20072{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20073echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20074if test "${ac_cv_c_compiler_gnu+set}" = set; then
20075  echo $ECHO_N "(cached) $ECHO_C" >&6
20076else
20077  cat >conftest.$ac_ext <<_ACEOF
20078/* confdefs.h.  */
20079_ACEOF
20080cat confdefs.h >>conftest.$ac_ext
20081cat >>conftest.$ac_ext <<_ACEOF
20082/* end confdefs.h.  */
20083
20084int
20085main ()
20086{
20087#ifndef __GNUC__
20088       choke me
20089#endif
20090
20091  ;
20092  return 0;
20093}
20094_ACEOF
20095rm -f conftest.$ac_objext
20096if { (ac_try="$ac_compile"
20097case "(($ac_try" in
20098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099  *) ac_try_echo=$ac_try;;
20100esac
20101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20102  (eval "$ac_compile") 2>conftest.er1
20103  ac_status=$?
20104  grep -v '^ *+' conftest.er1 >conftest.err
20105  rm -f conftest.er1
20106  cat conftest.err >&5
20107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108  (exit $ac_status); } && {
20109	 test -z "$ac_c_werror_flag" ||
20110	 test ! -s conftest.err
20111       } && test -s conftest.$ac_objext; then
20112  ac_compiler_gnu=yes
20113else
20114  echo "$as_me: failed program was:" >&5
20115sed 's/^/| /' conftest.$ac_ext >&5
20116
20117	ac_compiler_gnu=no
20118fi
20119
20120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20121ac_cv_c_compiler_gnu=$ac_compiler_gnu
20122
20123fi
20124{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20125echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20126GCC=`test $ac_compiler_gnu = yes && echo yes`
20127ac_test_CFLAGS=${CFLAGS+set}
20128ac_save_CFLAGS=$CFLAGS
20129{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20130echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20131if test "${ac_cv_prog_cc_g+set}" = set; then
20132  echo $ECHO_N "(cached) $ECHO_C" >&6
20133else
20134  ac_save_c_werror_flag=$ac_c_werror_flag
20135   ac_c_werror_flag=yes
20136   ac_cv_prog_cc_g=no
20137   CFLAGS="-g"
20138   cat >conftest.$ac_ext <<_ACEOF
20139/* confdefs.h.  */
20140_ACEOF
20141cat confdefs.h >>conftest.$ac_ext
20142cat >>conftest.$ac_ext <<_ACEOF
20143/* end confdefs.h.  */
20144
20145int
20146main ()
20147{
20148
20149  ;
20150  return 0;
20151}
20152_ACEOF
20153rm -f conftest.$ac_objext
20154if { (ac_try="$ac_compile"
20155case "(($ac_try" in
20156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157  *) ac_try_echo=$ac_try;;
20158esac
20159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20160  (eval "$ac_compile") 2>conftest.er1
20161  ac_status=$?
20162  grep -v '^ *+' conftest.er1 >conftest.err
20163  rm -f conftest.er1
20164  cat conftest.err >&5
20165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166  (exit $ac_status); } && {
20167	 test -z "$ac_c_werror_flag" ||
20168	 test ! -s conftest.err
20169       } && test -s conftest.$ac_objext; then
20170  ac_cv_prog_cc_g=yes
20171else
20172  echo "$as_me: failed program was:" >&5
20173sed 's/^/| /' conftest.$ac_ext >&5
20174
20175	CFLAGS=""
20176      cat >conftest.$ac_ext <<_ACEOF
20177/* confdefs.h.  */
20178_ACEOF
20179cat confdefs.h >>conftest.$ac_ext
20180cat >>conftest.$ac_ext <<_ACEOF
20181/* end confdefs.h.  */
20182
20183int
20184main ()
20185{
20186
20187  ;
20188  return 0;
20189}
20190_ACEOF
20191rm -f conftest.$ac_objext
20192if { (ac_try="$ac_compile"
20193case "(($ac_try" in
20194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195  *) ac_try_echo=$ac_try;;
20196esac
20197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198  (eval "$ac_compile") 2>conftest.er1
20199  ac_status=$?
20200  grep -v '^ *+' conftest.er1 >conftest.err
20201  rm -f conftest.er1
20202  cat conftest.err >&5
20203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204  (exit $ac_status); } && {
20205	 test -z "$ac_c_werror_flag" ||
20206	 test ! -s conftest.err
20207       } && test -s conftest.$ac_objext; then
20208  :
20209else
20210  echo "$as_me: failed program was:" >&5
20211sed 's/^/| /' conftest.$ac_ext >&5
20212
20213	ac_c_werror_flag=$ac_save_c_werror_flag
20214	 CFLAGS="-g"
20215	 cat >conftest.$ac_ext <<_ACEOF
20216/* confdefs.h.  */
20217_ACEOF
20218cat confdefs.h >>conftest.$ac_ext
20219cat >>conftest.$ac_ext <<_ACEOF
20220/* end confdefs.h.  */
20221
20222int
20223main ()
20224{
20225
20226  ;
20227  return 0;
20228}
20229_ACEOF
20230rm -f conftest.$ac_objext
20231if { (ac_try="$ac_compile"
20232case "(($ac_try" in
20233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234  *) ac_try_echo=$ac_try;;
20235esac
20236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237  (eval "$ac_compile") 2>conftest.er1
20238  ac_status=$?
20239  grep -v '^ *+' conftest.er1 >conftest.err
20240  rm -f conftest.er1
20241  cat conftest.err >&5
20242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243  (exit $ac_status); } && {
20244	 test -z "$ac_c_werror_flag" ||
20245	 test ! -s conftest.err
20246       } && test -s conftest.$ac_objext; then
20247  ac_cv_prog_cc_g=yes
20248else
20249  echo "$as_me: failed program was:" >&5
20250sed 's/^/| /' conftest.$ac_ext >&5
20251
20252
20253fi
20254
20255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20256fi
20257
20258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20259fi
20260
20261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20262   ac_c_werror_flag=$ac_save_c_werror_flag
20263fi
20264{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20265echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20266if test "$ac_test_CFLAGS" = set; then
20267  CFLAGS=$ac_save_CFLAGS
20268elif test $ac_cv_prog_cc_g = yes; then
20269  if test "$GCC" = yes; then
20270    CFLAGS="-g -O2"
20271  else
20272    CFLAGS="-g"
20273  fi
20274else
20275  if test "$GCC" = yes; then
20276    CFLAGS="-O2"
20277  else
20278    CFLAGS=
20279  fi
20280fi
20281{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20282echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20283if test "${ac_cv_prog_cc_c89+set}" = set; then
20284  echo $ECHO_N "(cached) $ECHO_C" >&6
20285else
20286  ac_cv_prog_cc_c89=no
20287ac_save_CC=$CC
20288cat >conftest.$ac_ext <<_ACEOF
20289/* confdefs.h.  */
20290_ACEOF
20291cat confdefs.h >>conftest.$ac_ext
20292cat >>conftest.$ac_ext <<_ACEOF
20293/* end confdefs.h.  */
20294#include <stdarg.h>
20295#include <stdio.h>
20296#include <sys/types.h>
20297#include <sys/stat.h>
20298/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20299struct buf { int x; };
20300FILE * (*rcsopen) (struct buf *, struct stat *, int);
20301static char *e (p, i)
20302     char **p;
20303     int i;
20304{
20305  return p[i];
20306}
20307static char *f (char * (*g) (char **, int), char **p, ...)
20308{
20309  char *s;
20310  va_list v;
20311  va_start (v,p);
20312  s = g (p, va_arg (v,int));
20313  va_end (v);
20314  return s;
20315}
20316
20317/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20318   function prototypes and stuff, but not '\xHH' hex character constants.
20319   These don't provoke an error unfortunately, instead are silently treated
20320   as 'x'.  The following induces an error, until -std is added to get
20321   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20322   array size at least.  It's necessary to write '\x00'==0 to get something
20323   that's true only with -std.  */
20324int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20325
20326/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20327   inside strings and character constants.  */
20328#define FOO(x) 'x'
20329int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20330
20331int test (int i, double x);
20332struct s1 {int (*f) (int a);};
20333struct s2 {int (*f) (double a);};
20334int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20335int argc;
20336char **argv;
20337int
20338main ()
20339{
20340return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20341  ;
20342  return 0;
20343}
20344_ACEOF
20345for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20346	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20347do
20348  CC="$ac_save_CC $ac_arg"
20349  rm -f conftest.$ac_objext
20350if { (ac_try="$ac_compile"
20351case "(($ac_try" in
20352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353  *) ac_try_echo=$ac_try;;
20354esac
20355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356  (eval "$ac_compile") 2>conftest.er1
20357  ac_status=$?
20358  grep -v '^ *+' conftest.er1 >conftest.err
20359  rm -f conftest.er1
20360  cat conftest.err >&5
20361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362  (exit $ac_status); } && {
20363	 test -z "$ac_c_werror_flag" ||
20364	 test ! -s conftest.err
20365       } && test -s conftest.$ac_objext; then
20366  ac_cv_prog_cc_c89=$ac_arg
20367else
20368  echo "$as_me: failed program was:" >&5
20369sed 's/^/| /' conftest.$ac_ext >&5
20370
20371
20372fi
20373
20374rm -f core conftest.err conftest.$ac_objext
20375  test "x$ac_cv_prog_cc_c89" != "xno" && break
20376done
20377rm -f conftest.$ac_ext
20378CC=$ac_save_CC
20379
20380fi
20381# AC_CACHE_VAL
20382case "x$ac_cv_prog_cc_c89" in
20383  x)
20384    { echo "$as_me:$LINENO: result: none needed" >&5
20385echo "${ECHO_T}none needed" >&6; } ;;
20386  xno)
20387    { echo "$as_me:$LINENO: result: unsupported" >&5
20388echo "${ECHO_T}unsupported" >&6; } ;;
20389  *)
20390    CC="$CC $ac_cv_prog_cc_c89"
20391    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20392echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20393esac
20394
20395
20396ac_ext=c
20397ac_cpp='$CPP $CPPFLAGS'
20398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20400ac_compiler_gnu=$ac_cv_c_compiler_gnu
20401
20402depcc="$CC"   am_compiler_list=
20403
20404{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20405echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20406if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20407  echo $ECHO_N "(cached) $ECHO_C" >&6
20408else
20409  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20410  # We make a subdir and do the tests there.  Otherwise we can end up
20411  # making bogus files that we don't know about and never remove.  For
20412  # instance it was reported that on HP-UX the gcc test will end up
20413  # making a dummy file named `D' -- because `-MD' means `put the output
20414  # in D'.
20415  mkdir conftest.dir
20416  # Copy depcomp to subdir because otherwise we won't find it if we're
20417  # using a relative directory.
20418  cp "$am_depcomp" conftest.dir
20419  cd conftest.dir
20420  # We will build objects and dependencies in a subdirectory because
20421  # it helps to detect inapplicable dependency modes.  For instance
20422  # both Tru64's cc and ICC support -MD to output dependencies as a
20423  # side effect of compilation, but ICC will put the dependencies in
20424  # the current directory while Tru64 will put them in the object
20425  # directory.
20426  mkdir sub
20427
20428  am_cv_CC_dependencies_compiler_type=none
20429  if test "$am_compiler_list" = ""; then
20430     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20431  fi
20432  for depmode in $am_compiler_list; do
20433    # Setup a source with many dependencies, because some compilers
20434    # like to wrap large dependency lists on column 80 (with \), and
20435    # we should not choose a depcomp mode which is confused by this.
20436    #
20437    # We need to recreate these files for each test, as the compiler may
20438    # overwrite some of them when testing with obscure command lines.
20439    # This happens at least with the AIX C compiler.
20440    : > sub/conftest.c
20441    for i in 1 2 3 4 5 6; do
20442      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20443      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20444      # Solaris 8's {/usr,}/bin/sh.
20445      touch sub/conftst$i.h
20446    done
20447    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20448
20449    case $depmode in
20450    nosideeffect)
20451      # after this tag, mechanisms are not by side-effect, so they'll
20452      # only be used when explicitly requested
20453      if test "x$enable_dependency_tracking" = xyes; then
20454	continue
20455      else
20456	break
20457      fi
20458      ;;
20459    none) break ;;
20460    esac
20461    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20462    # mode.  It turns out that the SunPro C++ compiler does not properly
20463    # handle `-M -o', and we need to detect this.
20464    if depmode=$depmode \
20465       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20466       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20467       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20468         >/dev/null 2>conftest.err &&
20469       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20470       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20471       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20472       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20473      # icc doesn't choke on unknown options, it will just issue warnings
20474      # or remarks (even with -Werror).  So we grep stderr for any message
20475      # that says an option was ignored or not supported.
20476      # When given -MP, icc 7.0 and 7.1 complain thusly:
20477      #   icc: Command line warning: ignoring option '-M'; no argument required
20478      # The diagnosis changed in icc 8.0:
20479      #   icc: Command line remark: option '-MP' not supported
20480      if (grep 'ignoring option' conftest.err ||
20481          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20482        am_cv_CC_dependencies_compiler_type=$depmode
20483        break
20484      fi
20485    fi
20486  done
20487
20488  cd ..
20489  rm -rf conftest.dir
20490else
20491  am_cv_CC_dependencies_compiler_type=none
20492fi
20493
20494fi
20495{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20496echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20497CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20498
20499 if
20500  test "x$enable_dependency_tracking" != xno \
20501  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20502  am__fastdepCC_TRUE=
20503  am__fastdepCC_FALSE='#'
20504else
20505  am__fastdepCC_TRUE='#'
20506  am__fastdepCC_FALSE=
20507fi
20508
20509
20510ac_ext=c
20511ac_cpp='$CPP $CPPFLAGS'
20512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20514ac_compiler_gnu=$ac_cv_c_compiler_gnu
20515if test -n "$ac_tool_prefix"; then
20516  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20517set dummy ${ac_tool_prefix}gcc; ac_word=$2
20518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20520if test "${ac_cv_prog_CC+set}" = set; then
20521  echo $ECHO_N "(cached) $ECHO_C" >&6
20522else
20523  if test -n "$CC"; then
20524  ac_cv_prog_CC="$CC" # Let the user override the test.
20525else
20526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20527for as_dir in $PATH
20528do
20529  IFS=$as_save_IFS
20530  test -z "$as_dir" && as_dir=.
20531  for ac_exec_ext in '' $ac_executable_extensions; do
20532  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20533    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20534    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20535    break 2
20536  fi
20537done
20538done
20539IFS=$as_save_IFS
20540
20541fi
20542fi
20543CC=$ac_cv_prog_CC
20544if test -n "$CC"; then
20545  { echo "$as_me:$LINENO: result: $CC" >&5
20546echo "${ECHO_T}$CC" >&6; }
20547else
20548  { echo "$as_me:$LINENO: result: no" >&5
20549echo "${ECHO_T}no" >&6; }
20550fi
20551
20552
20553fi
20554if test -z "$ac_cv_prog_CC"; then
20555  ac_ct_CC=$CC
20556  # Extract the first word of "gcc", so it can be a program name with args.
20557set dummy gcc; ac_word=$2
20558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20560if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20561  echo $ECHO_N "(cached) $ECHO_C" >&6
20562else
20563  if test -n "$ac_ct_CC"; then
20564  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20565else
20566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20567for as_dir in $PATH
20568do
20569  IFS=$as_save_IFS
20570  test -z "$as_dir" && as_dir=.
20571  for ac_exec_ext in '' $ac_executable_extensions; do
20572  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20573    ac_cv_prog_ac_ct_CC="gcc"
20574    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20575    break 2
20576  fi
20577done
20578done
20579IFS=$as_save_IFS
20580
20581fi
20582fi
20583ac_ct_CC=$ac_cv_prog_ac_ct_CC
20584if test -n "$ac_ct_CC"; then
20585  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20586echo "${ECHO_T}$ac_ct_CC" >&6; }
20587else
20588  { echo "$as_me:$LINENO: result: no" >&5
20589echo "${ECHO_T}no" >&6; }
20590fi
20591
20592  if test "x$ac_ct_CC" = x; then
20593    CC=""
20594  else
20595    case $cross_compiling:$ac_tool_warned in
20596yes:)
20597{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20598whose name does not start with the host triplet.  If you think this
20599configuration is useful to you, please write to autoconf@gnu.org." >&5
20600echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20601whose name does not start with the host triplet.  If you think this
20602configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20603ac_tool_warned=yes ;;
20604esac
20605    CC=$ac_ct_CC
20606  fi
20607else
20608  CC="$ac_cv_prog_CC"
20609fi
20610
20611if test -z "$CC"; then
20612          if test -n "$ac_tool_prefix"; then
20613    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20614set dummy ${ac_tool_prefix}cc; ac_word=$2
20615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20617if test "${ac_cv_prog_CC+set}" = set; then
20618  echo $ECHO_N "(cached) $ECHO_C" >&6
20619else
20620  if test -n "$CC"; then
20621  ac_cv_prog_CC="$CC" # Let the user override the test.
20622else
20623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20624for as_dir in $PATH
20625do
20626  IFS=$as_save_IFS
20627  test -z "$as_dir" && as_dir=.
20628  for ac_exec_ext in '' $ac_executable_extensions; do
20629  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20630    ac_cv_prog_CC="${ac_tool_prefix}cc"
20631    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20632    break 2
20633  fi
20634done
20635done
20636IFS=$as_save_IFS
20637
20638fi
20639fi
20640CC=$ac_cv_prog_CC
20641if test -n "$CC"; then
20642  { echo "$as_me:$LINENO: result: $CC" >&5
20643echo "${ECHO_T}$CC" >&6; }
20644else
20645  { echo "$as_me:$LINENO: result: no" >&5
20646echo "${ECHO_T}no" >&6; }
20647fi
20648
20649
20650  fi
20651fi
20652if test -z "$CC"; then
20653  # Extract the first word of "cc", so it can be a program name with args.
20654set dummy cc; ac_word=$2
20655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20657if test "${ac_cv_prog_CC+set}" = set; then
20658  echo $ECHO_N "(cached) $ECHO_C" >&6
20659else
20660  if test -n "$CC"; then
20661  ac_cv_prog_CC="$CC" # Let the user override the test.
20662else
20663  ac_prog_rejected=no
20664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20665for as_dir in $PATH
20666do
20667  IFS=$as_save_IFS
20668  test -z "$as_dir" && as_dir=.
20669  for ac_exec_ext in '' $ac_executable_extensions; do
20670  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20671    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20672       ac_prog_rejected=yes
20673       continue
20674     fi
20675    ac_cv_prog_CC="cc"
20676    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20677    break 2
20678  fi
20679done
20680done
20681IFS=$as_save_IFS
20682
20683if test $ac_prog_rejected = yes; then
20684  # We found a bogon in the path, so make sure we never use it.
20685  set dummy $ac_cv_prog_CC
20686  shift
20687  if test $# != 0; then
20688    # We chose a different compiler from the bogus one.
20689    # However, it has the same basename, so the bogon will be chosen
20690    # first if we set CC to just the basename; use the full file name.
20691    shift
20692    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20693  fi
20694fi
20695fi
20696fi
20697CC=$ac_cv_prog_CC
20698if test -n "$CC"; then
20699  { echo "$as_me:$LINENO: result: $CC" >&5
20700echo "${ECHO_T}$CC" >&6; }
20701else
20702  { echo "$as_me:$LINENO: result: no" >&5
20703echo "${ECHO_T}no" >&6; }
20704fi
20705
20706
20707fi
20708if test -z "$CC"; then
20709  if test -n "$ac_tool_prefix"; then
20710  for ac_prog in cl.exe
20711  do
20712    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20713set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20714{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20716if test "${ac_cv_prog_CC+set}" = set; then
20717  echo $ECHO_N "(cached) $ECHO_C" >&6
20718else
20719  if test -n "$CC"; then
20720  ac_cv_prog_CC="$CC" # Let the user override the test.
20721else
20722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20723for as_dir in $PATH
20724do
20725  IFS=$as_save_IFS
20726  test -z "$as_dir" && as_dir=.
20727  for ac_exec_ext in '' $ac_executable_extensions; do
20728  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20729    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20730    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20731    break 2
20732  fi
20733done
20734done
20735IFS=$as_save_IFS
20736
20737fi
20738fi
20739CC=$ac_cv_prog_CC
20740if test -n "$CC"; then
20741  { echo "$as_me:$LINENO: result: $CC" >&5
20742echo "${ECHO_T}$CC" >&6; }
20743else
20744  { echo "$as_me:$LINENO: result: no" >&5
20745echo "${ECHO_T}no" >&6; }
20746fi
20747
20748
20749    test -n "$CC" && break
20750  done
20751fi
20752if test -z "$CC"; then
20753  ac_ct_CC=$CC
20754  for ac_prog in cl.exe
20755do
20756  # Extract the first word of "$ac_prog", so it can be a program name with args.
20757set dummy $ac_prog; ac_word=$2
20758{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20760if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20761  echo $ECHO_N "(cached) $ECHO_C" >&6
20762else
20763  if test -n "$ac_ct_CC"; then
20764  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20765else
20766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20767for as_dir in $PATH
20768do
20769  IFS=$as_save_IFS
20770  test -z "$as_dir" && as_dir=.
20771  for ac_exec_ext in '' $ac_executable_extensions; do
20772  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20773    ac_cv_prog_ac_ct_CC="$ac_prog"
20774    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20775    break 2
20776  fi
20777done
20778done
20779IFS=$as_save_IFS
20780
20781fi
20782fi
20783ac_ct_CC=$ac_cv_prog_ac_ct_CC
20784if test -n "$ac_ct_CC"; then
20785  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20786echo "${ECHO_T}$ac_ct_CC" >&6; }
20787else
20788  { echo "$as_me:$LINENO: result: no" >&5
20789echo "${ECHO_T}no" >&6; }
20790fi
20791
20792
20793  test -n "$ac_ct_CC" && break
20794done
20795
20796  if test "x$ac_ct_CC" = x; then
20797    CC=""
20798  else
20799    case $cross_compiling:$ac_tool_warned in
20800yes:)
20801{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20802whose name does not start with the host triplet.  If you think this
20803configuration is useful to you, please write to autoconf@gnu.org." >&5
20804echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20805whose name does not start with the host triplet.  If you think this
20806configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20807ac_tool_warned=yes ;;
20808esac
20809    CC=$ac_ct_CC
20810  fi
20811fi
20812
20813fi
20814
20815
20816test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20817See \`config.log' for more details." >&5
20818echo "$as_me: error: no acceptable C compiler found in \$PATH
20819See \`config.log' for more details." >&2;}
20820   { (exit 1); exit 1; }; }
20821
20822# Provide some information about the compiler.
20823echo "$as_me:$LINENO: checking for C compiler version" >&5
20824ac_compiler=`set X $ac_compile; echo $2`
20825{ (ac_try="$ac_compiler --version >&5"
20826case "(($ac_try" in
20827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20828  *) ac_try_echo=$ac_try;;
20829esac
20830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20831  (eval "$ac_compiler --version >&5") 2>&5
20832  ac_status=$?
20833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834  (exit $ac_status); }
20835{ (ac_try="$ac_compiler -v >&5"
20836case "(($ac_try" in
20837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20838  *) ac_try_echo=$ac_try;;
20839esac
20840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20841  (eval "$ac_compiler -v >&5") 2>&5
20842  ac_status=$?
20843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844  (exit $ac_status); }
20845{ (ac_try="$ac_compiler -V >&5"
20846case "(($ac_try" in
20847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848  *) ac_try_echo=$ac_try;;
20849esac
20850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20851  (eval "$ac_compiler -V >&5") 2>&5
20852  ac_status=$?
20853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854  (exit $ac_status); }
20855
20856{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20857echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20858if test "${ac_cv_c_compiler_gnu+set}" = set; then
20859  echo $ECHO_N "(cached) $ECHO_C" >&6
20860else
20861  cat >conftest.$ac_ext <<_ACEOF
20862/* confdefs.h.  */
20863_ACEOF
20864cat confdefs.h >>conftest.$ac_ext
20865cat >>conftest.$ac_ext <<_ACEOF
20866/* end confdefs.h.  */
20867
20868int
20869main ()
20870{
20871#ifndef __GNUC__
20872       choke me
20873#endif
20874
20875  ;
20876  return 0;
20877}
20878_ACEOF
20879rm -f conftest.$ac_objext
20880if { (ac_try="$ac_compile"
20881case "(($ac_try" in
20882  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883  *) ac_try_echo=$ac_try;;
20884esac
20885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20886  (eval "$ac_compile") 2>conftest.er1
20887  ac_status=$?
20888  grep -v '^ *+' conftest.er1 >conftest.err
20889  rm -f conftest.er1
20890  cat conftest.err >&5
20891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892  (exit $ac_status); } && {
20893	 test -z "$ac_c_werror_flag" ||
20894	 test ! -s conftest.err
20895       } && test -s conftest.$ac_objext; then
20896  ac_compiler_gnu=yes
20897else
20898  echo "$as_me: failed program was:" >&5
20899sed 's/^/| /' conftest.$ac_ext >&5
20900
20901	ac_compiler_gnu=no
20902fi
20903
20904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20905ac_cv_c_compiler_gnu=$ac_compiler_gnu
20906
20907fi
20908{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20909echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20910GCC=`test $ac_compiler_gnu = yes && echo yes`
20911ac_test_CFLAGS=${CFLAGS+set}
20912ac_save_CFLAGS=$CFLAGS
20913{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20914echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20915if test "${ac_cv_prog_cc_g+set}" = set; then
20916  echo $ECHO_N "(cached) $ECHO_C" >&6
20917else
20918  ac_save_c_werror_flag=$ac_c_werror_flag
20919   ac_c_werror_flag=yes
20920   ac_cv_prog_cc_g=no
20921   CFLAGS="-g"
20922   cat >conftest.$ac_ext <<_ACEOF
20923/* confdefs.h.  */
20924_ACEOF
20925cat confdefs.h >>conftest.$ac_ext
20926cat >>conftest.$ac_ext <<_ACEOF
20927/* end confdefs.h.  */
20928
20929int
20930main ()
20931{
20932
20933  ;
20934  return 0;
20935}
20936_ACEOF
20937rm -f conftest.$ac_objext
20938if { (ac_try="$ac_compile"
20939case "(($ac_try" in
20940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941  *) ac_try_echo=$ac_try;;
20942esac
20943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944  (eval "$ac_compile") 2>conftest.er1
20945  ac_status=$?
20946  grep -v '^ *+' conftest.er1 >conftest.err
20947  rm -f conftest.er1
20948  cat conftest.err >&5
20949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950  (exit $ac_status); } && {
20951	 test -z "$ac_c_werror_flag" ||
20952	 test ! -s conftest.err
20953       } && test -s conftest.$ac_objext; then
20954  ac_cv_prog_cc_g=yes
20955else
20956  echo "$as_me: failed program was:" >&5
20957sed 's/^/| /' conftest.$ac_ext >&5
20958
20959	CFLAGS=""
20960      cat >conftest.$ac_ext <<_ACEOF
20961/* confdefs.h.  */
20962_ACEOF
20963cat confdefs.h >>conftest.$ac_ext
20964cat >>conftest.$ac_ext <<_ACEOF
20965/* end confdefs.h.  */
20966
20967int
20968main ()
20969{
20970
20971  ;
20972  return 0;
20973}
20974_ACEOF
20975rm -f conftest.$ac_objext
20976if { (ac_try="$ac_compile"
20977case "(($ac_try" in
20978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979  *) ac_try_echo=$ac_try;;
20980esac
20981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982  (eval "$ac_compile") 2>conftest.er1
20983  ac_status=$?
20984  grep -v '^ *+' conftest.er1 >conftest.err
20985  rm -f conftest.er1
20986  cat conftest.err >&5
20987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988  (exit $ac_status); } && {
20989	 test -z "$ac_c_werror_flag" ||
20990	 test ! -s conftest.err
20991       } && test -s conftest.$ac_objext; then
20992  :
20993else
20994  echo "$as_me: failed program was:" >&5
20995sed 's/^/| /' conftest.$ac_ext >&5
20996
20997	ac_c_werror_flag=$ac_save_c_werror_flag
20998	 CFLAGS="-g"
20999	 cat >conftest.$ac_ext <<_ACEOF
21000/* confdefs.h.  */
21001_ACEOF
21002cat confdefs.h >>conftest.$ac_ext
21003cat >>conftest.$ac_ext <<_ACEOF
21004/* end confdefs.h.  */
21005
21006int
21007main ()
21008{
21009
21010  ;
21011  return 0;
21012}
21013_ACEOF
21014rm -f conftest.$ac_objext
21015if { (ac_try="$ac_compile"
21016case "(($ac_try" in
21017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018  *) ac_try_echo=$ac_try;;
21019esac
21020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021  (eval "$ac_compile") 2>conftest.er1
21022  ac_status=$?
21023  grep -v '^ *+' conftest.er1 >conftest.err
21024  rm -f conftest.er1
21025  cat conftest.err >&5
21026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027  (exit $ac_status); } && {
21028	 test -z "$ac_c_werror_flag" ||
21029	 test ! -s conftest.err
21030       } && test -s conftest.$ac_objext; then
21031  ac_cv_prog_cc_g=yes
21032else
21033  echo "$as_me: failed program was:" >&5
21034sed 's/^/| /' conftest.$ac_ext >&5
21035
21036
21037fi
21038
21039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21040fi
21041
21042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21043fi
21044
21045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21046   ac_c_werror_flag=$ac_save_c_werror_flag
21047fi
21048{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
21049echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
21050if test "$ac_test_CFLAGS" = set; then
21051  CFLAGS=$ac_save_CFLAGS
21052elif test $ac_cv_prog_cc_g = yes; then
21053  if test "$GCC" = yes; then
21054    CFLAGS="-g -O2"
21055  else
21056    CFLAGS="-g"
21057  fi
21058else
21059  if test "$GCC" = yes; then
21060    CFLAGS="-O2"
21061  else
21062    CFLAGS=
21063  fi
21064fi
21065{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
21066echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
21067if test "${ac_cv_prog_cc_c89+set}" = set; then
21068  echo $ECHO_N "(cached) $ECHO_C" >&6
21069else
21070  ac_cv_prog_cc_c89=no
21071ac_save_CC=$CC
21072cat >conftest.$ac_ext <<_ACEOF
21073/* confdefs.h.  */
21074_ACEOF
21075cat confdefs.h >>conftest.$ac_ext
21076cat >>conftest.$ac_ext <<_ACEOF
21077/* end confdefs.h.  */
21078#include <stdarg.h>
21079#include <stdio.h>
21080#include <sys/types.h>
21081#include <sys/stat.h>
21082/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
21083struct buf { int x; };
21084FILE * (*rcsopen) (struct buf *, struct stat *, int);
21085static char *e (p, i)
21086     char **p;
21087     int i;
21088{
21089  return p[i];
21090}
21091static char *f (char * (*g) (char **, int), char **p, ...)
21092{
21093  char *s;
21094  va_list v;
21095  va_start (v,p);
21096  s = g (p, va_arg (v,int));
21097  va_end (v);
21098  return s;
21099}
21100
21101/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
21102   function prototypes and stuff, but not '\xHH' hex character constants.
21103   These don't provoke an error unfortunately, instead are silently treated
21104   as 'x'.  The following induces an error, until -std is added to get
21105   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
21106   array size at least.  It's necessary to write '\x00'==0 to get something
21107   that's true only with -std.  */
21108int osf4_cc_array ['\x00' == 0 ? 1 : -1];
21109
21110/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
21111   inside strings and character constants.  */
21112#define FOO(x) 'x'
21113int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
21114
21115int test (int i, double x);
21116struct s1 {int (*f) (int a);};
21117struct s2 {int (*f) (double a);};
21118int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
21119int argc;
21120char **argv;
21121int
21122main ()
21123{
21124return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
21125  ;
21126  return 0;
21127}
21128_ACEOF
21129for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
21130	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
21131do
21132  CC="$ac_save_CC $ac_arg"
21133  rm -f conftest.$ac_objext
21134if { (ac_try="$ac_compile"
21135case "(($ac_try" in
21136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137  *) ac_try_echo=$ac_try;;
21138esac
21139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140  (eval "$ac_compile") 2>conftest.er1
21141  ac_status=$?
21142  grep -v '^ *+' conftest.er1 >conftest.err
21143  rm -f conftest.er1
21144  cat conftest.err >&5
21145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146  (exit $ac_status); } && {
21147	 test -z "$ac_c_werror_flag" ||
21148	 test ! -s conftest.err
21149       } && test -s conftest.$ac_objext; then
21150  ac_cv_prog_cc_c89=$ac_arg
21151else
21152  echo "$as_me: failed program was:" >&5
21153sed 's/^/| /' conftest.$ac_ext >&5
21154
21155
21156fi
21157
21158rm -f core conftest.err conftest.$ac_objext
21159  test "x$ac_cv_prog_cc_c89" != "xno" && break
21160done
21161rm -f conftest.$ac_ext
21162CC=$ac_save_CC
21163
21164fi
21165# AC_CACHE_VAL
21166case "x$ac_cv_prog_cc_c89" in
21167  x)
21168    { echo "$as_me:$LINENO: result: none needed" >&5
21169echo "${ECHO_T}none needed" >&6; } ;;
21170  xno)
21171    { echo "$as_me:$LINENO: result: unsupported" >&5
21172echo "${ECHO_T}unsupported" >&6; } ;;
21173  *)
21174    CC="$CC $ac_cv_prog_cc_c89"
21175    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
21176echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
21177esac
21178
21179
21180ac_ext=c
21181ac_cpp='$CPP $CPPFLAGS'
21182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21184ac_compiler_gnu=$ac_cv_c_compiler_gnu
21185
21186depcc="$CC"   am_compiler_list=
21187
21188{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
21189echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
21190if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
21191  echo $ECHO_N "(cached) $ECHO_C" >&6
21192else
21193  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
21194  # We make a subdir and do the tests there.  Otherwise we can end up
21195  # making bogus files that we don't know about and never remove.  For
21196  # instance it was reported that on HP-UX the gcc test will end up
21197  # making a dummy file named `D' -- because `-MD' means `put the output
21198  # in D'.
21199  mkdir conftest.dir
21200  # Copy depcomp to subdir because otherwise we won't find it if we're
21201  # using a relative directory.
21202  cp "$am_depcomp" conftest.dir
21203  cd conftest.dir
21204  # We will build objects and dependencies in a subdirectory because
21205  # it helps to detect inapplicable dependency modes.  For instance
21206  # both Tru64's cc and ICC support -MD to output dependencies as a
21207  # side effect of compilation, but ICC will put the dependencies in
21208  # the current directory while Tru64 will put them in the object
21209  # directory.
21210  mkdir sub
21211
21212  am_cv_CC_dependencies_compiler_type=none
21213  if test "$am_compiler_list" = ""; then
21214     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
21215  fi
21216  for depmode in $am_compiler_list; do
21217    # Setup a source with many dependencies, because some compilers
21218    # like to wrap large dependency lists on column 80 (with \), and
21219    # we should not choose a depcomp mode which is confused by this.
21220    #
21221    # We need to recreate these files for each test, as the compiler may
21222    # overwrite some of them when testing with obscure command lines.
21223    # This happens at least with the AIX C compiler.
21224    : > sub/conftest.c
21225    for i in 1 2 3 4 5 6; do
21226      echo '#include "conftst'$i'.h"' >> sub/conftest.c
21227      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
21228      # Solaris 8's {/usr,}/bin/sh.
21229      touch sub/conftst$i.h
21230    done
21231    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
21232
21233    case $depmode in
21234    nosideeffect)
21235      # after this tag, mechanisms are not by side-effect, so they'll
21236      # only be used when explicitly requested
21237      if test "x$enable_dependency_tracking" = xyes; then
21238	continue
21239      else
21240	break
21241      fi
21242      ;;
21243    none) break ;;
21244    esac
21245    # We check with `-c' and `-o' for the sake of the "dashmstdout"
21246    # mode.  It turns out that the SunPro C++ compiler does not properly
21247    # handle `-M -o', and we need to detect this.
21248    if depmode=$depmode \
21249       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
21250       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
21251       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
21252         >/dev/null 2>conftest.err &&
21253       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
21254       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
21255       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
21256       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
21257      # icc doesn't choke on unknown options, it will just issue warnings
21258      # or remarks (even with -Werror).  So we grep stderr for any message
21259      # that says an option was ignored or not supported.
21260      # When given -MP, icc 7.0 and 7.1 complain thusly:
21261      #   icc: Command line warning: ignoring option '-M'; no argument required
21262      # The diagnosis changed in icc 8.0:
21263      #   icc: Command line remark: option '-MP' not supported
21264      if (grep 'ignoring option' conftest.err ||
21265          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
21266        am_cv_CC_dependencies_compiler_type=$depmode
21267        break
21268      fi
21269    fi
21270  done
21271
21272  cd ..
21273  rm -rf conftest.dir
21274else
21275  am_cv_CC_dependencies_compiler_type=none
21276fi
21277
21278fi
21279{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
21280echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
21281CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
21282
21283 if
21284  test "x$enable_dependency_tracking" != xno \
21285  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
21286  am__fastdepCC_TRUE=
21287  am__fastdepCC_FALSE='#'
21288else
21289  am__fastdepCC_TRUE='#'
21290  am__fastdepCC_FALSE=
21291fi
21292
21293
21294
21295am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
21296
21297{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21298echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21299if test "${ac_cv_header_stdc+set}" = set; then
21300  echo $ECHO_N "(cached) $ECHO_C" >&6
21301else
21302  cat >conftest.$ac_ext <<_ACEOF
21303/* confdefs.h.  */
21304_ACEOF
21305cat confdefs.h >>conftest.$ac_ext
21306cat >>conftest.$ac_ext <<_ACEOF
21307/* end confdefs.h.  */
21308#include <stdlib.h>
21309#include <stdarg.h>
21310#include <string.h>
21311#include <float.h>
21312
21313int
21314main ()
21315{
21316
21317  ;
21318  return 0;
21319}
21320_ACEOF
21321rm -f conftest.$ac_objext
21322if { (ac_try="$ac_compile"
21323case "(($ac_try" in
21324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21325  *) ac_try_echo=$ac_try;;
21326esac
21327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21328  (eval "$ac_compile") 2>conftest.er1
21329  ac_status=$?
21330  grep -v '^ *+' conftest.er1 >conftest.err
21331  rm -f conftest.er1
21332  cat conftest.err >&5
21333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334  (exit $ac_status); } && {
21335	 test -z "$ac_c_werror_flag" ||
21336	 test ! -s conftest.err
21337       } && test -s conftest.$ac_objext; then
21338  ac_cv_header_stdc=yes
21339else
21340  echo "$as_me: failed program was:" >&5
21341sed 's/^/| /' conftest.$ac_ext >&5
21342
21343	ac_cv_header_stdc=no
21344fi
21345
21346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21347
21348if test $ac_cv_header_stdc = yes; then
21349  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21350  cat >conftest.$ac_ext <<_ACEOF
21351/* confdefs.h.  */
21352_ACEOF
21353cat confdefs.h >>conftest.$ac_ext
21354cat >>conftest.$ac_ext <<_ACEOF
21355/* end confdefs.h.  */
21356#include <string.h>
21357
21358_ACEOF
21359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21360  $EGREP "memchr" >/dev/null 2>&1; then
21361  :
21362else
21363  ac_cv_header_stdc=no
21364fi
21365rm -f conftest*
21366
21367fi
21368
21369if test $ac_cv_header_stdc = yes; then
21370  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21371  cat >conftest.$ac_ext <<_ACEOF
21372/* confdefs.h.  */
21373_ACEOF
21374cat confdefs.h >>conftest.$ac_ext
21375cat >>conftest.$ac_ext <<_ACEOF
21376/* end confdefs.h.  */
21377#include <stdlib.h>
21378
21379_ACEOF
21380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21381  $EGREP "free" >/dev/null 2>&1; then
21382  :
21383else
21384  ac_cv_header_stdc=no
21385fi
21386rm -f conftest*
21387
21388fi
21389
21390if test $ac_cv_header_stdc = yes; then
21391  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21392  if test "$cross_compiling" = yes; then
21393  :
21394else
21395  cat >conftest.$ac_ext <<_ACEOF
21396/* confdefs.h.  */
21397_ACEOF
21398cat confdefs.h >>conftest.$ac_ext
21399cat >>conftest.$ac_ext <<_ACEOF
21400/* end confdefs.h.  */
21401#include <ctype.h>
21402#include <stdlib.h>
21403#if ((' ' & 0x0FF) == 0x020)
21404# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21405# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21406#else
21407# define ISLOWER(c) \
21408		   (('a' <= (c) && (c) <= 'i') \
21409		     || ('j' <= (c) && (c) <= 'r') \
21410		     || ('s' <= (c) && (c) <= 'z'))
21411# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21412#endif
21413
21414#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21415int
21416main ()
21417{
21418  int i;
21419  for (i = 0; i < 256; i++)
21420    if (XOR (islower (i), ISLOWER (i))
21421	|| toupper (i) != TOUPPER (i))
21422      return 2;
21423  return 0;
21424}
21425_ACEOF
21426rm -f conftest$ac_exeext
21427if { (ac_try="$ac_link"
21428case "(($ac_try" in
21429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430  *) ac_try_echo=$ac_try;;
21431esac
21432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21433  (eval "$ac_link") 2>&5
21434  ac_status=$?
21435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21437  { (case "(($ac_try" in
21438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439  *) ac_try_echo=$ac_try;;
21440esac
21441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442  (eval "$ac_try") 2>&5
21443  ac_status=$?
21444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445  (exit $ac_status); }; }; then
21446  :
21447else
21448  echo "$as_me: program exited with status $ac_status" >&5
21449echo "$as_me: failed program was:" >&5
21450sed 's/^/| /' conftest.$ac_ext >&5
21451
21452( exit $ac_status )
21453ac_cv_header_stdc=no
21454fi
21455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21456fi
21457
21458
21459fi
21460fi
21461{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21462echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21463if test $ac_cv_header_stdc = yes; then
21464
21465cat >>confdefs.h <<\_ACEOF
21466#define STDC_HEADERS 1
21467_ACEOF
21468
21469fi
21470
21471# Find a good install program.  We prefer a C program (faster),
21472# so one script is as good as another.  But avoid the broken or
21473# incompatible versions:
21474# SysV /etc/install, /usr/sbin/install
21475# SunOS /usr/etc/install
21476# IRIX /sbin/install
21477# AIX /bin/install
21478# AmigaOS /C/install, which installs bootblocks on floppy discs
21479# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
21480# AFS /usr/afsws/bin/install, which mishandles nonexistent args
21481# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
21482# OS/2's system install, which has a completely different semantic
21483# ./install, which can be erroneously created by make from ./install.sh.
21484{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
21485echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
21486if test -z "$INSTALL"; then
21487if test "${ac_cv_path_install+set}" = set; then
21488  echo $ECHO_N "(cached) $ECHO_C" >&6
21489else
21490  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21491for as_dir in $PATH
21492do
21493  IFS=$as_save_IFS
21494  test -z "$as_dir" && as_dir=.
21495  # Account for people who put trailing slashes in PATH elements.
21496case $as_dir/ in
21497  ./ | .// | /cC/* | \
21498  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
21499  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
21500  /usr/ucb/* ) ;;
21501  *)
21502    # OSF1 and SCO ODT 3.0 have their own names for install.
21503    # Don't use installbsd from OSF since it installs stuff as root
21504    # by default.
21505    for ac_prog in ginstall scoinst install; do
21506      for ac_exec_ext in '' $ac_executable_extensions; do
21507	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
21508	  if test $ac_prog = install &&
21509	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
21510	    # AIX install.  It has an incompatible calling convention.
21511	    :
21512	  elif test $ac_prog = install &&
21513	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
21514	    # program-specific install script used by HP pwplus--don't use.
21515	    :
21516	  else
21517	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
21518	    break 3
21519	  fi
21520	fi
21521      done
21522    done
21523    ;;
21524esac
21525done
21526IFS=$as_save_IFS
21527
21528
21529fi
21530  if test "${ac_cv_path_install+set}" = set; then
21531    INSTALL=$ac_cv_path_install
21532  else
21533    # As a last resort, use the slow shell script.  Don't cache a
21534    # value for INSTALL within a source directory, because that will
21535    # break other packages using the cache if that directory is
21536    # removed, or if the value is a relative name.
21537    INSTALL=$ac_install_sh
21538  fi
21539fi
21540{ echo "$as_me:$LINENO: result: $INSTALL" >&5
21541echo "${ECHO_T}$INSTALL" >&6; }
21542
21543# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
21544# It thinks the first close brace ends the variable substitution.
21545test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
21546
21547test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
21548
21549test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
21550
21551{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
21552echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
21553set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
21554if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
21555  echo $ECHO_N "(cached) $ECHO_C" >&6
21556else
21557  cat >conftest.make <<\_ACEOF
21558SHELL = /bin/sh
21559all:
21560	@echo '@@@%%%=$(MAKE)=@@@%%%'
21561_ACEOF
21562# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21563case `${MAKE-make} -f conftest.make 2>/dev/null` in
21564  *@@@%%%=?*=@@@%%%*)
21565    eval ac_cv_prog_make_${ac_make}_set=yes;;
21566  *)
21567    eval ac_cv_prog_make_${ac_make}_set=no;;
21568esac
21569rm -f conftest.make
21570fi
21571if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
21572  { echo "$as_me:$LINENO: result: yes" >&5
21573echo "${ECHO_T}yes" >&6; }
21574  SET_MAKE=
21575else
21576  { echo "$as_me:$LINENO: result: no" >&5
21577echo "${ECHO_T}no" >&6; }
21578  SET_MAKE="MAKE=${MAKE-make}"
21579fi
21580
21581
21582if test -z "$ENV_CFLAGS"; then
21583	CFLAGS=""
21584fi
21585
21586RELDATE=`date +'%a %b %e %Y'`
21587
21588
21589# Check whether --enable-docs was given.
21590if test "${enable_docs+set}" = set; then
21591  enableval=$enable_docs; build_docs="${enableval}"
21592else
21593  build_docs=no
21594fi
21595
21596
21597 if test x$build_docs = xyes; then
21598  BUILD_DOCS_TRUE=
21599  BUILD_DOCS_FALSE='#'
21600else
21601  BUILD_DOCS_TRUE='#'
21602  BUILD_DOCS_FALSE=
21603fi
21604
21605
21606##################################################
21607# Check for gtk-doc.
21608##################################################
21609
21610
21611# Check whether --with-html-dir was given.
21612if test "${with_html_dir+set}" = set; then
21613  withval=$with_html_dir;
21614fi
21615
21616
21617if test "x$with_html_dir" = "x" ; then
21618  HTML_DIR='${datadir}/gtk-doc/html'
21619else
21620  HTML_DIR=$with_html_dir
21621fi
21622
21623
21624
21625gtk_doc_min_version=1.0
21626{ echo "$as_me:$LINENO: checking gtk-doc version >= $gtk_doc_min_version" >&5
21627echo $ECHO_N "checking gtk-doc version >= $gtk_doc_min_version... $ECHO_C" >&6; }
21628if pkg-config --atleast-version=$gtk_doc_min_version gtk-doc; then
21629  { echo "$as_me:$LINENO: result: yes" >&5
21630echo "${ECHO_T}yes" >&6; }
21631  GTKDOC=true
21632else
21633  { echo "$as_me:$LINENO: result: no" >&5
21634echo "${ECHO_T}no" >&6; }
21635  GTKDOC=false
21636fi
21637
21638# Check whether --enable-gtk-doc was given.
21639if test "${enable_gtk_doc+set}" = set; then
21640  enableval=$enable_gtk_doc; enable_gtk_doc="$enableval"
21641else
21642  enable_gtk_doc=auto
21643fi
21644
21645
21646if test x$enable_gtk_doc = xauto -o x$enable_gtk_doc = xyes ; then
21647  if test x$GTKDOC = xtrue ; then
21648    enable_gtk_doc=yes
21649  else
21650    enable_gtk_doc=no
21651  fi
21652fi
21653
21654 if test x$enable_gtk_doc = xyes; then
21655  ENABLE_GTK_DOC_TRUE=
21656  ENABLE_GTK_DOC_FALSE='#'
21657else
21658  ENABLE_GTK_DOC_TRUE='#'
21659  ENABLE_GTK_DOC_FALSE=
21660fi
21661
21662
21663
21664
21665
21666
21667
21668for ac_func in usleep setsid setenv putenv getlogin_r
21669do
21670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21671{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21673if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21674  echo $ECHO_N "(cached) $ECHO_C" >&6
21675else
21676  cat >conftest.$ac_ext <<_ACEOF
21677/* confdefs.h.  */
21678_ACEOF
21679cat confdefs.h >>conftest.$ac_ext
21680cat >>conftest.$ac_ext <<_ACEOF
21681/* end confdefs.h.  */
21682/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21683   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21684#define $ac_func innocuous_$ac_func
21685
21686/* System header to define __stub macros and hopefully few prototypes,
21687    which can conflict with char $ac_func (); below.
21688    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21689    <limits.h> exists even on freestanding compilers.  */
21690
21691#ifdef __STDC__
21692# include <limits.h>
21693#else
21694# include <assert.h>
21695#endif
21696
21697#undef $ac_func
21698
21699/* Override any GCC internal prototype to avoid an error.
21700   Use char because int might match the return type of a GCC
21701   builtin and then its argument prototype would still apply.  */
21702#ifdef __cplusplus
21703extern "C"
21704#endif
21705char $ac_func ();
21706/* The GNU C library defines this for functions which it implements
21707    to always fail with ENOSYS.  Some functions are actually named
21708    something starting with __ and the normal name is an alias.  */
21709#if defined __stub_$ac_func || defined __stub___$ac_func
21710choke me
21711#endif
21712
21713int
21714main ()
21715{
21716return $ac_func ();
21717  ;
21718  return 0;
21719}
21720_ACEOF
21721rm -f conftest.$ac_objext conftest$ac_exeext
21722if { (ac_try="$ac_link"
21723case "(($ac_try" in
21724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21725  *) ac_try_echo=$ac_try;;
21726esac
21727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21728  (eval "$ac_link") 2>conftest.er1
21729  ac_status=$?
21730  grep -v '^ *+' conftest.er1 >conftest.err
21731  rm -f conftest.er1
21732  cat conftest.err >&5
21733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734  (exit $ac_status); } && {
21735	 test -z "$ac_c_werror_flag" ||
21736	 test ! -s conftest.err
21737       } && test -s conftest$ac_exeext &&
21738       $as_test_x conftest$ac_exeext; then
21739  eval "$as_ac_var=yes"
21740else
21741  echo "$as_me: failed program was:" >&5
21742sed 's/^/| /' conftest.$ac_ext >&5
21743
21744	eval "$as_ac_var=no"
21745fi
21746
21747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21748      conftest$ac_exeext conftest.$ac_ext
21749fi
21750ac_res=`eval echo '${'$as_ac_var'}'`
21751	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21752echo "${ECHO_T}$ac_res" >&6; }
21753if test `eval echo '${'$as_ac_var'}'` = yes; then
21754  cat >>confdefs.h <<_ACEOF
21755#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21756_ACEOF
21757
21758fi
21759done
21760
21761{ echo "$as_me:$LINENO: checking for nanoseconds field of struct stat.st_mtim" >&5
21762echo $ECHO_N "checking for nanoseconds field of struct stat.st_mtim... $ECHO_C" >&6; }
21763if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
21764  echo $ECHO_N "(cached) $ECHO_C" >&6
21765else
21766  ac_save_CPPFLAGS="$CPPFLAGS"
21767    ac_cv_struct_st_mtim_nsec=no
21768    # tv_nsec -- the usual case
21769    # _tv_nsec -- Solaris 2.6, if
21770    #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
21771    #    && !defined __EXTENSIONS__)
21772    # st__tim.tv_nsec -- UnixWare 2.1.2
21773    for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
21774      CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
21775      cat >conftest.$ac_ext <<_ACEOF
21776/* confdefs.h.  */
21777_ACEOF
21778cat confdefs.h >>conftest.$ac_ext
21779cat >>conftest.$ac_ext <<_ACEOF
21780/* end confdefs.h.  */
21781#include <sys/types.h>
21782#include <sys/stat.h>
21783int
21784main ()
21785{
21786struct stat s; s.st_mtim.ST_MTIM_NSEC;
21787  ;
21788  return 0;
21789}
21790_ACEOF
21791rm -f conftest.$ac_objext
21792if { (ac_try="$ac_compile"
21793case "(($ac_try" in
21794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795  *) ac_try_echo=$ac_try;;
21796esac
21797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21798  (eval "$ac_compile") 2>conftest.er1
21799  ac_status=$?
21800  grep -v '^ *+' conftest.er1 >conftest.err
21801  rm -f conftest.er1
21802  cat conftest.err >&5
21803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804  (exit $ac_status); } && {
21805	 test -z "$ac_c_werror_flag" ||
21806	 test ! -s conftest.err
21807       } && test -s conftest.$ac_objext; then
21808  ac_cv_struct_st_mtim_nsec=$ac_val; break
21809else
21810  echo "$as_me: failed program was:" >&5
21811sed 's/^/| /' conftest.$ac_ext >&5
21812
21813
21814fi
21815
21816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21817    done
21818    CPPFLAGS="$ac_save_CPPFLAGS"
21819fi
21820{ echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
21821echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6; }
21822
21823  if test $ac_cv_struct_st_mtim_nsec != no; then
21824
21825cat >>confdefs.h <<_ACEOF
21826#define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
21827_ACEOF
21828
21829  fi
21830
21831
21832
21833
21834# Check whether --enable-libgamin was given.
21835if test "${enable_libgamin+set}" = set; then
21836  enableval=$enable_libgamin; enable_libgamin="$enableval"
21837else
21838  enable_libgamin=yes
21839fi
21840
21841 if test x$enable_libgamin = xyes; then
21842  BUILD_LIBGAMIN_TRUE=
21843  BUILD_LIBGAMIN_FALSE='#'
21844else
21845  BUILD_LIBGAMIN_TRUE='#'
21846  BUILD_LIBGAMIN_FALSE=
21847fi
21848
21849
21850
21851# Check whether --enable-server was given.
21852if test "${enable_server+set}" = set; then
21853  enableval=$enable_server; enable_server="$enableval"
21854else
21855  enable_server=yes
21856fi
21857
21858
21859if test x$enable_server = xyes ; then
21860
21861
21862if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21863	if test -n "$ac_tool_prefix"; then
21864  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21865set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21868if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21869  echo $ECHO_N "(cached) $ECHO_C" >&6
21870else
21871  case $PKG_CONFIG in
21872  [\\/]* | ?:[\\/]*)
21873  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21874  ;;
21875  *)
21876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21877for as_dir in $PATH
21878do
21879  IFS=$as_save_IFS
21880  test -z "$as_dir" && as_dir=.
21881  for ac_exec_ext in '' $ac_executable_extensions; do
21882  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21883    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21884    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21885    break 2
21886  fi
21887done
21888done
21889IFS=$as_save_IFS
21890
21891  ;;
21892esac
21893fi
21894PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21895if test -n "$PKG_CONFIG"; then
21896  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21897echo "${ECHO_T}$PKG_CONFIG" >&6; }
21898else
21899  { echo "$as_me:$LINENO: result: no" >&5
21900echo "${ECHO_T}no" >&6; }
21901fi
21902
21903
21904fi
21905if test -z "$ac_cv_path_PKG_CONFIG"; then
21906  ac_pt_PKG_CONFIG=$PKG_CONFIG
21907  # Extract the first word of "pkg-config", so it can be a program name with args.
21908set dummy pkg-config; ac_word=$2
21909{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21911if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21912  echo $ECHO_N "(cached) $ECHO_C" >&6
21913else
21914  case $ac_pt_PKG_CONFIG in
21915  [\\/]* | ?:[\\/]*)
21916  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21917  ;;
21918  *)
21919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21920for as_dir in $PATH
21921do
21922  IFS=$as_save_IFS
21923  test -z "$as_dir" && as_dir=.
21924  for ac_exec_ext in '' $ac_executable_extensions; do
21925  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21926    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21928    break 2
21929  fi
21930done
21931done
21932IFS=$as_save_IFS
21933
21934  ;;
21935esac
21936fi
21937ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21938if test -n "$ac_pt_PKG_CONFIG"; then
21939  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21940echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21941else
21942  { echo "$as_me:$LINENO: result: no" >&5
21943echo "${ECHO_T}no" >&6; }
21944fi
21945
21946  if test "x$ac_pt_PKG_CONFIG" = x; then
21947    PKG_CONFIG=""
21948  else
21949    case $cross_compiling:$ac_tool_warned in
21950yes:)
21951{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21952whose name does not start with the host triplet.  If you think this
21953configuration is useful to you, please write to autoconf@gnu.org." >&5
21954echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21955whose name does not start with the host triplet.  If you think this
21956configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21957ac_tool_warned=yes ;;
21958esac
21959    PKG_CONFIG=$ac_pt_PKG_CONFIG
21960  fi
21961else
21962  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21963fi
21964
21965fi
21966if test -n "$PKG_CONFIG"; then
21967	_pkg_min_version=0.9.0
21968	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21969echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21970	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21971		{ echo "$as_me:$LINENO: result: yes" >&5
21972echo "${ECHO_T}yes" >&6; }
21973	else
21974		{ echo "$as_me:$LINENO: result: no" >&5
21975echo "${ECHO_T}no" >&6; }
21976		PKG_CONFIG=""
21977	fi
21978
21979fi
21980
21981pkg_failed=no
21982{ echo "$as_me:$LINENO: checking for DAEMON" >&5
21983echo $ECHO_N "checking for DAEMON... $ECHO_C" >&6; }
21984
21985if test -n "$DAEMON_CFLAGS"; then
21986    pkg_cv_DAEMON_CFLAGS="$DAEMON_CFLAGS"
21987 elif test -n "$PKG_CONFIG"; then
21988    if test -n "$PKG_CONFIG" && \
21989    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
21990  ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
21991  ac_status=$?
21992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993  (exit $ac_status); }; then
21994  pkg_cv_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
21995else
21996  pkg_failed=yes
21997fi
21998 else
21999    pkg_failed=untried
22000fi
22001if test -n "$DAEMON_LIBS"; then
22002    pkg_cv_DAEMON_LIBS="$DAEMON_LIBS"
22003 elif test -n "$PKG_CONFIG"; then
22004    if test -n "$PKG_CONFIG" && \
22005    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
22006  ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
22007  ac_status=$?
22008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009  (exit $ac_status); }; then
22010  pkg_cv_DAEMON_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
22011else
22012  pkg_failed=yes
22013fi
22014 else
22015    pkg_failed=untried
22016fi
22017
22018
22019
22020if test $pkg_failed = yes; then
22021
22022if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22023        _pkg_short_errors_supported=yes
22024else
22025        _pkg_short_errors_supported=no
22026fi
22027        if test $_pkg_short_errors_supported = yes; then
22028	        DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
22029        else
22030	        DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
22031        fi
22032	# Put the nasty error message in config.log where it belongs
22033	echo "$DAEMON_PKG_ERRORS" >&5
22034
22035	{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
22036
22037$DAEMON_PKG_ERRORS
22038
22039Consider adjusting the PKG_CONFIG_PATH environment variable if you
22040installed software in a non-standard prefix.
22041
22042Alternatively, you may set the environment variables DAEMON_CFLAGS
22043and DAEMON_LIBS to avoid the need to call pkg-config.
22044See the pkg-config man page for more details.
22045" >&5
22046echo "$as_me: error: Package requirements (glib-2.0) were not met:
22047
22048$DAEMON_PKG_ERRORS
22049
22050Consider adjusting the PKG_CONFIG_PATH environment variable if you
22051installed software in a non-standard prefix.
22052
22053Alternatively, you may set the environment variables DAEMON_CFLAGS
22054and DAEMON_LIBS to avoid the need to call pkg-config.
22055See the pkg-config man page for more details.
22056" >&2;}
22057   { (exit 1); exit 1; }; }
22058elif test $pkg_failed = untried; then
22059	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22060is in your PATH or set the PKG_CONFIG environment variable to the full
22061path to pkg-config.
22062
22063Alternatively, you may set the environment variables DAEMON_CFLAGS
22064and DAEMON_LIBS to avoid the need to call pkg-config.
22065See the pkg-config man page for more details.
22066
22067To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22068See \`config.log' for more details." >&5
22069echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22070is in your PATH or set the PKG_CONFIG environment variable to the full
22071path to pkg-config.
22072
22073Alternatively, you may set the environment variables DAEMON_CFLAGS
22074and DAEMON_LIBS to avoid the need to call pkg-config.
22075See the pkg-config man page for more details.
22076
22077To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22078See \`config.log' for more details." >&2;}
22079   { (exit 1); exit 1; }; }
22080else
22081	DAEMON_CFLAGS=$pkg_cv_DAEMON_CFLAGS
22082	DAEMON_LIBS=$pkg_cv_DAEMON_LIBS
22083        { echo "$as_me:$LINENO: result: yes" >&5
22084echo "${ECHO_T}yes" >&6; }
22085	:
22086fi
22087
22088
22089fi
22090 if test x$enable_server = xyes; then
22091  BUILD_SERVER_TRUE=
22092  BUILD_SERVER_FALSE='#'
22093else
22094  BUILD_SERVER_TRUE='#'
22095  BUILD_SERVER_FALSE=
22096fi
22097
22098
22099
22100enable_tests="no"
22101if test x$enable_server = xyes && test x$enable_libgamin = xyes ; then
22102
22103pkg_failed=no
22104{ echo "$as_me:$LINENO: checking for TEST" >&5
22105echo $ECHO_N "checking for TEST... $ECHO_C" >&6; }
22106
22107if test -n "$TEST_CFLAGS"; then
22108    pkg_cv_TEST_CFLAGS="$TEST_CFLAGS"
22109 elif test -n "$PKG_CONFIG"; then
22110    if test -n "$PKG_CONFIG" && \
22111    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
22112  ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
22113  ac_status=$?
22114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115  (exit $ac_status); }; then
22116  pkg_cv_TEST_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
22117else
22118  pkg_failed=yes
22119fi
22120 else
22121    pkg_failed=untried
22122fi
22123if test -n "$TEST_LIBS"; then
22124    pkg_cv_TEST_LIBS="$TEST_LIBS"
22125 elif test -n "$PKG_CONFIG"; then
22126    if test -n "$PKG_CONFIG" && \
22127    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
22128  ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
22129  ac_status=$?
22130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131  (exit $ac_status); }; then
22132  pkg_cv_TEST_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
22133else
22134  pkg_failed=yes
22135fi
22136 else
22137    pkg_failed=untried
22138fi
22139
22140
22141
22142if test $pkg_failed = yes; then
22143
22144if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22145        _pkg_short_errors_supported=yes
22146else
22147        _pkg_short_errors_supported=no
22148fi
22149        if test $_pkg_short_errors_supported = yes; then
22150	        TEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
22151        else
22152	        TEST_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
22153        fi
22154	# Put the nasty error message in config.log where it belongs
22155	echo "$TEST_PKG_ERRORS" >&5
22156
22157	{ { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
22158
22159$TEST_PKG_ERRORS
22160
22161Consider adjusting the PKG_CONFIG_PATH environment variable if you
22162installed software in a non-standard prefix.
22163
22164Alternatively, you may set the environment variables TEST_CFLAGS
22165and TEST_LIBS to avoid the need to call pkg-config.
22166See the pkg-config man page for more details.
22167" >&5
22168echo "$as_me: error: Package requirements (glib-2.0) were not met:
22169
22170$TEST_PKG_ERRORS
22171
22172Consider adjusting the PKG_CONFIG_PATH environment variable if you
22173installed software in a non-standard prefix.
22174
22175Alternatively, you may set the environment variables TEST_CFLAGS
22176and TEST_LIBS to avoid the need to call pkg-config.
22177See the pkg-config man page for more details.
22178" >&2;}
22179   { (exit 1); exit 1; }; }
22180elif test $pkg_failed = untried; then
22181	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
22182is in your PATH or set the PKG_CONFIG environment variable to the full
22183path to pkg-config.
22184
22185Alternatively, you may set the environment variables TEST_CFLAGS
22186and TEST_LIBS to avoid the need to call pkg-config.
22187See the pkg-config man page for more details.
22188
22189To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22190See \`config.log' for more details." >&5
22191echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
22192is in your PATH or set the PKG_CONFIG environment variable to the full
22193path to pkg-config.
22194
22195Alternatively, you may set the environment variables TEST_CFLAGS
22196and TEST_LIBS to avoid the need to call pkg-config.
22197See the pkg-config man page for more details.
22198
22199To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22200See \`config.log' for more details." >&2;}
22201   { (exit 1); exit 1; }; }
22202else
22203	TEST_CFLAGS=$pkg_cv_TEST_CFLAGS
22204	TEST_LIBS=$pkg_cv_TEST_LIBS
22205        { echo "$as_me:$LINENO: result: yes" >&5
22206echo "${ECHO_T}yes" >&6; }
22207	:
22208fi
22209
22210
22211	enable_tests="yes"
22212
22213fi
22214 if test x$enable_tests = xyes; then
22215  BUILD_TESTS_TRUE=
22216  BUILD_TESTS_FALSE='#'
22217else
22218  BUILD_TESTS_TRUE='#'
22219  BUILD_TESTS_FALSE=
22220fi
22221
22222
22223
22224# Check whether --enable-more-warnings was given.
22225if test "${enable_more_warnings+set}" = set; then
22226  enableval=$enable_more_warnings; set_more_warnings="${enableval}"
22227else
22228
22229#		if test -d $srcdir/CVS; then
22230			warnings_default=yes
22231#		else
22232#			warnings_default=no
22233#		fi
22234
22235fi
22236
22237
22238# Check whether --enable-debug was given.
22239if test "${enable_debug+set}" = set; then
22240  enableval=$enable_debug; debug=$enableval
22241else
22242  debug=yes
22243fi
22244
22245
22246if test x$debug = xyes ; then
22247
22248cat >>confdefs.h <<\_ACEOF
22249#define GAMIN_DEBUG
22250_ACEOF
22251
22252fi
22253
22254 if test x$debug = xyes; then
22255  GAMIN_DEBUG_TRUE=
22256  GAMIN_DEBUG_FALSE='#'
22257else
22258  GAMIN_DEBUG_TRUE='#'
22259  GAMIN_DEBUG_FALSE=
22260fi
22261
22262
22263# Check whether --enable-debug_api was given.
22264if test "${enable_debug_api+set}" = set; then
22265  enableval=$enable_debug_api; debug_api="${enableval}"
22266fi
22267
22268
22269if test "$debug_api" = "" -a -d $srcdir/CVS; then
22270	echo "Building from CVS, enabling debug api"
22271	debug_api=yes
22272fi
22273
22274if test x$debug_api = xyes ; then
22275
22276cat >>confdefs.h <<\_ACEOF
22277#define GAMIN_DEBUG_API
22278_ACEOF
22279
22280fi
22281
22282#AM_CONDITIONAL(HAVE_LINUX, test x$target_os = xlinux-gnu)
22283if test x$target_os = xlinux-gnu; then
22284
22285cat >>confdefs.h <<\_ACEOF
22286#define HAVE_LINUX
22287_ACEOF
22288
22289fi
22290
22291# Check whether --enable-kernel was given.
22292if test "${enable_kernel+set}" = set; then
22293  enableval=$enable_kernel; os=${enableval}
22294else
22295  os=${target_os}
22296fi
22297
22298
22299if test x$os = xyes; then
22300	os=${target_os}
22301elif test x$os = xno; then
22302	os="BogusOS"
22303elif test x$os != x${target_os}; then
22304	{ { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-kernel" >&5
22305echo "$as_me: error: bad value ${enableval} for --disable-kernel" >&2;}
22306   { (exit 1); exit 1; }; }
22307fi
22308
22309
22310cat >>confdefs.h <<\_ACEOF
22311#define ENABLE_POLLING 1
22312_ACEOF
22313
22314backends="polling"
22315
22316# Check whether --enable-inotify was given.
22317if test "${enable_inotify+set}" = set; then
22318  enableval=$enable_inotify; inotify="${enableval}"
22319else
22320  inotify=auto
22321fi
22322
22323
22324if test x$inotify = xyes; then
22325	inotify=true
22326elif test x$inotify = xno; then
22327	inotify=false
22328fi
22329
22330if test x$inotify = xtrue -o x$inotify = xauto; then
22331
22332for ac_header in sys/inotify.h
22333do
22334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22336  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22338if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22339  echo $ECHO_N "(cached) $ECHO_C" >&6
22340fi
22341ac_res=`eval echo '${'$as_ac_Header'}'`
22342	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22343echo "${ECHO_T}$ac_res" >&6; }
22344else
22345  # Is the header compilable?
22346{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22347echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22348cat >conftest.$ac_ext <<_ACEOF
22349/* confdefs.h.  */
22350_ACEOF
22351cat confdefs.h >>conftest.$ac_ext
22352cat >>conftest.$ac_ext <<_ACEOF
22353/* end confdefs.h.  */
22354$ac_includes_default
22355#include <$ac_header>
22356_ACEOF
22357rm -f conftest.$ac_objext
22358if { (ac_try="$ac_compile"
22359case "(($ac_try" in
22360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22361  *) ac_try_echo=$ac_try;;
22362esac
22363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22364  (eval "$ac_compile") 2>conftest.er1
22365  ac_status=$?
22366  grep -v '^ *+' conftest.er1 >conftest.err
22367  rm -f conftest.er1
22368  cat conftest.err >&5
22369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370  (exit $ac_status); } && {
22371	 test -z "$ac_c_werror_flag" ||
22372	 test ! -s conftest.err
22373       } && test -s conftest.$ac_objext; then
22374  ac_header_compiler=yes
22375else
22376  echo "$as_me: failed program was:" >&5
22377sed 's/^/| /' conftest.$ac_ext >&5
22378
22379	ac_header_compiler=no
22380fi
22381
22382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22383{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22384echo "${ECHO_T}$ac_header_compiler" >&6; }
22385
22386# Is the header present?
22387{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22388echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22389cat >conftest.$ac_ext <<_ACEOF
22390/* confdefs.h.  */
22391_ACEOF
22392cat confdefs.h >>conftest.$ac_ext
22393cat >>conftest.$ac_ext <<_ACEOF
22394/* end confdefs.h.  */
22395#include <$ac_header>
22396_ACEOF
22397if { (ac_try="$ac_cpp conftest.$ac_ext"
22398case "(($ac_try" in
22399  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400  *) ac_try_echo=$ac_try;;
22401esac
22402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22404  ac_status=$?
22405  grep -v '^ *+' conftest.er1 >conftest.err
22406  rm -f conftest.er1
22407  cat conftest.err >&5
22408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409  (exit $ac_status); } >/dev/null && {
22410	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22411	 test ! -s conftest.err
22412       }; then
22413  ac_header_preproc=yes
22414else
22415  echo "$as_me: failed program was:" >&5
22416sed 's/^/| /' conftest.$ac_ext >&5
22417
22418  ac_header_preproc=no
22419fi
22420
22421rm -f conftest.err conftest.$ac_ext
22422{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22423echo "${ECHO_T}$ac_header_preproc" >&6; }
22424
22425# So?  What about this header?
22426case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22427  yes:no: )
22428    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22429echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22430    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22431echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22432    ac_header_preproc=yes
22433    ;;
22434  no:yes:* )
22435    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22436echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22437    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22438echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22439    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22440echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22441    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22442echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22443    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22444echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22445    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22446echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22447
22448    ;;
22449esac
22450{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22451echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22452if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22453  echo $ECHO_N "(cached) $ECHO_C" >&6
22454else
22455  eval "$as_ac_Header=\$ac_header_preproc"
22456fi
22457ac_res=`eval echo '${'$as_ac_Header'}'`
22458	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22459echo "${ECHO_T}$ac_res" >&6; }
22460
22461fi
22462if test `eval echo '${'$as_ac_Header'}'` = yes; then
22463  cat >>confdefs.h <<_ACEOF
22464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22465_ACEOF
22466
22467fi
22468
22469done
22470
22471	if test x"$ac_cv_header_sys_inotify_h" = x"no" -a x"$inotify" = xtrue; then
22472		{ { echo "$as_me:$LINENO: error: sys/inotify.h requested but not available" >&5
22473echo "$as_me: error: sys/inotify.h requested but not available" >&2;}
22474   { (exit 1); exit 1; }; }
22475	fi
22476	if test x"$ac_cv_header_sys_inotify_h" = xyes; then
22477
22478cat >>confdefs.h <<\_ACEOF
22479#define ENABLE_INOTIFY 1
22480_ACEOF
22481
22482		backends="${backends}, inotify"
22483		inotify=true
22484	else
22485		inotify=false
22486	fi
22487fi
22488
22489 if test x$inotify = xtrue; then
22490  ENABLE_INOTIFY_TRUE=
22491  ENABLE_INOTIFY_FALSE='#'
22492else
22493  ENABLE_INOTIFY_TRUE='#'
22494  ENABLE_INOTIFY_FALSE=
22495fi
22496
22497
22498if test x$os = xlinux-gnu; then
22499	# Check whether --enable-dnotify was given.
22500if test "${enable_dnotify+set}" = set; then
22501  enableval=$enable_dnotify; dnotify="${enableval}"
22502else
22503  dnotify=true
22504fi
22505
22506
22507	if test x$dnotify = xyes; then
22508		dnotify=true
22509	elif test x$dnotify = xno; then
22510		dnotify=false
22511	elif test x$dnotify != xtrue; then
22512		{ { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-dnotify" >&5
22513echo "$as_me: error: bad value ${enableval} for --disable-dnotify" >&2;}
22514   { (exit 1); exit 1; }; }
22515	fi
22516fi
22517
22518if test x$dnotify = xfalse; then
22519	if test x$inotify = xtrue; then
22520		echo "When using inotify, gamin sometimes needs dnotify as a fallback"
22521		echo "so dnotify support will be enabled"
22522		dnotify=true
22523	fi
22524fi
22525
22526 if test x$dnotify = xtrue; then
22527  ENABLE_DNOTIFY_TRUE=
22528  ENABLE_DNOTIFY_FALSE='#'
22529else
22530  ENABLE_DNOTIFY_TRUE='#'
22531  ENABLE_DNOTIFY_FALSE=
22532fi
22533
22534
22535if test x$dnotify = xtrue; then
22536
22537cat >>confdefs.h <<\_ACEOF
22538#define ENABLE_DNOTIFY 1
22539_ACEOF
22540
22541	backends="${backends}, dnotify"
22542fi
22543
22544if test x$os != xBogusOS; then
22545    	{ echo "$as_me:$LINENO: checking for kevent" >&5
22546echo $ECHO_N "checking for kevent... $ECHO_C" >&6; }
22547if test "${ac_cv_func_kevent+set}" = set; then
22548  echo $ECHO_N "(cached) $ECHO_C" >&6
22549else
22550  cat >conftest.$ac_ext <<_ACEOF
22551/* confdefs.h.  */
22552_ACEOF
22553cat confdefs.h >>conftest.$ac_ext
22554cat >>conftest.$ac_ext <<_ACEOF
22555/* end confdefs.h.  */
22556/* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
22557   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22558#define kevent innocuous_kevent
22559
22560/* System header to define __stub macros and hopefully few prototypes,
22561    which can conflict with char kevent (); below.
22562    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22563    <limits.h> exists even on freestanding compilers.  */
22564
22565#ifdef __STDC__
22566# include <limits.h>
22567#else
22568# include <assert.h>
22569#endif
22570
22571#undef kevent
22572
22573/* Override any GCC internal prototype to avoid an error.
22574   Use char because int might match the return type of a GCC
22575   builtin and then its argument prototype would still apply.  */
22576#ifdef __cplusplus
22577extern "C"
22578#endif
22579char kevent ();
22580/* The GNU C library defines this for functions which it implements
22581    to always fail with ENOSYS.  Some functions are actually named
22582    something starting with __ and the normal name is an alias.  */
22583#if defined __stub_kevent || defined __stub___kevent
22584choke me
22585#endif
22586
22587int
22588main ()
22589{
22590return kevent ();
22591  ;
22592  return 0;
22593}
22594_ACEOF
22595rm -f conftest.$ac_objext conftest$ac_exeext
22596if { (ac_try="$ac_link"
22597case "(($ac_try" in
22598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599  *) ac_try_echo=$ac_try;;
22600esac
22601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22602  (eval "$ac_link") 2>conftest.er1
22603  ac_status=$?
22604  grep -v '^ *+' conftest.er1 >conftest.err
22605  rm -f conftest.er1
22606  cat conftest.err >&5
22607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608  (exit $ac_status); } && {
22609	 test -z "$ac_c_werror_flag" ||
22610	 test ! -s conftest.err
22611       } && test -s conftest$ac_exeext &&
22612       $as_test_x conftest$ac_exeext; then
22613  ac_cv_func_kevent=yes
22614else
22615  echo "$as_me: failed program was:" >&5
22616sed 's/^/| /' conftest.$ac_ext >&5
22617
22618	ac_cv_func_kevent=no
22619fi
22620
22621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22622      conftest$ac_exeext conftest.$ac_ext
22623fi
22624{ echo "$as_me:$LINENO: result: $ac_cv_func_kevent" >&5
22625echo "${ECHO_T}$ac_cv_func_kevent" >&6; }
22626if test $ac_cv_func_kevent = yes; then
22627  have_kevent=1
22628fi
22629
22630	if test x$have_kevent = x1 ; then
22631	    # Check whether --enable-kqueue was given.
22632if test "${enable_kqueue+set}" = set; then
22633  enableval=$enable_kqueue; kqueue="${enableval}"
22634else
22635  kqueue=true
22636fi
22637
22638
22639		if test x$kqueue = xyes; then
22640			kqueue=true
22641		elif test x$kqueue = xno; then
22642			kqueue=false
22643		elif test x$kqueue != xtrue; then
22644			{ { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-kqueue" >&5
22645echo "$as_me: error: bad value ${enableval} for --disable-kqueue" >&2;}
22646   { (exit 1); exit 1; }; }
22647		fi
22648	fi
22649fi
22650
22651 if test x$kqueue = xtrue; then
22652  ENABLE_KQUEUE_TRUE=
22653  ENABLE_KQUEUE_FALSE='#'
22654else
22655  ENABLE_KQUEUE_TRUE='#'
22656  ENABLE_KQUEUE_FALSE=
22657fi
22658
22659
22660if test x$kqueue = xtrue; then
22661
22662for ac_header in sys/event.h
22663do
22664as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22666  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22669  echo $ECHO_N "(cached) $ECHO_C" >&6
22670fi
22671ac_res=`eval echo '${'$as_ac_Header'}'`
22672	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22673echo "${ECHO_T}$ac_res" >&6; }
22674else
22675  # Is the header compilable?
22676{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22677echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22678cat >conftest.$ac_ext <<_ACEOF
22679/* confdefs.h.  */
22680_ACEOF
22681cat confdefs.h >>conftest.$ac_ext
22682cat >>conftest.$ac_ext <<_ACEOF
22683/* end confdefs.h.  */
22684$ac_includes_default
22685#include <$ac_header>
22686_ACEOF
22687rm -f conftest.$ac_objext
22688if { (ac_try="$ac_compile"
22689case "(($ac_try" in
22690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22691  *) ac_try_echo=$ac_try;;
22692esac
22693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22694  (eval "$ac_compile") 2>conftest.er1
22695  ac_status=$?
22696  grep -v '^ *+' conftest.er1 >conftest.err
22697  rm -f conftest.er1
22698  cat conftest.err >&5
22699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700  (exit $ac_status); } && {
22701	 test -z "$ac_c_werror_flag" ||
22702	 test ! -s conftest.err
22703       } && test -s conftest.$ac_objext; then
22704  ac_header_compiler=yes
22705else
22706  echo "$as_me: failed program was:" >&5
22707sed 's/^/| /' conftest.$ac_ext >&5
22708
22709	ac_header_compiler=no
22710fi
22711
22712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22713{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22714echo "${ECHO_T}$ac_header_compiler" >&6; }
22715
22716# Is the header present?
22717{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22719cat >conftest.$ac_ext <<_ACEOF
22720/* confdefs.h.  */
22721_ACEOF
22722cat confdefs.h >>conftest.$ac_ext
22723cat >>conftest.$ac_ext <<_ACEOF
22724/* end confdefs.h.  */
22725#include <$ac_header>
22726_ACEOF
22727if { (ac_try="$ac_cpp conftest.$ac_ext"
22728case "(($ac_try" in
22729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22730  *) ac_try_echo=$ac_try;;
22731esac
22732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22733  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22734  ac_status=$?
22735  grep -v '^ *+' conftest.er1 >conftest.err
22736  rm -f conftest.er1
22737  cat conftest.err >&5
22738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739  (exit $ac_status); } >/dev/null && {
22740	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22741	 test ! -s conftest.err
22742       }; then
22743  ac_header_preproc=yes
22744else
22745  echo "$as_me: failed program was:" >&5
22746sed 's/^/| /' conftest.$ac_ext >&5
22747
22748  ac_header_preproc=no
22749fi
22750
22751rm -f conftest.err conftest.$ac_ext
22752{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22753echo "${ECHO_T}$ac_header_preproc" >&6; }
22754
22755# So?  What about this header?
22756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22757  yes:no: )
22758    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22759echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22760    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22761echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22762    ac_header_preproc=yes
22763    ;;
22764  no:yes:* )
22765    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22766echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22767    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22768echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22769    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22770echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22771    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22772echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22773    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22774echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22775    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22776echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22777
22778    ;;
22779esac
22780{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22782if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22783  echo $ECHO_N "(cached) $ECHO_C" >&6
22784else
22785  eval "$as_ac_Header=\$ac_header_preproc"
22786fi
22787ac_res=`eval echo '${'$as_ac_Header'}'`
22788	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22789echo "${ECHO_T}$ac_res" >&6; }
22790
22791fi
22792if test `eval echo '${'$as_ac_Header'}'` = yes; then
22793  cat >>confdefs.h <<_ACEOF
22794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22795_ACEOF
22796
22797fi
22798
22799done
22800
22801
22802cat >>confdefs.h <<\_ACEOF
22803#define ENABLE_KQUEUE 1
22804_ACEOF
22805
22806	backends="${backends}, kqueue"
22807fi
22808
22809
22810# Check whether --with-threads was given.
22811if test "${with_threads+set}" = set; then
22812  withval=$with_threads;
22813fi
22814
22815
22816if test "$with_threads" = "no" ; then
22817    echo Disabling multithreaded support
22818else
22819    echo Enabling multithreaded support
22820
22821    if test "${ac_cv_header_pthread_h+set}" = set; then
22822  { echo "$as_me:$LINENO: checking for pthread.h" >&5
22823echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
22824if test "${ac_cv_header_pthread_h+set}" = set; then
22825  echo $ECHO_N "(cached) $ECHO_C" >&6
22826fi
22827{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22828echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
22829else
22830  # Is the header compilable?
22831{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
22832echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
22833cat >conftest.$ac_ext <<_ACEOF
22834/* confdefs.h.  */
22835_ACEOF
22836cat confdefs.h >>conftest.$ac_ext
22837cat >>conftest.$ac_ext <<_ACEOF
22838/* end confdefs.h.  */
22839$ac_includes_default
22840#include <pthread.h>
22841_ACEOF
22842rm -f conftest.$ac_objext
22843if { (ac_try="$ac_compile"
22844case "(($ac_try" in
22845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22846  *) ac_try_echo=$ac_try;;
22847esac
22848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22849  (eval "$ac_compile") 2>conftest.er1
22850  ac_status=$?
22851  grep -v '^ *+' conftest.er1 >conftest.err
22852  rm -f conftest.er1
22853  cat conftest.err >&5
22854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855  (exit $ac_status); } && {
22856	 test -z "$ac_c_werror_flag" ||
22857	 test ! -s conftest.err
22858       } && test -s conftest.$ac_objext; then
22859  ac_header_compiler=yes
22860else
22861  echo "$as_me: failed program was:" >&5
22862sed 's/^/| /' conftest.$ac_ext >&5
22863
22864	ac_header_compiler=no
22865fi
22866
22867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22868{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22869echo "${ECHO_T}$ac_header_compiler" >&6; }
22870
22871# Is the header present?
22872{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
22873echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
22874cat >conftest.$ac_ext <<_ACEOF
22875/* confdefs.h.  */
22876_ACEOF
22877cat confdefs.h >>conftest.$ac_ext
22878cat >>conftest.$ac_ext <<_ACEOF
22879/* end confdefs.h.  */
22880#include <pthread.h>
22881_ACEOF
22882if { (ac_try="$ac_cpp conftest.$ac_ext"
22883case "(($ac_try" in
22884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22885  *) ac_try_echo=$ac_try;;
22886esac
22887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22888  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22889  ac_status=$?
22890  grep -v '^ *+' conftest.er1 >conftest.err
22891  rm -f conftest.er1
22892  cat conftest.err >&5
22893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894  (exit $ac_status); } >/dev/null && {
22895	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22896	 test ! -s conftest.err
22897       }; then
22898  ac_header_preproc=yes
22899else
22900  echo "$as_me: failed program was:" >&5
22901sed 's/^/| /' conftest.$ac_ext >&5
22902
22903  ac_header_preproc=no
22904fi
22905
22906rm -f conftest.err conftest.$ac_ext
22907{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22908echo "${ECHO_T}$ac_header_preproc" >&6; }
22909
22910# So?  What about this header?
22911case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22912  yes:no: )
22913    { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
22914echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22915    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
22916echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
22917    ac_header_preproc=yes
22918    ;;
22919  no:yes:* )
22920    { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
22921echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
22922    { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
22923echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
22924    { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
22925echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
22926    { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
22927echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22928    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
22929echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
22930    { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
22931echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
22932
22933    ;;
22934esac
22935{ echo "$as_me:$LINENO: checking for pthread.h" >&5
22936echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
22937if test "${ac_cv_header_pthread_h+set}" = set; then
22938  echo $ECHO_N "(cached) $ECHO_C" >&6
22939else
22940  ac_cv_header_pthread_h=$ac_header_preproc
22941fi
22942{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
22943echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
22944
22945fi
22946if test $ac_cv_header_pthread_h = yes; then
22947  { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype in -lpthread" >&5
22948echo $ECHO_N "checking for pthread_mutexattr_settype in -lpthread... $ECHO_C" >&6; }
22949if test "${ac_cv_lib_pthread_pthread_mutexattr_settype+set}" = set; then
22950  echo $ECHO_N "(cached) $ECHO_C" >&6
22951else
22952  ac_check_lib_save_LIBS=$LIBS
22953LIBS="-lpthread  $LIBS"
22954cat >conftest.$ac_ext <<_ACEOF
22955/* confdefs.h.  */
22956_ACEOF
22957cat confdefs.h >>conftest.$ac_ext
22958cat >>conftest.$ac_ext <<_ACEOF
22959/* end confdefs.h.  */
22960
22961/* Override any GCC internal prototype to avoid an error.
22962   Use char because int might match the return type of a GCC
22963   builtin and then its argument prototype would still apply.  */
22964#ifdef __cplusplus
22965extern "C"
22966#endif
22967char pthread_mutexattr_settype ();
22968int
22969main ()
22970{
22971return pthread_mutexattr_settype ();
22972  ;
22973  return 0;
22974}
22975_ACEOF
22976rm -f conftest.$ac_objext conftest$ac_exeext
22977if { (ac_try="$ac_link"
22978case "(($ac_try" in
22979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22980  *) ac_try_echo=$ac_try;;
22981esac
22982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22983  (eval "$ac_link") 2>conftest.er1
22984  ac_status=$?
22985  grep -v '^ *+' conftest.er1 >conftest.err
22986  rm -f conftest.er1
22987  cat conftest.err >&5
22988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989  (exit $ac_status); } && {
22990	 test -z "$ac_c_werror_flag" ||
22991	 test ! -s conftest.err
22992       } && test -s conftest$ac_exeext &&
22993       $as_test_x conftest$ac_exeext; then
22994  ac_cv_lib_pthread_pthread_mutexattr_settype=yes
22995else
22996  echo "$as_me: failed program was:" >&5
22997sed 's/^/| /' conftest.$ac_ext >&5
22998
22999	ac_cv_lib_pthread_pthread_mutexattr_settype=no
23000fi
23001
23002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23003      conftest$ac_exeext conftest.$ac_ext
23004LIBS=$ac_check_lib_save_LIBS
23005fi
23006{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutexattr_settype" >&5
23007echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutexattr_settype" >&6; }
23008if test $ac_cv_lib_pthread_pthread_mutexattr_settype = yes; then
23009
23010	   THREAD_LIBS="-lpthread"
23011
23012cat >>confdefs.h <<\_ACEOF
23013#define HAVE_LIBPTHREAD
23014_ACEOF
23015
23016
23017cat >>confdefs.h <<\_ACEOF
23018#define HAVE_PTHREAD_H
23019_ACEOF
23020
23021	   WITH_THREADS="1"
23022fi
23023
23024fi
23025
23026
23027fi
23028
23029if test x$os = xlinux-gnu -a x$WITH_THREADS = x1 ; then
23030    if test "${CC}" = "gcc" ; then
23031        echo Use weak symbols !
23032        THREAD_LIBS=
23033    fi
23034fi
23035
23036
23037
23038# It may just be gnu but it could also be gnu0.3, etc.
23039#   if echo x$os | grep -E -e '^xgnu[0-9]*\.?[0-9]*$' >/dev/null;
23040# won't work as m4 eats the []s.
23041if case x$os in xgnu*) true;; *) false;; esac; then
23042	# Check whether --enable-kqueue was given.
23043if test "${enable_kqueue+set}" = set; then
23044  enableval=$enable_kqueue; hurd_mach_notify="${enableval}"
23045else
23046  hurd_mach_notify=true
23047fi
23048
23049
23050	if test x$hurd_mach_notify = xyes; then
23051		hurd_mach_notify=true
23052	elif test x$hurd_mach_notify = xno; then
23053		hurd_mach_notify=false
23054	elif test x$hurd_mach_notify != xtrue; then
23055		{ { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-hurd_mach_notify" >&5
23056echo "$as_me: error: bad value ${enableval} for --disable-hurd_mach_notify" >&2;}
23057   { (exit 1); exit 1; }; }
23058	fi
23059fi
23060
23061 if test x$hurd_mach_notify = xtrue; then
23062  ENABLE_HURD_MACH_NOTIFY_TRUE=
23063  ENABLE_HURD_MACH_NOTIFY_FALSE='#'
23064else
23065  ENABLE_HURD_MACH_NOTIFY_TRUE='#'
23066  ENABLE_HURD_MACH_NOTIFY_FALSE=
23067fi
23068
23069
23070if test x$hurd_mach_notify = xtrue; then
23071        # <hurd/ports.h> requires _GNU_SOURCE.
23072	old_CPPFLAGS="$CPPFLAGS"
23073	CPPFLAGS="$old_CPPFLAGS -D_GNU_SOURCE"
23074
23075for ac_header in hurd/ports.h
23076do
23077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23079  { echo "$as_me:$LINENO: checking for $ac_header" >&5
23080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23082  echo $ECHO_N "(cached) $ECHO_C" >&6
23083fi
23084ac_res=`eval echo '${'$as_ac_Header'}'`
23085	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23086echo "${ECHO_T}$ac_res" >&6; }
23087else
23088  # Is the header compilable?
23089{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
23090echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23091cat >conftest.$ac_ext <<_ACEOF
23092/* confdefs.h.  */
23093_ACEOF
23094cat confdefs.h >>conftest.$ac_ext
23095cat >>conftest.$ac_ext <<_ACEOF
23096/* end confdefs.h.  */
23097$ac_includes_default
23098#include <$ac_header>
23099_ACEOF
23100rm -f conftest.$ac_objext
23101if { (ac_try="$ac_compile"
23102case "(($ac_try" in
23103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23104  *) ac_try_echo=$ac_try;;
23105esac
23106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23107  (eval "$ac_compile") 2>conftest.er1
23108  ac_status=$?
23109  grep -v '^ *+' conftest.er1 >conftest.err
23110  rm -f conftest.er1
23111  cat conftest.err >&5
23112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113  (exit $ac_status); } && {
23114	 test -z "$ac_c_werror_flag" ||
23115	 test ! -s conftest.err
23116       } && test -s conftest.$ac_objext; then
23117  ac_header_compiler=yes
23118else
23119  echo "$as_me: failed program was:" >&5
23120sed 's/^/| /' conftest.$ac_ext >&5
23121
23122	ac_header_compiler=no
23123fi
23124
23125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23126{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23127echo "${ECHO_T}$ac_header_compiler" >&6; }
23128
23129# Is the header present?
23130{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
23131echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23132cat >conftest.$ac_ext <<_ACEOF
23133/* confdefs.h.  */
23134_ACEOF
23135cat confdefs.h >>conftest.$ac_ext
23136cat >>conftest.$ac_ext <<_ACEOF
23137/* end confdefs.h.  */
23138#include <$ac_header>
23139_ACEOF
23140if { (ac_try="$ac_cpp conftest.$ac_ext"
23141case "(($ac_try" in
23142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23143  *) ac_try_echo=$ac_try;;
23144esac
23145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23146  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23147  ac_status=$?
23148  grep -v '^ *+' conftest.er1 >conftest.err
23149  rm -f conftest.er1
23150  cat conftest.err >&5
23151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152  (exit $ac_status); } >/dev/null && {
23153	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23154	 test ! -s conftest.err
23155       }; then
23156  ac_header_preproc=yes
23157else
23158  echo "$as_me: failed program was:" >&5
23159sed 's/^/| /' conftest.$ac_ext >&5
23160
23161  ac_header_preproc=no
23162fi
23163
23164rm -f conftest.err conftest.$ac_ext
23165{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23166echo "${ECHO_T}$ac_header_preproc" >&6; }
23167
23168# So?  What about this header?
23169case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23170  yes:no: )
23171    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23172echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23173    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23174echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23175    ac_header_preproc=yes
23176    ;;
23177  no:yes:* )
23178    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23179echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23180    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23181echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23182    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23183echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23184    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23185echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23186    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23188    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23189echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23190
23191    ;;
23192esac
23193{ echo "$as_me:$LINENO: checking for $ac_header" >&5
23194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23196  echo $ECHO_N "(cached) $ECHO_C" >&6
23197else
23198  eval "$as_ac_Header=\$ac_header_preproc"
23199fi
23200ac_res=`eval echo '${'$as_ac_Header'}'`
23201	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23202echo "${ECHO_T}$ac_res" >&6; }
23203
23204fi
23205if test `eval echo '${'$as_ac_Header'}'` = yes; then
23206  cat >>confdefs.h <<_ACEOF
23207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23208_ACEOF
23209
23210else
23211  { { echo "$as_me:$LINENO: error: <hurd/ports.h> not found but required to build hurd_mach_notify backend." >&5
23212echo "$as_me: error: <hurd/ports.h> not found but required to build hurd_mach_notify backend." >&2;}
23213   { (exit 1); exit 1; }; }
23214fi
23215
23216done
23217
23218	CPPFLAGS="$old_CPPFLAGS"
23219
23220	{ echo "$as_me:$LINENO: checking for ports_create_port in -lports" >&5
23221echo $ECHO_N "checking for ports_create_port in -lports... $ECHO_C" >&6; }
23222if test "${ac_cv_lib_ports_ports_create_port+set}" = set; then
23223  echo $ECHO_N "(cached) $ECHO_C" >&6
23224else
23225  ac_check_lib_save_LIBS=$LIBS
23226LIBS="-lports -lthreads $LIBS"
23227cat >conftest.$ac_ext <<_ACEOF
23228/* confdefs.h.  */
23229_ACEOF
23230cat confdefs.h >>conftest.$ac_ext
23231cat >>conftest.$ac_ext <<_ACEOF
23232/* end confdefs.h.  */
23233
23234/* Override any GCC internal prototype to avoid an error.
23235   Use char because int might match the return type of a GCC
23236   builtin and then its argument prototype would still apply.  */
23237#ifdef __cplusplus
23238extern "C"
23239#endif
23240char ports_create_port ();
23241int
23242main ()
23243{
23244return ports_create_port ();
23245  ;
23246  return 0;
23247}
23248_ACEOF
23249rm -f conftest.$ac_objext conftest$ac_exeext
23250if { (ac_try="$ac_link"
23251case "(($ac_try" in
23252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23253  *) ac_try_echo=$ac_try;;
23254esac
23255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23256  (eval "$ac_link") 2>conftest.er1
23257  ac_status=$?
23258  grep -v '^ *+' conftest.er1 >conftest.err
23259  rm -f conftest.er1
23260  cat conftest.err >&5
23261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262  (exit $ac_status); } && {
23263	 test -z "$ac_c_werror_flag" ||
23264	 test ! -s conftest.err
23265       } && test -s conftest$ac_exeext &&
23266       $as_test_x conftest$ac_exeext; then
23267  ac_cv_lib_ports_ports_create_port=yes
23268else
23269  echo "$as_me: failed program was:" >&5
23270sed 's/^/| /' conftest.$ac_ext >&5
23271
23272	ac_cv_lib_ports_ports_create_port=no
23273fi
23274
23275rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23276      conftest$ac_exeext conftest.$ac_ext
23277LIBS=$ac_check_lib_save_LIBS
23278fi
23279{ echo "$as_me:$LINENO: result: $ac_cv_lib_ports_ports_create_port" >&5
23280echo "${ECHO_T}$ac_cv_lib_ports_ports_create_port" >&6; }
23281if test $ac_cv_lib_ports_ports_create_port = yes; then
23282  :
23283else
23284  { { echo "$as_me:$LINENO: error: libports not found but required to build hurd_mach_notify backend." >&5
23285echo "$as_me: error: libports not found but required to build hurd_mach_notify backend." >&2;}
23286   { (exit 1); exit 1; }; }
23287fi
23288
23289
23290        if test -n "$ac_tool_prefix"; then
23291  # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
23292set dummy ${ac_tool_prefix}mig; ac_word=$2
23293{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23295if test "${ac_cv_prog_MIG+set}" = set; then
23296  echo $ECHO_N "(cached) $ECHO_C" >&6
23297else
23298  if test -n "$MIG"; then
23299  ac_cv_prog_MIG="$MIG" # Let the user override the test.
23300else
23301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23302for as_dir in $PATH
23303do
23304  IFS=$as_save_IFS
23305  test -z "$as_dir" && as_dir=.
23306  for ac_exec_ext in '' $ac_executable_extensions; do
23307  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23308    ac_cv_prog_MIG="${ac_tool_prefix}mig"
23309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23310    break 2
23311  fi
23312done
23313done
23314IFS=$as_save_IFS
23315
23316fi
23317fi
23318MIG=$ac_cv_prog_MIG
23319if test -n "$MIG"; then
23320  { echo "$as_me:$LINENO: result: $MIG" >&5
23321echo "${ECHO_T}$MIG" >&6; }
23322else
23323  { echo "$as_me:$LINENO: result: no" >&5
23324echo "${ECHO_T}no" >&6; }
23325fi
23326
23327
23328fi
23329if test -z "$ac_cv_prog_MIG"; then
23330  ac_ct_MIG=$MIG
23331  # Extract the first word of "mig", so it can be a program name with args.
23332set dummy mig; ac_word=$2
23333{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23335if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
23336  echo $ECHO_N "(cached) $ECHO_C" >&6
23337else
23338  if test -n "$ac_ct_MIG"; then
23339  ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
23340else
23341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23342for as_dir in $PATH
23343do
23344  IFS=$as_save_IFS
23345  test -z "$as_dir" && as_dir=.
23346  for ac_exec_ext in '' $ac_executable_extensions; do
23347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23348    ac_cv_prog_ac_ct_MIG="mig"
23349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23350    break 2
23351  fi
23352done
23353done
23354IFS=$as_save_IFS
23355
23356fi
23357fi
23358ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
23359if test -n "$ac_ct_MIG"; then
23360  { echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
23361echo "${ECHO_T}$ac_ct_MIG" >&6; }
23362else
23363  { echo "$as_me:$LINENO: result: no" >&5
23364echo "${ECHO_T}no" >&6; }
23365fi
23366
23367  if test "x$ac_ct_MIG" = x; then
23368    MIG="{ { echo "$as_me:$LINENO: error: mig not found but required to build hurd_mach_notify backend." >&5
23369echo "$as_me: error: mig not found but required to build hurd_mach_notify backend." >&2;}
23370   { (exit 1); exit 1; }; }"
23371  else
23372    case $cross_compiling:$ac_tool_warned in
23373yes:)
23374{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23375whose name does not start with the host triplet.  If you think this
23376configuration is useful to you, please write to autoconf@gnu.org." >&5
23377echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23378whose name does not start with the host triplet.  If you think this
23379configuration is useful to you, please write to autoconf@gnu.org." >&2;}
23380ac_tool_warned=yes ;;
23381esac
23382    MIG=$ac_ct_MIG
23383  fi
23384else
23385  MIG="$ac_cv_prog_MIG"
23386fi
23387
23388
23389
23390
23391cat >>confdefs.h <<\_ACEOF
23392#define ENABLE_HURD_MACH_NOTIFY 1
23393_ACEOF
23394
23395	backends="${backends}, hurd_mach_notify"
23396fi
23397
23398{ echo "$as_me:$LINENO: checking for ISO C99 varargs macros in C" >&5
23399echo $ECHO_N "checking for ISO C99 varargs macros in C... $ECHO_C" >&6; }
23400cat >conftest.$ac_ext <<_ACEOF
23401/* confdefs.h.  */
23402_ACEOF
23403cat confdefs.h >>conftest.$ac_ext
23404cat >>conftest.$ac_ext <<_ACEOF
23405/* end confdefs.h.  */
23406
23407int
23408main ()
23409{
23410
23411int a(int p1, int p2, int p3);
23412#define call_a(...) a(1,__VA_ARGS__)
23413call_a(2,3);
23414
23415  ;
23416  return 0;
23417}
23418_ACEOF
23419rm -f conftest.$ac_objext
23420if { (ac_try="$ac_compile"
23421case "(($ac_try" in
23422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23423  *) ac_try_echo=$ac_try;;
23424esac
23425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23426  (eval "$ac_compile") 2>conftest.er1
23427  ac_status=$?
23428  grep -v '^ *+' conftest.er1 >conftest.err
23429  rm -f conftest.er1
23430  cat conftest.err >&5
23431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432  (exit $ac_status); } && {
23433	 test -z "$ac_c_werror_flag" ||
23434	 test ! -s conftest.err
23435       } && test -s conftest.$ac_objext; then
23436  dbus_have_iso_c_varargs=yes
23437else
23438  echo "$as_me: failed program was:" >&5
23439sed 's/^/| /' conftest.$ac_ext >&5
23440
23441	dbus_have_iso_c_varargs=no
23442fi
23443
23444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23445{ echo "$as_me:$LINENO: result: $dbus_have_iso_c_varargs" >&5
23446echo "${ECHO_T}$dbus_have_iso_c_varargs" >&6; }
23447
23448{ echo "$as_me:$LINENO: checking for GNUC varargs macros" >&5
23449echo $ECHO_N "checking for GNUC varargs macros... $ECHO_C" >&6; }
23450cat >conftest.$ac_ext <<_ACEOF
23451/* confdefs.h.  */
23452_ACEOF
23453cat confdefs.h >>conftest.$ac_ext
23454cat >>conftest.$ac_ext <<_ACEOF
23455/* end confdefs.h.  */
23456
23457int
23458main ()
23459{
23460
23461int a(int p1, int p2, int p3);
23462#define call_a(params...) a(1,params)
23463call_a(2,3);
23464
23465  ;
23466  return 0;
23467}
23468_ACEOF
23469rm -f conftest.$ac_objext
23470if { (ac_try="$ac_compile"
23471case "(($ac_try" in
23472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23473  *) ac_try_echo=$ac_try;;
23474esac
23475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23476  (eval "$ac_compile") 2>conftest.er1
23477  ac_status=$?
23478  grep -v '^ *+' conftest.er1 >conftest.err
23479  rm -f conftest.er1
23480  cat conftest.err >&5
23481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482  (exit $ac_status); } && {
23483	 test -z "$ac_c_werror_flag" ||
23484	 test ! -s conftest.err
23485       } && test -s conftest.$ac_objext; then
23486  dbus_have_gnuc_varargs=yes
23487else
23488  echo "$as_me: failed program was:" >&5
23489sed 's/^/| /' conftest.$ac_ext >&5
23490
23491	dbus_have_gnuc_varargs=no
23492fi
23493
23494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23495{ echo "$as_me:$LINENO: result: $dbus_have_gnuc_varargs" >&5
23496echo "${ECHO_T}$dbus_have_gnuc_varargs" >&6; }
23497
23498if test x$dbus_have_iso_c_varargs = xyes; then
23499
23500cat >>confdefs.h <<\_ACEOF
23501#define HAVE_ISO_VARARGS 1
23502_ACEOF
23503
23504fi
23505if test x$dbus_have_gnuc_varargs = xyes; then
23506
23507cat >>confdefs.h <<\_ACEOF
23508#define HAVE_GNUC_VARARGS 1
23509_ACEOF
23510
23511fi
23512
23513{ echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
23514echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
23515cat >conftest.$ac_ext <<_ACEOF
23516/* confdefs.h.  */
23517_ACEOF
23518cat confdefs.h >>conftest.$ac_ext
23519cat >>conftest.$ac_ext <<_ACEOF
23520/* end confdefs.h.  */
23521
23522#include <sys/types.h>
23523#include <sys/socket.h>
23524
23525int
23526main ()
23527{
23528
23529struct cmsgcred cred;
23530
23531cred.cmcred_pid = 0;
23532
23533  ;
23534  return 0;
23535}
23536_ACEOF
23537rm -f conftest.$ac_objext
23538if { (ac_try="$ac_compile"
23539case "(($ac_try" in
23540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23541  *) ac_try_echo=$ac_try;;
23542esac
23543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23544  (eval "$ac_compile") 2>conftest.er1
23545  ac_status=$?
23546  grep -v '^ *+' conftest.er1 >conftest.err
23547  rm -f conftest.er1
23548  cat conftest.err >&5
23549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550  (exit $ac_status); } && {
23551	 test -z "$ac_c_werror_flag" ||
23552	 test ! -s conftest.err
23553       } && test -s conftest.$ac_objext; then
23554  dbus_have_struct_cmsgcred=yes
23555else
23556  echo "$as_me: failed program was:" >&5
23557sed 's/^/| /' conftest.$ac_ext >&5
23558
23559	dbus_have_struct_cmsgcred=no
23560fi
23561
23562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23563{ echo "$as_me:$LINENO: result: $dbus_have_struct_cmsgcred" >&5
23564echo "${ECHO_T}$dbus_have_struct_cmsgcred" >&6; }
23565
23566if test x$dbus_have_struct_cmsgcred = xyes; then
23567
23568cat >>confdefs.h <<\_ACEOF
23569#define HAVE_CMSGCRED 1
23570_ACEOF
23571
23572fi
23573
23574#### Abstract sockets
23575
23576{ echo "$as_me:$LINENO: checking abstract socket namespace" >&5
23577echo $ECHO_N "checking abstract socket namespace... $ECHO_C" >&6; }
23578ac_ext=c
23579ac_cpp='$CPP $CPPFLAGS'
23580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23582ac_compiler_gnu=$ac_cv_c_compiler_gnu
23583
23584if test "$cross_compiling" = yes; then
23585  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23586See \`config.log' for more details." >&5
23587echo "$as_me: error: cannot run test program while cross compiling
23588See \`config.log' for more details." >&2;}
23589   { (exit 1); exit 1; }; }
23590else
23591  cat >conftest.$ac_ext <<_ACEOF
23592/* confdefs.h.  */
23593_ACEOF
23594cat confdefs.h >>conftest.$ac_ext
23595cat >>conftest.$ac_ext <<_ACEOF
23596/* end confdefs.h.  */
23597
23598#include <sys/types.h>
23599#include <stdlib.h>
23600#include <string.h>
23601#include <stdio.h>
23602#include <sys/socket.h>
23603#include <sys/un.h>
23604#include <errno.h>
23605
23606int
23607main ()
23608{
23609
23610  int listen_fd;
23611  struct sockaddr_un addr;
23612
23613  listen_fd = socket (PF_UNIX, SOCK_STREAM, 0);
23614
23615  if (listen_fd < 0)
23616    {
23617      fprintf (stderr, "socket() failed: %s\n", strerror (errno));
23618      exit (1);
23619    }
23620
23621  memset (&addr, '\0', sizeof (addr));
23622  addr.sun_family = AF_UNIX;
23623  strcpy (addr.sun_path, "X/tmp/dbus-fake-socket-path-used-in-configure-test");
23624  addr.sun_path[0] = '\0'; /* this is what makes it abstract */
23625
23626  if (bind (listen_fd, (struct sockaddr*) &addr, SUN_LEN (&addr)) < 0)
23627    {
23628       fprintf (stderr, "Abstract socket namespace bind() failed: %s\n",
23629                strerror (errno));
23630       exit (1);
23631    }
23632  else
23633    exit (0);
23634
23635  ;
23636  return 0;
23637}
23638_ACEOF
23639rm -f conftest$ac_exeext
23640if { (ac_try="$ac_link"
23641case "(($ac_try" in
23642  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23643  *) ac_try_echo=$ac_try;;
23644esac
23645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23646  (eval "$ac_link") 2>&5
23647  ac_status=$?
23648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23650  { (case "(($ac_try" in
23651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23652  *) ac_try_echo=$ac_try;;
23653esac
23654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23655  (eval "$ac_try") 2>&5
23656  ac_status=$?
23657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658  (exit $ac_status); }; }; then
23659  have_abstract_sockets=yes
23660else
23661  echo "$as_me: program exited with status $ac_status" >&5
23662echo "$as_me: failed program was:" >&5
23663sed 's/^/| /' conftest.$ac_ext >&5
23664
23665( exit $ac_status )
23666have_abstract_sockets=no
23667fi
23668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23669fi
23670
23671
23672ac_ext=c
23673ac_cpp='$CPP $CPPFLAGS'
23674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23676ac_compiler_gnu=$ac_cv_c_compiler_gnu
23677
23678{ echo "$as_me:$LINENO: result: $have_abstract_sockets" >&5
23679echo "${ECHO_T}$have_abstract_sockets" >&6; }
23680
23681if test x$enable_abstract_sockets = xyes; then
23682    if test x$have_abstract_sockets = xno; then
23683	{ { echo "$as_me:$LINENO: error: Abstract sockets explicitly required, and support not detected." >&5
23684echo "$as_me: error: Abstract sockets explicitly required, and support not detected." >&2;}
23685   { (exit 1); exit 1; }; }
23686    fi
23687fi
23688
23689if test x$enable_abstract_sockets = xno; then
23690   have_abstract_sockets=no;
23691fi
23692
23693if test x$have_abstract_sockets = xyes ; then
23694
23695cat >>confdefs.h <<_ACEOF
23696#define HAVE_ABSTRACT_SOCKETS $abstract_sockets
23697_ACEOF
23698
23699fi
23700
23701
23702
23703# Check whether --with-python was given.
23704if test "${with_python+set}" = set; then
23705  withval=$with_python;
23706fi
23707
23708
23709PYTHON_VERSION=
23710PYTHON_INCLUDES=
23711PYTHON_SITE_PACKAGES=
23712PYTHON_TESTS=
23713pythondir=
23714if test "$with_python" != "no" ; then
23715    if test -x "$with_python/bin/python"
23716    then
23717        echo Found python in $with_python/bin/python
23718        PYTHON="$with_python/bin/python"
23719    else
23720	if test -x "$with_python"
23721	then
23722	    echo Found python in $with_python
23723	    PYTHON="$with_python"
23724	else
23725	    if test -x "$PYTHON"
23726	    then
23727	        echo Found python in environment PYTHON=$PYTHON
23728		with_python=`$PYTHON -c "import sys; print sys.exec_prefix"`
23729	    else
23730		# Extract the first word of "python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
23731set dummy python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
23732{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23734if test "${ac_cv_path_PYTHON+set}" = set; then
23735  echo $ECHO_N "(cached) $ECHO_C" >&6
23736else
23737  case $PYTHON in
23738  [\\/]* | ?:[\\/]*)
23739  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23740  ;;
23741  *)
23742  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23743for as_dir in $PATH
23744do
23745  IFS=$as_save_IFS
23746  test -z "$as_dir" && as_dir=.
23747  for ac_exec_ext in '' $ac_executable_extensions; do
23748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23749    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23751    break 2
23752  fi
23753done
23754done
23755IFS=$as_save_IFS
23756
23757  ;;
23758esac
23759fi
23760PYTHON=$ac_cv_path_PYTHON
23761if test -n "$PYTHON"; then
23762  { echo "$as_me:$LINENO: result: $PYTHON" >&5
23763echo "${ECHO_T}$PYTHON" >&6; }
23764else
23765  { echo "$as_me:$LINENO: result: no" >&5
23766echo "${ECHO_T}no" >&6; }
23767fi
23768
23769
23770	    fi
23771	fi
23772    fi
23773    if test "$PYTHON" != ""
23774    then
23775        PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"`
23776	echo Found Python version $PYTHON_VERSION
23777    fi
23778    if test "$PYTHON_VERSION" != ""
23779    then
23780	if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
23781	   -d $with_python/lib/python$PYTHON_VERSION/site-packages
23782	then
23783	    PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
23784	    PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
23785	else
23786	    if test -r $prefix/include/python$PYTHON_VERSION/Python.h
23787	    then
23788	        PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
23789	        PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
23790	    else
23791		if test -r /usr/include/python$PYTHON_VERSION/Python.h
23792		then
23793		    PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
23794	            PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
23795		else
23796		    echo could not find python$PYTHON_VERSION/Python.h
23797		fi
23798	    fi
23799	    if test ! -d "$PYTHON_SITE_PACKAGES"
23800	    then
23801		    PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
23802	    fi
23803	fi
23804    fi
23805    if test "$with_python" != ""
23806    then
23807        pythondir='$(PYTHON_SITE_PACKAGES)'
23808    else
23809        pythondir='$(libdir)/python$(PYTHON_VERSION)/site-packages'
23810    fi
23811else
23812    PYTHON=
23813fi
23814if test "$PYTHON_INCLUDES" != ""
23815then
23816    enable_python="$enable_libgamin"
23817else
23818    enable_python="no"
23819fi
23820 if test "$enable_python" = "yes"; then
23821  WITH_PYTHON_TRUE=
23822  WITH_PYTHON_FALSE='#'
23823else
23824  WITH_PYTHON_TRUE='#'
23825  WITH_PYTHON_FALSE=
23826fi
23827
23828
23829
23830
23831
23832
23833
23834{ echo "$as_me:$LINENO: checking for more compiler warnings" >&5
23835echo $ECHO_N "checking for more compiler warnings... $ECHO_C" >&6; }
23836if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
23837	{ echo "$as_me:$LINENO: result: yes" >&5
23838echo "${ECHO_T}yes" >&6; }
23839	warning_cflags="\
23840 -Wall\
23841 -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes\
23842 -Wnested-externs\
23843 -Wsign-compare"
23844
23845	SAVE_CFLAGS="$CFLAGS"
23846	for option in -Wno-sign-compare; do
23847		CFLAGS="$option"
23848		{ echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
23849echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6; }
23850		cat >conftest.$ac_ext <<_ACEOF
23851/* confdefs.h.  */
23852_ACEOF
23853cat confdefs.h >>conftest.$ac_ext
23854cat >>conftest.$ac_ext <<_ACEOF
23855/* end confdefs.h.  */
23856
23857int
23858main ()
23859{
23860
23861  ;
23862  return 0;
23863}
23864_ACEOF
23865rm -f conftest.$ac_objext
23866if { (ac_try="$ac_compile"
23867case "(($ac_try" in
23868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23869  *) ac_try_echo=$ac_try;;
23870esac
23871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23872  (eval "$ac_compile") 2>conftest.er1
23873  ac_status=$?
23874  grep -v '^ *+' conftest.er1 >conftest.err
23875  rm -f conftest.er1
23876  cat conftest.err >&5
23877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878  (exit $ac_status); } && {
23879	 test -z "$ac_c_werror_flag" ||
23880	 test ! -s conftest.err
23881       } && test -s conftest.$ac_objext; then
23882  has_option=yes
23883else
23884  echo "$as_me: failed program was:" >&5
23885sed 's/^/| /' conftest.$ac_ext >&5
23886
23887	has_option=no
23888fi
23889
23890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23891		if test "$has_option" != "no"; then
23892			warning_cflags="$warning_cflags $option"
23893		fi
23894		{ echo "$as_me:$LINENO: result: $has_option" >&5
23895echo "${ECHO_T}$has_option" >&6; }
23896		unset has_option
23897	done
23898	CFLAGS="$SAVE_CFLAGS"
23899	unset option
23900else
23901	{ echo "$as_me:$LINENO: result: no" >&5
23902echo "${ECHO_T}no" >&6; }
23903fi
23904
23905if test "$GCC" = "yes"; then
23906	if test "$debug" = "yes"; then
23907		debug_cflags="-g"
23908	else
23909		# autotools defaults to "-O2 -g" for cflags, but we don't
23910		# want -g in non-debug builds
23911		if test -z "$ENV_CFLAGS"; then
23912			CFLAGS="-O2"
23913		fi
23914	fi
23915fi
23916
23917AM_CFLAGS="$warning_cflags $debug_cflags"
23918
23919
23920
23921ac_config_files="$ac_config_files Makefile lib/Makefile libgamin/Makefile server/Makefile tests/Makefile python/Makefile python/tests/Makefile doc/Makefile gamin.pc gamin.spec"
23922
23923cat >confcache <<\_ACEOF
23924# This file is a shell script that caches the results of configure
23925# tests run on this system so they can be shared between configure
23926# scripts and configure runs, see configure's option --config-cache.
23927# It is not useful on other systems.  If it contains results you don't
23928# want to keep, you may remove or edit it.
23929#
23930# config.status only pays attention to the cache file if you give it
23931# the --recheck option to rerun configure.
23932#
23933# `ac_cv_env_foo' variables (set or unset) will be overridden when
23934# loading this file, other *unset* `ac_cv_foo' will be assigned the
23935# following values.
23936
23937_ACEOF
23938
23939# The following way of writing the cache mishandles newlines in values,
23940# but we know of no workaround that is simple, portable, and efficient.
23941# So, we kill variables containing newlines.
23942# Ultrix sh set writes to stderr and can't be redirected directly,
23943# and sets the high bit in the cache file unless we assign to the vars.
23944(
23945  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23946    eval ac_val=\$$ac_var
23947    case $ac_val in #(
23948    *${as_nl}*)
23949      case $ac_var in #(
23950      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23951echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23952      esac
23953      case $ac_var in #(
23954      _ | IFS | as_nl) ;; #(
23955      *) $as_unset $ac_var ;;
23956      esac ;;
23957    esac
23958  done
23959
23960  (set) 2>&1 |
23961    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23962    *${as_nl}ac_space=\ *)
23963      # `set' does not quote correctly, so add quotes (double-quote
23964      # substitution turns \\\\ into \\, and sed turns \\ into \).
23965      sed -n \
23966	"s/'/'\\\\''/g;
23967	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23968      ;; #(
23969    *)
23970      # `set' quotes correctly as required by POSIX, so do not add quotes.
23971      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23972      ;;
23973    esac |
23974    sort
23975) |
23976  sed '
23977     /^ac_cv_env_/b end
23978     t clear
23979     :clear
23980     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23981     t end
23982     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23983     :end' >>confcache
23984if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23985  if test -w "$cache_file"; then
23986    test "x$cache_file" != "x/dev/null" &&
23987      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23988echo "$as_me: updating cache $cache_file" >&6;}
23989    cat confcache >$cache_file
23990  else
23991    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23992echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23993  fi
23994fi
23995rm -f confcache
23996
23997test "x$prefix" = xNONE && prefix=$ac_default_prefix
23998# Let make expand exec_prefix.
23999test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24000
24001DEFS=-DHAVE_CONFIG_H
24002
24003ac_libobjs=
24004ac_ltlibobjs=
24005for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24006  # 1. Remove the extension, and $U if already installed.
24007  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24008  ac_i=`echo "$ac_i" | sed "$ac_script"`
24009  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24010  #    will be set to the directory where LIBOBJS objects are built.
24011  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24012  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24013done
24014LIBOBJS=$ac_libobjs
24015
24016LTLIBOBJS=$ac_ltlibobjs
24017
24018
24019if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24020  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24021Usually this means the macro was only invoked conditionally." >&5
24022echo "$as_me: error: conditional \"AMDEP\" was never defined.
24023Usually this means the macro was only invoked conditionally." >&2;}
24024   { (exit 1); exit 1; }; }
24025fi
24026if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24027  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24028Usually this means the macro was only invoked conditionally." >&5
24029echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24030Usually this means the macro was only invoked conditionally." >&2;}
24031   { (exit 1); exit 1; }; }
24032fi
24033if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24034  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24035Usually this means the macro was only invoked conditionally." >&5
24036echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24037Usually this means the macro was only invoked conditionally." >&2;}
24038   { (exit 1); exit 1; }; }
24039fi
24040if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24041  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24042Usually this means the macro was only invoked conditionally." >&5
24043echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24044Usually this means the macro was only invoked conditionally." >&2;}
24045   { (exit 1); exit 1; }; }
24046fi
24047if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24048  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24049Usually this means the macro was only invoked conditionally." >&5
24050echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24051Usually this means the macro was only invoked conditionally." >&2;}
24052   { (exit 1); exit 1; }; }
24053fi
24054if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
24055  { { echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined.
24056Usually this means the macro was only invoked conditionally." >&5
24057echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined.
24058Usually this means the macro was only invoked conditionally." >&2;}
24059   { (exit 1); exit 1; }; }
24060fi
24061if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
24062  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
24063Usually this means the macro was only invoked conditionally." >&5
24064echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
24065Usually this means the macro was only invoked conditionally." >&2;}
24066   { (exit 1); exit 1; }; }
24067fi
24068if test -z "${BUILD_LIBGAMIN_TRUE}" && test -z "${BUILD_LIBGAMIN_FALSE}"; then
24069  { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBGAMIN\" was never defined.
24070Usually this means the macro was only invoked conditionally." >&5
24071echo "$as_me: error: conditional \"BUILD_LIBGAMIN\" was never defined.
24072Usually this means the macro was only invoked conditionally." >&2;}
24073   { (exit 1); exit 1; }; }
24074fi
24075if test -z "${BUILD_SERVER_TRUE}" && test -z "${BUILD_SERVER_FALSE}"; then
24076  { { echo "$as_me:$LINENO: error: conditional \"BUILD_SERVER\" was never defined.
24077Usually this means the macro was only invoked conditionally." >&5
24078echo "$as_me: error: conditional \"BUILD_SERVER\" was never defined.
24079Usually this means the macro was only invoked conditionally." >&2;}
24080   { (exit 1); exit 1; }; }
24081fi
24082if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
24083  { { echo "$as_me:$LINENO: error: conditional \"BUILD_TESTS\" was never defined.
24084Usually this means the macro was only invoked conditionally." >&5
24085echo "$as_me: error: conditional \"BUILD_TESTS\" was never defined.
24086Usually this means the macro was only invoked conditionally." >&2;}
24087   { (exit 1); exit 1; }; }
24088fi
24089if test -z "${GAMIN_DEBUG_TRUE}" && test -z "${GAMIN_DEBUG_FALSE}"; then
24090  { { echo "$as_me:$LINENO: error: conditional \"GAMIN_DEBUG\" was never defined.
24091Usually this means the macro was only invoked conditionally." >&5
24092echo "$as_me: error: conditional \"GAMIN_DEBUG\" was never defined.
24093Usually this means the macro was only invoked conditionally." >&2;}
24094   { (exit 1); exit 1; }; }
24095fi
24096if test -z "${ENABLE_INOTIFY_TRUE}" && test -z "${ENABLE_INOTIFY_FALSE}"; then
24097  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_INOTIFY\" was never defined.
24098Usually this means the macro was only invoked conditionally." >&5
24099echo "$as_me: error: conditional \"ENABLE_INOTIFY\" was never defined.
24100Usually this means the macro was only invoked conditionally." >&2;}
24101   { (exit 1); exit 1; }; }
24102fi
24103if test -z "${ENABLE_DNOTIFY_TRUE}" && test -z "${ENABLE_DNOTIFY_FALSE}"; then
24104  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DNOTIFY\" was never defined.
24105Usually this means the macro was only invoked conditionally." >&5
24106echo "$as_me: error: conditional \"ENABLE_DNOTIFY\" was never defined.
24107Usually this means the macro was only invoked conditionally." >&2;}
24108   { (exit 1); exit 1; }; }
24109fi
24110if test -z "${ENABLE_KQUEUE_TRUE}" && test -z "${ENABLE_KQUEUE_FALSE}"; then
24111  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_KQUEUE\" was never defined.
24112Usually this means the macro was only invoked conditionally." >&5
24113echo "$as_me: error: conditional \"ENABLE_KQUEUE\" was never defined.
24114Usually this means the macro was only invoked conditionally." >&2;}
24115   { (exit 1); exit 1; }; }
24116fi
24117if test -z "${ENABLE_HURD_MACH_NOTIFY_TRUE}" && test -z "${ENABLE_HURD_MACH_NOTIFY_FALSE}"; then
24118  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_HURD_MACH_NOTIFY\" was never defined.
24119Usually this means the macro was only invoked conditionally." >&5
24120echo "$as_me: error: conditional \"ENABLE_HURD_MACH_NOTIFY\" was never defined.
24121Usually this means the macro was only invoked conditionally." >&2;}
24122   { (exit 1); exit 1; }; }
24123fi
24124if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
24125  { { echo "$as_me:$LINENO: error: conditional \"WITH_PYTHON\" was never defined.
24126Usually this means the macro was only invoked conditionally." >&5
24127echo "$as_me: error: conditional \"WITH_PYTHON\" was never defined.
24128Usually this means the macro was only invoked conditionally." >&2;}
24129   { (exit 1); exit 1; }; }
24130fi
24131
24132: ${CONFIG_STATUS=./config.status}
24133ac_clean_files_save=$ac_clean_files
24134ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24135{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24136echo "$as_me: creating $CONFIG_STATUS" >&6;}
24137cat >$CONFIG_STATUS <<_ACEOF
24138#! $SHELL
24139# Generated by $as_me.
24140# Run this file to recreate the current configuration.
24141# Compiler output produced by configure, useful for debugging
24142# configure, is in config.log if it exists.
24143
24144debug=false
24145ac_cs_recheck=false
24146ac_cs_silent=false
24147SHELL=\${CONFIG_SHELL-$SHELL}
24148_ACEOF
24149
24150cat >>$CONFIG_STATUS <<\_ACEOF
24151## --------------------- ##
24152## M4sh Initialization.  ##
24153## --------------------- ##
24154
24155# Be more Bourne compatible
24156DUALCASE=1; export DUALCASE # for MKS sh
24157if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24158  emulate sh
24159  NULLCMD=:
24160  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24161  # is contrary to our usage.  Disable this feature.
24162  alias -g '${1+"$@"}'='"$@"'
24163  setopt NO_GLOB_SUBST
24164else
24165  case `(set -o) 2>/dev/null` in
24166  *posix*) set -o posix ;;
24167esac
24168
24169fi
24170
24171
24172
24173
24174# PATH needs CR
24175# Avoid depending upon Character Ranges.
24176as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24177as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24178as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24179as_cr_digits='0123456789'
24180as_cr_alnum=$as_cr_Letters$as_cr_digits
24181
24182# The user is always right.
24183if test "${PATH_SEPARATOR+set}" != set; then
24184  echo "#! /bin/sh" >conf$$.sh
24185  echo  "exit 0"   >>conf$$.sh
24186  chmod +x conf$$.sh
24187  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24188    PATH_SEPARATOR=';'
24189  else
24190    PATH_SEPARATOR=:
24191  fi
24192  rm -f conf$$.sh
24193fi
24194
24195# Support unset when possible.
24196if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24197  as_unset=unset
24198else
24199  as_unset=false
24200fi
24201
24202
24203# IFS
24204# We need space, tab and new line, in precisely that order.  Quoting is
24205# there to prevent editors from complaining about space-tab.
24206# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24207# splitting by setting IFS to empty value.)
24208as_nl='
24209'
24210IFS=" ""	$as_nl"
24211
24212# Find who we are.  Look in the path if we contain no directory separator.
24213case $0 in
24214  *[\\/]* ) as_myself=$0 ;;
24215  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24216for as_dir in $PATH
24217do
24218  IFS=$as_save_IFS
24219  test -z "$as_dir" && as_dir=.
24220  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24221done
24222IFS=$as_save_IFS
24223
24224     ;;
24225esac
24226# We did not find ourselves, most probably we were run as `sh COMMAND'
24227# in which case we are not to be found in the path.
24228if test "x$as_myself" = x; then
24229  as_myself=$0
24230fi
24231if test ! -f "$as_myself"; then
24232  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24233  { (exit 1); exit 1; }
24234fi
24235
24236# Work around bugs in pre-3.0 UWIN ksh.
24237for as_var in ENV MAIL MAILPATH
24238do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24239done
24240PS1='$ '
24241PS2='> '
24242PS4='+ '
24243
24244# NLS nuisances.
24245for as_var in \
24246  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24247  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24248  LC_TELEPHONE LC_TIME
24249do
24250  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24251    eval $as_var=C; export $as_var
24252  else
24253    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24254  fi
24255done
24256
24257# Required to use basename.
24258if expr a : '\(a\)' >/dev/null 2>&1 &&
24259   test "X`expr 00001 : '.*\(...\)'`" = X001; then
24260  as_expr=expr
24261else
24262  as_expr=false
24263fi
24264
24265if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24266  as_basename=basename
24267else
24268  as_basename=false
24269fi
24270
24271
24272# Name of the executable.
24273as_me=`$as_basename -- "$0" ||
24274$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24275	 X"$0" : 'X\(//\)$' \| \
24276	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24277echo X/"$0" |
24278    sed '/^.*\/\([^/][^/]*\)\/*$/{
24279	    s//\1/
24280	    q
24281	  }
24282	  /^X\/\(\/\/\)$/{
24283	    s//\1/
24284	    q
24285	  }
24286	  /^X\/\(\/\).*/{
24287	    s//\1/
24288	    q
24289	  }
24290	  s/.*/./; q'`
24291
24292# CDPATH.
24293$as_unset CDPATH
24294
24295
24296
24297  as_lineno_1=$LINENO
24298  as_lineno_2=$LINENO
24299  test "x$as_lineno_1" != "x$as_lineno_2" &&
24300  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24301
24302  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24303  # uniformly replaced by the line number.  The first 'sed' inserts a
24304  # line-number line after each line using $LINENO; the second 'sed'
24305  # does the real work.  The second script uses 'N' to pair each
24306  # line-number line with the line containing $LINENO, and appends
24307  # trailing '-' during substitution so that $LINENO is not a special
24308  # case at line end.
24309  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24310  # scripts with optimization help from Paolo Bonzini.  Blame Lee
24311  # E. McMahon (1931-1989) for sed's syntax.  :-)
24312  sed -n '
24313    p
24314    /[$]LINENO/=
24315  ' <$as_myself |
24316    sed '
24317      s/[$]LINENO.*/&-/
24318      t lineno
24319      b
24320      :lineno
24321      N
24322      :loop
24323      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24324      t loop
24325      s/-\n.*//
24326    ' >$as_me.lineno &&
24327  chmod +x "$as_me.lineno" ||
24328    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24329   { (exit 1); exit 1; }; }
24330
24331  # Don't try to exec as it changes $[0], causing all sort of problems
24332  # (the dirname of $[0] is not the place where we might find the
24333  # original and so on.  Autoconf is especially sensitive to this).
24334  . "./$as_me.lineno"
24335  # Exit status is that of the last command.
24336  exit
24337}
24338
24339
24340if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24341  as_dirname=dirname
24342else
24343  as_dirname=false
24344fi
24345
24346ECHO_C= ECHO_N= ECHO_T=
24347case `echo -n x` in
24348-n*)
24349  case `echo 'x\c'` in
24350  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
24351  *)   ECHO_C='\c';;
24352  esac;;
24353*)
24354  ECHO_N='-n';;
24355esac
24356
24357if expr a : '\(a\)' >/dev/null 2>&1 &&
24358   test "X`expr 00001 : '.*\(...\)'`" = X001; then
24359  as_expr=expr
24360else
24361  as_expr=false
24362fi
24363
24364rm -f conf$$ conf$$.exe conf$$.file
24365if test -d conf$$.dir; then
24366  rm -f conf$$.dir/conf$$.file
24367else
24368  rm -f conf$$.dir
24369  mkdir conf$$.dir
24370fi
24371echo >conf$$.file
24372if ln -s conf$$.file conf$$ 2>/dev/null; then
24373  as_ln_s='ln -s'
24374  # ... but there are two gotchas:
24375  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24376  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24377  # In both cases, we have to default to `cp -p'.
24378  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24379    as_ln_s='cp -p'
24380elif ln conf$$.file conf$$ 2>/dev/null; then
24381  as_ln_s=ln
24382else
24383  as_ln_s='cp -p'
24384fi
24385rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24386rmdir conf$$.dir 2>/dev/null
24387
24388if mkdir -p . 2>/dev/null; then
24389  as_mkdir_p=:
24390else
24391  test -d ./-p && rmdir ./-p
24392  as_mkdir_p=false
24393fi
24394
24395if test -x / >/dev/null 2>&1; then
24396  as_test_x='test -x'
24397else
24398  if ls -dL / >/dev/null 2>&1; then
24399    as_ls_L_option=L
24400  else
24401    as_ls_L_option=
24402  fi
24403  as_test_x='
24404    eval sh -c '\''
24405      if test -d "$1"; then
24406        test -d "$1/.";
24407      else
24408	case $1 in
24409        -*)set "./$1";;
24410	esac;
24411	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24412	???[sx]*):;;*)false;;esac;fi
24413    '\'' sh
24414  '
24415fi
24416as_executable_p=$as_test_x
24417
24418# Sed expression to map a string onto a valid CPP name.
24419as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24420
24421# Sed expression to map a string onto a valid variable name.
24422as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24423
24424
24425exec 6>&1
24426
24427# Save the log message, to keep $[0] and so on meaningful, and to
24428# report actual input values of CONFIG_FILES etc. instead of their
24429# values after options handling.
24430ac_log="
24431This file was extended by $as_me, which was
24432generated by GNU Autoconf 2.61.  Invocation command line was
24433
24434  CONFIG_FILES    = $CONFIG_FILES
24435  CONFIG_HEADERS  = $CONFIG_HEADERS
24436  CONFIG_LINKS    = $CONFIG_LINKS
24437  CONFIG_COMMANDS = $CONFIG_COMMANDS
24438  $ $0 $@
24439
24440on `(hostname || uname -n) 2>/dev/null | sed 1q`
24441"
24442
24443_ACEOF
24444
24445cat >>$CONFIG_STATUS <<_ACEOF
24446# Files that config.status was made for.
24447config_files="$ac_config_files"
24448config_headers="$ac_config_headers"
24449config_commands="$ac_config_commands"
24450
24451_ACEOF
24452
24453cat >>$CONFIG_STATUS <<\_ACEOF
24454ac_cs_usage="\
24455\`$as_me' instantiates files from templates according to the
24456current configuration.
24457
24458Usage: $0 [OPTIONS] [FILE]...
24459
24460  -h, --help       print this help, then exit
24461  -V, --version    print version number and configuration settings, then exit
24462  -q, --quiet      do not print progress messages
24463  -d, --debug      don't remove temporary files
24464      --recheck    update $as_me by reconfiguring in the same conditions
24465  --file=FILE[:TEMPLATE]
24466		   instantiate the configuration file FILE
24467  --header=FILE[:TEMPLATE]
24468		   instantiate the configuration header FILE
24469
24470Configuration files:
24471$config_files
24472
24473Configuration headers:
24474$config_headers
24475
24476Configuration commands:
24477$config_commands
24478
24479Report bugs to <bug-autoconf@gnu.org>."
24480
24481_ACEOF
24482cat >>$CONFIG_STATUS <<_ACEOF
24483ac_cs_version="\\
24484config.status
24485configured by $0, generated by GNU Autoconf 2.61,
24486  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24487
24488Copyright (C) 2006 Free Software Foundation, Inc.
24489This config.status script is free software; the Free Software Foundation
24490gives unlimited permission to copy, distribute and modify it."
24491
24492ac_pwd='$ac_pwd'
24493srcdir='$srcdir'
24494INSTALL='$INSTALL'
24495MKDIR_P='$MKDIR_P'
24496_ACEOF
24497
24498cat >>$CONFIG_STATUS <<\_ACEOF
24499# If no file are specified by the user, then we need to provide default
24500# value.  By we need to know if files were specified by the user.
24501ac_need_defaults=:
24502while test $# != 0
24503do
24504  case $1 in
24505  --*=*)
24506    ac_option=`expr "X$1" : 'X\([^=]*\)='`
24507    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24508    ac_shift=:
24509    ;;
24510  *)
24511    ac_option=$1
24512    ac_optarg=$2
24513    ac_shift=shift
24514    ;;
24515  esac
24516
24517  case $ac_option in
24518  # Handling of the options.
24519  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24520    ac_cs_recheck=: ;;
24521  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24522    echo "$ac_cs_version"; exit ;;
24523  --debug | --debu | --deb | --de | --d | -d )
24524    debug=: ;;
24525  --file | --fil | --fi | --f )
24526    $ac_shift
24527    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24528    ac_need_defaults=false;;
24529  --header | --heade | --head | --hea )
24530    $ac_shift
24531    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24532    ac_need_defaults=false;;
24533  --he | --h)
24534    # Conflict between --help and --header
24535    { echo "$as_me: error: ambiguous option: $1
24536Try \`$0 --help' for more information." >&2
24537   { (exit 1); exit 1; }; };;
24538  --help | --hel | -h )
24539    echo "$ac_cs_usage"; exit ;;
24540  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24541  | -silent | --silent | --silen | --sile | --sil | --si | --s)
24542    ac_cs_silent=: ;;
24543
24544  # This is an error.
24545  -*) { echo "$as_me: error: unrecognized option: $1
24546Try \`$0 --help' for more information." >&2
24547   { (exit 1); exit 1; }; } ;;
24548
24549  *) ac_config_targets="$ac_config_targets $1"
24550     ac_need_defaults=false ;;
24551
24552  esac
24553  shift
24554done
24555
24556ac_configure_extra_args=
24557
24558if $ac_cs_silent; then
24559  exec 6>/dev/null
24560  ac_configure_extra_args="$ac_configure_extra_args --silent"
24561fi
24562
24563_ACEOF
24564cat >>$CONFIG_STATUS <<_ACEOF
24565if \$ac_cs_recheck; then
24566  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24567  CONFIG_SHELL=$SHELL
24568  export CONFIG_SHELL
24569  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24570fi
24571
24572_ACEOF
24573cat >>$CONFIG_STATUS <<\_ACEOF
24574exec 5>>config.log
24575{
24576  echo
24577  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24578## Running $as_me. ##
24579_ASBOX
24580  echo "$ac_log"
24581} >&5
24582
24583_ACEOF
24584cat >>$CONFIG_STATUS <<_ACEOF
24585#
24586# INIT-COMMANDS
24587#
24588AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24589
24590_ACEOF
24591
24592cat >>$CONFIG_STATUS <<\_ACEOF
24593
24594# Handling of arguments.
24595for ac_config_target in $ac_config_targets
24596do
24597  case $ac_config_target in
24598    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24599    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24600    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24601    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24602    "libgamin/Makefile") CONFIG_FILES="$CONFIG_FILES libgamin/Makefile" ;;
24603    "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
24604    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
24605    "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
24606    "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
24607    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24608    "gamin.pc") CONFIG_FILES="$CONFIG_FILES gamin.pc" ;;
24609    "gamin.spec") CONFIG_FILES="$CONFIG_FILES gamin.spec" ;;
24610
24611  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24612echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24613   { (exit 1); exit 1; }; };;
24614  esac
24615done
24616
24617
24618# If the user did not use the arguments to specify the items to instantiate,
24619# then the envvar interface is used.  Set only those that are not.
24620# We use the long form for the default assignment because of an extremely
24621# bizarre bug on SunOS 4.1.3.
24622if $ac_need_defaults; then
24623  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24624  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24625  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24626fi
24627
24628# Have a temporary directory for convenience.  Make it in the build tree
24629# simply because there is no reason against having it here, and in addition,
24630# creating and moving files from /tmp can sometimes cause problems.
24631# Hook for its removal unless debugging.
24632# Note that there is a small window in which the directory will not be cleaned:
24633# after its creation but before its name has been assigned to `$tmp'.
24634$debug ||
24635{
24636  tmp=
24637  trap 'exit_status=$?
24638  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24639' 0
24640  trap '{ (exit 1); exit 1; }' 1 2 13 15
24641}
24642# Create a (secure) tmp directory for tmp files.
24643
24644{
24645  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24646  test -n "$tmp" && test -d "$tmp"
24647}  ||
24648{
24649  tmp=./conf$$-$RANDOM
24650  (umask 077 && mkdir "$tmp")
24651} ||
24652{
24653   echo "$me: cannot create a temporary directory in ." >&2
24654   { (exit 1); exit 1; }
24655}
24656
24657#
24658# Set up the sed scripts for CONFIG_FILES section.
24659#
24660
24661# No need to generate the scripts if there are no CONFIG_FILES.
24662# This happens for instance when ./config.status config.h
24663if test -n "$CONFIG_FILES"; then
24664
24665_ACEOF
24666
24667
24668
24669ac_delim='%!_!# '
24670for ac_last_try in false false false false false :; do
24671  cat >conf$$subs.sed <<_ACEOF
24672SHELL!$SHELL$ac_delim
24673PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24674PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24675PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24676PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24677PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24678PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24679exec_prefix!$exec_prefix$ac_delim
24680prefix!$prefix$ac_delim
24681program_transform_name!$program_transform_name$ac_delim
24682bindir!$bindir$ac_delim
24683sbindir!$sbindir$ac_delim
24684libexecdir!$libexecdir$ac_delim
24685datarootdir!$datarootdir$ac_delim
24686datadir!$datadir$ac_delim
24687sysconfdir!$sysconfdir$ac_delim
24688sharedstatedir!$sharedstatedir$ac_delim
24689localstatedir!$localstatedir$ac_delim
24690includedir!$includedir$ac_delim
24691oldincludedir!$oldincludedir$ac_delim
24692docdir!$docdir$ac_delim
24693infodir!$infodir$ac_delim
24694htmldir!$htmldir$ac_delim
24695dvidir!$dvidir$ac_delim
24696pdfdir!$pdfdir$ac_delim
24697psdir!$psdir$ac_delim
24698libdir!$libdir$ac_delim
24699localedir!$localedir$ac_delim
24700mandir!$mandir$ac_delim
24701DEFS!$DEFS$ac_delim
24702ECHO_C!$ECHO_C$ac_delim
24703ECHO_N!$ECHO_N$ac_delim
24704ECHO_T!$ECHO_T$ac_delim
24705LIBS!$LIBS$ac_delim
24706build_alias!$build_alias$ac_delim
24707host_alias!$host_alias$ac_delim
24708target_alias!$target_alias$ac_delim
24709build!$build$ac_delim
24710build_cpu!$build_cpu$ac_delim
24711build_vendor!$build_vendor$ac_delim
24712build_os!$build_os$ac_delim
24713host!$host$ac_delim
24714host_cpu!$host_cpu$ac_delim
24715host_vendor!$host_vendor$ac_delim
24716host_os!$host_os$ac_delim
24717target!$target$ac_delim
24718target_cpu!$target_cpu$ac_delim
24719target_vendor!$target_vendor$ac_delim
24720target_os!$target_os$ac_delim
24721GAMIN_MAJOR_VERSION!$GAMIN_MAJOR_VERSION$ac_delim
24722GAMIN_MINOR_VERSION!$GAMIN_MINOR_VERSION$ac_delim
24723GAMIN_MICRO_VERSION!$GAMIN_MICRO_VERSION$ac_delim
24724GAMIN_VERSION!$GAMIN_VERSION$ac_delim
24725GAMIN_VERSION_INFO!$GAMIN_VERSION_INFO$ac_delim
24726FAM_VERSION_INFO!$FAM_VERSION_INFO$ac_delim
24727INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24728INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24729INSTALL_DATA!$INSTALL_DATA$ac_delim
24730am__isrc!$am__isrc$ac_delim
24731CYGPATH_W!$CYGPATH_W$ac_delim
24732PACKAGE!$PACKAGE$ac_delim
24733VERSION!$VERSION$ac_delim
24734ACLOCAL!$ACLOCAL$ac_delim
24735AUTOCONF!$AUTOCONF$ac_delim
24736AUTOMAKE!$AUTOMAKE$ac_delim
24737AUTOHEADER!$AUTOHEADER$ac_delim
24738MAKEINFO!$MAKEINFO$ac_delim
24739install_sh!$install_sh$ac_delim
24740STRIP!$STRIP$ac_delim
24741INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24742mkdir_p!$mkdir_p$ac_delim
24743AWK!$AWK$ac_delim
24744SET_MAKE!$SET_MAKE$ac_delim
24745am__leading_dot!$am__leading_dot$ac_delim
24746AMTAR!$AMTAR$ac_delim
24747am__tar!$am__tar$ac_delim
24748am__untar!$am__untar$ac_delim
24749CC!$CC$ac_delim
24750CFLAGS!$CFLAGS$ac_delim
24751LDFLAGS!$LDFLAGS$ac_delim
24752CPPFLAGS!$CPPFLAGS$ac_delim
24753ac_ct_CC!$ac_ct_CC$ac_delim
24754EXEEXT!$EXEEXT$ac_delim
24755OBJEXT!$OBJEXT$ac_delim
24756DEPDIR!$DEPDIR$ac_delim
24757am__include!$am__include$ac_delim
24758am__quote!$am__quote$ac_delim
24759AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24760AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24761AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24762CCDEPMODE!$CCDEPMODE$ac_delim
24763am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24764am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24765SED!$SED$ac_delim
24766GREP!$GREP$ac_delim
24767EGREP!$EGREP$ac_delim
24768LN_S!$LN_S$ac_delim
24769_ACEOF
24770
24771  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24772    break
24773  elif $ac_last_try; then
24774    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24775echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24776   { (exit 1); exit 1; }; }
24777  else
24778    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24779  fi
24780done
24781
24782ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24783if test -n "$ac_eof"; then
24784  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24785  ac_eof=`expr $ac_eof + 1`
24786fi
24787
24788cat >>$CONFIG_STATUS <<_ACEOF
24789cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24790/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24791_ACEOF
24792sed '
24793s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24794s/^/s,@/; s/!/@,|#_!!_#|/
24795:n
24796t n
24797s/'"$ac_delim"'$/,g/; t
24798s/$/\\/; p
24799N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24800' >>$CONFIG_STATUS <conf$$subs.sed
24801rm -f conf$$subs.sed
24802cat >>$CONFIG_STATUS <<_ACEOF
24803CEOF$ac_eof
24804_ACEOF
24805
24806
24807ac_delim='%!_!# '
24808for ac_last_try in false false false false false :; do
24809  cat >conf$$subs.sed <<_ACEOF
24810ECHO!$ECHO$ac_delim
24811AR!$AR$ac_delim
24812RANLIB!$RANLIB$ac_delim
24813CPP!$CPP$ac_delim
24814CXX!$CXX$ac_delim
24815CXXFLAGS!$CXXFLAGS$ac_delim
24816ac_ct_CXX!$ac_ct_CXX$ac_delim
24817CXXDEPMODE!$CXXDEPMODE$ac_delim
24818am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24819am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24820CXXCPP!$CXXCPP$ac_delim
24821F77!$F77$ac_delim
24822FFLAGS!$FFLAGS$ac_delim
24823ac_ct_F77!$ac_ct_F77$ac_delim
24824LIBTOOL!$LIBTOOL$ac_delim
24825RELDATE!$RELDATE$ac_delim
24826BUILD_DOCS_TRUE!$BUILD_DOCS_TRUE$ac_delim
24827BUILD_DOCS_FALSE!$BUILD_DOCS_FALSE$ac_delim
24828HTML_DIR!$HTML_DIR$ac_delim
24829ENABLE_GTK_DOC_TRUE!$ENABLE_GTK_DOC_TRUE$ac_delim
24830ENABLE_GTK_DOC_FALSE!$ENABLE_GTK_DOC_FALSE$ac_delim
24831BUILD_LIBGAMIN_TRUE!$BUILD_LIBGAMIN_TRUE$ac_delim
24832BUILD_LIBGAMIN_FALSE!$BUILD_LIBGAMIN_FALSE$ac_delim
24833PKG_CONFIG!$PKG_CONFIG$ac_delim
24834DAEMON_CFLAGS!$DAEMON_CFLAGS$ac_delim
24835DAEMON_LIBS!$DAEMON_LIBS$ac_delim
24836BUILD_SERVER_TRUE!$BUILD_SERVER_TRUE$ac_delim
24837BUILD_SERVER_FALSE!$BUILD_SERVER_FALSE$ac_delim
24838TEST_CFLAGS!$TEST_CFLAGS$ac_delim
24839TEST_LIBS!$TEST_LIBS$ac_delim
24840BUILD_TESTS_TRUE!$BUILD_TESTS_TRUE$ac_delim
24841BUILD_TESTS_FALSE!$BUILD_TESTS_FALSE$ac_delim
24842GAMIN_DEBUG_TRUE!$GAMIN_DEBUG_TRUE$ac_delim
24843GAMIN_DEBUG_FALSE!$GAMIN_DEBUG_FALSE$ac_delim
24844ENABLE_INOTIFY_TRUE!$ENABLE_INOTIFY_TRUE$ac_delim
24845ENABLE_INOTIFY_FALSE!$ENABLE_INOTIFY_FALSE$ac_delim
24846ENABLE_DNOTIFY_TRUE!$ENABLE_DNOTIFY_TRUE$ac_delim
24847ENABLE_DNOTIFY_FALSE!$ENABLE_DNOTIFY_FALSE$ac_delim
24848ENABLE_KQUEUE_TRUE!$ENABLE_KQUEUE_TRUE$ac_delim
24849ENABLE_KQUEUE_FALSE!$ENABLE_KQUEUE_FALSE$ac_delim
24850THREAD_LIBS!$THREAD_LIBS$ac_delim
24851WITH_THREADS!$WITH_THREADS$ac_delim
24852ENABLE_HURD_MACH_NOTIFY_TRUE!$ENABLE_HURD_MACH_NOTIFY_TRUE$ac_delim
24853ENABLE_HURD_MACH_NOTIFY_FALSE!$ENABLE_HURD_MACH_NOTIFY_FALSE$ac_delim
24854MIG!$MIG$ac_delim
24855PYTHON!$PYTHON$ac_delim
24856WITH_PYTHON_TRUE!$WITH_PYTHON_TRUE$ac_delim
24857WITH_PYTHON_FALSE!$WITH_PYTHON_FALSE$ac_delim
24858pythondir!$pythondir$ac_delim
24859PYTHON_VERSION!$PYTHON_VERSION$ac_delim
24860PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
24861PYTHON_SITE_PACKAGES!$PYTHON_SITE_PACKAGES$ac_delim
24862AM_CFLAGS!$AM_CFLAGS$ac_delim
24863LIBOBJS!$LIBOBJS$ac_delim
24864LTLIBOBJS!$LTLIBOBJS$ac_delim
24865_ACEOF
24866
24867  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then
24868    break
24869  elif $ac_last_try; then
24870    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24871echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24872   { (exit 1); exit 1; }; }
24873  else
24874    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24875  fi
24876done
24877
24878ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24879if test -n "$ac_eof"; then
24880  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24881  ac_eof=`expr $ac_eof + 1`
24882fi
24883
24884cat >>$CONFIG_STATUS <<_ACEOF
24885cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24886/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24887_ACEOF
24888sed '
24889s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24890s/^/s,@/; s/!/@,|#_!!_#|/
24891:n
24892t n
24893s/'"$ac_delim"'$/,g/; t
24894s/$/\\/; p
24895N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24896' >>$CONFIG_STATUS <conf$$subs.sed
24897rm -f conf$$subs.sed
24898cat >>$CONFIG_STATUS <<_ACEOF
24899:end
24900s/|#_!!_#|//g
24901CEOF$ac_eof
24902_ACEOF
24903
24904
24905# VPATH may cause trouble with some makes, so we remove $(srcdir),
24906# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24907# trailing colons and then remove the whole line if VPATH becomes empty
24908# (actually we leave an empty line to preserve line numbers).
24909if test "x$srcdir" = x.; then
24910  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
24911s/:*\$(srcdir):*/:/
24912s/:*\${srcdir}:*/:/
24913s/:*@srcdir@:*/:/
24914s/^\([^=]*=[	 ]*\):*/\1/
24915s/:*$//
24916s/^[^=]*=[	 ]*$//
24917}'
24918fi
24919
24920cat >>$CONFIG_STATUS <<\_ACEOF
24921fi # test -n "$CONFIG_FILES"
24922
24923
24924for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24925do
24926  case $ac_tag in
24927  :[FHLC]) ac_mode=$ac_tag; continue;;
24928  esac
24929  case $ac_mode$ac_tag in
24930  :[FHL]*:*);;
24931  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24932echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24933   { (exit 1); exit 1; }; };;
24934  :[FH]-) ac_tag=-:-;;
24935  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24936  esac
24937  ac_save_IFS=$IFS
24938  IFS=:
24939  set x $ac_tag
24940  IFS=$ac_save_IFS
24941  shift
24942  ac_file=$1
24943  shift
24944
24945  case $ac_mode in
24946  :L) ac_source=$1;;
24947  :[FH])
24948    ac_file_inputs=
24949    for ac_f
24950    do
24951      case $ac_f in
24952      -) ac_f="$tmp/stdin";;
24953      *) # Look for the file first in the build tree, then in the source tree
24954	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
24955	 # because $ac_f cannot contain `:'.
24956	 test -f "$ac_f" ||
24957	   case $ac_f in
24958	   [\\/$]*) false;;
24959	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24960	   esac ||
24961	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24962echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24963   { (exit 1); exit 1; }; };;
24964      esac
24965      ac_file_inputs="$ac_file_inputs $ac_f"
24966    done
24967
24968    # Let's still pretend it is `configure' which instantiates (i.e., don't
24969    # use $as_me), people would be surprised to read:
24970    #    /* config.h.  Generated by config.status.  */
24971    configure_input="Generated from "`IFS=:
24972	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24973    if test x"$ac_file" != x-; then
24974      configure_input="$ac_file.  $configure_input"
24975      { echo "$as_me:$LINENO: creating $ac_file" >&5
24976echo "$as_me: creating $ac_file" >&6;}
24977    fi
24978
24979    case $ac_tag in
24980    *:-:* | *:-) cat >"$tmp/stdin";;
24981    esac
24982    ;;
24983  esac
24984
24985  ac_dir=`$as_dirname -- "$ac_file" ||
24986$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24987	 X"$ac_file" : 'X\(//\)[^/]' \| \
24988	 X"$ac_file" : 'X\(//\)$' \| \
24989	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24990echo X"$ac_file" |
24991    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24992	    s//\1/
24993	    q
24994	  }
24995	  /^X\(\/\/\)[^/].*/{
24996	    s//\1/
24997	    q
24998	  }
24999	  /^X\(\/\/\)$/{
25000	    s//\1/
25001	    q
25002	  }
25003	  /^X\(\/\).*/{
25004	    s//\1/
25005	    q
25006	  }
25007	  s/.*/./; q'`
25008  { as_dir="$ac_dir"
25009  case $as_dir in #(
25010  -*) as_dir=./$as_dir;;
25011  esac
25012  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25013    as_dirs=
25014    while :; do
25015      case $as_dir in #(
25016      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25017      *) as_qdir=$as_dir;;
25018      esac
25019      as_dirs="'$as_qdir' $as_dirs"
25020      as_dir=`$as_dirname -- "$as_dir" ||
25021$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25022	 X"$as_dir" : 'X\(//\)[^/]' \| \
25023	 X"$as_dir" : 'X\(//\)$' \| \
25024	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25025echo X"$as_dir" |
25026    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25027	    s//\1/
25028	    q
25029	  }
25030	  /^X\(\/\/\)[^/].*/{
25031	    s//\1/
25032	    q
25033	  }
25034	  /^X\(\/\/\)$/{
25035	    s//\1/
25036	    q
25037	  }
25038	  /^X\(\/\).*/{
25039	    s//\1/
25040	    q
25041	  }
25042	  s/.*/./; q'`
25043      test -d "$as_dir" && break
25044    done
25045    test -z "$as_dirs" || eval "mkdir $as_dirs"
25046  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25047echo "$as_me: error: cannot create directory $as_dir" >&2;}
25048   { (exit 1); exit 1; }; }; }
25049  ac_builddir=.
25050
25051case "$ac_dir" in
25052.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25053*)
25054  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25055  # A ".." for each directory in $ac_dir_suffix.
25056  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25057  case $ac_top_builddir_sub in
25058  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25059  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25060  esac ;;
25061esac
25062ac_abs_top_builddir=$ac_pwd
25063ac_abs_builddir=$ac_pwd$ac_dir_suffix
25064# for backward compatibility:
25065ac_top_builddir=$ac_top_build_prefix
25066
25067case $srcdir in
25068  .)  # We are building in place.
25069    ac_srcdir=.
25070    ac_top_srcdir=$ac_top_builddir_sub
25071    ac_abs_top_srcdir=$ac_pwd ;;
25072  [\\/]* | ?:[\\/]* )  # Absolute name.
25073    ac_srcdir=$srcdir$ac_dir_suffix;
25074    ac_top_srcdir=$srcdir
25075    ac_abs_top_srcdir=$srcdir ;;
25076  *) # Relative name.
25077    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25078    ac_top_srcdir=$ac_top_build_prefix$srcdir
25079    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25080esac
25081ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25082
25083
25084  case $ac_mode in
25085  :F)
25086  #
25087  # CONFIG_FILE
25088  #
25089
25090  case $INSTALL in
25091  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25092  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25093  esac
25094  ac_MKDIR_P=$MKDIR_P
25095  case $MKDIR_P in
25096  [\\/$]* | ?:[\\/]* ) ;;
25097  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25098  esac
25099_ACEOF
25100
25101cat >>$CONFIG_STATUS <<\_ACEOF
25102# If the template does not know about datarootdir, expand it.
25103# FIXME: This hack should be removed a few years after 2.60.
25104ac_datarootdir_hack=; ac_datarootdir_seen=
25105
25106case `sed -n '/datarootdir/ {
25107  p
25108  q
25109}
25110/@datadir@/p
25111/@docdir@/p
25112/@infodir@/p
25113/@localedir@/p
25114/@mandir@/p
25115' $ac_file_inputs` in
25116*datarootdir*) ac_datarootdir_seen=yes;;
25117*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25118  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25119echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25120_ACEOF
25121cat >>$CONFIG_STATUS <<_ACEOF
25122  ac_datarootdir_hack='
25123  s&@datadir@&$datadir&g
25124  s&@docdir@&$docdir&g
25125  s&@infodir@&$infodir&g
25126  s&@localedir@&$localedir&g
25127  s&@mandir@&$mandir&g
25128    s&\\\${datarootdir}&$datarootdir&g' ;;
25129esac
25130_ACEOF
25131
25132# Neutralize VPATH when `$srcdir' = `.'.
25133# Shell code in configure.ac might set extrasub.
25134# FIXME: do we really want to maintain this feature?
25135cat >>$CONFIG_STATUS <<_ACEOF
25136  sed "$ac_vpsub
25137$extrasub
25138_ACEOF
25139cat >>$CONFIG_STATUS <<\_ACEOF
25140:t
25141/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25142s&@configure_input@&$configure_input&;t t
25143s&@top_builddir@&$ac_top_builddir_sub&;t t
25144s&@srcdir@&$ac_srcdir&;t t
25145s&@abs_srcdir@&$ac_abs_srcdir&;t t
25146s&@top_srcdir@&$ac_top_srcdir&;t t
25147s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25148s&@builddir@&$ac_builddir&;t t
25149s&@abs_builddir@&$ac_abs_builddir&;t t
25150s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25151s&@INSTALL@&$ac_INSTALL&;t t
25152s&@MKDIR_P@&$ac_MKDIR_P&;t t
25153$ac_datarootdir_hack
25154" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25155
25156test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25157  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25158  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25159  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25160which seems to be undefined.  Please make sure it is defined." >&5
25161echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25162which seems to be undefined.  Please make sure it is defined." >&2;}
25163
25164  rm -f "$tmp/stdin"
25165  case $ac_file in
25166  -) cat "$tmp/out"; rm -f "$tmp/out";;
25167  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25168  esac
25169 ;;
25170  :H)
25171  #
25172  # CONFIG_HEADER
25173  #
25174_ACEOF
25175
25176# Transform confdefs.h into a sed script `conftest.defines', that
25177# substitutes the proper values into config.h.in to produce config.h.
25178rm -f conftest.defines conftest.tail
25179# First, append a space to every undef/define line, to ease matching.
25180echo 's/$/ /' >conftest.defines
25181# Then, protect against being on the right side of a sed subst, or in
25182# an unquoted here document, in config.status.  If some macros were
25183# called several times there might be several #defines for the same
25184# symbol, which is useless.  But do not sort them, since the last
25185# AC_DEFINE must be honored.
25186ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25187# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25188# NAME is the cpp macro being defined, VALUE is the value it is being given.
25189# PARAMS is the parameter list in the macro definition--in most cases, it's
25190# just an empty string.
25191ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
25192ac_dB='\\)[	 (].*,\\1define\\2'
25193ac_dC=' '
25194ac_dD=' ,'
25195
25196uniq confdefs.h |
25197  sed -n '
25198	t rset
25199	:rset
25200	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
25201	t ok
25202	d
25203	:ok
25204	s/[\\&,]/\\&/g
25205	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25206	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25207  ' >>conftest.defines
25208
25209# Remove the space that was appended to ease matching.
25210# Then replace #undef with comments.  This is necessary, for
25211# example, in the case of _POSIX_SOURCE, which is predefined and required
25212# on some systems where configure will not decide to define it.
25213# (The regexp can be short, since the line contains either #define or #undef.)
25214echo 's/ $//
25215s,^[	 #]*u.*,/* & */,' >>conftest.defines
25216
25217# Break up conftest.defines:
25218ac_max_sed_lines=50
25219
25220# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25221# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25222# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25223# et cetera.
25224ac_in='$ac_file_inputs'
25225ac_out='"$tmp/out1"'
25226ac_nxt='"$tmp/out2"'
25227
25228while :
25229do
25230  # Write a here document:
25231    cat >>$CONFIG_STATUS <<_ACEOF
25232    # First, check the format of the line:
25233    cat >"\$tmp/defines.sed" <<\\CEOF
25234/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
25235/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
25236b
25237:def
25238_ACEOF
25239  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25240  echo 'CEOF
25241    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25242  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25243  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25244  grep . conftest.tail >/dev/null || break
25245  rm -f conftest.defines
25246  mv conftest.tail conftest.defines
25247done
25248rm -f conftest.defines conftest.tail
25249
25250echo "ac_result=$ac_in" >>$CONFIG_STATUS
25251cat >>$CONFIG_STATUS <<\_ACEOF
25252  if test x"$ac_file" != x-; then
25253    echo "/* $configure_input  */" >"$tmp/config.h"
25254    cat "$ac_result" >>"$tmp/config.h"
25255    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25256      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25257echo "$as_me: $ac_file is unchanged" >&6;}
25258    else
25259      rm -f $ac_file
25260      mv "$tmp/config.h" $ac_file
25261    fi
25262  else
25263    echo "/* $configure_input  */"
25264    cat "$ac_result"
25265  fi
25266  rm -f "$tmp/out12"
25267# Compute $ac_file's index in $config_headers.
25268_am_arg=$ac_file
25269_am_stamp_count=1
25270for _am_header in $config_headers :; do
25271  case $_am_header in
25272    $_am_arg | $_am_arg:* )
25273      break ;;
25274    * )
25275      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25276  esac
25277done
25278echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25279$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25280	 X"$_am_arg" : 'X\(//\)[^/]' \| \
25281	 X"$_am_arg" : 'X\(//\)$' \| \
25282	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25283echo X"$_am_arg" |
25284    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25285	    s//\1/
25286	    q
25287	  }
25288	  /^X\(\/\/\)[^/].*/{
25289	    s//\1/
25290	    q
25291	  }
25292	  /^X\(\/\/\)$/{
25293	    s//\1/
25294	    q
25295	  }
25296	  /^X\(\/\).*/{
25297	    s//\1/
25298	    q
25299	  }
25300	  s/.*/./; q'`/stamp-h$_am_stamp_count
25301 ;;
25302
25303  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25304echo "$as_me: executing $ac_file commands" >&6;}
25305 ;;
25306  esac
25307
25308
25309  case $ac_file$ac_mode in
25310    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25311  # Strip MF so we end up with the name of the file.
25312  mf=`echo "$mf" | sed -e 's/:.*$//'`
25313  # Check whether this is an Automake generated Makefile or not.
25314  # We used to match only the files named `Makefile.in', but
25315  # some people rename them; so instead we look at the file content.
25316  # Grep'ing the first line is not enough: some people post-process
25317  # each Makefile.in and add a new line on top of each file to say so.
25318  # Grep'ing the whole file is not good either: AIX grep has a line
25319  # limit of 2048, but all sed's we know have understand at least 4000.
25320  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25321    dirpart=`$as_dirname -- "$mf" ||
25322$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25323	 X"$mf" : 'X\(//\)[^/]' \| \
25324	 X"$mf" : 'X\(//\)$' \| \
25325	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25326echo X"$mf" |
25327    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25328	    s//\1/
25329	    q
25330	  }
25331	  /^X\(\/\/\)[^/].*/{
25332	    s//\1/
25333	    q
25334	  }
25335	  /^X\(\/\/\)$/{
25336	    s//\1/
25337	    q
25338	  }
25339	  /^X\(\/\).*/{
25340	    s//\1/
25341	    q
25342	  }
25343	  s/.*/./; q'`
25344  else
25345    continue
25346  fi
25347  # Extract the definition of DEPDIR, am__include, and am__quote
25348  # from the Makefile without running `make'.
25349  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25350  test -z "$DEPDIR" && continue
25351  am__include=`sed -n 's/^am__include = //p' < "$mf"`
25352  test -z "am__include" && continue
25353  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25354  # When using ansi2knr, U may be empty or an underscore; expand it
25355  U=`sed -n 's/^U = //p' < "$mf"`
25356  # Find all dependency output files, they are included files with
25357  # $(DEPDIR) in their names.  We invoke sed twice because it is the
25358  # simplest approach to changing $(DEPDIR) to its actual value in the
25359  # expansion.
25360  for file in `sed -n "
25361    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25362       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25363    # Make sure the directory exists.
25364    test -f "$dirpart/$file" && continue
25365    fdir=`$as_dirname -- "$file" ||
25366$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25367	 X"$file" : 'X\(//\)[^/]' \| \
25368	 X"$file" : 'X\(//\)$' \| \
25369	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25370echo X"$file" |
25371    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25372	    s//\1/
25373	    q
25374	  }
25375	  /^X\(\/\/\)[^/].*/{
25376	    s//\1/
25377	    q
25378	  }
25379	  /^X\(\/\/\)$/{
25380	    s//\1/
25381	    q
25382	  }
25383	  /^X\(\/\).*/{
25384	    s//\1/
25385	    q
25386	  }
25387	  s/.*/./; q'`
25388    { as_dir=$dirpart/$fdir
25389  case $as_dir in #(
25390  -*) as_dir=./$as_dir;;
25391  esac
25392  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25393    as_dirs=
25394    while :; do
25395      case $as_dir in #(
25396      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25397      *) as_qdir=$as_dir;;
25398      esac
25399      as_dirs="'$as_qdir' $as_dirs"
25400      as_dir=`$as_dirname -- "$as_dir" ||
25401$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25402	 X"$as_dir" : 'X\(//\)[^/]' \| \
25403	 X"$as_dir" : 'X\(//\)$' \| \
25404	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25405echo X"$as_dir" |
25406    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25407	    s//\1/
25408	    q
25409	  }
25410	  /^X\(\/\/\)[^/].*/{
25411	    s//\1/
25412	    q
25413	  }
25414	  /^X\(\/\/\)$/{
25415	    s//\1/
25416	    q
25417	  }
25418	  /^X\(\/\).*/{
25419	    s//\1/
25420	    q
25421	  }
25422	  s/.*/./; q'`
25423      test -d "$as_dir" && break
25424    done
25425    test -z "$as_dirs" || eval "mkdir $as_dirs"
25426  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25427echo "$as_me: error: cannot create directory $as_dir" >&2;}
25428   { (exit 1); exit 1; }; }; }
25429    # echo "creating $dirpart/$file"
25430    echo '# dummy' > "$dirpart/$file"
25431  done
25432done
25433 ;;
25434
25435  esac
25436done # for ac_tag
25437
25438
25439{ (exit 0); exit 0; }
25440_ACEOF
25441chmod +x $CONFIG_STATUS
25442ac_clean_files=$ac_clean_files_save
25443
25444
25445# configure is writing to config.log, and then calls config.status.
25446# config.status does its own redirection, appending to config.log.
25447# Unfortunately, on DOS this fails, as config.log is still kept open
25448# by configure, so config.status won't be able to write to it; its
25449# output is simply discarded.  So we exec the FD to /dev/null,
25450# effectively closing config.log, so it can be properly (re)opened and
25451# appended to by config.status.  When coming back to configure, we
25452# need to make the FD available again.
25453if test "$no_create" != yes; then
25454  ac_cs_success=:
25455  ac_config_status_args=
25456  test "$silent" = yes &&
25457    ac_config_status_args="$ac_config_status_args --quiet"
25458  exec 5>/dev/null
25459  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25460  exec 5>>config.log
25461  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25462  # would make configure fail if this is the last instruction.
25463  $ac_cs_success || { (exit 1); exit 1; }
25464fi
25465
25466
25467#docs/Makefile
25468#docs/guide/Makefile
25469
25470echo "
25471gamin-$VERSION:
25472
25473        prefix:                   ${prefix}
25474        source code location:     ${srcdir}
25475        compiler:                 ${CC}
25476        compiler flags:           ${AM_CFLAGS} ${CFLAGS}
25477
25478	build gam_server:         ${enable_server}
25479	build libgamin/libfam:    ${enable_libgamin}
25480	build python bindings:    ${enable_python}
25481	build tests:              ${enable_tests}
25482
25483	backends:                 ${backends}
25484	build documentation:      ${build_docs}
25485	debug support:            ${debug}
25486"
25487