1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for hinversi 0.8.2.
4#
5# Report bugs to <asturio@gmx.net>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560  # Remove one level of quotation (which was required for Make).
561  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562  ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567  # Discard the --no-reexec flag, and continue.
568  shift
569elif test "X$1" = X--fallback-echo; then
570  # Avoid inline document here, it may be left over
571  :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573  # Yippee, $echo works!
574  :
575else
576  # Restart under the correct shell.
577  exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581  # used as fallback echo
582  shift
583  cat <<EOF
584$*
585EOF
586  exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599       echo_test_string=`eval $cmd` &&
600       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601    then
602      break
603    fi
604  done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609   test "X$echo_testing_string" = "X$echo_test_string"; then
610  :
611else
612  # The Solaris, AIX, and Digital Unix default echo programs unquote
613  # backslashes.  This makes it impossible to quote backslashes using
614  #   echo "$something" | sed 's/\\/\\\\/g'
615  #
616  # So, first we look for a working echo in the user's PATH.
617
618  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619  for dir in $PATH /usr/ucb; do
620    IFS="$lt_save_ifs"
621    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624       test "X$echo_testing_string" = "X$echo_test_string"; then
625      echo="$dir/echo"
626      break
627    fi
628  done
629  IFS="$lt_save_ifs"
630
631  if test "X$echo" = Xecho; then
632    # We didn't find a better echo, so look for alternatives.
633    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635       test "X$echo_testing_string" = "X$echo_test_string"; then
636      # This shell has a builtin print -r that does the trick.
637      echo='print -r'
638    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639	 test "X$CONFIG_SHELL" != X/bin/ksh; then
640      # If we have ksh, try running configure again with it.
641      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642      export ORIGINAL_CONFIG_SHELL
643      CONFIG_SHELL=/bin/ksh
644      export CONFIG_SHELL
645      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646    else
647      # Try using printf.
648      echo='printf %s\n'
649      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651	 test "X$echo_testing_string" = "X$echo_test_string"; then
652	# Cool, printf works
653	:
654      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655	   test "X$echo_testing_string" = 'X\t' &&
656	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657	   test "X$echo_testing_string" = "X$echo_test_string"; then
658	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659	export CONFIG_SHELL
660	SHELL="$CONFIG_SHELL"
661	export SHELL
662	echo="$CONFIG_SHELL $0 --fallback-echo"
663      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664	   test "X$echo_testing_string" = 'X\t' &&
665	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666	   test "X$echo_testing_string" = "X$echo_test_string"; then
667	echo="$CONFIG_SHELL $0 --fallback-echo"
668      else
669	# maybe with a smaller string...
670	prev=:
671
672	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674	  then
675	    break
676	  fi
677	  prev="$cmd"
678	done
679
680	if test "$prev" != 'sed 50q "$0"'; then
681	  echo_test_string=`eval $prev`
682	  export echo_test_string
683	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684	else
685	  # Oops.  We lost completely, so just stick with echo.
686	  echo=echo
687	fi
688      fi
689    fi
690  fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
708exec 7<&0 </dev/null 6>&1
709
710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='hinversi'
730PACKAGE_TARNAME='hinversi'
731PACKAGE_VERSION='0.8.2'
732PACKAGE_STRING='hinversi 0.8.2'
733PACKAGE_BUGREPORT='asturio@gmx.net'
734
735ac_unique_file="lib/othello.c"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
739#ifdef HAVE_SYS_TYPES_H
740# include <sys/types.h>
741#endif
742#ifdef HAVE_SYS_STAT_H
743# include <sys/stat.h>
744#endif
745#ifdef STDC_HEADERS
746# include <stdlib.h>
747# include <stddef.h>
748#else
749# ifdef HAVE_STDLIB_H
750#  include <stdlib.h>
751# endif
752#endif
753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755#  include <memory.h>
756# endif
757# include <string.h>
758#endif
759#ifdef HAVE_STRINGS_H
760# include <strings.h>
761#endif
762#ifdef HAVE_INTTYPES_H
763# include <inttypes.h>
764#endif
765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
769# include <unistd.h>
770#endif"
771
772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812am__isrc
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
831CC
832CFLAGS
833LDFLAGS
834CPPFLAGS
835ac_ct_CC
836EXEEXT
837OBJEXT
838DEPDIR
839am__include
840am__quote
841AMDEP_TRUE
842AMDEP_FALSE
843AMDEPBACKSLASH
844CCDEPMODE
845am__fastdepCC_TRUE
846am__fastdepCC_FALSE
847CPP
848LN_S
849build
850build_cpu
851build_vendor
852build_os
853host
854host_cpu
855host_vendor
856host_os
857SED
858GREP
859EGREP
860ECHO
861AR
862RANLIB
863DSYMUTIL
864NMEDIT
865CXX
866CXXFLAGS
867ac_ct_CXX
868CXXDEPMODE
869am__fastdepCXX_TRUE
870am__fastdepCXX_FALSE
871CXXCPP
872F77
873FFLAGS
874ac_ct_F77
875LIBTOOL
876PKG_CONFIG
877CHECK_CFLAGS
878CHECK_LIBS
879HAVE_CHECK_TRUE
880HAVE_CHECK_FALSE
881USE_NLS
882MSGFMT
883GMSGFMT
884MSGFMT_015
885GMSGFMT_015
886XGETTEXT
887XGETTEXT_015
888MSGMERGE
889INTL_MACOSX_LIBS
890LIBICONV
891LTLIBICONV
892INTLLIBS
893LIBINTL
894LTLIBINTL
895POSUB
896LIBOBJS
897LTLIBOBJS'
898ac_subst_files=''
899      ac_precious_vars='build_alias
900host_alias
901target_alias
902CC
903CFLAGS
904LDFLAGS
905LIBS
906CPPFLAGS
907CPP
908CXX
909CXXFLAGS
910CCC
911CXXCPP
912F77
913FFLAGS
914PKG_CONFIG
915CHECK_CFLAGS
916CHECK_LIBS'
917
918
919# Initialize some variables set by options.
920ac_init_help=
921ac_init_version=false
922# The variables have the same names as the options, with
923# dashes changed to underlines.
924cache_file=/dev/null
925exec_prefix=NONE
926no_create=
927no_recursion=
928prefix=NONE
929program_prefix=NONE
930program_suffix=NONE
931program_transform_name=s,x,x,
932silent=
933site=
934srcdir=
935verbose=
936x_includes=NONE
937x_libraries=NONE
938
939# Installation directory options.
940# These are left unexpanded so users can "make install exec_prefix=/foo"
941# and all the variables that are supposed to be based on exec_prefix
942# by default will actually change.
943# Use braces instead of parens because sh, perl, etc. also accept them.
944# (The list follows the same order as the GNU Coding Standards.)
945bindir='${exec_prefix}/bin'
946sbindir='${exec_prefix}/sbin'
947libexecdir='${exec_prefix}/libexec'
948datarootdir='${prefix}/share'
949datadir='${datarootdir}'
950sysconfdir='${prefix}/etc'
951sharedstatedir='${prefix}/com'
952localstatedir='${prefix}/var'
953includedir='${prefix}/include'
954oldincludedir='/usr/include'
955docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956infodir='${datarootdir}/info'
957htmldir='${docdir}'
958dvidir='${docdir}'
959pdfdir='${docdir}'
960psdir='${docdir}'
961libdir='${exec_prefix}/lib'
962localedir='${datarootdir}/locale'
963mandir='${datarootdir}/man'
964
965ac_prev=
966ac_dashdash=
967for ac_option
968do
969  # If the previous option needs an argument, assign it.
970  if test -n "$ac_prev"; then
971    eval $ac_prev=\$ac_option
972    ac_prev=
973    continue
974  fi
975
976  case $ac_option in
977  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978  *)	ac_optarg=yes ;;
979  esac
980
981  # Accept the important Cygnus configure options, so we can diagnose typos.
982
983  case $ac_dashdash$ac_option in
984  --)
985    ac_dashdash=yes ;;
986
987  -bindir | --bindir | --bindi | --bind | --bin | --bi)
988    ac_prev=bindir ;;
989  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
990    bindir=$ac_optarg ;;
991
992  -build | --build | --buil | --bui | --bu)
993    ac_prev=build_alias ;;
994  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
995    build_alias=$ac_optarg ;;
996
997  -cache-file | --cache-file | --cache-fil | --cache-fi \
998  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
999    ac_prev=cache_file ;;
1000  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1001  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1002    cache_file=$ac_optarg ;;
1003
1004  --config-cache | -C)
1005    cache_file=config.cache ;;
1006
1007  -datadir | --datadir | --datadi | --datad)
1008    ac_prev=datadir ;;
1009  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1010    datadir=$ac_optarg ;;
1011
1012  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1013  | --dataroo | --dataro | --datar)
1014    ac_prev=datarootdir ;;
1015  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1016  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1017    datarootdir=$ac_optarg ;;
1018
1019  -disable-* | --disable-*)
1020    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1021    # Reject names that are not valid shell variable names.
1022    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1023      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1024   { (exit 1); exit 1; }; }
1025    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1026    eval enable_$ac_feature=no ;;
1027
1028  -docdir | --docdir | --docdi | --doc | --do)
1029    ac_prev=docdir ;;
1030  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1031    docdir=$ac_optarg ;;
1032
1033  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034    ac_prev=dvidir ;;
1035  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1036    dvidir=$ac_optarg ;;
1037
1038  -enable-* | --enable-*)
1039    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1040    # Reject names that are not valid shell variable names.
1041    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1042      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1043   { (exit 1); exit 1; }; }
1044    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1045    eval enable_$ac_feature=\$ac_optarg ;;
1046
1047  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049  | --exec | --exe | --ex)
1050    ac_prev=exec_prefix ;;
1051  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053  | --exec=* | --exe=* | --ex=*)
1054    exec_prefix=$ac_optarg ;;
1055
1056  -gas | --gas | --ga | --g)
1057    # Obsolete; use --with-gas.
1058    with_gas=yes ;;
1059
1060  -help | --help | --hel | --he | -h)
1061    ac_init_help=long ;;
1062  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063    ac_init_help=recursive ;;
1064  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065    ac_init_help=short ;;
1066
1067  -host | --host | --hos | --ho)
1068    ac_prev=host_alias ;;
1069  -host=* | --host=* | --hos=* | --ho=*)
1070    host_alias=$ac_optarg ;;
1071
1072  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073    ac_prev=htmldir ;;
1074  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075  | --ht=*)
1076    htmldir=$ac_optarg ;;
1077
1078  -includedir | --includedir | --includedi | --included | --include \
1079  | --includ | --inclu | --incl | --inc)
1080    ac_prev=includedir ;;
1081  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082  | --includ=* | --inclu=* | --incl=* | --inc=*)
1083    includedir=$ac_optarg ;;
1084
1085  -infodir | --infodir | --infodi | --infod | --info | --inf)
1086    ac_prev=infodir ;;
1087  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1088    infodir=$ac_optarg ;;
1089
1090  -libdir | --libdir | --libdi | --libd)
1091    ac_prev=libdir ;;
1092  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1093    libdir=$ac_optarg ;;
1094
1095  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096  | --libexe | --libex | --libe)
1097    ac_prev=libexecdir ;;
1098  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099  | --libexe=* | --libex=* | --libe=*)
1100    libexecdir=$ac_optarg ;;
1101
1102  -localedir | --localedir | --localedi | --localed | --locale)
1103    ac_prev=localedir ;;
1104  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105    localedir=$ac_optarg ;;
1106
1107  -localstatedir | --localstatedir | --localstatedi | --localstated \
1108  | --localstate | --localstat | --localsta | --localst | --locals)
1109    ac_prev=localstatedir ;;
1110  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1111  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1112    localstatedir=$ac_optarg ;;
1113
1114  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115    ac_prev=mandir ;;
1116  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117    mandir=$ac_optarg ;;
1118
1119  -nfp | --nfp | --nf)
1120    # Obsolete; use --without-fp.
1121    with_fp=no ;;
1122
1123  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124  | --no-cr | --no-c | -n)
1125    no_create=yes ;;
1126
1127  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129    no_recursion=yes ;;
1130
1131  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133  | --oldin | --oldi | --old | --ol | --o)
1134    ac_prev=oldincludedir ;;
1135  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1138    oldincludedir=$ac_optarg ;;
1139
1140  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141    ac_prev=prefix ;;
1142  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143    prefix=$ac_optarg ;;
1144
1145  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146  | --program-pre | --program-pr | --program-p)
1147    ac_prev=program_prefix ;;
1148  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1150    program_prefix=$ac_optarg ;;
1151
1152  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153  | --program-suf | --program-su | --program-s)
1154    ac_prev=program_suffix ;;
1155  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1157    program_suffix=$ac_optarg ;;
1158
1159  -program-transform-name | --program-transform-name \
1160  | --program-transform-nam | --program-transform-na \
1161  | --program-transform-n | --program-transform- \
1162  | --program-transform | --program-transfor \
1163  | --program-transfo | --program-transf \
1164  | --program-trans | --program-tran \
1165  | --progr-tra | --program-tr | --program-t)
1166    ac_prev=program_transform_name ;;
1167  -program-transform-name=* | --program-transform-name=* \
1168  | --program-transform-nam=* | --program-transform-na=* \
1169  | --program-transform-n=* | --program-transform-=* \
1170  | --program-transform=* | --program-transfor=* \
1171  | --program-transfo=* | --program-transf=* \
1172  | --program-trans=* | --program-tran=* \
1173  | --progr-tra=* | --program-tr=* | --program-t=*)
1174    program_transform_name=$ac_optarg ;;
1175
1176  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177    ac_prev=pdfdir ;;
1178  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179    pdfdir=$ac_optarg ;;
1180
1181  -psdir | --psdir | --psdi | --psd | --ps)
1182    ac_prev=psdir ;;
1183  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184    psdir=$ac_optarg ;;
1185
1186  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187  | -silent | --silent | --silen | --sile | --sil)
1188    silent=yes ;;
1189
1190  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191    ac_prev=sbindir ;;
1192  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193  | --sbi=* | --sb=*)
1194    sbindir=$ac_optarg ;;
1195
1196  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1197  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1198  | --sharedst | --shareds | --shared | --share | --shar \
1199  | --sha | --sh)
1200    ac_prev=sharedstatedir ;;
1201  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1202  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1203  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204  | --sha=* | --sh=*)
1205    sharedstatedir=$ac_optarg ;;
1206
1207  -site | --site | --sit)
1208    ac_prev=site ;;
1209  -site=* | --site=* | --sit=*)
1210    site=$ac_optarg ;;
1211
1212  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213    ac_prev=srcdir ;;
1214  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1215    srcdir=$ac_optarg ;;
1216
1217  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1218  | --syscon | --sysco | --sysc | --sys | --sy)
1219    ac_prev=sysconfdir ;;
1220  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1221  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1222    sysconfdir=$ac_optarg ;;
1223
1224  -target | --target | --targe | --targ | --tar | --ta | --t)
1225    ac_prev=target_alias ;;
1226  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1227    target_alias=$ac_optarg ;;
1228
1229  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230    verbose=yes ;;
1231
1232  -version | --version | --versio | --versi | --vers | -V)
1233    ac_init_version=: ;;
1234
1235  -with-* | --with-*)
1236    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237    # Reject names that are not valid shell variable names.
1238    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239      { echo "$as_me: error: invalid package name: $ac_package" >&2
1240   { (exit 1); exit 1; }; }
1241    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1242    eval with_$ac_package=\$ac_optarg ;;
1243
1244  -without-* | --without-*)
1245    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246    # Reject names that are not valid shell variable names.
1247    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248      { echo "$as_me: error: invalid package name: $ac_package" >&2
1249   { (exit 1); exit 1; }; }
1250    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1251    eval with_$ac_package=no ;;
1252
1253  --x)
1254    # Obsolete; use --with-x.
1255    with_x=yes ;;
1256
1257  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258  | --x-incl | --x-inc | --x-in | --x-i)
1259    ac_prev=x_includes ;;
1260  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1262    x_includes=$ac_optarg ;;
1263
1264  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1265  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266    ac_prev=x_libraries ;;
1267  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269    x_libraries=$ac_optarg ;;
1270
1271  -*) { echo "$as_me: error: unrecognized option: $ac_option
1272Try \`$0 --help' for more information." >&2
1273   { (exit 1); exit 1; }; }
1274    ;;
1275
1276  *=*)
1277    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278    # Reject names that are not valid shell variable names.
1279    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1280      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1281   { (exit 1); exit 1; }; }
1282    eval $ac_envvar=\$ac_optarg
1283    export $ac_envvar ;;
1284
1285  *)
1286    # FIXME: should be removed in autoconf 3.0.
1287    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1291    ;;
1292
1293  esac
1294done
1295
1296if test -n "$ac_prev"; then
1297  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1298  { echo "$as_me: error: missing argument to $ac_option" >&2
1299   { (exit 1); exit 1; }; }
1300fi
1301
1302# Be sure to have absolute directory names.
1303for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304		datadir sysconfdir sharedstatedir localstatedir includedir \
1305		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306		libdir localedir mandir
1307do
1308  eval ac_val=\$$ac_var
1309  case $ac_val in
1310    [\\/$]* | ?:[\\/]* )  continue;;
1311    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312  esac
1313  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1314   { (exit 1); exit 1; }; }
1315done
1316
1317# There might be people who depend on the old broken behavior: `$host'
1318# used to hold the argument of --host etc.
1319# FIXME: To remove some day.
1320build=$build_alias
1321host=$host_alias
1322target=$target_alias
1323
1324# FIXME: To remove some day.
1325if test "x$host_alias" != x; then
1326  if test "x$build_alias" = x; then
1327    cross_compiling=maybe
1328    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1329    If a cross compiler is detected then cross compile mode will be used." >&2
1330  elif test "x$build_alias" != "x$host_alias"; then
1331    cross_compiling=yes
1332  fi
1333fi
1334
1335ac_tool_prefix=
1336test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337
1338test "$silent" = yes && exec 6>/dev/null
1339
1340
1341ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342ac_ls_di=`ls -di .` &&
1343ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1344  { echo "$as_me: error: Working directory cannot be determined" >&2
1345   { (exit 1); exit 1; }; }
1346test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347  { echo "$as_me: error: pwd does not report name of working directory" >&2
1348   { (exit 1); exit 1; }; }
1349
1350
1351# Find the source files, if location was not specified.
1352if test -z "$srcdir"; then
1353  ac_srcdir_defaulted=yes
1354  # Try the directory containing this script, then the parent directory.
1355  ac_confdir=`$as_dirname -- "$0" ||
1356$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357	 X"$0" : 'X\(//\)[^/]' \| \
1358	 X"$0" : 'X\(//\)$' \| \
1359	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1360echo X"$0" |
1361    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362	    s//\1/
1363	    q
1364	  }
1365	  /^X\(\/\/\)[^/].*/{
1366	    s//\1/
1367	    q
1368	  }
1369	  /^X\(\/\/\)$/{
1370	    s//\1/
1371	    q
1372	  }
1373	  /^X\(\/\).*/{
1374	    s//\1/
1375	    q
1376	  }
1377	  s/.*/./; q'`
1378  srcdir=$ac_confdir
1379  if test ! -r "$srcdir/$ac_unique_file"; then
1380    srcdir=..
1381  fi
1382else
1383  ac_srcdir_defaulted=no
1384fi
1385if test ! -r "$srcdir/$ac_unique_file"; then
1386  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1388   { (exit 1); exit 1; }; }
1389fi
1390ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391ac_abs_confdir=`(
1392	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1393   { (exit 1); exit 1; }; }
1394	pwd)`
1395# When building in place, set srcdir=.
1396if test "$ac_abs_confdir" = "$ac_pwd"; then
1397  srcdir=.
1398fi
1399# Remove unnecessary trailing slashes from srcdir.
1400# Double slashes in file names in object file debugging info
1401# mess up M-x gdb in Emacs.
1402case $srcdir in
1403*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404esac
1405for ac_var in $ac_precious_vars; do
1406  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407  eval ac_env_${ac_var}_value=\$${ac_var}
1408  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410done
1411
1412#
1413# Report the --help message.
1414#
1415if test "$ac_init_help" = "long"; then
1416  # Omit some internal or obsolete options to make the list less imposing.
1417  # This message is too long to be a string in the A/UX 3.1 sh.
1418  cat <<_ACEOF
1419\`configure' configures hinversi 0.8.2 to adapt to many kinds of systems.
1420
1421Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424VAR=VALUE.  See below for descriptions of some of the useful variables.
1425
1426Defaults for the options are specified in brackets.
1427
1428Configuration:
1429  -h, --help              display this help and exit
1430      --help=short        display options specific to this package
1431      --help=recursive    display the short help of all the included packages
1432  -V, --version           display version information and exit
1433  -q, --quiet, --silent   do not print \`checking...' messages
1434      --cache-file=FILE   cache test results in FILE [disabled]
1435  -C, --config-cache      alias for \`--cache-file=config.cache'
1436  -n, --no-create         do not create output files
1437      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1438
1439Installation directories:
1440  --prefix=PREFIX         install architecture-independent files in PREFIX
1441			  [$ac_default_prefix]
1442  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1443			  [PREFIX]
1444
1445By default, \`make install' will install all the files in
1446\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1447an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448for instance \`--prefix=\$HOME'.
1449
1450For better control, use the options below.
1451
1452Fine tuning of the installation directories:
1453  --bindir=DIR           user executables [EPREFIX/bin]
1454  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1455  --libexecdir=DIR       program executables [EPREFIX/libexec]
1456  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1457  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1458  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1459  --libdir=DIR           object code libraries [EPREFIX/lib]
1460  --includedir=DIR       C header files [PREFIX/include]
1461  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1462  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1463  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1464  --infodir=DIR          info documentation [DATAROOTDIR/info]
1465  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1466  --mandir=DIR           man documentation [DATAROOTDIR/man]
1467  --docdir=DIR           documentation root [DATAROOTDIR/doc/hinversi]
1468  --htmldir=DIR          html documentation [DOCDIR]
1469  --dvidir=DIR           dvi documentation [DOCDIR]
1470  --pdfdir=DIR           pdf documentation [DOCDIR]
1471  --psdir=DIR            ps documentation [DOCDIR]
1472_ACEOF
1473
1474  cat <<\_ACEOF
1475
1476Program names:
1477  --program-prefix=PREFIX            prepend PREFIX to installed program names
1478  --program-suffix=SUFFIX            append SUFFIX to installed program names
1479  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1480
1481System types:
1482  --build=BUILD     configure for building on BUILD [guessed]
1483  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1484_ACEOF
1485fi
1486
1487if test -n "$ac_init_help"; then
1488  case $ac_init_help in
1489     short | recursive ) echo "Configuration of hinversi 0.8.2:";;
1490   esac
1491  cat <<\_ACEOF
1492
1493Optional Features:
1494  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1495  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1496  --disable-dependency-tracking  speeds up one-time build
1497  --enable-dependency-tracking   do not reject slow dependency extractors
1498  --enable-shared[=PKGS]  build shared libraries [default=yes]
1499  --enable-static[=PKGS]  build static libraries [default=yes]
1500  --enable-fast-install[=PKGS]
1501                          optimize for fast installation [default=yes]
1502  --disable-libtool-lock  avoid locking (might break parallel builds)
1503  --disable-nls           do not use Native Language Support
1504  --disable-rpath         do not hardcode runtime library paths
1505
1506Optional Packages:
1507  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1508  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1509  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1510  --with-pic              try to use only PIC/non-PIC objects [default=use
1511                          both]
1512  --with-tags[=TAGS]      include additional configurations [automatic]
1513  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1514  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1515  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1516  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1517  --without-libintl-prefix     don't search for libintl in includedir and libdir
1518
1519Some influential environment variables:
1520  CC          C compiler command
1521  CFLAGS      C compiler flags
1522  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1523              nonstandard directory <lib dir>
1524  LIBS        libraries to pass to the linker, e.g. -l<library>
1525  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1526              you have headers in a nonstandard directory <include dir>
1527  CPP         C preprocessor
1528  CXX         C++ compiler command
1529  CXXFLAGS    C++ compiler flags
1530  CXXCPP      C++ preprocessor
1531  F77         Fortran 77 compiler command
1532  FFLAGS      Fortran 77 compiler flags
1533  PKG_CONFIG  path to pkg-config utility
1534  CHECK_CFLAGS
1535              C compiler flags for CHECK, overriding pkg-config
1536  CHECK_LIBS  linker flags for CHECK, overriding pkg-config
1537
1538Use these variables to override the choices made by `configure' or to help
1539it to find libraries and programs with nonstandard names/locations.
1540
1541Report bugs to <asturio@gmx.net>.
1542_ACEOF
1543ac_status=$?
1544fi
1545
1546if test "$ac_init_help" = "recursive"; then
1547  # If there are subdirs, report their specific --help.
1548  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549    test -d "$ac_dir" || continue
1550    ac_builddir=.
1551
1552case "$ac_dir" in
1553.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554*)
1555  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1556  # A ".." for each directory in $ac_dir_suffix.
1557  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1558  case $ac_top_builddir_sub in
1559  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561  esac ;;
1562esac
1563ac_abs_top_builddir=$ac_pwd
1564ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565# for backward compatibility:
1566ac_top_builddir=$ac_top_build_prefix
1567
1568case $srcdir in
1569  .)  # We are building in place.
1570    ac_srcdir=.
1571    ac_top_srcdir=$ac_top_builddir_sub
1572    ac_abs_top_srcdir=$ac_pwd ;;
1573  [\\/]* | ?:[\\/]* )  # Absolute name.
1574    ac_srcdir=$srcdir$ac_dir_suffix;
1575    ac_top_srcdir=$srcdir
1576    ac_abs_top_srcdir=$srcdir ;;
1577  *) # Relative name.
1578    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579    ac_top_srcdir=$ac_top_build_prefix$srcdir
1580    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1581esac
1582ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1583
1584    cd "$ac_dir" || { ac_status=$?; continue; }
1585    # Check for guested configure.
1586    if test -f "$ac_srcdir/configure.gnu"; then
1587      echo &&
1588      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589    elif test -f "$ac_srcdir/configure"; then
1590      echo &&
1591      $SHELL "$ac_srcdir/configure" --help=recursive
1592    else
1593      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594    fi || ac_status=$?
1595    cd "$ac_pwd" || { ac_status=$?; break; }
1596  done
1597fi
1598
1599test -n "$ac_init_help" && exit $ac_status
1600if $ac_init_version; then
1601  cat <<\_ACEOF
1602hinversi configure 0.8.2
1603generated by GNU Autoconf 2.61
1604
1605Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16062002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1607This configure script is free software; the Free Software Foundation
1608gives unlimited permission to copy, distribute and modify it.
1609_ACEOF
1610  exit
1611fi
1612cat >config.log <<_ACEOF
1613This file contains any messages produced by compilers while
1614running configure, to aid debugging if configure makes a mistake.
1615
1616It was created by hinversi $as_me 0.8.2, which was
1617generated by GNU Autoconf 2.61.  Invocation command line was
1618
1619  $ $0 $@
1620
1621_ACEOF
1622exec 5>>config.log
1623{
1624cat <<_ASUNAME
1625## --------- ##
1626## Platform. ##
1627## --------- ##
1628
1629hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1630uname -m = `(uname -m) 2>/dev/null || echo unknown`
1631uname -r = `(uname -r) 2>/dev/null || echo unknown`
1632uname -s = `(uname -s) 2>/dev/null || echo unknown`
1633uname -v = `(uname -v) 2>/dev/null || echo unknown`
1634
1635/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1636/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1637
1638/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1639/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1640/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1641/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1642/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1643/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1644/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1645
1646_ASUNAME
1647
1648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649for as_dir in $PATH
1650do
1651  IFS=$as_save_IFS
1652  test -z "$as_dir" && as_dir=.
1653  echo "PATH: $as_dir"
1654done
1655IFS=$as_save_IFS
1656
1657} >&5
1658
1659cat >&5 <<_ACEOF
1660
1661
1662## ----------- ##
1663## Core tests. ##
1664## ----------- ##
1665
1666_ACEOF
1667
1668
1669# Keep a trace of the command line.
1670# Strip out --no-create and --no-recursion so they do not pile up.
1671# Strip out --silent because we don't want to record it for future runs.
1672# Also quote any args containing shell meta-characters.
1673# Make two passes to allow for proper duplicate-argument suppression.
1674ac_configure_args=
1675ac_configure_args0=
1676ac_configure_args1=
1677ac_must_keep_next=false
1678for ac_pass in 1 2
1679do
1680  for ac_arg
1681  do
1682    case $ac_arg in
1683    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1684    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1685    | -silent | --silent | --silen | --sile | --sil)
1686      continue ;;
1687    *\'*)
1688      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1689    esac
1690    case $ac_pass in
1691    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1692    2)
1693      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1694      if test $ac_must_keep_next = true; then
1695	ac_must_keep_next=false # Got value, back to normal.
1696      else
1697	case $ac_arg in
1698	  *=* | --config-cache | -C | -disable-* | --disable-* \
1699	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1700	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1701	  | -with-* | --with-* | -without-* | --without-* | --x)
1702	    case "$ac_configure_args0 " in
1703	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1704	    esac
1705	    ;;
1706	  -* ) ac_must_keep_next=true ;;
1707	esac
1708      fi
1709      ac_configure_args="$ac_configure_args '$ac_arg'"
1710      ;;
1711    esac
1712  done
1713done
1714$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1715$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1716
1717# When interrupted or exit'd, cleanup temporary files, and complete
1718# config.log.  We remove comments because anyway the quotes in there
1719# would cause problems or look ugly.
1720# WARNING: Use '\'' to represent an apostrophe within the trap.
1721# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1722trap 'exit_status=$?
1723  # Save into config.log some information that might help in debugging.
1724  {
1725    echo
1726
1727    cat <<\_ASBOX
1728## ---------------- ##
1729## Cache variables. ##
1730## ---------------- ##
1731_ASBOX
1732    echo
1733    # The following way of writing the cache mishandles newlines in values,
1734(
1735  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1736    eval ac_val=\$$ac_var
1737    case $ac_val in #(
1738    *${as_nl}*)
1739      case $ac_var in #(
1740      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1741echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1742      esac
1743      case $ac_var in #(
1744      _ | IFS | as_nl) ;; #(
1745      *) $as_unset $ac_var ;;
1746      esac ;;
1747    esac
1748  done
1749  (set) 2>&1 |
1750    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1751    *${as_nl}ac_space=\ *)
1752      sed -n \
1753	"s/'\''/'\''\\\\'\'''\''/g;
1754	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1755      ;; #(
1756    *)
1757      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1758      ;;
1759    esac |
1760    sort
1761)
1762    echo
1763
1764    cat <<\_ASBOX
1765## ----------------- ##
1766## Output variables. ##
1767## ----------------- ##
1768_ASBOX
1769    echo
1770    for ac_var in $ac_subst_vars
1771    do
1772      eval ac_val=\$$ac_var
1773      case $ac_val in
1774      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775      esac
1776      echo "$ac_var='\''$ac_val'\''"
1777    done | sort
1778    echo
1779
1780    if test -n "$ac_subst_files"; then
1781      cat <<\_ASBOX
1782## ------------------- ##
1783## File substitutions. ##
1784## ------------------- ##
1785_ASBOX
1786      echo
1787      for ac_var in $ac_subst_files
1788      do
1789	eval ac_val=\$$ac_var
1790	case $ac_val in
1791	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1792	esac
1793	echo "$ac_var='\''$ac_val'\''"
1794      done | sort
1795      echo
1796    fi
1797
1798    if test -s confdefs.h; then
1799      cat <<\_ASBOX
1800## ----------- ##
1801## confdefs.h. ##
1802## ----------- ##
1803_ASBOX
1804      echo
1805      cat confdefs.h
1806      echo
1807    fi
1808    test "$ac_signal" != 0 &&
1809      echo "$as_me: caught signal $ac_signal"
1810    echo "$as_me: exit $exit_status"
1811  } >&5
1812  rm -f core *.core core.conftest.* &&
1813    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1814    exit $exit_status
1815' 0
1816for ac_signal in 1 2 13 15; do
1817  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1818done
1819ac_signal=0
1820
1821# confdefs.h avoids OS command line length limits that DEFS can exceed.
1822rm -f -r conftest* confdefs.h
1823
1824# Predefined preprocessor variables.
1825
1826cat >>confdefs.h <<_ACEOF
1827#define PACKAGE_NAME "$PACKAGE_NAME"
1828_ACEOF
1829
1830
1831cat >>confdefs.h <<_ACEOF
1832#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1833_ACEOF
1834
1835
1836cat >>confdefs.h <<_ACEOF
1837#define PACKAGE_VERSION "$PACKAGE_VERSION"
1838_ACEOF
1839
1840
1841cat >>confdefs.h <<_ACEOF
1842#define PACKAGE_STRING "$PACKAGE_STRING"
1843_ACEOF
1844
1845
1846cat >>confdefs.h <<_ACEOF
1847#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1848_ACEOF
1849
1850
1851# Let the site file select an alternate cache file if it wants to.
1852# Prefer explicitly selected file to automatically selected ones.
1853if test -n "$CONFIG_SITE"; then
1854  set x "$CONFIG_SITE"
1855elif test "x$prefix" != xNONE; then
1856  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1857else
1858  set x "$ac_default_prefix/share/config.site" \
1859	"$ac_default_prefix/etc/config.site"
1860fi
1861shift
1862for ac_site_file
1863do
1864  if test -r "$ac_site_file"; then
1865    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1866echo "$as_me: loading site script $ac_site_file" >&6;}
1867    sed 's/^/| /' "$ac_site_file" >&5
1868    . "$ac_site_file"
1869  fi
1870done
1871
1872if test -r "$cache_file"; then
1873  # Some versions of bash will fail to source /dev/null (special
1874  # files actually), so we avoid doing that.
1875  if test -f "$cache_file"; then
1876    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1877echo "$as_me: loading cache $cache_file" >&6;}
1878    case $cache_file in
1879      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1880      *)                      . "./$cache_file";;
1881    esac
1882  fi
1883else
1884  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1885echo "$as_me: creating cache $cache_file" >&6;}
1886  >$cache_file
1887fi
1888
1889# Check that the precious variables saved in the cache have kept the same
1890# value.
1891ac_cache_corrupted=false
1892for ac_var in $ac_precious_vars; do
1893  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1894  eval ac_new_set=\$ac_env_${ac_var}_set
1895  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1896  eval ac_new_val=\$ac_env_${ac_var}_value
1897  case $ac_old_set,$ac_new_set in
1898    set,)
1899      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1900echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1901      ac_cache_corrupted=: ;;
1902    ,set)
1903      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1904echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1905      ac_cache_corrupted=: ;;
1906    ,);;
1907    *)
1908      if test "x$ac_old_val" != "x$ac_new_val"; then
1909	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1910echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1911	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1912echo "$as_me:   former value:  $ac_old_val" >&2;}
1913	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1914echo "$as_me:   current value: $ac_new_val" >&2;}
1915	ac_cache_corrupted=:
1916      fi;;
1917  esac
1918  # Pass precious variables to config.status.
1919  if test "$ac_new_set" = set; then
1920    case $ac_new_val in
1921    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1922    *) ac_arg=$ac_var=$ac_new_val ;;
1923    esac
1924    case " $ac_configure_args " in
1925      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1926      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1927    esac
1928  fi
1929done
1930if $ac_cache_corrupted; then
1931  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1932echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1933  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1934echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1935   { (exit 1); exit 1; }; }
1936fi
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962ac_ext=c
1963ac_cpp='$CPP $CPPFLAGS'
1964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1966ac_compiler_gnu=$ac_cv_c_compiler_gnu
1967
1968
1969
1970ac_aux_dir=
1971for ac_dir in build-aux "$srcdir"/build-aux; do
1972  if test -f "$ac_dir/install-sh"; then
1973    ac_aux_dir=$ac_dir
1974    ac_install_sh="$ac_aux_dir/install-sh -c"
1975    break
1976  elif test -f "$ac_dir/install.sh"; then
1977    ac_aux_dir=$ac_dir
1978    ac_install_sh="$ac_aux_dir/install.sh -c"
1979    break
1980  elif test -f "$ac_dir/shtool"; then
1981    ac_aux_dir=$ac_dir
1982    ac_install_sh="$ac_aux_dir/shtool install -c"
1983    break
1984  fi
1985done
1986if test -z "$ac_aux_dir"; then
1987  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
1988echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
1989   { (exit 1); exit 1; }; }
1990fi
1991
1992# These three variables are undocumented and unsupported,
1993# and are intended to be withdrawn in a future Autoconf release.
1994# They can cause serious problems if a builder's source tree is in a directory
1995# whose full name contains unusual characters.
1996ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1997ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1998ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1999
2000
2001ac_config_headers="$ac_config_headers config.h"
2002
2003am__api_version='1.10'
2004
2005# Find a good install program.  We prefer a C program (faster),
2006# so one script is as good as another.  But avoid the broken or
2007# incompatible versions:
2008# SysV /etc/install, /usr/sbin/install
2009# SunOS /usr/etc/install
2010# IRIX /sbin/install
2011# AIX /bin/install
2012# AmigaOS /C/install, which installs bootblocks on floppy discs
2013# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2014# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2015# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2016# OS/2's system install, which has a completely different semantic
2017# ./install, which can be erroneously created by make from ./install.sh.
2018{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2019echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2020if test -z "$INSTALL"; then
2021if test "${ac_cv_path_install+set}" = set; then
2022  echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025for as_dir in $PATH
2026do
2027  IFS=$as_save_IFS
2028  test -z "$as_dir" && as_dir=.
2029  # Account for people who put trailing slashes in PATH elements.
2030case $as_dir/ in
2031  ./ | .// | /cC/* | \
2032  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2033  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2034  /usr/ucb/* ) ;;
2035  *)
2036    # OSF1 and SCO ODT 3.0 have their own names for install.
2037    # Don't use installbsd from OSF since it installs stuff as root
2038    # by default.
2039    for ac_prog in ginstall scoinst install; do
2040      for ac_exec_ext in '' $ac_executable_extensions; do
2041	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2042	  if test $ac_prog = install &&
2043	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2044	    # AIX install.  It has an incompatible calling convention.
2045	    :
2046	  elif test $ac_prog = install &&
2047	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2048	    # program-specific install script used by HP pwplus--don't use.
2049	    :
2050	  else
2051	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2052	    break 3
2053	  fi
2054	fi
2055      done
2056    done
2057    ;;
2058esac
2059done
2060IFS=$as_save_IFS
2061
2062
2063fi
2064  if test "${ac_cv_path_install+set}" = set; then
2065    INSTALL=$ac_cv_path_install
2066  else
2067    # As a last resort, use the slow shell script.  Don't cache a
2068    # value for INSTALL within a source directory, because that will
2069    # break other packages using the cache if that directory is
2070    # removed, or if the value is a relative name.
2071    INSTALL=$ac_install_sh
2072  fi
2073fi
2074{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2075echo "${ECHO_T}$INSTALL" >&6; }
2076
2077# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2078# It thinks the first close brace ends the variable substitution.
2079test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2080
2081test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2082
2083test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2084
2085{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2086echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2087# Just in case
2088sleep 1
2089echo timestamp > conftest.file
2090# Do `set' in a subshell so we don't clobber the current shell's
2091# arguments.  Must try -L first in case configure is actually a
2092# symlink; some systems play weird games with the mod time of symlinks
2093# (eg FreeBSD returns the mod time of the symlink's containing
2094# directory).
2095if (
2096   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2097   if test "$*" = "X"; then
2098      # -L didn't work.
2099      set X `ls -t $srcdir/configure conftest.file`
2100   fi
2101   rm -f conftest.file
2102   if test "$*" != "X $srcdir/configure conftest.file" \
2103      && test "$*" != "X conftest.file $srcdir/configure"; then
2104
2105      # If neither matched, then we have a broken ls.  This can happen
2106      # if, for instance, CONFIG_SHELL is bash and it inherits a
2107      # broken ls alias from the environment.  This has actually
2108      # happened.  Such a system could not be considered "sane".
2109      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2110alias in your environment" >&5
2111echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2112alias in your environment" >&2;}
2113   { (exit 1); exit 1; }; }
2114   fi
2115
2116   test "$2" = conftest.file
2117   )
2118then
2119   # Ok.
2120   :
2121else
2122   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2123Check your system clock" >&5
2124echo "$as_me: error: newly created file is older than distributed files!
2125Check your system clock" >&2;}
2126   { (exit 1); exit 1; }; }
2127fi
2128{ echo "$as_me:$LINENO: result: yes" >&5
2129echo "${ECHO_T}yes" >&6; }
2130test "$program_prefix" != NONE &&
2131  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2132# Use a double $ so make ignores it.
2133test "$program_suffix" != NONE &&
2134  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2135# Double any \ or $.  echo might interpret backslashes.
2136# By default was `s,x,x', remove it if useless.
2137cat <<\_ACEOF >conftest.sed
2138s/[\\$]/&&/g;s/;s,x,x,$//
2139_ACEOF
2140program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2141rm -f conftest.sed
2142
2143# expand $ac_aux_dir to an absolute path
2144am_aux_dir=`cd $ac_aux_dir && pwd`
2145
2146test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2147# Use eval to expand $SHELL
2148if eval "$MISSING --run true"; then
2149  am_missing_run="$MISSING --run "
2150else
2151  am_missing_run=
2152  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2153echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2154fi
2155
2156{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2157echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2158if test -z "$MKDIR_P"; then
2159  if test "${ac_cv_path_mkdir+set}" = set; then
2160  echo $ECHO_N "(cached) $ECHO_C" >&6
2161else
2162  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2164do
2165  IFS=$as_save_IFS
2166  test -z "$as_dir" && as_dir=.
2167  for ac_prog in mkdir gmkdir; do
2168	 for ac_exec_ext in '' $ac_executable_extensions; do
2169	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2170	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2171	     'mkdir (GNU coreutils) '* | \
2172	     'mkdir (coreutils) '* | \
2173	     'mkdir (fileutils) '4.1*)
2174	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2175	       break 3;;
2176	   esac
2177	 done
2178       done
2179done
2180IFS=$as_save_IFS
2181
2182fi
2183
2184  if test "${ac_cv_path_mkdir+set}" = set; then
2185    MKDIR_P="$ac_cv_path_mkdir -p"
2186  else
2187    # As a last resort, use the slow shell script.  Don't cache a
2188    # value for MKDIR_P within a source directory, because that will
2189    # break other packages using the cache if that directory is
2190    # removed, or if the value is a relative name.
2191    test -d ./--version && rmdir ./--version
2192    MKDIR_P="$ac_install_sh -d"
2193  fi
2194fi
2195{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2196echo "${ECHO_T}$MKDIR_P" >&6; }
2197
2198mkdir_p="$MKDIR_P"
2199case $mkdir_p in
2200  [\\/$]* | ?:[\\/]*) ;;
2201  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2202esac
2203
2204for ac_prog in gawk mawk nawk awk
2205do
2206  # Extract the first word of "$ac_prog", so it can be a program name with args.
2207set dummy $ac_prog; ac_word=$2
2208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2210if test "${ac_cv_prog_AWK+set}" = set; then
2211  echo $ECHO_N "(cached) $ECHO_C" >&6
2212else
2213  if test -n "$AWK"; then
2214  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2215else
2216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217for as_dir in $PATH
2218do
2219  IFS=$as_save_IFS
2220  test -z "$as_dir" && as_dir=.
2221  for ac_exec_ext in '' $ac_executable_extensions; do
2222  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223    ac_cv_prog_AWK="$ac_prog"
2224    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225    break 2
2226  fi
2227done
2228done
2229IFS=$as_save_IFS
2230
2231fi
2232fi
2233AWK=$ac_cv_prog_AWK
2234if test -n "$AWK"; then
2235  { echo "$as_me:$LINENO: result: $AWK" >&5
2236echo "${ECHO_T}$AWK" >&6; }
2237else
2238  { echo "$as_me:$LINENO: result: no" >&5
2239echo "${ECHO_T}no" >&6; }
2240fi
2241
2242
2243  test -n "$AWK" && break
2244done
2245
2246{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2247echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2248set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2249if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2250  echo $ECHO_N "(cached) $ECHO_C" >&6
2251else
2252  cat >conftest.make <<\_ACEOF
2253SHELL = /bin/sh
2254all:
2255	@echo '@@@%%%=$(MAKE)=@@@%%%'
2256_ACEOF
2257# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2258case `${MAKE-make} -f conftest.make 2>/dev/null` in
2259  *@@@%%%=?*=@@@%%%*)
2260    eval ac_cv_prog_make_${ac_make}_set=yes;;
2261  *)
2262    eval ac_cv_prog_make_${ac_make}_set=no;;
2263esac
2264rm -f conftest.make
2265fi
2266if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2267  { echo "$as_me:$LINENO: result: yes" >&5
2268echo "${ECHO_T}yes" >&6; }
2269  SET_MAKE=
2270else
2271  { echo "$as_me:$LINENO: result: no" >&5
2272echo "${ECHO_T}no" >&6; }
2273  SET_MAKE="MAKE=${MAKE-make}"
2274fi
2275
2276rm -rf .tst 2>/dev/null
2277mkdir .tst 2>/dev/null
2278if test -d .tst; then
2279  am__leading_dot=.
2280else
2281  am__leading_dot=_
2282fi
2283rmdir .tst 2>/dev/null
2284
2285if test "`cd $srcdir && pwd`" != "`pwd`"; then
2286  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2287  # is not polluted with repeated "-I."
2288  am__isrc=' -I$(srcdir)'
2289  # test to see if srcdir already configured
2290  if test -f $srcdir/config.status; then
2291    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2292echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2293   { (exit 1); exit 1; }; }
2294  fi
2295fi
2296
2297# test whether we have cygpath
2298if test -z "$CYGPATH_W"; then
2299  if (cygpath --version) >/dev/null 2>/dev/null; then
2300    CYGPATH_W='cygpath -w'
2301  else
2302    CYGPATH_W=echo
2303  fi
2304fi
2305
2306
2307# Define the identity of the package.
2308 PACKAGE='hinversi'
2309 VERSION='0.8.2'
2310
2311
2312cat >>confdefs.h <<_ACEOF
2313#define PACKAGE "$PACKAGE"
2314_ACEOF
2315
2316
2317cat >>confdefs.h <<_ACEOF
2318#define VERSION "$VERSION"
2319_ACEOF
2320
2321# Some tools Automake needs.
2322
2323ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2324
2325
2326AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2327
2328
2329AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2330
2331
2332AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2333
2334
2335MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2336
2337install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2338
2339# Installed binaries are usually stripped using `strip' when the user
2340# run `make install-strip'.  However `strip' might not be the right
2341# tool to use in cross-compilation environments, therefore Automake
2342# will honor the `STRIP' environment variable to overrule this program.
2343if test "$cross_compiling" != no; then
2344  if test -n "$ac_tool_prefix"; then
2345  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2346set dummy ${ac_tool_prefix}strip; ac_word=$2
2347{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349if test "${ac_cv_prog_STRIP+set}" = set; then
2350  echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352  if test -n "$STRIP"; then
2353  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2354else
2355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356for as_dir in $PATH
2357do
2358  IFS=$as_save_IFS
2359  test -z "$as_dir" && as_dir=.
2360  for ac_exec_ext in '' $ac_executable_extensions; do
2361  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2363    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364    break 2
2365  fi
2366done
2367done
2368IFS=$as_save_IFS
2369
2370fi
2371fi
2372STRIP=$ac_cv_prog_STRIP
2373if test -n "$STRIP"; then
2374  { echo "$as_me:$LINENO: result: $STRIP" >&5
2375echo "${ECHO_T}$STRIP" >&6; }
2376else
2377  { echo "$as_me:$LINENO: result: no" >&5
2378echo "${ECHO_T}no" >&6; }
2379fi
2380
2381
2382fi
2383if test -z "$ac_cv_prog_STRIP"; then
2384  ac_ct_STRIP=$STRIP
2385  # Extract the first word of "strip", so it can be a program name with args.
2386set dummy strip; ac_word=$2
2387{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2389if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2390  echo $ECHO_N "(cached) $ECHO_C" >&6
2391else
2392  if test -n "$ac_ct_STRIP"; then
2393  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2394else
2395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396for as_dir in $PATH
2397do
2398  IFS=$as_save_IFS
2399  test -z "$as_dir" && as_dir=.
2400  for ac_exec_ext in '' $ac_executable_extensions; do
2401  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402    ac_cv_prog_ac_ct_STRIP="strip"
2403    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2404    break 2
2405  fi
2406done
2407done
2408IFS=$as_save_IFS
2409
2410fi
2411fi
2412ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2413if test -n "$ac_ct_STRIP"; then
2414  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2415echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2416else
2417  { echo "$as_me:$LINENO: result: no" >&5
2418echo "${ECHO_T}no" >&6; }
2419fi
2420
2421  if test "x$ac_ct_STRIP" = x; then
2422    STRIP=":"
2423  else
2424    case $cross_compiling:$ac_tool_warned in
2425yes:)
2426{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2427whose name does not start with the host triplet.  If you think this
2428configuration is useful to you, please write to autoconf@gnu.org." >&5
2429echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2430whose name does not start with the host triplet.  If you think this
2431configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2432ac_tool_warned=yes ;;
2433esac
2434    STRIP=$ac_ct_STRIP
2435  fi
2436else
2437  STRIP="$ac_cv_prog_STRIP"
2438fi
2439
2440fi
2441INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2442
2443# We need awk for the "check" target.  The system "awk" is bad on
2444# some platforms.
2445# Always define AMTAR for backward compatibility.
2446
2447AMTAR=${AMTAR-"${am_missing_run}tar"}
2448
2449am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2450
2451
2452
2453
2454
2455
2456# Checks for programs.
2457ac_ext=c
2458ac_cpp='$CPP $CPPFLAGS'
2459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462if test -n "$ac_tool_prefix"; then
2463  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2464set dummy ${ac_tool_prefix}gcc; ac_word=$2
2465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467if test "${ac_cv_prog_CC+set}" = set; then
2468  echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470  if test -n "$CC"; then
2471  ac_cv_prog_CC="$CC" # Let the user override the test.
2472else
2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474for as_dir in $PATH
2475do
2476  IFS=$as_save_IFS
2477  test -z "$as_dir" && as_dir=.
2478  for ac_exec_ext in '' $ac_executable_extensions; do
2479  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2481    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482    break 2
2483  fi
2484done
2485done
2486IFS=$as_save_IFS
2487
2488fi
2489fi
2490CC=$ac_cv_prog_CC
2491if test -n "$CC"; then
2492  { echo "$as_me:$LINENO: result: $CC" >&5
2493echo "${ECHO_T}$CC" >&6; }
2494else
2495  { echo "$as_me:$LINENO: result: no" >&5
2496echo "${ECHO_T}no" >&6; }
2497fi
2498
2499
2500fi
2501if test -z "$ac_cv_prog_CC"; then
2502  ac_ct_CC=$CC
2503  # Extract the first word of "gcc", so it can be a program name with args.
2504set dummy gcc; ac_word=$2
2505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2508  echo $ECHO_N "(cached) $ECHO_C" >&6
2509else
2510  if test -n "$ac_ct_CC"; then
2511  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2512else
2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516  IFS=$as_save_IFS
2517  test -z "$as_dir" && as_dir=.
2518  for ac_exec_ext in '' $ac_executable_extensions; do
2519  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520    ac_cv_prog_ac_ct_CC="gcc"
2521    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522    break 2
2523  fi
2524done
2525done
2526IFS=$as_save_IFS
2527
2528fi
2529fi
2530ac_ct_CC=$ac_cv_prog_ac_ct_CC
2531if test -n "$ac_ct_CC"; then
2532  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2533echo "${ECHO_T}$ac_ct_CC" >&6; }
2534else
2535  { echo "$as_me:$LINENO: result: no" >&5
2536echo "${ECHO_T}no" >&6; }
2537fi
2538
2539  if test "x$ac_ct_CC" = x; then
2540    CC=""
2541  else
2542    case $cross_compiling:$ac_tool_warned in
2543yes:)
2544{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2545whose name does not start with the host triplet.  If you think this
2546configuration is useful to you, please write to autoconf@gnu.org." >&5
2547echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2548whose name does not start with the host triplet.  If you think this
2549configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2550ac_tool_warned=yes ;;
2551esac
2552    CC=$ac_ct_CC
2553  fi
2554else
2555  CC="$ac_cv_prog_CC"
2556fi
2557
2558if test -z "$CC"; then
2559          if test -n "$ac_tool_prefix"; then
2560    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2561set dummy ${ac_tool_prefix}cc; ac_word=$2
2562{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564if test "${ac_cv_prog_CC+set}" = set; then
2565  echo $ECHO_N "(cached) $ECHO_C" >&6
2566else
2567  if test -n "$CC"; then
2568  ac_cv_prog_CC="$CC" # Let the user override the test.
2569else
2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571for as_dir in $PATH
2572do
2573  IFS=$as_save_IFS
2574  test -z "$as_dir" && as_dir=.
2575  for ac_exec_ext in '' $ac_executable_extensions; do
2576  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577    ac_cv_prog_CC="${ac_tool_prefix}cc"
2578    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579    break 2
2580  fi
2581done
2582done
2583IFS=$as_save_IFS
2584
2585fi
2586fi
2587CC=$ac_cv_prog_CC
2588if test -n "$CC"; then
2589  { echo "$as_me:$LINENO: result: $CC" >&5
2590echo "${ECHO_T}$CC" >&6; }
2591else
2592  { echo "$as_me:$LINENO: result: no" >&5
2593echo "${ECHO_T}no" >&6; }
2594fi
2595
2596
2597  fi
2598fi
2599if test -z "$CC"; then
2600  # Extract the first word of "cc", so it can be a program name with args.
2601set dummy cc; ac_word=$2
2602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604if test "${ac_cv_prog_CC+set}" = set; then
2605  echo $ECHO_N "(cached) $ECHO_C" >&6
2606else
2607  if test -n "$CC"; then
2608  ac_cv_prog_CC="$CC" # Let the user override the test.
2609else
2610  ac_prog_rejected=no
2611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614  IFS=$as_save_IFS
2615  test -z "$as_dir" && as_dir=.
2616  for ac_exec_ext in '' $ac_executable_extensions; do
2617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2619       ac_prog_rejected=yes
2620       continue
2621     fi
2622    ac_cv_prog_CC="cc"
2623    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624    break 2
2625  fi
2626done
2627done
2628IFS=$as_save_IFS
2629
2630if test $ac_prog_rejected = yes; then
2631  # We found a bogon in the path, so make sure we never use it.
2632  set dummy $ac_cv_prog_CC
2633  shift
2634  if test $# != 0; then
2635    # We chose a different compiler from the bogus one.
2636    # However, it has the same basename, so the bogon will be chosen
2637    # first if we set CC to just the basename; use the full file name.
2638    shift
2639    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2640  fi
2641fi
2642fi
2643fi
2644CC=$ac_cv_prog_CC
2645if test -n "$CC"; then
2646  { echo "$as_me:$LINENO: result: $CC" >&5
2647echo "${ECHO_T}$CC" >&6; }
2648else
2649  { echo "$as_me:$LINENO: result: no" >&5
2650echo "${ECHO_T}no" >&6; }
2651fi
2652
2653
2654fi
2655if test -z "$CC"; then
2656  if test -n "$ac_tool_prefix"; then
2657  for ac_prog in cl.exe
2658  do
2659    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2660set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663if test "${ac_cv_prog_CC+set}" = set; then
2664  echo $ECHO_N "(cached) $ECHO_C" >&6
2665else
2666  if test -n "$CC"; then
2667  ac_cv_prog_CC="$CC" # Let the user override the test.
2668else
2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH
2671do
2672  IFS=$as_save_IFS
2673  test -z "$as_dir" && as_dir=.
2674  for ac_exec_ext in '' $ac_executable_extensions; do
2675  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2677    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678    break 2
2679  fi
2680done
2681done
2682IFS=$as_save_IFS
2683
2684fi
2685fi
2686CC=$ac_cv_prog_CC
2687if test -n "$CC"; then
2688  { echo "$as_me:$LINENO: result: $CC" >&5
2689echo "${ECHO_T}$CC" >&6; }
2690else
2691  { echo "$as_me:$LINENO: result: no" >&5
2692echo "${ECHO_T}no" >&6; }
2693fi
2694
2695
2696    test -n "$CC" && break
2697  done
2698fi
2699if test -z "$CC"; then
2700  ac_ct_CC=$CC
2701  for ac_prog in cl.exe
2702do
2703  # Extract the first word of "$ac_prog", so it can be a program name with args.
2704set dummy $ac_prog; ac_word=$2
2705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2707if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2708  echo $ECHO_N "(cached) $ECHO_C" >&6
2709else
2710  if test -n "$ac_ct_CC"; then
2711  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2712else
2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716  IFS=$as_save_IFS
2717  test -z "$as_dir" && as_dir=.
2718  for ac_exec_ext in '' $ac_executable_extensions; do
2719  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720    ac_cv_prog_ac_ct_CC="$ac_prog"
2721    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722    break 2
2723  fi
2724done
2725done
2726IFS=$as_save_IFS
2727
2728fi
2729fi
2730ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731if test -n "$ac_ct_CC"; then
2732  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2733echo "${ECHO_T}$ac_ct_CC" >&6; }
2734else
2735  { echo "$as_me:$LINENO: result: no" >&5
2736echo "${ECHO_T}no" >&6; }
2737fi
2738
2739
2740  test -n "$ac_ct_CC" && break
2741done
2742
2743  if test "x$ac_ct_CC" = x; then
2744    CC=""
2745  else
2746    case $cross_compiling:$ac_tool_warned in
2747yes:)
2748{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2749whose name does not start with the host triplet.  If you think this
2750configuration is useful to you, please write to autoconf@gnu.org." >&5
2751echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2752whose name does not start with the host triplet.  If you think this
2753configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2754ac_tool_warned=yes ;;
2755esac
2756    CC=$ac_ct_CC
2757  fi
2758fi
2759
2760fi
2761
2762
2763test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2764See \`config.log' for more details." >&5
2765echo "$as_me: error: no acceptable C compiler found in \$PATH
2766See \`config.log' for more details." >&2;}
2767   { (exit 1); exit 1; }; }
2768
2769# Provide some information about the compiler.
2770echo "$as_me:$LINENO: checking for C compiler version" >&5
2771ac_compiler=`set X $ac_compile; echo $2`
2772{ (ac_try="$ac_compiler --version >&5"
2773case "(($ac_try" in
2774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775  *) ac_try_echo=$ac_try;;
2776esac
2777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778  (eval "$ac_compiler --version >&5") 2>&5
2779  ac_status=$?
2780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781  (exit $ac_status); }
2782{ (ac_try="$ac_compiler -v >&5"
2783case "(($ac_try" in
2784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785  *) ac_try_echo=$ac_try;;
2786esac
2787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788  (eval "$ac_compiler -v >&5") 2>&5
2789  ac_status=$?
2790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791  (exit $ac_status); }
2792{ (ac_try="$ac_compiler -V >&5"
2793case "(($ac_try" in
2794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795  *) ac_try_echo=$ac_try;;
2796esac
2797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798  (eval "$ac_compiler -V >&5") 2>&5
2799  ac_status=$?
2800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801  (exit $ac_status); }
2802
2803cat >conftest.$ac_ext <<_ACEOF
2804/* confdefs.h.  */
2805_ACEOF
2806cat confdefs.h >>conftest.$ac_ext
2807cat >>conftest.$ac_ext <<_ACEOF
2808/* end confdefs.h.  */
2809
2810int
2811main ()
2812{
2813
2814  ;
2815  return 0;
2816}
2817_ACEOF
2818ac_clean_files_save=$ac_clean_files
2819ac_clean_files="$ac_clean_files a.out a.exe b.out"
2820# Try to create an executable without -o first, disregard a.out.
2821# It will help us diagnose broken compilers, and finding out an intuition
2822# of exeext.
2823{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2824echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2825ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2826#
2827# List of possible output files, starting from the most likely.
2828# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2829# only as a last resort.  b.out is created by i960 compilers.
2830ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2831#
2832# The IRIX 6 linker writes into existing files which may not be
2833# executable, retaining their permissions.  Remove them first so a
2834# subsequent execution test works.
2835ac_rmfiles=
2836for ac_file in $ac_files
2837do
2838  case $ac_file in
2839    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2840    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2841  esac
2842done
2843rm -f $ac_rmfiles
2844
2845if { (ac_try="$ac_link_default"
2846case "(($ac_try" in
2847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848  *) ac_try_echo=$ac_try;;
2849esac
2850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851  (eval "$ac_link_default") 2>&5
2852  ac_status=$?
2853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854  (exit $ac_status); }; then
2855  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2856# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2857# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2858# so that the user can short-circuit this test for compilers unknown to
2859# Autoconf.
2860for ac_file in $ac_files ''
2861do
2862  test -f "$ac_file" || continue
2863  case $ac_file in
2864    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2865	;;
2866    [ab].out )
2867	# We found the default executable, but exeext='' is most
2868	# certainly right.
2869	break;;
2870    *.* )
2871        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2872	then :; else
2873	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2874	fi
2875	# We set ac_cv_exeext here because the later test for it is not
2876	# safe: cross compilers may not add the suffix if given an `-o'
2877	# argument, so we may need to know it at that point already.
2878	# Even if this section looks crufty: it has the advantage of
2879	# actually working.
2880	break;;
2881    * )
2882	break;;
2883  esac
2884done
2885test "$ac_cv_exeext" = no && ac_cv_exeext=
2886
2887else
2888  ac_file=''
2889fi
2890
2891{ echo "$as_me:$LINENO: result: $ac_file" >&5
2892echo "${ECHO_T}$ac_file" >&6; }
2893if test -z "$ac_file"; then
2894  echo "$as_me: failed program was:" >&5
2895sed 's/^/| /' conftest.$ac_ext >&5
2896
2897{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2898See \`config.log' for more details." >&5
2899echo "$as_me: error: C compiler cannot create executables
2900See \`config.log' for more details." >&2;}
2901   { (exit 77); exit 77; }; }
2902fi
2903
2904ac_exeext=$ac_cv_exeext
2905
2906# Check that the compiler produces executables we can run.  If not, either
2907# the compiler is broken, or we cross compile.
2908{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2909echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2910# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2911# If not cross compiling, check that we can run a simple program.
2912if test "$cross_compiling" != yes; then
2913  if { ac_try='./$ac_file'
2914  { (case "(($ac_try" in
2915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916  *) ac_try_echo=$ac_try;;
2917esac
2918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919  (eval "$ac_try") 2>&5
2920  ac_status=$?
2921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922  (exit $ac_status); }; }; then
2923    cross_compiling=no
2924  else
2925    if test "$cross_compiling" = maybe; then
2926	cross_compiling=yes
2927    else
2928	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2929If you meant to cross compile, use \`--host'.
2930See \`config.log' for more details." >&5
2931echo "$as_me: error: cannot run C compiled programs.
2932If you meant to cross compile, use \`--host'.
2933See \`config.log' for more details." >&2;}
2934   { (exit 1); exit 1; }; }
2935    fi
2936  fi
2937fi
2938{ echo "$as_me:$LINENO: result: yes" >&5
2939echo "${ECHO_T}yes" >&6; }
2940
2941rm -f a.out a.exe conftest$ac_cv_exeext b.out
2942ac_clean_files=$ac_clean_files_save
2943# Check that the compiler produces executables we can run.  If not, either
2944# the compiler is broken, or we cross compile.
2945{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2946echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2947{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2948echo "${ECHO_T}$cross_compiling" >&6; }
2949
2950{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2951echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2952if { (ac_try="$ac_link"
2953case "(($ac_try" in
2954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955  *) ac_try_echo=$ac_try;;
2956esac
2957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958  (eval "$ac_link") 2>&5
2959  ac_status=$?
2960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961  (exit $ac_status); }; then
2962  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2963# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2964# work properly (i.e., refer to `conftest.exe'), while it won't with
2965# `rm'.
2966for ac_file in conftest.exe conftest conftest.*; do
2967  test -f "$ac_file" || continue
2968  case $ac_file in
2969    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2970    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2971	  break;;
2972    * ) break;;
2973  esac
2974done
2975else
2976  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2977See \`config.log' for more details." >&5
2978echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2979See \`config.log' for more details." >&2;}
2980   { (exit 1); exit 1; }; }
2981fi
2982
2983rm -f conftest$ac_cv_exeext
2984{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2985echo "${ECHO_T}$ac_cv_exeext" >&6; }
2986
2987rm -f conftest.$ac_ext
2988EXEEXT=$ac_cv_exeext
2989ac_exeext=$EXEEXT
2990{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2991echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2992if test "${ac_cv_objext+set}" = set; then
2993  echo $ECHO_N "(cached) $ECHO_C" >&6
2994else
2995  cat >conftest.$ac_ext <<_ACEOF
2996/* confdefs.h.  */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h.  */
3001
3002int
3003main ()
3004{
3005
3006  ;
3007  return 0;
3008}
3009_ACEOF
3010rm -f conftest.o conftest.obj
3011if { (ac_try="$ac_compile"
3012case "(($ac_try" in
3013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014  *) ac_try_echo=$ac_try;;
3015esac
3016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017  (eval "$ac_compile") 2>&5
3018  ac_status=$?
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); }; then
3021  for ac_file in conftest.o conftest.obj conftest.*; do
3022  test -f "$ac_file" || continue;
3023  case $ac_file in
3024    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3025    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3026       break;;
3027  esac
3028done
3029else
3030  echo "$as_me: failed program was:" >&5
3031sed 's/^/| /' conftest.$ac_ext >&5
3032
3033{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3034See \`config.log' for more details." >&5
3035echo "$as_me: error: cannot compute suffix of object files: cannot compile
3036See \`config.log' for more details." >&2;}
3037   { (exit 1); exit 1; }; }
3038fi
3039
3040rm -f conftest.$ac_cv_objext conftest.$ac_ext
3041fi
3042{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3043echo "${ECHO_T}$ac_cv_objext" >&6; }
3044OBJEXT=$ac_cv_objext
3045ac_objext=$OBJEXT
3046{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3047echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3048if test "${ac_cv_c_compiler_gnu+set}" = set; then
3049  echo $ECHO_N "(cached) $ECHO_C" >&6
3050else
3051  cat >conftest.$ac_ext <<_ACEOF
3052/* confdefs.h.  */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h.  */
3057
3058int
3059main ()
3060{
3061#ifndef __GNUC__
3062       choke me
3063#endif
3064
3065  ;
3066  return 0;
3067}
3068_ACEOF
3069rm -f conftest.$ac_objext
3070if { (ac_try="$ac_compile"
3071case "(($ac_try" in
3072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073  *) ac_try_echo=$ac_try;;
3074esac
3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076  (eval "$ac_compile") 2>conftest.er1
3077  ac_status=$?
3078  grep -v '^ *+' conftest.er1 >conftest.err
3079  rm -f conftest.er1
3080  cat conftest.err >&5
3081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082  (exit $ac_status); } && {
3083	 test -z "$ac_c_werror_flag" ||
3084	 test ! -s conftest.err
3085       } && test -s conftest.$ac_objext; then
3086  ac_compiler_gnu=yes
3087else
3088  echo "$as_me: failed program was:" >&5
3089sed 's/^/| /' conftest.$ac_ext >&5
3090
3091	ac_compiler_gnu=no
3092fi
3093
3094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095ac_cv_c_compiler_gnu=$ac_compiler_gnu
3096
3097fi
3098{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3099echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3100GCC=`test $ac_compiler_gnu = yes && echo yes`
3101ac_test_CFLAGS=${CFLAGS+set}
3102ac_save_CFLAGS=$CFLAGS
3103{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3104echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3105if test "${ac_cv_prog_cc_g+set}" = set; then
3106  echo $ECHO_N "(cached) $ECHO_C" >&6
3107else
3108  ac_save_c_werror_flag=$ac_c_werror_flag
3109   ac_c_werror_flag=yes
3110   ac_cv_prog_cc_g=no
3111   CFLAGS="-g"
3112   cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h.  */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h.  */
3118
3119int
3120main ()
3121{
3122
3123  ;
3124  return 0;
3125}
3126_ACEOF
3127rm -f conftest.$ac_objext
3128if { (ac_try="$ac_compile"
3129case "(($ac_try" in
3130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131  *) ac_try_echo=$ac_try;;
3132esac
3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134  (eval "$ac_compile") 2>conftest.er1
3135  ac_status=$?
3136  grep -v '^ *+' conftest.er1 >conftest.err
3137  rm -f conftest.er1
3138  cat conftest.err >&5
3139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140  (exit $ac_status); } && {
3141	 test -z "$ac_c_werror_flag" ||
3142	 test ! -s conftest.err
3143       } && test -s conftest.$ac_objext; then
3144  ac_cv_prog_cc_g=yes
3145else
3146  echo "$as_me: failed program was:" >&5
3147sed 's/^/| /' conftest.$ac_ext >&5
3148
3149	CFLAGS=""
3150      cat >conftest.$ac_ext <<_ACEOF
3151/* confdefs.h.  */
3152_ACEOF
3153cat confdefs.h >>conftest.$ac_ext
3154cat >>conftest.$ac_ext <<_ACEOF
3155/* end confdefs.h.  */
3156
3157int
3158main ()
3159{
3160
3161  ;
3162  return 0;
3163}
3164_ACEOF
3165rm -f conftest.$ac_objext
3166if { (ac_try="$ac_compile"
3167case "(($ac_try" in
3168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169  *) ac_try_echo=$ac_try;;
3170esac
3171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172  (eval "$ac_compile") 2>conftest.er1
3173  ac_status=$?
3174  grep -v '^ *+' conftest.er1 >conftest.err
3175  rm -f conftest.er1
3176  cat conftest.err >&5
3177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178  (exit $ac_status); } && {
3179	 test -z "$ac_c_werror_flag" ||
3180	 test ! -s conftest.err
3181       } && test -s conftest.$ac_objext; then
3182  :
3183else
3184  echo "$as_me: failed program was:" >&5
3185sed 's/^/| /' conftest.$ac_ext >&5
3186
3187	ac_c_werror_flag=$ac_save_c_werror_flag
3188	 CFLAGS="-g"
3189	 cat >conftest.$ac_ext <<_ACEOF
3190/* confdefs.h.  */
3191_ACEOF
3192cat confdefs.h >>conftest.$ac_ext
3193cat >>conftest.$ac_ext <<_ACEOF
3194/* end confdefs.h.  */
3195
3196int
3197main ()
3198{
3199
3200  ;
3201  return 0;
3202}
3203_ACEOF
3204rm -f conftest.$ac_objext
3205if { (ac_try="$ac_compile"
3206case "(($ac_try" in
3207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208  *) ac_try_echo=$ac_try;;
3209esac
3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211  (eval "$ac_compile") 2>conftest.er1
3212  ac_status=$?
3213  grep -v '^ *+' conftest.er1 >conftest.err
3214  rm -f conftest.er1
3215  cat conftest.err >&5
3216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217  (exit $ac_status); } && {
3218	 test -z "$ac_c_werror_flag" ||
3219	 test ! -s conftest.err
3220       } && test -s conftest.$ac_objext; then
3221  ac_cv_prog_cc_g=yes
3222else
3223  echo "$as_me: failed program was:" >&5
3224sed 's/^/| /' conftest.$ac_ext >&5
3225
3226
3227fi
3228
3229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230fi
3231
3232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233fi
3234
3235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236   ac_c_werror_flag=$ac_save_c_werror_flag
3237fi
3238{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3239echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3240if test "$ac_test_CFLAGS" = set; then
3241  CFLAGS=$ac_save_CFLAGS
3242elif test $ac_cv_prog_cc_g = yes; then
3243  if test "$GCC" = yes; then
3244    CFLAGS="-g -O2"
3245  else
3246    CFLAGS="-g"
3247  fi
3248else
3249  if test "$GCC" = yes; then
3250    CFLAGS="-O2"
3251  else
3252    CFLAGS=
3253  fi
3254fi
3255{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3256echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3257if test "${ac_cv_prog_cc_c89+set}" = set; then
3258  echo $ECHO_N "(cached) $ECHO_C" >&6
3259else
3260  ac_cv_prog_cc_c89=no
3261ac_save_CC=$CC
3262cat >conftest.$ac_ext <<_ACEOF
3263/* confdefs.h.  */
3264_ACEOF
3265cat confdefs.h >>conftest.$ac_ext
3266cat >>conftest.$ac_ext <<_ACEOF
3267/* end confdefs.h.  */
3268#include <stdarg.h>
3269#include <stdio.h>
3270#include <sys/types.h>
3271#include <sys/stat.h>
3272/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3273struct buf { int x; };
3274FILE * (*rcsopen) (struct buf *, struct stat *, int);
3275static char *e (p, i)
3276     char **p;
3277     int i;
3278{
3279  return p[i];
3280}
3281static char *f (char * (*g) (char **, int), char **p, ...)
3282{
3283  char *s;
3284  va_list v;
3285  va_start (v,p);
3286  s = g (p, va_arg (v,int));
3287  va_end (v);
3288  return s;
3289}
3290
3291/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3292   function prototypes and stuff, but not '\xHH' hex character constants.
3293   These don't provoke an error unfortunately, instead are silently treated
3294   as 'x'.  The following induces an error, until -std is added to get
3295   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3296   array size at least.  It's necessary to write '\x00'==0 to get something
3297   that's true only with -std.  */
3298int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3299
3300/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3301   inside strings and character constants.  */
3302#define FOO(x) 'x'
3303int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3304
3305int test (int i, double x);
3306struct s1 {int (*f) (int a);};
3307struct s2 {int (*f) (double a);};
3308int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3309int argc;
3310char **argv;
3311int
3312main ()
3313{
3314return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3315  ;
3316  return 0;
3317}
3318_ACEOF
3319for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3320	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3321do
3322  CC="$ac_save_CC $ac_arg"
3323  rm -f conftest.$ac_objext
3324if { (ac_try="$ac_compile"
3325case "(($ac_try" in
3326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327  *) ac_try_echo=$ac_try;;
3328esac
3329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330  (eval "$ac_compile") 2>conftest.er1
3331  ac_status=$?
3332  grep -v '^ *+' conftest.er1 >conftest.err
3333  rm -f conftest.er1
3334  cat conftest.err >&5
3335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336  (exit $ac_status); } && {
3337	 test -z "$ac_c_werror_flag" ||
3338	 test ! -s conftest.err
3339       } && test -s conftest.$ac_objext; then
3340  ac_cv_prog_cc_c89=$ac_arg
3341else
3342  echo "$as_me: failed program was:" >&5
3343sed 's/^/| /' conftest.$ac_ext >&5
3344
3345
3346fi
3347
3348rm -f core conftest.err conftest.$ac_objext
3349  test "x$ac_cv_prog_cc_c89" != "xno" && break
3350done
3351rm -f conftest.$ac_ext
3352CC=$ac_save_CC
3353
3354fi
3355# AC_CACHE_VAL
3356case "x$ac_cv_prog_cc_c89" in
3357  x)
3358    { echo "$as_me:$LINENO: result: none needed" >&5
3359echo "${ECHO_T}none needed" >&6; } ;;
3360  xno)
3361    { echo "$as_me:$LINENO: result: unsupported" >&5
3362echo "${ECHO_T}unsupported" >&6; } ;;
3363  *)
3364    CC="$CC $ac_cv_prog_cc_c89"
3365    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3366echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3367esac
3368
3369
3370ac_ext=c
3371ac_cpp='$CPP $CPPFLAGS'
3372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375DEPDIR="${am__leading_dot}deps"
3376
3377ac_config_commands="$ac_config_commands depfiles"
3378
3379
3380am_make=${MAKE-make}
3381cat > confinc << 'END'
3382am__doit:
3383	@echo done
3384.PHONY: am__doit
3385END
3386# If we don't find an include directive, just comment out the code.
3387{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3388echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3389am__include="#"
3390am__quote=
3391_am_result=none
3392# First try GNU make style include.
3393echo "include confinc" > confmf
3394# We grep out `Entering directory' and `Leaving directory'
3395# messages which can occur if `w' ends up in MAKEFLAGS.
3396# In particular we don't look at `^make:' because GNU make might
3397# be invoked under some other name (usually "gmake"), in which
3398# case it prints its new name instead of `make'.
3399if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3400   am__include=include
3401   am__quote=
3402   _am_result=GNU
3403fi
3404# Now try BSD make style include.
3405if test "$am__include" = "#"; then
3406   echo '.include "confinc"' > confmf
3407   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3408      am__include=.include
3409      am__quote="\""
3410      _am_result=BSD
3411   fi
3412fi
3413
3414
3415{ echo "$as_me:$LINENO: result: $_am_result" >&5
3416echo "${ECHO_T}$_am_result" >&6; }
3417rm -f confinc confmf
3418
3419# Check whether --enable-dependency-tracking was given.
3420if test "${enable_dependency_tracking+set}" = set; then
3421  enableval=$enable_dependency_tracking;
3422fi
3423
3424if test "x$enable_dependency_tracking" != xno; then
3425  am_depcomp="$ac_aux_dir/depcomp"
3426  AMDEPBACKSLASH='\'
3427fi
3428 if test "x$enable_dependency_tracking" != xno; then
3429  AMDEP_TRUE=
3430  AMDEP_FALSE='#'
3431else
3432  AMDEP_TRUE='#'
3433  AMDEP_FALSE=
3434fi
3435
3436
3437
3438depcc="$CC"   am_compiler_list=
3439
3440{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3441echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3442if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3443  echo $ECHO_N "(cached) $ECHO_C" >&6
3444else
3445  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3446  # We make a subdir and do the tests there.  Otherwise we can end up
3447  # making bogus files that we don't know about and never remove.  For
3448  # instance it was reported that on HP-UX the gcc test will end up
3449  # making a dummy file named `D' -- because `-MD' means `put the output
3450  # in D'.
3451  mkdir conftest.dir
3452  # Copy depcomp to subdir because otherwise we won't find it if we're
3453  # using a relative directory.
3454  cp "$am_depcomp" conftest.dir
3455  cd conftest.dir
3456  # We will build objects and dependencies in a subdirectory because
3457  # it helps to detect inapplicable dependency modes.  For instance
3458  # both Tru64's cc and ICC support -MD to output dependencies as a
3459  # side effect of compilation, but ICC will put the dependencies in
3460  # the current directory while Tru64 will put them in the object
3461  # directory.
3462  mkdir sub
3463
3464  am_cv_CC_dependencies_compiler_type=none
3465  if test "$am_compiler_list" = ""; then
3466     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3467  fi
3468  for depmode in $am_compiler_list; do
3469    # Setup a source with many dependencies, because some compilers
3470    # like to wrap large dependency lists on column 80 (with \), and
3471    # we should not choose a depcomp mode which is confused by this.
3472    #
3473    # We need to recreate these files for each test, as the compiler may
3474    # overwrite some of them when testing with obscure command lines.
3475    # This happens at least with the AIX C compiler.
3476    : > sub/conftest.c
3477    for i in 1 2 3 4 5 6; do
3478      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3479      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3480      # Solaris 8's {/usr,}/bin/sh.
3481      touch sub/conftst$i.h
3482    done
3483    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3484
3485    case $depmode in
3486    nosideeffect)
3487      # after this tag, mechanisms are not by side-effect, so they'll
3488      # only be used when explicitly requested
3489      if test "x$enable_dependency_tracking" = xyes; then
3490	continue
3491      else
3492	break
3493      fi
3494      ;;
3495    none) break ;;
3496    esac
3497    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3498    # mode.  It turns out that the SunPro C++ compiler does not properly
3499    # handle `-M -o', and we need to detect this.
3500    if depmode=$depmode \
3501       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3502       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3503       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3504         >/dev/null 2>conftest.err &&
3505       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3506       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3507       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3508       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3509      # icc doesn't choke on unknown options, it will just issue warnings
3510      # or remarks (even with -Werror).  So we grep stderr for any message
3511      # that says an option was ignored or not supported.
3512      # When given -MP, icc 7.0 and 7.1 complain thusly:
3513      #   icc: Command line warning: ignoring option '-M'; no argument required
3514      # The diagnosis changed in icc 8.0:
3515      #   icc: Command line remark: option '-MP' not supported
3516      if (grep 'ignoring option' conftest.err ||
3517          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3518        am_cv_CC_dependencies_compiler_type=$depmode
3519        break
3520      fi
3521    fi
3522  done
3523
3524  cd ..
3525  rm -rf conftest.dir
3526else
3527  am_cv_CC_dependencies_compiler_type=none
3528fi
3529
3530fi
3531{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3532echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3533CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3534
3535 if
3536  test "x$enable_dependency_tracking" != xno \
3537  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3538  am__fastdepCC_TRUE=
3539  am__fastdepCC_FALSE='#'
3540else
3541  am__fastdepCC_TRUE='#'
3542  am__fastdepCC_FALSE=
3543fi
3544
3545
3546ac_ext=c
3547ac_cpp='$CPP $CPPFLAGS'
3548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3552echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3553# On Suns, sometimes $CPP names a directory.
3554if test -n "$CPP" && test -d "$CPP"; then
3555  CPP=
3556fi
3557if test -z "$CPP"; then
3558  if test "${ac_cv_prog_CPP+set}" = set; then
3559  echo $ECHO_N "(cached) $ECHO_C" >&6
3560else
3561      # Double quotes because CPP needs to be expanded
3562    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3563    do
3564      ac_preproc_ok=false
3565for ac_c_preproc_warn_flag in '' yes
3566do
3567  # Use a header file that comes with gcc, so configuring glibc
3568  # with a fresh cross-compiler works.
3569  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3570  # <limits.h> exists even on freestanding compilers.
3571  # On the NeXT, cc -E runs the code through the compiler's parser,
3572  # not just through cpp. "Syntax error" is here to catch this case.
3573  cat >conftest.$ac_ext <<_ACEOF
3574/* confdefs.h.  */
3575_ACEOF
3576cat confdefs.h >>conftest.$ac_ext
3577cat >>conftest.$ac_ext <<_ACEOF
3578/* end confdefs.h.  */
3579#ifdef __STDC__
3580# include <limits.h>
3581#else
3582# include <assert.h>
3583#endif
3584		     Syntax error
3585_ACEOF
3586if { (ac_try="$ac_cpp conftest.$ac_ext"
3587case "(($ac_try" in
3588  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589  *) ac_try_echo=$ac_try;;
3590esac
3591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3593  ac_status=$?
3594  grep -v '^ *+' conftest.er1 >conftest.err
3595  rm -f conftest.er1
3596  cat conftest.err >&5
3597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598  (exit $ac_status); } >/dev/null && {
3599	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3600	 test ! -s conftest.err
3601       }; then
3602  :
3603else
3604  echo "$as_me: failed program was:" >&5
3605sed 's/^/| /' conftest.$ac_ext >&5
3606
3607  # Broken: fails on valid input.
3608continue
3609fi
3610
3611rm -f conftest.err conftest.$ac_ext
3612
3613  # OK, works on sane cases.  Now check whether nonexistent headers
3614  # can be detected and how.
3615  cat >conftest.$ac_ext <<_ACEOF
3616/* confdefs.h.  */
3617_ACEOF
3618cat confdefs.h >>conftest.$ac_ext
3619cat >>conftest.$ac_ext <<_ACEOF
3620/* end confdefs.h.  */
3621#include <ac_nonexistent.h>
3622_ACEOF
3623if { (ac_try="$ac_cpp conftest.$ac_ext"
3624case "(($ac_try" in
3625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626  *) ac_try_echo=$ac_try;;
3627esac
3628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3629  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3630  ac_status=$?
3631  grep -v '^ *+' conftest.er1 >conftest.err
3632  rm -f conftest.er1
3633  cat conftest.err >&5
3634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635  (exit $ac_status); } >/dev/null && {
3636	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3637	 test ! -s conftest.err
3638       }; then
3639  # Broken: success on invalid input.
3640continue
3641else
3642  echo "$as_me: failed program was:" >&5
3643sed 's/^/| /' conftest.$ac_ext >&5
3644
3645  # Passes both tests.
3646ac_preproc_ok=:
3647break
3648fi
3649
3650rm -f conftest.err conftest.$ac_ext
3651
3652done
3653# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3654rm -f conftest.err conftest.$ac_ext
3655if $ac_preproc_ok; then
3656  break
3657fi
3658
3659    done
3660    ac_cv_prog_CPP=$CPP
3661
3662fi
3663  CPP=$ac_cv_prog_CPP
3664else
3665  ac_cv_prog_CPP=$CPP
3666fi
3667{ echo "$as_me:$LINENO: result: $CPP" >&5
3668echo "${ECHO_T}$CPP" >&6; }
3669ac_preproc_ok=false
3670for ac_c_preproc_warn_flag in '' yes
3671do
3672  # Use a header file that comes with gcc, so configuring glibc
3673  # with a fresh cross-compiler works.
3674  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3675  # <limits.h> exists even on freestanding compilers.
3676  # On the NeXT, cc -E runs the code through the compiler's parser,
3677  # not just through cpp. "Syntax error" is here to catch this case.
3678  cat >conftest.$ac_ext <<_ACEOF
3679/* confdefs.h.  */
3680_ACEOF
3681cat confdefs.h >>conftest.$ac_ext
3682cat >>conftest.$ac_ext <<_ACEOF
3683/* end confdefs.h.  */
3684#ifdef __STDC__
3685# include <limits.h>
3686#else
3687# include <assert.h>
3688#endif
3689		     Syntax error
3690_ACEOF
3691if { (ac_try="$ac_cpp conftest.$ac_ext"
3692case "(($ac_try" in
3693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694  *) ac_try_echo=$ac_try;;
3695esac
3696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3698  ac_status=$?
3699  grep -v '^ *+' conftest.er1 >conftest.err
3700  rm -f conftest.er1
3701  cat conftest.err >&5
3702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703  (exit $ac_status); } >/dev/null && {
3704	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3705	 test ! -s conftest.err
3706       }; then
3707  :
3708else
3709  echo "$as_me: failed program was:" >&5
3710sed 's/^/| /' conftest.$ac_ext >&5
3711
3712  # Broken: fails on valid input.
3713continue
3714fi
3715
3716rm -f conftest.err conftest.$ac_ext
3717
3718  # OK, works on sane cases.  Now check whether nonexistent headers
3719  # can be detected and how.
3720  cat >conftest.$ac_ext <<_ACEOF
3721/* confdefs.h.  */
3722_ACEOF
3723cat confdefs.h >>conftest.$ac_ext
3724cat >>conftest.$ac_ext <<_ACEOF
3725/* end confdefs.h.  */
3726#include <ac_nonexistent.h>
3727_ACEOF
3728if { (ac_try="$ac_cpp conftest.$ac_ext"
3729case "(($ac_try" in
3730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731  *) ac_try_echo=$ac_try;;
3732esac
3733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3735  ac_status=$?
3736  grep -v '^ *+' conftest.er1 >conftest.err
3737  rm -f conftest.er1
3738  cat conftest.err >&5
3739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740  (exit $ac_status); } >/dev/null && {
3741	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3742	 test ! -s conftest.err
3743       }; then
3744  # Broken: success on invalid input.
3745continue
3746else
3747  echo "$as_me: failed program was:" >&5
3748sed 's/^/| /' conftest.$ac_ext >&5
3749
3750  # Passes both tests.
3751ac_preproc_ok=:
3752break
3753fi
3754
3755rm -f conftest.err conftest.$ac_ext
3756
3757done
3758# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3759rm -f conftest.err conftest.$ac_ext
3760if $ac_preproc_ok; then
3761  :
3762else
3763  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3764See \`config.log' for more details." >&5
3765echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3766See \`config.log' for more details." >&2;}
3767   { (exit 1); exit 1; }; }
3768fi
3769
3770ac_ext=c
3771ac_cpp='$CPP $CPPFLAGS'
3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775
3776# Find a good install program.  We prefer a C program (faster),
3777# so one script is as good as another.  But avoid the broken or
3778# incompatible versions:
3779# SysV /etc/install, /usr/sbin/install
3780# SunOS /usr/etc/install
3781# IRIX /sbin/install
3782# AIX /bin/install
3783# AmigaOS /C/install, which installs bootblocks on floppy discs
3784# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3785# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3786# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3787# OS/2's system install, which has a completely different semantic
3788# ./install, which can be erroneously created by make from ./install.sh.
3789{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3790echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3791if test -z "$INSTALL"; then
3792if test "${ac_cv_path_install+set}" = set; then
3793  echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798  IFS=$as_save_IFS
3799  test -z "$as_dir" && as_dir=.
3800  # Account for people who put trailing slashes in PATH elements.
3801case $as_dir/ in
3802  ./ | .// | /cC/* | \
3803  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3804  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3805  /usr/ucb/* ) ;;
3806  *)
3807    # OSF1 and SCO ODT 3.0 have their own names for install.
3808    # Don't use installbsd from OSF since it installs stuff as root
3809    # by default.
3810    for ac_prog in ginstall scoinst install; do
3811      for ac_exec_ext in '' $ac_executable_extensions; do
3812	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3813	  if test $ac_prog = install &&
3814	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3815	    # AIX install.  It has an incompatible calling convention.
3816	    :
3817	  elif test $ac_prog = install &&
3818	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3819	    # program-specific install script used by HP pwplus--don't use.
3820	    :
3821	  else
3822	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3823	    break 3
3824	  fi
3825	fi
3826      done
3827    done
3828    ;;
3829esac
3830done
3831IFS=$as_save_IFS
3832
3833
3834fi
3835  if test "${ac_cv_path_install+set}" = set; then
3836    INSTALL=$ac_cv_path_install
3837  else
3838    # As a last resort, use the slow shell script.  Don't cache a
3839    # value for INSTALL within a source directory, because that will
3840    # break other packages using the cache if that directory is
3841    # removed, or if the value is a relative name.
3842    INSTALL=$ac_install_sh
3843  fi
3844fi
3845{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3846echo "${ECHO_T}$INSTALL" >&6; }
3847
3848# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3849# It thinks the first close brace ends the variable substitution.
3850test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3851
3852test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3853
3854test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3855
3856{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3857echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3858LN_S=$as_ln_s
3859if test "$LN_S" = "ln -s"; then
3860  { echo "$as_me:$LINENO: result: yes" >&5
3861echo "${ECHO_T}yes" >&6; }
3862else
3863  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3864echo "${ECHO_T}no, using $LN_S" >&6; }
3865fi
3866
3867{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3868echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3869set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3870if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3871  echo $ECHO_N "(cached) $ECHO_C" >&6
3872else
3873  cat >conftest.make <<\_ACEOF
3874SHELL = /bin/sh
3875all:
3876	@echo '@@@%%%=$(MAKE)=@@@%%%'
3877_ACEOF
3878# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3879case `${MAKE-make} -f conftest.make 2>/dev/null` in
3880  *@@@%%%=?*=@@@%%%*)
3881    eval ac_cv_prog_make_${ac_make}_set=yes;;
3882  *)
3883    eval ac_cv_prog_make_${ac_make}_set=no;;
3884esac
3885rm -f conftest.make
3886fi
3887if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3888  { echo "$as_me:$LINENO: result: yes" >&5
3889echo "${ECHO_T}yes" >&6; }
3890  SET_MAKE=
3891else
3892  { echo "$as_me:$LINENO: result: no" >&5
3893echo "${ECHO_T}no" >&6; }
3894  SET_MAKE="MAKE=${MAKE-make}"
3895fi
3896
3897# AC_PROG_RANLIB
3898# Check whether --enable-shared was given.
3899if test "${enable_shared+set}" = set; then
3900  enableval=$enable_shared; p=${PACKAGE-default}
3901    case $enableval in
3902    yes) enable_shared=yes ;;
3903    no) enable_shared=no ;;
3904    *)
3905      enable_shared=no
3906      # Look at the argument we got.  We use all the common list separators.
3907      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3908      for pkg in $enableval; do
3909	IFS="$lt_save_ifs"
3910	if test "X$pkg" = "X$p"; then
3911	  enable_shared=yes
3912	fi
3913      done
3914      IFS="$lt_save_ifs"
3915      ;;
3916    esac
3917else
3918  enable_shared=yes
3919fi
3920
3921
3922# Check whether --enable-static was given.
3923if test "${enable_static+set}" = set; then
3924  enableval=$enable_static; p=${PACKAGE-default}
3925    case $enableval in
3926    yes) enable_static=yes ;;
3927    no) enable_static=no ;;
3928    *)
3929     enable_static=no
3930      # Look at the argument we got.  We use all the common list separators.
3931      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3932      for pkg in $enableval; do
3933	IFS="$lt_save_ifs"
3934	if test "X$pkg" = "X$p"; then
3935	  enable_static=yes
3936	fi
3937      done
3938      IFS="$lt_save_ifs"
3939      ;;
3940    esac
3941else
3942  enable_static=yes
3943fi
3944
3945
3946# Check whether --enable-fast-install was given.
3947if test "${enable_fast_install+set}" = set; then
3948  enableval=$enable_fast_install; p=${PACKAGE-default}
3949    case $enableval in
3950    yes) enable_fast_install=yes ;;
3951    no) enable_fast_install=no ;;
3952    *)
3953      enable_fast_install=no
3954      # Look at the argument we got.  We use all the common list separators.
3955      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3956      for pkg in $enableval; do
3957	IFS="$lt_save_ifs"
3958	if test "X$pkg" = "X$p"; then
3959	  enable_fast_install=yes
3960	fi
3961      done
3962      IFS="$lt_save_ifs"
3963      ;;
3964    esac
3965else
3966  enable_fast_install=yes
3967fi
3968
3969
3970# Make sure we can run config.sub.
3971$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3972  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3973echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3974   { (exit 1); exit 1; }; }
3975
3976{ echo "$as_me:$LINENO: checking build system type" >&5
3977echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3978if test "${ac_cv_build+set}" = set; then
3979  echo $ECHO_N "(cached) $ECHO_C" >&6
3980else
3981  ac_build_alias=$build_alias
3982test "x$ac_build_alias" = x &&
3983  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3984test "x$ac_build_alias" = x &&
3985  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3986echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3987   { (exit 1); exit 1; }; }
3988ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3989  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3990echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3991   { (exit 1); exit 1; }; }
3992
3993fi
3994{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3995echo "${ECHO_T}$ac_cv_build" >&6; }
3996case $ac_cv_build in
3997*-*-*) ;;
3998*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3999echo "$as_me: error: invalid value of canonical build" >&2;}
4000   { (exit 1); exit 1; }; };;
4001esac
4002build=$ac_cv_build
4003ac_save_IFS=$IFS; IFS='-'
4004set x $ac_cv_build
4005shift
4006build_cpu=$1
4007build_vendor=$2
4008shift; shift
4009# Remember, the first character of IFS is used to create $*,
4010# except with old shells:
4011build_os=$*
4012IFS=$ac_save_IFS
4013case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4014
4015
4016{ echo "$as_me:$LINENO: checking host system type" >&5
4017echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4018if test "${ac_cv_host+set}" = set; then
4019  echo $ECHO_N "(cached) $ECHO_C" >&6
4020else
4021  if test "x$host_alias" = x; then
4022  ac_cv_host=$ac_cv_build
4023else
4024  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4025    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4026echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4027   { (exit 1); exit 1; }; }
4028fi
4029
4030fi
4031{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4032echo "${ECHO_T}$ac_cv_host" >&6; }
4033case $ac_cv_host in
4034*-*-*) ;;
4035*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4036echo "$as_me: error: invalid value of canonical host" >&2;}
4037   { (exit 1); exit 1; }; };;
4038esac
4039host=$ac_cv_host
4040ac_save_IFS=$IFS; IFS='-'
4041set x $ac_cv_host
4042shift
4043host_cpu=$1
4044host_vendor=$2
4045shift; shift
4046# Remember, the first character of IFS is used to create $*,
4047# except with old shells:
4048host_os=$*
4049IFS=$ac_save_IFS
4050case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4051
4052
4053{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4054echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4055if test "${lt_cv_path_SED+set}" = set; then
4056  echo $ECHO_N "(cached) $ECHO_C" >&6
4057else
4058  # Loop through the user's path and test for sed and gsed.
4059# Then use that list of sed's as ones to test for truncation.
4060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061for as_dir in $PATH
4062do
4063  IFS=$as_save_IFS
4064  test -z "$as_dir" && as_dir=.
4065  for lt_ac_prog in sed gsed; do
4066    for ac_exec_ext in '' $ac_executable_extensions; do
4067      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4068        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4069      fi
4070    done
4071  done
4072done
4073IFS=$as_save_IFS
4074lt_ac_max=0
4075lt_ac_count=0
4076# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4077# along with /bin/sed that truncates output.
4078for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4079  test ! -f $lt_ac_sed && continue
4080  cat /dev/null > conftest.in
4081  lt_ac_count=0
4082  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4083  # Check for GNU sed and select it if it is found.
4084  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4085    lt_cv_path_SED=$lt_ac_sed
4086    break
4087  fi
4088  while true; do
4089    cat conftest.in conftest.in >conftest.tmp
4090    mv conftest.tmp conftest.in
4091    cp conftest.in conftest.nl
4092    echo >>conftest.nl
4093    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4094    cmp -s conftest.out conftest.nl || break
4095    # 10000 chars as input seems more than enough
4096    test $lt_ac_count -gt 10 && break
4097    lt_ac_count=`expr $lt_ac_count + 1`
4098    if test $lt_ac_count -gt $lt_ac_max; then
4099      lt_ac_max=$lt_ac_count
4100      lt_cv_path_SED=$lt_ac_sed
4101    fi
4102  done
4103done
4104
4105fi
4106
4107SED=$lt_cv_path_SED
4108
4109{ echo "$as_me:$LINENO: result: $SED" >&5
4110echo "${ECHO_T}$SED" >&6; }
4111
4112{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4113echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4114if test "${ac_cv_path_GREP+set}" = set; then
4115  echo $ECHO_N "(cached) $ECHO_C" >&6
4116else
4117  # Extract the first word of "grep ggrep" to use in msg output
4118if test -z "$GREP"; then
4119set dummy grep ggrep; ac_prog_name=$2
4120if test "${ac_cv_path_GREP+set}" = set; then
4121  echo $ECHO_N "(cached) $ECHO_C" >&6
4122else
4123  ac_path_GREP_found=false
4124# Loop through the user's path and test for each of PROGNAME-LIST
4125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4127do
4128  IFS=$as_save_IFS
4129  test -z "$as_dir" && as_dir=.
4130  for ac_prog in grep ggrep; do
4131  for ac_exec_ext in '' $ac_executable_extensions; do
4132    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4133    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4134    # Check for GNU ac_path_GREP and select it if it is found.
4135  # Check for GNU $ac_path_GREP
4136case `"$ac_path_GREP" --version 2>&1` in
4137*GNU*)
4138  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4139*)
4140  ac_count=0
4141  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4142  while :
4143  do
4144    cat "conftest.in" "conftest.in" >"conftest.tmp"
4145    mv "conftest.tmp" "conftest.in"
4146    cp "conftest.in" "conftest.nl"
4147    echo 'GREP' >> "conftest.nl"
4148    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4149    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4150    ac_count=`expr $ac_count + 1`
4151    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4152      # Best one so far, save it but keep looking for a better one
4153      ac_cv_path_GREP="$ac_path_GREP"
4154      ac_path_GREP_max=$ac_count
4155    fi
4156    # 10*(2^10) chars as input seems more than enough
4157    test $ac_count -gt 10 && break
4158  done
4159  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4160esac
4161
4162
4163    $ac_path_GREP_found && break 3
4164  done
4165done
4166
4167done
4168IFS=$as_save_IFS
4169
4170
4171fi
4172
4173GREP="$ac_cv_path_GREP"
4174if test -z "$GREP"; then
4175  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4176echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4177   { (exit 1); exit 1; }; }
4178fi
4179
4180else
4181  ac_cv_path_GREP=$GREP
4182fi
4183
4184
4185fi
4186{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4187echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4188 GREP="$ac_cv_path_GREP"
4189
4190
4191{ echo "$as_me:$LINENO: checking for egrep" >&5
4192echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4193if test "${ac_cv_path_EGREP+set}" = set; then
4194  echo $ECHO_N "(cached) $ECHO_C" >&6
4195else
4196  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4197   then ac_cv_path_EGREP="$GREP -E"
4198   else
4199     # Extract the first word of "egrep" to use in msg output
4200if test -z "$EGREP"; then
4201set dummy egrep; ac_prog_name=$2
4202if test "${ac_cv_path_EGREP+set}" = set; then
4203  echo $ECHO_N "(cached) $ECHO_C" >&6
4204else
4205  ac_path_EGREP_found=false
4206# Loop through the user's path and test for each of PROGNAME-LIST
4207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4209do
4210  IFS=$as_save_IFS
4211  test -z "$as_dir" && as_dir=.
4212  for ac_prog in egrep; do
4213  for ac_exec_ext in '' $ac_executable_extensions; do
4214    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4215    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4216    # Check for GNU ac_path_EGREP and select it if it is found.
4217  # Check for GNU $ac_path_EGREP
4218case `"$ac_path_EGREP" --version 2>&1` in
4219*GNU*)
4220  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4221*)
4222  ac_count=0
4223  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4224  while :
4225  do
4226    cat "conftest.in" "conftest.in" >"conftest.tmp"
4227    mv "conftest.tmp" "conftest.in"
4228    cp "conftest.in" "conftest.nl"
4229    echo 'EGREP' >> "conftest.nl"
4230    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4231    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4232    ac_count=`expr $ac_count + 1`
4233    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4234      # Best one so far, save it but keep looking for a better one
4235      ac_cv_path_EGREP="$ac_path_EGREP"
4236      ac_path_EGREP_max=$ac_count
4237    fi
4238    # 10*(2^10) chars as input seems more than enough
4239    test $ac_count -gt 10 && break
4240  done
4241  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4242esac
4243
4244
4245    $ac_path_EGREP_found && break 3
4246  done
4247done
4248
4249done
4250IFS=$as_save_IFS
4251
4252
4253fi
4254
4255EGREP="$ac_cv_path_EGREP"
4256if test -z "$EGREP"; then
4257  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4258echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4259   { (exit 1); exit 1; }; }
4260fi
4261
4262else
4263  ac_cv_path_EGREP=$EGREP
4264fi
4265
4266
4267   fi
4268fi
4269{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4270echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4271 EGREP="$ac_cv_path_EGREP"
4272
4273
4274
4275# Check whether --with-gnu-ld was given.
4276if test "${with_gnu_ld+set}" = set; then
4277  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4278else
4279  with_gnu_ld=no
4280fi
4281
4282ac_prog=ld
4283if test "$GCC" = yes; then
4284  # Check if gcc -print-prog-name=ld gives a path.
4285  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4286echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4287  case $host in
4288  *-*-mingw*)
4289    # gcc leaves a trailing carriage return which upsets mingw
4290    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4291  *)
4292    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4293  esac
4294  case $ac_prog in
4295    # Accept absolute paths.
4296    [\\/]* | ?:[\\/]*)
4297      re_direlt='/[^/][^/]*/\.\./'
4298      # Canonicalize the pathname of ld
4299      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4300      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4301	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4302      done
4303      test -z "$LD" && LD="$ac_prog"
4304      ;;
4305  "")
4306    # If it fails, then pretend we aren't using GCC.
4307    ac_prog=ld
4308    ;;
4309  *)
4310    # If it is relative, then search for the first ld in PATH.
4311    with_gnu_ld=unknown
4312    ;;
4313  esac
4314elif test "$with_gnu_ld" = yes; then
4315  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4316echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4317else
4318  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4319echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4320fi
4321if test "${lt_cv_path_LD+set}" = set; then
4322  echo $ECHO_N "(cached) $ECHO_C" >&6
4323else
4324  if test -z "$LD"; then
4325  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4326  for ac_dir in $PATH; do
4327    IFS="$lt_save_ifs"
4328    test -z "$ac_dir" && ac_dir=.
4329    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4330      lt_cv_path_LD="$ac_dir/$ac_prog"
4331      # Check to see if the program is GNU ld.  I'd rather use --version,
4332      # but apparently some variants of GNU ld only accept -v.
4333      # Break only if it was the GNU/non-GNU ld that we prefer.
4334      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4335      *GNU* | *'with BFD'*)
4336	test "$with_gnu_ld" != no && break
4337	;;
4338      *)
4339	test "$with_gnu_ld" != yes && break
4340	;;
4341      esac
4342    fi
4343  done
4344  IFS="$lt_save_ifs"
4345else
4346  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4347fi
4348fi
4349
4350LD="$lt_cv_path_LD"
4351if test -n "$LD"; then
4352  { echo "$as_me:$LINENO: result: $LD" >&5
4353echo "${ECHO_T}$LD" >&6; }
4354else
4355  { echo "$as_me:$LINENO: result: no" >&5
4356echo "${ECHO_T}no" >&6; }
4357fi
4358test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4359echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4360   { (exit 1); exit 1; }; }
4361{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4362echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4363if test "${lt_cv_prog_gnu_ld+set}" = set; then
4364  echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
4366  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4367case `$LD -v 2>&1 </dev/null` in
4368*GNU* | *'with BFD'*)
4369  lt_cv_prog_gnu_ld=yes
4370  ;;
4371*)
4372  lt_cv_prog_gnu_ld=no
4373  ;;
4374esac
4375fi
4376{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4377echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4378with_gnu_ld=$lt_cv_prog_gnu_ld
4379
4380
4381{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4382echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4383if test "${lt_cv_ld_reload_flag+set}" = set; then
4384  echo $ECHO_N "(cached) $ECHO_C" >&6
4385else
4386  lt_cv_ld_reload_flag='-r'
4387fi
4388{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4389echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4390reload_flag=$lt_cv_ld_reload_flag
4391case $reload_flag in
4392"" | " "*) ;;
4393*) reload_flag=" $reload_flag" ;;
4394esac
4395reload_cmds='$LD$reload_flag -o $output$reload_objs'
4396case $host_os in
4397  darwin*)
4398    if test "$GCC" = yes; then
4399      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4400    else
4401      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4402    fi
4403    ;;
4404esac
4405
4406{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4407echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4408if test "${lt_cv_path_NM+set}" = set; then
4409  echo $ECHO_N "(cached) $ECHO_C" >&6
4410else
4411  if test -n "$NM"; then
4412  # Let the user override the test.
4413  lt_cv_path_NM="$NM"
4414else
4415  lt_nm_to_check="${ac_tool_prefix}nm"
4416  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4417    lt_nm_to_check="$lt_nm_to_check nm"
4418  fi
4419  for lt_tmp_nm in $lt_nm_to_check; do
4420    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4421    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4422      IFS="$lt_save_ifs"
4423      test -z "$ac_dir" && ac_dir=.
4424      tmp_nm="$ac_dir/$lt_tmp_nm"
4425      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4426	# Check to see if the nm accepts a BSD-compat flag.
4427	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4428	#   nm: unknown option "B" ignored
4429	# Tru64's nm complains that /dev/null is an invalid object file
4430	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4431	*/dev/null* | *'Invalid file or object type'*)
4432	  lt_cv_path_NM="$tmp_nm -B"
4433	  break
4434	  ;;
4435	*)
4436	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4437	  */dev/null*)
4438	    lt_cv_path_NM="$tmp_nm -p"
4439	    break
4440	    ;;
4441	  *)
4442	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4443	    continue # so that we can try to find one that supports BSD flags
4444	    ;;
4445	  esac
4446	  ;;
4447	esac
4448      fi
4449    done
4450    IFS="$lt_save_ifs"
4451  done
4452  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4453fi
4454fi
4455{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4456echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4457NM="$lt_cv_path_NM"
4458
4459{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4460echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4461if test "${lt_cv_deplibs_check_method+set}" = set; then
4462  echo $ECHO_N "(cached) $ECHO_C" >&6
4463else
4464  lt_cv_file_magic_cmd='$MAGIC_CMD'
4465lt_cv_file_magic_test_file=
4466lt_cv_deplibs_check_method='unknown'
4467# Need to set the preceding variable on all platforms that support
4468# interlibrary dependencies.
4469# 'none' -- dependencies not supported.
4470# `unknown' -- same as none, but documents that we really don't know.
4471# 'pass_all' -- all dependencies passed with no checks.
4472# 'test_compile' -- check by making test program.
4473# 'file_magic [[regex]]' -- check by looking for files in library path
4474# which responds to the $file_magic_cmd with a given extended regex.
4475# If you have `file' or equivalent on your system and you're not sure
4476# whether `pass_all' will *always* work, you probably want this one.
4477
4478case $host_os in
4479aix[4-9]*)
4480  lt_cv_deplibs_check_method=pass_all
4481  ;;
4482
4483beos*)
4484  lt_cv_deplibs_check_method=pass_all
4485  ;;
4486
4487bsdi[45]*)
4488  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4489  lt_cv_file_magic_cmd='/usr/bin/file -L'
4490  lt_cv_file_magic_test_file=/shlib/libc.so
4491  ;;
4492
4493cygwin*)
4494  # func_win32_libid is a shell function defined in ltmain.sh
4495  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4496  lt_cv_file_magic_cmd='func_win32_libid'
4497  ;;
4498
4499mingw* | pw32*)
4500  # Base MSYS/MinGW do not provide the 'file' command needed by
4501  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4502  # unless we find 'file', for example because we are cross-compiling.
4503  if ( file / ) >/dev/null 2>&1; then
4504    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4505    lt_cv_file_magic_cmd='func_win32_libid'
4506  else
4507    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4508    lt_cv_file_magic_cmd='$OBJDUMP -f'
4509  fi
4510  ;;
4511
4512darwin* | rhapsody*)
4513  lt_cv_deplibs_check_method=pass_all
4514  ;;
4515
4516freebsd* | dragonfly*)
4517  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4518    case $host_cpu in
4519    i*86 )
4520      # Not sure whether the presence of OpenBSD here was a mistake.
4521      # Let's accept both of them until this is cleared up.
4522      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4523      lt_cv_file_magic_cmd=/usr/bin/file
4524      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4525      ;;
4526    esac
4527  else
4528    lt_cv_deplibs_check_method=pass_all
4529  fi
4530  ;;
4531
4532gnu*)
4533  lt_cv_deplibs_check_method=pass_all
4534  ;;
4535
4536hpux10.20* | hpux11*)
4537  lt_cv_file_magic_cmd=/usr/bin/file
4538  case $host_cpu in
4539  ia64*)
4540    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4541    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4542    ;;
4543  hppa*64*)
4544    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]'
4545    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4546    ;;
4547  *)
4548    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4549    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4550    ;;
4551  esac
4552  ;;
4553
4554interix[3-9]*)
4555  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4556  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4557  ;;
4558
4559irix5* | irix6* | nonstopux*)
4560  case $LD in
4561  *-32|*"-32 ") libmagic=32-bit;;
4562  *-n32|*"-n32 ") libmagic=N32;;
4563  *-64|*"-64 ") libmagic=64-bit;;
4564  *) libmagic=never-match;;
4565  esac
4566  lt_cv_deplibs_check_method=pass_all
4567  ;;
4568
4569# This must be Linux ELF.
4570linux* | k*bsd*-gnu)
4571  lt_cv_deplibs_check_method=pass_all
4572  ;;
4573
4574netbsd* | netbsdelf*-gnu)
4575  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4576    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4577  else
4578    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4579  fi
4580  ;;
4581
4582newos6*)
4583  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4584  lt_cv_file_magic_cmd=/usr/bin/file
4585  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4586  ;;
4587
4588nto-qnx*)
4589  lt_cv_deplibs_check_method=unknown
4590  ;;
4591
4592openbsd*)
4593  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4594    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4595  else
4596    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4597  fi
4598  ;;
4599
4600osf3* | osf4* | osf5*)
4601  lt_cv_deplibs_check_method=pass_all
4602  ;;
4603
4604rdos*)
4605  lt_cv_deplibs_check_method=pass_all
4606  ;;
4607
4608solaris*)
4609  lt_cv_deplibs_check_method=pass_all
4610  ;;
4611
4612sysv4 | sysv4.3*)
4613  case $host_vendor in
4614  motorola)
4615    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]'
4616    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4617    ;;
4618  ncr)
4619    lt_cv_deplibs_check_method=pass_all
4620    ;;
4621  sequent)
4622    lt_cv_file_magic_cmd='/bin/file'
4623    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4624    ;;
4625  sni)
4626    lt_cv_file_magic_cmd='/bin/file'
4627    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4628    lt_cv_file_magic_test_file=/lib/libc.so
4629    ;;
4630  siemens)
4631    lt_cv_deplibs_check_method=pass_all
4632    ;;
4633  pc)
4634    lt_cv_deplibs_check_method=pass_all
4635    ;;
4636  esac
4637  ;;
4638
4639sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4640  lt_cv_deplibs_check_method=pass_all
4641  ;;
4642esac
4643
4644fi
4645{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4646echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4647file_magic_cmd=$lt_cv_file_magic_cmd
4648deplibs_check_method=$lt_cv_deplibs_check_method
4649test -z "$deplibs_check_method" && deplibs_check_method=unknown
4650
4651
4652
4653
4654# If no C compiler was specified, use CC.
4655LTCC=${LTCC-"$CC"}
4656
4657# If no C compiler flags were specified, use CFLAGS.
4658LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4659
4660# Allow CC to be a program name with arguments.
4661compiler=$CC
4662
4663
4664# Check whether --enable-libtool-lock was given.
4665if test "${enable_libtool_lock+set}" = set; then
4666  enableval=$enable_libtool_lock;
4667fi
4668
4669test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4670
4671# Some flags need to be propagated to the compiler or linker for good
4672# libtool support.
4673case $host in
4674ia64-*-hpux*)
4675  # Find out which ABI we are using.
4676  echo 'int i;' > conftest.$ac_ext
4677  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678  (eval $ac_compile) 2>&5
4679  ac_status=$?
4680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681  (exit $ac_status); }; then
4682    case `/usr/bin/file conftest.$ac_objext` in
4683    *ELF-32*)
4684      HPUX_IA64_MODE="32"
4685      ;;
4686    *ELF-64*)
4687      HPUX_IA64_MODE="64"
4688      ;;
4689    esac
4690  fi
4691  rm -rf conftest*
4692  ;;
4693*-*-irix6*)
4694  # Find out which ABI we are using.
4695  echo '#line 4695 "configure"' > conftest.$ac_ext
4696  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4697  (eval $ac_compile) 2>&5
4698  ac_status=$?
4699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700  (exit $ac_status); }; then
4701   if test "$lt_cv_prog_gnu_ld" = yes; then
4702    case `/usr/bin/file conftest.$ac_objext` in
4703    *32-bit*)
4704      LD="${LD-ld} -melf32bsmip"
4705      ;;
4706    *N32*)
4707      LD="${LD-ld} -melf32bmipn32"
4708      ;;
4709    *64-bit*)
4710      LD="${LD-ld} -melf64bmip"
4711      ;;
4712    esac
4713   else
4714    case `/usr/bin/file conftest.$ac_objext` in
4715    *32-bit*)
4716      LD="${LD-ld} -32"
4717      ;;
4718    *N32*)
4719      LD="${LD-ld} -n32"
4720      ;;
4721    *64-bit*)
4722      LD="${LD-ld} -64"
4723      ;;
4724    esac
4725   fi
4726  fi
4727  rm -rf conftest*
4728  ;;
4729
4730x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4731s390*-*linux*|sparc*-*linux*)
4732  # Find out which ABI we are using.
4733  echo 'int i;' > conftest.$ac_ext
4734  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735  (eval $ac_compile) 2>&5
4736  ac_status=$?
4737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738  (exit $ac_status); }; then
4739    case `/usr/bin/file conftest.o` in
4740    *32-bit*)
4741      case $host in
4742        x86_64-*kfreebsd*-gnu)
4743          LD="${LD-ld} -m elf_i386_fbsd"
4744          ;;
4745        x86_64-*linux*)
4746          LD="${LD-ld} -m elf_i386"
4747          ;;
4748        ppc64-*linux*|powerpc64-*linux*)
4749          LD="${LD-ld} -m elf32ppclinux"
4750          ;;
4751        s390x-*linux*)
4752          LD="${LD-ld} -m elf_s390"
4753          ;;
4754        sparc64-*linux*)
4755          LD="${LD-ld} -m elf32_sparc"
4756          ;;
4757      esac
4758      ;;
4759    *64-bit*)
4760      case $host in
4761        x86_64-*kfreebsd*-gnu)
4762          LD="${LD-ld} -m elf_x86_64_fbsd"
4763          ;;
4764        x86_64-*linux*)
4765          LD="${LD-ld} -m elf_x86_64"
4766          ;;
4767        ppc*-*linux*|powerpc*-*linux*)
4768          LD="${LD-ld} -m elf64ppc"
4769          ;;
4770        s390*-*linux*)
4771          LD="${LD-ld} -m elf64_s390"
4772          ;;
4773        sparc*-*linux*)
4774          LD="${LD-ld} -m elf64_sparc"
4775          ;;
4776      esac
4777      ;;
4778    esac
4779  fi
4780  rm -rf conftest*
4781  ;;
4782
4783*-*-sco3.2v5*)
4784  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4785  SAVE_CFLAGS="$CFLAGS"
4786  CFLAGS="$CFLAGS -belf"
4787  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4788echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4789if test "${lt_cv_cc_needs_belf+set}" = set; then
4790  echo $ECHO_N "(cached) $ECHO_C" >&6
4791else
4792  ac_ext=c
4793ac_cpp='$CPP $CPPFLAGS'
4794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796ac_compiler_gnu=$ac_cv_c_compiler_gnu
4797
4798     cat >conftest.$ac_ext <<_ACEOF
4799/* confdefs.h.  */
4800_ACEOF
4801cat confdefs.h >>conftest.$ac_ext
4802cat >>conftest.$ac_ext <<_ACEOF
4803/* end confdefs.h.  */
4804
4805int
4806main ()
4807{
4808
4809  ;
4810  return 0;
4811}
4812_ACEOF
4813rm -f conftest.$ac_objext conftest$ac_exeext
4814if { (ac_try="$ac_link"
4815case "(($ac_try" in
4816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817  *) ac_try_echo=$ac_try;;
4818esac
4819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4820  (eval "$ac_link") 2>conftest.er1
4821  ac_status=$?
4822  grep -v '^ *+' conftest.er1 >conftest.err
4823  rm -f conftest.er1
4824  cat conftest.err >&5
4825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826  (exit $ac_status); } && {
4827	 test -z "$ac_c_werror_flag" ||
4828	 test ! -s conftest.err
4829       } && test -s conftest$ac_exeext &&
4830       $as_test_x conftest$ac_exeext; then
4831  lt_cv_cc_needs_belf=yes
4832else
4833  echo "$as_me: failed program was:" >&5
4834sed 's/^/| /' conftest.$ac_ext >&5
4835
4836	lt_cv_cc_needs_belf=no
4837fi
4838
4839rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4840      conftest$ac_exeext conftest.$ac_ext
4841     ac_ext=c
4842ac_cpp='$CPP $CPPFLAGS'
4843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846
4847fi
4848{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4849echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4850  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4851    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4852    CFLAGS="$SAVE_CFLAGS"
4853  fi
4854  ;;
4855sparc*-*solaris*)
4856  # Find out which ABI we are using.
4857  echo 'int i;' > conftest.$ac_ext
4858  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859  (eval $ac_compile) 2>&5
4860  ac_status=$?
4861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862  (exit $ac_status); }; then
4863    case `/usr/bin/file conftest.o` in
4864    *64-bit*)
4865      case $lt_cv_prog_gnu_ld in
4866      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4867      *)
4868        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4869	  LD="${LD-ld} -64"
4870	fi
4871	;;
4872      esac
4873      ;;
4874    esac
4875  fi
4876  rm -rf conftest*
4877  ;;
4878
4879
4880esac
4881
4882need_locks="$enable_libtool_lock"
4883
4884
4885
4886{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4887echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4888if test "${ac_cv_header_stdc+set}" = set; then
4889  echo $ECHO_N "(cached) $ECHO_C" >&6
4890else
4891  cat >conftest.$ac_ext <<_ACEOF
4892/* confdefs.h.  */
4893_ACEOF
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h.  */
4897#include <stdlib.h>
4898#include <stdarg.h>
4899#include <string.h>
4900#include <float.h>
4901
4902int
4903main ()
4904{
4905
4906  ;
4907  return 0;
4908}
4909_ACEOF
4910rm -f conftest.$ac_objext
4911if { (ac_try="$ac_compile"
4912case "(($ac_try" in
4913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914  *) ac_try_echo=$ac_try;;
4915esac
4916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917  (eval "$ac_compile") 2>conftest.er1
4918  ac_status=$?
4919  grep -v '^ *+' conftest.er1 >conftest.err
4920  rm -f conftest.er1
4921  cat conftest.err >&5
4922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923  (exit $ac_status); } && {
4924	 test -z "$ac_c_werror_flag" ||
4925	 test ! -s conftest.err
4926       } && test -s conftest.$ac_objext; then
4927  ac_cv_header_stdc=yes
4928else
4929  echo "$as_me: failed program was:" >&5
4930sed 's/^/| /' conftest.$ac_ext >&5
4931
4932	ac_cv_header_stdc=no
4933fi
4934
4935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936
4937if test $ac_cv_header_stdc = yes; then
4938  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4939  cat >conftest.$ac_ext <<_ACEOF
4940/* confdefs.h.  */
4941_ACEOF
4942cat confdefs.h >>conftest.$ac_ext
4943cat >>conftest.$ac_ext <<_ACEOF
4944/* end confdefs.h.  */
4945#include <string.h>
4946
4947_ACEOF
4948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4949  $EGREP "memchr" >/dev/null 2>&1; then
4950  :
4951else
4952  ac_cv_header_stdc=no
4953fi
4954rm -f conftest*
4955
4956fi
4957
4958if test $ac_cv_header_stdc = yes; then
4959  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4960  cat >conftest.$ac_ext <<_ACEOF
4961/* confdefs.h.  */
4962_ACEOF
4963cat confdefs.h >>conftest.$ac_ext
4964cat >>conftest.$ac_ext <<_ACEOF
4965/* end confdefs.h.  */
4966#include <stdlib.h>
4967
4968_ACEOF
4969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4970  $EGREP "free" >/dev/null 2>&1; then
4971  :
4972else
4973  ac_cv_header_stdc=no
4974fi
4975rm -f conftest*
4976
4977fi
4978
4979if test $ac_cv_header_stdc = yes; then
4980  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4981  if test "$cross_compiling" = yes; then
4982  :
4983else
4984  cat >conftest.$ac_ext <<_ACEOF
4985/* confdefs.h.  */
4986_ACEOF
4987cat confdefs.h >>conftest.$ac_ext
4988cat >>conftest.$ac_ext <<_ACEOF
4989/* end confdefs.h.  */
4990#include <ctype.h>
4991#include <stdlib.h>
4992#if ((' ' & 0x0FF) == 0x020)
4993# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4994# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4995#else
4996# define ISLOWER(c) \
4997		   (('a' <= (c) && (c) <= 'i') \
4998		     || ('j' <= (c) && (c) <= 'r') \
4999		     || ('s' <= (c) && (c) <= 'z'))
5000# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5001#endif
5002
5003#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5004int
5005main ()
5006{
5007  int i;
5008  for (i = 0; i < 256; i++)
5009    if (XOR (islower (i), ISLOWER (i))
5010	|| toupper (i) != TOUPPER (i))
5011      return 2;
5012  return 0;
5013}
5014_ACEOF
5015rm -f conftest$ac_exeext
5016if { (ac_try="$ac_link"
5017case "(($ac_try" in
5018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5019  *) ac_try_echo=$ac_try;;
5020esac
5021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5022  (eval "$ac_link") 2>&5
5023  ac_status=$?
5024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5026  { (case "(($ac_try" in
5027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028  *) ac_try_echo=$ac_try;;
5029esac
5030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5031  (eval "$ac_try") 2>&5
5032  ac_status=$?
5033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034  (exit $ac_status); }; }; then
5035  :
5036else
5037  echo "$as_me: program exited with status $ac_status" >&5
5038echo "$as_me: failed program was:" >&5
5039sed 's/^/| /' conftest.$ac_ext >&5
5040
5041( exit $ac_status )
5042ac_cv_header_stdc=no
5043fi
5044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5045fi
5046
5047
5048fi
5049fi
5050{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5051echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5052if test $ac_cv_header_stdc = yes; then
5053
5054cat >>confdefs.h <<\_ACEOF
5055#define STDC_HEADERS 1
5056_ACEOF
5057
5058fi
5059
5060# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5071		  inttypes.h stdint.h unistd.h
5072do
5073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5074{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5077  echo $ECHO_N "(cached) $ECHO_C" >&6
5078else
5079  cat >conftest.$ac_ext <<_ACEOF
5080/* confdefs.h.  */
5081_ACEOF
5082cat confdefs.h >>conftest.$ac_ext
5083cat >>conftest.$ac_ext <<_ACEOF
5084/* end confdefs.h.  */
5085$ac_includes_default
5086
5087#include <$ac_header>
5088_ACEOF
5089rm -f conftest.$ac_objext
5090if { (ac_try="$ac_compile"
5091case "(($ac_try" in
5092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093  *) ac_try_echo=$ac_try;;
5094esac
5095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096  (eval "$ac_compile") 2>conftest.er1
5097  ac_status=$?
5098  grep -v '^ *+' conftest.er1 >conftest.err
5099  rm -f conftest.er1
5100  cat conftest.err >&5
5101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102  (exit $ac_status); } && {
5103	 test -z "$ac_c_werror_flag" ||
5104	 test ! -s conftest.err
5105       } && test -s conftest.$ac_objext; then
5106  eval "$as_ac_Header=yes"
5107else
5108  echo "$as_me: failed program was:" >&5
5109sed 's/^/| /' conftest.$ac_ext >&5
5110
5111	eval "$as_ac_Header=no"
5112fi
5113
5114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115fi
5116ac_res=`eval echo '${'$as_ac_Header'}'`
5117	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5118echo "${ECHO_T}$ac_res" >&6; }
5119if test `eval echo '${'$as_ac_Header'}'` = yes; then
5120  cat >>confdefs.h <<_ACEOF
5121#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5122_ACEOF
5123
5124fi
5125
5126done
5127
5128
5129
5130for ac_header in dlfcn.h
5131do
5132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5133if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5134  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5137  echo $ECHO_N "(cached) $ECHO_C" >&6
5138fi
5139ac_res=`eval echo '${'$as_ac_Header'}'`
5140	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5141echo "${ECHO_T}$ac_res" >&6; }
5142else
5143  # Is the header compilable?
5144{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5145echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5146cat >conftest.$ac_ext <<_ACEOF
5147/* confdefs.h.  */
5148_ACEOF
5149cat confdefs.h >>conftest.$ac_ext
5150cat >>conftest.$ac_ext <<_ACEOF
5151/* end confdefs.h.  */
5152$ac_includes_default
5153#include <$ac_header>
5154_ACEOF
5155rm -f conftest.$ac_objext
5156if { (ac_try="$ac_compile"
5157case "(($ac_try" in
5158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159  *) ac_try_echo=$ac_try;;
5160esac
5161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162  (eval "$ac_compile") 2>conftest.er1
5163  ac_status=$?
5164  grep -v '^ *+' conftest.er1 >conftest.err
5165  rm -f conftest.er1
5166  cat conftest.err >&5
5167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168  (exit $ac_status); } && {
5169	 test -z "$ac_c_werror_flag" ||
5170	 test ! -s conftest.err
5171       } && test -s conftest.$ac_objext; then
5172  ac_header_compiler=yes
5173else
5174  echo "$as_me: failed program was:" >&5
5175sed 's/^/| /' conftest.$ac_ext >&5
5176
5177	ac_header_compiler=no
5178fi
5179
5180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5181{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5182echo "${ECHO_T}$ac_header_compiler" >&6; }
5183
5184# Is the header present?
5185{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5187cat >conftest.$ac_ext <<_ACEOF
5188/* confdefs.h.  */
5189_ACEOF
5190cat confdefs.h >>conftest.$ac_ext
5191cat >>conftest.$ac_ext <<_ACEOF
5192/* end confdefs.h.  */
5193#include <$ac_header>
5194_ACEOF
5195if { (ac_try="$ac_cpp conftest.$ac_ext"
5196case "(($ac_try" in
5197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198  *) ac_try_echo=$ac_try;;
5199esac
5200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5201  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5202  ac_status=$?
5203  grep -v '^ *+' conftest.er1 >conftest.err
5204  rm -f conftest.er1
5205  cat conftest.err >&5
5206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207  (exit $ac_status); } >/dev/null && {
5208	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5209	 test ! -s conftest.err
5210       }; then
5211  ac_header_preproc=yes
5212else
5213  echo "$as_me: failed program was:" >&5
5214sed 's/^/| /' conftest.$ac_ext >&5
5215
5216  ac_header_preproc=no
5217fi
5218
5219rm -f conftest.err conftest.$ac_ext
5220{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5221echo "${ECHO_T}$ac_header_preproc" >&6; }
5222
5223# So?  What about this header?
5224case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5225  yes:no: )
5226    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5227echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5228    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5229echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5230    ac_header_preproc=yes
5231    ;;
5232  no:yes:* )
5233    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5234echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5235    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5236echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5237    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5238echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5239    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5240echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5241    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5242echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5243    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5244echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5245    ( cat <<\_ASBOX
5246## ------------------------------ ##
5247## Report this to asturio@gmx.net ##
5248## ------------------------------ ##
5249_ASBOX
5250     ) | sed "s/^/$as_me: WARNING:     /" >&2
5251    ;;
5252esac
5253{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5256  echo $ECHO_N "(cached) $ECHO_C" >&6
5257else
5258  eval "$as_ac_Header=\$ac_header_preproc"
5259fi
5260ac_res=`eval echo '${'$as_ac_Header'}'`
5261	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5262echo "${ECHO_T}$ac_res" >&6; }
5263
5264fi
5265if test `eval echo '${'$as_ac_Header'}'` = yes; then
5266  cat >>confdefs.h <<_ACEOF
5267#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5268_ACEOF
5269
5270fi
5271
5272done
5273
5274ac_ext=cpp
5275ac_cpp='$CXXCPP $CPPFLAGS'
5276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5279if test -z "$CXX"; then
5280  if test -n "$CCC"; then
5281    CXX=$CCC
5282  else
5283    if test -n "$ac_tool_prefix"; then
5284  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5285  do
5286    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5287set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5288{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5290if test "${ac_cv_prog_CXX+set}" = set; then
5291  echo $ECHO_N "(cached) $ECHO_C" >&6
5292else
5293  if test -n "$CXX"; then
5294  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5295else
5296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297for as_dir in $PATH
5298do
5299  IFS=$as_save_IFS
5300  test -z "$as_dir" && as_dir=.
5301  for ac_exec_ext in '' $ac_executable_extensions; do
5302  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5304    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305    break 2
5306  fi
5307done
5308done
5309IFS=$as_save_IFS
5310
5311fi
5312fi
5313CXX=$ac_cv_prog_CXX
5314if test -n "$CXX"; then
5315  { echo "$as_me:$LINENO: result: $CXX" >&5
5316echo "${ECHO_T}$CXX" >&6; }
5317else
5318  { echo "$as_me:$LINENO: result: no" >&5
5319echo "${ECHO_T}no" >&6; }
5320fi
5321
5322
5323    test -n "$CXX" && break
5324  done
5325fi
5326if test -z "$CXX"; then
5327  ac_ct_CXX=$CXX
5328  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5329do
5330  # Extract the first word of "$ac_prog", so it can be a program name with args.
5331set dummy $ac_prog; ac_word=$2
5332{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5334if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5335  echo $ECHO_N "(cached) $ECHO_C" >&6
5336else
5337  if test -n "$ac_ct_CXX"; then
5338  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5339else
5340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341for as_dir in $PATH
5342do
5343  IFS=$as_save_IFS
5344  test -z "$as_dir" && as_dir=.
5345  for ac_exec_ext in '' $ac_executable_extensions; do
5346  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347    ac_cv_prog_ac_ct_CXX="$ac_prog"
5348    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5349    break 2
5350  fi
5351done
5352done
5353IFS=$as_save_IFS
5354
5355fi
5356fi
5357ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5358if test -n "$ac_ct_CXX"; then
5359  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5360echo "${ECHO_T}$ac_ct_CXX" >&6; }
5361else
5362  { echo "$as_me:$LINENO: result: no" >&5
5363echo "${ECHO_T}no" >&6; }
5364fi
5365
5366
5367  test -n "$ac_ct_CXX" && break
5368done
5369
5370  if test "x$ac_ct_CXX" = x; then
5371    CXX="g++"
5372  else
5373    case $cross_compiling:$ac_tool_warned in
5374yes:)
5375{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5376whose name does not start with the host triplet.  If you think this
5377configuration is useful to you, please write to autoconf@gnu.org." >&5
5378echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5379whose name does not start with the host triplet.  If you think this
5380configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5381ac_tool_warned=yes ;;
5382esac
5383    CXX=$ac_ct_CXX
5384  fi
5385fi
5386
5387  fi
5388fi
5389# Provide some information about the compiler.
5390echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5391ac_compiler=`set X $ac_compile; echo $2`
5392{ (ac_try="$ac_compiler --version >&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 --version >&5") 2>&5
5399  ac_status=$?
5400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401  (exit $ac_status); }
5402{ (ac_try="$ac_compiler -v >&5"
5403case "(($ac_try" in
5404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5405  *) ac_try_echo=$ac_try;;
5406esac
5407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5408  (eval "$ac_compiler -v >&5") 2>&5
5409  ac_status=$?
5410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411  (exit $ac_status); }
5412{ (ac_try="$ac_compiler -V >&5"
5413case "(($ac_try" in
5414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415  *) ac_try_echo=$ac_try;;
5416esac
5417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418  (eval "$ac_compiler -V >&5") 2>&5
5419  ac_status=$?
5420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421  (exit $ac_status); }
5422
5423{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5424echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5425if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5426  echo $ECHO_N "(cached) $ECHO_C" >&6
5427else
5428  cat >conftest.$ac_ext <<_ACEOF
5429/* confdefs.h.  */
5430_ACEOF
5431cat confdefs.h >>conftest.$ac_ext
5432cat >>conftest.$ac_ext <<_ACEOF
5433/* end confdefs.h.  */
5434
5435int
5436main ()
5437{
5438#ifndef __GNUC__
5439       choke me
5440#endif
5441
5442  ;
5443  return 0;
5444}
5445_ACEOF
5446rm -f conftest.$ac_objext
5447if { (ac_try="$ac_compile"
5448case "(($ac_try" in
5449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450  *) ac_try_echo=$ac_try;;
5451esac
5452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453  (eval "$ac_compile") 2>conftest.er1
5454  ac_status=$?
5455  grep -v '^ *+' conftest.er1 >conftest.err
5456  rm -f conftest.er1
5457  cat conftest.err >&5
5458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459  (exit $ac_status); } && {
5460	 test -z "$ac_cxx_werror_flag" ||
5461	 test ! -s conftest.err
5462       } && test -s conftest.$ac_objext; then
5463  ac_compiler_gnu=yes
5464else
5465  echo "$as_me: failed program was:" >&5
5466sed 's/^/| /' conftest.$ac_ext >&5
5467
5468	ac_compiler_gnu=no
5469fi
5470
5471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5473
5474fi
5475{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5476echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5477GXX=`test $ac_compiler_gnu = yes && echo yes`
5478ac_test_CXXFLAGS=${CXXFLAGS+set}
5479ac_save_CXXFLAGS=$CXXFLAGS
5480{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5481echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5482if test "${ac_cv_prog_cxx_g+set}" = set; then
5483  echo $ECHO_N "(cached) $ECHO_C" >&6
5484else
5485  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5486   ac_cxx_werror_flag=yes
5487   ac_cv_prog_cxx_g=no
5488   CXXFLAGS="-g"
5489   cat >conftest.$ac_ext <<_ACEOF
5490/* confdefs.h.  */
5491_ACEOF
5492cat confdefs.h >>conftest.$ac_ext
5493cat >>conftest.$ac_ext <<_ACEOF
5494/* end confdefs.h.  */
5495
5496int
5497main ()
5498{
5499
5500  ;
5501  return 0;
5502}
5503_ACEOF
5504rm -f conftest.$ac_objext
5505if { (ac_try="$ac_compile"
5506case "(($ac_try" in
5507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508  *) ac_try_echo=$ac_try;;
5509esac
5510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511  (eval "$ac_compile") 2>conftest.er1
5512  ac_status=$?
5513  grep -v '^ *+' conftest.er1 >conftest.err
5514  rm -f conftest.er1
5515  cat conftest.err >&5
5516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517  (exit $ac_status); } && {
5518	 test -z "$ac_cxx_werror_flag" ||
5519	 test ! -s conftest.err
5520       } && test -s conftest.$ac_objext; then
5521  ac_cv_prog_cxx_g=yes
5522else
5523  echo "$as_me: failed program was:" >&5
5524sed 's/^/| /' conftest.$ac_ext >&5
5525
5526	CXXFLAGS=""
5527      cat >conftest.$ac_ext <<_ACEOF
5528/* confdefs.h.  */
5529_ACEOF
5530cat confdefs.h >>conftest.$ac_ext
5531cat >>conftest.$ac_ext <<_ACEOF
5532/* end confdefs.h.  */
5533
5534int
5535main ()
5536{
5537
5538  ;
5539  return 0;
5540}
5541_ACEOF
5542rm -f conftest.$ac_objext
5543if { (ac_try="$ac_compile"
5544case "(($ac_try" in
5545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546  *) ac_try_echo=$ac_try;;
5547esac
5548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549  (eval "$ac_compile") 2>conftest.er1
5550  ac_status=$?
5551  grep -v '^ *+' conftest.er1 >conftest.err
5552  rm -f conftest.er1
5553  cat conftest.err >&5
5554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555  (exit $ac_status); } && {
5556	 test -z "$ac_cxx_werror_flag" ||
5557	 test ! -s conftest.err
5558       } && test -s conftest.$ac_objext; then
5559  :
5560else
5561  echo "$as_me: failed program was:" >&5
5562sed 's/^/| /' conftest.$ac_ext >&5
5563
5564	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5565	 CXXFLAGS="-g"
5566	 cat >conftest.$ac_ext <<_ACEOF
5567/* confdefs.h.  */
5568_ACEOF
5569cat confdefs.h >>conftest.$ac_ext
5570cat >>conftest.$ac_ext <<_ACEOF
5571/* end confdefs.h.  */
5572
5573int
5574main ()
5575{
5576
5577  ;
5578  return 0;
5579}
5580_ACEOF
5581rm -f conftest.$ac_objext
5582if { (ac_try="$ac_compile"
5583case "(($ac_try" in
5584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585  *) ac_try_echo=$ac_try;;
5586esac
5587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588  (eval "$ac_compile") 2>conftest.er1
5589  ac_status=$?
5590  grep -v '^ *+' conftest.er1 >conftest.err
5591  rm -f conftest.er1
5592  cat conftest.err >&5
5593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594  (exit $ac_status); } && {
5595	 test -z "$ac_cxx_werror_flag" ||
5596	 test ! -s conftest.err
5597       } && test -s conftest.$ac_objext; then
5598  ac_cv_prog_cxx_g=yes
5599else
5600  echo "$as_me: failed program was:" >&5
5601sed 's/^/| /' conftest.$ac_ext >&5
5602
5603
5604fi
5605
5606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607fi
5608
5609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610fi
5611
5612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5614fi
5615{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5616echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5617if test "$ac_test_CXXFLAGS" = set; then
5618  CXXFLAGS=$ac_save_CXXFLAGS
5619elif test $ac_cv_prog_cxx_g = yes; then
5620  if test "$GXX" = yes; then
5621    CXXFLAGS="-g -O2"
5622  else
5623    CXXFLAGS="-g"
5624  fi
5625else
5626  if test "$GXX" = yes; then
5627    CXXFLAGS="-O2"
5628  else
5629    CXXFLAGS=
5630  fi
5631fi
5632ac_ext=cpp
5633ac_cpp='$CXXCPP $CPPFLAGS'
5634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5637
5638depcc="$CXX"  am_compiler_list=
5639
5640{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5641echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5642if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5643  echo $ECHO_N "(cached) $ECHO_C" >&6
5644else
5645  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5646  # We make a subdir and do the tests there.  Otherwise we can end up
5647  # making bogus files that we don't know about and never remove.  For
5648  # instance it was reported that on HP-UX the gcc test will end up
5649  # making a dummy file named `D' -- because `-MD' means `put the output
5650  # in D'.
5651  mkdir conftest.dir
5652  # Copy depcomp to subdir because otherwise we won't find it if we're
5653  # using a relative directory.
5654  cp "$am_depcomp" conftest.dir
5655  cd conftest.dir
5656  # We will build objects and dependencies in a subdirectory because
5657  # it helps to detect inapplicable dependency modes.  For instance
5658  # both Tru64's cc and ICC support -MD to output dependencies as a
5659  # side effect of compilation, but ICC will put the dependencies in
5660  # the current directory while Tru64 will put them in the object
5661  # directory.
5662  mkdir sub
5663
5664  am_cv_CXX_dependencies_compiler_type=none
5665  if test "$am_compiler_list" = ""; then
5666     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5667  fi
5668  for depmode in $am_compiler_list; do
5669    # Setup a source with many dependencies, because some compilers
5670    # like to wrap large dependency lists on column 80 (with \), and
5671    # we should not choose a depcomp mode which is confused by this.
5672    #
5673    # We need to recreate these files for each test, as the compiler may
5674    # overwrite some of them when testing with obscure command lines.
5675    # This happens at least with the AIX C compiler.
5676    : > sub/conftest.c
5677    for i in 1 2 3 4 5 6; do
5678      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5679      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5680      # Solaris 8's {/usr,}/bin/sh.
5681      touch sub/conftst$i.h
5682    done
5683    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5684
5685    case $depmode in
5686    nosideeffect)
5687      # after this tag, mechanisms are not by side-effect, so they'll
5688      # only be used when explicitly requested
5689      if test "x$enable_dependency_tracking" = xyes; then
5690	continue
5691      else
5692	break
5693      fi
5694      ;;
5695    none) break ;;
5696    esac
5697    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5698    # mode.  It turns out that the SunPro C++ compiler does not properly
5699    # handle `-M -o', and we need to detect this.
5700    if depmode=$depmode \
5701       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5702       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5703       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5704         >/dev/null 2>conftest.err &&
5705       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5706       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5707       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5708       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5709      # icc doesn't choke on unknown options, it will just issue warnings
5710      # or remarks (even with -Werror).  So we grep stderr for any message
5711      # that says an option was ignored or not supported.
5712      # When given -MP, icc 7.0 and 7.1 complain thusly:
5713      #   icc: Command line warning: ignoring option '-M'; no argument required
5714      # The diagnosis changed in icc 8.0:
5715      #   icc: Command line remark: option '-MP' not supported
5716      if (grep 'ignoring option' conftest.err ||
5717          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5718        am_cv_CXX_dependencies_compiler_type=$depmode
5719        break
5720      fi
5721    fi
5722  done
5723
5724  cd ..
5725  rm -rf conftest.dir
5726else
5727  am_cv_CXX_dependencies_compiler_type=none
5728fi
5729
5730fi
5731{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5732echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5733CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5734
5735 if
5736  test "x$enable_dependency_tracking" != xno \
5737  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5738  am__fastdepCXX_TRUE=
5739  am__fastdepCXX_FALSE='#'
5740else
5741  am__fastdepCXX_TRUE='#'
5742  am__fastdepCXX_FALSE=
5743fi
5744
5745
5746
5747
5748if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5749    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5750    (test "X$CXX" != "Xg++"))) ; then
5751  ac_ext=cpp
5752ac_cpp='$CXXCPP $CPPFLAGS'
5753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5756{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5757echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5758if test -z "$CXXCPP"; then
5759  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5760  echo $ECHO_N "(cached) $ECHO_C" >&6
5761else
5762      # Double quotes because CXXCPP needs to be expanded
5763    for CXXCPP in "$CXX -E" "/lib/cpp"
5764    do
5765      ac_preproc_ok=false
5766for ac_cxx_preproc_warn_flag in '' yes
5767do
5768  # Use a header file that comes with gcc, so configuring glibc
5769  # with a fresh cross-compiler works.
5770  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5771  # <limits.h> exists even on freestanding compilers.
5772  # On the NeXT, cc -E runs the code through the compiler's parser,
5773  # not just through cpp. "Syntax error" is here to catch this case.
5774  cat >conftest.$ac_ext <<_ACEOF
5775/* confdefs.h.  */
5776_ACEOF
5777cat confdefs.h >>conftest.$ac_ext
5778cat >>conftest.$ac_ext <<_ACEOF
5779/* end confdefs.h.  */
5780#ifdef __STDC__
5781# include <limits.h>
5782#else
5783# include <assert.h>
5784#endif
5785		     Syntax error
5786_ACEOF
5787if { (ac_try="$ac_cpp conftest.$ac_ext"
5788case "(($ac_try" in
5789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790  *) ac_try_echo=$ac_try;;
5791esac
5792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5794  ac_status=$?
5795  grep -v '^ *+' conftest.er1 >conftest.err
5796  rm -f conftest.er1
5797  cat conftest.err >&5
5798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799  (exit $ac_status); } >/dev/null && {
5800	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5801	 test ! -s conftest.err
5802       }; then
5803  :
5804else
5805  echo "$as_me: failed program was:" >&5
5806sed 's/^/| /' conftest.$ac_ext >&5
5807
5808  # Broken: fails on valid input.
5809continue
5810fi
5811
5812rm -f conftest.err conftest.$ac_ext
5813
5814  # OK, works on sane cases.  Now check whether nonexistent headers
5815  # can be detected and how.
5816  cat >conftest.$ac_ext <<_ACEOF
5817/* confdefs.h.  */
5818_ACEOF
5819cat confdefs.h >>conftest.$ac_ext
5820cat >>conftest.$ac_ext <<_ACEOF
5821/* end confdefs.h.  */
5822#include <ac_nonexistent.h>
5823_ACEOF
5824if { (ac_try="$ac_cpp conftest.$ac_ext"
5825case "(($ac_try" in
5826  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827  *) ac_try_echo=$ac_try;;
5828esac
5829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5831  ac_status=$?
5832  grep -v '^ *+' conftest.er1 >conftest.err
5833  rm -f conftest.er1
5834  cat conftest.err >&5
5835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836  (exit $ac_status); } >/dev/null && {
5837	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5838	 test ! -s conftest.err
5839       }; then
5840  # Broken: success on invalid input.
5841continue
5842else
5843  echo "$as_me: failed program was:" >&5
5844sed 's/^/| /' conftest.$ac_ext >&5
5845
5846  # Passes both tests.
5847ac_preproc_ok=:
5848break
5849fi
5850
5851rm -f conftest.err conftest.$ac_ext
5852
5853done
5854# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5855rm -f conftest.err conftest.$ac_ext
5856if $ac_preproc_ok; then
5857  break
5858fi
5859
5860    done
5861    ac_cv_prog_CXXCPP=$CXXCPP
5862
5863fi
5864  CXXCPP=$ac_cv_prog_CXXCPP
5865else
5866  ac_cv_prog_CXXCPP=$CXXCPP
5867fi
5868{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5869echo "${ECHO_T}$CXXCPP" >&6; }
5870ac_preproc_ok=false
5871for ac_cxx_preproc_warn_flag in '' yes
5872do
5873  # Use a header file that comes with gcc, so configuring glibc
5874  # with a fresh cross-compiler works.
5875  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5876  # <limits.h> exists even on freestanding compilers.
5877  # On the NeXT, cc -E runs the code through the compiler's parser,
5878  # not just through cpp. "Syntax error" is here to catch this case.
5879  cat >conftest.$ac_ext <<_ACEOF
5880/* confdefs.h.  */
5881_ACEOF
5882cat confdefs.h >>conftest.$ac_ext
5883cat >>conftest.$ac_ext <<_ACEOF
5884/* end confdefs.h.  */
5885#ifdef __STDC__
5886# include <limits.h>
5887#else
5888# include <assert.h>
5889#endif
5890		     Syntax error
5891_ACEOF
5892if { (ac_try="$ac_cpp conftest.$ac_ext"
5893case "(($ac_try" in
5894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895  *) ac_try_echo=$ac_try;;
5896esac
5897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5899  ac_status=$?
5900  grep -v '^ *+' conftest.er1 >conftest.err
5901  rm -f conftest.er1
5902  cat conftest.err >&5
5903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904  (exit $ac_status); } >/dev/null && {
5905	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5906	 test ! -s conftest.err
5907       }; then
5908  :
5909else
5910  echo "$as_me: failed program was:" >&5
5911sed 's/^/| /' conftest.$ac_ext >&5
5912
5913  # Broken: fails on valid input.
5914continue
5915fi
5916
5917rm -f conftest.err conftest.$ac_ext
5918
5919  # OK, works on sane cases.  Now check whether nonexistent headers
5920  # can be detected and how.
5921  cat >conftest.$ac_ext <<_ACEOF
5922/* confdefs.h.  */
5923_ACEOF
5924cat confdefs.h >>conftest.$ac_ext
5925cat >>conftest.$ac_ext <<_ACEOF
5926/* end confdefs.h.  */
5927#include <ac_nonexistent.h>
5928_ACEOF
5929if { (ac_try="$ac_cpp conftest.$ac_ext"
5930case "(($ac_try" in
5931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932  *) ac_try_echo=$ac_try;;
5933esac
5934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5936  ac_status=$?
5937  grep -v '^ *+' conftest.er1 >conftest.err
5938  rm -f conftest.er1
5939  cat conftest.err >&5
5940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941  (exit $ac_status); } >/dev/null && {
5942	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5943	 test ! -s conftest.err
5944       }; then
5945  # Broken: success on invalid input.
5946continue
5947else
5948  echo "$as_me: failed program was:" >&5
5949sed 's/^/| /' conftest.$ac_ext >&5
5950
5951  # Passes both tests.
5952ac_preproc_ok=:
5953break
5954fi
5955
5956rm -f conftest.err conftest.$ac_ext
5957
5958done
5959# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5960rm -f conftest.err conftest.$ac_ext
5961if $ac_preproc_ok; then
5962  :
5963else
5964  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5965See \`config.log' for more details." >&5
5966echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5967See \`config.log' for more details." >&2;}
5968   { (exit 1); exit 1; }; }
5969fi
5970
5971ac_ext=cpp
5972ac_cpp='$CXXCPP $CPPFLAGS'
5973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5976
5977fi
5978
5979
5980ac_ext=f
5981ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5982ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5983ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5984if test -n "$ac_tool_prefix"; then
5985  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
5986  do
5987    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5988set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5989{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5991if test "${ac_cv_prog_F77+set}" = set; then
5992  echo $ECHO_N "(cached) $ECHO_C" >&6
5993else
5994  if test -n "$F77"; then
5995  ac_cv_prog_F77="$F77" # Let the user override the test.
5996else
5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998for as_dir in $PATH
5999do
6000  IFS=$as_save_IFS
6001  test -z "$as_dir" && as_dir=.
6002  for ac_exec_ext in '' $ac_executable_extensions; do
6003  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6005    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6006    break 2
6007  fi
6008done
6009done
6010IFS=$as_save_IFS
6011
6012fi
6013fi
6014F77=$ac_cv_prog_F77
6015if test -n "$F77"; then
6016  { echo "$as_me:$LINENO: result: $F77" >&5
6017echo "${ECHO_T}$F77" >&6; }
6018else
6019  { echo "$as_me:$LINENO: result: no" >&5
6020echo "${ECHO_T}no" >&6; }
6021fi
6022
6023
6024    test -n "$F77" && break
6025  done
6026fi
6027if test -z "$F77"; then
6028  ac_ct_F77=$F77
6029  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
6030do
6031  # Extract the first word of "$ac_prog", so it can be a program name with args.
6032set dummy $ac_prog; ac_word=$2
6033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6036  echo $ECHO_N "(cached) $ECHO_C" >&6
6037else
6038  if test -n "$ac_ct_F77"; then
6039  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044  IFS=$as_save_IFS
6045  test -z "$as_dir" && as_dir=.
6046  for ac_exec_ext in '' $ac_executable_extensions; do
6047  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048    ac_cv_prog_ac_ct_F77="$ac_prog"
6049    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050    break 2
6051  fi
6052done
6053done
6054IFS=$as_save_IFS
6055
6056fi
6057fi
6058ac_ct_F77=$ac_cv_prog_ac_ct_F77
6059if test -n "$ac_ct_F77"; then
6060  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6061echo "${ECHO_T}$ac_ct_F77" >&6; }
6062else
6063  { echo "$as_me:$LINENO: result: no" >&5
6064echo "${ECHO_T}no" >&6; }
6065fi
6066
6067
6068  test -n "$ac_ct_F77" && break
6069done
6070
6071  if test "x$ac_ct_F77" = x; then
6072    F77=""
6073  else
6074    case $cross_compiling:$ac_tool_warned in
6075yes:)
6076{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6077whose name does not start with the host triplet.  If you think this
6078configuration is useful to you, please write to autoconf@gnu.org." >&5
6079echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6080whose name does not start with the host triplet.  If you think this
6081configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6082ac_tool_warned=yes ;;
6083esac
6084    F77=$ac_ct_F77
6085  fi
6086fi
6087
6088
6089# Provide some information about the compiler.
6090echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6091ac_compiler=`set X $ac_compile; echo $2`
6092{ (ac_try="$ac_compiler --version >&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 --version >&5") 2>&5
6099  ac_status=$?
6100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101  (exit $ac_status); }
6102{ (ac_try="$ac_compiler -v >&5"
6103case "(($ac_try" in
6104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105  *) ac_try_echo=$ac_try;;
6106esac
6107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108  (eval "$ac_compiler -v >&5") 2>&5
6109  ac_status=$?
6110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111  (exit $ac_status); }
6112{ (ac_try="$ac_compiler -V >&5"
6113case "(($ac_try" in
6114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115  *) ac_try_echo=$ac_try;;
6116esac
6117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118  (eval "$ac_compiler -V >&5") 2>&5
6119  ac_status=$?
6120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121  (exit $ac_status); }
6122rm -f a.out
6123
6124# If we don't use `.F' as extension, the preprocessor is not run on the
6125# input file.  (Note that this only needs to work for GNU compilers.)
6126ac_save_ext=$ac_ext
6127ac_ext=F
6128{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6129echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6130if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6131  echo $ECHO_N "(cached) $ECHO_C" >&6
6132else
6133  cat >conftest.$ac_ext <<_ACEOF
6134      program main
6135#ifndef __GNUC__
6136       choke me
6137#endif
6138
6139      end
6140_ACEOF
6141rm -f conftest.$ac_objext
6142if { (ac_try="$ac_compile"
6143case "(($ac_try" in
6144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145  *) ac_try_echo=$ac_try;;
6146esac
6147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148  (eval "$ac_compile") 2>conftest.er1
6149  ac_status=$?
6150  grep -v '^ *+' conftest.er1 >conftest.err
6151  rm -f conftest.er1
6152  cat conftest.err >&5
6153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154  (exit $ac_status); } && {
6155	 test -z "$ac_f77_werror_flag" ||
6156	 test ! -s conftest.err
6157       } && test -s conftest.$ac_objext; then
6158  ac_compiler_gnu=yes
6159else
6160  echo "$as_me: failed program was:" >&5
6161sed 's/^/| /' conftest.$ac_ext >&5
6162
6163	ac_compiler_gnu=no
6164fi
6165
6166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6168
6169fi
6170{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6171echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6172ac_ext=$ac_save_ext
6173ac_test_FFLAGS=${FFLAGS+set}
6174ac_save_FFLAGS=$FFLAGS
6175FFLAGS=
6176{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6177echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6178if test "${ac_cv_prog_f77_g+set}" = set; then
6179  echo $ECHO_N "(cached) $ECHO_C" >&6
6180else
6181  FFLAGS=-g
6182cat >conftest.$ac_ext <<_ACEOF
6183      program main
6184
6185      end
6186_ACEOF
6187rm -f conftest.$ac_objext
6188if { (ac_try="$ac_compile"
6189case "(($ac_try" in
6190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191  *) ac_try_echo=$ac_try;;
6192esac
6193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6194  (eval "$ac_compile") 2>conftest.er1
6195  ac_status=$?
6196  grep -v '^ *+' conftest.er1 >conftest.err
6197  rm -f conftest.er1
6198  cat conftest.err >&5
6199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200  (exit $ac_status); } && {
6201	 test -z "$ac_f77_werror_flag" ||
6202	 test ! -s conftest.err
6203       } && test -s conftest.$ac_objext; then
6204  ac_cv_prog_f77_g=yes
6205else
6206  echo "$as_me: failed program was:" >&5
6207sed 's/^/| /' conftest.$ac_ext >&5
6208
6209	ac_cv_prog_f77_g=no
6210fi
6211
6212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213
6214fi
6215{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6216echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6217if test "$ac_test_FFLAGS" = set; then
6218  FFLAGS=$ac_save_FFLAGS
6219elif test $ac_cv_prog_f77_g = yes; then
6220  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6221    FFLAGS="-g -O2"
6222  else
6223    FFLAGS="-g"
6224  fi
6225else
6226  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6227    FFLAGS="-O2"
6228  else
6229    FFLAGS=
6230  fi
6231fi
6232
6233G77=`test $ac_compiler_gnu = yes && echo yes`
6234ac_ext=c
6235ac_cpp='$CPP $CPPFLAGS'
6236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238ac_compiler_gnu=$ac_cv_c_compiler_gnu
6239
6240
6241
6242# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6243# find the maximum length of command line arguments
6244{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6245echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6246if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6247  echo $ECHO_N "(cached) $ECHO_C" >&6
6248else
6249    i=0
6250  teststring="ABCD"
6251
6252  case $build_os in
6253  msdosdjgpp*)
6254    # On DJGPP, this test can blow up pretty badly due to problems in libc
6255    # (any single argument exceeding 2000 bytes causes a buffer overrun
6256    # during glob expansion).  Even if it were fixed, the result of this
6257    # check would be larger than it should be.
6258    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6259    ;;
6260
6261  gnu*)
6262    # Under GNU Hurd, this test is not required because there is
6263    # no limit to the length of command line arguments.
6264    # Libtool will interpret -1 as no limit whatsoever
6265    lt_cv_sys_max_cmd_len=-1;
6266    ;;
6267
6268  cygwin* | mingw*)
6269    # On Win9x/ME, this test blows up -- it succeeds, but takes
6270    # about 5 minutes as the teststring grows exponentially.
6271    # Worse, since 9x/ME are not pre-emptively multitasking,
6272    # you end up with a "frozen" computer, even though with patience
6273    # the test eventually succeeds (with a max line length of 256k).
6274    # Instead, let's just punt: use the minimum linelength reported by
6275    # all of the supported platforms: 8192 (on NT/2K/XP).
6276    lt_cv_sys_max_cmd_len=8192;
6277    ;;
6278
6279  amigaos*)
6280    # On AmigaOS with pdksh, this test takes hours, literally.
6281    # So we just punt and use a minimum line length of 8192.
6282    lt_cv_sys_max_cmd_len=8192;
6283    ;;
6284
6285  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6286    # This has been around since 386BSD, at least.  Likely further.
6287    if test -x /sbin/sysctl; then
6288      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6289    elif test -x /usr/sbin/sysctl; then
6290      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6291    else
6292      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6293    fi
6294    # And add a safety zone
6295    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6296    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6297    ;;
6298
6299  interix*)
6300    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6301    lt_cv_sys_max_cmd_len=196608
6302    ;;
6303
6304  osf*)
6305    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6306    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6307    # nice to cause kernel panics so lets avoid the loop below.
6308    # First set a reasonable default.
6309    lt_cv_sys_max_cmd_len=16384
6310    #
6311    if test -x /sbin/sysconfig; then
6312      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6313        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6314      esac
6315    fi
6316    ;;
6317  sco3.2v5*)
6318    lt_cv_sys_max_cmd_len=102400
6319    ;;
6320  sysv5* | sco5v6* | sysv4.2uw2*)
6321    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6322    if test -n "$kargmax"; then
6323      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6324    else
6325      lt_cv_sys_max_cmd_len=32768
6326    fi
6327    ;;
6328  *)
6329    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6330    if test -n "$lt_cv_sys_max_cmd_len"; then
6331      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6332      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6333    else
6334      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6335      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6336	       = "XX$teststring") >/dev/null 2>&1 &&
6337	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6338	      lt_cv_sys_max_cmd_len=$new_result &&
6339	      test $i != 17 # 1/2 MB should be enough
6340      do
6341        i=`expr $i + 1`
6342        teststring=$teststring$teststring
6343      done
6344      teststring=
6345      # Add a significant safety factor because C++ compilers can tack on massive
6346      # amounts of additional arguments before passing them to the linker.
6347      # It appears as though 1/2 is a usable value.
6348      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6349    fi
6350    ;;
6351  esac
6352
6353fi
6354
6355if test -n $lt_cv_sys_max_cmd_len ; then
6356  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6357echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6358else
6359  { echo "$as_me:$LINENO: result: none" >&5
6360echo "${ECHO_T}none" >&6; }
6361fi
6362
6363
6364
6365
6366
6367# Check for command to grab the raw symbol name followed by C symbol from nm.
6368{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6369echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6370if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6371  echo $ECHO_N "(cached) $ECHO_C" >&6
6372else
6373
6374# These are sane defaults that work on at least a few old systems.
6375# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6376
6377# Character class describing NM global symbol codes.
6378symcode='[BCDEGRST]'
6379
6380# Regexp to match symbols that can be accessed directly from C.
6381sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6382
6383# Transform an extracted symbol line into a proper C declaration
6384lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6385
6386# Transform an extracted symbol line into symbol name and symbol address
6387lt_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'"
6388
6389# Define system-specific variables.
6390case $host_os in
6391aix*)
6392  symcode='[BCDT]'
6393  ;;
6394cygwin* | mingw* | pw32*)
6395  symcode='[ABCDGISTW]'
6396  ;;
6397hpux*) # Its linker distinguishes data from code symbols
6398  if test "$host_cpu" = ia64; then
6399    symcode='[ABCDEGRST]'
6400  fi
6401  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6402  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'"
6403  ;;
6404linux* | k*bsd*-gnu)
6405  if test "$host_cpu" = ia64; then
6406    symcode='[ABCDGIRSTW]'
6407    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6408    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'"
6409  fi
6410  ;;
6411irix* | nonstopux*)
6412  symcode='[BCDEGRST]'
6413  ;;
6414osf*)
6415  symcode='[BCDEGQRST]'
6416  ;;
6417solaris*)
6418  symcode='[BDRT]'
6419  ;;
6420sco3.2v5*)
6421  symcode='[DT]'
6422  ;;
6423sysv4.2uw2*)
6424  symcode='[DT]'
6425  ;;
6426sysv5* | sco5v6* | unixware* | OpenUNIX*)
6427  symcode='[ABDT]'
6428  ;;
6429sysv4)
6430  symcode='[DFNSTU]'
6431  ;;
6432esac
6433
6434# Handle CRLF in mingw tool chain
6435opt_cr=
6436case $build_os in
6437mingw*)
6438  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6439  ;;
6440esac
6441
6442# If we're using GNU nm, then use its standard symbol codes.
6443case `$NM -V 2>&1` in
6444*GNU* | *'with BFD'*)
6445  symcode='[ABCDGIRSTW]' ;;
6446esac
6447
6448# Try without a prefix undercore, then with it.
6449for ac_symprfx in "" "_"; do
6450
6451  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6452  symxfrm="\\1 $ac_symprfx\\2 \\2"
6453
6454  # Write the raw and C identifiers.
6455  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6456
6457  # Check to see that the pipe works correctly.
6458  pipe_works=no
6459
6460  rm -f conftest*
6461  cat > conftest.$ac_ext <<EOF
6462#ifdef __cplusplus
6463extern "C" {
6464#endif
6465char nm_test_var;
6466void nm_test_func(){}
6467#ifdef __cplusplus
6468}
6469#endif
6470int main(){nm_test_var='a';nm_test_func();return(0);}
6471EOF
6472
6473  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6474  (eval $ac_compile) 2>&5
6475  ac_status=$?
6476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477  (exit $ac_status); }; then
6478    # Now try to grab the symbols.
6479    nlist=conftest.nm
6480    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6481  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6482  ac_status=$?
6483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484  (exit $ac_status); } && test -s "$nlist"; then
6485      # Try sorting and uniquifying the output.
6486      if sort "$nlist" | uniq > "$nlist"T; then
6487	mv -f "$nlist"T "$nlist"
6488      else
6489	rm -f "$nlist"T
6490      fi
6491
6492      # Make sure that we snagged all the symbols we need.
6493      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6494	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6495	  cat <<EOF > conftest.$ac_ext
6496#ifdef __cplusplus
6497extern "C" {
6498#endif
6499
6500EOF
6501	  # Now generate the symbol file.
6502	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6503
6504	  cat <<EOF >> conftest.$ac_ext
6505#if defined (__STDC__) && __STDC__
6506# define lt_ptr_t void *
6507#else
6508# define lt_ptr_t char *
6509# define const
6510#endif
6511
6512/* The mapping between symbol names and symbols. */
6513const struct {
6514  const char *name;
6515  lt_ptr_t address;
6516}
6517lt_preloaded_symbols[] =
6518{
6519EOF
6520	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6521	  cat <<\EOF >> conftest.$ac_ext
6522  {0, (lt_ptr_t) 0}
6523};
6524
6525#ifdef __cplusplus
6526}
6527#endif
6528EOF
6529	  # Now try linking the two files.
6530	  mv conftest.$ac_objext conftstm.$ac_objext
6531	  lt_save_LIBS="$LIBS"
6532	  lt_save_CFLAGS="$CFLAGS"
6533	  LIBS="conftstm.$ac_objext"
6534	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6535	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6536  (eval $ac_link) 2>&5
6537  ac_status=$?
6538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6540	    pipe_works=yes
6541	  fi
6542	  LIBS="$lt_save_LIBS"
6543	  CFLAGS="$lt_save_CFLAGS"
6544	else
6545	  echo "cannot find nm_test_func in $nlist" >&5
6546	fi
6547      else
6548	echo "cannot find nm_test_var in $nlist" >&5
6549      fi
6550    else
6551      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6552    fi
6553  else
6554    echo "$progname: failed program was:" >&5
6555    cat conftest.$ac_ext >&5
6556  fi
6557  rm -rf conftest* conftst*
6558
6559  # Do not use the global_symbol_pipe unless it works.
6560  if test "$pipe_works" = yes; then
6561    break
6562  else
6563    lt_cv_sys_global_symbol_pipe=
6564  fi
6565done
6566
6567fi
6568
6569if test -z "$lt_cv_sys_global_symbol_pipe"; then
6570  lt_cv_sys_global_symbol_to_cdecl=
6571fi
6572if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6573  { echo "$as_me:$LINENO: result: failed" >&5
6574echo "${ECHO_T}failed" >&6; }
6575else
6576  { echo "$as_me:$LINENO: result: ok" >&5
6577echo "${ECHO_T}ok" >&6; }
6578fi
6579
6580{ echo "$as_me:$LINENO: checking for objdir" >&5
6581echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6582if test "${lt_cv_objdir+set}" = set; then
6583  echo $ECHO_N "(cached) $ECHO_C" >&6
6584else
6585  rm -f .libs 2>/dev/null
6586mkdir .libs 2>/dev/null
6587if test -d .libs; then
6588  lt_cv_objdir=.libs
6589else
6590  # MS-DOS does not allow filenames that begin with a dot.
6591  lt_cv_objdir=_libs
6592fi
6593rmdir .libs 2>/dev/null
6594fi
6595{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6596echo "${ECHO_T}$lt_cv_objdir" >&6; }
6597objdir=$lt_cv_objdir
6598
6599
6600
6601
6602
6603case $host_os in
6604aix3*)
6605  # AIX sometimes has problems with the GCC collect2 program.  For some
6606  # reason, if we set the COLLECT_NAMES environment variable, the problems
6607  # vanish in a puff of smoke.
6608  if test "X${COLLECT_NAMES+set}" != Xset; then
6609    COLLECT_NAMES=
6610    export COLLECT_NAMES
6611  fi
6612  ;;
6613esac
6614
6615# Sed substitution that helps us do robust quoting.  It backslashifies
6616# metacharacters that are still active within double-quoted strings.
6617Xsed='sed -e 1s/^X//'
6618sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6619
6620# Same as above, but do not quote variable references.
6621double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6622
6623# Sed substitution to delay expansion of an escaped shell variable in a
6624# double_quote_subst'ed string.
6625delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6626
6627# Sed substitution to avoid accidental globbing in evaled expressions
6628no_glob_subst='s/\*/\\\*/g'
6629
6630# Constants:
6631rm="rm -f"
6632
6633# Global variables:
6634default_ofile=libtool
6635can_build_shared=yes
6636
6637# All known linkers require a `.a' archive for static linking (except MSVC,
6638# which needs '.lib').
6639libext=a
6640ltmain="$ac_aux_dir/ltmain.sh"
6641ofile="$default_ofile"
6642with_gnu_ld="$lt_cv_prog_gnu_ld"
6643
6644if test -n "$ac_tool_prefix"; then
6645  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6646set dummy ${ac_tool_prefix}ar; ac_word=$2
6647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649if test "${ac_cv_prog_AR+set}" = set; then
6650  echo $ECHO_N "(cached) $ECHO_C" >&6
6651else
6652  if test -n "$AR"; then
6653  ac_cv_prog_AR="$AR" # Let the user override the test.
6654else
6655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656for as_dir in $PATH
6657do
6658  IFS=$as_save_IFS
6659  test -z "$as_dir" && as_dir=.
6660  for ac_exec_ext in '' $ac_executable_extensions; do
6661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6662    ac_cv_prog_AR="${ac_tool_prefix}ar"
6663    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6664    break 2
6665  fi
6666done
6667done
6668IFS=$as_save_IFS
6669
6670fi
6671fi
6672AR=$ac_cv_prog_AR
6673if test -n "$AR"; then
6674  { echo "$as_me:$LINENO: result: $AR" >&5
6675echo "${ECHO_T}$AR" >&6; }
6676else
6677  { echo "$as_me:$LINENO: result: no" >&5
6678echo "${ECHO_T}no" >&6; }
6679fi
6680
6681
6682fi
6683if test -z "$ac_cv_prog_AR"; then
6684  ac_ct_AR=$AR
6685  # Extract the first word of "ar", so it can be a program name with args.
6686set dummy ar; ac_word=$2
6687{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6690  echo $ECHO_N "(cached) $ECHO_C" >&6
6691else
6692  if test -n "$ac_ct_AR"; then
6693  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6694else
6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696for as_dir in $PATH
6697do
6698  IFS=$as_save_IFS
6699  test -z "$as_dir" && as_dir=.
6700  for ac_exec_ext in '' $ac_executable_extensions; do
6701  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6702    ac_cv_prog_ac_ct_AR="ar"
6703    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704    break 2
6705  fi
6706done
6707done
6708IFS=$as_save_IFS
6709
6710fi
6711fi
6712ac_ct_AR=$ac_cv_prog_ac_ct_AR
6713if test -n "$ac_ct_AR"; then
6714  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6715echo "${ECHO_T}$ac_ct_AR" >&6; }
6716else
6717  { echo "$as_me:$LINENO: result: no" >&5
6718echo "${ECHO_T}no" >&6; }
6719fi
6720
6721  if test "x$ac_ct_AR" = x; then
6722    AR="false"
6723  else
6724    case $cross_compiling:$ac_tool_warned in
6725yes:)
6726{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6727whose name does not start with the host triplet.  If you think this
6728configuration is useful to you, please write to autoconf@gnu.org." >&5
6729echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6730whose name does not start with the host triplet.  If you think this
6731configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6732ac_tool_warned=yes ;;
6733esac
6734    AR=$ac_ct_AR
6735  fi
6736else
6737  AR="$ac_cv_prog_AR"
6738fi
6739
6740if test -n "$ac_tool_prefix"; then
6741  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6742set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745if test "${ac_cv_prog_RANLIB+set}" = set; then
6746  echo $ECHO_N "(cached) $ECHO_C" >&6
6747else
6748  if test -n "$RANLIB"; then
6749  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6750else
6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH
6753do
6754  IFS=$as_save_IFS
6755  test -z "$as_dir" && as_dir=.
6756  for ac_exec_ext in '' $ac_executable_extensions; do
6757  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6759    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760    break 2
6761  fi
6762done
6763done
6764IFS=$as_save_IFS
6765
6766fi
6767fi
6768RANLIB=$ac_cv_prog_RANLIB
6769if test -n "$RANLIB"; then
6770  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6771echo "${ECHO_T}$RANLIB" >&6; }
6772else
6773  { echo "$as_me:$LINENO: result: no" >&5
6774echo "${ECHO_T}no" >&6; }
6775fi
6776
6777
6778fi
6779if test -z "$ac_cv_prog_RANLIB"; then
6780  ac_ct_RANLIB=$RANLIB
6781  # Extract the first word of "ranlib", so it can be a program name with args.
6782set dummy ranlib; ac_word=$2
6783{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6786  echo $ECHO_N "(cached) $ECHO_C" >&6
6787else
6788  if test -n "$ac_ct_RANLIB"; then
6789  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6790else
6791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792for as_dir in $PATH
6793do
6794  IFS=$as_save_IFS
6795  test -z "$as_dir" && as_dir=.
6796  for ac_exec_ext in '' $ac_executable_extensions; do
6797  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798    ac_cv_prog_ac_ct_RANLIB="ranlib"
6799    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800    break 2
6801  fi
6802done
6803done
6804IFS=$as_save_IFS
6805
6806fi
6807fi
6808ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6809if test -n "$ac_ct_RANLIB"; then
6810  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6811echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6812else
6813  { echo "$as_me:$LINENO: result: no" >&5
6814echo "${ECHO_T}no" >&6; }
6815fi
6816
6817  if test "x$ac_ct_RANLIB" = x; then
6818    RANLIB=":"
6819  else
6820    case $cross_compiling:$ac_tool_warned in
6821yes:)
6822{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6823whose name does not start with the host triplet.  If you think this
6824configuration is useful to you, please write to autoconf@gnu.org." >&5
6825echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6826whose name does not start with the host triplet.  If you think this
6827configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6828ac_tool_warned=yes ;;
6829esac
6830    RANLIB=$ac_ct_RANLIB
6831  fi
6832else
6833  RANLIB="$ac_cv_prog_RANLIB"
6834fi
6835
6836if test -n "$ac_tool_prefix"; then
6837  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6838set dummy ${ac_tool_prefix}strip; ac_word=$2
6839{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6841if test "${ac_cv_prog_STRIP+set}" = set; then
6842  echo $ECHO_N "(cached) $ECHO_C" >&6
6843else
6844  if test -n "$STRIP"; then
6845  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6846else
6847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848for as_dir in $PATH
6849do
6850  IFS=$as_save_IFS
6851  test -z "$as_dir" && as_dir=.
6852  for ac_exec_ext in '' $ac_executable_extensions; do
6853  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6855    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856    break 2
6857  fi
6858done
6859done
6860IFS=$as_save_IFS
6861
6862fi
6863fi
6864STRIP=$ac_cv_prog_STRIP
6865if test -n "$STRIP"; then
6866  { echo "$as_me:$LINENO: result: $STRIP" >&5
6867echo "${ECHO_T}$STRIP" >&6; }
6868else
6869  { echo "$as_me:$LINENO: result: no" >&5
6870echo "${ECHO_T}no" >&6; }
6871fi
6872
6873
6874fi
6875if test -z "$ac_cv_prog_STRIP"; then
6876  ac_ct_STRIP=$STRIP
6877  # Extract the first word of "strip", so it can be a program name with args.
6878set dummy strip; ac_word=$2
6879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6882  echo $ECHO_N "(cached) $ECHO_C" >&6
6883else
6884  if test -n "$ac_ct_STRIP"; then
6885  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6886else
6887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888for as_dir in $PATH
6889do
6890  IFS=$as_save_IFS
6891  test -z "$as_dir" && as_dir=.
6892  for ac_exec_ext in '' $ac_executable_extensions; do
6893  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6894    ac_cv_prog_ac_ct_STRIP="strip"
6895    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896    break 2
6897  fi
6898done
6899done
6900IFS=$as_save_IFS
6901
6902fi
6903fi
6904ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6905if test -n "$ac_ct_STRIP"; then
6906  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6907echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6908else
6909  { echo "$as_me:$LINENO: result: no" >&5
6910echo "${ECHO_T}no" >&6; }
6911fi
6912
6913  if test "x$ac_ct_STRIP" = x; then
6914    STRIP=":"
6915  else
6916    case $cross_compiling:$ac_tool_warned in
6917yes:)
6918{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6919whose name does not start with the host triplet.  If you think this
6920configuration is useful to you, please write to autoconf@gnu.org." >&5
6921echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6922whose name does not start with the host triplet.  If you think this
6923configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6924ac_tool_warned=yes ;;
6925esac
6926    STRIP=$ac_ct_STRIP
6927  fi
6928else
6929  STRIP="$ac_cv_prog_STRIP"
6930fi
6931
6932
6933old_CC="$CC"
6934old_CFLAGS="$CFLAGS"
6935
6936# Set sane defaults for various variables
6937test -z "$AR" && AR=ar
6938test -z "$AR_FLAGS" && AR_FLAGS=cru
6939test -z "$AS" && AS=as
6940test -z "$CC" && CC=cc
6941test -z "$LTCC" && LTCC=$CC
6942test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6943test -z "$DLLTOOL" && DLLTOOL=dlltool
6944test -z "$LD" && LD=ld
6945test -z "$LN_S" && LN_S="ln -s"
6946test -z "$MAGIC_CMD" && MAGIC_CMD=file
6947test -z "$NM" && NM=nm
6948test -z "$SED" && SED=sed
6949test -z "$OBJDUMP" && OBJDUMP=objdump
6950test -z "$RANLIB" && RANLIB=:
6951test -z "$STRIP" && STRIP=:
6952test -z "$ac_objext" && ac_objext=o
6953
6954# Determine commands to create old-style static archives.
6955old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6956old_postinstall_cmds='chmod 644 $oldlib'
6957old_postuninstall_cmds=
6958
6959if test -n "$RANLIB"; then
6960  case $host_os in
6961  openbsd*)
6962    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6963    ;;
6964  *)
6965    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6966    ;;
6967  esac
6968  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6969fi
6970
6971for cc_temp in $compiler""; do
6972  case $cc_temp in
6973    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6974    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6975    \-*) ;;
6976    *) break;;
6977  esac
6978done
6979cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6980
6981
6982# Only perform the check for file, if the check method requires it
6983case $deplibs_check_method in
6984file_magic*)
6985  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6986    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6987echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6988if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6989  echo $ECHO_N "(cached) $ECHO_C" >&6
6990else
6991  case $MAGIC_CMD in
6992[\\/*] |  ?:[\\/]*)
6993  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6994  ;;
6995*)
6996  lt_save_MAGIC_CMD="$MAGIC_CMD"
6997  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6998  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6999  for ac_dir in $ac_dummy; do
7000    IFS="$lt_save_ifs"
7001    test -z "$ac_dir" && ac_dir=.
7002    if test -f $ac_dir/${ac_tool_prefix}file; then
7003      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7004      if test -n "$file_magic_test_file"; then
7005	case $deplibs_check_method in
7006	"file_magic "*)
7007	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7008	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7009	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7010	    $EGREP "$file_magic_regex" > /dev/null; then
7011	    :
7012	  else
7013	    cat <<EOF 1>&2
7014
7015*** Warning: the command libtool uses to detect shared libraries,
7016*** $file_magic_cmd, produces output that libtool cannot recognize.
7017*** The result is that libtool may fail to recognize shared libraries
7018*** as such.  This will affect the creation of libtool libraries that
7019*** depend on shared libraries, but programs linked with such libtool
7020*** libraries will work regardless of this problem.  Nevertheless, you
7021*** may want to report the problem to your system manager and/or to
7022*** bug-libtool@gnu.org
7023
7024EOF
7025	  fi ;;
7026	esac
7027      fi
7028      break
7029    fi
7030  done
7031  IFS="$lt_save_ifs"
7032  MAGIC_CMD="$lt_save_MAGIC_CMD"
7033  ;;
7034esac
7035fi
7036
7037MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7038if test -n "$MAGIC_CMD"; then
7039  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7040echo "${ECHO_T}$MAGIC_CMD" >&6; }
7041else
7042  { echo "$as_me:$LINENO: result: no" >&5
7043echo "${ECHO_T}no" >&6; }
7044fi
7045
7046if test -z "$lt_cv_path_MAGIC_CMD"; then
7047  if test -n "$ac_tool_prefix"; then
7048    { echo "$as_me:$LINENO: checking for file" >&5
7049echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7050if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7051  echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053  case $MAGIC_CMD in
7054[\\/*] |  ?:[\\/]*)
7055  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7056  ;;
7057*)
7058  lt_save_MAGIC_CMD="$MAGIC_CMD"
7059  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7060  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7061  for ac_dir in $ac_dummy; do
7062    IFS="$lt_save_ifs"
7063    test -z "$ac_dir" && ac_dir=.
7064    if test -f $ac_dir/file; then
7065      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7066      if test -n "$file_magic_test_file"; then
7067	case $deplibs_check_method in
7068	"file_magic "*)
7069	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7070	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7071	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7072	    $EGREP "$file_magic_regex" > /dev/null; then
7073	    :
7074	  else
7075	    cat <<EOF 1>&2
7076
7077*** Warning: the command libtool uses to detect shared libraries,
7078*** $file_magic_cmd, produces output that libtool cannot recognize.
7079*** The result is that libtool may fail to recognize shared libraries
7080*** as such.  This will affect the creation of libtool libraries that
7081*** depend on shared libraries, but programs linked with such libtool
7082*** libraries will work regardless of this problem.  Nevertheless, you
7083*** may want to report the problem to your system manager and/or to
7084*** bug-libtool@gnu.org
7085
7086EOF
7087	  fi ;;
7088	esac
7089      fi
7090      break
7091    fi
7092  done
7093  IFS="$lt_save_ifs"
7094  MAGIC_CMD="$lt_save_MAGIC_CMD"
7095  ;;
7096esac
7097fi
7098
7099MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7100if test -n "$MAGIC_CMD"; then
7101  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7102echo "${ECHO_T}$MAGIC_CMD" >&6; }
7103else
7104  { echo "$as_me:$LINENO: result: no" >&5
7105echo "${ECHO_T}no" >&6; }
7106fi
7107
7108  else
7109    MAGIC_CMD=:
7110  fi
7111fi
7112
7113  fi
7114  ;;
7115esac
7116
7117
7118  case $host_os in
7119    rhapsody* | darwin*)
7120    if test -n "$ac_tool_prefix"; then
7121  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7122set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7123{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7125if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7126  echo $ECHO_N "(cached) $ECHO_C" >&6
7127else
7128  if test -n "$DSYMUTIL"; then
7129  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7130else
7131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132for as_dir in $PATH
7133do
7134  IFS=$as_save_IFS
7135  test -z "$as_dir" && as_dir=.
7136  for ac_exec_ext in '' $ac_executable_extensions; do
7137  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7138    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7139    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140    break 2
7141  fi
7142done
7143done
7144IFS=$as_save_IFS
7145
7146fi
7147fi
7148DSYMUTIL=$ac_cv_prog_DSYMUTIL
7149if test -n "$DSYMUTIL"; then
7150  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7151echo "${ECHO_T}$DSYMUTIL" >&6; }
7152else
7153  { echo "$as_me:$LINENO: result: no" >&5
7154echo "${ECHO_T}no" >&6; }
7155fi
7156
7157
7158fi
7159if test -z "$ac_cv_prog_DSYMUTIL"; then
7160  ac_ct_DSYMUTIL=$DSYMUTIL
7161  # Extract the first word of "dsymutil", so it can be a program name with args.
7162set dummy dsymutil; ac_word=$2
7163{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7166  echo $ECHO_N "(cached) $ECHO_C" >&6
7167else
7168  if test -n "$ac_ct_DSYMUTIL"; then
7169  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7170else
7171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172for as_dir in $PATH
7173do
7174  IFS=$as_save_IFS
7175  test -z "$as_dir" && as_dir=.
7176  for ac_exec_ext in '' $ac_executable_extensions; do
7177  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7179    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180    break 2
7181  fi
7182done
7183done
7184IFS=$as_save_IFS
7185
7186fi
7187fi
7188ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7189if test -n "$ac_ct_DSYMUTIL"; then
7190  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7191echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7192else
7193  { echo "$as_me:$LINENO: result: no" >&5
7194echo "${ECHO_T}no" >&6; }
7195fi
7196
7197  if test "x$ac_ct_DSYMUTIL" = x; then
7198    DSYMUTIL=":"
7199  else
7200    case $cross_compiling:$ac_tool_warned in
7201yes:)
7202{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7203whose name does not start with the host triplet.  If you think this
7204configuration is useful to you, please write to autoconf@gnu.org." >&5
7205echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7206whose name does not start with the host triplet.  If you think this
7207configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7208ac_tool_warned=yes ;;
7209esac
7210    DSYMUTIL=$ac_ct_DSYMUTIL
7211  fi
7212else
7213  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7214fi
7215
7216    if test -n "$ac_tool_prefix"; then
7217  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7218set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7221if test "${ac_cv_prog_NMEDIT+set}" = set; then
7222  echo $ECHO_N "(cached) $ECHO_C" >&6
7223else
7224  if test -n "$NMEDIT"; then
7225  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7226else
7227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228for as_dir in $PATH
7229do
7230  IFS=$as_save_IFS
7231  test -z "$as_dir" && as_dir=.
7232  for ac_exec_ext in '' $ac_executable_extensions; do
7233  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7235    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7236    break 2
7237  fi
7238done
7239done
7240IFS=$as_save_IFS
7241
7242fi
7243fi
7244NMEDIT=$ac_cv_prog_NMEDIT
7245if test -n "$NMEDIT"; then
7246  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7247echo "${ECHO_T}$NMEDIT" >&6; }
7248else
7249  { echo "$as_me:$LINENO: result: no" >&5
7250echo "${ECHO_T}no" >&6; }
7251fi
7252
7253
7254fi
7255if test -z "$ac_cv_prog_NMEDIT"; then
7256  ac_ct_NMEDIT=$NMEDIT
7257  # Extract the first word of "nmedit", so it can be a program name with args.
7258set dummy nmedit; ac_word=$2
7259{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7261if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7262  echo $ECHO_N "(cached) $ECHO_C" >&6
7263else
7264  if test -n "$ac_ct_NMEDIT"; then
7265  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7266else
7267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268for as_dir in $PATH
7269do
7270  IFS=$as_save_IFS
7271  test -z "$as_dir" && as_dir=.
7272  for ac_exec_ext in '' $ac_executable_extensions; do
7273  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7275    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276    break 2
7277  fi
7278done
7279done
7280IFS=$as_save_IFS
7281
7282fi
7283fi
7284ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7285if test -n "$ac_ct_NMEDIT"; then
7286  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7287echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7288else
7289  { echo "$as_me:$LINENO: result: no" >&5
7290echo "${ECHO_T}no" >&6; }
7291fi
7292
7293  if test "x$ac_ct_NMEDIT" = x; then
7294    NMEDIT=":"
7295  else
7296    case $cross_compiling:$ac_tool_warned in
7297yes:)
7298{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7299whose name does not start with the host triplet.  If you think this
7300configuration is useful to you, please write to autoconf@gnu.org." >&5
7301echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7302whose name does not start with the host triplet.  If you think this
7303configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7304ac_tool_warned=yes ;;
7305esac
7306    NMEDIT=$ac_ct_NMEDIT
7307  fi
7308else
7309  NMEDIT="$ac_cv_prog_NMEDIT"
7310fi
7311
7312
7313    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7314echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7315if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7316  echo $ECHO_N "(cached) $ECHO_C" >&6
7317else
7318  lt_cv_apple_cc_single_mod=no
7319      if test -z "${LT_MULTI_MODULE}"; then
7320   # By default we will add the -single_module flag. You can override
7321   # by either setting the environment variable LT_MULTI_MODULE
7322   # non-empty at configure time, or by adding -multi_module to the
7323   # link flags.
7324   echo "int foo(void){return 1;}" > conftest.c
7325   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7326     -dynamiclib ${wl}-single_module conftest.c
7327   if test -f libconftest.dylib; then
7328     lt_cv_apple_cc_single_mod=yes
7329     rm -rf libconftest.dylib*
7330   fi
7331   rm conftest.c
7332      fi
7333fi
7334{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7335echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7336    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7337echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7338if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7339  echo $ECHO_N "(cached) $ECHO_C" >&6
7340else
7341  lt_cv_ld_exported_symbols_list=no
7342      save_LDFLAGS=$LDFLAGS
7343      echo "_main" > conftest.sym
7344      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7345      cat >conftest.$ac_ext <<_ACEOF
7346/* confdefs.h.  */
7347_ACEOF
7348cat confdefs.h >>conftest.$ac_ext
7349cat >>conftest.$ac_ext <<_ACEOF
7350/* end confdefs.h.  */
7351
7352int
7353main ()
7354{
7355
7356  ;
7357  return 0;
7358}
7359_ACEOF
7360rm -f conftest.$ac_objext conftest$ac_exeext
7361if { (ac_try="$ac_link"
7362case "(($ac_try" in
7363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364  *) ac_try_echo=$ac_try;;
7365esac
7366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367  (eval "$ac_link") 2>conftest.er1
7368  ac_status=$?
7369  grep -v '^ *+' conftest.er1 >conftest.err
7370  rm -f conftest.er1
7371  cat conftest.err >&5
7372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373  (exit $ac_status); } && {
7374	 test -z "$ac_c_werror_flag" ||
7375	 test ! -s conftest.err
7376       } && test -s conftest$ac_exeext &&
7377       $as_test_x conftest$ac_exeext; then
7378  lt_cv_ld_exported_symbols_list=yes
7379else
7380  echo "$as_me: failed program was:" >&5
7381sed 's/^/| /' conftest.$ac_ext >&5
7382
7383	lt_cv_ld_exported_symbols_list=no
7384fi
7385
7386rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7387      conftest$ac_exeext conftest.$ac_ext
7388   LDFLAGS="$save_LDFLAGS"
7389
7390fi
7391{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7392echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7393    case $host_os in
7394    rhapsody* | darwin1.[0123])
7395      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7396    darwin1.*)
7397     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7398    darwin*)
7399      # if running on 10.5 or later, the deployment target defaults
7400      # to the OS version, if on x86, and 10.4, the deployment
7401      # target defaults to 10.4. Don't you love it?
7402      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7403   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7404     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7405   10.[012]*)
7406     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7407   10.*)
7408     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7409      esac
7410    ;;
7411  esac
7412    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7413      _lt_dar_single_mod='$single_module'
7414    fi
7415    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7416      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7417    else
7418      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7419    fi
7420    if test "$DSYMUTIL" != ":"; then
7421      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7422    else
7423      _lt_dsymutil=
7424    fi
7425    ;;
7426  esac
7427
7428
7429enable_dlopen=no
7430enable_win32_dll=no
7431
7432# Check whether --enable-libtool-lock was given.
7433if test "${enable_libtool_lock+set}" = set; then
7434  enableval=$enable_libtool_lock;
7435fi
7436
7437test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7438
7439
7440# Check whether --with-pic was given.
7441if test "${with_pic+set}" = set; then
7442  withval=$with_pic; pic_mode="$withval"
7443else
7444  pic_mode=default
7445fi
7446
7447test -z "$pic_mode" && pic_mode=default
7448
7449# Use C for the default configuration in the libtool script
7450tagname=
7451lt_save_CC="$CC"
7452ac_ext=c
7453ac_cpp='$CPP $CPPFLAGS'
7454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7456ac_compiler_gnu=$ac_cv_c_compiler_gnu
7457
7458
7459# Source file extension for C test sources.
7460ac_ext=c
7461
7462# Object file extension for compiled C test sources.
7463objext=o
7464objext=$objext
7465
7466# Code to be used in simple compile tests
7467lt_simple_compile_test_code="int some_variable = 0;"
7468
7469# Code to be used in simple link tests
7470lt_simple_link_test_code='int main(){return(0);}'
7471
7472
7473# If no C compiler was specified, use CC.
7474LTCC=${LTCC-"$CC"}
7475
7476# If no C compiler flags were specified, use CFLAGS.
7477LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7478
7479# Allow CC to be a program name with arguments.
7480compiler=$CC
7481
7482
7483# save warnings/boilerplate of simple test code
7484ac_outfile=conftest.$ac_objext
7485echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7486eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7487_lt_compiler_boilerplate=`cat conftest.err`
7488$rm conftest*
7489
7490ac_outfile=conftest.$ac_objext
7491echo "$lt_simple_link_test_code" >conftest.$ac_ext
7492eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7493_lt_linker_boilerplate=`cat conftest.err`
7494$rm -r conftest*
7495
7496
7497
7498lt_prog_compiler_no_builtin_flag=
7499
7500if test "$GCC" = yes; then
7501  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7502
7503
7504{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7505echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7506if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7507  echo $ECHO_N "(cached) $ECHO_C" >&6
7508else
7509  lt_cv_prog_compiler_rtti_exceptions=no
7510  ac_outfile=conftest.$ac_objext
7511   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7512   lt_compiler_flag="-fno-rtti -fno-exceptions"
7513   # Insert the option either (1) after the last *FLAGS variable, or
7514   # (2) before a word containing "conftest.", or (3) at the end.
7515   # Note that $ac_compile itself does not contain backslashes and begins
7516   # with a dollar sign (not a hyphen), so the echo should work correctly.
7517   # The option is referenced via a variable to avoid confusing sed.
7518   lt_compile=`echo "$ac_compile" | $SED \
7519   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7520   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7521   -e 's:$: $lt_compiler_flag:'`
7522   (eval echo "\"\$as_me:7522: $lt_compile\"" >&5)
7523   (eval "$lt_compile" 2>conftest.err)
7524   ac_status=$?
7525   cat conftest.err >&5
7526   echo "$as_me:7526: \$? = $ac_status" >&5
7527   if (exit $ac_status) && test -s "$ac_outfile"; then
7528     # The compiler can only warn and ignore the option if not recognized
7529     # So say no if there are warnings other than the usual output.
7530     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7531     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7532     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7533       lt_cv_prog_compiler_rtti_exceptions=yes
7534     fi
7535   fi
7536   $rm conftest*
7537
7538fi
7539{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7540echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7541
7542if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7543    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7544else
7545    :
7546fi
7547
7548fi
7549
7550lt_prog_compiler_wl=
7551lt_prog_compiler_pic=
7552lt_prog_compiler_static=
7553
7554{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7555echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7556
7557  if test "$GCC" = yes; then
7558    lt_prog_compiler_wl='-Wl,'
7559    lt_prog_compiler_static='-static'
7560
7561    case $host_os in
7562      aix*)
7563      # All AIX code is PIC.
7564      if test "$host_cpu" = ia64; then
7565	# AIX 5 now supports IA64 processor
7566	lt_prog_compiler_static='-Bstatic'
7567      fi
7568      ;;
7569
7570    amigaos*)
7571      # FIXME: we need at least 68020 code to build shared libraries, but
7572      # adding the `-m68020' flag to GCC prevents building anything better,
7573      # like `-m68040'.
7574      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7575      ;;
7576
7577    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7578      # PIC is the default for these OSes.
7579      ;;
7580
7581    mingw* | cygwin* | pw32* | os2*)
7582      # This hack is so that the source file can tell whether it is being
7583      # built for inclusion in a dll (and should export symbols for example).
7584      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7585      # (--disable-auto-import) libraries
7586      lt_prog_compiler_pic='-DDLL_EXPORT'
7587      ;;
7588
7589    darwin* | rhapsody*)
7590      # PIC is the default on this platform
7591      # Common symbols not allowed in MH_DYLIB files
7592      lt_prog_compiler_pic='-fno-common'
7593      ;;
7594
7595    interix[3-9]*)
7596      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7597      # Instead, we relocate shared libraries at runtime.
7598      ;;
7599
7600    msdosdjgpp*)
7601      # Just because we use GCC doesn't mean we suddenly get shared libraries
7602      # on systems that don't support them.
7603      lt_prog_compiler_can_build_shared=no
7604      enable_shared=no
7605      ;;
7606
7607    sysv4*MP*)
7608      if test -d /usr/nec; then
7609	lt_prog_compiler_pic=-Kconform_pic
7610      fi
7611      ;;
7612
7613    hpux*)
7614      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7615      # not for PA HP-UX.
7616      case $host_cpu in
7617      hppa*64*|ia64*)
7618	# +Z the default
7619	;;
7620      *)
7621	lt_prog_compiler_pic='-fPIC'
7622	;;
7623      esac
7624      ;;
7625
7626    *)
7627      lt_prog_compiler_pic='-fPIC'
7628      ;;
7629    esac
7630  else
7631    # PORTME Check for flag to pass linker flags through the system compiler.
7632    case $host_os in
7633    aix*)
7634      lt_prog_compiler_wl='-Wl,'
7635      if test "$host_cpu" = ia64; then
7636	# AIX 5 now supports IA64 processor
7637	lt_prog_compiler_static='-Bstatic'
7638      else
7639	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7640      fi
7641      ;;
7642      darwin*)
7643        # PIC is the default on this platform
7644        # Common symbols not allowed in MH_DYLIB files
7645       case $cc_basename in
7646         xlc*)
7647         lt_prog_compiler_pic='-qnocommon'
7648         lt_prog_compiler_wl='-Wl,'
7649         ;;
7650       esac
7651       ;;
7652
7653    mingw* | cygwin* | pw32* | os2*)
7654      # This hack is so that the source file can tell whether it is being
7655      # built for inclusion in a dll (and should export symbols for example).
7656      lt_prog_compiler_pic='-DDLL_EXPORT'
7657      ;;
7658
7659    hpux9* | hpux10* | hpux11*)
7660      lt_prog_compiler_wl='-Wl,'
7661      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7662      # not for PA HP-UX.
7663      case $host_cpu in
7664      hppa*64*|ia64*)
7665	# +Z the default
7666	;;
7667      *)
7668	lt_prog_compiler_pic='+Z'
7669	;;
7670      esac
7671      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7672      lt_prog_compiler_static='${wl}-a ${wl}archive'
7673      ;;
7674
7675    irix5* | irix6* | nonstopux*)
7676      lt_prog_compiler_wl='-Wl,'
7677      # PIC (with -KPIC) is the default.
7678      lt_prog_compiler_static='-non_shared'
7679      ;;
7680
7681    newsos6)
7682      lt_prog_compiler_pic='-KPIC'
7683      lt_prog_compiler_static='-Bstatic'
7684      ;;
7685
7686    linux* | k*bsd*-gnu)
7687      case $cc_basename in
7688      icc* | ecc*)
7689	lt_prog_compiler_wl='-Wl,'
7690	lt_prog_compiler_pic='-KPIC'
7691	lt_prog_compiler_static='-static'
7692        ;;
7693      pgcc* | pgf77* | pgf90* | pgf95*)
7694        # Portland Group compilers (*not* the Pentium gcc compiler,
7695	# which looks to be a dead project)
7696	lt_prog_compiler_wl='-Wl,'
7697	lt_prog_compiler_pic='-fpic'
7698	lt_prog_compiler_static='-Bstatic'
7699        ;;
7700      ccc*)
7701        lt_prog_compiler_wl='-Wl,'
7702        # All Alpha code is PIC.
7703        lt_prog_compiler_static='-non_shared'
7704        ;;
7705      *)
7706        case `$CC -V 2>&1 | sed 5q` in
7707	*Sun\ C*)
7708	  # Sun C 5.9
7709	  lt_prog_compiler_pic='-KPIC'
7710	  lt_prog_compiler_static='-Bstatic'
7711	  lt_prog_compiler_wl='-Wl,'
7712	  ;;
7713	*Sun\ F*)
7714	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7715	  lt_prog_compiler_pic='-KPIC'
7716	  lt_prog_compiler_static='-Bstatic'
7717	  lt_prog_compiler_wl=''
7718	  ;;
7719	esac
7720	;;
7721      esac
7722      ;;
7723
7724    osf3* | osf4* | osf5*)
7725      lt_prog_compiler_wl='-Wl,'
7726      # All OSF/1 code is PIC.
7727      lt_prog_compiler_static='-non_shared'
7728      ;;
7729
7730    rdos*)
7731      lt_prog_compiler_static='-non_shared'
7732      ;;
7733
7734    solaris*)
7735      lt_prog_compiler_pic='-KPIC'
7736      lt_prog_compiler_static='-Bstatic'
7737      case $cc_basename in
7738      f77* | f90* | f95*)
7739	lt_prog_compiler_wl='-Qoption ld ';;
7740      *)
7741	lt_prog_compiler_wl='-Wl,';;
7742      esac
7743      ;;
7744
7745    sunos4*)
7746      lt_prog_compiler_wl='-Qoption ld '
7747      lt_prog_compiler_pic='-PIC'
7748      lt_prog_compiler_static='-Bstatic'
7749      ;;
7750
7751    sysv4 | sysv4.2uw2* | sysv4.3*)
7752      lt_prog_compiler_wl='-Wl,'
7753      lt_prog_compiler_pic='-KPIC'
7754      lt_prog_compiler_static='-Bstatic'
7755      ;;
7756
7757    sysv4*MP*)
7758      if test -d /usr/nec ;then
7759	lt_prog_compiler_pic='-Kconform_pic'
7760	lt_prog_compiler_static='-Bstatic'
7761      fi
7762      ;;
7763
7764    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7765      lt_prog_compiler_wl='-Wl,'
7766      lt_prog_compiler_pic='-KPIC'
7767      lt_prog_compiler_static='-Bstatic'
7768      ;;
7769
7770    unicos*)
7771      lt_prog_compiler_wl='-Wl,'
7772      lt_prog_compiler_can_build_shared=no
7773      ;;
7774
7775    uts4*)
7776      lt_prog_compiler_pic='-pic'
7777      lt_prog_compiler_static='-Bstatic'
7778      ;;
7779
7780    *)
7781      lt_prog_compiler_can_build_shared=no
7782      ;;
7783    esac
7784  fi
7785
7786{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7787echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7788
7789#
7790# Check to make sure the PIC flag actually works.
7791#
7792if test -n "$lt_prog_compiler_pic"; then
7793
7794{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7795echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7796if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7797  echo $ECHO_N "(cached) $ECHO_C" >&6
7798else
7799  lt_cv_prog_compiler_pic_works=no
7800  ac_outfile=conftest.$ac_objext
7801   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7802   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7803   # Insert the option either (1) after the last *FLAGS variable, or
7804   # (2) before a word containing "conftest.", or (3) at the end.
7805   # Note that $ac_compile itself does not contain backslashes and begins
7806   # with a dollar sign (not a hyphen), so the echo should work correctly.
7807   # The option is referenced via a variable to avoid confusing sed.
7808   lt_compile=`echo "$ac_compile" | $SED \
7809   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7810   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7811   -e 's:$: $lt_compiler_flag:'`
7812   (eval echo "\"\$as_me:7812: $lt_compile\"" >&5)
7813   (eval "$lt_compile" 2>conftest.err)
7814   ac_status=$?
7815   cat conftest.err >&5
7816   echo "$as_me:7816: \$? = $ac_status" >&5
7817   if (exit $ac_status) && test -s "$ac_outfile"; then
7818     # The compiler can only warn and ignore the option if not recognized
7819     # So say no if there are warnings other than the usual output.
7820     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7821     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7822     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7823       lt_cv_prog_compiler_pic_works=yes
7824     fi
7825   fi
7826   $rm conftest*
7827
7828fi
7829{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7830echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7831
7832if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7833    case $lt_prog_compiler_pic in
7834     "" | " "*) ;;
7835     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7836     esac
7837else
7838    lt_prog_compiler_pic=
7839     lt_prog_compiler_can_build_shared=no
7840fi
7841
7842fi
7843case $host_os in
7844  # For platforms which do not support PIC, -DPIC is meaningless:
7845  *djgpp*)
7846    lt_prog_compiler_pic=
7847    ;;
7848  *)
7849    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7850    ;;
7851esac
7852
7853#
7854# Check to make sure the static flag actually works.
7855#
7856wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7857{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7858echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7859if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7860  echo $ECHO_N "(cached) $ECHO_C" >&6
7861else
7862  lt_cv_prog_compiler_static_works=no
7863   save_LDFLAGS="$LDFLAGS"
7864   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7865   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7866   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7867     # The linker can only warn and ignore the option if not recognized
7868     # So say no if there are warnings
7869     if test -s conftest.err; then
7870       # Append any errors to the config.log.
7871       cat conftest.err 1>&5
7872       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7873       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7874       if diff conftest.exp conftest.er2 >/dev/null; then
7875         lt_cv_prog_compiler_static_works=yes
7876       fi
7877     else
7878       lt_cv_prog_compiler_static_works=yes
7879     fi
7880   fi
7881   $rm -r conftest*
7882   LDFLAGS="$save_LDFLAGS"
7883
7884fi
7885{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7886echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7887
7888if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7889    :
7890else
7891    lt_prog_compiler_static=
7892fi
7893
7894
7895{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7896echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7897if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7898  echo $ECHO_N "(cached) $ECHO_C" >&6
7899else
7900  lt_cv_prog_compiler_c_o=no
7901   $rm -r conftest 2>/dev/null
7902   mkdir conftest
7903   cd conftest
7904   mkdir out
7905   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7906
7907   lt_compiler_flag="-o out/conftest2.$ac_objext"
7908   # Insert the option either (1) after the last *FLAGS variable, or
7909   # (2) before a word containing "conftest.", or (3) at the end.
7910   # Note that $ac_compile itself does not contain backslashes and begins
7911   # with a dollar sign (not a hyphen), so the echo should work correctly.
7912   lt_compile=`echo "$ac_compile" | $SED \
7913   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7914   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7915   -e 's:$: $lt_compiler_flag:'`
7916   (eval echo "\"\$as_me:7916: $lt_compile\"" >&5)
7917   (eval "$lt_compile" 2>out/conftest.err)
7918   ac_status=$?
7919   cat out/conftest.err >&5
7920   echo "$as_me:7920: \$? = $ac_status" >&5
7921   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7922   then
7923     # The compiler can only warn and ignore the option if not recognized
7924     # So say no if there are warnings
7925     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7926     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7927     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7928       lt_cv_prog_compiler_c_o=yes
7929     fi
7930   fi
7931   chmod u+w . 2>&5
7932   $rm conftest*
7933   # SGI C++ compiler will create directory out/ii_files/ for
7934   # template instantiation
7935   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7936   $rm out/* && rmdir out
7937   cd ..
7938   rmdir conftest
7939   $rm conftest*
7940
7941fi
7942{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7943echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7944
7945
7946hard_links="nottested"
7947if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7948  # do not overwrite the value of need_locks provided by the user
7949  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7950echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7951  hard_links=yes
7952  $rm conftest*
7953  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7954  touch conftest.a
7955  ln conftest.a conftest.b 2>&5 || hard_links=no
7956  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7957  { echo "$as_me:$LINENO: result: $hard_links" >&5
7958echo "${ECHO_T}$hard_links" >&6; }
7959  if test "$hard_links" = no; then
7960    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7961echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7962    need_locks=warn
7963  fi
7964else
7965  need_locks=no
7966fi
7967
7968{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7969echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7970
7971  runpath_var=
7972  allow_undefined_flag=
7973  enable_shared_with_static_runtimes=no
7974  archive_cmds=
7975  archive_expsym_cmds=
7976  old_archive_From_new_cmds=
7977  old_archive_from_expsyms_cmds=
7978  export_dynamic_flag_spec=
7979  whole_archive_flag_spec=
7980  thread_safe_flag_spec=
7981  hardcode_libdir_flag_spec=
7982  hardcode_libdir_flag_spec_ld=
7983  hardcode_libdir_separator=
7984  hardcode_direct=no
7985  hardcode_minus_L=no
7986  hardcode_shlibpath_var=unsupported
7987  link_all_deplibs=unknown
7988  hardcode_automatic=no
7989  module_cmds=
7990  module_expsym_cmds=
7991  always_export_symbols=no
7992  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7993  # include_expsyms should be a list of space-separated symbols to be *always*
7994  # included in the symbol list
7995  include_expsyms=
7996  # exclude_expsyms can be an extended regexp of symbols to exclude
7997  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7998  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7999  # as well as any symbol that contains `d'.
8000  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8001  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8002  # platforms (ab)use it in PIC code, but their linkers get confused if
8003  # the symbol is explicitly referenced.  Since portable code cannot
8004  # rely on this symbol name, it's probably fine to never include it in
8005  # preloaded symbol tables.
8006  # Exclude shared library initialization/finalization symbols.
8007  extract_expsyms_cmds=
8008  # Just being paranoid about ensuring that cc_basename is set.
8009  for cc_temp in $compiler""; do
8010  case $cc_temp in
8011    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8012    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8013    \-*) ;;
8014    *) break;;
8015  esac
8016done
8017cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8018
8019  case $host_os in
8020  cygwin* | mingw* | pw32*)
8021    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8022    # When not using gcc, we currently assume that we are using
8023    # Microsoft Visual C++.
8024    if test "$GCC" != yes; then
8025      with_gnu_ld=no
8026    fi
8027    ;;
8028  interix*)
8029    # we just hope/assume this is gcc and not c89 (= MSVC++)
8030    with_gnu_ld=yes
8031    ;;
8032  openbsd*)
8033    with_gnu_ld=no
8034    ;;
8035  esac
8036
8037  ld_shlibs=yes
8038  if test "$with_gnu_ld" = yes; then
8039    # If archive_cmds runs LD, not CC, wlarc should be empty
8040    wlarc='${wl}'
8041
8042    # Set some defaults for GNU ld with shared library support. These
8043    # are reset later if shared libraries are not supported. Putting them
8044    # here allows them to be overridden if necessary.
8045    runpath_var=LD_RUN_PATH
8046    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8047    export_dynamic_flag_spec='${wl}--export-dynamic'
8048    # ancient GNU ld didn't support --whole-archive et. al.
8049    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8050	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8051      else
8052  	whole_archive_flag_spec=
8053    fi
8054    supports_anon_versioning=no
8055    case `$LD -v 2>/dev/null` in
8056      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8057      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8058      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8059      *\ 2.11.*) ;; # other 2.11 versions
8060      *) supports_anon_versioning=yes ;;
8061    esac
8062
8063    # See if GNU ld supports shared libraries.
8064    case $host_os in
8065    aix[3-9]*)
8066      # On AIX/PPC, the GNU linker is very broken
8067      if test "$host_cpu" != ia64; then
8068	ld_shlibs=no
8069	cat <<EOF 1>&2
8070
8071*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8072*** to be unable to reliably create shared libraries on AIX.
8073*** Therefore, libtool is disabling shared libraries support.  If you
8074*** really care for shared libraries, you may want to modify your PATH
8075*** so that a non-GNU linker is found, and then restart.
8076
8077EOF
8078      fi
8079      ;;
8080
8081    amigaos*)
8082      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)'
8083      hardcode_libdir_flag_spec='-L$libdir'
8084      hardcode_minus_L=yes
8085
8086      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8087      # that the semantics of dynamic libraries on AmigaOS, at least up
8088      # to version 4, is to share data among multiple programs linked
8089      # with the same dynamic library.  Since this doesn't match the
8090      # behavior of shared libraries on other platforms, we can't use
8091      # them.
8092      ld_shlibs=no
8093      ;;
8094
8095    beos*)
8096      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8097	allow_undefined_flag=unsupported
8098	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8099	# support --undefined.  This deserves some investigation.  FIXME
8100	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8101      else
8102	ld_shlibs=no
8103      fi
8104      ;;
8105
8106    cygwin* | mingw* | pw32*)
8107      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8108      # as there is no search path for DLLs.
8109      hardcode_libdir_flag_spec='-L$libdir'
8110      allow_undefined_flag=unsupported
8111      always_export_symbols=no
8112      enable_shared_with_static_runtimes=yes
8113      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8114
8115      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8116        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8117	# If the export-symbols file already is a .def file (1st line
8118	# is EXPORTS), use it as is; otherwise, prepend...
8119	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8120	  cp $export_symbols $output_objdir/$soname.def;
8121	else
8122	  echo EXPORTS > $output_objdir/$soname.def;
8123	  cat $export_symbols >> $output_objdir/$soname.def;
8124	fi~
8125	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8126      else
8127	ld_shlibs=no
8128      fi
8129      ;;
8130
8131    interix[3-9]*)
8132      hardcode_direct=no
8133      hardcode_shlibpath_var=no
8134      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8135      export_dynamic_flag_spec='${wl}-E'
8136      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8137      # Instead, shared libraries are loaded at an image base (0x10000000 by
8138      # default) and relocated if they conflict, which is a slow very memory
8139      # consuming and fragmenting process.  To avoid this, we pick a random,
8140      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8141      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8142      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8143      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'
8144      ;;
8145
8146    gnu* | linux* | k*bsd*-gnu)
8147      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8148	tmp_addflag=
8149	case $cc_basename,$host_cpu in
8150	pgcc*)				# Portland Group C compiler
8151	  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'
8152	  tmp_addflag=' $pic_flag'
8153	  ;;
8154	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8155	  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'
8156	  tmp_addflag=' $pic_flag -Mnomain' ;;
8157	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8158	  tmp_addflag=' -i_dynamic' ;;
8159	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8160	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8161	ifc* | ifort*)			# Intel Fortran compiler
8162	  tmp_addflag=' -nofor_main' ;;
8163	esac
8164	case `$CC -V 2>&1 | sed 5q` in
8165	*Sun\ C*)			# Sun C 5.9
8166	  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'
8167	  tmp_sharedflag='-G' ;;
8168	*Sun\ F*)			# Sun Fortran 8.3
8169	  tmp_sharedflag='-G' ;;
8170	*)
8171	  tmp_sharedflag='-shared' ;;
8172	esac
8173	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8174
8175	if test $supports_anon_versioning = yes; then
8176	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8177  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8178  $echo "local: *; };" >> $output_objdir/$libname.ver~
8179	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8180	fi
8181	link_all_deplibs=no
8182      else
8183	ld_shlibs=no
8184      fi
8185      ;;
8186
8187    netbsd* | netbsdelf*-gnu)
8188      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8189	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8190	wlarc=
8191      else
8192	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8193	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8194      fi
8195      ;;
8196
8197    solaris*)
8198      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8199	ld_shlibs=no
8200	cat <<EOF 1>&2
8201
8202*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8203*** create shared libraries on Solaris systems.  Therefore, libtool
8204*** is disabling shared libraries support.  We urge you to upgrade GNU
8205*** binutils to release 2.9.1 or newer.  Another option is to modify
8206*** your PATH or compiler configuration so that the native linker is
8207*** used, and then restart.
8208
8209EOF
8210      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8211	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8212	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8213      else
8214	ld_shlibs=no
8215      fi
8216      ;;
8217
8218    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8219      case `$LD -v 2>&1` in
8220        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8221	ld_shlibs=no
8222	cat <<_LT_EOF 1>&2
8223
8224*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8225*** reliably create shared libraries on SCO systems.  Therefore, libtool
8226*** is disabling shared libraries support.  We urge you to upgrade GNU
8227*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8228*** your PATH or compiler configuration so that the native linker is
8229*** used, and then restart.
8230
8231_LT_EOF
8232	;;
8233	*)
8234	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8235	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8236	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8237	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8238	  else
8239	    ld_shlibs=no
8240	  fi
8241	;;
8242      esac
8243      ;;
8244
8245    sunos4*)
8246      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8247      wlarc=
8248      hardcode_direct=yes
8249      hardcode_shlibpath_var=no
8250      ;;
8251
8252    *)
8253      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8254	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8255	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8256      else
8257	ld_shlibs=no
8258      fi
8259      ;;
8260    esac
8261
8262    if test "$ld_shlibs" = no; then
8263      runpath_var=
8264      hardcode_libdir_flag_spec=
8265      export_dynamic_flag_spec=
8266      whole_archive_flag_spec=
8267    fi
8268  else
8269    # PORTME fill in a description of your system's linker (not GNU ld)
8270    case $host_os in
8271    aix3*)
8272      allow_undefined_flag=unsupported
8273      always_export_symbols=yes
8274      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'
8275      # Note: this linker hardcodes the directories in LIBPATH if there
8276      # are no directories specified by -L.
8277      hardcode_minus_L=yes
8278      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8279	# Neither direct hardcoding nor static linking is supported with a
8280	# broken collect2.
8281	hardcode_direct=unsupported
8282      fi
8283      ;;
8284
8285    aix[4-9]*)
8286      if test "$host_cpu" = ia64; then
8287	# On IA64, the linker does run time linking by default, so we don't
8288	# have to do anything special.
8289	aix_use_runtimelinking=no
8290	exp_sym_flag='-Bexport'
8291	no_entry_flag=""
8292      else
8293	# If we're using GNU nm, then we don't want the "-C" option.
8294	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8295	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8296	  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'
8297	else
8298	  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'
8299	fi
8300	aix_use_runtimelinking=no
8301
8302	# Test if we are trying to use run time linking or normal
8303	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8304	# need to do runtime linking.
8305	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8306	  for ld_flag in $LDFLAGS; do
8307  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8308  	    aix_use_runtimelinking=yes
8309  	    break
8310  	  fi
8311	  done
8312	  ;;
8313	esac
8314
8315	exp_sym_flag='-bexport'
8316	no_entry_flag='-bnoentry'
8317      fi
8318
8319      # When large executables or shared objects are built, AIX ld can
8320      # have problems creating the table of contents.  If linking a library
8321      # or program results in "error TOC overflow" add -mminimal-toc to
8322      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8323      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8324
8325      archive_cmds=''
8326      hardcode_direct=yes
8327      hardcode_libdir_separator=':'
8328      link_all_deplibs=yes
8329
8330      if test "$GCC" = yes; then
8331	case $host_os in aix4.[012]|aix4.[012].*)
8332	# We only want to do this on AIX 4.2 and lower, the check
8333	# below for broken collect2 doesn't work under 4.3+
8334	  collect2name=`${CC} -print-prog-name=collect2`
8335	  if test -f "$collect2name" && \
8336  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8337	  then
8338  	  # We have reworked collect2
8339  	  :
8340	  else
8341  	  # We have old collect2
8342  	  hardcode_direct=unsupported
8343  	  # It fails to find uninstalled libraries when the uninstalled
8344  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8345  	  # to unsupported forces relinking
8346  	  hardcode_minus_L=yes
8347  	  hardcode_libdir_flag_spec='-L$libdir'
8348  	  hardcode_libdir_separator=
8349	  fi
8350	  ;;
8351	esac
8352	shared_flag='-shared'
8353	if test "$aix_use_runtimelinking" = yes; then
8354	  shared_flag="$shared_flag "'${wl}-G'
8355	fi
8356      else
8357	# not using gcc
8358	if test "$host_cpu" = ia64; then
8359  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8360  	# chokes on -Wl,-G. The following line is correct:
8361	  shared_flag='-G'
8362	else
8363	  if test "$aix_use_runtimelinking" = yes; then
8364	    shared_flag='${wl}-G'
8365	  else
8366	    shared_flag='${wl}-bM:SRE'
8367	  fi
8368	fi
8369      fi
8370
8371      # It seems that -bexpall does not export symbols beginning with
8372      # underscore (_), so it is better to generate a list of symbols to export.
8373      always_export_symbols=yes
8374      if test "$aix_use_runtimelinking" = yes; then
8375	# Warning - without using the other runtime loading flags (-brtl),
8376	# -berok will link without error, but may produce a broken library.
8377	allow_undefined_flag='-berok'
8378       # Determine the default libpath from the value encoded in an empty executable.
8379       cat >conftest.$ac_ext <<_ACEOF
8380/* confdefs.h.  */
8381_ACEOF
8382cat confdefs.h >>conftest.$ac_ext
8383cat >>conftest.$ac_ext <<_ACEOF
8384/* end confdefs.h.  */
8385
8386int
8387main ()
8388{
8389
8390  ;
8391  return 0;
8392}
8393_ACEOF
8394rm -f conftest.$ac_objext conftest$ac_exeext
8395if { (ac_try="$ac_link"
8396case "(($ac_try" in
8397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398  *) ac_try_echo=$ac_try;;
8399esac
8400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401  (eval "$ac_link") 2>conftest.er1
8402  ac_status=$?
8403  grep -v '^ *+' conftest.er1 >conftest.err
8404  rm -f conftest.er1
8405  cat conftest.err >&5
8406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407  (exit $ac_status); } && {
8408	 test -z "$ac_c_werror_flag" ||
8409	 test ! -s conftest.err
8410       } && test -s conftest$ac_exeext &&
8411       $as_test_x conftest$ac_exeext; then
8412
8413lt_aix_libpath_sed='
8414    /Import File Strings/,/^$/ {
8415	/^0/ {
8416	    s/^0  *\(.*\)$/\1/
8417	    p
8418	}
8419    }'
8420aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8421# Check for a 64-bit object if we didn't find anything.
8422if test -z "$aix_libpath"; then
8423  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8424fi
8425else
8426  echo "$as_me: failed program was:" >&5
8427sed 's/^/| /' conftest.$ac_ext >&5
8428
8429
8430fi
8431
8432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8433      conftest$ac_exeext conftest.$ac_ext
8434if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8435
8436       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8437	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"
8438       else
8439	if test "$host_cpu" = ia64; then
8440	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8441	  allow_undefined_flag="-z nodefs"
8442	  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"
8443	else
8444	 # Determine the default libpath from the value encoded in an empty executable.
8445	 cat >conftest.$ac_ext <<_ACEOF
8446/* confdefs.h.  */
8447_ACEOF
8448cat confdefs.h >>conftest.$ac_ext
8449cat >>conftest.$ac_ext <<_ACEOF
8450/* end confdefs.h.  */
8451
8452int
8453main ()
8454{
8455
8456  ;
8457  return 0;
8458}
8459_ACEOF
8460rm -f conftest.$ac_objext conftest$ac_exeext
8461if { (ac_try="$ac_link"
8462case "(($ac_try" in
8463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464  *) ac_try_echo=$ac_try;;
8465esac
8466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467  (eval "$ac_link") 2>conftest.er1
8468  ac_status=$?
8469  grep -v '^ *+' conftest.er1 >conftest.err
8470  rm -f conftest.er1
8471  cat conftest.err >&5
8472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473  (exit $ac_status); } && {
8474	 test -z "$ac_c_werror_flag" ||
8475	 test ! -s conftest.err
8476       } && test -s conftest$ac_exeext &&
8477       $as_test_x conftest$ac_exeext; then
8478
8479lt_aix_libpath_sed='
8480    /Import File Strings/,/^$/ {
8481	/^0/ {
8482	    s/^0  *\(.*\)$/\1/
8483	    p
8484	}
8485    }'
8486aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8487# Check for a 64-bit object if we didn't find anything.
8488if test -z "$aix_libpath"; then
8489  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8490fi
8491else
8492  echo "$as_me: failed program was:" >&5
8493sed 's/^/| /' conftest.$ac_ext >&5
8494
8495
8496fi
8497
8498rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8499      conftest$ac_exeext conftest.$ac_ext
8500if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8501
8502	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8503	  # Warning - without using the other run time loading flags,
8504	  # -berok will link without error, but may produce a broken library.
8505	  no_undefined_flag=' ${wl}-bernotok'
8506	  allow_undefined_flag=' ${wl}-berok'
8507	  # Exported symbols can be pulled into shared objects from archives
8508	  whole_archive_flag_spec='$convenience'
8509	  archive_cmds_need_lc=yes
8510	  # This is similar to how AIX traditionally builds its shared libraries.
8511	  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'
8512	fi
8513      fi
8514      ;;
8515
8516    amigaos*)
8517      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)'
8518      hardcode_libdir_flag_spec='-L$libdir'
8519      hardcode_minus_L=yes
8520      # see comment about different semantics on the GNU ld section
8521      ld_shlibs=no
8522      ;;
8523
8524    bsdi[45]*)
8525      export_dynamic_flag_spec=-rdynamic
8526      ;;
8527
8528    cygwin* | mingw* | pw32*)
8529      # When not using gcc, we currently assume that we are using
8530      # Microsoft Visual C++.
8531      # hardcode_libdir_flag_spec is actually meaningless, as there is
8532      # no search path for DLLs.
8533      hardcode_libdir_flag_spec=' '
8534      allow_undefined_flag=unsupported
8535      # Tell ltmain to make .lib files, not .a files.
8536      libext=lib
8537      # Tell ltmain to make .dll files, not .so files.
8538      shrext_cmds=".dll"
8539      # FIXME: Setting linknames here is a bad hack.
8540      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8541      # The linker will automatically build a .lib file if we build a DLL.
8542      old_archive_From_new_cmds='true'
8543      # FIXME: Should let the user specify the lib program.
8544      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8545      fix_srcfile_path='`cygpath -w "$srcfile"`'
8546      enable_shared_with_static_runtimes=yes
8547      ;;
8548
8549    darwin* | rhapsody*)
8550      case $host_os in
8551        rhapsody* | darwin1.[012])
8552         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8553         ;;
8554       *) # Darwin 1.3 on
8555         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8556           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8557         else
8558           case ${MACOSX_DEPLOYMENT_TARGET} in
8559             10.[012])
8560               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8561               ;;
8562             10.*)
8563               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8564               ;;
8565           esac
8566         fi
8567         ;;
8568      esac
8569      archive_cmds_need_lc=no
8570      hardcode_direct=no
8571      hardcode_automatic=yes
8572      hardcode_shlibpath_var=unsupported
8573      whole_archive_flag_spec=''
8574      link_all_deplibs=yes
8575    if test "$GCC" = yes ; then
8576    	output_verbose_link_cmd='echo'
8577        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8578        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8579        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8580        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8581    else
8582      case $cc_basename in
8583        xlc*)
8584         output_verbose_link_cmd='echo'
8585         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8586         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8587          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8588         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}'
8589          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}'
8590          ;;
8591       *)
8592         ld_shlibs=no
8593          ;;
8594      esac
8595    fi
8596      ;;
8597
8598    dgux*)
8599      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8600      hardcode_libdir_flag_spec='-L$libdir'
8601      hardcode_shlibpath_var=no
8602      ;;
8603
8604    freebsd1*)
8605      ld_shlibs=no
8606      ;;
8607
8608    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8609    # support.  Future versions do this automatically, but an explicit c++rt0.o
8610    # does not break anything, and helps significantly (at the cost of a little
8611    # extra space).
8612    freebsd2.2*)
8613      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8614      hardcode_libdir_flag_spec='-R$libdir'
8615      hardcode_direct=yes
8616      hardcode_shlibpath_var=no
8617      ;;
8618
8619    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8620    freebsd2*)
8621      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8622      hardcode_direct=yes
8623      hardcode_minus_L=yes
8624      hardcode_shlibpath_var=no
8625      ;;
8626
8627    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8628    freebsd* | dragonfly*)
8629      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8630      hardcode_libdir_flag_spec='-R$libdir'
8631      hardcode_direct=yes
8632      hardcode_shlibpath_var=no
8633      ;;
8634
8635    hpux9*)
8636      if test "$GCC" = yes; then
8637	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'
8638      else
8639	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'
8640      fi
8641      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8642      hardcode_libdir_separator=:
8643      hardcode_direct=yes
8644
8645      # hardcode_minus_L: Not really in the search PATH,
8646      # but as the default location of the library.
8647      hardcode_minus_L=yes
8648      export_dynamic_flag_spec='${wl}-E'
8649      ;;
8650
8651    hpux10*)
8652      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8653	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8654      else
8655	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8656      fi
8657      if test "$with_gnu_ld" = no; then
8658	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8659	hardcode_libdir_separator=:
8660
8661	hardcode_direct=yes
8662	export_dynamic_flag_spec='${wl}-E'
8663
8664	# hardcode_minus_L: Not really in the search PATH,
8665	# but as the default location of the library.
8666	hardcode_minus_L=yes
8667      fi
8668      ;;
8669
8670    hpux11*)
8671      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8672	case $host_cpu in
8673	hppa*64*)
8674	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8675	  ;;
8676	ia64*)
8677	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8678	  ;;
8679	*)
8680	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8681	  ;;
8682	esac
8683      else
8684	case $host_cpu in
8685	hppa*64*)
8686	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8687	  ;;
8688	ia64*)
8689	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8690	  ;;
8691	*)
8692	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8693	  ;;
8694	esac
8695      fi
8696      if test "$with_gnu_ld" = no; then
8697	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8698	hardcode_libdir_separator=:
8699
8700	case $host_cpu in
8701	hppa*64*|ia64*)
8702	  hardcode_libdir_flag_spec_ld='+b $libdir'
8703	  hardcode_direct=no
8704	  hardcode_shlibpath_var=no
8705	  ;;
8706	*)
8707	  hardcode_direct=yes
8708	  export_dynamic_flag_spec='${wl}-E'
8709
8710	  # hardcode_minus_L: Not really in the search PATH,
8711	  # but as the default location of the library.
8712	  hardcode_minus_L=yes
8713	  ;;
8714	esac
8715      fi
8716      ;;
8717
8718    irix5* | irix6* | nonstopux*)
8719      if test "$GCC" = yes; then
8720	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'
8721      else
8722	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'
8723	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8724      fi
8725      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8726      hardcode_libdir_separator=:
8727      link_all_deplibs=yes
8728      ;;
8729
8730    netbsd* | netbsdelf*-gnu)
8731      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8732	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8733      else
8734	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8735      fi
8736      hardcode_libdir_flag_spec='-R$libdir'
8737      hardcode_direct=yes
8738      hardcode_shlibpath_var=no
8739      ;;
8740
8741    newsos6)
8742      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8743      hardcode_direct=yes
8744      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8745      hardcode_libdir_separator=:
8746      hardcode_shlibpath_var=no
8747      ;;
8748
8749    openbsd*)
8750      if test -f /usr/libexec/ld.so; then
8751	hardcode_direct=yes
8752	hardcode_shlibpath_var=no
8753	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8754	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8755	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8756	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8757	  export_dynamic_flag_spec='${wl}-E'
8758	else
8759	  case $host_os in
8760	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8761	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8762	     hardcode_libdir_flag_spec='-R$libdir'
8763	     ;;
8764	   *)
8765	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8766	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8767	     ;;
8768	  esac
8769        fi
8770      else
8771	ld_shlibs=no
8772      fi
8773      ;;
8774
8775    os2*)
8776      hardcode_libdir_flag_spec='-L$libdir'
8777      hardcode_minus_L=yes
8778      allow_undefined_flag=unsupported
8779      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'
8780      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8781      ;;
8782
8783    osf3*)
8784      if test "$GCC" = yes; then
8785	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8786	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'
8787      else
8788	allow_undefined_flag=' -expect_unresolved \*'
8789	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'
8790      fi
8791      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792      hardcode_libdir_separator=:
8793      ;;
8794
8795    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8796      if test "$GCC" = yes; then
8797	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8798	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'
8799	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8800      else
8801	allow_undefined_flag=' -expect_unresolved \*'
8802	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'
8803	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8804	$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'
8805
8806	# Both c and cxx compiler support -rpath directly
8807	hardcode_libdir_flag_spec='-rpath $libdir'
8808      fi
8809      hardcode_libdir_separator=:
8810      ;;
8811
8812    solaris*)
8813      no_undefined_flag=' -z text'
8814      if test "$GCC" = yes; then
8815	wlarc='${wl}'
8816	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8817	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8818	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8819      else
8820	wlarc=''
8821	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8823  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8824      fi
8825      hardcode_libdir_flag_spec='-R$libdir'
8826      hardcode_shlibpath_var=no
8827      case $host_os in
8828      solaris2.[0-5] | solaris2.[0-5].*) ;;
8829      *)
8830	# The compiler driver will combine and reorder linker options,
8831	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8832	# but is careful enough not to reorder.
8833 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8834	if test "$GCC" = yes; then
8835	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8836	else
8837	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8838	fi
8839	;;
8840      esac
8841      link_all_deplibs=yes
8842      ;;
8843
8844    sunos4*)
8845      if test "x$host_vendor" = xsequent; then
8846	# Use $CC to link under sequent, because it throws in some extra .o
8847	# files that make .init and .fini sections work.
8848	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8849      else
8850	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8851      fi
8852      hardcode_libdir_flag_spec='-L$libdir'
8853      hardcode_direct=yes
8854      hardcode_minus_L=yes
8855      hardcode_shlibpath_var=no
8856      ;;
8857
8858    sysv4)
8859      case $host_vendor in
8860	sni)
8861	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8862	  hardcode_direct=yes # is this really true???
8863	;;
8864	siemens)
8865	  ## LD is ld it makes a PLAMLIB
8866	  ## CC just makes a GrossModule.
8867	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8868	  reload_cmds='$CC -r -o $output$reload_objs'
8869	  hardcode_direct=no
8870        ;;
8871	motorola)
8872	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8874	;;
8875      esac
8876      runpath_var='LD_RUN_PATH'
8877      hardcode_shlibpath_var=no
8878      ;;
8879
8880    sysv4.3*)
8881      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8882      hardcode_shlibpath_var=no
8883      export_dynamic_flag_spec='-Bexport'
8884      ;;
8885
8886    sysv4*MP*)
8887      if test -d /usr/nec; then
8888	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8889	hardcode_shlibpath_var=no
8890	runpath_var=LD_RUN_PATH
8891	hardcode_runpath_var=yes
8892	ld_shlibs=yes
8893      fi
8894      ;;
8895
8896    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8897      no_undefined_flag='${wl}-z,text'
8898      archive_cmds_need_lc=no
8899      hardcode_shlibpath_var=no
8900      runpath_var='LD_RUN_PATH'
8901
8902      if test "$GCC" = yes; then
8903	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8904	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8905      else
8906	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8907	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8908      fi
8909      ;;
8910
8911    sysv5* | sco3.2v5* | sco5v6*)
8912      # Note: We can NOT use -z defs as we might desire, because we do not
8913      # link with -lc, and that would cause any symbols used from libc to
8914      # always be unresolved, which means just about no library would
8915      # ever link correctly.  If we're not using GNU ld we use -z text
8916      # though, which does catch some bad symbols but isn't as heavy-handed
8917      # as -z defs.
8918      no_undefined_flag='${wl}-z,text'
8919      allow_undefined_flag='${wl}-z,nodefs'
8920      archive_cmds_need_lc=no
8921      hardcode_shlibpath_var=no
8922      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8923      hardcode_libdir_separator=':'
8924      link_all_deplibs=yes
8925      export_dynamic_flag_spec='${wl}-Bexport'
8926      runpath_var='LD_RUN_PATH'
8927
8928      if test "$GCC" = yes; then
8929	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8930	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8931      else
8932	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8933	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8934      fi
8935      ;;
8936
8937    uts4*)
8938      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8939      hardcode_libdir_flag_spec='-L$libdir'
8940      hardcode_shlibpath_var=no
8941      ;;
8942
8943    *)
8944      ld_shlibs=no
8945      ;;
8946    esac
8947  fi
8948
8949{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8950echo "${ECHO_T}$ld_shlibs" >&6; }
8951test "$ld_shlibs" = no && can_build_shared=no
8952
8953#
8954# Do we need to explicitly link libc?
8955#
8956case "x$archive_cmds_need_lc" in
8957x|xyes)
8958  # Assume -lc should be added
8959  archive_cmds_need_lc=yes
8960
8961  if test "$enable_shared" = yes && test "$GCC" = yes; then
8962    case $archive_cmds in
8963    *'~'*)
8964      # FIXME: we may have to deal with multi-command sequences.
8965      ;;
8966    '$CC '*)
8967      # Test whether the compiler implicitly links with -lc since on some
8968      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8969      # to ld, don't add -lc before -lgcc.
8970      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8971echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8972      $rm conftest*
8973      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8974
8975      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8976  (eval $ac_compile) 2>&5
8977  ac_status=$?
8978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979  (exit $ac_status); } 2>conftest.err; then
8980        soname=conftest
8981        lib=conftest
8982        libobjs=conftest.$ac_objext
8983        deplibs=
8984        wl=$lt_prog_compiler_wl
8985	pic_flag=$lt_prog_compiler_pic
8986        compiler_flags=-v
8987        linker_flags=-v
8988        verstring=
8989        output_objdir=.
8990        libname=conftest
8991        lt_save_allow_undefined_flag=$allow_undefined_flag
8992        allow_undefined_flag=
8993        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8994  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8995  ac_status=$?
8996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997  (exit $ac_status); }
8998        then
8999	  archive_cmds_need_lc=no
9000        else
9001	  archive_cmds_need_lc=yes
9002        fi
9003        allow_undefined_flag=$lt_save_allow_undefined_flag
9004      else
9005        cat conftest.err 1>&5
9006      fi
9007      $rm conftest*
9008      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9009echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9010      ;;
9011    esac
9012  fi
9013  ;;
9014esac
9015
9016{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9017echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9018library_names_spec=
9019libname_spec='lib$name'
9020soname_spec=
9021shrext_cmds=".so"
9022postinstall_cmds=
9023postuninstall_cmds=
9024finish_cmds=
9025finish_eval=
9026shlibpath_var=
9027shlibpath_overrides_runpath=unknown
9028version_type=none
9029dynamic_linker="$host_os ld.so"
9030sys_lib_dlsearch_path_spec="/lib /usr/lib"
9031
9032if test "$GCC" = yes; then
9033  case $host_os in
9034    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9035    *) lt_awk_arg="/^libraries:/" ;;
9036  esac
9037  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9038  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9039    # if the path contains ";" then we assume it to be the separator
9040    # otherwise default to the standard path separator (i.e. ":") - it is
9041    # assumed that no part of a normal pathname contains ";" but that should
9042    # okay in the real world where ";" in dirpaths is itself problematic.
9043    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9044  else
9045    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9046  fi
9047  # Ok, now we have the path, separated by spaces, we can step through it
9048  # and add multilib dir if necessary.
9049  lt_tmp_lt_search_path_spec=
9050  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9051  for lt_sys_path in $lt_search_path_spec; do
9052    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9053      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9054    else
9055      test -d "$lt_sys_path" && \
9056	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9057    fi
9058  done
9059  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9060BEGIN {RS=" "; FS="/|\n";} {
9061  lt_foo="";
9062  lt_count=0;
9063  for (lt_i = NF; lt_i > 0; lt_i--) {
9064    if ($lt_i != "" && $lt_i != ".") {
9065      if ($lt_i == "..") {
9066        lt_count++;
9067      } else {
9068        if (lt_count == 0) {
9069          lt_foo="/" $lt_i lt_foo;
9070        } else {
9071          lt_count--;
9072        }
9073      }
9074    }
9075  }
9076  if (lt_foo != "") { lt_freq[lt_foo]++; }
9077  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9078}'`
9079  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9080else
9081  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9082fi
9083need_lib_prefix=unknown
9084hardcode_into_libs=no
9085
9086# when you set need_version to no, make sure it does not cause -set_version
9087# flags to be left without arguments
9088need_version=unknown
9089
9090case $host_os in
9091aix3*)
9092  version_type=linux
9093  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9094  shlibpath_var=LIBPATH
9095
9096  # AIX 3 has no versioning support, so we append a major version to the name.
9097  soname_spec='${libname}${release}${shared_ext}$major'
9098  ;;
9099
9100aix[4-9]*)
9101  version_type=linux
9102  need_lib_prefix=no
9103  need_version=no
9104  hardcode_into_libs=yes
9105  if test "$host_cpu" = ia64; then
9106    # AIX 5 supports IA64
9107    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9108    shlibpath_var=LD_LIBRARY_PATH
9109  else
9110    # With GCC up to 2.95.x, collect2 would create an import file
9111    # for dependence libraries.  The import file would start with
9112    # the line `#! .'.  This would cause the generated library to
9113    # depend on `.', always an invalid library.  This was fixed in
9114    # development snapshots of GCC prior to 3.0.
9115    case $host_os in
9116      aix4 | aix4.[01] | aix4.[01].*)
9117      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9118	   echo ' yes '
9119	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9120	:
9121      else
9122	can_build_shared=no
9123      fi
9124      ;;
9125    esac
9126    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9127    # soname into executable. Probably we can add versioning support to
9128    # collect2, so additional links can be useful in future.
9129    if test "$aix_use_runtimelinking" = yes; then
9130      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9131      # instead of lib<name>.a to let people know that these are not
9132      # typical AIX shared libraries.
9133      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134    else
9135      # We preserve .a as extension for shared libraries through AIX4.2
9136      # and later when we are not doing run time linking.
9137      library_names_spec='${libname}${release}.a $libname.a'
9138      soname_spec='${libname}${release}${shared_ext}$major'
9139    fi
9140    shlibpath_var=LIBPATH
9141  fi
9142  ;;
9143
9144amigaos*)
9145  library_names_spec='$libname.ixlibrary $libname.a'
9146  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9147  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'
9148  ;;
9149
9150beos*)
9151  library_names_spec='${libname}${shared_ext}'
9152  dynamic_linker="$host_os ld.so"
9153  shlibpath_var=LIBRARY_PATH
9154  ;;
9155
9156bsdi[45]*)
9157  version_type=linux
9158  need_version=no
9159  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160  soname_spec='${libname}${release}${shared_ext}$major'
9161  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9162  shlibpath_var=LD_LIBRARY_PATH
9163  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9164  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9165  # the default ld.so.conf also contains /usr/contrib/lib and
9166  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9167  # libtool to hard-code these into programs
9168  ;;
9169
9170cygwin* | mingw* | pw32*)
9171  version_type=windows
9172  shrext_cmds=".dll"
9173  need_version=no
9174  need_lib_prefix=no
9175
9176  case $GCC,$host_os in
9177  yes,cygwin* | yes,mingw* | yes,pw32*)
9178    library_names_spec='$libname.dll.a'
9179    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9180    postinstall_cmds='base_file=`basename \${file}`~
9181      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9182      dldir=$destdir/`dirname \$dlpath`~
9183      test -d \$dldir || mkdir -p \$dldir~
9184      $install_prog $dir/$dlname \$dldir/$dlname~
9185      chmod a+x \$dldir/$dlname'
9186    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9187      dlpath=$dir/\$dldll~
9188       $rm \$dlpath'
9189    shlibpath_overrides_runpath=yes
9190
9191    case $host_os in
9192    cygwin*)
9193      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9194      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9195      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9196      ;;
9197    mingw*)
9198      # MinGW DLLs use traditional 'lib' prefix
9199      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9200      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9201      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9202        # It is most probably a Windows format PATH printed by
9203        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9204        # path with ; separators, and with drive letters. We can handle the
9205        # drive letters (cygwin fileutils understands them), so leave them,
9206        # especially as we might pass files found there to a mingw objdump,
9207        # which wouldn't understand a cygwinified path. Ahh.
9208        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9209      else
9210        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9211      fi
9212      ;;
9213    pw32*)
9214      # pw32 DLLs use 'pw' prefix rather than 'lib'
9215      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9216      ;;
9217    esac
9218    ;;
9219
9220  *)
9221    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9222    ;;
9223  esac
9224  dynamic_linker='Win32 ld.exe'
9225  # FIXME: first we should search . and the directory the executable is in
9226  shlibpath_var=PATH
9227  ;;
9228
9229darwin* | rhapsody*)
9230  dynamic_linker="$host_os dyld"
9231  version_type=darwin
9232  need_lib_prefix=no
9233  need_version=no
9234  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9235  soname_spec='${libname}${release}${major}$shared_ext'
9236  shlibpath_overrides_runpath=yes
9237  shlibpath_var=DYLD_LIBRARY_PATH
9238  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9239
9240  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9241  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9242  ;;
9243
9244dgux*)
9245  version_type=linux
9246  need_lib_prefix=no
9247  need_version=no
9248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9249  soname_spec='${libname}${release}${shared_ext}$major'
9250  shlibpath_var=LD_LIBRARY_PATH
9251  ;;
9252
9253freebsd1*)
9254  dynamic_linker=no
9255  ;;
9256
9257freebsd* | dragonfly*)
9258  # DragonFly does not have aout.  When/if they implement a new
9259  # versioning mechanism, adjust this.
9260  if test -x /usr/bin/objformat; then
9261    objformat=`/usr/bin/objformat`
9262  else
9263    case $host_os in
9264    freebsd[123]*) objformat=aout ;;
9265    *) objformat=elf ;;
9266    esac
9267  fi
9268  version_type=freebsd-$objformat
9269  case $version_type in
9270    freebsd-elf*)
9271      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9272      need_version=no
9273      need_lib_prefix=no
9274      ;;
9275    freebsd-*)
9276      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9277      need_version=yes
9278      ;;
9279  esac
9280  shlibpath_var=LD_LIBRARY_PATH
9281  case $host_os in
9282  freebsd2*)
9283    shlibpath_overrides_runpath=yes
9284    ;;
9285  freebsd3.[01]* | freebsdelf3.[01]*)
9286    shlibpath_overrides_runpath=yes
9287    hardcode_into_libs=yes
9288    ;;
9289  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9290  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9291    shlibpath_overrides_runpath=no
9292    hardcode_into_libs=yes
9293    ;;
9294  *) # from 4.6 on, and DragonFly
9295    shlibpath_overrides_runpath=yes
9296    hardcode_into_libs=yes
9297    ;;
9298  esac
9299  ;;
9300
9301gnu*)
9302  version_type=linux
9303  need_lib_prefix=no
9304  need_version=no
9305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9306  soname_spec='${libname}${release}${shared_ext}$major'
9307  shlibpath_var=LD_LIBRARY_PATH
9308  hardcode_into_libs=yes
9309  ;;
9310
9311hpux9* | hpux10* | hpux11*)
9312  # Give a soname corresponding to the major version so that dld.sl refuses to
9313  # link against other versions.
9314  version_type=sunos
9315  need_lib_prefix=no
9316  need_version=no
9317  case $host_cpu in
9318  ia64*)
9319    shrext_cmds='.so'
9320    hardcode_into_libs=yes
9321    dynamic_linker="$host_os dld.so"
9322    shlibpath_var=LD_LIBRARY_PATH
9323    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9324    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325    soname_spec='${libname}${release}${shared_ext}$major'
9326    if test "X$HPUX_IA64_MODE" = X32; then
9327      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9328    else
9329      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9330    fi
9331    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9332    ;;
9333   hppa*64*)
9334     shrext_cmds='.sl'
9335     hardcode_into_libs=yes
9336     dynamic_linker="$host_os dld.sl"
9337     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9338     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9340     soname_spec='${libname}${release}${shared_ext}$major'
9341     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9342     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9343     ;;
9344   *)
9345    shrext_cmds='.sl'
9346    dynamic_linker="$host_os dld.sl"
9347    shlibpath_var=SHLIB_PATH
9348    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9349    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350    soname_spec='${libname}${release}${shared_ext}$major'
9351    ;;
9352  esac
9353  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9354  postinstall_cmds='chmod 555 $lib'
9355  ;;
9356
9357interix[3-9]*)
9358  version_type=linux
9359  need_lib_prefix=no
9360  need_version=no
9361  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9362  soname_spec='${libname}${release}${shared_ext}$major'
9363  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9364  shlibpath_var=LD_LIBRARY_PATH
9365  shlibpath_overrides_runpath=no
9366  hardcode_into_libs=yes
9367  ;;
9368
9369irix5* | irix6* | nonstopux*)
9370  case $host_os in
9371    nonstopux*) version_type=nonstopux ;;
9372    *)
9373	if test "$lt_cv_prog_gnu_ld" = yes; then
9374		version_type=linux
9375	else
9376		version_type=irix
9377	fi ;;
9378  esac
9379  need_lib_prefix=no
9380  need_version=no
9381  soname_spec='${libname}${release}${shared_ext}$major'
9382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9383  case $host_os in
9384  irix5* | nonstopux*)
9385    libsuff= shlibsuff=
9386    ;;
9387  *)
9388    case $LD in # libtool.m4 will add one of these switches to LD
9389    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9390      libsuff= shlibsuff= libmagic=32-bit;;
9391    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9392      libsuff=32 shlibsuff=N32 libmagic=N32;;
9393    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9394      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9395    *) libsuff= shlibsuff= libmagic=never-match;;
9396    esac
9397    ;;
9398  esac
9399  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9400  shlibpath_overrides_runpath=no
9401  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9402  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9403  hardcode_into_libs=yes
9404  ;;
9405
9406# No shared lib support for Linux oldld, aout, or coff.
9407linux*oldld* | linux*aout* | linux*coff*)
9408  dynamic_linker=no
9409  ;;
9410
9411# This must be Linux ELF.
9412linux* | k*bsd*-gnu)
9413  version_type=linux
9414  need_lib_prefix=no
9415  need_version=no
9416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417  soname_spec='${libname}${release}${shared_ext}$major'
9418  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9419  shlibpath_var=LD_LIBRARY_PATH
9420  shlibpath_overrides_runpath=no
9421  # This implies no fast_install, which is unacceptable.
9422  # Some rework will be needed to allow for fast_install
9423  # before this can be enabled.
9424  hardcode_into_libs=yes
9425
9426  # Append ld.so.conf contents to the search path
9427  if test -f /etc/ld.so.conf; then
9428    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' ' '`
9429    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9430  fi
9431
9432  # We used to test for /lib/ld.so.1 and disable shared libraries on
9433  # powerpc, because MkLinux only supported shared libraries with the
9434  # GNU dynamic linker.  Since this was broken with cross compilers,
9435  # most powerpc-linux boxes support dynamic linking these days and
9436  # people can always --disable-shared, the test was removed, and we
9437  # assume the GNU/Linux dynamic linker is in use.
9438  dynamic_linker='GNU/Linux ld.so'
9439  ;;
9440
9441netbsdelf*-gnu)
9442  version_type=linux
9443  need_lib_prefix=no
9444  need_version=no
9445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9446  soname_spec='${libname}${release}${shared_ext}$major'
9447  shlibpath_var=LD_LIBRARY_PATH
9448  shlibpath_overrides_runpath=no
9449  hardcode_into_libs=yes
9450  dynamic_linker='NetBSD ld.elf_so'
9451  ;;
9452
9453netbsd*)
9454  version_type=sunos
9455  need_lib_prefix=no
9456  need_version=no
9457  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9458    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9459    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9460    dynamic_linker='NetBSD (a.out) ld.so'
9461  else
9462    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9463    soname_spec='${libname}${release}${shared_ext}$major'
9464    dynamic_linker='NetBSD ld.elf_so'
9465  fi
9466  shlibpath_var=LD_LIBRARY_PATH
9467  shlibpath_overrides_runpath=yes
9468  hardcode_into_libs=yes
9469  ;;
9470
9471newsos6)
9472  version_type=linux
9473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474  shlibpath_var=LD_LIBRARY_PATH
9475  shlibpath_overrides_runpath=yes
9476  ;;
9477
9478nto-qnx*)
9479  version_type=linux
9480  need_lib_prefix=no
9481  need_version=no
9482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483  soname_spec='${libname}${release}${shared_ext}$major'
9484  shlibpath_var=LD_LIBRARY_PATH
9485  shlibpath_overrides_runpath=yes
9486  ;;
9487
9488openbsd*)
9489  version_type=sunos
9490  sys_lib_dlsearch_path_spec="/usr/lib"
9491  need_lib_prefix=no
9492  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9493  case $host_os in
9494    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9495    *)                         need_version=no  ;;
9496  esac
9497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9498  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9499  shlibpath_var=LD_LIBRARY_PATH
9500  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9501    case $host_os in
9502      openbsd2.[89] | openbsd2.[89].*)
9503	shlibpath_overrides_runpath=no
9504	;;
9505      *)
9506	shlibpath_overrides_runpath=yes
9507	;;
9508      esac
9509  else
9510    shlibpath_overrides_runpath=yes
9511  fi
9512  ;;
9513
9514os2*)
9515  libname_spec='$name'
9516  shrext_cmds=".dll"
9517  need_lib_prefix=no
9518  library_names_spec='$libname${shared_ext} $libname.a'
9519  dynamic_linker='OS/2 ld.exe'
9520  shlibpath_var=LIBPATH
9521  ;;
9522
9523osf3* | osf4* | osf5*)
9524  version_type=osf
9525  need_lib_prefix=no
9526  need_version=no
9527  soname_spec='${libname}${release}${shared_ext}$major'
9528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529  shlibpath_var=LD_LIBRARY_PATH
9530  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9531  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9532  ;;
9533
9534rdos*)
9535  dynamic_linker=no
9536  ;;
9537
9538solaris*)
9539  version_type=linux
9540  need_lib_prefix=no
9541  need_version=no
9542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543  soname_spec='${libname}${release}${shared_ext}$major'
9544  shlibpath_var=LD_LIBRARY_PATH
9545  shlibpath_overrides_runpath=yes
9546  hardcode_into_libs=yes
9547  # ldd complains unless libraries are executable
9548  postinstall_cmds='chmod +x $lib'
9549  ;;
9550
9551sunos4*)
9552  version_type=sunos
9553  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9554  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9555  shlibpath_var=LD_LIBRARY_PATH
9556  shlibpath_overrides_runpath=yes
9557  if test "$with_gnu_ld" = yes; then
9558    need_lib_prefix=no
9559  fi
9560  need_version=yes
9561  ;;
9562
9563sysv4 | sysv4.3*)
9564  version_type=linux
9565  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9566  soname_spec='${libname}${release}${shared_ext}$major'
9567  shlibpath_var=LD_LIBRARY_PATH
9568  case $host_vendor in
9569    sni)
9570      shlibpath_overrides_runpath=no
9571      need_lib_prefix=no
9572      export_dynamic_flag_spec='${wl}-Blargedynsym'
9573      runpath_var=LD_RUN_PATH
9574      ;;
9575    siemens)
9576      need_lib_prefix=no
9577      ;;
9578    motorola)
9579      need_lib_prefix=no
9580      need_version=no
9581      shlibpath_overrides_runpath=no
9582      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9583      ;;
9584  esac
9585  ;;
9586
9587sysv4*MP*)
9588  if test -d /usr/nec ;then
9589    version_type=linux
9590    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9591    soname_spec='$libname${shared_ext}.$major'
9592    shlibpath_var=LD_LIBRARY_PATH
9593  fi
9594  ;;
9595
9596sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9597  version_type=freebsd-elf
9598  need_lib_prefix=no
9599  need_version=no
9600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9601  soname_spec='${libname}${release}${shared_ext}$major'
9602  shlibpath_var=LD_LIBRARY_PATH
9603  hardcode_into_libs=yes
9604  if test "$with_gnu_ld" = yes; then
9605    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9606    shlibpath_overrides_runpath=no
9607  else
9608    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9609    shlibpath_overrides_runpath=yes
9610    case $host_os in
9611      sco3.2v5*)
9612        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9613	;;
9614    esac
9615  fi
9616  sys_lib_dlsearch_path_spec='/usr/lib'
9617  ;;
9618
9619uts4*)
9620  version_type=linux
9621  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622  soname_spec='${libname}${release}${shared_ext}$major'
9623  shlibpath_var=LD_LIBRARY_PATH
9624  ;;
9625
9626*)
9627  dynamic_linker=no
9628  ;;
9629esac
9630{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9631echo "${ECHO_T}$dynamic_linker" >&6; }
9632test "$dynamic_linker" = no && can_build_shared=no
9633
9634if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9635  echo $ECHO_N "(cached) $ECHO_C" >&6
9636else
9637  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9638fi
9639
9640sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9641if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9642  echo $ECHO_N "(cached) $ECHO_C" >&6
9643else
9644  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9645fi
9646
9647sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9648
9649variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9650if test "$GCC" = yes; then
9651  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9652fi
9653
9654{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9655echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9656hardcode_action=
9657if test -n "$hardcode_libdir_flag_spec" || \
9658   test -n "$runpath_var" || \
9659   test "X$hardcode_automatic" = "Xyes" ; then
9660
9661  # We can hardcode non-existant directories.
9662  if test "$hardcode_direct" != no &&
9663     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9664     # have to relink, otherwise we might link with an installed library
9665     # when we should be linking with a yet-to-be-installed one
9666     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9667     test "$hardcode_minus_L" != no; then
9668    # Linking always hardcodes the temporary library directory.
9669    hardcode_action=relink
9670  else
9671    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9672    hardcode_action=immediate
9673  fi
9674else
9675  # We cannot hardcode anything, or else we can only hardcode existing
9676  # directories.
9677  hardcode_action=unsupported
9678fi
9679{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9680echo "${ECHO_T}$hardcode_action" >&6; }
9681
9682if test "$hardcode_action" = relink; then
9683  # Fast installation is not supported
9684  enable_fast_install=no
9685elif test "$shlibpath_overrides_runpath" = yes ||
9686     test "$enable_shared" = no; then
9687  # Fast installation is not necessary
9688  enable_fast_install=needless
9689fi
9690
9691striplib=
9692old_striplib=
9693{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9694echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9695if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9696  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9697  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9698  { echo "$as_me:$LINENO: result: yes" >&5
9699echo "${ECHO_T}yes" >&6; }
9700else
9701# FIXME - insert some real tests, host_os isn't really good enough
9702  case $host_os in
9703   darwin*)
9704       if test -n "$STRIP" ; then
9705         striplib="$STRIP -x"
9706         old_striplib="$STRIP -S"
9707         { echo "$as_me:$LINENO: result: yes" >&5
9708echo "${ECHO_T}yes" >&6; }
9709       else
9710  { echo "$as_me:$LINENO: result: no" >&5
9711echo "${ECHO_T}no" >&6; }
9712fi
9713       ;;
9714   *)
9715  { echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6; }
9717    ;;
9718  esac
9719fi
9720
9721if test "x$enable_dlopen" != xyes; then
9722  enable_dlopen=unknown
9723  enable_dlopen_self=unknown
9724  enable_dlopen_self_static=unknown
9725else
9726  lt_cv_dlopen=no
9727  lt_cv_dlopen_libs=
9728
9729  case $host_os in
9730  beos*)
9731    lt_cv_dlopen="load_add_on"
9732    lt_cv_dlopen_libs=
9733    lt_cv_dlopen_self=yes
9734    ;;
9735
9736  mingw* | pw32*)
9737    lt_cv_dlopen="LoadLibrary"
9738    lt_cv_dlopen_libs=
9739   ;;
9740
9741  cygwin*)
9742    lt_cv_dlopen="dlopen"
9743    lt_cv_dlopen_libs=
9744   ;;
9745
9746  darwin*)
9747  # if libdl is installed we need to link against it
9748    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9749echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9750if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9751  echo $ECHO_N "(cached) $ECHO_C" >&6
9752else
9753  ac_check_lib_save_LIBS=$LIBS
9754LIBS="-ldl  $LIBS"
9755cat >conftest.$ac_ext <<_ACEOF
9756/* confdefs.h.  */
9757_ACEOF
9758cat confdefs.h >>conftest.$ac_ext
9759cat >>conftest.$ac_ext <<_ACEOF
9760/* end confdefs.h.  */
9761
9762/* Override any GCC internal prototype to avoid an error.
9763   Use char because int might match the return type of a GCC
9764   builtin and then its argument prototype would still apply.  */
9765#ifdef __cplusplus
9766extern "C"
9767#endif
9768char dlopen ();
9769int
9770main ()
9771{
9772return dlopen ();
9773  ;
9774  return 0;
9775}
9776_ACEOF
9777rm -f conftest.$ac_objext conftest$ac_exeext
9778if { (ac_try="$ac_link"
9779case "(($ac_try" in
9780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9781  *) ac_try_echo=$ac_try;;
9782esac
9783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784  (eval "$ac_link") 2>conftest.er1
9785  ac_status=$?
9786  grep -v '^ *+' conftest.er1 >conftest.err
9787  rm -f conftest.er1
9788  cat conftest.err >&5
9789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790  (exit $ac_status); } && {
9791	 test -z "$ac_c_werror_flag" ||
9792	 test ! -s conftest.err
9793       } && test -s conftest$ac_exeext &&
9794       $as_test_x conftest$ac_exeext; then
9795  ac_cv_lib_dl_dlopen=yes
9796else
9797  echo "$as_me: failed program was:" >&5
9798sed 's/^/| /' conftest.$ac_ext >&5
9799
9800	ac_cv_lib_dl_dlopen=no
9801fi
9802
9803rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9804      conftest$ac_exeext conftest.$ac_ext
9805LIBS=$ac_check_lib_save_LIBS
9806fi
9807{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9808echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9809if test $ac_cv_lib_dl_dlopen = yes; then
9810  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9811else
9812
9813    lt_cv_dlopen="dyld"
9814    lt_cv_dlopen_libs=
9815    lt_cv_dlopen_self=yes
9816
9817fi
9818
9819   ;;
9820
9821  *)
9822    { echo "$as_me:$LINENO: checking for shl_load" >&5
9823echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9824if test "${ac_cv_func_shl_load+set}" = set; then
9825  echo $ECHO_N "(cached) $ECHO_C" >&6
9826else
9827  cat >conftest.$ac_ext <<_ACEOF
9828/* confdefs.h.  */
9829_ACEOF
9830cat confdefs.h >>conftest.$ac_ext
9831cat >>conftest.$ac_ext <<_ACEOF
9832/* end confdefs.h.  */
9833/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9834   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9835#define shl_load innocuous_shl_load
9836
9837/* System header to define __stub macros and hopefully few prototypes,
9838    which can conflict with char shl_load (); below.
9839    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9840    <limits.h> exists even on freestanding compilers.  */
9841
9842#ifdef __STDC__
9843# include <limits.h>
9844#else
9845# include <assert.h>
9846#endif
9847
9848#undef shl_load
9849
9850/* Override any GCC internal prototype to avoid an error.
9851   Use char because int might match the return type of a GCC
9852   builtin and then its argument prototype would still apply.  */
9853#ifdef __cplusplus
9854extern "C"
9855#endif
9856char shl_load ();
9857/* The GNU C library defines this for functions which it implements
9858    to always fail with ENOSYS.  Some functions are actually named
9859    something starting with __ and the normal name is an alias.  */
9860#if defined __stub_shl_load || defined __stub___shl_load
9861choke me
9862#endif
9863
9864int
9865main ()
9866{
9867return shl_load ();
9868  ;
9869  return 0;
9870}
9871_ACEOF
9872rm -f conftest.$ac_objext conftest$ac_exeext
9873if { (ac_try="$ac_link"
9874case "(($ac_try" in
9875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876  *) ac_try_echo=$ac_try;;
9877esac
9878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879  (eval "$ac_link") 2>conftest.er1
9880  ac_status=$?
9881  grep -v '^ *+' conftest.er1 >conftest.err
9882  rm -f conftest.er1
9883  cat conftest.err >&5
9884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885  (exit $ac_status); } && {
9886	 test -z "$ac_c_werror_flag" ||
9887	 test ! -s conftest.err
9888       } && test -s conftest$ac_exeext &&
9889       $as_test_x conftest$ac_exeext; then
9890  ac_cv_func_shl_load=yes
9891else
9892  echo "$as_me: failed program was:" >&5
9893sed 's/^/| /' conftest.$ac_ext >&5
9894
9895	ac_cv_func_shl_load=no
9896fi
9897
9898rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9899      conftest$ac_exeext conftest.$ac_ext
9900fi
9901{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9902echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9903if test $ac_cv_func_shl_load = yes; then
9904  lt_cv_dlopen="shl_load"
9905else
9906  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9907echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9908if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9909  echo $ECHO_N "(cached) $ECHO_C" >&6
9910else
9911  ac_check_lib_save_LIBS=$LIBS
9912LIBS="-ldld  $LIBS"
9913cat >conftest.$ac_ext <<_ACEOF
9914/* confdefs.h.  */
9915_ACEOF
9916cat confdefs.h >>conftest.$ac_ext
9917cat >>conftest.$ac_ext <<_ACEOF
9918/* end confdefs.h.  */
9919
9920/* Override any GCC internal prototype to avoid an error.
9921   Use char because int might match the return type of a GCC
9922   builtin and then its argument prototype would still apply.  */
9923#ifdef __cplusplus
9924extern "C"
9925#endif
9926char shl_load ();
9927int
9928main ()
9929{
9930return shl_load ();
9931  ;
9932  return 0;
9933}
9934_ACEOF
9935rm -f conftest.$ac_objext conftest$ac_exeext
9936if { (ac_try="$ac_link"
9937case "(($ac_try" in
9938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939  *) ac_try_echo=$ac_try;;
9940esac
9941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942  (eval "$ac_link") 2>conftest.er1
9943  ac_status=$?
9944  grep -v '^ *+' conftest.er1 >conftest.err
9945  rm -f conftest.er1
9946  cat conftest.err >&5
9947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948  (exit $ac_status); } && {
9949	 test -z "$ac_c_werror_flag" ||
9950	 test ! -s conftest.err
9951       } && test -s conftest$ac_exeext &&
9952       $as_test_x conftest$ac_exeext; then
9953  ac_cv_lib_dld_shl_load=yes
9954else
9955  echo "$as_me: failed program was:" >&5
9956sed 's/^/| /' conftest.$ac_ext >&5
9957
9958	ac_cv_lib_dld_shl_load=no
9959fi
9960
9961rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9962      conftest$ac_exeext conftest.$ac_ext
9963LIBS=$ac_check_lib_save_LIBS
9964fi
9965{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9966echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9967if test $ac_cv_lib_dld_shl_load = yes; then
9968  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9969else
9970  { echo "$as_me:$LINENO: checking for dlopen" >&5
9971echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9972if test "${ac_cv_func_dlopen+set}" = set; then
9973  echo $ECHO_N "(cached) $ECHO_C" >&6
9974else
9975  cat >conftest.$ac_ext <<_ACEOF
9976/* confdefs.h.  */
9977_ACEOF
9978cat confdefs.h >>conftest.$ac_ext
9979cat >>conftest.$ac_ext <<_ACEOF
9980/* end confdefs.h.  */
9981/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9982   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9983#define dlopen innocuous_dlopen
9984
9985/* System header to define __stub macros and hopefully few prototypes,
9986    which can conflict with char dlopen (); below.
9987    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9988    <limits.h> exists even on freestanding compilers.  */
9989
9990#ifdef __STDC__
9991# include <limits.h>
9992#else
9993# include <assert.h>
9994#endif
9995
9996#undef dlopen
9997
9998/* Override any GCC internal prototype to avoid an error.
9999   Use char because int might match the return type of a GCC
10000   builtin and then its argument prototype would still apply.  */
10001#ifdef __cplusplus
10002extern "C"
10003#endif
10004char dlopen ();
10005/* The GNU C library defines this for functions which it implements
10006    to always fail with ENOSYS.  Some functions are actually named
10007    something starting with __ and the normal name is an alias.  */
10008#if defined __stub_dlopen || defined __stub___dlopen
10009choke me
10010#endif
10011
10012int
10013main ()
10014{
10015return dlopen ();
10016  ;
10017  return 0;
10018}
10019_ACEOF
10020rm -f conftest.$ac_objext conftest$ac_exeext
10021if { (ac_try="$ac_link"
10022case "(($ac_try" in
10023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10024  *) ac_try_echo=$ac_try;;
10025esac
10026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027  (eval "$ac_link") 2>conftest.er1
10028  ac_status=$?
10029  grep -v '^ *+' conftest.er1 >conftest.err
10030  rm -f conftest.er1
10031  cat conftest.err >&5
10032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033  (exit $ac_status); } && {
10034	 test -z "$ac_c_werror_flag" ||
10035	 test ! -s conftest.err
10036       } && test -s conftest$ac_exeext &&
10037       $as_test_x conftest$ac_exeext; then
10038  ac_cv_func_dlopen=yes
10039else
10040  echo "$as_me: failed program was:" >&5
10041sed 's/^/| /' conftest.$ac_ext >&5
10042
10043	ac_cv_func_dlopen=no
10044fi
10045
10046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10047      conftest$ac_exeext conftest.$ac_ext
10048fi
10049{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10050echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10051if test $ac_cv_func_dlopen = yes; then
10052  lt_cv_dlopen="dlopen"
10053else
10054  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10055echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10056if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10057  echo $ECHO_N "(cached) $ECHO_C" >&6
10058else
10059  ac_check_lib_save_LIBS=$LIBS
10060LIBS="-ldl  $LIBS"
10061cat >conftest.$ac_ext <<_ACEOF
10062/* confdefs.h.  */
10063_ACEOF
10064cat confdefs.h >>conftest.$ac_ext
10065cat >>conftest.$ac_ext <<_ACEOF
10066/* end confdefs.h.  */
10067
10068/* Override any GCC internal prototype to avoid an error.
10069   Use char because int might match the return type of a GCC
10070   builtin and then its argument prototype would still apply.  */
10071#ifdef __cplusplus
10072extern "C"
10073#endif
10074char dlopen ();
10075int
10076main ()
10077{
10078return dlopen ();
10079  ;
10080  return 0;
10081}
10082_ACEOF
10083rm -f conftest.$ac_objext conftest$ac_exeext
10084if { (ac_try="$ac_link"
10085case "(($ac_try" in
10086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087  *) ac_try_echo=$ac_try;;
10088esac
10089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090  (eval "$ac_link") 2>conftest.er1
10091  ac_status=$?
10092  grep -v '^ *+' conftest.er1 >conftest.err
10093  rm -f conftest.er1
10094  cat conftest.err >&5
10095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096  (exit $ac_status); } && {
10097	 test -z "$ac_c_werror_flag" ||
10098	 test ! -s conftest.err
10099       } && test -s conftest$ac_exeext &&
10100       $as_test_x conftest$ac_exeext; then
10101  ac_cv_lib_dl_dlopen=yes
10102else
10103  echo "$as_me: failed program was:" >&5
10104sed 's/^/| /' conftest.$ac_ext >&5
10105
10106	ac_cv_lib_dl_dlopen=no
10107fi
10108
10109rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10110      conftest$ac_exeext conftest.$ac_ext
10111LIBS=$ac_check_lib_save_LIBS
10112fi
10113{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10114echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10115if test $ac_cv_lib_dl_dlopen = yes; then
10116  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10117else
10118  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10119echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10120if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10121  echo $ECHO_N "(cached) $ECHO_C" >&6
10122else
10123  ac_check_lib_save_LIBS=$LIBS
10124LIBS="-lsvld  $LIBS"
10125cat >conftest.$ac_ext <<_ACEOF
10126/* confdefs.h.  */
10127_ACEOF
10128cat confdefs.h >>conftest.$ac_ext
10129cat >>conftest.$ac_ext <<_ACEOF
10130/* end confdefs.h.  */
10131
10132/* Override any GCC internal prototype to avoid an error.
10133   Use char because int might match the return type of a GCC
10134   builtin and then its argument prototype would still apply.  */
10135#ifdef __cplusplus
10136extern "C"
10137#endif
10138char dlopen ();
10139int
10140main ()
10141{
10142return dlopen ();
10143  ;
10144  return 0;
10145}
10146_ACEOF
10147rm -f conftest.$ac_objext conftest$ac_exeext
10148if { (ac_try="$ac_link"
10149case "(($ac_try" in
10150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151  *) ac_try_echo=$ac_try;;
10152esac
10153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154  (eval "$ac_link") 2>conftest.er1
10155  ac_status=$?
10156  grep -v '^ *+' conftest.er1 >conftest.err
10157  rm -f conftest.er1
10158  cat conftest.err >&5
10159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160  (exit $ac_status); } && {
10161	 test -z "$ac_c_werror_flag" ||
10162	 test ! -s conftest.err
10163       } && test -s conftest$ac_exeext &&
10164       $as_test_x conftest$ac_exeext; then
10165  ac_cv_lib_svld_dlopen=yes
10166else
10167  echo "$as_me: failed program was:" >&5
10168sed 's/^/| /' conftest.$ac_ext >&5
10169
10170	ac_cv_lib_svld_dlopen=no
10171fi
10172
10173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10174      conftest$ac_exeext conftest.$ac_ext
10175LIBS=$ac_check_lib_save_LIBS
10176fi
10177{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10178echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10179if test $ac_cv_lib_svld_dlopen = yes; then
10180  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10181else
10182  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10183echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10184if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10185  echo $ECHO_N "(cached) $ECHO_C" >&6
10186else
10187  ac_check_lib_save_LIBS=$LIBS
10188LIBS="-ldld  $LIBS"
10189cat >conftest.$ac_ext <<_ACEOF
10190/* confdefs.h.  */
10191_ACEOF
10192cat confdefs.h >>conftest.$ac_ext
10193cat >>conftest.$ac_ext <<_ACEOF
10194/* end confdefs.h.  */
10195
10196/* Override any GCC internal prototype to avoid an error.
10197   Use char because int might match the return type of a GCC
10198   builtin and then its argument prototype would still apply.  */
10199#ifdef __cplusplus
10200extern "C"
10201#endif
10202char dld_link ();
10203int
10204main ()
10205{
10206return dld_link ();
10207  ;
10208  return 0;
10209}
10210_ACEOF
10211rm -f conftest.$ac_objext conftest$ac_exeext
10212if { (ac_try="$ac_link"
10213case "(($ac_try" in
10214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215  *) ac_try_echo=$ac_try;;
10216esac
10217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218  (eval "$ac_link") 2>conftest.er1
10219  ac_status=$?
10220  grep -v '^ *+' conftest.er1 >conftest.err
10221  rm -f conftest.er1
10222  cat conftest.err >&5
10223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224  (exit $ac_status); } && {
10225	 test -z "$ac_c_werror_flag" ||
10226	 test ! -s conftest.err
10227       } && test -s conftest$ac_exeext &&
10228       $as_test_x conftest$ac_exeext; then
10229  ac_cv_lib_dld_dld_link=yes
10230else
10231  echo "$as_me: failed program was:" >&5
10232sed 's/^/| /' conftest.$ac_ext >&5
10233
10234	ac_cv_lib_dld_dld_link=no
10235fi
10236
10237rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10238      conftest$ac_exeext conftest.$ac_ext
10239LIBS=$ac_check_lib_save_LIBS
10240fi
10241{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10242echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10243if test $ac_cv_lib_dld_dld_link = yes; then
10244  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10245fi
10246
10247
10248fi
10249
10250
10251fi
10252
10253
10254fi
10255
10256
10257fi
10258
10259
10260fi
10261
10262    ;;
10263  esac
10264
10265  if test "x$lt_cv_dlopen" != xno; then
10266    enable_dlopen=yes
10267  else
10268    enable_dlopen=no
10269  fi
10270
10271  case $lt_cv_dlopen in
10272  dlopen)
10273    save_CPPFLAGS="$CPPFLAGS"
10274    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10275
10276    save_LDFLAGS="$LDFLAGS"
10277    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10278
10279    save_LIBS="$LIBS"
10280    LIBS="$lt_cv_dlopen_libs $LIBS"
10281
10282    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10283echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10284if test "${lt_cv_dlopen_self+set}" = set; then
10285  echo $ECHO_N "(cached) $ECHO_C" >&6
10286else
10287  	  if test "$cross_compiling" = yes; then :
10288  lt_cv_dlopen_self=cross
10289else
10290  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10291  lt_status=$lt_dlunknown
10292  cat > conftest.$ac_ext <<EOF
10293#line 10293 "configure"
10294#include "confdefs.h"
10295
10296#if HAVE_DLFCN_H
10297#include <dlfcn.h>
10298#endif
10299
10300#include <stdio.h>
10301
10302#ifdef RTLD_GLOBAL
10303#  define LT_DLGLOBAL		RTLD_GLOBAL
10304#else
10305#  ifdef DL_GLOBAL
10306#    define LT_DLGLOBAL		DL_GLOBAL
10307#  else
10308#    define LT_DLGLOBAL		0
10309#  endif
10310#endif
10311
10312/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10313   find out it does not work in some platform. */
10314#ifndef LT_DLLAZY_OR_NOW
10315#  ifdef RTLD_LAZY
10316#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10317#  else
10318#    ifdef DL_LAZY
10319#      define LT_DLLAZY_OR_NOW		DL_LAZY
10320#    else
10321#      ifdef RTLD_NOW
10322#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10323#      else
10324#        ifdef DL_NOW
10325#          define LT_DLLAZY_OR_NOW	DL_NOW
10326#        else
10327#          define LT_DLLAZY_OR_NOW	0
10328#        endif
10329#      endif
10330#    endif
10331#  endif
10332#endif
10333
10334#ifdef __cplusplus
10335extern "C" void exit (int);
10336#endif
10337
10338void fnord() { int i=42;}
10339int main ()
10340{
10341  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10342  int status = $lt_dlunknown;
10343
10344  if (self)
10345    {
10346      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10347      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10348      /* dlclose (self); */
10349    }
10350  else
10351    puts (dlerror ());
10352
10353    exit (status);
10354}
10355EOF
10356  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10357  (eval $ac_link) 2>&5
10358  ac_status=$?
10359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10361    (./conftest; exit; ) >&5 2>/dev/null
10362    lt_status=$?
10363    case x$lt_status in
10364      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10365      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10366      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10367    esac
10368  else :
10369    # compilation failed
10370    lt_cv_dlopen_self=no
10371  fi
10372fi
10373rm -fr conftest*
10374
10375
10376fi
10377{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10378echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10379
10380    if test "x$lt_cv_dlopen_self" = xyes; then
10381      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10382      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10383echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10384if test "${lt_cv_dlopen_self_static+set}" = set; then
10385  echo $ECHO_N "(cached) $ECHO_C" >&6
10386else
10387  	  if test "$cross_compiling" = yes; then :
10388  lt_cv_dlopen_self_static=cross
10389else
10390  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10391  lt_status=$lt_dlunknown
10392  cat > conftest.$ac_ext <<EOF
10393#line 10393 "configure"
10394#include "confdefs.h"
10395
10396#if HAVE_DLFCN_H
10397#include <dlfcn.h>
10398#endif
10399
10400#include <stdio.h>
10401
10402#ifdef RTLD_GLOBAL
10403#  define LT_DLGLOBAL		RTLD_GLOBAL
10404#else
10405#  ifdef DL_GLOBAL
10406#    define LT_DLGLOBAL		DL_GLOBAL
10407#  else
10408#    define LT_DLGLOBAL		0
10409#  endif
10410#endif
10411
10412/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10413   find out it does not work in some platform. */
10414#ifndef LT_DLLAZY_OR_NOW
10415#  ifdef RTLD_LAZY
10416#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10417#  else
10418#    ifdef DL_LAZY
10419#      define LT_DLLAZY_OR_NOW		DL_LAZY
10420#    else
10421#      ifdef RTLD_NOW
10422#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10423#      else
10424#        ifdef DL_NOW
10425#          define LT_DLLAZY_OR_NOW	DL_NOW
10426#        else
10427#          define LT_DLLAZY_OR_NOW	0
10428#        endif
10429#      endif
10430#    endif
10431#  endif
10432#endif
10433
10434#ifdef __cplusplus
10435extern "C" void exit (int);
10436#endif
10437
10438void fnord() { int i=42;}
10439int main ()
10440{
10441  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10442  int status = $lt_dlunknown;
10443
10444  if (self)
10445    {
10446      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10447      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10448      /* dlclose (self); */
10449    }
10450  else
10451    puts (dlerror ());
10452
10453    exit (status);
10454}
10455EOF
10456  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10457  (eval $ac_link) 2>&5
10458  ac_status=$?
10459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10461    (./conftest; exit; ) >&5 2>/dev/null
10462    lt_status=$?
10463    case x$lt_status in
10464      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10465      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10466      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10467    esac
10468  else :
10469    # compilation failed
10470    lt_cv_dlopen_self_static=no
10471  fi
10472fi
10473rm -fr conftest*
10474
10475
10476fi
10477{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10478echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10479    fi
10480
10481    CPPFLAGS="$save_CPPFLAGS"
10482    LDFLAGS="$save_LDFLAGS"
10483    LIBS="$save_LIBS"
10484    ;;
10485  esac
10486
10487  case $lt_cv_dlopen_self in
10488  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10489  *) enable_dlopen_self=unknown ;;
10490  esac
10491
10492  case $lt_cv_dlopen_self_static in
10493  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10494  *) enable_dlopen_self_static=unknown ;;
10495  esac
10496fi
10497
10498
10499# Report which library types will actually be built
10500{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10501echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10502{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10503echo "${ECHO_T}$can_build_shared" >&6; }
10504
10505{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10506echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10507test "$can_build_shared" = "no" && enable_shared=no
10508
10509# On AIX, shared libraries and static libraries use the same namespace, and
10510# are all built from PIC.
10511case $host_os in
10512aix3*)
10513  test "$enable_shared" = yes && enable_static=no
10514  if test -n "$RANLIB"; then
10515    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10516    postinstall_cmds='$RANLIB $lib'
10517  fi
10518  ;;
10519
10520aix[4-9]*)
10521  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10522    test "$enable_shared" = yes && enable_static=no
10523  fi
10524    ;;
10525esac
10526{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10527echo "${ECHO_T}$enable_shared" >&6; }
10528
10529{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10530echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10531# Make sure either enable_shared or enable_static is yes.
10532test "$enable_shared" = yes || enable_static=yes
10533{ echo "$as_me:$LINENO: result: $enable_static" >&5
10534echo "${ECHO_T}$enable_static" >&6; }
10535
10536# The else clause should only fire when bootstrapping the
10537# libtool distribution, otherwise you forgot to ship ltmain.sh
10538# with your package, and you will get complaints that there are
10539# no rules to generate ltmain.sh.
10540if test -f "$ltmain"; then
10541  # See if we are running on zsh, and set the options which allow our commands through
10542  # without removal of \ escapes.
10543  if test -n "${ZSH_VERSION+set}" ; then
10544    setopt NO_GLOB_SUBST
10545  fi
10546  # Now quote all the things that may contain metacharacters while being
10547  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10548  # variables and quote the copies for generation of the libtool script.
10549  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10550    SED SHELL STRIP \
10551    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10552    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10553    deplibs_check_method reload_flag reload_cmds need_locks \
10554    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10555    lt_cv_sys_global_symbol_to_c_name_address \
10556    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10557    old_postinstall_cmds old_postuninstall_cmds \
10558    compiler \
10559    CC \
10560    LD \
10561    lt_prog_compiler_wl \
10562    lt_prog_compiler_pic \
10563    lt_prog_compiler_static \
10564    lt_prog_compiler_no_builtin_flag \
10565    export_dynamic_flag_spec \
10566    thread_safe_flag_spec \
10567    whole_archive_flag_spec \
10568    enable_shared_with_static_runtimes \
10569    old_archive_cmds \
10570    old_archive_from_new_cmds \
10571    predep_objects \
10572    postdep_objects \
10573    predeps \
10574    postdeps \
10575    compiler_lib_search_path \
10576    compiler_lib_search_dirs \
10577    archive_cmds \
10578    archive_expsym_cmds \
10579    postinstall_cmds \
10580    postuninstall_cmds \
10581    old_archive_from_expsyms_cmds \
10582    allow_undefined_flag \
10583    no_undefined_flag \
10584    export_symbols_cmds \
10585    hardcode_libdir_flag_spec \
10586    hardcode_libdir_flag_spec_ld \
10587    hardcode_libdir_separator \
10588    hardcode_automatic \
10589    module_cmds \
10590    module_expsym_cmds \
10591    lt_cv_prog_compiler_c_o \
10592    fix_srcfile_path \
10593    exclude_expsyms \
10594    include_expsyms; do
10595
10596    case $var in
10597    old_archive_cmds | \
10598    old_archive_from_new_cmds | \
10599    archive_cmds | \
10600    archive_expsym_cmds | \
10601    module_cmds | \
10602    module_expsym_cmds | \
10603    old_archive_from_expsyms_cmds | \
10604    export_symbols_cmds | \
10605    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10606    postinstall_cmds | postuninstall_cmds | \
10607    old_postinstall_cmds | old_postuninstall_cmds | \
10608    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10609      # Double-quote double-evaled strings.
10610      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10611      ;;
10612    *)
10613      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10614      ;;
10615    esac
10616  done
10617
10618  case $lt_echo in
10619  *'\$0 --fallback-echo"')
10620    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10621    ;;
10622  esac
10623
10624cfgfile="${ofile}T"
10625  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10626  $rm -f "$cfgfile"
10627  { echo "$as_me:$LINENO: creating $ofile" >&5
10628echo "$as_me: creating $ofile" >&6;}
10629
10630  cat <<__EOF__ >> "$cfgfile"
10631#! $SHELL
10632
10633# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10634# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10635# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10636#
10637# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10638# Free Software Foundation, Inc.
10639#
10640# This file is part of GNU Libtool:
10641# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10642#
10643# This program is free software; you can redistribute it and/or modify
10644# it under the terms of the GNU General Public License as published by
10645# the Free Software Foundation; either version 2 of the License, or
10646# (at your option) any later version.
10647#
10648# This program is distributed in the hope that it will be useful, but
10649# WITHOUT ANY WARRANTY; without even the implied warranty of
10650# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10651# General Public License for more details.
10652#
10653# You should have received a copy of the GNU General Public License
10654# along with this program; if not, write to the Free Software
10655# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10656#
10657# As a special exception to the GNU General Public License, if you
10658# distribute this file as part of a program that contains a
10659# configuration script generated by Autoconf, you may include it under
10660# the same distribution terms that you use for the rest of that program.
10661
10662# A sed program that does not truncate output.
10663SED=$lt_SED
10664
10665# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10666Xsed="$SED -e 1s/^X//"
10667
10668# The HP-UX ksh and POSIX shell print the target directory to stdout
10669# if CDPATH is set.
10670(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10671
10672# The names of the tagged configurations supported by this script.
10673available_tags=
10674
10675# ### BEGIN LIBTOOL CONFIG
10676
10677# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10678
10679# Shell to use when invoking shell scripts.
10680SHELL=$lt_SHELL
10681
10682# Whether or not to build shared libraries.
10683build_libtool_libs=$enable_shared
10684
10685# Whether or not to build static libraries.
10686build_old_libs=$enable_static
10687
10688# Whether or not to add -lc for building shared libraries.
10689build_libtool_need_lc=$archive_cmds_need_lc
10690
10691# Whether or not to disallow shared libs when runtime libs are static
10692allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10693
10694# Whether or not to optimize for fast installation.
10695fast_install=$enable_fast_install
10696
10697# The host system.
10698host_alias=$host_alias
10699host=$host
10700host_os=$host_os
10701
10702# The build system.
10703build_alias=$build_alias
10704build=$build
10705build_os=$build_os
10706
10707# An echo program that does not interpret backslashes.
10708echo=$lt_echo
10709
10710# The archiver.
10711AR=$lt_AR
10712AR_FLAGS=$lt_AR_FLAGS
10713
10714# A C compiler.
10715LTCC=$lt_LTCC
10716
10717# LTCC compiler flags.
10718LTCFLAGS=$lt_LTCFLAGS
10719
10720# A language-specific compiler.
10721CC=$lt_compiler
10722
10723# Is the compiler the GNU C compiler?
10724with_gcc=$GCC
10725
10726# An ERE matcher.
10727EGREP=$lt_EGREP
10728
10729# The linker used to build libraries.
10730LD=$lt_LD
10731
10732# Whether we need hard or soft links.
10733LN_S=$lt_LN_S
10734
10735# A BSD-compatible nm program.
10736NM=$lt_NM
10737
10738# A symbol stripping program
10739STRIP=$lt_STRIP
10740
10741# Used to examine libraries when file_magic_cmd begins "file"
10742MAGIC_CMD=$MAGIC_CMD
10743
10744# Used on cygwin: DLL creation program.
10745DLLTOOL="$DLLTOOL"
10746
10747# Used on cygwin: object dumper.
10748OBJDUMP="$OBJDUMP"
10749
10750# Used on cygwin: assembler.
10751AS="$AS"
10752
10753# The name of the directory that contains temporary libtool files.
10754objdir=$objdir
10755
10756# How to create reloadable object files.
10757reload_flag=$lt_reload_flag
10758reload_cmds=$lt_reload_cmds
10759
10760# How to pass a linker flag through the compiler.
10761wl=$lt_lt_prog_compiler_wl
10762
10763# Object file suffix (normally "o").
10764objext="$ac_objext"
10765
10766# Old archive suffix (normally "a").
10767libext="$libext"
10768
10769# Shared library suffix (normally ".so").
10770shrext_cmds='$shrext_cmds'
10771
10772# Executable file suffix (normally "").
10773exeext="$exeext"
10774
10775# Additional compiler flags for building library objects.
10776pic_flag=$lt_lt_prog_compiler_pic
10777pic_mode=$pic_mode
10778
10779# What is the maximum length of a command?
10780max_cmd_len=$lt_cv_sys_max_cmd_len
10781
10782# Does compiler simultaneously support -c and -o options?
10783compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10784
10785# Must we lock files when doing compilation?
10786need_locks=$lt_need_locks
10787
10788# Do we need the lib prefix for modules?
10789need_lib_prefix=$need_lib_prefix
10790
10791# Do we need a version for libraries?
10792need_version=$need_version
10793
10794# Whether dlopen is supported.
10795dlopen_support=$enable_dlopen
10796
10797# Whether dlopen of programs is supported.
10798dlopen_self=$enable_dlopen_self
10799
10800# Whether dlopen of statically linked programs is supported.
10801dlopen_self_static=$enable_dlopen_self_static
10802
10803# Compiler flag to prevent dynamic linking.
10804link_static_flag=$lt_lt_prog_compiler_static
10805
10806# Compiler flag to turn off builtin functions.
10807no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10808
10809# Compiler flag to allow reflexive dlopens.
10810export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10811
10812# Compiler flag to generate shared objects directly from archives.
10813whole_archive_flag_spec=$lt_whole_archive_flag_spec
10814
10815# Compiler flag to generate thread-safe objects.
10816thread_safe_flag_spec=$lt_thread_safe_flag_spec
10817
10818# Library versioning type.
10819version_type=$version_type
10820
10821# Format of library name prefix.
10822libname_spec=$lt_libname_spec
10823
10824# List of archive names.  First name is the real one, the rest are links.
10825# The last name is the one that the linker finds with -lNAME.
10826library_names_spec=$lt_library_names_spec
10827
10828# The coded name of the library, if different from the real name.
10829soname_spec=$lt_soname_spec
10830
10831# Commands used to build and install an old-style archive.
10832RANLIB=$lt_RANLIB
10833old_archive_cmds=$lt_old_archive_cmds
10834old_postinstall_cmds=$lt_old_postinstall_cmds
10835old_postuninstall_cmds=$lt_old_postuninstall_cmds
10836
10837# Create an old-style archive from a shared archive.
10838old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10839
10840# Create a temporary old-style archive to link instead of a shared archive.
10841old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10842
10843# Commands used to build and install a shared archive.
10844archive_cmds=$lt_archive_cmds
10845archive_expsym_cmds=$lt_archive_expsym_cmds
10846postinstall_cmds=$lt_postinstall_cmds
10847postuninstall_cmds=$lt_postuninstall_cmds
10848
10849# Commands used to build a loadable module (assumed same as above if empty)
10850module_cmds=$lt_module_cmds
10851module_expsym_cmds=$lt_module_expsym_cmds
10852
10853# Commands to strip libraries.
10854old_striplib=$lt_old_striplib
10855striplib=$lt_striplib
10856
10857# Dependencies to place before the objects being linked to create a
10858# shared library.
10859predep_objects=$lt_predep_objects
10860
10861# Dependencies to place after the objects being linked to create a
10862# shared library.
10863postdep_objects=$lt_postdep_objects
10864
10865# Dependencies to place before the objects being linked to create a
10866# shared library.
10867predeps=$lt_predeps
10868
10869# Dependencies to place after the objects being linked to create a
10870# shared library.
10871postdeps=$lt_postdeps
10872
10873# The directories searched by this compiler when creating a shared
10874# library
10875compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10876
10877# The library search path used internally by the compiler when linking
10878# a shared library.
10879compiler_lib_search_path=$lt_compiler_lib_search_path
10880
10881# Method to check whether dependent libraries are shared objects.
10882deplibs_check_method=$lt_deplibs_check_method
10883
10884# Command to use when deplibs_check_method == file_magic.
10885file_magic_cmd=$lt_file_magic_cmd
10886
10887# Flag that allows shared libraries with undefined symbols to be built.
10888allow_undefined_flag=$lt_allow_undefined_flag
10889
10890# Flag that forces no undefined symbols.
10891no_undefined_flag=$lt_no_undefined_flag
10892
10893# Commands used to finish a libtool library installation in a directory.
10894finish_cmds=$lt_finish_cmds
10895
10896# Same as above, but a single script fragment to be evaled but not shown.
10897finish_eval=$lt_finish_eval
10898
10899# Take the output of nm and produce a listing of raw symbols and C names.
10900global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10901
10902# Transform the output of nm in a proper C declaration
10903global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10904
10905# Transform the output of nm in a C name address pair
10906global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10907
10908# This is the shared library runtime path variable.
10909runpath_var=$runpath_var
10910
10911# This is the shared library path variable.
10912shlibpath_var=$shlibpath_var
10913
10914# Is shlibpath searched before the hard-coded library search path?
10915shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10916
10917# How to hardcode a shared library path into an executable.
10918hardcode_action=$hardcode_action
10919
10920# Whether we should hardcode library paths into libraries.
10921hardcode_into_libs=$hardcode_into_libs
10922
10923# Flag to hardcode \$libdir into a binary during linking.
10924# This must work even if \$libdir does not exist.
10925hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10926
10927# If ld is used when linking, flag to hardcode \$libdir into
10928# a binary during linking. This must work even if \$libdir does
10929# not exist.
10930hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10931
10932# Whether we need a single -rpath flag with a separated argument.
10933hardcode_libdir_separator=$lt_hardcode_libdir_separator
10934
10935# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10936# resulting binary.
10937hardcode_direct=$hardcode_direct
10938
10939# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10940# resulting binary.
10941hardcode_minus_L=$hardcode_minus_L
10942
10943# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10944# the resulting binary.
10945hardcode_shlibpath_var=$hardcode_shlibpath_var
10946
10947# Set to yes if building a shared library automatically hardcodes DIR into the library
10948# and all subsequent libraries and executables linked against it.
10949hardcode_automatic=$hardcode_automatic
10950
10951# Variables whose values should be saved in libtool wrapper scripts and
10952# restored at relink time.
10953variables_saved_for_relink="$variables_saved_for_relink"
10954
10955# Whether libtool must link a program against all its dependency libraries.
10956link_all_deplibs=$link_all_deplibs
10957
10958# Compile-time system search path for libraries
10959sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10960
10961# Run-time system search path for libraries
10962sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10963
10964# Fix the shell variable \$srcfile for the compiler.
10965fix_srcfile_path=$lt_fix_srcfile_path
10966
10967# Set to yes if exported symbols are required.
10968always_export_symbols=$always_export_symbols
10969
10970# The commands to list exported symbols.
10971export_symbols_cmds=$lt_export_symbols_cmds
10972
10973# The commands to extract the exported symbol list from a shared archive.
10974extract_expsyms_cmds=$lt_extract_expsyms_cmds
10975
10976# Symbols that should not be listed in the preloaded symbols.
10977exclude_expsyms=$lt_exclude_expsyms
10978
10979# Symbols that must always be exported.
10980include_expsyms=$lt_include_expsyms
10981
10982# ### END LIBTOOL CONFIG
10983
10984__EOF__
10985
10986
10987  case $host_os in
10988  aix3*)
10989    cat <<\EOF >> "$cfgfile"
10990
10991# AIX sometimes has problems with the GCC collect2 program.  For some
10992# reason, if we set the COLLECT_NAMES environment variable, the problems
10993# vanish in a puff of smoke.
10994if test "X${COLLECT_NAMES+set}" != Xset; then
10995  COLLECT_NAMES=
10996  export COLLECT_NAMES
10997fi
10998EOF
10999    ;;
11000  esac
11001
11002  # We use sed instead of cat because bash on DJGPP gets confused if
11003  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11004  # text mode, it properly converts lines to CR/LF.  This bash problem
11005  # is reportedly fixed, but why not run on old versions too?
11006  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11007
11008  mv -f "$cfgfile" "$ofile" || \
11009    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11010  chmod +x "$ofile"
11011
11012else
11013  # If there is no Makefile yet, we rely on a make rule to execute
11014  # `config.status --recheck' to rerun these tests and create the
11015  # libtool script then.
11016  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11017  if test -f "$ltmain_in"; then
11018    test -f Makefile && make "$ltmain"
11019  fi
11020fi
11021
11022
11023ac_ext=c
11024ac_cpp='$CPP $CPPFLAGS'
11025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11027ac_compiler_gnu=$ac_cv_c_compiler_gnu
11028
11029CC="$lt_save_CC"
11030
11031
11032# Check whether --with-tags was given.
11033if test "${with_tags+set}" = set; then
11034  withval=$with_tags; tagnames="$withval"
11035fi
11036
11037
11038if test -f "$ltmain" && test -n "$tagnames"; then
11039  if test ! -f "${ofile}"; then
11040    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11041echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11042  fi
11043
11044  if test -z "$LTCC"; then
11045    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11046    if test -z "$LTCC"; then
11047      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11048echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11049    else
11050      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11051echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11052    fi
11053  fi
11054  if test -z "$LTCFLAGS"; then
11055    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11056  fi
11057
11058  # Extract list of available tagged configurations in $ofile.
11059  # Note that this assumes the entire list is on one line.
11060  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11061
11062  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11063  for tagname in $tagnames; do
11064    IFS="$lt_save_ifs"
11065    # Check whether tagname contains only valid characters
11066    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11067    "") ;;
11068    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11069echo "$as_me: error: invalid tag name: $tagname" >&2;}
11070   { (exit 1); exit 1; }; }
11071	;;
11072    esac
11073
11074    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11075    then
11076      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11077echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11078   { (exit 1); exit 1; }; }
11079    fi
11080
11081    # Update the list of available tags.
11082    if test -n "$tagname"; then
11083      echo appending configuration tag \"$tagname\" to $ofile
11084
11085      case $tagname in
11086      CXX)
11087	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11088	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11089	    (test "X$CXX" != "Xg++"))) ; then
11090	  ac_ext=cpp
11091ac_cpp='$CXXCPP $CPPFLAGS'
11092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11095
11096
11097
11098
11099archive_cmds_need_lc_CXX=no
11100allow_undefined_flag_CXX=
11101always_export_symbols_CXX=no
11102archive_expsym_cmds_CXX=
11103export_dynamic_flag_spec_CXX=
11104hardcode_direct_CXX=no
11105hardcode_libdir_flag_spec_CXX=
11106hardcode_libdir_flag_spec_ld_CXX=
11107hardcode_libdir_separator_CXX=
11108hardcode_minus_L_CXX=no
11109hardcode_shlibpath_var_CXX=unsupported
11110hardcode_automatic_CXX=no
11111module_cmds_CXX=
11112module_expsym_cmds_CXX=
11113link_all_deplibs_CXX=unknown
11114old_archive_cmds_CXX=$old_archive_cmds
11115no_undefined_flag_CXX=
11116whole_archive_flag_spec_CXX=
11117enable_shared_with_static_runtimes_CXX=no
11118
11119# Dependencies to place before and after the object being linked:
11120predep_objects_CXX=
11121postdep_objects_CXX=
11122predeps_CXX=
11123postdeps_CXX=
11124compiler_lib_search_path_CXX=
11125compiler_lib_search_dirs_CXX=
11126
11127# Source file extension for C++ test sources.
11128ac_ext=cpp
11129
11130# Object file extension for compiled C++ test sources.
11131objext=o
11132objext_CXX=$objext
11133
11134# Code to be used in simple compile tests
11135lt_simple_compile_test_code="int some_variable = 0;"
11136
11137# Code to be used in simple link tests
11138lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11139
11140# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11141
11142# If no C compiler was specified, use CC.
11143LTCC=${LTCC-"$CC"}
11144
11145# If no C compiler flags were specified, use CFLAGS.
11146LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11147
11148# Allow CC to be a program name with arguments.
11149compiler=$CC
11150
11151
11152# save warnings/boilerplate of simple test code
11153ac_outfile=conftest.$ac_objext
11154echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11155eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11156_lt_compiler_boilerplate=`cat conftest.err`
11157$rm conftest*
11158
11159ac_outfile=conftest.$ac_objext
11160echo "$lt_simple_link_test_code" >conftest.$ac_ext
11161eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11162_lt_linker_boilerplate=`cat conftest.err`
11163$rm -r conftest*
11164
11165
11166# Allow CC to be a program name with arguments.
11167lt_save_CC=$CC
11168lt_save_LD=$LD
11169lt_save_GCC=$GCC
11170GCC=$GXX
11171lt_save_with_gnu_ld=$with_gnu_ld
11172lt_save_path_LD=$lt_cv_path_LD
11173if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11174  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11175else
11176  $as_unset lt_cv_prog_gnu_ld
11177fi
11178if test -n "${lt_cv_path_LDCXX+set}"; then
11179  lt_cv_path_LD=$lt_cv_path_LDCXX
11180else
11181  $as_unset lt_cv_path_LD
11182fi
11183test -z "${LDCXX+set}" || LD=$LDCXX
11184CC=${CXX-"c++"}
11185compiler=$CC
11186compiler_CXX=$CC
11187for cc_temp in $compiler""; do
11188  case $cc_temp in
11189    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11190    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11191    \-*) ;;
11192    *) break;;
11193  esac
11194done
11195cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11196
11197
11198# We don't want -fno-exception wen compiling C++ code, so set the
11199# no_builtin_flag separately
11200if test "$GXX" = yes; then
11201  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11202else
11203  lt_prog_compiler_no_builtin_flag_CXX=
11204fi
11205
11206if test "$GXX" = yes; then
11207  # Set up default GNU C++ configuration
11208
11209
11210# Check whether --with-gnu-ld was given.
11211if test "${with_gnu_ld+set}" = set; then
11212  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11213else
11214  with_gnu_ld=no
11215fi
11216
11217ac_prog=ld
11218if test "$GCC" = yes; then
11219  # Check if gcc -print-prog-name=ld gives a path.
11220  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11221echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11222  case $host in
11223  *-*-mingw*)
11224    # gcc leaves a trailing carriage return which upsets mingw
11225    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11226  *)
11227    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11228  esac
11229  case $ac_prog in
11230    # Accept absolute paths.
11231    [\\/]* | ?:[\\/]*)
11232      re_direlt='/[^/][^/]*/\.\./'
11233      # Canonicalize the pathname of ld
11234      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11235      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11236	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11237      done
11238      test -z "$LD" && LD="$ac_prog"
11239      ;;
11240  "")
11241    # If it fails, then pretend we aren't using GCC.
11242    ac_prog=ld
11243    ;;
11244  *)
11245    # If it is relative, then search for the first ld in PATH.
11246    with_gnu_ld=unknown
11247    ;;
11248  esac
11249elif test "$with_gnu_ld" = yes; then
11250  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11251echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11252else
11253  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11254echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11255fi
11256if test "${lt_cv_path_LD+set}" = set; then
11257  echo $ECHO_N "(cached) $ECHO_C" >&6
11258else
11259  if test -z "$LD"; then
11260  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11261  for ac_dir in $PATH; do
11262    IFS="$lt_save_ifs"
11263    test -z "$ac_dir" && ac_dir=.
11264    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11265      lt_cv_path_LD="$ac_dir/$ac_prog"
11266      # Check to see if the program is GNU ld.  I'd rather use --version,
11267      # but apparently some variants of GNU ld only accept -v.
11268      # Break only if it was the GNU/non-GNU ld that we prefer.
11269      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11270      *GNU* | *'with BFD'*)
11271	test "$with_gnu_ld" != no && break
11272	;;
11273      *)
11274	test "$with_gnu_ld" != yes && break
11275	;;
11276      esac
11277    fi
11278  done
11279  IFS="$lt_save_ifs"
11280else
11281  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11282fi
11283fi
11284
11285LD="$lt_cv_path_LD"
11286if test -n "$LD"; then
11287  { echo "$as_me:$LINENO: result: $LD" >&5
11288echo "${ECHO_T}$LD" >&6; }
11289else
11290  { echo "$as_me:$LINENO: result: no" >&5
11291echo "${ECHO_T}no" >&6; }
11292fi
11293test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11294echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11295   { (exit 1); exit 1; }; }
11296{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11297echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11298if test "${lt_cv_prog_gnu_ld+set}" = set; then
11299  echo $ECHO_N "(cached) $ECHO_C" >&6
11300else
11301  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11302case `$LD -v 2>&1 </dev/null` in
11303*GNU* | *'with BFD'*)
11304  lt_cv_prog_gnu_ld=yes
11305  ;;
11306*)
11307  lt_cv_prog_gnu_ld=no
11308  ;;
11309esac
11310fi
11311{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11312echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11313with_gnu_ld=$lt_cv_prog_gnu_ld
11314
11315
11316
11317  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11318  # archiving commands below assume that GNU ld is being used.
11319  if test "$with_gnu_ld" = yes; then
11320    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11321    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'
11322
11323    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11324    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11325
11326    # If archive_cmds runs LD, not CC, wlarc should be empty
11327    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11328    #     investigate it a little bit more. (MM)
11329    wlarc='${wl}'
11330
11331    # ancient GNU ld didn't support --whole-archive et. al.
11332    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11333	grep 'no-whole-archive' > /dev/null; then
11334      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11335    else
11336      whole_archive_flag_spec_CXX=
11337    fi
11338  else
11339    with_gnu_ld=no
11340    wlarc=
11341
11342    # A generic and very simple default shared library creation
11343    # command for GNU C++ for the case where it uses the native
11344    # linker, instead of GNU ld.  If possible, this setting should
11345    # overridden to take advantage of the native linker features on
11346    # the platform it is being used on.
11347    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11348  fi
11349
11350  # Commands to make compiler produce verbose output that lists
11351  # what "hidden" libraries, object files and flags are used when
11352  # linking a shared library.
11353  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11354
11355else
11356  GXX=no
11357  with_gnu_ld=no
11358  wlarc=
11359fi
11360
11361# PORTME: fill in a description of your system's C++ link characteristics
11362{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11363echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11364ld_shlibs_CXX=yes
11365case $host_os in
11366  aix3*)
11367    # FIXME: insert proper C++ library support
11368    ld_shlibs_CXX=no
11369    ;;
11370  aix[4-9]*)
11371    if test "$host_cpu" = ia64; then
11372      # On IA64, the linker does run time linking by default, so we don't
11373      # have to do anything special.
11374      aix_use_runtimelinking=no
11375      exp_sym_flag='-Bexport'
11376      no_entry_flag=""
11377    else
11378      aix_use_runtimelinking=no
11379
11380      # Test if we are trying to use run time linking or normal
11381      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11382      # need to do runtime linking.
11383      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11384	for ld_flag in $LDFLAGS; do
11385	  case $ld_flag in
11386	  *-brtl*)
11387	    aix_use_runtimelinking=yes
11388	    break
11389	    ;;
11390	  esac
11391	done
11392	;;
11393      esac
11394
11395      exp_sym_flag='-bexport'
11396      no_entry_flag='-bnoentry'
11397    fi
11398
11399    # When large executables or shared objects are built, AIX ld can
11400    # have problems creating the table of contents.  If linking a library
11401    # or program results in "error TOC overflow" add -mminimal-toc to
11402    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11403    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11404
11405    archive_cmds_CXX=''
11406    hardcode_direct_CXX=yes
11407    hardcode_libdir_separator_CXX=':'
11408    link_all_deplibs_CXX=yes
11409
11410    if test "$GXX" = yes; then
11411      case $host_os in aix4.[012]|aix4.[012].*)
11412      # We only want to do this on AIX 4.2 and lower, the check
11413      # below for broken collect2 doesn't work under 4.3+
11414	collect2name=`${CC} -print-prog-name=collect2`
11415	if test -f "$collect2name" && \
11416	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11417	then
11418	  # We have reworked collect2
11419	  :
11420	else
11421	  # We have old collect2
11422	  hardcode_direct_CXX=unsupported
11423	  # It fails to find uninstalled libraries when the uninstalled
11424	  # path is not listed in the libpath.  Setting hardcode_minus_L
11425	  # to unsupported forces relinking
11426	  hardcode_minus_L_CXX=yes
11427	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11428	  hardcode_libdir_separator_CXX=
11429	fi
11430	;;
11431      esac
11432      shared_flag='-shared'
11433      if test "$aix_use_runtimelinking" = yes; then
11434	shared_flag="$shared_flag "'${wl}-G'
11435      fi
11436    else
11437      # not using gcc
11438      if test "$host_cpu" = ia64; then
11439	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11440	# chokes on -Wl,-G. The following line is correct:
11441	shared_flag='-G'
11442      else
11443	if test "$aix_use_runtimelinking" = yes; then
11444	  shared_flag='${wl}-G'
11445	else
11446	  shared_flag='${wl}-bM:SRE'
11447	fi
11448      fi
11449    fi
11450
11451    # It seems that -bexpall does not export symbols beginning with
11452    # underscore (_), so it is better to generate a list of symbols to export.
11453    always_export_symbols_CXX=yes
11454    if test "$aix_use_runtimelinking" = yes; then
11455      # Warning - without using the other runtime loading flags (-brtl),
11456      # -berok will link without error, but may produce a broken library.
11457      allow_undefined_flag_CXX='-berok'
11458      # Determine the default libpath from the value encoded in an empty executable.
11459      cat >conftest.$ac_ext <<_ACEOF
11460/* confdefs.h.  */
11461_ACEOF
11462cat confdefs.h >>conftest.$ac_ext
11463cat >>conftest.$ac_ext <<_ACEOF
11464/* end confdefs.h.  */
11465
11466int
11467main ()
11468{
11469
11470  ;
11471  return 0;
11472}
11473_ACEOF
11474rm -f conftest.$ac_objext conftest$ac_exeext
11475if { (ac_try="$ac_link"
11476case "(($ac_try" in
11477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478  *) ac_try_echo=$ac_try;;
11479esac
11480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481  (eval "$ac_link") 2>conftest.er1
11482  ac_status=$?
11483  grep -v '^ *+' conftest.er1 >conftest.err
11484  rm -f conftest.er1
11485  cat conftest.err >&5
11486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487  (exit $ac_status); } && {
11488	 test -z "$ac_cxx_werror_flag" ||
11489	 test ! -s conftest.err
11490       } && test -s conftest$ac_exeext &&
11491       $as_test_x conftest$ac_exeext; then
11492
11493lt_aix_libpath_sed='
11494    /Import File Strings/,/^$/ {
11495	/^0/ {
11496	    s/^0  *\(.*\)$/\1/
11497	    p
11498	}
11499    }'
11500aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11501# Check for a 64-bit object if we didn't find anything.
11502if test -z "$aix_libpath"; then
11503  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11504fi
11505else
11506  echo "$as_me: failed program was:" >&5
11507sed 's/^/| /' conftest.$ac_ext >&5
11508
11509
11510fi
11511
11512rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11513      conftest$ac_exeext conftest.$ac_ext
11514if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11515
11516      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11517
11518      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"
11519     else
11520      if test "$host_cpu" = ia64; then
11521	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11522	allow_undefined_flag_CXX="-z nodefs"
11523	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"
11524      else
11525	# Determine the default libpath from the value encoded in an empty executable.
11526	cat >conftest.$ac_ext <<_ACEOF
11527/* confdefs.h.  */
11528_ACEOF
11529cat confdefs.h >>conftest.$ac_ext
11530cat >>conftest.$ac_ext <<_ACEOF
11531/* end confdefs.h.  */
11532
11533int
11534main ()
11535{
11536
11537  ;
11538  return 0;
11539}
11540_ACEOF
11541rm -f conftest.$ac_objext conftest$ac_exeext
11542if { (ac_try="$ac_link"
11543case "(($ac_try" in
11544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545  *) ac_try_echo=$ac_try;;
11546esac
11547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548  (eval "$ac_link") 2>conftest.er1
11549  ac_status=$?
11550  grep -v '^ *+' conftest.er1 >conftest.err
11551  rm -f conftest.er1
11552  cat conftest.err >&5
11553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554  (exit $ac_status); } && {
11555	 test -z "$ac_cxx_werror_flag" ||
11556	 test ! -s conftest.err
11557       } && test -s conftest$ac_exeext &&
11558       $as_test_x conftest$ac_exeext; then
11559
11560lt_aix_libpath_sed='
11561    /Import File Strings/,/^$/ {
11562	/^0/ {
11563	    s/^0  *\(.*\)$/\1/
11564	    p
11565	}
11566    }'
11567aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11568# Check for a 64-bit object if we didn't find anything.
11569if test -z "$aix_libpath"; then
11570  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11571fi
11572else
11573  echo "$as_me: failed program was:" >&5
11574sed 's/^/| /' conftest.$ac_ext >&5
11575
11576
11577fi
11578
11579rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11580      conftest$ac_exeext conftest.$ac_ext
11581if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11582
11583	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11584	# Warning - without using the other run time loading flags,
11585	# -berok will link without error, but may produce a broken library.
11586	no_undefined_flag_CXX=' ${wl}-bernotok'
11587	allow_undefined_flag_CXX=' ${wl}-berok'
11588	# Exported symbols can be pulled into shared objects from archives
11589	whole_archive_flag_spec_CXX='$convenience'
11590	archive_cmds_need_lc_CXX=yes
11591	# This is similar to how AIX traditionally builds its shared libraries.
11592	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'
11593      fi
11594    fi
11595    ;;
11596
11597  beos*)
11598    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11599      allow_undefined_flag_CXX=unsupported
11600      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11601      # support --undefined.  This deserves some investigation.  FIXME
11602      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11603    else
11604      ld_shlibs_CXX=no
11605    fi
11606    ;;
11607
11608  chorus*)
11609    case $cc_basename in
11610      *)
11611	# FIXME: insert proper C++ library support
11612	ld_shlibs_CXX=no
11613	;;
11614    esac
11615    ;;
11616
11617  cygwin* | mingw* | pw32*)
11618    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11619    # as there is no search path for DLLs.
11620    hardcode_libdir_flag_spec_CXX='-L$libdir'
11621    allow_undefined_flag_CXX=unsupported
11622    always_export_symbols_CXX=no
11623    enable_shared_with_static_runtimes_CXX=yes
11624
11625    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11626      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'
11627      # If the export-symbols file already is a .def file (1st line
11628      # is EXPORTS), use it as is; otherwise, prepend...
11629      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11630	cp $export_symbols $output_objdir/$soname.def;
11631      else
11632	echo EXPORTS > $output_objdir/$soname.def;
11633	cat $export_symbols >> $output_objdir/$soname.def;
11634      fi~
11635      $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'
11636    else
11637      ld_shlibs_CXX=no
11638    fi
11639  ;;
11640      darwin* | rhapsody*)
11641      archive_cmds_need_lc_CXX=no
11642      hardcode_direct_CXX=no
11643      hardcode_automatic_CXX=yes
11644      hardcode_shlibpath_var_CXX=unsupported
11645      whole_archive_flag_spec_CXX=''
11646      link_all_deplibs_CXX=yes
11647      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11648      if test "$GXX" = yes ; then
11649      output_verbose_link_cmd='echo'
11650      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11651      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11652      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11653      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11654      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11655        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11656        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11657      fi
11658      else
11659      case $cc_basename in
11660        xlc*)
11661         output_verbose_link_cmd='echo'
11662          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'
11663          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11664          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11665          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}'
11666          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}'
11667          ;;
11668       *)
11669         ld_shlibs_CXX=no
11670          ;;
11671      esac
11672      fi
11673        ;;
11674
11675  dgux*)
11676    case $cc_basename in
11677      ec++*)
11678	# FIXME: insert proper C++ library support
11679	ld_shlibs_CXX=no
11680	;;
11681      ghcx*)
11682	# Green Hills C++ Compiler
11683	# FIXME: insert proper C++ library support
11684	ld_shlibs_CXX=no
11685	;;
11686      *)
11687	# FIXME: insert proper C++ library support
11688	ld_shlibs_CXX=no
11689	;;
11690    esac
11691    ;;
11692  freebsd[12]*)
11693    # C++ shared libraries reported to be fairly broken before switch to ELF
11694    ld_shlibs_CXX=no
11695    ;;
11696  freebsd-elf*)
11697    archive_cmds_need_lc_CXX=no
11698    ;;
11699  freebsd* | dragonfly*)
11700    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11701    # conventions
11702    ld_shlibs_CXX=yes
11703    ;;
11704  gnu*)
11705    ;;
11706  hpux9*)
11707    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11708    hardcode_libdir_separator_CXX=:
11709    export_dynamic_flag_spec_CXX='${wl}-E'
11710    hardcode_direct_CXX=yes
11711    hardcode_minus_L_CXX=yes # Not in the search PATH,
11712				# but as the default
11713				# location of the library.
11714
11715    case $cc_basename in
11716    CC*)
11717      # FIXME: insert proper C++ library support
11718      ld_shlibs_CXX=no
11719      ;;
11720    aCC*)
11721      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'
11722      # Commands to make compiler produce verbose output that lists
11723      # what "hidden" libraries, object files and flags are used when
11724      # linking a shared library.
11725      #
11726      # There doesn't appear to be a way to prevent this compiler from
11727      # explicitly linking system object files so we need to strip them
11728      # from the output so that they don't get included in the library
11729      # dependencies.
11730      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'
11731      ;;
11732    *)
11733      if test "$GXX" = yes; then
11734        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'
11735      else
11736        # FIXME: insert proper C++ library support
11737        ld_shlibs_CXX=no
11738      fi
11739      ;;
11740    esac
11741    ;;
11742  hpux10*|hpux11*)
11743    if test $with_gnu_ld = no; then
11744      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11745      hardcode_libdir_separator_CXX=:
11746
11747      case $host_cpu in
11748      hppa*64*|ia64*) ;;
11749      *)
11750	export_dynamic_flag_spec_CXX='${wl}-E'
11751        ;;
11752      esac
11753    fi
11754    case $host_cpu in
11755    hppa*64*|ia64*)
11756      hardcode_direct_CXX=no
11757      hardcode_shlibpath_var_CXX=no
11758      ;;
11759    *)
11760      hardcode_direct_CXX=yes
11761      hardcode_minus_L_CXX=yes # Not in the search PATH,
11762					      # but as the default
11763					      # location of the library.
11764      ;;
11765    esac
11766
11767    case $cc_basename in
11768      CC*)
11769	# FIXME: insert proper C++ library support
11770	ld_shlibs_CXX=no
11771	;;
11772      aCC*)
11773	case $host_cpu in
11774	hppa*64*)
11775	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11776	  ;;
11777	ia64*)
11778	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11779	  ;;
11780	*)
11781	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11782	  ;;
11783	esac
11784	# Commands to make compiler produce verbose output that lists
11785	# what "hidden" libraries, object files and flags are used when
11786	# linking a shared library.
11787	#
11788	# There doesn't appear to be a way to prevent this compiler from
11789	# explicitly linking system object files so we need to strip them
11790	# from the output so that they don't get included in the library
11791	# dependencies.
11792	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'
11793	;;
11794      *)
11795	if test "$GXX" = yes; then
11796	  if test $with_gnu_ld = no; then
11797	    case $host_cpu in
11798	    hppa*64*)
11799	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11800	      ;;
11801	    ia64*)
11802	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11803	      ;;
11804	    *)
11805	      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'
11806	      ;;
11807	    esac
11808	  fi
11809	else
11810	  # FIXME: insert proper C++ library support
11811	  ld_shlibs_CXX=no
11812	fi
11813	;;
11814    esac
11815    ;;
11816  interix[3-9]*)
11817    hardcode_direct_CXX=no
11818    hardcode_shlibpath_var_CXX=no
11819    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11820    export_dynamic_flag_spec_CXX='${wl}-E'
11821    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11822    # Instead, shared libraries are loaded at an image base (0x10000000 by
11823    # default) and relocated if they conflict, which is a slow very memory
11824    # consuming and fragmenting process.  To avoid this, we pick a random,
11825    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11826    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11827    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'
11828    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'
11829    ;;
11830  irix5* | irix6*)
11831    case $cc_basename in
11832      CC*)
11833	# SGI C++
11834	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'
11835
11836	# Archives containing C++ object files must be created using
11837	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11838	# necessary to make sure instantiated templates are included
11839	# in the archive.
11840	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11841	;;
11842      *)
11843	if test "$GXX" = yes; then
11844	  if test "$with_gnu_ld" = no; then
11845	    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'
11846	  else
11847	    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'
11848	  fi
11849	fi
11850	link_all_deplibs_CXX=yes
11851	;;
11852    esac
11853    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11854    hardcode_libdir_separator_CXX=:
11855    ;;
11856  linux* | k*bsd*-gnu)
11857    case $cc_basename in
11858      KCC*)
11859	# Kuck and Associates, Inc. (KAI) C++ Compiler
11860
11861	# KCC will only create a shared library if the output file
11862	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11863	# to its proper name (with version) after linking.
11864	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'
11865	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'
11866	# Commands to make compiler produce verbose output that lists
11867	# what "hidden" libraries, object files and flags are used when
11868	# linking a shared library.
11869	#
11870	# There doesn't appear to be a way to prevent this compiler from
11871	# explicitly linking system object files so we need to strip them
11872	# from the output so that they don't get included in the library
11873	# dependencies.
11874	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'
11875
11876	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11877	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11878
11879	# Archives containing C++ object files must be created using
11880	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11881	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11882	;;
11883      icpc*)
11884	# Intel C++
11885	with_gnu_ld=yes
11886	# version 8.0 and above of icpc choke on multiply defined symbols
11887	# if we add $predep_objects and $postdep_objects, however 7.1 and
11888	# earlier do not add the objects themselves.
11889	case `$CC -V 2>&1` in
11890	*"Version 7."*)
11891  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11892  	  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'
11893	  ;;
11894	*)  # Version 8.0 or newer
11895	  tmp_idyn=
11896	  case $host_cpu in
11897	    ia64*) tmp_idyn=' -i_dynamic';;
11898	  esac
11899  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11900	  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'
11901	  ;;
11902	esac
11903	archive_cmds_need_lc_CXX=no
11904	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11905	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11906	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11907	;;
11908      pgCC* | pgcpp*)
11909        # Portland Group C++ compiler
11910	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11911  	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'
11912
11913	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11914	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11915	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'
11916        ;;
11917      cxx*)
11918	# Compaq C++
11919	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11920	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'
11921
11922	runpath_var=LD_RUN_PATH
11923	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11924	hardcode_libdir_separator_CXX=:
11925
11926	# Commands to make compiler produce verbose output that lists
11927	# what "hidden" libraries, object files and flags are used when
11928	# linking a shared library.
11929	#
11930	# There doesn't appear to be a way to prevent this compiler from
11931	# explicitly linking system object files so we need to strip them
11932	# from the output so that they don't get included in the library
11933	# dependencies.
11934	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'
11935	;;
11936      *)
11937	case `$CC -V 2>&1 | sed 5q` in
11938	*Sun\ C*)
11939	  # Sun C++ 5.9
11940	  no_undefined_flag_CXX=' -zdefs'
11941	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11942	  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'
11943	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11944	  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'
11945
11946	  # Not sure whether something based on
11947	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11948	  # would be better.
11949	  output_verbose_link_cmd='echo'
11950
11951	  # Archives containing C++ object files must be created using
11952	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11953	  # necessary to make sure instantiated templates are included
11954	  # in the archive.
11955	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11956	  ;;
11957	esac
11958	;;
11959    esac
11960    ;;
11961  lynxos*)
11962    # FIXME: insert proper C++ library support
11963    ld_shlibs_CXX=no
11964    ;;
11965  m88k*)
11966    # FIXME: insert proper C++ library support
11967    ld_shlibs_CXX=no
11968    ;;
11969  mvs*)
11970    case $cc_basename in
11971      cxx*)
11972	# FIXME: insert proper C++ library support
11973	ld_shlibs_CXX=no
11974	;;
11975      *)
11976	# FIXME: insert proper C++ library support
11977	ld_shlibs_CXX=no
11978	;;
11979    esac
11980    ;;
11981  netbsd* | netbsdelf*-gnu)
11982    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11983      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11984      wlarc=
11985      hardcode_libdir_flag_spec_CXX='-R$libdir'
11986      hardcode_direct_CXX=yes
11987      hardcode_shlibpath_var_CXX=no
11988    fi
11989    # Workaround some broken pre-1.5 toolchains
11990    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11991    ;;
11992  openbsd2*)
11993    # C++ shared libraries are fairly broken
11994    ld_shlibs_CXX=no
11995    ;;
11996  openbsd*)
11997    if test -f /usr/libexec/ld.so; then
11998      hardcode_direct_CXX=yes
11999      hardcode_shlibpath_var_CXX=no
12000      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12001      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12002      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12003	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12004	export_dynamic_flag_spec_CXX='${wl}-E'
12005	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12006      fi
12007      output_verbose_link_cmd='echo'
12008    else
12009      ld_shlibs_CXX=no
12010    fi
12011    ;;
12012  osf3*)
12013    case $cc_basename in
12014      KCC*)
12015	# Kuck and Associates, Inc. (KAI) C++ Compiler
12016
12017	# KCC will only create a shared library if the output file
12018	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12019	# to its proper name (with version) after linking.
12020	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'
12021
12022	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12023	hardcode_libdir_separator_CXX=:
12024
12025	# Archives containing C++ object files must be created using
12026	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12027	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12028
12029	;;
12030      RCC*)
12031	# Rational C++ 2.4.1
12032	# FIXME: insert proper C++ library support
12033	ld_shlibs_CXX=no
12034	;;
12035      cxx*)
12036	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12037	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'
12038
12039	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12040	hardcode_libdir_separator_CXX=:
12041
12042	# Commands to make compiler produce verbose output that lists
12043	# what "hidden" libraries, object files and flags are used when
12044	# linking a shared library.
12045	#
12046	# There doesn't appear to be a way to prevent this compiler from
12047	# explicitly linking system object files so we need to strip them
12048	# from the output so that they don't get included in the library
12049	# dependencies.
12050	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'
12051	;;
12052      *)
12053	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12054	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12055	  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'
12056
12057	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12058	  hardcode_libdir_separator_CXX=:
12059
12060	  # Commands to make compiler produce verbose output that lists
12061	  # what "hidden" libraries, object files and flags are used when
12062	  # linking a shared library.
12063	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12064
12065	else
12066	  # FIXME: insert proper C++ library support
12067	  ld_shlibs_CXX=no
12068	fi
12069	;;
12070    esac
12071    ;;
12072  osf4* | osf5*)
12073    case $cc_basename in
12074      KCC*)
12075	# Kuck and Associates, Inc. (KAI) C++ Compiler
12076
12077	# KCC will only create a shared library if the output file
12078	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12079	# to its proper name (with version) after linking.
12080	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'
12081
12082	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12083	hardcode_libdir_separator_CXX=:
12084
12085	# Archives containing C++ object files must be created using
12086	# the KAI C++ compiler.
12087	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12088	;;
12089      RCC*)
12090	# Rational C++ 2.4.1
12091	# FIXME: insert proper C++ library support
12092	ld_shlibs_CXX=no
12093	;;
12094      cxx*)
12095	allow_undefined_flag_CXX=' -expect_unresolved \*'
12096	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'
12097	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12098	  echo "-hidden">> $lib.exp~
12099	  $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~
12100	  $rm $lib.exp'
12101
12102	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12103	hardcode_libdir_separator_CXX=:
12104
12105	# Commands to make compiler produce verbose output that lists
12106	# what "hidden" libraries, object files and flags are used when
12107	# linking a shared library.
12108	#
12109	# There doesn't appear to be a way to prevent this compiler from
12110	# explicitly linking system object files so we need to strip them
12111	# from the output so that they don't get included in the library
12112	# dependencies.
12113	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'
12114	;;
12115      *)
12116	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12117	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12118	 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'
12119
12120	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12121	  hardcode_libdir_separator_CXX=:
12122
12123	  # Commands to make compiler produce verbose output that lists
12124	  # what "hidden" libraries, object files and flags are used when
12125	  # linking a shared library.
12126	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12127
12128	else
12129	  # FIXME: insert proper C++ library support
12130	  ld_shlibs_CXX=no
12131	fi
12132	;;
12133    esac
12134    ;;
12135  psos*)
12136    # FIXME: insert proper C++ library support
12137    ld_shlibs_CXX=no
12138    ;;
12139  sunos4*)
12140    case $cc_basename in
12141      CC*)
12142	# Sun C++ 4.x
12143	# FIXME: insert proper C++ library support
12144	ld_shlibs_CXX=no
12145	;;
12146      lcc*)
12147	# Lucid
12148	# FIXME: insert proper C++ library support
12149	ld_shlibs_CXX=no
12150	;;
12151      *)
12152	# FIXME: insert proper C++ library support
12153	ld_shlibs_CXX=no
12154	;;
12155    esac
12156    ;;
12157  solaris*)
12158    case $cc_basename in
12159      CC*)
12160	# Sun C++ 4.2, 5.x and Centerline C++
12161        archive_cmds_need_lc_CXX=yes
12162	no_undefined_flag_CXX=' -zdefs'
12163	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12164	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12165	$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'
12166
12167	hardcode_libdir_flag_spec_CXX='-R$libdir'
12168	hardcode_shlibpath_var_CXX=no
12169	case $host_os in
12170	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12171	  *)
12172	    # The compiler driver will combine and reorder linker options,
12173	    # but understands `-z linker_flag'.
12174	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12175	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12176	    ;;
12177	esac
12178	link_all_deplibs_CXX=yes
12179
12180	output_verbose_link_cmd='echo'
12181
12182	# Archives containing C++ object files must be created using
12183	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12184	# necessary to make sure instantiated templates are included
12185	# in the archive.
12186	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12187	;;
12188      gcx*)
12189	# Green Hills C++ Compiler
12190	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12191
12192	# The C++ compiler must be used to create the archive.
12193	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12194	;;
12195      *)
12196	# GNU C++ compiler with Solaris linker
12197	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12198	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12199	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12200	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12201	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12202		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12203
12204	    # Commands to make compiler produce verbose output that lists
12205	    # what "hidden" libraries, object files and flags are used when
12206	    # linking a shared library.
12207	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12208	  else
12209	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12210	    # platform.
12211	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12212	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12213		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12214
12215	    # Commands to make compiler produce verbose output that lists
12216	    # what "hidden" libraries, object files and flags are used when
12217	    # linking a shared library.
12218	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12219	  fi
12220
12221	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12222	  case $host_os in
12223	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12224	  *)
12225	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12226	    ;;
12227	  esac
12228	fi
12229	;;
12230    esac
12231    ;;
12232  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12233    no_undefined_flag_CXX='${wl}-z,text'
12234    archive_cmds_need_lc_CXX=no
12235    hardcode_shlibpath_var_CXX=no
12236    runpath_var='LD_RUN_PATH'
12237
12238    case $cc_basename in
12239      CC*)
12240	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12241	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12242	;;
12243      *)
12244	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12245	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12246	;;
12247    esac
12248    ;;
12249  sysv5* | sco3.2v5* | sco5v6*)
12250    # Note: We can NOT use -z defs as we might desire, because we do not
12251    # link with -lc, and that would cause any symbols used from libc to
12252    # always be unresolved, which means just about no library would
12253    # ever link correctly.  If we're not using GNU ld we use -z text
12254    # though, which does catch some bad symbols but isn't as heavy-handed
12255    # as -z defs.
12256    # For security reasons, it is highly recommended that you always
12257    # use absolute paths for naming shared libraries, and exclude the
12258    # DT_RUNPATH tag from executables and libraries.  But doing so
12259    # requires that you compile everything twice, which is a pain.
12260    # So that behaviour is only enabled if SCOABSPATH is set to a
12261    # non-empty value in the environment.  Most likely only useful for
12262    # creating official distributions of packages.
12263    # This is a hack until libtool officially supports absolute path
12264    # names for shared libraries.
12265    no_undefined_flag_CXX='${wl}-z,text'
12266    allow_undefined_flag_CXX='${wl}-z,nodefs'
12267    archive_cmds_need_lc_CXX=no
12268    hardcode_shlibpath_var_CXX=no
12269    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12270    hardcode_libdir_separator_CXX=':'
12271    link_all_deplibs_CXX=yes
12272    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12273    runpath_var='LD_RUN_PATH'
12274
12275    case $cc_basename in
12276      CC*)
12277	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12278	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12279	;;
12280      *)
12281	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12282	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12283	;;
12284    esac
12285    ;;
12286  tandem*)
12287    case $cc_basename in
12288      NCC*)
12289	# NonStop-UX NCC 3.20
12290	# FIXME: insert proper C++ library support
12291	ld_shlibs_CXX=no
12292	;;
12293      *)
12294	# FIXME: insert proper C++ library support
12295	ld_shlibs_CXX=no
12296	;;
12297    esac
12298    ;;
12299  vxworks*)
12300    # FIXME: insert proper C++ library support
12301    ld_shlibs_CXX=no
12302    ;;
12303  *)
12304    # FIXME: insert proper C++ library support
12305    ld_shlibs_CXX=no
12306    ;;
12307esac
12308{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12309echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12310test "$ld_shlibs_CXX" = no && can_build_shared=no
12311
12312GCC_CXX="$GXX"
12313LD_CXX="$LD"
12314
12315cat > conftest.$ac_ext <<EOF
12316class Foo
12317{
12318public:
12319  Foo (void) { a = 0; }
12320private:
12321  int a;
12322};
12323EOF
12324
12325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12326  (eval $ac_compile) 2>&5
12327  ac_status=$?
12328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329  (exit $ac_status); }; then
12330  # Parse the compiler output and extract the necessary
12331  # objects, libraries and library flags.
12332
12333  # Sentinel used to keep track of whether or not we are before
12334  # the conftest object file.
12335  pre_test_object_deps_done=no
12336
12337  # The `*' in the case matches for architectures that use `case' in
12338  # $output_verbose_cmd can trigger glob expansion during the loop
12339  # eval without this substitution.
12340  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12341
12342  for p in `eval $output_verbose_link_cmd`; do
12343    case $p in
12344
12345    -L* | -R* | -l*)
12346       # Some compilers place space between "-{L,R}" and the path.
12347       # Remove the space.
12348       if test $p = "-L" \
12349	  || test $p = "-R"; then
12350	 prev=$p
12351	 continue
12352       else
12353	 prev=
12354       fi
12355
12356       if test "$pre_test_object_deps_done" = no; then
12357	 case $p in
12358	 -L* | -R*)
12359	   # Internal compiler library paths should come after those
12360	   # provided the user.  The postdeps already come after the
12361	   # user supplied libs so there is no need to process them.
12362	   if test -z "$compiler_lib_search_path_CXX"; then
12363	     compiler_lib_search_path_CXX="${prev}${p}"
12364	   else
12365	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12366	   fi
12367	   ;;
12368	 # The "-l" case would never come before the object being
12369	 # linked, so don't bother handling this case.
12370	 esac
12371       else
12372	 if test -z "$postdeps_CXX"; then
12373	   postdeps_CXX="${prev}${p}"
12374	 else
12375	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12376	 fi
12377       fi
12378       ;;
12379
12380    *.$objext)
12381       # This assumes that the test object file only shows up
12382       # once in the compiler output.
12383       if test "$p" = "conftest.$objext"; then
12384	 pre_test_object_deps_done=yes
12385	 continue
12386       fi
12387
12388       if test "$pre_test_object_deps_done" = no; then
12389	 if test -z "$predep_objects_CXX"; then
12390	   predep_objects_CXX="$p"
12391	 else
12392	   predep_objects_CXX="$predep_objects_CXX $p"
12393	 fi
12394       else
12395	 if test -z "$postdep_objects_CXX"; then
12396	   postdep_objects_CXX="$p"
12397	 else
12398	   postdep_objects_CXX="$postdep_objects_CXX $p"
12399	 fi
12400       fi
12401       ;;
12402
12403    *) ;; # Ignore the rest.
12404
12405    esac
12406  done
12407
12408  # Clean up.
12409  rm -f a.out a.exe
12410else
12411  echo "libtool.m4: error: problem compiling CXX test program"
12412fi
12413
12414$rm -f confest.$objext
12415
12416compiler_lib_search_dirs_CXX=
12417if test -n "$compiler_lib_search_path_CXX"; then
12418  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12419fi
12420
12421# PORTME: override above test on systems where it is broken
12422case $host_os in
12423interix[3-9]*)
12424  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12425  # hack all around it, let's just trust "g++" to DTRT.
12426  predep_objects_CXX=
12427  postdep_objects_CXX=
12428  postdeps_CXX=
12429  ;;
12430
12431linux*)
12432  case `$CC -V 2>&1 | sed 5q` in
12433  *Sun\ C*)
12434    # Sun C++ 5.9
12435    #
12436    # The more standards-conforming stlport4 library is
12437    # incompatible with the Cstd library. Avoid specifying
12438    # it if it's in CXXFLAGS. Ignore libCrun as
12439    # -library=stlport4 depends on it.
12440    case " $CXX $CXXFLAGS " in
12441    *" -library=stlport4 "*)
12442      solaris_use_stlport4=yes
12443      ;;
12444    esac
12445    if test "$solaris_use_stlport4" != yes; then
12446      postdeps_CXX='-library=Cstd -library=Crun'
12447    fi
12448    ;;
12449  esac
12450  ;;
12451
12452solaris*)
12453  case $cc_basename in
12454  CC*)
12455    # The more standards-conforming stlport4 library is
12456    # incompatible with the Cstd library. Avoid specifying
12457    # it if it's in CXXFLAGS. Ignore libCrun as
12458    # -library=stlport4 depends on it.
12459    case " $CXX $CXXFLAGS " in
12460    *" -library=stlport4 "*)
12461      solaris_use_stlport4=yes
12462      ;;
12463    esac
12464
12465    # Adding this requires a known-good setup of shared libraries for
12466    # Sun compiler versions before 5.6, else PIC objects from an old
12467    # archive will be linked into the output, leading to subtle bugs.
12468    if test "$solaris_use_stlport4" != yes; then
12469      postdeps_CXX='-library=Cstd -library=Crun'
12470    fi
12471    ;;
12472  esac
12473  ;;
12474esac
12475
12476case " $postdeps_CXX " in
12477*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12478esac
12479
12480lt_prog_compiler_wl_CXX=
12481lt_prog_compiler_pic_CXX=
12482lt_prog_compiler_static_CXX=
12483
12484{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12485echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12486
12487  # C++ specific cases for pic, static, wl, etc.
12488  if test "$GXX" = yes; then
12489    lt_prog_compiler_wl_CXX='-Wl,'
12490    lt_prog_compiler_static_CXX='-static'
12491
12492    case $host_os in
12493    aix*)
12494      # All AIX code is PIC.
12495      if test "$host_cpu" = ia64; then
12496	# AIX 5 now supports IA64 processor
12497	lt_prog_compiler_static_CXX='-Bstatic'
12498      fi
12499      ;;
12500    amigaos*)
12501      # FIXME: we need at least 68020 code to build shared libraries, but
12502      # adding the `-m68020' flag to GCC prevents building anything better,
12503      # like `-m68040'.
12504      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12505      ;;
12506    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12507      # PIC is the default for these OSes.
12508      ;;
12509    mingw* | cygwin* | os2* | pw32*)
12510      # This hack is so that the source file can tell whether it is being
12511      # built for inclusion in a dll (and should export symbols for example).
12512      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12513      # (--disable-auto-import) libraries
12514      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12515      ;;
12516    darwin* | rhapsody*)
12517      # PIC is the default on this platform
12518      # Common symbols not allowed in MH_DYLIB files
12519      lt_prog_compiler_pic_CXX='-fno-common'
12520      ;;
12521    *djgpp*)
12522      # DJGPP does not support shared libraries at all
12523      lt_prog_compiler_pic_CXX=
12524      ;;
12525    interix[3-9]*)
12526      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12527      # Instead, we relocate shared libraries at runtime.
12528      ;;
12529    sysv4*MP*)
12530      if test -d /usr/nec; then
12531	lt_prog_compiler_pic_CXX=-Kconform_pic
12532      fi
12533      ;;
12534    hpux*)
12535      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12536      # not for PA HP-UX.
12537      case $host_cpu in
12538      hppa*64*|ia64*)
12539	;;
12540      *)
12541	lt_prog_compiler_pic_CXX='-fPIC'
12542	;;
12543      esac
12544      ;;
12545    *)
12546      lt_prog_compiler_pic_CXX='-fPIC'
12547      ;;
12548    esac
12549  else
12550    case $host_os in
12551      aix[4-9]*)
12552	# All AIX code is PIC.
12553	if test "$host_cpu" = ia64; then
12554	  # AIX 5 now supports IA64 processor
12555	  lt_prog_compiler_static_CXX='-Bstatic'
12556	else
12557	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12558	fi
12559	;;
12560      chorus*)
12561	case $cc_basename in
12562	cxch68*)
12563	  # Green Hills C++ Compiler
12564	  # _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"
12565	  ;;
12566	esac
12567	;;
12568       darwin*)
12569         # PIC is the default on this platform
12570         # Common symbols not allowed in MH_DYLIB files
12571         case $cc_basename in
12572           xlc*)
12573           lt_prog_compiler_pic_CXX='-qnocommon'
12574           lt_prog_compiler_wl_CXX='-Wl,'
12575           ;;
12576         esac
12577       ;;
12578      dgux*)
12579	case $cc_basename in
12580	  ec++*)
12581	    lt_prog_compiler_pic_CXX='-KPIC'
12582	    ;;
12583	  ghcx*)
12584	    # Green Hills C++ Compiler
12585	    lt_prog_compiler_pic_CXX='-pic'
12586	    ;;
12587	  *)
12588	    ;;
12589	esac
12590	;;
12591      freebsd* | dragonfly*)
12592	# FreeBSD uses GNU C++
12593	;;
12594      hpux9* | hpux10* | hpux11*)
12595	case $cc_basename in
12596	  CC*)
12597	    lt_prog_compiler_wl_CXX='-Wl,'
12598	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12599	    if test "$host_cpu" != ia64; then
12600	      lt_prog_compiler_pic_CXX='+Z'
12601	    fi
12602	    ;;
12603	  aCC*)
12604	    lt_prog_compiler_wl_CXX='-Wl,'
12605	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12606	    case $host_cpu in
12607	    hppa*64*|ia64*)
12608	      # +Z the default
12609	      ;;
12610	    *)
12611	      lt_prog_compiler_pic_CXX='+Z'
12612	      ;;
12613	    esac
12614	    ;;
12615	  *)
12616	    ;;
12617	esac
12618	;;
12619      interix*)
12620	# This is c89, which is MS Visual C++ (no shared libs)
12621	# Anyone wants to do a port?
12622	;;
12623      irix5* | irix6* | nonstopux*)
12624	case $cc_basename in
12625	  CC*)
12626	    lt_prog_compiler_wl_CXX='-Wl,'
12627	    lt_prog_compiler_static_CXX='-non_shared'
12628	    # CC pic flag -KPIC is the default.
12629	    ;;
12630	  *)
12631	    ;;
12632	esac
12633	;;
12634      linux* | k*bsd*-gnu)
12635	case $cc_basename in
12636	  KCC*)
12637	    # KAI C++ Compiler
12638	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12639	    lt_prog_compiler_pic_CXX='-fPIC'
12640	    ;;
12641	  icpc* | ecpc*)
12642	    # Intel C++
12643	    lt_prog_compiler_wl_CXX='-Wl,'
12644	    lt_prog_compiler_pic_CXX='-KPIC'
12645	    lt_prog_compiler_static_CXX='-static'
12646	    ;;
12647	  pgCC* | pgcpp*)
12648	    # Portland Group C++ compiler.
12649	    lt_prog_compiler_wl_CXX='-Wl,'
12650	    lt_prog_compiler_pic_CXX='-fpic'
12651	    lt_prog_compiler_static_CXX='-Bstatic'
12652	    ;;
12653	  cxx*)
12654	    # Compaq C++
12655	    # Make sure the PIC flag is empty.  It appears that all Alpha
12656	    # Linux and Compaq Tru64 Unix objects are PIC.
12657	    lt_prog_compiler_pic_CXX=
12658	    lt_prog_compiler_static_CXX='-non_shared'
12659	    ;;
12660	  *)
12661	    case `$CC -V 2>&1 | sed 5q` in
12662	    *Sun\ C*)
12663	      # Sun C++ 5.9
12664	      lt_prog_compiler_pic_CXX='-KPIC'
12665	      lt_prog_compiler_static_CXX='-Bstatic'
12666	      lt_prog_compiler_wl_CXX='-Qoption ld '
12667	      ;;
12668	    esac
12669	    ;;
12670	esac
12671	;;
12672      lynxos*)
12673	;;
12674      m88k*)
12675	;;
12676      mvs*)
12677	case $cc_basename in
12678	  cxx*)
12679	    lt_prog_compiler_pic_CXX='-W c,exportall'
12680	    ;;
12681	  *)
12682	    ;;
12683	esac
12684	;;
12685      netbsd* | netbsdelf*-gnu)
12686	;;
12687      osf3* | osf4* | osf5*)
12688	case $cc_basename in
12689	  KCC*)
12690	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12691	    ;;
12692	  RCC*)
12693	    # Rational C++ 2.4.1
12694	    lt_prog_compiler_pic_CXX='-pic'
12695	    ;;
12696	  cxx*)
12697	    # Digital/Compaq C++
12698	    lt_prog_compiler_wl_CXX='-Wl,'
12699	    # Make sure the PIC flag is empty.  It appears that all Alpha
12700	    # Linux and Compaq Tru64 Unix objects are PIC.
12701	    lt_prog_compiler_pic_CXX=
12702	    lt_prog_compiler_static_CXX='-non_shared'
12703	    ;;
12704	  *)
12705	    ;;
12706	esac
12707	;;
12708      psos*)
12709	;;
12710      solaris*)
12711	case $cc_basename in
12712	  CC*)
12713	    # Sun C++ 4.2, 5.x and Centerline C++
12714	    lt_prog_compiler_pic_CXX='-KPIC'
12715	    lt_prog_compiler_static_CXX='-Bstatic'
12716	    lt_prog_compiler_wl_CXX='-Qoption ld '
12717	    ;;
12718	  gcx*)
12719	    # Green Hills C++ Compiler
12720	    lt_prog_compiler_pic_CXX='-PIC'
12721	    ;;
12722	  *)
12723	    ;;
12724	esac
12725	;;
12726      sunos4*)
12727	case $cc_basename in
12728	  CC*)
12729	    # Sun C++ 4.x
12730	    lt_prog_compiler_pic_CXX='-pic'
12731	    lt_prog_compiler_static_CXX='-Bstatic'
12732	    ;;
12733	  lcc*)
12734	    # Lucid
12735	    lt_prog_compiler_pic_CXX='-pic'
12736	    ;;
12737	  *)
12738	    ;;
12739	esac
12740	;;
12741      tandem*)
12742	case $cc_basename in
12743	  NCC*)
12744	    # NonStop-UX NCC 3.20
12745	    lt_prog_compiler_pic_CXX='-KPIC'
12746	    ;;
12747	  *)
12748	    ;;
12749	esac
12750	;;
12751      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12752	case $cc_basename in
12753	  CC*)
12754	    lt_prog_compiler_wl_CXX='-Wl,'
12755	    lt_prog_compiler_pic_CXX='-KPIC'
12756	    lt_prog_compiler_static_CXX='-Bstatic'
12757	    ;;
12758	esac
12759	;;
12760      vxworks*)
12761	;;
12762      *)
12763	lt_prog_compiler_can_build_shared_CXX=no
12764	;;
12765    esac
12766  fi
12767
12768{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12769echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12770
12771#
12772# Check to make sure the PIC flag actually works.
12773#
12774if test -n "$lt_prog_compiler_pic_CXX"; then
12775
12776{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12777echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12778if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12779  echo $ECHO_N "(cached) $ECHO_C" >&6
12780else
12781  lt_cv_prog_compiler_pic_works_CXX=no
12782  ac_outfile=conftest.$ac_objext
12783   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12784   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12785   # Insert the option either (1) after the last *FLAGS variable, or
12786   # (2) before a word containing "conftest.", or (3) at the end.
12787   # Note that $ac_compile itself does not contain backslashes and begins
12788   # with a dollar sign (not a hyphen), so the echo should work correctly.
12789   # The option is referenced via a variable to avoid confusing sed.
12790   lt_compile=`echo "$ac_compile" | $SED \
12791   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12792   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12793   -e 's:$: $lt_compiler_flag:'`
12794   (eval echo "\"\$as_me:12794: $lt_compile\"" >&5)
12795   (eval "$lt_compile" 2>conftest.err)
12796   ac_status=$?
12797   cat conftest.err >&5
12798   echo "$as_me:12798: \$? = $ac_status" >&5
12799   if (exit $ac_status) && test -s "$ac_outfile"; then
12800     # The compiler can only warn and ignore the option if not recognized
12801     # So say no if there are warnings other than the usual output.
12802     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12803     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12804     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12805       lt_cv_prog_compiler_pic_works_CXX=yes
12806     fi
12807   fi
12808   $rm conftest*
12809
12810fi
12811{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12812echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12813
12814if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12815    case $lt_prog_compiler_pic_CXX in
12816     "" | " "*) ;;
12817     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12818     esac
12819else
12820    lt_prog_compiler_pic_CXX=
12821     lt_prog_compiler_can_build_shared_CXX=no
12822fi
12823
12824fi
12825case $host_os in
12826  # For platforms which do not support PIC, -DPIC is meaningless:
12827  *djgpp*)
12828    lt_prog_compiler_pic_CXX=
12829    ;;
12830  *)
12831    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12832    ;;
12833esac
12834
12835#
12836# Check to make sure the static flag actually works.
12837#
12838wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12839{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12840echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12841if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12842  echo $ECHO_N "(cached) $ECHO_C" >&6
12843else
12844  lt_cv_prog_compiler_static_works_CXX=no
12845   save_LDFLAGS="$LDFLAGS"
12846   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12847   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12848   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12849     # The linker can only warn and ignore the option if not recognized
12850     # So say no if there are warnings
12851     if test -s conftest.err; then
12852       # Append any errors to the config.log.
12853       cat conftest.err 1>&5
12854       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12855       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12856       if diff conftest.exp conftest.er2 >/dev/null; then
12857         lt_cv_prog_compiler_static_works_CXX=yes
12858       fi
12859     else
12860       lt_cv_prog_compiler_static_works_CXX=yes
12861     fi
12862   fi
12863   $rm -r conftest*
12864   LDFLAGS="$save_LDFLAGS"
12865
12866fi
12867{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12868echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12869
12870if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12871    :
12872else
12873    lt_prog_compiler_static_CXX=
12874fi
12875
12876
12877{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12878echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12879if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12880  echo $ECHO_N "(cached) $ECHO_C" >&6
12881else
12882  lt_cv_prog_compiler_c_o_CXX=no
12883   $rm -r conftest 2>/dev/null
12884   mkdir conftest
12885   cd conftest
12886   mkdir out
12887   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12888
12889   lt_compiler_flag="-o out/conftest2.$ac_objext"
12890   # Insert the option either (1) after the last *FLAGS variable, or
12891   # (2) before a word containing "conftest.", or (3) at the end.
12892   # Note that $ac_compile itself does not contain backslashes and begins
12893   # with a dollar sign (not a hyphen), so the echo should work correctly.
12894   lt_compile=`echo "$ac_compile" | $SED \
12895   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12896   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12897   -e 's:$: $lt_compiler_flag:'`
12898   (eval echo "\"\$as_me:12898: $lt_compile\"" >&5)
12899   (eval "$lt_compile" 2>out/conftest.err)
12900   ac_status=$?
12901   cat out/conftest.err >&5
12902   echo "$as_me:12902: \$? = $ac_status" >&5
12903   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12904   then
12905     # The compiler can only warn and ignore the option if not recognized
12906     # So say no if there are warnings
12907     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12908     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12909     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12910       lt_cv_prog_compiler_c_o_CXX=yes
12911     fi
12912   fi
12913   chmod u+w . 2>&5
12914   $rm conftest*
12915   # SGI C++ compiler will create directory out/ii_files/ for
12916   # template instantiation
12917   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12918   $rm out/* && rmdir out
12919   cd ..
12920   rmdir conftest
12921   $rm conftest*
12922
12923fi
12924{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12925echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12926
12927
12928hard_links="nottested"
12929if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12930  # do not overwrite the value of need_locks provided by the user
12931  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12932echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12933  hard_links=yes
12934  $rm conftest*
12935  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12936  touch conftest.a
12937  ln conftest.a conftest.b 2>&5 || hard_links=no
12938  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12939  { echo "$as_me:$LINENO: result: $hard_links" >&5
12940echo "${ECHO_T}$hard_links" >&6; }
12941  if test "$hard_links" = no; then
12942    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12943echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12944    need_locks=warn
12945  fi
12946else
12947  need_locks=no
12948fi
12949
12950{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12951echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12952
12953  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12954  case $host_os in
12955  aix[4-9]*)
12956    # If we're using GNU nm, then we don't want the "-C" option.
12957    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12958    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12959      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'
12960    else
12961      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'
12962    fi
12963    ;;
12964  pw32*)
12965    export_symbols_cmds_CXX="$ltdll_cmds"
12966  ;;
12967  cygwin* | mingw*)
12968    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'
12969  ;;
12970  linux* | k*bsd*-gnu)
12971    link_all_deplibs_CXX=no
12972  ;;
12973  *)
12974    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12975  ;;
12976  esac
12977  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12978
12979{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12980echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12981test "$ld_shlibs_CXX" = no && can_build_shared=no
12982
12983#
12984# Do we need to explicitly link libc?
12985#
12986case "x$archive_cmds_need_lc_CXX" in
12987x|xyes)
12988  # Assume -lc should be added
12989  archive_cmds_need_lc_CXX=yes
12990
12991  if test "$enable_shared" = yes && test "$GCC" = yes; then
12992    case $archive_cmds_CXX in
12993    *'~'*)
12994      # FIXME: we may have to deal with multi-command sequences.
12995      ;;
12996    '$CC '*)
12997      # Test whether the compiler implicitly links with -lc since on some
12998      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12999      # to ld, don't add -lc before -lgcc.
13000      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13001echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13002      $rm conftest*
13003      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13004
13005      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13006  (eval $ac_compile) 2>&5
13007  ac_status=$?
13008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009  (exit $ac_status); } 2>conftest.err; then
13010        soname=conftest
13011        lib=conftest
13012        libobjs=conftest.$ac_objext
13013        deplibs=
13014        wl=$lt_prog_compiler_wl_CXX
13015	pic_flag=$lt_prog_compiler_pic_CXX
13016        compiler_flags=-v
13017        linker_flags=-v
13018        verstring=
13019        output_objdir=.
13020        libname=conftest
13021        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13022        allow_undefined_flag_CXX=
13023        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13024  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13025  ac_status=$?
13026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027  (exit $ac_status); }
13028        then
13029	  archive_cmds_need_lc_CXX=no
13030        else
13031	  archive_cmds_need_lc_CXX=yes
13032        fi
13033        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13034      else
13035        cat conftest.err 1>&5
13036      fi
13037      $rm conftest*
13038      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13039echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13040      ;;
13041    esac
13042  fi
13043  ;;
13044esac
13045
13046{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13047echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13048library_names_spec=
13049libname_spec='lib$name'
13050soname_spec=
13051shrext_cmds=".so"
13052postinstall_cmds=
13053postuninstall_cmds=
13054finish_cmds=
13055finish_eval=
13056shlibpath_var=
13057shlibpath_overrides_runpath=unknown
13058version_type=none
13059dynamic_linker="$host_os ld.so"
13060sys_lib_dlsearch_path_spec="/lib /usr/lib"
13061
13062need_lib_prefix=unknown
13063hardcode_into_libs=no
13064
13065# when you set need_version to no, make sure it does not cause -set_version
13066# flags to be left without arguments
13067need_version=unknown
13068
13069case $host_os in
13070aix3*)
13071  version_type=linux
13072  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13073  shlibpath_var=LIBPATH
13074
13075  # AIX 3 has no versioning support, so we append a major version to the name.
13076  soname_spec='${libname}${release}${shared_ext}$major'
13077  ;;
13078
13079aix[4-9]*)
13080  version_type=linux
13081  need_lib_prefix=no
13082  need_version=no
13083  hardcode_into_libs=yes
13084  if test "$host_cpu" = ia64; then
13085    # AIX 5 supports IA64
13086    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13087    shlibpath_var=LD_LIBRARY_PATH
13088  else
13089    # With GCC up to 2.95.x, collect2 would create an import file
13090    # for dependence libraries.  The import file would start with
13091    # the line `#! .'.  This would cause the generated library to
13092    # depend on `.', always an invalid library.  This was fixed in
13093    # development snapshots of GCC prior to 3.0.
13094    case $host_os in
13095      aix4 | aix4.[01] | aix4.[01].*)
13096      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13097	   echo ' yes '
13098	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13099	:
13100      else
13101	can_build_shared=no
13102      fi
13103      ;;
13104    esac
13105    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13106    # soname into executable. Probably we can add versioning support to
13107    # collect2, so additional links can be useful in future.
13108    if test "$aix_use_runtimelinking" = yes; then
13109      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13110      # instead of lib<name>.a to let people know that these are not
13111      # typical AIX shared libraries.
13112      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13113    else
13114      # We preserve .a as extension for shared libraries through AIX4.2
13115      # and later when we are not doing run time linking.
13116      library_names_spec='${libname}${release}.a $libname.a'
13117      soname_spec='${libname}${release}${shared_ext}$major'
13118    fi
13119    shlibpath_var=LIBPATH
13120  fi
13121  ;;
13122
13123amigaos*)
13124  library_names_spec='$libname.ixlibrary $libname.a'
13125  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13126  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'
13127  ;;
13128
13129beos*)
13130  library_names_spec='${libname}${shared_ext}'
13131  dynamic_linker="$host_os ld.so"
13132  shlibpath_var=LIBRARY_PATH
13133  ;;
13134
13135bsdi[45]*)
13136  version_type=linux
13137  need_version=no
13138  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13139  soname_spec='${libname}${release}${shared_ext}$major'
13140  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13141  shlibpath_var=LD_LIBRARY_PATH
13142  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13143  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13144  # the default ld.so.conf also contains /usr/contrib/lib and
13145  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13146  # libtool to hard-code these into programs
13147  ;;
13148
13149cygwin* | mingw* | pw32*)
13150  version_type=windows
13151  shrext_cmds=".dll"
13152  need_version=no
13153  need_lib_prefix=no
13154
13155  case $GCC,$host_os in
13156  yes,cygwin* | yes,mingw* | yes,pw32*)
13157    library_names_spec='$libname.dll.a'
13158    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13159    postinstall_cmds='base_file=`basename \${file}`~
13160      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13161      dldir=$destdir/`dirname \$dlpath`~
13162      test -d \$dldir || mkdir -p \$dldir~
13163      $install_prog $dir/$dlname \$dldir/$dlname~
13164      chmod a+x \$dldir/$dlname'
13165    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13166      dlpath=$dir/\$dldll~
13167       $rm \$dlpath'
13168    shlibpath_overrides_runpath=yes
13169
13170    case $host_os in
13171    cygwin*)
13172      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13173      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13174      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13175      ;;
13176    mingw*)
13177      # MinGW DLLs use traditional 'lib' prefix
13178      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13179      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13180      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13181        # It is most probably a Windows format PATH printed by
13182        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13183        # path with ; separators, and with drive letters. We can handle the
13184        # drive letters (cygwin fileutils understands them), so leave them,
13185        # especially as we might pass files found there to a mingw objdump,
13186        # which wouldn't understand a cygwinified path. Ahh.
13187        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13188      else
13189        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13190      fi
13191      ;;
13192    pw32*)
13193      # pw32 DLLs use 'pw' prefix rather than 'lib'
13194      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13195      ;;
13196    esac
13197    ;;
13198
13199  *)
13200    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13201    ;;
13202  esac
13203  dynamic_linker='Win32 ld.exe'
13204  # FIXME: first we should search . and the directory the executable is in
13205  shlibpath_var=PATH
13206  ;;
13207
13208darwin* | rhapsody*)
13209  dynamic_linker="$host_os dyld"
13210  version_type=darwin
13211  need_lib_prefix=no
13212  need_version=no
13213  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13214  soname_spec='${libname}${release}${major}$shared_ext'
13215  shlibpath_overrides_runpath=yes
13216  shlibpath_var=DYLD_LIBRARY_PATH
13217  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13218
13219  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13220  ;;
13221
13222dgux*)
13223  version_type=linux
13224  need_lib_prefix=no
13225  need_version=no
13226  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13227  soname_spec='${libname}${release}${shared_ext}$major'
13228  shlibpath_var=LD_LIBRARY_PATH
13229  ;;
13230
13231freebsd1*)
13232  dynamic_linker=no
13233  ;;
13234
13235freebsd* | dragonfly*)
13236  # DragonFly does not have aout.  When/if they implement a new
13237  # versioning mechanism, adjust this.
13238  if test -x /usr/bin/objformat; then
13239    objformat=`/usr/bin/objformat`
13240  else
13241    case $host_os in
13242    freebsd[123]*) objformat=aout ;;
13243    *) objformat=elf ;;
13244    esac
13245  fi
13246  version_type=freebsd-$objformat
13247  case $version_type in
13248    freebsd-elf*)
13249      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13250      need_version=no
13251      need_lib_prefix=no
13252      ;;
13253    freebsd-*)
13254      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13255      need_version=yes
13256      ;;
13257  esac
13258  shlibpath_var=LD_LIBRARY_PATH
13259  case $host_os in
13260  freebsd2*)
13261    shlibpath_overrides_runpath=yes
13262    ;;
13263  freebsd3.[01]* | freebsdelf3.[01]*)
13264    shlibpath_overrides_runpath=yes
13265    hardcode_into_libs=yes
13266    ;;
13267  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13268  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13269    shlibpath_overrides_runpath=no
13270    hardcode_into_libs=yes
13271    ;;
13272  *) # from 4.6 on, and DragonFly
13273    shlibpath_overrides_runpath=yes
13274    hardcode_into_libs=yes
13275    ;;
13276  esac
13277  ;;
13278
13279gnu*)
13280  version_type=linux
13281  need_lib_prefix=no
13282  need_version=no
13283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13284  soname_spec='${libname}${release}${shared_ext}$major'
13285  shlibpath_var=LD_LIBRARY_PATH
13286  hardcode_into_libs=yes
13287  ;;
13288
13289hpux9* | hpux10* | hpux11*)
13290  # Give a soname corresponding to the major version so that dld.sl refuses to
13291  # link against other versions.
13292  version_type=sunos
13293  need_lib_prefix=no
13294  need_version=no
13295  case $host_cpu in
13296  ia64*)
13297    shrext_cmds='.so'
13298    hardcode_into_libs=yes
13299    dynamic_linker="$host_os dld.so"
13300    shlibpath_var=LD_LIBRARY_PATH
13301    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13302    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13303    soname_spec='${libname}${release}${shared_ext}$major'
13304    if test "X$HPUX_IA64_MODE" = X32; then
13305      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13306    else
13307      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13308    fi
13309    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13310    ;;
13311   hppa*64*)
13312     shrext_cmds='.sl'
13313     hardcode_into_libs=yes
13314     dynamic_linker="$host_os dld.sl"
13315     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13316     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13317     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13318     soname_spec='${libname}${release}${shared_ext}$major'
13319     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13320     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13321     ;;
13322   *)
13323    shrext_cmds='.sl'
13324    dynamic_linker="$host_os dld.sl"
13325    shlibpath_var=SHLIB_PATH
13326    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13327    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13328    soname_spec='${libname}${release}${shared_ext}$major'
13329    ;;
13330  esac
13331  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13332  postinstall_cmds='chmod 555 $lib'
13333  ;;
13334
13335interix[3-9]*)
13336  version_type=linux
13337  need_lib_prefix=no
13338  need_version=no
13339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13340  soname_spec='${libname}${release}${shared_ext}$major'
13341  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13342  shlibpath_var=LD_LIBRARY_PATH
13343  shlibpath_overrides_runpath=no
13344  hardcode_into_libs=yes
13345  ;;
13346
13347irix5* | irix6* | nonstopux*)
13348  case $host_os in
13349    nonstopux*) version_type=nonstopux ;;
13350    *)
13351	if test "$lt_cv_prog_gnu_ld" = yes; then
13352		version_type=linux
13353	else
13354		version_type=irix
13355	fi ;;
13356  esac
13357  need_lib_prefix=no
13358  need_version=no
13359  soname_spec='${libname}${release}${shared_ext}$major'
13360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13361  case $host_os in
13362  irix5* | nonstopux*)
13363    libsuff= shlibsuff=
13364    ;;
13365  *)
13366    case $LD in # libtool.m4 will add one of these switches to LD
13367    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13368      libsuff= shlibsuff= libmagic=32-bit;;
13369    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13370      libsuff=32 shlibsuff=N32 libmagic=N32;;
13371    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13372      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13373    *) libsuff= shlibsuff= libmagic=never-match;;
13374    esac
13375    ;;
13376  esac
13377  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13378  shlibpath_overrides_runpath=no
13379  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13380  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13381  hardcode_into_libs=yes
13382  ;;
13383
13384# No shared lib support for Linux oldld, aout, or coff.
13385linux*oldld* | linux*aout* | linux*coff*)
13386  dynamic_linker=no
13387  ;;
13388
13389# This must be Linux ELF.
13390linux* | k*bsd*-gnu)
13391  version_type=linux
13392  need_lib_prefix=no
13393  need_version=no
13394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13395  soname_spec='${libname}${release}${shared_ext}$major'
13396  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13397  shlibpath_var=LD_LIBRARY_PATH
13398  shlibpath_overrides_runpath=no
13399  # This implies no fast_install, which is unacceptable.
13400  # Some rework will be needed to allow for fast_install
13401  # before this can be enabled.
13402  hardcode_into_libs=yes
13403
13404  # Append ld.so.conf contents to the search path
13405  if test -f /etc/ld.so.conf; then
13406    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' ' '`
13407    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13408  fi
13409
13410  # We used to test for /lib/ld.so.1 and disable shared libraries on
13411  # powerpc, because MkLinux only supported shared libraries with the
13412  # GNU dynamic linker.  Since this was broken with cross compilers,
13413  # most powerpc-linux boxes support dynamic linking these days and
13414  # people can always --disable-shared, the test was removed, and we
13415  # assume the GNU/Linux dynamic linker is in use.
13416  dynamic_linker='GNU/Linux ld.so'
13417  ;;
13418
13419netbsdelf*-gnu)
13420  version_type=linux
13421  need_lib_prefix=no
13422  need_version=no
13423  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13424  soname_spec='${libname}${release}${shared_ext}$major'
13425  shlibpath_var=LD_LIBRARY_PATH
13426  shlibpath_overrides_runpath=no
13427  hardcode_into_libs=yes
13428  dynamic_linker='NetBSD ld.elf_so'
13429  ;;
13430
13431netbsd*)
13432  version_type=sunos
13433  need_lib_prefix=no
13434  need_version=no
13435  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13436    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13437    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13438    dynamic_linker='NetBSD (a.out) ld.so'
13439  else
13440    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13441    soname_spec='${libname}${release}${shared_ext}$major'
13442    dynamic_linker='NetBSD ld.elf_so'
13443  fi
13444  shlibpath_var=LD_LIBRARY_PATH
13445  shlibpath_overrides_runpath=yes
13446  hardcode_into_libs=yes
13447  ;;
13448
13449newsos6)
13450  version_type=linux
13451  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13452  shlibpath_var=LD_LIBRARY_PATH
13453  shlibpath_overrides_runpath=yes
13454  ;;
13455
13456nto-qnx*)
13457  version_type=linux
13458  need_lib_prefix=no
13459  need_version=no
13460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13461  soname_spec='${libname}${release}${shared_ext}$major'
13462  shlibpath_var=LD_LIBRARY_PATH
13463  shlibpath_overrides_runpath=yes
13464  ;;
13465
13466openbsd*)
13467  version_type=sunos
13468  sys_lib_dlsearch_path_spec="/usr/lib"
13469  need_lib_prefix=no
13470  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13471  case $host_os in
13472    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13473    *)                         need_version=no  ;;
13474  esac
13475  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13476  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13477  shlibpath_var=LD_LIBRARY_PATH
13478  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13479    case $host_os in
13480      openbsd2.[89] | openbsd2.[89].*)
13481	shlibpath_overrides_runpath=no
13482	;;
13483      *)
13484	shlibpath_overrides_runpath=yes
13485	;;
13486      esac
13487  else
13488    shlibpath_overrides_runpath=yes
13489  fi
13490  ;;
13491
13492os2*)
13493  libname_spec='$name'
13494  shrext_cmds=".dll"
13495  need_lib_prefix=no
13496  library_names_spec='$libname${shared_ext} $libname.a'
13497  dynamic_linker='OS/2 ld.exe'
13498  shlibpath_var=LIBPATH
13499  ;;
13500
13501osf3* | osf4* | osf5*)
13502  version_type=osf
13503  need_lib_prefix=no
13504  need_version=no
13505  soname_spec='${libname}${release}${shared_ext}$major'
13506  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13507  shlibpath_var=LD_LIBRARY_PATH
13508  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13509  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13510  ;;
13511
13512rdos*)
13513  dynamic_linker=no
13514  ;;
13515
13516solaris*)
13517  version_type=linux
13518  need_lib_prefix=no
13519  need_version=no
13520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13521  soname_spec='${libname}${release}${shared_ext}$major'
13522  shlibpath_var=LD_LIBRARY_PATH
13523  shlibpath_overrides_runpath=yes
13524  hardcode_into_libs=yes
13525  # ldd complains unless libraries are executable
13526  postinstall_cmds='chmod +x $lib'
13527  ;;
13528
13529sunos4*)
13530  version_type=sunos
13531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13532  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13533  shlibpath_var=LD_LIBRARY_PATH
13534  shlibpath_overrides_runpath=yes
13535  if test "$with_gnu_ld" = yes; then
13536    need_lib_prefix=no
13537  fi
13538  need_version=yes
13539  ;;
13540
13541sysv4 | sysv4.3*)
13542  version_type=linux
13543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13544  soname_spec='${libname}${release}${shared_ext}$major'
13545  shlibpath_var=LD_LIBRARY_PATH
13546  case $host_vendor in
13547    sni)
13548      shlibpath_overrides_runpath=no
13549      need_lib_prefix=no
13550      export_dynamic_flag_spec='${wl}-Blargedynsym'
13551      runpath_var=LD_RUN_PATH
13552      ;;
13553    siemens)
13554      need_lib_prefix=no
13555      ;;
13556    motorola)
13557      need_lib_prefix=no
13558      need_version=no
13559      shlibpath_overrides_runpath=no
13560      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13561      ;;
13562  esac
13563  ;;
13564
13565sysv4*MP*)
13566  if test -d /usr/nec ;then
13567    version_type=linux
13568    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13569    soname_spec='$libname${shared_ext}.$major'
13570    shlibpath_var=LD_LIBRARY_PATH
13571  fi
13572  ;;
13573
13574sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13575  version_type=freebsd-elf
13576  need_lib_prefix=no
13577  need_version=no
13578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13579  soname_spec='${libname}${release}${shared_ext}$major'
13580  shlibpath_var=LD_LIBRARY_PATH
13581  hardcode_into_libs=yes
13582  if test "$with_gnu_ld" = yes; then
13583    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13584    shlibpath_overrides_runpath=no
13585  else
13586    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13587    shlibpath_overrides_runpath=yes
13588    case $host_os in
13589      sco3.2v5*)
13590        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13591	;;
13592    esac
13593  fi
13594  sys_lib_dlsearch_path_spec='/usr/lib'
13595  ;;
13596
13597uts4*)
13598  version_type=linux
13599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13600  soname_spec='${libname}${release}${shared_ext}$major'
13601  shlibpath_var=LD_LIBRARY_PATH
13602  ;;
13603
13604*)
13605  dynamic_linker=no
13606  ;;
13607esac
13608{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13609echo "${ECHO_T}$dynamic_linker" >&6; }
13610test "$dynamic_linker" = no && can_build_shared=no
13611
13612if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13613  echo $ECHO_N "(cached) $ECHO_C" >&6
13614else
13615  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13616fi
13617
13618sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13619if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13620  echo $ECHO_N "(cached) $ECHO_C" >&6
13621else
13622  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13623fi
13624
13625sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13626
13627variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13628if test "$GCC" = yes; then
13629  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13630fi
13631
13632{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13633echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13634hardcode_action_CXX=
13635if test -n "$hardcode_libdir_flag_spec_CXX" || \
13636   test -n "$runpath_var_CXX" || \
13637   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13638
13639  # We can hardcode non-existant directories.
13640  if test "$hardcode_direct_CXX" != no &&
13641     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13642     # have to relink, otherwise we might link with an installed library
13643     # when we should be linking with a yet-to-be-installed one
13644     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13645     test "$hardcode_minus_L_CXX" != no; then
13646    # Linking always hardcodes the temporary library directory.
13647    hardcode_action_CXX=relink
13648  else
13649    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13650    hardcode_action_CXX=immediate
13651  fi
13652else
13653  # We cannot hardcode anything, or else we can only hardcode existing
13654  # directories.
13655  hardcode_action_CXX=unsupported
13656fi
13657{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13658echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13659
13660if test "$hardcode_action_CXX" = relink; then
13661  # Fast installation is not supported
13662  enable_fast_install=no
13663elif test "$shlibpath_overrides_runpath" = yes ||
13664     test "$enable_shared" = no; then
13665  # Fast installation is not necessary
13666  enable_fast_install=needless
13667fi
13668
13669
13670# The else clause should only fire when bootstrapping the
13671# libtool distribution, otherwise you forgot to ship ltmain.sh
13672# with your package, and you will get complaints that there are
13673# no rules to generate ltmain.sh.
13674if test -f "$ltmain"; then
13675  # See if we are running on zsh, and set the options which allow our commands through
13676  # without removal of \ escapes.
13677  if test -n "${ZSH_VERSION+set}" ; then
13678    setopt NO_GLOB_SUBST
13679  fi
13680  # Now quote all the things that may contain metacharacters while being
13681  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13682  # variables and quote the copies for generation of the libtool script.
13683  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13684    SED SHELL STRIP \
13685    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13686    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13687    deplibs_check_method reload_flag reload_cmds need_locks \
13688    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13689    lt_cv_sys_global_symbol_to_c_name_address \
13690    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13691    old_postinstall_cmds old_postuninstall_cmds \
13692    compiler_CXX \
13693    CC_CXX \
13694    LD_CXX \
13695    lt_prog_compiler_wl_CXX \
13696    lt_prog_compiler_pic_CXX \
13697    lt_prog_compiler_static_CXX \
13698    lt_prog_compiler_no_builtin_flag_CXX \
13699    export_dynamic_flag_spec_CXX \
13700    thread_safe_flag_spec_CXX \
13701    whole_archive_flag_spec_CXX \
13702    enable_shared_with_static_runtimes_CXX \
13703    old_archive_cmds_CXX \
13704    old_archive_from_new_cmds_CXX \
13705    predep_objects_CXX \
13706    postdep_objects_CXX \
13707    predeps_CXX \
13708    postdeps_CXX \
13709    compiler_lib_search_path_CXX \
13710    compiler_lib_search_dirs_CXX \
13711    archive_cmds_CXX \
13712    archive_expsym_cmds_CXX \
13713    postinstall_cmds_CXX \
13714    postuninstall_cmds_CXX \
13715    old_archive_from_expsyms_cmds_CXX \
13716    allow_undefined_flag_CXX \
13717    no_undefined_flag_CXX \
13718    export_symbols_cmds_CXX \
13719    hardcode_libdir_flag_spec_CXX \
13720    hardcode_libdir_flag_spec_ld_CXX \
13721    hardcode_libdir_separator_CXX \
13722    hardcode_automatic_CXX \
13723    module_cmds_CXX \
13724    module_expsym_cmds_CXX \
13725    lt_cv_prog_compiler_c_o_CXX \
13726    fix_srcfile_path_CXX \
13727    exclude_expsyms_CXX \
13728    include_expsyms_CXX; do
13729
13730    case $var in
13731    old_archive_cmds_CXX | \
13732    old_archive_from_new_cmds_CXX | \
13733    archive_cmds_CXX | \
13734    archive_expsym_cmds_CXX | \
13735    module_cmds_CXX | \
13736    module_expsym_cmds_CXX | \
13737    old_archive_from_expsyms_cmds_CXX | \
13738    export_symbols_cmds_CXX | \
13739    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13740    postinstall_cmds | postuninstall_cmds | \
13741    old_postinstall_cmds | old_postuninstall_cmds | \
13742    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13743      # Double-quote double-evaled strings.
13744      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13745      ;;
13746    *)
13747      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13748      ;;
13749    esac
13750  done
13751
13752  case $lt_echo in
13753  *'\$0 --fallback-echo"')
13754    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13755    ;;
13756  esac
13757
13758cfgfile="$ofile"
13759
13760  cat <<__EOF__ >> "$cfgfile"
13761# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13762
13763# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13764
13765# Shell to use when invoking shell scripts.
13766SHELL=$lt_SHELL
13767
13768# Whether or not to build shared libraries.
13769build_libtool_libs=$enable_shared
13770
13771# Whether or not to build static libraries.
13772build_old_libs=$enable_static
13773
13774# Whether or not to add -lc for building shared libraries.
13775build_libtool_need_lc=$archive_cmds_need_lc_CXX
13776
13777# Whether or not to disallow shared libs when runtime libs are static
13778allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13779
13780# Whether or not to optimize for fast installation.
13781fast_install=$enable_fast_install
13782
13783# The host system.
13784host_alias=$host_alias
13785host=$host
13786host_os=$host_os
13787
13788# The build system.
13789build_alias=$build_alias
13790build=$build
13791build_os=$build_os
13792
13793# An echo program that does not interpret backslashes.
13794echo=$lt_echo
13795
13796# The archiver.
13797AR=$lt_AR
13798AR_FLAGS=$lt_AR_FLAGS
13799
13800# A C compiler.
13801LTCC=$lt_LTCC
13802
13803# LTCC compiler flags.
13804LTCFLAGS=$lt_LTCFLAGS
13805
13806# A language-specific compiler.
13807CC=$lt_compiler_CXX
13808
13809# Is the compiler the GNU C compiler?
13810with_gcc=$GCC_CXX
13811
13812# An ERE matcher.
13813EGREP=$lt_EGREP
13814
13815# The linker used to build libraries.
13816LD=$lt_LD_CXX
13817
13818# Whether we need hard or soft links.
13819LN_S=$lt_LN_S
13820
13821# A BSD-compatible nm program.
13822NM=$lt_NM
13823
13824# A symbol stripping program
13825STRIP=$lt_STRIP
13826
13827# Used to examine libraries when file_magic_cmd begins "file"
13828MAGIC_CMD=$MAGIC_CMD
13829
13830# Used on cygwin: DLL creation program.
13831DLLTOOL="$DLLTOOL"
13832
13833# Used on cygwin: object dumper.
13834OBJDUMP="$OBJDUMP"
13835
13836# Used on cygwin: assembler.
13837AS="$AS"
13838
13839# The name of the directory that contains temporary libtool files.
13840objdir=$objdir
13841
13842# How to create reloadable object files.
13843reload_flag=$lt_reload_flag
13844reload_cmds=$lt_reload_cmds
13845
13846# How to pass a linker flag through the compiler.
13847wl=$lt_lt_prog_compiler_wl_CXX
13848
13849# Object file suffix (normally "o").
13850objext="$ac_objext"
13851
13852# Old archive suffix (normally "a").
13853libext="$libext"
13854
13855# Shared library suffix (normally ".so").
13856shrext_cmds='$shrext_cmds'
13857
13858# Executable file suffix (normally "").
13859exeext="$exeext"
13860
13861# Additional compiler flags for building library objects.
13862pic_flag=$lt_lt_prog_compiler_pic_CXX
13863pic_mode=$pic_mode
13864
13865# What is the maximum length of a command?
13866max_cmd_len=$lt_cv_sys_max_cmd_len
13867
13868# Does compiler simultaneously support -c and -o options?
13869compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13870
13871# Must we lock files when doing compilation?
13872need_locks=$lt_need_locks
13873
13874# Do we need the lib prefix for modules?
13875need_lib_prefix=$need_lib_prefix
13876
13877# Do we need a version for libraries?
13878need_version=$need_version
13879
13880# Whether dlopen is supported.
13881dlopen_support=$enable_dlopen
13882
13883# Whether dlopen of programs is supported.
13884dlopen_self=$enable_dlopen_self
13885
13886# Whether dlopen of statically linked programs is supported.
13887dlopen_self_static=$enable_dlopen_self_static
13888
13889# Compiler flag to prevent dynamic linking.
13890link_static_flag=$lt_lt_prog_compiler_static_CXX
13891
13892# Compiler flag to turn off builtin functions.
13893no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13894
13895# Compiler flag to allow reflexive dlopens.
13896export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13897
13898# Compiler flag to generate shared objects directly from archives.
13899whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13900
13901# Compiler flag to generate thread-safe objects.
13902thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13903
13904# Library versioning type.
13905version_type=$version_type
13906
13907# Format of library name prefix.
13908libname_spec=$lt_libname_spec
13909
13910# List of archive names.  First name is the real one, the rest are links.
13911# The last name is the one that the linker finds with -lNAME.
13912library_names_spec=$lt_library_names_spec
13913
13914# The coded name of the library, if different from the real name.
13915soname_spec=$lt_soname_spec
13916
13917# Commands used to build and install an old-style archive.
13918RANLIB=$lt_RANLIB
13919old_archive_cmds=$lt_old_archive_cmds_CXX
13920old_postinstall_cmds=$lt_old_postinstall_cmds
13921old_postuninstall_cmds=$lt_old_postuninstall_cmds
13922
13923# Create an old-style archive from a shared archive.
13924old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13925
13926# Create a temporary old-style archive to link instead of a shared archive.
13927old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13928
13929# Commands used to build and install a shared archive.
13930archive_cmds=$lt_archive_cmds_CXX
13931archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13932postinstall_cmds=$lt_postinstall_cmds
13933postuninstall_cmds=$lt_postuninstall_cmds
13934
13935# Commands used to build a loadable module (assumed same as above if empty)
13936module_cmds=$lt_module_cmds_CXX
13937module_expsym_cmds=$lt_module_expsym_cmds_CXX
13938
13939# Commands to strip libraries.
13940old_striplib=$lt_old_striplib
13941striplib=$lt_striplib
13942
13943# Dependencies to place before the objects being linked to create a
13944# shared library.
13945predep_objects=$lt_predep_objects_CXX
13946
13947# Dependencies to place after the objects being linked to create a
13948# shared library.
13949postdep_objects=$lt_postdep_objects_CXX
13950
13951# Dependencies to place before the objects being linked to create a
13952# shared library.
13953predeps=$lt_predeps_CXX
13954
13955# Dependencies to place after the objects being linked to create a
13956# shared library.
13957postdeps=$lt_postdeps_CXX
13958
13959# The directories searched by this compiler when creating a shared
13960# library
13961compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13962
13963# The library search path used internally by the compiler when linking
13964# a shared library.
13965compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13966
13967# Method to check whether dependent libraries are shared objects.
13968deplibs_check_method=$lt_deplibs_check_method
13969
13970# Command to use when deplibs_check_method == file_magic.
13971file_magic_cmd=$lt_file_magic_cmd
13972
13973# Flag that allows shared libraries with undefined symbols to be built.
13974allow_undefined_flag=$lt_allow_undefined_flag_CXX
13975
13976# Flag that forces no undefined symbols.
13977no_undefined_flag=$lt_no_undefined_flag_CXX
13978
13979# Commands used to finish a libtool library installation in a directory.
13980finish_cmds=$lt_finish_cmds
13981
13982# Same as above, but a single script fragment to be evaled but not shown.
13983finish_eval=$lt_finish_eval
13984
13985# Take the output of nm and produce a listing of raw symbols and C names.
13986global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13987
13988# Transform the output of nm in a proper C declaration
13989global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13990
13991# Transform the output of nm in a C name address pair
13992global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13993
13994# This is the shared library runtime path variable.
13995runpath_var=$runpath_var
13996
13997# This is the shared library path variable.
13998shlibpath_var=$shlibpath_var
13999
14000# Is shlibpath searched before the hard-coded library search path?
14001shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14002
14003# How to hardcode a shared library path into an executable.
14004hardcode_action=$hardcode_action_CXX
14005
14006# Whether we should hardcode library paths into libraries.
14007hardcode_into_libs=$hardcode_into_libs
14008
14009# Flag to hardcode \$libdir into a binary during linking.
14010# This must work even if \$libdir does not exist.
14011hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14012
14013# If ld is used when linking, flag to hardcode \$libdir into
14014# a binary during linking. This must work even if \$libdir does
14015# not exist.
14016hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14017
14018# Whether we need a single -rpath flag with a separated argument.
14019hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14020
14021# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14022# resulting binary.
14023hardcode_direct=$hardcode_direct_CXX
14024
14025# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14026# resulting binary.
14027hardcode_minus_L=$hardcode_minus_L_CXX
14028
14029# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14030# the resulting binary.
14031hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14032
14033# Set to yes if building a shared library automatically hardcodes DIR into the library
14034# and all subsequent libraries and executables linked against it.
14035hardcode_automatic=$hardcode_automatic_CXX
14036
14037# Variables whose values should be saved in libtool wrapper scripts and
14038# restored at relink time.
14039variables_saved_for_relink="$variables_saved_for_relink"
14040
14041# Whether libtool must link a program against all its dependency libraries.
14042link_all_deplibs=$link_all_deplibs_CXX
14043
14044# Compile-time system search path for libraries
14045sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14046
14047# Run-time system search path for libraries
14048sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14049
14050# Fix the shell variable \$srcfile for the compiler.
14051fix_srcfile_path=$lt_fix_srcfile_path
14052
14053# Set to yes if exported symbols are required.
14054always_export_symbols=$always_export_symbols_CXX
14055
14056# The commands to list exported symbols.
14057export_symbols_cmds=$lt_export_symbols_cmds_CXX
14058
14059# The commands to extract the exported symbol list from a shared archive.
14060extract_expsyms_cmds=$lt_extract_expsyms_cmds
14061
14062# Symbols that should not be listed in the preloaded symbols.
14063exclude_expsyms=$lt_exclude_expsyms_CXX
14064
14065# Symbols that must always be exported.
14066include_expsyms=$lt_include_expsyms_CXX
14067
14068# ### END LIBTOOL TAG CONFIG: $tagname
14069
14070__EOF__
14071
14072
14073else
14074  # If there is no Makefile yet, we rely on a make rule to execute
14075  # `config.status --recheck' to rerun these tests and create the
14076  # libtool script then.
14077  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14078  if test -f "$ltmain_in"; then
14079    test -f Makefile && make "$ltmain"
14080  fi
14081fi
14082
14083
14084ac_ext=c
14085ac_cpp='$CPP $CPPFLAGS'
14086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14088ac_compiler_gnu=$ac_cv_c_compiler_gnu
14089
14090CC=$lt_save_CC
14091LDCXX=$LD
14092LD=$lt_save_LD
14093GCC=$lt_save_GCC
14094with_gnu_ldcxx=$with_gnu_ld
14095with_gnu_ld=$lt_save_with_gnu_ld
14096lt_cv_path_LDCXX=$lt_cv_path_LD
14097lt_cv_path_LD=$lt_save_path_LD
14098lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14099lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14100
14101	else
14102	  tagname=""
14103	fi
14104	;;
14105
14106      F77)
14107	if test -n "$F77" && test "X$F77" != "Xno"; then
14108
14109ac_ext=f
14110ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14111ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14112ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14113
14114
14115archive_cmds_need_lc_F77=no
14116allow_undefined_flag_F77=
14117always_export_symbols_F77=no
14118archive_expsym_cmds_F77=
14119export_dynamic_flag_spec_F77=
14120hardcode_direct_F77=no
14121hardcode_libdir_flag_spec_F77=
14122hardcode_libdir_flag_spec_ld_F77=
14123hardcode_libdir_separator_F77=
14124hardcode_minus_L_F77=no
14125hardcode_automatic_F77=no
14126module_cmds_F77=
14127module_expsym_cmds_F77=
14128link_all_deplibs_F77=unknown
14129old_archive_cmds_F77=$old_archive_cmds
14130no_undefined_flag_F77=
14131whole_archive_flag_spec_F77=
14132enable_shared_with_static_runtimes_F77=no
14133
14134# Source file extension for f77 test sources.
14135ac_ext=f
14136
14137# Object file extension for compiled f77 test sources.
14138objext=o
14139objext_F77=$objext
14140
14141# Code to be used in simple compile tests
14142lt_simple_compile_test_code="\
14143      subroutine t
14144      return
14145      end
14146"
14147
14148# Code to be used in simple link tests
14149lt_simple_link_test_code="\
14150      program t
14151      end
14152"
14153
14154# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14155
14156# If no C compiler was specified, use CC.
14157LTCC=${LTCC-"$CC"}
14158
14159# If no C compiler flags were specified, use CFLAGS.
14160LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14161
14162# Allow CC to be a program name with arguments.
14163compiler=$CC
14164
14165
14166# save warnings/boilerplate of simple test code
14167ac_outfile=conftest.$ac_objext
14168echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14169eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14170_lt_compiler_boilerplate=`cat conftest.err`
14171$rm conftest*
14172
14173ac_outfile=conftest.$ac_objext
14174echo "$lt_simple_link_test_code" >conftest.$ac_ext
14175eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14176_lt_linker_boilerplate=`cat conftest.err`
14177$rm -r conftest*
14178
14179
14180# Allow CC to be a program name with arguments.
14181lt_save_CC="$CC"
14182CC=${F77-"f77"}
14183compiler=$CC
14184compiler_F77=$CC
14185for cc_temp in $compiler""; do
14186  case $cc_temp in
14187    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14188    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14189    \-*) ;;
14190    *) break;;
14191  esac
14192done
14193cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14194
14195
14196{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14197echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14198{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14199echo "${ECHO_T}$can_build_shared" >&6; }
14200
14201{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14202echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14203test "$can_build_shared" = "no" && enable_shared=no
14204
14205# On AIX, shared libraries and static libraries use the same namespace, and
14206# are all built from PIC.
14207case $host_os in
14208aix3*)
14209  test "$enable_shared" = yes && enable_static=no
14210  if test -n "$RANLIB"; then
14211    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14212    postinstall_cmds='$RANLIB $lib'
14213  fi
14214  ;;
14215aix[4-9]*)
14216  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14217    test "$enable_shared" = yes && enable_static=no
14218  fi
14219  ;;
14220esac
14221{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14222echo "${ECHO_T}$enable_shared" >&6; }
14223
14224{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14225echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14226# Make sure either enable_shared or enable_static is yes.
14227test "$enable_shared" = yes || enable_static=yes
14228{ echo "$as_me:$LINENO: result: $enable_static" >&5
14229echo "${ECHO_T}$enable_static" >&6; }
14230
14231GCC_F77="$G77"
14232LD_F77="$LD"
14233
14234lt_prog_compiler_wl_F77=
14235lt_prog_compiler_pic_F77=
14236lt_prog_compiler_static_F77=
14237
14238{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14239echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14240
14241  if test "$GCC" = yes; then
14242    lt_prog_compiler_wl_F77='-Wl,'
14243    lt_prog_compiler_static_F77='-static'
14244
14245    case $host_os in
14246      aix*)
14247      # All AIX code is PIC.
14248      if test "$host_cpu" = ia64; then
14249	# AIX 5 now supports IA64 processor
14250	lt_prog_compiler_static_F77='-Bstatic'
14251      fi
14252      ;;
14253
14254    amigaos*)
14255      # FIXME: we need at least 68020 code to build shared libraries, but
14256      # adding the `-m68020' flag to GCC prevents building anything better,
14257      # like `-m68040'.
14258      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14259      ;;
14260
14261    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14262      # PIC is the default for these OSes.
14263      ;;
14264
14265    mingw* | cygwin* | pw32* | os2*)
14266      # This hack is so that the source file can tell whether it is being
14267      # built for inclusion in a dll (and should export symbols for example).
14268      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14269      # (--disable-auto-import) libraries
14270      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14271      ;;
14272
14273    darwin* | rhapsody*)
14274      # PIC is the default on this platform
14275      # Common symbols not allowed in MH_DYLIB files
14276      lt_prog_compiler_pic_F77='-fno-common'
14277      ;;
14278
14279    interix[3-9]*)
14280      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14281      # Instead, we relocate shared libraries at runtime.
14282      ;;
14283
14284    msdosdjgpp*)
14285      # Just because we use GCC doesn't mean we suddenly get shared libraries
14286      # on systems that don't support them.
14287      lt_prog_compiler_can_build_shared_F77=no
14288      enable_shared=no
14289      ;;
14290
14291    sysv4*MP*)
14292      if test -d /usr/nec; then
14293	lt_prog_compiler_pic_F77=-Kconform_pic
14294      fi
14295      ;;
14296
14297    hpux*)
14298      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14299      # not for PA HP-UX.
14300      case $host_cpu in
14301      hppa*64*|ia64*)
14302	# +Z the default
14303	;;
14304      *)
14305	lt_prog_compiler_pic_F77='-fPIC'
14306	;;
14307      esac
14308      ;;
14309
14310    *)
14311      lt_prog_compiler_pic_F77='-fPIC'
14312      ;;
14313    esac
14314  else
14315    # PORTME Check for flag to pass linker flags through the system compiler.
14316    case $host_os in
14317    aix*)
14318      lt_prog_compiler_wl_F77='-Wl,'
14319      if test "$host_cpu" = ia64; then
14320	# AIX 5 now supports IA64 processor
14321	lt_prog_compiler_static_F77='-Bstatic'
14322      else
14323	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14324      fi
14325      ;;
14326      darwin*)
14327        # PIC is the default on this platform
14328        # Common symbols not allowed in MH_DYLIB files
14329       case $cc_basename in
14330         xlc*)
14331         lt_prog_compiler_pic_F77='-qnocommon'
14332         lt_prog_compiler_wl_F77='-Wl,'
14333         ;;
14334       esac
14335       ;;
14336
14337    mingw* | cygwin* | pw32* | os2*)
14338      # This hack is so that the source file can tell whether it is being
14339      # built for inclusion in a dll (and should export symbols for example).
14340      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14341      ;;
14342
14343    hpux9* | hpux10* | hpux11*)
14344      lt_prog_compiler_wl_F77='-Wl,'
14345      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14346      # not for PA HP-UX.
14347      case $host_cpu in
14348      hppa*64*|ia64*)
14349	# +Z the default
14350	;;
14351      *)
14352	lt_prog_compiler_pic_F77='+Z'
14353	;;
14354      esac
14355      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14356      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14357      ;;
14358
14359    irix5* | irix6* | nonstopux*)
14360      lt_prog_compiler_wl_F77='-Wl,'
14361      # PIC (with -KPIC) is the default.
14362      lt_prog_compiler_static_F77='-non_shared'
14363      ;;
14364
14365    newsos6)
14366      lt_prog_compiler_pic_F77='-KPIC'
14367      lt_prog_compiler_static_F77='-Bstatic'
14368      ;;
14369
14370    linux* | k*bsd*-gnu)
14371      case $cc_basename in
14372      icc* | ecc*)
14373	lt_prog_compiler_wl_F77='-Wl,'
14374	lt_prog_compiler_pic_F77='-KPIC'
14375	lt_prog_compiler_static_F77='-static'
14376        ;;
14377      pgcc* | pgf77* | pgf90* | pgf95*)
14378        # Portland Group compilers (*not* the Pentium gcc compiler,
14379	# which looks to be a dead project)
14380	lt_prog_compiler_wl_F77='-Wl,'
14381	lt_prog_compiler_pic_F77='-fpic'
14382	lt_prog_compiler_static_F77='-Bstatic'
14383        ;;
14384      ccc*)
14385        lt_prog_compiler_wl_F77='-Wl,'
14386        # All Alpha code is PIC.
14387        lt_prog_compiler_static_F77='-non_shared'
14388        ;;
14389      *)
14390        case `$CC -V 2>&1 | sed 5q` in
14391	*Sun\ C*)
14392	  # Sun C 5.9
14393	  lt_prog_compiler_pic_F77='-KPIC'
14394	  lt_prog_compiler_static_F77='-Bstatic'
14395	  lt_prog_compiler_wl_F77='-Wl,'
14396	  ;;
14397	*Sun\ F*)
14398	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14399	  lt_prog_compiler_pic_F77='-KPIC'
14400	  lt_prog_compiler_static_F77='-Bstatic'
14401	  lt_prog_compiler_wl_F77=''
14402	  ;;
14403	esac
14404	;;
14405      esac
14406      ;;
14407
14408    osf3* | osf4* | osf5*)
14409      lt_prog_compiler_wl_F77='-Wl,'
14410      # All OSF/1 code is PIC.
14411      lt_prog_compiler_static_F77='-non_shared'
14412      ;;
14413
14414    rdos*)
14415      lt_prog_compiler_static_F77='-non_shared'
14416      ;;
14417
14418    solaris*)
14419      lt_prog_compiler_pic_F77='-KPIC'
14420      lt_prog_compiler_static_F77='-Bstatic'
14421      case $cc_basename in
14422      f77* | f90* | f95*)
14423	lt_prog_compiler_wl_F77='-Qoption ld ';;
14424      *)
14425	lt_prog_compiler_wl_F77='-Wl,';;
14426      esac
14427      ;;
14428
14429    sunos4*)
14430      lt_prog_compiler_wl_F77='-Qoption ld '
14431      lt_prog_compiler_pic_F77='-PIC'
14432      lt_prog_compiler_static_F77='-Bstatic'
14433      ;;
14434
14435    sysv4 | sysv4.2uw2* | sysv4.3*)
14436      lt_prog_compiler_wl_F77='-Wl,'
14437      lt_prog_compiler_pic_F77='-KPIC'
14438      lt_prog_compiler_static_F77='-Bstatic'
14439      ;;
14440
14441    sysv4*MP*)
14442      if test -d /usr/nec ;then
14443	lt_prog_compiler_pic_F77='-Kconform_pic'
14444	lt_prog_compiler_static_F77='-Bstatic'
14445      fi
14446      ;;
14447
14448    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14449      lt_prog_compiler_wl_F77='-Wl,'
14450      lt_prog_compiler_pic_F77='-KPIC'
14451      lt_prog_compiler_static_F77='-Bstatic'
14452      ;;
14453
14454    unicos*)
14455      lt_prog_compiler_wl_F77='-Wl,'
14456      lt_prog_compiler_can_build_shared_F77=no
14457      ;;
14458
14459    uts4*)
14460      lt_prog_compiler_pic_F77='-pic'
14461      lt_prog_compiler_static_F77='-Bstatic'
14462      ;;
14463
14464    *)
14465      lt_prog_compiler_can_build_shared_F77=no
14466      ;;
14467    esac
14468  fi
14469
14470{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14471echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14472
14473#
14474# Check to make sure the PIC flag actually works.
14475#
14476if test -n "$lt_prog_compiler_pic_F77"; then
14477
14478{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14479echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14480if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14481  echo $ECHO_N "(cached) $ECHO_C" >&6
14482else
14483  lt_cv_prog_compiler_pic_works_F77=no
14484  ac_outfile=conftest.$ac_objext
14485   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14486   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14487   # Insert the option either (1) after the last *FLAGS variable, or
14488   # (2) before a word containing "conftest.", or (3) at the end.
14489   # Note that $ac_compile itself does not contain backslashes and begins
14490   # with a dollar sign (not a hyphen), so the echo should work correctly.
14491   # The option is referenced via a variable to avoid confusing sed.
14492   lt_compile=`echo "$ac_compile" | $SED \
14493   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14494   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14495   -e 's:$: $lt_compiler_flag:'`
14496   (eval echo "\"\$as_me:14496: $lt_compile\"" >&5)
14497   (eval "$lt_compile" 2>conftest.err)
14498   ac_status=$?
14499   cat conftest.err >&5
14500   echo "$as_me:14500: \$? = $ac_status" >&5
14501   if (exit $ac_status) && test -s "$ac_outfile"; then
14502     # The compiler can only warn and ignore the option if not recognized
14503     # So say no if there are warnings other than the usual output.
14504     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14505     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14506     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14507       lt_cv_prog_compiler_pic_works_F77=yes
14508     fi
14509   fi
14510   $rm conftest*
14511
14512fi
14513{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14514echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14515
14516if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14517    case $lt_prog_compiler_pic_F77 in
14518     "" | " "*) ;;
14519     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14520     esac
14521else
14522    lt_prog_compiler_pic_F77=
14523     lt_prog_compiler_can_build_shared_F77=no
14524fi
14525
14526fi
14527case $host_os in
14528  # For platforms which do not support PIC, -DPIC is meaningless:
14529  *djgpp*)
14530    lt_prog_compiler_pic_F77=
14531    ;;
14532  *)
14533    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14534    ;;
14535esac
14536
14537#
14538# Check to make sure the static flag actually works.
14539#
14540wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14541{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14542echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14543if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14544  echo $ECHO_N "(cached) $ECHO_C" >&6
14545else
14546  lt_cv_prog_compiler_static_works_F77=no
14547   save_LDFLAGS="$LDFLAGS"
14548   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14549   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14550   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14551     # The linker can only warn and ignore the option if not recognized
14552     # So say no if there are warnings
14553     if test -s conftest.err; then
14554       # Append any errors to the config.log.
14555       cat conftest.err 1>&5
14556       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14557       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14558       if diff conftest.exp conftest.er2 >/dev/null; then
14559         lt_cv_prog_compiler_static_works_F77=yes
14560       fi
14561     else
14562       lt_cv_prog_compiler_static_works_F77=yes
14563     fi
14564   fi
14565   $rm -r conftest*
14566   LDFLAGS="$save_LDFLAGS"
14567
14568fi
14569{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14570echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14571
14572if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14573    :
14574else
14575    lt_prog_compiler_static_F77=
14576fi
14577
14578
14579{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14580echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14581if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14582  echo $ECHO_N "(cached) $ECHO_C" >&6
14583else
14584  lt_cv_prog_compiler_c_o_F77=no
14585   $rm -r conftest 2>/dev/null
14586   mkdir conftest
14587   cd conftest
14588   mkdir out
14589   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14590
14591   lt_compiler_flag="-o out/conftest2.$ac_objext"
14592   # Insert the option either (1) after the last *FLAGS variable, or
14593   # (2) before a word containing "conftest.", or (3) at the end.
14594   # Note that $ac_compile itself does not contain backslashes and begins
14595   # with a dollar sign (not a hyphen), so the echo should work correctly.
14596   lt_compile=`echo "$ac_compile" | $SED \
14597   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14598   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14599   -e 's:$: $lt_compiler_flag:'`
14600   (eval echo "\"\$as_me:14600: $lt_compile\"" >&5)
14601   (eval "$lt_compile" 2>out/conftest.err)
14602   ac_status=$?
14603   cat out/conftest.err >&5
14604   echo "$as_me:14604: \$? = $ac_status" >&5
14605   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14606   then
14607     # The compiler can only warn and ignore the option if not recognized
14608     # So say no if there are warnings
14609     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14610     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14611     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14612       lt_cv_prog_compiler_c_o_F77=yes
14613     fi
14614   fi
14615   chmod u+w . 2>&5
14616   $rm conftest*
14617   # SGI C++ compiler will create directory out/ii_files/ for
14618   # template instantiation
14619   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14620   $rm out/* && rmdir out
14621   cd ..
14622   rmdir conftest
14623   $rm conftest*
14624
14625fi
14626{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14627echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14628
14629
14630hard_links="nottested"
14631if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14632  # do not overwrite the value of need_locks provided by the user
14633  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14634echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14635  hard_links=yes
14636  $rm conftest*
14637  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14638  touch conftest.a
14639  ln conftest.a conftest.b 2>&5 || hard_links=no
14640  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14641  { echo "$as_me:$LINENO: result: $hard_links" >&5
14642echo "${ECHO_T}$hard_links" >&6; }
14643  if test "$hard_links" = no; then
14644    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14645echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14646    need_locks=warn
14647  fi
14648else
14649  need_locks=no
14650fi
14651
14652{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14653echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14654
14655  runpath_var=
14656  allow_undefined_flag_F77=
14657  enable_shared_with_static_runtimes_F77=no
14658  archive_cmds_F77=
14659  archive_expsym_cmds_F77=
14660  old_archive_From_new_cmds_F77=
14661  old_archive_from_expsyms_cmds_F77=
14662  export_dynamic_flag_spec_F77=
14663  whole_archive_flag_spec_F77=
14664  thread_safe_flag_spec_F77=
14665  hardcode_libdir_flag_spec_F77=
14666  hardcode_libdir_flag_spec_ld_F77=
14667  hardcode_libdir_separator_F77=
14668  hardcode_direct_F77=no
14669  hardcode_minus_L_F77=no
14670  hardcode_shlibpath_var_F77=unsupported
14671  link_all_deplibs_F77=unknown
14672  hardcode_automatic_F77=no
14673  module_cmds_F77=
14674  module_expsym_cmds_F77=
14675  always_export_symbols_F77=no
14676  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14677  # include_expsyms should be a list of space-separated symbols to be *always*
14678  # included in the symbol list
14679  include_expsyms_F77=
14680  # exclude_expsyms can be an extended regexp of symbols to exclude
14681  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14682  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14683  # as well as any symbol that contains `d'.
14684  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14685  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14686  # platforms (ab)use it in PIC code, but their linkers get confused if
14687  # the symbol is explicitly referenced.  Since portable code cannot
14688  # rely on this symbol name, it's probably fine to never include it in
14689  # preloaded symbol tables.
14690  # Exclude shared library initialization/finalization symbols.
14691  extract_expsyms_cmds=
14692  # Just being paranoid about ensuring that cc_basename is set.
14693  for cc_temp in $compiler""; do
14694  case $cc_temp in
14695    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14696    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14697    \-*) ;;
14698    *) break;;
14699  esac
14700done
14701cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14702
14703  case $host_os in
14704  cygwin* | mingw* | pw32*)
14705    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14706    # When not using gcc, we currently assume that we are using
14707    # Microsoft Visual C++.
14708    if test "$GCC" != yes; then
14709      with_gnu_ld=no
14710    fi
14711    ;;
14712  interix*)
14713    # we just hope/assume this is gcc and not c89 (= MSVC++)
14714    with_gnu_ld=yes
14715    ;;
14716  openbsd*)
14717    with_gnu_ld=no
14718    ;;
14719  esac
14720
14721  ld_shlibs_F77=yes
14722  if test "$with_gnu_ld" = yes; then
14723    # If archive_cmds runs LD, not CC, wlarc should be empty
14724    wlarc='${wl}'
14725
14726    # Set some defaults for GNU ld with shared library support. These
14727    # are reset later if shared libraries are not supported. Putting them
14728    # here allows them to be overridden if necessary.
14729    runpath_var=LD_RUN_PATH
14730    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14731    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14732    # ancient GNU ld didn't support --whole-archive et. al.
14733    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14734	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14735      else
14736  	whole_archive_flag_spec_F77=
14737    fi
14738    supports_anon_versioning=no
14739    case `$LD -v 2>/dev/null` in
14740      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14741      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14742      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14743      *\ 2.11.*) ;; # other 2.11 versions
14744      *) supports_anon_versioning=yes ;;
14745    esac
14746
14747    # See if GNU ld supports shared libraries.
14748    case $host_os in
14749    aix[3-9]*)
14750      # On AIX/PPC, the GNU linker is very broken
14751      if test "$host_cpu" != ia64; then
14752	ld_shlibs_F77=no
14753	cat <<EOF 1>&2
14754
14755*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14756*** to be unable to reliably create shared libraries on AIX.
14757*** Therefore, libtool is disabling shared libraries support.  If you
14758*** really care for shared libraries, you may want to modify your PATH
14759*** so that a non-GNU linker is found, and then restart.
14760
14761EOF
14762      fi
14763      ;;
14764
14765    amigaos*)
14766      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)'
14767      hardcode_libdir_flag_spec_F77='-L$libdir'
14768      hardcode_minus_L_F77=yes
14769
14770      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14771      # that the semantics of dynamic libraries on AmigaOS, at least up
14772      # to version 4, is to share data among multiple programs linked
14773      # with the same dynamic library.  Since this doesn't match the
14774      # behavior of shared libraries on other platforms, we can't use
14775      # them.
14776      ld_shlibs_F77=no
14777      ;;
14778
14779    beos*)
14780      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14781	allow_undefined_flag_F77=unsupported
14782	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14783	# support --undefined.  This deserves some investigation.  FIXME
14784	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14785      else
14786	ld_shlibs_F77=no
14787      fi
14788      ;;
14789
14790    cygwin* | mingw* | pw32*)
14791      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14792      # as there is no search path for DLLs.
14793      hardcode_libdir_flag_spec_F77='-L$libdir'
14794      allow_undefined_flag_F77=unsupported
14795      always_export_symbols_F77=no
14796      enable_shared_with_static_runtimes_F77=yes
14797      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14798
14799      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14800        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14801	# If the export-symbols file already is a .def file (1st line
14802	# is EXPORTS), use it as is; otherwise, prepend...
14803	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14804	  cp $export_symbols $output_objdir/$soname.def;
14805	else
14806	  echo EXPORTS > $output_objdir/$soname.def;
14807	  cat $export_symbols >> $output_objdir/$soname.def;
14808	fi~
14809	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14810      else
14811	ld_shlibs_F77=no
14812      fi
14813      ;;
14814
14815    interix[3-9]*)
14816      hardcode_direct_F77=no
14817      hardcode_shlibpath_var_F77=no
14818      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14819      export_dynamic_flag_spec_F77='${wl}-E'
14820      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14821      # Instead, shared libraries are loaded at an image base (0x10000000 by
14822      # default) and relocated if they conflict, which is a slow very memory
14823      # consuming and fragmenting process.  To avoid this, we pick a random,
14824      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14825      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14826      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'
14827      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'
14828      ;;
14829
14830    gnu* | linux* | k*bsd*-gnu)
14831      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14832	tmp_addflag=
14833	case $cc_basename,$host_cpu in
14834	pgcc*)				# Portland Group C compiler
14835	  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'
14836	  tmp_addflag=' $pic_flag'
14837	  ;;
14838	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14839	  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'
14840	  tmp_addflag=' $pic_flag -Mnomain' ;;
14841	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14842	  tmp_addflag=' -i_dynamic' ;;
14843	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14844	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14845	ifc* | ifort*)			# Intel Fortran compiler
14846	  tmp_addflag=' -nofor_main' ;;
14847	esac
14848	case `$CC -V 2>&1 | sed 5q` in
14849	*Sun\ C*)			# Sun C 5.9
14850	  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'
14851	  tmp_sharedflag='-G' ;;
14852	*Sun\ F*)			# Sun Fortran 8.3
14853	  tmp_sharedflag='-G' ;;
14854	*)
14855	  tmp_sharedflag='-shared' ;;
14856	esac
14857	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14858
14859	if test $supports_anon_versioning = yes; then
14860	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14861  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14862  $echo "local: *; };" >> $output_objdir/$libname.ver~
14863	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14864	fi
14865	link_all_deplibs_F77=no
14866      else
14867	ld_shlibs_F77=no
14868      fi
14869      ;;
14870
14871    netbsd* | netbsdelf*-gnu)
14872      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14873	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14874	wlarc=
14875      else
14876	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14877	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14878      fi
14879      ;;
14880
14881    solaris*)
14882      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14883	ld_shlibs_F77=no
14884	cat <<EOF 1>&2
14885
14886*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14887*** create shared libraries on Solaris systems.  Therefore, libtool
14888*** is disabling shared libraries support.  We urge you to upgrade GNU
14889*** binutils to release 2.9.1 or newer.  Another option is to modify
14890*** your PATH or compiler configuration so that the native linker is
14891*** used, and then restart.
14892
14893EOF
14894      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14895	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14896	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14897      else
14898	ld_shlibs_F77=no
14899      fi
14900      ;;
14901
14902    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14903      case `$LD -v 2>&1` in
14904        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14905	ld_shlibs_F77=no
14906	cat <<_LT_EOF 1>&2
14907
14908*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14909*** reliably create shared libraries on SCO systems.  Therefore, libtool
14910*** is disabling shared libraries support.  We urge you to upgrade GNU
14911*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14912*** your PATH or compiler configuration so that the native linker is
14913*** used, and then restart.
14914
14915_LT_EOF
14916	;;
14917	*)
14918	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14919	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14920	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14921	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14922	  else
14923	    ld_shlibs_F77=no
14924	  fi
14925	;;
14926      esac
14927      ;;
14928
14929    sunos4*)
14930      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14931      wlarc=
14932      hardcode_direct_F77=yes
14933      hardcode_shlibpath_var_F77=no
14934      ;;
14935
14936    *)
14937      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14938	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14939	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14940      else
14941	ld_shlibs_F77=no
14942      fi
14943      ;;
14944    esac
14945
14946    if test "$ld_shlibs_F77" = no; then
14947      runpath_var=
14948      hardcode_libdir_flag_spec_F77=
14949      export_dynamic_flag_spec_F77=
14950      whole_archive_flag_spec_F77=
14951    fi
14952  else
14953    # PORTME fill in a description of your system's linker (not GNU ld)
14954    case $host_os in
14955    aix3*)
14956      allow_undefined_flag_F77=unsupported
14957      always_export_symbols_F77=yes
14958      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'
14959      # Note: this linker hardcodes the directories in LIBPATH if there
14960      # are no directories specified by -L.
14961      hardcode_minus_L_F77=yes
14962      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14963	# Neither direct hardcoding nor static linking is supported with a
14964	# broken collect2.
14965	hardcode_direct_F77=unsupported
14966      fi
14967      ;;
14968
14969    aix[4-9]*)
14970      if test "$host_cpu" = ia64; then
14971	# On IA64, the linker does run time linking by default, so we don't
14972	# have to do anything special.
14973	aix_use_runtimelinking=no
14974	exp_sym_flag='-Bexport'
14975	no_entry_flag=""
14976      else
14977	# If we're using GNU nm, then we don't want the "-C" option.
14978	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14979	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14980	  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'
14981	else
14982	  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'
14983	fi
14984	aix_use_runtimelinking=no
14985
14986	# Test if we are trying to use run time linking or normal
14987	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14988	# need to do runtime linking.
14989	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14990	  for ld_flag in $LDFLAGS; do
14991  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14992  	    aix_use_runtimelinking=yes
14993  	    break
14994  	  fi
14995	  done
14996	  ;;
14997	esac
14998
14999	exp_sym_flag='-bexport'
15000	no_entry_flag='-bnoentry'
15001      fi
15002
15003      # When large executables or shared objects are built, AIX ld can
15004      # have problems creating the table of contents.  If linking a library
15005      # or program results in "error TOC overflow" add -mminimal-toc to
15006      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15007      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15008
15009      archive_cmds_F77=''
15010      hardcode_direct_F77=yes
15011      hardcode_libdir_separator_F77=':'
15012      link_all_deplibs_F77=yes
15013
15014      if test "$GCC" = yes; then
15015	case $host_os in aix4.[012]|aix4.[012].*)
15016	# We only want to do this on AIX 4.2 and lower, the check
15017	# below for broken collect2 doesn't work under 4.3+
15018	  collect2name=`${CC} -print-prog-name=collect2`
15019	  if test -f "$collect2name" && \
15020  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15021	  then
15022  	  # We have reworked collect2
15023  	  :
15024	  else
15025  	  # We have old collect2
15026  	  hardcode_direct_F77=unsupported
15027  	  # It fails to find uninstalled libraries when the uninstalled
15028  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15029  	  # to unsupported forces relinking
15030  	  hardcode_minus_L_F77=yes
15031  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15032  	  hardcode_libdir_separator_F77=
15033	  fi
15034	  ;;
15035	esac
15036	shared_flag='-shared'
15037	if test "$aix_use_runtimelinking" = yes; then
15038	  shared_flag="$shared_flag "'${wl}-G'
15039	fi
15040      else
15041	# not using gcc
15042	if test "$host_cpu" = ia64; then
15043  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15044  	# chokes on -Wl,-G. The following line is correct:
15045	  shared_flag='-G'
15046	else
15047	  if test "$aix_use_runtimelinking" = yes; then
15048	    shared_flag='${wl}-G'
15049	  else
15050	    shared_flag='${wl}-bM:SRE'
15051	  fi
15052	fi
15053      fi
15054
15055      # It seems that -bexpall does not export symbols beginning with
15056      # underscore (_), so it is better to generate a list of symbols to export.
15057      always_export_symbols_F77=yes
15058      if test "$aix_use_runtimelinking" = yes; then
15059	# Warning - without using the other runtime loading flags (-brtl),
15060	# -berok will link without error, but may produce a broken library.
15061	allow_undefined_flag_F77='-berok'
15062       # Determine the default libpath from the value encoded in an empty executable.
15063       cat >conftest.$ac_ext <<_ACEOF
15064      program main
15065
15066      end
15067_ACEOF
15068rm -f conftest.$ac_objext conftest$ac_exeext
15069if { (ac_try="$ac_link"
15070case "(($ac_try" in
15071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072  *) ac_try_echo=$ac_try;;
15073esac
15074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075  (eval "$ac_link") 2>conftest.er1
15076  ac_status=$?
15077  grep -v '^ *+' conftest.er1 >conftest.err
15078  rm -f conftest.er1
15079  cat conftest.err >&5
15080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081  (exit $ac_status); } && {
15082	 test -z "$ac_f77_werror_flag" ||
15083	 test ! -s conftest.err
15084       } && test -s conftest$ac_exeext &&
15085       $as_test_x conftest$ac_exeext; then
15086
15087lt_aix_libpath_sed='
15088    /Import File Strings/,/^$/ {
15089	/^0/ {
15090	    s/^0  *\(.*\)$/\1/
15091	    p
15092	}
15093    }'
15094aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15095# Check for a 64-bit object if we didn't find anything.
15096if test -z "$aix_libpath"; then
15097  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15098fi
15099else
15100  echo "$as_me: failed program was:" >&5
15101sed 's/^/| /' conftest.$ac_ext >&5
15102
15103
15104fi
15105
15106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15107      conftest$ac_exeext conftest.$ac_ext
15108if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15109
15110       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15111	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"
15112       else
15113	if test "$host_cpu" = ia64; then
15114	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15115	  allow_undefined_flag_F77="-z nodefs"
15116	  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"
15117	else
15118	 # Determine the default libpath from the value encoded in an empty executable.
15119	 cat >conftest.$ac_ext <<_ACEOF
15120      program main
15121
15122      end
15123_ACEOF
15124rm -f conftest.$ac_objext conftest$ac_exeext
15125if { (ac_try="$ac_link"
15126case "(($ac_try" in
15127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128  *) ac_try_echo=$ac_try;;
15129esac
15130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131  (eval "$ac_link") 2>conftest.er1
15132  ac_status=$?
15133  grep -v '^ *+' conftest.er1 >conftest.err
15134  rm -f conftest.er1
15135  cat conftest.err >&5
15136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137  (exit $ac_status); } && {
15138	 test -z "$ac_f77_werror_flag" ||
15139	 test ! -s conftest.err
15140       } && test -s conftest$ac_exeext &&
15141       $as_test_x conftest$ac_exeext; then
15142
15143lt_aix_libpath_sed='
15144    /Import File Strings/,/^$/ {
15145	/^0/ {
15146	    s/^0  *\(.*\)$/\1/
15147	    p
15148	}
15149    }'
15150aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15151# Check for a 64-bit object if we didn't find anything.
15152if test -z "$aix_libpath"; then
15153  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15154fi
15155else
15156  echo "$as_me: failed program was:" >&5
15157sed 's/^/| /' conftest.$ac_ext >&5
15158
15159
15160fi
15161
15162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15163      conftest$ac_exeext conftest.$ac_ext
15164if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15165
15166	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15167	  # Warning - without using the other run time loading flags,
15168	  # -berok will link without error, but may produce a broken library.
15169	  no_undefined_flag_F77=' ${wl}-bernotok'
15170	  allow_undefined_flag_F77=' ${wl}-berok'
15171	  # Exported symbols can be pulled into shared objects from archives
15172	  whole_archive_flag_spec_F77='$convenience'
15173	  archive_cmds_need_lc_F77=yes
15174	  # This is similar to how AIX traditionally builds its shared libraries.
15175	  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'
15176	fi
15177      fi
15178      ;;
15179
15180    amigaos*)
15181      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)'
15182      hardcode_libdir_flag_spec_F77='-L$libdir'
15183      hardcode_minus_L_F77=yes
15184      # see comment about different semantics on the GNU ld section
15185      ld_shlibs_F77=no
15186      ;;
15187
15188    bsdi[45]*)
15189      export_dynamic_flag_spec_F77=-rdynamic
15190      ;;
15191
15192    cygwin* | mingw* | pw32*)
15193      # When not using gcc, we currently assume that we are using
15194      # Microsoft Visual C++.
15195      # hardcode_libdir_flag_spec is actually meaningless, as there is
15196      # no search path for DLLs.
15197      hardcode_libdir_flag_spec_F77=' '
15198      allow_undefined_flag_F77=unsupported
15199      # Tell ltmain to make .lib files, not .a files.
15200      libext=lib
15201      # Tell ltmain to make .dll files, not .so files.
15202      shrext_cmds=".dll"
15203      # FIXME: Setting linknames here is a bad hack.
15204      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15205      # The linker will automatically build a .lib file if we build a DLL.
15206      old_archive_From_new_cmds_F77='true'
15207      # FIXME: Should let the user specify the lib program.
15208      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15209      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15210      enable_shared_with_static_runtimes_F77=yes
15211      ;;
15212
15213    darwin* | rhapsody*)
15214      case $host_os in
15215        rhapsody* | darwin1.[012])
15216         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15217         ;;
15218       *) # Darwin 1.3 on
15219         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15220           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15221         else
15222           case ${MACOSX_DEPLOYMENT_TARGET} in
15223             10.[012])
15224               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15225               ;;
15226             10.*)
15227               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15228               ;;
15229           esac
15230         fi
15231         ;;
15232      esac
15233      archive_cmds_need_lc_F77=no
15234      hardcode_direct_F77=no
15235      hardcode_automatic_F77=yes
15236      hardcode_shlibpath_var_F77=unsupported
15237      whole_archive_flag_spec_F77=''
15238      link_all_deplibs_F77=yes
15239    if test "$GCC" = yes ; then
15240    	output_verbose_link_cmd='echo'
15241        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15242        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15243        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15244        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15245    else
15246      case $cc_basename in
15247        xlc*)
15248         output_verbose_link_cmd='echo'
15249         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15250         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15251          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15252         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}'
15253          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}'
15254          ;;
15255       *)
15256         ld_shlibs_F77=no
15257          ;;
15258      esac
15259    fi
15260      ;;
15261
15262    dgux*)
15263      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15264      hardcode_libdir_flag_spec_F77='-L$libdir'
15265      hardcode_shlibpath_var_F77=no
15266      ;;
15267
15268    freebsd1*)
15269      ld_shlibs_F77=no
15270      ;;
15271
15272    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15273    # support.  Future versions do this automatically, but an explicit c++rt0.o
15274    # does not break anything, and helps significantly (at the cost of a little
15275    # extra space).
15276    freebsd2.2*)
15277      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15278      hardcode_libdir_flag_spec_F77='-R$libdir'
15279      hardcode_direct_F77=yes
15280      hardcode_shlibpath_var_F77=no
15281      ;;
15282
15283    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15284    freebsd2*)
15285      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15286      hardcode_direct_F77=yes
15287      hardcode_minus_L_F77=yes
15288      hardcode_shlibpath_var_F77=no
15289      ;;
15290
15291    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15292    freebsd* | dragonfly*)
15293      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15294      hardcode_libdir_flag_spec_F77='-R$libdir'
15295      hardcode_direct_F77=yes
15296      hardcode_shlibpath_var_F77=no
15297      ;;
15298
15299    hpux9*)
15300      if test "$GCC" = yes; then
15301	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'
15302      else
15303	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'
15304      fi
15305      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15306      hardcode_libdir_separator_F77=:
15307      hardcode_direct_F77=yes
15308
15309      # hardcode_minus_L: Not really in the search PATH,
15310      # but as the default location of the library.
15311      hardcode_minus_L_F77=yes
15312      export_dynamic_flag_spec_F77='${wl}-E'
15313      ;;
15314
15315    hpux10*)
15316      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15317	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15318      else
15319	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15320      fi
15321      if test "$with_gnu_ld" = no; then
15322	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15323	hardcode_libdir_separator_F77=:
15324
15325	hardcode_direct_F77=yes
15326	export_dynamic_flag_spec_F77='${wl}-E'
15327
15328	# hardcode_minus_L: Not really in the search PATH,
15329	# but as the default location of the library.
15330	hardcode_minus_L_F77=yes
15331      fi
15332      ;;
15333
15334    hpux11*)
15335      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15336	case $host_cpu in
15337	hppa*64*)
15338	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15339	  ;;
15340	ia64*)
15341	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15342	  ;;
15343	*)
15344	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15345	  ;;
15346	esac
15347      else
15348	case $host_cpu in
15349	hppa*64*)
15350	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15351	  ;;
15352	ia64*)
15353	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15354	  ;;
15355	*)
15356	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15357	  ;;
15358	esac
15359      fi
15360      if test "$with_gnu_ld" = no; then
15361	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15362	hardcode_libdir_separator_F77=:
15363
15364	case $host_cpu in
15365	hppa*64*|ia64*)
15366	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15367	  hardcode_direct_F77=no
15368	  hardcode_shlibpath_var_F77=no
15369	  ;;
15370	*)
15371	  hardcode_direct_F77=yes
15372	  export_dynamic_flag_spec_F77='${wl}-E'
15373
15374	  # hardcode_minus_L: Not really in the search PATH,
15375	  # but as the default location of the library.
15376	  hardcode_minus_L_F77=yes
15377	  ;;
15378	esac
15379      fi
15380      ;;
15381
15382    irix5* | irix6* | nonstopux*)
15383      if test "$GCC" = yes; then
15384	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'
15385      else
15386	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'
15387	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15388      fi
15389      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15390      hardcode_libdir_separator_F77=:
15391      link_all_deplibs_F77=yes
15392      ;;
15393
15394    netbsd* | netbsdelf*-gnu)
15395      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15396	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15397      else
15398	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15399      fi
15400      hardcode_libdir_flag_spec_F77='-R$libdir'
15401      hardcode_direct_F77=yes
15402      hardcode_shlibpath_var_F77=no
15403      ;;
15404
15405    newsos6)
15406      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15407      hardcode_direct_F77=yes
15408      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15409      hardcode_libdir_separator_F77=:
15410      hardcode_shlibpath_var_F77=no
15411      ;;
15412
15413    openbsd*)
15414      if test -f /usr/libexec/ld.so; then
15415	hardcode_direct_F77=yes
15416	hardcode_shlibpath_var_F77=no
15417	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15418	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15419	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15420	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15421	  export_dynamic_flag_spec_F77='${wl}-E'
15422	else
15423	  case $host_os in
15424	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15425	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15426	     hardcode_libdir_flag_spec_F77='-R$libdir'
15427	     ;;
15428	   *)
15429	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15430	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15431	     ;;
15432	  esac
15433        fi
15434      else
15435	ld_shlibs_F77=no
15436      fi
15437      ;;
15438
15439    os2*)
15440      hardcode_libdir_flag_spec_F77='-L$libdir'
15441      hardcode_minus_L_F77=yes
15442      allow_undefined_flag_F77=unsupported
15443      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'
15444      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15445      ;;
15446
15447    osf3*)
15448      if test "$GCC" = yes; then
15449	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15450	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'
15451      else
15452	allow_undefined_flag_F77=' -expect_unresolved \*'
15453	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'
15454      fi
15455      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15456      hardcode_libdir_separator_F77=:
15457      ;;
15458
15459    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15460      if test "$GCC" = yes; then
15461	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15462	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'
15463	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15464      else
15465	allow_undefined_flag_F77=' -expect_unresolved \*'
15466	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'
15467	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~
15468	$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'
15469
15470	# Both c and cxx compiler support -rpath directly
15471	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15472      fi
15473      hardcode_libdir_separator_F77=:
15474      ;;
15475
15476    solaris*)
15477      no_undefined_flag_F77=' -z text'
15478      if test "$GCC" = yes; then
15479	wlarc='${wl}'
15480	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15481	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15482	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15483      else
15484	wlarc=''
15485	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15486	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15487  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15488      fi
15489      hardcode_libdir_flag_spec_F77='-R$libdir'
15490      hardcode_shlibpath_var_F77=no
15491      case $host_os in
15492      solaris2.[0-5] | solaris2.[0-5].*) ;;
15493      *)
15494	# The compiler driver will combine and reorder linker options,
15495	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15496	# but is careful enough not to reorder.
15497 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15498	if test "$GCC" = yes; then
15499	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15500	else
15501	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15502	fi
15503	;;
15504      esac
15505      link_all_deplibs_F77=yes
15506      ;;
15507
15508    sunos4*)
15509      if test "x$host_vendor" = xsequent; then
15510	# Use $CC to link under sequent, because it throws in some extra .o
15511	# files that make .init and .fini sections work.
15512	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15513      else
15514	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15515      fi
15516      hardcode_libdir_flag_spec_F77='-L$libdir'
15517      hardcode_direct_F77=yes
15518      hardcode_minus_L_F77=yes
15519      hardcode_shlibpath_var_F77=no
15520      ;;
15521
15522    sysv4)
15523      case $host_vendor in
15524	sni)
15525	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15526	  hardcode_direct_F77=yes # is this really true???
15527	;;
15528	siemens)
15529	  ## LD is ld it makes a PLAMLIB
15530	  ## CC just makes a GrossModule.
15531	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15532	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15533	  hardcode_direct_F77=no
15534        ;;
15535	motorola)
15536	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15537	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15538	;;
15539      esac
15540      runpath_var='LD_RUN_PATH'
15541      hardcode_shlibpath_var_F77=no
15542      ;;
15543
15544    sysv4.3*)
15545      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15546      hardcode_shlibpath_var_F77=no
15547      export_dynamic_flag_spec_F77='-Bexport'
15548      ;;
15549
15550    sysv4*MP*)
15551      if test -d /usr/nec; then
15552	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15553	hardcode_shlibpath_var_F77=no
15554	runpath_var=LD_RUN_PATH
15555	hardcode_runpath_var=yes
15556	ld_shlibs_F77=yes
15557      fi
15558      ;;
15559
15560    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15561      no_undefined_flag_F77='${wl}-z,text'
15562      archive_cmds_need_lc_F77=no
15563      hardcode_shlibpath_var_F77=no
15564      runpath_var='LD_RUN_PATH'
15565
15566      if test "$GCC" = yes; then
15567	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15568	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15569      else
15570	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15571	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15572      fi
15573      ;;
15574
15575    sysv5* | sco3.2v5* | sco5v6*)
15576      # Note: We can NOT use -z defs as we might desire, because we do not
15577      # link with -lc, and that would cause any symbols used from libc to
15578      # always be unresolved, which means just about no library would
15579      # ever link correctly.  If we're not using GNU ld we use -z text
15580      # though, which does catch some bad symbols but isn't as heavy-handed
15581      # as -z defs.
15582      no_undefined_flag_F77='${wl}-z,text'
15583      allow_undefined_flag_F77='${wl}-z,nodefs'
15584      archive_cmds_need_lc_F77=no
15585      hardcode_shlibpath_var_F77=no
15586      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15587      hardcode_libdir_separator_F77=':'
15588      link_all_deplibs_F77=yes
15589      export_dynamic_flag_spec_F77='${wl}-Bexport'
15590      runpath_var='LD_RUN_PATH'
15591
15592      if test "$GCC" = yes; then
15593	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15594	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15595      else
15596	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15597	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15598      fi
15599      ;;
15600
15601    uts4*)
15602      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15603      hardcode_libdir_flag_spec_F77='-L$libdir'
15604      hardcode_shlibpath_var_F77=no
15605      ;;
15606
15607    *)
15608      ld_shlibs_F77=no
15609      ;;
15610    esac
15611  fi
15612
15613{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15614echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15615test "$ld_shlibs_F77" = no && can_build_shared=no
15616
15617#
15618# Do we need to explicitly link libc?
15619#
15620case "x$archive_cmds_need_lc_F77" in
15621x|xyes)
15622  # Assume -lc should be added
15623  archive_cmds_need_lc_F77=yes
15624
15625  if test "$enable_shared" = yes && test "$GCC" = yes; then
15626    case $archive_cmds_F77 in
15627    *'~'*)
15628      # FIXME: we may have to deal with multi-command sequences.
15629      ;;
15630    '$CC '*)
15631      # Test whether the compiler implicitly links with -lc since on some
15632      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15633      # to ld, don't add -lc before -lgcc.
15634      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15635echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15636      $rm conftest*
15637      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15638
15639      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15640  (eval $ac_compile) 2>&5
15641  ac_status=$?
15642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643  (exit $ac_status); } 2>conftest.err; then
15644        soname=conftest
15645        lib=conftest
15646        libobjs=conftest.$ac_objext
15647        deplibs=
15648        wl=$lt_prog_compiler_wl_F77
15649	pic_flag=$lt_prog_compiler_pic_F77
15650        compiler_flags=-v
15651        linker_flags=-v
15652        verstring=
15653        output_objdir=.
15654        libname=conftest
15655        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15656        allow_undefined_flag_F77=
15657        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15658  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15659  ac_status=$?
15660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661  (exit $ac_status); }
15662        then
15663	  archive_cmds_need_lc_F77=no
15664        else
15665	  archive_cmds_need_lc_F77=yes
15666        fi
15667        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15668      else
15669        cat conftest.err 1>&5
15670      fi
15671      $rm conftest*
15672      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15673echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15674      ;;
15675    esac
15676  fi
15677  ;;
15678esac
15679
15680{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15681echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15682library_names_spec=
15683libname_spec='lib$name'
15684soname_spec=
15685shrext_cmds=".so"
15686postinstall_cmds=
15687postuninstall_cmds=
15688finish_cmds=
15689finish_eval=
15690shlibpath_var=
15691shlibpath_overrides_runpath=unknown
15692version_type=none
15693dynamic_linker="$host_os ld.so"
15694sys_lib_dlsearch_path_spec="/lib /usr/lib"
15695
15696need_lib_prefix=unknown
15697hardcode_into_libs=no
15698
15699# when you set need_version to no, make sure it does not cause -set_version
15700# flags to be left without arguments
15701need_version=unknown
15702
15703case $host_os in
15704aix3*)
15705  version_type=linux
15706  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15707  shlibpath_var=LIBPATH
15708
15709  # AIX 3 has no versioning support, so we append a major version to the name.
15710  soname_spec='${libname}${release}${shared_ext}$major'
15711  ;;
15712
15713aix[4-9]*)
15714  version_type=linux
15715  need_lib_prefix=no
15716  need_version=no
15717  hardcode_into_libs=yes
15718  if test "$host_cpu" = ia64; then
15719    # AIX 5 supports IA64
15720    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15721    shlibpath_var=LD_LIBRARY_PATH
15722  else
15723    # With GCC up to 2.95.x, collect2 would create an import file
15724    # for dependence libraries.  The import file would start with
15725    # the line `#! .'.  This would cause the generated library to
15726    # depend on `.', always an invalid library.  This was fixed in
15727    # development snapshots of GCC prior to 3.0.
15728    case $host_os in
15729      aix4 | aix4.[01] | aix4.[01].*)
15730      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15731	   echo ' yes '
15732	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15733	:
15734      else
15735	can_build_shared=no
15736      fi
15737      ;;
15738    esac
15739    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15740    # soname into executable. Probably we can add versioning support to
15741    # collect2, so additional links can be useful in future.
15742    if test "$aix_use_runtimelinking" = yes; then
15743      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15744      # instead of lib<name>.a to let people know that these are not
15745      # typical AIX shared libraries.
15746      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15747    else
15748      # We preserve .a as extension for shared libraries through AIX4.2
15749      # and later when we are not doing run time linking.
15750      library_names_spec='${libname}${release}.a $libname.a'
15751      soname_spec='${libname}${release}${shared_ext}$major'
15752    fi
15753    shlibpath_var=LIBPATH
15754  fi
15755  ;;
15756
15757amigaos*)
15758  library_names_spec='$libname.ixlibrary $libname.a'
15759  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15760  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'
15761  ;;
15762
15763beos*)
15764  library_names_spec='${libname}${shared_ext}'
15765  dynamic_linker="$host_os ld.so"
15766  shlibpath_var=LIBRARY_PATH
15767  ;;
15768
15769bsdi[45]*)
15770  version_type=linux
15771  need_version=no
15772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15773  soname_spec='${libname}${release}${shared_ext}$major'
15774  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15775  shlibpath_var=LD_LIBRARY_PATH
15776  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15777  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15778  # the default ld.so.conf also contains /usr/contrib/lib and
15779  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15780  # libtool to hard-code these into programs
15781  ;;
15782
15783cygwin* | mingw* | pw32*)
15784  version_type=windows
15785  shrext_cmds=".dll"
15786  need_version=no
15787  need_lib_prefix=no
15788
15789  case $GCC,$host_os in
15790  yes,cygwin* | yes,mingw* | yes,pw32*)
15791    library_names_spec='$libname.dll.a'
15792    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15793    postinstall_cmds='base_file=`basename \${file}`~
15794      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15795      dldir=$destdir/`dirname \$dlpath`~
15796      test -d \$dldir || mkdir -p \$dldir~
15797      $install_prog $dir/$dlname \$dldir/$dlname~
15798      chmod a+x \$dldir/$dlname'
15799    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15800      dlpath=$dir/\$dldll~
15801       $rm \$dlpath'
15802    shlibpath_overrides_runpath=yes
15803
15804    case $host_os in
15805    cygwin*)
15806      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15807      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15808      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15809      ;;
15810    mingw*)
15811      # MinGW DLLs use traditional 'lib' prefix
15812      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15813      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15814      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15815        # It is most probably a Windows format PATH printed by
15816        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15817        # path with ; separators, and with drive letters. We can handle the
15818        # drive letters (cygwin fileutils understands them), so leave them,
15819        # especially as we might pass files found there to a mingw objdump,
15820        # which wouldn't understand a cygwinified path. Ahh.
15821        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15822      else
15823        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15824      fi
15825      ;;
15826    pw32*)
15827      # pw32 DLLs use 'pw' prefix rather than 'lib'
15828      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15829      ;;
15830    esac
15831    ;;
15832
15833  *)
15834    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15835    ;;
15836  esac
15837  dynamic_linker='Win32 ld.exe'
15838  # FIXME: first we should search . and the directory the executable is in
15839  shlibpath_var=PATH
15840  ;;
15841
15842darwin* | rhapsody*)
15843  dynamic_linker="$host_os dyld"
15844  version_type=darwin
15845  need_lib_prefix=no
15846  need_version=no
15847  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15848  soname_spec='${libname}${release}${major}$shared_ext'
15849  shlibpath_overrides_runpath=yes
15850  shlibpath_var=DYLD_LIBRARY_PATH
15851  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15852
15853  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15854  ;;
15855
15856dgux*)
15857  version_type=linux
15858  need_lib_prefix=no
15859  need_version=no
15860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15861  soname_spec='${libname}${release}${shared_ext}$major'
15862  shlibpath_var=LD_LIBRARY_PATH
15863  ;;
15864
15865freebsd1*)
15866  dynamic_linker=no
15867  ;;
15868
15869freebsd* | dragonfly*)
15870  # DragonFly does not have aout.  When/if they implement a new
15871  # versioning mechanism, adjust this.
15872  if test -x /usr/bin/objformat; then
15873    objformat=`/usr/bin/objformat`
15874  else
15875    case $host_os in
15876    freebsd[123]*) objformat=aout ;;
15877    *) objformat=elf ;;
15878    esac
15879  fi
15880  version_type=freebsd-$objformat
15881  case $version_type in
15882    freebsd-elf*)
15883      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15884      need_version=no
15885      need_lib_prefix=no
15886      ;;
15887    freebsd-*)
15888      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15889      need_version=yes
15890      ;;
15891  esac
15892  shlibpath_var=LD_LIBRARY_PATH
15893  case $host_os in
15894  freebsd2*)
15895    shlibpath_overrides_runpath=yes
15896    ;;
15897  freebsd3.[01]* | freebsdelf3.[01]*)
15898    shlibpath_overrides_runpath=yes
15899    hardcode_into_libs=yes
15900    ;;
15901  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15902  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15903    shlibpath_overrides_runpath=no
15904    hardcode_into_libs=yes
15905    ;;
15906  *) # from 4.6 on, and DragonFly
15907    shlibpath_overrides_runpath=yes
15908    hardcode_into_libs=yes
15909    ;;
15910  esac
15911  ;;
15912
15913gnu*)
15914  version_type=linux
15915  need_lib_prefix=no
15916  need_version=no
15917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15918  soname_spec='${libname}${release}${shared_ext}$major'
15919  shlibpath_var=LD_LIBRARY_PATH
15920  hardcode_into_libs=yes
15921  ;;
15922
15923hpux9* | hpux10* | hpux11*)
15924  # Give a soname corresponding to the major version so that dld.sl refuses to
15925  # link against other versions.
15926  version_type=sunos
15927  need_lib_prefix=no
15928  need_version=no
15929  case $host_cpu in
15930  ia64*)
15931    shrext_cmds='.so'
15932    hardcode_into_libs=yes
15933    dynamic_linker="$host_os dld.so"
15934    shlibpath_var=LD_LIBRARY_PATH
15935    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15936    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15937    soname_spec='${libname}${release}${shared_ext}$major'
15938    if test "X$HPUX_IA64_MODE" = X32; then
15939      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15940    else
15941      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15942    fi
15943    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15944    ;;
15945   hppa*64*)
15946     shrext_cmds='.sl'
15947     hardcode_into_libs=yes
15948     dynamic_linker="$host_os dld.sl"
15949     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15950     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15951     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15952     soname_spec='${libname}${release}${shared_ext}$major'
15953     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15954     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15955     ;;
15956   *)
15957    shrext_cmds='.sl'
15958    dynamic_linker="$host_os dld.sl"
15959    shlibpath_var=SHLIB_PATH
15960    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15961    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15962    soname_spec='${libname}${release}${shared_ext}$major'
15963    ;;
15964  esac
15965  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15966  postinstall_cmds='chmod 555 $lib'
15967  ;;
15968
15969interix[3-9]*)
15970  version_type=linux
15971  need_lib_prefix=no
15972  need_version=no
15973  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15974  soname_spec='${libname}${release}${shared_ext}$major'
15975  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15976  shlibpath_var=LD_LIBRARY_PATH
15977  shlibpath_overrides_runpath=no
15978  hardcode_into_libs=yes
15979  ;;
15980
15981irix5* | irix6* | nonstopux*)
15982  case $host_os in
15983    nonstopux*) version_type=nonstopux ;;
15984    *)
15985	if test "$lt_cv_prog_gnu_ld" = yes; then
15986		version_type=linux
15987	else
15988		version_type=irix
15989	fi ;;
15990  esac
15991  need_lib_prefix=no
15992  need_version=no
15993  soname_spec='${libname}${release}${shared_ext}$major'
15994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15995  case $host_os in
15996  irix5* | nonstopux*)
15997    libsuff= shlibsuff=
15998    ;;
15999  *)
16000    case $LD in # libtool.m4 will add one of these switches to LD
16001    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16002      libsuff= shlibsuff= libmagic=32-bit;;
16003    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16004      libsuff=32 shlibsuff=N32 libmagic=N32;;
16005    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16006      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16007    *) libsuff= shlibsuff= libmagic=never-match;;
16008    esac
16009    ;;
16010  esac
16011  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16012  shlibpath_overrides_runpath=no
16013  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16014  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16015  hardcode_into_libs=yes
16016  ;;
16017
16018# No shared lib support for Linux oldld, aout, or coff.
16019linux*oldld* | linux*aout* | linux*coff*)
16020  dynamic_linker=no
16021  ;;
16022
16023# This must be Linux ELF.
16024linux* | k*bsd*-gnu)
16025  version_type=linux
16026  need_lib_prefix=no
16027  need_version=no
16028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029  soname_spec='${libname}${release}${shared_ext}$major'
16030  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16031  shlibpath_var=LD_LIBRARY_PATH
16032  shlibpath_overrides_runpath=no
16033  # This implies no fast_install, which is unacceptable.
16034  # Some rework will be needed to allow for fast_install
16035  # before this can be enabled.
16036  hardcode_into_libs=yes
16037
16038  # Append ld.so.conf contents to the search path
16039  if test -f /etc/ld.so.conf; then
16040    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' ' '`
16041    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16042  fi
16043
16044  # We used to test for /lib/ld.so.1 and disable shared libraries on
16045  # powerpc, because MkLinux only supported shared libraries with the
16046  # GNU dynamic linker.  Since this was broken with cross compilers,
16047  # most powerpc-linux boxes support dynamic linking these days and
16048  # people can always --disable-shared, the test was removed, and we
16049  # assume the GNU/Linux dynamic linker is in use.
16050  dynamic_linker='GNU/Linux ld.so'
16051  ;;
16052
16053netbsdelf*-gnu)
16054  version_type=linux
16055  need_lib_prefix=no
16056  need_version=no
16057  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16058  soname_spec='${libname}${release}${shared_ext}$major'
16059  shlibpath_var=LD_LIBRARY_PATH
16060  shlibpath_overrides_runpath=no
16061  hardcode_into_libs=yes
16062  dynamic_linker='NetBSD ld.elf_so'
16063  ;;
16064
16065netbsd*)
16066  version_type=sunos
16067  need_lib_prefix=no
16068  need_version=no
16069  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16070    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16071    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16072    dynamic_linker='NetBSD (a.out) ld.so'
16073  else
16074    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16075    soname_spec='${libname}${release}${shared_ext}$major'
16076    dynamic_linker='NetBSD ld.elf_so'
16077  fi
16078  shlibpath_var=LD_LIBRARY_PATH
16079  shlibpath_overrides_runpath=yes
16080  hardcode_into_libs=yes
16081  ;;
16082
16083newsos6)
16084  version_type=linux
16085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086  shlibpath_var=LD_LIBRARY_PATH
16087  shlibpath_overrides_runpath=yes
16088  ;;
16089
16090nto-qnx*)
16091  version_type=linux
16092  need_lib_prefix=no
16093  need_version=no
16094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095  soname_spec='${libname}${release}${shared_ext}$major'
16096  shlibpath_var=LD_LIBRARY_PATH
16097  shlibpath_overrides_runpath=yes
16098  ;;
16099
16100openbsd*)
16101  version_type=sunos
16102  sys_lib_dlsearch_path_spec="/usr/lib"
16103  need_lib_prefix=no
16104  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16105  case $host_os in
16106    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16107    *)                         need_version=no  ;;
16108  esac
16109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16110  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16111  shlibpath_var=LD_LIBRARY_PATH
16112  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16113    case $host_os in
16114      openbsd2.[89] | openbsd2.[89].*)
16115	shlibpath_overrides_runpath=no
16116	;;
16117      *)
16118	shlibpath_overrides_runpath=yes
16119	;;
16120      esac
16121  else
16122    shlibpath_overrides_runpath=yes
16123  fi
16124  ;;
16125
16126os2*)
16127  libname_spec='$name'
16128  shrext_cmds=".dll"
16129  need_lib_prefix=no
16130  library_names_spec='$libname${shared_ext} $libname.a'
16131  dynamic_linker='OS/2 ld.exe'
16132  shlibpath_var=LIBPATH
16133  ;;
16134
16135osf3* | osf4* | osf5*)
16136  version_type=osf
16137  need_lib_prefix=no
16138  need_version=no
16139  soname_spec='${libname}${release}${shared_ext}$major'
16140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141  shlibpath_var=LD_LIBRARY_PATH
16142  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16143  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16144  ;;
16145
16146rdos*)
16147  dynamic_linker=no
16148  ;;
16149
16150solaris*)
16151  version_type=linux
16152  need_lib_prefix=no
16153  need_version=no
16154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16155  soname_spec='${libname}${release}${shared_ext}$major'
16156  shlibpath_var=LD_LIBRARY_PATH
16157  shlibpath_overrides_runpath=yes
16158  hardcode_into_libs=yes
16159  # ldd complains unless libraries are executable
16160  postinstall_cmds='chmod +x $lib'
16161  ;;
16162
16163sunos4*)
16164  version_type=sunos
16165  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16166  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16167  shlibpath_var=LD_LIBRARY_PATH
16168  shlibpath_overrides_runpath=yes
16169  if test "$with_gnu_ld" = yes; then
16170    need_lib_prefix=no
16171  fi
16172  need_version=yes
16173  ;;
16174
16175sysv4 | sysv4.3*)
16176  version_type=linux
16177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178  soname_spec='${libname}${release}${shared_ext}$major'
16179  shlibpath_var=LD_LIBRARY_PATH
16180  case $host_vendor in
16181    sni)
16182      shlibpath_overrides_runpath=no
16183      need_lib_prefix=no
16184      export_dynamic_flag_spec='${wl}-Blargedynsym'
16185      runpath_var=LD_RUN_PATH
16186      ;;
16187    siemens)
16188      need_lib_prefix=no
16189      ;;
16190    motorola)
16191      need_lib_prefix=no
16192      need_version=no
16193      shlibpath_overrides_runpath=no
16194      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16195      ;;
16196  esac
16197  ;;
16198
16199sysv4*MP*)
16200  if test -d /usr/nec ;then
16201    version_type=linux
16202    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16203    soname_spec='$libname${shared_ext}.$major'
16204    shlibpath_var=LD_LIBRARY_PATH
16205  fi
16206  ;;
16207
16208sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16209  version_type=freebsd-elf
16210  need_lib_prefix=no
16211  need_version=no
16212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16213  soname_spec='${libname}${release}${shared_ext}$major'
16214  shlibpath_var=LD_LIBRARY_PATH
16215  hardcode_into_libs=yes
16216  if test "$with_gnu_ld" = yes; then
16217    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16218    shlibpath_overrides_runpath=no
16219  else
16220    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16221    shlibpath_overrides_runpath=yes
16222    case $host_os in
16223      sco3.2v5*)
16224        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16225	;;
16226    esac
16227  fi
16228  sys_lib_dlsearch_path_spec='/usr/lib'
16229  ;;
16230
16231uts4*)
16232  version_type=linux
16233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16234  soname_spec='${libname}${release}${shared_ext}$major'
16235  shlibpath_var=LD_LIBRARY_PATH
16236  ;;
16237
16238*)
16239  dynamic_linker=no
16240  ;;
16241esac
16242{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16243echo "${ECHO_T}$dynamic_linker" >&6; }
16244test "$dynamic_linker" = no && can_build_shared=no
16245
16246if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16247  echo $ECHO_N "(cached) $ECHO_C" >&6
16248else
16249  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16250fi
16251
16252sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16253if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16254  echo $ECHO_N "(cached) $ECHO_C" >&6
16255else
16256  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16257fi
16258
16259sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16260
16261variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16262if test "$GCC" = yes; then
16263  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16264fi
16265
16266{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16267echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16268hardcode_action_F77=
16269if test -n "$hardcode_libdir_flag_spec_F77" || \
16270   test -n "$runpath_var_F77" || \
16271   test "X$hardcode_automatic_F77" = "Xyes" ; then
16272
16273  # We can hardcode non-existant directories.
16274  if test "$hardcode_direct_F77" != no &&
16275     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16276     # have to relink, otherwise we might link with an installed library
16277     # when we should be linking with a yet-to-be-installed one
16278     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16279     test "$hardcode_minus_L_F77" != no; then
16280    # Linking always hardcodes the temporary library directory.
16281    hardcode_action_F77=relink
16282  else
16283    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16284    hardcode_action_F77=immediate
16285  fi
16286else
16287  # We cannot hardcode anything, or else we can only hardcode existing
16288  # directories.
16289  hardcode_action_F77=unsupported
16290fi
16291{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16292echo "${ECHO_T}$hardcode_action_F77" >&6; }
16293
16294if test "$hardcode_action_F77" = relink; then
16295  # Fast installation is not supported
16296  enable_fast_install=no
16297elif test "$shlibpath_overrides_runpath" = yes ||
16298     test "$enable_shared" = no; then
16299  # Fast installation is not necessary
16300  enable_fast_install=needless
16301fi
16302
16303
16304# The else clause should only fire when bootstrapping the
16305# libtool distribution, otherwise you forgot to ship ltmain.sh
16306# with your package, and you will get complaints that there are
16307# no rules to generate ltmain.sh.
16308if test -f "$ltmain"; then
16309  # See if we are running on zsh, and set the options which allow our commands through
16310  # without removal of \ escapes.
16311  if test -n "${ZSH_VERSION+set}" ; then
16312    setopt NO_GLOB_SUBST
16313  fi
16314  # Now quote all the things that may contain metacharacters while being
16315  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16316  # variables and quote the copies for generation of the libtool script.
16317  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16318    SED SHELL STRIP \
16319    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16320    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16321    deplibs_check_method reload_flag reload_cmds need_locks \
16322    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16323    lt_cv_sys_global_symbol_to_c_name_address \
16324    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16325    old_postinstall_cmds old_postuninstall_cmds \
16326    compiler_F77 \
16327    CC_F77 \
16328    LD_F77 \
16329    lt_prog_compiler_wl_F77 \
16330    lt_prog_compiler_pic_F77 \
16331    lt_prog_compiler_static_F77 \
16332    lt_prog_compiler_no_builtin_flag_F77 \
16333    export_dynamic_flag_spec_F77 \
16334    thread_safe_flag_spec_F77 \
16335    whole_archive_flag_spec_F77 \
16336    enable_shared_with_static_runtimes_F77 \
16337    old_archive_cmds_F77 \
16338    old_archive_from_new_cmds_F77 \
16339    predep_objects_F77 \
16340    postdep_objects_F77 \
16341    predeps_F77 \
16342    postdeps_F77 \
16343    compiler_lib_search_path_F77 \
16344    compiler_lib_search_dirs_F77 \
16345    archive_cmds_F77 \
16346    archive_expsym_cmds_F77 \
16347    postinstall_cmds_F77 \
16348    postuninstall_cmds_F77 \
16349    old_archive_from_expsyms_cmds_F77 \
16350    allow_undefined_flag_F77 \
16351    no_undefined_flag_F77 \
16352    export_symbols_cmds_F77 \
16353    hardcode_libdir_flag_spec_F77 \
16354    hardcode_libdir_flag_spec_ld_F77 \
16355    hardcode_libdir_separator_F77 \
16356    hardcode_automatic_F77 \
16357    module_cmds_F77 \
16358    module_expsym_cmds_F77 \
16359    lt_cv_prog_compiler_c_o_F77 \
16360    fix_srcfile_path_F77 \
16361    exclude_expsyms_F77 \
16362    include_expsyms_F77; do
16363
16364    case $var in
16365    old_archive_cmds_F77 | \
16366    old_archive_from_new_cmds_F77 | \
16367    archive_cmds_F77 | \
16368    archive_expsym_cmds_F77 | \
16369    module_cmds_F77 | \
16370    module_expsym_cmds_F77 | \
16371    old_archive_from_expsyms_cmds_F77 | \
16372    export_symbols_cmds_F77 | \
16373    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16374    postinstall_cmds | postuninstall_cmds | \
16375    old_postinstall_cmds | old_postuninstall_cmds | \
16376    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16377      # Double-quote double-evaled strings.
16378      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16379      ;;
16380    *)
16381      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16382      ;;
16383    esac
16384  done
16385
16386  case $lt_echo in
16387  *'\$0 --fallback-echo"')
16388    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16389    ;;
16390  esac
16391
16392cfgfile="$ofile"
16393
16394  cat <<__EOF__ >> "$cfgfile"
16395# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16396
16397# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16398
16399# Shell to use when invoking shell scripts.
16400SHELL=$lt_SHELL
16401
16402# Whether or not to build shared libraries.
16403build_libtool_libs=$enable_shared
16404
16405# Whether or not to build static libraries.
16406build_old_libs=$enable_static
16407
16408# Whether or not to add -lc for building shared libraries.
16409build_libtool_need_lc=$archive_cmds_need_lc_F77
16410
16411# Whether or not to disallow shared libs when runtime libs are static
16412allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16413
16414# Whether or not to optimize for fast installation.
16415fast_install=$enable_fast_install
16416
16417# The host system.
16418host_alias=$host_alias
16419host=$host
16420host_os=$host_os
16421
16422# The build system.
16423build_alias=$build_alias
16424build=$build
16425build_os=$build_os
16426
16427# An echo program that does not interpret backslashes.
16428echo=$lt_echo
16429
16430# The archiver.
16431AR=$lt_AR
16432AR_FLAGS=$lt_AR_FLAGS
16433
16434# A C compiler.
16435LTCC=$lt_LTCC
16436
16437# LTCC compiler flags.
16438LTCFLAGS=$lt_LTCFLAGS
16439
16440# A language-specific compiler.
16441CC=$lt_compiler_F77
16442
16443# Is the compiler the GNU C compiler?
16444with_gcc=$GCC_F77
16445
16446# An ERE matcher.
16447EGREP=$lt_EGREP
16448
16449# The linker used to build libraries.
16450LD=$lt_LD_F77
16451
16452# Whether we need hard or soft links.
16453LN_S=$lt_LN_S
16454
16455# A BSD-compatible nm program.
16456NM=$lt_NM
16457
16458# A symbol stripping program
16459STRIP=$lt_STRIP
16460
16461# Used to examine libraries when file_magic_cmd begins "file"
16462MAGIC_CMD=$MAGIC_CMD
16463
16464# Used on cygwin: DLL creation program.
16465DLLTOOL="$DLLTOOL"
16466
16467# Used on cygwin: object dumper.
16468OBJDUMP="$OBJDUMP"
16469
16470# Used on cygwin: assembler.
16471AS="$AS"
16472
16473# The name of the directory that contains temporary libtool files.
16474objdir=$objdir
16475
16476# How to create reloadable object files.
16477reload_flag=$lt_reload_flag
16478reload_cmds=$lt_reload_cmds
16479
16480# How to pass a linker flag through the compiler.
16481wl=$lt_lt_prog_compiler_wl_F77
16482
16483# Object file suffix (normally "o").
16484objext="$ac_objext"
16485
16486# Old archive suffix (normally "a").
16487libext="$libext"
16488
16489# Shared library suffix (normally ".so").
16490shrext_cmds='$shrext_cmds'
16491
16492# Executable file suffix (normally "").
16493exeext="$exeext"
16494
16495# Additional compiler flags for building library objects.
16496pic_flag=$lt_lt_prog_compiler_pic_F77
16497pic_mode=$pic_mode
16498
16499# What is the maximum length of a command?
16500max_cmd_len=$lt_cv_sys_max_cmd_len
16501
16502# Does compiler simultaneously support -c and -o options?
16503compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16504
16505# Must we lock files when doing compilation?
16506need_locks=$lt_need_locks
16507
16508# Do we need the lib prefix for modules?
16509need_lib_prefix=$need_lib_prefix
16510
16511# Do we need a version for libraries?
16512need_version=$need_version
16513
16514# Whether dlopen is supported.
16515dlopen_support=$enable_dlopen
16516
16517# Whether dlopen of programs is supported.
16518dlopen_self=$enable_dlopen_self
16519
16520# Whether dlopen of statically linked programs is supported.
16521dlopen_self_static=$enable_dlopen_self_static
16522
16523# Compiler flag to prevent dynamic linking.
16524link_static_flag=$lt_lt_prog_compiler_static_F77
16525
16526# Compiler flag to turn off builtin functions.
16527no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16528
16529# Compiler flag to allow reflexive dlopens.
16530export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16531
16532# Compiler flag to generate shared objects directly from archives.
16533whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16534
16535# Compiler flag to generate thread-safe objects.
16536thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16537
16538# Library versioning type.
16539version_type=$version_type
16540
16541# Format of library name prefix.
16542libname_spec=$lt_libname_spec
16543
16544# List of archive names.  First name is the real one, the rest are links.
16545# The last name is the one that the linker finds with -lNAME.
16546library_names_spec=$lt_library_names_spec
16547
16548# The coded name of the library, if different from the real name.
16549soname_spec=$lt_soname_spec
16550
16551# Commands used to build and install an old-style archive.
16552RANLIB=$lt_RANLIB
16553old_archive_cmds=$lt_old_archive_cmds_F77
16554old_postinstall_cmds=$lt_old_postinstall_cmds
16555old_postuninstall_cmds=$lt_old_postuninstall_cmds
16556
16557# Create an old-style archive from a shared archive.
16558old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16559
16560# Create a temporary old-style archive to link instead of a shared archive.
16561old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16562
16563# Commands used to build and install a shared archive.
16564archive_cmds=$lt_archive_cmds_F77
16565archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16566postinstall_cmds=$lt_postinstall_cmds
16567postuninstall_cmds=$lt_postuninstall_cmds
16568
16569# Commands used to build a loadable module (assumed same as above if empty)
16570module_cmds=$lt_module_cmds_F77
16571module_expsym_cmds=$lt_module_expsym_cmds_F77
16572
16573# Commands to strip libraries.
16574old_striplib=$lt_old_striplib
16575striplib=$lt_striplib
16576
16577# Dependencies to place before the objects being linked to create a
16578# shared library.
16579predep_objects=$lt_predep_objects_F77
16580
16581# Dependencies to place after the objects being linked to create a
16582# shared library.
16583postdep_objects=$lt_postdep_objects_F77
16584
16585# Dependencies to place before the objects being linked to create a
16586# shared library.
16587predeps=$lt_predeps_F77
16588
16589# Dependencies to place after the objects being linked to create a
16590# shared library.
16591postdeps=$lt_postdeps_F77
16592
16593# The directories searched by this compiler when creating a shared
16594# library
16595compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16596
16597# The library search path used internally by the compiler when linking
16598# a shared library.
16599compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16600
16601# Method to check whether dependent libraries are shared objects.
16602deplibs_check_method=$lt_deplibs_check_method
16603
16604# Command to use when deplibs_check_method == file_magic.
16605file_magic_cmd=$lt_file_magic_cmd
16606
16607# Flag that allows shared libraries with undefined symbols to be built.
16608allow_undefined_flag=$lt_allow_undefined_flag_F77
16609
16610# Flag that forces no undefined symbols.
16611no_undefined_flag=$lt_no_undefined_flag_F77
16612
16613# Commands used to finish a libtool library installation in a directory.
16614finish_cmds=$lt_finish_cmds
16615
16616# Same as above, but a single script fragment to be evaled but not shown.
16617finish_eval=$lt_finish_eval
16618
16619# Take the output of nm and produce a listing of raw symbols and C names.
16620global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16621
16622# Transform the output of nm in a proper C declaration
16623global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16624
16625# Transform the output of nm in a C name address pair
16626global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16627
16628# This is the shared library runtime path variable.
16629runpath_var=$runpath_var
16630
16631# This is the shared library path variable.
16632shlibpath_var=$shlibpath_var
16633
16634# Is shlibpath searched before the hard-coded library search path?
16635shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16636
16637# How to hardcode a shared library path into an executable.
16638hardcode_action=$hardcode_action_F77
16639
16640# Whether we should hardcode library paths into libraries.
16641hardcode_into_libs=$hardcode_into_libs
16642
16643# Flag to hardcode \$libdir into a binary during linking.
16644# This must work even if \$libdir does not exist.
16645hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16646
16647# If ld is used when linking, flag to hardcode \$libdir into
16648# a binary during linking. This must work even if \$libdir does
16649# not exist.
16650hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16651
16652# Whether we need a single -rpath flag with a separated argument.
16653hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16654
16655# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16656# resulting binary.
16657hardcode_direct=$hardcode_direct_F77
16658
16659# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16660# resulting binary.
16661hardcode_minus_L=$hardcode_minus_L_F77
16662
16663# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16664# the resulting binary.
16665hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16666
16667# Set to yes if building a shared library automatically hardcodes DIR into the library
16668# and all subsequent libraries and executables linked against it.
16669hardcode_automatic=$hardcode_automatic_F77
16670
16671# Variables whose values should be saved in libtool wrapper scripts and
16672# restored at relink time.
16673variables_saved_for_relink="$variables_saved_for_relink"
16674
16675# Whether libtool must link a program against all its dependency libraries.
16676link_all_deplibs=$link_all_deplibs_F77
16677
16678# Compile-time system search path for libraries
16679sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16680
16681# Run-time system search path for libraries
16682sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16683
16684# Fix the shell variable \$srcfile for the compiler.
16685fix_srcfile_path=$lt_fix_srcfile_path
16686
16687# Set to yes if exported symbols are required.
16688always_export_symbols=$always_export_symbols_F77
16689
16690# The commands to list exported symbols.
16691export_symbols_cmds=$lt_export_symbols_cmds_F77
16692
16693# The commands to extract the exported symbol list from a shared archive.
16694extract_expsyms_cmds=$lt_extract_expsyms_cmds
16695
16696# Symbols that should not be listed in the preloaded symbols.
16697exclude_expsyms=$lt_exclude_expsyms_F77
16698
16699# Symbols that must always be exported.
16700include_expsyms=$lt_include_expsyms_F77
16701
16702# ### END LIBTOOL TAG CONFIG: $tagname
16703
16704__EOF__
16705
16706
16707else
16708  # If there is no Makefile yet, we rely on a make rule to execute
16709  # `config.status --recheck' to rerun these tests and create the
16710  # libtool script then.
16711  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16712  if test -f "$ltmain_in"; then
16713    test -f Makefile && make "$ltmain"
16714  fi
16715fi
16716
16717
16718ac_ext=c
16719ac_cpp='$CPP $CPPFLAGS'
16720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16722ac_compiler_gnu=$ac_cv_c_compiler_gnu
16723
16724CC="$lt_save_CC"
16725
16726	else
16727	  tagname=""
16728	fi
16729	;;
16730
16731      GCJ)
16732	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16733
16734
16735# Source file extension for Java test sources.
16736ac_ext=java
16737
16738# Object file extension for compiled Java test sources.
16739objext=o
16740objext_GCJ=$objext
16741
16742# Code to be used in simple compile tests
16743lt_simple_compile_test_code="class foo {}"
16744
16745# Code to be used in simple link tests
16746lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16747
16748# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16749
16750# If no C compiler was specified, use CC.
16751LTCC=${LTCC-"$CC"}
16752
16753# If no C compiler flags were specified, use CFLAGS.
16754LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16755
16756# Allow CC to be a program name with arguments.
16757compiler=$CC
16758
16759
16760# save warnings/boilerplate of simple test code
16761ac_outfile=conftest.$ac_objext
16762echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16763eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16764_lt_compiler_boilerplate=`cat conftest.err`
16765$rm conftest*
16766
16767ac_outfile=conftest.$ac_objext
16768echo "$lt_simple_link_test_code" >conftest.$ac_ext
16769eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16770_lt_linker_boilerplate=`cat conftest.err`
16771$rm -r conftest*
16772
16773
16774# Allow CC to be a program name with arguments.
16775lt_save_CC="$CC"
16776CC=${GCJ-"gcj"}
16777compiler=$CC
16778compiler_GCJ=$CC
16779for cc_temp in $compiler""; do
16780  case $cc_temp in
16781    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16782    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16783    \-*) ;;
16784    *) break;;
16785  esac
16786done
16787cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16788
16789
16790# GCJ did not exist at the time GCC didn't implicitly link libc in.
16791archive_cmds_need_lc_GCJ=no
16792
16793old_archive_cmds_GCJ=$old_archive_cmds
16794
16795
16796lt_prog_compiler_no_builtin_flag_GCJ=
16797
16798if test "$GCC" = yes; then
16799  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16800
16801
16802{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16803echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16804if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16805  echo $ECHO_N "(cached) $ECHO_C" >&6
16806else
16807  lt_cv_prog_compiler_rtti_exceptions=no
16808  ac_outfile=conftest.$ac_objext
16809   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16810   lt_compiler_flag="-fno-rtti -fno-exceptions"
16811   # Insert the option either (1) after the last *FLAGS variable, or
16812   # (2) before a word containing "conftest.", or (3) at the end.
16813   # Note that $ac_compile itself does not contain backslashes and begins
16814   # with a dollar sign (not a hyphen), so the echo should work correctly.
16815   # The option is referenced via a variable to avoid confusing sed.
16816   lt_compile=`echo "$ac_compile" | $SED \
16817   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16818   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16819   -e 's:$: $lt_compiler_flag:'`
16820   (eval echo "\"\$as_me:16820: $lt_compile\"" >&5)
16821   (eval "$lt_compile" 2>conftest.err)
16822   ac_status=$?
16823   cat conftest.err >&5
16824   echo "$as_me:16824: \$? = $ac_status" >&5
16825   if (exit $ac_status) && test -s "$ac_outfile"; then
16826     # The compiler can only warn and ignore the option if not recognized
16827     # So say no if there are warnings other than the usual output.
16828     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16829     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16830     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16831       lt_cv_prog_compiler_rtti_exceptions=yes
16832     fi
16833   fi
16834   $rm conftest*
16835
16836fi
16837{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16838echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16839
16840if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16841    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16842else
16843    :
16844fi
16845
16846fi
16847
16848lt_prog_compiler_wl_GCJ=
16849lt_prog_compiler_pic_GCJ=
16850lt_prog_compiler_static_GCJ=
16851
16852{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16853echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16854
16855  if test "$GCC" = yes; then
16856    lt_prog_compiler_wl_GCJ='-Wl,'
16857    lt_prog_compiler_static_GCJ='-static'
16858
16859    case $host_os in
16860      aix*)
16861      # All AIX code is PIC.
16862      if test "$host_cpu" = ia64; then
16863	# AIX 5 now supports IA64 processor
16864	lt_prog_compiler_static_GCJ='-Bstatic'
16865      fi
16866      ;;
16867
16868    amigaos*)
16869      # FIXME: we need at least 68020 code to build shared libraries, but
16870      # adding the `-m68020' flag to GCC prevents building anything better,
16871      # like `-m68040'.
16872      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16873      ;;
16874
16875    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16876      # PIC is the default for these OSes.
16877      ;;
16878
16879    mingw* | cygwin* | pw32* | os2*)
16880      # This hack is so that the source file can tell whether it is being
16881      # built for inclusion in a dll (and should export symbols for example).
16882      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16883      # (--disable-auto-import) libraries
16884
16885      ;;
16886
16887    darwin* | rhapsody*)
16888      # PIC is the default on this platform
16889      # Common symbols not allowed in MH_DYLIB files
16890      lt_prog_compiler_pic_GCJ='-fno-common'
16891      ;;
16892
16893    interix[3-9]*)
16894      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16895      # Instead, we relocate shared libraries at runtime.
16896      ;;
16897
16898    msdosdjgpp*)
16899      # Just because we use GCC doesn't mean we suddenly get shared libraries
16900      # on systems that don't support them.
16901      lt_prog_compiler_can_build_shared_GCJ=no
16902      enable_shared=no
16903      ;;
16904
16905    sysv4*MP*)
16906      if test -d /usr/nec; then
16907	lt_prog_compiler_pic_GCJ=-Kconform_pic
16908      fi
16909      ;;
16910
16911    hpux*)
16912      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16913      # not for PA HP-UX.
16914      case $host_cpu in
16915      hppa*64*|ia64*)
16916	# +Z the default
16917	;;
16918      *)
16919	lt_prog_compiler_pic_GCJ='-fPIC'
16920	;;
16921      esac
16922      ;;
16923
16924    *)
16925      lt_prog_compiler_pic_GCJ='-fPIC'
16926      ;;
16927    esac
16928  else
16929    # PORTME Check for flag to pass linker flags through the system compiler.
16930    case $host_os in
16931    aix*)
16932      lt_prog_compiler_wl_GCJ='-Wl,'
16933      if test "$host_cpu" = ia64; then
16934	# AIX 5 now supports IA64 processor
16935	lt_prog_compiler_static_GCJ='-Bstatic'
16936      else
16937	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16938      fi
16939      ;;
16940      darwin*)
16941        # PIC is the default on this platform
16942        # Common symbols not allowed in MH_DYLIB files
16943       case $cc_basename in
16944         xlc*)
16945         lt_prog_compiler_pic_GCJ='-qnocommon'
16946         lt_prog_compiler_wl_GCJ='-Wl,'
16947         ;;
16948       esac
16949       ;;
16950
16951    mingw* | cygwin* | pw32* | os2*)
16952      # This hack is so that the source file can tell whether it is being
16953      # built for inclusion in a dll (and should export symbols for example).
16954
16955      ;;
16956
16957    hpux9* | hpux10* | hpux11*)
16958      lt_prog_compiler_wl_GCJ='-Wl,'
16959      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16960      # not for PA HP-UX.
16961      case $host_cpu in
16962      hppa*64*|ia64*)
16963	# +Z the default
16964	;;
16965      *)
16966	lt_prog_compiler_pic_GCJ='+Z'
16967	;;
16968      esac
16969      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16970      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16971      ;;
16972
16973    irix5* | irix6* | nonstopux*)
16974      lt_prog_compiler_wl_GCJ='-Wl,'
16975      # PIC (with -KPIC) is the default.
16976      lt_prog_compiler_static_GCJ='-non_shared'
16977      ;;
16978
16979    newsos6)
16980      lt_prog_compiler_pic_GCJ='-KPIC'
16981      lt_prog_compiler_static_GCJ='-Bstatic'
16982      ;;
16983
16984    linux* | k*bsd*-gnu)
16985      case $cc_basename in
16986      icc* | ecc*)
16987	lt_prog_compiler_wl_GCJ='-Wl,'
16988	lt_prog_compiler_pic_GCJ='-KPIC'
16989	lt_prog_compiler_static_GCJ='-static'
16990        ;;
16991      pgcc* | pgf77* | pgf90* | pgf95*)
16992        # Portland Group compilers (*not* the Pentium gcc compiler,
16993	# which looks to be a dead project)
16994	lt_prog_compiler_wl_GCJ='-Wl,'
16995	lt_prog_compiler_pic_GCJ='-fpic'
16996	lt_prog_compiler_static_GCJ='-Bstatic'
16997        ;;
16998      ccc*)
16999        lt_prog_compiler_wl_GCJ='-Wl,'
17000        # All Alpha code is PIC.
17001        lt_prog_compiler_static_GCJ='-non_shared'
17002        ;;
17003      *)
17004        case `$CC -V 2>&1 | sed 5q` in
17005	*Sun\ C*)
17006	  # Sun C 5.9
17007	  lt_prog_compiler_pic_GCJ='-KPIC'
17008	  lt_prog_compiler_static_GCJ='-Bstatic'
17009	  lt_prog_compiler_wl_GCJ='-Wl,'
17010	  ;;
17011	*Sun\ F*)
17012	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17013	  lt_prog_compiler_pic_GCJ='-KPIC'
17014	  lt_prog_compiler_static_GCJ='-Bstatic'
17015	  lt_prog_compiler_wl_GCJ=''
17016	  ;;
17017	esac
17018	;;
17019      esac
17020      ;;
17021
17022    osf3* | osf4* | osf5*)
17023      lt_prog_compiler_wl_GCJ='-Wl,'
17024      # All OSF/1 code is PIC.
17025      lt_prog_compiler_static_GCJ='-non_shared'
17026      ;;
17027
17028    rdos*)
17029      lt_prog_compiler_static_GCJ='-non_shared'
17030      ;;
17031
17032    solaris*)
17033      lt_prog_compiler_pic_GCJ='-KPIC'
17034      lt_prog_compiler_static_GCJ='-Bstatic'
17035      case $cc_basename in
17036      f77* | f90* | f95*)
17037	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17038      *)
17039	lt_prog_compiler_wl_GCJ='-Wl,';;
17040      esac
17041      ;;
17042
17043    sunos4*)
17044      lt_prog_compiler_wl_GCJ='-Qoption ld '
17045      lt_prog_compiler_pic_GCJ='-PIC'
17046      lt_prog_compiler_static_GCJ='-Bstatic'
17047      ;;
17048
17049    sysv4 | sysv4.2uw2* | sysv4.3*)
17050      lt_prog_compiler_wl_GCJ='-Wl,'
17051      lt_prog_compiler_pic_GCJ='-KPIC'
17052      lt_prog_compiler_static_GCJ='-Bstatic'
17053      ;;
17054
17055    sysv4*MP*)
17056      if test -d /usr/nec ;then
17057	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17058	lt_prog_compiler_static_GCJ='-Bstatic'
17059      fi
17060      ;;
17061
17062    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17063      lt_prog_compiler_wl_GCJ='-Wl,'
17064      lt_prog_compiler_pic_GCJ='-KPIC'
17065      lt_prog_compiler_static_GCJ='-Bstatic'
17066      ;;
17067
17068    unicos*)
17069      lt_prog_compiler_wl_GCJ='-Wl,'
17070      lt_prog_compiler_can_build_shared_GCJ=no
17071      ;;
17072
17073    uts4*)
17074      lt_prog_compiler_pic_GCJ='-pic'
17075      lt_prog_compiler_static_GCJ='-Bstatic'
17076      ;;
17077
17078    *)
17079      lt_prog_compiler_can_build_shared_GCJ=no
17080      ;;
17081    esac
17082  fi
17083
17084{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17085echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17086
17087#
17088# Check to make sure the PIC flag actually works.
17089#
17090if test -n "$lt_prog_compiler_pic_GCJ"; then
17091
17092{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17093echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17094if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17095  echo $ECHO_N "(cached) $ECHO_C" >&6
17096else
17097  lt_cv_prog_compiler_pic_works_GCJ=no
17098  ac_outfile=conftest.$ac_objext
17099   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17100   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17101   # Insert the option either (1) after the last *FLAGS variable, or
17102   # (2) before a word containing "conftest.", or (3) at the end.
17103   # Note that $ac_compile itself does not contain backslashes and begins
17104   # with a dollar sign (not a hyphen), so the echo should work correctly.
17105   # The option is referenced via a variable to avoid confusing sed.
17106   lt_compile=`echo "$ac_compile" | $SED \
17107   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17108   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17109   -e 's:$: $lt_compiler_flag:'`
17110   (eval echo "\"\$as_me:17110: $lt_compile\"" >&5)
17111   (eval "$lt_compile" 2>conftest.err)
17112   ac_status=$?
17113   cat conftest.err >&5
17114   echo "$as_me:17114: \$? = $ac_status" >&5
17115   if (exit $ac_status) && test -s "$ac_outfile"; then
17116     # The compiler can only warn and ignore the option if not recognized
17117     # So say no if there are warnings other than the usual output.
17118     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17119     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17120     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17121       lt_cv_prog_compiler_pic_works_GCJ=yes
17122     fi
17123   fi
17124   $rm conftest*
17125
17126fi
17127{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17128echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17129
17130if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17131    case $lt_prog_compiler_pic_GCJ in
17132     "" | " "*) ;;
17133     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17134     esac
17135else
17136    lt_prog_compiler_pic_GCJ=
17137     lt_prog_compiler_can_build_shared_GCJ=no
17138fi
17139
17140fi
17141case $host_os in
17142  # For platforms which do not support PIC, -DPIC is meaningless:
17143  *djgpp*)
17144    lt_prog_compiler_pic_GCJ=
17145    ;;
17146  *)
17147    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17148    ;;
17149esac
17150
17151#
17152# Check to make sure the static flag actually works.
17153#
17154wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17155{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17156echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17157if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17158  echo $ECHO_N "(cached) $ECHO_C" >&6
17159else
17160  lt_cv_prog_compiler_static_works_GCJ=no
17161   save_LDFLAGS="$LDFLAGS"
17162   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17163   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17164   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17165     # The linker can only warn and ignore the option if not recognized
17166     # So say no if there are warnings
17167     if test -s conftest.err; then
17168       # Append any errors to the config.log.
17169       cat conftest.err 1>&5
17170       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17171       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17172       if diff conftest.exp conftest.er2 >/dev/null; then
17173         lt_cv_prog_compiler_static_works_GCJ=yes
17174       fi
17175     else
17176       lt_cv_prog_compiler_static_works_GCJ=yes
17177     fi
17178   fi
17179   $rm -r conftest*
17180   LDFLAGS="$save_LDFLAGS"
17181
17182fi
17183{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17184echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17185
17186if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17187    :
17188else
17189    lt_prog_compiler_static_GCJ=
17190fi
17191
17192
17193{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17194echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17195if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17196  echo $ECHO_N "(cached) $ECHO_C" >&6
17197else
17198  lt_cv_prog_compiler_c_o_GCJ=no
17199   $rm -r conftest 2>/dev/null
17200   mkdir conftest
17201   cd conftest
17202   mkdir out
17203   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17204
17205   lt_compiler_flag="-o out/conftest2.$ac_objext"
17206   # Insert the option either (1) after the last *FLAGS variable, or
17207   # (2) before a word containing "conftest.", or (3) at the end.
17208   # Note that $ac_compile itself does not contain backslashes and begins
17209   # with a dollar sign (not a hyphen), so the echo should work correctly.
17210   lt_compile=`echo "$ac_compile" | $SED \
17211   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17212   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17213   -e 's:$: $lt_compiler_flag:'`
17214   (eval echo "\"\$as_me:17214: $lt_compile\"" >&5)
17215   (eval "$lt_compile" 2>out/conftest.err)
17216   ac_status=$?
17217   cat out/conftest.err >&5
17218   echo "$as_me:17218: \$? = $ac_status" >&5
17219   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17220   then
17221     # The compiler can only warn and ignore the option if not recognized
17222     # So say no if there are warnings
17223     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17224     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17225     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17226       lt_cv_prog_compiler_c_o_GCJ=yes
17227     fi
17228   fi
17229   chmod u+w . 2>&5
17230   $rm conftest*
17231   # SGI C++ compiler will create directory out/ii_files/ for
17232   # template instantiation
17233   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17234   $rm out/* && rmdir out
17235   cd ..
17236   rmdir conftest
17237   $rm conftest*
17238
17239fi
17240{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17241echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17242
17243
17244hard_links="nottested"
17245if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17246  # do not overwrite the value of need_locks provided by the user
17247  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17248echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17249  hard_links=yes
17250  $rm conftest*
17251  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17252  touch conftest.a
17253  ln conftest.a conftest.b 2>&5 || hard_links=no
17254  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17255  { echo "$as_me:$LINENO: result: $hard_links" >&5
17256echo "${ECHO_T}$hard_links" >&6; }
17257  if test "$hard_links" = no; then
17258    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17259echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17260    need_locks=warn
17261  fi
17262else
17263  need_locks=no
17264fi
17265
17266{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17267echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17268
17269  runpath_var=
17270  allow_undefined_flag_GCJ=
17271  enable_shared_with_static_runtimes_GCJ=no
17272  archive_cmds_GCJ=
17273  archive_expsym_cmds_GCJ=
17274  old_archive_From_new_cmds_GCJ=
17275  old_archive_from_expsyms_cmds_GCJ=
17276  export_dynamic_flag_spec_GCJ=
17277  whole_archive_flag_spec_GCJ=
17278  thread_safe_flag_spec_GCJ=
17279  hardcode_libdir_flag_spec_GCJ=
17280  hardcode_libdir_flag_spec_ld_GCJ=
17281  hardcode_libdir_separator_GCJ=
17282  hardcode_direct_GCJ=no
17283  hardcode_minus_L_GCJ=no
17284  hardcode_shlibpath_var_GCJ=unsupported
17285  link_all_deplibs_GCJ=unknown
17286  hardcode_automatic_GCJ=no
17287  module_cmds_GCJ=
17288  module_expsym_cmds_GCJ=
17289  always_export_symbols_GCJ=no
17290  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17291  # include_expsyms should be a list of space-separated symbols to be *always*
17292  # included in the symbol list
17293  include_expsyms_GCJ=
17294  # exclude_expsyms can be an extended regexp of symbols to exclude
17295  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17296  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17297  # as well as any symbol that contains `d'.
17298  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17299  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17300  # platforms (ab)use it in PIC code, but their linkers get confused if
17301  # the symbol is explicitly referenced.  Since portable code cannot
17302  # rely on this symbol name, it's probably fine to never include it in
17303  # preloaded symbol tables.
17304  # Exclude shared library initialization/finalization symbols.
17305  extract_expsyms_cmds=
17306  # Just being paranoid about ensuring that cc_basename is set.
17307  for cc_temp in $compiler""; do
17308  case $cc_temp in
17309    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17310    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17311    \-*) ;;
17312    *) break;;
17313  esac
17314done
17315cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17316
17317  case $host_os in
17318  cygwin* | mingw* | pw32*)
17319    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17320    # When not using gcc, we currently assume that we are using
17321    # Microsoft Visual C++.
17322    if test "$GCC" != yes; then
17323      with_gnu_ld=no
17324    fi
17325    ;;
17326  interix*)
17327    # we just hope/assume this is gcc and not c89 (= MSVC++)
17328    with_gnu_ld=yes
17329    ;;
17330  openbsd*)
17331    with_gnu_ld=no
17332    ;;
17333  esac
17334
17335  ld_shlibs_GCJ=yes
17336  if test "$with_gnu_ld" = yes; then
17337    # If archive_cmds runs LD, not CC, wlarc should be empty
17338    wlarc='${wl}'
17339
17340    # Set some defaults for GNU ld with shared library support. These
17341    # are reset later if shared libraries are not supported. Putting them
17342    # here allows them to be overridden if necessary.
17343    runpath_var=LD_RUN_PATH
17344    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17345    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17346    # ancient GNU ld didn't support --whole-archive et. al.
17347    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17348	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17349      else
17350  	whole_archive_flag_spec_GCJ=
17351    fi
17352    supports_anon_versioning=no
17353    case `$LD -v 2>/dev/null` in
17354      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17355      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17356      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17357      *\ 2.11.*) ;; # other 2.11 versions
17358      *) supports_anon_versioning=yes ;;
17359    esac
17360
17361    # See if GNU ld supports shared libraries.
17362    case $host_os in
17363    aix[3-9]*)
17364      # On AIX/PPC, the GNU linker is very broken
17365      if test "$host_cpu" != ia64; then
17366	ld_shlibs_GCJ=no
17367	cat <<EOF 1>&2
17368
17369*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17370*** to be unable to reliably create shared libraries on AIX.
17371*** Therefore, libtool is disabling shared libraries support.  If you
17372*** really care for shared libraries, you may want to modify your PATH
17373*** so that a non-GNU linker is found, and then restart.
17374
17375EOF
17376      fi
17377      ;;
17378
17379    amigaos*)
17380      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)'
17381      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17382      hardcode_minus_L_GCJ=yes
17383
17384      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17385      # that the semantics of dynamic libraries on AmigaOS, at least up
17386      # to version 4, is to share data among multiple programs linked
17387      # with the same dynamic library.  Since this doesn't match the
17388      # behavior of shared libraries on other platforms, we can't use
17389      # them.
17390      ld_shlibs_GCJ=no
17391      ;;
17392
17393    beos*)
17394      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17395	allow_undefined_flag_GCJ=unsupported
17396	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17397	# support --undefined.  This deserves some investigation.  FIXME
17398	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17399      else
17400	ld_shlibs_GCJ=no
17401      fi
17402      ;;
17403
17404    cygwin* | mingw* | pw32*)
17405      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17406      # as there is no search path for DLLs.
17407      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17408      allow_undefined_flag_GCJ=unsupported
17409      always_export_symbols_GCJ=no
17410      enable_shared_with_static_runtimes_GCJ=yes
17411      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17412
17413      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17414        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17415	# If the export-symbols file already is a .def file (1st line
17416	# is EXPORTS), use it as is; otherwise, prepend...
17417	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17418	  cp $export_symbols $output_objdir/$soname.def;
17419	else
17420	  echo EXPORTS > $output_objdir/$soname.def;
17421	  cat $export_symbols >> $output_objdir/$soname.def;
17422	fi~
17423	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17424      else
17425	ld_shlibs_GCJ=no
17426      fi
17427      ;;
17428
17429    interix[3-9]*)
17430      hardcode_direct_GCJ=no
17431      hardcode_shlibpath_var_GCJ=no
17432      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17433      export_dynamic_flag_spec_GCJ='${wl}-E'
17434      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17435      # Instead, shared libraries are loaded at an image base (0x10000000 by
17436      # default) and relocated if they conflict, which is a slow very memory
17437      # consuming and fragmenting process.  To avoid this, we pick a random,
17438      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17439      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17440      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'
17441      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'
17442      ;;
17443
17444    gnu* | linux* | k*bsd*-gnu)
17445      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17446	tmp_addflag=
17447	case $cc_basename,$host_cpu in
17448	pgcc*)				# Portland Group C compiler
17449	  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'
17450	  tmp_addflag=' $pic_flag'
17451	  ;;
17452	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17453	  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'
17454	  tmp_addflag=' $pic_flag -Mnomain' ;;
17455	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17456	  tmp_addflag=' -i_dynamic' ;;
17457	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17458	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17459	ifc* | ifort*)			# Intel Fortran compiler
17460	  tmp_addflag=' -nofor_main' ;;
17461	esac
17462	case `$CC -V 2>&1 | sed 5q` in
17463	*Sun\ C*)			# Sun C 5.9
17464	  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'
17465	  tmp_sharedflag='-G' ;;
17466	*Sun\ F*)			# Sun Fortran 8.3
17467	  tmp_sharedflag='-G' ;;
17468	*)
17469	  tmp_sharedflag='-shared' ;;
17470	esac
17471	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17472
17473	if test $supports_anon_versioning = yes; then
17474	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17475  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17476  $echo "local: *; };" >> $output_objdir/$libname.ver~
17477	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17478	fi
17479	link_all_deplibs_GCJ=no
17480      else
17481	ld_shlibs_GCJ=no
17482      fi
17483      ;;
17484
17485    netbsd* | netbsdelf*-gnu)
17486      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17487	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17488	wlarc=
17489      else
17490	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17491	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17492      fi
17493      ;;
17494
17495    solaris*)
17496      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17497	ld_shlibs_GCJ=no
17498	cat <<EOF 1>&2
17499
17500*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17501*** create shared libraries on Solaris systems.  Therefore, libtool
17502*** is disabling shared libraries support.  We urge you to upgrade GNU
17503*** binutils to release 2.9.1 or newer.  Another option is to modify
17504*** your PATH or compiler configuration so that the native linker is
17505*** used, and then restart.
17506
17507EOF
17508      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17509	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17510	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17511      else
17512	ld_shlibs_GCJ=no
17513      fi
17514      ;;
17515
17516    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17517      case `$LD -v 2>&1` in
17518        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17519	ld_shlibs_GCJ=no
17520	cat <<_LT_EOF 1>&2
17521
17522*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17523*** reliably create shared libraries on SCO systems.  Therefore, libtool
17524*** is disabling shared libraries support.  We urge you to upgrade GNU
17525*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17526*** your PATH or compiler configuration so that the native linker is
17527*** used, and then restart.
17528
17529_LT_EOF
17530	;;
17531	*)
17532	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17533	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17534	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17535	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17536	  else
17537	    ld_shlibs_GCJ=no
17538	  fi
17539	;;
17540      esac
17541      ;;
17542
17543    sunos4*)
17544      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17545      wlarc=
17546      hardcode_direct_GCJ=yes
17547      hardcode_shlibpath_var_GCJ=no
17548      ;;
17549
17550    *)
17551      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17552	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17553	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17554      else
17555	ld_shlibs_GCJ=no
17556      fi
17557      ;;
17558    esac
17559
17560    if test "$ld_shlibs_GCJ" = no; then
17561      runpath_var=
17562      hardcode_libdir_flag_spec_GCJ=
17563      export_dynamic_flag_spec_GCJ=
17564      whole_archive_flag_spec_GCJ=
17565    fi
17566  else
17567    # PORTME fill in a description of your system's linker (not GNU ld)
17568    case $host_os in
17569    aix3*)
17570      allow_undefined_flag_GCJ=unsupported
17571      always_export_symbols_GCJ=yes
17572      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'
17573      # Note: this linker hardcodes the directories in LIBPATH if there
17574      # are no directories specified by -L.
17575      hardcode_minus_L_GCJ=yes
17576      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17577	# Neither direct hardcoding nor static linking is supported with a
17578	# broken collect2.
17579	hardcode_direct_GCJ=unsupported
17580      fi
17581      ;;
17582
17583    aix[4-9]*)
17584      if test "$host_cpu" = ia64; then
17585	# On IA64, the linker does run time linking by default, so we don't
17586	# have to do anything special.
17587	aix_use_runtimelinking=no
17588	exp_sym_flag='-Bexport'
17589	no_entry_flag=""
17590      else
17591	# If we're using GNU nm, then we don't want the "-C" option.
17592	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17593	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17594	  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'
17595	else
17596	  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'
17597	fi
17598	aix_use_runtimelinking=no
17599
17600	# Test if we are trying to use run time linking or normal
17601	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17602	# need to do runtime linking.
17603	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17604	  for ld_flag in $LDFLAGS; do
17605  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17606  	    aix_use_runtimelinking=yes
17607  	    break
17608  	  fi
17609	  done
17610	  ;;
17611	esac
17612
17613	exp_sym_flag='-bexport'
17614	no_entry_flag='-bnoentry'
17615      fi
17616
17617      # When large executables or shared objects are built, AIX ld can
17618      # have problems creating the table of contents.  If linking a library
17619      # or program results in "error TOC overflow" add -mminimal-toc to
17620      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17621      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17622
17623      archive_cmds_GCJ=''
17624      hardcode_direct_GCJ=yes
17625      hardcode_libdir_separator_GCJ=':'
17626      link_all_deplibs_GCJ=yes
17627
17628      if test "$GCC" = yes; then
17629	case $host_os in aix4.[012]|aix4.[012].*)
17630	# We only want to do this on AIX 4.2 and lower, the check
17631	# below for broken collect2 doesn't work under 4.3+
17632	  collect2name=`${CC} -print-prog-name=collect2`
17633	  if test -f "$collect2name" && \
17634  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17635	  then
17636  	  # We have reworked collect2
17637  	  :
17638	  else
17639  	  # We have old collect2
17640  	  hardcode_direct_GCJ=unsupported
17641  	  # It fails to find uninstalled libraries when the uninstalled
17642  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17643  	  # to unsupported forces relinking
17644  	  hardcode_minus_L_GCJ=yes
17645  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17646  	  hardcode_libdir_separator_GCJ=
17647	  fi
17648	  ;;
17649	esac
17650	shared_flag='-shared'
17651	if test "$aix_use_runtimelinking" = yes; then
17652	  shared_flag="$shared_flag "'${wl}-G'
17653	fi
17654      else
17655	# not using gcc
17656	if test "$host_cpu" = ia64; then
17657  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17658  	# chokes on -Wl,-G. The following line is correct:
17659	  shared_flag='-G'
17660	else
17661	  if test "$aix_use_runtimelinking" = yes; then
17662	    shared_flag='${wl}-G'
17663	  else
17664	    shared_flag='${wl}-bM:SRE'
17665	  fi
17666	fi
17667      fi
17668
17669      # It seems that -bexpall does not export symbols beginning with
17670      # underscore (_), so it is better to generate a list of symbols to export.
17671      always_export_symbols_GCJ=yes
17672      if test "$aix_use_runtimelinking" = yes; then
17673	# Warning - without using the other runtime loading flags (-brtl),
17674	# -berok will link without error, but may produce a broken library.
17675	allow_undefined_flag_GCJ='-berok'
17676       # Determine the default libpath from the value encoded in an empty executable.
17677       cat >conftest.$ac_ext <<_ACEOF
17678/* confdefs.h.  */
17679_ACEOF
17680cat confdefs.h >>conftest.$ac_ext
17681cat >>conftest.$ac_ext <<_ACEOF
17682/* end confdefs.h.  */
17683
17684int
17685main ()
17686{
17687
17688  ;
17689  return 0;
17690}
17691_ACEOF
17692rm -f conftest.$ac_objext conftest$ac_exeext
17693if { (ac_try="$ac_link"
17694case "(($ac_try" in
17695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17696  *) ac_try_echo=$ac_try;;
17697esac
17698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17699  (eval "$ac_link") 2>conftest.er1
17700  ac_status=$?
17701  grep -v '^ *+' conftest.er1 >conftest.err
17702  rm -f conftest.er1
17703  cat conftest.err >&5
17704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705  (exit $ac_status); } && {
17706	 test -z "$ac_c_werror_flag" ||
17707	 test ! -s conftest.err
17708       } && test -s conftest$ac_exeext &&
17709       $as_test_x conftest$ac_exeext; then
17710
17711lt_aix_libpath_sed='
17712    /Import File Strings/,/^$/ {
17713	/^0/ {
17714	    s/^0  *\(.*\)$/\1/
17715	    p
17716	}
17717    }'
17718aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17719# Check for a 64-bit object if we didn't find anything.
17720if test -z "$aix_libpath"; then
17721  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17722fi
17723else
17724  echo "$as_me: failed program was:" >&5
17725sed 's/^/| /' conftest.$ac_ext >&5
17726
17727
17728fi
17729
17730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17731      conftest$ac_exeext conftest.$ac_ext
17732if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17733
17734       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17735	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"
17736       else
17737	if test "$host_cpu" = ia64; then
17738	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17739	  allow_undefined_flag_GCJ="-z nodefs"
17740	  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"
17741	else
17742	 # Determine the default libpath from the value encoded in an empty executable.
17743	 cat >conftest.$ac_ext <<_ACEOF
17744/* confdefs.h.  */
17745_ACEOF
17746cat confdefs.h >>conftest.$ac_ext
17747cat >>conftest.$ac_ext <<_ACEOF
17748/* end confdefs.h.  */
17749
17750int
17751main ()
17752{
17753
17754  ;
17755  return 0;
17756}
17757_ACEOF
17758rm -f conftest.$ac_objext conftest$ac_exeext
17759if { (ac_try="$ac_link"
17760case "(($ac_try" in
17761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762  *) ac_try_echo=$ac_try;;
17763esac
17764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17765  (eval "$ac_link") 2>conftest.er1
17766  ac_status=$?
17767  grep -v '^ *+' conftest.er1 >conftest.err
17768  rm -f conftest.er1
17769  cat conftest.err >&5
17770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771  (exit $ac_status); } && {
17772	 test -z "$ac_c_werror_flag" ||
17773	 test ! -s conftest.err
17774       } && test -s conftest$ac_exeext &&
17775       $as_test_x conftest$ac_exeext; then
17776
17777lt_aix_libpath_sed='
17778    /Import File Strings/,/^$/ {
17779	/^0/ {
17780	    s/^0  *\(.*\)$/\1/
17781	    p
17782	}
17783    }'
17784aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17785# Check for a 64-bit object if we didn't find anything.
17786if test -z "$aix_libpath"; then
17787  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17788fi
17789else
17790  echo "$as_me: failed program was:" >&5
17791sed 's/^/| /' conftest.$ac_ext >&5
17792
17793
17794fi
17795
17796rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17797      conftest$ac_exeext conftest.$ac_ext
17798if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17799
17800	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17801	  # Warning - without using the other run time loading flags,
17802	  # -berok will link without error, but may produce a broken library.
17803	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17804	  allow_undefined_flag_GCJ=' ${wl}-berok'
17805	  # Exported symbols can be pulled into shared objects from archives
17806	  whole_archive_flag_spec_GCJ='$convenience'
17807	  archive_cmds_need_lc_GCJ=yes
17808	  # This is similar to how AIX traditionally builds its shared libraries.
17809	  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'
17810	fi
17811      fi
17812      ;;
17813
17814    amigaos*)
17815      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)'
17816      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17817      hardcode_minus_L_GCJ=yes
17818      # see comment about different semantics on the GNU ld section
17819      ld_shlibs_GCJ=no
17820      ;;
17821
17822    bsdi[45]*)
17823      export_dynamic_flag_spec_GCJ=-rdynamic
17824      ;;
17825
17826    cygwin* | mingw* | pw32*)
17827      # When not using gcc, we currently assume that we are using
17828      # Microsoft Visual C++.
17829      # hardcode_libdir_flag_spec is actually meaningless, as there is
17830      # no search path for DLLs.
17831      hardcode_libdir_flag_spec_GCJ=' '
17832      allow_undefined_flag_GCJ=unsupported
17833      # Tell ltmain to make .lib files, not .a files.
17834      libext=lib
17835      # Tell ltmain to make .dll files, not .so files.
17836      shrext_cmds=".dll"
17837      # FIXME: Setting linknames here is a bad hack.
17838      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17839      # The linker will automatically build a .lib file if we build a DLL.
17840      old_archive_From_new_cmds_GCJ='true'
17841      # FIXME: Should let the user specify the lib program.
17842      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17843      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17844      enable_shared_with_static_runtimes_GCJ=yes
17845      ;;
17846
17847    darwin* | rhapsody*)
17848      case $host_os in
17849        rhapsody* | darwin1.[012])
17850         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17851         ;;
17852       *) # Darwin 1.3 on
17853         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17854           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17855         else
17856           case ${MACOSX_DEPLOYMENT_TARGET} in
17857             10.[012])
17858               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17859               ;;
17860             10.*)
17861               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17862               ;;
17863           esac
17864         fi
17865         ;;
17866      esac
17867      archive_cmds_need_lc_GCJ=no
17868      hardcode_direct_GCJ=no
17869      hardcode_automatic_GCJ=yes
17870      hardcode_shlibpath_var_GCJ=unsupported
17871      whole_archive_flag_spec_GCJ=''
17872      link_all_deplibs_GCJ=yes
17873    if test "$GCC" = yes ; then
17874    	output_verbose_link_cmd='echo'
17875        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17876        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17877        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17878        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17879    else
17880      case $cc_basename in
17881        xlc*)
17882         output_verbose_link_cmd='echo'
17883         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17884         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17885          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17886         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}'
17887          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}'
17888          ;;
17889       *)
17890         ld_shlibs_GCJ=no
17891          ;;
17892      esac
17893    fi
17894      ;;
17895
17896    dgux*)
17897      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17898      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17899      hardcode_shlibpath_var_GCJ=no
17900      ;;
17901
17902    freebsd1*)
17903      ld_shlibs_GCJ=no
17904      ;;
17905
17906    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17907    # support.  Future versions do this automatically, but an explicit c++rt0.o
17908    # does not break anything, and helps significantly (at the cost of a little
17909    # extra space).
17910    freebsd2.2*)
17911      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17912      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17913      hardcode_direct_GCJ=yes
17914      hardcode_shlibpath_var_GCJ=no
17915      ;;
17916
17917    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17918    freebsd2*)
17919      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17920      hardcode_direct_GCJ=yes
17921      hardcode_minus_L_GCJ=yes
17922      hardcode_shlibpath_var_GCJ=no
17923      ;;
17924
17925    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17926    freebsd* | dragonfly*)
17927      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17928      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17929      hardcode_direct_GCJ=yes
17930      hardcode_shlibpath_var_GCJ=no
17931      ;;
17932
17933    hpux9*)
17934      if test "$GCC" = yes; then
17935	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'
17936      else
17937	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'
17938      fi
17939      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17940      hardcode_libdir_separator_GCJ=:
17941      hardcode_direct_GCJ=yes
17942
17943      # hardcode_minus_L: Not really in the search PATH,
17944      # but as the default location of the library.
17945      hardcode_minus_L_GCJ=yes
17946      export_dynamic_flag_spec_GCJ='${wl}-E'
17947      ;;
17948
17949    hpux10*)
17950      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17951	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17952      else
17953	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17954      fi
17955      if test "$with_gnu_ld" = no; then
17956	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17957	hardcode_libdir_separator_GCJ=:
17958
17959	hardcode_direct_GCJ=yes
17960	export_dynamic_flag_spec_GCJ='${wl}-E'
17961
17962	# hardcode_minus_L: Not really in the search PATH,
17963	# but as the default location of the library.
17964	hardcode_minus_L_GCJ=yes
17965      fi
17966      ;;
17967
17968    hpux11*)
17969      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17970	case $host_cpu in
17971	hppa*64*)
17972	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17973	  ;;
17974	ia64*)
17975	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17976	  ;;
17977	*)
17978	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17979	  ;;
17980	esac
17981      else
17982	case $host_cpu in
17983	hppa*64*)
17984	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17985	  ;;
17986	ia64*)
17987	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17988	  ;;
17989	*)
17990	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17991	  ;;
17992	esac
17993      fi
17994      if test "$with_gnu_ld" = no; then
17995	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17996	hardcode_libdir_separator_GCJ=:
17997
17998	case $host_cpu in
17999	hppa*64*|ia64*)
18000	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18001	  hardcode_direct_GCJ=no
18002	  hardcode_shlibpath_var_GCJ=no
18003	  ;;
18004	*)
18005	  hardcode_direct_GCJ=yes
18006	  export_dynamic_flag_spec_GCJ='${wl}-E'
18007
18008	  # hardcode_minus_L: Not really in the search PATH,
18009	  # but as the default location of the library.
18010	  hardcode_minus_L_GCJ=yes
18011	  ;;
18012	esac
18013      fi
18014      ;;
18015
18016    irix5* | irix6* | nonstopux*)
18017      if test "$GCC" = yes; then
18018	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'
18019      else
18020	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'
18021	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18022      fi
18023      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18024      hardcode_libdir_separator_GCJ=:
18025      link_all_deplibs_GCJ=yes
18026      ;;
18027
18028    netbsd* | netbsdelf*-gnu)
18029      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18030	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18031      else
18032	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18033      fi
18034      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18035      hardcode_direct_GCJ=yes
18036      hardcode_shlibpath_var_GCJ=no
18037      ;;
18038
18039    newsos6)
18040      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18041      hardcode_direct_GCJ=yes
18042      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18043      hardcode_libdir_separator_GCJ=:
18044      hardcode_shlibpath_var_GCJ=no
18045      ;;
18046
18047    openbsd*)
18048      if test -f /usr/libexec/ld.so; then
18049	hardcode_direct_GCJ=yes
18050	hardcode_shlibpath_var_GCJ=no
18051	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18052	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18053	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18054	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18055	  export_dynamic_flag_spec_GCJ='${wl}-E'
18056	else
18057	  case $host_os in
18058	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18059	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18060	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18061	     ;;
18062	   *)
18063	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18064	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18065	     ;;
18066	  esac
18067        fi
18068      else
18069	ld_shlibs_GCJ=no
18070      fi
18071      ;;
18072
18073    os2*)
18074      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18075      hardcode_minus_L_GCJ=yes
18076      allow_undefined_flag_GCJ=unsupported
18077      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'
18078      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18079      ;;
18080
18081    osf3*)
18082      if test "$GCC" = yes; then
18083	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18084	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'
18085      else
18086	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18087	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'
18088      fi
18089      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18090      hardcode_libdir_separator_GCJ=:
18091      ;;
18092
18093    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18094      if test "$GCC" = yes; then
18095	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18096	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'
18097	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18098      else
18099	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18100	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'
18101	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~
18102	$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'
18103
18104	# Both c and cxx compiler support -rpath directly
18105	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18106      fi
18107      hardcode_libdir_separator_GCJ=:
18108      ;;
18109
18110    solaris*)
18111      no_undefined_flag_GCJ=' -z text'
18112      if test "$GCC" = yes; then
18113	wlarc='${wl}'
18114	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18115	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18116	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18117      else
18118	wlarc=''
18119	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18120	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18121  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18122      fi
18123      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18124      hardcode_shlibpath_var_GCJ=no
18125      case $host_os in
18126      solaris2.[0-5] | solaris2.[0-5].*) ;;
18127      *)
18128	# The compiler driver will combine and reorder linker options,
18129	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18130	# but is careful enough not to reorder.
18131 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18132	if test "$GCC" = yes; then
18133	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18134	else
18135	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18136	fi
18137	;;
18138      esac
18139      link_all_deplibs_GCJ=yes
18140      ;;
18141
18142    sunos4*)
18143      if test "x$host_vendor" = xsequent; then
18144	# Use $CC to link under sequent, because it throws in some extra .o
18145	# files that make .init and .fini sections work.
18146	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18147      else
18148	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18149      fi
18150      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18151      hardcode_direct_GCJ=yes
18152      hardcode_minus_L_GCJ=yes
18153      hardcode_shlibpath_var_GCJ=no
18154      ;;
18155
18156    sysv4)
18157      case $host_vendor in
18158	sni)
18159	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18160	  hardcode_direct_GCJ=yes # is this really true???
18161	;;
18162	siemens)
18163	  ## LD is ld it makes a PLAMLIB
18164	  ## CC just makes a GrossModule.
18165	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18166	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18167	  hardcode_direct_GCJ=no
18168        ;;
18169	motorola)
18170	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18171	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18172	;;
18173      esac
18174      runpath_var='LD_RUN_PATH'
18175      hardcode_shlibpath_var_GCJ=no
18176      ;;
18177
18178    sysv4.3*)
18179      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18180      hardcode_shlibpath_var_GCJ=no
18181      export_dynamic_flag_spec_GCJ='-Bexport'
18182      ;;
18183
18184    sysv4*MP*)
18185      if test -d /usr/nec; then
18186	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18187	hardcode_shlibpath_var_GCJ=no
18188	runpath_var=LD_RUN_PATH
18189	hardcode_runpath_var=yes
18190	ld_shlibs_GCJ=yes
18191      fi
18192      ;;
18193
18194    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18195      no_undefined_flag_GCJ='${wl}-z,text'
18196      archive_cmds_need_lc_GCJ=no
18197      hardcode_shlibpath_var_GCJ=no
18198      runpath_var='LD_RUN_PATH'
18199
18200      if test "$GCC" = yes; then
18201	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18202	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18203      else
18204	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18205	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18206      fi
18207      ;;
18208
18209    sysv5* | sco3.2v5* | sco5v6*)
18210      # Note: We can NOT use -z defs as we might desire, because we do not
18211      # link with -lc, and that would cause any symbols used from libc to
18212      # always be unresolved, which means just about no library would
18213      # ever link correctly.  If we're not using GNU ld we use -z text
18214      # though, which does catch some bad symbols but isn't as heavy-handed
18215      # as -z defs.
18216      no_undefined_flag_GCJ='${wl}-z,text'
18217      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18218      archive_cmds_need_lc_GCJ=no
18219      hardcode_shlibpath_var_GCJ=no
18220      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18221      hardcode_libdir_separator_GCJ=':'
18222      link_all_deplibs_GCJ=yes
18223      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18224      runpath_var='LD_RUN_PATH'
18225
18226      if test "$GCC" = yes; then
18227	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18228	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18229      else
18230	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18231	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18232      fi
18233      ;;
18234
18235    uts4*)
18236      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18237      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18238      hardcode_shlibpath_var_GCJ=no
18239      ;;
18240
18241    *)
18242      ld_shlibs_GCJ=no
18243      ;;
18244    esac
18245  fi
18246
18247{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18248echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18249test "$ld_shlibs_GCJ" = no && can_build_shared=no
18250
18251#
18252# Do we need to explicitly link libc?
18253#
18254case "x$archive_cmds_need_lc_GCJ" in
18255x|xyes)
18256  # Assume -lc should be added
18257  archive_cmds_need_lc_GCJ=yes
18258
18259  if test "$enable_shared" = yes && test "$GCC" = yes; then
18260    case $archive_cmds_GCJ in
18261    *'~'*)
18262      # FIXME: we may have to deal with multi-command sequences.
18263      ;;
18264    '$CC '*)
18265      # Test whether the compiler implicitly links with -lc since on some
18266      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18267      # to ld, don't add -lc before -lgcc.
18268      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18269echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18270      $rm conftest*
18271      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18272
18273      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18274  (eval $ac_compile) 2>&5
18275  ac_status=$?
18276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277  (exit $ac_status); } 2>conftest.err; then
18278        soname=conftest
18279        lib=conftest
18280        libobjs=conftest.$ac_objext
18281        deplibs=
18282        wl=$lt_prog_compiler_wl_GCJ
18283	pic_flag=$lt_prog_compiler_pic_GCJ
18284        compiler_flags=-v
18285        linker_flags=-v
18286        verstring=
18287        output_objdir=.
18288        libname=conftest
18289        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18290        allow_undefined_flag_GCJ=
18291        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18292  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18293  ac_status=$?
18294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295  (exit $ac_status); }
18296        then
18297	  archive_cmds_need_lc_GCJ=no
18298        else
18299	  archive_cmds_need_lc_GCJ=yes
18300        fi
18301        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18302      else
18303        cat conftest.err 1>&5
18304      fi
18305      $rm conftest*
18306      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18307echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18308      ;;
18309    esac
18310  fi
18311  ;;
18312esac
18313
18314{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18315echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18316library_names_spec=
18317libname_spec='lib$name'
18318soname_spec=
18319shrext_cmds=".so"
18320postinstall_cmds=
18321postuninstall_cmds=
18322finish_cmds=
18323finish_eval=
18324shlibpath_var=
18325shlibpath_overrides_runpath=unknown
18326version_type=none
18327dynamic_linker="$host_os ld.so"
18328sys_lib_dlsearch_path_spec="/lib /usr/lib"
18329
18330need_lib_prefix=unknown
18331hardcode_into_libs=no
18332
18333# when you set need_version to no, make sure it does not cause -set_version
18334# flags to be left without arguments
18335need_version=unknown
18336
18337case $host_os in
18338aix3*)
18339  version_type=linux
18340  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18341  shlibpath_var=LIBPATH
18342
18343  # AIX 3 has no versioning support, so we append a major version to the name.
18344  soname_spec='${libname}${release}${shared_ext}$major'
18345  ;;
18346
18347aix[4-9]*)
18348  version_type=linux
18349  need_lib_prefix=no
18350  need_version=no
18351  hardcode_into_libs=yes
18352  if test "$host_cpu" = ia64; then
18353    # AIX 5 supports IA64
18354    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18355    shlibpath_var=LD_LIBRARY_PATH
18356  else
18357    # With GCC up to 2.95.x, collect2 would create an import file
18358    # for dependence libraries.  The import file would start with
18359    # the line `#! .'.  This would cause the generated library to
18360    # depend on `.', always an invalid library.  This was fixed in
18361    # development snapshots of GCC prior to 3.0.
18362    case $host_os in
18363      aix4 | aix4.[01] | aix4.[01].*)
18364      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18365	   echo ' yes '
18366	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18367	:
18368      else
18369	can_build_shared=no
18370      fi
18371      ;;
18372    esac
18373    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18374    # soname into executable. Probably we can add versioning support to
18375    # collect2, so additional links can be useful in future.
18376    if test "$aix_use_runtimelinking" = yes; then
18377      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18378      # instead of lib<name>.a to let people know that these are not
18379      # typical AIX shared libraries.
18380      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18381    else
18382      # We preserve .a as extension for shared libraries through AIX4.2
18383      # and later when we are not doing run time linking.
18384      library_names_spec='${libname}${release}.a $libname.a'
18385      soname_spec='${libname}${release}${shared_ext}$major'
18386    fi
18387    shlibpath_var=LIBPATH
18388  fi
18389  ;;
18390
18391amigaos*)
18392  library_names_spec='$libname.ixlibrary $libname.a'
18393  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18394  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'
18395  ;;
18396
18397beos*)
18398  library_names_spec='${libname}${shared_ext}'
18399  dynamic_linker="$host_os ld.so"
18400  shlibpath_var=LIBRARY_PATH
18401  ;;
18402
18403bsdi[45]*)
18404  version_type=linux
18405  need_version=no
18406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18407  soname_spec='${libname}${release}${shared_ext}$major'
18408  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18409  shlibpath_var=LD_LIBRARY_PATH
18410  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18411  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18412  # the default ld.so.conf also contains /usr/contrib/lib and
18413  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18414  # libtool to hard-code these into programs
18415  ;;
18416
18417cygwin* | mingw* | pw32*)
18418  version_type=windows
18419  shrext_cmds=".dll"
18420  need_version=no
18421  need_lib_prefix=no
18422
18423  case $GCC,$host_os in
18424  yes,cygwin* | yes,mingw* | yes,pw32*)
18425    library_names_spec='$libname.dll.a'
18426    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18427    postinstall_cmds='base_file=`basename \${file}`~
18428      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18429      dldir=$destdir/`dirname \$dlpath`~
18430      test -d \$dldir || mkdir -p \$dldir~
18431      $install_prog $dir/$dlname \$dldir/$dlname~
18432      chmod a+x \$dldir/$dlname'
18433    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18434      dlpath=$dir/\$dldll~
18435       $rm \$dlpath'
18436    shlibpath_overrides_runpath=yes
18437
18438    case $host_os in
18439    cygwin*)
18440      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18441      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18442      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18443      ;;
18444    mingw*)
18445      # MinGW DLLs use traditional 'lib' prefix
18446      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18447      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18448      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18449        # It is most probably a Windows format PATH printed by
18450        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18451        # path with ; separators, and with drive letters. We can handle the
18452        # drive letters (cygwin fileutils understands them), so leave them,
18453        # especially as we might pass files found there to a mingw objdump,
18454        # which wouldn't understand a cygwinified path. Ahh.
18455        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18456      else
18457        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18458      fi
18459      ;;
18460    pw32*)
18461      # pw32 DLLs use 'pw' prefix rather than 'lib'
18462      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18463      ;;
18464    esac
18465    ;;
18466
18467  *)
18468    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18469    ;;
18470  esac
18471  dynamic_linker='Win32 ld.exe'
18472  # FIXME: first we should search . and the directory the executable is in
18473  shlibpath_var=PATH
18474  ;;
18475
18476darwin* | rhapsody*)
18477  dynamic_linker="$host_os dyld"
18478  version_type=darwin
18479  need_lib_prefix=no
18480  need_version=no
18481  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18482  soname_spec='${libname}${release}${major}$shared_ext'
18483  shlibpath_overrides_runpath=yes
18484  shlibpath_var=DYLD_LIBRARY_PATH
18485  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18486
18487  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18488  ;;
18489
18490dgux*)
18491  version_type=linux
18492  need_lib_prefix=no
18493  need_version=no
18494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18495  soname_spec='${libname}${release}${shared_ext}$major'
18496  shlibpath_var=LD_LIBRARY_PATH
18497  ;;
18498
18499freebsd1*)
18500  dynamic_linker=no
18501  ;;
18502
18503freebsd* | dragonfly*)
18504  # DragonFly does not have aout.  When/if they implement a new
18505  # versioning mechanism, adjust this.
18506  if test -x /usr/bin/objformat; then
18507    objformat=`/usr/bin/objformat`
18508  else
18509    case $host_os in
18510    freebsd[123]*) objformat=aout ;;
18511    *) objformat=elf ;;
18512    esac
18513  fi
18514  version_type=freebsd-$objformat
18515  case $version_type in
18516    freebsd-elf*)
18517      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18518      need_version=no
18519      need_lib_prefix=no
18520      ;;
18521    freebsd-*)
18522      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18523      need_version=yes
18524      ;;
18525  esac
18526  shlibpath_var=LD_LIBRARY_PATH
18527  case $host_os in
18528  freebsd2*)
18529    shlibpath_overrides_runpath=yes
18530    ;;
18531  freebsd3.[01]* | freebsdelf3.[01]*)
18532    shlibpath_overrides_runpath=yes
18533    hardcode_into_libs=yes
18534    ;;
18535  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18536  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18537    shlibpath_overrides_runpath=no
18538    hardcode_into_libs=yes
18539    ;;
18540  *) # from 4.6 on, and DragonFly
18541    shlibpath_overrides_runpath=yes
18542    hardcode_into_libs=yes
18543    ;;
18544  esac
18545  ;;
18546
18547gnu*)
18548  version_type=linux
18549  need_lib_prefix=no
18550  need_version=no
18551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18552  soname_spec='${libname}${release}${shared_ext}$major'
18553  shlibpath_var=LD_LIBRARY_PATH
18554  hardcode_into_libs=yes
18555  ;;
18556
18557hpux9* | hpux10* | hpux11*)
18558  # Give a soname corresponding to the major version so that dld.sl refuses to
18559  # link against other versions.
18560  version_type=sunos
18561  need_lib_prefix=no
18562  need_version=no
18563  case $host_cpu in
18564  ia64*)
18565    shrext_cmds='.so'
18566    hardcode_into_libs=yes
18567    dynamic_linker="$host_os dld.so"
18568    shlibpath_var=LD_LIBRARY_PATH
18569    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18570    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18571    soname_spec='${libname}${release}${shared_ext}$major'
18572    if test "X$HPUX_IA64_MODE" = X32; then
18573      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18574    else
18575      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18576    fi
18577    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18578    ;;
18579   hppa*64*)
18580     shrext_cmds='.sl'
18581     hardcode_into_libs=yes
18582     dynamic_linker="$host_os dld.sl"
18583     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18584     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18585     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18586     soname_spec='${libname}${release}${shared_ext}$major'
18587     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18588     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18589     ;;
18590   *)
18591    shrext_cmds='.sl'
18592    dynamic_linker="$host_os dld.sl"
18593    shlibpath_var=SHLIB_PATH
18594    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18595    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18596    soname_spec='${libname}${release}${shared_ext}$major'
18597    ;;
18598  esac
18599  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18600  postinstall_cmds='chmod 555 $lib'
18601  ;;
18602
18603interix[3-9]*)
18604  version_type=linux
18605  need_lib_prefix=no
18606  need_version=no
18607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18608  soname_spec='${libname}${release}${shared_ext}$major'
18609  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18610  shlibpath_var=LD_LIBRARY_PATH
18611  shlibpath_overrides_runpath=no
18612  hardcode_into_libs=yes
18613  ;;
18614
18615irix5* | irix6* | nonstopux*)
18616  case $host_os in
18617    nonstopux*) version_type=nonstopux ;;
18618    *)
18619	if test "$lt_cv_prog_gnu_ld" = yes; then
18620		version_type=linux
18621	else
18622		version_type=irix
18623	fi ;;
18624  esac
18625  need_lib_prefix=no
18626  need_version=no
18627  soname_spec='${libname}${release}${shared_ext}$major'
18628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18629  case $host_os in
18630  irix5* | nonstopux*)
18631    libsuff= shlibsuff=
18632    ;;
18633  *)
18634    case $LD in # libtool.m4 will add one of these switches to LD
18635    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18636      libsuff= shlibsuff= libmagic=32-bit;;
18637    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18638      libsuff=32 shlibsuff=N32 libmagic=N32;;
18639    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18640      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18641    *) libsuff= shlibsuff= libmagic=never-match;;
18642    esac
18643    ;;
18644  esac
18645  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18646  shlibpath_overrides_runpath=no
18647  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18648  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18649  hardcode_into_libs=yes
18650  ;;
18651
18652# No shared lib support for Linux oldld, aout, or coff.
18653linux*oldld* | linux*aout* | linux*coff*)
18654  dynamic_linker=no
18655  ;;
18656
18657# This must be Linux ELF.
18658linux* | k*bsd*-gnu)
18659  version_type=linux
18660  need_lib_prefix=no
18661  need_version=no
18662  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18663  soname_spec='${libname}${release}${shared_ext}$major'
18664  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18665  shlibpath_var=LD_LIBRARY_PATH
18666  shlibpath_overrides_runpath=no
18667  # This implies no fast_install, which is unacceptable.
18668  # Some rework will be needed to allow for fast_install
18669  # before this can be enabled.
18670  hardcode_into_libs=yes
18671
18672  # Append ld.so.conf contents to the search path
18673  if test -f /etc/ld.so.conf; then
18674    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' ' '`
18675    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18676  fi
18677
18678  # We used to test for /lib/ld.so.1 and disable shared libraries on
18679  # powerpc, because MkLinux only supported shared libraries with the
18680  # GNU dynamic linker.  Since this was broken with cross compilers,
18681  # most powerpc-linux boxes support dynamic linking these days and
18682  # people can always --disable-shared, the test was removed, and we
18683  # assume the GNU/Linux dynamic linker is in use.
18684  dynamic_linker='GNU/Linux ld.so'
18685  ;;
18686
18687netbsdelf*-gnu)
18688  version_type=linux
18689  need_lib_prefix=no
18690  need_version=no
18691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18692  soname_spec='${libname}${release}${shared_ext}$major'
18693  shlibpath_var=LD_LIBRARY_PATH
18694  shlibpath_overrides_runpath=no
18695  hardcode_into_libs=yes
18696  dynamic_linker='NetBSD ld.elf_so'
18697  ;;
18698
18699netbsd*)
18700  version_type=sunos
18701  need_lib_prefix=no
18702  need_version=no
18703  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18704    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18705    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18706    dynamic_linker='NetBSD (a.out) ld.so'
18707  else
18708    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18709    soname_spec='${libname}${release}${shared_ext}$major'
18710    dynamic_linker='NetBSD ld.elf_so'
18711  fi
18712  shlibpath_var=LD_LIBRARY_PATH
18713  shlibpath_overrides_runpath=yes
18714  hardcode_into_libs=yes
18715  ;;
18716
18717newsos6)
18718  version_type=linux
18719  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18720  shlibpath_var=LD_LIBRARY_PATH
18721  shlibpath_overrides_runpath=yes
18722  ;;
18723
18724nto-qnx*)
18725  version_type=linux
18726  need_lib_prefix=no
18727  need_version=no
18728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18729  soname_spec='${libname}${release}${shared_ext}$major'
18730  shlibpath_var=LD_LIBRARY_PATH
18731  shlibpath_overrides_runpath=yes
18732  ;;
18733
18734openbsd*)
18735  version_type=sunos
18736  sys_lib_dlsearch_path_spec="/usr/lib"
18737  need_lib_prefix=no
18738  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18739  case $host_os in
18740    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18741    *)                         need_version=no  ;;
18742  esac
18743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18744  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18745  shlibpath_var=LD_LIBRARY_PATH
18746  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18747    case $host_os in
18748      openbsd2.[89] | openbsd2.[89].*)
18749	shlibpath_overrides_runpath=no
18750	;;
18751      *)
18752	shlibpath_overrides_runpath=yes
18753	;;
18754      esac
18755  else
18756    shlibpath_overrides_runpath=yes
18757  fi
18758  ;;
18759
18760os2*)
18761  libname_spec='$name'
18762  shrext_cmds=".dll"
18763  need_lib_prefix=no
18764  library_names_spec='$libname${shared_ext} $libname.a'
18765  dynamic_linker='OS/2 ld.exe'
18766  shlibpath_var=LIBPATH
18767  ;;
18768
18769osf3* | osf4* | osf5*)
18770  version_type=osf
18771  need_lib_prefix=no
18772  need_version=no
18773  soname_spec='${libname}${release}${shared_ext}$major'
18774  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18775  shlibpath_var=LD_LIBRARY_PATH
18776  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18777  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18778  ;;
18779
18780rdos*)
18781  dynamic_linker=no
18782  ;;
18783
18784solaris*)
18785  version_type=linux
18786  need_lib_prefix=no
18787  need_version=no
18788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18789  soname_spec='${libname}${release}${shared_ext}$major'
18790  shlibpath_var=LD_LIBRARY_PATH
18791  shlibpath_overrides_runpath=yes
18792  hardcode_into_libs=yes
18793  # ldd complains unless libraries are executable
18794  postinstall_cmds='chmod +x $lib'
18795  ;;
18796
18797sunos4*)
18798  version_type=sunos
18799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18800  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18801  shlibpath_var=LD_LIBRARY_PATH
18802  shlibpath_overrides_runpath=yes
18803  if test "$with_gnu_ld" = yes; then
18804    need_lib_prefix=no
18805  fi
18806  need_version=yes
18807  ;;
18808
18809sysv4 | sysv4.3*)
18810  version_type=linux
18811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18812  soname_spec='${libname}${release}${shared_ext}$major'
18813  shlibpath_var=LD_LIBRARY_PATH
18814  case $host_vendor in
18815    sni)
18816      shlibpath_overrides_runpath=no
18817      need_lib_prefix=no
18818      export_dynamic_flag_spec='${wl}-Blargedynsym'
18819      runpath_var=LD_RUN_PATH
18820      ;;
18821    siemens)
18822      need_lib_prefix=no
18823      ;;
18824    motorola)
18825      need_lib_prefix=no
18826      need_version=no
18827      shlibpath_overrides_runpath=no
18828      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18829      ;;
18830  esac
18831  ;;
18832
18833sysv4*MP*)
18834  if test -d /usr/nec ;then
18835    version_type=linux
18836    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18837    soname_spec='$libname${shared_ext}.$major'
18838    shlibpath_var=LD_LIBRARY_PATH
18839  fi
18840  ;;
18841
18842sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18843  version_type=freebsd-elf
18844  need_lib_prefix=no
18845  need_version=no
18846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18847  soname_spec='${libname}${release}${shared_ext}$major'
18848  shlibpath_var=LD_LIBRARY_PATH
18849  hardcode_into_libs=yes
18850  if test "$with_gnu_ld" = yes; then
18851    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18852    shlibpath_overrides_runpath=no
18853  else
18854    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18855    shlibpath_overrides_runpath=yes
18856    case $host_os in
18857      sco3.2v5*)
18858        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18859	;;
18860    esac
18861  fi
18862  sys_lib_dlsearch_path_spec='/usr/lib'
18863  ;;
18864
18865uts4*)
18866  version_type=linux
18867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18868  soname_spec='${libname}${release}${shared_ext}$major'
18869  shlibpath_var=LD_LIBRARY_PATH
18870  ;;
18871
18872*)
18873  dynamic_linker=no
18874  ;;
18875esac
18876{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18877echo "${ECHO_T}$dynamic_linker" >&6; }
18878test "$dynamic_linker" = no && can_build_shared=no
18879
18880if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18881  echo $ECHO_N "(cached) $ECHO_C" >&6
18882else
18883  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18884fi
18885
18886sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18887if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18888  echo $ECHO_N "(cached) $ECHO_C" >&6
18889else
18890  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18891fi
18892
18893sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18894
18895variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18896if test "$GCC" = yes; then
18897  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18898fi
18899
18900{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18901echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18902hardcode_action_GCJ=
18903if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18904   test -n "$runpath_var_GCJ" || \
18905   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18906
18907  # We can hardcode non-existant directories.
18908  if test "$hardcode_direct_GCJ" != no &&
18909     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18910     # have to relink, otherwise we might link with an installed library
18911     # when we should be linking with a yet-to-be-installed one
18912     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18913     test "$hardcode_minus_L_GCJ" != no; then
18914    # Linking always hardcodes the temporary library directory.
18915    hardcode_action_GCJ=relink
18916  else
18917    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18918    hardcode_action_GCJ=immediate
18919  fi
18920else
18921  # We cannot hardcode anything, or else we can only hardcode existing
18922  # directories.
18923  hardcode_action_GCJ=unsupported
18924fi
18925{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18926echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18927
18928if test "$hardcode_action_GCJ" = relink; then
18929  # Fast installation is not supported
18930  enable_fast_install=no
18931elif test "$shlibpath_overrides_runpath" = yes ||
18932     test "$enable_shared" = no; then
18933  # Fast installation is not necessary
18934  enable_fast_install=needless
18935fi
18936
18937
18938# The else clause should only fire when bootstrapping the
18939# libtool distribution, otherwise you forgot to ship ltmain.sh
18940# with your package, and you will get complaints that there are
18941# no rules to generate ltmain.sh.
18942if test -f "$ltmain"; then
18943  # See if we are running on zsh, and set the options which allow our commands through
18944  # without removal of \ escapes.
18945  if test -n "${ZSH_VERSION+set}" ; then
18946    setopt NO_GLOB_SUBST
18947  fi
18948  # Now quote all the things that may contain metacharacters while being
18949  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18950  # variables and quote the copies for generation of the libtool script.
18951  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18952    SED SHELL STRIP \
18953    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18954    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18955    deplibs_check_method reload_flag reload_cmds need_locks \
18956    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18957    lt_cv_sys_global_symbol_to_c_name_address \
18958    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18959    old_postinstall_cmds old_postuninstall_cmds \
18960    compiler_GCJ \
18961    CC_GCJ \
18962    LD_GCJ \
18963    lt_prog_compiler_wl_GCJ \
18964    lt_prog_compiler_pic_GCJ \
18965    lt_prog_compiler_static_GCJ \
18966    lt_prog_compiler_no_builtin_flag_GCJ \
18967    export_dynamic_flag_spec_GCJ \
18968    thread_safe_flag_spec_GCJ \
18969    whole_archive_flag_spec_GCJ \
18970    enable_shared_with_static_runtimes_GCJ \
18971    old_archive_cmds_GCJ \
18972    old_archive_from_new_cmds_GCJ \
18973    predep_objects_GCJ \
18974    postdep_objects_GCJ \
18975    predeps_GCJ \
18976    postdeps_GCJ \
18977    compiler_lib_search_path_GCJ \
18978    compiler_lib_search_dirs_GCJ \
18979    archive_cmds_GCJ \
18980    archive_expsym_cmds_GCJ \
18981    postinstall_cmds_GCJ \
18982    postuninstall_cmds_GCJ \
18983    old_archive_from_expsyms_cmds_GCJ \
18984    allow_undefined_flag_GCJ \
18985    no_undefined_flag_GCJ \
18986    export_symbols_cmds_GCJ \
18987    hardcode_libdir_flag_spec_GCJ \
18988    hardcode_libdir_flag_spec_ld_GCJ \
18989    hardcode_libdir_separator_GCJ \
18990    hardcode_automatic_GCJ \
18991    module_cmds_GCJ \
18992    module_expsym_cmds_GCJ \
18993    lt_cv_prog_compiler_c_o_GCJ \
18994    fix_srcfile_path_GCJ \
18995    exclude_expsyms_GCJ \
18996    include_expsyms_GCJ; do
18997
18998    case $var in
18999    old_archive_cmds_GCJ | \
19000    old_archive_from_new_cmds_GCJ | \
19001    archive_cmds_GCJ | \
19002    archive_expsym_cmds_GCJ | \
19003    module_cmds_GCJ | \
19004    module_expsym_cmds_GCJ | \
19005    old_archive_from_expsyms_cmds_GCJ | \
19006    export_symbols_cmds_GCJ | \
19007    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19008    postinstall_cmds | postuninstall_cmds | \
19009    old_postinstall_cmds | old_postuninstall_cmds | \
19010    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19011      # Double-quote double-evaled strings.
19012      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19013      ;;
19014    *)
19015      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19016      ;;
19017    esac
19018  done
19019
19020  case $lt_echo in
19021  *'\$0 --fallback-echo"')
19022    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19023    ;;
19024  esac
19025
19026cfgfile="$ofile"
19027
19028  cat <<__EOF__ >> "$cfgfile"
19029# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19030
19031# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19032
19033# Shell to use when invoking shell scripts.
19034SHELL=$lt_SHELL
19035
19036# Whether or not to build shared libraries.
19037build_libtool_libs=$enable_shared
19038
19039# Whether or not to build static libraries.
19040build_old_libs=$enable_static
19041
19042# Whether or not to add -lc for building shared libraries.
19043build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19044
19045# Whether or not to disallow shared libs when runtime libs are static
19046allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19047
19048# Whether or not to optimize for fast installation.
19049fast_install=$enable_fast_install
19050
19051# The host system.
19052host_alias=$host_alias
19053host=$host
19054host_os=$host_os
19055
19056# The build system.
19057build_alias=$build_alias
19058build=$build
19059build_os=$build_os
19060
19061# An echo program that does not interpret backslashes.
19062echo=$lt_echo
19063
19064# The archiver.
19065AR=$lt_AR
19066AR_FLAGS=$lt_AR_FLAGS
19067
19068# A C compiler.
19069LTCC=$lt_LTCC
19070
19071# LTCC compiler flags.
19072LTCFLAGS=$lt_LTCFLAGS
19073
19074# A language-specific compiler.
19075CC=$lt_compiler_GCJ
19076
19077# Is the compiler the GNU C compiler?
19078with_gcc=$GCC_GCJ
19079
19080# An ERE matcher.
19081EGREP=$lt_EGREP
19082
19083# The linker used to build libraries.
19084LD=$lt_LD_GCJ
19085
19086# Whether we need hard or soft links.
19087LN_S=$lt_LN_S
19088
19089# A BSD-compatible nm program.
19090NM=$lt_NM
19091
19092# A symbol stripping program
19093STRIP=$lt_STRIP
19094
19095# Used to examine libraries when file_magic_cmd begins "file"
19096MAGIC_CMD=$MAGIC_CMD
19097
19098# Used on cygwin: DLL creation program.
19099DLLTOOL="$DLLTOOL"
19100
19101# Used on cygwin: object dumper.
19102OBJDUMP="$OBJDUMP"
19103
19104# Used on cygwin: assembler.
19105AS="$AS"
19106
19107# The name of the directory that contains temporary libtool files.
19108objdir=$objdir
19109
19110# How to create reloadable object files.
19111reload_flag=$lt_reload_flag
19112reload_cmds=$lt_reload_cmds
19113
19114# How to pass a linker flag through the compiler.
19115wl=$lt_lt_prog_compiler_wl_GCJ
19116
19117# Object file suffix (normally "o").
19118objext="$ac_objext"
19119
19120# Old archive suffix (normally "a").
19121libext="$libext"
19122
19123# Shared library suffix (normally ".so").
19124shrext_cmds='$shrext_cmds'
19125
19126# Executable file suffix (normally "").
19127exeext="$exeext"
19128
19129# Additional compiler flags for building library objects.
19130pic_flag=$lt_lt_prog_compiler_pic_GCJ
19131pic_mode=$pic_mode
19132
19133# What is the maximum length of a command?
19134max_cmd_len=$lt_cv_sys_max_cmd_len
19135
19136# Does compiler simultaneously support -c and -o options?
19137compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19138
19139# Must we lock files when doing compilation?
19140need_locks=$lt_need_locks
19141
19142# Do we need the lib prefix for modules?
19143need_lib_prefix=$need_lib_prefix
19144
19145# Do we need a version for libraries?
19146need_version=$need_version
19147
19148# Whether dlopen is supported.
19149dlopen_support=$enable_dlopen
19150
19151# Whether dlopen of programs is supported.
19152dlopen_self=$enable_dlopen_self
19153
19154# Whether dlopen of statically linked programs is supported.
19155dlopen_self_static=$enable_dlopen_self_static
19156
19157# Compiler flag to prevent dynamic linking.
19158link_static_flag=$lt_lt_prog_compiler_static_GCJ
19159
19160# Compiler flag to turn off builtin functions.
19161no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19162
19163# Compiler flag to allow reflexive dlopens.
19164export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19165
19166# Compiler flag to generate shared objects directly from archives.
19167whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19168
19169# Compiler flag to generate thread-safe objects.
19170thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19171
19172# Library versioning type.
19173version_type=$version_type
19174
19175# Format of library name prefix.
19176libname_spec=$lt_libname_spec
19177
19178# List of archive names.  First name is the real one, the rest are links.
19179# The last name is the one that the linker finds with -lNAME.
19180library_names_spec=$lt_library_names_spec
19181
19182# The coded name of the library, if different from the real name.
19183soname_spec=$lt_soname_spec
19184
19185# Commands used to build and install an old-style archive.
19186RANLIB=$lt_RANLIB
19187old_archive_cmds=$lt_old_archive_cmds_GCJ
19188old_postinstall_cmds=$lt_old_postinstall_cmds
19189old_postuninstall_cmds=$lt_old_postuninstall_cmds
19190
19191# Create an old-style archive from a shared archive.
19192old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19193
19194# Create a temporary old-style archive to link instead of a shared archive.
19195old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19196
19197# Commands used to build and install a shared archive.
19198archive_cmds=$lt_archive_cmds_GCJ
19199archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19200postinstall_cmds=$lt_postinstall_cmds
19201postuninstall_cmds=$lt_postuninstall_cmds
19202
19203# Commands used to build a loadable module (assumed same as above if empty)
19204module_cmds=$lt_module_cmds_GCJ
19205module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19206
19207# Commands to strip libraries.
19208old_striplib=$lt_old_striplib
19209striplib=$lt_striplib
19210
19211# Dependencies to place before the objects being linked to create a
19212# shared library.
19213predep_objects=$lt_predep_objects_GCJ
19214
19215# Dependencies to place after the objects being linked to create a
19216# shared library.
19217postdep_objects=$lt_postdep_objects_GCJ
19218
19219# Dependencies to place before the objects being linked to create a
19220# shared library.
19221predeps=$lt_predeps_GCJ
19222
19223# Dependencies to place after the objects being linked to create a
19224# shared library.
19225postdeps=$lt_postdeps_GCJ
19226
19227# The directories searched by this compiler when creating a shared
19228# library
19229compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19230
19231# The library search path used internally by the compiler when linking
19232# a shared library.
19233compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19234
19235# Method to check whether dependent libraries are shared objects.
19236deplibs_check_method=$lt_deplibs_check_method
19237
19238# Command to use when deplibs_check_method == file_magic.
19239file_magic_cmd=$lt_file_magic_cmd
19240
19241# Flag that allows shared libraries with undefined symbols to be built.
19242allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19243
19244# Flag that forces no undefined symbols.
19245no_undefined_flag=$lt_no_undefined_flag_GCJ
19246
19247# Commands used to finish a libtool library installation in a directory.
19248finish_cmds=$lt_finish_cmds
19249
19250# Same as above, but a single script fragment to be evaled but not shown.
19251finish_eval=$lt_finish_eval
19252
19253# Take the output of nm and produce a listing of raw symbols and C names.
19254global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19255
19256# Transform the output of nm in a proper C declaration
19257global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19258
19259# Transform the output of nm in a C name address pair
19260global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19261
19262# This is the shared library runtime path variable.
19263runpath_var=$runpath_var
19264
19265# This is the shared library path variable.
19266shlibpath_var=$shlibpath_var
19267
19268# Is shlibpath searched before the hard-coded library search path?
19269shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19270
19271# How to hardcode a shared library path into an executable.
19272hardcode_action=$hardcode_action_GCJ
19273
19274# Whether we should hardcode library paths into libraries.
19275hardcode_into_libs=$hardcode_into_libs
19276
19277# Flag to hardcode \$libdir into a binary during linking.
19278# This must work even if \$libdir does not exist.
19279hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19280
19281# If ld is used when linking, flag to hardcode \$libdir into
19282# a binary during linking. This must work even if \$libdir does
19283# not exist.
19284hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19285
19286# Whether we need a single -rpath flag with a separated argument.
19287hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19288
19289# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19290# resulting binary.
19291hardcode_direct=$hardcode_direct_GCJ
19292
19293# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19294# resulting binary.
19295hardcode_minus_L=$hardcode_minus_L_GCJ
19296
19297# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19298# the resulting binary.
19299hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19300
19301# Set to yes if building a shared library automatically hardcodes DIR into the library
19302# and all subsequent libraries and executables linked against it.
19303hardcode_automatic=$hardcode_automatic_GCJ
19304
19305# Variables whose values should be saved in libtool wrapper scripts and
19306# restored at relink time.
19307variables_saved_for_relink="$variables_saved_for_relink"
19308
19309# Whether libtool must link a program against all its dependency libraries.
19310link_all_deplibs=$link_all_deplibs_GCJ
19311
19312# Compile-time system search path for libraries
19313sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19314
19315# Run-time system search path for libraries
19316sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19317
19318# Fix the shell variable \$srcfile for the compiler.
19319fix_srcfile_path=$lt_fix_srcfile_path
19320
19321# Set to yes if exported symbols are required.
19322always_export_symbols=$always_export_symbols_GCJ
19323
19324# The commands to list exported symbols.
19325export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19326
19327# The commands to extract the exported symbol list from a shared archive.
19328extract_expsyms_cmds=$lt_extract_expsyms_cmds
19329
19330# Symbols that should not be listed in the preloaded symbols.
19331exclude_expsyms=$lt_exclude_expsyms_GCJ
19332
19333# Symbols that must always be exported.
19334include_expsyms=$lt_include_expsyms_GCJ
19335
19336# ### END LIBTOOL TAG CONFIG: $tagname
19337
19338__EOF__
19339
19340
19341else
19342  # If there is no Makefile yet, we rely on a make rule to execute
19343  # `config.status --recheck' to rerun these tests and create the
19344  # libtool script then.
19345  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19346  if test -f "$ltmain_in"; then
19347    test -f Makefile && make "$ltmain"
19348  fi
19349fi
19350
19351
19352ac_ext=c
19353ac_cpp='$CPP $CPPFLAGS'
19354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19356ac_compiler_gnu=$ac_cv_c_compiler_gnu
19357
19358CC="$lt_save_CC"
19359
19360	else
19361	  tagname=""
19362	fi
19363	;;
19364
19365      RC)
19366
19367
19368# Source file extension for RC test sources.
19369ac_ext=rc
19370
19371# Object file extension for compiled RC test sources.
19372objext=o
19373objext_RC=$objext
19374
19375# Code to be used in simple compile tests
19376lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19377
19378# Code to be used in simple link tests
19379lt_simple_link_test_code="$lt_simple_compile_test_code"
19380
19381# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19382
19383# If no C compiler was specified, use CC.
19384LTCC=${LTCC-"$CC"}
19385
19386# If no C compiler flags were specified, use CFLAGS.
19387LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19388
19389# Allow CC to be a program name with arguments.
19390compiler=$CC
19391
19392
19393# save warnings/boilerplate of simple test code
19394ac_outfile=conftest.$ac_objext
19395echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19396eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19397_lt_compiler_boilerplate=`cat conftest.err`
19398$rm conftest*
19399
19400ac_outfile=conftest.$ac_objext
19401echo "$lt_simple_link_test_code" >conftest.$ac_ext
19402eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19403_lt_linker_boilerplate=`cat conftest.err`
19404$rm -r conftest*
19405
19406
19407# Allow CC to be a program name with arguments.
19408lt_save_CC="$CC"
19409CC=${RC-"windres"}
19410compiler=$CC
19411compiler_RC=$CC
19412for cc_temp in $compiler""; do
19413  case $cc_temp in
19414    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19415    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19416    \-*) ;;
19417    *) break;;
19418  esac
19419done
19420cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19421
19422lt_cv_prog_compiler_c_o_RC=yes
19423
19424# The else clause should only fire when bootstrapping the
19425# libtool distribution, otherwise you forgot to ship ltmain.sh
19426# with your package, and you will get complaints that there are
19427# no rules to generate ltmain.sh.
19428if test -f "$ltmain"; then
19429  # See if we are running on zsh, and set the options which allow our commands through
19430  # without removal of \ escapes.
19431  if test -n "${ZSH_VERSION+set}" ; then
19432    setopt NO_GLOB_SUBST
19433  fi
19434  # Now quote all the things that may contain metacharacters while being
19435  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19436  # variables and quote the copies for generation of the libtool script.
19437  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19438    SED SHELL STRIP \
19439    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19440    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19441    deplibs_check_method reload_flag reload_cmds need_locks \
19442    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19443    lt_cv_sys_global_symbol_to_c_name_address \
19444    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19445    old_postinstall_cmds old_postuninstall_cmds \
19446    compiler_RC \
19447    CC_RC \
19448    LD_RC \
19449    lt_prog_compiler_wl_RC \
19450    lt_prog_compiler_pic_RC \
19451    lt_prog_compiler_static_RC \
19452    lt_prog_compiler_no_builtin_flag_RC \
19453    export_dynamic_flag_spec_RC \
19454    thread_safe_flag_spec_RC \
19455    whole_archive_flag_spec_RC \
19456    enable_shared_with_static_runtimes_RC \
19457    old_archive_cmds_RC \
19458    old_archive_from_new_cmds_RC \
19459    predep_objects_RC \
19460    postdep_objects_RC \
19461    predeps_RC \
19462    postdeps_RC \
19463    compiler_lib_search_path_RC \
19464    compiler_lib_search_dirs_RC \
19465    archive_cmds_RC \
19466    archive_expsym_cmds_RC \
19467    postinstall_cmds_RC \
19468    postuninstall_cmds_RC \
19469    old_archive_from_expsyms_cmds_RC \
19470    allow_undefined_flag_RC \
19471    no_undefined_flag_RC \
19472    export_symbols_cmds_RC \
19473    hardcode_libdir_flag_spec_RC \
19474    hardcode_libdir_flag_spec_ld_RC \
19475    hardcode_libdir_separator_RC \
19476    hardcode_automatic_RC \
19477    module_cmds_RC \
19478    module_expsym_cmds_RC \
19479    lt_cv_prog_compiler_c_o_RC \
19480    fix_srcfile_path_RC \
19481    exclude_expsyms_RC \
19482    include_expsyms_RC; do
19483
19484    case $var in
19485    old_archive_cmds_RC | \
19486    old_archive_from_new_cmds_RC | \
19487    archive_cmds_RC | \
19488    archive_expsym_cmds_RC | \
19489    module_cmds_RC | \
19490    module_expsym_cmds_RC | \
19491    old_archive_from_expsyms_cmds_RC | \
19492    export_symbols_cmds_RC | \
19493    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19494    postinstall_cmds | postuninstall_cmds | \
19495    old_postinstall_cmds | old_postuninstall_cmds | \
19496    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19497      # Double-quote double-evaled strings.
19498      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19499      ;;
19500    *)
19501      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19502      ;;
19503    esac
19504  done
19505
19506  case $lt_echo in
19507  *'\$0 --fallback-echo"')
19508    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19509    ;;
19510  esac
19511
19512cfgfile="$ofile"
19513
19514  cat <<__EOF__ >> "$cfgfile"
19515# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19516
19517# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19518
19519# Shell to use when invoking shell scripts.
19520SHELL=$lt_SHELL
19521
19522# Whether or not to build shared libraries.
19523build_libtool_libs=$enable_shared
19524
19525# Whether or not to build static libraries.
19526build_old_libs=$enable_static
19527
19528# Whether or not to add -lc for building shared libraries.
19529build_libtool_need_lc=$archive_cmds_need_lc_RC
19530
19531# Whether or not to disallow shared libs when runtime libs are static
19532allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19533
19534# Whether or not to optimize for fast installation.
19535fast_install=$enable_fast_install
19536
19537# The host system.
19538host_alias=$host_alias
19539host=$host
19540host_os=$host_os
19541
19542# The build system.
19543build_alias=$build_alias
19544build=$build
19545build_os=$build_os
19546
19547# An echo program that does not interpret backslashes.
19548echo=$lt_echo
19549
19550# The archiver.
19551AR=$lt_AR
19552AR_FLAGS=$lt_AR_FLAGS
19553
19554# A C compiler.
19555LTCC=$lt_LTCC
19556
19557# LTCC compiler flags.
19558LTCFLAGS=$lt_LTCFLAGS
19559
19560# A language-specific compiler.
19561CC=$lt_compiler_RC
19562
19563# Is the compiler the GNU C compiler?
19564with_gcc=$GCC_RC
19565
19566# An ERE matcher.
19567EGREP=$lt_EGREP
19568
19569# The linker used to build libraries.
19570LD=$lt_LD_RC
19571
19572# Whether we need hard or soft links.
19573LN_S=$lt_LN_S
19574
19575# A BSD-compatible nm program.
19576NM=$lt_NM
19577
19578# A symbol stripping program
19579STRIP=$lt_STRIP
19580
19581# Used to examine libraries when file_magic_cmd begins "file"
19582MAGIC_CMD=$MAGIC_CMD
19583
19584# Used on cygwin: DLL creation program.
19585DLLTOOL="$DLLTOOL"
19586
19587# Used on cygwin: object dumper.
19588OBJDUMP="$OBJDUMP"
19589
19590# Used on cygwin: assembler.
19591AS="$AS"
19592
19593# The name of the directory that contains temporary libtool files.
19594objdir=$objdir
19595
19596# How to create reloadable object files.
19597reload_flag=$lt_reload_flag
19598reload_cmds=$lt_reload_cmds
19599
19600# How to pass a linker flag through the compiler.
19601wl=$lt_lt_prog_compiler_wl_RC
19602
19603# Object file suffix (normally "o").
19604objext="$ac_objext"
19605
19606# Old archive suffix (normally "a").
19607libext="$libext"
19608
19609# Shared library suffix (normally ".so").
19610shrext_cmds='$shrext_cmds'
19611
19612# Executable file suffix (normally "").
19613exeext="$exeext"
19614
19615# Additional compiler flags for building library objects.
19616pic_flag=$lt_lt_prog_compiler_pic_RC
19617pic_mode=$pic_mode
19618
19619# What is the maximum length of a command?
19620max_cmd_len=$lt_cv_sys_max_cmd_len
19621
19622# Does compiler simultaneously support -c and -o options?
19623compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19624
19625# Must we lock files when doing compilation?
19626need_locks=$lt_need_locks
19627
19628# Do we need the lib prefix for modules?
19629need_lib_prefix=$need_lib_prefix
19630
19631# Do we need a version for libraries?
19632need_version=$need_version
19633
19634# Whether dlopen is supported.
19635dlopen_support=$enable_dlopen
19636
19637# Whether dlopen of programs is supported.
19638dlopen_self=$enable_dlopen_self
19639
19640# Whether dlopen of statically linked programs is supported.
19641dlopen_self_static=$enable_dlopen_self_static
19642
19643# Compiler flag to prevent dynamic linking.
19644link_static_flag=$lt_lt_prog_compiler_static_RC
19645
19646# Compiler flag to turn off builtin functions.
19647no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19648
19649# Compiler flag to allow reflexive dlopens.
19650export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19651
19652# Compiler flag to generate shared objects directly from archives.
19653whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19654
19655# Compiler flag to generate thread-safe objects.
19656thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19657
19658# Library versioning type.
19659version_type=$version_type
19660
19661# Format of library name prefix.
19662libname_spec=$lt_libname_spec
19663
19664# List of archive names.  First name is the real one, the rest are links.
19665# The last name is the one that the linker finds with -lNAME.
19666library_names_spec=$lt_library_names_spec
19667
19668# The coded name of the library, if different from the real name.
19669soname_spec=$lt_soname_spec
19670
19671# Commands used to build and install an old-style archive.
19672RANLIB=$lt_RANLIB
19673old_archive_cmds=$lt_old_archive_cmds_RC
19674old_postinstall_cmds=$lt_old_postinstall_cmds
19675old_postuninstall_cmds=$lt_old_postuninstall_cmds
19676
19677# Create an old-style archive from a shared archive.
19678old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19679
19680# Create a temporary old-style archive to link instead of a shared archive.
19681old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19682
19683# Commands used to build and install a shared archive.
19684archive_cmds=$lt_archive_cmds_RC
19685archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19686postinstall_cmds=$lt_postinstall_cmds
19687postuninstall_cmds=$lt_postuninstall_cmds
19688
19689# Commands used to build a loadable module (assumed same as above if empty)
19690module_cmds=$lt_module_cmds_RC
19691module_expsym_cmds=$lt_module_expsym_cmds_RC
19692
19693# Commands to strip libraries.
19694old_striplib=$lt_old_striplib
19695striplib=$lt_striplib
19696
19697# Dependencies to place before the objects being linked to create a
19698# shared library.
19699predep_objects=$lt_predep_objects_RC
19700
19701# Dependencies to place after the objects being linked to create a
19702# shared library.
19703postdep_objects=$lt_postdep_objects_RC
19704
19705# Dependencies to place before the objects being linked to create a
19706# shared library.
19707predeps=$lt_predeps_RC
19708
19709# Dependencies to place after the objects being linked to create a
19710# shared library.
19711postdeps=$lt_postdeps_RC
19712
19713# The directories searched by this compiler when creating a shared
19714# library
19715compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19716
19717# The library search path used internally by the compiler when linking
19718# a shared library.
19719compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19720
19721# Method to check whether dependent libraries are shared objects.
19722deplibs_check_method=$lt_deplibs_check_method
19723
19724# Command to use when deplibs_check_method == file_magic.
19725file_magic_cmd=$lt_file_magic_cmd
19726
19727# Flag that allows shared libraries with undefined symbols to be built.
19728allow_undefined_flag=$lt_allow_undefined_flag_RC
19729
19730# Flag that forces no undefined symbols.
19731no_undefined_flag=$lt_no_undefined_flag_RC
19732
19733# Commands used to finish a libtool library installation in a directory.
19734finish_cmds=$lt_finish_cmds
19735
19736# Same as above, but a single script fragment to be evaled but not shown.
19737finish_eval=$lt_finish_eval
19738
19739# Take the output of nm and produce a listing of raw symbols and C names.
19740global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19741
19742# Transform the output of nm in a proper C declaration
19743global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19744
19745# Transform the output of nm in a C name address pair
19746global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19747
19748# This is the shared library runtime path variable.
19749runpath_var=$runpath_var
19750
19751# This is the shared library path variable.
19752shlibpath_var=$shlibpath_var
19753
19754# Is shlibpath searched before the hard-coded library search path?
19755shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19756
19757# How to hardcode a shared library path into an executable.
19758hardcode_action=$hardcode_action_RC
19759
19760# Whether we should hardcode library paths into libraries.
19761hardcode_into_libs=$hardcode_into_libs
19762
19763# Flag to hardcode \$libdir into a binary during linking.
19764# This must work even if \$libdir does not exist.
19765hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19766
19767# If ld is used when linking, flag to hardcode \$libdir into
19768# a binary during linking. This must work even if \$libdir does
19769# not exist.
19770hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19771
19772# Whether we need a single -rpath flag with a separated argument.
19773hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19774
19775# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19776# resulting binary.
19777hardcode_direct=$hardcode_direct_RC
19778
19779# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19780# resulting binary.
19781hardcode_minus_L=$hardcode_minus_L_RC
19782
19783# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19784# the resulting binary.
19785hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19786
19787# Set to yes if building a shared library automatically hardcodes DIR into the library
19788# and all subsequent libraries and executables linked against it.
19789hardcode_automatic=$hardcode_automatic_RC
19790
19791# Variables whose values should be saved in libtool wrapper scripts and
19792# restored at relink time.
19793variables_saved_for_relink="$variables_saved_for_relink"
19794
19795# Whether libtool must link a program against all its dependency libraries.
19796link_all_deplibs=$link_all_deplibs_RC
19797
19798# Compile-time system search path for libraries
19799sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19800
19801# Run-time system search path for libraries
19802sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19803
19804# Fix the shell variable \$srcfile for the compiler.
19805fix_srcfile_path=$lt_fix_srcfile_path
19806
19807# Set to yes if exported symbols are required.
19808always_export_symbols=$always_export_symbols_RC
19809
19810# The commands to list exported symbols.
19811export_symbols_cmds=$lt_export_symbols_cmds_RC
19812
19813# The commands to extract the exported symbol list from a shared archive.
19814extract_expsyms_cmds=$lt_extract_expsyms_cmds
19815
19816# Symbols that should not be listed in the preloaded symbols.
19817exclude_expsyms=$lt_exclude_expsyms_RC
19818
19819# Symbols that must always be exported.
19820include_expsyms=$lt_include_expsyms_RC
19821
19822# ### END LIBTOOL TAG CONFIG: $tagname
19823
19824__EOF__
19825
19826
19827else
19828  # If there is no Makefile yet, we rely on a make rule to execute
19829  # `config.status --recheck' to rerun these tests and create the
19830  # libtool script then.
19831  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19832  if test -f "$ltmain_in"; then
19833    test -f Makefile && make "$ltmain"
19834  fi
19835fi
19836
19837
19838ac_ext=c
19839ac_cpp='$CPP $CPPFLAGS'
19840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19842ac_compiler_gnu=$ac_cv_c_compiler_gnu
19843
19844CC="$lt_save_CC"
19845
19846	;;
19847
19848      *)
19849	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19850echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19851   { (exit 1); exit 1; }; }
19852	;;
19853      esac
19854
19855      # Append the new tag name to the list of available tags.
19856      if test -n "$tagname" ; then
19857      available_tags="$available_tags $tagname"
19858    fi
19859    fi
19860  done
19861  IFS="$lt_save_ifs"
19862
19863  # Now substitute the updated list of available tags.
19864  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19865    mv "${ofile}T" "$ofile"
19866    chmod +x "$ofile"
19867  else
19868    rm -f "${ofile}T"
19869    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19870echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19871   { (exit 1); exit 1; }; }
19872  fi
19873fi
19874
19875
19876
19877# This can be used to rebuild libtool when needed
19878LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19879
19880# Always use our own libtool.
19881LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19882
19883# Prevent multiple expansion
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19907	if test -n "$ac_tool_prefix"; then
19908  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19909set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19910{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19912if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19913  echo $ECHO_N "(cached) $ECHO_C" >&6
19914else
19915  case $PKG_CONFIG in
19916  [\\/]* | ?:[\\/]*)
19917  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19918  ;;
19919  *)
19920  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19921for as_dir in $PATH
19922do
19923  IFS=$as_save_IFS
19924  test -z "$as_dir" && as_dir=.
19925  for ac_exec_ext in '' $ac_executable_extensions; do
19926  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19927    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19928    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19929    break 2
19930  fi
19931done
19932done
19933IFS=$as_save_IFS
19934
19935  ;;
19936esac
19937fi
19938PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19939if test -n "$PKG_CONFIG"; then
19940  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19941echo "${ECHO_T}$PKG_CONFIG" >&6; }
19942else
19943  { echo "$as_me:$LINENO: result: no" >&5
19944echo "${ECHO_T}no" >&6; }
19945fi
19946
19947
19948fi
19949if test -z "$ac_cv_path_PKG_CONFIG"; then
19950  ac_pt_PKG_CONFIG=$PKG_CONFIG
19951  # Extract the first word of "pkg-config", so it can be a program name with args.
19952set dummy pkg-config; ac_word=$2
19953{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19955if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19956  echo $ECHO_N "(cached) $ECHO_C" >&6
19957else
19958  case $ac_pt_PKG_CONFIG in
19959  [\\/]* | ?:[\\/]*)
19960  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19961  ;;
19962  *)
19963  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19964for as_dir in $PATH
19965do
19966  IFS=$as_save_IFS
19967  test -z "$as_dir" && as_dir=.
19968  for ac_exec_ext in '' $ac_executable_extensions; do
19969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19970    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19971    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19972    break 2
19973  fi
19974done
19975done
19976IFS=$as_save_IFS
19977
19978  ;;
19979esac
19980fi
19981ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19982if test -n "$ac_pt_PKG_CONFIG"; then
19983  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19984echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19985else
19986  { echo "$as_me:$LINENO: result: no" >&5
19987echo "${ECHO_T}no" >&6; }
19988fi
19989
19990  if test "x$ac_pt_PKG_CONFIG" = x; then
19991    PKG_CONFIG=""
19992  else
19993    case $cross_compiling:$ac_tool_warned in
19994yes:)
19995{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19996whose name does not start with the host triplet.  If you think this
19997configuration is useful to you, please write to autoconf@gnu.org." >&5
19998echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19999whose name does not start with the host triplet.  If you think this
20000configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20001ac_tool_warned=yes ;;
20002esac
20003    PKG_CONFIG=$ac_pt_PKG_CONFIG
20004  fi
20005else
20006  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20007fi
20008
20009fi
20010if test -n "$PKG_CONFIG"; then
20011	_pkg_min_version=0.9.0
20012	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20013echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20014	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20015		{ echo "$as_me:$LINENO: result: yes" >&5
20016echo "${ECHO_T}yes" >&6; }
20017	else
20018		{ echo "$as_me:$LINENO: result: no" >&5
20019echo "${ECHO_T}no" >&6; }
20020		PKG_CONFIG=""
20021	fi
20022
20023fi
20024
20025pkg_failed=no
20026{ echo "$as_me:$LINENO: checking for CHECK" >&5
20027echo $ECHO_N "checking for CHECK... $ECHO_C" >&6; }
20028
20029if test -n "$PKG_CONFIG"; then
20030    if test -n "$CHECK_CFLAGS"; then
20031        pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
20032    else
20033        if test -n "$PKG_CONFIG" && \
20034    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\"") >&5
20035  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
20036  ac_status=$?
20037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038  (exit $ac_status); }; then
20039  pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
20040else
20041  pkg_failed=yes
20042fi
20043    fi
20044else
20045	pkg_failed=untried
20046fi
20047if test -n "$PKG_CONFIG"; then
20048    if test -n "$CHECK_LIBS"; then
20049        pkg_cv_CHECK_LIBS="$CHECK_LIBS"
20050    else
20051        if test -n "$PKG_CONFIG" && \
20052    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\"") >&5
20053  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
20054  ac_status=$?
20055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056  (exit $ac_status); }; then
20057  pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
20058else
20059  pkg_failed=yes
20060fi
20061    fi
20062else
20063	pkg_failed=untried
20064fi
20065
20066
20067
20068if test $pkg_failed = yes; then
20069
20070if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20071        _pkg_short_errors_supported=yes
20072else
20073        _pkg_short_errors_supported=no
20074fi
20075        if test $_pkg_short_errors_supported = yes; then
20076	        CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "check >= 0.9.4"`
20077        else
20078	        CHECK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "check >= 0.9.4"`
20079        fi
20080	# Put the nasty error message in config.log where it belongs
20081	echo "$CHECK_PKG_ERRORS" >&5
20082
20083	{ echo "$as_me:$LINENO: result: no" >&5
20084echo "${ECHO_T}no" >&6; }
20085
20086                        { echo "$as_me:$LINENO: WARNING: check not found. Checks disabled." >&5
20087echo "$as_me: WARNING: check not found. Checks disabled." >&2;}
20088
20089elif test $pkg_failed = untried; then
20090
20091                        { echo "$as_me:$LINENO: WARNING: check not found. Checks disabled." >&5
20092echo "$as_me: WARNING: check not found. Checks disabled." >&2;}
20093
20094else
20095	CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
20096	CHECK_LIBS=$pkg_cv_CHECK_LIBS
20097        { echo "$as_me:$LINENO: result: yes" >&5
20098echo "${ECHO_T}yes" >&6; }
20099	HAVE_CHECK=yes
20100fi
20101 if test "x$HAVE_CHECK" = "xyes"; then
20102  HAVE_CHECK_TRUE=
20103  HAVE_CHECK_FALSE='#'
20104else
20105  HAVE_CHECK_TRUE='#'
20106  HAVE_CHECK_FALSE=
20107fi
20108
20109if test "x$CC" != xcc; then
20110  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20111echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
20112else
20113  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20114echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
20115fi
20116set dummy $CC; ac_cc=`echo $2 |
20117		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20118if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20119  echo $ECHO_N "(cached) $ECHO_C" >&6
20120else
20121  cat >conftest.$ac_ext <<_ACEOF
20122/* confdefs.h.  */
20123_ACEOF
20124cat confdefs.h >>conftest.$ac_ext
20125cat >>conftest.$ac_ext <<_ACEOF
20126/* end confdefs.h.  */
20127
20128int
20129main ()
20130{
20131
20132  ;
20133  return 0;
20134}
20135_ACEOF
20136# Make sure it works both with $CC and with simple cc.
20137# We do the test twice because some compilers refuse to overwrite an
20138# existing .o file with -o, though they will create one.
20139ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20140rm -f conftest2.*
20141if { (case "(($ac_try" in
20142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143  *) ac_try_echo=$ac_try;;
20144esac
20145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146  (eval "$ac_try") 2>&5
20147  ac_status=$?
20148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149  (exit $ac_status); } &&
20150   test -f conftest2.$ac_objext && { (case "(($ac_try" in
20151  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152  *) ac_try_echo=$ac_try;;
20153esac
20154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20155  (eval "$ac_try") 2>&5
20156  ac_status=$?
20157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158  (exit $ac_status); };
20159then
20160  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20161  if test "x$CC" != xcc; then
20162    # Test first that cc exists at all.
20163    if { ac_try='cc -c conftest.$ac_ext >&5'
20164  { (case "(($ac_try" in
20165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166  *) ac_try_echo=$ac_try;;
20167esac
20168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169  (eval "$ac_try") 2>&5
20170  ac_status=$?
20171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172  (exit $ac_status); }; }; then
20173      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20174      rm -f conftest2.*
20175      if { (case "(($ac_try" in
20176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177  *) ac_try_echo=$ac_try;;
20178esac
20179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180  (eval "$ac_try") 2>&5
20181  ac_status=$?
20182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183  (exit $ac_status); } &&
20184	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
20185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186  *) ac_try_echo=$ac_try;;
20187esac
20188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189  (eval "$ac_try") 2>&5
20190  ac_status=$?
20191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192  (exit $ac_status); };
20193      then
20194	# cc works too.
20195	:
20196      else
20197	# cc exists but doesn't like -o.
20198	eval ac_cv_prog_cc_${ac_cc}_c_o=no
20199      fi
20200    fi
20201  fi
20202else
20203  eval ac_cv_prog_cc_${ac_cc}_c_o=no
20204fi
20205rm -f core conftest*
20206
20207fi
20208if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20209  { echo "$as_me:$LINENO: result: yes" >&5
20210echo "${ECHO_T}yes" >&6; }
20211else
20212  { echo "$as_me:$LINENO: result: no" >&5
20213echo "${ECHO_T}no" >&6; }
20214
20215cat >>confdefs.h <<\_ACEOF
20216#define NO_MINUS_C_MINUS_O 1
20217_ACEOF
20218
20219fi
20220
20221# FIXME: we rely on the cache variable name because
20222# there is no other way.
20223set dummy $CC
20224ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20225if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
20226   # Losing compiler, so override with the script.
20227   # FIXME: It is wrong to rewrite CC.
20228   # But if we don't then we get into trouble of one sort or another.
20229   # A longer-term fix would be to have automake use am__CC in this case,
20230   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20231   CC="$am_aux_dir/compile $CC"
20232fi
20233
20234
20235
20236# Checks for libraries.
20237
20238# Checks for header files.
20239{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20240echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20241if test "${ac_cv_header_stdc+set}" = set; then
20242  echo $ECHO_N "(cached) $ECHO_C" >&6
20243else
20244  cat >conftest.$ac_ext <<_ACEOF
20245/* confdefs.h.  */
20246_ACEOF
20247cat confdefs.h >>conftest.$ac_ext
20248cat >>conftest.$ac_ext <<_ACEOF
20249/* end confdefs.h.  */
20250#include <stdlib.h>
20251#include <stdarg.h>
20252#include <string.h>
20253#include <float.h>
20254
20255int
20256main ()
20257{
20258
20259  ;
20260  return 0;
20261}
20262_ACEOF
20263rm -f conftest.$ac_objext
20264if { (ac_try="$ac_compile"
20265case "(($ac_try" in
20266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20267  *) ac_try_echo=$ac_try;;
20268esac
20269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20270  (eval "$ac_compile") 2>conftest.er1
20271  ac_status=$?
20272  grep -v '^ *+' conftest.er1 >conftest.err
20273  rm -f conftest.er1
20274  cat conftest.err >&5
20275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276  (exit $ac_status); } && {
20277	 test -z "$ac_c_werror_flag" ||
20278	 test ! -s conftest.err
20279       } && test -s conftest.$ac_objext; then
20280  ac_cv_header_stdc=yes
20281else
20282  echo "$as_me: failed program was:" >&5
20283sed 's/^/| /' conftest.$ac_ext >&5
20284
20285	ac_cv_header_stdc=no
20286fi
20287
20288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20289
20290if test $ac_cv_header_stdc = yes; then
20291  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20292  cat >conftest.$ac_ext <<_ACEOF
20293/* confdefs.h.  */
20294_ACEOF
20295cat confdefs.h >>conftest.$ac_ext
20296cat >>conftest.$ac_ext <<_ACEOF
20297/* end confdefs.h.  */
20298#include <string.h>
20299
20300_ACEOF
20301if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20302  $EGREP "memchr" >/dev/null 2>&1; then
20303  :
20304else
20305  ac_cv_header_stdc=no
20306fi
20307rm -f conftest*
20308
20309fi
20310
20311if test $ac_cv_header_stdc = yes; then
20312  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20313  cat >conftest.$ac_ext <<_ACEOF
20314/* confdefs.h.  */
20315_ACEOF
20316cat confdefs.h >>conftest.$ac_ext
20317cat >>conftest.$ac_ext <<_ACEOF
20318/* end confdefs.h.  */
20319#include <stdlib.h>
20320
20321_ACEOF
20322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20323  $EGREP "free" >/dev/null 2>&1; then
20324  :
20325else
20326  ac_cv_header_stdc=no
20327fi
20328rm -f conftest*
20329
20330fi
20331
20332if test $ac_cv_header_stdc = yes; then
20333  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20334  if test "$cross_compiling" = yes; then
20335  :
20336else
20337  cat >conftest.$ac_ext <<_ACEOF
20338/* confdefs.h.  */
20339_ACEOF
20340cat confdefs.h >>conftest.$ac_ext
20341cat >>conftest.$ac_ext <<_ACEOF
20342/* end confdefs.h.  */
20343#include <ctype.h>
20344#include <stdlib.h>
20345#if ((' ' & 0x0FF) == 0x020)
20346# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20347# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20348#else
20349# define ISLOWER(c) \
20350		   (('a' <= (c) && (c) <= 'i') \
20351		     || ('j' <= (c) && (c) <= 'r') \
20352		     || ('s' <= (c) && (c) <= 'z'))
20353# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20354#endif
20355
20356#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20357int
20358main ()
20359{
20360  int i;
20361  for (i = 0; i < 256; i++)
20362    if (XOR (islower (i), ISLOWER (i))
20363	|| toupper (i) != TOUPPER (i))
20364      return 2;
20365  return 0;
20366}
20367_ACEOF
20368rm -f conftest$ac_exeext
20369if { (ac_try="$ac_link"
20370case "(($ac_try" in
20371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372  *) ac_try_echo=$ac_try;;
20373esac
20374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375  (eval "$ac_link") 2>&5
20376  ac_status=$?
20377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20379  { (case "(($ac_try" in
20380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20381  *) ac_try_echo=$ac_try;;
20382esac
20383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20384  (eval "$ac_try") 2>&5
20385  ac_status=$?
20386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387  (exit $ac_status); }; }; then
20388  :
20389else
20390  echo "$as_me: program exited with status $ac_status" >&5
20391echo "$as_me: failed program was:" >&5
20392sed 's/^/| /' conftest.$ac_ext >&5
20393
20394( exit $ac_status )
20395ac_cv_header_stdc=no
20396fi
20397rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20398fi
20399
20400
20401fi
20402fi
20403{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20404echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20405if test $ac_cv_header_stdc = yes; then
20406
20407cat >>confdefs.h <<\_ACEOF
20408#define STDC_HEADERS 1
20409_ACEOF
20410
20411fi
20412
20413
20414
20415
20416
20417
20418
20419
20420for ac_header in float.h libintl.h limits.h locale.h stdlib.h string.h sys/time.h
20421do
20422as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20424  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20427  echo $ECHO_N "(cached) $ECHO_C" >&6
20428fi
20429ac_res=`eval echo '${'$as_ac_Header'}'`
20430	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20431echo "${ECHO_T}$ac_res" >&6; }
20432else
20433  # Is the header compilable?
20434{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20435echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20436cat >conftest.$ac_ext <<_ACEOF
20437/* confdefs.h.  */
20438_ACEOF
20439cat confdefs.h >>conftest.$ac_ext
20440cat >>conftest.$ac_ext <<_ACEOF
20441/* end confdefs.h.  */
20442$ac_includes_default
20443#include <$ac_header>
20444_ACEOF
20445rm -f conftest.$ac_objext
20446if { (ac_try="$ac_compile"
20447case "(($ac_try" in
20448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449  *) ac_try_echo=$ac_try;;
20450esac
20451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452  (eval "$ac_compile") 2>conftest.er1
20453  ac_status=$?
20454  grep -v '^ *+' conftest.er1 >conftest.err
20455  rm -f conftest.er1
20456  cat conftest.err >&5
20457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458  (exit $ac_status); } && {
20459	 test -z "$ac_c_werror_flag" ||
20460	 test ! -s conftest.err
20461       } && test -s conftest.$ac_objext; then
20462  ac_header_compiler=yes
20463else
20464  echo "$as_me: failed program was:" >&5
20465sed 's/^/| /' conftest.$ac_ext >&5
20466
20467	ac_header_compiler=no
20468fi
20469
20470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20471{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20472echo "${ECHO_T}$ac_header_compiler" >&6; }
20473
20474# Is the header present?
20475{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20477cat >conftest.$ac_ext <<_ACEOF
20478/* confdefs.h.  */
20479_ACEOF
20480cat confdefs.h >>conftest.$ac_ext
20481cat >>conftest.$ac_ext <<_ACEOF
20482/* end confdefs.h.  */
20483#include <$ac_header>
20484_ACEOF
20485if { (ac_try="$ac_cpp conftest.$ac_ext"
20486case "(($ac_try" in
20487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488  *) ac_try_echo=$ac_try;;
20489esac
20490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20491  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20492  ac_status=$?
20493  grep -v '^ *+' conftest.er1 >conftest.err
20494  rm -f conftest.er1
20495  cat conftest.err >&5
20496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497  (exit $ac_status); } >/dev/null && {
20498	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20499	 test ! -s conftest.err
20500       }; then
20501  ac_header_preproc=yes
20502else
20503  echo "$as_me: failed program was:" >&5
20504sed 's/^/| /' conftest.$ac_ext >&5
20505
20506  ac_header_preproc=no
20507fi
20508
20509rm -f conftest.err conftest.$ac_ext
20510{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20511echo "${ECHO_T}$ac_header_preproc" >&6; }
20512
20513# So?  What about this header?
20514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20515  yes:no: )
20516    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20517echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20518    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20519echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20520    ac_header_preproc=yes
20521    ;;
20522  no:yes:* )
20523    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20524echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20525    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20526echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20527    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20528echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20529    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20530echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20531    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20533    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20534echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20535    ( cat <<\_ASBOX
20536## ------------------------------ ##
20537## Report this to asturio@gmx.net ##
20538## ------------------------------ ##
20539_ASBOX
20540     ) | sed "s/^/$as_me: WARNING:     /" >&2
20541    ;;
20542esac
20543{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20546  echo $ECHO_N "(cached) $ECHO_C" >&6
20547else
20548  eval "$as_ac_Header=\$ac_header_preproc"
20549fi
20550ac_res=`eval echo '${'$as_ac_Header'}'`
20551	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20552echo "${ECHO_T}$ac_res" >&6; }
20553
20554fi
20555if test `eval echo '${'$as_ac_Header'}'` = yes; then
20556  cat >>confdefs.h <<_ACEOF
20557#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20558_ACEOF
20559
20560fi
20561
20562done
20563
20564
20565# Checks for typedefs, structures, and compiler characteristics.
20566{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20567echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20568if test "${ac_cv_c_const+set}" = set; then
20569  echo $ECHO_N "(cached) $ECHO_C" >&6
20570else
20571  cat >conftest.$ac_ext <<_ACEOF
20572/* confdefs.h.  */
20573_ACEOF
20574cat confdefs.h >>conftest.$ac_ext
20575cat >>conftest.$ac_ext <<_ACEOF
20576/* end confdefs.h.  */
20577
20578int
20579main ()
20580{
20581/* FIXME: Include the comments suggested by Paul. */
20582#ifndef __cplusplus
20583  /* Ultrix mips cc rejects this.  */
20584  typedef int charset[2];
20585  const charset cs;
20586  /* SunOS 4.1.1 cc rejects this.  */
20587  char const *const *pcpcc;
20588  char **ppc;
20589  /* NEC SVR4.0.2 mips cc rejects this.  */
20590  struct point {int x, y;};
20591  static struct point const zero = {0,0};
20592  /* AIX XL C 1.02.0.0 rejects this.
20593     It does not let you subtract one const X* pointer from another in
20594     an arm of an if-expression whose if-part is not a constant
20595     expression */
20596  const char *g = "string";
20597  pcpcc = &g + (g ? g-g : 0);
20598  /* HPUX 7.0 cc rejects these. */
20599  ++pcpcc;
20600  ppc = (char**) pcpcc;
20601  pcpcc = (char const *const *) ppc;
20602  { /* SCO 3.2v4 cc rejects this.  */
20603    char *t;
20604    char const *s = 0 ? (char *) 0 : (char const *) 0;
20605
20606    *t++ = 0;
20607    if (s) return 0;
20608  }
20609  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20610    int x[] = {25, 17};
20611    const int *foo = &x[0];
20612    ++foo;
20613  }
20614  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20615    typedef const int *iptr;
20616    iptr p = 0;
20617    ++p;
20618  }
20619  { /* AIX XL C 1.02.0.0 rejects this saying
20620       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20621    struct s { int j; const int *ap[3]; };
20622    struct s *b; b->j = 5;
20623  }
20624  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20625    const int foo = 10;
20626    if (!foo) return 0;
20627  }
20628  return !cs[0] && !zero.x;
20629#endif
20630
20631  ;
20632  return 0;
20633}
20634_ACEOF
20635rm -f conftest.$ac_objext
20636if { (ac_try="$ac_compile"
20637case "(($ac_try" in
20638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20639  *) ac_try_echo=$ac_try;;
20640esac
20641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20642  (eval "$ac_compile") 2>conftest.er1
20643  ac_status=$?
20644  grep -v '^ *+' conftest.er1 >conftest.err
20645  rm -f conftest.er1
20646  cat conftest.err >&5
20647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648  (exit $ac_status); } && {
20649	 test -z "$ac_c_werror_flag" ||
20650	 test ! -s conftest.err
20651       } && test -s conftest.$ac_objext; then
20652  ac_cv_c_const=yes
20653else
20654  echo "$as_me: failed program was:" >&5
20655sed 's/^/| /' conftest.$ac_ext >&5
20656
20657	ac_cv_c_const=no
20658fi
20659
20660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20661fi
20662{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20663echo "${ECHO_T}$ac_cv_c_const" >&6; }
20664if test $ac_cv_c_const = no; then
20665
20666cat >>confdefs.h <<\_ACEOF
20667#define const
20668_ACEOF
20669
20670fi
20671
20672{ echo "$as_me:$LINENO: checking for inline" >&5
20673echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
20674if test "${ac_cv_c_inline+set}" = set; then
20675  echo $ECHO_N "(cached) $ECHO_C" >&6
20676else
20677  ac_cv_c_inline=no
20678for ac_kw in inline __inline__ __inline; do
20679  cat >conftest.$ac_ext <<_ACEOF
20680/* confdefs.h.  */
20681_ACEOF
20682cat confdefs.h >>conftest.$ac_ext
20683cat >>conftest.$ac_ext <<_ACEOF
20684/* end confdefs.h.  */
20685#ifndef __cplusplus
20686typedef int foo_t;
20687static $ac_kw foo_t static_foo () {return 0; }
20688$ac_kw foo_t foo () {return 0; }
20689#endif
20690
20691_ACEOF
20692rm -f conftest.$ac_objext
20693if { (ac_try="$ac_compile"
20694case "(($ac_try" in
20695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696  *) ac_try_echo=$ac_try;;
20697esac
20698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699  (eval "$ac_compile") 2>conftest.er1
20700  ac_status=$?
20701  grep -v '^ *+' conftest.er1 >conftest.err
20702  rm -f conftest.er1
20703  cat conftest.err >&5
20704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705  (exit $ac_status); } && {
20706	 test -z "$ac_c_werror_flag" ||
20707	 test ! -s conftest.err
20708       } && test -s conftest.$ac_objext; then
20709  ac_cv_c_inline=$ac_kw
20710else
20711  echo "$as_me: failed program was:" >&5
20712sed 's/^/| /' conftest.$ac_ext >&5
20713
20714
20715fi
20716
20717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718  test "$ac_cv_c_inline" != no && break
20719done
20720
20721fi
20722{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20723echo "${ECHO_T}$ac_cv_c_inline" >&6; }
20724
20725
20726case $ac_cv_c_inline in
20727  inline | yes) ;;
20728  *)
20729    case $ac_cv_c_inline in
20730      no) ac_val=;;
20731      *) ac_val=$ac_cv_c_inline;;
20732    esac
20733    cat >>confdefs.h <<_ACEOF
20734#ifndef __cplusplus
20735#define inline $ac_val
20736#endif
20737_ACEOF
20738    ;;
20739esac
20740
20741{ echo "$as_me:$LINENO: checking for size_t" >&5
20742echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20743if test "${ac_cv_type_size_t+set}" = set; then
20744  echo $ECHO_N "(cached) $ECHO_C" >&6
20745else
20746  cat >conftest.$ac_ext <<_ACEOF
20747/* confdefs.h.  */
20748_ACEOF
20749cat confdefs.h >>conftest.$ac_ext
20750cat >>conftest.$ac_ext <<_ACEOF
20751/* end confdefs.h.  */
20752$ac_includes_default
20753typedef size_t ac__type_new_;
20754int
20755main ()
20756{
20757if ((ac__type_new_ *) 0)
20758  return 0;
20759if (sizeof (ac__type_new_))
20760  return 0;
20761  ;
20762  return 0;
20763}
20764_ACEOF
20765rm -f conftest.$ac_objext
20766if { (ac_try="$ac_compile"
20767case "(($ac_try" in
20768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769  *) ac_try_echo=$ac_try;;
20770esac
20771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772  (eval "$ac_compile") 2>conftest.er1
20773  ac_status=$?
20774  grep -v '^ *+' conftest.er1 >conftest.err
20775  rm -f conftest.er1
20776  cat conftest.err >&5
20777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778  (exit $ac_status); } && {
20779	 test -z "$ac_c_werror_flag" ||
20780	 test ! -s conftest.err
20781       } && test -s conftest.$ac_objext; then
20782  ac_cv_type_size_t=yes
20783else
20784  echo "$as_me: failed program was:" >&5
20785sed 's/^/| /' conftest.$ac_ext >&5
20786
20787	ac_cv_type_size_t=no
20788fi
20789
20790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20791fi
20792{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20793echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20794if test $ac_cv_type_size_t = yes; then
20795  :
20796else
20797
20798cat >>confdefs.h <<_ACEOF
20799#define size_t unsigned int
20800_ACEOF
20801
20802fi
20803
20804{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20805echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20806if test "${ac_cv_header_time+set}" = set; then
20807  echo $ECHO_N "(cached) $ECHO_C" >&6
20808else
20809  cat >conftest.$ac_ext <<_ACEOF
20810/* confdefs.h.  */
20811_ACEOF
20812cat confdefs.h >>conftest.$ac_ext
20813cat >>conftest.$ac_ext <<_ACEOF
20814/* end confdefs.h.  */
20815#include <sys/types.h>
20816#include <sys/time.h>
20817#include <time.h>
20818
20819int
20820main ()
20821{
20822if ((struct tm *) 0)
20823return 0;
20824  ;
20825  return 0;
20826}
20827_ACEOF
20828rm -f conftest.$ac_objext
20829if { (ac_try="$ac_compile"
20830case "(($ac_try" in
20831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20832  *) ac_try_echo=$ac_try;;
20833esac
20834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20835  (eval "$ac_compile") 2>conftest.er1
20836  ac_status=$?
20837  grep -v '^ *+' conftest.er1 >conftest.err
20838  rm -f conftest.er1
20839  cat conftest.err >&5
20840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841  (exit $ac_status); } && {
20842	 test -z "$ac_c_werror_flag" ||
20843	 test ! -s conftest.err
20844       } && test -s conftest.$ac_objext; then
20845  ac_cv_header_time=yes
20846else
20847  echo "$as_me: failed program was:" >&5
20848sed 's/^/| /' conftest.$ac_ext >&5
20849
20850	ac_cv_header_time=no
20851fi
20852
20853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20854fi
20855{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20856echo "${ECHO_T}$ac_cv_header_time" >&6; }
20857if test $ac_cv_header_time = yes; then
20858
20859cat >>confdefs.h <<\_ACEOF
20860#define TIME_WITH_SYS_TIME 1
20861_ACEOF
20862
20863fi
20864
20865
20866# Checks for library functions.
20867
20868  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
20869echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
20870    # Check whether --enable-nls was given.
20871if test "${enable_nls+set}" = set; then
20872  enableval=$enable_nls; USE_NLS=$enableval
20873else
20874  USE_NLS=yes
20875fi
20876
20877  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
20878echo "${ECHO_T}$USE_NLS" >&6; }
20879
20880
20881
20882
20883
20884
20885# Prepare PATH_SEPARATOR.
20886# The user is always right.
20887if test "${PATH_SEPARATOR+set}" != set; then
20888  echo "#! /bin/sh" >conf$$.sh
20889  echo  "exit 0"   >>conf$$.sh
20890  chmod +x conf$$.sh
20891  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20892    PATH_SEPARATOR=';'
20893  else
20894    PATH_SEPARATOR=:
20895  fi
20896  rm -f conf$$.sh
20897fi
20898
20899# Find out how to test for executable files. Don't use a zero-byte file,
20900# as systems may use methods other than mode bits to determine executability.
20901cat >conf$$.file <<_ASEOF
20902#! /bin/sh
20903exit 0
20904_ASEOF
20905chmod +x conf$$.file
20906if test -x conf$$.file >/dev/null 2>&1; then
20907  ac_executable_p="test -x"
20908else
20909  ac_executable_p="test -f"
20910fi
20911rm -f conf$$.file
20912
20913# Extract the first word of "msgfmt", so it can be a program name with args.
20914set dummy msgfmt; ac_word=$2
20915{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20917if test "${ac_cv_path_MSGFMT+set}" = set; then
20918  echo $ECHO_N "(cached) $ECHO_C" >&6
20919else
20920  case "$MSGFMT" in
20921  [\\/]* | ?:[\\/]*)
20922    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20923    ;;
20924  *)
20925    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20926    for ac_dir in $PATH; do
20927      IFS="$ac_save_IFS"
20928      test -z "$ac_dir" && ac_dir=.
20929      for ac_exec_ext in '' $ac_executable_extensions; do
20930        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20931          echo "$as_me: trying $ac_dir/$ac_word..." >&5
20932          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
20933     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20934            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
20935            break 2
20936          fi
20937        fi
20938      done
20939    done
20940    IFS="$ac_save_IFS"
20941  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
20942    ;;
20943esac
20944fi
20945MSGFMT="$ac_cv_path_MSGFMT"
20946if test "$MSGFMT" != ":"; then
20947  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
20948echo "${ECHO_T}$MSGFMT" >&6; }
20949else
20950  { echo "$as_me:$LINENO: result: no" >&5
20951echo "${ECHO_T}no" >&6; }
20952fi
20953
20954  # Extract the first word of "gmsgfmt", so it can be a program name with args.
20955set dummy gmsgfmt; ac_word=$2
20956{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20958if test "${ac_cv_path_GMSGFMT+set}" = set; then
20959  echo $ECHO_N "(cached) $ECHO_C" >&6
20960else
20961  case $GMSGFMT in
20962  [\\/]* | ?:[\\/]*)
20963  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20964  ;;
20965  *)
20966  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20967for as_dir in $PATH
20968do
20969  IFS=$as_save_IFS
20970  test -z "$as_dir" && as_dir=.
20971  for ac_exec_ext in '' $ac_executable_extensions; do
20972  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20973    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20974    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20975    break 2
20976  fi
20977done
20978done
20979IFS=$as_save_IFS
20980
20981  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20982  ;;
20983esac
20984fi
20985GMSGFMT=$ac_cv_path_GMSGFMT
20986if test -n "$GMSGFMT"; then
20987  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20988echo "${ECHO_T}$GMSGFMT" >&6; }
20989else
20990  { echo "$as_me:$LINENO: result: no" >&5
20991echo "${ECHO_T}no" >&6; }
20992fi
20993
20994
20995
20996    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20997    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
20998    *) MSGFMT_015=$MSGFMT ;;
20999  esac
21000
21001  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21002    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
21003    *) GMSGFMT_015=$GMSGFMT ;;
21004  esac
21005
21006
21007
21008# Prepare PATH_SEPARATOR.
21009# The user is always right.
21010if test "${PATH_SEPARATOR+set}" != set; then
21011  echo "#! /bin/sh" >conf$$.sh
21012  echo  "exit 0"   >>conf$$.sh
21013  chmod +x conf$$.sh
21014  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21015    PATH_SEPARATOR=';'
21016  else
21017    PATH_SEPARATOR=:
21018  fi
21019  rm -f conf$$.sh
21020fi
21021
21022# Find out how to test for executable files. Don't use a zero-byte file,
21023# as systems may use methods other than mode bits to determine executability.
21024cat >conf$$.file <<_ASEOF
21025#! /bin/sh
21026exit 0
21027_ASEOF
21028chmod +x conf$$.file
21029if test -x conf$$.file >/dev/null 2>&1; then
21030  ac_executable_p="test -x"
21031else
21032  ac_executable_p="test -f"
21033fi
21034rm -f conf$$.file
21035
21036# Extract the first word of "xgettext", so it can be a program name with args.
21037set dummy xgettext; ac_word=$2
21038{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21040if test "${ac_cv_path_XGETTEXT+set}" = set; then
21041  echo $ECHO_N "(cached) $ECHO_C" >&6
21042else
21043  case "$XGETTEXT" in
21044  [\\/]* | ?:[\\/]*)
21045    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21046    ;;
21047  *)
21048    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21049    for ac_dir in $PATH; do
21050      IFS="$ac_save_IFS"
21051      test -z "$ac_dir" && ac_dir=.
21052      for ac_exec_ext in '' $ac_executable_extensions; do
21053        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21054          echo "$as_me: trying $ac_dir/$ac_word..." >&5
21055          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
21056     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21057            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
21058            break 2
21059          fi
21060        fi
21061      done
21062    done
21063    IFS="$ac_save_IFS"
21064  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21065    ;;
21066esac
21067fi
21068XGETTEXT="$ac_cv_path_XGETTEXT"
21069if test "$XGETTEXT" != ":"; then
21070  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21071echo "${ECHO_T}$XGETTEXT" >&6; }
21072else
21073  { echo "$as_me:$LINENO: result: no" >&5
21074echo "${ECHO_T}no" >&6; }
21075fi
21076
21077    rm -f messages.po
21078
21079    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21080    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
21081    *) XGETTEXT_015=$XGETTEXT ;;
21082  esac
21083
21084
21085
21086# Prepare PATH_SEPARATOR.
21087# The user is always right.
21088if test "${PATH_SEPARATOR+set}" != set; then
21089  echo "#! /bin/sh" >conf$$.sh
21090  echo  "exit 0"   >>conf$$.sh
21091  chmod +x conf$$.sh
21092  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21093    PATH_SEPARATOR=';'
21094  else
21095    PATH_SEPARATOR=:
21096  fi
21097  rm -f conf$$.sh
21098fi
21099
21100# Find out how to test for executable files. Don't use a zero-byte file,
21101# as systems may use methods other than mode bits to determine executability.
21102cat >conf$$.file <<_ASEOF
21103#! /bin/sh
21104exit 0
21105_ASEOF
21106chmod +x conf$$.file
21107if test -x conf$$.file >/dev/null 2>&1; then
21108  ac_executable_p="test -x"
21109else
21110  ac_executable_p="test -f"
21111fi
21112rm -f conf$$.file
21113
21114# Extract the first word of "msgmerge", so it can be a program name with args.
21115set dummy msgmerge; ac_word=$2
21116{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21118if test "${ac_cv_path_MSGMERGE+set}" = set; then
21119  echo $ECHO_N "(cached) $ECHO_C" >&6
21120else
21121  case "$MSGMERGE" in
21122  [\\/]* | ?:[\\/]*)
21123    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
21124    ;;
21125  *)
21126    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21127    for ac_dir in $PATH; do
21128      IFS="$ac_save_IFS"
21129      test -z "$ac_dir" && ac_dir=.
21130      for ac_exec_ext in '' $ac_executable_extensions; do
21131        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21132          echo "$as_me: trying $ac_dir/$ac_word..." >&5
21133          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
21134            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
21135            break 2
21136          fi
21137        fi
21138      done
21139    done
21140    IFS="$ac_save_IFS"
21141  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
21142    ;;
21143esac
21144fi
21145MSGMERGE="$ac_cv_path_MSGMERGE"
21146if test "$MSGMERGE" != ":"; then
21147  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21148echo "${ECHO_T}$MSGMERGE" >&6; }
21149else
21150  { echo "$as_me:$LINENO: result: no" >&5
21151echo "${ECHO_T}no" >&6; }
21152fi
21153
21154
21155        test -n "$localedir" || localedir='${datadir}/locale'
21156
21157
21158  ac_config_commands="$ac_config_commands po-directories"
21159
21160
21161
21162      if test "X$prefix" = "XNONE"; then
21163    acl_final_prefix="$ac_default_prefix"
21164  else
21165    acl_final_prefix="$prefix"
21166  fi
21167  if test "X$exec_prefix" = "XNONE"; then
21168    acl_final_exec_prefix='${prefix}'
21169  else
21170    acl_final_exec_prefix="$exec_prefix"
21171  fi
21172  acl_save_prefix="$prefix"
21173  prefix="$acl_final_prefix"
21174  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21175  prefix="$acl_save_prefix"
21176
21177
21178# Check whether --with-gnu-ld was given.
21179if test "${with_gnu_ld+set}" = set; then
21180  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21181else
21182  with_gnu_ld=no
21183fi
21184
21185# Prepare PATH_SEPARATOR.
21186# The user is always right.
21187if test "${PATH_SEPARATOR+set}" != set; then
21188  echo "#! /bin/sh" >conf$$.sh
21189  echo  "exit 0"   >>conf$$.sh
21190  chmod +x conf$$.sh
21191  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21192    PATH_SEPARATOR=';'
21193  else
21194    PATH_SEPARATOR=:
21195  fi
21196  rm -f conf$$.sh
21197fi
21198ac_prog=ld
21199if test "$GCC" = yes; then
21200  # Check if gcc -print-prog-name=ld gives a path.
21201  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21202echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
21203  case $host in
21204  *-*-mingw*)
21205    # gcc leaves a trailing carriage return which upsets mingw
21206    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21207  *)
21208    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21209  esac
21210  case $ac_prog in
21211    # Accept absolute paths.
21212    [\\/]* | [A-Za-z]:[\\/]*)
21213      re_direlt='/[^/][^/]*/\.\./'
21214      # Canonicalize the path of ld
21215      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21216      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21217	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21218      done
21219      test -z "$LD" && LD="$ac_prog"
21220      ;;
21221  "")
21222    # If it fails, then pretend we aren't using GCC.
21223    ac_prog=ld
21224    ;;
21225  *)
21226    # If it is relative, then search for the first ld in PATH.
21227    with_gnu_ld=unknown
21228    ;;
21229  esac
21230elif test "$with_gnu_ld" = yes; then
21231  { echo "$as_me:$LINENO: checking for GNU ld" >&5
21232echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
21233else
21234  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21235echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
21236fi
21237if test "${acl_cv_path_LD+set}" = set; then
21238  echo $ECHO_N "(cached) $ECHO_C" >&6
21239else
21240  if test -z "$LD"; then
21241  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21242  for ac_dir in $PATH; do
21243    test -z "$ac_dir" && ac_dir=.
21244    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21245      acl_cv_path_LD="$ac_dir/$ac_prog"
21246      # Check to see if the program is GNU ld.  I'd rather use --version,
21247      # but apparently some GNU ld's only accept -v.
21248      # Break only if it was the GNU/non-GNU ld that we prefer.
21249      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
21250      *GNU* | *'with BFD'*)
21251	test "$with_gnu_ld" != no && break ;;
21252      *)
21253	test "$with_gnu_ld" != yes && break ;;
21254      esac
21255    fi
21256  done
21257  IFS="$ac_save_ifs"
21258else
21259  acl_cv_path_LD="$LD" # Let the user override the test with a path.
21260fi
21261fi
21262
21263LD="$acl_cv_path_LD"
21264if test -n "$LD"; then
21265  { echo "$as_me:$LINENO: result: $LD" >&5
21266echo "${ECHO_T}$LD" >&6; }
21267else
21268  { echo "$as_me:$LINENO: result: no" >&5
21269echo "${ECHO_T}no" >&6; }
21270fi
21271test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21272echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21273   { (exit 1); exit 1; }; }
21274{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21275echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
21276if test "${acl_cv_prog_gnu_ld+set}" = set; then
21277  echo $ECHO_N "(cached) $ECHO_C" >&6
21278else
21279  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21280case `$LD -v 2>&1 </dev/null` in
21281*GNU* | *'with BFD'*)
21282  acl_cv_prog_gnu_ld=yes ;;
21283*)
21284  acl_cv_prog_gnu_ld=no ;;
21285esac
21286fi
21287{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21288echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
21289with_gnu_ld=$acl_cv_prog_gnu_ld
21290
21291
21292
21293
21294                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21295echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
21296if test "${acl_cv_rpath+set}" = set; then
21297  echo $ECHO_N "(cached) $ECHO_C" >&6
21298else
21299
21300    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21301    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21302    . ./conftest.sh
21303    rm -f ./conftest.sh
21304    acl_cv_rpath=done
21305
21306fi
21307{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21308echo "${ECHO_T}$acl_cv_rpath" >&6; }
21309  wl="$acl_cv_wl"
21310  libext="$acl_cv_libext"
21311  shlibext="$acl_cv_shlibext"
21312  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21313  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21314  hardcode_direct="$acl_cv_hardcode_direct"
21315  hardcode_minus_L="$acl_cv_hardcode_minus_L"
21316    # Check whether --enable-rpath was given.
21317if test "${enable_rpath+set}" = set; then
21318  enableval=$enable_rpath; :
21319else
21320  enable_rpath=yes
21321fi
21322
21323
21324
21325                  acl_libdirstem=lib
21326  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
21327  if test -n "$searchpath"; then
21328    acl_save_IFS="${IFS= 	}"; IFS=":"
21329    for searchdir in $searchpath; do
21330      if test -d "$searchdir"; then
21331        case "$searchdir" in
21332          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
21333          *) searchdir=`cd "$searchdir" && pwd`
21334             case "$searchdir" in
21335               */lib64 ) acl_libdirstem=lib64 ;;
21336             esac ;;
21337        esac
21338      fi
21339    done
21340    IFS="$acl_save_IFS"
21341  fi
21342
21343
21344
21345
21346
21347
21348
21349
21350    use_additional=yes
21351
21352  acl_save_prefix="$prefix"
21353  prefix="$acl_final_prefix"
21354  acl_save_exec_prefix="$exec_prefix"
21355  exec_prefix="$acl_final_exec_prefix"
21356
21357    eval additional_includedir=\"$includedir\"
21358    eval additional_libdir=\"$libdir\"
21359
21360  exec_prefix="$acl_save_exec_prefix"
21361  prefix="$acl_save_prefix"
21362
21363
21364# Check whether --with-libiconv-prefix was given.
21365if test "${with_libiconv_prefix+set}" = set; then
21366  withval=$with_libiconv_prefix;
21367    if test "X$withval" = "Xno"; then
21368      use_additional=no
21369    else
21370      if test "X$withval" = "X"; then
21371
21372  acl_save_prefix="$prefix"
21373  prefix="$acl_final_prefix"
21374  acl_save_exec_prefix="$exec_prefix"
21375  exec_prefix="$acl_final_exec_prefix"
21376
21377          eval additional_includedir=\"$includedir\"
21378          eval additional_libdir=\"$libdir\"
21379
21380  exec_prefix="$acl_save_exec_prefix"
21381  prefix="$acl_save_prefix"
21382
21383      else
21384        additional_includedir="$withval/include"
21385        additional_libdir="$withval/$acl_libdirstem"
21386      fi
21387    fi
21388
21389fi
21390
21391      LIBICONV=
21392  LTLIBICONV=
21393  INCICONV=
21394  rpathdirs=
21395  ltrpathdirs=
21396  names_already_handled=
21397  names_next_round='iconv '
21398  while test -n "$names_next_round"; do
21399    names_this_round="$names_next_round"
21400    names_next_round=
21401    for name in $names_this_round; do
21402      already_handled=
21403      for n in $names_already_handled; do
21404        if test "$n" = "$name"; then
21405          already_handled=yes
21406          break
21407        fi
21408      done
21409      if test -z "$already_handled"; then
21410        names_already_handled="$names_already_handled $name"
21411                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21412        eval value=\"\$HAVE_LIB$uppername\"
21413        if test -n "$value"; then
21414          if test "$value" = yes; then
21415            eval value=\"\$LIB$uppername\"
21416            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21417            eval value=\"\$LTLIB$uppername\"
21418            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21419          else
21420                                    :
21421          fi
21422        else
21423                              found_dir=
21424          found_la=
21425          found_so=
21426          found_a=
21427          if test $use_additional = yes; then
21428            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21429              found_dir="$additional_libdir"
21430              found_so="$additional_libdir/lib$name.$shlibext"
21431              if test -f "$additional_libdir/lib$name.la"; then
21432                found_la="$additional_libdir/lib$name.la"
21433              fi
21434            else
21435              if test -f "$additional_libdir/lib$name.$libext"; then
21436                found_dir="$additional_libdir"
21437                found_a="$additional_libdir/lib$name.$libext"
21438                if test -f "$additional_libdir/lib$name.la"; then
21439                  found_la="$additional_libdir/lib$name.la"
21440                fi
21441              fi
21442            fi
21443          fi
21444          if test "X$found_dir" = "X"; then
21445            for x in $LDFLAGS $LTLIBICONV; do
21446
21447  acl_save_prefix="$prefix"
21448  prefix="$acl_final_prefix"
21449  acl_save_exec_prefix="$exec_prefix"
21450  exec_prefix="$acl_final_exec_prefix"
21451  eval x=\"$x\"
21452  exec_prefix="$acl_save_exec_prefix"
21453  prefix="$acl_save_prefix"
21454
21455              case "$x" in
21456                -L*)
21457                  dir=`echo "X$x" | sed -e 's/^X-L//'`
21458                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21459                    found_dir="$dir"
21460                    found_so="$dir/lib$name.$shlibext"
21461                    if test -f "$dir/lib$name.la"; then
21462                      found_la="$dir/lib$name.la"
21463                    fi
21464                  else
21465                    if test -f "$dir/lib$name.$libext"; then
21466                      found_dir="$dir"
21467                      found_a="$dir/lib$name.$libext"
21468                      if test -f "$dir/lib$name.la"; then
21469                        found_la="$dir/lib$name.la"
21470                      fi
21471                    fi
21472                  fi
21473                  ;;
21474              esac
21475              if test "X$found_dir" != "X"; then
21476                break
21477              fi
21478            done
21479          fi
21480          if test "X$found_dir" != "X"; then
21481                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21482            if test "X$found_so" != "X"; then
21483                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
21484                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21485              else
21486                                                                                haveit=
21487                for x in $ltrpathdirs; do
21488                  if test "X$x" = "X$found_dir"; then
21489                    haveit=yes
21490                    break
21491                  fi
21492                done
21493                if test -z "$haveit"; then
21494                  ltrpathdirs="$ltrpathdirs $found_dir"
21495                fi
21496                                if test "$hardcode_direct" = yes; then
21497                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21498                else
21499                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21500                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21501                                                            haveit=
21502                    for x in $rpathdirs; do
21503                      if test "X$x" = "X$found_dir"; then
21504                        haveit=yes
21505                        break
21506                      fi
21507                    done
21508                    if test -z "$haveit"; then
21509                      rpathdirs="$rpathdirs $found_dir"
21510                    fi
21511                  else
21512                                                                                haveit=
21513                    for x in $LDFLAGS $LIBICONV; do
21514
21515  acl_save_prefix="$prefix"
21516  prefix="$acl_final_prefix"
21517  acl_save_exec_prefix="$exec_prefix"
21518  exec_prefix="$acl_final_exec_prefix"
21519  eval x=\"$x\"
21520  exec_prefix="$acl_save_exec_prefix"
21521  prefix="$acl_save_prefix"
21522
21523                      if test "X$x" = "X-L$found_dir"; then
21524                        haveit=yes
21525                        break
21526                      fi
21527                    done
21528                    if test -z "$haveit"; then
21529                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21530                    fi
21531                    if test "$hardcode_minus_L" != no; then
21532                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21533                    else
21534                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21535                    fi
21536                  fi
21537                fi
21538              fi
21539            else
21540              if test "X$found_a" != "X"; then
21541                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21542              else
21543                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21544              fi
21545            fi
21546                        additional_includedir=
21547            case "$found_dir" in
21548              */$acl_libdirstem | */$acl_libdirstem/)
21549                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21550                additional_includedir="$basedir/include"
21551                ;;
21552            esac
21553            if test "X$additional_includedir" != "X"; then
21554                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
21555                haveit=
21556                if test "X$additional_includedir" = "X/usr/local/include"; then
21557                  if test -n "$GCC"; then
21558                    case $host_os in
21559                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21560                    esac
21561                  fi
21562                fi
21563                if test -z "$haveit"; then
21564                  for x in $CPPFLAGS $INCICONV; do
21565
21566  acl_save_prefix="$prefix"
21567  prefix="$acl_final_prefix"
21568  acl_save_exec_prefix="$exec_prefix"
21569  exec_prefix="$acl_final_exec_prefix"
21570  eval x=\"$x\"
21571  exec_prefix="$acl_save_exec_prefix"
21572  prefix="$acl_save_prefix"
21573
21574                    if test "X$x" = "X-I$additional_includedir"; then
21575                      haveit=yes
21576                      break
21577                    fi
21578                  done
21579                  if test -z "$haveit"; then
21580                    if test -d "$additional_includedir"; then
21581                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21582                    fi
21583                  fi
21584                fi
21585              fi
21586            fi
21587                        if test -n "$found_la"; then
21588                                                        save_libdir="$libdir"
21589              case "$found_la" in
21590                */* | *\\*) . "$found_la" ;;
21591                *) . "./$found_la" ;;
21592              esac
21593              libdir="$save_libdir"
21594                            for dep in $dependency_libs; do
21595                case "$dep" in
21596                  -L*)
21597                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21598                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
21599                      haveit=
21600                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
21601                        if test -n "$GCC"; then
21602                          case $host_os in
21603                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21604                          esac
21605                        fi
21606                      fi
21607                      if test -z "$haveit"; then
21608                        haveit=
21609                        for x in $LDFLAGS $LIBICONV; do
21610
21611  acl_save_prefix="$prefix"
21612  prefix="$acl_final_prefix"
21613  acl_save_exec_prefix="$exec_prefix"
21614  exec_prefix="$acl_final_exec_prefix"
21615  eval x=\"$x\"
21616  exec_prefix="$acl_save_exec_prefix"
21617  prefix="$acl_save_prefix"
21618
21619                          if test "X$x" = "X-L$additional_libdir"; then
21620                            haveit=yes
21621                            break
21622                          fi
21623                        done
21624                        if test -z "$haveit"; then
21625                          if test -d "$additional_libdir"; then
21626                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21627                          fi
21628                        fi
21629                        haveit=
21630                        for x in $LDFLAGS $LTLIBICONV; do
21631
21632  acl_save_prefix="$prefix"
21633  prefix="$acl_final_prefix"
21634  acl_save_exec_prefix="$exec_prefix"
21635  exec_prefix="$acl_final_exec_prefix"
21636  eval x=\"$x\"
21637  exec_prefix="$acl_save_exec_prefix"
21638  prefix="$acl_save_prefix"
21639
21640                          if test "X$x" = "X-L$additional_libdir"; then
21641                            haveit=yes
21642                            break
21643                          fi
21644                        done
21645                        if test -z "$haveit"; then
21646                          if test -d "$additional_libdir"; then
21647                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21648                          fi
21649                        fi
21650                      fi
21651                    fi
21652                    ;;
21653                  -R*)
21654                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
21655                    if test "$enable_rpath" != no; then
21656                                                                  haveit=
21657                      for x in $rpathdirs; do
21658                        if test "X$x" = "X$dir"; then
21659                          haveit=yes
21660                          break
21661                        fi
21662                      done
21663                      if test -z "$haveit"; then
21664                        rpathdirs="$rpathdirs $dir"
21665                      fi
21666                                                                  haveit=
21667                      for x in $ltrpathdirs; do
21668                        if test "X$x" = "X$dir"; then
21669                          haveit=yes
21670                          break
21671                        fi
21672                      done
21673                      if test -z "$haveit"; then
21674                        ltrpathdirs="$ltrpathdirs $dir"
21675                      fi
21676                    fi
21677                    ;;
21678                  -l*)
21679                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21680                    ;;
21681                  *.la)
21682                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21683                    ;;
21684                  *)
21685                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21686                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21687                    ;;
21688                esac
21689              done
21690            fi
21691          else
21692                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21693            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21694          fi
21695        fi
21696      fi
21697    done
21698  done
21699  if test "X$rpathdirs" != "X"; then
21700    if test -n "$hardcode_libdir_separator"; then
21701                        alldirs=
21702      for found_dir in $rpathdirs; do
21703        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21704      done
21705            acl_save_libdir="$libdir"
21706      libdir="$alldirs"
21707      eval flag=\"$hardcode_libdir_flag_spec\"
21708      libdir="$acl_save_libdir"
21709      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21710    else
21711            for found_dir in $rpathdirs; do
21712        acl_save_libdir="$libdir"
21713        libdir="$found_dir"
21714        eval flag=\"$hardcode_libdir_flag_spec\"
21715        libdir="$acl_save_libdir"
21716        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21717      done
21718    fi
21719  fi
21720  if test "X$ltrpathdirs" != "X"; then
21721            for found_dir in $ltrpathdirs; do
21722      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21723    done
21724  fi
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
21744echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
21745if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
21746  echo $ECHO_N "(cached) $ECHO_C" >&6
21747else
21748  gt_save_LIBS="$LIBS"
21749     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
21750     cat >conftest.$ac_ext <<_ACEOF
21751/* confdefs.h.  */
21752_ACEOF
21753cat confdefs.h >>conftest.$ac_ext
21754cat >>conftest.$ac_ext <<_ACEOF
21755/* end confdefs.h.  */
21756#include <CoreFoundation/CFPreferences.h>
21757int
21758main ()
21759{
21760CFPreferencesCopyAppValue(NULL, NULL)
21761  ;
21762  return 0;
21763}
21764_ACEOF
21765rm -f conftest.$ac_objext conftest$ac_exeext
21766if { (ac_try="$ac_link"
21767case "(($ac_try" in
21768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21769  *) ac_try_echo=$ac_try;;
21770esac
21771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21772  (eval "$ac_link") 2>conftest.er1
21773  ac_status=$?
21774  grep -v '^ *+' conftest.er1 >conftest.err
21775  rm -f conftest.er1
21776  cat conftest.err >&5
21777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778  (exit $ac_status); } && {
21779	 test -z "$ac_c_werror_flag" ||
21780	 test ! -s conftest.err
21781       } && test -s conftest$ac_exeext &&
21782       $as_test_x conftest$ac_exeext; then
21783  gt_cv_func_CFPreferencesCopyAppValue=yes
21784else
21785  echo "$as_me: failed program was:" >&5
21786sed 's/^/| /' conftest.$ac_ext >&5
21787
21788	gt_cv_func_CFPreferencesCopyAppValue=no
21789fi
21790
21791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21792      conftest$ac_exeext conftest.$ac_ext
21793     LIBS="$gt_save_LIBS"
21794fi
21795{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21796echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21797  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21798
21799cat >>confdefs.h <<\_ACEOF
21800#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
21801_ACEOF
21802
21803  fi
21804    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
21805echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
21806if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
21807  echo $ECHO_N "(cached) $ECHO_C" >&6
21808else
21809  gt_save_LIBS="$LIBS"
21810     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
21811     cat >conftest.$ac_ext <<_ACEOF
21812/* confdefs.h.  */
21813_ACEOF
21814cat confdefs.h >>conftest.$ac_ext
21815cat >>conftest.$ac_ext <<_ACEOF
21816/* end confdefs.h.  */
21817#include <CoreFoundation/CFLocale.h>
21818int
21819main ()
21820{
21821CFLocaleCopyCurrent();
21822  ;
21823  return 0;
21824}
21825_ACEOF
21826rm -f conftest.$ac_objext conftest$ac_exeext
21827if { (ac_try="$ac_link"
21828case "(($ac_try" in
21829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21830  *) ac_try_echo=$ac_try;;
21831esac
21832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21833  (eval "$ac_link") 2>conftest.er1
21834  ac_status=$?
21835  grep -v '^ *+' conftest.er1 >conftest.err
21836  rm -f conftest.er1
21837  cat conftest.err >&5
21838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839  (exit $ac_status); } && {
21840	 test -z "$ac_c_werror_flag" ||
21841	 test ! -s conftest.err
21842       } && test -s conftest$ac_exeext &&
21843       $as_test_x conftest$ac_exeext; then
21844  gt_cv_func_CFLocaleCopyCurrent=yes
21845else
21846  echo "$as_me: failed program was:" >&5
21847sed 's/^/| /' conftest.$ac_ext >&5
21848
21849	gt_cv_func_CFLocaleCopyCurrent=no
21850fi
21851
21852rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21853      conftest$ac_exeext conftest.$ac_ext
21854     LIBS="$gt_save_LIBS"
21855fi
21856{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21857echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21858  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21859
21860cat >>confdefs.h <<\_ACEOF
21861#define HAVE_CFLOCALECOPYCURRENT 1
21862_ACEOF
21863
21864  fi
21865  INTL_MACOSX_LIBS=
21866  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21867    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21868  fi
21869
21870
21871
21872
21873
21874
21875  LIBINTL=
21876  LTLIBINTL=
21877  POSUB=
21878
21879    if test "$USE_NLS" = "yes"; then
21880    gt_use_preinstalled_gnugettext=no
21881
21882
21883
21884
21885
21886
21887        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
21888echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
21889if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
21890  echo $ECHO_N "(cached) $ECHO_C" >&6
21891else
21892  cat >conftest.$ac_ext <<_ACEOF
21893/* confdefs.h.  */
21894_ACEOF
21895cat confdefs.h >>conftest.$ac_ext
21896cat >>conftest.$ac_ext <<_ACEOF
21897/* end confdefs.h.  */
21898#include <libintl.h>
21899extern int _nl_msg_cat_cntr;
21900extern int *_nl_domain_bindings;
21901int
21902main ()
21903{
21904bindtextdomain ("", "");
21905return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21906  ;
21907  return 0;
21908}
21909_ACEOF
21910rm -f conftest.$ac_objext conftest$ac_exeext
21911if { (ac_try="$ac_link"
21912case "(($ac_try" in
21913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21914  *) ac_try_echo=$ac_try;;
21915esac
21916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21917  (eval "$ac_link") 2>conftest.er1
21918  ac_status=$?
21919  grep -v '^ *+' conftest.er1 >conftest.err
21920  rm -f conftest.er1
21921  cat conftest.err >&5
21922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923  (exit $ac_status); } && {
21924	 test -z "$ac_c_werror_flag" ||
21925	 test ! -s conftest.err
21926       } && test -s conftest$ac_exeext &&
21927       $as_test_x conftest$ac_exeext; then
21928  gt_cv_func_gnugettext1_libc=yes
21929else
21930  echo "$as_me: failed program was:" >&5
21931sed 's/^/| /' conftest.$ac_ext >&5
21932
21933	gt_cv_func_gnugettext1_libc=no
21934fi
21935
21936rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21937      conftest$ac_exeext conftest.$ac_ext
21938fi
21939{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
21940echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
21941
21942        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21943
21944
21945
21946
21947
21948          am_save_CPPFLAGS="$CPPFLAGS"
21949
21950  for element in $INCICONV; do
21951    haveit=
21952    for x in $CPPFLAGS; do
21953
21954  acl_save_prefix="$prefix"
21955  prefix="$acl_final_prefix"
21956  acl_save_exec_prefix="$exec_prefix"
21957  exec_prefix="$acl_final_exec_prefix"
21958  eval x=\"$x\"
21959  exec_prefix="$acl_save_exec_prefix"
21960  prefix="$acl_save_prefix"
21961
21962      if test "X$x" = "X$element"; then
21963        haveit=yes
21964        break
21965      fi
21966    done
21967    if test -z "$haveit"; then
21968      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21969    fi
21970  done
21971
21972
21973  { echo "$as_me:$LINENO: checking for iconv" >&5
21974echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
21975if test "${am_cv_func_iconv+set}" = set; then
21976  echo $ECHO_N "(cached) $ECHO_C" >&6
21977else
21978
21979    am_cv_func_iconv="no, consider installing GNU libiconv"
21980    am_cv_lib_iconv=no
21981    cat >conftest.$ac_ext <<_ACEOF
21982/* confdefs.h.  */
21983_ACEOF
21984cat confdefs.h >>conftest.$ac_ext
21985cat >>conftest.$ac_ext <<_ACEOF
21986/* end confdefs.h.  */
21987#include <stdlib.h>
21988#include <iconv.h>
21989int
21990main ()
21991{
21992iconv_t cd = iconv_open("","");
21993       iconv(cd,NULL,NULL,NULL,NULL);
21994       iconv_close(cd);
21995  ;
21996  return 0;
21997}
21998_ACEOF
21999rm -f conftest.$ac_objext conftest$ac_exeext
22000if { (ac_try="$ac_link"
22001case "(($ac_try" in
22002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003  *) ac_try_echo=$ac_try;;
22004esac
22005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006  (eval "$ac_link") 2>conftest.er1
22007  ac_status=$?
22008  grep -v '^ *+' conftest.er1 >conftest.err
22009  rm -f conftest.er1
22010  cat conftest.err >&5
22011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012  (exit $ac_status); } && {
22013	 test -z "$ac_c_werror_flag" ||
22014	 test ! -s conftest.err
22015       } && test -s conftest$ac_exeext &&
22016       $as_test_x conftest$ac_exeext; then
22017  am_cv_func_iconv=yes
22018else
22019  echo "$as_me: failed program was:" >&5
22020sed 's/^/| /' conftest.$ac_ext >&5
22021
22022
22023fi
22024
22025rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22026      conftest$ac_exeext conftest.$ac_ext
22027    if test "$am_cv_func_iconv" != yes; then
22028      am_save_LIBS="$LIBS"
22029      LIBS="$LIBS $LIBICONV"
22030      cat >conftest.$ac_ext <<_ACEOF
22031/* confdefs.h.  */
22032_ACEOF
22033cat confdefs.h >>conftest.$ac_ext
22034cat >>conftest.$ac_ext <<_ACEOF
22035/* end confdefs.h.  */
22036#include <stdlib.h>
22037#include <iconv.h>
22038int
22039main ()
22040{
22041iconv_t cd = iconv_open("","");
22042         iconv(cd,NULL,NULL,NULL,NULL);
22043         iconv_close(cd);
22044  ;
22045  return 0;
22046}
22047_ACEOF
22048rm -f conftest.$ac_objext conftest$ac_exeext
22049if { (ac_try="$ac_link"
22050case "(($ac_try" in
22051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052  *) ac_try_echo=$ac_try;;
22053esac
22054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055  (eval "$ac_link") 2>conftest.er1
22056  ac_status=$?
22057  grep -v '^ *+' conftest.er1 >conftest.err
22058  rm -f conftest.er1
22059  cat conftest.err >&5
22060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061  (exit $ac_status); } && {
22062	 test -z "$ac_c_werror_flag" ||
22063	 test ! -s conftest.err
22064       } && test -s conftest$ac_exeext &&
22065       $as_test_x conftest$ac_exeext; then
22066  am_cv_lib_iconv=yes
22067        am_cv_func_iconv=yes
22068else
22069  echo "$as_me: failed program was:" >&5
22070sed 's/^/| /' conftest.$ac_ext >&5
22071
22072
22073fi
22074
22075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22076      conftest$ac_exeext conftest.$ac_ext
22077      LIBS="$am_save_LIBS"
22078    fi
22079
22080fi
22081{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22082echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22083  if test "$am_cv_func_iconv" = yes; then
22084
22085cat >>confdefs.h <<\_ACEOF
22086#define HAVE_ICONV 1
22087_ACEOF
22088
22089  fi
22090  if test "$am_cv_lib_iconv" = yes; then
22091    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22092echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22093    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22094echo "${ECHO_T}$LIBICONV" >&6; }
22095  else
22096            CPPFLAGS="$am_save_CPPFLAGS"
22097    LIBICONV=
22098    LTLIBICONV=
22099  fi
22100
22101
22102
22103
22104
22105
22106
22107    use_additional=yes
22108
22109  acl_save_prefix="$prefix"
22110  prefix="$acl_final_prefix"
22111  acl_save_exec_prefix="$exec_prefix"
22112  exec_prefix="$acl_final_exec_prefix"
22113
22114    eval additional_includedir=\"$includedir\"
22115    eval additional_libdir=\"$libdir\"
22116
22117  exec_prefix="$acl_save_exec_prefix"
22118  prefix="$acl_save_prefix"
22119
22120
22121# Check whether --with-libintl-prefix was given.
22122if test "${with_libintl_prefix+set}" = set; then
22123  withval=$with_libintl_prefix;
22124    if test "X$withval" = "Xno"; then
22125      use_additional=no
22126    else
22127      if test "X$withval" = "X"; then
22128
22129  acl_save_prefix="$prefix"
22130  prefix="$acl_final_prefix"
22131  acl_save_exec_prefix="$exec_prefix"
22132  exec_prefix="$acl_final_exec_prefix"
22133
22134          eval additional_includedir=\"$includedir\"
22135          eval additional_libdir=\"$libdir\"
22136
22137  exec_prefix="$acl_save_exec_prefix"
22138  prefix="$acl_save_prefix"
22139
22140      else
22141        additional_includedir="$withval/include"
22142        additional_libdir="$withval/$acl_libdirstem"
22143      fi
22144    fi
22145
22146fi
22147
22148      LIBINTL=
22149  LTLIBINTL=
22150  INCINTL=
22151  rpathdirs=
22152  ltrpathdirs=
22153  names_already_handled=
22154  names_next_round='intl '
22155  while test -n "$names_next_round"; do
22156    names_this_round="$names_next_round"
22157    names_next_round=
22158    for name in $names_this_round; do
22159      already_handled=
22160      for n in $names_already_handled; do
22161        if test "$n" = "$name"; then
22162          already_handled=yes
22163          break
22164        fi
22165      done
22166      if test -z "$already_handled"; then
22167        names_already_handled="$names_already_handled $name"
22168                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
22169        eval value=\"\$HAVE_LIB$uppername\"
22170        if test -n "$value"; then
22171          if test "$value" = yes; then
22172            eval value=\"\$LIB$uppername\"
22173            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
22174            eval value=\"\$LTLIB$uppername\"
22175            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
22176          else
22177                                    :
22178          fi
22179        else
22180                              found_dir=
22181          found_la=
22182          found_so=
22183          found_a=
22184          if test $use_additional = yes; then
22185            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
22186              found_dir="$additional_libdir"
22187              found_so="$additional_libdir/lib$name.$shlibext"
22188              if test -f "$additional_libdir/lib$name.la"; then
22189                found_la="$additional_libdir/lib$name.la"
22190              fi
22191            else
22192              if test -f "$additional_libdir/lib$name.$libext"; then
22193                found_dir="$additional_libdir"
22194                found_a="$additional_libdir/lib$name.$libext"
22195                if test -f "$additional_libdir/lib$name.la"; then
22196                  found_la="$additional_libdir/lib$name.la"
22197                fi
22198              fi
22199            fi
22200          fi
22201          if test "X$found_dir" = "X"; then
22202            for x in $LDFLAGS $LTLIBINTL; do
22203
22204  acl_save_prefix="$prefix"
22205  prefix="$acl_final_prefix"
22206  acl_save_exec_prefix="$exec_prefix"
22207  exec_prefix="$acl_final_exec_prefix"
22208  eval x=\"$x\"
22209  exec_prefix="$acl_save_exec_prefix"
22210  prefix="$acl_save_prefix"
22211
22212              case "$x" in
22213                -L*)
22214                  dir=`echo "X$x" | sed -e 's/^X-L//'`
22215                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
22216                    found_dir="$dir"
22217                    found_so="$dir/lib$name.$shlibext"
22218                    if test -f "$dir/lib$name.la"; then
22219                      found_la="$dir/lib$name.la"
22220                    fi
22221                  else
22222                    if test -f "$dir/lib$name.$libext"; then
22223                      found_dir="$dir"
22224                      found_a="$dir/lib$name.$libext"
22225                      if test -f "$dir/lib$name.la"; then
22226                        found_la="$dir/lib$name.la"
22227                      fi
22228                    fi
22229                  fi
22230                  ;;
22231              esac
22232              if test "X$found_dir" != "X"; then
22233                break
22234              fi
22235            done
22236          fi
22237          if test "X$found_dir" != "X"; then
22238                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
22239            if test "X$found_so" != "X"; then
22240                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
22241                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22242              else
22243                                                                                haveit=
22244                for x in $ltrpathdirs; do
22245                  if test "X$x" = "X$found_dir"; then
22246                    haveit=yes
22247                    break
22248                  fi
22249                done
22250                if test -z "$haveit"; then
22251                  ltrpathdirs="$ltrpathdirs $found_dir"
22252                fi
22253                                if test "$hardcode_direct" = yes; then
22254                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22255                else
22256                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
22257                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22258                                                            haveit=
22259                    for x in $rpathdirs; do
22260                      if test "X$x" = "X$found_dir"; then
22261                        haveit=yes
22262                        break
22263                      fi
22264                    done
22265                    if test -z "$haveit"; then
22266                      rpathdirs="$rpathdirs $found_dir"
22267                    fi
22268                  else
22269                                                                                haveit=
22270                    for x in $LDFLAGS $LIBINTL; do
22271
22272  acl_save_prefix="$prefix"
22273  prefix="$acl_final_prefix"
22274  acl_save_exec_prefix="$exec_prefix"
22275  exec_prefix="$acl_final_exec_prefix"
22276  eval x=\"$x\"
22277  exec_prefix="$acl_save_exec_prefix"
22278  prefix="$acl_save_prefix"
22279
22280                      if test "X$x" = "X-L$found_dir"; then
22281                        haveit=yes
22282                        break
22283                      fi
22284                    done
22285                    if test -z "$haveit"; then
22286                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
22287                    fi
22288                    if test "$hardcode_minus_L" != no; then
22289                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22290                    else
22291                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
22292                    fi
22293                  fi
22294                fi
22295              fi
22296            else
22297              if test "X$found_a" != "X"; then
22298                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
22299              else
22300                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
22301              fi
22302            fi
22303                        additional_includedir=
22304            case "$found_dir" in
22305              */$acl_libdirstem | */$acl_libdirstem/)
22306                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
22307                additional_includedir="$basedir/include"
22308                ;;
22309            esac
22310            if test "X$additional_includedir" != "X"; then
22311                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
22312                haveit=
22313                if test "X$additional_includedir" = "X/usr/local/include"; then
22314                  if test -n "$GCC"; then
22315                    case $host_os in
22316                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22317                    esac
22318                  fi
22319                fi
22320                if test -z "$haveit"; then
22321                  for x in $CPPFLAGS $INCINTL; do
22322
22323  acl_save_prefix="$prefix"
22324  prefix="$acl_final_prefix"
22325  acl_save_exec_prefix="$exec_prefix"
22326  exec_prefix="$acl_final_exec_prefix"
22327  eval x=\"$x\"
22328  exec_prefix="$acl_save_exec_prefix"
22329  prefix="$acl_save_prefix"
22330
22331                    if test "X$x" = "X-I$additional_includedir"; then
22332                      haveit=yes
22333                      break
22334                    fi
22335                  done
22336                  if test -z "$haveit"; then
22337                    if test -d "$additional_includedir"; then
22338                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
22339                    fi
22340                  fi
22341                fi
22342              fi
22343            fi
22344                        if test -n "$found_la"; then
22345                                                        save_libdir="$libdir"
22346              case "$found_la" in
22347                */* | *\\*) . "$found_la" ;;
22348                *) . "./$found_la" ;;
22349              esac
22350              libdir="$save_libdir"
22351                            for dep in $dependency_libs; do
22352                case "$dep" in
22353                  -L*)
22354                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22355                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
22356                      haveit=
22357                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
22358                        if test -n "$GCC"; then
22359                          case $host_os in
22360                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22361                          esac
22362                        fi
22363                      fi
22364                      if test -z "$haveit"; then
22365                        haveit=
22366                        for x in $LDFLAGS $LIBINTL; do
22367
22368  acl_save_prefix="$prefix"
22369  prefix="$acl_final_prefix"
22370  acl_save_exec_prefix="$exec_prefix"
22371  exec_prefix="$acl_final_exec_prefix"
22372  eval x=\"$x\"
22373  exec_prefix="$acl_save_exec_prefix"
22374  prefix="$acl_save_prefix"
22375
22376                          if test "X$x" = "X-L$additional_libdir"; then
22377                            haveit=yes
22378                            break
22379                          fi
22380                        done
22381                        if test -z "$haveit"; then
22382                          if test -d "$additional_libdir"; then
22383                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
22384                          fi
22385                        fi
22386                        haveit=
22387                        for x in $LDFLAGS $LTLIBINTL; do
22388
22389  acl_save_prefix="$prefix"
22390  prefix="$acl_final_prefix"
22391  acl_save_exec_prefix="$exec_prefix"
22392  exec_prefix="$acl_final_exec_prefix"
22393  eval x=\"$x\"
22394  exec_prefix="$acl_save_exec_prefix"
22395  prefix="$acl_save_prefix"
22396
22397                          if test "X$x" = "X-L$additional_libdir"; then
22398                            haveit=yes
22399                            break
22400                          fi
22401                        done
22402                        if test -z "$haveit"; then
22403                          if test -d "$additional_libdir"; then
22404                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
22405                          fi
22406                        fi
22407                      fi
22408                    fi
22409                    ;;
22410                  -R*)
22411                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
22412                    if test "$enable_rpath" != no; then
22413                                                                  haveit=
22414                      for x in $rpathdirs; do
22415                        if test "X$x" = "X$dir"; then
22416                          haveit=yes
22417                          break
22418                        fi
22419                      done
22420                      if test -z "$haveit"; then
22421                        rpathdirs="$rpathdirs $dir"
22422                      fi
22423                                                                  haveit=
22424                      for x in $ltrpathdirs; do
22425                        if test "X$x" = "X$dir"; then
22426                          haveit=yes
22427                          break
22428                        fi
22429                      done
22430                      if test -z "$haveit"; then
22431                        ltrpathdirs="$ltrpathdirs $dir"
22432                      fi
22433                    fi
22434                    ;;
22435                  -l*)
22436                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22437                    ;;
22438                  *.la)
22439                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22440                    ;;
22441                  *)
22442                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
22443                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
22444                    ;;
22445                esac
22446              done
22447            fi
22448          else
22449                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
22450            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
22451          fi
22452        fi
22453      fi
22454    done
22455  done
22456  if test "X$rpathdirs" != "X"; then
22457    if test -n "$hardcode_libdir_separator"; then
22458                        alldirs=
22459      for found_dir in $rpathdirs; do
22460        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22461      done
22462            acl_save_libdir="$libdir"
22463      libdir="$alldirs"
22464      eval flag=\"$hardcode_libdir_flag_spec\"
22465      libdir="$acl_save_libdir"
22466      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22467    else
22468            for found_dir in $rpathdirs; do
22469        acl_save_libdir="$libdir"
22470        libdir="$found_dir"
22471        eval flag=\"$hardcode_libdir_flag_spec\"
22472        libdir="$acl_save_libdir"
22473        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22474      done
22475    fi
22476  fi
22477  if test "X$ltrpathdirs" != "X"; then
22478            for found_dir in $ltrpathdirs; do
22479      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
22480    done
22481  fi
22482
22483          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
22484echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
22485if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
22486  echo $ECHO_N "(cached) $ECHO_C" >&6
22487else
22488  gt_save_CPPFLAGS="$CPPFLAGS"
22489            CPPFLAGS="$CPPFLAGS $INCINTL"
22490            gt_save_LIBS="$LIBS"
22491            LIBS="$LIBS $LIBINTL"
22492                        cat >conftest.$ac_ext <<_ACEOF
22493/* confdefs.h.  */
22494_ACEOF
22495cat confdefs.h >>conftest.$ac_ext
22496cat >>conftest.$ac_ext <<_ACEOF
22497/* end confdefs.h.  */
22498#include <libintl.h>
22499extern int _nl_msg_cat_cntr;
22500extern
22501#ifdef __cplusplus
22502"C"
22503#endif
22504const char *_nl_expand_alias (const char *);
22505int
22506main ()
22507{
22508bindtextdomain ("", "");
22509return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
22510  ;
22511  return 0;
22512}
22513_ACEOF
22514rm -f conftest.$ac_objext conftest$ac_exeext
22515if { (ac_try="$ac_link"
22516case "(($ac_try" in
22517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22518  *) ac_try_echo=$ac_try;;
22519esac
22520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22521  (eval "$ac_link") 2>conftest.er1
22522  ac_status=$?
22523  grep -v '^ *+' conftest.er1 >conftest.err
22524  rm -f conftest.er1
22525  cat conftest.err >&5
22526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527  (exit $ac_status); } && {
22528	 test -z "$ac_c_werror_flag" ||
22529	 test ! -s conftest.err
22530       } && test -s conftest$ac_exeext &&
22531       $as_test_x conftest$ac_exeext; then
22532  gt_cv_func_gnugettext1_libintl=yes
22533else
22534  echo "$as_me: failed program was:" >&5
22535sed 's/^/| /' conftest.$ac_ext >&5
22536
22537	gt_cv_func_gnugettext1_libintl=no
22538fi
22539
22540rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22541      conftest$ac_exeext conftest.$ac_ext
22542                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
22543              LIBS="$LIBS $LIBICONV"
22544              cat >conftest.$ac_ext <<_ACEOF
22545/* confdefs.h.  */
22546_ACEOF
22547cat confdefs.h >>conftest.$ac_ext
22548cat >>conftest.$ac_ext <<_ACEOF
22549/* end confdefs.h.  */
22550#include <libintl.h>
22551extern int _nl_msg_cat_cntr;
22552extern
22553#ifdef __cplusplus
22554"C"
22555#endif
22556const char *_nl_expand_alias (const char *);
22557int
22558main ()
22559{
22560bindtextdomain ("", "");
22561return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
22562  ;
22563  return 0;
22564}
22565_ACEOF
22566rm -f conftest.$ac_objext conftest$ac_exeext
22567if { (ac_try="$ac_link"
22568case "(($ac_try" in
22569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570  *) ac_try_echo=$ac_try;;
22571esac
22572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22573  (eval "$ac_link") 2>conftest.er1
22574  ac_status=$?
22575  grep -v '^ *+' conftest.er1 >conftest.err
22576  rm -f conftest.er1
22577  cat conftest.err >&5
22578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579  (exit $ac_status); } && {
22580	 test -z "$ac_c_werror_flag" ||
22581	 test ! -s conftest.err
22582       } && test -s conftest$ac_exeext &&
22583       $as_test_x conftest$ac_exeext; then
22584  LIBINTL="$LIBINTL $LIBICONV"
22585                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
22586                gt_cv_func_gnugettext1_libintl=yes
22587
22588else
22589  echo "$as_me: failed program was:" >&5
22590sed 's/^/| /' conftest.$ac_ext >&5
22591
22592
22593fi
22594
22595rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22596      conftest$ac_exeext conftest.$ac_ext
22597            fi
22598            CPPFLAGS="$gt_save_CPPFLAGS"
22599            LIBS="$gt_save_LIBS"
22600fi
22601{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
22602echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
22603        fi
22604
22605                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
22606           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
22607                && test "$PACKAGE" != gettext-runtime \
22608                && test "$PACKAGE" != gettext-tools; }; then
22609          gt_use_preinstalled_gnugettext=yes
22610        else
22611                    LIBINTL=
22612          LTLIBINTL=
22613          INCINTL=
22614        fi
22615
22616
22617
22618    if test -n "$INTL_MACOSX_LIBS"; then
22619      if test "$gt_use_preinstalled_gnugettext" = "yes" \
22620         || test "$nls_cv_use_gnu_gettext" = "yes"; then
22621                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
22622        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
22623      fi
22624    fi
22625
22626    if test "$gt_use_preinstalled_gnugettext" = "yes" \
22627       || test "$nls_cv_use_gnu_gettext" = "yes"; then
22628
22629cat >>confdefs.h <<\_ACEOF
22630#define ENABLE_NLS 1
22631_ACEOF
22632
22633    else
22634      USE_NLS=no
22635    fi
22636  fi
22637
22638  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
22639echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
22640  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
22641echo "${ECHO_T}$USE_NLS" >&6; }
22642  if test "$USE_NLS" = "yes"; then
22643    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
22644echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
22645    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22646      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
22647        gt_source="external libintl"
22648      else
22649        gt_source="libc"
22650      fi
22651    else
22652      gt_source="included intl directory"
22653    fi
22654    { echo "$as_me:$LINENO: result: $gt_source" >&5
22655echo "${ECHO_T}$gt_source" >&6; }
22656  fi
22657
22658  if test "$USE_NLS" = "yes"; then
22659
22660    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22661      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
22662        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
22663echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
22664        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
22665echo "${ECHO_T}$LIBINTL" >&6; }
22666
22667  for element in $INCINTL; do
22668    haveit=
22669    for x in $CPPFLAGS; do
22670
22671  acl_save_prefix="$prefix"
22672  prefix="$acl_final_prefix"
22673  acl_save_exec_prefix="$exec_prefix"
22674  exec_prefix="$acl_final_exec_prefix"
22675  eval x=\"$x\"
22676  exec_prefix="$acl_save_exec_prefix"
22677  prefix="$acl_save_prefix"
22678
22679      if test "X$x" = "X$element"; then
22680        haveit=yes
22681        break
22682      fi
22683    done
22684    if test -z "$haveit"; then
22685      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22686    fi
22687  done
22688
22689      fi
22690
22691
22692cat >>confdefs.h <<\_ACEOF
22693#define HAVE_GETTEXT 1
22694_ACEOF
22695
22696
22697cat >>confdefs.h <<\_ACEOF
22698#define HAVE_DCGETTEXT 1
22699_ACEOF
22700
22701    fi
22702
22703        POSUB=po
22704  fi
22705
22706
22707
22708    INTLLIBS="$LIBINTL"
22709
22710
22711
22712
22713
22714
22715
22716
22717for ac_header in stdlib.h
22718do
22719as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22720if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22721  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22723if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22724  echo $ECHO_N "(cached) $ECHO_C" >&6
22725fi
22726ac_res=`eval echo '${'$as_ac_Header'}'`
22727	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22728echo "${ECHO_T}$ac_res" >&6; }
22729else
22730  # Is the header compilable?
22731{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22732echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22733cat >conftest.$ac_ext <<_ACEOF
22734/* confdefs.h.  */
22735_ACEOF
22736cat confdefs.h >>conftest.$ac_ext
22737cat >>conftest.$ac_ext <<_ACEOF
22738/* end confdefs.h.  */
22739$ac_includes_default
22740#include <$ac_header>
22741_ACEOF
22742rm -f conftest.$ac_objext
22743if { (ac_try="$ac_compile"
22744case "(($ac_try" in
22745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22746  *) ac_try_echo=$ac_try;;
22747esac
22748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22749  (eval "$ac_compile") 2>conftest.er1
22750  ac_status=$?
22751  grep -v '^ *+' conftest.er1 >conftest.err
22752  rm -f conftest.er1
22753  cat conftest.err >&5
22754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755  (exit $ac_status); } && {
22756	 test -z "$ac_c_werror_flag" ||
22757	 test ! -s conftest.err
22758       } && test -s conftest.$ac_objext; then
22759  ac_header_compiler=yes
22760else
22761  echo "$as_me: failed program was:" >&5
22762sed 's/^/| /' conftest.$ac_ext >&5
22763
22764	ac_header_compiler=no
22765fi
22766
22767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22768{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22769echo "${ECHO_T}$ac_header_compiler" >&6; }
22770
22771# Is the header present?
22772{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22773echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22774cat >conftest.$ac_ext <<_ACEOF
22775/* confdefs.h.  */
22776_ACEOF
22777cat confdefs.h >>conftest.$ac_ext
22778cat >>conftest.$ac_ext <<_ACEOF
22779/* end confdefs.h.  */
22780#include <$ac_header>
22781_ACEOF
22782if { (ac_try="$ac_cpp conftest.$ac_ext"
22783case "(($ac_try" in
22784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785  *) ac_try_echo=$ac_try;;
22786esac
22787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22789  ac_status=$?
22790  grep -v '^ *+' conftest.er1 >conftest.err
22791  rm -f conftest.er1
22792  cat conftest.err >&5
22793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794  (exit $ac_status); } >/dev/null && {
22795	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22796	 test ! -s conftest.err
22797       }; then
22798  ac_header_preproc=yes
22799else
22800  echo "$as_me: failed program was:" >&5
22801sed 's/^/| /' conftest.$ac_ext >&5
22802
22803  ac_header_preproc=no
22804fi
22805
22806rm -f conftest.err conftest.$ac_ext
22807{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22808echo "${ECHO_T}$ac_header_preproc" >&6; }
22809
22810# So?  What about this header?
22811case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22812  yes:no: )
22813    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22814echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22815    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22816echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22817    ac_header_preproc=yes
22818    ;;
22819  no:yes:* )
22820    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22821echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22822    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22823echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22824    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22825echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22826    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22827echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22828    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22829echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22830    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22831echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22832    ( cat <<\_ASBOX
22833## ------------------------------ ##
22834## Report this to asturio@gmx.net ##
22835## ------------------------------ ##
22836_ASBOX
22837     ) | sed "s/^/$as_me: WARNING:     /" >&2
22838    ;;
22839esac
22840{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22842if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22843  echo $ECHO_N "(cached) $ECHO_C" >&6
22844else
22845  eval "$as_ac_Header=\$ac_header_preproc"
22846fi
22847ac_res=`eval echo '${'$as_ac_Header'}'`
22848	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22849echo "${ECHO_T}$ac_res" >&6; }
22850
22851fi
22852if test `eval echo '${'$as_ac_Header'}'` = yes; then
22853  cat >>confdefs.h <<_ACEOF
22854#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22855_ACEOF
22856
22857fi
22858
22859done
22860
22861{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22862echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
22863if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22864  echo $ECHO_N "(cached) $ECHO_C" >&6
22865else
22866  if test "$cross_compiling" = yes; then
22867  ac_cv_func_malloc_0_nonnull=no
22868else
22869  cat >conftest.$ac_ext <<_ACEOF
22870/* confdefs.h.  */
22871_ACEOF
22872cat confdefs.h >>conftest.$ac_ext
22873cat >>conftest.$ac_ext <<_ACEOF
22874/* end confdefs.h.  */
22875#if defined STDC_HEADERS || defined HAVE_STDLIB_H
22876# include <stdlib.h>
22877#else
22878char *malloc ();
22879#endif
22880
22881int
22882main ()
22883{
22884return ! malloc (0);
22885  ;
22886  return 0;
22887}
22888_ACEOF
22889rm -f conftest$ac_exeext
22890if { (ac_try="$ac_link"
22891case "(($ac_try" in
22892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22893  *) ac_try_echo=$ac_try;;
22894esac
22895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22896  (eval "$ac_link") 2>&5
22897  ac_status=$?
22898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22900  { (case "(($ac_try" in
22901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22902  *) ac_try_echo=$ac_try;;
22903esac
22904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22905  (eval "$ac_try") 2>&5
22906  ac_status=$?
22907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908  (exit $ac_status); }; }; then
22909  ac_cv_func_malloc_0_nonnull=yes
22910else
22911  echo "$as_me: program exited with status $ac_status" >&5
22912echo "$as_me: failed program was:" >&5
22913sed 's/^/| /' conftest.$ac_ext >&5
22914
22915( exit $ac_status )
22916ac_cv_func_malloc_0_nonnull=no
22917fi
22918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22919fi
22920
22921
22922fi
22923{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22924echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
22925if test $ac_cv_func_malloc_0_nonnull = yes; then
22926
22927cat >>confdefs.h <<\_ACEOF
22928#define HAVE_MALLOC 1
22929_ACEOF
22930
22931else
22932  cat >>confdefs.h <<\_ACEOF
22933#define HAVE_MALLOC 0
22934_ACEOF
22935
22936   case " $LIBOBJS " in
22937  *" malloc.$ac_objext "* ) ;;
22938  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
22939 ;;
22940esac
22941
22942
22943cat >>confdefs.h <<\_ACEOF
22944#define malloc rpl_malloc
22945_ACEOF
22946
22947fi
22948
22949
22950
22951
22952
22953
22954for ac_func in gettimeofday memset setlocale
22955do
22956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22957{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22959if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22960  echo $ECHO_N "(cached) $ECHO_C" >&6
22961else
22962  cat >conftest.$ac_ext <<_ACEOF
22963/* confdefs.h.  */
22964_ACEOF
22965cat confdefs.h >>conftest.$ac_ext
22966cat >>conftest.$ac_ext <<_ACEOF
22967/* end confdefs.h.  */
22968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22969   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22970#define $ac_func innocuous_$ac_func
22971
22972/* System header to define __stub macros and hopefully few prototypes,
22973    which can conflict with char $ac_func (); below.
22974    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22975    <limits.h> exists even on freestanding compilers.  */
22976
22977#ifdef __STDC__
22978# include <limits.h>
22979#else
22980# include <assert.h>
22981#endif
22982
22983#undef $ac_func
22984
22985/* Override any GCC internal prototype to avoid an error.
22986   Use char because int might match the return type of a GCC
22987   builtin and then its argument prototype would still apply.  */
22988#ifdef __cplusplus
22989extern "C"
22990#endif
22991char $ac_func ();
22992/* The GNU C library defines this for functions which it implements
22993    to always fail with ENOSYS.  Some functions are actually named
22994    something starting with __ and the normal name is an alias.  */
22995#if defined __stub_$ac_func || defined __stub___$ac_func
22996choke me
22997#endif
22998
22999int
23000main ()
23001{
23002return $ac_func ();
23003  ;
23004  return 0;
23005}
23006_ACEOF
23007rm -f conftest.$ac_objext conftest$ac_exeext
23008if { (ac_try="$ac_link"
23009case "(($ac_try" in
23010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23011  *) ac_try_echo=$ac_try;;
23012esac
23013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23014  (eval "$ac_link") 2>conftest.er1
23015  ac_status=$?
23016  grep -v '^ *+' conftest.er1 >conftest.err
23017  rm -f conftest.er1
23018  cat conftest.err >&5
23019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020  (exit $ac_status); } && {
23021	 test -z "$ac_c_werror_flag" ||
23022	 test ! -s conftest.err
23023       } && test -s conftest$ac_exeext &&
23024       $as_test_x conftest$ac_exeext; then
23025  eval "$as_ac_var=yes"
23026else
23027  echo "$as_me: failed program was:" >&5
23028sed 's/^/| /' conftest.$ac_ext >&5
23029
23030	eval "$as_ac_var=no"
23031fi
23032
23033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23034      conftest$ac_exeext conftest.$ac_ext
23035fi
23036ac_res=`eval echo '${'$as_ac_var'}'`
23037	       { echo "$as_me:$LINENO: result: $ac_res" >&5
23038echo "${ECHO_T}$ac_res" >&6; }
23039if test `eval echo '${'$as_ac_var'}'` = yes; then
23040  cat >>confdefs.h <<_ACEOF
23041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23042_ACEOF
23043
23044fi
23045done
23046
23047
23048ac_config_files="$ac_config_files Makefile check/Makefile human-cli/Makefile cgi/Makefile lib/Makefile po/Makefile.in lib/libhinversi.pc doc/Doxyfile doc/Makefile"
23049
23050cat >confcache <<\_ACEOF
23051# This file is a shell script that caches the results of configure
23052# tests run on this system so they can be shared between configure
23053# scripts and configure runs, see configure's option --config-cache.
23054# It is not useful on other systems.  If it contains results you don't
23055# want to keep, you may remove or edit it.
23056#
23057# config.status only pays attention to the cache file if you give it
23058# the --recheck option to rerun configure.
23059#
23060# `ac_cv_env_foo' variables (set or unset) will be overridden when
23061# loading this file, other *unset* `ac_cv_foo' will be assigned the
23062# following values.
23063
23064_ACEOF
23065
23066# The following way of writing the cache mishandles newlines in values,
23067# but we know of no workaround that is simple, portable, and efficient.
23068# So, we kill variables containing newlines.
23069# Ultrix sh set writes to stderr and can't be redirected directly,
23070# and sets the high bit in the cache file unless we assign to the vars.
23071(
23072  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23073    eval ac_val=\$$ac_var
23074    case $ac_val in #(
23075    *${as_nl}*)
23076      case $ac_var in #(
23077      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23078echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23079      esac
23080      case $ac_var in #(
23081      _ | IFS | as_nl) ;; #(
23082      *) $as_unset $ac_var ;;
23083      esac ;;
23084    esac
23085  done
23086
23087  (set) 2>&1 |
23088    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23089    *${as_nl}ac_space=\ *)
23090      # `set' does not quote correctly, so add quotes (double-quote
23091      # substitution turns \\\\ into \\, and sed turns \\ into \).
23092      sed -n \
23093	"s/'/'\\\\''/g;
23094	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23095      ;; #(
23096    *)
23097      # `set' quotes correctly as required by POSIX, so do not add quotes.
23098      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23099      ;;
23100    esac |
23101    sort
23102) |
23103  sed '
23104     /^ac_cv_env_/b end
23105     t clear
23106     :clear
23107     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23108     t end
23109     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23110     :end' >>confcache
23111if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23112  if test -w "$cache_file"; then
23113    test "x$cache_file" != "x/dev/null" &&
23114      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23115echo "$as_me: updating cache $cache_file" >&6;}
23116    cat confcache >$cache_file
23117  else
23118    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23119echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23120  fi
23121fi
23122rm -f confcache
23123
23124test "x$prefix" = xNONE && prefix=$ac_default_prefix
23125# Let make expand exec_prefix.
23126test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23127
23128DEFS=-DHAVE_CONFIG_H
23129
23130ac_libobjs=
23131ac_ltlibobjs=
23132for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23133  # 1. Remove the extension, and $U if already installed.
23134  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23135  ac_i=`echo "$ac_i" | sed "$ac_script"`
23136  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23137  #    will be set to the directory where LIBOBJS objects are built.
23138  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23139  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23140done
23141LIBOBJS=$ac_libobjs
23142
23143LTLIBOBJS=$ac_ltlibobjs
23144
23145
23146if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23147  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23148Usually this means the macro was only invoked conditionally." >&5
23149echo "$as_me: error: conditional \"AMDEP\" was never defined.
23150Usually this means the macro was only invoked conditionally." >&2;}
23151   { (exit 1); exit 1; }; }
23152fi
23153if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23154  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23155Usually this means the macro was only invoked conditionally." >&5
23156echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23157Usually this means the macro was only invoked conditionally." >&2;}
23158   { (exit 1); exit 1; }; }
23159fi
23160if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23161  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23162Usually this means the macro was only invoked conditionally." >&5
23163echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23164Usually this means the macro was only invoked conditionally." >&2;}
23165   { (exit 1); exit 1; }; }
23166fi
23167if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
23168  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CHECK\" was never defined.
23169Usually this means the macro was only invoked conditionally." >&5
23170echo "$as_me: error: conditional \"HAVE_CHECK\" was never defined.
23171Usually this means the macro was only invoked conditionally." >&2;}
23172   { (exit 1); exit 1; }; }
23173fi
23174
23175: ${CONFIG_STATUS=./config.status}
23176ac_clean_files_save=$ac_clean_files
23177ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23178{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23179echo "$as_me: creating $CONFIG_STATUS" >&6;}
23180cat >$CONFIG_STATUS <<_ACEOF
23181#! $SHELL
23182# Generated by $as_me.
23183# Run this file to recreate the current configuration.
23184# Compiler output produced by configure, useful for debugging
23185# configure, is in config.log if it exists.
23186
23187debug=false
23188ac_cs_recheck=false
23189ac_cs_silent=false
23190SHELL=\${CONFIG_SHELL-$SHELL}
23191_ACEOF
23192
23193cat >>$CONFIG_STATUS <<\_ACEOF
23194## --------------------- ##
23195## M4sh Initialization.  ##
23196## --------------------- ##
23197
23198# Be more Bourne compatible
23199DUALCASE=1; export DUALCASE # for MKS sh
23200if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23201  emulate sh
23202  NULLCMD=:
23203  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23204  # is contrary to our usage.  Disable this feature.
23205  alias -g '${1+"$@"}'='"$@"'
23206  setopt NO_GLOB_SUBST
23207else
23208  case `(set -o) 2>/dev/null` in
23209  *posix*) set -o posix ;;
23210esac
23211
23212fi
23213
23214
23215
23216
23217# PATH needs CR
23218# Avoid depending upon Character Ranges.
23219as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23220as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23221as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23222as_cr_digits='0123456789'
23223as_cr_alnum=$as_cr_Letters$as_cr_digits
23224
23225# The user is always right.
23226if test "${PATH_SEPARATOR+set}" != set; then
23227  echo "#! /bin/sh" >conf$$.sh
23228  echo  "exit 0"   >>conf$$.sh
23229  chmod +x conf$$.sh
23230  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23231    PATH_SEPARATOR=';'
23232  else
23233    PATH_SEPARATOR=:
23234  fi
23235  rm -f conf$$.sh
23236fi
23237
23238# Support unset when possible.
23239if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23240  as_unset=unset
23241else
23242  as_unset=false
23243fi
23244
23245
23246# IFS
23247# We need space, tab and new line, in precisely that order.  Quoting is
23248# there to prevent editors from complaining about space-tab.
23249# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23250# splitting by setting IFS to empty value.)
23251as_nl='
23252'
23253IFS=" ""	$as_nl"
23254
23255# Find who we are.  Look in the path if we contain no directory separator.
23256case $0 in
23257  *[\\/]* ) as_myself=$0 ;;
23258  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23259for as_dir in $PATH
23260do
23261  IFS=$as_save_IFS
23262  test -z "$as_dir" && as_dir=.
23263  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23264done
23265IFS=$as_save_IFS
23266
23267     ;;
23268esac
23269# We did not find ourselves, most probably we were run as `sh COMMAND'
23270# in which case we are not to be found in the path.
23271if test "x$as_myself" = x; then
23272  as_myself=$0
23273fi
23274if test ! -f "$as_myself"; then
23275  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23276  { (exit 1); exit 1; }
23277fi
23278
23279# Work around bugs in pre-3.0 UWIN ksh.
23280for as_var in ENV MAIL MAILPATH
23281do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23282done
23283PS1='$ '
23284PS2='> '
23285PS4='+ '
23286
23287# NLS nuisances.
23288for as_var in \
23289  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23290  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23291  LC_TELEPHONE LC_TIME
23292do
23293  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23294    eval $as_var=C; export $as_var
23295  else
23296    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23297  fi
23298done
23299
23300# Required to use basename.
23301if expr a : '\(a\)' >/dev/null 2>&1 &&
23302   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23303  as_expr=expr
23304else
23305  as_expr=false
23306fi
23307
23308if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23309  as_basename=basename
23310else
23311  as_basename=false
23312fi
23313
23314
23315# Name of the executable.
23316as_me=`$as_basename -- "$0" ||
23317$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23318	 X"$0" : 'X\(//\)$' \| \
23319	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23320echo X/"$0" |
23321    sed '/^.*\/\([^/][^/]*\)\/*$/{
23322	    s//\1/
23323	    q
23324	  }
23325	  /^X\/\(\/\/\)$/{
23326	    s//\1/
23327	    q
23328	  }
23329	  /^X\/\(\/\).*/{
23330	    s//\1/
23331	    q
23332	  }
23333	  s/.*/./; q'`
23334
23335# CDPATH.
23336$as_unset CDPATH
23337
23338
23339
23340  as_lineno_1=$LINENO
23341  as_lineno_2=$LINENO
23342  test "x$as_lineno_1" != "x$as_lineno_2" &&
23343  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23344
23345  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23346  # uniformly replaced by the line number.  The first 'sed' inserts a
23347  # line-number line after each line using $LINENO; the second 'sed'
23348  # does the real work.  The second script uses 'N' to pair each
23349  # line-number line with the line containing $LINENO, and appends
23350  # trailing '-' during substitution so that $LINENO is not a special
23351  # case at line end.
23352  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23353  # scripts with optimization help from Paolo Bonzini.  Blame Lee
23354  # E. McMahon (1931-1989) for sed's syntax.  :-)
23355  sed -n '
23356    p
23357    /[$]LINENO/=
23358  ' <$as_myself |
23359    sed '
23360      s/[$]LINENO.*/&-/
23361      t lineno
23362      b
23363      :lineno
23364      N
23365      :loop
23366      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23367      t loop
23368      s/-\n.*//
23369    ' >$as_me.lineno &&
23370  chmod +x "$as_me.lineno" ||
23371    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23372   { (exit 1); exit 1; }; }
23373
23374  # Don't try to exec as it changes $[0], causing all sort of problems
23375  # (the dirname of $[0] is not the place where we might find the
23376  # original and so on.  Autoconf is especially sensitive to this).
23377  . "./$as_me.lineno"
23378  # Exit status is that of the last command.
23379  exit
23380}
23381
23382
23383if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23384  as_dirname=dirname
23385else
23386  as_dirname=false
23387fi
23388
23389ECHO_C= ECHO_N= ECHO_T=
23390case `echo -n x` in
23391-n*)
23392  case `echo 'x\c'` in
23393  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23394  *)   ECHO_C='\c';;
23395  esac;;
23396*)
23397  ECHO_N='-n';;
23398esac
23399
23400if expr a : '\(a\)' >/dev/null 2>&1 &&
23401   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23402  as_expr=expr
23403else
23404  as_expr=false
23405fi
23406
23407rm -f conf$$ conf$$.exe conf$$.file
23408if test -d conf$$.dir; then
23409  rm -f conf$$.dir/conf$$.file
23410else
23411  rm -f conf$$.dir
23412  mkdir conf$$.dir
23413fi
23414echo >conf$$.file
23415if ln -s conf$$.file conf$$ 2>/dev/null; then
23416  as_ln_s='ln -s'
23417  # ... but there are two gotchas:
23418  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23419  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23420  # In both cases, we have to default to `cp -p'.
23421  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23422    as_ln_s='cp -p'
23423elif ln conf$$.file conf$$ 2>/dev/null; then
23424  as_ln_s=ln
23425else
23426  as_ln_s='cp -p'
23427fi
23428rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23429rmdir conf$$.dir 2>/dev/null
23430
23431if mkdir -p . 2>/dev/null; then
23432  as_mkdir_p=:
23433else
23434  test -d ./-p && rmdir ./-p
23435  as_mkdir_p=false
23436fi
23437
23438if test -x / >/dev/null 2>&1; then
23439  as_test_x='test -x'
23440else
23441  if ls -dL / >/dev/null 2>&1; then
23442    as_ls_L_option=L
23443  else
23444    as_ls_L_option=
23445  fi
23446  as_test_x='
23447    eval sh -c '\''
23448      if test -d "$1"; then
23449        test -d "$1/.";
23450      else
23451	case $1 in
23452        -*)set "./$1";;
23453	esac;
23454	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23455	???[sx]*):;;*)false;;esac;fi
23456    '\'' sh
23457  '
23458fi
23459as_executable_p=$as_test_x
23460
23461# Sed expression to map a string onto a valid CPP name.
23462as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23463
23464# Sed expression to map a string onto a valid variable name.
23465as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23466
23467
23468exec 6>&1
23469
23470# Save the log message, to keep $[0] and so on meaningful, and to
23471# report actual input values of CONFIG_FILES etc. instead of their
23472# values after options handling.
23473ac_log="
23474This file was extended by hinversi $as_me 0.8.2, which was
23475generated by GNU Autoconf 2.61.  Invocation command line was
23476
23477  CONFIG_FILES    = $CONFIG_FILES
23478  CONFIG_HEADERS  = $CONFIG_HEADERS
23479  CONFIG_LINKS    = $CONFIG_LINKS
23480  CONFIG_COMMANDS = $CONFIG_COMMANDS
23481  $ $0 $@
23482
23483on `(hostname || uname -n) 2>/dev/null | sed 1q`
23484"
23485
23486_ACEOF
23487
23488cat >>$CONFIG_STATUS <<_ACEOF
23489# Files that config.status was made for.
23490config_files="$ac_config_files"
23491config_headers="$ac_config_headers"
23492config_commands="$ac_config_commands"
23493
23494_ACEOF
23495
23496cat >>$CONFIG_STATUS <<\_ACEOF
23497ac_cs_usage="\
23498\`$as_me' instantiates files from templates according to the
23499current configuration.
23500
23501Usage: $0 [OPTIONS] [FILE]...
23502
23503  -h, --help       print this help, then exit
23504  -V, --version    print version number and configuration settings, then exit
23505  -q, --quiet      do not print progress messages
23506  -d, --debug      don't remove temporary files
23507      --recheck    update $as_me by reconfiguring in the same conditions
23508  --file=FILE[:TEMPLATE]
23509		   instantiate the configuration file FILE
23510  --header=FILE[:TEMPLATE]
23511		   instantiate the configuration header FILE
23512
23513Configuration files:
23514$config_files
23515
23516Configuration headers:
23517$config_headers
23518
23519Configuration commands:
23520$config_commands
23521
23522Report bugs to <bug-autoconf@gnu.org>."
23523
23524_ACEOF
23525cat >>$CONFIG_STATUS <<_ACEOF
23526ac_cs_version="\\
23527hinversi config.status 0.8.2
23528configured by $0, generated by GNU Autoconf 2.61,
23529  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23530
23531Copyright (C) 2006 Free Software Foundation, Inc.
23532This config.status script is free software; the Free Software Foundation
23533gives unlimited permission to copy, distribute and modify it."
23534
23535ac_pwd='$ac_pwd'
23536srcdir='$srcdir'
23537INSTALL='$INSTALL'
23538MKDIR_P='$MKDIR_P'
23539_ACEOF
23540
23541cat >>$CONFIG_STATUS <<\_ACEOF
23542# If no file are specified by the user, then we need to provide default
23543# value.  By we need to know if files were specified by the user.
23544ac_need_defaults=:
23545while test $# != 0
23546do
23547  case $1 in
23548  --*=*)
23549    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23550    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23551    ac_shift=:
23552    ;;
23553  *)
23554    ac_option=$1
23555    ac_optarg=$2
23556    ac_shift=shift
23557    ;;
23558  esac
23559
23560  case $ac_option in
23561  # Handling of the options.
23562  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23563    ac_cs_recheck=: ;;
23564  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23565    echo "$ac_cs_version"; exit ;;
23566  --debug | --debu | --deb | --de | --d | -d )
23567    debug=: ;;
23568  --file | --fil | --fi | --f )
23569    $ac_shift
23570    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23571    ac_need_defaults=false;;
23572  --header | --heade | --head | --hea )
23573    $ac_shift
23574    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23575    ac_need_defaults=false;;
23576  --he | --h)
23577    # Conflict between --help and --header
23578    { echo "$as_me: error: ambiguous option: $1
23579Try \`$0 --help' for more information." >&2
23580   { (exit 1); exit 1; }; };;
23581  --help | --hel | -h )
23582    echo "$ac_cs_usage"; exit ;;
23583  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23584  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23585    ac_cs_silent=: ;;
23586
23587  # This is an error.
23588  -*) { echo "$as_me: error: unrecognized option: $1
23589Try \`$0 --help' for more information." >&2
23590   { (exit 1); exit 1; }; } ;;
23591
23592  *) ac_config_targets="$ac_config_targets $1"
23593     ac_need_defaults=false ;;
23594
23595  esac
23596  shift
23597done
23598
23599ac_configure_extra_args=
23600
23601if $ac_cs_silent; then
23602  exec 6>/dev/null
23603  ac_configure_extra_args="$ac_configure_extra_args --silent"
23604fi
23605
23606_ACEOF
23607cat >>$CONFIG_STATUS <<_ACEOF
23608if \$ac_cs_recheck; then
23609  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23610  CONFIG_SHELL=$SHELL
23611  export CONFIG_SHELL
23612  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23613fi
23614
23615_ACEOF
23616cat >>$CONFIG_STATUS <<\_ACEOF
23617exec 5>>config.log
23618{
23619  echo
23620  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23621## Running $as_me. ##
23622_ASBOX
23623  echo "$ac_log"
23624} >&5
23625
23626_ACEOF
23627cat >>$CONFIG_STATUS <<_ACEOF
23628#
23629# INIT-COMMANDS
23630#
23631AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23632# Capture the value of obsolete ALL_LINGUAS because we need it to compute
23633    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
23634    # from automake < 1.5.
23635    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23636    # Capture the value of LINGUAS because we need it to compute CATALOGS.
23637    LINGUAS="${LINGUAS-%UNSET%}"
23638
23639
23640_ACEOF
23641
23642cat >>$CONFIG_STATUS <<\_ACEOF
23643
23644# Handling of arguments.
23645for ac_config_target in $ac_config_targets
23646do
23647  case $ac_config_target in
23648    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23649    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23650    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
23651    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23652    "check/Makefile") CONFIG_FILES="$CONFIG_FILES check/Makefile" ;;
23653    "human-cli/Makefile") CONFIG_FILES="$CONFIG_FILES human-cli/Makefile" ;;
23654    "cgi/Makefile") CONFIG_FILES="$CONFIG_FILES cgi/Makefile" ;;
23655    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23656    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23657    "lib/libhinversi.pc") CONFIG_FILES="$CONFIG_FILES lib/libhinversi.pc" ;;
23658    "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
23659    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23660
23661  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23662echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23663   { (exit 1); exit 1; }; };;
23664  esac
23665done
23666
23667
23668# If the user did not use the arguments to specify the items to instantiate,
23669# then the envvar interface is used.  Set only those that are not.
23670# We use the long form for the default assignment because of an extremely
23671# bizarre bug on SunOS 4.1.3.
23672if $ac_need_defaults; then
23673  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23674  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23675  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23676fi
23677
23678# Have a temporary directory for convenience.  Make it in the build tree
23679# simply because there is no reason against having it here, and in addition,
23680# creating and moving files from /tmp can sometimes cause problems.
23681# Hook for its removal unless debugging.
23682# Note that there is a small window in which the directory will not be cleaned:
23683# after its creation but before its name has been assigned to `$tmp'.
23684$debug ||
23685{
23686  tmp=
23687  trap 'exit_status=$?
23688  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23689' 0
23690  trap '{ (exit 1); exit 1; }' 1 2 13 15
23691}
23692# Create a (secure) tmp directory for tmp files.
23693
23694{
23695  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23696  test -n "$tmp" && test -d "$tmp"
23697}  ||
23698{
23699  tmp=./conf$$-$RANDOM
23700  (umask 077 && mkdir "$tmp")
23701} ||
23702{
23703   echo "$me: cannot create a temporary directory in ." >&2
23704   { (exit 1); exit 1; }
23705}
23706
23707#
23708# Set up the sed scripts for CONFIG_FILES section.
23709#
23710
23711# No need to generate the scripts if there are no CONFIG_FILES.
23712# This happens for instance when ./config.status config.h
23713if test -n "$CONFIG_FILES"; then
23714
23715_ACEOF
23716
23717
23718
23719ac_delim='%!_!# '
23720for ac_last_try in false false false false false :; do
23721  cat >conf$$subs.sed <<_ACEOF
23722SHELL!$SHELL$ac_delim
23723PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23724PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23725PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23726PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23727PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23728PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23729exec_prefix!$exec_prefix$ac_delim
23730prefix!$prefix$ac_delim
23731program_transform_name!$program_transform_name$ac_delim
23732bindir!$bindir$ac_delim
23733sbindir!$sbindir$ac_delim
23734libexecdir!$libexecdir$ac_delim
23735datarootdir!$datarootdir$ac_delim
23736datadir!$datadir$ac_delim
23737sysconfdir!$sysconfdir$ac_delim
23738sharedstatedir!$sharedstatedir$ac_delim
23739localstatedir!$localstatedir$ac_delim
23740includedir!$includedir$ac_delim
23741oldincludedir!$oldincludedir$ac_delim
23742docdir!$docdir$ac_delim
23743infodir!$infodir$ac_delim
23744htmldir!$htmldir$ac_delim
23745dvidir!$dvidir$ac_delim
23746pdfdir!$pdfdir$ac_delim
23747psdir!$psdir$ac_delim
23748libdir!$libdir$ac_delim
23749localedir!$localedir$ac_delim
23750mandir!$mandir$ac_delim
23751DEFS!$DEFS$ac_delim
23752ECHO_C!$ECHO_C$ac_delim
23753ECHO_N!$ECHO_N$ac_delim
23754ECHO_T!$ECHO_T$ac_delim
23755LIBS!$LIBS$ac_delim
23756build_alias!$build_alias$ac_delim
23757host_alias!$host_alias$ac_delim
23758target_alias!$target_alias$ac_delim
23759INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23760INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23761INSTALL_DATA!$INSTALL_DATA$ac_delim
23762am__isrc!$am__isrc$ac_delim
23763CYGPATH_W!$CYGPATH_W$ac_delim
23764PACKAGE!$PACKAGE$ac_delim
23765VERSION!$VERSION$ac_delim
23766ACLOCAL!$ACLOCAL$ac_delim
23767AUTOCONF!$AUTOCONF$ac_delim
23768AUTOMAKE!$AUTOMAKE$ac_delim
23769AUTOHEADER!$AUTOHEADER$ac_delim
23770MAKEINFO!$MAKEINFO$ac_delim
23771install_sh!$install_sh$ac_delim
23772STRIP!$STRIP$ac_delim
23773INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23774mkdir_p!$mkdir_p$ac_delim
23775AWK!$AWK$ac_delim
23776SET_MAKE!$SET_MAKE$ac_delim
23777am__leading_dot!$am__leading_dot$ac_delim
23778AMTAR!$AMTAR$ac_delim
23779am__tar!$am__tar$ac_delim
23780am__untar!$am__untar$ac_delim
23781CC!$CC$ac_delim
23782CFLAGS!$CFLAGS$ac_delim
23783LDFLAGS!$LDFLAGS$ac_delim
23784CPPFLAGS!$CPPFLAGS$ac_delim
23785ac_ct_CC!$ac_ct_CC$ac_delim
23786EXEEXT!$EXEEXT$ac_delim
23787OBJEXT!$OBJEXT$ac_delim
23788DEPDIR!$DEPDIR$ac_delim
23789am__include!$am__include$ac_delim
23790am__quote!$am__quote$ac_delim
23791AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23792AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23793AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23794CCDEPMODE!$CCDEPMODE$ac_delim
23795am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23796am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23797CPP!$CPP$ac_delim
23798LN_S!$LN_S$ac_delim
23799build!$build$ac_delim
23800build_cpu!$build_cpu$ac_delim
23801build_vendor!$build_vendor$ac_delim
23802build_os!$build_os$ac_delim
23803host!$host$ac_delim
23804host_cpu!$host_cpu$ac_delim
23805host_vendor!$host_vendor$ac_delim
23806host_os!$host_os$ac_delim
23807SED!$SED$ac_delim
23808GREP!$GREP$ac_delim
23809EGREP!$EGREP$ac_delim
23810ECHO!$ECHO$ac_delim
23811AR!$AR$ac_delim
23812RANLIB!$RANLIB$ac_delim
23813DSYMUTIL!$DSYMUTIL$ac_delim
23814NMEDIT!$NMEDIT$ac_delim
23815CXX!$CXX$ac_delim
23816CXXFLAGS!$CXXFLAGS$ac_delim
23817ac_ct_CXX!$ac_ct_CXX$ac_delim
23818CXXDEPMODE!$CXXDEPMODE$ac_delim
23819_ACEOF
23820
23821  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23822    break
23823  elif $ac_last_try; then
23824    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23825echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23826   { (exit 1); exit 1; }; }
23827  else
23828    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23829  fi
23830done
23831
23832ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23833if test -n "$ac_eof"; then
23834  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23835  ac_eof=`expr $ac_eof + 1`
23836fi
23837
23838cat >>$CONFIG_STATUS <<_ACEOF
23839cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23840/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23841_ACEOF
23842sed '
23843s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23844s/^/s,@/; s/!/@,|#_!!_#|/
23845:n
23846t n
23847s/'"$ac_delim"'$/,g/; t
23848s/$/\\/; p
23849N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23850' >>$CONFIG_STATUS <conf$$subs.sed
23851rm -f conf$$subs.sed
23852cat >>$CONFIG_STATUS <<_ACEOF
23853CEOF$ac_eof
23854_ACEOF
23855
23856
23857ac_delim='%!_!# '
23858for ac_last_try in false false false false false :; do
23859  cat >conf$$subs.sed <<_ACEOF
23860am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23861am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23862CXXCPP!$CXXCPP$ac_delim
23863F77!$F77$ac_delim
23864FFLAGS!$FFLAGS$ac_delim
23865ac_ct_F77!$ac_ct_F77$ac_delim
23866LIBTOOL!$LIBTOOL$ac_delim
23867PKG_CONFIG!$PKG_CONFIG$ac_delim
23868CHECK_CFLAGS!$CHECK_CFLAGS$ac_delim
23869CHECK_LIBS!$CHECK_LIBS$ac_delim
23870HAVE_CHECK_TRUE!$HAVE_CHECK_TRUE$ac_delim
23871HAVE_CHECK_FALSE!$HAVE_CHECK_FALSE$ac_delim
23872USE_NLS!$USE_NLS$ac_delim
23873MSGFMT!$MSGFMT$ac_delim
23874GMSGFMT!$GMSGFMT$ac_delim
23875MSGFMT_015!$MSGFMT_015$ac_delim
23876GMSGFMT_015!$GMSGFMT_015$ac_delim
23877XGETTEXT!$XGETTEXT$ac_delim
23878XGETTEXT_015!$XGETTEXT_015$ac_delim
23879MSGMERGE!$MSGMERGE$ac_delim
23880INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
23881LIBICONV!$LIBICONV$ac_delim
23882LTLIBICONV!$LTLIBICONV$ac_delim
23883INTLLIBS!$INTLLIBS$ac_delim
23884LIBINTL!$LIBINTL$ac_delim
23885LTLIBINTL!$LTLIBINTL$ac_delim
23886POSUB!$POSUB$ac_delim
23887LIBOBJS!$LIBOBJS$ac_delim
23888LTLIBOBJS!$LTLIBOBJS$ac_delim
23889_ACEOF
23890
23891  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 29; then
23892    break
23893  elif $ac_last_try; then
23894    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23895echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23896   { (exit 1); exit 1; }; }
23897  else
23898    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23899  fi
23900done
23901
23902ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23903if test -n "$ac_eof"; then
23904  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23905  ac_eof=`expr $ac_eof + 1`
23906fi
23907
23908cat >>$CONFIG_STATUS <<_ACEOF
23909cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23910/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23911_ACEOF
23912sed '
23913s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23914s/^/s,@/; s/!/@,|#_!!_#|/
23915:n
23916t n
23917s/'"$ac_delim"'$/,g/; t
23918s/$/\\/; p
23919N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23920' >>$CONFIG_STATUS <conf$$subs.sed
23921rm -f conf$$subs.sed
23922cat >>$CONFIG_STATUS <<_ACEOF
23923:end
23924s/|#_!!_#|//g
23925CEOF$ac_eof
23926_ACEOF
23927
23928
23929# VPATH may cause trouble with some makes, so we remove $(srcdir),
23930# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23931# trailing colons and then remove the whole line if VPATH becomes empty
23932# (actually we leave an empty line to preserve line numbers).
23933if test "x$srcdir" = x.; then
23934  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
23935s/:*\$(srcdir):*/:/
23936s/:*\${srcdir}:*/:/
23937s/:*@srcdir@:*/:/
23938s/^\([^=]*=[	 ]*\):*/\1/
23939s/:*$//
23940s/^[^=]*=[	 ]*$//
23941}'
23942fi
23943
23944cat >>$CONFIG_STATUS <<\_ACEOF
23945fi # test -n "$CONFIG_FILES"
23946
23947
23948for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
23949do
23950  case $ac_tag in
23951  :[FHLC]) ac_mode=$ac_tag; continue;;
23952  esac
23953  case $ac_mode$ac_tag in
23954  :[FHL]*:*);;
23955  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23956echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23957   { (exit 1); exit 1; }; };;
23958  :[FH]-) ac_tag=-:-;;
23959  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23960  esac
23961  ac_save_IFS=$IFS
23962  IFS=:
23963  set x $ac_tag
23964  IFS=$ac_save_IFS
23965  shift
23966  ac_file=$1
23967  shift
23968
23969  case $ac_mode in
23970  :L) ac_source=$1;;
23971  :[FH])
23972    ac_file_inputs=
23973    for ac_f
23974    do
23975      case $ac_f in
23976      -) ac_f="$tmp/stdin";;
23977      *) # Look for the file first in the build tree, then in the source tree
23978	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23979	 # because $ac_f cannot contain `:'.
23980	 test -f "$ac_f" ||
23981	   case $ac_f in
23982	   [\\/$]*) false;;
23983	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23984	   esac ||
23985	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23986echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23987   { (exit 1); exit 1; }; };;
23988      esac
23989      ac_file_inputs="$ac_file_inputs $ac_f"
23990    done
23991
23992    # Let's still pretend it is `configure' which instantiates (i.e., don't
23993    # use $as_me), people would be surprised to read:
23994    #    /* config.h.  Generated by config.status.  */
23995    configure_input="Generated from "`IFS=:
23996	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23997    if test x"$ac_file" != x-; then
23998      configure_input="$ac_file.  $configure_input"
23999      { echo "$as_me:$LINENO: creating $ac_file" >&5
24000echo "$as_me: creating $ac_file" >&6;}
24001    fi
24002
24003    case $ac_tag in
24004    *:-:* | *:-) cat >"$tmp/stdin";;
24005    esac
24006    ;;
24007  esac
24008
24009  ac_dir=`$as_dirname -- "$ac_file" ||
24010$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24011	 X"$ac_file" : 'X\(//\)[^/]' \| \
24012	 X"$ac_file" : 'X\(//\)$' \| \
24013	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24014echo X"$ac_file" |
24015    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24016	    s//\1/
24017	    q
24018	  }
24019	  /^X\(\/\/\)[^/].*/{
24020	    s//\1/
24021	    q
24022	  }
24023	  /^X\(\/\/\)$/{
24024	    s//\1/
24025	    q
24026	  }
24027	  /^X\(\/\).*/{
24028	    s//\1/
24029	    q
24030	  }
24031	  s/.*/./; q'`
24032  { as_dir="$ac_dir"
24033  case $as_dir in #(
24034  -*) as_dir=./$as_dir;;
24035  esac
24036  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24037    as_dirs=
24038    while :; do
24039      case $as_dir in #(
24040      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24041      *) as_qdir=$as_dir;;
24042      esac
24043      as_dirs="'$as_qdir' $as_dirs"
24044      as_dir=`$as_dirname -- "$as_dir" ||
24045$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24046	 X"$as_dir" : 'X\(//\)[^/]' \| \
24047	 X"$as_dir" : 'X\(//\)$' \| \
24048	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24049echo X"$as_dir" |
24050    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24051	    s//\1/
24052	    q
24053	  }
24054	  /^X\(\/\/\)[^/].*/{
24055	    s//\1/
24056	    q
24057	  }
24058	  /^X\(\/\/\)$/{
24059	    s//\1/
24060	    q
24061	  }
24062	  /^X\(\/\).*/{
24063	    s//\1/
24064	    q
24065	  }
24066	  s/.*/./; q'`
24067      test -d "$as_dir" && break
24068    done
24069    test -z "$as_dirs" || eval "mkdir $as_dirs"
24070  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24071echo "$as_me: error: cannot create directory $as_dir" >&2;}
24072   { (exit 1); exit 1; }; }; }
24073  ac_builddir=.
24074
24075case "$ac_dir" in
24076.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24077*)
24078  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24079  # A ".." for each directory in $ac_dir_suffix.
24080  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24081  case $ac_top_builddir_sub in
24082  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24083  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24084  esac ;;
24085esac
24086ac_abs_top_builddir=$ac_pwd
24087ac_abs_builddir=$ac_pwd$ac_dir_suffix
24088# for backward compatibility:
24089ac_top_builddir=$ac_top_build_prefix
24090
24091case $srcdir in
24092  .)  # We are building in place.
24093    ac_srcdir=.
24094    ac_top_srcdir=$ac_top_builddir_sub
24095    ac_abs_top_srcdir=$ac_pwd ;;
24096  [\\/]* | ?:[\\/]* )  # Absolute name.
24097    ac_srcdir=$srcdir$ac_dir_suffix;
24098    ac_top_srcdir=$srcdir
24099    ac_abs_top_srcdir=$srcdir ;;
24100  *) # Relative name.
24101    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24102    ac_top_srcdir=$ac_top_build_prefix$srcdir
24103    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24104esac
24105ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24106
24107
24108  case $ac_mode in
24109  :F)
24110  #
24111  # CONFIG_FILE
24112  #
24113
24114  case $INSTALL in
24115  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24116  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24117  esac
24118  ac_MKDIR_P=$MKDIR_P
24119  case $MKDIR_P in
24120  [\\/$]* | ?:[\\/]* ) ;;
24121  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24122  esac
24123_ACEOF
24124
24125cat >>$CONFIG_STATUS <<\_ACEOF
24126# If the template does not know about datarootdir, expand it.
24127# FIXME: This hack should be removed a few years after 2.60.
24128ac_datarootdir_hack=; ac_datarootdir_seen=
24129
24130case `sed -n '/datarootdir/ {
24131  p
24132  q
24133}
24134/@datadir@/p
24135/@docdir@/p
24136/@infodir@/p
24137/@localedir@/p
24138/@mandir@/p
24139' $ac_file_inputs` in
24140*datarootdir*) ac_datarootdir_seen=yes;;
24141*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24142  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24143echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24144_ACEOF
24145cat >>$CONFIG_STATUS <<_ACEOF
24146  ac_datarootdir_hack='
24147  s&@datadir@&$datadir&g
24148  s&@docdir@&$docdir&g
24149  s&@infodir@&$infodir&g
24150  s&@localedir@&$localedir&g
24151  s&@mandir@&$mandir&g
24152    s&\\\${datarootdir}&$datarootdir&g' ;;
24153esac
24154_ACEOF
24155
24156# Neutralize VPATH when `$srcdir' = `.'.
24157# Shell code in configure.ac might set extrasub.
24158# FIXME: do we really want to maintain this feature?
24159cat >>$CONFIG_STATUS <<_ACEOF
24160  sed "$ac_vpsub
24161$extrasub
24162_ACEOF
24163cat >>$CONFIG_STATUS <<\_ACEOF
24164:t
24165/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24166s&@configure_input@&$configure_input&;t t
24167s&@top_builddir@&$ac_top_builddir_sub&;t t
24168s&@srcdir@&$ac_srcdir&;t t
24169s&@abs_srcdir@&$ac_abs_srcdir&;t t
24170s&@top_srcdir@&$ac_top_srcdir&;t t
24171s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24172s&@builddir@&$ac_builddir&;t t
24173s&@abs_builddir@&$ac_abs_builddir&;t t
24174s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24175s&@INSTALL@&$ac_INSTALL&;t t
24176s&@MKDIR_P@&$ac_MKDIR_P&;t t
24177$ac_datarootdir_hack
24178" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24179
24180test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24181  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24182  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24183  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24184which seems to be undefined.  Please make sure it is defined." >&5
24185echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24186which seems to be undefined.  Please make sure it is defined." >&2;}
24187
24188  rm -f "$tmp/stdin"
24189  case $ac_file in
24190  -) cat "$tmp/out"; rm -f "$tmp/out";;
24191  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24192  esac
24193 ;;
24194  :H)
24195  #
24196  # CONFIG_HEADER
24197  #
24198_ACEOF
24199
24200# Transform confdefs.h into a sed script `conftest.defines', that
24201# substitutes the proper values into config.h.in to produce config.h.
24202rm -f conftest.defines conftest.tail
24203# First, append a space to every undef/define line, to ease matching.
24204echo 's/$/ /' >conftest.defines
24205# Then, protect against being on the right side of a sed subst, or in
24206# an unquoted here document, in config.status.  If some macros were
24207# called several times there might be several #defines for the same
24208# symbol, which is useless.  But do not sort them, since the last
24209# AC_DEFINE must be honored.
24210ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24211# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24212# NAME is the cpp macro being defined, VALUE is the value it is being given.
24213# PARAMS is the parameter list in the macro definition--in most cases, it's
24214# just an empty string.
24215ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
24216ac_dB='\\)[	 (].*,\\1define\\2'
24217ac_dC=' '
24218ac_dD=' ,'
24219
24220uniq confdefs.h |
24221  sed -n '
24222	t rset
24223	:rset
24224	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
24225	t ok
24226	d
24227	:ok
24228	s/[\\&,]/\\&/g
24229	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24230	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24231  ' >>conftest.defines
24232
24233# Remove the space that was appended to ease matching.
24234# Then replace #undef with comments.  This is necessary, for
24235# example, in the case of _POSIX_SOURCE, which is predefined and required
24236# on some systems where configure will not decide to define it.
24237# (The regexp can be short, since the line contains either #define or #undef.)
24238echo 's/ $//
24239s,^[	 #]*u.*,/* & */,' >>conftest.defines
24240
24241# Break up conftest.defines:
24242ac_max_sed_lines=50
24243
24244# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24245# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24246# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24247# et cetera.
24248ac_in='$ac_file_inputs'
24249ac_out='"$tmp/out1"'
24250ac_nxt='"$tmp/out2"'
24251
24252while :
24253do
24254  # Write a here document:
24255    cat >>$CONFIG_STATUS <<_ACEOF
24256    # First, check the format of the line:
24257    cat >"\$tmp/defines.sed" <<\\CEOF
24258/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
24259/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
24260b
24261:def
24262_ACEOF
24263  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24264  echo 'CEOF
24265    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24266  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24267  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24268  grep . conftest.tail >/dev/null || break
24269  rm -f conftest.defines
24270  mv conftest.tail conftest.defines
24271done
24272rm -f conftest.defines conftest.tail
24273
24274echo "ac_result=$ac_in" >>$CONFIG_STATUS
24275cat >>$CONFIG_STATUS <<\_ACEOF
24276  if test x"$ac_file" != x-; then
24277    echo "/* $configure_input  */" >"$tmp/config.h"
24278    cat "$ac_result" >>"$tmp/config.h"
24279    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24280      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24281echo "$as_me: $ac_file is unchanged" >&6;}
24282    else
24283      rm -f $ac_file
24284      mv "$tmp/config.h" $ac_file
24285    fi
24286  else
24287    echo "/* $configure_input  */"
24288    cat "$ac_result"
24289  fi
24290  rm -f "$tmp/out12"
24291# Compute $ac_file's index in $config_headers.
24292_am_arg=$ac_file
24293_am_stamp_count=1
24294for _am_header in $config_headers :; do
24295  case $_am_header in
24296    $_am_arg | $_am_arg:* )
24297      break ;;
24298    * )
24299      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24300  esac
24301done
24302echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24303$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24304	 X"$_am_arg" : 'X\(//\)[^/]' \| \
24305	 X"$_am_arg" : 'X\(//\)$' \| \
24306	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24307echo X"$_am_arg" |
24308    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24309	    s//\1/
24310	    q
24311	  }
24312	  /^X\(\/\/\)[^/].*/{
24313	    s//\1/
24314	    q
24315	  }
24316	  /^X\(\/\/\)$/{
24317	    s//\1/
24318	    q
24319	  }
24320	  /^X\(\/\).*/{
24321	    s//\1/
24322	    q
24323	  }
24324	  s/.*/./; q'`/stamp-h$_am_stamp_count
24325 ;;
24326
24327  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24328echo "$as_me: executing $ac_file commands" >&6;}
24329 ;;
24330  esac
24331
24332
24333  case $ac_file$ac_mode in
24334    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24335  # Strip MF so we end up with the name of the file.
24336  mf=`echo "$mf" | sed -e 's/:.*$//'`
24337  # Check whether this is an Automake generated Makefile or not.
24338  # We used to match only the files named `Makefile.in', but
24339  # some people rename them; so instead we look at the file content.
24340  # Grep'ing the first line is not enough: some people post-process
24341  # each Makefile.in and add a new line on top of each file to say so.
24342  # Grep'ing the whole file is not good either: AIX grep has a line
24343  # limit of 2048, but all sed's we know have understand at least 4000.
24344  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24345    dirpart=`$as_dirname -- "$mf" ||
24346$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24347	 X"$mf" : 'X\(//\)[^/]' \| \
24348	 X"$mf" : 'X\(//\)$' \| \
24349	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24350echo X"$mf" |
24351    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24352	    s//\1/
24353	    q
24354	  }
24355	  /^X\(\/\/\)[^/].*/{
24356	    s//\1/
24357	    q
24358	  }
24359	  /^X\(\/\/\)$/{
24360	    s//\1/
24361	    q
24362	  }
24363	  /^X\(\/\).*/{
24364	    s//\1/
24365	    q
24366	  }
24367	  s/.*/./; q'`
24368  else
24369    continue
24370  fi
24371  # Extract the definition of DEPDIR, am__include, and am__quote
24372  # from the Makefile without running `make'.
24373  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24374  test -z "$DEPDIR" && continue
24375  am__include=`sed -n 's/^am__include = //p' < "$mf"`
24376  test -z "am__include" && continue
24377  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24378  # When using ansi2knr, U may be empty or an underscore; expand it
24379  U=`sed -n 's/^U = //p' < "$mf"`
24380  # Find all dependency output files, they are included files with
24381  # $(DEPDIR) in their names.  We invoke sed twice because it is the
24382  # simplest approach to changing $(DEPDIR) to its actual value in the
24383  # expansion.
24384  for file in `sed -n "
24385    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24386       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24387    # Make sure the directory exists.
24388    test -f "$dirpart/$file" && continue
24389    fdir=`$as_dirname -- "$file" ||
24390$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24391	 X"$file" : 'X\(//\)[^/]' \| \
24392	 X"$file" : 'X\(//\)$' \| \
24393	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24394echo X"$file" |
24395    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24396	    s//\1/
24397	    q
24398	  }
24399	  /^X\(\/\/\)[^/].*/{
24400	    s//\1/
24401	    q
24402	  }
24403	  /^X\(\/\/\)$/{
24404	    s//\1/
24405	    q
24406	  }
24407	  /^X\(\/\).*/{
24408	    s//\1/
24409	    q
24410	  }
24411	  s/.*/./; q'`
24412    { as_dir=$dirpart/$fdir
24413  case $as_dir in #(
24414  -*) as_dir=./$as_dir;;
24415  esac
24416  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24417    as_dirs=
24418    while :; do
24419      case $as_dir in #(
24420      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24421      *) as_qdir=$as_dir;;
24422      esac
24423      as_dirs="'$as_qdir' $as_dirs"
24424      as_dir=`$as_dirname -- "$as_dir" ||
24425$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24426	 X"$as_dir" : 'X\(//\)[^/]' \| \
24427	 X"$as_dir" : 'X\(//\)$' \| \
24428	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24429echo X"$as_dir" |
24430    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24431	    s//\1/
24432	    q
24433	  }
24434	  /^X\(\/\/\)[^/].*/{
24435	    s//\1/
24436	    q
24437	  }
24438	  /^X\(\/\/\)$/{
24439	    s//\1/
24440	    q
24441	  }
24442	  /^X\(\/\).*/{
24443	    s//\1/
24444	    q
24445	  }
24446	  s/.*/./; q'`
24447      test -d "$as_dir" && break
24448    done
24449    test -z "$as_dirs" || eval "mkdir $as_dirs"
24450  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24451echo "$as_me: error: cannot create directory $as_dir" >&2;}
24452   { (exit 1); exit 1; }; }; }
24453    # echo "creating $dirpart/$file"
24454    echo '# dummy' > "$dirpart/$file"
24455  done
24456done
24457 ;;
24458    "po-directories":C)
24459    for ac_file in $CONFIG_FILES; do
24460      # Support "outfile[:infile[:infile...]]"
24461      case "$ac_file" in
24462        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24463      esac
24464      # PO directories have a Makefile.in generated from Makefile.in.in.
24465      case "$ac_file" in */Makefile.in)
24466        # Adjust a relative srcdir.
24467        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24468        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24469        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24470        # In autoconf-2.13 it is called $ac_given_srcdir.
24471        # In autoconf-2.50 it is called $srcdir.
24472        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24473        case "$ac_given_srcdir" in
24474          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24475          /*) top_srcdir="$ac_given_srcdir" ;;
24476          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
24477        esac
24478        # Treat a directory as a PO directory if and only if it has a
24479        # POTFILES.in file. This allows packages to have multiple PO
24480        # directories under different names or in different locations.
24481        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24482          rm -f "$ac_dir/POTFILES"
24483          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24484          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24485          POMAKEFILEDEPS="POTFILES.in"
24486          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24487          # on $ac_dir but don't depend on user-specified configuration
24488          # parameters.
24489          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24490            # The LINGUAS file contains the set of available languages.
24491            if test -n "$OBSOLETE_ALL_LINGUAS"; then
24492              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24493            fi
24494            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24495            # Hide the ALL_LINGUAS assigment from automake < 1.5.
24496            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24497            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24498          else
24499            # The set of available languages was given in configure.in.
24500            # Hide the ALL_LINGUAS assigment from automake < 1.5.
24501            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24502          fi
24503          # Compute POFILES
24504          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24505          # Compute UPDATEPOFILES
24506          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24507          # Compute DUMMYPOFILES
24508          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24509          # Compute GMOFILES
24510          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24511          case "$ac_given_srcdir" in
24512            .) srcdirpre= ;;
24513            *) srcdirpre='$(srcdir)/' ;;
24514          esac
24515          POFILES=
24516          UPDATEPOFILES=
24517          DUMMYPOFILES=
24518          GMOFILES=
24519          for lang in $ALL_LINGUAS; do
24520            POFILES="$POFILES $srcdirpre$lang.po"
24521            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24522            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24523            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24524          done
24525          # CATALOGS depends on both $ac_dir and the user's LINGUAS
24526          # environment variable.
24527          INST_LINGUAS=
24528          if test -n "$ALL_LINGUAS"; then
24529            for presentlang in $ALL_LINGUAS; do
24530              useit=no
24531              if test "%UNSET%" != "$LINGUAS"; then
24532                desiredlanguages="$LINGUAS"
24533              else
24534                desiredlanguages="$ALL_LINGUAS"
24535              fi
24536              for desiredlang in $desiredlanguages; do
24537                # Use the presentlang catalog if desiredlang is
24538                #   a. equal to presentlang, or
24539                #   b. a variant of presentlang (because in this case,
24540                #      presentlang can be used as a fallback for messages
24541                #      which are not translated in the desiredlang catalog).
24542                case "$desiredlang" in
24543                  "$presentlang"*) useit=yes;;
24544                esac
24545              done
24546              if test $useit = yes; then
24547                INST_LINGUAS="$INST_LINGUAS $presentlang"
24548              fi
24549            done
24550          fi
24551          CATALOGS=
24552          if test -n "$INST_LINGUAS"; then
24553            for lang in $INST_LINGUAS; do
24554              CATALOGS="$CATALOGS $lang.gmo"
24555            done
24556          fi
24557          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24558          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24559          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24560            if test -f "$f"; then
24561              case "$f" in
24562                *.orig | *.bak | *~) ;;
24563                *) cat "$f" >> "$ac_dir/Makefile" ;;
24564              esac
24565            fi
24566          done
24567        fi
24568        ;;
24569      esac
24570    done ;;
24571
24572  esac
24573done # for ac_tag
24574
24575
24576{ (exit 0); exit 0; }
24577_ACEOF
24578chmod +x $CONFIG_STATUS
24579ac_clean_files=$ac_clean_files_save
24580
24581
24582# configure is writing to config.log, and then calls config.status.
24583# config.status does its own redirection, appending to config.log.
24584# Unfortunately, on DOS this fails, as config.log is still kept open
24585# by configure, so config.status won't be able to write to it; its
24586# output is simply discarded.  So we exec the FD to /dev/null,
24587# effectively closing config.log, so it can be properly (re)opened and
24588# appended to by config.status.  When coming back to configure, we
24589# need to make the FD available again.
24590if test "$no_create" != yes; then
24591  ac_cs_success=:
24592  ac_config_status_args=
24593  test "$silent" = yes &&
24594    ac_config_status_args="$ac_config_status_args --quiet"
24595  exec 5>/dev/null
24596  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24597  exec 5>>config.log
24598  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24599  # would make configure fail if this is the last instruction.
24600  $ac_cs_success || { (exit 1); exit 1; }
24601fi
24602
24603