1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for libodbcxx 0.2.5.
4#
5# Report bugs to <libodbcxx-devel@lists.sourceforge.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='libodbcxx'
730PACKAGE_TARNAME='libodbc++'
731PACKAGE_VERSION='0.2.5'
732PACKAGE_STRING='libodbcxx 0.2.5'
733PACKAGE_BUGREPORT='libodbcxx-devel@lists.sourceforge.net'
734
735ac_unique_file="src/connection.cpp"
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
831lib_version
832build
833build_cpu
834build_vendor
835build_os
836host
837host_cpu
838host_vendor
839host_os
840sed
841CXX
842CXXFLAGS
843LDFLAGS
844CPPFLAGS
845ac_ct_CXX
846EXEEXT
847OBJEXT
848DEPDIR
849am__include
850am__quote
851AMDEP_TRUE
852AMDEP_FALSE
853AMDEPBACKSLASH
854CXXDEPMODE
855am__fastdepCXX_TRUE
856am__fastdepCXX_FALSE
857CXXCPP
858CC
859CFLAGS
860ac_ct_CC
861CCDEPMODE
862am__fastdepCC_TRUE
863am__fastdepCC_FALSE
864SED
865GREP
866EGREP
867LN_S
868ECHO
869AR
870RANLIB
871DSYMUTIL
872NMEDIT
873CPP
874F77
875FFLAGS
876ac_ct_F77
877LIBTOOL
878THREAD_LIBS
879ODBCPP_LIBRARY
880THREADS_TRUE
881THREADS_FALSE
882LIBREADLINE
883INCLUDES
884doxygen
885perl
886db2html
887zip
888bzip2
889UNICODE_DEFS
890BUILD_QTSQLXX_TRUE
891BUILD_QTSQLXX_FALSE
892QT_INCLUDES
893QT_LIBS
894QT_DEFS
895QT_MOC
896QT_TRUE
897QT_FALSE
898BUILD_ISQLXX_TRUE
899BUILD_ISQLXX_FALSE
900BUILD_TESTS_TRUE
901BUILD_TESTS_FALSE
902LIBOBJS
903LTLIBOBJS'
904ac_subst_files=''
905      ac_precious_vars='build_alias
906host_alias
907target_alias
908CXX
909CXXFLAGS
910LDFLAGS
911LIBS
912CPPFLAGS
913CCC
914CXXCPP
915CC
916CFLAGS
917CPP
918F77
919FFLAGS'
920
921
922# Initialize some variables set by options.
923ac_init_help=
924ac_init_version=false
925# The variables have the same names as the options, with
926# dashes changed to underlines.
927cache_file=/dev/null
928exec_prefix=NONE
929no_create=
930no_recursion=
931prefix=NONE
932program_prefix=NONE
933program_suffix=NONE
934program_transform_name=s,x,x,
935silent=
936site=
937srcdir=
938verbose=
939x_includes=NONE
940x_libraries=NONE
941
942# Installation directory options.
943# These are left unexpanded so users can "make install exec_prefix=/foo"
944# and all the variables that are supposed to be based on exec_prefix
945# by default will actually change.
946# Use braces instead of parens because sh, perl, etc. also accept them.
947# (The list follows the same order as the GNU Coding Standards.)
948bindir='${exec_prefix}/bin'
949sbindir='${exec_prefix}/sbin'
950libexecdir='${exec_prefix}/libexec'
951datarootdir='${prefix}/share'
952datadir='${datarootdir}'
953sysconfdir='${prefix}/etc'
954sharedstatedir='${prefix}/com'
955localstatedir='${prefix}/var'
956includedir='${prefix}/include'
957oldincludedir='/usr/include'
958docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959infodir='${datarootdir}/info'
960htmldir='${docdir}'
961dvidir='${docdir}'
962pdfdir='${docdir}'
963psdir='${docdir}'
964libdir='${exec_prefix}/lib'
965localedir='${datarootdir}/locale'
966mandir='${datarootdir}/man'
967
968ac_prev=
969ac_dashdash=
970for ac_option
971do
972  # If the previous option needs an argument, assign it.
973  if test -n "$ac_prev"; then
974    eval $ac_prev=\$ac_option
975    ac_prev=
976    continue
977  fi
978
979  case $ac_option in
980  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981  *)	ac_optarg=yes ;;
982  esac
983
984  # Accept the important Cygnus configure options, so we can diagnose typos.
985
986  case $ac_dashdash$ac_option in
987  --)
988    ac_dashdash=yes ;;
989
990  -bindir | --bindir | --bindi | --bind | --bin | --bi)
991    ac_prev=bindir ;;
992  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993    bindir=$ac_optarg ;;
994
995  -build | --build | --buil | --bui | --bu)
996    ac_prev=build_alias ;;
997  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998    build_alias=$ac_optarg ;;
999
1000  -cache-file | --cache-file | --cache-fil | --cache-fi \
1001  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002    ac_prev=cache_file ;;
1003  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005    cache_file=$ac_optarg ;;
1006
1007  --config-cache | -C)
1008    cache_file=config.cache ;;
1009
1010  -datadir | --datadir | --datadi | --datad)
1011    ac_prev=datadir ;;
1012  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013    datadir=$ac_optarg ;;
1014
1015  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016  | --dataroo | --dataro | --datar)
1017    ac_prev=datarootdir ;;
1018  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020    datarootdir=$ac_optarg ;;
1021
1022  -disable-* | --disable-*)
1023    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024    # Reject names that are not valid shell variable names.
1025    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027   { (exit 1); exit 1; }; }
1028    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1029    eval enable_$ac_feature=no ;;
1030
1031  -docdir | --docdir | --docdi | --doc | --do)
1032    ac_prev=docdir ;;
1033  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034    docdir=$ac_optarg ;;
1035
1036  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037    ac_prev=dvidir ;;
1038  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039    dvidir=$ac_optarg ;;
1040
1041  -enable-* | --enable-*)
1042    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043    # Reject names that are not valid shell variable names.
1044    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1046   { (exit 1); exit 1; }; }
1047    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1048    eval enable_$ac_feature=\$ac_optarg ;;
1049
1050  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052  | --exec | --exe | --ex)
1053    ac_prev=exec_prefix ;;
1054  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056  | --exec=* | --exe=* | --ex=*)
1057    exec_prefix=$ac_optarg ;;
1058
1059  -gas | --gas | --ga | --g)
1060    # Obsolete; use --with-gas.
1061    with_gas=yes ;;
1062
1063  -help | --help | --hel | --he | -h)
1064    ac_init_help=long ;;
1065  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066    ac_init_help=recursive ;;
1067  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068    ac_init_help=short ;;
1069
1070  -host | --host | --hos | --ho)
1071    ac_prev=host_alias ;;
1072  -host=* | --host=* | --hos=* | --ho=*)
1073    host_alias=$ac_optarg ;;
1074
1075  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076    ac_prev=htmldir ;;
1077  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078  | --ht=*)
1079    htmldir=$ac_optarg ;;
1080
1081  -includedir | --includedir | --includedi | --included | --include \
1082  | --includ | --inclu | --incl | --inc)
1083    ac_prev=includedir ;;
1084  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085  | --includ=* | --inclu=* | --incl=* | --inc=*)
1086    includedir=$ac_optarg ;;
1087
1088  -infodir | --infodir | --infodi | --infod | --info | --inf)
1089    ac_prev=infodir ;;
1090  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091    infodir=$ac_optarg ;;
1092
1093  -libdir | --libdir | --libdi | --libd)
1094    ac_prev=libdir ;;
1095  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096    libdir=$ac_optarg ;;
1097
1098  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099  | --libexe | --libex | --libe)
1100    ac_prev=libexecdir ;;
1101  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102  | --libexe=* | --libex=* | --libe=*)
1103    libexecdir=$ac_optarg ;;
1104
1105  -localedir | --localedir | --localedi | --localed | --locale)
1106    ac_prev=localedir ;;
1107  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108    localedir=$ac_optarg ;;
1109
1110  -localstatedir | --localstatedir | --localstatedi | --localstated \
1111  | --localstate | --localstat | --localsta | --localst | --locals)
1112    ac_prev=localstatedir ;;
1113  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115    localstatedir=$ac_optarg ;;
1116
1117  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118    ac_prev=mandir ;;
1119  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120    mandir=$ac_optarg ;;
1121
1122  -nfp | --nfp | --nf)
1123    # Obsolete; use --without-fp.
1124    with_fp=no ;;
1125
1126  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127  | --no-cr | --no-c | -n)
1128    no_create=yes ;;
1129
1130  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132    no_recursion=yes ;;
1133
1134  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136  | --oldin | --oldi | --old | --ol | --o)
1137    ac_prev=oldincludedir ;;
1138  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141    oldincludedir=$ac_optarg ;;
1142
1143  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144    ac_prev=prefix ;;
1145  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146    prefix=$ac_optarg ;;
1147
1148  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149  | --program-pre | --program-pr | --program-p)
1150    ac_prev=program_prefix ;;
1151  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153    program_prefix=$ac_optarg ;;
1154
1155  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156  | --program-suf | --program-su | --program-s)
1157    ac_prev=program_suffix ;;
1158  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160    program_suffix=$ac_optarg ;;
1161
1162  -program-transform-name | --program-transform-name \
1163  | --program-transform-nam | --program-transform-na \
1164  | --program-transform-n | --program-transform- \
1165  | --program-transform | --program-transfor \
1166  | --program-transfo | --program-transf \
1167  | --program-trans | --program-tran \
1168  | --progr-tra | --program-tr | --program-t)
1169    ac_prev=program_transform_name ;;
1170  -program-transform-name=* | --program-transform-name=* \
1171  | --program-transform-nam=* | --program-transform-na=* \
1172  | --program-transform-n=* | --program-transform-=* \
1173  | --program-transform=* | --program-transfor=* \
1174  | --program-transfo=* | --program-transf=* \
1175  | --program-trans=* | --program-tran=* \
1176  | --progr-tra=* | --program-tr=* | --program-t=*)
1177    program_transform_name=$ac_optarg ;;
1178
1179  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180    ac_prev=pdfdir ;;
1181  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182    pdfdir=$ac_optarg ;;
1183
1184  -psdir | --psdir | --psdi | --psd | --ps)
1185    ac_prev=psdir ;;
1186  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187    psdir=$ac_optarg ;;
1188
1189  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190  | -silent | --silent | --silen | --sile | --sil)
1191    silent=yes ;;
1192
1193  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194    ac_prev=sbindir ;;
1195  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196  | --sbi=* | --sb=*)
1197    sbindir=$ac_optarg ;;
1198
1199  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201  | --sharedst | --shareds | --shared | --share | --shar \
1202  | --sha | --sh)
1203    ac_prev=sharedstatedir ;;
1204  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207  | --sha=* | --sh=*)
1208    sharedstatedir=$ac_optarg ;;
1209
1210  -site | --site | --sit)
1211    ac_prev=site ;;
1212  -site=* | --site=* | --sit=*)
1213    site=$ac_optarg ;;
1214
1215  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216    ac_prev=srcdir ;;
1217  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218    srcdir=$ac_optarg ;;
1219
1220  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221  | --syscon | --sysco | --sysc | --sys | --sy)
1222    ac_prev=sysconfdir ;;
1223  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225    sysconfdir=$ac_optarg ;;
1226
1227  -target | --target | --targe | --targ | --tar | --ta | --t)
1228    ac_prev=target_alias ;;
1229  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230    target_alias=$ac_optarg ;;
1231
1232  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233    verbose=yes ;;
1234
1235  -version | --version | --versio | --versi | --vers | -V)
1236    ac_init_version=: ;;
1237
1238  -with-* | --with-*)
1239    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240    # Reject names that are not valid shell variable names.
1241    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242      { echo "$as_me: error: invalid package name: $ac_package" >&2
1243   { (exit 1); exit 1; }; }
1244    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1245    eval with_$ac_package=\$ac_optarg ;;
1246
1247  -without-* | --without-*)
1248    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249    # Reject names that are not valid shell variable names.
1250    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251      { echo "$as_me: error: invalid package name: $ac_package" >&2
1252   { (exit 1); exit 1; }; }
1253    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1254    eval with_$ac_package=no ;;
1255
1256  --x)
1257    # Obsolete; use --with-x.
1258    with_x=yes ;;
1259
1260  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261  | --x-incl | --x-inc | --x-in | --x-i)
1262    ac_prev=x_includes ;;
1263  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265    x_includes=$ac_optarg ;;
1266
1267  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269    ac_prev=x_libraries ;;
1270  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272    x_libraries=$ac_optarg ;;
1273
1274  -*) { echo "$as_me: error: unrecognized option: $ac_option
1275Try \`$0 --help' for more information." >&2
1276   { (exit 1); exit 1; }; }
1277    ;;
1278
1279  *=*)
1280    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281    # Reject names that are not valid shell variable names.
1282    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1283      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1284   { (exit 1); exit 1; }; }
1285    eval $ac_envvar=\$ac_optarg
1286    export $ac_envvar ;;
1287
1288  *)
1289    # FIXME: should be removed in autoconf 3.0.
1290    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1294    ;;
1295
1296  esac
1297done
1298
1299if test -n "$ac_prev"; then
1300  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301  { echo "$as_me: error: missing argument to $ac_option" >&2
1302   { (exit 1); exit 1; }; }
1303fi
1304
1305# Be sure to have absolute directory names.
1306for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307		datadir sysconfdir sharedstatedir localstatedir includedir \
1308		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309		libdir localedir mandir
1310do
1311  eval ac_val=\$$ac_var
1312  case $ac_val in
1313    [\\/$]* | ?:[\\/]* )  continue;;
1314    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315  esac
1316  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1317   { (exit 1); exit 1; }; }
1318done
1319
1320# There might be people who depend on the old broken behavior: `$host'
1321# used to hold the argument of --host etc.
1322# FIXME: To remove some day.
1323build=$build_alias
1324host=$host_alias
1325target=$target_alias
1326
1327# FIXME: To remove some day.
1328if test "x$host_alias" != x; then
1329  if test "x$build_alias" = x; then
1330    cross_compiling=maybe
1331    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1332    If a cross compiler is detected then cross compile mode will be used." >&2
1333  elif test "x$build_alias" != "x$host_alias"; then
1334    cross_compiling=yes
1335  fi
1336fi
1337
1338ac_tool_prefix=
1339test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341test "$silent" = yes && exec 6>/dev/null
1342
1343
1344ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345ac_ls_di=`ls -di .` &&
1346ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347  { echo "$as_me: error: Working directory cannot be determined" >&2
1348   { (exit 1); exit 1; }; }
1349test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350  { echo "$as_me: error: pwd does not report name of working directory" >&2
1351   { (exit 1); exit 1; }; }
1352
1353
1354# Find the source files, if location was not specified.
1355if test -z "$srcdir"; then
1356  ac_srcdir_defaulted=yes
1357  # Try the directory containing this script, then the parent directory.
1358  ac_confdir=`$as_dirname -- "$0" ||
1359$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360	 X"$0" : 'X\(//\)[^/]' \| \
1361	 X"$0" : 'X\(//\)$' \| \
1362	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1363echo X"$0" |
1364    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365	    s//\1/
1366	    q
1367	  }
1368	  /^X\(\/\/\)[^/].*/{
1369	    s//\1/
1370	    q
1371	  }
1372	  /^X\(\/\/\)$/{
1373	    s//\1/
1374	    q
1375	  }
1376	  /^X\(\/\).*/{
1377	    s//\1/
1378	    q
1379	  }
1380	  s/.*/./; q'`
1381  srcdir=$ac_confdir
1382  if test ! -r "$srcdir/$ac_unique_file"; then
1383    srcdir=..
1384  fi
1385else
1386  ac_srcdir_defaulted=no
1387fi
1388if test ! -r "$srcdir/$ac_unique_file"; then
1389  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1390  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1391   { (exit 1); exit 1; }; }
1392fi
1393ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1394ac_abs_confdir=`(
1395	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1396   { (exit 1); exit 1; }; }
1397	pwd)`
1398# When building in place, set srcdir=.
1399if test "$ac_abs_confdir" = "$ac_pwd"; then
1400  srcdir=.
1401fi
1402# Remove unnecessary trailing slashes from srcdir.
1403# Double slashes in file names in object file debugging info
1404# mess up M-x gdb in Emacs.
1405case $srcdir in
1406*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407esac
1408for ac_var in $ac_precious_vars; do
1409  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1410  eval ac_env_${ac_var}_value=\$${ac_var}
1411  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1412  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413done
1414
1415#
1416# Report the --help message.
1417#
1418if test "$ac_init_help" = "long"; then
1419  # Omit some internal or obsolete options to make the list less imposing.
1420  # This message is too long to be a string in the A/UX 3.1 sh.
1421  cat <<_ACEOF
1422\`configure' configures libodbcxx 0.2.5 to adapt to many kinds of systems.
1423
1424Usage: $0 [OPTION]... [VAR=VALUE]...
1425
1426To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427VAR=VALUE.  See below for descriptions of some of the useful variables.
1428
1429Defaults for the options are specified in brackets.
1430
1431Configuration:
1432  -h, --help              display this help and exit
1433      --help=short        display options specific to this package
1434      --help=recursive    display the short help of all the included packages
1435  -V, --version           display version information and exit
1436  -q, --quiet, --silent   do not print \`checking...' messages
1437      --cache-file=FILE   cache test results in FILE [disabled]
1438  -C, --config-cache      alias for \`--cache-file=config.cache'
1439  -n, --no-create         do not create output files
1440      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1441
1442Installation directories:
1443  --prefix=PREFIX         install architecture-independent files in PREFIX
1444			  [$ac_default_prefix]
1445  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1446			  [PREFIX]
1447
1448By default, \`make install' will install all the files in
1449\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1450an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451for instance \`--prefix=\$HOME'.
1452
1453For better control, use the options below.
1454
1455Fine tuning of the installation directories:
1456  --bindir=DIR           user executables [EPREFIX/bin]
1457  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1458  --libexecdir=DIR       program executables [EPREFIX/libexec]
1459  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1460  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1461  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1462  --libdir=DIR           object code libraries [EPREFIX/lib]
1463  --includedir=DIR       C header files [PREFIX/include]
1464  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1465  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1466  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1467  --infodir=DIR          info documentation [DATAROOTDIR/info]
1468  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1469  --mandir=DIR           man documentation [DATAROOTDIR/man]
1470  --docdir=DIR           documentation root [DATAROOTDIR/doc/libodbc++]
1471  --htmldir=DIR          html documentation [DOCDIR]
1472  --dvidir=DIR           dvi documentation [DOCDIR]
1473  --pdfdir=DIR           pdf documentation [DOCDIR]
1474  --psdir=DIR            ps documentation [DOCDIR]
1475_ACEOF
1476
1477  cat <<\_ACEOF
1478
1479Program names:
1480  --program-prefix=PREFIX            prepend PREFIX to installed program names
1481  --program-suffix=SUFFIX            append SUFFIX to installed program names
1482  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1483
1484System types:
1485  --build=BUILD     configure for building on BUILD [guessed]
1486  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1487_ACEOF
1488fi
1489
1490if test -n "$ac_init_help"; then
1491  case $ac_init_help in
1492     short | recursive ) echo "Configuration of libodbcxx 0.2.5:";;
1493   esac
1494  cat <<\_ACEOF
1495
1496Optional Features:
1497  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1498  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1499  --enable-shared[=PKGS]  build shared libraries [default=yes]
1500  --enable-static[=PKGS]  build static libraries [default=no]
1501  --disable-dependency-tracking  speeds up one-time build
1502  --enable-dependency-tracking   do not reject slow dependency extractors
1503  --enable-fast-install[=PKGS]
1504                          optimize for fast installation [default=yes]
1505  --disable-libtool-lock  avoid locking (might break parallel builds)
1506  --enable-threads        Enable threads
1507
1508Optional Packages:
1509  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1510  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1511  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1512  --with-pic              try to use only PIC/non-PIC objects [default=use
1513                          both]
1514  --with-tags[=TAGS]      include additional configurations [automatic]
1515  --with-docdir=DIR       Where to install documentation DATADIR/doc
1516  --with-odbc=DIR       Use unixODBC, optionally installed in DIR
1517  --with-odbc-includes=DIR Find unixODBC headers in DIR
1518  --with-odbc-libraries=DIR Find unixODBC libraries in DIR
1519  --with-iodbc=DIR      Use iodbc, optionally installed in DIR
1520  --with-iodbc-includes=DIR Find iodbc headers in DIR
1521  --with-iodbc-libraries=DIR Find iodbc libraries in DIR
1522  --with-odbc-version=VER Force ODBCVER to VER
1523  --with-isqlxx           Build isql++ default=no
1524  --with-unicode          Use wide strings globally
1525  --with-qt=PREFIX        Use QT installed in DIR
1526  --with-qt-includes=DIR  Use QT headers from DIR
1527  --with-qt-libs=DIR      Use QT libraries from DIR
1528  --with-moc=PATH         Use this moc (for QT support)
1529  --with-qtsqlxx          Build the qtsql++ application
1530  --without-tests         Don't build the test programs
1531
1532Some influential environment variables:
1533  CXX         C++ compiler command
1534  CXXFLAGS    C++ compiler flags
1535  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1536              nonstandard directory <lib dir>
1537  LIBS        libraries to pass to the linker, e.g. -l<library>
1538  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1539              you have headers in a nonstandard directory <include dir>
1540  CXXCPP      C++ preprocessor
1541  CC          C compiler command
1542  CFLAGS      C compiler flags
1543  CPP         C preprocessor
1544  F77         Fortran 77 compiler command
1545  FFLAGS      Fortran 77 compiler flags
1546
1547Use these variables to override the choices made by `configure' or to help
1548it to find libraries and programs with nonstandard names/locations.
1549
1550Report bugs to <libodbcxx-devel@lists.sourceforge.net>.
1551_ACEOF
1552ac_status=$?
1553fi
1554
1555if test "$ac_init_help" = "recursive"; then
1556  # If there are subdirs, report their specific --help.
1557  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558    test -d "$ac_dir" || continue
1559    ac_builddir=.
1560
1561case "$ac_dir" in
1562.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563*)
1564  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1565  # A ".." for each directory in $ac_dir_suffix.
1566  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1567  case $ac_top_builddir_sub in
1568  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570  esac ;;
1571esac
1572ac_abs_top_builddir=$ac_pwd
1573ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574# for backward compatibility:
1575ac_top_builddir=$ac_top_build_prefix
1576
1577case $srcdir in
1578  .)  # We are building in place.
1579    ac_srcdir=.
1580    ac_top_srcdir=$ac_top_builddir_sub
1581    ac_abs_top_srcdir=$ac_pwd ;;
1582  [\\/]* | ?:[\\/]* )  # Absolute name.
1583    ac_srcdir=$srcdir$ac_dir_suffix;
1584    ac_top_srcdir=$srcdir
1585    ac_abs_top_srcdir=$srcdir ;;
1586  *) # Relative name.
1587    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588    ac_top_srcdir=$ac_top_build_prefix$srcdir
1589    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590esac
1591ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592
1593    cd "$ac_dir" || { ac_status=$?; continue; }
1594    # Check for guested configure.
1595    if test -f "$ac_srcdir/configure.gnu"; then
1596      echo &&
1597      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598    elif test -f "$ac_srcdir/configure"; then
1599      echo &&
1600      $SHELL "$ac_srcdir/configure" --help=recursive
1601    else
1602      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603    fi || ac_status=$?
1604    cd "$ac_pwd" || { ac_status=$?; break; }
1605  done
1606fi
1607
1608test -n "$ac_init_help" && exit $ac_status
1609if $ac_init_version; then
1610  cat <<\_ACEOF
1611libodbcxx configure 0.2.5
1612generated by GNU Autoconf 2.61
1613
1614Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16152002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1616This configure script is free software; the Free Software Foundation
1617gives unlimited permission to copy, distribute and modify it.
1618_ACEOF
1619  exit
1620fi
1621cat >config.log <<_ACEOF
1622This file contains any messages produced by compilers while
1623running configure, to aid debugging if configure makes a mistake.
1624
1625It was created by libodbcxx $as_me 0.2.5, which was
1626generated by GNU Autoconf 2.61.  Invocation command line was
1627
1628  $ $0 $@
1629
1630_ACEOF
1631exec 5>>config.log
1632{
1633cat <<_ASUNAME
1634## --------- ##
1635## Platform. ##
1636## --------- ##
1637
1638hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1639uname -m = `(uname -m) 2>/dev/null || echo unknown`
1640uname -r = `(uname -r) 2>/dev/null || echo unknown`
1641uname -s = `(uname -s) 2>/dev/null || echo unknown`
1642uname -v = `(uname -v) 2>/dev/null || echo unknown`
1643
1644/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1645/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1646
1647/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1648/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1649/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1650/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1651/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1652/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1653/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1654
1655_ASUNAME
1656
1657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658for as_dir in $PATH
1659do
1660  IFS=$as_save_IFS
1661  test -z "$as_dir" && as_dir=.
1662  echo "PATH: $as_dir"
1663done
1664IFS=$as_save_IFS
1665
1666} >&5
1667
1668cat >&5 <<_ACEOF
1669
1670
1671## ----------- ##
1672## Core tests. ##
1673## ----------- ##
1674
1675_ACEOF
1676
1677
1678# Keep a trace of the command line.
1679# Strip out --no-create and --no-recursion so they do not pile up.
1680# Strip out --silent because we don't want to record it for future runs.
1681# Also quote any args containing shell meta-characters.
1682# Make two passes to allow for proper duplicate-argument suppression.
1683ac_configure_args=
1684ac_configure_args0=
1685ac_configure_args1=
1686ac_must_keep_next=false
1687for ac_pass in 1 2
1688do
1689  for ac_arg
1690  do
1691    case $ac_arg in
1692    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1693    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1694    | -silent | --silent | --silen | --sile | --sil)
1695      continue ;;
1696    *\'*)
1697      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1698    esac
1699    case $ac_pass in
1700    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1701    2)
1702      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1703      if test $ac_must_keep_next = true; then
1704	ac_must_keep_next=false # Got value, back to normal.
1705      else
1706	case $ac_arg in
1707	  *=* | --config-cache | -C | -disable-* | --disable-* \
1708	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1709	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1710	  | -with-* | --with-* | -without-* | --without-* | --x)
1711	    case "$ac_configure_args0 " in
1712	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1713	    esac
1714	    ;;
1715	  -* ) ac_must_keep_next=true ;;
1716	esac
1717      fi
1718      ac_configure_args="$ac_configure_args '$ac_arg'"
1719      ;;
1720    esac
1721  done
1722done
1723$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1724$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1725
1726# When interrupted or exit'd, cleanup temporary files, and complete
1727# config.log.  We remove comments because anyway the quotes in there
1728# would cause problems or look ugly.
1729# WARNING: Use '\'' to represent an apostrophe within the trap.
1730# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1731trap 'exit_status=$?
1732  # Save into config.log some information that might help in debugging.
1733  {
1734    echo
1735
1736    cat <<\_ASBOX
1737## ---------------- ##
1738## Cache variables. ##
1739## ---------------- ##
1740_ASBOX
1741    echo
1742    # The following way of writing the cache mishandles newlines in values,
1743(
1744  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1745    eval ac_val=\$$ac_var
1746    case $ac_val in #(
1747    *${as_nl}*)
1748      case $ac_var in #(
1749      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1750echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1751      esac
1752      case $ac_var in #(
1753      _ | IFS | as_nl) ;; #(
1754      *) $as_unset $ac_var ;;
1755      esac ;;
1756    esac
1757  done
1758  (set) 2>&1 |
1759    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1760    *${as_nl}ac_space=\ *)
1761      sed -n \
1762	"s/'\''/'\''\\\\'\'''\''/g;
1763	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1764      ;; #(
1765    *)
1766      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1767      ;;
1768    esac |
1769    sort
1770)
1771    echo
1772
1773    cat <<\_ASBOX
1774## ----------------- ##
1775## Output variables. ##
1776## ----------------- ##
1777_ASBOX
1778    echo
1779    for ac_var in $ac_subst_vars
1780    do
1781      eval ac_val=\$$ac_var
1782      case $ac_val in
1783      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1784      esac
1785      echo "$ac_var='\''$ac_val'\''"
1786    done | sort
1787    echo
1788
1789    if test -n "$ac_subst_files"; then
1790      cat <<\_ASBOX
1791## ------------------- ##
1792## File substitutions. ##
1793## ------------------- ##
1794_ASBOX
1795      echo
1796      for ac_var in $ac_subst_files
1797      do
1798	eval ac_val=\$$ac_var
1799	case $ac_val in
1800	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801	esac
1802	echo "$ac_var='\''$ac_val'\''"
1803      done | sort
1804      echo
1805    fi
1806
1807    if test -s confdefs.h; then
1808      cat <<\_ASBOX
1809## ----------- ##
1810## confdefs.h. ##
1811## ----------- ##
1812_ASBOX
1813      echo
1814      cat confdefs.h
1815      echo
1816    fi
1817    test "$ac_signal" != 0 &&
1818      echo "$as_me: caught signal $ac_signal"
1819    echo "$as_me: exit $exit_status"
1820  } >&5
1821  rm -f core *.core core.conftest.* &&
1822    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1823    exit $exit_status
1824' 0
1825for ac_signal in 1 2 13 15; do
1826  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1827done
1828ac_signal=0
1829
1830# confdefs.h avoids OS command line length limits that DEFS can exceed.
1831rm -f -r conftest* confdefs.h
1832
1833# Predefined preprocessor variables.
1834
1835cat >>confdefs.h <<_ACEOF
1836#define PACKAGE_NAME "$PACKAGE_NAME"
1837_ACEOF
1838
1839
1840cat >>confdefs.h <<_ACEOF
1841#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1842_ACEOF
1843
1844
1845cat >>confdefs.h <<_ACEOF
1846#define PACKAGE_VERSION "$PACKAGE_VERSION"
1847_ACEOF
1848
1849
1850cat >>confdefs.h <<_ACEOF
1851#define PACKAGE_STRING "$PACKAGE_STRING"
1852_ACEOF
1853
1854
1855cat >>confdefs.h <<_ACEOF
1856#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1857_ACEOF
1858
1859
1860# Let the site file select an alternate cache file if it wants to.
1861# Prefer explicitly selected file to automatically selected ones.
1862if test -n "$CONFIG_SITE"; then
1863  set x "$CONFIG_SITE"
1864elif test "x$prefix" != xNONE; then
1865  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1866else
1867  set x "$ac_default_prefix/share/config.site" \
1868	"$ac_default_prefix/etc/config.site"
1869fi
1870shift
1871for ac_site_file
1872do
1873  if test -r "$ac_site_file"; then
1874    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1875echo "$as_me: loading site script $ac_site_file" >&6;}
1876    sed 's/^/| /' "$ac_site_file" >&5
1877    . "$ac_site_file"
1878  fi
1879done
1880
1881if test -r "$cache_file"; then
1882  # Some versions of bash will fail to source /dev/null (special
1883  # files actually), so we avoid doing that.
1884  if test -f "$cache_file"; then
1885    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1886echo "$as_me: loading cache $cache_file" >&6;}
1887    case $cache_file in
1888      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1889      *)                      . "./$cache_file";;
1890    esac
1891  fi
1892else
1893  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1894echo "$as_me: creating cache $cache_file" >&6;}
1895  >$cache_file
1896fi
1897
1898# Check that the precious variables saved in the cache have kept the same
1899# value.
1900ac_cache_corrupted=false
1901for ac_var in $ac_precious_vars; do
1902  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1903  eval ac_new_set=\$ac_env_${ac_var}_set
1904  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1905  eval ac_new_val=\$ac_env_${ac_var}_value
1906  case $ac_old_set,$ac_new_set in
1907    set,)
1908      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1909echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1910      ac_cache_corrupted=: ;;
1911    ,set)
1912      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1913echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1914      ac_cache_corrupted=: ;;
1915    ,);;
1916    *)
1917      if test "x$ac_old_val" != "x$ac_new_val"; then
1918	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1919echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1920	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1921echo "$as_me:   former value:  $ac_old_val" >&2;}
1922	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1923echo "$as_me:   current value: $ac_new_val" >&2;}
1924	ac_cache_corrupted=:
1925      fi;;
1926  esac
1927  # Pass precious variables to config.status.
1928  if test "$ac_new_set" = set; then
1929    case $ac_new_val in
1930    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1931    *) ac_arg=$ac_var=$ac_new_val ;;
1932    esac
1933    case " $ac_configure_args " in
1934      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1935      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1936    esac
1937  fi
1938done
1939if $ac_cache_corrupted; then
1940  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1941echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1942  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1943echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1944   { (exit 1); exit 1; }; }
1945fi
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971ac_ext=c
1972ac_cpp='$CPP $CPPFLAGS'
1973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975ac_compiler_gnu=$ac_cv_c_compiler_gnu
1976
1977
1978
1979am__api_version='1.10'
1980
1981ac_aux_dir=
1982for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1983  if test -f "$ac_dir/install-sh"; then
1984    ac_aux_dir=$ac_dir
1985    ac_install_sh="$ac_aux_dir/install-sh -c"
1986    break
1987  elif test -f "$ac_dir/install.sh"; then
1988    ac_aux_dir=$ac_dir
1989    ac_install_sh="$ac_aux_dir/install.sh -c"
1990    break
1991  elif test -f "$ac_dir/shtool"; then
1992    ac_aux_dir=$ac_dir
1993    ac_install_sh="$ac_aux_dir/shtool install -c"
1994    break
1995  fi
1996done
1997if test -z "$ac_aux_dir"; then
1998  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1999echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2000   { (exit 1); exit 1; }; }
2001fi
2002
2003# These three variables are undocumented and unsupported,
2004# and are intended to be withdrawn in a future Autoconf release.
2005# They can cause serious problems if a builder's source tree is in a directory
2006# whose full name contains unusual characters.
2007ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2008ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2009ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2010
2011
2012# Find a good install program.  We prefer a C program (faster),
2013# so one script is as good as another.  But avoid the broken or
2014# incompatible versions:
2015# SysV /etc/install, /usr/sbin/install
2016# SunOS /usr/etc/install
2017# IRIX /sbin/install
2018# AIX /bin/install
2019# AmigaOS /C/install, which installs bootblocks on floppy discs
2020# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2021# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2022# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2023# OS/2's system install, which has a completely different semantic
2024# ./install, which can be erroneously created by make from ./install.sh.
2025{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2026echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2027if test -z "$INSTALL"; then
2028if test "${ac_cv_path_install+set}" = set; then
2029  echo $ECHO_N "(cached) $ECHO_C" >&6
2030else
2031  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032for as_dir in $PATH
2033do
2034  IFS=$as_save_IFS
2035  test -z "$as_dir" && as_dir=.
2036  # Account for people who put trailing slashes in PATH elements.
2037case $as_dir/ in
2038  ./ | .// | /cC/* | \
2039  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2040  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2041  /usr/ucb/* ) ;;
2042  *)
2043    # OSF1 and SCO ODT 3.0 have their own names for install.
2044    # Don't use installbsd from OSF since it installs stuff as root
2045    # by default.
2046    for ac_prog in ginstall scoinst install; do
2047      for ac_exec_ext in '' $ac_executable_extensions; do
2048	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2049	  if test $ac_prog = install &&
2050	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2051	    # AIX install.  It has an incompatible calling convention.
2052	    :
2053	  elif test $ac_prog = install &&
2054	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2055	    # program-specific install script used by HP pwplus--don't use.
2056	    :
2057	  else
2058	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2059	    break 3
2060	  fi
2061	fi
2062      done
2063    done
2064    ;;
2065esac
2066done
2067IFS=$as_save_IFS
2068
2069
2070fi
2071  if test "${ac_cv_path_install+set}" = set; then
2072    INSTALL=$ac_cv_path_install
2073  else
2074    # As a last resort, use the slow shell script.  Don't cache a
2075    # value for INSTALL within a source directory, because that will
2076    # break other packages using the cache if that directory is
2077    # removed, or if the value is a relative name.
2078    INSTALL=$ac_install_sh
2079  fi
2080fi
2081{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2082echo "${ECHO_T}$INSTALL" >&6; }
2083
2084# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2085# It thinks the first close brace ends the variable substitution.
2086test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2087
2088test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2089
2090test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2091
2092{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2093echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2094# Just in case
2095sleep 1
2096echo timestamp > conftest.file
2097# Do `set' in a subshell so we don't clobber the current shell's
2098# arguments.  Must try -L first in case configure is actually a
2099# symlink; some systems play weird games with the mod time of symlinks
2100# (eg FreeBSD returns the mod time of the symlink's containing
2101# directory).
2102if (
2103   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2104   if test "$*" = "X"; then
2105      # -L didn't work.
2106      set X `ls -t $srcdir/configure conftest.file`
2107   fi
2108   rm -f conftest.file
2109   if test "$*" != "X $srcdir/configure conftest.file" \
2110      && test "$*" != "X conftest.file $srcdir/configure"; then
2111
2112      # If neither matched, then we have a broken ls.  This can happen
2113      # if, for instance, CONFIG_SHELL is bash and it inherits a
2114      # broken ls alias from the environment.  This has actually
2115      # happened.  Such a system could not be considered "sane".
2116      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2117alias in your environment" >&5
2118echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2119alias in your environment" >&2;}
2120   { (exit 1); exit 1; }; }
2121   fi
2122
2123   test "$2" = conftest.file
2124   )
2125then
2126   # Ok.
2127   :
2128else
2129   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2130Check your system clock" >&5
2131echo "$as_me: error: newly created file is older than distributed files!
2132Check your system clock" >&2;}
2133   { (exit 1); exit 1; }; }
2134fi
2135{ echo "$as_me:$LINENO: result: yes" >&5
2136echo "${ECHO_T}yes" >&6; }
2137test "$program_prefix" != NONE &&
2138  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2139# Use a double $ so make ignores it.
2140test "$program_suffix" != NONE &&
2141  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2142# Double any \ or $.  echo might interpret backslashes.
2143# By default was `s,x,x', remove it if useless.
2144cat <<\_ACEOF >conftest.sed
2145s/[\\$]/&&/g;s/;s,x,x,$//
2146_ACEOF
2147program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2148rm -f conftest.sed
2149
2150# expand $ac_aux_dir to an absolute path
2151am_aux_dir=`cd $ac_aux_dir && pwd`
2152
2153test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2154# Use eval to expand $SHELL
2155if eval "$MISSING --run true"; then
2156  am_missing_run="$MISSING --run "
2157else
2158  am_missing_run=
2159  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2160echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2161fi
2162
2163{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2164echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2165if test -z "$MKDIR_P"; then
2166  if test "${ac_cv_path_mkdir+set}" = set; then
2167  echo $ECHO_N "(cached) $ECHO_C" >&6
2168else
2169  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2171do
2172  IFS=$as_save_IFS
2173  test -z "$as_dir" && as_dir=.
2174  for ac_prog in mkdir gmkdir; do
2175	 for ac_exec_ext in '' $ac_executable_extensions; do
2176	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2177	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2178	     'mkdir (GNU coreutils) '* | \
2179	     'mkdir (coreutils) '* | \
2180	     'mkdir (fileutils) '4.1*)
2181	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2182	       break 3;;
2183	   esac
2184	 done
2185       done
2186done
2187IFS=$as_save_IFS
2188
2189fi
2190
2191  if test "${ac_cv_path_mkdir+set}" = set; then
2192    MKDIR_P="$ac_cv_path_mkdir -p"
2193  else
2194    # As a last resort, use the slow shell script.  Don't cache a
2195    # value for MKDIR_P within a source directory, because that will
2196    # break other packages using the cache if that directory is
2197    # removed, or if the value is a relative name.
2198    test -d ./--version && rmdir ./--version
2199    MKDIR_P="$ac_install_sh -d"
2200  fi
2201fi
2202{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2203echo "${ECHO_T}$MKDIR_P" >&6; }
2204
2205mkdir_p="$MKDIR_P"
2206case $mkdir_p in
2207  [\\/$]* | ?:[\\/]*) ;;
2208  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2209esac
2210
2211for ac_prog in gawk mawk nawk awk
2212do
2213  # Extract the first word of "$ac_prog", so it can be a program name with args.
2214set dummy $ac_prog; ac_word=$2
2215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2217if test "${ac_cv_prog_AWK+set}" = set; then
2218  echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220  if test -n "$AWK"; then
2221  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2222else
2223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224for as_dir in $PATH
2225do
2226  IFS=$as_save_IFS
2227  test -z "$as_dir" && as_dir=.
2228  for ac_exec_ext in '' $ac_executable_extensions; do
2229  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2230    ac_cv_prog_AWK="$ac_prog"
2231    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232    break 2
2233  fi
2234done
2235done
2236IFS=$as_save_IFS
2237
2238fi
2239fi
2240AWK=$ac_cv_prog_AWK
2241if test -n "$AWK"; then
2242  { echo "$as_me:$LINENO: result: $AWK" >&5
2243echo "${ECHO_T}$AWK" >&6; }
2244else
2245  { echo "$as_me:$LINENO: result: no" >&5
2246echo "${ECHO_T}no" >&6; }
2247fi
2248
2249
2250  test -n "$AWK" && break
2251done
2252
2253{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2254echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2255set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2256if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2257  echo $ECHO_N "(cached) $ECHO_C" >&6
2258else
2259  cat >conftest.make <<\_ACEOF
2260SHELL = /bin/sh
2261all:
2262	@echo '@@@%%%=$(MAKE)=@@@%%%'
2263_ACEOF
2264# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2265case `${MAKE-make} -f conftest.make 2>/dev/null` in
2266  *@@@%%%=?*=@@@%%%*)
2267    eval ac_cv_prog_make_${ac_make}_set=yes;;
2268  *)
2269    eval ac_cv_prog_make_${ac_make}_set=no;;
2270esac
2271rm -f conftest.make
2272fi
2273if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2274  { echo "$as_me:$LINENO: result: yes" >&5
2275echo "${ECHO_T}yes" >&6; }
2276  SET_MAKE=
2277else
2278  { echo "$as_me:$LINENO: result: no" >&5
2279echo "${ECHO_T}no" >&6; }
2280  SET_MAKE="MAKE=${MAKE-make}"
2281fi
2282
2283rm -rf .tst 2>/dev/null
2284mkdir .tst 2>/dev/null
2285if test -d .tst; then
2286  am__leading_dot=.
2287else
2288  am__leading_dot=_
2289fi
2290rmdir .tst 2>/dev/null
2291
2292if test "`cd $srcdir && pwd`" != "`pwd`"; then
2293  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2294  # is not polluted with repeated "-I."
2295  am__isrc=' -I$(srcdir)'
2296  # test to see if srcdir already configured
2297  if test -f $srcdir/config.status; then
2298    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2299echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2300   { (exit 1); exit 1; }; }
2301  fi
2302fi
2303
2304# test whether we have cygpath
2305if test -z "$CYGPATH_W"; then
2306  if (cygpath --version) >/dev/null 2>/dev/null; then
2307    CYGPATH_W='cygpath -w'
2308  else
2309    CYGPATH_W=echo
2310  fi
2311fi
2312
2313
2314# Define the identity of the package.
2315 PACKAGE='libodbc++'
2316 VERSION='0.2.5'
2317
2318
2319cat >>confdefs.h <<_ACEOF
2320#define PACKAGE "$PACKAGE"
2321_ACEOF
2322
2323
2324cat >>confdefs.h <<_ACEOF
2325#define VERSION "$VERSION"
2326_ACEOF
2327
2328# Some tools Automake needs.
2329
2330ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2331
2332
2333AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2334
2335
2336AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2337
2338
2339AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2340
2341
2342MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2343
2344install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2345
2346# Installed binaries are usually stripped using `strip' when the user
2347# run `make install-strip'.  However `strip' might not be the right
2348# tool to use in cross-compilation environments, therefore Automake
2349# will honor the `STRIP' environment variable to overrule this program.
2350if test "$cross_compiling" != no; then
2351  if test -n "$ac_tool_prefix"; then
2352  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2353set dummy ${ac_tool_prefix}strip; ac_word=$2
2354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2356if test "${ac_cv_prog_STRIP+set}" = set; then
2357  echo $ECHO_N "(cached) $ECHO_C" >&6
2358else
2359  if test -n "$STRIP"; then
2360  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2361else
2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363for as_dir in $PATH
2364do
2365  IFS=$as_save_IFS
2366  test -z "$as_dir" && as_dir=.
2367  for ac_exec_ext in '' $ac_executable_extensions; do
2368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2369    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2370    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371    break 2
2372  fi
2373done
2374done
2375IFS=$as_save_IFS
2376
2377fi
2378fi
2379STRIP=$ac_cv_prog_STRIP
2380if test -n "$STRIP"; then
2381  { echo "$as_me:$LINENO: result: $STRIP" >&5
2382echo "${ECHO_T}$STRIP" >&6; }
2383else
2384  { echo "$as_me:$LINENO: result: no" >&5
2385echo "${ECHO_T}no" >&6; }
2386fi
2387
2388
2389fi
2390if test -z "$ac_cv_prog_STRIP"; then
2391  ac_ct_STRIP=$STRIP
2392  # Extract the first word of "strip", so it can be a program name with args.
2393set dummy strip; ac_word=$2
2394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2397  echo $ECHO_N "(cached) $ECHO_C" >&6
2398else
2399  if test -n "$ac_ct_STRIP"; then
2400  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2401else
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405  IFS=$as_save_IFS
2406  test -z "$as_dir" && as_dir=.
2407  for ac_exec_ext in '' $ac_executable_extensions; do
2408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409    ac_cv_prog_ac_ct_STRIP="strip"
2410    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411    break 2
2412  fi
2413done
2414done
2415IFS=$as_save_IFS
2416
2417fi
2418fi
2419ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2420if test -n "$ac_ct_STRIP"; then
2421  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2422echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2423else
2424  { echo "$as_me:$LINENO: result: no" >&5
2425echo "${ECHO_T}no" >&6; }
2426fi
2427
2428  if test "x$ac_ct_STRIP" = x; then
2429    STRIP=":"
2430  else
2431    case $cross_compiling:$ac_tool_warned in
2432yes:)
2433{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2434whose name does not start with the host triplet.  If you think this
2435configuration is useful to you, please write to autoconf@gnu.org." >&5
2436echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2437whose name does not start with the host triplet.  If you think this
2438configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2439ac_tool_warned=yes ;;
2440esac
2441    STRIP=$ac_ct_STRIP
2442  fi
2443else
2444  STRIP="$ac_cv_prog_STRIP"
2445fi
2446
2447fi
2448INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2449
2450# We need awk for the "check" target.  The system "awk" is bad on
2451# some platforms.
2452# Always define AMTAR for backward compatibility.
2453
2454AMTAR=${AMTAR-"${am_missing_run}tar"}
2455
2456am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2457
2458
2459
2460
2461
2462ac_config_headers="$ac_config_headers config.h"
2463
2464
2465# version is current:revision:age
2466# versioning works like this:
2467# on implementation change:     revision++
2468# on interface change:          revision=0, current++
2469# on interface addition:        age++
2470# on interface removal:         age=0
2471
2472lib_version=4:0:0
2473
2474
2475# Check whether --enable-shared was given.
2476if test "${enable_shared+set}" = set; then
2477  enableval=$enable_shared; p=${PACKAGE-default}
2478    case $enableval in
2479    yes) enable_shared=yes ;;
2480    no) enable_shared=no ;;
2481    *)
2482      enable_shared=no
2483      # Look at the argument we got.  We use all the common list separators.
2484      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2485      for pkg in $enableval; do
2486	IFS="$lt_save_ifs"
2487	if test "X$pkg" = "X$p"; then
2488	  enable_shared=yes
2489	fi
2490      done
2491      IFS="$lt_save_ifs"
2492      ;;
2493    esac
2494else
2495  enable_shared=yes
2496fi
2497
2498
2499# Check whether --enable-static was given.
2500if test "${enable_static+set}" = set; then
2501  enableval=$enable_static; p=${PACKAGE-default}
2502    case $enableval in
2503    yes) enable_static=yes ;;
2504    no) enable_static=no ;;
2505    *)
2506     enable_static=no
2507      # Look at the argument we got.  We use all the common list separators.
2508      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2509      for pkg in $enableval; do
2510	IFS="$lt_save_ifs"
2511	if test "X$pkg" = "X$p"; then
2512	  enable_static=yes
2513	fi
2514      done
2515      IFS="$lt_save_ifs"
2516      ;;
2517    esac
2518else
2519  enable_static=no
2520fi
2521
2522
2523
2524# Prevents the Makefile rebuild rules runnning automatically. Use
2525# autogen.sh instead.
2526# AM_MAINTAINER_MODE
2527
2528# Make sure we can run config.sub.
2529$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2530  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2531echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2532   { (exit 1); exit 1; }; }
2533
2534{ echo "$as_me:$LINENO: checking build system type" >&5
2535echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2536if test "${ac_cv_build+set}" = set; then
2537  echo $ECHO_N "(cached) $ECHO_C" >&6
2538else
2539  ac_build_alias=$build_alias
2540test "x$ac_build_alias" = x &&
2541  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2542test "x$ac_build_alias" = x &&
2543  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2544echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2545   { (exit 1); exit 1; }; }
2546ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2547  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2548echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2549   { (exit 1); exit 1; }; }
2550
2551fi
2552{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2553echo "${ECHO_T}$ac_cv_build" >&6; }
2554case $ac_cv_build in
2555*-*-*) ;;
2556*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2557echo "$as_me: error: invalid value of canonical build" >&2;}
2558   { (exit 1); exit 1; }; };;
2559esac
2560build=$ac_cv_build
2561ac_save_IFS=$IFS; IFS='-'
2562set x $ac_cv_build
2563shift
2564build_cpu=$1
2565build_vendor=$2
2566shift; shift
2567# Remember, the first character of IFS is used to create $*,
2568# except with old shells:
2569build_os=$*
2570IFS=$ac_save_IFS
2571case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2572
2573
2574{ echo "$as_me:$LINENO: checking host system type" >&5
2575echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2576if test "${ac_cv_host+set}" = set; then
2577  echo $ECHO_N "(cached) $ECHO_C" >&6
2578else
2579  if test "x$host_alias" = x; then
2580  ac_cv_host=$ac_cv_build
2581else
2582  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2583    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2584echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2585   { (exit 1); exit 1; }; }
2586fi
2587
2588fi
2589{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2590echo "${ECHO_T}$ac_cv_host" >&6; }
2591case $ac_cv_host in
2592*-*-*) ;;
2593*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2594echo "$as_me: error: invalid value of canonical host" >&2;}
2595   { (exit 1); exit 1; }; };;
2596esac
2597host=$ac_cv_host
2598ac_save_IFS=$IFS; IFS='-'
2599set x $ac_cv_host
2600shift
2601host_cpu=$1
2602host_vendor=$2
2603shift; shift
2604# Remember, the first character of IFS is used to create $*,
2605# except with old shells:
2606host_os=$*
2607IFS=$ac_save_IFS
2608case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2609
2610
2611
2612# Extract the first word of "sed", so it can be a program name with args.
2613set dummy sed; ac_word=$2
2614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2616if test "${ac_cv_path_sed+set}" = set; then
2617  echo $ECHO_N "(cached) $ECHO_C" >&6
2618else
2619  case $sed in
2620  [\\/]* | ?:[\\/]*)
2621  ac_cv_path_sed="$sed" # Let the user override the test with a path.
2622  ;;
2623  *)
2624  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625for as_dir in $PATH
2626do
2627  IFS=$as_save_IFS
2628  test -z "$as_dir" && as_dir=.
2629  for ac_exec_ext in '' $ac_executable_extensions; do
2630  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2631    ac_cv_path_sed="$as_dir/$ac_word$ac_exec_ext"
2632    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633    break 2
2634  fi
2635done
2636done
2637IFS=$as_save_IFS
2638
2639  ;;
2640esac
2641fi
2642sed=$ac_cv_path_sed
2643if test -n "$sed"; then
2644  { echo "$as_me:$LINENO: result: $sed" >&5
2645echo "${ECHO_T}$sed" >&6; }
2646else
2647  { echo "$as_me:$LINENO: result: no" >&5
2648echo "${ECHO_T}no" >&6; }
2649fi
2650
2651
2652
2653if test "x$sed" = "x"
2654then
2655	{ { echo "$as_me:$LINENO: error: No sed found. Please install one and try again.
2656For example, GNU sed can be obtained at ftp://prep.ai.mit.edu/pub/gnu/sed/." >&5
2657echo "$as_me: error: No sed found. Please install one and try again.
2658For example, GNU sed can be obtained at ftp://prep.ai.mit.edu/pub/gnu/sed/." >&2;}
2659   { (exit 1); exit 1; }; }
2660fi
2661
2662ac_ext=cpp
2663ac_cpp='$CXXCPP $CPPFLAGS'
2664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2667if test -z "$CXX"; then
2668  if test -n "$CCC"; then
2669    CXX=$CCC
2670  else
2671    if test -n "$ac_tool_prefix"; then
2672  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2673  do
2674    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2675set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2676{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2678if test "${ac_cv_prog_CXX+set}" = set; then
2679  echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681  if test -n "$CXX"; then
2682  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687  IFS=$as_save_IFS
2688  test -z "$as_dir" && as_dir=.
2689  for ac_exec_ext in '' $ac_executable_extensions; do
2690  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2692    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693    break 2
2694  fi
2695done
2696done
2697IFS=$as_save_IFS
2698
2699fi
2700fi
2701CXX=$ac_cv_prog_CXX
2702if test -n "$CXX"; then
2703  { echo "$as_me:$LINENO: result: $CXX" >&5
2704echo "${ECHO_T}$CXX" >&6; }
2705else
2706  { echo "$as_me:$LINENO: result: no" >&5
2707echo "${ECHO_T}no" >&6; }
2708fi
2709
2710
2711    test -n "$CXX" && break
2712  done
2713fi
2714if test -z "$CXX"; then
2715  ac_ct_CXX=$CXX
2716  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2717do
2718  # Extract the first word of "$ac_prog", so it can be a program name with args.
2719set dummy $ac_prog; ac_word=$2
2720{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2722if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2723  echo $ECHO_N "(cached) $ECHO_C" >&6
2724else
2725  if test -n "$ac_ct_CXX"; then
2726  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2727else
2728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729for as_dir in $PATH
2730do
2731  IFS=$as_save_IFS
2732  test -z "$as_dir" && as_dir=.
2733  for ac_exec_ext in '' $ac_executable_extensions; do
2734  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2735    ac_cv_prog_ac_ct_CXX="$ac_prog"
2736    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737    break 2
2738  fi
2739done
2740done
2741IFS=$as_save_IFS
2742
2743fi
2744fi
2745ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2746if test -n "$ac_ct_CXX"; then
2747  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2748echo "${ECHO_T}$ac_ct_CXX" >&6; }
2749else
2750  { echo "$as_me:$LINENO: result: no" >&5
2751echo "${ECHO_T}no" >&6; }
2752fi
2753
2754
2755  test -n "$ac_ct_CXX" && break
2756done
2757
2758  if test "x$ac_ct_CXX" = x; then
2759    CXX="g++"
2760  else
2761    case $cross_compiling:$ac_tool_warned in
2762yes:)
2763{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2764whose name does not start with the host triplet.  If you think this
2765configuration is useful to you, please write to autoconf@gnu.org." >&5
2766echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2767whose name does not start with the host triplet.  If you think this
2768configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2769ac_tool_warned=yes ;;
2770esac
2771    CXX=$ac_ct_CXX
2772  fi
2773fi
2774
2775  fi
2776fi
2777# Provide some information about the compiler.
2778echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2779ac_compiler=`set X $ac_compile; echo $2`
2780{ (ac_try="$ac_compiler --version >&5"
2781case "(($ac_try" in
2782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783  *) ac_try_echo=$ac_try;;
2784esac
2785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786  (eval "$ac_compiler --version >&5") 2>&5
2787  ac_status=$?
2788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789  (exit $ac_status); }
2790{ (ac_try="$ac_compiler -v >&5"
2791case "(($ac_try" in
2792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793  *) ac_try_echo=$ac_try;;
2794esac
2795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2796  (eval "$ac_compiler -v >&5") 2>&5
2797  ac_status=$?
2798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799  (exit $ac_status); }
2800{ (ac_try="$ac_compiler -V >&5"
2801case "(($ac_try" in
2802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803  *) ac_try_echo=$ac_try;;
2804esac
2805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2806  (eval "$ac_compiler -V >&5") 2>&5
2807  ac_status=$?
2808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809  (exit $ac_status); }
2810
2811cat >conftest.$ac_ext <<_ACEOF
2812/* confdefs.h.  */
2813_ACEOF
2814cat confdefs.h >>conftest.$ac_ext
2815cat >>conftest.$ac_ext <<_ACEOF
2816/* end confdefs.h.  */
2817
2818int
2819main ()
2820{
2821
2822  ;
2823  return 0;
2824}
2825_ACEOF
2826ac_clean_files_save=$ac_clean_files
2827ac_clean_files="$ac_clean_files a.out a.exe b.out"
2828# Try to create an executable without -o first, disregard a.out.
2829# It will help us diagnose broken compilers, and finding out an intuition
2830# of exeext.
2831{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2832echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2833ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2834#
2835# List of possible output files, starting from the most likely.
2836# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2837# only as a last resort.  b.out is created by i960 compilers.
2838ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2839#
2840# The IRIX 6 linker writes into existing files which may not be
2841# executable, retaining their permissions.  Remove them first so a
2842# subsequent execution test works.
2843ac_rmfiles=
2844for ac_file in $ac_files
2845do
2846  case $ac_file in
2847    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2848    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2849  esac
2850done
2851rm -f $ac_rmfiles
2852
2853if { (ac_try="$ac_link_default"
2854case "(($ac_try" in
2855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856  *) ac_try_echo=$ac_try;;
2857esac
2858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2859  (eval "$ac_link_default") 2>&5
2860  ac_status=$?
2861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862  (exit $ac_status); }; then
2863  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2864# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2865# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2866# so that the user can short-circuit this test for compilers unknown to
2867# Autoconf.
2868for ac_file in $ac_files ''
2869do
2870  test -f "$ac_file" || continue
2871  case $ac_file in
2872    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2873	;;
2874    [ab].out )
2875	# We found the default executable, but exeext='' is most
2876	# certainly right.
2877	break;;
2878    *.* )
2879        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2880	then :; else
2881	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2882	fi
2883	# We set ac_cv_exeext here because the later test for it is not
2884	# safe: cross compilers may not add the suffix if given an `-o'
2885	# argument, so we may need to know it at that point already.
2886	# Even if this section looks crufty: it has the advantage of
2887	# actually working.
2888	break;;
2889    * )
2890	break;;
2891  esac
2892done
2893test "$ac_cv_exeext" = no && ac_cv_exeext=
2894
2895else
2896  ac_file=''
2897fi
2898
2899{ echo "$as_me:$LINENO: result: $ac_file" >&5
2900echo "${ECHO_T}$ac_file" >&6; }
2901if test -z "$ac_file"; then
2902  echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2906See \`config.log' for more details." >&5
2907echo "$as_me: error: C++ compiler cannot create executables
2908See \`config.log' for more details." >&2;}
2909   { (exit 77); exit 77; }; }
2910fi
2911
2912ac_exeext=$ac_cv_exeext
2913
2914# Check that the compiler produces executables we can run.  If not, either
2915# the compiler is broken, or we cross compile.
2916{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2917echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2918# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2919# If not cross compiling, check that we can run a simple program.
2920if test "$cross_compiling" != yes; then
2921  if { ac_try='./$ac_file'
2922  { (case "(($ac_try" in
2923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924  *) ac_try_echo=$ac_try;;
2925esac
2926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927  (eval "$ac_try") 2>&5
2928  ac_status=$?
2929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930  (exit $ac_status); }; }; then
2931    cross_compiling=no
2932  else
2933    if test "$cross_compiling" = maybe; then
2934	cross_compiling=yes
2935    else
2936	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2937If you meant to cross compile, use \`--host'.
2938See \`config.log' for more details." >&5
2939echo "$as_me: error: cannot run C++ compiled programs.
2940If you meant to cross compile, use \`--host'.
2941See \`config.log' for more details." >&2;}
2942   { (exit 1); exit 1; }; }
2943    fi
2944  fi
2945fi
2946{ echo "$as_me:$LINENO: result: yes" >&5
2947echo "${ECHO_T}yes" >&6; }
2948
2949rm -f a.out a.exe conftest$ac_cv_exeext b.out
2950ac_clean_files=$ac_clean_files_save
2951# Check that the compiler produces executables we can run.  If not, either
2952# the compiler is broken, or we cross compile.
2953{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2954echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2955{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2956echo "${ECHO_T}$cross_compiling" >&6; }
2957
2958{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2959echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2960if { (ac_try="$ac_link"
2961case "(($ac_try" in
2962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963  *) ac_try_echo=$ac_try;;
2964esac
2965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966  (eval "$ac_link") 2>&5
2967  ac_status=$?
2968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969  (exit $ac_status); }; then
2970  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2971# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2972# work properly (i.e., refer to `conftest.exe'), while it won't with
2973# `rm'.
2974for ac_file in conftest.exe conftest conftest.*; do
2975  test -f "$ac_file" || continue
2976  case $ac_file in
2977    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2978    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2979	  break;;
2980    * ) break;;
2981  esac
2982done
2983else
2984  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2985See \`config.log' for more details." >&5
2986echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2987See \`config.log' for more details." >&2;}
2988   { (exit 1); exit 1; }; }
2989fi
2990
2991rm -f conftest$ac_cv_exeext
2992{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2993echo "${ECHO_T}$ac_cv_exeext" >&6; }
2994
2995rm -f conftest.$ac_ext
2996EXEEXT=$ac_cv_exeext
2997ac_exeext=$EXEEXT
2998{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2999echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3000if test "${ac_cv_objext+set}" = set; then
3001  echo $ECHO_N "(cached) $ECHO_C" >&6
3002else
3003  cat >conftest.$ac_ext <<_ACEOF
3004/* confdefs.h.  */
3005_ACEOF
3006cat confdefs.h >>conftest.$ac_ext
3007cat >>conftest.$ac_ext <<_ACEOF
3008/* end confdefs.h.  */
3009
3010int
3011main ()
3012{
3013
3014  ;
3015  return 0;
3016}
3017_ACEOF
3018rm -f conftest.o conftest.obj
3019if { (ac_try="$ac_compile"
3020case "(($ac_try" in
3021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022  *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025  (eval "$ac_compile") 2>&5
3026  ac_status=$?
3027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028  (exit $ac_status); }; then
3029  for ac_file in conftest.o conftest.obj conftest.*; do
3030  test -f "$ac_file" || continue;
3031  case $ac_file in
3032    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3033    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3034       break;;
3035  esac
3036done
3037else
3038  echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
3041{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3042See \`config.log' for more details." >&5
3043echo "$as_me: error: cannot compute suffix of object files: cannot compile
3044See \`config.log' for more details." >&2;}
3045   { (exit 1); exit 1; }; }
3046fi
3047
3048rm -f conftest.$ac_cv_objext conftest.$ac_ext
3049fi
3050{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3051echo "${ECHO_T}$ac_cv_objext" >&6; }
3052OBJEXT=$ac_cv_objext
3053ac_objext=$OBJEXT
3054{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3055echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3056if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3057  echo $ECHO_N "(cached) $ECHO_C" >&6
3058else
3059  cat >conftest.$ac_ext <<_ACEOF
3060/* confdefs.h.  */
3061_ACEOF
3062cat confdefs.h >>conftest.$ac_ext
3063cat >>conftest.$ac_ext <<_ACEOF
3064/* end confdefs.h.  */
3065
3066int
3067main ()
3068{
3069#ifndef __GNUC__
3070       choke me
3071#endif
3072
3073  ;
3074  return 0;
3075}
3076_ACEOF
3077rm -f conftest.$ac_objext
3078if { (ac_try="$ac_compile"
3079case "(($ac_try" in
3080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081  *) ac_try_echo=$ac_try;;
3082esac
3083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084  (eval "$ac_compile") 2>conftest.er1
3085  ac_status=$?
3086  grep -v '^ *+' conftest.er1 >conftest.err
3087  rm -f conftest.er1
3088  cat conftest.err >&5
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); } && {
3091	 test -z "$ac_cxx_werror_flag" ||
3092	 test ! -s conftest.err
3093       } && test -s conftest.$ac_objext; then
3094  ac_compiler_gnu=yes
3095else
3096  echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
3099	ac_compiler_gnu=no
3100fi
3101
3102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3103ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3104
3105fi
3106{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3107echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3108GXX=`test $ac_compiler_gnu = yes && echo yes`
3109ac_test_CXXFLAGS=${CXXFLAGS+set}
3110ac_save_CXXFLAGS=$CXXFLAGS
3111{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3112echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3113if test "${ac_cv_prog_cxx_g+set}" = set; then
3114  echo $ECHO_N "(cached) $ECHO_C" >&6
3115else
3116  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3117   ac_cxx_werror_flag=yes
3118   ac_cv_prog_cxx_g=no
3119   CXXFLAGS="-g"
3120   cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h.  */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h.  */
3126
3127int
3128main ()
3129{
3130
3131  ;
3132  return 0;
3133}
3134_ACEOF
3135rm -f conftest.$ac_objext
3136if { (ac_try="$ac_compile"
3137case "(($ac_try" in
3138  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139  *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142  (eval "$ac_compile") 2>conftest.er1
3143  ac_status=$?
3144  grep -v '^ *+' conftest.er1 >conftest.err
3145  rm -f conftest.er1
3146  cat conftest.err >&5
3147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148  (exit $ac_status); } && {
3149	 test -z "$ac_cxx_werror_flag" ||
3150	 test ! -s conftest.err
3151       } && test -s conftest.$ac_objext; then
3152  ac_cv_prog_cxx_g=yes
3153else
3154  echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
3157	CXXFLAGS=""
3158      cat >conftest.$ac_ext <<_ACEOF
3159/* confdefs.h.  */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
3163/* end confdefs.h.  */
3164
3165int
3166main ()
3167{
3168
3169  ;
3170  return 0;
3171}
3172_ACEOF
3173rm -f conftest.$ac_objext
3174if { (ac_try="$ac_compile"
3175case "(($ac_try" in
3176  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177  *) ac_try_echo=$ac_try;;
3178esac
3179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180  (eval "$ac_compile") 2>conftest.er1
3181  ac_status=$?
3182  grep -v '^ *+' conftest.er1 >conftest.err
3183  rm -f conftest.er1
3184  cat conftest.err >&5
3185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186  (exit $ac_status); } && {
3187	 test -z "$ac_cxx_werror_flag" ||
3188	 test ! -s conftest.err
3189       } && test -s conftest.$ac_objext; then
3190  :
3191else
3192  echo "$as_me: failed program was:" >&5
3193sed 's/^/| /' conftest.$ac_ext >&5
3194
3195	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3196	 CXXFLAGS="-g"
3197	 cat >conftest.$ac_ext <<_ACEOF
3198/* confdefs.h.  */
3199_ACEOF
3200cat confdefs.h >>conftest.$ac_ext
3201cat >>conftest.$ac_ext <<_ACEOF
3202/* end confdefs.h.  */
3203
3204int
3205main ()
3206{
3207
3208  ;
3209  return 0;
3210}
3211_ACEOF
3212rm -f conftest.$ac_objext
3213if { (ac_try="$ac_compile"
3214case "(($ac_try" in
3215  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216  *) ac_try_echo=$ac_try;;
3217esac
3218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219  (eval "$ac_compile") 2>conftest.er1
3220  ac_status=$?
3221  grep -v '^ *+' conftest.er1 >conftest.err
3222  rm -f conftest.er1
3223  cat conftest.err >&5
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); } && {
3226	 test -z "$ac_cxx_werror_flag" ||
3227	 test ! -s conftest.err
3228       } && test -s conftest.$ac_objext; then
3229  ac_cv_prog_cxx_g=yes
3230else
3231  echo "$as_me: failed program was:" >&5
3232sed 's/^/| /' conftest.$ac_ext >&5
3233
3234
3235fi
3236
3237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238fi
3239
3240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241fi
3242
3243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3245fi
3246{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3247echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3248if test "$ac_test_CXXFLAGS" = set; then
3249  CXXFLAGS=$ac_save_CXXFLAGS
3250elif test $ac_cv_prog_cxx_g = yes; then
3251  if test "$GXX" = yes; then
3252    CXXFLAGS="-g -O2"
3253  else
3254    CXXFLAGS="-g"
3255  fi
3256else
3257  if test "$GXX" = yes; then
3258    CXXFLAGS="-O2"
3259  else
3260    CXXFLAGS=
3261  fi
3262fi
3263ac_ext=c
3264ac_cpp='$CPP $CPPFLAGS'
3265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268DEPDIR="${am__leading_dot}deps"
3269
3270ac_config_commands="$ac_config_commands depfiles"
3271
3272
3273am_make=${MAKE-make}
3274cat > confinc << 'END'
3275am__doit:
3276	@echo done
3277.PHONY: am__doit
3278END
3279# If we don't find an include directive, just comment out the code.
3280{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3281echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3282am__include="#"
3283am__quote=
3284_am_result=none
3285# First try GNU make style include.
3286echo "include confinc" > confmf
3287# We grep out `Entering directory' and `Leaving directory'
3288# messages which can occur if `w' ends up in MAKEFLAGS.
3289# In particular we don't look at `^make:' because GNU make might
3290# be invoked under some other name (usually "gmake"), in which
3291# case it prints its new name instead of `make'.
3292if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3293   am__include=include
3294   am__quote=
3295   _am_result=GNU
3296fi
3297# Now try BSD make style include.
3298if test "$am__include" = "#"; then
3299   echo '.include "confinc"' > confmf
3300   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3301      am__include=.include
3302      am__quote="\""
3303      _am_result=BSD
3304   fi
3305fi
3306
3307
3308{ echo "$as_me:$LINENO: result: $_am_result" >&5
3309echo "${ECHO_T}$_am_result" >&6; }
3310rm -f confinc confmf
3311
3312# Check whether --enable-dependency-tracking was given.
3313if test "${enable_dependency_tracking+set}" = set; then
3314  enableval=$enable_dependency_tracking;
3315fi
3316
3317if test "x$enable_dependency_tracking" != xno; then
3318  am_depcomp="$ac_aux_dir/depcomp"
3319  AMDEPBACKSLASH='\'
3320fi
3321 if test "x$enable_dependency_tracking" != xno; then
3322  AMDEP_TRUE=
3323  AMDEP_FALSE='#'
3324else
3325  AMDEP_TRUE='#'
3326  AMDEP_FALSE=
3327fi
3328
3329
3330
3331depcc="$CXX"  am_compiler_list=
3332
3333{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3334echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3335if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3336  echo $ECHO_N "(cached) $ECHO_C" >&6
3337else
3338  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3339  # We make a subdir and do the tests there.  Otherwise we can end up
3340  # making bogus files that we don't know about and never remove.  For
3341  # instance it was reported that on HP-UX the gcc test will end up
3342  # making a dummy file named `D' -- because `-MD' means `put the output
3343  # in D'.
3344  mkdir conftest.dir
3345  # Copy depcomp to subdir because otherwise we won't find it if we're
3346  # using a relative directory.
3347  cp "$am_depcomp" conftest.dir
3348  cd conftest.dir
3349  # We will build objects and dependencies in a subdirectory because
3350  # it helps to detect inapplicable dependency modes.  For instance
3351  # both Tru64's cc and ICC support -MD to output dependencies as a
3352  # side effect of compilation, but ICC will put the dependencies in
3353  # the current directory while Tru64 will put them in the object
3354  # directory.
3355  mkdir sub
3356
3357  am_cv_CXX_dependencies_compiler_type=none
3358  if test "$am_compiler_list" = ""; then
3359     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3360  fi
3361  for depmode in $am_compiler_list; do
3362    # Setup a source with many dependencies, because some compilers
3363    # like to wrap large dependency lists on column 80 (with \), and
3364    # we should not choose a depcomp mode which is confused by this.
3365    #
3366    # We need to recreate these files for each test, as the compiler may
3367    # overwrite some of them when testing with obscure command lines.
3368    # This happens at least with the AIX C compiler.
3369    : > sub/conftest.c
3370    for i in 1 2 3 4 5 6; do
3371      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3372      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3373      # Solaris 8's {/usr,}/bin/sh.
3374      touch sub/conftst$i.h
3375    done
3376    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3377
3378    case $depmode in
3379    nosideeffect)
3380      # after this tag, mechanisms are not by side-effect, so they'll
3381      # only be used when explicitly requested
3382      if test "x$enable_dependency_tracking" = xyes; then
3383	continue
3384      else
3385	break
3386      fi
3387      ;;
3388    none) break ;;
3389    esac
3390    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3391    # mode.  It turns out that the SunPro C++ compiler does not properly
3392    # handle `-M -o', and we need to detect this.
3393    if depmode=$depmode \
3394       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3395       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3396       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3397         >/dev/null 2>conftest.err &&
3398       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3399       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3400       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3401       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3402      # icc doesn't choke on unknown options, it will just issue warnings
3403      # or remarks (even with -Werror).  So we grep stderr for any message
3404      # that says an option was ignored or not supported.
3405      # When given -MP, icc 7.0 and 7.1 complain thusly:
3406      #   icc: Command line warning: ignoring option '-M'; no argument required
3407      # The diagnosis changed in icc 8.0:
3408      #   icc: Command line remark: option '-MP' not supported
3409      if (grep 'ignoring option' conftest.err ||
3410          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3411        am_cv_CXX_dependencies_compiler_type=$depmode
3412        break
3413      fi
3414    fi
3415  done
3416
3417  cd ..
3418  rm -rf conftest.dir
3419else
3420  am_cv_CXX_dependencies_compiler_type=none
3421fi
3422
3423fi
3424{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3425echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3426CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3427
3428 if
3429  test "x$enable_dependency_tracking" != xno \
3430  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3431  am__fastdepCXX_TRUE=
3432  am__fastdepCXX_FALSE='#'
3433else
3434  am__fastdepCXX_TRUE='#'
3435  am__fastdepCXX_FALSE=
3436fi
3437
3438
3439ac_ext=cpp
3440ac_cpp='$CXXCPP $CPPFLAGS'
3441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3444{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3445echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3446if test -z "$CXXCPP"; then
3447  if test "${ac_cv_prog_CXXCPP+set}" = set; then
3448  echo $ECHO_N "(cached) $ECHO_C" >&6
3449else
3450      # Double quotes because CXXCPP needs to be expanded
3451    for CXXCPP in "$CXX -E" "/lib/cpp"
3452    do
3453      ac_preproc_ok=false
3454for ac_cxx_preproc_warn_flag in '' yes
3455do
3456  # Use a header file that comes with gcc, so configuring glibc
3457  # with a fresh cross-compiler works.
3458  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3459  # <limits.h> exists even on freestanding compilers.
3460  # On the NeXT, cc -E runs the code through the compiler's parser,
3461  # not just through cpp. "Syntax error" is here to catch this case.
3462  cat >conftest.$ac_ext <<_ACEOF
3463/* confdefs.h.  */
3464_ACEOF
3465cat confdefs.h >>conftest.$ac_ext
3466cat >>conftest.$ac_ext <<_ACEOF
3467/* end confdefs.h.  */
3468#ifdef __STDC__
3469# include <limits.h>
3470#else
3471# include <assert.h>
3472#endif
3473		     Syntax error
3474_ACEOF
3475if { (ac_try="$ac_cpp conftest.$ac_ext"
3476case "(($ac_try" in
3477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478  *) ac_try_echo=$ac_try;;
3479esac
3480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3481  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3482  ac_status=$?
3483  grep -v '^ *+' conftest.er1 >conftest.err
3484  rm -f conftest.er1
3485  cat conftest.err >&5
3486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487  (exit $ac_status); } >/dev/null && {
3488	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3489	 test ! -s conftest.err
3490       }; then
3491  :
3492else
3493  echo "$as_me: failed program was:" >&5
3494sed 's/^/| /' conftest.$ac_ext >&5
3495
3496  # Broken: fails on valid input.
3497continue
3498fi
3499
3500rm -f conftest.err conftest.$ac_ext
3501
3502  # OK, works on sane cases.  Now check whether nonexistent headers
3503  # can be detected and how.
3504  cat >conftest.$ac_ext <<_ACEOF
3505/* confdefs.h.  */
3506_ACEOF
3507cat confdefs.h >>conftest.$ac_ext
3508cat >>conftest.$ac_ext <<_ACEOF
3509/* end confdefs.h.  */
3510#include <ac_nonexistent.h>
3511_ACEOF
3512if { (ac_try="$ac_cpp conftest.$ac_ext"
3513case "(($ac_try" in
3514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515  *) ac_try_echo=$ac_try;;
3516esac
3517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3519  ac_status=$?
3520  grep -v '^ *+' conftest.er1 >conftest.err
3521  rm -f conftest.er1
3522  cat conftest.err >&5
3523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524  (exit $ac_status); } >/dev/null && {
3525	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3526	 test ! -s conftest.err
3527       }; then
3528  # Broken: success on invalid input.
3529continue
3530else
3531  echo "$as_me: failed program was:" >&5
3532sed 's/^/| /' conftest.$ac_ext >&5
3533
3534  # Passes both tests.
3535ac_preproc_ok=:
3536break
3537fi
3538
3539rm -f conftest.err conftest.$ac_ext
3540
3541done
3542# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3543rm -f conftest.err conftest.$ac_ext
3544if $ac_preproc_ok; then
3545  break
3546fi
3547
3548    done
3549    ac_cv_prog_CXXCPP=$CXXCPP
3550
3551fi
3552  CXXCPP=$ac_cv_prog_CXXCPP
3553else
3554  ac_cv_prog_CXXCPP=$CXXCPP
3555fi
3556{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
3557echo "${ECHO_T}$CXXCPP" >&6; }
3558ac_preproc_ok=false
3559for ac_cxx_preproc_warn_flag in '' yes
3560do
3561  # Use a header file that comes with gcc, so configuring glibc
3562  # with a fresh cross-compiler works.
3563  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3564  # <limits.h> exists even on freestanding compilers.
3565  # On the NeXT, cc -E runs the code through the compiler's parser,
3566  # not just through cpp. "Syntax error" is here to catch this case.
3567  cat >conftest.$ac_ext <<_ACEOF
3568/* confdefs.h.  */
3569_ACEOF
3570cat confdefs.h >>conftest.$ac_ext
3571cat >>conftest.$ac_ext <<_ACEOF
3572/* end confdefs.h.  */
3573#ifdef __STDC__
3574# include <limits.h>
3575#else
3576# include <assert.h>
3577#endif
3578		     Syntax error
3579_ACEOF
3580if { (ac_try="$ac_cpp conftest.$ac_ext"
3581case "(($ac_try" in
3582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583  *) ac_try_echo=$ac_try;;
3584esac
3585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3587  ac_status=$?
3588  grep -v '^ *+' conftest.er1 >conftest.err
3589  rm -f conftest.er1
3590  cat conftest.err >&5
3591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592  (exit $ac_status); } >/dev/null && {
3593	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3594	 test ! -s conftest.err
3595       }; then
3596  :
3597else
3598  echo "$as_me: failed program was:" >&5
3599sed 's/^/| /' conftest.$ac_ext >&5
3600
3601  # Broken: fails on valid input.
3602continue
3603fi
3604
3605rm -f conftest.err conftest.$ac_ext
3606
3607  # OK, works on sane cases.  Now check whether nonexistent headers
3608  # can be detected and how.
3609  cat >conftest.$ac_ext <<_ACEOF
3610/* confdefs.h.  */
3611_ACEOF
3612cat confdefs.h >>conftest.$ac_ext
3613cat >>conftest.$ac_ext <<_ACEOF
3614/* end confdefs.h.  */
3615#include <ac_nonexistent.h>
3616_ACEOF
3617if { (ac_try="$ac_cpp conftest.$ac_ext"
3618case "(($ac_try" in
3619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620  *) ac_try_echo=$ac_try;;
3621esac
3622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3623  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3624  ac_status=$?
3625  grep -v '^ *+' conftest.er1 >conftest.err
3626  rm -f conftest.er1
3627  cat conftest.err >&5
3628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629  (exit $ac_status); } >/dev/null && {
3630	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3631	 test ! -s conftest.err
3632       }; then
3633  # Broken: success on invalid input.
3634continue
3635else
3636  echo "$as_me: failed program was:" >&5
3637sed 's/^/| /' conftest.$ac_ext >&5
3638
3639  # Passes both tests.
3640ac_preproc_ok=:
3641break
3642fi
3643
3644rm -f conftest.err conftest.$ac_ext
3645
3646done
3647# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3648rm -f conftest.err conftest.$ac_ext
3649if $ac_preproc_ok; then
3650  :
3651else
3652  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3653See \`config.log' for more details." >&5
3654echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3655See \`config.log' for more details." >&2;}
3656   { (exit 1); exit 1; }; }
3657fi
3658
3659ac_ext=c
3660ac_cpp='$CPP $CPPFLAGS'
3661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664
3665ac_ext=c
3666ac_cpp='$CPP $CPPFLAGS'
3667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669ac_compiler_gnu=$ac_cv_c_compiler_gnu
3670
3671# Check whether --enable-fast-install was given.
3672if test "${enable_fast_install+set}" = set; then
3673  enableval=$enable_fast_install; p=${PACKAGE-default}
3674    case $enableval in
3675    yes) enable_fast_install=yes ;;
3676    no) enable_fast_install=no ;;
3677    *)
3678      enable_fast_install=no
3679      # Look at the argument we got.  We use all the common list separators.
3680      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3681      for pkg in $enableval; do
3682	IFS="$lt_save_ifs"
3683	if test "X$pkg" = "X$p"; then
3684	  enable_fast_install=yes
3685	fi
3686      done
3687      IFS="$lt_save_ifs"
3688      ;;
3689    esac
3690else
3691  enable_fast_install=yes
3692fi
3693
3694
3695ac_ext=c
3696ac_cpp='$CPP $CPPFLAGS'
3697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699ac_compiler_gnu=$ac_cv_c_compiler_gnu
3700if test -n "$ac_tool_prefix"; then
3701  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3702set dummy ${ac_tool_prefix}gcc; ac_word=$2
3703{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3705if test "${ac_cv_prog_CC+set}" = set; then
3706  echo $ECHO_N "(cached) $ECHO_C" >&6
3707else
3708  if test -n "$CC"; then
3709  ac_cv_prog_CC="$CC" # Let the user override the test.
3710else
3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712for as_dir in $PATH
3713do
3714  IFS=$as_save_IFS
3715  test -z "$as_dir" && as_dir=.
3716  for ac_exec_ext in '' $ac_executable_extensions; do
3717  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3719    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720    break 2
3721  fi
3722done
3723done
3724IFS=$as_save_IFS
3725
3726fi
3727fi
3728CC=$ac_cv_prog_CC
3729if test -n "$CC"; then
3730  { echo "$as_me:$LINENO: result: $CC" >&5
3731echo "${ECHO_T}$CC" >&6; }
3732else
3733  { echo "$as_me:$LINENO: result: no" >&5
3734echo "${ECHO_T}no" >&6; }
3735fi
3736
3737
3738fi
3739if test -z "$ac_cv_prog_CC"; then
3740  ac_ct_CC=$CC
3741  # Extract the first word of "gcc", so it can be a program name with args.
3742set dummy gcc; ac_word=$2
3743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3745if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3746  echo $ECHO_N "(cached) $ECHO_C" >&6
3747else
3748  if test -n "$ac_ct_CC"; then
3749  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3750else
3751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752for as_dir in $PATH
3753do
3754  IFS=$as_save_IFS
3755  test -z "$as_dir" && as_dir=.
3756  for ac_exec_ext in '' $ac_executable_extensions; do
3757  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3758    ac_cv_prog_ac_ct_CC="gcc"
3759    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3760    break 2
3761  fi
3762done
3763done
3764IFS=$as_save_IFS
3765
3766fi
3767fi
3768ac_ct_CC=$ac_cv_prog_ac_ct_CC
3769if test -n "$ac_ct_CC"; then
3770  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3771echo "${ECHO_T}$ac_ct_CC" >&6; }
3772else
3773  { echo "$as_me:$LINENO: result: no" >&5
3774echo "${ECHO_T}no" >&6; }
3775fi
3776
3777  if test "x$ac_ct_CC" = x; then
3778    CC=""
3779  else
3780    case $cross_compiling:$ac_tool_warned in
3781yes:)
3782{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3783whose name does not start with the host triplet.  If you think this
3784configuration is useful to you, please write to autoconf@gnu.org." >&5
3785echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3786whose name does not start with the host triplet.  If you think this
3787configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3788ac_tool_warned=yes ;;
3789esac
3790    CC=$ac_ct_CC
3791  fi
3792else
3793  CC="$ac_cv_prog_CC"
3794fi
3795
3796if test -z "$CC"; then
3797          if test -n "$ac_tool_prefix"; then
3798    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3799set dummy ${ac_tool_prefix}cc; ac_word=$2
3800{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3802if test "${ac_cv_prog_CC+set}" = set; then
3803  echo $ECHO_N "(cached) $ECHO_C" >&6
3804else
3805  if test -n "$CC"; then
3806  ac_cv_prog_CC="$CC" # Let the user override the test.
3807else
3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809for as_dir in $PATH
3810do
3811  IFS=$as_save_IFS
3812  test -z "$as_dir" && as_dir=.
3813  for ac_exec_ext in '' $ac_executable_extensions; do
3814  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3815    ac_cv_prog_CC="${ac_tool_prefix}cc"
3816    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817    break 2
3818  fi
3819done
3820done
3821IFS=$as_save_IFS
3822
3823fi
3824fi
3825CC=$ac_cv_prog_CC
3826if test -n "$CC"; then
3827  { echo "$as_me:$LINENO: result: $CC" >&5
3828echo "${ECHO_T}$CC" >&6; }
3829else
3830  { echo "$as_me:$LINENO: result: no" >&5
3831echo "${ECHO_T}no" >&6; }
3832fi
3833
3834
3835  fi
3836fi
3837if test -z "$CC"; then
3838  # Extract the first word of "cc", so it can be a program name with args.
3839set dummy cc; ac_word=$2
3840{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3842if test "${ac_cv_prog_CC+set}" = set; then
3843  echo $ECHO_N "(cached) $ECHO_C" >&6
3844else
3845  if test -n "$CC"; then
3846  ac_cv_prog_CC="$CC" # Let the user override the test.
3847else
3848  ac_prog_rejected=no
3849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850for as_dir in $PATH
3851do
3852  IFS=$as_save_IFS
3853  test -z "$as_dir" && as_dir=.
3854  for ac_exec_ext in '' $ac_executable_extensions; do
3855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3856    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3857       ac_prog_rejected=yes
3858       continue
3859     fi
3860    ac_cv_prog_CC="cc"
3861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862    break 2
3863  fi
3864done
3865done
3866IFS=$as_save_IFS
3867
3868if test $ac_prog_rejected = yes; then
3869  # We found a bogon in the path, so make sure we never use it.
3870  set dummy $ac_cv_prog_CC
3871  shift
3872  if test $# != 0; then
3873    # We chose a different compiler from the bogus one.
3874    # However, it has the same basename, so the bogon will be chosen
3875    # first if we set CC to just the basename; use the full file name.
3876    shift
3877    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3878  fi
3879fi
3880fi
3881fi
3882CC=$ac_cv_prog_CC
3883if test -n "$CC"; then
3884  { echo "$as_me:$LINENO: result: $CC" >&5
3885echo "${ECHO_T}$CC" >&6; }
3886else
3887  { echo "$as_me:$LINENO: result: no" >&5
3888echo "${ECHO_T}no" >&6; }
3889fi
3890
3891
3892fi
3893if test -z "$CC"; then
3894  if test -n "$ac_tool_prefix"; then
3895  for ac_prog in cl.exe
3896  do
3897    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3898set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3901if test "${ac_cv_prog_CC+set}" = set; then
3902  echo $ECHO_N "(cached) $ECHO_C" >&6
3903else
3904  if test -n "$CC"; then
3905  ac_cv_prog_CC="$CC" # Let the user override the test.
3906else
3907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908for as_dir in $PATH
3909do
3910  IFS=$as_save_IFS
3911  test -z "$as_dir" && as_dir=.
3912  for ac_exec_ext in '' $ac_executable_extensions; do
3913  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3914    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3915    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916    break 2
3917  fi
3918done
3919done
3920IFS=$as_save_IFS
3921
3922fi
3923fi
3924CC=$ac_cv_prog_CC
3925if test -n "$CC"; then
3926  { echo "$as_me:$LINENO: result: $CC" >&5
3927echo "${ECHO_T}$CC" >&6; }
3928else
3929  { echo "$as_me:$LINENO: result: no" >&5
3930echo "${ECHO_T}no" >&6; }
3931fi
3932
3933
3934    test -n "$CC" && break
3935  done
3936fi
3937if test -z "$CC"; then
3938  ac_ct_CC=$CC
3939  for ac_prog in cl.exe
3940do
3941  # Extract the first word of "$ac_prog", so it can be a program name with args.
3942set dummy $ac_prog; ac_word=$2
3943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3945if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3946  echo $ECHO_N "(cached) $ECHO_C" >&6
3947else
3948  if test -n "$ac_ct_CC"; then
3949  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3950else
3951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952for as_dir in $PATH
3953do
3954  IFS=$as_save_IFS
3955  test -z "$as_dir" && as_dir=.
3956  for ac_exec_ext in '' $ac_executable_extensions; do
3957  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3958    ac_cv_prog_ac_ct_CC="$ac_prog"
3959    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3960    break 2
3961  fi
3962done
3963done
3964IFS=$as_save_IFS
3965
3966fi
3967fi
3968ac_ct_CC=$ac_cv_prog_ac_ct_CC
3969if test -n "$ac_ct_CC"; then
3970  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3971echo "${ECHO_T}$ac_ct_CC" >&6; }
3972else
3973  { echo "$as_me:$LINENO: result: no" >&5
3974echo "${ECHO_T}no" >&6; }
3975fi
3976
3977
3978  test -n "$ac_ct_CC" && break
3979done
3980
3981  if test "x$ac_ct_CC" = x; then
3982    CC=""
3983  else
3984    case $cross_compiling:$ac_tool_warned in
3985yes:)
3986{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3987whose name does not start with the host triplet.  If you think this
3988configuration is useful to you, please write to autoconf@gnu.org." >&5
3989echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3990whose name does not start with the host triplet.  If you think this
3991configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3992ac_tool_warned=yes ;;
3993esac
3994    CC=$ac_ct_CC
3995  fi
3996fi
3997
3998fi
3999
4000
4001test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4002See \`config.log' for more details." >&5
4003echo "$as_me: error: no acceptable C compiler found in \$PATH
4004See \`config.log' for more details." >&2;}
4005   { (exit 1); exit 1; }; }
4006
4007# Provide some information about the compiler.
4008echo "$as_me:$LINENO: checking for C compiler version" >&5
4009ac_compiler=`set X $ac_compile; echo $2`
4010{ (ac_try="$ac_compiler --version >&5"
4011case "(($ac_try" in
4012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013  *) ac_try_echo=$ac_try;;
4014esac
4015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016  (eval "$ac_compiler --version >&5") 2>&5
4017  ac_status=$?
4018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019  (exit $ac_status); }
4020{ (ac_try="$ac_compiler -v >&5"
4021case "(($ac_try" in
4022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023  *) ac_try_echo=$ac_try;;
4024esac
4025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4026  (eval "$ac_compiler -v >&5") 2>&5
4027  ac_status=$?
4028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029  (exit $ac_status); }
4030{ (ac_try="$ac_compiler -V >&5"
4031case "(($ac_try" in
4032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033  *) ac_try_echo=$ac_try;;
4034esac
4035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036  (eval "$ac_compiler -V >&5") 2>&5
4037  ac_status=$?
4038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039  (exit $ac_status); }
4040
4041{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4042echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4043if test "${ac_cv_c_compiler_gnu+set}" = set; then
4044  echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
4046  cat >conftest.$ac_ext <<_ACEOF
4047/* confdefs.h.  */
4048_ACEOF
4049cat confdefs.h >>conftest.$ac_ext
4050cat >>conftest.$ac_ext <<_ACEOF
4051/* end confdefs.h.  */
4052
4053int
4054main ()
4055{
4056#ifndef __GNUC__
4057       choke me
4058#endif
4059
4060  ;
4061  return 0;
4062}
4063_ACEOF
4064rm -f conftest.$ac_objext
4065if { (ac_try="$ac_compile"
4066case "(($ac_try" in
4067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068  *) ac_try_echo=$ac_try;;
4069esac
4070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071  (eval "$ac_compile") 2>conftest.er1
4072  ac_status=$?
4073  grep -v '^ *+' conftest.er1 >conftest.err
4074  rm -f conftest.er1
4075  cat conftest.err >&5
4076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077  (exit $ac_status); } && {
4078	 test -z "$ac_c_werror_flag" ||
4079	 test ! -s conftest.err
4080       } && test -s conftest.$ac_objext; then
4081  ac_compiler_gnu=yes
4082else
4083  echo "$as_me: failed program was:" >&5
4084sed 's/^/| /' conftest.$ac_ext >&5
4085
4086	ac_compiler_gnu=no
4087fi
4088
4089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090ac_cv_c_compiler_gnu=$ac_compiler_gnu
4091
4092fi
4093{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4094echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4095GCC=`test $ac_compiler_gnu = yes && echo yes`
4096ac_test_CFLAGS=${CFLAGS+set}
4097ac_save_CFLAGS=$CFLAGS
4098{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4099echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4100if test "${ac_cv_prog_cc_g+set}" = set; then
4101  echo $ECHO_N "(cached) $ECHO_C" >&6
4102else
4103  ac_save_c_werror_flag=$ac_c_werror_flag
4104   ac_c_werror_flag=yes
4105   ac_cv_prog_cc_g=no
4106   CFLAGS="-g"
4107   cat >conftest.$ac_ext <<_ACEOF
4108/* confdefs.h.  */
4109_ACEOF
4110cat confdefs.h >>conftest.$ac_ext
4111cat >>conftest.$ac_ext <<_ACEOF
4112/* end confdefs.h.  */
4113
4114int
4115main ()
4116{
4117
4118  ;
4119  return 0;
4120}
4121_ACEOF
4122rm -f conftest.$ac_objext
4123if { (ac_try="$ac_compile"
4124case "(($ac_try" in
4125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126  *) ac_try_echo=$ac_try;;
4127esac
4128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129  (eval "$ac_compile") 2>conftest.er1
4130  ac_status=$?
4131  grep -v '^ *+' conftest.er1 >conftest.err
4132  rm -f conftest.er1
4133  cat conftest.err >&5
4134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135  (exit $ac_status); } && {
4136	 test -z "$ac_c_werror_flag" ||
4137	 test ! -s conftest.err
4138       } && test -s conftest.$ac_objext; then
4139  ac_cv_prog_cc_g=yes
4140else
4141  echo "$as_me: failed program was:" >&5
4142sed 's/^/| /' conftest.$ac_ext >&5
4143
4144	CFLAGS=""
4145      cat >conftest.$ac_ext <<_ACEOF
4146/* confdefs.h.  */
4147_ACEOF
4148cat confdefs.h >>conftest.$ac_ext
4149cat >>conftest.$ac_ext <<_ACEOF
4150/* end confdefs.h.  */
4151
4152int
4153main ()
4154{
4155
4156  ;
4157  return 0;
4158}
4159_ACEOF
4160rm -f conftest.$ac_objext
4161if { (ac_try="$ac_compile"
4162case "(($ac_try" in
4163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164  *) ac_try_echo=$ac_try;;
4165esac
4166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167  (eval "$ac_compile") 2>conftest.er1
4168  ac_status=$?
4169  grep -v '^ *+' conftest.er1 >conftest.err
4170  rm -f conftest.er1
4171  cat conftest.err >&5
4172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173  (exit $ac_status); } && {
4174	 test -z "$ac_c_werror_flag" ||
4175	 test ! -s conftest.err
4176       } && test -s conftest.$ac_objext; then
4177  :
4178else
4179  echo "$as_me: failed program was:" >&5
4180sed 's/^/| /' conftest.$ac_ext >&5
4181
4182	ac_c_werror_flag=$ac_save_c_werror_flag
4183	 CFLAGS="-g"
4184	 cat >conftest.$ac_ext <<_ACEOF
4185/* confdefs.h.  */
4186_ACEOF
4187cat confdefs.h >>conftest.$ac_ext
4188cat >>conftest.$ac_ext <<_ACEOF
4189/* end confdefs.h.  */
4190
4191int
4192main ()
4193{
4194
4195  ;
4196  return 0;
4197}
4198_ACEOF
4199rm -f conftest.$ac_objext
4200if { (ac_try="$ac_compile"
4201case "(($ac_try" in
4202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203  *) ac_try_echo=$ac_try;;
4204esac
4205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206  (eval "$ac_compile") 2>conftest.er1
4207  ac_status=$?
4208  grep -v '^ *+' conftest.er1 >conftest.err
4209  rm -f conftest.er1
4210  cat conftest.err >&5
4211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212  (exit $ac_status); } && {
4213	 test -z "$ac_c_werror_flag" ||
4214	 test ! -s conftest.err
4215       } && test -s conftest.$ac_objext; then
4216  ac_cv_prog_cc_g=yes
4217else
4218  echo "$as_me: failed program was:" >&5
4219sed 's/^/| /' conftest.$ac_ext >&5
4220
4221
4222fi
4223
4224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225fi
4226
4227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228fi
4229
4230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231   ac_c_werror_flag=$ac_save_c_werror_flag
4232fi
4233{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4234echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4235if test "$ac_test_CFLAGS" = set; then
4236  CFLAGS=$ac_save_CFLAGS
4237elif test $ac_cv_prog_cc_g = yes; then
4238  if test "$GCC" = yes; then
4239    CFLAGS="-g -O2"
4240  else
4241    CFLAGS="-g"
4242  fi
4243else
4244  if test "$GCC" = yes; then
4245    CFLAGS="-O2"
4246  else
4247    CFLAGS=
4248  fi
4249fi
4250{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4251echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4252if test "${ac_cv_prog_cc_c89+set}" = set; then
4253  echo $ECHO_N "(cached) $ECHO_C" >&6
4254else
4255  ac_cv_prog_cc_c89=no
4256ac_save_CC=$CC
4257cat >conftest.$ac_ext <<_ACEOF
4258/* confdefs.h.  */
4259_ACEOF
4260cat confdefs.h >>conftest.$ac_ext
4261cat >>conftest.$ac_ext <<_ACEOF
4262/* end confdefs.h.  */
4263#include <stdarg.h>
4264#include <stdio.h>
4265#include <sys/types.h>
4266#include <sys/stat.h>
4267/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4268struct buf { int x; };
4269FILE * (*rcsopen) (struct buf *, struct stat *, int);
4270static char *e (p, i)
4271     char **p;
4272     int i;
4273{
4274  return p[i];
4275}
4276static char *f (char * (*g) (char **, int), char **p, ...)
4277{
4278  char *s;
4279  va_list v;
4280  va_start (v,p);
4281  s = g (p, va_arg (v,int));
4282  va_end (v);
4283  return s;
4284}
4285
4286/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4287   function prototypes and stuff, but not '\xHH' hex character constants.
4288   These don't provoke an error unfortunately, instead are silently treated
4289   as 'x'.  The following induces an error, until -std is added to get
4290   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4291   array size at least.  It's necessary to write '\x00'==0 to get something
4292   that's true only with -std.  */
4293int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4294
4295/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4296   inside strings and character constants.  */
4297#define FOO(x) 'x'
4298int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4299
4300int test (int i, double x);
4301struct s1 {int (*f) (int a);};
4302struct s2 {int (*f) (double a);};
4303int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4304int argc;
4305char **argv;
4306int
4307main ()
4308{
4309return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4310  ;
4311  return 0;
4312}
4313_ACEOF
4314for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4315	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4316do
4317  CC="$ac_save_CC $ac_arg"
4318  rm -f conftest.$ac_objext
4319if { (ac_try="$ac_compile"
4320case "(($ac_try" in
4321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322  *) ac_try_echo=$ac_try;;
4323esac
4324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325  (eval "$ac_compile") 2>conftest.er1
4326  ac_status=$?
4327  grep -v '^ *+' conftest.er1 >conftest.err
4328  rm -f conftest.er1
4329  cat conftest.err >&5
4330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331  (exit $ac_status); } && {
4332	 test -z "$ac_c_werror_flag" ||
4333	 test ! -s conftest.err
4334       } && test -s conftest.$ac_objext; then
4335  ac_cv_prog_cc_c89=$ac_arg
4336else
4337  echo "$as_me: failed program was:" >&5
4338sed 's/^/| /' conftest.$ac_ext >&5
4339
4340
4341fi
4342
4343rm -f core conftest.err conftest.$ac_objext
4344  test "x$ac_cv_prog_cc_c89" != "xno" && break
4345done
4346rm -f conftest.$ac_ext
4347CC=$ac_save_CC
4348
4349fi
4350# AC_CACHE_VAL
4351case "x$ac_cv_prog_cc_c89" in
4352  x)
4353    { echo "$as_me:$LINENO: result: none needed" >&5
4354echo "${ECHO_T}none needed" >&6; } ;;
4355  xno)
4356    { echo "$as_me:$LINENO: result: unsupported" >&5
4357echo "${ECHO_T}unsupported" >&6; } ;;
4358  *)
4359    CC="$CC $ac_cv_prog_cc_c89"
4360    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4361echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4362esac
4363
4364
4365ac_ext=c
4366ac_cpp='$CPP $CPPFLAGS'
4367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369ac_compiler_gnu=$ac_cv_c_compiler_gnu
4370
4371depcc="$CC"   am_compiler_list=
4372
4373{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4374echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4375if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4376  echo $ECHO_N "(cached) $ECHO_C" >&6
4377else
4378  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4379  # We make a subdir and do the tests there.  Otherwise we can end up
4380  # making bogus files that we don't know about and never remove.  For
4381  # instance it was reported that on HP-UX the gcc test will end up
4382  # making a dummy file named `D' -- because `-MD' means `put the output
4383  # in D'.
4384  mkdir conftest.dir
4385  # Copy depcomp to subdir because otherwise we won't find it if we're
4386  # using a relative directory.
4387  cp "$am_depcomp" conftest.dir
4388  cd conftest.dir
4389  # We will build objects and dependencies in a subdirectory because
4390  # it helps to detect inapplicable dependency modes.  For instance
4391  # both Tru64's cc and ICC support -MD to output dependencies as a
4392  # side effect of compilation, but ICC will put the dependencies in
4393  # the current directory while Tru64 will put them in the object
4394  # directory.
4395  mkdir sub
4396
4397  am_cv_CC_dependencies_compiler_type=none
4398  if test "$am_compiler_list" = ""; then
4399     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4400  fi
4401  for depmode in $am_compiler_list; do
4402    # Setup a source with many dependencies, because some compilers
4403    # like to wrap large dependency lists on column 80 (with \), and
4404    # we should not choose a depcomp mode which is confused by this.
4405    #
4406    # We need to recreate these files for each test, as the compiler may
4407    # overwrite some of them when testing with obscure command lines.
4408    # This happens at least with the AIX C compiler.
4409    : > sub/conftest.c
4410    for i in 1 2 3 4 5 6; do
4411      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4412      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4413      # Solaris 8's {/usr,}/bin/sh.
4414      touch sub/conftst$i.h
4415    done
4416    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4417
4418    case $depmode in
4419    nosideeffect)
4420      # after this tag, mechanisms are not by side-effect, so they'll
4421      # only be used when explicitly requested
4422      if test "x$enable_dependency_tracking" = xyes; then
4423	continue
4424      else
4425	break
4426      fi
4427      ;;
4428    none) break ;;
4429    esac
4430    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4431    # mode.  It turns out that the SunPro C++ compiler does not properly
4432    # handle `-M -o', and we need to detect this.
4433    if depmode=$depmode \
4434       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4435       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4436       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4437         >/dev/null 2>conftest.err &&
4438       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4439       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4440       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4441       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4442      # icc doesn't choke on unknown options, it will just issue warnings
4443      # or remarks (even with -Werror).  So we grep stderr for any message
4444      # that says an option was ignored or not supported.
4445      # When given -MP, icc 7.0 and 7.1 complain thusly:
4446      #   icc: Command line warning: ignoring option '-M'; no argument required
4447      # The diagnosis changed in icc 8.0:
4448      #   icc: Command line remark: option '-MP' not supported
4449      if (grep 'ignoring option' conftest.err ||
4450          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4451        am_cv_CC_dependencies_compiler_type=$depmode
4452        break
4453      fi
4454    fi
4455  done
4456
4457  cd ..
4458  rm -rf conftest.dir
4459else
4460  am_cv_CC_dependencies_compiler_type=none
4461fi
4462
4463fi
4464{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4465echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4466CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4467
4468 if
4469  test "x$enable_dependency_tracking" != xno \
4470  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4471  am__fastdepCC_TRUE=
4472  am__fastdepCC_FALSE='#'
4473else
4474  am__fastdepCC_TRUE='#'
4475  am__fastdepCC_FALSE=
4476fi
4477
4478
4479{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4480echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4481if test "${lt_cv_path_SED+set}" = set; then
4482  echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
4484  # Loop through the user's path and test for sed and gsed.
4485# Then use that list of sed's as ones to test for truncation.
4486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487for as_dir in $PATH
4488do
4489  IFS=$as_save_IFS
4490  test -z "$as_dir" && as_dir=.
4491  for lt_ac_prog in sed gsed; do
4492    for ac_exec_ext in '' $ac_executable_extensions; do
4493      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4494        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4495      fi
4496    done
4497  done
4498done
4499IFS=$as_save_IFS
4500lt_ac_max=0
4501lt_ac_count=0
4502# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4503# along with /bin/sed that truncates output.
4504for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4505  test ! -f $lt_ac_sed && continue
4506  cat /dev/null > conftest.in
4507  lt_ac_count=0
4508  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4509  # Check for GNU sed and select it if it is found.
4510  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4511    lt_cv_path_SED=$lt_ac_sed
4512    break
4513  fi
4514  while true; do
4515    cat conftest.in conftest.in >conftest.tmp
4516    mv conftest.tmp conftest.in
4517    cp conftest.in conftest.nl
4518    echo >>conftest.nl
4519    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4520    cmp -s conftest.out conftest.nl || break
4521    # 10000 chars as input seems more than enough
4522    test $lt_ac_count -gt 10 && break
4523    lt_ac_count=`expr $lt_ac_count + 1`
4524    if test $lt_ac_count -gt $lt_ac_max; then
4525      lt_ac_max=$lt_ac_count
4526      lt_cv_path_SED=$lt_ac_sed
4527    fi
4528  done
4529done
4530
4531fi
4532
4533SED=$lt_cv_path_SED
4534
4535{ echo "$as_me:$LINENO: result: $SED" >&5
4536echo "${ECHO_T}$SED" >&6; }
4537
4538{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4539echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4540if test "${ac_cv_path_GREP+set}" = set; then
4541  echo $ECHO_N "(cached) $ECHO_C" >&6
4542else
4543  # Extract the first word of "grep ggrep" to use in msg output
4544if test -z "$GREP"; then
4545set dummy grep ggrep; ac_prog_name=$2
4546if test "${ac_cv_path_GREP+set}" = set; then
4547  echo $ECHO_N "(cached) $ECHO_C" >&6
4548else
4549  ac_path_GREP_found=false
4550# Loop through the user's path and test for each of PROGNAME-LIST
4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4553do
4554  IFS=$as_save_IFS
4555  test -z "$as_dir" && as_dir=.
4556  for ac_prog in grep ggrep; do
4557  for ac_exec_ext in '' $ac_executable_extensions; do
4558    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4559    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4560    # Check for GNU ac_path_GREP and select it if it is found.
4561  # Check for GNU $ac_path_GREP
4562case `"$ac_path_GREP" --version 2>&1` in
4563*GNU*)
4564  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4565*)
4566  ac_count=0
4567  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4568  while :
4569  do
4570    cat "conftest.in" "conftest.in" >"conftest.tmp"
4571    mv "conftest.tmp" "conftest.in"
4572    cp "conftest.in" "conftest.nl"
4573    echo 'GREP' >> "conftest.nl"
4574    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4575    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4576    ac_count=`expr $ac_count + 1`
4577    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4578      # Best one so far, save it but keep looking for a better one
4579      ac_cv_path_GREP="$ac_path_GREP"
4580      ac_path_GREP_max=$ac_count
4581    fi
4582    # 10*(2^10) chars as input seems more than enough
4583    test $ac_count -gt 10 && break
4584  done
4585  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4586esac
4587
4588
4589    $ac_path_GREP_found && break 3
4590  done
4591done
4592
4593done
4594IFS=$as_save_IFS
4595
4596
4597fi
4598
4599GREP="$ac_cv_path_GREP"
4600if test -z "$GREP"; then
4601  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4602echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4603   { (exit 1); exit 1; }; }
4604fi
4605
4606else
4607  ac_cv_path_GREP=$GREP
4608fi
4609
4610
4611fi
4612{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4613echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4614 GREP="$ac_cv_path_GREP"
4615
4616
4617{ echo "$as_me:$LINENO: checking for egrep" >&5
4618echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4619if test "${ac_cv_path_EGREP+set}" = set; then
4620  echo $ECHO_N "(cached) $ECHO_C" >&6
4621else
4622  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4623   then ac_cv_path_EGREP="$GREP -E"
4624   else
4625     # Extract the first word of "egrep" to use in msg output
4626if test -z "$EGREP"; then
4627set dummy egrep; ac_prog_name=$2
4628if test "${ac_cv_path_EGREP+set}" = set; then
4629  echo $ECHO_N "(cached) $ECHO_C" >&6
4630else
4631  ac_path_EGREP_found=false
4632# Loop through the user's path and test for each of PROGNAME-LIST
4633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4635do
4636  IFS=$as_save_IFS
4637  test -z "$as_dir" && as_dir=.
4638  for ac_prog in egrep; do
4639  for ac_exec_ext in '' $ac_executable_extensions; do
4640    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4641    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4642    # Check for GNU ac_path_EGREP and select it if it is found.
4643  # Check for GNU $ac_path_EGREP
4644case `"$ac_path_EGREP" --version 2>&1` in
4645*GNU*)
4646  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4647*)
4648  ac_count=0
4649  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4650  while :
4651  do
4652    cat "conftest.in" "conftest.in" >"conftest.tmp"
4653    mv "conftest.tmp" "conftest.in"
4654    cp "conftest.in" "conftest.nl"
4655    echo 'EGREP' >> "conftest.nl"
4656    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4657    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4658    ac_count=`expr $ac_count + 1`
4659    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4660      # Best one so far, save it but keep looking for a better one
4661      ac_cv_path_EGREP="$ac_path_EGREP"
4662      ac_path_EGREP_max=$ac_count
4663    fi
4664    # 10*(2^10) chars as input seems more than enough
4665    test $ac_count -gt 10 && break
4666  done
4667  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4668esac
4669
4670
4671    $ac_path_EGREP_found && break 3
4672  done
4673done
4674
4675done
4676IFS=$as_save_IFS
4677
4678
4679fi
4680
4681EGREP="$ac_cv_path_EGREP"
4682if test -z "$EGREP"; then
4683  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4684echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4685   { (exit 1); exit 1; }; }
4686fi
4687
4688else
4689  ac_cv_path_EGREP=$EGREP
4690fi
4691
4692
4693   fi
4694fi
4695{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4696echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4697 EGREP="$ac_cv_path_EGREP"
4698
4699
4700
4701# Check whether --with-gnu-ld was given.
4702if test "${with_gnu_ld+set}" = set; then
4703  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4704else
4705  with_gnu_ld=no
4706fi
4707
4708ac_prog=ld
4709if test "$GCC" = yes; then
4710  # Check if gcc -print-prog-name=ld gives a path.
4711  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4712echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4713  case $host in
4714  *-*-mingw*)
4715    # gcc leaves a trailing carriage return which upsets mingw
4716    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4717  *)
4718    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4719  esac
4720  case $ac_prog in
4721    # Accept absolute paths.
4722    [\\/]* | ?:[\\/]*)
4723      re_direlt='/[^/][^/]*/\.\./'
4724      # Canonicalize the pathname of ld
4725      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4726      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4727	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4728      done
4729      test -z "$LD" && LD="$ac_prog"
4730      ;;
4731  "")
4732    # If it fails, then pretend we aren't using GCC.
4733    ac_prog=ld
4734    ;;
4735  *)
4736    # If it is relative, then search for the first ld in PATH.
4737    with_gnu_ld=unknown
4738    ;;
4739  esac
4740elif test "$with_gnu_ld" = yes; then
4741  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4742echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4743else
4744  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4745echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4746fi
4747if test "${lt_cv_path_LD+set}" = set; then
4748  echo $ECHO_N "(cached) $ECHO_C" >&6
4749else
4750  if test -z "$LD"; then
4751  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4752  for ac_dir in $PATH; do
4753    IFS="$lt_save_ifs"
4754    test -z "$ac_dir" && ac_dir=.
4755    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4756      lt_cv_path_LD="$ac_dir/$ac_prog"
4757      # Check to see if the program is GNU ld.  I'd rather use --version,
4758      # but apparently some variants of GNU ld only accept -v.
4759      # Break only if it was the GNU/non-GNU ld that we prefer.
4760      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4761      *GNU* | *'with BFD'*)
4762	test "$with_gnu_ld" != no && break
4763	;;
4764      *)
4765	test "$with_gnu_ld" != yes && break
4766	;;
4767      esac
4768    fi
4769  done
4770  IFS="$lt_save_ifs"
4771else
4772  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4773fi
4774fi
4775
4776LD="$lt_cv_path_LD"
4777if test -n "$LD"; then
4778  { echo "$as_me:$LINENO: result: $LD" >&5
4779echo "${ECHO_T}$LD" >&6; }
4780else
4781  { echo "$as_me:$LINENO: result: no" >&5
4782echo "${ECHO_T}no" >&6; }
4783fi
4784test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4785echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4786   { (exit 1); exit 1; }; }
4787{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4788echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4789if test "${lt_cv_prog_gnu_ld+set}" = set; then
4790  echo $ECHO_N "(cached) $ECHO_C" >&6
4791else
4792  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4793case `$LD -v 2>&1 </dev/null` in
4794*GNU* | *'with BFD'*)
4795  lt_cv_prog_gnu_ld=yes
4796  ;;
4797*)
4798  lt_cv_prog_gnu_ld=no
4799  ;;
4800esac
4801fi
4802{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4803echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4804with_gnu_ld=$lt_cv_prog_gnu_ld
4805
4806
4807{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4808echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4809if test "${lt_cv_ld_reload_flag+set}" = set; then
4810  echo $ECHO_N "(cached) $ECHO_C" >&6
4811else
4812  lt_cv_ld_reload_flag='-r'
4813fi
4814{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4815echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4816reload_flag=$lt_cv_ld_reload_flag
4817case $reload_flag in
4818"" | " "*) ;;
4819*) reload_flag=" $reload_flag" ;;
4820esac
4821reload_cmds='$LD$reload_flag -o $output$reload_objs'
4822case $host_os in
4823  darwin*)
4824    if test "$GCC" = yes; then
4825      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4826    else
4827      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4828    fi
4829    ;;
4830esac
4831
4832{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4833echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4834if test "${lt_cv_path_NM+set}" = set; then
4835  echo $ECHO_N "(cached) $ECHO_C" >&6
4836else
4837  if test -n "$NM"; then
4838  # Let the user override the test.
4839  lt_cv_path_NM="$NM"
4840else
4841  lt_nm_to_check="${ac_tool_prefix}nm"
4842  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4843    lt_nm_to_check="$lt_nm_to_check nm"
4844  fi
4845  for lt_tmp_nm in $lt_nm_to_check; do
4846    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4847    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4848      IFS="$lt_save_ifs"
4849      test -z "$ac_dir" && ac_dir=.
4850      tmp_nm="$ac_dir/$lt_tmp_nm"
4851      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4852	# Check to see if the nm accepts a BSD-compat flag.
4853	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4854	#   nm: unknown option "B" ignored
4855	# Tru64's nm complains that /dev/null is an invalid object file
4856	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4857	*/dev/null* | *'Invalid file or object type'*)
4858	  lt_cv_path_NM="$tmp_nm -B"
4859	  break
4860	  ;;
4861	*)
4862	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4863	  */dev/null*)
4864	    lt_cv_path_NM="$tmp_nm -p"
4865	    break
4866	    ;;
4867	  *)
4868	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4869	    continue # so that we can try to find one that supports BSD flags
4870	    ;;
4871	  esac
4872	  ;;
4873	esac
4874      fi
4875    done
4876    IFS="$lt_save_ifs"
4877  done
4878  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4879fi
4880fi
4881{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4882echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4883NM="$lt_cv_path_NM"
4884
4885{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4886echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4887LN_S=$as_ln_s
4888if test "$LN_S" = "ln -s"; then
4889  { echo "$as_me:$LINENO: result: yes" >&5
4890echo "${ECHO_T}yes" >&6; }
4891else
4892  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4893echo "${ECHO_T}no, using $LN_S" >&6; }
4894fi
4895
4896{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4897echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4898if test "${lt_cv_deplibs_check_method+set}" = set; then
4899  echo $ECHO_N "(cached) $ECHO_C" >&6
4900else
4901  lt_cv_file_magic_cmd='$MAGIC_CMD'
4902lt_cv_file_magic_test_file=
4903lt_cv_deplibs_check_method='unknown'
4904# Need to set the preceding variable on all platforms that support
4905# interlibrary dependencies.
4906# 'none' -- dependencies not supported.
4907# `unknown' -- same as none, but documents that we really don't know.
4908# 'pass_all' -- all dependencies passed with no checks.
4909# 'test_compile' -- check by making test program.
4910# 'file_magic [[regex]]' -- check by looking for files in library path
4911# which responds to the $file_magic_cmd with a given extended regex.
4912# If you have `file' or equivalent on your system and you're not sure
4913# whether `pass_all' will *always* work, you probably want this one.
4914
4915case $host_os in
4916aix[4-9]*)
4917  lt_cv_deplibs_check_method=pass_all
4918  ;;
4919
4920beos*)
4921  lt_cv_deplibs_check_method=pass_all
4922  ;;
4923
4924bsdi[45]*)
4925  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4926  lt_cv_file_magic_cmd='/usr/bin/file -L'
4927  lt_cv_file_magic_test_file=/shlib/libc.so
4928  ;;
4929
4930cygwin*)
4931  # func_win32_libid is a shell function defined in ltmain.sh
4932  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4933  lt_cv_file_magic_cmd='func_win32_libid'
4934  ;;
4935
4936mingw* | pw32*)
4937  # Base MSYS/MinGW do not provide the 'file' command needed by
4938  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4939  # unless we find 'file', for example because we are cross-compiling.
4940  if ( file / ) >/dev/null 2>&1; then
4941    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4942    lt_cv_file_magic_cmd='func_win32_libid'
4943  else
4944    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4945    lt_cv_file_magic_cmd='$OBJDUMP -f'
4946  fi
4947  ;;
4948
4949darwin* | rhapsody*)
4950  lt_cv_deplibs_check_method=pass_all
4951  ;;
4952
4953freebsd* | dragonfly*)
4954  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4955    case $host_cpu in
4956    i*86 )
4957      # Not sure whether the presence of OpenBSD here was a mistake.
4958      # Let's accept both of them until this is cleared up.
4959      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4960      lt_cv_file_magic_cmd=/usr/bin/file
4961      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4962      ;;
4963    esac
4964  else
4965    lt_cv_deplibs_check_method=pass_all
4966  fi
4967  ;;
4968
4969gnu*)
4970  lt_cv_deplibs_check_method=pass_all
4971  ;;
4972
4973hpux10.20* | hpux11*)
4974  lt_cv_file_magic_cmd=/usr/bin/file
4975  case $host_cpu in
4976  ia64*)
4977    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4978    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4979    ;;
4980  hppa*64*)
4981    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]'
4982    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4983    ;;
4984  *)
4985    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4986    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4987    ;;
4988  esac
4989  ;;
4990
4991interix[3-9]*)
4992  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4993  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4994  ;;
4995
4996irix5* | irix6* | nonstopux*)
4997  case $LD in
4998  *-32|*"-32 ") libmagic=32-bit;;
4999  *-n32|*"-n32 ") libmagic=N32;;
5000  *-64|*"-64 ") libmagic=64-bit;;
5001  *) libmagic=never-match;;
5002  esac
5003  lt_cv_deplibs_check_method=pass_all
5004  ;;
5005
5006# This must be Linux ELF.
5007linux* | k*bsd*-gnu)
5008  lt_cv_deplibs_check_method=pass_all
5009  ;;
5010
5011netbsd* | netbsdelf*-gnu)
5012  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5013    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5014  else
5015    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5016  fi
5017  ;;
5018
5019newos6*)
5020  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5021  lt_cv_file_magic_cmd=/usr/bin/file
5022  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5023  ;;
5024
5025nto-qnx*)
5026  lt_cv_deplibs_check_method=unknown
5027  ;;
5028
5029openbsd*)
5030  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5031    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5032  else
5033    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5034  fi
5035  ;;
5036
5037osf3* | osf4* | osf5*)
5038  lt_cv_deplibs_check_method=pass_all
5039  ;;
5040
5041rdos*)
5042  lt_cv_deplibs_check_method=pass_all
5043  ;;
5044
5045solaris*)
5046  lt_cv_deplibs_check_method=pass_all
5047  ;;
5048
5049sysv4 | sysv4.3*)
5050  case $host_vendor in
5051  motorola)
5052    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]'
5053    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5054    ;;
5055  ncr)
5056    lt_cv_deplibs_check_method=pass_all
5057    ;;
5058  sequent)
5059    lt_cv_file_magic_cmd='/bin/file'
5060    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5061    ;;
5062  sni)
5063    lt_cv_file_magic_cmd='/bin/file'
5064    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5065    lt_cv_file_magic_test_file=/lib/libc.so
5066    ;;
5067  siemens)
5068    lt_cv_deplibs_check_method=pass_all
5069    ;;
5070  pc)
5071    lt_cv_deplibs_check_method=pass_all
5072    ;;
5073  esac
5074  ;;
5075
5076sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5077  lt_cv_deplibs_check_method=pass_all
5078  ;;
5079esac
5080
5081fi
5082{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5083echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5084file_magic_cmd=$lt_cv_file_magic_cmd
5085deplibs_check_method=$lt_cv_deplibs_check_method
5086test -z "$deplibs_check_method" && deplibs_check_method=unknown
5087
5088
5089
5090
5091# If no C compiler was specified, use CC.
5092LTCC=${LTCC-"$CC"}
5093
5094# If no C compiler flags were specified, use CFLAGS.
5095LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5096
5097# Allow CC to be a program name with arguments.
5098compiler=$CC
5099
5100
5101# Check whether --enable-libtool-lock was given.
5102if test "${enable_libtool_lock+set}" = set; then
5103  enableval=$enable_libtool_lock;
5104fi
5105
5106test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5107
5108# Some flags need to be propagated to the compiler or linker for good
5109# libtool support.
5110case $host in
5111ia64-*-hpux*)
5112  # Find out which ABI we are using.
5113  echo 'int i;' > conftest.$ac_ext
5114  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5115  (eval $ac_compile) 2>&5
5116  ac_status=$?
5117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118  (exit $ac_status); }; then
5119    case `/usr/bin/file conftest.$ac_objext` in
5120    *ELF-32*)
5121      HPUX_IA64_MODE="32"
5122      ;;
5123    *ELF-64*)
5124      HPUX_IA64_MODE="64"
5125      ;;
5126    esac
5127  fi
5128  rm -rf conftest*
5129  ;;
5130*-*-irix6*)
5131  # Find out which ABI we are using.
5132  echo '#line 5132 "configure"' > conftest.$ac_ext
5133  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5134  (eval $ac_compile) 2>&5
5135  ac_status=$?
5136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137  (exit $ac_status); }; then
5138   if test "$lt_cv_prog_gnu_ld" = yes; then
5139    case `/usr/bin/file conftest.$ac_objext` in
5140    *32-bit*)
5141      LD="${LD-ld} -melf32bsmip"
5142      ;;
5143    *N32*)
5144      LD="${LD-ld} -melf32bmipn32"
5145      ;;
5146    *64-bit*)
5147      LD="${LD-ld} -melf64bmip"
5148      ;;
5149    esac
5150   else
5151    case `/usr/bin/file conftest.$ac_objext` in
5152    *32-bit*)
5153      LD="${LD-ld} -32"
5154      ;;
5155    *N32*)
5156      LD="${LD-ld} -n32"
5157      ;;
5158    *64-bit*)
5159      LD="${LD-ld} -64"
5160      ;;
5161    esac
5162   fi
5163  fi
5164  rm -rf conftest*
5165  ;;
5166
5167x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5168s390*-*linux*|sparc*-*linux*)
5169  # Find out which ABI we are using.
5170  echo 'int i;' > conftest.$ac_ext
5171  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5172  (eval $ac_compile) 2>&5
5173  ac_status=$?
5174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175  (exit $ac_status); }; then
5176    case `/usr/bin/file conftest.o` in
5177    *32-bit*)
5178      case $host in
5179        x86_64-*kfreebsd*-gnu)
5180          LD="${LD-ld} -m elf_i386_fbsd"
5181          ;;
5182        x86_64-*linux*)
5183          LD="${LD-ld} -m elf_i386"
5184          ;;
5185        ppc64-*linux*|powerpc64-*linux*)
5186          LD="${LD-ld} -m elf32ppclinux"
5187          ;;
5188        s390x-*linux*)
5189          LD="${LD-ld} -m elf_s390"
5190          ;;
5191        sparc64-*linux*)
5192          LD="${LD-ld} -m elf32_sparc"
5193          ;;
5194      esac
5195      ;;
5196    *64-bit*)
5197      case $host in
5198        x86_64-*kfreebsd*-gnu)
5199          LD="${LD-ld} -m elf_x86_64_fbsd"
5200          ;;
5201        x86_64-*linux*)
5202          LD="${LD-ld} -m elf_x86_64"
5203          ;;
5204        ppc*-*linux*|powerpc*-*linux*)
5205          LD="${LD-ld} -m elf64ppc"
5206          ;;
5207        s390*-*linux*)
5208          LD="${LD-ld} -m elf64_s390"
5209          ;;
5210        sparc*-*linux*)
5211          LD="${LD-ld} -m elf64_sparc"
5212          ;;
5213      esac
5214      ;;
5215    esac
5216  fi
5217  rm -rf conftest*
5218  ;;
5219
5220*-*-sco3.2v5*)
5221  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5222  SAVE_CFLAGS="$CFLAGS"
5223  CFLAGS="$CFLAGS -belf"
5224  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5225echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5226if test "${lt_cv_cc_needs_belf+set}" = set; then
5227  echo $ECHO_N "(cached) $ECHO_C" >&6
5228else
5229  ac_ext=c
5230ac_cpp='$CPP $CPPFLAGS'
5231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5233ac_compiler_gnu=$ac_cv_c_compiler_gnu
5234
5235     cat >conftest.$ac_ext <<_ACEOF
5236/* confdefs.h.  */
5237_ACEOF
5238cat confdefs.h >>conftest.$ac_ext
5239cat >>conftest.$ac_ext <<_ACEOF
5240/* end confdefs.h.  */
5241
5242int
5243main ()
5244{
5245
5246  ;
5247  return 0;
5248}
5249_ACEOF
5250rm -f conftest.$ac_objext conftest$ac_exeext
5251if { (ac_try="$ac_link"
5252case "(($ac_try" in
5253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254  *) ac_try_echo=$ac_try;;
5255esac
5256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257  (eval "$ac_link") 2>conftest.er1
5258  ac_status=$?
5259  grep -v '^ *+' conftest.er1 >conftest.err
5260  rm -f conftest.er1
5261  cat conftest.err >&5
5262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263  (exit $ac_status); } && {
5264	 test -z "$ac_c_werror_flag" ||
5265	 test ! -s conftest.err
5266       } && test -s conftest$ac_exeext &&
5267       $as_test_x conftest$ac_exeext; then
5268  lt_cv_cc_needs_belf=yes
5269else
5270  echo "$as_me: failed program was:" >&5
5271sed 's/^/| /' conftest.$ac_ext >&5
5272
5273	lt_cv_cc_needs_belf=no
5274fi
5275
5276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5277      conftest$ac_exeext conftest.$ac_ext
5278     ac_ext=c
5279ac_cpp='$CPP $CPPFLAGS'
5280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5282ac_compiler_gnu=$ac_cv_c_compiler_gnu
5283
5284fi
5285{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5286echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5287  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5288    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5289    CFLAGS="$SAVE_CFLAGS"
5290  fi
5291  ;;
5292sparc*-*solaris*)
5293  # Find out which ABI we are using.
5294  echo 'int i;' > conftest.$ac_ext
5295  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5296  (eval $ac_compile) 2>&5
5297  ac_status=$?
5298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299  (exit $ac_status); }; then
5300    case `/usr/bin/file conftest.o` in
5301    *64-bit*)
5302      case $lt_cv_prog_gnu_ld in
5303      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5304      *)
5305        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5306	  LD="${LD-ld} -64"
5307	fi
5308	;;
5309      esac
5310      ;;
5311    esac
5312  fi
5313  rm -rf conftest*
5314  ;;
5315
5316
5317esac
5318
5319need_locks="$enable_libtool_lock"
5320
5321
5322ac_ext=c
5323ac_cpp='$CPP $CPPFLAGS'
5324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5326ac_compiler_gnu=$ac_cv_c_compiler_gnu
5327{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5328echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5329# On Suns, sometimes $CPP names a directory.
5330if test -n "$CPP" && test -d "$CPP"; then
5331  CPP=
5332fi
5333if test -z "$CPP"; then
5334  if test "${ac_cv_prog_CPP+set}" = set; then
5335  echo $ECHO_N "(cached) $ECHO_C" >&6
5336else
5337      # Double quotes because CPP needs to be expanded
5338    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5339    do
5340      ac_preproc_ok=false
5341for ac_c_preproc_warn_flag in '' yes
5342do
5343  # Use a header file that comes with gcc, so configuring glibc
5344  # with a fresh cross-compiler works.
5345  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5346  # <limits.h> exists even on freestanding compilers.
5347  # On the NeXT, cc -E runs the code through the compiler's parser,
5348  # not just through cpp. "Syntax error" is here to catch this case.
5349  cat >conftest.$ac_ext <<_ACEOF
5350/* confdefs.h.  */
5351_ACEOF
5352cat confdefs.h >>conftest.$ac_ext
5353cat >>conftest.$ac_ext <<_ACEOF
5354/* end confdefs.h.  */
5355#ifdef __STDC__
5356# include <limits.h>
5357#else
5358# include <assert.h>
5359#endif
5360		     Syntax error
5361_ACEOF
5362if { (ac_try="$ac_cpp conftest.$ac_ext"
5363case "(($ac_try" in
5364  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365  *) ac_try_echo=$ac_try;;
5366esac
5367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5369  ac_status=$?
5370  grep -v '^ *+' conftest.er1 >conftest.err
5371  rm -f conftest.er1
5372  cat conftest.err >&5
5373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374  (exit $ac_status); } >/dev/null && {
5375	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5376	 test ! -s conftest.err
5377       }; then
5378  :
5379else
5380  echo "$as_me: failed program was:" >&5
5381sed 's/^/| /' conftest.$ac_ext >&5
5382
5383  # Broken: fails on valid input.
5384continue
5385fi
5386
5387rm -f conftest.err conftest.$ac_ext
5388
5389  # OK, works on sane cases.  Now check whether nonexistent headers
5390  # can be detected and how.
5391  cat >conftest.$ac_ext <<_ACEOF
5392/* confdefs.h.  */
5393_ACEOF
5394cat confdefs.h >>conftest.$ac_ext
5395cat >>conftest.$ac_ext <<_ACEOF
5396/* end confdefs.h.  */
5397#include <ac_nonexistent.h>
5398_ACEOF
5399if { (ac_try="$ac_cpp conftest.$ac_ext"
5400case "(($ac_try" in
5401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402  *) ac_try_echo=$ac_try;;
5403esac
5404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5406  ac_status=$?
5407  grep -v '^ *+' conftest.er1 >conftest.err
5408  rm -f conftest.er1
5409  cat conftest.err >&5
5410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411  (exit $ac_status); } >/dev/null && {
5412	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5413	 test ! -s conftest.err
5414       }; then
5415  # Broken: success on invalid input.
5416continue
5417else
5418  echo "$as_me: failed program was:" >&5
5419sed 's/^/| /' conftest.$ac_ext >&5
5420
5421  # Passes both tests.
5422ac_preproc_ok=:
5423break
5424fi
5425
5426rm -f conftest.err conftest.$ac_ext
5427
5428done
5429# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5430rm -f conftest.err conftest.$ac_ext
5431if $ac_preproc_ok; then
5432  break
5433fi
5434
5435    done
5436    ac_cv_prog_CPP=$CPP
5437
5438fi
5439  CPP=$ac_cv_prog_CPP
5440else
5441  ac_cv_prog_CPP=$CPP
5442fi
5443{ echo "$as_me:$LINENO: result: $CPP" >&5
5444echo "${ECHO_T}$CPP" >&6; }
5445ac_preproc_ok=false
5446for ac_c_preproc_warn_flag in '' yes
5447do
5448  # Use a header file that comes with gcc, so configuring glibc
5449  # with a fresh cross-compiler works.
5450  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5451  # <limits.h> exists even on freestanding compilers.
5452  # On the NeXT, cc -E runs the code through the compiler's parser,
5453  # not just through cpp. "Syntax error" is here to catch this case.
5454  cat >conftest.$ac_ext <<_ACEOF
5455/* confdefs.h.  */
5456_ACEOF
5457cat confdefs.h >>conftest.$ac_ext
5458cat >>conftest.$ac_ext <<_ACEOF
5459/* end confdefs.h.  */
5460#ifdef __STDC__
5461# include <limits.h>
5462#else
5463# include <assert.h>
5464#endif
5465		     Syntax error
5466_ACEOF
5467if { (ac_try="$ac_cpp conftest.$ac_ext"
5468case "(($ac_try" in
5469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470  *) ac_try_echo=$ac_try;;
5471esac
5472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5474  ac_status=$?
5475  grep -v '^ *+' conftest.er1 >conftest.err
5476  rm -f conftest.er1
5477  cat conftest.err >&5
5478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479  (exit $ac_status); } >/dev/null && {
5480	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5481	 test ! -s conftest.err
5482       }; then
5483  :
5484else
5485  echo "$as_me: failed program was:" >&5
5486sed 's/^/| /' conftest.$ac_ext >&5
5487
5488  # Broken: fails on valid input.
5489continue
5490fi
5491
5492rm -f conftest.err conftest.$ac_ext
5493
5494  # OK, works on sane cases.  Now check whether nonexistent headers
5495  # can be detected and how.
5496  cat >conftest.$ac_ext <<_ACEOF
5497/* confdefs.h.  */
5498_ACEOF
5499cat confdefs.h >>conftest.$ac_ext
5500cat >>conftest.$ac_ext <<_ACEOF
5501/* end confdefs.h.  */
5502#include <ac_nonexistent.h>
5503_ACEOF
5504if { (ac_try="$ac_cpp conftest.$ac_ext"
5505case "(($ac_try" in
5506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507  *) ac_try_echo=$ac_try;;
5508esac
5509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5511  ac_status=$?
5512  grep -v '^ *+' conftest.er1 >conftest.err
5513  rm -f conftest.er1
5514  cat conftest.err >&5
5515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516  (exit $ac_status); } >/dev/null && {
5517	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5518	 test ! -s conftest.err
5519       }; then
5520  # Broken: success on invalid input.
5521continue
5522else
5523  echo "$as_me: failed program was:" >&5
5524sed 's/^/| /' conftest.$ac_ext >&5
5525
5526  # Passes both tests.
5527ac_preproc_ok=:
5528break
5529fi
5530
5531rm -f conftest.err conftest.$ac_ext
5532
5533done
5534# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5535rm -f conftest.err conftest.$ac_ext
5536if $ac_preproc_ok; then
5537  :
5538else
5539  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5540See \`config.log' for more details." >&5
5541echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5542See \`config.log' for more details." >&2;}
5543   { (exit 1); exit 1; }; }
5544fi
5545
5546ac_ext=c
5547ac_cpp='$CPP $CPPFLAGS'
5548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550ac_compiler_gnu=$ac_cv_c_compiler_gnu
5551
5552
5553{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5554echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5555if test "${ac_cv_header_stdc+set}" = set; then
5556  echo $ECHO_N "(cached) $ECHO_C" >&6
5557else
5558  cat >conftest.$ac_ext <<_ACEOF
5559/* confdefs.h.  */
5560_ACEOF
5561cat confdefs.h >>conftest.$ac_ext
5562cat >>conftest.$ac_ext <<_ACEOF
5563/* end confdefs.h.  */
5564#include <stdlib.h>
5565#include <stdarg.h>
5566#include <string.h>
5567#include <float.h>
5568
5569int
5570main ()
5571{
5572
5573  ;
5574  return 0;
5575}
5576_ACEOF
5577rm -f conftest.$ac_objext
5578if { (ac_try="$ac_compile"
5579case "(($ac_try" in
5580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581  *) ac_try_echo=$ac_try;;
5582esac
5583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584  (eval "$ac_compile") 2>conftest.er1
5585  ac_status=$?
5586  grep -v '^ *+' conftest.er1 >conftest.err
5587  rm -f conftest.er1
5588  cat conftest.err >&5
5589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590  (exit $ac_status); } && {
5591	 test -z "$ac_c_werror_flag" ||
5592	 test ! -s conftest.err
5593       } && test -s conftest.$ac_objext; then
5594  ac_cv_header_stdc=yes
5595else
5596  echo "$as_me: failed program was:" >&5
5597sed 's/^/| /' conftest.$ac_ext >&5
5598
5599	ac_cv_header_stdc=no
5600fi
5601
5602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603
5604if test $ac_cv_header_stdc = yes; then
5605  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5606  cat >conftest.$ac_ext <<_ACEOF
5607/* confdefs.h.  */
5608_ACEOF
5609cat confdefs.h >>conftest.$ac_ext
5610cat >>conftest.$ac_ext <<_ACEOF
5611/* end confdefs.h.  */
5612#include <string.h>
5613
5614_ACEOF
5615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5616  $EGREP "memchr" >/dev/null 2>&1; then
5617  :
5618else
5619  ac_cv_header_stdc=no
5620fi
5621rm -f conftest*
5622
5623fi
5624
5625if test $ac_cv_header_stdc = yes; then
5626  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5627  cat >conftest.$ac_ext <<_ACEOF
5628/* confdefs.h.  */
5629_ACEOF
5630cat confdefs.h >>conftest.$ac_ext
5631cat >>conftest.$ac_ext <<_ACEOF
5632/* end confdefs.h.  */
5633#include <stdlib.h>
5634
5635_ACEOF
5636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5637  $EGREP "free" >/dev/null 2>&1; then
5638  :
5639else
5640  ac_cv_header_stdc=no
5641fi
5642rm -f conftest*
5643
5644fi
5645
5646if test $ac_cv_header_stdc = yes; then
5647  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5648  if test "$cross_compiling" = yes; then
5649  :
5650else
5651  cat >conftest.$ac_ext <<_ACEOF
5652/* confdefs.h.  */
5653_ACEOF
5654cat confdefs.h >>conftest.$ac_ext
5655cat >>conftest.$ac_ext <<_ACEOF
5656/* end confdefs.h.  */
5657#include <ctype.h>
5658#include <stdlib.h>
5659#if ((' ' & 0x0FF) == 0x020)
5660# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5661# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5662#else
5663# define ISLOWER(c) \
5664		   (('a' <= (c) && (c) <= 'i') \
5665		     || ('j' <= (c) && (c) <= 'r') \
5666		     || ('s' <= (c) && (c) <= 'z'))
5667# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5668#endif
5669
5670#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5671int
5672main ()
5673{
5674  int i;
5675  for (i = 0; i < 256; i++)
5676    if (XOR (islower (i), ISLOWER (i))
5677	|| toupper (i) != TOUPPER (i))
5678      return 2;
5679  return 0;
5680}
5681_ACEOF
5682rm -f conftest$ac_exeext
5683if { (ac_try="$ac_link"
5684case "(($ac_try" in
5685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686  *) ac_try_echo=$ac_try;;
5687esac
5688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689  (eval "$ac_link") 2>&5
5690  ac_status=$?
5691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5693  { (case "(($ac_try" in
5694  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695  *) ac_try_echo=$ac_try;;
5696esac
5697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698  (eval "$ac_try") 2>&5
5699  ac_status=$?
5700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701  (exit $ac_status); }; }; then
5702  :
5703else
5704  echo "$as_me: program exited with status $ac_status" >&5
5705echo "$as_me: failed program was:" >&5
5706sed 's/^/| /' conftest.$ac_ext >&5
5707
5708( exit $ac_status )
5709ac_cv_header_stdc=no
5710fi
5711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5712fi
5713
5714
5715fi
5716fi
5717{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5718echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5719if test $ac_cv_header_stdc = yes; then
5720
5721cat >>confdefs.h <<\_ACEOF
5722#define STDC_HEADERS 1
5723_ACEOF
5724
5725fi
5726
5727# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5738		  inttypes.h stdint.h unistd.h
5739do
5740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5741{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5744  echo $ECHO_N "(cached) $ECHO_C" >&6
5745else
5746  cat >conftest.$ac_ext <<_ACEOF
5747/* confdefs.h.  */
5748_ACEOF
5749cat confdefs.h >>conftest.$ac_ext
5750cat >>conftest.$ac_ext <<_ACEOF
5751/* end confdefs.h.  */
5752$ac_includes_default
5753
5754#include <$ac_header>
5755_ACEOF
5756rm -f conftest.$ac_objext
5757if { (ac_try="$ac_compile"
5758case "(($ac_try" in
5759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760  *) ac_try_echo=$ac_try;;
5761esac
5762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763  (eval "$ac_compile") 2>conftest.er1
5764  ac_status=$?
5765  grep -v '^ *+' conftest.er1 >conftest.err
5766  rm -f conftest.er1
5767  cat conftest.err >&5
5768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769  (exit $ac_status); } && {
5770	 test -z "$ac_c_werror_flag" ||
5771	 test ! -s conftest.err
5772       } && test -s conftest.$ac_objext; then
5773  eval "$as_ac_Header=yes"
5774else
5775  echo "$as_me: failed program was:" >&5
5776sed 's/^/| /' conftest.$ac_ext >&5
5777
5778	eval "$as_ac_Header=no"
5779fi
5780
5781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782fi
5783ac_res=`eval echo '${'$as_ac_Header'}'`
5784	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5785echo "${ECHO_T}$ac_res" >&6; }
5786if test `eval echo '${'$as_ac_Header'}'` = yes; then
5787  cat >>confdefs.h <<_ACEOF
5788#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5789_ACEOF
5790
5791fi
5792
5793done
5794
5795
5796
5797for ac_header in dlfcn.h
5798do
5799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5800if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5801  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5804  echo $ECHO_N "(cached) $ECHO_C" >&6
5805fi
5806ac_res=`eval echo '${'$as_ac_Header'}'`
5807	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5808echo "${ECHO_T}$ac_res" >&6; }
5809else
5810  # Is the header compilable?
5811{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5812echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5813cat >conftest.$ac_ext <<_ACEOF
5814/* confdefs.h.  */
5815_ACEOF
5816cat confdefs.h >>conftest.$ac_ext
5817cat >>conftest.$ac_ext <<_ACEOF
5818/* end confdefs.h.  */
5819$ac_includes_default
5820#include <$ac_header>
5821_ACEOF
5822rm -f conftest.$ac_objext
5823if { (ac_try="$ac_compile"
5824case "(($ac_try" in
5825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826  *) ac_try_echo=$ac_try;;
5827esac
5828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829  (eval "$ac_compile") 2>conftest.er1
5830  ac_status=$?
5831  grep -v '^ *+' conftest.er1 >conftest.err
5832  rm -f conftest.er1
5833  cat conftest.err >&5
5834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835  (exit $ac_status); } && {
5836	 test -z "$ac_c_werror_flag" ||
5837	 test ! -s conftest.err
5838       } && test -s conftest.$ac_objext; then
5839  ac_header_compiler=yes
5840else
5841  echo "$as_me: failed program was:" >&5
5842sed 's/^/| /' conftest.$ac_ext >&5
5843
5844	ac_header_compiler=no
5845fi
5846
5847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5848{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5849echo "${ECHO_T}$ac_header_compiler" >&6; }
5850
5851# Is the header present?
5852{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5853echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5854cat >conftest.$ac_ext <<_ACEOF
5855/* confdefs.h.  */
5856_ACEOF
5857cat confdefs.h >>conftest.$ac_ext
5858cat >>conftest.$ac_ext <<_ACEOF
5859/* end confdefs.h.  */
5860#include <$ac_header>
5861_ACEOF
5862if { (ac_try="$ac_cpp conftest.$ac_ext"
5863case "(($ac_try" in
5864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865  *) ac_try_echo=$ac_try;;
5866esac
5867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5869  ac_status=$?
5870  grep -v '^ *+' conftest.er1 >conftest.err
5871  rm -f conftest.er1
5872  cat conftest.err >&5
5873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874  (exit $ac_status); } >/dev/null && {
5875	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5876	 test ! -s conftest.err
5877       }; then
5878  ac_header_preproc=yes
5879else
5880  echo "$as_me: failed program was:" >&5
5881sed 's/^/| /' conftest.$ac_ext >&5
5882
5883  ac_header_preproc=no
5884fi
5885
5886rm -f conftest.err conftest.$ac_ext
5887{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5888echo "${ECHO_T}$ac_header_preproc" >&6; }
5889
5890# So?  What about this header?
5891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5892  yes:no: )
5893    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5895    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5897    ac_header_preproc=yes
5898    ;;
5899  no:yes:* )
5900    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5902    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5903echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5904    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5906    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5907echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5908    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5910    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5912    ( cat <<\_ASBOX
5913## ---------------------------------------------------- ##
5914## Report this to libodbcxx-devel@lists.sourceforge.net ##
5915## ---------------------------------------------------- ##
5916_ASBOX
5917     ) | sed "s/^/$as_me: WARNING:     /" >&2
5918    ;;
5919esac
5920{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5923  echo $ECHO_N "(cached) $ECHO_C" >&6
5924else
5925  eval "$as_ac_Header=\$ac_header_preproc"
5926fi
5927ac_res=`eval echo '${'$as_ac_Header'}'`
5928	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5929echo "${ECHO_T}$ac_res" >&6; }
5930
5931fi
5932if test `eval echo '${'$as_ac_Header'}'` = yes; then
5933  cat >>confdefs.h <<_ACEOF
5934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5935_ACEOF
5936
5937fi
5938
5939done
5940
5941
5942
5943if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5944    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5945    (test "X$CXX" != "Xg++"))) ; then
5946  ac_ext=cpp
5947ac_cpp='$CXXCPP $CPPFLAGS'
5948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5951{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5952echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5953if test -z "$CXXCPP"; then
5954  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5955  echo $ECHO_N "(cached) $ECHO_C" >&6
5956else
5957      # Double quotes because CXXCPP needs to be expanded
5958    for CXXCPP in "$CXX -E" "/lib/cpp"
5959    do
5960      ac_preproc_ok=false
5961for ac_cxx_preproc_warn_flag in '' yes
5962do
5963  # Use a header file that comes with gcc, so configuring glibc
5964  # with a fresh cross-compiler works.
5965  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5966  # <limits.h> exists even on freestanding compilers.
5967  # On the NeXT, cc -E runs the code through the compiler's parser,
5968  # not just through cpp. "Syntax error" is here to catch this case.
5969  cat >conftest.$ac_ext <<_ACEOF
5970/* confdefs.h.  */
5971_ACEOF
5972cat confdefs.h >>conftest.$ac_ext
5973cat >>conftest.$ac_ext <<_ACEOF
5974/* end confdefs.h.  */
5975#ifdef __STDC__
5976# include <limits.h>
5977#else
5978# include <assert.h>
5979#endif
5980		     Syntax error
5981_ACEOF
5982if { (ac_try="$ac_cpp conftest.$ac_ext"
5983case "(($ac_try" in
5984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985  *) ac_try_echo=$ac_try;;
5986esac
5987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5989  ac_status=$?
5990  grep -v '^ *+' conftest.er1 >conftest.err
5991  rm -f conftest.er1
5992  cat conftest.err >&5
5993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994  (exit $ac_status); } >/dev/null && {
5995	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5996	 test ! -s conftest.err
5997       }; then
5998  :
5999else
6000  echo "$as_me: failed program was:" >&5
6001sed 's/^/| /' conftest.$ac_ext >&5
6002
6003  # Broken: fails on valid input.
6004continue
6005fi
6006
6007rm -f conftest.err conftest.$ac_ext
6008
6009  # OK, works on sane cases.  Now check whether nonexistent headers
6010  # can be detected and how.
6011  cat >conftest.$ac_ext <<_ACEOF
6012/* confdefs.h.  */
6013_ACEOF
6014cat confdefs.h >>conftest.$ac_ext
6015cat >>conftest.$ac_ext <<_ACEOF
6016/* end confdefs.h.  */
6017#include <ac_nonexistent.h>
6018_ACEOF
6019if { (ac_try="$ac_cpp conftest.$ac_ext"
6020case "(($ac_try" in
6021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022  *) ac_try_echo=$ac_try;;
6023esac
6024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6026  ac_status=$?
6027  grep -v '^ *+' conftest.er1 >conftest.err
6028  rm -f conftest.er1
6029  cat conftest.err >&5
6030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031  (exit $ac_status); } >/dev/null && {
6032	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6033	 test ! -s conftest.err
6034       }; then
6035  # Broken: success on invalid input.
6036continue
6037else
6038  echo "$as_me: failed program was:" >&5
6039sed 's/^/| /' conftest.$ac_ext >&5
6040
6041  # Passes both tests.
6042ac_preproc_ok=:
6043break
6044fi
6045
6046rm -f conftest.err conftest.$ac_ext
6047
6048done
6049# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6050rm -f conftest.err conftest.$ac_ext
6051if $ac_preproc_ok; then
6052  break
6053fi
6054
6055    done
6056    ac_cv_prog_CXXCPP=$CXXCPP
6057
6058fi
6059  CXXCPP=$ac_cv_prog_CXXCPP
6060else
6061  ac_cv_prog_CXXCPP=$CXXCPP
6062fi
6063{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6064echo "${ECHO_T}$CXXCPP" >&6; }
6065ac_preproc_ok=false
6066for ac_cxx_preproc_warn_flag in '' yes
6067do
6068  # Use a header file that comes with gcc, so configuring glibc
6069  # with a fresh cross-compiler works.
6070  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6071  # <limits.h> exists even on freestanding compilers.
6072  # On the NeXT, cc -E runs the code through the compiler's parser,
6073  # not just through cpp. "Syntax error" is here to catch this case.
6074  cat >conftest.$ac_ext <<_ACEOF
6075/* confdefs.h.  */
6076_ACEOF
6077cat confdefs.h >>conftest.$ac_ext
6078cat >>conftest.$ac_ext <<_ACEOF
6079/* end confdefs.h.  */
6080#ifdef __STDC__
6081# include <limits.h>
6082#else
6083# include <assert.h>
6084#endif
6085		     Syntax error
6086_ACEOF
6087if { (ac_try="$ac_cpp conftest.$ac_ext"
6088case "(($ac_try" in
6089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090  *) ac_try_echo=$ac_try;;
6091esac
6092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6094  ac_status=$?
6095  grep -v '^ *+' conftest.er1 >conftest.err
6096  rm -f conftest.er1
6097  cat conftest.err >&5
6098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099  (exit $ac_status); } >/dev/null && {
6100	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6101	 test ! -s conftest.err
6102       }; then
6103  :
6104else
6105  echo "$as_me: failed program was:" >&5
6106sed 's/^/| /' conftest.$ac_ext >&5
6107
6108  # Broken: fails on valid input.
6109continue
6110fi
6111
6112rm -f conftest.err conftest.$ac_ext
6113
6114  # OK, works on sane cases.  Now check whether nonexistent headers
6115  # can be detected and how.
6116  cat >conftest.$ac_ext <<_ACEOF
6117/* confdefs.h.  */
6118_ACEOF
6119cat confdefs.h >>conftest.$ac_ext
6120cat >>conftest.$ac_ext <<_ACEOF
6121/* end confdefs.h.  */
6122#include <ac_nonexistent.h>
6123_ACEOF
6124if { (ac_try="$ac_cpp conftest.$ac_ext"
6125case "(($ac_try" in
6126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127  *) ac_try_echo=$ac_try;;
6128esac
6129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6131  ac_status=$?
6132  grep -v '^ *+' conftest.er1 >conftest.err
6133  rm -f conftest.er1
6134  cat conftest.err >&5
6135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136  (exit $ac_status); } >/dev/null && {
6137	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6138	 test ! -s conftest.err
6139       }; then
6140  # Broken: success on invalid input.
6141continue
6142else
6143  echo "$as_me: failed program was:" >&5
6144sed 's/^/| /' conftest.$ac_ext >&5
6145
6146  # Passes both tests.
6147ac_preproc_ok=:
6148break
6149fi
6150
6151rm -f conftest.err conftest.$ac_ext
6152
6153done
6154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6155rm -f conftest.err conftest.$ac_ext
6156if $ac_preproc_ok; then
6157  :
6158else
6159  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6160See \`config.log' for more details." >&5
6161echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6162See \`config.log' for more details." >&2;}
6163   { (exit 1); exit 1; }; }
6164fi
6165
6166ac_ext=cpp
6167ac_cpp='$CXXCPP $CPPFLAGS'
6168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6171
6172fi
6173
6174
6175ac_ext=f
6176ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6177ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6179if test -n "$ac_tool_prefix"; then
6180  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
6181  do
6182    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6183set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6184{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6186if test "${ac_cv_prog_F77+set}" = set; then
6187  echo $ECHO_N "(cached) $ECHO_C" >&6
6188else
6189  if test -n "$F77"; then
6190  ac_cv_prog_F77="$F77" # Let the user override the test.
6191else
6192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193for as_dir in $PATH
6194do
6195  IFS=$as_save_IFS
6196  test -z "$as_dir" && as_dir=.
6197  for ac_exec_ext in '' $ac_executable_extensions; do
6198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6200    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201    break 2
6202  fi
6203done
6204done
6205IFS=$as_save_IFS
6206
6207fi
6208fi
6209F77=$ac_cv_prog_F77
6210if test -n "$F77"; then
6211  { echo "$as_me:$LINENO: result: $F77" >&5
6212echo "${ECHO_T}$F77" >&6; }
6213else
6214  { echo "$as_me:$LINENO: result: no" >&5
6215echo "${ECHO_T}no" >&6; }
6216fi
6217
6218
6219    test -n "$F77" && break
6220  done
6221fi
6222if test -z "$F77"; then
6223  ac_ct_F77=$F77
6224  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
6225do
6226  # Extract the first word of "$ac_prog", so it can be a program name with args.
6227set dummy $ac_prog; ac_word=$2
6228{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6230if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6231  echo $ECHO_N "(cached) $ECHO_C" >&6
6232else
6233  if test -n "$ac_ct_F77"; then
6234  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6235else
6236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237for as_dir in $PATH
6238do
6239  IFS=$as_save_IFS
6240  test -z "$as_dir" && as_dir=.
6241  for ac_exec_ext in '' $ac_executable_extensions; do
6242  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6243    ac_cv_prog_ac_ct_F77="$ac_prog"
6244    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6245    break 2
6246  fi
6247done
6248done
6249IFS=$as_save_IFS
6250
6251fi
6252fi
6253ac_ct_F77=$ac_cv_prog_ac_ct_F77
6254if test -n "$ac_ct_F77"; then
6255  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6256echo "${ECHO_T}$ac_ct_F77" >&6; }
6257else
6258  { echo "$as_me:$LINENO: result: no" >&5
6259echo "${ECHO_T}no" >&6; }
6260fi
6261
6262
6263  test -n "$ac_ct_F77" && break
6264done
6265
6266  if test "x$ac_ct_F77" = x; then
6267    F77=""
6268  else
6269    case $cross_compiling:$ac_tool_warned in
6270yes:)
6271{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6272whose name does not start with the host triplet.  If you think this
6273configuration is useful to you, please write to autoconf@gnu.org." >&5
6274echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6275whose name does not start with the host triplet.  If you think this
6276configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6277ac_tool_warned=yes ;;
6278esac
6279    F77=$ac_ct_F77
6280  fi
6281fi
6282
6283
6284# Provide some information about the compiler.
6285echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6286ac_compiler=`set X $ac_compile; echo $2`
6287{ (ac_try="$ac_compiler --version >&5"
6288case "(($ac_try" in
6289  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290  *) ac_try_echo=$ac_try;;
6291esac
6292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293  (eval "$ac_compiler --version >&5") 2>&5
6294  ac_status=$?
6295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296  (exit $ac_status); }
6297{ (ac_try="$ac_compiler -v >&5"
6298case "(($ac_try" in
6299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300  *) ac_try_echo=$ac_try;;
6301esac
6302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303  (eval "$ac_compiler -v >&5") 2>&5
6304  ac_status=$?
6305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306  (exit $ac_status); }
6307{ (ac_try="$ac_compiler -V >&5"
6308case "(($ac_try" in
6309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310  *) ac_try_echo=$ac_try;;
6311esac
6312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313  (eval "$ac_compiler -V >&5") 2>&5
6314  ac_status=$?
6315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316  (exit $ac_status); }
6317rm -f a.out
6318
6319# If we don't use `.F' as extension, the preprocessor is not run on the
6320# input file.  (Note that this only needs to work for GNU compilers.)
6321ac_save_ext=$ac_ext
6322ac_ext=F
6323{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6324echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6325if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6326  echo $ECHO_N "(cached) $ECHO_C" >&6
6327else
6328  cat >conftest.$ac_ext <<_ACEOF
6329      program main
6330#ifndef __GNUC__
6331       choke me
6332#endif
6333
6334      end
6335_ACEOF
6336rm -f conftest.$ac_objext
6337if { (ac_try="$ac_compile"
6338case "(($ac_try" in
6339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340  *) ac_try_echo=$ac_try;;
6341esac
6342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343  (eval "$ac_compile") 2>conftest.er1
6344  ac_status=$?
6345  grep -v '^ *+' conftest.er1 >conftest.err
6346  rm -f conftest.er1
6347  cat conftest.err >&5
6348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349  (exit $ac_status); } && {
6350	 test -z "$ac_f77_werror_flag" ||
6351	 test ! -s conftest.err
6352       } && test -s conftest.$ac_objext; then
6353  ac_compiler_gnu=yes
6354else
6355  echo "$as_me: failed program was:" >&5
6356sed 's/^/| /' conftest.$ac_ext >&5
6357
6358	ac_compiler_gnu=no
6359fi
6360
6361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6363
6364fi
6365{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6366echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6367ac_ext=$ac_save_ext
6368ac_test_FFLAGS=${FFLAGS+set}
6369ac_save_FFLAGS=$FFLAGS
6370FFLAGS=
6371{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6372echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6373if test "${ac_cv_prog_f77_g+set}" = set; then
6374  echo $ECHO_N "(cached) $ECHO_C" >&6
6375else
6376  FFLAGS=-g
6377cat >conftest.$ac_ext <<_ACEOF
6378      program main
6379
6380      end
6381_ACEOF
6382rm -f conftest.$ac_objext
6383if { (ac_try="$ac_compile"
6384case "(($ac_try" in
6385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386  *) ac_try_echo=$ac_try;;
6387esac
6388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389  (eval "$ac_compile") 2>conftest.er1
6390  ac_status=$?
6391  grep -v '^ *+' conftest.er1 >conftest.err
6392  rm -f conftest.er1
6393  cat conftest.err >&5
6394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395  (exit $ac_status); } && {
6396	 test -z "$ac_f77_werror_flag" ||
6397	 test ! -s conftest.err
6398       } && test -s conftest.$ac_objext; then
6399  ac_cv_prog_f77_g=yes
6400else
6401  echo "$as_me: failed program was:" >&5
6402sed 's/^/| /' conftest.$ac_ext >&5
6403
6404	ac_cv_prog_f77_g=no
6405fi
6406
6407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408
6409fi
6410{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6411echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6412if test "$ac_test_FFLAGS" = set; then
6413  FFLAGS=$ac_save_FFLAGS
6414elif test $ac_cv_prog_f77_g = yes; then
6415  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6416    FFLAGS="-g -O2"
6417  else
6418    FFLAGS="-g"
6419  fi
6420else
6421  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6422    FFLAGS="-O2"
6423  else
6424    FFLAGS=
6425  fi
6426fi
6427
6428G77=`test $ac_compiler_gnu = yes && echo yes`
6429ac_ext=c
6430ac_cpp='$CPP $CPPFLAGS'
6431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6433ac_compiler_gnu=$ac_cv_c_compiler_gnu
6434
6435
6436
6437# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6438# find the maximum length of command line arguments
6439{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6440echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6441if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6442  echo $ECHO_N "(cached) $ECHO_C" >&6
6443else
6444    i=0
6445  teststring="ABCD"
6446
6447  case $build_os in
6448  msdosdjgpp*)
6449    # On DJGPP, this test can blow up pretty badly due to problems in libc
6450    # (any single argument exceeding 2000 bytes causes a buffer overrun
6451    # during glob expansion).  Even if it were fixed, the result of this
6452    # check would be larger than it should be.
6453    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6454    ;;
6455
6456  gnu*)
6457    # Under GNU Hurd, this test is not required because there is
6458    # no limit to the length of command line arguments.
6459    # Libtool will interpret -1 as no limit whatsoever
6460    lt_cv_sys_max_cmd_len=-1;
6461    ;;
6462
6463  cygwin* | mingw*)
6464    # On Win9x/ME, this test blows up -- it succeeds, but takes
6465    # about 5 minutes as the teststring grows exponentially.
6466    # Worse, since 9x/ME are not pre-emptively multitasking,
6467    # you end up with a "frozen" computer, even though with patience
6468    # the test eventually succeeds (with a max line length of 256k).
6469    # Instead, let's just punt: use the minimum linelength reported by
6470    # all of the supported platforms: 8192 (on NT/2K/XP).
6471    lt_cv_sys_max_cmd_len=8192;
6472    ;;
6473
6474  amigaos*)
6475    # On AmigaOS with pdksh, this test takes hours, literally.
6476    # So we just punt and use a minimum line length of 8192.
6477    lt_cv_sys_max_cmd_len=8192;
6478    ;;
6479
6480  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6481    # This has been around since 386BSD, at least.  Likely further.
6482    if test -x /sbin/sysctl; then
6483      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6484    elif test -x /usr/sbin/sysctl; then
6485      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6486    else
6487      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6488    fi
6489    # And add a safety zone
6490    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6491    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6492    ;;
6493
6494  interix*)
6495    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6496    lt_cv_sys_max_cmd_len=196608
6497    ;;
6498
6499  osf*)
6500    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6501    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6502    # nice to cause kernel panics so lets avoid the loop below.
6503    # First set a reasonable default.
6504    lt_cv_sys_max_cmd_len=16384
6505    #
6506    if test -x /sbin/sysconfig; then
6507      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6508        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6509      esac
6510    fi
6511    ;;
6512  sco3.2v5*)
6513    lt_cv_sys_max_cmd_len=102400
6514    ;;
6515  sysv5* | sco5v6* | sysv4.2uw2*)
6516    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6517    if test -n "$kargmax"; then
6518      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6519    else
6520      lt_cv_sys_max_cmd_len=32768
6521    fi
6522    ;;
6523  *)
6524    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6525    if test -n "$lt_cv_sys_max_cmd_len"; then
6526      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6527      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6528    else
6529      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6530      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6531	       = "XX$teststring") >/dev/null 2>&1 &&
6532	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6533	      lt_cv_sys_max_cmd_len=$new_result &&
6534	      test $i != 17 # 1/2 MB should be enough
6535      do
6536        i=`expr $i + 1`
6537        teststring=$teststring$teststring
6538      done
6539      teststring=
6540      # Add a significant safety factor because C++ compilers can tack on massive
6541      # amounts of additional arguments before passing them to the linker.
6542      # It appears as though 1/2 is a usable value.
6543      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6544    fi
6545    ;;
6546  esac
6547
6548fi
6549
6550if test -n $lt_cv_sys_max_cmd_len ; then
6551  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6552echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6553else
6554  { echo "$as_me:$LINENO: result: none" >&5
6555echo "${ECHO_T}none" >&6; }
6556fi
6557
6558
6559
6560
6561
6562# Check for command to grab the raw symbol name followed by C symbol from nm.
6563{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6564echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6565if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6566  echo $ECHO_N "(cached) $ECHO_C" >&6
6567else
6568
6569# These are sane defaults that work on at least a few old systems.
6570# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6571
6572# Character class describing NM global symbol codes.
6573symcode='[BCDEGRST]'
6574
6575# Regexp to match symbols that can be accessed directly from C.
6576sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6577
6578# Transform an extracted symbol line into a proper C declaration
6579lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6580
6581# Transform an extracted symbol line into symbol name and symbol address
6582lt_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'"
6583
6584# Define system-specific variables.
6585case $host_os in
6586aix*)
6587  symcode='[BCDT]'
6588  ;;
6589cygwin* | mingw* | pw32*)
6590  symcode='[ABCDGISTW]'
6591  ;;
6592hpux*) # Its linker distinguishes data from code symbols
6593  if test "$host_cpu" = ia64; then
6594    symcode='[ABCDEGRST]'
6595  fi
6596  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6597  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'"
6598  ;;
6599linux* | k*bsd*-gnu)
6600  if test "$host_cpu" = ia64; then
6601    symcode='[ABCDGIRSTW]'
6602    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6603    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'"
6604  fi
6605  ;;
6606irix* | nonstopux*)
6607  symcode='[BCDEGRST]'
6608  ;;
6609osf*)
6610  symcode='[BCDEGQRST]'
6611  ;;
6612solaris*)
6613  symcode='[BDRT]'
6614  ;;
6615sco3.2v5*)
6616  symcode='[DT]'
6617  ;;
6618sysv4.2uw2*)
6619  symcode='[DT]'
6620  ;;
6621sysv5* | sco5v6* | unixware* | OpenUNIX*)
6622  symcode='[ABDT]'
6623  ;;
6624sysv4)
6625  symcode='[DFNSTU]'
6626  ;;
6627esac
6628
6629# Handle CRLF in mingw tool chain
6630opt_cr=
6631case $build_os in
6632mingw*)
6633  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6634  ;;
6635esac
6636
6637# If we're using GNU nm, then use its standard symbol codes.
6638case `$NM -V 2>&1` in
6639*GNU* | *'with BFD'*)
6640  symcode='[ABCDGIRSTW]' ;;
6641esac
6642
6643# Try without a prefix undercore, then with it.
6644for ac_symprfx in "" "_"; do
6645
6646  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6647  symxfrm="\\1 $ac_symprfx\\2 \\2"
6648
6649  # Write the raw and C identifiers.
6650  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6651
6652  # Check to see that the pipe works correctly.
6653  pipe_works=no
6654
6655  rm -f conftest*
6656  cat > conftest.$ac_ext <<EOF
6657#ifdef __cplusplus
6658extern "C" {
6659#endif
6660char nm_test_var;
6661void nm_test_func(){}
6662#ifdef __cplusplus
6663}
6664#endif
6665int main(){nm_test_var='a';nm_test_func();return(0);}
6666EOF
6667
6668  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669  (eval $ac_compile) 2>&5
6670  ac_status=$?
6671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672  (exit $ac_status); }; then
6673    # Now try to grab the symbols.
6674    nlist=conftest.nm
6675    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6676  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6677  ac_status=$?
6678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679  (exit $ac_status); } && test -s "$nlist"; then
6680      # Try sorting and uniquifying the output.
6681      if sort "$nlist" | uniq > "$nlist"T; then
6682	mv -f "$nlist"T "$nlist"
6683      else
6684	rm -f "$nlist"T
6685      fi
6686
6687      # Make sure that we snagged all the symbols we need.
6688      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6689	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6690	  cat <<EOF > conftest.$ac_ext
6691#ifdef __cplusplus
6692extern "C" {
6693#endif
6694
6695EOF
6696	  # Now generate the symbol file.
6697	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6698
6699	  cat <<EOF >> conftest.$ac_ext
6700#if defined (__STDC__) && __STDC__
6701# define lt_ptr_t void *
6702#else
6703# define lt_ptr_t char *
6704# define const
6705#endif
6706
6707/* The mapping between symbol names and symbols. */
6708const struct {
6709  const char *name;
6710  lt_ptr_t address;
6711}
6712lt_preloaded_symbols[] =
6713{
6714EOF
6715	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6716	  cat <<\EOF >> conftest.$ac_ext
6717  {0, (lt_ptr_t) 0}
6718};
6719
6720#ifdef __cplusplus
6721}
6722#endif
6723EOF
6724	  # Now try linking the two files.
6725	  mv conftest.$ac_objext conftstm.$ac_objext
6726	  lt_save_LIBS="$LIBS"
6727	  lt_save_CFLAGS="$CFLAGS"
6728	  LIBS="conftstm.$ac_objext"
6729	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6730	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6731  (eval $ac_link) 2>&5
6732  ac_status=$?
6733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6735	    pipe_works=yes
6736	  fi
6737	  LIBS="$lt_save_LIBS"
6738	  CFLAGS="$lt_save_CFLAGS"
6739	else
6740	  echo "cannot find nm_test_func in $nlist" >&5
6741	fi
6742      else
6743	echo "cannot find nm_test_var in $nlist" >&5
6744      fi
6745    else
6746      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6747    fi
6748  else
6749    echo "$progname: failed program was:" >&5
6750    cat conftest.$ac_ext >&5
6751  fi
6752  rm -rf conftest* conftst*
6753
6754  # Do not use the global_symbol_pipe unless it works.
6755  if test "$pipe_works" = yes; then
6756    break
6757  else
6758    lt_cv_sys_global_symbol_pipe=
6759  fi
6760done
6761
6762fi
6763
6764if test -z "$lt_cv_sys_global_symbol_pipe"; then
6765  lt_cv_sys_global_symbol_to_cdecl=
6766fi
6767if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6768  { echo "$as_me:$LINENO: result: failed" >&5
6769echo "${ECHO_T}failed" >&6; }
6770else
6771  { echo "$as_me:$LINENO: result: ok" >&5
6772echo "${ECHO_T}ok" >&6; }
6773fi
6774
6775{ echo "$as_me:$LINENO: checking for objdir" >&5
6776echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6777if test "${lt_cv_objdir+set}" = set; then
6778  echo $ECHO_N "(cached) $ECHO_C" >&6
6779else
6780  rm -f .libs 2>/dev/null
6781mkdir .libs 2>/dev/null
6782if test -d .libs; then
6783  lt_cv_objdir=.libs
6784else
6785  # MS-DOS does not allow filenames that begin with a dot.
6786  lt_cv_objdir=_libs
6787fi
6788rmdir .libs 2>/dev/null
6789fi
6790{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6791echo "${ECHO_T}$lt_cv_objdir" >&6; }
6792objdir=$lt_cv_objdir
6793
6794
6795
6796
6797
6798case $host_os in
6799aix3*)
6800  # AIX sometimes has problems with the GCC collect2 program.  For some
6801  # reason, if we set the COLLECT_NAMES environment variable, the problems
6802  # vanish in a puff of smoke.
6803  if test "X${COLLECT_NAMES+set}" != Xset; then
6804    COLLECT_NAMES=
6805    export COLLECT_NAMES
6806  fi
6807  ;;
6808esac
6809
6810# Sed substitution that helps us do robust quoting.  It backslashifies
6811# metacharacters that are still active within double-quoted strings.
6812Xsed='sed -e 1s/^X//'
6813sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6814
6815# Same as above, but do not quote variable references.
6816double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6817
6818# Sed substitution to delay expansion of an escaped shell variable in a
6819# double_quote_subst'ed string.
6820delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6821
6822# Sed substitution to avoid accidental globbing in evaled expressions
6823no_glob_subst='s/\*/\\\*/g'
6824
6825# Constants:
6826rm="rm -f"
6827
6828# Global variables:
6829default_ofile=libtool
6830can_build_shared=yes
6831
6832# All known linkers require a `.a' archive for static linking (except MSVC,
6833# which needs '.lib').
6834libext=a
6835ltmain="$ac_aux_dir/ltmain.sh"
6836ofile="$default_ofile"
6837with_gnu_ld="$lt_cv_prog_gnu_ld"
6838
6839if test -n "$ac_tool_prefix"; then
6840  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6841set dummy ${ac_tool_prefix}ar; ac_word=$2
6842{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6844if test "${ac_cv_prog_AR+set}" = set; then
6845  echo $ECHO_N "(cached) $ECHO_C" >&6
6846else
6847  if test -n "$AR"; then
6848  ac_cv_prog_AR="$AR" # Let the user override the test.
6849else
6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851for as_dir in $PATH
6852do
6853  IFS=$as_save_IFS
6854  test -z "$as_dir" && as_dir=.
6855  for ac_exec_ext in '' $ac_executable_extensions; do
6856  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857    ac_cv_prog_AR="${ac_tool_prefix}ar"
6858    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6859    break 2
6860  fi
6861done
6862done
6863IFS=$as_save_IFS
6864
6865fi
6866fi
6867AR=$ac_cv_prog_AR
6868if test -n "$AR"; then
6869  { echo "$as_me:$LINENO: result: $AR" >&5
6870echo "${ECHO_T}$AR" >&6; }
6871else
6872  { echo "$as_me:$LINENO: result: no" >&5
6873echo "${ECHO_T}no" >&6; }
6874fi
6875
6876
6877fi
6878if test -z "$ac_cv_prog_AR"; then
6879  ac_ct_AR=$AR
6880  # Extract the first word of "ar", so it can be a program name with args.
6881set dummy ar; ac_word=$2
6882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6885  echo $ECHO_N "(cached) $ECHO_C" >&6
6886else
6887  if test -n "$ac_ct_AR"; then
6888  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6889else
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893  IFS=$as_save_IFS
6894  test -z "$as_dir" && as_dir=.
6895  for ac_exec_ext in '' $ac_executable_extensions; do
6896  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897    ac_cv_prog_ac_ct_AR="ar"
6898    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899    break 2
6900  fi
6901done
6902done
6903IFS=$as_save_IFS
6904
6905fi
6906fi
6907ac_ct_AR=$ac_cv_prog_ac_ct_AR
6908if test -n "$ac_ct_AR"; then
6909  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6910echo "${ECHO_T}$ac_ct_AR" >&6; }
6911else
6912  { echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6; }
6914fi
6915
6916  if test "x$ac_ct_AR" = x; then
6917    AR="false"
6918  else
6919    case $cross_compiling:$ac_tool_warned in
6920yes:)
6921{ echo "$as_me:$LINENO: 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." >&5
6924echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6925whose name does not start with the host triplet.  If you think this
6926configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6927ac_tool_warned=yes ;;
6928esac
6929    AR=$ac_ct_AR
6930  fi
6931else
6932  AR="$ac_cv_prog_AR"
6933fi
6934
6935if test -n "$ac_tool_prefix"; then
6936  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6937set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6938{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940if test "${ac_cv_prog_RANLIB+set}" = set; then
6941  echo $ECHO_N "(cached) $ECHO_C" >&6
6942else
6943  if test -n "$RANLIB"; then
6944  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6945else
6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947for as_dir in $PATH
6948do
6949  IFS=$as_save_IFS
6950  test -z "$as_dir" && as_dir=.
6951  for ac_exec_ext in '' $ac_executable_extensions; do
6952  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6953    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6954    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955    break 2
6956  fi
6957done
6958done
6959IFS=$as_save_IFS
6960
6961fi
6962fi
6963RANLIB=$ac_cv_prog_RANLIB
6964if test -n "$RANLIB"; then
6965  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6966echo "${ECHO_T}$RANLIB" >&6; }
6967else
6968  { echo "$as_me:$LINENO: result: no" >&5
6969echo "${ECHO_T}no" >&6; }
6970fi
6971
6972
6973fi
6974if test -z "$ac_cv_prog_RANLIB"; then
6975  ac_ct_RANLIB=$RANLIB
6976  # Extract the first word of "ranlib", so it can be a program name with args.
6977set dummy ranlib; ac_word=$2
6978{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6981  echo $ECHO_N "(cached) $ECHO_C" >&6
6982else
6983  if test -n "$ac_ct_RANLIB"; then
6984  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6985else
6986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987for as_dir in $PATH
6988do
6989  IFS=$as_save_IFS
6990  test -z "$as_dir" && as_dir=.
6991  for ac_exec_ext in '' $ac_executable_extensions; do
6992  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6993    ac_cv_prog_ac_ct_RANLIB="ranlib"
6994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6995    break 2
6996  fi
6997done
6998done
6999IFS=$as_save_IFS
7000
7001fi
7002fi
7003ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7004if test -n "$ac_ct_RANLIB"; then
7005  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7006echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7007else
7008  { echo "$as_me:$LINENO: result: no" >&5
7009echo "${ECHO_T}no" >&6; }
7010fi
7011
7012  if test "x$ac_ct_RANLIB" = x; then
7013    RANLIB=":"
7014  else
7015    case $cross_compiling:$ac_tool_warned in
7016yes:)
7017{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7018whose name does not start with the host triplet.  If you think this
7019configuration is useful to you, please write to autoconf@gnu.org." >&5
7020echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7021whose name does not start with the host triplet.  If you think this
7022configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7023ac_tool_warned=yes ;;
7024esac
7025    RANLIB=$ac_ct_RANLIB
7026  fi
7027else
7028  RANLIB="$ac_cv_prog_RANLIB"
7029fi
7030
7031if test -n "$ac_tool_prefix"; then
7032  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7033set dummy ${ac_tool_prefix}strip; ac_word=$2
7034{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7036if test "${ac_cv_prog_STRIP+set}" = set; then
7037  echo $ECHO_N "(cached) $ECHO_C" >&6
7038else
7039  if test -n "$STRIP"; then
7040  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7041else
7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045  IFS=$as_save_IFS
7046  test -z "$as_dir" && as_dir=.
7047  for ac_exec_ext in '' $ac_executable_extensions; do
7048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7049    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7050    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7051    break 2
7052  fi
7053done
7054done
7055IFS=$as_save_IFS
7056
7057fi
7058fi
7059STRIP=$ac_cv_prog_STRIP
7060if test -n "$STRIP"; then
7061  { echo "$as_me:$LINENO: result: $STRIP" >&5
7062echo "${ECHO_T}$STRIP" >&6; }
7063else
7064  { echo "$as_me:$LINENO: result: no" >&5
7065echo "${ECHO_T}no" >&6; }
7066fi
7067
7068
7069fi
7070if test -z "$ac_cv_prog_STRIP"; then
7071  ac_ct_STRIP=$STRIP
7072  # Extract the first word of "strip", so it can be a program name with args.
7073set dummy strip; ac_word=$2
7074{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7076if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7077  echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079  if test -n "$ac_ct_STRIP"; then
7080  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7081else
7082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085  IFS=$as_save_IFS
7086  test -z "$as_dir" && as_dir=.
7087  for ac_exec_ext in '' $ac_executable_extensions; do
7088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7089    ac_cv_prog_ac_ct_STRIP="strip"
7090    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091    break 2
7092  fi
7093done
7094done
7095IFS=$as_save_IFS
7096
7097fi
7098fi
7099ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7100if test -n "$ac_ct_STRIP"; then
7101  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7102echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7103else
7104  { echo "$as_me:$LINENO: result: no" >&5
7105echo "${ECHO_T}no" >&6; }
7106fi
7107
7108  if test "x$ac_ct_STRIP" = x; then
7109    STRIP=":"
7110  else
7111    case $cross_compiling:$ac_tool_warned in
7112yes:)
7113{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7114whose name does not start with the host triplet.  If you think this
7115configuration is useful to you, please write to autoconf@gnu.org." >&5
7116echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7117whose name does not start with the host triplet.  If you think this
7118configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7119ac_tool_warned=yes ;;
7120esac
7121    STRIP=$ac_ct_STRIP
7122  fi
7123else
7124  STRIP="$ac_cv_prog_STRIP"
7125fi
7126
7127
7128old_CC="$CC"
7129old_CFLAGS="$CFLAGS"
7130
7131# Set sane defaults for various variables
7132test -z "$AR" && AR=ar
7133test -z "$AR_FLAGS" && AR_FLAGS=cru
7134test -z "$AS" && AS=as
7135test -z "$CC" && CC=cc
7136test -z "$LTCC" && LTCC=$CC
7137test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7138test -z "$DLLTOOL" && DLLTOOL=dlltool
7139test -z "$LD" && LD=ld
7140test -z "$LN_S" && LN_S="ln -s"
7141test -z "$MAGIC_CMD" && MAGIC_CMD=file
7142test -z "$NM" && NM=nm
7143test -z "$SED" && SED=sed
7144test -z "$OBJDUMP" && OBJDUMP=objdump
7145test -z "$RANLIB" && RANLIB=:
7146test -z "$STRIP" && STRIP=:
7147test -z "$ac_objext" && ac_objext=o
7148
7149# Determine commands to create old-style static archives.
7150old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7151old_postinstall_cmds='chmod 644 $oldlib'
7152old_postuninstall_cmds=
7153
7154if test -n "$RANLIB"; then
7155  case $host_os in
7156  openbsd*)
7157    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7158    ;;
7159  *)
7160    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7161    ;;
7162  esac
7163  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7164fi
7165
7166for cc_temp in $compiler""; do
7167  case $cc_temp in
7168    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7169    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7170    \-*) ;;
7171    *) break;;
7172  esac
7173done
7174cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7175
7176
7177# Only perform the check for file, if the check method requires it
7178case $deplibs_check_method in
7179file_magic*)
7180  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7181    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7182echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7183if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7184  echo $ECHO_N "(cached) $ECHO_C" >&6
7185else
7186  case $MAGIC_CMD in
7187[\\/*] |  ?:[\\/]*)
7188  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7189  ;;
7190*)
7191  lt_save_MAGIC_CMD="$MAGIC_CMD"
7192  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7193  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7194  for ac_dir in $ac_dummy; do
7195    IFS="$lt_save_ifs"
7196    test -z "$ac_dir" && ac_dir=.
7197    if test -f $ac_dir/${ac_tool_prefix}file; then
7198      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7199      if test -n "$file_magic_test_file"; then
7200	case $deplibs_check_method in
7201	"file_magic "*)
7202	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7203	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7204	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7205	    $EGREP "$file_magic_regex" > /dev/null; then
7206	    :
7207	  else
7208	    cat <<EOF 1>&2
7209
7210*** Warning: the command libtool uses to detect shared libraries,
7211*** $file_magic_cmd, produces output that libtool cannot recognize.
7212*** The result is that libtool may fail to recognize shared libraries
7213*** as such.  This will affect the creation of libtool libraries that
7214*** depend on shared libraries, but programs linked with such libtool
7215*** libraries will work regardless of this problem.  Nevertheless, you
7216*** may want to report the problem to your system manager and/or to
7217*** bug-libtool@gnu.org
7218
7219EOF
7220	  fi ;;
7221	esac
7222      fi
7223      break
7224    fi
7225  done
7226  IFS="$lt_save_ifs"
7227  MAGIC_CMD="$lt_save_MAGIC_CMD"
7228  ;;
7229esac
7230fi
7231
7232MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7233if test -n "$MAGIC_CMD"; then
7234  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7235echo "${ECHO_T}$MAGIC_CMD" >&6; }
7236else
7237  { echo "$as_me:$LINENO: result: no" >&5
7238echo "${ECHO_T}no" >&6; }
7239fi
7240
7241if test -z "$lt_cv_path_MAGIC_CMD"; then
7242  if test -n "$ac_tool_prefix"; then
7243    { echo "$as_me:$LINENO: checking for file" >&5
7244echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7245if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7246  echo $ECHO_N "(cached) $ECHO_C" >&6
7247else
7248  case $MAGIC_CMD in
7249[\\/*] |  ?:[\\/]*)
7250  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7251  ;;
7252*)
7253  lt_save_MAGIC_CMD="$MAGIC_CMD"
7254  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7255  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7256  for ac_dir in $ac_dummy; do
7257    IFS="$lt_save_ifs"
7258    test -z "$ac_dir" && ac_dir=.
7259    if test -f $ac_dir/file; then
7260      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7261      if test -n "$file_magic_test_file"; then
7262	case $deplibs_check_method in
7263	"file_magic "*)
7264	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7265	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7266	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7267	    $EGREP "$file_magic_regex" > /dev/null; then
7268	    :
7269	  else
7270	    cat <<EOF 1>&2
7271
7272*** Warning: the command libtool uses to detect shared libraries,
7273*** $file_magic_cmd, produces output that libtool cannot recognize.
7274*** The result is that libtool may fail to recognize shared libraries
7275*** as such.  This will affect the creation of libtool libraries that
7276*** depend on shared libraries, but programs linked with such libtool
7277*** libraries will work regardless of this problem.  Nevertheless, you
7278*** may want to report the problem to your system manager and/or to
7279*** bug-libtool@gnu.org
7280
7281EOF
7282	  fi ;;
7283	esac
7284      fi
7285      break
7286    fi
7287  done
7288  IFS="$lt_save_ifs"
7289  MAGIC_CMD="$lt_save_MAGIC_CMD"
7290  ;;
7291esac
7292fi
7293
7294MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7295if test -n "$MAGIC_CMD"; then
7296  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7297echo "${ECHO_T}$MAGIC_CMD" >&6; }
7298else
7299  { echo "$as_me:$LINENO: result: no" >&5
7300echo "${ECHO_T}no" >&6; }
7301fi
7302
7303  else
7304    MAGIC_CMD=:
7305  fi
7306fi
7307
7308  fi
7309  ;;
7310esac
7311
7312
7313  case $host_os in
7314    rhapsody* | darwin*)
7315    if test -n "$ac_tool_prefix"; then
7316  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7317set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7318{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7320if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7321  echo $ECHO_N "(cached) $ECHO_C" >&6
7322else
7323  if test -n "$DSYMUTIL"; then
7324  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7325else
7326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327for as_dir in $PATH
7328do
7329  IFS=$as_save_IFS
7330  test -z "$as_dir" && as_dir=.
7331  for ac_exec_ext in '' $ac_executable_extensions; do
7332  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7333    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7334    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7335    break 2
7336  fi
7337done
7338done
7339IFS=$as_save_IFS
7340
7341fi
7342fi
7343DSYMUTIL=$ac_cv_prog_DSYMUTIL
7344if test -n "$DSYMUTIL"; then
7345  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7346echo "${ECHO_T}$DSYMUTIL" >&6; }
7347else
7348  { echo "$as_me:$LINENO: result: no" >&5
7349echo "${ECHO_T}no" >&6; }
7350fi
7351
7352
7353fi
7354if test -z "$ac_cv_prog_DSYMUTIL"; then
7355  ac_ct_DSYMUTIL=$DSYMUTIL
7356  # Extract the first word of "dsymutil", so it can be a program name with args.
7357set dummy dsymutil; ac_word=$2
7358{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7361  echo $ECHO_N "(cached) $ECHO_C" >&6
7362else
7363  if test -n "$ac_ct_DSYMUTIL"; then
7364  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7365else
7366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367for as_dir in $PATH
7368do
7369  IFS=$as_save_IFS
7370  test -z "$as_dir" && as_dir=.
7371  for ac_exec_ext in '' $ac_executable_extensions; do
7372  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7373    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7374    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375    break 2
7376  fi
7377done
7378done
7379IFS=$as_save_IFS
7380
7381fi
7382fi
7383ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7384if test -n "$ac_ct_DSYMUTIL"; then
7385  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7386echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7387else
7388  { echo "$as_me:$LINENO: result: no" >&5
7389echo "${ECHO_T}no" >&6; }
7390fi
7391
7392  if test "x$ac_ct_DSYMUTIL" = x; then
7393    DSYMUTIL=":"
7394  else
7395    case $cross_compiling:$ac_tool_warned in
7396yes:)
7397{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7398whose name does not start with the host triplet.  If you think this
7399configuration is useful to you, please write to autoconf@gnu.org." >&5
7400echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7401whose name does not start with the host triplet.  If you think this
7402configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7403ac_tool_warned=yes ;;
7404esac
7405    DSYMUTIL=$ac_ct_DSYMUTIL
7406  fi
7407else
7408  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7409fi
7410
7411    if test -n "$ac_tool_prefix"; then
7412  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7413set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7414{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416if test "${ac_cv_prog_NMEDIT+set}" = set; then
7417  echo $ECHO_N "(cached) $ECHO_C" >&6
7418else
7419  if test -n "$NMEDIT"; then
7420  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7421else
7422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423for as_dir in $PATH
7424do
7425  IFS=$as_save_IFS
7426  test -z "$as_dir" && as_dir=.
7427  for ac_exec_ext in '' $ac_executable_extensions; do
7428  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7430    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431    break 2
7432  fi
7433done
7434done
7435IFS=$as_save_IFS
7436
7437fi
7438fi
7439NMEDIT=$ac_cv_prog_NMEDIT
7440if test -n "$NMEDIT"; then
7441  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7442echo "${ECHO_T}$NMEDIT" >&6; }
7443else
7444  { echo "$as_me:$LINENO: result: no" >&5
7445echo "${ECHO_T}no" >&6; }
7446fi
7447
7448
7449fi
7450if test -z "$ac_cv_prog_NMEDIT"; then
7451  ac_ct_NMEDIT=$NMEDIT
7452  # Extract the first word of "nmedit", so it can be a program name with args.
7453set dummy nmedit; ac_word=$2
7454{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7457  echo $ECHO_N "(cached) $ECHO_C" >&6
7458else
7459  if test -n "$ac_ct_NMEDIT"; then
7460  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7461else
7462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463for as_dir in $PATH
7464do
7465  IFS=$as_save_IFS
7466  test -z "$as_dir" && as_dir=.
7467  for ac_exec_ext in '' $ac_executable_extensions; do
7468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7470    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471    break 2
7472  fi
7473done
7474done
7475IFS=$as_save_IFS
7476
7477fi
7478fi
7479ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7480if test -n "$ac_ct_NMEDIT"; then
7481  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7482echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7483else
7484  { echo "$as_me:$LINENO: result: no" >&5
7485echo "${ECHO_T}no" >&6; }
7486fi
7487
7488  if test "x$ac_ct_NMEDIT" = x; then
7489    NMEDIT=":"
7490  else
7491    case $cross_compiling:$ac_tool_warned in
7492yes:)
7493{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7494whose name does not start with the host triplet.  If you think this
7495configuration is useful to you, please write to autoconf@gnu.org." >&5
7496echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7497whose name does not start with the host triplet.  If you think this
7498configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7499ac_tool_warned=yes ;;
7500esac
7501    NMEDIT=$ac_ct_NMEDIT
7502  fi
7503else
7504  NMEDIT="$ac_cv_prog_NMEDIT"
7505fi
7506
7507
7508    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7509echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7510if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7511  echo $ECHO_N "(cached) $ECHO_C" >&6
7512else
7513  lt_cv_apple_cc_single_mod=no
7514      if test -z "${LT_MULTI_MODULE}"; then
7515   # By default we will add the -single_module flag. You can override
7516   # by either setting the environment variable LT_MULTI_MODULE
7517   # non-empty at configure time, or by adding -multi_module to the
7518   # link flags.
7519   echo "int foo(void){return 1;}" > conftest.c
7520   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7521     -dynamiclib ${wl}-single_module conftest.c
7522   if test -f libconftest.dylib; then
7523     lt_cv_apple_cc_single_mod=yes
7524     rm -rf libconftest.dylib*
7525   fi
7526   rm conftest.c
7527      fi
7528fi
7529{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7530echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7531    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7532echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7533if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7534  echo $ECHO_N "(cached) $ECHO_C" >&6
7535else
7536  lt_cv_ld_exported_symbols_list=no
7537      save_LDFLAGS=$LDFLAGS
7538      echo "_main" > conftest.sym
7539      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7540      cat >conftest.$ac_ext <<_ACEOF
7541/* confdefs.h.  */
7542_ACEOF
7543cat confdefs.h >>conftest.$ac_ext
7544cat >>conftest.$ac_ext <<_ACEOF
7545/* end confdefs.h.  */
7546
7547int
7548main ()
7549{
7550
7551  ;
7552  return 0;
7553}
7554_ACEOF
7555rm -f conftest.$ac_objext conftest$ac_exeext
7556if { (ac_try="$ac_link"
7557case "(($ac_try" in
7558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559  *) ac_try_echo=$ac_try;;
7560esac
7561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7562  (eval "$ac_link") 2>conftest.er1
7563  ac_status=$?
7564  grep -v '^ *+' conftest.er1 >conftest.err
7565  rm -f conftest.er1
7566  cat conftest.err >&5
7567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568  (exit $ac_status); } && {
7569	 test -z "$ac_c_werror_flag" ||
7570	 test ! -s conftest.err
7571       } && test -s conftest$ac_exeext &&
7572       $as_test_x conftest$ac_exeext; then
7573  lt_cv_ld_exported_symbols_list=yes
7574else
7575  echo "$as_me: failed program was:" >&5
7576sed 's/^/| /' conftest.$ac_ext >&5
7577
7578	lt_cv_ld_exported_symbols_list=no
7579fi
7580
7581rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7582      conftest$ac_exeext conftest.$ac_ext
7583   LDFLAGS="$save_LDFLAGS"
7584
7585fi
7586{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7587echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7588    case $host_os in
7589    rhapsody* | darwin1.[0123])
7590      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7591    darwin1.*)
7592     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7593    darwin*)
7594      # if running on 10.5 or later, the deployment target defaults
7595      # to the OS version, if on x86, and 10.4, the deployment
7596      # target defaults to 10.4. Don't you love it?
7597      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7598   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7599     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7600   10.[012]*)
7601     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7602   10.*)
7603     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7604      esac
7605    ;;
7606  esac
7607    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7608      _lt_dar_single_mod='$single_module'
7609    fi
7610    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7611      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7612    else
7613      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7614    fi
7615    if test "$DSYMUTIL" != ":"; then
7616      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7617    else
7618      _lt_dsymutil=
7619    fi
7620    ;;
7621  esac
7622
7623
7624enable_dlopen=no
7625enable_win32_dll=no
7626
7627# Check whether --enable-libtool-lock was given.
7628if test "${enable_libtool_lock+set}" = set; then
7629  enableval=$enable_libtool_lock;
7630fi
7631
7632test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7633
7634
7635# Check whether --with-pic was given.
7636if test "${with_pic+set}" = set; then
7637  withval=$with_pic; pic_mode="$withval"
7638else
7639  pic_mode=default
7640fi
7641
7642test -z "$pic_mode" && pic_mode=default
7643
7644# Use C for the default configuration in the libtool script
7645tagname=
7646lt_save_CC="$CC"
7647ac_ext=c
7648ac_cpp='$CPP $CPPFLAGS'
7649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7651ac_compiler_gnu=$ac_cv_c_compiler_gnu
7652
7653
7654# Source file extension for C test sources.
7655ac_ext=c
7656
7657# Object file extension for compiled C test sources.
7658objext=o
7659objext=$objext
7660
7661# Code to be used in simple compile tests
7662lt_simple_compile_test_code="int some_variable = 0;"
7663
7664# Code to be used in simple link tests
7665lt_simple_link_test_code='int main(){return(0);}'
7666
7667
7668# If no C compiler was specified, use CC.
7669LTCC=${LTCC-"$CC"}
7670
7671# If no C compiler flags were specified, use CFLAGS.
7672LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7673
7674# Allow CC to be a program name with arguments.
7675compiler=$CC
7676
7677
7678# save warnings/boilerplate of simple test code
7679ac_outfile=conftest.$ac_objext
7680echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7681eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7682_lt_compiler_boilerplate=`cat conftest.err`
7683$rm conftest*
7684
7685ac_outfile=conftest.$ac_objext
7686echo "$lt_simple_link_test_code" >conftest.$ac_ext
7687eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7688_lt_linker_boilerplate=`cat conftest.err`
7689$rm -r conftest*
7690
7691
7692
7693lt_prog_compiler_no_builtin_flag=
7694
7695if test "$GCC" = yes; then
7696  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7697
7698
7699{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7700echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7701if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7702  echo $ECHO_N "(cached) $ECHO_C" >&6
7703else
7704  lt_cv_prog_compiler_rtti_exceptions=no
7705  ac_outfile=conftest.$ac_objext
7706   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7707   lt_compiler_flag="-fno-rtti -fno-exceptions"
7708   # Insert the option either (1) after the last *FLAGS variable, or
7709   # (2) before a word containing "conftest.", or (3) at the end.
7710   # Note that $ac_compile itself does not contain backslashes and begins
7711   # with a dollar sign (not a hyphen), so the echo should work correctly.
7712   # The option is referenced via a variable to avoid confusing sed.
7713   lt_compile=`echo "$ac_compile" | $SED \
7714   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7715   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7716   -e 's:$: $lt_compiler_flag:'`
7717   (eval echo "\"\$as_me:7717: $lt_compile\"" >&5)
7718   (eval "$lt_compile" 2>conftest.err)
7719   ac_status=$?
7720   cat conftest.err >&5
7721   echo "$as_me:7721: \$? = $ac_status" >&5
7722   if (exit $ac_status) && test -s "$ac_outfile"; then
7723     # The compiler can only warn and ignore the option if not recognized
7724     # So say no if there are warnings other than the usual output.
7725     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7726     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7727     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7728       lt_cv_prog_compiler_rtti_exceptions=yes
7729     fi
7730   fi
7731   $rm conftest*
7732
7733fi
7734{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7735echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7736
7737if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7738    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7739else
7740    :
7741fi
7742
7743fi
7744
7745lt_prog_compiler_wl=
7746lt_prog_compiler_pic=
7747lt_prog_compiler_static=
7748
7749{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7750echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7751
7752  if test "$GCC" = yes; then
7753    lt_prog_compiler_wl='-Wl,'
7754    lt_prog_compiler_static='-static'
7755
7756    case $host_os in
7757      aix*)
7758      # All AIX code is PIC.
7759      if test "$host_cpu" = ia64; then
7760	# AIX 5 now supports IA64 processor
7761	lt_prog_compiler_static='-Bstatic'
7762      fi
7763      ;;
7764
7765    amigaos*)
7766      # FIXME: we need at least 68020 code to build shared libraries, but
7767      # adding the `-m68020' flag to GCC prevents building anything better,
7768      # like `-m68040'.
7769      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7770      ;;
7771
7772    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7773      # PIC is the default for these OSes.
7774      ;;
7775
7776    mingw* | cygwin* | pw32* | os2*)
7777      # This hack is so that the source file can tell whether it is being
7778      # built for inclusion in a dll (and should export symbols for example).
7779      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7780      # (--disable-auto-import) libraries
7781      lt_prog_compiler_pic='-DDLL_EXPORT'
7782      ;;
7783
7784    darwin* | rhapsody*)
7785      # PIC is the default on this platform
7786      # Common symbols not allowed in MH_DYLIB files
7787      lt_prog_compiler_pic='-fno-common'
7788      ;;
7789
7790    interix[3-9]*)
7791      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7792      # Instead, we relocate shared libraries at runtime.
7793      ;;
7794
7795    msdosdjgpp*)
7796      # Just because we use GCC doesn't mean we suddenly get shared libraries
7797      # on systems that don't support them.
7798      lt_prog_compiler_can_build_shared=no
7799      enable_shared=no
7800      ;;
7801
7802    sysv4*MP*)
7803      if test -d /usr/nec; then
7804	lt_prog_compiler_pic=-Kconform_pic
7805      fi
7806      ;;
7807
7808    hpux*)
7809      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7810      # not for PA HP-UX.
7811      case $host_cpu in
7812      hppa*64*|ia64*)
7813	# +Z the default
7814	;;
7815      *)
7816	lt_prog_compiler_pic='-fPIC'
7817	;;
7818      esac
7819      ;;
7820
7821    *)
7822      lt_prog_compiler_pic='-fPIC'
7823      ;;
7824    esac
7825  else
7826    # PORTME Check for flag to pass linker flags through the system compiler.
7827    case $host_os in
7828    aix*)
7829      lt_prog_compiler_wl='-Wl,'
7830      if test "$host_cpu" = ia64; then
7831	# AIX 5 now supports IA64 processor
7832	lt_prog_compiler_static='-Bstatic'
7833      else
7834	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7835      fi
7836      ;;
7837      darwin*)
7838        # PIC is the default on this platform
7839        # Common symbols not allowed in MH_DYLIB files
7840       case $cc_basename in
7841         xlc*)
7842         lt_prog_compiler_pic='-qnocommon'
7843         lt_prog_compiler_wl='-Wl,'
7844         ;;
7845       esac
7846       ;;
7847
7848    mingw* | cygwin* | pw32* | os2*)
7849      # This hack is so that the source file can tell whether it is being
7850      # built for inclusion in a dll (and should export symbols for example).
7851      lt_prog_compiler_pic='-DDLL_EXPORT'
7852      ;;
7853
7854    hpux9* | hpux10* | hpux11*)
7855      lt_prog_compiler_wl='-Wl,'
7856      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7857      # not for PA HP-UX.
7858      case $host_cpu in
7859      hppa*64*|ia64*)
7860	# +Z the default
7861	;;
7862      *)
7863	lt_prog_compiler_pic='+Z'
7864	;;
7865      esac
7866      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7867      lt_prog_compiler_static='${wl}-a ${wl}archive'
7868      ;;
7869
7870    irix5* | irix6* | nonstopux*)
7871      lt_prog_compiler_wl='-Wl,'
7872      # PIC (with -KPIC) is the default.
7873      lt_prog_compiler_static='-non_shared'
7874      ;;
7875
7876    newsos6)
7877      lt_prog_compiler_pic='-KPIC'
7878      lt_prog_compiler_static='-Bstatic'
7879      ;;
7880
7881    linux* | k*bsd*-gnu)
7882      case $cc_basename in
7883      icc* | ecc*)
7884	lt_prog_compiler_wl='-Wl,'
7885	lt_prog_compiler_pic='-KPIC'
7886	lt_prog_compiler_static='-static'
7887        ;;
7888      pgcc* | pgf77* | pgf90* | pgf95*)
7889        # Portland Group compilers (*not* the Pentium gcc compiler,
7890	# which looks to be a dead project)
7891	lt_prog_compiler_wl='-Wl,'
7892	lt_prog_compiler_pic='-fpic'
7893	lt_prog_compiler_static='-Bstatic'
7894        ;;
7895      ccc*)
7896        lt_prog_compiler_wl='-Wl,'
7897        # All Alpha code is PIC.
7898        lt_prog_compiler_static='-non_shared'
7899        ;;
7900      *)
7901        case `$CC -V 2>&1 | sed 5q` in
7902	*Sun\ C*)
7903	  # Sun C 5.9
7904	  lt_prog_compiler_pic='-KPIC'
7905	  lt_prog_compiler_static='-Bstatic'
7906	  lt_prog_compiler_wl='-Wl,'
7907	  ;;
7908	*Sun\ F*)
7909	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7910	  lt_prog_compiler_pic='-KPIC'
7911	  lt_prog_compiler_static='-Bstatic'
7912	  lt_prog_compiler_wl=''
7913	  ;;
7914	esac
7915	;;
7916      esac
7917      ;;
7918
7919    osf3* | osf4* | osf5*)
7920      lt_prog_compiler_wl='-Wl,'
7921      # All OSF/1 code is PIC.
7922      lt_prog_compiler_static='-non_shared'
7923      ;;
7924
7925    rdos*)
7926      lt_prog_compiler_static='-non_shared'
7927      ;;
7928
7929    solaris*)
7930      lt_prog_compiler_pic='-KPIC'
7931      lt_prog_compiler_static='-Bstatic'
7932      case $cc_basename in
7933      f77* | f90* | f95*)
7934	lt_prog_compiler_wl='-Qoption ld ';;
7935      *)
7936	lt_prog_compiler_wl='-Wl,';;
7937      esac
7938      ;;
7939
7940    sunos4*)
7941      lt_prog_compiler_wl='-Qoption ld '
7942      lt_prog_compiler_pic='-PIC'
7943      lt_prog_compiler_static='-Bstatic'
7944      ;;
7945
7946    sysv4 | sysv4.2uw2* | sysv4.3*)
7947      lt_prog_compiler_wl='-Wl,'
7948      lt_prog_compiler_pic='-KPIC'
7949      lt_prog_compiler_static='-Bstatic'
7950      ;;
7951
7952    sysv4*MP*)
7953      if test -d /usr/nec ;then
7954	lt_prog_compiler_pic='-Kconform_pic'
7955	lt_prog_compiler_static='-Bstatic'
7956      fi
7957      ;;
7958
7959    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7960      lt_prog_compiler_wl='-Wl,'
7961      lt_prog_compiler_pic='-KPIC'
7962      lt_prog_compiler_static='-Bstatic'
7963      ;;
7964
7965    unicos*)
7966      lt_prog_compiler_wl='-Wl,'
7967      lt_prog_compiler_can_build_shared=no
7968      ;;
7969
7970    uts4*)
7971      lt_prog_compiler_pic='-pic'
7972      lt_prog_compiler_static='-Bstatic'
7973      ;;
7974
7975    *)
7976      lt_prog_compiler_can_build_shared=no
7977      ;;
7978    esac
7979  fi
7980
7981{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7982echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7983
7984#
7985# Check to make sure the PIC flag actually works.
7986#
7987if test -n "$lt_prog_compiler_pic"; then
7988
7989{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7990echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7991if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7992  echo $ECHO_N "(cached) $ECHO_C" >&6
7993else
7994  lt_cv_prog_compiler_pic_works=no
7995  ac_outfile=conftest.$ac_objext
7996   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7997   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7998   # Insert the option either (1) after the last *FLAGS variable, or
7999   # (2) before a word containing "conftest.", or (3) at the end.
8000   # Note that $ac_compile itself does not contain backslashes and begins
8001   # with a dollar sign (not a hyphen), so the echo should work correctly.
8002   # The option is referenced via a variable to avoid confusing sed.
8003   lt_compile=`echo "$ac_compile" | $SED \
8004   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8005   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8006   -e 's:$: $lt_compiler_flag:'`
8007   (eval echo "\"\$as_me:8007: $lt_compile\"" >&5)
8008   (eval "$lt_compile" 2>conftest.err)
8009   ac_status=$?
8010   cat conftest.err >&5
8011   echo "$as_me:8011: \$? = $ac_status" >&5
8012   if (exit $ac_status) && test -s "$ac_outfile"; then
8013     # The compiler can only warn and ignore the option if not recognized
8014     # So say no if there are warnings other than the usual output.
8015     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8016     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8017     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8018       lt_cv_prog_compiler_pic_works=yes
8019     fi
8020   fi
8021   $rm conftest*
8022
8023fi
8024{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8025echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8026
8027if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8028    case $lt_prog_compiler_pic in
8029     "" | " "*) ;;
8030     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8031     esac
8032else
8033    lt_prog_compiler_pic=
8034     lt_prog_compiler_can_build_shared=no
8035fi
8036
8037fi
8038case $host_os in
8039  # For platforms which do not support PIC, -DPIC is meaningless:
8040  *djgpp*)
8041    lt_prog_compiler_pic=
8042    ;;
8043  *)
8044    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8045    ;;
8046esac
8047
8048#
8049# Check to make sure the static flag actually works.
8050#
8051wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8052{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8053echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8054if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8055  echo $ECHO_N "(cached) $ECHO_C" >&6
8056else
8057  lt_cv_prog_compiler_static_works=no
8058   save_LDFLAGS="$LDFLAGS"
8059   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8060   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8061   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8062     # The linker can only warn and ignore the option if not recognized
8063     # So say no if there are warnings
8064     if test -s conftest.err; then
8065       # Append any errors to the config.log.
8066       cat conftest.err 1>&5
8067       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8068       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8069       if diff conftest.exp conftest.er2 >/dev/null; then
8070         lt_cv_prog_compiler_static_works=yes
8071       fi
8072     else
8073       lt_cv_prog_compiler_static_works=yes
8074     fi
8075   fi
8076   $rm -r conftest*
8077   LDFLAGS="$save_LDFLAGS"
8078
8079fi
8080{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8081echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8082
8083if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8084    :
8085else
8086    lt_prog_compiler_static=
8087fi
8088
8089
8090{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8091echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8092if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8093  echo $ECHO_N "(cached) $ECHO_C" >&6
8094else
8095  lt_cv_prog_compiler_c_o=no
8096   $rm -r conftest 2>/dev/null
8097   mkdir conftest
8098   cd conftest
8099   mkdir out
8100   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8101
8102   lt_compiler_flag="-o out/conftest2.$ac_objext"
8103   # Insert the option either (1) after the last *FLAGS variable, or
8104   # (2) before a word containing "conftest.", or (3) at the end.
8105   # Note that $ac_compile itself does not contain backslashes and begins
8106   # with a dollar sign (not a hyphen), so the echo should work correctly.
8107   lt_compile=`echo "$ac_compile" | $SED \
8108   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8109   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8110   -e 's:$: $lt_compiler_flag:'`
8111   (eval echo "\"\$as_me:8111: $lt_compile\"" >&5)
8112   (eval "$lt_compile" 2>out/conftest.err)
8113   ac_status=$?
8114   cat out/conftest.err >&5
8115   echo "$as_me:8115: \$? = $ac_status" >&5
8116   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8117   then
8118     # The compiler can only warn and ignore the option if not recognized
8119     # So say no if there are warnings
8120     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8121     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8122     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8123       lt_cv_prog_compiler_c_o=yes
8124     fi
8125   fi
8126   chmod u+w . 2>&5
8127   $rm conftest*
8128   # SGI C++ compiler will create directory out/ii_files/ for
8129   # template instantiation
8130   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8131   $rm out/* && rmdir out
8132   cd ..
8133   rmdir conftest
8134   $rm conftest*
8135
8136fi
8137{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8138echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8139
8140
8141hard_links="nottested"
8142if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8143  # do not overwrite the value of need_locks provided by the user
8144  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8145echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8146  hard_links=yes
8147  $rm conftest*
8148  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8149  touch conftest.a
8150  ln conftest.a conftest.b 2>&5 || hard_links=no
8151  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8152  { echo "$as_me:$LINENO: result: $hard_links" >&5
8153echo "${ECHO_T}$hard_links" >&6; }
8154  if test "$hard_links" = no; then
8155    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8156echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8157    need_locks=warn
8158  fi
8159else
8160  need_locks=no
8161fi
8162
8163{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8164echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8165
8166  runpath_var=
8167  allow_undefined_flag=
8168  enable_shared_with_static_runtimes=no
8169  archive_cmds=
8170  archive_expsym_cmds=
8171  old_archive_From_new_cmds=
8172  old_archive_from_expsyms_cmds=
8173  export_dynamic_flag_spec=
8174  whole_archive_flag_spec=
8175  thread_safe_flag_spec=
8176  hardcode_libdir_flag_spec=
8177  hardcode_libdir_flag_spec_ld=
8178  hardcode_libdir_separator=
8179  hardcode_direct=no
8180  hardcode_minus_L=no
8181  hardcode_shlibpath_var=unsupported
8182  link_all_deplibs=unknown
8183  hardcode_automatic=no
8184  module_cmds=
8185  module_expsym_cmds=
8186  always_export_symbols=no
8187  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8188  # include_expsyms should be a list of space-separated symbols to be *always*
8189  # included in the symbol list
8190  include_expsyms=
8191  # exclude_expsyms can be an extended regexp of symbols to exclude
8192  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8193  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8194  # as well as any symbol that contains `d'.
8195  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8196  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8197  # platforms (ab)use it in PIC code, but their linkers get confused if
8198  # the symbol is explicitly referenced.  Since portable code cannot
8199  # rely on this symbol name, it's probably fine to never include it in
8200  # preloaded symbol tables.
8201  # Exclude shared library initialization/finalization symbols.
8202  extract_expsyms_cmds=
8203  # Just being paranoid about ensuring that cc_basename is set.
8204  for cc_temp in $compiler""; do
8205  case $cc_temp in
8206    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8207    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8208    \-*) ;;
8209    *) break;;
8210  esac
8211done
8212cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8213
8214  case $host_os in
8215  cygwin* | mingw* | pw32*)
8216    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8217    # When not using gcc, we currently assume that we are using
8218    # Microsoft Visual C++.
8219    if test "$GCC" != yes; then
8220      with_gnu_ld=no
8221    fi
8222    ;;
8223  interix*)
8224    # we just hope/assume this is gcc and not c89 (= MSVC++)
8225    with_gnu_ld=yes
8226    ;;
8227  openbsd*)
8228    with_gnu_ld=no
8229    ;;
8230  esac
8231
8232  ld_shlibs=yes
8233  if test "$with_gnu_ld" = yes; then
8234    # If archive_cmds runs LD, not CC, wlarc should be empty
8235    wlarc='${wl}'
8236
8237    # Set some defaults for GNU ld with shared library support. These
8238    # are reset later if shared libraries are not supported. Putting them
8239    # here allows them to be overridden if necessary.
8240    runpath_var=LD_RUN_PATH
8241    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8242    export_dynamic_flag_spec='${wl}--export-dynamic'
8243    # ancient GNU ld didn't support --whole-archive et. al.
8244    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8245	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8246      else
8247  	whole_archive_flag_spec=
8248    fi
8249    supports_anon_versioning=no
8250    case `$LD -v 2>/dev/null` in
8251      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8252      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8253      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8254      *\ 2.11.*) ;; # other 2.11 versions
8255      *) supports_anon_versioning=yes ;;
8256    esac
8257
8258    # See if GNU ld supports shared libraries.
8259    case $host_os in
8260    aix[3-9]*)
8261      # On AIX/PPC, the GNU linker is very broken
8262      if test "$host_cpu" != ia64; then
8263	ld_shlibs=no
8264	cat <<EOF 1>&2
8265
8266*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8267*** to be unable to reliably create shared libraries on AIX.
8268*** Therefore, libtool is disabling shared libraries support.  If you
8269*** really care for shared libraries, you may want to modify your PATH
8270*** so that a non-GNU linker is found, and then restart.
8271
8272EOF
8273      fi
8274      ;;
8275
8276    amigaos*)
8277      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)'
8278      hardcode_libdir_flag_spec='-L$libdir'
8279      hardcode_minus_L=yes
8280
8281      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8282      # that the semantics of dynamic libraries on AmigaOS, at least up
8283      # to version 4, is to share data among multiple programs linked
8284      # with the same dynamic library.  Since this doesn't match the
8285      # behavior of shared libraries on other platforms, we can't use
8286      # them.
8287      ld_shlibs=no
8288      ;;
8289
8290    beos*)
8291      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8292	allow_undefined_flag=unsupported
8293	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8294	# support --undefined.  This deserves some investigation.  FIXME
8295	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8296      else
8297	ld_shlibs=no
8298      fi
8299      ;;
8300
8301    cygwin* | mingw* | pw32*)
8302      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8303      # as there is no search path for DLLs.
8304      hardcode_libdir_flag_spec='-L$libdir'
8305      allow_undefined_flag=unsupported
8306      always_export_symbols=no
8307      enable_shared_with_static_runtimes=yes
8308      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8309
8310      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8311        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8312	# If the export-symbols file already is a .def file (1st line
8313	# is EXPORTS), use it as is; otherwise, prepend...
8314	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8315	  cp $export_symbols $output_objdir/$soname.def;
8316	else
8317	  echo EXPORTS > $output_objdir/$soname.def;
8318	  cat $export_symbols >> $output_objdir/$soname.def;
8319	fi~
8320	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8321      else
8322	ld_shlibs=no
8323      fi
8324      ;;
8325
8326    interix[3-9]*)
8327      hardcode_direct=no
8328      hardcode_shlibpath_var=no
8329      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8330      export_dynamic_flag_spec='${wl}-E'
8331      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8332      # Instead, shared libraries are loaded at an image base (0x10000000 by
8333      # default) and relocated if they conflict, which is a slow very memory
8334      # consuming and fragmenting process.  To avoid this, we pick a random,
8335      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8336      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8337      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8338      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'
8339      ;;
8340
8341    gnu* | linux* | k*bsd*-gnu)
8342      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8343	tmp_addflag=
8344	case $cc_basename,$host_cpu in
8345	pgcc*)				# Portland Group C compiler
8346	  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'
8347	  tmp_addflag=' $pic_flag'
8348	  ;;
8349	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8350	  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'
8351	  tmp_addflag=' $pic_flag -Mnomain' ;;
8352	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8353	  tmp_addflag=' -i_dynamic' ;;
8354	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8355	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8356	ifc* | ifort*)			# Intel Fortran compiler
8357	  tmp_addflag=' -nofor_main' ;;
8358	esac
8359	case `$CC -V 2>&1 | sed 5q` in
8360	*Sun\ C*)			# Sun C 5.9
8361	  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'
8362	  tmp_sharedflag='-G' ;;
8363	*Sun\ F*)			# Sun Fortran 8.3
8364	  tmp_sharedflag='-G' ;;
8365	*)
8366	  tmp_sharedflag='-shared' ;;
8367	esac
8368	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8369
8370	if test $supports_anon_versioning = yes; then
8371	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8372  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8373  $echo "local: *; };" >> $output_objdir/$libname.ver~
8374	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8375	fi
8376	link_all_deplibs=no
8377      else
8378	ld_shlibs=no
8379      fi
8380      ;;
8381
8382    netbsd* | netbsdelf*-gnu)
8383      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8384	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8385	wlarc=
8386      else
8387	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8388	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8389      fi
8390      ;;
8391
8392    solaris*)
8393      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8394	ld_shlibs=no
8395	cat <<EOF 1>&2
8396
8397*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8398*** create shared libraries on Solaris systems.  Therefore, libtool
8399*** is disabling shared libraries support.  We urge you to upgrade GNU
8400*** binutils to release 2.9.1 or newer.  Another option is to modify
8401*** your PATH or compiler configuration so that the native linker is
8402*** used, and then restart.
8403
8404EOF
8405      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8406	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8407	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8408      else
8409	ld_shlibs=no
8410      fi
8411      ;;
8412
8413    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8414      case `$LD -v 2>&1` in
8415        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8416	ld_shlibs=no
8417	cat <<_LT_EOF 1>&2
8418
8419*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8420*** reliably create shared libraries on SCO systems.  Therefore, libtool
8421*** is disabling shared libraries support.  We urge you to upgrade GNU
8422*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8423*** your PATH or compiler configuration so that the native linker is
8424*** used, and then restart.
8425
8426_LT_EOF
8427	;;
8428	*)
8429	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8430	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8431	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8432	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8433	  else
8434	    ld_shlibs=no
8435	  fi
8436	;;
8437      esac
8438      ;;
8439
8440    sunos4*)
8441      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8442      wlarc=
8443      hardcode_direct=yes
8444      hardcode_shlibpath_var=no
8445      ;;
8446
8447    *)
8448      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8449	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8450	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8451      else
8452	ld_shlibs=no
8453      fi
8454      ;;
8455    esac
8456
8457    if test "$ld_shlibs" = no; then
8458      runpath_var=
8459      hardcode_libdir_flag_spec=
8460      export_dynamic_flag_spec=
8461      whole_archive_flag_spec=
8462    fi
8463  else
8464    # PORTME fill in a description of your system's linker (not GNU ld)
8465    case $host_os in
8466    aix3*)
8467      allow_undefined_flag=unsupported
8468      always_export_symbols=yes
8469      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'
8470      # Note: this linker hardcodes the directories in LIBPATH if there
8471      # are no directories specified by -L.
8472      hardcode_minus_L=yes
8473      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8474	# Neither direct hardcoding nor static linking is supported with a
8475	# broken collect2.
8476	hardcode_direct=unsupported
8477      fi
8478      ;;
8479
8480    aix[4-9]*)
8481      if test "$host_cpu" = ia64; then
8482	# On IA64, the linker does run time linking by default, so we don't
8483	# have to do anything special.
8484	aix_use_runtimelinking=no
8485	exp_sym_flag='-Bexport'
8486	no_entry_flag=""
8487      else
8488	# If we're using GNU nm, then we don't want the "-C" option.
8489	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8490	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8491	  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'
8492	else
8493	  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'
8494	fi
8495	aix_use_runtimelinking=no
8496
8497	# Test if we are trying to use run time linking or normal
8498	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8499	# need to do runtime linking.
8500	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8501	  for ld_flag in $LDFLAGS; do
8502  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8503  	    aix_use_runtimelinking=yes
8504  	    break
8505  	  fi
8506	  done
8507	  ;;
8508	esac
8509
8510	exp_sym_flag='-bexport'
8511	no_entry_flag='-bnoentry'
8512      fi
8513
8514      # When large executables or shared objects are built, AIX ld can
8515      # have problems creating the table of contents.  If linking a library
8516      # or program results in "error TOC overflow" add -mminimal-toc to
8517      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8518      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8519
8520      archive_cmds=''
8521      hardcode_direct=yes
8522      hardcode_libdir_separator=':'
8523      link_all_deplibs=yes
8524
8525      if test "$GCC" = yes; then
8526	case $host_os in aix4.[012]|aix4.[012].*)
8527	# We only want to do this on AIX 4.2 and lower, the check
8528	# below for broken collect2 doesn't work under 4.3+
8529	  collect2name=`${CC} -print-prog-name=collect2`
8530	  if test -f "$collect2name" && \
8531  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8532	  then
8533  	  # We have reworked collect2
8534  	  :
8535	  else
8536  	  # We have old collect2
8537  	  hardcode_direct=unsupported
8538  	  # It fails to find uninstalled libraries when the uninstalled
8539  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8540  	  # to unsupported forces relinking
8541  	  hardcode_minus_L=yes
8542  	  hardcode_libdir_flag_spec='-L$libdir'
8543  	  hardcode_libdir_separator=
8544	  fi
8545	  ;;
8546	esac
8547	shared_flag='-shared'
8548	if test "$aix_use_runtimelinking" = yes; then
8549	  shared_flag="$shared_flag "'${wl}-G'
8550	fi
8551      else
8552	# not using gcc
8553	if test "$host_cpu" = ia64; then
8554  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8555  	# chokes on -Wl,-G. The following line is correct:
8556	  shared_flag='-G'
8557	else
8558	  if test "$aix_use_runtimelinking" = yes; then
8559	    shared_flag='${wl}-G'
8560	  else
8561	    shared_flag='${wl}-bM:SRE'
8562	  fi
8563	fi
8564      fi
8565
8566      # It seems that -bexpall does not export symbols beginning with
8567      # underscore (_), so it is better to generate a list of symbols to export.
8568      always_export_symbols=yes
8569      if test "$aix_use_runtimelinking" = yes; then
8570	# Warning - without using the other runtime loading flags (-brtl),
8571	# -berok will link without error, but may produce a broken library.
8572	allow_undefined_flag='-berok'
8573       # Determine the default libpath from the value encoded in an empty executable.
8574       cat >conftest.$ac_ext <<_ACEOF
8575/* confdefs.h.  */
8576_ACEOF
8577cat confdefs.h >>conftest.$ac_ext
8578cat >>conftest.$ac_ext <<_ACEOF
8579/* end confdefs.h.  */
8580
8581int
8582main ()
8583{
8584
8585  ;
8586  return 0;
8587}
8588_ACEOF
8589rm -f conftest.$ac_objext conftest$ac_exeext
8590if { (ac_try="$ac_link"
8591case "(($ac_try" in
8592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593  *) ac_try_echo=$ac_try;;
8594esac
8595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596  (eval "$ac_link") 2>conftest.er1
8597  ac_status=$?
8598  grep -v '^ *+' conftest.er1 >conftest.err
8599  rm -f conftest.er1
8600  cat conftest.err >&5
8601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602  (exit $ac_status); } && {
8603	 test -z "$ac_c_werror_flag" ||
8604	 test ! -s conftest.err
8605       } && test -s conftest$ac_exeext &&
8606       $as_test_x conftest$ac_exeext; then
8607
8608lt_aix_libpath_sed='
8609    /Import File Strings/,/^$/ {
8610	/^0/ {
8611	    s/^0  *\(.*\)$/\1/
8612	    p
8613	}
8614    }'
8615aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8616# Check for a 64-bit object if we didn't find anything.
8617if test -z "$aix_libpath"; then
8618  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8619fi
8620else
8621  echo "$as_me: failed program was:" >&5
8622sed 's/^/| /' conftest.$ac_ext >&5
8623
8624
8625fi
8626
8627rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8628      conftest$ac_exeext conftest.$ac_ext
8629if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8630
8631       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8632	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"
8633       else
8634	if test "$host_cpu" = ia64; then
8635	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8636	  allow_undefined_flag="-z nodefs"
8637	  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"
8638	else
8639	 # Determine the default libpath from the value encoded in an empty executable.
8640	 cat >conftest.$ac_ext <<_ACEOF
8641/* confdefs.h.  */
8642_ACEOF
8643cat confdefs.h >>conftest.$ac_ext
8644cat >>conftest.$ac_ext <<_ACEOF
8645/* end confdefs.h.  */
8646
8647int
8648main ()
8649{
8650
8651  ;
8652  return 0;
8653}
8654_ACEOF
8655rm -f conftest.$ac_objext conftest$ac_exeext
8656if { (ac_try="$ac_link"
8657case "(($ac_try" in
8658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8659  *) ac_try_echo=$ac_try;;
8660esac
8661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662  (eval "$ac_link") 2>conftest.er1
8663  ac_status=$?
8664  grep -v '^ *+' conftest.er1 >conftest.err
8665  rm -f conftest.er1
8666  cat conftest.err >&5
8667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668  (exit $ac_status); } && {
8669	 test -z "$ac_c_werror_flag" ||
8670	 test ! -s conftest.err
8671       } && test -s conftest$ac_exeext &&
8672       $as_test_x conftest$ac_exeext; then
8673
8674lt_aix_libpath_sed='
8675    /Import File Strings/,/^$/ {
8676	/^0/ {
8677	    s/^0  *\(.*\)$/\1/
8678	    p
8679	}
8680    }'
8681aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8682# Check for a 64-bit object if we didn't find anything.
8683if test -z "$aix_libpath"; then
8684  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8685fi
8686else
8687  echo "$as_me: failed program was:" >&5
8688sed 's/^/| /' conftest.$ac_ext >&5
8689
8690
8691fi
8692
8693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8694      conftest$ac_exeext conftest.$ac_ext
8695if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8696
8697	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8698	  # Warning - without using the other run time loading flags,
8699	  # -berok will link without error, but may produce a broken library.
8700	  no_undefined_flag=' ${wl}-bernotok'
8701	  allow_undefined_flag=' ${wl}-berok'
8702	  # Exported symbols can be pulled into shared objects from archives
8703	  whole_archive_flag_spec='$convenience'
8704	  archive_cmds_need_lc=yes
8705	  # This is similar to how AIX traditionally builds its shared libraries.
8706	  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'
8707	fi
8708      fi
8709      ;;
8710
8711    amigaos*)
8712      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)'
8713      hardcode_libdir_flag_spec='-L$libdir'
8714      hardcode_minus_L=yes
8715      # see comment about different semantics on the GNU ld section
8716      ld_shlibs=no
8717      ;;
8718
8719    bsdi[45]*)
8720      export_dynamic_flag_spec=-rdynamic
8721      ;;
8722
8723    cygwin* | mingw* | pw32*)
8724      # When not using gcc, we currently assume that we are using
8725      # Microsoft Visual C++.
8726      # hardcode_libdir_flag_spec is actually meaningless, as there is
8727      # no search path for DLLs.
8728      hardcode_libdir_flag_spec=' '
8729      allow_undefined_flag=unsupported
8730      # Tell ltmain to make .lib files, not .a files.
8731      libext=lib
8732      # Tell ltmain to make .dll files, not .so files.
8733      shrext_cmds=".dll"
8734      # FIXME: Setting linknames here is a bad hack.
8735      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8736      # The linker will automatically build a .lib file if we build a DLL.
8737      old_archive_From_new_cmds='true'
8738      # FIXME: Should let the user specify the lib program.
8739      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8740      fix_srcfile_path='`cygpath -w "$srcfile"`'
8741      enable_shared_with_static_runtimes=yes
8742      ;;
8743
8744    darwin* | rhapsody*)
8745      case $host_os in
8746        rhapsody* | darwin1.[012])
8747         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8748         ;;
8749       *) # Darwin 1.3 on
8750         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8751           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8752         else
8753           case ${MACOSX_DEPLOYMENT_TARGET} in
8754             10.[012])
8755               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8756               ;;
8757             10.*)
8758               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8759               ;;
8760           esac
8761         fi
8762         ;;
8763      esac
8764      archive_cmds_need_lc=no
8765      hardcode_direct=no
8766      hardcode_automatic=yes
8767      hardcode_shlibpath_var=unsupported
8768      whole_archive_flag_spec=''
8769      link_all_deplibs=yes
8770    if test "$GCC" = yes ; then
8771    	output_verbose_link_cmd='echo'
8772        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8773        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8774        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}"
8775        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}"
8776    else
8777      case $cc_basename in
8778        xlc*)
8779         output_verbose_link_cmd='echo'
8780         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8781         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8782          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8783         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}'
8784          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}'
8785          ;;
8786       *)
8787         ld_shlibs=no
8788          ;;
8789      esac
8790    fi
8791      ;;
8792
8793    dgux*)
8794      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8795      hardcode_libdir_flag_spec='-L$libdir'
8796      hardcode_shlibpath_var=no
8797      ;;
8798
8799    freebsd1*)
8800      ld_shlibs=no
8801      ;;
8802
8803    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8804    # support.  Future versions do this automatically, but an explicit c++rt0.o
8805    # does not break anything, and helps significantly (at the cost of a little
8806    # extra space).
8807    freebsd2.2*)
8808      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8809      hardcode_libdir_flag_spec='-R$libdir'
8810      hardcode_direct=yes
8811      hardcode_shlibpath_var=no
8812      ;;
8813
8814    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8815    freebsd2*)
8816      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8817      hardcode_direct=yes
8818      hardcode_minus_L=yes
8819      hardcode_shlibpath_var=no
8820      ;;
8821
8822    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8823    freebsd* | dragonfly*)
8824      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8825      hardcode_libdir_flag_spec='-R$libdir'
8826      hardcode_direct=yes
8827      hardcode_shlibpath_var=no
8828      ;;
8829
8830    hpux9*)
8831      if test "$GCC" = yes; then
8832	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'
8833      else
8834	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'
8835      fi
8836      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8837      hardcode_libdir_separator=:
8838      hardcode_direct=yes
8839
8840      # hardcode_minus_L: Not really in the search PATH,
8841      # but as the default location of the library.
8842      hardcode_minus_L=yes
8843      export_dynamic_flag_spec='${wl}-E'
8844      ;;
8845
8846    hpux10*)
8847      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8848	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8849      else
8850	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8851      fi
8852      if test "$with_gnu_ld" = no; then
8853	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8854	hardcode_libdir_separator=:
8855
8856	hardcode_direct=yes
8857	export_dynamic_flag_spec='${wl}-E'
8858
8859	# hardcode_minus_L: Not really in the search PATH,
8860	# but as the default location of the library.
8861	hardcode_minus_L=yes
8862      fi
8863      ;;
8864
8865    hpux11*)
8866      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8867	case $host_cpu in
8868	hppa*64*)
8869	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8870	  ;;
8871	ia64*)
8872	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8873	  ;;
8874	*)
8875	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8876	  ;;
8877	esac
8878      else
8879	case $host_cpu in
8880	hppa*64*)
8881	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8882	  ;;
8883	ia64*)
8884	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8885	  ;;
8886	*)
8887	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8888	  ;;
8889	esac
8890      fi
8891      if test "$with_gnu_ld" = no; then
8892	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8893	hardcode_libdir_separator=:
8894
8895	case $host_cpu in
8896	hppa*64*|ia64*)
8897	  hardcode_libdir_flag_spec_ld='+b $libdir'
8898	  hardcode_direct=no
8899	  hardcode_shlibpath_var=no
8900	  ;;
8901	*)
8902	  hardcode_direct=yes
8903	  export_dynamic_flag_spec='${wl}-E'
8904
8905	  # hardcode_minus_L: Not really in the search PATH,
8906	  # but as the default location of the library.
8907	  hardcode_minus_L=yes
8908	  ;;
8909	esac
8910      fi
8911      ;;
8912
8913    irix5* | irix6* | nonstopux*)
8914      if test "$GCC" = yes; then
8915	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'
8916      else
8917	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'
8918	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8919      fi
8920      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8921      hardcode_libdir_separator=:
8922      link_all_deplibs=yes
8923      ;;
8924
8925    netbsd* | netbsdelf*-gnu)
8926      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8927	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8928      else
8929	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8930      fi
8931      hardcode_libdir_flag_spec='-R$libdir'
8932      hardcode_direct=yes
8933      hardcode_shlibpath_var=no
8934      ;;
8935
8936    newsos6)
8937      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938      hardcode_direct=yes
8939      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8940      hardcode_libdir_separator=:
8941      hardcode_shlibpath_var=no
8942      ;;
8943
8944    openbsd*)
8945      if test -f /usr/libexec/ld.so; then
8946	hardcode_direct=yes
8947	hardcode_shlibpath_var=no
8948	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8949	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8950	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8951	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8952	  export_dynamic_flag_spec='${wl}-E'
8953	else
8954	  case $host_os in
8955	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8956	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8957	     hardcode_libdir_flag_spec='-R$libdir'
8958	     ;;
8959	   *)
8960	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8961	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8962	     ;;
8963	  esac
8964        fi
8965      else
8966	ld_shlibs=no
8967      fi
8968      ;;
8969
8970    os2*)
8971      hardcode_libdir_flag_spec='-L$libdir'
8972      hardcode_minus_L=yes
8973      allow_undefined_flag=unsupported
8974      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'
8975      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8976      ;;
8977
8978    osf3*)
8979      if test "$GCC" = yes; then
8980	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8981	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'
8982      else
8983	allow_undefined_flag=' -expect_unresolved \*'
8984	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'
8985      fi
8986      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8987      hardcode_libdir_separator=:
8988      ;;
8989
8990    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8991      if test "$GCC" = yes; then
8992	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8993	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'
8994	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8995      else
8996	allow_undefined_flag=' -expect_unresolved \*'
8997	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'
8998	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8999	$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'
9000
9001	# Both c and cxx compiler support -rpath directly
9002	hardcode_libdir_flag_spec='-rpath $libdir'
9003      fi
9004      hardcode_libdir_separator=:
9005      ;;
9006
9007    solaris*)
9008      no_undefined_flag=' -z text'
9009      if test "$GCC" = yes; then
9010	wlarc='${wl}'
9011	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9012	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9013	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9014      else
9015	wlarc=''
9016	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9017	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9018  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9019      fi
9020      hardcode_libdir_flag_spec='-R$libdir'
9021      hardcode_shlibpath_var=no
9022      case $host_os in
9023      solaris2.[0-5] | solaris2.[0-5].*) ;;
9024      *)
9025	# The compiler driver will combine and reorder linker options,
9026	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9027	# but is careful enough not to reorder.
9028 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9029	if test "$GCC" = yes; then
9030	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9031	else
9032	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9033	fi
9034	;;
9035      esac
9036      link_all_deplibs=yes
9037      ;;
9038
9039    sunos4*)
9040      if test "x$host_vendor" = xsequent; then
9041	# Use $CC to link under sequent, because it throws in some extra .o
9042	# files that make .init and .fini sections work.
9043	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9044      else
9045	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9046      fi
9047      hardcode_libdir_flag_spec='-L$libdir'
9048      hardcode_direct=yes
9049      hardcode_minus_L=yes
9050      hardcode_shlibpath_var=no
9051      ;;
9052
9053    sysv4)
9054      case $host_vendor in
9055	sni)
9056	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9057	  hardcode_direct=yes # is this really true???
9058	;;
9059	siemens)
9060	  ## LD is ld it makes a PLAMLIB
9061	  ## CC just makes a GrossModule.
9062	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9063	  reload_cmds='$CC -r -o $output$reload_objs'
9064	  hardcode_direct=no
9065        ;;
9066	motorola)
9067	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9068	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9069	;;
9070      esac
9071      runpath_var='LD_RUN_PATH'
9072      hardcode_shlibpath_var=no
9073      ;;
9074
9075    sysv4.3*)
9076      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9077      hardcode_shlibpath_var=no
9078      export_dynamic_flag_spec='-Bexport'
9079      ;;
9080
9081    sysv4*MP*)
9082      if test -d /usr/nec; then
9083	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9084	hardcode_shlibpath_var=no
9085	runpath_var=LD_RUN_PATH
9086	hardcode_runpath_var=yes
9087	ld_shlibs=yes
9088      fi
9089      ;;
9090
9091    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9092      no_undefined_flag='${wl}-z,text'
9093      archive_cmds_need_lc=no
9094      hardcode_shlibpath_var=no
9095      runpath_var='LD_RUN_PATH'
9096
9097      if test "$GCC" = yes; then
9098	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9099	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9100      else
9101	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9102	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9103      fi
9104      ;;
9105
9106    sysv5* | sco3.2v5* | sco5v6*)
9107      # Note: We can NOT use -z defs as we might desire, because we do not
9108      # link with -lc, and that would cause any symbols used from libc to
9109      # always be unresolved, which means just about no library would
9110      # ever link correctly.  If we're not using GNU ld we use -z text
9111      # though, which does catch some bad symbols but isn't as heavy-handed
9112      # as -z defs.
9113      no_undefined_flag='${wl}-z,text'
9114      allow_undefined_flag='${wl}-z,nodefs'
9115      archive_cmds_need_lc=no
9116      hardcode_shlibpath_var=no
9117      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9118      hardcode_libdir_separator=':'
9119      link_all_deplibs=yes
9120      export_dynamic_flag_spec='${wl}-Bexport'
9121      runpath_var='LD_RUN_PATH'
9122
9123      if test "$GCC" = yes; then
9124	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9125	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9126      else
9127	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9128	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9129      fi
9130      ;;
9131
9132    uts4*)
9133      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9134      hardcode_libdir_flag_spec='-L$libdir'
9135      hardcode_shlibpath_var=no
9136      ;;
9137
9138    *)
9139      ld_shlibs=no
9140      ;;
9141    esac
9142  fi
9143
9144{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9145echo "${ECHO_T}$ld_shlibs" >&6; }
9146test "$ld_shlibs" = no && can_build_shared=no
9147
9148#
9149# Do we need to explicitly link libc?
9150#
9151case "x$archive_cmds_need_lc" in
9152x|xyes)
9153  # Assume -lc should be added
9154  archive_cmds_need_lc=yes
9155
9156  if test "$enable_shared" = yes && test "$GCC" = yes; then
9157    case $archive_cmds in
9158    *'~'*)
9159      # FIXME: we may have to deal with multi-command sequences.
9160      ;;
9161    '$CC '*)
9162      # Test whether the compiler implicitly links with -lc since on some
9163      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9164      # to ld, don't add -lc before -lgcc.
9165      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9166echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9167      $rm conftest*
9168      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9169
9170      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9171  (eval $ac_compile) 2>&5
9172  ac_status=$?
9173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174  (exit $ac_status); } 2>conftest.err; then
9175        soname=conftest
9176        lib=conftest
9177        libobjs=conftest.$ac_objext
9178        deplibs=
9179        wl=$lt_prog_compiler_wl
9180	pic_flag=$lt_prog_compiler_pic
9181        compiler_flags=-v
9182        linker_flags=-v
9183        verstring=
9184        output_objdir=.
9185        libname=conftest
9186        lt_save_allow_undefined_flag=$allow_undefined_flag
9187        allow_undefined_flag=
9188        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9189  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9190  ac_status=$?
9191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192  (exit $ac_status); }
9193        then
9194	  archive_cmds_need_lc=no
9195        else
9196	  archive_cmds_need_lc=yes
9197        fi
9198        allow_undefined_flag=$lt_save_allow_undefined_flag
9199      else
9200        cat conftest.err 1>&5
9201      fi
9202      $rm conftest*
9203      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9204echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9205      ;;
9206    esac
9207  fi
9208  ;;
9209esac
9210
9211{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9212echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9213library_names_spec=
9214libname_spec='lib$name'
9215soname_spec=
9216shrext_cmds=".so"
9217postinstall_cmds=
9218postuninstall_cmds=
9219finish_cmds=
9220finish_eval=
9221shlibpath_var=
9222shlibpath_overrides_runpath=unknown
9223version_type=none
9224dynamic_linker="$host_os ld.so"
9225sys_lib_dlsearch_path_spec="/lib /usr/lib"
9226
9227if test "$GCC" = yes; then
9228  case $host_os in
9229    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9230    *) lt_awk_arg="/^libraries:/" ;;
9231  esac
9232  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9233  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9234    # if the path contains ";" then we assume it to be the separator
9235    # otherwise default to the standard path separator (i.e. ":") - it is
9236    # assumed that no part of a normal pathname contains ";" but that should
9237    # okay in the real world where ";" in dirpaths is itself problematic.
9238    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9239  else
9240    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9241  fi
9242  # Ok, now we have the path, separated by spaces, we can step through it
9243  # and add multilib dir if necessary.
9244  lt_tmp_lt_search_path_spec=
9245  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9246  for lt_sys_path in $lt_search_path_spec; do
9247    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9248      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9249    else
9250      test -d "$lt_sys_path" && \
9251	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9252    fi
9253  done
9254  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9255BEGIN {RS=" "; FS="/|\n";} {
9256  lt_foo="";
9257  lt_count=0;
9258  for (lt_i = NF; lt_i > 0; lt_i--) {
9259    if ($lt_i != "" && $lt_i != ".") {
9260      if ($lt_i == "..") {
9261        lt_count++;
9262      } else {
9263        if (lt_count == 0) {
9264          lt_foo="/" $lt_i lt_foo;
9265        } else {
9266          lt_count--;
9267        }
9268      }
9269    }
9270  }
9271  if (lt_foo != "") { lt_freq[lt_foo]++; }
9272  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9273}'`
9274  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9275else
9276  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9277fi
9278need_lib_prefix=unknown
9279hardcode_into_libs=no
9280
9281# when you set need_version to no, make sure it does not cause -set_version
9282# flags to be left without arguments
9283need_version=unknown
9284
9285case $host_os in
9286aix3*)
9287  version_type=linux
9288  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9289  shlibpath_var=LIBPATH
9290
9291  # AIX 3 has no versioning support, so we append a major version to the name.
9292  soname_spec='${libname}${release}${shared_ext}$major'
9293  ;;
9294
9295aix[4-9]*)
9296  version_type=linux
9297  need_lib_prefix=no
9298  need_version=no
9299  hardcode_into_libs=yes
9300  if test "$host_cpu" = ia64; then
9301    # AIX 5 supports IA64
9302    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9303    shlibpath_var=LD_LIBRARY_PATH
9304  else
9305    # With GCC up to 2.95.x, collect2 would create an import file
9306    # for dependence libraries.  The import file would start with
9307    # the line `#! .'.  This would cause the generated library to
9308    # depend on `.', always an invalid library.  This was fixed in
9309    # development snapshots of GCC prior to 3.0.
9310    case $host_os in
9311      aix4 | aix4.[01] | aix4.[01].*)
9312      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9313	   echo ' yes '
9314	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9315	:
9316      else
9317	can_build_shared=no
9318      fi
9319      ;;
9320    esac
9321    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9322    # soname into executable. Probably we can add versioning support to
9323    # collect2, so additional links can be useful in future.
9324    if test "$aix_use_runtimelinking" = yes; then
9325      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9326      # instead of lib<name>.a to let people know that these are not
9327      # typical AIX shared libraries.
9328      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9329    else
9330      # We preserve .a as extension for shared libraries through AIX4.2
9331      # and later when we are not doing run time linking.
9332      library_names_spec='${libname}${release}.a $libname.a'
9333      soname_spec='${libname}${release}${shared_ext}$major'
9334    fi
9335    shlibpath_var=LIBPATH
9336  fi
9337  ;;
9338
9339amigaos*)
9340  library_names_spec='$libname.ixlibrary $libname.a'
9341  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9342  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'
9343  ;;
9344
9345beos*)
9346  library_names_spec='${libname}${shared_ext}'
9347  dynamic_linker="$host_os ld.so"
9348  shlibpath_var=LIBRARY_PATH
9349  ;;
9350
9351bsdi[45]*)
9352  version_type=linux
9353  need_version=no
9354  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9355  soname_spec='${libname}${release}${shared_ext}$major'
9356  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9357  shlibpath_var=LD_LIBRARY_PATH
9358  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9359  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9360  # the default ld.so.conf also contains /usr/contrib/lib and
9361  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9362  # libtool to hard-code these into programs
9363  ;;
9364
9365cygwin* | mingw* | pw32*)
9366  version_type=windows
9367  shrext_cmds=".dll"
9368  need_version=no
9369  need_lib_prefix=no
9370
9371  case $GCC,$host_os in
9372  yes,cygwin* | yes,mingw* | yes,pw32*)
9373    library_names_spec='$libname.dll.a'
9374    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9375    postinstall_cmds='base_file=`basename \${file}`~
9376      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9377      dldir=$destdir/`dirname \$dlpath`~
9378      test -d \$dldir || mkdir -p \$dldir~
9379      $install_prog $dir/$dlname \$dldir/$dlname~
9380      chmod a+x \$dldir/$dlname'
9381    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9382      dlpath=$dir/\$dldll~
9383       $rm \$dlpath'
9384    shlibpath_overrides_runpath=yes
9385
9386    case $host_os in
9387    cygwin*)
9388      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9389      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9390      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9391      ;;
9392    mingw*)
9393      # MinGW DLLs use traditional 'lib' prefix
9394      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9395      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9396      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9397        # It is most probably a Windows format PATH printed by
9398        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9399        # path with ; separators, and with drive letters. We can handle the
9400        # drive letters (cygwin fileutils understands them), so leave them,
9401        # especially as we might pass files found there to a mingw objdump,
9402        # which wouldn't understand a cygwinified path. Ahh.
9403        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9404      else
9405        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9406      fi
9407      ;;
9408    pw32*)
9409      # pw32 DLLs use 'pw' prefix rather than 'lib'
9410      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9411      ;;
9412    esac
9413    ;;
9414
9415  *)
9416    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9417    ;;
9418  esac
9419  dynamic_linker='Win32 ld.exe'
9420  # FIXME: first we should search . and the directory the executable is in
9421  shlibpath_var=PATH
9422  ;;
9423
9424darwin* | rhapsody*)
9425  dynamic_linker="$host_os dyld"
9426  version_type=darwin
9427  need_lib_prefix=no
9428  need_version=no
9429  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9430  soname_spec='${libname}${release}${major}$shared_ext'
9431  shlibpath_overrides_runpath=yes
9432  shlibpath_var=DYLD_LIBRARY_PATH
9433  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9434
9435  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9436  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9437  ;;
9438
9439dgux*)
9440  version_type=linux
9441  need_lib_prefix=no
9442  need_version=no
9443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9444  soname_spec='${libname}${release}${shared_ext}$major'
9445  shlibpath_var=LD_LIBRARY_PATH
9446  ;;
9447
9448freebsd1*)
9449  dynamic_linker=no
9450  ;;
9451
9452freebsd* | dragonfly*)
9453  # DragonFly does not have aout.  When/if they implement a new
9454  # versioning mechanism, adjust this.
9455  if test -x /usr/bin/objformat; then
9456    objformat=`/usr/bin/objformat`
9457  else
9458    case $host_os in
9459    freebsd[123]*) objformat=aout ;;
9460    *) objformat=elf ;;
9461    esac
9462  fi
9463  version_type=freebsd-$objformat
9464  case $version_type in
9465    freebsd-elf*)
9466      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9467      need_version=no
9468      need_lib_prefix=no
9469      ;;
9470    freebsd-*)
9471      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9472      need_version=yes
9473      ;;
9474  esac
9475  shlibpath_var=LD_LIBRARY_PATH
9476  case $host_os in
9477  freebsd2*)
9478    shlibpath_overrides_runpath=yes
9479    ;;
9480  freebsd3.[01]* | freebsdelf3.[01]*)
9481    shlibpath_overrides_runpath=yes
9482    hardcode_into_libs=yes
9483    ;;
9484  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9485  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9486    shlibpath_overrides_runpath=no
9487    hardcode_into_libs=yes
9488    ;;
9489  *) # from 4.6 on, and DragonFly
9490    shlibpath_overrides_runpath=yes
9491    hardcode_into_libs=yes
9492    ;;
9493  esac
9494  ;;
9495
9496gnu*)
9497  version_type=linux
9498  need_lib_prefix=no
9499  need_version=no
9500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9501  soname_spec='${libname}${release}${shared_ext}$major'
9502  shlibpath_var=LD_LIBRARY_PATH
9503  hardcode_into_libs=yes
9504  ;;
9505
9506hpux9* | hpux10* | hpux11*)
9507  # Give a soname corresponding to the major version so that dld.sl refuses to
9508  # link against other versions.
9509  version_type=sunos
9510  need_lib_prefix=no
9511  need_version=no
9512  case $host_cpu in
9513  ia64*)
9514    shrext_cmds='.so'
9515    hardcode_into_libs=yes
9516    dynamic_linker="$host_os dld.so"
9517    shlibpath_var=LD_LIBRARY_PATH
9518    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9519    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520    soname_spec='${libname}${release}${shared_ext}$major'
9521    if test "X$HPUX_IA64_MODE" = X32; then
9522      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9523    else
9524      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9525    fi
9526    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9527    ;;
9528   hppa*64*)
9529     shrext_cmds='.sl'
9530     hardcode_into_libs=yes
9531     dynamic_linker="$host_os dld.sl"
9532     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9533     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9534     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9535     soname_spec='${libname}${release}${shared_ext}$major'
9536     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9537     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9538     ;;
9539   *)
9540    shrext_cmds='.sl'
9541    dynamic_linker="$host_os dld.sl"
9542    shlibpath_var=SHLIB_PATH
9543    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9544    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545    soname_spec='${libname}${release}${shared_ext}$major'
9546    ;;
9547  esac
9548  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9549  postinstall_cmds='chmod 555 $lib'
9550  ;;
9551
9552interix[3-9]*)
9553  version_type=linux
9554  need_lib_prefix=no
9555  need_version=no
9556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9557  soname_spec='${libname}${release}${shared_ext}$major'
9558  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9559  shlibpath_var=LD_LIBRARY_PATH
9560  shlibpath_overrides_runpath=no
9561  hardcode_into_libs=yes
9562  ;;
9563
9564irix5* | irix6* | nonstopux*)
9565  case $host_os in
9566    nonstopux*) version_type=nonstopux ;;
9567    *)
9568	if test "$lt_cv_prog_gnu_ld" = yes; then
9569		version_type=linux
9570	else
9571		version_type=irix
9572	fi ;;
9573  esac
9574  need_lib_prefix=no
9575  need_version=no
9576  soname_spec='${libname}${release}${shared_ext}$major'
9577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9578  case $host_os in
9579  irix5* | nonstopux*)
9580    libsuff= shlibsuff=
9581    ;;
9582  *)
9583    case $LD in # libtool.m4 will add one of these switches to LD
9584    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9585      libsuff= shlibsuff= libmagic=32-bit;;
9586    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9587      libsuff=32 shlibsuff=N32 libmagic=N32;;
9588    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9589      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9590    *) libsuff= shlibsuff= libmagic=never-match;;
9591    esac
9592    ;;
9593  esac
9594  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9595  shlibpath_overrides_runpath=no
9596  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9597  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9598  hardcode_into_libs=yes
9599  ;;
9600
9601# No shared lib support for Linux oldld, aout, or coff.
9602linux*oldld* | linux*aout* | linux*coff*)
9603  dynamic_linker=no
9604  ;;
9605
9606# This must be Linux ELF.
9607linux* | k*bsd*-gnu)
9608  version_type=linux
9609  need_lib_prefix=no
9610  need_version=no
9611  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612  soname_spec='${libname}${release}${shared_ext}$major'
9613  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9614  shlibpath_var=LD_LIBRARY_PATH
9615  shlibpath_overrides_runpath=no
9616  # This implies no fast_install, which is unacceptable.
9617  # Some rework will be needed to allow for fast_install
9618  # before this can be enabled.
9619  hardcode_into_libs=yes
9620
9621  # Append ld.so.conf contents to the search path
9622  if test -f /etc/ld.so.conf; then
9623    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' ' '`
9624    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9625  fi
9626
9627  # We used to test for /lib/ld.so.1 and disable shared libraries on
9628  # powerpc, because MkLinux only supported shared libraries with the
9629  # GNU dynamic linker.  Since this was broken with cross compilers,
9630  # most powerpc-linux boxes support dynamic linking these days and
9631  # people can always --disable-shared, the test was removed, and we
9632  # assume the GNU/Linux dynamic linker is in use.
9633  dynamic_linker='GNU/Linux ld.so'
9634  ;;
9635
9636netbsdelf*-gnu)
9637  version_type=linux
9638  need_lib_prefix=no
9639  need_version=no
9640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9641  soname_spec='${libname}${release}${shared_ext}$major'
9642  shlibpath_var=LD_LIBRARY_PATH
9643  shlibpath_overrides_runpath=no
9644  hardcode_into_libs=yes
9645  dynamic_linker='NetBSD ld.elf_so'
9646  ;;
9647
9648netbsd*)
9649  version_type=sunos
9650  need_lib_prefix=no
9651  need_version=no
9652  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9653    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9654    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9655    dynamic_linker='NetBSD (a.out) ld.so'
9656  else
9657    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9658    soname_spec='${libname}${release}${shared_ext}$major'
9659    dynamic_linker='NetBSD ld.elf_so'
9660  fi
9661  shlibpath_var=LD_LIBRARY_PATH
9662  shlibpath_overrides_runpath=yes
9663  hardcode_into_libs=yes
9664  ;;
9665
9666newsos6)
9667  version_type=linux
9668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669  shlibpath_var=LD_LIBRARY_PATH
9670  shlibpath_overrides_runpath=yes
9671  ;;
9672
9673nto-qnx*)
9674  version_type=linux
9675  need_lib_prefix=no
9676  need_version=no
9677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678  soname_spec='${libname}${release}${shared_ext}$major'
9679  shlibpath_var=LD_LIBRARY_PATH
9680  shlibpath_overrides_runpath=yes
9681  ;;
9682
9683openbsd*)
9684  version_type=sunos
9685  sys_lib_dlsearch_path_spec="/usr/lib"
9686  need_lib_prefix=no
9687  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9688  case $host_os in
9689    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9690    *)                         need_version=no  ;;
9691  esac
9692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9693  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9694  shlibpath_var=LD_LIBRARY_PATH
9695  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9696    case $host_os in
9697      openbsd2.[89] | openbsd2.[89].*)
9698	shlibpath_overrides_runpath=no
9699	;;
9700      *)
9701	shlibpath_overrides_runpath=yes
9702	;;
9703      esac
9704  else
9705    shlibpath_overrides_runpath=yes
9706  fi
9707  ;;
9708
9709os2*)
9710  libname_spec='$name'
9711  shrext_cmds=".dll"
9712  need_lib_prefix=no
9713  library_names_spec='$libname${shared_ext} $libname.a'
9714  dynamic_linker='OS/2 ld.exe'
9715  shlibpath_var=LIBPATH
9716  ;;
9717
9718osf3* | osf4* | osf5*)
9719  version_type=osf
9720  need_lib_prefix=no
9721  need_version=no
9722  soname_spec='${libname}${release}${shared_ext}$major'
9723  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724  shlibpath_var=LD_LIBRARY_PATH
9725  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9726  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9727  ;;
9728
9729rdos*)
9730  dynamic_linker=no
9731  ;;
9732
9733solaris*)
9734  version_type=linux
9735  need_lib_prefix=no
9736  need_version=no
9737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9738  soname_spec='${libname}${release}${shared_ext}$major'
9739  shlibpath_var=LD_LIBRARY_PATH
9740  shlibpath_overrides_runpath=yes
9741  hardcode_into_libs=yes
9742  # ldd complains unless libraries are executable
9743  postinstall_cmds='chmod +x $lib'
9744  ;;
9745
9746sunos4*)
9747  version_type=sunos
9748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9749  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9750  shlibpath_var=LD_LIBRARY_PATH
9751  shlibpath_overrides_runpath=yes
9752  if test "$with_gnu_ld" = yes; then
9753    need_lib_prefix=no
9754  fi
9755  need_version=yes
9756  ;;
9757
9758sysv4 | sysv4.3*)
9759  version_type=linux
9760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9761  soname_spec='${libname}${release}${shared_ext}$major'
9762  shlibpath_var=LD_LIBRARY_PATH
9763  case $host_vendor in
9764    sni)
9765      shlibpath_overrides_runpath=no
9766      need_lib_prefix=no
9767      export_dynamic_flag_spec='${wl}-Blargedynsym'
9768      runpath_var=LD_RUN_PATH
9769      ;;
9770    siemens)
9771      need_lib_prefix=no
9772      ;;
9773    motorola)
9774      need_lib_prefix=no
9775      need_version=no
9776      shlibpath_overrides_runpath=no
9777      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9778      ;;
9779  esac
9780  ;;
9781
9782sysv4*MP*)
9783  if test -d /usr/nec ;then
9784    version_type=linux
9785    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9786    soname_spec='$libname${shared_ext}.$major'
9787    shlibpath_var=LD_LIBRARY_PATH
9788  fi
9789  ;;
9790
9791sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9792  version_type=freebsd-elf
9793  need_lib_prefix=no
9794  need_version=no
9795  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9796  soname_spec='${libname}${release}${shared_ext}$major'
9797  shlibpath_var=LD_LIBRARY_PATH
9798  hardcode_into_libs=yes
9799  if test "$with_gnu_ld" = yes; then
9800    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9801    shlibpath_overrides_runpath=no
9802  else
9803    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9804    shlibpath_overrides_runpath=yes
9805    case $host_os in
9806      sco3.2v5*)
9807        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9808	;;
9809    esac
9810  fi
9811  sys_lib_dlsearch_path_spec='/usr/lib'
9812  ;;
9813
9814uts4*)
9815  version_type=linux
9816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9817  soname_spec='${libname}${release}${shared_ext}$major'
9818  shlibpath_var=LD_LIBRARY_PATH
9819  ;;
9820
9821*)
9822  dynamic_linker=no
9823  ;;
9824esac
9825{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9826echo "${ECHO_T}$dynamic_linker" >&6; }
9827test "$dynamic_linker" = no && can_build_shared=no
9828
9829if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9830  echo $ECHO_N "(cached) $ECHO_C" >&6
9831else
9832  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9833fi
9834
9835sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9836if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9837  echo $ECHO_N "(cached) $ECHO_C" >&6
9838else
9839  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9840fi
9841
9842sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9843
9844variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9845if test "$GCC" = yes; then
9846  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9847fi
9848
9849{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9850echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9851hardcode_action=
9852if test -n "$hardcode_libdir_flag_spec" || \
9853   test -n "$runpath_var" || \
9854   test "X$hardcode_automatic" = "Xyes" ; then
9855
9856  # We can hardcode non-existant directories.
9857  if test "$hardcode_direct" != no &&
9858     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9859     # have to relink, otherwise we might link with an installed library
9860     # when we should be linking with a yet-to-be-installed one
9861     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9862     test "$hardcode_minus_L" != no; then
9863    # Linking always hardcodes the temporary library directory.
9864    hardcode_action=relink
9865  else
9866    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9867    hardcode_action=immediate
9868  fi
9869else
9870  # We cannot hardcode anything, or else we can only hardcode existing
9871  # directories.
9872  hardcode_action=unsupported
9873fi
9874{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9875echo "${ECHO_T}$hardcode_action" >&6; }
9876
9877if test "$hardcode_action" = relink; then
9878  # Fast installation is not supported
9879  enable_fast_install=no
9880elif test "$shlibpath_overrides_runpath" = yes ||
9881     test "$enable_shared" = no; then
9882  # Fast installation is not necessary
9883  enable_fast_install=needless
9884fi
9885
9886striplib=
9887old_striplib=
9888{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9889echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9890if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9891  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9892  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9893  { echo "$as_me:$LINENO: result: yes" >&5
9894echo "${ECHO_T}yes" >&6; }
9895else
9896# FIXME - insert some real tests, host_os isn't really good enough
9897  case $host_os in
9898   darwin*)
9899       if test -n "$STRIP" ; then
9900         striplib="$STRIP -x"
9901         old_striplib="$STRIP -S"
9902         { echo "$as_me:$LINENO: result: yes" >&5
9903echo "${ECHO_T}yes" >&6; }
9904       else
9905  { echo "$as_me:$LINENO: result: no" >&5
9906echo "${ECHO_T}no" >&6; }
9907fi
9908       ;;
9909   *)
9910  { echo "$as_me:$LINENO: result: no" >&5
9911echo "${ECHO_T}no" >&6; }
9912    ;;
9913  esac
9914fi
9915
9916if test "x$enable_dlopen" != xyes; then
9917  enable_dlopen=unknown
9918  enable_dlopen_self=unknown
9919  enable_dlopen_self_static=unknown
9920else
9921  lt_cv_dlopen=no
9922  lt_cv_dlopen_libs=
9923
9924  case $host_os in
9925  beos*)
9926    lt_cv_dlopen="load_add_on"
9927    lt_cv_dlopen_libs=
9928    lt_cv_dlopen_self=yes
9929    ;;
9930
9931  mingw* | pw32*)
9932    lt_cv_dlopen="LoadLibrary"
9933    lt_cv_dlopen_libs=
9934   ;;
9935
9936  cygwin*)
9937    lt_cv_dlopen="dlopen"
9938    lt_cv_dlopen_libs=
9939   ;;
9940
9941  darwin*)
9942  # if libdl is installed we need to link against it
9943    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9944echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9945if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9946  echo $ECHO_N "(cached) $ECHO_C" >&6
9947else
9948  ac_check_lib_save_LIBS=$LIBS
9949LIBS="-ldl  $LIBS"
9950cat >conftest.$ac_ext <<_ACEOF
9951/* confdefs.h.  */
9952_ACEOF
9953cat confdefs.h >>conftest.$ac_ext
9954cat >>conftest.$ac_ext <<_ACEOF
9955/* end confdefs.h.  */
9956
9957/* Override any GCC internal prototype to avoid an error.
9958   Use char because int might match the return type of a GCC
9959   builtin and then its argument prototype would still apply.  */
9960#ifdef __cplusplus
9961extern "C"
9962#endif
9963char dlopen ();
9964int
9965main ()
9966{
9967return dlopen ();
9968  ;
9969  return 0;
9970}
9971_ACEOF
9972rm -f conftest.$ac_objext conftest$ac_exeext
9973if { (ac_try="$ac_link"
9974case "(($ac_try" in
9975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976  *) ac_try_echo=$ac_try;;
9977esac
9978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9979  (eval "$ac_link") 2>conftest.er1
9980  ac_status=$?
9981  grep -v '^ *+' conftest.er1 >conftest.err
9982  rm -f conftest.er1
9983  cat conftest.err >&5
9984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985  (exit $ac_status); } && {
9986	 test -z "$ac_c_werror_flag" ||
9987	 test ! -s conftest.err
9988       } && test -s conftest$ac_exeext &&
9989       $as_test_x conftest$ac_exeext; then
9990  ac_cv_lib_dl_dlopen=yes
9991else
9992  echo "$as_me: failed program was:" >&5
9993sed 's/^/| /' conftest.$ac_ext >&5
9994
9995	ac_cv_lib_dl_dlopen=no
9996fi
9997
9998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9999      conftest$ac_exeext conftest.$ac_ext
10000LIBS=$ac_check_lib_save_LIBS
10001fi
10002{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10003echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10004if test $ac_cv_lib_dl_dlopen = yes; then
10005  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10006else
10007
10008    lt_cv_dlopen="dyld"
10009    lt_cv_dlopen_libs=
10010    lt_cv_dlopen_self=yes
10011
10012fi
10013
10014   ;;
10015
10016  *)
10017    { echo "$as_me:$LINENO: checking for shl_load" >&5
10018echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10019if test "${ac_cv_func_shl_load+set}" = set; then
10020  echo $ECHO_N "(cached) $ECHO_C" >&6
10021else
10022  cat >conftest.$ac_ext <<_ACEOF
10023/* confdefs.h.  */
10024_ACEOF
10025cat confdefs.h >>conftest.$ac_ext
10026cat >>conftest.$ac_ext <<_ACEOF
10027/* end confdefs.h.  */
10028/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10029   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10030#define shl_load innocuous_shl_load
10031
10032/* System header to define __stub macros and hopefully few prototypes,
10033    which can conflict with char shl_load (); below.
10034    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10035    <limits.h> exists even on freestanding compilers.  */
10036
10037#ifdef __STDC__
10038# include <limits.h>
10039#else
10040# include <assert.h>
10041#endif
10042
10043#undef shl_load
10044
10045/* Override any GCC internal prototype to avoid an error.
10046   Use char because int might match the return type of a GCC
10047   builtin and then its argument prototype would still apply.  */
10048#ifdef __cplusplus
10049extern "C"
10050#endif
10051char shl_load ();
10052/* The GNU C library defines this for functions which it implements
10053    to always fail with ENOSYS.  Some functions are actually named
10054    something starting with __ and the normal name is an alias.  */
10055#if defined __stub_shl_load || defined __stub___shl_load
10056choke me
10057#endif
10058
10059int
10060main ()
10061{
10062return shl_load ();
10063  ;
10064  return 0;
10065}
10066_ACEOF
10067rm -f conftest.$ac_objext conftest$ac_exeext
10068if { (ac_try="$ac_link"
10069case "(($ac_try" in
10070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071  *) ac_try_echo=$ac_try;;
10072esac
10073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074  (eval "$ac_link") 2>conftest.er1
10075  ac_status=$?
10076  grep -v '^ *+' conftest.er1 >conftest.err
10077  rm -f conftest.er1
10078  cat conftest.err >&5
10079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080  (exit $ac_status); } && {
10081	 test -z "$ac_c_werror_flag" ||
10082	 test ! -s conftest.err
10083       } && test -s conftest$ac_exeext &&
10084       $as_test_x conftest$ac_exeext; then
10085  ac_cv_func_shl_load=yes
10086else
10087  echo "$as_me: failed program was:" >&5
10088sed 's/^/| /' conftest.$ac_ext >&5
10089
10090	ac_cv_func_shl_load=no
10091fi
10092
10093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10094      conftest$ac_exeext conftest.$ac_ext
10095fi
10096{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10097echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10098if test $ac_cv_func_shl_load = yes; then
10099  lt_cv_dlopen="shl_load"
10100else
10101  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10102echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10103if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10104  echo $ECHO_N "(cached) $ECHO_C" >&6
10105else
10106  ac_check_lib_save_LIBS=$LIBS
10107LIBS="-ldld  $LIBS"
10108cat >conftest.$ac_ext <<_ACEOF
10109/* confdefs.h.  */
10110_ACEOF
10111cat confdefs.h >>conftest.$ac_ext
10112cat >>conftest.$ac_ext <<_ACEOF
10113/* end confdefs.h.  */
10114
10115/* Override any GCC internal prototype to avoid an error.
10116   Use char because int might match the return type of a GCC
10117   builtin and then its argument prototype would still apply.  */
10118#ifdef __cplusplus
10119extern "C"
10120#endif
10121char shl_load ();
10122int
10123main ()
10124{
10125return shl_load ();
10126  ;
10127  return 0;
10128}
10129_ACEOF
10130rm -f conftest.$ac_objext conftest$ac_exeext
10131if { (ac_try="$ac_link"
10132case "(($ac_try" in
10133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134  *) ac_try_echo=$ac_try;;
10135esac
10136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10137  (eval "$ac_link") 2>conftest.er1
10138  ac_status=$?
10139  grep -v '^ *+' conftest.er1 >conftest.err
10140  rm -f conftest.er1
10141  cat conftest.err >&5
10142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143  (exit $ac_status); } && {
10144	 test -z "$ac_c_werror_flag" ||
10145	 test ! -s conftest.err
10146       } && test -s conftest$ac_exeext &&
10147       $as_test_x conftest$ac_exeext; then
10148  ac_cv_lib_dld_shl_load=yes
10149else
10150  echo "$as_me: failed program was:" >&5
10151sed 's/^/| /' conftest.$ac_ext >&5
10152
10153	ac_cv_lib_dld_shl_load=no
10154fi
10155
10156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10157      conftest$ac_exeext conftest.$ac_ext
10158LIBS=$ac_check_lib_save_LIBS
10159fi
10160{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10161echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10162if test $ac_cv_lib_dld_shl_load = yes; then
10163  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10164else
10165  { echo "$as_me:$LINENO: checking for dlopen" >&5
10166echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10167if test "${ac_cv_func_dlopen+set}" = set; then
10168  echo $ECHO_N "(cached) $ECHO_C" >&6
10169else
10170  cat >conftest.$ac_ext <<_ACEOF
10171/* confdefs.h.  */
10172_ACEOF
10173cat confdefs.h >>conftest.$ac_ext
10174cat >>conftest.$ac_ext <<_ACEOF
10175/* end confdefs.h.  */
10176/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10177   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10178#define dlopen innocuous_dlopen
10179
10180/* System header to define __stub macros and hopefully few prototypes,
10181    which can conflict with char dlopen (); below.
10182    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10183    <limits.h> exists even on freestanding compilers.  */
10184
10185#ifdef __STDC__
10186# include <limits.h>
10187#else
10188# include <assert.h>
10189#endif
10190
10191#undef dlopen
10192
10193/* Override any GCC internal prototype to avoid an error.
10194   Use char because int might match the return type of a GCC
10195   builtin and then its argument prototype would still apply.  */
10196#ifdef __cplusplus
10197extern "C"
10198#endif
10199char dlopen ();
10200/* The GNU C library defines this for functions which it implements
10201    to always fail with ENOSYS.  Some functions are actually named
10202    something starting with __ and the normal name is an alias.  */
10203#if defined __stub_dlopen || defined __stub___dlopen
10204choke me
10205#endif
10206
10207int
10208main ()
10209{
10210return dlopen ();
10211  ;
10212  return 0;
10213}
10214_ACEOF
10215rm -f conftest.$ac_objext conftest$ac_exeext
10216if { (ac_try="$ac_link"
10217case "(($ac_try" in
10218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10219  *) ac_try_echo=$ac_try;;
10220esac
10221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10222  (eval "$ac_link") 2>conftest.er1
10223  ac_status=$?
10224  grep -v '^ *+' conftest.er1 >conftest.err
10225  rm -f conftest.er1
10226  cat conftest.err >&5
10227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228  (exit $ac_status); } && {
10229	 test -z "$ac_c_werror_flag" ||
10230	 test ! -s conftest.err
10231       } && test -s conftest$ac_exeext &&
10232       $as_test_x conftest$ac_exeext; then
10233  ac_cv_func_dlopen=yes
10234else
10235  echo "$as_me: failed program was:" >&5
10236sed 's/^/| /' conftest.$ac_ext >&5
10237
10238	ac_cv_func_dlopen=no
10239fi
10240
10241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10242      conftest$ac_exeext conftest.$ac_ext
10243fi
10244{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10245echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10246if test $ac_cv_func_dlopen = yes; then
10247  lt_cv_dlopen="dlopen"
10248else
10249  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10250echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10251if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10252  echo $ECHO_N "(cached) $ECHO_C" >&6
10253else
10254  ac_check_lib_save_LIBS=$LIBS
10255LIBS="-ldl  $LIBS"
10256cat >conftest.$ac_ext <<_ACEOF
10257/* confdefs.h.  */
10258_ACEOF
10259cat confdefs.h >>conftest.$ac_ext
10260cat >>conftest.$ac_ext <<_ACEOF
10261/* end confdefs.h.  */
10262
10263/* Override any GCC internal prototype to avoid an error.
10264   Use char because int might match the return type of a GCC
10265   builtin and then its argument prototype would still apply.  */
10266#ifdef __cplusplus
10267extern "C"
10268#endif
10269char dlopen ();
10270int
10271main ()
10272{
10273return dlopen ();
10274  ;
10275  return 0;
10276}
10277_ACEOF
10278rm -f conftest.$ac_objext conftest$ac_exeext
10279if { (ac_try="$ac_link"
10280case "(($ac_try" in
10281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282  *) ac_try_echo=$ac_try;;
10283esac
10284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285  (eval "$ac_link") 2>conftest.er1
10286  ac_status=$?
10287  grep -v '^ *+' conftest.er1 >conftest.err
10288  rm -f conftest.er1
10289  cat conftest.err >&5
10290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291  (exit $ac_status); } && {
10292	 test -z "$ac_c_werror_flag" ||
10293	 test ! -s conftest.err
10294       } && test -s conftest$ac_exeext &&
10295       $as_test_x conftest$ac_exeext; then
10296  ac_cv_lib_dl_dlopen=yes
10297else
10298  echo "$as_me: failed program was:" >&5
10299sed 's/^/| /' conftest.$ac_ext >&5
10300
10301	ac_cv_lib_dl_dlopen=no
10302fi
10303
10304rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10305      conftest$ac_exeext conftest.$ac_ext
10306LIBS=$ac_check_lib_save_LIBS
10307fi
10308{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10309echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10310if test $ac_cv_lib_dl_dlopen = yes; then
10311  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10312else
10313  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10314echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10315if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10316  echo $ECHO_N "(cached) $ECHO_C" >&6
10317else
10318  ac_check_lib_save_LIBS=$LIBS
10319LIBS="-lsvld  $LIBS"
10320cat >conftest.$ac_ext <<_ACEOF
10321/* confdefs.h.  */
10322_ACEOF
10323cat confdefs.h >>conftest.$ac_ext
10324cat >>conftest.$ac_ext <<_ACEOF
10325/* end confdefs.h.  */
10326
10327/* Override any GCC internal prototype to avoid an error.
10328   Use char because int might match the return type of a GCC
10329   builtin and then its argument prototype would still apply.  */
10330#ifdef __cplusplus
10331extern "C"
10332#endif
10333char dlopen ();
10334int
10335main ()
10336{
10337return dlopen ();
10338  ;
10339  return 0;
10340}
10341_ACEOF
10342rm -f conftest.$ac_objext conftest$ac_exeext
10343if { (ac_try="$ac_link"
10344case "(($ac_try" in
10345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10346  *) ac_try_echo=$ac_try;;
10347esac
10348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10349  (eval "$ac_link") 2>conftest.er1
10350  ac_status=$?
10351  grep -v '^ *+' conftest.er1 >conftest.err
10352  rm -f conftest.er1
10353  cat conftest.err >&5
10354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355  (exit $ac_status); } && {
10356	 test -z "$ac_c_werror_flag" ||
10357	 test ! -s conftest.err
10358       } && test -s conftest$ac_exeext &&
10359       $as_test_x conftest$ac_exeext; then
10360  ac_cv_lib_svld_dlopen=yes
10361else
10362  echo "$as_me: failed program was:" >&5
10363sed 's/^/| /' conftest.$ac_ext >&5
10364
10365	ac_cv_lib_svld_dlopen=no
10366fi
10367
10368rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10369      conftest$ac_exeext conftest.$ac_ext
10370LIBS=$ac_check_lib_save_LIBS
10371fi
10372{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10373echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10374if test $ac_cv_lib_svld_dlopen = yes; then
10375  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10376else
10377  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10378echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10379if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10380  echo $ECHO_N "(cached) $ECHO_C" >&6
10381else
10382  ac_check_lib_save_LIBS=$LIBS
10383LIBS="-ldld  $LIBS"
10384cat >conftest.$ac_ext <<_ACEOF
10385/* confdefs.h.  */
10386_ACEOF
10387cat confdefs.h >>conftest.$ac_ext
10388cat >>conftest.$ac_ext <<_ACEOF
10389/* end confdefs.h.  */
10390
10391/* Override any GCC internal prototype to avoid an error.
10392   Use char because int might match the return type of a GCC
10393   builtin and then its argument prototype would still apply.  */
10394#ifdef __cplusplus
10395extern "C"
10396#endif
10397char dld_link ();
10398int
10399main ()
10400{
10401return dld_link ();
10402  ;
10403  return 0;
10404}
10405_ACEOF
10406rm -f conftest.$ac_objext conftest$ac_exeext
10407if { (ac_try="$ac_link"
10408case "(($ac_try" in
10409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410  *) ac_try_echo=$ac_try;;
10411esac
10412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10413  (eval "$ac_link") 2>conftest.er1
10414  ac_status=$?
10415  grep -v '^ *+' conftest.er1 >conftest.err
10416  rm -f conftest.er1
10417  cat conftest.err >&5
10418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419  (exit $ac_status); } && {
10420	 test -z "$ac_c_werror_flag" ||
10421	 test ! -s conftest.err
10422       } && test -s conftest$ac_exeext &&
10423       $as_test_x conftest$ac_exeext; then
10424  ac_cv_lib_dld_dld_link=yes
10425else
10426  echo "$as_me: failed program was:" >&5
10427sed 's/^/| /' conftest.$ac_ext >&5
10428
10429	ac_cv_lib_dld_dld_link=no
10430fi
10431
10432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10433      conftest$ac_exeext conftest.$ac_ext
10434LIBS=$ac_check_lib_save_LIBS
10435fi
10436{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10437echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10438if test $ac_cv_lib_dld_dld_link = yes; then
10439  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10440fi
10441
10442
10443fi
10444
10445
10446fi
10447
10448
10449fi
10450
10451
10452fi
10453
10454
10455fi
10456
10457    ;;
10458  esac
10459
10460  if test "x$lt_cv_dlopen" != xno; then
10461    enable_dlopen=yes
10462  else
10463    enable_dlopen=no
10464  fi
10465
10466  case $lt_cv_dlopen in
10467  dlopen)
10468    save_CPPFLAGS="$CPPFLAGS"
10469    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10470
10471    save_LDFLAGS="$LDFLAGS"
10472    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10473
10474    save_LIBS="$LIBS"
10475    LIBS="$lt_cv_dlopen_libs $LIBS"
10476
10477    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10478echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10479if test "${lt_cv_dlopen_self+set}" = set; then
10480  echo $ECHO_N "(cached) $ECHO_C" >&6
10481else
10482  	  if test "$cross_compiling" = yes; then :
10483  lt_cv_dlopen_self=cross
10484else
10485  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10486  lt_status=$lt_dlunknown
10487  cat > conftest.$ac_ext <<EOF
10488#line 10488 "configure"
10489#include "confdefs.h"
10490
10491#if HAVE_DLFCN_H
10492#include <dlfcn.h>
10493#endif
10494
10495#include <stdio.h>
10496
10497#ifdef RTLD_GLOBAL
10498#  define LT_DLGLOBAL		RTLD_GLOBAL
10499#else
10500#  ifdef DL_GLOBAL
10501#    define LT_DLGLOBAL		DL_GLOBAL
10502#  else
10503#    define LT_DLGLOBAL		0
10504#  endif
10505#endif
10506
10507/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10508   find out it does not work in some platform. */
10509#ifndef LT_DLLAZY_OR_NOW
10510#  ifdef RTLD_LAZY
10511#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10512#  else
10513#    ifdef DL_LAZY
10514#      define LT_DLLAZY_OR_NOW		DL_LAZY
10515#    else
10516#      ifdef RTLD_NOW
10517#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10518#      else
10519#        ifdef DL_NOW
10520#          define LT_DLLAZY_OR_NOW	DL_NOW
10521#        else
10522#          define LT_DLLAZY_OR_NOW	0
10523#        endif
10524#      endif
10525#    endif
10526#  endif
10527#endif
10528
10529#ifdef __cplusplus
10530extern "C" void exit (int);
10531#endif
10532
10533void fnord() { int i=42;}
10534int main ()
10535{
10536  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10537  int status = $lt_dlunknown;
10538
10539  if (self)
10540    {
10541      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10542      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10543      /* dlclose (self); */
10544    }
10545  else
10546    puts (dlerror ());
10547
10548    exit (status);
10549}
10550EOF
10551  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10552  (eval $ac_link) 2>&5
10553  ac_status=$?
10554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10556    (./conftest; exit; ) >&5 2>/dev/null
10557    lt_status=$?
10558    case x$lt_status in
10559      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10560      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10561      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10562    esac
10563  else :
10564    # compilation failed
10565    lt_cv_dlopen_self=no
10566  fi
10567fi
10568rm -fr conftest*
10569
10570
10571fi
10572{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10573echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10574
10575    if test "x$lt_cv_dlopen_self" = xyes; then
10576      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10577      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10578echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10579if test "${lt_cv_dlopen_self_static+set}" = set; then
10580  echo $ECHO_N "(cached) $ECHO_C" >&6
10581else
10582  	  if test "$cross_compiling" = yes; then :
10583  lt_cv_dlopen_self_static=cross
10584else
10585  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10586  lt_status=$lt_dlunknown
10587  cat > conftest.$ac_ext <<EOF
10588#line 10588 "configure"
10589#include "confdefs.h"
10590
10591#if HAVE_DLFCN_H
10592#include <dlfcn.h>
10593#endif
10594
10595#include <stdio.h>
10596
10597#ifdef RTLD_GLOBAL
10598#  define LT_DLGLOBAL		RTLD_GLOBAL
10599#else
10600#  ifdef DL_GLOBAL
10601#    define LT_DLGLOBAL		DL_GLOBAL
10602#  else
10603#    define LT_DLGLOBAL		0
10604#  endif
10605#endif
10606
10607/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10608   find out it does not work in some platform. */
10609#ifndef LT_DLLAZY_OR_NOW
10610#  ifdef RTLD_LAZY
10611#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10612#  else
10613#    ifdef DL_LAZY
10614#      define LT_DLLAZY_OR_NOW		DL_LAZY
10615#    else
10616#      ifdef RTLD_NOW
10617#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10618#      else
10619#        ifdef DL_NOW
10620#          define LT_DLLAZY_OR_NOW	DL_NOW
10621#        else
10622#          define LT_DLLAZY_OR_NOW	0
10623#        endif
10624#      endif
10625#    endif
10626#  endif
10627#endif
10628
10629#ifdef __cplusplus
10630extern "C" void exit (int);
10631#endif
10632
10633void fnord() { int i=42;}
10634int main ()
10635{
10636  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10637  int status = $lt_dlunknown;
10638
10639  if (self)
10640    {
10641      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10642      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10643      /* dlclose (self); */
10644    }
10645  else
10646    puts (dlerror ());
10647
10648    exit (status);
10649}
10650EOF
10651  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10652  (eval $ac_link) 2>&5
10653  ac_status=$?
10654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10656    (./conftest; exit; ) >&5 2>/dev/null
10657    lt_status=$?
10658    case x$lt_status in
10659      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10660      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10661      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10662    esac
10663  else :
10664    # compilation failed
10665    lt_cv_dlopen_self_static=no
10666  fi
10667fi
10668rm -fr conftest*
10669
10670
10671fi
10672{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10673echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10674    fi
10675
10676    CPPFLAGS="$save_CPPFLAGS"
10677    LDFLAGS="$save_LDFLAGS"
10678    LIBS="$save_LIBS"
10679    ;;
10680  esac
10681
10682  case $lt_cv_dlopen_self in
10683  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10684  *) enable_dlopen_self=unknown ;;
10685  esac
10686
10687  case $lt_cv_dlopen_self_static in
10688  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10689  *) enable_dlopen_self_static=unknown ;;
10690  esac
10691fi
10692
10693
10694# Report which library types will actually be built
10695{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10696echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10697{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10698echo "${ECHO_T}$can_build_shared" >&6; }
10699
10700{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10701echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10702test "$can_build_shared" = "no" && enable_shared=no
10703
10704# On AIX, shared libraries and static libraries use the same namespace, and
10705# are all built from PIC.
10706case $host_os in
10707aix3*)
10708  test "$enable_shared" = yes && enable_static=no
10709  if test -n "$RANLIB"; then
10710    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10711    postinstall_cmds='$RANLIB $lib'
10712  fi
10713  ;;
10714
10715aix[4-9]*)
10716  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10717    test "$enable_shared" = yes && enable_static=no
10718  fi
10719    ;;
10720esac
10721{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10722echo "${ECHO_T}$enable_shared" >&6; }
10723
10724{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10725echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10726# Make sure either enable_shared or enable_static is yes.
10727test "$enable_shared" = yes || enable_static=yes
10728{ echo "$as_me:$LINENO: result: $enable_static" >&5
10729echo "${ECHO_T}$enable_static" >&6; }
10730
10731# The else clause should only fire when bootstrapping the
10732# libtool distribution, otherwise you forgot to ship ltmain.sh
10733# with your package, and you will get complaints that there are
10734# no rules to generate ltmain.sh.
10735if test -f "$ltmain"; then
10736  # See if we are running on zsh, and set the options which allow our commands through
10737  # without removal of \ escapes.
10738  if test -n "${ZSH_VERSION+set}" ; then
10739    setopt NO_GLOB_SUBST
10740  fi
10741  # Now quote all the things that may contain metacharacters while being
10742  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10743  # variables and quote the copies for generation of the libtool script.
10744  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10745    SED SHELL STRIP \
10746    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10747    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10748    deplibs_check_method reload_flag reload_cmds need_locks \
10749    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10750    lt_cv_sys_global_symbol_to_c_name_address \
10751    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10752    old_postinstall_cmds old_postuninstall_cmds \
10753    compiler \
10754    CC \
10755    LD \
10756    lt_prog_compiler_wl \
10757    lt_prog_compiler_pic \
10758    lt_prog_compiler_static \
10759    lt_prog_compiler_no_builtin_flag \
10760    export_dynamic_flag_spec \
10761    thread_safe_flag_spec \
10762    whole_archive_flag_spec \
10763    enable_shared_with_static_runtimes \
10764    old_archive_cmds \
10765    old_archive_from_new_cmds \
10766    predep_objects \
10767    postdep_objects \
10768    predeps \
10769    postdeps \
10770    compiler_lib_search_path \
10771    compiler_lib_search_dirs \
10772    archive_cmds \
10773    archive_expsym_cmds \
10774    postinstall_cmds \
10775    postuninstall_cmds \
10776    old_archive_from_expsyms_cmds \
10777    allow_undefined_flag \
10778    no_undefined_flag \
10779    export_symbols_cmds \
10780    hardcode_libdir_flag_spec \
10781    hardcode_libdir_flag_spec_ld \
10782    hardcode_libdir_separator \
10783    hardcode_automatic \
10784    module_cmds \
10785    module_expsym_cmds \
10786    lt_cv_prog_compiler_c_o \
10787    fix_srcfile_path \
10788    exclude_expsyms \
10789    include_expsyms; do
10790
10791    case $var in
10792    old_archive_cmds | \
10793    old_archive_from_new_cmds | \
10794    archive_cmds | \
10795    archive_expsym_cmds | \
10796    module_cmds | \
10797    module_expsym_cmds | \
10798    old_archive_from_expsyms_cmds | \
10799    export_symbols_cmds | \
10800    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10801    postinstall_cmds | postuninstall_cmds | \
10802    old_postinstall_cmds | old_postuninstall_cmds | \
10803    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10804      # Double-quote double-evaled strings.
10805      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10806      ;;
10807    *)
10808      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10809      ;;
10810    esac
10811  done
10812
10813  case $lt_echo in
10814  *'\$0 --fallback-echo"')
10815    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10816    ;;
10817  esac
10818
10819cfgfile="${ofile}T"
10820  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10821  $rm -f "$cfgfile"
10822  { echo "$as_me:$LINENO: creating $ofile" >&5
10823echo "$as_me: creating $ofile" >&6;}
10824
10825  cat <<__EOF__ >> "$cfgfile"
10826#! $SHELL
10827
10828# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10829# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10830# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10831#
10832# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10833# Free Software Foundation, Inc.
10834#
10835# This file is part of GNU Libtool:
10836# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10837#
10838# This program is free software; you can redistribute it and/or modify
10839# it under the terms of the GNU General Public License as published by
10840# the Free Software Foundation; either version 2 of the License, or
10841# (at your option) any later version.
10842#
10843# This program is distributed in the hope that it will be useful, but
10844# WITHOUT ANY WARRANTY; without even the implied warranty of
10845# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10846# General Public License for more details.
10847#
10848# You should have received a copy of the GNU General Public License
10849# along with this program; if not, write to the Free Software
10850# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10851#
10852# As a special exception to the GNU General Public License, if you
10853# distribute this file as part of a program that contains a
10854# configuration script generated by Autoconf, you may include it under
10855# the same distribution terms that you use for the rest of that program.
10856
10857# A sed program that does not truncate output.
10858SED=$lt_SED
10859
10860# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10861Xsed="$SED -e 1s/^X//"
10862
10863# The HP-UX ksh and POSIX shell print the target directory to stdout
10864# if CDPATH is set.
10865(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10866
10867# The names of the tagged configurations supported by this script.
10868available_tags=
10869
10870# ### BEGIN LIBTOOL CONFIG
10871
10872# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10873
10874# Shell to use when invoking shell scripts.
10875SHELL=$lt_SHELL
10876
10877# Whether or not to build shared libraries.
10878build_libtool_libs=$enable_shared
10879
10880# Whether or not to build static libraries.
10881build_old_libs=$enable_static
10882
10883# Whether or not to add -lc for building shared libraries.
10884build_libtool_need_lc=$archive_cmds_need_lc
10885
10886# Whether or not to disallow shared libs when runtime libs are static
10887allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10888
10889# Whether or not to optimize for fast installation.
10890fast_install=$enable_fast_install
10891
10892# The host system.
10893host_alias=$host_alias
10894host=$host
10895host_os=$host_os
10896
10897# The build system.
10898build_alias=$build_alias
10899build=$build
10900build_os=$build_os
10901
10902# An echo program that does not interpret backslashes.
10903echo=$lt_echo
10904
10905# The archiver.
10906AR=$lt_AR
10907AR_FLAGS=$lt_AR_FLAGS
10908
10909# A C compiler.
10910LTCC=$lt_LTCC
10911
10912# LTCC compiler flags.
10913LTCFLAGS=$lt_LTCFLAGS
10914
10915# A language-specific compiler.
10916CC=$lt_compiler
10917
10918# Is the compiler the GNU C compiler?
10919with_gcc=$GCC
10920
10921# An ERE matcher.
10922EGREP=$lt_EGREP
10923
10924# The linker used to build libraries.
10925LD=$lt_LD
10926
10927# Whether we need hard or soft links.
10928LN_S=$lt_LN_S
10929
10930# A BSD-compatible nm program.
10931NM=$lt_NM
10932
10933# A symbol stripping program
10934STRIP=$lt_STRIP
10935
10936# Used to examine libraries when file_magic_cmd begins "file"
10937MAGIC_CMD=$MAGIC_CMD
10938
10939# Used on cygwin: DLL creation program.
10940DLLTOOL="$DLLTOOL"
10941
10942# Used on cygwin: object dumper.
10943OBJDUMP="$OBJDUMP"
10944
10945# Used on cygwin: assembler.
10946AS="$AS"
10947
10948# The name of the directory that contains temporary libtool files.
10949objdir=$objdir
10950
10951# How to create reloadable object files.
10952reload_flag=$lt_reload_flag
10953reload_cmds=$lt_reload_cmds
10954
10955# How to pass a linker flag through the compiler.
10956wl=$lt_lt_prog_compiler_wl
10957
10958# Object file suffix (normally "o").
10959objext="$ac_objext"
10960
10961# Old archive suffix (normally "a").
10962libext="$libext"
10963
10964# Shared library suffix (normally ".so").
10965shrext_cmds='$shrext_cmds'
10966
10967# Executable file suffix (normally "").
10968exeext="$exeext"
10969
10970# Additional compiler flags for building library objects.
10971pic_flag=$lt_lt_prog_compiler_pic
10972pic_mode=$pic_mode
10973
10974# What is the maximum length of a command?
10975max_cmd_len=$lt_cv_sys_max_cmd_len
10976
10977# Does compiler simultaneously support -c and -o options?
10978compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10979
10980# Must we lock files when doing compilation?
10981need_locks=$lt_need_locks
10982
10983# Do we need the lib prefix for modules?
10984need_lib_prefix=$need_lib_prefix
10985
10986# Do we need a version for libraries?
10987need_version=$need_version
10988
10989# Whether dlopen is supported.
10990dlopen_support=$enable_dlopen
10991
10992# Whether dlopen of programs is supported.
10993dlopen_self=$enable_dlopen_self
10994
10995# Whether dlopen of statically linked programs is supported.
10996dlopen_self_static=$enable_dlopen_self_static
10997
10998# Compiler flag to prevent dynamic linking.
10999link_static_flag=$lt_lt_prog_compiler_static
11000
11001# Compiler flag to turn off builtin functions.
11002no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11003
11004# Compiler flag to allow reflexive dlopens.
11005export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11006
11007# Compiler flag to generate shared objects directly from archives.
11008whole_archive_flag_spec=$lt_whole_archive_flag_spec
11009
11010# Compiler flag to generate thread-safe objects.
11011thread_safe_flag_spec=$lt_thread_safe_flag_spec
11012
11013# Library versioning type.
11014version_type=$version_type
11015
11016# Format of library name prefix.
11017libname_spec=$lt_libname_spec
11018
11019# List of archive names.  First name is the real one, the rest are links.
11020# The last name is the one that the linker finds with -lNAME.
11021library_names_spec=$lt_library_names_spec
11022
11023# The coded name of the library, if different from the real name.
11024soname_spec=$lt_soname_spec
11025
11026# Commands used to build and install an old-style archive.
11027RANLIB=$lt_RANLIB
11028old_archive_cmds=$lt_old_archive_cmds
11029old_postinstall_cmds=$lt_old_postinstall_cmds
11030old_postuninstall_cmds=$lt_old_postuninstall_cmds
11031
11032# Create an old-style archive from a shared archive.
11033old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11034
11035# Create a temporary old-style archive to link instead of a shared archive.
11036old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11037
11038# Commands used to build and install a shared archive.
11039archive_cmds=$lt_archive_cmds
11040archive_expsym_cmds=$lt_archive_expsym_cmds
11041postinstall_cmds=$lt_postinstall_cmds
11042postuninstall_cmds=$lt_postuninstall_cmds
11043
11044# Commands used to build a loadable module (assumed same as above if empty)
11045module_cmds=$lt_module_cmds
11046module_expsym_cmds=$lt_module_expsym_cmds
11047
11048# Commands to strip libraries.
11049old_striplib=$lt_old_striplib
11050striplib=$lt_striplib
11051
11052# Dependencies to place before the objects being linked to create a
11053# shared library.
11054predep_objects=$lt_predep_objects
11055
11056# Dependencies to place after the objects being linked to create a
11057# shared library.
11058postdep_objects=$lt_postdep_objects
11059
11060# Dependencies to place before the objects being linked to create a
11061# shared library.
11062predeps=$lt_predeps
11063
11064# Dependencies to place after the objects being linked to create a
11065# shared library.
11066postdeps=$lt_postdeps
11067
11068# The directories searched by this compiler when creating a shared
11069# library
11070compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11071
11072# The library search path used internally by the compiler when linking
11073# a shared library.
11074compiler_lib_search_path=$lt_compiler_lib_search_path
11075
11076# Method to check whether dependent libraries are shared objects.
11077deplibs_check_method=$lt_deplibs_check_method
11078
11079# Command to use when deplibs_check_method == file_magic.
11080file_magic_cmd=$lt_file_magic_cmd
11081
11082# Flag that allows shared libraries with undefined symbols to be built.
11083allow_undefined_flag=$lt_allow_undefined_flag
11084
11085# Flag that forces no undefined symbols.
11086no_undefined_flag=$lt_no_undefined_flag
11087
11088# Commands used to finish a libtool library installation in a directory.
11089finish_cmds=$lt_finish_cmds
11090
11091# Same as above, but a single script fragment to be evaled but not shown.
11092finish_eval=$lt_finish_eval
11093
11094# Take the output of nm and produce a listing of raw symbols and C names.
11095global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11096
11097# Transform the output of nm in a proper C declaration
11098global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11099
11100# Transform the output of nm in a C name address pair
11101global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11102
11103# This is the shared library runtime path variable.
11104runpath_var=$runpath_var
11105
11106# This is the shared library path variable.
11107shlibpath_var=$shlibpath_var
11108
11109# Is shlibpath searched before the hard-coded library search path?
11110shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11111
11112# How to hardcode a shared library path into an executable.
11113hardcode_action=$hardcode_action
11114
11115# Whether we should hardcode library paths into libraries.
11116hardcode_into_libs=$hardcode_into_libs
11117
11118# Flag to hardcode \$libdir into a binary during linking.
11119# This must work even if \$libdir does not exist.
11120hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11121
11122# If ld is used when linking, flag to hardcode \$libdir into
11123# a binary during linking. This must work even if \$libdir does
11124# not exist.
11125hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11126
11127# Whether we need a single -rpath flag with a separated argument.
11128hardcode_libdir_separator=$lt_hardcode_libdir_separator
11129
11130# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11131# resulting binary.
11132hardcode_direct=$hardcode_direct
11133
11134# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11135# resulting binary.
11136hardcode_minus_L=$hardcode_minus_L
11137
11138# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11139# the resulting binary.
11140hardcode_shlibpath_var=$hardcode_shlibpath_var
11141
11142# Set to yes if building a shared library automatically hardcodes DIR into the library
11143# and all subsequent libraries and executables linked against it.
11144hardcode_automatic=$hardcode_automatic
11145
11146# Variables whose values should be saved in libtool wrapper scripts and
11147# restored at relink time.
11148variables_saved_for_relink="$variables_saved_for_relink"
11149
11150# Whether libtool must link a program against all its dependency libraries.
11151link_all_deplibs=$link_all_deplibs
11152
11153# Compile-time system search path for libraries
11154sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11155
11156# Run-time system search path for libraries
11157sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11158
11159# Fix the shell variable \$srcfile for the compiler.
11160fix_srcfile_path=$lt_fix_srcfile_path
11161
11162# Set to yes if exported symbols are required.
11163always_export_symbols=$always_export_symbols
11164
11165# The commands to list exported symbols.
11166export_symbols_cmds=$lt_export_symbols_cmds
11167
11168# The commands to extract the exported symbol list from a shared archive.
11169extract_expsyms_cmds=$lt_extract_expsyms_cmds
11170
11171# Symbols that should not be listed in the preloaded symbols.
11172exclude_expsyms=$lt_exclude_expsyms
11173
11174# Symbols that must always be exported.
11175include_expsyms=$lt_include_expsyms
11176
11177# ### END LIBTOOL CONFIG
11178
11179__EOF__
11180
11181
11182  case $host_os in
11183  aix3*)
11184    cat <<\EOF >> "$cfgfile"
11185
11186# AIX sometimes has problems with the GCC collect2 program.  For some
11187# reason, if we set the COLLECT_NAMES environment variable, the problems
11188# vanish in a puff of smoke.
11189if test "X${COLLECT_NAMES+set}" != Xset; then
11190  COLLECT_NAMES=
11191  export COLLECT_NAMES
11192fi
11193EOF
11194    ;;
11195  esac
11196
11197  # We use sed instead of cat because bash on DJGPP gets confused if
11198  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11199  # text mode, it properly converts lines to CR/LF.  This bash problem
11200  # is reportedly fixed, but why not run on old versions too?
11201  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11202
11203  mv -f "$cfgfile" "$ofile" || \
11204    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11205  chmod +x "$ofile"
11206
11207else
11208  # If there is no Makefile yet, we rely on a make rule to execute
11209  # `config.status --recheck' to rerun these tests and create the
11210  # libtool script then.
11211  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11212  if test -f "$ltmain_in"; then
11213    test -f Makefile && make "$ltmain"
11214  fi
11215fi
11216
11217
11218ac_ext=c
11219ac_cpp='$CPP $CPPFLAGS'
11220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11222ac_compiler_gnu=$ac_cv_c_compiler_gnu
11223
11224CC="$lt_save_CC"
11225
11226
11227# Check whether --with-tags was given.
11228if test "${with_tags+set}" = set; then
11229  withval=$with_tags; tagnames="$withval"
11230fi
11231
11232
11233if test -f "$ltmain" && test -n "$tagnames"; then
11234  if test ! -f "${ofile}"; then
11235    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11236echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11237  fi
11238
11239  if test -z "$LTCC"; then
11240    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11241    if test -z "$LTCC"; then
11242      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11243echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11244    else
11245      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11246echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11247    fi
11248  fi
11249  if test -z "$LTCFLAGS"; then
11250    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11251  fi
11252
11253  # Extract list of available tagged configurations in $ofile.
11254  # Note that this assumes the entire list is on one line.
11255  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11256
11257  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11258  for tagname in $tagnames; do
11259    IFS="$lt_save_ifs"
11260    # Check whether tagname contains only valid characters
11261    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11262    "") ;;
11263    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11264echo "$as_me: error: invalid tag name: $tagname" >&2;}
11265   { (exit 1); exit 1; }; }
11266	;;
11267    esac
11268
11269    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11270    then
11271      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11272echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11273   { (exit 1); exit 1; }; }
11274    fi
11275
11276    # Update the list of available tags.
11277    if test -n "$tagname"; then
11278      echo appending configuration tag \"$tagname\" to $ofile
11279
11280      case $tagname in
11281      CXX)
11282	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11283	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11284	    (test "X$CXX" != "Xg++"))) ; then
11285	  ac_ext=cpp
11286ac_cpp='$CXXCPP $CPPFLAGS'
11287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11290
11291
11292
11293
11294archive_cmds_need_lc_CXX=no
11295allow_undefined_flag_CXX=
11296always_export_symbols_CXX=no
11297archive_expsym_cmds_CXX=
11298export_dynamic_flag_spec_CXX=
11299hardcode_direct_CXX=no
11300hardcode_libdir_flag_spec_CXX=
11301hardcode_libdir_flag_spec_ld_CXX=
11302hardcode_libdir_separator_CXX=
11303hardcode_minus_L_CXX=no
11304hardcode_shlibpath_var_CXX=unsupported
11305hardcode_automatic_CXX=no
11306module_cmds_CXX=
11307module_expsym_cmds_CXX=
11308link_all_deplibs_CXX=unknown
11309old_archive_cmds_CXX=$old_archive_cmds
11310no_undefined_flag_CXX=
11311whole_archive_flag_spec_CXX=
11312enable_shared_with_static_runtimes_CXX=no
11313
11314# Dependencies to place before and after the object being linked:
11315predep_objects_CXX=
11316postdep_objects_CXX=
11317predeps_CXX=
11318postdeps_CXX=
11319compiler_lib_search_path_CXX=
11320compiler_lib_search_dirs_CXX=
11321
11322# Source file extension for C++ test sources.
11323ac_ext=cpp
11324
11325# Object file extension for compiled C++ test sources.
11326objext=o
11327objext_CXX=$objext
11328
11329# Code to be used in simple compile tests
11330lt_simple_compile_test_code="int some_variable = 0;"
11331
11332# Code to be used in simple link tests
11333lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11334
11335# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11336
11337# If no C compiler was specified, use CC.
11338LTCC=${LTCC-"$CC"}
11339
11340# If no C compiler flags were specified, use CFLAGS.
11341LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11342
11343# Allow CC to be a program name with arguments.
11344compiler=$CC
11345
11346
11347# save warnings/boilerplate of simple test code
11348ac_outfile=conftest.$ac_objext
11349echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11350eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11351_lt_compiler_boilerplate=`cat conftest.err`
11352$rm conftest*
11353
11354ac_outfile=conftest.$ac_objext
11355echo "$lt_simple_link_test_code" >conftest.$ac_ext
11356eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11357_lt_linker_boilerplate=`cat conftest.err`
11358$rm -r conftest*
11359
11360
11361# Allow CC to be a program name with arguments.
11362lt_save_CC=$CC
11363lt_save_LD=$LD
11364lt_save_GCC=$GCC
11365GCC=$GXX
11366lt_save_with_gnu_ld=$with_gnu_ld
11367lt_save_path_LD=$lt_cv_path_LD
11368if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11369  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11370else
11371  $as_unset lt_cv_prog_gnu_ld
11372fi
11373if test -n "${lt_cv_path_LDCXX+set}"; then
11374  lt_cv_path_LD=$lt_cv_path_LDCXX
11375else
11376  $as_unset lt_cv_path_LD
11377fi
11378test -z "${LDCXX+set}" || LD=$LDCXX
11379CC=${CXX-"c++"}
11380compiler=$CC
11381compiler_CXX=$CC
11382for cc_temp in $compiler""; do
11383  case $cc_temp in
11384    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11385    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11386    \-*) ;;
11387    *) break;;
11388  esac
11389done
11390cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11391
11392
11393# We don't want -fno-exception wen compiling C++ code, so set the
11394# no_builtin_flag separately
11395if test "$GXX" = yes; then
11396  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11397else
11398  lt_prog_compiler_no_builtin_flag_CXX=
11399fi
11400
11401if test "$GXX" = yes; then
11402  # Set up default GNU C++ configuration
11403
11404
11405# Check whether --with-gnu-ld was given.
11406if test "${with_gnu_ld+set}" = set; then
11407  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11408else
11409  with_gnu_ld=no
11410fi
11411
11412ac_prog=ld
11413if test "$GCC" = yes; then
11414  # Check if gcc -print-prog-name=ld gives a path.
11415  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11416echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11417  case $host in
11418  *-*-mingw*)
11419    # gcc leaves a trailing carriage return which upsets mingw
11420    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11421  *)
11422    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11423  esac
11424  case $ac_prog in
11425    # Accept absolute paths.
11426    [\\/]* | ?:[\\/]*)
11427      re_direlt='/[^/][^/]*/\.\./'
11428      # Canonicalize the pathname of ld
11429      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11430      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11431	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11432      done
11433      test -z "$LD" && LD="$ac_prog"
11434      ;;
11435  "")
11436    # If it fails, then pretend we aren't using GCC.
11437    ac_prog=ld
11438    ;;
11439  *)
11440    # If it is relative, then search for the first ld in PATH.
11441    with_gnu_ld=unknown
11442    ;;
11443  esac
11444elif test "$with_gnu_ld" = yes; then
11445  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11446echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11447else
11448  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11449echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11450fi
11451if test "${lt_cv_path_LD+set}" = set; then
11452  echo $ECHO_N "(cached) $ECHO_C" >&6
11453else
11454  if test -z "$LD"; then
11455  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11456  for ac_dir in $PATH; do
11457    IFS="$lt_save_ifs"
11458    test -z "$ac_dir" && ac_dir=.
11459    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11460      lt_cv_path_LD="$ac_dir/$ac_prog"
11461      # Check to see if the program is GNU ld.  I'd rather use --version,
11462      # but apparently some variants of GNU ld only accept -v.
11463      # Break only if it was the GNU/non-GNU ld that we prefer.
11464      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11465      *GNU* | *'with BFD'*)
11466	test "$with_gnu_ld" != no && break
11467	;;
11468      *)
11469	test "$with_gnu_ld" != yes && break
11470	;;
11471      esac
11472    fi
11473  done
11474  IFS="$lt_save_ifs"
11475else
11476  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11477fi
11478fi
11479
11480LD="$lt_cv_path_LD"
11481if test -n "$LD"; then
11482  { echo "$as_me:$LINENO: result: $LD" >&5
11483echo "${ECHO_T}$LD" >&6; }
11484else
11485  { echo "$as_me:$LINENO: result: no" >&5
11486echo "${ECHO_T}no" >&6; }
11487fi
11488test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11489echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11490   { (exit 1); exit 1; }; }
11491{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11492echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11493if test "${lt_cv_prog_gnu_ld+set}" = set; then
11494  echo $ECHO_N "(cached) $ECHO_C" >&6
11495else
11496  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11497case `$LD -v 2>&1 </dev/null` in
11498*GNU* | *'with BFD'*)
11499  lt_cv_prog_gnu_ld=yes
11500  ;;
11501*)
11502  lt_cv_prog_gnu_ld=no
11503  ;;
11504esac
11505fi
11506{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11507echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11508with_gnu_ld=$lt_cv_prog_gnu_ld
11509
11510
11511
11512  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11513  # archiving commands below assume that GNU ld is being used.
11514  if test "$with_gnu_ld" = yes; then
11515    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11516    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'
11517
11518    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11519    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11520
11521    # If archive_cmds runs LD, not CC, wlarc should be empty
11522    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11523    #     investigate it a little bit more. (MM)
11524    wlarc='${wl}'
11525
11526    # ancient GNU ld didn't support --whole-archive et. al.
11527    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11528	grep 'no-whole-archive' > /dev/null; then
11529      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11530    else
11531      whole_archive_flag_spec_CXX=
11532    fi
11533  else
11534    with_gnu_ld=no
11535    wlarc=
11536
11537    # A generic and very simple default shared library creation
11538    # command for GNU C++ for the case where it uses the native
11539    # linker, instead of GNU ld.  If possible, this setting should
11540    # overridden to take advantage of the native linker features on
11541    # the platform it is being used on.
11542    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11543  fi
11544
11545  # Commands to make compiler produce verbose output that lists
11546  # what "hidden" libraries, object files and flags are used when
11547  # linking a shared library.
11548  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11549
11550else
11551  GXX=no
11552  with_gnu_ld=no
11553  wlarc=
11554fi
11555
11556# PORTME: fill in a description of your system's C++ link characteristics
11557{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11558echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11559ld_shlibs_CXX=yes
11560case $host_os in
11561  aix3*)
11562    # FIXME: insert proper C++ library support
11563    ld_shlibs_CXX=no
11564    ;;
11565  aix[4-9]*)
11566    if test "$host_cpu" = ia64; then
11567      # On IA64, the linker does run time linking by default, so we don't
11568      # have to do anything special.
11569      aix_use_runtimelinking=no
11570      exp_sym_flag='-Bexport'
11571      no_entry_flag=""
11572    else
11573      aix_use_runtimelinking=no
11574
11575      # Test if we are trying to use run time linking or normal
11576      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11577      # need to do runtime linking.
11578      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11579	for ld_flag in $LDFLAGS; do
11580	  case $ld_flag in
11581	  *-brtl*)
11582	    aix_use_runtimelinking=yes
11583	    break
11584	    ;;
11585	  esac
11586	done
11587	;;
11588      esac
11589
11590      exp_sym_flag='-bexport'
11591      no_entry_flag='-bnoentry'
11592    fi
11593
11594    # When large executables or shared objects are built, AIX ld can
11595    # have problems creating the table of contents.  If linking a library
11596    # or program results in "error TOC overflow" add -mminimal-toc to
11597    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11598    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11599
11600    archive_cmds_CXX=''
11601    hardcode_direct_CXX=yes
11602    hardcode_libdir_separator_CXX=':'
11603    link_all_deplibs_CXX=yes
11604
11605    if test "$GXX" = yes; then
11606      case $host_os in aix4.[012]|aix4.[012].*)
11607      # We only want to do this on AIX 4.2 and lower, the check
11608      # below for broken collect2 doesn't work under 4.3+
11609	collect2name=`${CC} -print-prog-name=collect2`
11610	if test -f "$collect2name" && \
11611	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11612	then
11613	  # We have reworked collect2
11614	  :
11615	else
11616	  # We have old collect2
11617	  hardcode_direct_CXX=unsupported
11618	  # It fails to find uninstalled libraries when the uninstalled
11619	  # path is not listed in the libpath.  Setting hardcode_minus_L
11620	  # to unsupported forces relinking
11621	  hardcode_minus_L_CXX=yes
11622	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11623	  hardcode_libdir_separator_CXX=
11624	fi
11625	;;
11626      esac
11627      shared_flag='-shared'
11628      if test "$aix_use_runtimelinking" = yes; then
11629	shared_flag="$shared_flag "'${wl}-G'
11630      fi
11631    else
11632      # not using gcc
11633      if test "$host_cpu" = ia64; then
11634	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11635	# chokes on -Wl,-G. The following line is correct:
11636	shared_flag='-G'
11637      else
11638	if test "$aix_use_runtimelinking" = yes; then
11639	  shared_flag='${wl}-G'
11640	else
11641	  shared_flag='${wl}-bM:SRE'
11642	fi
11643      fi
11644    fi
11645
11646    # It seems that -bexpall does not export symbols beginning with
11647    # underscore (_), so it is better to generate a list of symbols to export.
11648    always_export_symbols_CXX=yes
11649    if test "$aix_use_runtimelinking" = yes; then
11650      # Warning - without using the other runtime loading flags (-brtl),
11651      # -berok will link without error, but may produce a broken library.
11652      allow_undefined_flag_CXX='-berok'
11653      # Determine the default libpath from the value encoded in an empty executable.
11654      cat >conftest.$ac_ext <<_ACEOF
11655/* confdefs.h.  */
11656_ACEOF
11657cat confdefs.h >>conftest.$ac_ext
11658cat >>conftest.$ac_ext <<_ACEOF
11659/* end confdefs.h.  */
11660
11661int
11662main ()
11663{
11664
11665  ;
11666  return 0;
11667}
11668_ACEOF
11669rm -f conftest.$ac_objext conftest$ac_exeext
11670if { (ac_try="$ac_link"
11671case "(($ac_try" in
11672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673  *) ac_try_echo=$ac_try;;
11674esac
11675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676  (eval "$ac_link") 2>conftest.er1
11677  ac_status=$?
11678  grep -v '^ *+' conftest.er1 >conftest.err
11679  rm -f conftest.er1
11680  cat conftest.err >&5
11681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682  (exit $ac_status); } && {
11683	 test -z "$ac_cxx_werror_flag" ||
11684	 test ! -s conftest.err
11685       } && test -s conftest$ac_exeext &&
11686       $as_test_x conftest$ac_exeext; then
11687
11688lt_aix_libpath_sed='
11689    /Import File Strings/,/^$/ {
11690	/^0/ {
11691	    s/^0  *\(.*\)$/\1/
11692	    p
11693	}
11694    }'
11695aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11696# Check for a 64-bit object if we didn't find anything.
11697if test -z "$aix_libpath"; then
11698  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11699fi
11700else
11701  echo "$as_me: failed program was:" >&5
11702sed 's/^/| /' conftest.$ac_ext >&5
11703
11704
11705fi
11706
11707rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11708      conftest$ac_exeext conftest.$ac_ext
11709if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11710
11711      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11712
11713      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"
11714     else
11715      if test "$host_cpu" = ia64; then
11716	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11717	allow_undefined_flag_CXX="-z nodefs"
11718	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"
11719      else
11720	# Determine the default libpath from the value encoded in an empty executable.
11721	cat >conftest.$ac_ext <<_ACEOF
11722/* confdefs.h.  */
11723_ACEOF
11724cat confdefs.h >>conftest.$ac_ext
11725cat >>conftest.$ac_ext <<_ACEOF
11726/* end confdefs.h.  */
11727
11728int
11729main ()
11730{
11731
11732  ;
11733  return 0;
11734}
11735_ACEOF
11736rm -f conftest.$ac_objext conftest$ac_exeext
11737if { (ac_try="$ac_link"
11738case "(($ac_try" in
11739  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740  *) ac_try_echo=$ac_try;;
11741esac
11742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11743  (eval "$ac_link") 2>conftest.er1
11744  ac_status=$?
11745  grep -v '^ *+' conftest.er1 >conftest.err
11746  rm -f conftest.er1
11747  cat conftest.err >&5
11748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749  (exit $ac_status); } && {
11750	 test -z "$ac_cxx_werror_flag" ||
11751	 test ! -s conftest.err
11752       } && test -s conftest$ac_exeext &&
11753       $as_test_x conftest$ac_exeext; then
11754
11755lt_aix_libpath_sed='
11756    /Import File Strings/,/^$/ {
11757	/^0/ {
11758	    s/^0  *\(.*\)$/\1/
11759	    p
11760	}
11761    }'
11762aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11763# Check for a 64-bit object if we didn't find anything.
11764if test -z "$aix_libpath"; then
11765  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11766fi
11767else
11768  echo "$as_me: failed program was:" >&5
11769sed 's/^/| /' conftest.$ac_ext >&5
11770
11771
11772fi
11773
11774rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11775      conftest$ac_exeext conftest.$ac_ext
11776if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11777
11778	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11779	# Warning - without using the other run time loading flags,
11780	# -berok will link without error, but may produce a broken library.
11781	no_undefined_flag_CXX=' ${wl}-bernotok'
11782	allow_undefined_flag_CXX=' ${wl}-berok'
11783	# Exported symbols can be pulled into shared objects from archives
11784	whole_archive_flag_spec_CXX='$convenience'
11785	archive_cmds_need_lc_CXX=yes
11786	# This is similar to how AIX traditionally builds its shared libraries.
11787	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'
11788      fi
11789    fi
11790    ;;
11791
11792  beos*)
11793    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11794      allow_undefined_flag_CXX=unsupported
11795      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11796      # support --undefined.  This deserves some investigation.  FIXME
11797      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11798    else
11799      ld_shlibs_CXX=no
11800    fi
11801    ;;
11802
11803  chorus*)
11804    case $cc_basename in
11805      *)
11806	# FIXME: insert proper C++ library support
11807	ld_shlibs_CXX=no
11808	;;
11809    esac
11810    ;;
11811
11812  cygwin* | mingw* | pw32*)
11813    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11814    # as there is no search path for DLLs.
11815    hardcode_libdir_flag_spec_CXX='-L$libdir'
11816    allow_undefined_flag_CXX=unsupported
11817    always_export_symbols_CXX=no
11818    enable_shared_with_static_runtimes_CXX=yes
11819
11820    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11821      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'
11822      # If the export-symbols file already is a .def file (1st line
11823      # is EXPORTS), use it as is; otherwise, prepend...
11824      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11825	cp $export_symbols $output_objdir/$soname.def;
11826      else
11827	echo EXPORTS > $output_objdir/$soname.def;
11828	cat $export_symbols >> $output_objdir/$soname.def;
11829      fi~
11830      $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'
11831    else
11832      ld_shlibs_CXX=no
11833    fi
11834  ;;
11835      darwin* | rhapsody*)
11836      archive_cmds_need_lc_CXX=no
11837      hardcode_direct_CXX=no
11838      hardcode_automatic_CXX=yes
11839      hardcode_shlibpath_var_CXX=unsupported
11840      whole_archive_flag_spec_CXX=''
11841      link_all_deplibs_CXX=yes
11842      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11843      if test "$GXX" = yes ; then
11844      output_verbose_link_cmd='echo'
11845      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}"
11846      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11847      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}"
11848      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}"
11849      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11850        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}"
11851        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}"
11852      fi
11853      else
11854      case $cc_basename in
11855        xlc*)
11856         output_verbose_link_cmd='echo'
11857          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'
11858          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11859          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11860          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}'
11861          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}'
11862          ;;
11863       *)
11864         ld_shlibs_CXX=no
11865          ;;
11866      esac
11867      fi
11868        ;;
11869
11870  dgux*)
11871    case $cc_basename in
11872      ec++*)
11873	# FIXME: insert proper C++ library support
11874	ld_shlibs_CXX=no
11875	;;
11876      ghcx*)
11877	# Green Hills C++ Compiler
11878	# FIXME: insert proper C++ library support
11879	ld_shlibs_CXX=no
11880	;;
11881      *)
11882	# FIXME: insert proper C++ library support
11883	ld_shlibs_CXX=no
11884	;;
11885    esac
11886    ;;
11887  freebsd[12]*)
11888    # C++ shared libraries reported to be fairly broken before switch to ELF
11889    ld_shlibs_CXX=no
11890    ;;
11891  freebsd-elf*)
11892    archive_cmds_need_lc_CXX=no
11893    ;;
11894  freebsd* | dragonfly*)
11895    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11896    # conventions
11897    ld_shlibs_CXX=yes
11898    ;;
11899  gnu*)
11900    ;;
11901  hpux9*)
11902    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11903    hardcode_libdir_separator_CXX=:
11904    export_dynamic_flag_spec_CXX='${wl}-E'
11905    hardcode_direct_CXX=yes
11906    hardcode_minus_L_CXX=yes # Not in the search PATH,
11907				# but as the default
11908				# location of the library.
11909
11910    case $cc_basename in
11911    CC*)
11912      # FIXME: insert proper C++ library support
11913      ld_shlibs_CXX=no
11914      ;;
11915    aCC*)
11916      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'
11917      # Commands to make compiler produce verbose output that lists
11918      # what "hidden" libraries, object files and flags are used when
11919      # linking a shared library.
11920      #
11921      # There doesn't appear to be a way to prevent this compiler from
11922      # explicitly linking system object files so we need to strip them
11923      # from the output so that they don't get included in the library
11924      # dependencies.
11925      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'
11926      ;;
11927    *)
11928      if test "$GXX" = yes; then
11929        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'
11930      else
11931        # FIXME: insert proper C++ library support
11932        ld_shlibs_CXX=no
11933      fi
11934      ;;
11935    esac
11936    ;;
11937  hpux10*|hpux11*)
11938    if test $with_gnu_ld = no; then
11939      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11940      hardcode_libdir_separator_CXX=:
11941
11942      case $host_cpu in
11943      hppa*64*|ia64*) ;;
11944      *)
11945	export_dynamic_flag_spec_CXX='${wl}-E'
11946        ;;
11947      esac
11948    fi
11949    case $host_cpu in
11950    hppa*64*|ia64*)
11951      hardcode_direct_CXX=no
11952      hardcode_shlibpath_var_CXX=no
11953      ;;
11954    *)
11955      hardcode_direct_CXX=yes
11956      hardcode_minus_L_CXX=yes # Not in the search PATH,
11957					      # but as the default
11958					      # location of the library.
11959      ;;
11960    esac
11961
11962    case $cc_basename in
11963      CC*)
11964	# FIXME: insert proper C++ library support
11965	ld_shlibs_CXX=no
11966	;;
11967      aCC*)
11968	case $host_cpu in
11969	hppa*64*)
11970	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11971	  ;;
11972	ia64*)
11973	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11974	  ;;
11975	*)
11976	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11977	  ;;
11978	esac
11979	# Commands to make compiler produce verbose output that lists
11980	# what "hidden" libraries, object files and flags are used when
11981	# linking a shared library.
11982	#
11983	# There doesn't appear to be a way to prevent this compiler from
11984	# explicitly linking system object files so we need to strip them
11985	# from the output so that they don't get included in the library
11986	# dependencies.
11987	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'
11988	;;
11989      *)
11990	if test "$GXX" = yes; then
11991	  if test $with_gnu_ld = no; then
11992	    case $host_cpu in
11993	    hppa*64*)
11994	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11995	      ;;
11996	    ia64*)
11997	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11998	      ;;
11999	    *)
12000	      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'
12001	      ;;
12002	    esac
12003	  fi
12004	else
12005	  # FIXME: insert proper C++ library support
12006	  ld_shlibs_CXX=no
12007	fi
12008	;;
12009    esac
12010    ;;
12011  interix[3-9]*)
12012    hardcode_direct_CXX=no
12013    hardcode_shlibpath_var_CXX=no
12014    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12015    export_dynamic_flag_spec_CXX='${wl}-E'
12016    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12017    # Instead, shared libraries are loaded at an image base (0x10000000 by
12018    # default) and relocated if they conflict, which is a slow very memory
12019    # consuming and fragmenting process.  To avoid this, we pick a random,
12020    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12021    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12022    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'
12023    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'
12024    ;;
12025  irix5* | irix6*)
12026    case $cc_basename in
12027      CC*)
12028	# SGI C++
12029	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'
12030
12031	# Archives containing C++ object files must be created using
12032	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12033	# necessary to make sure instantiated templates are included
12034	# in the archive.
12035	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12036	;;
12037      *)
12038	if test "$GXX" = yes; then
12039	  if test "$with_gnu_ld" = no; then
12040	    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'
12041	  else
12042	    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'
12043	  fi
12044	fi
12045	link_all_deplibs_CXX=yes
12046	;;
12047    esac
12048    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12049    hardcode_libdir_separator_CXX=:
12050    ;;
12051  linux* | k*bsd*-gnu)
12052    case $cc_basename in
12053      KCC*)
12054	# Kuck and Associates, Inc. (KAI) C++ Compiler
12055
12056	# KCC will only create a shared library if the output file
12057	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12058	# to its proper name (with version) after linking.
12059	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'
12060	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'
12061	# Commands to make compiler produce verbose output that lists
12062	# what "hidden" libraries, object files and flags are used when
12063	# linking a shared library.
12064	#
12065	# There doesn't appear to be a way to prevent this compiler from
12066	# explicitly linking system object files so we need to strip them
12067	# from the output so that they don't get included in the library
12068	# dependencies.
12069	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'
12070
12071	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12072	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12073
12074	# Archives containing C++ object files must be created using
12075	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12076	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12077	;;
12078      icpc*)
12079	# Intel C++
12080	with_gnu_ld=yes
12081	# version 8.0 and above of icpc choke on multiply defined symbols
12082	# if we add $predep_objects and $postdep_objects, however 7.1 and
12083	# earlier do not add the objects themselves.
12084	case `$CC -V 2>&1` in
12085	*"Version 7."*)
12086  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12087  	  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'
12088	  ;;
12089	*)  # Version 8.0 or newer
12090	  tmp_idyn=
12091	  case $host_cpu in
12092	    ia64*) tmp_idyn=' -i_dynamic';;
12093	  esac
12094  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12095	  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'
12096	  ;;
12097	esac
12098	archive_cmds_need_lc_CXX=no
12099	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12100	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12101	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12102	;;
12103      pgCC* | pgcpp*)
12104        # Portland Group C++ compiler
12105	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12106  	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'
12107
12108	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12109	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12110	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'
12111        ;;
12112      cxx*)
12113	# Compaq C++
12114	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12115	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'
12116
12117	runpath_var=LD_RUN_PATH
12118	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12119	hardcode_libdir_separator_CXX=:
12120
12121	# Commands to make compiler produce verbose output that lists
12122	# what "hidden" libraries, object files and flags are used when
12123	# linking a shared library.
12124	#
12125	# There doesn't appear to be a way to prevent this compiler from
12126	# explicitly linking system object files so we need to strip them
12127	# from the output so that they don't get included in the library
12128	# dependencies.
12129	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'
12130	;;
12131      *)
12132	case `$CC -V 2>&1 | sed 5q` in
12133	*Sun\ C*)
12134	  # Sun C++ 5.9
12135	  no_undefined_flag_CXX=' -zdefs'
12136	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12137	  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'
12138	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12139	  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'
12140
12141	  # Not sure whether something based on
12142	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12143	  # would be better.
12144	  output_verbose_link_cmd='echo'
12145
12146	  # Archives containing C++ object files must be created using
12147	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12148	  # necessary to make sure instantiated templates are included
12149	  # in the archive.
12150	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12151	  ;;
12152	esac
12153	;;
12154    esac
12155    ;;
12156  lynxos*)
12157    # FIXME: insert proper C++ library support
12158    ld_shlibs_CXX=no
12159    ;;
12160  m88k*)
12161    # FIXME: insert proper C++ library support
12162    ld_shlibs_CXX=no
12163    ;;
12164  mvs*)
12165    case $cc_basename in
12166      cxx*)
12167	# FIXME: insert proper C++ library support
12168	ld_shlibs_CXX=no
12169	;;
12170      *)
12171	# FIXME: insert proper C++ library support
12172	ld_shlibs_CXX=no
12173	;;
12174    esac
12175    ;;
12176  netbsd* | netbsdelf*-gnu)
12177    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12178      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12179      wlarc=
12180      hardcode_libdir_flag_spec_CXX='-R$libdir'
12181      hardcode_direct_CXX=yes
12182      hardcode_shlibpath_var_CXX=no
12183    fi
12184    # Workaround some broken pre-1.5 toolchains
12185    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12186    ;;
12187  openbsd2*)
12188    # C++ shared libraries are fairly broken
12189    ld_shlibs_CXX=no
12190    ;;
12191  openbsd*)
12192    if test -f /usr/libexec/ld.so; then
12193      hardcode_direct_CXX=yes
12194      hardcode_shlibpath_var_CXX=no
12195      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12196      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12197      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12198	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12199	export_dynamic_flag_spec_CXX='${wl}-E'
12200	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12201      fi
12202      output_verbose_link_cmd='echo'
12203    else
12204      ld_shlibs_CXX=no
12205    fi
12206    ;;
12207  osf3*)
12208    case $cc_basename in
12209      KCC*)
12210	# Kuck and Associates, Inc. (KAI) C++ Compiler
12211
12212	# KCC will only create a shared library if the output file
12213	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12214	# to its proper name (with version) after linking.
12215	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'
12216
12217	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12218	hardcode_libdir_separator_CXX=:
12219
12220	# Archives containing C++ object files must be created using
12221	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12222	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12223
12224	;;
12225      RCC*)
12226	# Rational C++ 2.4.1
12227	# FIXME: insert proper C++ library support
12228	ld_shlibs_CXX=no
12229	;;
12230      cxx*)
12231	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12232	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'
12233
12234	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12235	hardcode_libdir_separator_CXX=:
12236
12237	# Commands to make compiler produce verbose output that lists
12238	# what "hidden" libraries, object files and flags are used when
12239	# linking a shared library.
12240	#
12241	# There doesn't appear to be a way to prevent this compiler from
12242	# explicitly linking system object files so we need to strip them
12243	# from the output so that they don't get included in the library
12244	# dependencies.
12245	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'
12246	;;
12247      *)
12248	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12249	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12250	  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'
12251
12252	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12253	  hardcode_libdir_separator_CXX=:
12254
12255	  # Commands to make compiler produce verbose output that lists
12256	  # what "hidden" libraries, object files and flags are used when
12257	  # linking a shared library.
12258	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12259
12260	else
12261	  # FIXME: insert proper C++ library support
12262	  ld_shlibs_CXX=no
12263	fi
12264	;;
12265    esac
12266    ;;
12267  osf4* | osf5*)
12268    case $cc_basename in
12269      KCC*)
12270	# Kuck and Associates, Inc. (KAI) C++ Compiler
12271
12272	# KCC will only create a shared library if the output file
12273	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12274	# to its proper name (with version) after linking.
12275	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'
12276
12277	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12278	hardcode_libdir_separator_CXX=:
12279
12280	# Archives containing C++ object files must be created using
12281	# the KAI C++ compiler.
12282	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12283	;;
12284      RCC*)
12285	# Rational C++ 2.4.1
12286	# FIXME: insert proper C++ library support
12287	ld_shlibs_CXX=no
12288	;;
12289      cxx*)
12290	allow_undefined_flag_CXX=' -expect_unresolved \*'
12291	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'
12292	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12293	  echo "-hidden">> $lib.exp~
12294	  $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~
12295	  $rm $lib.exp'
12296
12297	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12298	hardcode_libdir_separator_CXX=:
12299
12300	# Commands to make compiler produce verbose output that lists
12301	# what "hidden" libraries, object files and flags are used when
12302	# linking a shared library.
12303	#
12304	# There doesn't appear to be a way to prevent this compiler from
12305	# explicitly linking system object files so we need to strip them
12306	# from the output so that they don't get included in the library
12307	# dependencies.
12308	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'
12309	;;
12310      *)
12311	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12312	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12313	 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'
12314
12315	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12316	  hardcode_libdir_separator_CXX=:
12317
12318	  # Commands to make compiler produce verbose output that lists
12319	  # what "hidden" libraries, object files and flags are used when
12320	  # linking a shared library.
12321	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12322
12323	else
12324	  # FIXME: insert proper C++ library support
12325	  ld_shlibs_CXX=no
12326	fi
12327	;;
12328    esac
12329    ;;
12330  psos*)
12331    # FIXME: insert proper C++ library support
12332    ld_shlibs_CXX=no
12333    ;;
12334  sunos4*)
12335    case $cc_basename in
12336      CC*)
12337	# Sun C++ 4.x
12338	# FIXME: insert proper C++ library support
12339	ld_shlibs_CXX=no
12340	;;
12341      lcc*)
12342	# Lucid
12343	# FIXME: insert proper C++ library support
12344	ld_shlibs_CXX=no
12345	;;
12346      *)
12347	# FIXME: insert proper C++ library support
12348	ld_shlibs_CXX=no
12349	;;
12350    esac
12351    ;;
12352  solaris*)
12353    case $cc_basename in
12354      CC*)
12355	# Sun C++ 4.2, 5.x and Centerline C++
12356        archive_cmds_need_lc_CXX=yes
12357	no_undefined_flag_CXX=' -zdefs'
12358	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12359	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12360	$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'
12361
12362	hardcode_libdir_flag_spec_CXX='-R$libdir'
12363	hardcode_shlibpath_var_CXX=no
12364	case $host_os in
12365	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12366	  *)
12367	    # The compiler driver will combine and reorder linker options,
12368	    # but understands `-z linker_flag'.
12369	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12370	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12371	    ;;
12372	esac
12373	link_all_deplibs_CXX=yes
12374
12375	output_verbose_link_cmd='echo'
12376
12377	# Archives containing C++ object files must be created using
12378	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12379	# necessary to make sure instantiated templates are included
12380	# in the archive.
12381	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12382	;;
12383      gcx*)
12384	# Green Hills C++ Compiler
12385	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12386
12387	# The C++ compiler must be used to create the archive.
12388	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12389	;;
12390      *)
12391	# GNU C++ compiler with Solaris linker
12392	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12393	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12394	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12395	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12396	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12397		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12398
12399	    # Commands to make compiler produce verbose output that lists
12400	    # what "hidden" libraries, object files and flags are used when
12401	    # linking a shared library.
12402	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12403	  else
12404	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12405	    # platform.
12406	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12407	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12408		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12409
12410	    # Commands to make compiler produce verbose output that lists
12411	    # what "hidden" libraries, object files and flags are used when
12412	    # linking a shared library.
12413	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12414	  fi
12415
12416	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12417	  case $host_os in
12418	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12419	  *)
12420	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12421	    ;;
12422	  esac
12423	fi
12424	;;
12425    esac
12426    ;;
12427  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12428    no_undefined_flag_CXX='${wl}-z,text'
12429    archive_cmds_need_lc_CXX=no
12430    hardcode_shlibpath_var_CXX=no
12431    runpath_var='LD_RUN_PATH'
12432
12433    case $cc_basename in
12434      CC*)
12435	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12436	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12437	;;
12438      *)
12439	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12440	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12441	;;
12442    esac
12443    ;;
12444  sysv5* | sco3.2v5* | sco5v6*)
12445    # Note: We can NOT use -z defs as we might desire, because we do not
12446    # link with -lc, and that would cause any symbols used from libc to
12447    # always be unresolved, which means just about no library would
12448    # ever link correctly.  If we're not using GNU ld we use -z text
12449    # though, which does catch some bad symbols but isn't as heavy-handed
12450    # as -z defs.
12451    # For security reasons, it is highly recommended that you always
12452    # use absolute paths for naming shared libraries, and exclude the
12453    # DT_RUNPATH tag from executables and libraries.  But doing so
12454    # requires that you compile everything twice, which is a pain.
12455    # So that behaviour is only enabled if SCOABSPATH is set to a
12456    # non-empty value in the environment.  Most likely only useful for
12457    # creating official distributions of packages.
12458    # This is a hack until libtool officially supports absolute path
12459    # names for shared libraries.
12460    no_undefined_flag_CXX='${wl}-z,text'
12461    allow_undefined_flag_CXX='${wl}-z,nodefs'
12462    archive_cmds_need_lc_CXX=no
12463    hardcode_shlibpath_var_CXX=no
12464    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12465    hardcode_libdir_separator_CXX=':'
12466    link_all_deplibs_CXX=yes
12467    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12468    runpath_var='LD_RUN_PATH'
12469
12470    case $cc_basename in
12471      CC*)
12472	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12473	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12474	;;
12475      *)
12476	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12477	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12478	;;
12479    esac
12480    ;;
12481  tandem*)
12482    case $cc_basename in
12483      NCC*)
12484	# NonStop-UX NCC 3.20
12485	# FIXME: insert proper C++ library support
12486	ld_shlibs_CXX=no
12487	;;
12488      *)
12489	# FIXME: insert proper C++ library support
12490	ld_shlibs_CXX=no
12491	;;
12492    esac
12493    ;;
12494  vxworks*)
12495    # FIXME: insert proper C++ library support
12496    ld_shlibs_CXX=no
12497    ;;
12498  *)
12499    # FIXME: insert proper C++ library support
12500    ld_shlibs_CXX=no
12501    ;;
12502esac
12503{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12504echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12505test "$ld_shlibs_CXX" = no && can_build_shared=no
12506
12507GCC_CXX="$GXX"
12508LD_CXX="$LD"
12509
12510cat > conftest.$ac_ext <<EOF
12511class Foo
12512{
12513public:
12514  Foo (void) { a = 0; }
12515private:
12516  int a;
12517};
12518EOF
12519
12520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12521  (eval $ac_compile) 2>&5
12522  ac_status=$?
12523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524  (exit $ac_status); }; then
12525  # Parse the compiler output and extract the necessary
12526  # objects, libraries and library flags.
12527
12528  # Sentinel used to keep track of whether or not we are before
12529  # the conftest object file.
12530  pre_test_object_deps_done=no
12531
12532  # The `*' in the case matches for architectures that use `case' in
12533  # $output_verbose_cmd can trigger glob expansion during the loop
12534  # eval without this substitution.
12535  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12536
12537  for p in `eval $output_verbose_link_cmd`; do
12538    case $p in
12539
12540    -L* | -R* | -l*)
12541       # Some compilers place space between "-{L,R}" and the path.
12542       # Remove the space.
12543       if test $p = "-L" \
12544	  || test $p = "-R"; then
12545	 prev=$p
12546	 continue
12547       else
12548	 prev=
12549       fi
12550
12551       if test "$pre_test_object_deps_done" = no; then
12552	 case $p in
12553	 -L* | -R*)
12554	   # Internal compiler library paths should come after those
12555	   # provided the user.  The postdeps already come after the
12556	   # user supplied libs so there is no need to process them.
12557	   if test -z "$compiler_lib_search_path_CXX"; then
12558	     compiler_lib_search_path_CXX="${prev}${p}"
12559	   else
12560	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12561	   fi
12562	   ;;
12563	 # The "-l" case would never come before the object being
12564	 # linked, so don't bother handling this case.
12565	 esac
12566       else
12567	 if test -z "$postdeps_CXX"; then
12568	   postdeps_CXX="${prev}${p}"
12569	 else
12570	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12571	 fi
12572       fi
12573       ;;
12574
12575    *.$objext)
12576       # This assumes that the test object file only shows up
12577       # once in the compiler output.
12578       if test "$p" = "conftest.$objext"; then
12579	 pre_test_object_deps_done=yes
12580	 continue
12581       fi
12582
12583       if test "$pre_test_object_deps_done" = no; then
12584	 if test -z "$predep_objects_CXX"; then
12585	   predep_objects_CXX="$p"
12586	 else
12587	   predep_objects_CXX="$predep_objects_CXX $p"
12588	 fi
12589       else
12590	 if test -z "$postdep_objects_CXX"; then
12591	   postdep_objects_CXX="$p"
12592	 else
12593	   postdep_objects_CXX="$postdep_objects_CXX $p"
12594	 fi
12595       fi
12596       ;;
12597
12598    *) ;; # Ignore the rest.
12599
12600    esac
12601  done
12602
12603  # Clean up.
12604  rm -f a.out a.exe
12605else
12606  echo "libtool.m4: error: problem compiling CXX test program"
12607fi
12608
12609$rm -f confest.$objext
12610
12611compiler_lib_search_dirs_CXX=
12612if test -n "$compiler_lib_search_path_CXX"; then
12613  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12614fi
12615
12616# PORTME: override above test on systems where it is broken
12617case $host_os in
12618interix[3-9]*)
12619  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12620  # hack all around it, let's just trust "g++" to DTRT.
12621  predep_objects_CXX=
12622  postdep_objects_CXX=
12623  postdeps_CXX=
12624  ;;
12625
12626linux*)
12627  case `$CC -V 2>&1 | sed 5q` in
12628  *Sun\ C*)
12629    # Sun C++ 5.9
12630    #
12631    # The more standards-conforming stlport4 library is
12632    # incompatible with the Cstd library. Avoid specifying
12633    # it if it's in CXXFLAGS. Ignore libCrun as
12634    # -library=stlport4 depends on it.
12635    case " $CXX $CXXFLAGS " in
12636    *" -library=stlport4 "*)
12637      solaris_use_stlport4=yes
12638      ;;
12639    esac
12640    if test "$solaris_use_stlport4" != yes; then
12641      postdeps_CXX='-library=Cstd -library=Crun'
12642    fi
12643    ;;
12644  esac
12645  ;;
12646
12647solaris*)
12648  case $cc_basename in
12649  CC*)
12650    # The more standards-conforming stlport4 library is
12651    # incompatible with the Cstd library. Avoid specifying
12652    # it if it's in CXXFLAGS. Ignore libCrun as
12653    # -library=stlport4 depends on it.
12654    case " $CXX $CXXFLAGS " in
12655    *" -library=stlport4 "*)
12656      solaris_use_stlport4=yes
12657      ;;
12658    esac
12659
12660    # Adding this requires a known-good setup of shared libraries for
12661    # Sun compiler versions before 5.6, else PIC objects from an old
12662    # archive will be linked into the output, leading to subtle bugs.
12663    if test "$solaris_use_stlport4" != yes; then
12664      postdeps_CXX='-library=Cstd -library=Crun'
12665    fi
12666    ;;
12667  esac
12668  ;;
12669esac
12670
12671case " $postdeps_CXX " in
12672*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12673esac
12674
12675lt_prog_compiler_wl_CXX=
12676lt_prog_compiler_pic_CXX=
12677lt_prog_compiler_static_CXX=
12678
12679{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12680echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12681
12682  # C++ specific cases for pic, static, wl, etc.
12683  if test "$GXX" = yes; then
12684    lt_prog_compiler_wl_CXX='-Wl,'
12685    lt_prog_compiler_static_CXX='-static'
12686
12687    case $host_os in
12688    aix*)
12689      # All AIX code is PIC.
12690      if test "$host_cpu" = ia64; then
12691	# AIX 5 now supports IA64 processor
12692	lt_prog_compiler_static_CXX='-Bstatic'
12693      fi
12694      ;;
12695    amigaos*)
12696      # FIXME: we need at least 68020 code to build shared libraries, but
12697      # adding the `-m68020' flag to GCC prevents building anything better,
12698      # like `-m68040'.
12699      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12700      ;;
12701    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12702      # PIC is the default for these OSes.
12703      ;;
12704    mingw* | cygwin* | os2* | pw32*)
12705      # This hack is so that the source file can tell whether it is being
12706      # built for inclusion in a dll (and should export symbols for example).
12707      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12708      # (--disable-auto-import) libraries
12709      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12710      ;;
12711    darwin* | rhapsody*)
12712      # PIC is the default on this platform
12713      # Common symbols not allowed in MH_DYLIB files
12714      lt_prog_compiler_pic_CXX='-fno-common'
12715      ;;
12716    *djgpp*)
12717      # DJGPP does not support shared libraries at all
12718      lt_prog_compiler_pic_CXX=
12719      ;;
12720    interix[3-9]*)
12721      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12722      # Instead, we relocate shared libraries at runtime.
12723      ;;
12724    sysv4*MP*)
12725      if test -d /usr/nec; then
12726	lt_prog_compiler_pic_CXX=-Kconform_pic
12727      fi
12728      ;;
12729    hpux*)
12730      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12731      # not for PA HP-UX.
12732      case $host_cpu in
12733      hppa*64*|ia64*)
12734	;;
12735      *)
12736	lt_prog_compiler_pic_CXX='-fPIC'
12737	;;
12738      esac
12739      ;;
12740    *)
12741      lt_prog_compiler_pic_CXX='-fPIC'
12742      ;;
12743    esac
12744  else
12745    case $host_os in
12746      aix[4-9]*)
12747	# All AIX code is PIC.
12748	if test "$host_cpu" = ia64; then
12749	  # AIX 5 now supports IA64 processor
12750	  lt_prog_compiler_static_CXX='-Bstatic'
12751	else
12752	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12753	fi
12754	;;
12755      chorus*)
12756	case $cc_basename in
12757	cxch68*)
12758	  # Green Hills C++ Compiler
12759	  # _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"
12760	  ;;
12761	esac
12762	;;
12763       darwin*)
12764         # PIC is the default on this platform
12765         # Common symbols not allowed in MH_DYLIB files
12766         case $cc_basename in
12767           xlc*)
12768           lt_prog_compiler_pic_CXX='-qnocommon'
12769           lt_prog_compiler_wl_CXX='-Wl,'
12770           ;;
12771         esac
12772       ;;
12773      dgux*)
12774	case $cc_basename in
12775	  ec++*)
12776	    lt_prog_compiler_pic_CXX='-KPIC'
12777	    ;;
12778	  ghcx*)
12779	    # Green Hills C++ Compiler
12780	    lt_prog_compiler_pic_CXX='-pic'
12781	    ;;
12782	  *)
12783	    ;;
12784	esac
12785	;;
12786      freebsd* | dragonfly*)
12787	# FreeBSD uses GNU C++
12788	;;
12789      hpux9* | hpux10* | hpux11*)
12790	case $cc_basename in
12791	  CC*)
12792	    lt_prog_compiler_wl_CXX='-Wl,'
12793	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12794	    if test "$host_cpu" != ia64; then
12795	      lt_prog_compiler_pic_CXX='+Z'
12796	    fi
12797	    ;;
12798	  aCC*)
12799	    lt_prog_compiler_wl_CXX='-Wl,'
12800	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12801	    case $host_cpu in
12802	    hppa*64*|ia64*)
12803	      # +Z the default
12804	      ;;
12805	    *)
12806	      lt_prog_compiler_pic_CXX='+Z'
12807	      ;;
12808	    esac
12809	    ;;
12810	  *)
12811	    ;;
12812	esac
12813	;;
12814      interix*)
12815	# This is c89, which is MS Visual C++ (no shared libs)
12816	# Anyone wants to do a port?
12817	;;
12818      irix5* | irix6* | nonstopux*)
12819	case $cc_basename in
12820	  CC*)
12821	    lt_prog_compiler_wl_CXX='-Wl,'
12822	    lt_prog_compiler_static_CXX='-non_shared'
12823	    # CC pic flag -KPIC is the default.
12824	    ;;
12825	  *)
12826	    ;;
12827	esac
12828	;;
12829      linux* | k*bsd*-gnu)
12830	case $cc_basename in
12831	  KCC*)
12832	    # KAI C++ Compiler
12833	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12834	    lt_prog_compiler_pic_CXX='-fPIC'
12835	    ;;
12836	  icpc* | ecpc*)
12837	    # Intel C++
12838	    lt_prog_compiler_wl_CXX='-Wl,'
12839	    lt_prog_compiler_pic_CXX='-KPIC'
12840	    lt_prog_compiler_static_CXX='-static'
12841	    ;;
12842	  pgCC* | pgcpp*)
12843	    # Portland Group C++ compiler.
12844	    lt_prog_compiler_wl_CXX='-Wl,'
12845	    lt_prog_compiler_pic_CXX='-fpic'
12846	    lt_prog_compiler_static_CXX='-Bstatic'
12847	    ;;
12848	  cxx*)
12849	    # Compaq C++
12850	    # Make sure the PIC flag is empty.  It appears that all Alpha
12851	    # Linux and Compaq Tru64 Unix objects are PIC.
12852	    lt_prog_compiler_pic_CXX=
12853	    lt_prog_compiler_static_CXX='-non_shared'
12854	    ;;
12855	  *)
12856	    case `$CC -V 2>&1 | sed 5q` in
12857	    *Sun\ C*)
12858	      # Sun C++ 5.9
12859	      lt_prog_compiler_pic_CXX='-KPIC'
12860	      lt_prog_compiler_static_CXX='-Bstatic'
12861	      lt_prog_compiler_wl_CXX='-Qoption ld '
12862	      ;;
12863	    esac
12864	    ;;
12865	esac
12866	;;
12867      lynxos*)
12868	;;
12869      m88k*)
12870	;;
12871      mvs*)
12872	case $cc_basename in
12873	  cxx*)
12874	    lt_prog_compiler_pic_CXX='-W c,exportall'
12875	    ;;
12876	  *)
12877	    ;;
12878	esac
12879	;;
12880      netbsd* | netbsdelf*-gnu)
12881	;;
12882      osf3* | osf4* | osf5*)
12883	case $cc_basename in
12884	  KCC*)
12885	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12886	    ;;
12887	  RCC*)
12888	    # Rational C++ 2.4.1
12889	    lt_prog_compiler_pic_CXX='-pic'
12890	    ;;
12891	  cxx*)
12892	    # Digital/Compaq C++
12893	    lt_prog_compiler_wl_CXX='-Wl,'
12894	    # Make sure the PIC flag is empty.  It appears that all Alpha
12895	    # Linux and Compaq Tru64 Unix objects are PIC.
12896	    lt_prog_compiler_pic_CXX=
12897	    lt_prog_compiler_static_CXX='-non_shared'
12898	    ;;
12899	  *)
12900	    ;;
12901	esac
12902	;;
12903      psos*)
12904	;;
12905      solaris*)
12906	case $cc_basename in
12907	  CC*)
12908	    # Sun C++ 4.2, 5.x and Centerline C++
12909	    lt_prog_compiler_pic_CXX='-KPIC'
12910	    lt_prog_compiler_static_CXX='-Bstatic'
12911	    lt_prog_compiler_wl_CXX='-Qoption ld '
12912	    ;;
12913	  gcx*)
12914	    # Green Hills C++ Compiler
12915	    lt_prog_compiler_pic_CXX='-PIC'
12916	    ;;
12917	  *)
12918	    ;;
12919	esac
12920	;;
12921      sunos4*)
12922	case $cc_basename in
12923	  CC*)
12924	    # Sun C++ 4.x
12925	    lt_prog_compiler_pic_CXX='-pic'
12926	    lt_prog_compiler_static_CXX='-Bstatic'
12927	    ;;
12928	  lcc*)
12929	    # Lucid
12930	    lt_prog_compiler_pic_CXX='-pic'
12931	    ;;
12932	  *)
12933	    ;;
12934	esac
12935	;;
12936      tandem*)
12937	case $cc_basename in
12938	  NCC*)
12939	    # NonStop-UX NCC 3.20
12940	    lt_prog_compiler_pic_CXX='-KPIC'
12941	    ;;
12942	  *)
12943	    ;;
12944	esac
12945	;;
12946      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12947	case $cc_basename in
12948	  CC*)
12949	    lt_prog_compiler_wl_CXX='-Wl,'
12950	    lt_prog_compiler_pic_CXX='-KPIC'
12951	    lt_prog_compiler_static_CXX='-Bstatic'
12952	    ;;
12953	esac
12954	;;
12955      vxworks*)
12956	;;
12957      *)
12958	lt_prog_compiler_can_build_shared_CXX=no
12959	;;
12960    esac
12961  fi
12962
12963{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12964echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12965
12966#
12967# Check to make sure the PIC flag actually works.
12968#
12969if test -n "$lt_prog_compiler_pic_CXX"; then
12970
12971{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12972echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12973if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12974  echo $ECHO_N "(cached) $ECHO_C" >&6
12975else
12976  lt_cv_prog_compiler_pic_works_CXX=no
12977  ac_outfile=conftest.$ac_objext
12978   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12979   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12980   # Insert the option either (1) after the last *FLAGS variable, or
12981   # (2) before a word containing "conftest.", or (3) at the end.
12982   # Note that $ac_compile itself does not contain backslashes and begins
12983   # with a dollar sign (not a hyphen), so the echo should work correctly.
12984   # The option is referenced via a variable to avoid confusing sed.
12985   lt_compile=`echo "$ac_compile" | $SED \
12986   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12987   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12988   -e 's:$: $lt_compiler_flag:'`
12989   (eval echo "\"\$as_me:12989: $lt_compile\"" >&5)
12990   (eval "$lt_compile" 2>conftest.err)
12991   ac_status=$?
12992   cat conftest.err >&5
12993   echo "$as_me:12993: \$? = $ac_status" >&5
12994   if (exit $ac_status) && test -s "$ac_outfile"; then
12995     # The compiler can only warn and ignore the option if not recognized
12996     # So say no if there are warnings other than the usual output.
12997     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12998     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12999     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13000       lt_cv_prog_compiler_pic_works_CXX=yes
13001     fi
13002   fi
13003   $rm conftest*
13004
13005fi
13006{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13007echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13008
13009if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13010    case $lt_prog_compiler_pic_CXX in
13011     "" | " "*) ;;
13012     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13013     esac
13014else
13015    lt_prog_compiler_pic_CXX=
13016     lt_prog_compiler_can_build_shared_CXX=no
13017fi
13018
13019fi
13020case $host_os in
13021  # For platforms which do not support PIC, -DPIC is meaningless:
13022  *djgpp*)
13023    lt_prog_compiler_pic_CXX=
13024    ;;
13025  *)
13026    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13027    ;;
13028esac
13029
13030#
13031# Check to make sure the static flag actually works.
13032#
13033wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13034{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13035echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13036if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13037  echo $ECHO_N "(cached) $ECHO_C" >&6
13038else
13039  lt_cv_prog_compiler_static_works_CXX=no
13040   save_LDFLAGS="$LDFLAGS"
13041   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13042   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13043   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13044     # The linker can only warn and ignore the option if not recognized
13045     # So say no if there are warnings
13046     if test -s conftest.err; then
13047       # Append any errors to the config.log.
13048       cat conftest.err 1>&5
13049       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13050       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13051       if diff conftest.exp conftest.er2 >/dev/null; then
13052         lt_cv_prog_compiler_static_works_CXX=yes
13053       fi
13054     else
13055       lt_cv_prog_compiler_static_works_CXX=yes
13056     fi
13057   fi
13058   $rm -r conftest*
13059   LDFLAGS="$save_LDFLAGS"
13060
13061fi
13062{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13063echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13064
13065if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13066    :
13067else
13068    lt_prog_compiler_static_CXX=
13069fi
13070
13071
13072{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13073echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13074if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13075  echo $ECHO_N "(cached) $ECHO_C" >&6
13076else
13077  lt_cv_prog_compiler_c_o_CXX=no
13078   $rm -r conftest 2>/dev/null
13079   mkdir conftest
13080   cd conftest
13081   mkdir out
13082   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13083
13084   lt_compiler_flag="-o out/conftest2.$ac_objext"
13085   # Insert the option either (1) after the last *FLAGS variable, or
13086   # (2) before a word containing "conftest.", or (3) at the end.
13087   # Note that $ac_compile itself does not contain backslashes and begins
13088   # with a dollar sign (not a hyphen), so the echo should work correctly.
13089   lt_compile=`echo "$ac_compile" | $SED \
13090   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13091   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13092   -e 's:$: $lt_compiler_flag:'`
13093   (eval echo "\"\$as_me:13093: $lt_compile\"" >&5)
13094   (eval "$lt_compile" 2>out/conftest.err)
13095   ac_status=$?
13096   cat out/conftest.err >&5
13097   echo "$as_me:13097: \$? = $ac_status" >&5
13098   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13099   then
13100     # The compiler can only warn and ignore the option if not recognized
13101     # So say no if there are warnings
13102     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13103     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13104     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13105       lt_cv_prog_compiler_c_o_CXX=yes
13106     fi
13107   fi
13108   chmod u+w . 2>&5
13109   $rm conftest*
13110   # SGI C++ compiler will create directory out/ii_files/ for
13111   # template instantiation
13112   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13113   $rm out/* && rmdir out
13114   cd ..
13115   rmdir conftest
13116   $rm conftest*
13117
13118fi
13119{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13120echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13121
13122
13123hard_links="nottested"
13124if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13125  # do not overwrite the value of need_locks provided by the user
13126  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13127echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13128  hard_links=yes
13129  $rm conftest*
13130  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13131  touch conftest.a
13132  ln conftest.a conftest.b 2>&5 || hard_links=no
13133  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13134  { echo "$as_me:$LINENO: result: $hard_links" >&5
13135echo "${ECHO_T}$hard_links" >&6; }
13136  if test "$hard_links" = no; then
13137    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13138echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13139    need_locks=warn
13140  fi
13141else
13142  need_locks=no
13143fi
13144
13145{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13146echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13147
13148  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13149  case $host_os in
13150  aix[4-9]*)
13151    # If we're using GNU nm, then we don't want the "-C" option.
13152    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13153    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13154      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'
13155    else
13156      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'
13157    fi
13158    ;;
13159  pw32*)
13160    export_symbols_cmds_CXX="$ltdll_cmds"
13161  ;;
13162  cygwin* | mingw*)
13163    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'
13164  ;;
13165  linux* | k*bsd*-gnu)
13166    link_all_deplibs_CXX=no
13167  ;;
13168  *)
13169    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13170  ;;
13171  esac
13172  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13173
13174{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13175echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13176test "$ld_shlibs_CXX" = no && can_build_shared=no
13177
13178#
13179# Do we need to explicitly link libc?
13180#
13181case "x$archive_cmds_need_lc_CXX" in
13182x|xyes)
13183  # Assume -lc should be added
13184  archive_cmds_need_lc_CXX=yes
13185
13186  if test "$enable_shared" = yes && test "$GCC" = yes; then
13187    case $archive_cmds_CXX in
13188    *'~'*)
13189      # FIXME: we may have to deal with multi-command sequences.
13190      ;;
13191    '$CC '*)
13192      # Test whether the compiler implicitly links with -lc since on some
13193      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13194      # to ld, don't add -lc before -lgcc.
13195      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13196echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13197      $rm conftest*
13198      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13199
13200      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13201  (eval $ac_compile) 2>&5
13202  ac_status=$?
13203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204  (exit $ac_status); } 2>conftest.err; then
13205        soname=conftest
13206        lib=conftest
13207        libobjs=conftest.$ac_objext
13208        deplibs=
13209        wl=$lt_prog_compiler_wl_CXX
13210	pic_flag=$lt_prog_compiler_pic_CXX
13211        compiler_flags=-v
13212        linker_flags=-v
13213        verstring=
13214        output_objdir=.
13215        libname=conftest
13216        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13217        allow_undefined_flag_CXX=
13218        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13219  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13220  ac_status=$?
13221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222  (exit $ac_status); }
13223        then
13224	  archive_cmds_need_lc_CXX=no
13225        else
13226	  archive_cmds_need_lc_CXX=yes
13227        fi
13228        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13229      else
13230        cat conftest.err 1>&5
13231      fi
13232      $rm conftest*
13233      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13234echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13235      ;;
13236    esac
13237  fi
13238  ;;
13239esac
13240
13241{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13242echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13243library_names_spec=
13244libname_spec='lib$name'
13245soname_spec=
13246shrext_cmds=".so"
13247postinstall_cmds=
13248postuninstall_cmds=
13249finish_cmds=
13250finish_eval=
13251shlibpath_var=
13252shlibpath_overrides_runpath=unknown
13253version_type=none
13254dynamic_linker="$host_os ld.so"
13255sys_lib_dlsearch_path_spec="/lib /usr/lib"
13256
13257need_lib_prefix=unknown
13258hardcode_into_libs=no
13259
13260# when you set need_version to no, make sure it does not cause -set_version
13261# flags to be left without arguments
13262need_version=unknown
13263
13264case $host_os in
13265aix3*)
13266  version_type=linux
13267  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13268  shlibpath_var=LIBPATH
13269
13270  # AIX 3 has no versioning support, so we append a major version to the name.
13271  soname_spec='${libname}${release}${shared_ext}$major'
13272  ;;
13273
13274aix[4-9]*)
13275  version_type=linux
13276  need_lib_prefix=no
13277  need_version=no
13278  hardcode_into_libs=yes
13279  if test "$host_cpu" = ia64; then
13280    # AIX 5 supports IA64
13281    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13282    shlibpath_var=LD_LIBRARY_PATH
13283  else
13284    # With GCC up to 2.95.x, collect2 would create an import file
13285    # for dependence libraries.  The import file would start with
13286    # the line `#! .'.  This would cause the generated library to
13287    # depend on `.', always an invalid library.  This was fixed in
13288    # development snapshots of GCC prior to 3.0.
13289    case $host_os in
13290      aix4 | aix4.[01] | aix4.[01].*)
13291      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13292	   echo ' yes '
13293	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13294	:
13295      else
13296	can_build_shared=no
13297      fi
13298      ;;
13299    esac
13300    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13301    # soname into executable. Probably we can add versioning support to
13302    # collect2, so additional links can be useful in future.
13303    if test "$aix_use_runtimelinking" = yes; then
13304      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13305      # instead of lib<name>.a to let people know that these are not
13306      # typical AIX shared libraries.
13307      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13308    else
13309      # We preserve .a as extension for shared libraries through AIX4.2
13310      # and later when we are not doing run time linking.
13311      library_names_spec='${libname}${release}.a $libname.a'
13312      soname_spec='${libname}${release}${shared_ext}$major'
13313    fi
13314    shlibpath_var=LIBPATH
13315  fi
13316  ;;
13317
13318amigaos*)
13319  library_names_spec='$libname.ixlibrary $libname.a'
13320  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13321  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'
13322  ;;
13323
13324beos*)
13325  library_names_spec='${libname}${shared_ext}'
13326  dynamic_linker="$host_os ld.so"
13327  shlibpath_var=LIBRARY_PATH
13328  ;;
13329
13330bsdi[45]*)
13331  version_type=linux
13332  need_version=no
13333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13334  soname_spec='${libname}${release}${shared_ext}$major'
13335  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13336  shlibpath_var=LD_LIBRARY_PATH
13337  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13338  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13339  # the default ld.so.conf also contains /usr/contrib/lib and
13340  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13341  # libtool to hard-code these into programs
13342  ;;
13343
13344cygwin* | mingw* | pw32*)
13345  version_type=windows
13346  shrext_cmds=".dll"
13347  need_version=no
13348  need_lib_prefix=no
13349
13350  case $GCC,$host_os in
13351  yes,cygwin* | yes,mingw* | yes,pw32*)
13352    library_names_spec='$libname.dll.a'
13353    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13354    postinstall_cmds='base_file=`basename \${file}`~
13355      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13356      dldir=$destdir/`dirname \$dlpath`~
13357      test -d \$dldir || mkdir -p \$dldir~
13358      $install_prog $dir/$dlname \$dldir/$dlname~
13359      chmod a+x \$dldir/$dlname'
13360    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13361      dlpath=$dir/\$dldll~
13362       $rm \$dlpath'
13363    shlibpath_overrides_runpath=yes
13364
13365    case $host_os in
13366    cygwin*)
13367      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13368      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13369      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13370      ;;
13371    mingw*)
13372      # MinGW DLLs use traditional 'lib' prefix
13373      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13374      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13375      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13376        # It is most probably a Windows format PATH printed by
13377        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13378        # path with ; separators, and with drive letters. We can handle the
13379        # drive letters (cygwin fileutils understands them), so leave them,
13380        # especially as we might pass files found there to a mingw objdump,
13381        # which wouldn't understand a cygwinified path. Ahh.
13382        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13383      else
13384        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13385      fi
13386      ;;
13387    pw32*)
13388      # pw32 DLLs use 'pw' prefix rather than 'lib'
13389      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13390      ;;
13391    esac
13392    ;;
13393
13394  *)
13395    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13396    ;;
13397  esac
13398  dynamic_linker='Win32 ld.exe'
13399  # FIXME: first we should search . and the directory the executable is in
13400  shlibpath_var=PATH
13401  ;;
13402
13403darwin* | rhapsody*)
13404  dynamic_linker="$host_os dyld"
13405  version_type=darwin
13406  need_lib_prefix=no
13407  need_version=no
13408  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13409  soname_spec='${libname}${release}${major}$shared_ext'
13410  shlibpath_overrides_runpath=yes
13411  shlibpath_var=DYLD_LIBRARY_PATH
13412  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13413
13414  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13415  ;;
13416
13417dgux*)
13418  version_type=linux
13419  need_lib_prefix=no
13420  need_version=no
13421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13422  soname_spec='${libname}${release}${shared_ext}$major'
13423  shlibpath_var=LD_LIBRARY_PATH
13424  ;;
13425
13426freebsd1*)
13427  dynamic_linker=no
13428  ;;
13429
13430freebsd* | dragonfly*)
13431  # DragonFly does not have aout.  When/if they implement a new
13432  # versioning mechanism, adjust this.
13433  if test -x /usr/bin/objformat; then
13434    objformat=`/usr/bin/objformat`
13435  else
13436    case $host_os in
13437    freebsd[123]*) objformat=aout ;;
13438    *) objformat=elf ;;
13439    esac
13440  fi
13441  version_type=freebsd-$objformat
13442  case $version_type in
13443    freebsd-elf*)
13444      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13445      need_version=no
13446      need_lib_prefix=no
13447      ;;
13448    freebsd-*)
13449      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13450      need_version=yes
13451      ;;
13452  esac
13453  shlibpath_var=LD_LIBRARY_PATH
13454  case $host_os in
13455  freebsd2*)
13456    shlibpath_overrides_runpath=yes
13457    ;;
13458  freebsd3.[01]* | freebsdelf3.[01]*)
13459    shlibpath_overrides_runpath=yes
13460    hardcode_into_libs=yes
13461    ;;
13462  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13463  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13464    shlibpath_overrides_runpath=no
13465    hardcode_into_libs=yes
13466    ;;
13467  *) # from 4.6 on, and DragonFly
13468    shlibpath_overrides_runpath=yes
13469    hardcode_into_libs=yes
13470    ;;
13471  esac
13472  ;;
13473
13474gnu*)
13475  version_type=linux
13476  need_lib_prefix=no
13477  need_version=no
13478  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13479  soname_spec='${libname}${release}${shared_ext}$major'
13480  shlibpath_var=LD_LIBRARY_PATH
13481  hardcode_into_libs=yes
13482  ;;
13483
13484hpux9* | hpux10* | hpux11*)
13485  # Give a soname corresponding to the major version so that dld.sl refuses to
13486  # link against other versions.
13487  version_type=sunos
13488  need_lib_prefix=no
13489  need_version=no
13490  case $host_cpu in
13491  ia64*)
13492    shrext_cmds='.so'
13493    hardcode_into_libs=yes
13494    dynamic_linker="$host_os dld.so"
13495    shlibpath_var=LD_LIBRARY_PATH
13496    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13497    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13498    soname_spec='${libname}${release}${shared_ext}$major'
13499    if test "X$HPUX_IA64_MODE" = X32; then
13500      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13501    else
13502      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13503    fi
13504    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13505    ;;
13506   hppa*64*)
13507     shrext_cmds='.sl'
13508     hardcode_into_libs=yes
13509     dynamic_linker="$host_os dld.sl"
13510     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13511     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13512     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13513     soname_spec='${libname}${release}${shared_ext}$major'
13514     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13515     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13516     ;;
13517   *)
13518    shrext_cmds='.sl'
13519    dynamic_linker="$host_os dld.sl"
13520    shlibpath_var=SHLIB_PATH
13521    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13522    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13523    soname_spec='${libname}${release}${shared_ext}$major'
13524    ;;
13525  esac
13526  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13527  postinstall_cmds='chmod 555 $lib'
13528  ;;
13529
13530interix[3-9]*)
13531  version_type=linux
13532  need_lib_prefix=no
13533  need_version=no
13534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13535  soname_spec='${libname}${release}${shared_ext}$major'
13536  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13537  shlibpath_var=LD_LIBRARY_PATH
13538  shlibpath_overrides_runpath=no
13539  hardcode_into_libs=yes
13540  ;;
13541
13542irix5* | irix6* | nonstopux*)
13543  case $host_os in
13544    nonstopux*) version_type=nonstopux ;;
13545    *)
13546	if test "$lt_cv_prog_gnu_ld" = yes; then
13547		version_type=linux
13548	else
13549		version_type=irix
13550	fi ;;
13551  esac
13552  need_lib_prefix=no
13553  need_version=no
13554  soname_spec='${libname}${release}${shared_ext}$major'
13555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13556  case $host_os in
13557  irix5* | nonstopux*)
13558    libsuff= shlibsuff=
13559    ;;
13560  *)
13561    case $LD in # libtool.m4 will add one of these switches to LD
13562    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13563      libsuff= shlibsuff= libmagic=32-bit;;
13564    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13565      libsuff=32 shlibsuff=N32 libmagic=N32;;
13566    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13567      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13568    *) libsuff= shlibsuff= libmagic=never-match;;
13569    esac
13570    ;;
13571  esac
13572  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13573  shlibpath_overrides_runpath=no
13574  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13575  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13576  hardcode_into_libs=yes
13577  ;;
13578
13579# No shared lib support for Linux oldld, aout, or coff.
13580linux*oldld* | linux*aout* | linux*coff*)
13581  dynamic_linker=no
13582  ;;
13583
13584# This must be Linux ELF.
13585linux* | k*bsd*-gnu)
13586  version_type=linux
13587  need_lib_prefix=no
13588  need_version=no
13589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13590  soname_spec='${libname}${release}${shared_ext}$major'
13591  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13592  shlibpath_var=LD_LIBRARY_PATH
13593  shlibpath_overrides_runpath=no
13594  # This implies no fast_install, which is unacceptable.
13595  # Some rework will be needed to allow for fast_install
13596  # before this can be enabled.
13597  hardcode_into_libs=yes
13598
13599  # Append ld.so.conf contents to the search path
13600  if test -f /etc/ld.so.conf; then
13601    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' ' '`
13602    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13603  fi
13604
13605  # We used to test for /lib/ld.so.1 and disable shared libraries on
13606  # powerpc, because MkLinux only supported shared libraries with the
13607  # GNU dynamic linker.  Since this was broken with cross compilers,
13608  # most powerpc-linux boxes support dynamic linking these days and
13609  # people can always --disable-shared, the test was removed, and we
13610  # assume the GNU/Linux dynamic linker is in use.
13611  dynamic_linker='GNU/Linux ld.so'
13612  ;;
13613
13614netbsdelf*-gnu)
13615  version_type=linux
13616  need_lib_prefix=no
13617  need_version=no
13618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13619  soname_spec='${libname}${release}${shared_ext}$major'
13620  shlibpath_var=LD_LIBRARY_PATH
13621  shlibpath_overrides_runpath=no
13622  hardcode_into_libs=yes
13623  dynamic_linker='NetBSD ld.elf_so'
13624  ;;
13625
13626netbsd*)
13627  version_type=sunos
13628  need_lib_prefix=no
13629  need_version=no
13630  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13631    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13632    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13633    dynamic_linker='NetBSD (a.out) ld.so'
13634  else
13635    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13636    soname_spec='${libname}${release}${shared_ext}$major'
13637    dynamic_linker='NetBSD ld.elf_so'
13638  fi
13639  shlibpath_var=LD_LIBRARY_PATH
13640  shlibpath_overrides_runpath=yes
13641  hardcode_into_libs=yes
13642  ;;
13643
13644newsos6)
13645  version_type=linux
13646  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13647  shlibpath_var=LD_LIBRARY_PATH
13648  shlibpath_overrides_runpath=yes
13649  ;;
13650
13651nto-qnx*)
13652  version_type=linux
13653  need_lib_prefix=no
13654  need_version=no
13655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13656  soname_spec='${libname}${release}${shared_ext}$major'
13657  shlibpath_var=LD_LIBRARY_PATH
13658  shlibpath_overrides_runpath=yes
13659  ;;
13660
13661openbsd*)
13662  version_type=sunos
13663  sys_lib_dlsearch_path_spec="/usr/lib"
13664  need_lib_prefix=no
13665  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13666  case $host_os in
13667    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13668    *)                         need_version=no  ;;
13669  esac
13670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13671  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13672  shlibpath_var=LD_LIBRARY_PATH
13673  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13674    case $host_os in
13675      openbsd2.[89] | openbsd2.[89].*)
13676	shlibpath_overrides_runpath=no
13677	;;
13678      *)
13679	shlibpath_overrides_runpath=yes
13680	;;
13681      esac
13682  else
13683    shlibpath_overrides_runpath=yes
13684  fi
13685  ;;
13686
13687os2*)
13688  libname_spec='$name'
13689  shrext_cmds=".dll"
13690  need_lib_prefix=no
13691  library_names_spec='$libname${shared_ext} $libname.a'
13692  dynamic_linker='OS/2 ld.exe'
13693  shlibpath_var=LIBPATH
13694  ;;
13695
13696osf3* | osf4* | osf5*)
13697  version_type=osf
13698  need_lib_prefix=no
13699  need_version=no
13700  soname_spec='${libname}${release}${shared_ext}$major'
13701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13702  shlibpath_var=LD_LIBRARY_PATH
13703  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13704  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13705  ;;
13706
13707rdos*)
13708  dynamic_linker=no
13709  ;;
13710
13711solaris*)
13712  version_type=linux
13713  need_lib_prefix=no
13714  need_version=no
13715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13716  soname_spec='${libname}${release}${shared_ext}$major'
13717  shlibpath_var=LD_LIBRARY_PATH
13718  shlibpath_overrides_runpath=yes
13719  hardcode_into_libs=yes
13720  # ldd complains unless libraries are executable
13721  postinstall_cmds='chmod +x $lib'
13722  ;;
13723
13724sunos4*)
13725  version_type=sunos
13726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13727  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13728  shlibpath_var=LD_LIBRARY_PATH
13729  shlibpath_overrides_runpath=yes
13730  if test "$with_gnu_ld" = yes; then
13731    need_lib_prefix=no
13732  fi
13733  need_version=yes
13734  ;;
13735
13736sysv4 | sysv4.3*)
13737  version_type=linux
13738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13739  soname_spec='${libname}${release}${shared_ext}$major'
13740  shlibpath_var=LD_LIBRARY_PATH
13741  case $host_vendor in
13742    sni)
13743      shlibpath_overrides_runpath=no
13744      need_lib_prefix=no
13745      export_dynamic_flag_spec='${wl}-Blargedynsym'
13746      runpath_var=LD_RUN_PATH
13747      ;;
13748    siemens)
13749      need_lib_prefix=no
13750      ;;
13751    motorola)
13752      need_lib_prefix=no
13753      need_version=no
13754      shlibpath_overrides_runpath=no
13755      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13756      ;;
13757  esac
13758  ;;
13759
13760sysv4*MP*)
13761  if test -d /usr/nec ;then
13762    version_type=linux
13763    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13764    soname_spec='$libname${shared_ext}.$major'
13765    shlibpath_var=LD_LIBRARY_PATH
13766  fi
13767  ;;
13768
13769sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13770  version_type=freebsd-elf
13771  need_lib_prefix=no
13772  need_version=no
13773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13774  soname_spec='${libname}${release}${shared_ext}$major'
13775  shlibpath_var=LD_LIBRARY_PATH
13776  hardcode_into_libs=yes
13777  if test "$with_gnu_ld" = yes; then
13778    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13779    shlibpath_overrides_runpath=no
13780  else
13781    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13782    shlibpath_overrides_runpath=yes
13783    case $host_os in
13784      sco3.2v5*)
13785        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13786	;;
13787    esac
13788  fi
13789  sys_lib_dlsearch_path_spec='/usr/lib'
13790  ;;
13791
13792uts4*)
13793  version_type=linux
13794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13795  soname_spec='${libname}${release}${shared_ext}$major'
13796  shlibpath_var=LD_LIBRARY_PATH
13797  ;;
13798
13799*)
13800  dynamic_linker=no
13801  ;;
13802esac
13803{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13804echo "${ECHO_T}$dynamic_linker" >&6; }
13805test "$dynamic_linker" = no && can_build_shared=no
13806
13807if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13808  echo $ECHO_N "(cached) $ECHO_C" >&6
13809else
13810  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13811fi
13812
13813sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13814if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13815  echo $ECHO_N "(cached) $ECHO_C" >&6
13816else
13817  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13818fi
13819
13820sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13821
13822variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13823if test "$GCC" = yes; then
13824  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13825fi
13826
13827{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13828echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13829hardcode_action_CXX=
13830if test -n "$hardcode_libdir_flag_spec_CXX" || \
13831   test -n "$runpath_var_CXX" || \
13832   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13833
13834  # We can hardcode non-existant directories.
13835  if test "$hardcode_direct_CXX" != no &&
13836     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13837     # have to relink, otherwise we might link with an installed library
13838     # when we should be linking with a yet-to-be-installed one
13839     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13840     test "$hardcode_minus_L_CXX" != no; then
13841    # Linking always hardcodes the temporary library directory.
13842    hardcode_action_CXX=relink
13843  else
13844    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13845    hardcode_action_CXX=immediate
13846  fi
13847else
13848  # We cannot hardcode anything, or else we can only hardcode existing
13849  # directories.
13850  hardcode_action_CXX=unsupported
13851fi
13852{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13853echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13854
13855if test "$hardcode_action_CXX" = relink; then
13856  # Fast installation is not supported
13857  enable_fast_install=no
13858elif test "$shlibpath_overrides_runpath" = yes ||
13859     test "$enable_shared" = no; then
13860  # Fast installation is not necessary
13861  enable_fast_install=needless
13862fi
13863
13864
13865# The else clause should only fire when bootstrapping the
13866# libtool distribution, otherwise you forgot to ship ltmain.sh
13867# with your package, and you will get complaints that there are
13868# no rules to generate ltmain.sh.
13869if test -f "$ltmain"; then
13870  # See if we are running on zsh, and set the options which allow our commands through
13871  # without removal of \ escapes.
13872  if test -n "${ZSH_VERSION+set}" ; then
13873    setopt NO_GLOB_SUBST
13874  fi
13875  # Now quote all the things that may contain metacharacters while being
13876  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13877  # variables and quote the copies for generation of the libtool script.
13878  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13879    SED SHELL STRIP \
13880    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13881    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13882    deplibs_check_method reload_flag reload_cmds need_locks \
13883    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13884    lt_cv_sys_global_symbol_to_c_name_address \
13885    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13886    old_postinstall_cmds old_postuninstall_cmds \
13887    compiler_CXX \
13888    CC_CXX \
13889    LD_CXX \
13890    lt_prog_compiler_wl_CXX \
13891    lt_prog_compiler_pic_CXX \
13892    lt_prog_compiler_static_CXX \
13893    lt_prog_compiler_no_builtin_flag_CXX \
13894    export_dynamic_flag_spec_CXX \
13895    thread_safe_flag_spec_CXX \
13896    whole_archive_flag_spec_CXX \
13897    enable_shared_with_static_runtimes_CXX \
13898    old_archive_cmds_CXX \
13899    old_archive_from_new_cmds_CXX \
13900    predep_objects_CXX \
13901    postdep_objects_CXX \
13902    predeps_CXX \
13903    postdeps_CXX \
13904    compiler_lib_search_path_CXX \
13905    compiler_lib_search_dirs_CXX \
13906    archive_cmds_CXX \
13907    archive_expsym_cmds_CXX \
13908    postinstall_cmds_CXX \
13909    postuninstall_cmds_CXX \
13910    old_archive_from_expsyms_cmds_CXX \
13911    allow_undefined_flag_CXX \
13912    no_undefined_flag_CXX \
13913    export_symbols_cmds_CXX \
13914    hardcode_libdir_flag_spec_CXX \
13915    hardcode_libdir_flag_spec_ld_CXX \
13916    hardcode_libdir_separator_CXX \
13917    hardcode_automatic_CXX \
13918    module_cmds_CXX \
13919    module_expsym_cmds_CXX \
13920    lt_cv_prog_compiler_c_o_CXX \
13921    fix_srcfile_path_CXX \
13922    exclude_expsyms_CXX \
13923    include_expsyms_CXX; do
13924
13925    case $var in
13926    old_archive_cmds_CXX | \
13927    old_archive_from_new_cmds_CXX | \
13928    archive_cmds_CXX | \
13929    archive_expsym_cmds_CXX | \
13930    module_cmds_CXX | \
13931    module_expsym_cmds_CXX | \
13932    old_archive_from_expsyms_cmds_CXX | \
13933    export_symbols_cmds_CXX | \
13934    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13935    postinstall_cmds | postuninstall_cmds | \
13936    old_postinstall_cmds | old_postuninstall_cmds | \
13937    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13938      # Double-quote double-evaled strings.
13939      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13940      ;;
13941    *)
13942      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13943      ;;
13944    esac
13945  done
13946
13947  case $lt_echo in
13948  *'\$0 --fallback-echo"')
13949    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13950    ;;
13951  esac
13952
13953cfgfile="$ofile"
13954
13955  cat <<__EOF__ >> "$cfgfile"
13956# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13957
13958# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13959
13960# Shell to use when invoking shell scripts.
13961SHELL=$lt_SHELL
13962
13963# Whether or not to build shared libraries.
13964build_libtool_libs=$enable_shared
13965
13966# Whether or not to build static libraries.
13967build_old_libs=$enable_static
13968
13969# Whether or not to add -lc for building shared libraries.
13970build_libtool_need_lc=$archive_cmds_need_lc_CXX
13971
13972# Whether or not to disallow shared libs when runtime libs are static
13973allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13974
13975# Whether or not to optimize for fast installation.
13976fast_install=$enable_fast_install
13977
13978# The host system.
13979host_alias=$host_alias
13980host=$host
13981host_os=$host_os
13982
13983# The build system.
13984build_alias=$build_alias
13985build=$build
13986build_os=$build_os
13987
13988# An echo program that does not interpret backslashes.
13989echo=$lt_echo
13990
13991# The archiver.
13992AR=$lt_AR
13993AR_FLAGS=$lt_AR_FLAGS
13994
13995# A C compiler.
13996LTCC=$lt_LTCC
13997
13998# LTCC compiler flags.
13999LTCFLAGS=$lt_LTCFLAGS
14000
14001# A language-specific compiler.
14002CC=$lt_compiler_CXX
14003
14004# Is the compiler the GNU C compiler?
14005with_gcc=$GCC_CXX
14006
14007# An ERE matcher.
14008EGREP=$lt_EGREP
14009
14010# The linker used to build libraries.
14011LD=$lt_LD_CXX
14012
14013# Whether we need hard or soft links.
14014LN_S=$lt_LN_S
14015
14016# A BSD-compatible nm program.
14017NM=$lt_NM
14018
14019# A symbol stripping program
14020STRIP=$lt_STRIP
14021
14022# Used to examine libraries when file_magic_cmd begins "file"
14023MAGIC_CMD=$MAGIC_CMD
14024
14025# Used on cygwin: DLL creation program.
14026DLLTOOL="$DLLTOOL"
14027
14028# Used on cygwin: object dumper.
14029OBJDUMP="$OBJDUMP"
14030
14031# Used on cygwin: assembler.
14032AS="$AS"
14033
14034# The name of the directory that contains temporary libtool files.
14035objdir=$objdir
14036
14037# How to create reloadable object files.
14038reload_flag=$lt_reload_flag
14039reload_cmds=$lt_reload_cmds
14040
14041# How to pass a linker flag through the compiler.
14042wl=$lt_lt_prog_compiler_wl_CXX
14043
14044# Object file suffix (normally "o").
14045objext="$ac_objext"
14046
14047# Old archive suffix (normally "a").
14048libext="$libext"
14049
14050# Shared library suffix (normally ".so").
14051shrext_cmds='$shrext_cmds'
14052
14053# Executable file suffix (normally "").
14054exeext="$exeext"
14055
14056# Additional compiler flags for building library objects.
14057pic_flag=$lt_lt_prog_compiler_pic_CXX
14058pic_mode=$pic_mode
14059
14060# What is the maximum length of a command?
14061max_cmd_len=$lt_cv_sys_max_cmd_len
14062
14063# Does compiler simultaneously support -c and -o options?
14064compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14065
14066# Must we lock files when doing compilation?
14067need_locks=$lt_need_locks
14068
14069# Do we need the lib prefix for modules?
14070need_lib_prefix=$need_lib_prefix
14071
14072# Do we need a version for libraries?
14073need_version=$need_version
14074
14075# Whether dlopen is supported.
14076dlopen_support=$enable_dlopen
14077
14078# Whether dlopen of programs is supported.
14079dlopen_self=$enable_dlopen_self
14080
14081# Whether dlopen of statically linked programs is supported.
14082dlopen_self_static=$enable_dlopen_self_static
14083
14084# Compiler flag to prevent dynamic linking.
14085link_static_flag=$lt_lt_prog_compiler_static_CXX
14086
14087# Compiler flag to turn off builtin functions.
14088no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14089
14090# Compiler flag to allow reflexive dlopens.
14091export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14092
14093# Compiler flag to generate shared objects directly from archives.
14094whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14095
14096# Compiler flag to generate thread-safe objects.
14097thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14098
14099# Library versioning type.
14100version_type=$version_type
14101
14102# Format of library name prefix.
14103libname_spec=$lt_libname_spec
14104
14105# List of archive names.  First name is the real one, the rest are links.
14106# The last name is the one that the linker finds with -lNAME.
14107library_names_spec=$lt_library_names_spec
14108
14109# The coded name of the library, if different from the real name.
14110soname_spec=$lt_soname_spec
14111
14112# Commands used to build and install an old-style archive.
14113RANLIB=$lt_RANLIB
14114old_archive_cmds=$lt_old_archive_cmds_CXX
14115old_postinstall_cmds=$lt_old_postinstall_cmds
14116old_postuninstall_cmds=$lt_old_postuninstall_cmds
14117
14118# Create an old-style archive from a shared archive.
14119old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14120
14121# Create a temporary old-style archive to link instead of a shared archive.
14122old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14123
14124# Commands used to build and install a shared archive.
14125archive_cmds=$lt_archive_cmds_CXX
14126archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14127postinstall_cmds=$lt_postinstall_cmds
14128postuninstall_cmds=$lt_postuninstall_cmds
14129
14130# Commands used to build a loadable module (assumed same as above if empty)
14131module_cmds=$lt_module_cmds_CXX
14132module_expsym_cmds=$lt_module_expsym_cmds_CXX
14133
14134# Commands to strip libraries.
14135old_striplib=$lt_old_striplib
14136striplib=$lt_striplib
14137
14138# Dependencies to place before the objects being linked to create a
14139# shared library.
14140predep_objects=$lt_predep_objects_CXX
14141
14142# Dependencies to place after the objects being linked to create a
14143# shared library.
14144postdep_objects=$lt_postdep_objects_CXX
14145
14146# Dependencies to place before the objects being linked to create a
14147# shared library.
14148predeps=$lt_predeps_CXX
14149
14150# Dependencies to place after the objects being linked to create a
14151# shared library.
14152postdeps=$lt_postdeps_CXX
14153
14154# The directories searched by this compiler when creating a shared
14155# library
14156compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14157
14158# The library search path used internally by the compiler when linking
14159# a shared library.
14160compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14161
14162# Method to check whether dependent libraries are shared objects.
14163deplibs_check_method=$lt_deplibs_check_method
14164
14165# Command to use when deplibs_check_method == file_magic.
14166file_magic_cmd=$lt_file_magic_cmd
14167
14168# Flag that allows shared libraries with undefined symbols to be built.
14169allow_undefined_flag=$lt_allow_undefined_flag_CXX
14170
14171# Flag that forces no undefined symbols.
14172no_undefined_flag=$lt_no_undefined_flag_CXX
14173
14174# Commands used to finish a libtool library installation in a directory.
14175finish_cmds=$lt_finish_cmds
14176
14177# Same as above, but a single script fragment to be evaled but not shown.
14178finish_eval=$lt_finish_eval
14179
14180# Take the output of nm and produce a listing of raw symbols and C names.
14181global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14182
14183# Transform the output of nm in a proper C declaration
14184global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14185
14186# Transform the output of nm in a C name address pair
14187global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14188
14189# This is the shared library runtime path variable.
14190runpath_var=$runpath_var
14191
14192# This is the shared library path variable.
14193shlibpath_var=$shlibpath_var
14194
14195# Is shlibpath searched before the hard-coded library search path?
14196shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14197
14198# How to hardcode a shared library path into an executable.
14199hardcode_action=$hardcode_action_CXX
14200
14201# Whether we should hardcode library paths into libraries.
14202hardcode_into_libs=$hardcode_into_libs
14203
14204# Flag to hardcode \$libdir into a binary during linking.
14205# This must work even if \$libdir does not exist.
14206hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14207
14208# If ld is used when linking, flag to hardcode \$libdir into
14209# a binary during linking. This must work even if \$libdir does
14210# not exist.
14211hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14212
14213# Whether we need a single -rpath flag with a separated argument.
14214hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14215
14216# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14217# resulting binary.
14218hardcode_direct=$hardcode_direct_CXX
14219
14220# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14221# resulting binary.
14222hardcode_minus_L=$hardcode_minus_L_CXX
14223
14224# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14225# the resulting binary.
14226hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14227
14228# Set to yes if building a shared library automatically hardcodes DIR into the library
14229# and all subsequent libraries and executables linked against it.
14230hardcode_automatic=$hardcode_automatic_CXX
14231
14232# Variables whose values should be saved in libtool wrapper scripts and
14233# restored at relink time.
14234variables_saved_for_relink="$variables_saved_for_relink"
14235
14236# Whether libtool must link a program against all its dependency libraries.
14237link_all_deplibs=$link_all_deplibs_CXX
14238
14239# Compile-time system search path for libraries
14240sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14241
14242# Run-time system search path for libraries
14243sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14244
14245# Fix the shell variable \$srcfile for the compiler.
14246fix_srcfile_path=$lt_fix_srcfile_path
14247
14248# Set to yes if exported symbols are required.
14249always_export_symbols=$always_export_symbols_CXX
14250
14251# The commands to list exported symbols.
14252export_symbols_cmds=$lt_export_symbols_cmds_CXX
14253
14254# The commands to extract the exported symbol list from a shared archive.
14255extract_expsyms_cmds=$lt_extract_expsyms_cmds
14256
14257# Symbols that should not be listed in the preloaded symbols.
14258exclude_expsyms=$lt_exclude_expsyms_CXX
14259
14260# Symbols that must always be exported.
14261include_expsyms=$lt_include_expsyms_CXX
14262
14263# ### END LIBTOOL TAG CONFIG: $tagname
14264
14265__EOF__
14266
14267
14268else
14269  # If there is no Makefile yet, we rely on a make rule to execute
14270  # `config.status --recheck' to rerun these tests and create the
14271  # libtool script then.
14272  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14273  if test -f "$ltmain_in"; then
14274    test -f Makefile && make "$ltmain"
14275  fi
14276fi
14277
14278
14279ac_ext=c
14280ac_cpp='$CPP $CPPFLAGS'
14281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14283ac_compiler_gnu=$ac_cv_c_compiler_gnu
14284
14285CC=$lt_save_CC
14286LDCXX=$LD
14287LD=$lt_save_LD
14288GCC=$lt_save_GCC
14289with_gnu_ldcxx=$with_gnu_ld
14290with_gnu_ld=$lt_save_with_gnu_ld
14291lt_cv_path_LDCXX=$lt_cv_path_LD
14292lt_cv_path_LD=$lt_save_path_LD
14293lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14294lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14295
14296	else
14297	  tagname=""
14298	fi
14299	;;
14300
14301      F77)
14302	if test -n "$F77" && test "X$F77" != "Xno"; then
14303
14304ac_ext=f
14305ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14306ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14307ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14308
14309
14310archive_cmds_need_lc_F77=no
14311allow_undefined_flag_F77=
14312always_export_symbols_F77=no
14313archive_expsym_cmds_F77=
14314export_dynamic_flag_spec_F77=
14315hardcode_direct_F77=no
14316hardcode_libdir_flag_spec_F77=
14317hardcode_libdir_flag_spec_ld_F77=
14318hardcode_libdir_separator_F77=
14319hardcode_minus_L_F77=no
14320hardcode_automatic_F77=no
14321module_cmds_F77=
14322module_expsym_cmds_F77=
14323link_all_deplibs_F77=unknown
14324old_archive_cmds_F77=$old_archive_cmds
14325no_undefined_flag_F77=
14326whole_archive_flag_spec_F77=
14327enable_shared_with_static_runtimes_F77=no
14328
14329# Source file extension for f77 test sources.
14330ac_ext=f
14331
14332# Object file extension for compiled f77 test sources.
14333objext=o
14334objext_F77=$objext
14335
14336# Code to be used in simple compile tests
14337lt_simple_compile_test_code="\
14338      subroutine t
14339      return
14340      end
14341"
14342
14343# Code to be used in simple link tests
14344lt_simple_link_test_code="\
14345      program t
14346      end
14347"
14348
14349# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14350
14351# If no C compiler was specified, use CC.
14352LTCC=${LTCC-"$CC"}
14353
14354# If no C compiler flags were specified, use CFLAGS.
14355LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14356
14357# Allow CC to be a program name with arguments.
14358compiler=$CC
14359
14360
14361# save warnings/boilerplate of simple test code
14362ac_outfile=conftest.$ac_objext
14363echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14364eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14365_lt_compiler_boilerplate=`cat conftest.err`
14366$rm conftest*
14367
14368ac_outfile=conftest.$ac_objext
14369echo "$lt_simple_link_test_code" >conftest.$ac_ext
14370eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14371_lt_linker_boilerplate=`cat conftest.err`
14372$rm -r conftest*
14373
14374
14375# Allow CC to be a program name with arguments.
14376lt_save_CC="$CC"
14377CC=${F77-"f77"}
14378compiler=$CC
14379compiler_F77=$CC
14380for cc_temp in $compiler""; do
14381  case $cc_temp in
14382    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14383    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14384    \-*) ;;
14385    *) break;;
14386  esac
14387done
14388cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14389
14390
14391{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14392echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14393{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14394echo "${ECHO_T}$can_build_shared" >&6; }
14395
14396{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14397echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14398test "$can_build_shared" = "no" && enable_shared=no
14399
14400# On AIX, shared libraries and static libraries use the same namespace, and
14401# are all built from PIC.
14402case $host_os in
14403aix3*)
14404  test "$enable_shared" = yes && enable_static=no
14405  if test -n "$RANLIB"; then
14406    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14407    postinstall_cmds='$RANLIB $lib'
14408  fi
14409  ;;
14410aix[4-9]*)
14411  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14412    test "$enable_shared" = yes && enable_static=no
14413  fi
14414  ;;
14415esac
14416{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14417echo "${ECHO_T}$enable_shared" >&6; }
14418
14419{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14420echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14421# Make sure either enable_shared or enable_static is yes.
14422test "$enable_shared" = yes || enable_static=yes
14423{ echo "$as_me:$LINENO: result: $enable_static" >&5
14424echo "${ECHO_T}$enable_static" >&6; }
14425
14426GCC_F77="$G77"
14427LD_F77="$LD"
14428
14429lt_prog_compiler_wl_F77=
14430lt_prog_compiler_pic_F77=
14431lt_prog_compiler_static_F77=
14432
14433{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14434echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14435
14436  if test "$GCC" = yes; then
14437    lt_prog_compiler_wl_F77='-Wl,'
14438    lt_prog_compiler_static_F77='-static'
14439
14440    case $host_os in
14441      aix*)
14442      # All AIX code is PIC.
14443      if test "$host_cpu" = ia64; then
14444	# AIX 5 now supports IA64 processor
14445	lt_prog_compiler_static_F77='-Bstatic'
14446      fi
14447      ;;
14448
14449    amigaos*)
14450      # FIXME: we need at least 68020 code to build shared libraries, but
14451      # adding the `-m68020' flag to GCC prevents building anything better,
14452      # like `-m68040'.
14453      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14454      ;;
14455
14456    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14457      # PIC is the default for these OSes.
14458      ;;
14459
14460    mingw* | cygwin* | pw32* | os2*)
14461      # This hack is so that the source file can tell whether it is being
14462      # built for inclusion in a dll (and should export symbols for example).
14463      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14464      # (--disable-auto-import) libraries
14465      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14466      ;;
14467
14468    darwin* | rhapsody*)
14469      # PIC is the default on this platform
14470      # Common symbols not allowed in MH_DYLIB files
14471      lt_prog_compiler_pic_F77='-fno-common'
14472      ;;
14473
14474    interix[3-9]*)
14475      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14476      # Instead, we relocate shared libraries at runtime.
14477      ;;
14478
14479    msdosdjgpp*)
14480      # Just because we use GCC doesn't mean we suddenly get shared libraries
14481      # on systems that don't support them.
14482      lt_prog_compiler_can_build_shared_F77=no
14483      enable_shared=no
14484      ;;
14485
14486    sysv4*MP*)
14487      if test -d /usr/nec; then
14488	lt_prog_compiler_pic_F77=-Kconform_pic
14489      fi
14490      ;;
14491
14492    hpux*)
14493      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14494      # not for PA HP-UX.
14495      case $host_cpu in
14496      hppa*64*|ia64*)
14497	# +Z the default
14498	;;
14499      *)
14500	lt_prog_compiler_pic_F77='-fPIC'
14501	;;
14502      esac
14503      ;;
14504
14505    *)
14506      lt_prog_compiler_pic_F77='-fPIC'
14507      ;;
14508    esac
14509  else
14510    # PORTME Check for flag to pass linker flags through the system compiler.
14511    case $host_os in
14512    aix*)
14513      lt_prog_compiler_wl_F77='-Wl,'
14514      if test "$host_cpu" = ia64; then
14515	# AIX 5 now supports IA64 processor
14516	lt_prog_compiler_static_F77='-Bstatic'
14517      else
14518	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14519      fi
14520      ;;
14521      darwin*)
14522        # PIC is the default on this platform
14523        # Common symbols not allowed in MH_DYLIB files
14524       case $cc_basename in
14525         xlc*)
14526         lt_prog_compiler_pic_F77='-qnocommon'
14527         lt_prog_compiler_wl_F77='-Wl,'
14528         ;;
14529       esac
14530       ;;
14531
14532    mingw* | cygwin* | pw32* | os2*)
14533      # This hack is so that the source file can tell whether it is being
14534      # built for inclusion in a dll (and should export symbols for example).
14535      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14536      ;;
14537
14538    hpux9* | hpux10* | hpux11*)
14539      lt_prog_compiler_wl_F77='-Wl,'
14540      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14541      # not for PA HP-UX.
14542      case $host_cpu in
14543      hppa*64*|ia64*)
14544	# +Z the default
14545	;;
14546      *)
14547	lt_prog_compiler_pic_F77='+Z'
14548	;;
14549      esac
14550      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14551      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14552      ;;
14553
14554    irix5* | irix6* | nonstopux*)
14555      lt_prog_compiler_wl_F77='-Wl,'
14556      # PIC (with -KPIC) is the default.
14557      lt_prog_compiler_static_F77='-non_shared'
14558      ;;
14559
14560    newsos6)
14561      lt_prog_compiler_pic_F77='-KPIC'
14562      lt_prog_compiler_static_F77='-Bstatic'
14563      ;;
14564
14565    linux* | k*bsd*-gnu)
14566      case $cc_basename in
14567      icc* | ecc*)
14568	lt_prog_compiler_wl_F77='-Wl,'
14569	lt_prog_compiler_pic_F77='-KPIC'
14570	lt_prog_compiler_static_F77='-static'
14571        ;;
14572      pgcc* | pgf77* | pgf90* | pgf95*)
14573        # Portland Group compilers (*not* the Pentium gcc compiler,
14574	# which looks to be a dead project)
14575	lt_prog_compiler_wl_F77='-Wl,'
14576	lt_prog_compiler_pic_F77='-fpic'
14577	lt_prog_compiler_static_F77='-Bstatic'
14578        ;;
14579      ccc*)
14580        lt_prog_compiler_wl_F77='-Wl,'
14581        # All Alpha code is PIC.
14582        lt_prog_compiler_static_F77='-non_shared'
14583        ;;
14584      *)
14585        case `$CC -V 2>&1 | sed 5q` in
14586	*Sun\ C*)
14587	  # Sun C 5.9
14588	  lt_prog_compiler_pic_F77='-KPIC'
14589	  lt_prog_compiler_static_F77='-Bstatic'
14590	  lt_prog_compiler_wl_F77='-Wl,'
14591	  ;;
14592	*Sun\ F*)
14593	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14594	  lt_prog_compiler_pic_F77='-KPIC'
14595	  lt_prog_compiler_static_F77='-Bstatic'
14596	  lt_prog_compiler_wl_F77=''
14597	  ;;
14598	esac
14599	;;
14600      esac
14601      ;;
14602
14603    osf3* | osf4* | osf5*)
14604      lt_prog_compiler_wl_F77='-Wl,'
14605      # All OSF/1 code is PIC.
14606      lt_prog_compiler_static_F77='-non_shared'
14607      ;;
14608
14609    rdos*)
14610      lt_prog_compiler_static_F77='-non_shared'
14611      ;;
14612
14613    solaris*)
14614      lt_prog_compiler_pic_F77='-KPIC'
14615      lt_prog_compiler_static_F77='-Bstatic'
14616      case $cc_basename in
14617      f77* | f90* | f95*)
14618	lt_prog_compiler_wl_F77='-Qoption ld ';;
14619      *)
14620	lt_prog_compiler_wl_F77='-Wl,';;
14621      esac
14622      ;;
14623
14624    sunos4*)
14625      lt_prog_compiler_wl_F77='-Qoption ld '
14626      lt_prog_compiler_pic_F77='-PIC'
14627      lt_prog_compiler_static_F77='-Bstatic'
14628      ;;
14629
14630    sysv4 | sysv4.2uw2* | sysv4.3*)
14631      lt_prog_compiler_wl_F77='-Wl,'
14632      lt_prog_compiler_pic_F77='-KPIC'
14633      lt_prog_compiler_static_F77='-Bstatic'
14634      ;;
14635
14636    sysv4*MP*)
14637      if test -d /usr/nec ;then
14638	lt_prog_compiler_pic_F77='-Kconform_pic'
14639	lt_prog_compiler_static_F77='-Bstatic'
14640      fi
14641      ;;
14642
14643    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14644      lt_prog_compiler_wl_F77='-Wl,'
14645      lt_prog_compiler_pic_F77='-KPIC'
14646      lt_prog_compiler_static_F77='-Bstatic'
14647      ;;
14648
14649    unicos*)
14650      lt_prog_compiler_wl_F77='-Wl,'
14651      lt_prog_compiler_can_build_shared_F77=no
14652      ;;
14653
14654    uts4*)
14655      lt_prog_compiler_pic_F77='-pic'
14656      lt_prog_compiler_static_F77='-Bstatic'
14657      ;;
14658
14659    *)
14660      lt_prog_compiler_can_build_shared_F77=no
14661      ;;
14662    esac
14663  fi
14664
14665{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14666echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14667
14668#
14669# Check to make sure the PIC flag actually works.
14670#
14671if test -n "$lt_prog_compiler_pic_F77"; then
14672
14673{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14674echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14675if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14676  echo $ECHO_N "(cached) $ECHO_C" >&6
14677else
14678  lt_cv_prog_compiler_pic_works_F77=no
14679  ac_outfile=conftest.$ac_objext
14680   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14681   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14682   # Insert the option either (1) after the last *FLAGS variable, or
14683   # (2) before a word containing "conftest.", or (3) at the end.
14684   # Note that $ac_compile itself does not contain backslashes and begins
14685   # with a dollar sign (not a hyphen), so the echo should work correctly.
14686   # The option is referenced via a variable to avoid confusing sed.
14687   lt_compile=`echo "$ac_compile" | $SED \
14688   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14689   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14690   -e 's:$: $lt_compiler_flag:'`
14691   (eval echo "\"\$as_me:14691: $lt_compile\"" >&5)
14692   (eval "$lt_compile" 2>conftest.err)
14693   ac_status=$?
14694   cat conftest.err >&5
14695   echo "$as_me:14695: \$? = $ac_status" >&5
14696   if (exit $ac_status) && test -s "$ac_outfile"; then
14697     # The compiler can only warn and ignore the option if not recognized
14698     # So say no if there are warnings other than the usual output.
14699     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14700     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14701     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14702       lt_cv_prog_compiler_pic_works_F77=yes
14703     fi
14704   fi
14705   $rm conftest*
14706
14707fi
14708{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14709echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14710
14711if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14712    case $lt_prog_compiler_pic_F77 in
14713     "" | " "*) ;;
14714     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14715     esac
14716else
14717    lt_prog_compiler_pic_F77=
14718     lt_prog_compiler_can_build_shared_F77=no
14719fi
14720
14721fi
14722case $host_os in
14723  # For platforms which do not support PIC, -DPIC is meaningless:
14724  *djgpp*)
14725    lt_prog_compiler_pic_F77=
14726    ;;
14727  *)
14728    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14729    ;;
14730esac
14731
14732#
14733# Check to make sure the static flag actually works.
14734#
14735wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14736{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14737echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14738if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14739  echo $ECHO_N "(cached) $ECHO_C" >&6
14740else
14741  lt_cv_prog_compiler_static_works_F77=no
14742   save_LDFLAGS="$LDFLAGS"
14743   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14744   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14745   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14746     # The linker can only warn and ignore the option if not recognized
14747     # So say no if there are warnings
14748     if test -s conftest.err; then
14749       # Append any errors to the config.log.
14750       cat conftest.err 1>&5
14751       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14752       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14753       if diff conftest.exp conftest.er2 >/dev/null; then
14754         lt_cv_prog_compiler_static_works_F77=yes
14755       fi
14756     else
14757       lt_cv_prog_compiler_static_works_F77=yes
14758     fi
14759   fi
14760   $rm -r conftest*
14761   LDFLAGS="$save_LDFLAGS"
14762
14763fi
14764{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14765echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14766
14767if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14768    :
14769else
14770    lt_prog_compiler_static_F77=
14771fi
14772
14773
14774{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14775echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14776if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14777  echo $ECHO_N "(cached) $ECHO_C" >&6
14778else
14779  lt_cv_prog_compiler_c_o_F77=no
14780   $rm -r conftest 2>/dev/null
14781   mkdir conftest
14782   cd conftest
14783   mkdir out
14784   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14785
14786   lt_compiler_flag="-o out/conftest2.$ac_objext"
14787   # Insert the option either (1) after the last *FLAGS variable, or
14788   # (2) before a word containing "conftest.", or (3) at the end.
14789   # Note that $ac_compile itself does not contain backslashes and begins
14790   # with a dollar sign (not a hyphen), so the echo should work correctly.
14791   lt_compile=`echo "$ac_compile" | $SED \
14792   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14793   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14794   -e 's:$: $lt_compiler_flag:'`
14795   (eval echo "\"\$as_me:14795: $lt_compile\"" >&5)
14796   (eval "$lt_compile" 2>out/conftest.err)
14797   ac_status=$?
14798   cat out/conftest.err >&5
14799   echo "$as_me:14799: \$? = $ac_status" >&5
14800   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14801   then
14802     # The compiler can only warn and ignore the option if not recognized
14803     # So say no if there are warnings
14804     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14805     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14806     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14807       lt_cv_prog_compiler_c_o_F77=yes
14808     fi
14809   fi
14810   chmod u+w . 2>&5
14811   $rm conftest*
14812   # SGI C++ compiler will create directory out/ii_files/ for
14813   # template instantiation
14814   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14815   $rm out/* && rmdir out
14816   cd ..
14817   rmdir conftest
14818   $rm conftest*
14819
14820fi
14821{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14822echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14823
14824
14825hard_links="nottested"
14826if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14827  # do not overwrite the value of need_locks provided by the user
14828  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14829echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14830  hard_links=yes
14831  $rm conftest*
14832  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14833  touch conftest.a
14834  ln conftest.a conftest.b 2>&5 || hard_links=no
14835  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14836  { echo "$as_me:$LINENO: result: $hard_links" >&5
14837echo "${ECHO_T}$hard_links" >&6; }
14838  if test "$hard_links" = no; then
14839    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14840echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14841    need_locks=warn
14842  fi
14843else
14844  need_locks=no
14845fi
14846
14847{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14848echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14849
14850  runpath_var=
14851  allow_undefined_flag_F77=
14852  enable_shared_with_static_runtimes_F77=no
14853  archive_cmds_F77=
14854  archive_expsym_cmds_F77=
14855  old_archive_From_new_cmds_F77=
14856  old_archive_from_expsyms_cmds_F77=
14857  export_dynamic_flag_spec_F77=
14858  whole_archive_flag_spec_F77=
14859  thread_safe_flag_spec_F77=
14860  hardcode_libdir_flag_spec_F77=
14861  hardcode_libdir_flag_spec_ld_F77=
14862  hardcode_libdir_separator_F77=
14863  hardcode_direct_F77=no
14864  hardcode_minus_L_F77=no
14865  hardcode_shlibpath_var_F77=unsupported
14866  link_all_deplibs_F77=unknown
14867  hardcode_automatic_F77=no
14868  module_cmds_F77=
14869  module_expsym_cmds_F77=
14870  always_export_symbols_F77=no
14871  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14872  # include_expsyms should be a list of space-separated symbols to be *always*
14873  # included in the symbol list
14874  include_expsyms_F77=
14875  # exclude_expsyms can be an extended regexp of symbols to exclude
14876  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14877  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14878  # as well as any symbol that contains `d'.
14879  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14880  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14881  # platforms (ab)use it in PIC code, but their linkers get confused if
14882  # the symbol is explicitly referenced.  Since portable code cannot
14883  # rely on this symbol name, it's probably fine to never include it in
14884  # preloaded symbol tables.
14885  # Exclude shared library initialization/finalization symbols.
14886  extract_expsyms_cmds=
14887  # Just being paranoid about ensuring that cc_basename is set.
14888  for cc_temp in $compiler""; do
14889  case $cc_temp in
14890    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14891    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14892    \-*) ;;
14893    *) break;;
14894  esac
14895done
14896cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14897
14898  case $host_os in
14899  cygwin* | mingw* | pw32*)
14900    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14901    # When not using gcc, we currently assume that we are using
14902    # Microsoft Visual C++.
14903    if test "$GCC" != yes; then
14904      with_gnu_ld=no
14905    fi
14906    ;;
14907  interix*)
14908    # we just hope/assume this is gcc and not c89 (= MSVC++)
14909    with_gnu_ld=yes
14910    ;;
14911  openbsd*)
14912    with_gnu_ld=no
14913    ;;
14914  esac
14915
14916  ld_shlibs_F77=yes
14917  if test "$with_gnu_ld" = yes; then
14918    # If archive_cmds runs LD, not CC, wlarc should be empty
14919    wlarc='${wl}'
14920
14921    # Set some defaults for GNU ld with shared library support. These
14922    # are reset later if shared libraries are not supported. Putting them
14923    # here allows them to be overridden if necessary.
14924    runpath_var=LD_RUN_PATH
14925    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14926    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14927    # ancient GNU ld didn't support --whole-archive et. al.
14928    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14929	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14930      else
14931  	whole_archive_flag_spec_F77=
14932    fi
14933    supports_anon_versioning=no
14934    case `$LD -v 2>/dev/null` in
14935      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14936      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14937      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14938      *\ 2.11.*) ;; # other 2.11 versions
14939      *) supports_anon_versioning=yes ;;
14940    esac
14941
14942    # See if GNU ld supports shared libraries.
14943    case $host_os in
14944    aix[3-9]*)
14945      # On AIX/PPC, the GNU linker is very broken
14946      if test "$host_cpu" != ia64; then
14947	ld_shlibs_F77=no
14948	cat <<EOF 1>&2
14949
14950*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14951*** to be unable to reliably create shared libraries on AIX.
14952*** Therefore, libtool is disabling shared libraries support.  If you
14953*** really care for shared libraries, you may want to modify your PATH
14954*** so that a non-GNU linker is found, and then restart.
14955
14956EOF
14957      fi
14958      ;;
14959
14960    amigaos*)
14961      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)'
14962      hardcode_libdir_flag_spec_F77='-L$libdir'
14963      hardcode_minus_L_F77=yes
14964
14965      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14966      # that the semantics of dynamic libraries on AmigaOS, at least up
14967      # to version 4, is to share data among multiple programs linked
14968      # with the same dynamic library.  Since this doesn't match the
14969      # behavior of shared libraries on other platforms, we can't use
14970      # them.
14971      ld_shlibs_F77=no
14972      ;;
14973
14974    beos*)
14975      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14976	allow_undefined_flag_F77=unsupported
14977	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14978	# support --undefined.  This deserves some investigation.  FIXME
14979	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14980      else
14981	ld_shlibs_F77=no
14982      fi
14983      ;;
14984
14985    cygwin* | mingw* | pw32*)
14986      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14987      # as there is no search path for DLLs.
14988      hardcode_libdir_flag_spec_F77='-L$libdir'
14989      allow_undefined_flag_F77=unsupported
14990      always_export_symbols_F77=no
14991      enable_shared_with_static_runtimes_F77=yes
14992      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14993
14994      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14995        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14996	# If the export-symbols file already is a .def file (1st line
14997	# is EXPORTS), use it as is; otherwise, prepend...
14998	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14999	  cp $export_symbols $output_objdir/$soname.def;
15000	else
15001	  echo EXPORTS > $output_objdir/$soname.def;
15002	  cat $export_symbols >> $output_objdir/$soname.def;
15003	fi~
15004	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15005      else
15006	ld_shlibs_F77=no
15007      fi
15008      ;;
15009
15010    interix[3-9]*)
15011      hardcode_direct_F77=no
15012      hardcode_shlibpath_var_F77=no
15013      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15014      export_dynamic_flag_spec_F77='${wl}-E'
15015      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15016      # Instead, shared libraries are loaded at an image base (0x10000000 by
15017      # default) and relocated if they conflict, which is a slow very memory
15018      # consuming and fragmenting process.  To avoid this, we pick a random,
15019      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15020      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15021      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'
15022      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'
15023      ;;
15024
15025    gnu* | linux* | k*bsd*-gnu)
15026      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15027	tmp_addflag=
15028	case $cc_basename,$host_cpu in
15029	pgcc*)				# Portland Group C compiler
15030	  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'
15031	  tmp_addflag=' $pic_flag'
15032	  ;;
15033	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15034	  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'
15035	  tmp_addflag=' $pic_flag -Mnomain' ;;
15036	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15037	  tmp_addflag=' -i_dynamic' ;;
15038	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15039	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15040	ifc* | ifort*)			# Intel Fortran compiler
15041	  tmp_addflag=' -nofor_main' ;;
15042	esac
15043	case `$CC -V 2>&1 | sed 5q` in
15044	*Sun\ C*)			# Sun C 5.9
15045	  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'
15046	  tmp_sharedflag='-G' ;;
15047	*Sun\ F*)			# Sun Fortran 8.3
15048	  tmp_sharedflag='-G' ;;
15049	*)
15050	  tmp_sharedflag='-shared' ;;
15051	esac
15052	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15053
15054	if test $supports_anon_versioning = yes; then
15055	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15056  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15057  $echo "local: *; };" >> $output_objdir/$libname.ver~
15058	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15059	fi
15060	link_all_deplibs_F77=no
15061      else
15062	ld_shlibs_F77=no
15063      fi
15064      ;;
15065
15066    netbsd* | netbsdelf*-gnu)
15067      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15068	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15069	wlarc=
15070      else
15071	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15072	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15073      fi
15074      ;;
15075
15076    solaris*)
15077      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15078	ld_shlibs_F77=no
15079	cat <<EOF 1>&2
15080
15081*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15082*** create shared libraries on Solaris systems.  Therefore, libtool
15083*** is disabling shared libraries support.  We urge you to upgrade GNU
15084*** binutils to release 2.9.1 or newer.  Another option is to modify
15085*** your PATH or compiler configuration so that the native linker is
15086*** used, and then restart.
15087
15088EOF
15089      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15090	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15091	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15092      else
15093	ld_shlibs_F77=no
15094      fi
15095      ;;
15096
15097    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15098      case `$LD -v 2>&1` in
15099        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15100	ld_shlibs_F77=no
15101	cat <<_LT_EOF 1>&2
15102
15103*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15104*** reliably create shared libraries on SCO systems.  Therefore, libtool
15105*** is disabling shared libraries support.  We urge you to upgrade GNU
15106*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15107*** your PATH or compiler configuration so that the native linker is
15108*** used, and then restart.
15109
15110_LT_EOF
15111	;;
15112	*)
15113	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15114	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15115	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15116	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15117	  else
15118	    ld_shlibs_F77=no
15119	  fi
15120	;;
15121      esac
15122      ;;
15123
15124    sunos4*)
15125      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15126      wlarc=
15127      hardcode_direct_F77=yes
15128      hardcode_shlibpath_var_F77=no
15129      ;;
15130
15131    *)
15132      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15133	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15134	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15135      else
15136	ld_shlibs_F77=no
15137      fi
15138      ;;
15139    esac
15140
15141    if test "$ld_shlibs_F77" = no; then
15142      runpath_var=
15143      hardcode_libdir_flag_spec_F77=
15144      export_dynamic_flag_spec_F77=
15145      whole_archive_flag_spec_F77=
15146    fi
15147  else
15148    # PORTME fill in a description of your system's linker (not GNU ld)
15149    case $host_os in
15150    aix3*)
15151      allow_undefined_flag_F77=unsupported
15152      always_export_symbols_F77=yes
15153      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'
15154      # Note: this linker hardcodes the directories in LIBPATH if there
15155      # are no directories specified by -L.
15156      hardcode_minus_L_F77=yes
15157      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15158	# Neither direct hardcoding nor static linking is supported with a
15159	# broken collect2.
15160	hardcode_direct_F77=unsupported
15161      fi
15162      ;;
15163
15164    aix[4-9]*)
15165      if test "$host_cpu" = ia64; then
15166	# On IA64, the linker does run time linking by default, so we don't
15167	# have to do anything special.
15168	aix_use_runtimelinking=no
15169	exp_sym_flag='-Bexport'
15170	no_entry_flag=""
15171      else
15172	# If we're using GNU nm, then we don't want the "-C" option.
15173	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15174	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15175	  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'
15176	else
15177	  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'
15178	fi
15179	aix_use_runtimelinking=no
15180
15181	# Test if we are trying to use run time linking or normal
15182	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15183	# need to do runtime linking.
15184	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15185	  for ld_flag in $LDFLAGS; do
15186  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15187  	    aix_use_runtimelinking=yes
15188  	    break
15189  	  fi
15190	  done
15191	  ;;
15192	esac
15193
15194	exp_sym_flag='-bexport'
15195	no_entry_flag='-bnoentry'
15196      fi
15197
15198      # When large executables or shared objects are built, AIX ld can
15199      # have problems creating the table of contents.  If linking a library
15200      # or program results in "error TOC overflow" add -mminimal-toc to
15201      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15202      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15203
15204      archive_cmds_F77=''
15205      hardcode_direct_F77=yes
15206      hardcode_libdir_separator_F77=':'
15207      link_all_deplibs_F77=yes
15208
15209      if test "$GCC" = yes; then
15210	case $host_os in aix4.[012]|aix4.[012].*)
15211	# We only want to do this on AIX 4.2 and lower, the check
15212	# below for broken collect2 doesn't work under 4.3+
15213	  collect2name=`${CC} -print-prog-name=collect2`
15214	  if test -f "$collect2name" && \
15215  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15216	  then
15217  	  # We have reworked collect2
15218  	  :
15219	  else
15220  	  # We have old collect2
15221  	  hardcode_direct_F77=unsupported
15222  	  # It fails to find uninstalled libraries when the uninstalled
15223  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15224  	  # to unsupported forces relinking
15225  	  hardcode_minus_L_F77=yes
15226  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15227  	  hardcode_libdir_separator_F77=
15228	  fi
15229	  ;;
15230	esac
15231	shared_flag='-shared'
15232	if test "$aix_use_runtimelinking" = yes; then
15233	  shared_flag="$shared_flag "'${wl}-G'
15234	fi
15235      else
15236	# not using gcc
15237	if test "$host_cpu" = ia64; then
15238  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15239  	# chokes on -Wl,-G. The following line is correct:
15240	  shared_flag='-G'
15241	else
15242	  if test "$aix_use_runtimelinking" = yes; then
15243	    shared_flag='${wl}-G'
15244	  else
15245	    shared_flag='${wl}-bM:SRE'
15246	  fi
15247	fi
15248      fi
15249
15250      # It seems that -bexpall does not export symbols beginning with
15251      # underscore (_), so it is better to generate a list of symbols to export.
15252      always_export_symbols_F77=yes
15253      if test "$aix_use_runtimelinking" = yes; then
15254	# Warning - without using the other runtime loading flags (-brtl),
15255	# -berok will link without error, but may produce a broken library.
15256	allow_undefined_flag_F77='-berok'
15257       # Determine the default libpath from the value encoded in an empty executable.
15258       cat >conftest.$ac_ext <<_ACEOF
15259      program main
15260
15261      end
15262_ACEOF
15263rm -f conftest.$ac_objext conftest$ac_exeext
15264if { (ac_try="$ac_link"
15265case "(($ac_try" in
15266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267  *) ac_try_echo=$ac_try;;
15268esac
15269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270  (eval "$ac_link") 2>conftest.er1
15271  ac_status=$?
15272  grep -v '^ *+' conftest.er1 >conftest.err
15273  rm -f conftest.er1
15274  cat conftest.err >&5
15275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276  (exit $ac_status); } && {
15277	 test -z "$ac_f77_werror_flag" ||
15278	 test ! -s conftest.err
15279       } && test -s conftest$ac_exeext &&
15280       $as_test_x conftest$ac_exeext; then
15281
15282lt_aix_libpath_sed='
15283    /Import File Strings/,/^$/ {
15284	/^0/ {
15285	    s/^0  *\(.*\)$/\1/
15286	    p
15287	}
15288    }'
15289aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15290# Check for a 64-bit object if we didn't find anything.
15291if test -z "$aix_libpath"; then
15292  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15293fi
15294else
15295  echo "$as_me: failed program was:" >&5
15296sed 's/^/| /' conftest.$ac_ext >&5
15297
15298
15299fi
15300
15301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15302      conftest$ac_exeext conftest.$ac_ext
15303if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15304
15305       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15306	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"
15307       else
15308	if test "$host_cpu" = ia64; then
15309	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15310	  allow_undefined_flag_F77="-z nodefs"
15311	  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"
15312	else
15313	 # Determine the default libpath from the value encoded in an empty executable.
15314	 cat >conftest.$ac_ext <<_ACEOF
15315      program main
15316
15317      end
15318_ACEOF
15319rm -f conftest.$ac_objext conftest$ac_exeext
15320if { (ac_try="$ac_link"
15321case "(($ac_try" in
15322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323  *) ac_try_echo=$ac_try;;
15324esac
15325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326  (eval "$ac_link") 2>conftest.er1
15327  ac_status=$?
15328  grep -v '^ *+' conftest.er1 >conftest.err
15329  rm -f conftest.er1
15330  cat conftest.err >&5
15331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332  (exit $ac_status); } && {
15333	 test -z "$ac_f77_werror_flag" ||
15334	 test ! -s conftest.err
15335       } && test -s conftest$ac_exeext &&
15336       $as_test_x conftest$ac_exeext; then
15337
15338lt_aix_libpath_sed='
15339    /Import File Strings/,/^$/ {
15340	/^0/ {
15341	    s/^0  *\(.*\)$/\1/
15342	    p
15343	}
15344    }'
15345aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15346# Check for a 64-bit object if we didn't find anything.
15347if test -z "$aix_libpath"; then
15348  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15349fi
15350else
15351  echo "$as_me: failed program was:" >&5
15352sed 's/^/| /' conftest.$ac_ext >&5
15353
15354
15355fi
15356
15357rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15358      conftest$ac_exeext conftest.$ac_ext
15359if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15360
15361	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15362	  # Warning - without using the other run time loading flags,
15363	  # -berok will link without error, but may produce a broken library.
15364	  no_undefined_flag_F77=' ${wl}-bernotok'
15365	  allow_undefined_flag_F77=' ${wl}-berok'
15366	  # Exported symbols can be pulled into shared objects from archives
15367	  whole_archive_flag_spec_F77='$convenience'
15368	  archive_cmds_need_lc_F77=yes
15369	  # This is similar to how AIX traditionally builds its shared libraries.
15370	  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'
15371	fi
15372      fi
15373      ;;
15374
15375    amigaos*)
15376      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)'
15377      hardcode_libdir_flag_spec_F77='-L$libdir'
15378      hardcode_minus_L_F77=yes
15379      # see comment about different semantics on the GNU ld section
15380      ld_shlibs_F77=no
15381      ;;
15382
15383    bsdi[45]*)
15384      export_dynamic_flag_spec_F77=-rdynamic
15385      ;;
15386
15387    cygwin* | mingw* | pw32*)
15388      # When not using gcc, we currently assume that we are using
15389      # Microsoft Visual C++.
15390      # hardcode_libdir_flag_spec is actually meaningless, as there is
15391      # no search path for DLLs.
15392      hardcode_libdir_flag_spec_F77=' '
15393      allow_undefined_flag_F77=unsupported
15394      # Tell ltmain to make .lib files, not .a files.
15395      libext=lib
15396      # Tell ltmain to make .dll files, not .so files.
15397      shrext_cmds=".dll"
15398      # FIXME: Setting linknames here is a bad hack.
15399      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15400      # The linker will automatically build a .lib file if we build a DLL.
15401      old_archive_From_new_cmds_F77='true'
15402      # FIXME: Should let the user specify the lib program.
15403      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15404      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15405      enable_shared_with_static_runtimes_F77=yes
15406      ;;
15407
15408    darwin* | rhapsody*)
15409      case $host_os in
15410        rhapsody* | darwin1.[012])
15411         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15412         ;;
15413       *) # Darwin 1.3 on
15414         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15415           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15416         else
15417           case ${MACOSX_DEPLOYMENT_TARGET} in
15418             10.[012])
15419               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15420               ;;
15421             10.*)
15422               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15423               ;;
15424           esac
15425         fi
15426         ;;
15427      esac
15428      archive_cmds_need_lc_F77=no
15429      hardcode_direct_F77=no
15430      hardcode_automatic_F77=yes
15431      hardcode_shlibpath_var_F77=unsupported
15432      whole_archive_flag_spec_F77=''
15433      link_all_deplibs_F77=yes
15434    if test "$GCC" = yes ; then
15435    	output_verbose_link_cmd='echo'
15436        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}"
15437        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15438        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}"
15439        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}"
15440    else
15441      case $cc_basename in
15442        xlc*)
15443         output_verbose_link_cmd='echo'
15444         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15445         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15446          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15447         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}'
15448          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}'
15449          ;;
15450       *)
15451         ld_shlibs_F77=no
15452          ;;
15453      esac
15454    fi
15455      ;;
15456
15457    dgux*)
15458      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15459      hardcode_libdir_flag_spec_F77='-L$libdir'
15460      hardcode_shlibpath_var_F77=no
15461      ;;
15462
15463    freebsd1*)
15464      ld_shlibs_F77=no
15465      ;;
15466
15467    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15468    # support.  Future versions do this automatically, but an explicit c++rt0.o
15469    # does not break anything, and helps significantly (at the cost of a little
15470    # extra space).
15471    freebsd2.2*)
15472      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15473      hardcode_libdir_flag_spec_F77='-R$libdir'
15474      hardcode_direct_F77=yes
15475      hardcode_shlibpath_var_F77=no
15476      ;;
15477
15478    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15479    freebsd2*)
15480      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15481      hardcode_direct_F77=yes
15482      hardcode_minus_L_F77=yes
15483      hardcode_shlibpath_var_F77=no
15484      ;;
15485
15486    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15487    freebsd* | dragonfly*)
15488      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15489      hardcode_libdir_flag_spec_F77='-R$libdir'
15490      hardcode_direct_F77=yes
15491      hardcode_shlibpath_var_F77=no
15492      ;;
15493
15494    hpux9*)
15495      if test "$GCC" = yes; then
15496	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'
15497      else
15498	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'
15499      fi
15500      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15501      hardcode_libdir_separator_F77=:
15502      hardcode_direct_F77=yes
15503
15504      # hardcode_minus_L: Not really in the search PATH,
15505      # but as the default location of the library.
15506      hardcode_minus_L_F77=yes
15507      export_dynamic_flag_spec_F77='${wl}-E'
15508      ;;
15509
15510    hpux10*)
15511      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15512	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15513      else
15514	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15515      fi
15516      if test "$with_gnu_ld" = no; then
15517	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15518	hardcode_libdir_separator_F77=:
15519
15520	hardcode_direct_F77=yes
15521	export_dynamic_flag_spec_F77='${wl}-E'
15522
15523	# hardcode_minus_L: Not really in the search PATH,
15524	# but as the default location of the library.
15525	hardcode_minus_L_F77=yes
15526      fi
15527      ;;
15528
15529    hpux11*)
15530      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15531	case $host_cpu in
15532	hppa*64*)
15533	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15534	  ;;
15535	ia64*)
15536	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15537	  ;;
15538	*)
15539	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15540	  ;;
15541	esac
15542      else
15543	case $host_cpu in
15544	hppa*64*)
15545	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15546	  ;;
15547	ia64*)
15548	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15549	  ;;
15550	*)
15551	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15552	  ;;
15553	esac
15554      fi
15555      if test "$with_gnu_ld" = no; then
15556	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15557	hardcode_libdir_separator_F77=:
15558
15559	case $host_cpu in
15560	hppa*64*|ia64*)
15561	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15562	  hardcode_direct_F77=no
15563	  hardcode_shlibpath_var_F77=no
15564	  ;;
15565	*)
15566	  hardcode_direct_F77=yes
15567	  export_dynamic_flag_spec_F77='${wl}-E'
15568
15569	  # hardcode_minus_L: Not really in the search PATH,
15570	  # but as the default location of the library.
15571	  hardcode_minus_L_F77=yes
15572	  ;;
15573	esac
15574      fi
15575      ;;
15576
15577    irix5* | irix6* | nonstopux*)
15578      if test "$GCC" = yes; then
15579	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'
15580      else
15581	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'
15582	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15583      fi
15584      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15585      hardcode_libdir_separator_F77=:
15586      link_all_deplibs_F77=yes
15587      ;;
15588
15589    netbsd* | netbsdelf*-gnu)
15590      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15591	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15592      else
15593	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15594      fi
15595      hardcode_libdir_flag_spec_F77='-R$libdir'
15596      hardcode_direct_F77=yes
15597      hardcode_shlibpath_var_F77=no
15598      ;;
15599
15600    newsos6)
15601      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15602      hardcode_direct_F77=yes
15603      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15604      hardcode_libdir_separator_F77=:
15605      hardcode_shlibpath_var_F77=no
15606      ;;
15607
15608    openbsd*)
15609      if test -f /usr/libexec/ld.so; then
15610	hardcode_direct_F77=yes
15611	hardcode_shlibpath_var_F77=no
15612	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15613	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15614	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15615	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15616	  export_dynamic_flag_spec_F77='${wl}-E'
15617	else
15618	  case $host_os in
15619	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15620	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15621	     hardcode_libdir_flag_spec_F77='-R$libdir'
15622	     ;;
15623	   *)
15624	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15625	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15626	     ;;
15627	  esac
15628        fi
15629      else
15630	ld_shlibs_F77=no
15631      fi
15632      ;;
15633
15634    os2*)
15635      hardcode_libdir_flag_spec_F77='-L$libdir'
15636      hardcode_minus_L_F77=yes
15637      allow_undefined_flag_F77=unsupported
15638      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'
15639      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15640      ;;
15641
15642    osf3*)
15643      if test "$GCC" = yes; then
15644	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15645	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'
15646      else
15647	allow_undefined_flag_F77=' -expect_unresolved \*'
15648	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'
15649      fi
15650      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15651      hardcode_libdir_separator_F77=:
15652      ;;
15653
15654    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15655      if test "$GCC" = yes; then
15656	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15657	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'
15658	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15659      else
15660	allow_undefined_flag_F77=' -expect_unresolved \*'
15661	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'
15662	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~
15663	$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'
15664
15665	# Both c and cxx compiler support -rpath directly
15666	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15667      fi
15668      hardcode_libdir_separator_F77=:
15669      ;;
15670
15671    solaris*)
15672      no_undefined_flag_F77=' -z text'
15673      if test "$GCC" = yes; then
15674	wlarc='${wl}'
15675	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15676	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15677	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15678      else
15679	wlarc=''
15680	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15681	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15682  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15683      fi
15684      hardcode_libdir_flag_spec_F77='-R$libdir'
15685      hardcode_shlibpath_var_F77=no
15686      case $host_os in
15687      solaris2.[0-5] | solaris2.[0-5].*) ;;
15688      *)
15689	# The compiler driver will combine and reorder linker options,
15690	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15691	# but is careful enough not to reorder.
15692 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15693	if test "$GCC" = yes; then
15694	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15695	else
15696	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15697	fi
15698	;;
15699      esac
15700      link_all_deplibs_F77=yes
15701      ;;
15702
15703    sunos4*)
15704      if test "x$host_vendor" = xsequent; then
15705	# Use $CC to link under sequent, because it throws in some extra .o
15706	# files that make .init and .fini sections work.
15707	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15708      else
15709	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15710      fi
15711      hardcode_libdir_flag_spec_F77='-L$libdir'
15712      hardcode_direct_F77=yes
15713      hardcode_minus_L_F77=yes
15714      hardcode_shlibpath_var_F77=no
15715      ;;
15716
15717    sysv4)
15718      case $host_vendor in
15719	sni)
15720	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15721	  hardcode_direct_F77=yes # is this really true???
15722	;;
15723	siemens)
15724	  ## LD is ld it makes a PLAMLIB
15725	  ## CC just makes a GrossModule.
15726	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15727	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15728	  hardcode_direct_F77=no
15729        ;;
15730	motorola)
15731	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15732	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15733	;;
15734      esac
15735      runpath_var='LD_RUN_PATH'
15736      hardcode_shlibpath_var_F77=no
15737      ;;
15738
15739    sysv4.3*)
15740      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741      hardcode_shlibpath_var_F77=no
15742      export_dynamic_flag_spec_F77='-Bexport'
15743      ;;
15744
15745    sysv4*MP*)
15746      if test -d /usr/nec; then
15747	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15748	hardcode_shlibpath_var_F77=no
15749	runpath_var=LD_RUN_PATH
15750	hardcode_runpath_var=yes
15751	ld_shlibs_F77=yes
15752      fi
15753      ;;
15754
15755    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15756      no_undefined_flag_F77='${wl}-z,text'
15757      archive_cmds_need_lc_F77=no
15758      hardcode_shlibpath_var_F77=no
15759      runpath_var='LD_RUN_PATH'
15760
15761      if test "$GCC" = yes; then
15762	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15763	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15764      else
15765	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15766	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15767      fi
15768      ;;
15769
15770    sysv5* | sco3.2v5* | sco5v6*)
15771      # Note: We can NOT use -z defs as we might desire, because we do not
15772      # link with -lc, and that would cause any symbols used from libc to
15773      # always be unresolved, which means just about no library would
15774      # ever link correctly.  If we're not using GNU ld we use -z text
15775      # though, which does catch some bad symbols but isn't as heavy-handed
15776      # as -z defs.
15777      no_undefined_flag_F77='${wl}-z,text'
15778      allow_undefined_flag_F77='${wl}-z,nodefs'
15779      archive_cmds_need_lc_F77=no
15780      hardcode_shlibpath_var_F77=no
15781      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15782      hardcode_libdir_separator_F77=':'
15783      link_all_deplibs_F77=yes
15784      export_dynamic_flag_spec_F77='${wl}-Bexport'
15785      runpath_var='LD_RUN_PATH'
15786
15787      if test "$GCC" = yes; then
15788	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15789	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15790      else
15791	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15792	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15793      fi
15794      ;;
15795
15796    uts4*)
15797      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15798      hardcode_libdir_flag_spec_F77='-L$libdir'
15799      hardcode_shlibpath_var_F77=no
15800      ;;
15801
15802    *)
15803      ld_shlibs_F77=no
15804      ;;
15805    esac
15806  fi
15807
15808{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15809echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15810test "$ld_shlibs_F77" = no && can_build_shared=no
15811
15812#
15813# Do we need to explicitly link libc?
15814#
15815case "x$archive_cmds_need_lc_F77" in
15816x|xyes)
15817  # Assume -lc should be added
15818  archive_cmds_need_lc_F77=yes
15819
15820  if test "$enable_shared" = yes && test "$GCC" = yes; then
15821    case $archive_cmds_F77 in
15822    *'~'*)
15823      # FIXME: we may have to deal with multi-command sequences.
15824      ;;
15825    '$CC '*)
15826      # Test whether the compiler implicitly links with -lc since on some
15827      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15828      # to ld, don't add -lc before -lgcc.
15829      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15830echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15831      $rm conftest*
15832      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15833
15834      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15835  (eval $ac_compile) 2>&5
15836  ac_status=$?
15837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838  (exit $ac_status); } 2>conftest.err; then
15839        soname=conftest
15840        lib=conftest
15841        libobjs=conftest.$ac_objext
15842        deplibs=
15843        wl=$lt_prog_compiler_wl_F77
15844	pic_flag=$lt_prog_compiler_pic_F77
15845        compiler_flags=-v
15846        linker_flags=-v
15847        verstring=
15848        output_objdir=.
15849        libname=conftest
15850        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15851        allow_undefined_flag_F77=
15852        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15853  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15854  ac_status=$?
15855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856  (exit $ac_status); }
15857        then
15858	  archive_cmds_need_lc_F77=no
15859        else
15860	  archive_cmds_need_lc_F77=yes
15861        fi
15862        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15863      else
15864        cat conftest.err 1>&5
15865      fi
15866      $rm conftest*
15867      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15868echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15869      ;;
15870    esac
15871  fi
15872  ;;
15873esac
15874
15875{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15876echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15877library_names_spec=
15878libname_spec='lib$name'
15879soname_spec=
15880shrext_cmds=".so"
15881postinstall_cmds=
15882postuninstall_cmds=
15883finish_cmds=
15884finish_eval=
15885shlibpath_var=
15886shlibpath_overrides_runpath=unknown
15887version_type=none
15888dynamic_linker="$host_os ld.so"
15889sys_lib_dlsearch_path_spec="/lib /usr/lib"
15890
15891need_lib_prefix=unknown
15892hardcode_into_libs=no
15893
15894# when you set need_version to no, make sure it does not cause -set_version
15895# flags to be left without arguments
15896need_version=unknown
15897
15898case $host_os in
15899aix3*)
15900  version_type=linux
15901  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15902  shlibpath_var=LIBPATH
15903
15904  # AIX 3 has no versioning support, so we append a major version to the name.
15905  soname_spec='${libname}${release}${shared_ext}$major'
15906  ;;
15907
15908aix[4-9]*)
15909  version_type=linux
15910  need_lib_prefix=no
15911  need_version=no
15912  hardcode_into_libs=yes
15913  if test "$host_cpu" = ia64; then
15914    # AIX 5 supports IA64
15915    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15916    shlibpath_var=LD_LIBRARY_PATH
15917  else
15918    # With GCC up to 2.95.x, collect2 would create an import file
15919    # for dependence libraries.  The import file would start with
15920    # the line `#! .'.  This would cause the generated library to
15921    # depend on `.', always an invalid library.  This was fixed in
15922    # development snapshots of GCC prior to 3.0.
15923    case $host_os in
15924      aix4 | aix4.[01] | aix4.[01].*)
15925      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15926	   echo ' yes '
15927	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15928	:
15929      else
15930	can_build_shared=no
15931      fi
15932      ;;
15933    esac
15934    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15935    # soname into executable. Probably we can add versioning support to
15936    # collect2, so additional links can be useful in future.
15937    if test "$aix_use_runtimelinking" = yes; then
15938      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15939      # instead of lib<name>.a to let people know that these are not
15940      # typical AIX shared libraries.
15941      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15942    else
15943      # We preserve .a as extension for shared libraries through AIX4.2
15944      # and later when we are not doing run time linking.
15945      library_names_spec='${libname}${release}.a $libname.a'
15946      soname_spec='${libname}${release}${shared_ext}$major'
15947    fi
15948    shlibpath_var=LIBPATH
15949  fi
15950  ;;
15951
15952amigaos*)
15953  library_names_spec='$libname.ixlibrary $libname.a'
15954  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15955  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'
15956  ;;
15957
15958beos*)
15959  library_names_spec='${libname}${shared_ext}'
15960  dynamic_linker="$host_os ld.so"
15961  shlibpath_var=LIBRARY_PATH
15962  ;;
15963
15964bsdi[45]*)
15965  version_type=linux
15966  need_version=no
15967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15968  soname_spec='${libname}${release}${shared_ext}$major'
15969  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15970  shlibpath_var=LD_LIBRARY_PATH
15971  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15972  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15973  # the default ld.so.conf also contains /usr/contrib/lib and
15974  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15975  # libtool to hard-code these into programs
15976  ;;
15977
15978cygwin* | mingw* | pw32*)
15979  version_type=windows
15980  shrext_cmds=".dll"
15981  need_version=no
15982  need_lib_prefix=no
15983
15984  case $GCC,$host_os in
15985  yes,cygwin* | yes,mingw* | yes,pw32*)
15986    library_names_spec='$libname.dll.a'
15987    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15988    postinstall_cmds='base_file=`basename \${file}`~
15989      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15990      dldir=$destdir/`dirname \$dlpath`~
15991      test -d \$dldir || mkdir -p \$dldir~
15992      $install_prog $dir/$dlname \$dldir/$dlname~
15993      chmod a+x \$dldir/$dlname'
15994    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15995      dlpath=$dir/\$dldll~
15996       $rm \$dlpath'
15997    shlibpath_overrides_runpath=yes
15998
15999    case $host_os in
16000    cygwin*)
16001      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16002      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16003      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16004      ;;
16005    mingw*)
16006      # MinGW DLLs use traditional 'lib' prefix
16007      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16008      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16009      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16010        # It is most probably a Windows format PATH printed by
16011        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16012        # path with ; separators, and with drive letters. We can handle the
16013        # drive letters (cygwin fileutils understands them), so leave them,
16014        # especially as we might pass files found there to a mingw objdump,
16015        # which wouldn't understand a cygwinified path. Ahh.
16016        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16017      else
16018        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16019      fi
16020      ;;
16021    pw32*)
16022      # pw32 DLLs use 'pw' prefix rather than 'lib'
16023      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16024      ;;
16025    esac
16026    ;;
16027
16028  *)
16029    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16030    ;;
16031  esac
16032  dynamic_linker='Win32 ld.exe'
16033  # FIXME: first we should search . and the directory the executable is in
16034  shlibpath_var=PATH
16035  ;;
16036
16037darwin* | rhapsody*)
16038  dynamic_linker="$host_os dyld"
16039  version_type=darwin
16040  need_lib_prefix=no
16041  need_version=no
16042  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16043  soname_spec='${libname}${release}${major}$shared_ext'
16044  shlibpath_overrides_runpath=yes
16045  shlibpath_var=DYLD_LIBRARY_PATH
16046  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16047
16048  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16049  ;;
16050
16051dgux*)
16052  version_type=linux
16053  need_lib_prefix=no
16054  need_version=no
16055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16056  soname_spec='${libname}${release}${shared_ext}$major'
16057  shlibpath_var=LD_LIBRARY_PATH
16058  ;;
16059
16060freebsd1*)
16061  dynamic_linker=no
16062  ;;
16063
16064freebsd* | dragonfly*)
16065  # DragonFly does not have aout.  When/if they implement a new
16066  # versioning mechanism, adjust this.
16067  if test -x /usr/bin/objformat; then
16068    objformat=`/usr/bin/objformat`
16069  else
16070    case $host_os in
16071    freebsd[123]*) objformat=aout ;;
16072    *) objformat=elf ;;
16073    esac
16074  fi
16075  version_type=freebsd-$objformat
16076  case $version_type in
16077    freebsd-elf*)
16078      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16079      need_version=no
16080      need_lib_prefix=no
16081      ;;
16082    freebsd-*)
16083      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16084      need_version=yes
16085      ;;
16086  esac
16087  shlibpath_var=LD_LIBRARY_PATH
16088  case $host_os in
16089  freebsd2*)
16090    shlibpath_overrides_runpath=yes
16091    ;;
16092  freebsd3.[01]* | freebsdelf3.[01]*)
16093    shlibpath_overrides_runpath=yes
16094    hardcode_into_libs=yes
16095    ;;
16096  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16097  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16098    shlibpath_overrides_runpath=no
16099    hardcode_into_libs=yes
16100    ;;
16101  *) # from 4.6 on, and DragonFly
16102    shlibpath_overrides_runpath=yes
16103    hardcode_into_libs=yes
16104    ;;
16105  esac
16106  ;;
16107
16108gnu*)
16109  version_type=linux
16110  need_lib_prefix=no
16111  need_version=no
16112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16113  soname_spec='${libname}${release}${shared_ext}$major'
16114  shlibpath_var=LD_LIBRARY_PATH
16115  hardcode_into_libs=yes
16116  ;;
16117
16118hpux9* | hpux10* | hpux11*)
16119  # Give a soname corresponding to the major version so that dld.sl refuses to
16120  # link against other versions.
16121  version_type=sunos
16122  need_lib_prefix=no
16123  need_version=no
16124  case $host_cpu in
16125  ia64*)
16126    shrext_cmds='.so'
16127    hardcode_into_libs=yes
16128    dynamic_linker="$host_os dld.so"
16129    shlibpath_var=LD_LIBRARY_PATH
16130    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16131    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16132    soname_spec='${libname}${release}${shared_ext}$major'
16133    if test "X$HPUX_IA64_MODE" = X32; then
16134      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16135    else
16136      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16137    fi
16138    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16139    ;;
16140   hppa*64*)
16141     shrext_cmds='.sl'
16142     hardcode_into_libs=yes
16143     dynamic_linker="$host_os dld.sl"
16144     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16145     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16146     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147     soname_spec='${libname}${release}${shared_ext}$major'
16148     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16149     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16150     ;;
16151   *)
16152    shrext_cmds='.sl'
16153    dynamic_linker="$host_os dld.sl"
16154    shlibpath_var=SHLIB_PATH
16155    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16156    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157    soname_spec='${libname}${release}${shared_ext}$major'
16158    ;;
16159  esac
16160  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16161  postinstall_cmds='chmod 555 $lib'
16162  ;;
16163
16164interix[3-9]*)
16165  version_type=linux
16166  need_lib_prefix=no
16167  need_version=no
16168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16169  soname_spec='${libname}${release}${shared_ext}$major'
16170  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16171  shlibpath_var=LD_LIBRARY_PATH
16172  shlibpath_overrides_runpath=no
16173  hardcode_into_libs=yes
16174  ;;
16175
16176irix5* | irix6* | nonstopux*)
16177  case $host_os in
16178    nonstopux*) version_type=nonstopux ;;
16179    *)
16180	if test "$lt_cv_prog_gnu_ld" = yes; then
16181		version_type=linux
16182	else
16183		version_type=irix
16184	fi ;;
16185  esac
16186  need_lib_prefix=no
16187  need_version=no
16188  soname_spec='${libname}${release}${shared_ext}$major'
16189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16190  case $host_os in
16191  irix5* | nonstopux*)
16192    libsuff= shlibsuff=
16193    ;;
16194  *)
16195    case $LD in # libtool.m4 will add one of these switches to LD
16196    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16197      libsuff= shlibsuff= libmagic=32-bit;;
16198    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16199      libsuff=32 shlibsuff=N32 libmagic=N32;;
16200    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16201      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16202    *) libsuff= shlibsuff= libmagic=never-match;;
16203    esac
16204    ;;
16205  esac
16206  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16207  shlibpath_overrides_runpath=no
16208  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16209  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16210  hardcode_into_libs=yes
16211  ;;
16212
16213# No shared lib support for Linux oldld, aout, or coff.
16214linux*oldld* | linux*aout* | linux*coff*)
16215  dynamic_linker=no
16216  ;;
16217
16218# This must be Linux ELF.
16219linux* | k*bsd*-gnu)
16220  version_type=linux
16221  need_lib_prefix=no
16222  need_version=no
16223  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16224  soname_spec='${libname}${release}${shared_ext}$major'
16225  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16226  shlibpath_var=LD_LIBRARY_PATH
16227  shlibpath_overrides_runpath=no
16228  # This implies no fast_install, which is unacceptable.
16229  # Some rework will be needed to allow for fast_install
16230  # before this can be enabled.
16231  hardcode_into_libs=yes
16232
16233  # Append ld.so.conf contents to the search path
16234  if test -f /etc/ld.so.conf; then
16235    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' ' '`
16236    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16237  fi
16238
16239  # We used to test for /lib/ld.so.1 and disable shared libraries on
16240  # powerpc, because MkLinux only supported shared libraries with the
16241  # GNU dynamic linker.  Since this was broken with cross compilers,
16242  # most powerpc-linux boxes support dynamic linking these days and
16243  # people can always --disable-shared, the test was removed, and we
16244  # assume the GNU/Linux dynamic linker is in use.
16245  dynamic_linker='GNU/Linux ld.so'
16246  ;;
16247
16248netbsdelf*-gnu)
16249  version_type=linux
16250  need_lib_prefix=no
16251  need_version=no
16252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16253  soname_spec='${libname}${release}${shared_ext}$major'
16254  shlibpath_var=LD_LIBRARY_PATH
16255  shlibpath_overrides_runpath=no
16256  hardcode_into_libs=yes
16257  dynamic_linker='NetBSD ld.elf_so'
16258  ;;
16259
16260netbsd*)
16261  version_type=sunos
16262  need_lib_prefix=no
16263  need_version=no
16264  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16265    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16266    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16267    dynamic_linker='NetBSD (a.out) ld.so'
16268  else
16269    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16270    soname_spec='${libname}${release}${shared_ext}$major'
16271    dynamic_linker='NetBSD ld.elf_so'
16272  fi
16273  shlibpath_var=LD_LIBRARY_PATH
16274  shlibpath_overrides_runpath=yes
16275  hardcode_into_libs=yes
16276  ;;
16277
16278newsos6)
16279  version_type=linux
16280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281  shlibpath_var=LD_LIBRARY_PATH
16282  shlibpath_overrides_runpath=yes
16283  ;;
16284
16285nto-qnx*)
16286  version_type=linux
16287  need_lib_prefix=no
16288  need_version=no
16289  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16290  soname_spec='${libname}${release}${shared_ext}$major'
16291  shlibpath_var=LD_LIBRARY_PATH
16292  shlibpath_overrides_runpath=yes
16293  ;;
16294
16295openbsd*)
16296  version_type=sunos
16297  sys_lib_dlsearch_path_spec="/usr/lib"
16298  need_lib_prefix=no
16299  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16300  case $host_os in
16301    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16302    *)                         need_version=no  ;;
16303  esac
16304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16305  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16306  shlibpath_var=LD_LIBRARY_PATH
16307  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16308    case $host_os in
16309      openbsd2.[89] | openbsd2.[89].*)
16310	shlibpath_overrides_runpath=no
16311	;;
16312      *)
16313	shlibpath_overrides_runpath=yes
16314	;;
16315      esac
16316  else
16317    shlibpath_overrides_runpath=yes
16318  fi
16319  ;;
16320
16321os2*)
16322  libname_spec='$name'
16323  shrext_cmds=".dll"
16324  need_lib_prefix=no
16325  library_names_spec='$libname${shared_ext} $libname.a'
16326  dynamic_linker='OS/2 ld.exe'
16327  shlibpath_var=LIBPATH
16328  ;;
16329
16330osf3* | osf4* | osf5*)
16331  version_type=osf
16332  need_lib_prefix=no
16333  need_version=no
16334  soname_spec='${libname}${release}${shared_ext}$major'
16335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16336  shlibpath_var=LD_LIBRARY_PATH
16337  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16338  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16339  ;;
16340
16341rdos*)
16342  dynamic_linker=no
16343  ;;
16344
16345solaris*)
16346  version_type=linux
16347  need_lib_prefix=no
16348  need_version=no
16349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16350  soname_spec='${libname}${release}${shared_ext}$major'
16351  shlibpath_var=LD_LIBRARY_PATH
16352  shlibpath_overrides_runpath=yes
16353  hardcode_into_libs=yes
16354  # ldd complains unless libraries are executable
16355  postinstall_cmds='chmod +x $lib'
16356  ;;
16357
16358sunos4*)
16359  version_type=sunos
16360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16361  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16362  shlibpath_var=LD_LIBRARY_PATH
16363  shlibpath_overrides_runpath=yes
16364  if test "$with_gnu_ld" = yes; then
16365    need_lib_prefix=no
16366  fi
16367  need_version=yes
16368  ;;
16369
16370sysv4 | sysv4.3*)
16371  version_type=linux
16372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373  soname_spec='${libname}${release}${shared_ext}$major'
16374  shlibpath_var=LD_LIBRARY_PATH
16375  case $host_vendor in
16376    sni)
16377      shlibpath_overrides_runpath=no
16378      need_lib_prefix=no
16379      export_dynamic_flag_spec='${wl}-Blargedynsym'
16380      runpath_var=LD_RUN_PATH
16381      ;;
16382    siemens)
16383      need_lib_prefix=no
16384      ;;
16385    motorola)
16386      need_lib_prefix=no
16387      need_version=no
16388      shlibpath_overrides_runpath=no
16389      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16390      ;;
16391  esac
16392  ;;
16393
16394sysv4*MP*)
16395  if test -d /usr/nec ;then
16396    version_type=linux
16397    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16398    soname_spec='$libname${shared_ext}.$major'
16399    shlibpath_var=LD_LIBRARY_PATH
16400  fi
16401  ;;
16402
16403sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16404  version_type=freebsd-elf
16405  need_lib_prefix=no
16406  need_version=no
16407  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16408  soname_spec='${libname}${release}${shared_ext}$major'
16409  shlibpath_var=LD_LIBRARY_PATH
16410  hardcode_into_libs=yes
16411  if test "$with_gnu_ld" = yes; then
16412    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16413    shlibpath_overrides_runpath=no
16414  else
16415    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16416    shlibpath_overrides_runpath=yes
16417    case $host_os in
16418      sco3.2v5*)
16419        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16420	;;
16421    esac
16422  fi
16423  sys_lib_dlsearch_path_spec='/usr/lib'
16424  ;;
16425
16426uts4*)
16427  version_type=linux
16428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16429  soname_spec='${libname}${release}${shared_ext}$major'
16430  shlibpath_var=LD_LIBRARY_PATH
16431  ;;
16432
16433*)
16434  dynamic_linker=no
16435  ;;
16436esac
16437{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16438echo "${ECHO_T}$dynamic_linker" >&6; }
16439test "$dynamic_linker" = no && can_build_shared=no
16440
16441if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16442  echo $ECHO_N "(cached) $ECHO_C" >&6
16443else
16444  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16445fi
16446
16447sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16448if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16449  echo $ECHO_N "(cached) $ECHO_C" >&6
16450else
16451  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16452fi
16453
16454sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16455
16456variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16457if test "$GCC" = yes; then
16458  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16459fi
16460
16461{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16462echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16463hardcode_action_F77=
16464if test -n "$hardcode_libdir_flag_spec_F77" || \
16465   test -n "$runpath_var_F77" || \
16466   test "X$hardcode_automatic_F77" = "Xyes" ; then
16467
16468  # We can hardcode non-existant directories.
16469  if test "$hardcode_direct_F77" != no &&
16470     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16471     # have to relink, otherwise we might link with an installed library
16472     # when we should be linking with a yet-to-be-installed one
16473     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16474     test "$hardcode_minus_L_F77" != no; then
16475    # Linking always hardcodes the temporary library directory.
16476    hardcode_action_F77=relink
16477  else
16478    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16479    hardcode_action_F77=immediate
16480  fi
16481else
16482  # We cannot hardcode anything, or else we can only hardcode existing
16483  # directories.
16484  hardcode_action_F77=unsupported
16485fi
16486{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16487echo "${ECHO_T}$hardcode_action_F77" >&6; }
16488
16489if test "$hardcode_action_F77" = relink; then
16490  # Fast installation is not supported
16491  enable_fast_install=no
16492elif test "$shlibpath_overrides_runpath" = yes ||
16493     test "$enable_shared" = no; then
16494  # Fast installation is not necessary
16495  enable_fast_install=needless
16496fi
16497
16498
16499# The else clause should only fire when bootstrapping the
16500# libtool distribution, otherwise you forgot to ship ltmain.sh
16501# with your package, and you will get complaints that there are
16502# no rules to generate ltmain.sh.
16503if test -f "$ltmain"; then
16504  # See if we are running on zsh, and set the options which allow our commands through
16505  # without removal of \ escapes.
16506  if test -n "${ZSH_VERSION+set}" ; then
16507    setopt NO_GLOB_SUBST
16508  fi
16509  # Now quote all the things that may contain metacharacters while being
16510  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16511  # variables and quote the copies for generation of the libtool script.
16512  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16513    SED SHELL STRIP \
16514    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16515    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16516    deplibs_check_method reload_flag reload_cmds need_locks \
16517    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16518    lt_cv_sys_global_symbol_to_c_name_address \
16519    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16520    old_postinstall_cmds old_postuninstall_cmds \
16521    compiler_F77 \
16522    CC_F77 \
16523    LD_F77 \
16524    lt_prog_compiler_wl_F77 \
16525    lt_prog_compiler_pic_F77 \
16526    lt_prog_compiler_static_F77 \
16527    lt_prog_compiler_no_builtin_flag_F77 \
16528    export_dynamic_flag_spec_F77 \
16529    thread_safe_flag_spec_F77 \
16530    whole_archive_flag_spec_F77 \
16531    enable_shared_with_static_runtimes_F77 \
16532    old_archive_cmds_F77 \
16533    old_archive_from_new_cmds_F77 \
16534    predep_objects_F77 \
16535    postdep_objects_F77 \
16536    predeps_F77 \
16537    postdeps_F77 \
16538    compiler_lib_search_path_F77 \
16539    compiler_lib_search_dirs_F77 \
16540    archive_cmds_F77 \
16541    archive_expsym_cmds_F77 \
16542    postinstall_cmds_F77 \
16543    postuninstall_cmds_F77 \
16544    old_archive_from_expsyms_cmds_F77 \
16545    allow_undefined_flag_F77 \
16546    no_undefined_flag_F77 \
16547    export_symbols_cmds_F77 \
16548    hardcode_libdir_flag_spec_F77 \
16549    hardcode_libdir_flag_spec_ld_F77 \
16550    hardcode_libdir_separator_F77 \
16551    hardcode_automatic_F77 \
16552    module_cmds_F77 \
16553    module_expsym_cmds_F77 \
16554    lt_cv_prog_compiler_c_o_F77 \
16555    fix_srcfile_path_F77 \
16556    exclude_expsyms_F77 \
16557    include_expsyms_F77; do
16558
16559    case $var in
16560    old_archive_cmds_F77 | \
16561    old_archive_from_new_cmds_F77 | \
16562    archive_cmds_F77 | \
16563    archive_expsym_cmds_F77 | \
16564    module_cmds_F77 | \
16565    module_expsym_cmds_F77 | \
16566    old_archive_from_expsyms_cmds_F77 | \
16567    export_symbols_cmds_F77 | \
16568    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16569    postinstall_cmds | postuninstall_cmds | \
16570    old_postinstall_cmds | old_postuninstall_cmds | \
16571    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16572      # Double-quote double-evaled strings.
16573      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16574      ;;
16575    *)
16576      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16577      ;;
16578    esac
16579  done
16580
16581  case $lt_echo in
16582  *'\$0 --fallback-echo"')
16583    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16584    ;;
16585  esac
16586
16587cfgfile="$ofile"
16588
16589  cat <<__EOF__ >> "$cfgfile"
16590# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16591
16592# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16593
16594# Shell to use when invoking shell scripts.
16595SHELL=$lt_SHELL
16596
16597# Whether or not to build shared libraries.
16598build_libtool_libs=$enable_shared
16599
16600# Whether or not to build static libraries.
16601build_old_libs=$enable_static
16602
16603# Whether or not to add -lc for building shared libraries.
16604build_libtool_need_lc=$archive_cmds_need_lc_F77
16605
16606# Whether or not to disallow shared libs when runtime libs are static
16607allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16608
16609# Whether or not to optimize for fast installation.
16610fast_install=$enable_fast_install
16611
16612# The host system.
16613host_alias=$host_alias
16614host=$host
16615host_os=$host_os
16616
16617# The build system.
16618build_alias=$build_alias
16619build=$build
16620build_os=$build_os
16621
16622# An echo program that does not interpret backslashes.
16623echo=$lt_echo
16624
16625# The archiver.
16626AR=$lt_AR
16627AR_FLAGS=$lt_AR_FLAGS
16628
16629# A C compiler.
16630LTCC=$lt_LTCC
16631
16632# LTCC compiler flags.
16633LTCFLAGS=$lt_LTCFLAGS
16634
16635# A language-specific compiler.
16636CC=$lt_compiler_F77
16637
16638# Is the compiler the GNU C compiler?
16639with_gcc=$GCC_F77
16640
16641# An ERE matcher.
16642EGREP=$lt_EGREP
16643
16644# The linker used to build libraries.
16645LD=$lt_LD_F77
16646
16647# Whether we need hard or soft links.
16648LN_S=$lt_LN_S
16649
16650# A BSD-compatible nm program.
16651NM=$lt_NM
16652
16653# A symbol stripping program
16654STRIP=$lt_STRIP
16655
16656# Used to examine libraries when file_magic_cmd begins "file"
16657MAGIC_CMD=$MAGIC_CMD
16658
16659# Used on cygwin: DLL creation program.
16660DLLTOOL="$DLLTOOL"
16661
16662# Used on cygwin: object dumper.
16663OBJDUMP="$OBJDUMP"
16664
16665# Used on cygwin: assembler.
16666AS="$AS"
16667
16668# The name of the directory that contains temporary libtool files.
16669objdir=$objdir
16670
16671# How to create reloadable object files.
16672reload_flag=$lt_reload_flag
16673reload_cmds=$lt_reload_cmds
16674
16675# How to pass a linker flag through the compiler.
16676wl=$lt_lt_prog_compiler_wl_F77
16677
16678# Object file suffix (normally "o").
16679objext="$ac_objext"
16680
16681# Old archive suffix (normally "a").
16682libext="$libext"
16683
16684# Shared library suffix (normally ".so").
16685shrext_cmds='$shrext_cmds'
16686
16687# Executable file suffix (normally "").
16688exeext="$exeext"
16689
16690# Additional compiler flags for building library objects.
16691pic_flag=$lt_lt_prog_compiler_pic_F77
16692pic_mode=$pic_mode
16693
16694# What is the maximum length of a command?
16695max_cmd_len=$lt_cv_sys_max_cmd_len
16696
16697# Does compiler simultaneously support -c and -o options?
16698compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16699
16700# Must we lock files when doing compilation?
16701need_locks=$lt_need_locks
16702
16703# Do we need the lib prefix for modules?
16704need_lib_prefix=$need_lib_prefix
16705
16706# Do we need a version for libraries?
16707need_version=$need_version
16708
16709# Whether dlopen is supported.
16710dlopen_support=$enable_dlopen
16711
16712# Whether dlopen of programs is supported.
16713dlopen_self=$enable_dlopen_self
16714
16715# Whether dlopen of statically linked programs is supported.
16716dlopen_self_static=$enable_dlopen_self_static
16717
16718# Compiler flag to prevent dynamic linking.
16719link_static_flag=$lt_lt_prog_compiler_static_F77
16720
16721# Compiler flag to turn off builtin functions.
16722no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16723
16724# Compiler flag to allow reflexive dlopens.
16725export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16726
16727# Compiler flag to generate shared objects directly from archives.
16728whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16729
16730# Compiler flag to generate thread-safe objects.
16731thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16732
16733# Library versioning type.
16734version_type=$version_type
16735
16736# Format of library name prefix.
16737libname_spec=$lt_libname_spec
16738
16739# List of archive names.  First name is the real one, the rest are links.
16740# The last name is the one that the linker finds with -lNAME.
16741library_names_spec=$lt_library_names_spec
16742
16743# The coded name of the library, if different from the real name.
16744soname_spec=$lt_soname_spec
16745
16746# Commands used to build and install an old-style archive.
16747RANLIB=$lt_RANLIB
16748old_archive_cmds=$lt_old_archive_cmds_F77
16749old_postinstall_cmds=$lt_old_postinstall_cmds
16750old_postuninstall_cmds=$lt_old_postuninstall_cmds
16751
16752# Create an old-style archive from a shared archive.
16753old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16754
16755# Create a temporary old-style archive to link instead of a shared archive.
16756old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16757
16758# Commands used to build and install a shared archive.
16759archive_cmds=$lt_archive_cmds_F77
16760archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16761postinstall_cmds=$lt_postinstall_cmds
16762postuninstall_cmds=$lt_postuninstall_cmds
16763
16764# Commands used to build a loadable module (assumed same as above if empty)
16765module_cmds=$lt_module_cmds_F77
16766module_expsym_cmds=$lt_module_expsym_cmds_F77
16767
16768# Commands to strip libraries.
16769old_striplib=$lt_old_striplib
16770striplib=$lt_striplib
16771
16772# Dependencies to place before the objects being linked to create a
16773# shared library.
16774predep_objects=$lt_predep_objects_F77
16775
16776# Dependencies to place after the objects being linked to create a
16777# shared library.
16778postdep_objects=$lt_postdep_objects_F77
16779
16780# Dependencies to place before the objects being linked to create a
16781# shared library.
16782predeps=$lt_predeps_F77
16783
16784# Dependencies to place after the objects being linked to create a
16785# shared library.
16786postdeps=$lt_postdeps_F77
16787
16788# The directories searched by this compiler when creating a shared
16789# library
16790compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16791
16792# The library search path used internally by the compiler when linking
16793# a shared library.
16794compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16795
16796# Method to check whether dependent libraries are shared objects.
16797deplibs_check_method=$lt_deplibs_check_method
16798
16799# Command to use when deplibs_check_method == file_magic.
16800file_magic_cmd=$lt_file_magic_cmd
16801
16802# Flag that allows shared libraries with undefined symbols to be built.
16803allow_undefined_flag=$lt_allow_undefined_flag_F77
16804
16805# Flag that forces no undefined symbols.
16806no_undefined_flag=$lt_no_undefined_flag_F77
16807
16808# Commands used to finish a libtool library installation in a directory.
16809finish_cmds=$lt_finish_cmds
16810
16811# Same as above, but a single script fragment to be evaled but not shown.
16812finish_eval=$lt_finish_eval
16813
16814# Take the output of nm and produce a listing of raw symbols and C names.
16815global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16816
16817# Transform the output of nm in a proper C declaration
16818global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16819
16820# Transform the output of nm in a C name address pair
16821global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16822
16823# This is the shared library runtime path variable.
16824runpath_var=$runpath_var
16825
16826# This is the shared library path variable.
16827shlibpath_var=$shlibpath_var
16828
16829# Is shlibpath searched before the hard-coded library search path?
16830shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16831
16832# How to hardcode a shared library path into an executable.
16833hardcode_action=$hardcode_action_F77
16834
16835# Whether we should hardcode library paths into libraries.
16836hardcode_into_libs=$hardcode_into_libs
16837
16838# Flag to hardcode \$libdir into a binary during linking.
16839# This must work even if \$libdir does not exist.
16840hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16841
16842# If ld is used when linking, flag to hardcode \$libdir into
16843# a binary during linking. This must work even if \$libdir does
16844# not exist.
16845hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16846
16847# Whether we need a single -rpath flag with a separated argument.
16848hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16849
16850# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16851# resulting binary.
16852hardcode_direct=$hardcode_direct_F77
16853
16854# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16855# resulting binary.
16856hardcode_minus_L=$hardcode_minus_L_F77
16857
16858# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16859# the resulting binary.
16860hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16861
16862# Set to yes if building a shared library automatically hardcodes DIR into the library
16863# and all subsequent libraries and executables linked against it.
16864hardcode_automatic=$hardcode_automatic_F77
16865
16866# Variables whose values should be saved in libtool wrapper scripts and
16867# restored at relink time.
16868variables_saved_for_relink="$variables_saved_for_relink"
16869
16870# Whether libtool must link a program against all its dependency libraries.
16871link_all_deplibs=$link_all_deplibs_F77
16872
16873# Compile-time system search path for libraries
16874sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16875
16876# Run-time system search path for libraries
16877sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16878
16879# Fix the shell variable \$srcfile for the compiler.
16880fix_srcfile_path=$lt_fix_srcfile_path
16881
16882# Set to yes if exported symbols are required.
16883always_export_symbols=$always_export_symbols_F77
16884
16885# The commands to list exported symbols.
16886export_symbols_cmds=$lt_export_symbols_cmds_F77
16887
16888# The commands to extract the exported symbol list from a shared archive.
16889extract_expsyms_cmds=$lt_extract_expsyms_cmds
16890
16891# Symbols that should not be listed in the preloaded symbols.
16892exclude_expsyms=$lt_exclude_expsyms_F77
16893
16894# Symbols that must always be exported.
16895include_expsyms=$lt_include_expsyms_F77
16896
16897# ### END LIBTOOL TAG CONFIG: $tagname
16898
16899__EOF__
16900
16901
16902else
16903  # If there is no Makefile yet, we rely on a make rule to execute
16904  # `config.status --recheck' to rerun these tests and create the
16905  # libtool script then.
16906  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16907  if test -f "$ltmain_in"; then
16908    test -f Makefile && make "$ltmain"
16909  fi
16910fi
16911
16912
16913ac_ext=c
16914ac_cpp='$CPP $CPPFLAGS'
16915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16917ac_compiler_gnu=$ac_cv_c_compiler_gnu
16918
16919CC="$lt_save_CC"
16920
16921	else
16922	  tagname=""
16923	fi
16924	;;
16925
16926      GCJ)
16927	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16928
16929
16930# Source file extension for Java test sources.
16931ac_ext=java
16932
16933# Object file extension for compiled Java test sources.
16934objext=o
16935objext_GCJ=$objext
16936
16937# Code to be used in simple compile tests
16938lt_simple_compile_test_code="class foo {}"
16939
16940# Code to be used in simple link tests
16941lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16942
16943# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16944
16945# If no C compiler was specified, use CC.
16946LTCC=${LTCC-"$CC"}
16947
16948# If no C compiler flags were specified, use CFLAGS.
16949LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16950
16951# Allow CC to be a program name with arguments.
16952compiler=$CC
16953
16954
16955# save warnings/boilerplate of simple test code
16956ac_outfile=conftest.$ac_objext
16957echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16958eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16959_lt_compiler_boilerplate=`cat conftest.err`
16960$rm conftest*
16961
16962ac_outfile=conftest.$ac_objext
16963echo "$lt_simple_link_test_code" >conftest.$ac_ext
16964eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16965_lt_linker_boilerplate=`cat conftest.err`
16966$rm -r conftest*
16967
16968
16969# Allow CC to be a program name with arguments.
16970lt_save_CC="$CC"
16971CC=${GCJ-"gcj"}
16972compiler=$CC
16973compiler_GCJ=$CC
16974for cc_temp in $compiler""; do
16975  case $cc_temp in
16976    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16977    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16978    \-*) ;;
16979    *) break;;
16980  esac
16981done
16982cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16983
16984
16985# GCJ did not exist at the time GCC didn't implicitly link libc in.
16986archive_cmds_need_lc_GCJ=no
16987
16988old_archive_cmds_GCJ=$old_archive_cmds
16989
16990
16991lt_prog_compiler_no_builtin_flag_GCJ=
16992
16993if test "$GCC" = yes; then
16994  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16995
16996
16997{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16998echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16999if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17000  echo $ECHO_N "(cached) $ECHO_C" >&6
17001else
17002  lt_cv_prog_compiler_rtti_exceptions=no
17003  ac_outfile=conftest.$ac_objext
17004   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17005   lt_compiler_flag="-fno-rtti -fno-exceptions"
17006   # Insert the option either (1) after the last *FLAGS variable, or
17007   # (2) before a word containing "conftest.", or (3) at the end.
17008   # Note that $ac_compile itself does not contain backslashes and begins
17009   # with a dollar sign (not a hyphen), so the echo should work correctly.
17010   # The option is referenced via a variable to avoid confusing sed.
17011   lt_compile=`echo "$ac_compile" | $SED \
17012   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17013   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17014   -e 's:$: $lt_compiler_flag:'`
17015   (eval echo "\"\$as_me:17015: $lt_compile\"" >&5)
17016   (eval "$lt_compile" 2>conftest.err)
17017   ac_status=$?
17018   cat conftest.err >&5
17019   echo "$as_me:17019: \$? = $ac_status" >&5
17020   if (exit $ac_status) && test -s "$ac_outfile"; then
17021     # The compiler can only warn and ignore the option if not recognized
17022     # So say no if there are warnings other than the usual output.
17023     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17024     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17025     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17026       lt_cv_prog_compiler_rtti_exceptions=yes
17027     fi
17028   fi
17029   $rm conftest*
17030
17031fi
17032{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17033echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17034
17035if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17036    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17037else
17038    :
17039fi
17040
17041fi
17042
17043lt_prog_compiler_wl_GCJ=
17044lt_prog_compiler_pic_GCJ=
17045lt_prog_compiler_static_GCJ=
17046
17047{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17048echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17049
17050  if test "$GCC" = yes; then
17051    lt_prog_compiler_wl_GCJ='-Wl,'
17052    lt_prog_compiler_static_GCJ='-static'
17053
17054    case $host_os in
17055      aix*)
17056      # All AIX code is PIC.
17057      if test "$host_cpu" = ia64; then
17058	# AIX 5 now supports IA64 processor
17059	lt_prog_compiler_static_GCJ='-Bstatic'
17060      fi
17061      ;;
17062
17063    amigaos*)
17064      # FIXME: we need at least 68020 code to build shared libraries, but
17065      # adding the `-m68020' flag to GCC prevents building anything better,
17066      # like `-m68040'.
17067      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17068      ;;
17069
17070    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17071      # PIC is the default for these OSes.
17072      ;;
17073
17074    mingw* | cygwin* | pw32* | os2*)
17075      # This hack is so that the source file can tell whether it is being
17076      # built for inclusion in a dll (and should export symbols for example).
17077      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17078      # (--disable-auto-import) libraries
17079
17080      ;;
17081
17082    darwin* | rhapsody*)
17083      # PIC is the default on this platform
17084      # Common symbols not allowed in MH_DYLIB files
17085      lt_prog_compiler_pic_GCJ='-fno-common'
17086      ;;
17087
17088    interix[3-9]*)
17089      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17090      # Instead, we relocate shared libraries at runtime.
17091      ;;
17092
17093    msdosdjgpp*)
17094      # Just because we use GCC doesn't mean we suddenly get shared libraries
17095      # on systems that don't support them.
17096      lt_prog_compiler_can_build_shared_GCJ=no
17097      enable_shared=no
17098      ;;
17099
17100    sysv4*MP*)
17101      if test -d /usr/nec; then
17102	lt_prog_compiler_pic_GCJ=-Kconform_pic
17103      fi
17104      ;;
17105
17106    hpux*)
17107      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17108      # not for PA HP-UX.
17109      case $host_cpu in
17110      hppa*64*|ia64*)
17111	# +Z the default
17112	;;
17113      *)
17114	lt_prog_compiler_pic_GCJ='-fPIC'
17115	;;
17116      esac
17117      ;;
17118
17119    *)
17120      lt_prog_compiler_pic_GCJ='-fPIC'
17121      ;;
17122    esac
17123  else
17124    # PORTME Check for flag to pass linker flags through the system compiler.
17125    case $host_os in
17126    aix*)
17127      lt_prog_compiler_wl_GCJ='-Wl,'
17128      if test "$host_cpu" = ia64; then
17129	# AIX 5 now supports IA64 processor
17130	lt_prog_compiler_static_GCJ='-Bstatic'
17131      else
17132	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17133      fi
17134      ;;
17135      darwin*)
17136        # PIC is the default on this platform
17137        # Common symbols not allowed in MH_DYLIB files
17138       case $cc_basename in
17139         xlc*)
17140         lt_prog_compiler_pic_GCJ='-qnocommon'
17141         lt_prog_compiler_wl_GCJ='-Wl,'
17142         ;;
17143       esac
17144       ;;
17145
17146    mingw* | cygwin* | pw32* | os2*)
17147      # This hack is so that the source file can tell whether it is being
17148      # built for inclusion in a dll (and should export symbols for example).
17149
17150      ;;
17151
17152    hpux9* | hpux10* | hpux11*)
17153      lt_prog_compiler_wl_GCJ='-Wl,'
17154      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17155      # not for PA HP-UX.
17156      case $host_cpu in
17157      hppa*64*|ia64*)
17158	# +Z the default
17159	;;
17160      *)
17161	lt_prog_compiler_pic_GCJ='+Z'
17162	;;
17163      esac
17164      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17165      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17166      ;;
17167
17168    irix5* | irix6* | nonstopux*)
17169      lt_prog_compiler_wl_GCJ='-Wl,'
17170      # PIC (with -KPIC) is the default.
17171      lt_prog_compiler_static_GCJ='-non_shared'
17172      ;;
17173
17174    newsos6)
17175      lt_prog_compiler_pic_GCJ='-KPIC'
17176      lt_prog_compiler_static_GCJ='-Bstatic'
17177      ;;
17178
17179    linux* | k*bsd*-gnu)
17180      case $cc_basename in
17181      icc* | ecc*)
17182	lt_prog_compiler_wl_GCJ='-Wl,'
17183	lt_prog_compiler_pic_GCJ='-KPIC'
17184	lt_prog_compiler_static_GCJ='-static'
17185        ;;
17186      pgcc* | pgf77* | pgf90* | pgf95*)
17187        # Portland Group compilers (*not* the Pentium gcc compiler,
17188	# which looks to be a dead project)
17189	lt_prog_compiler_wl_GCJ='-Wl,'
17190	lt_prog_compiler_pic_GCJ='-fpic'
17191	lt_prog_compiler_static_GCJ='-Bstatic'
17192        ;;
17193      ccc*)
17194        lt_prog_compiler_wl_GCJ='-Wl,'
17195        # All Alpha code is PIC.
17196        lt_prog_compiler_static_GCJ='-non_shared'
17197        ;;
17198      *)
17199        case `$CC -V 2>&1 | sed 5q` in
17200	*Sun\ C*)
17201	  # Sun C 5.9
17202	  lt_prog_compiler_pic_GCJ='-KPIC'
17203	  lt_prog_compiler_static_GCJ='-Bstatic'
17204	  lt_prog_compiler_wl_GCJ='-Wl,'
17205	  ;;
17206	*Sun\ F*)
17207	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17208	  lt_prog_compiler_pic_GCJ='-KPIC'
17209	  lt_prog_compiler_static_GCJ='-Bstatic'
17210	  lt_prog_compiler_wl_GCJ=''
17211	  ;;
17212	esac
17213	;;
17214      esac
17215      ;;
17216
17217    osf3* | osf4* | osf5*)
17218      lt_prog_compiler_wl_GCJ='-Wl,'
17219      # All OSF/1 code is PIC.
17220      lt_prog_compiler_static_GCJ='-non_shared'
17221      ;;
17222
17223    rdos*)
17224      lt_prog_compiler_static_GCJ='-non_shared'
17225      ;;
17226
17227    solaris*)
17228      lt_prog_compiler_pic_GCJ='-KPIC'
17229      lt_prog_compiler_static_GCJ='-Bstatic'
17230      case $cc_basename in
17231      f77* | f90* | f95*)
17232	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17233      *)
17234	lt_prog_compiler_wl_GCJ='-Wl,';;
17235      esac
17236      ;;
17237
17238    sunos4*)
17239      lt_prog_compiler_wl_GCJ='-Qoption ld '
17240      lt_prog_compiler_pic_GCJ='-PIC'
17241      lt_prog_compiler_static_GCJ='-Bstatic'
17242      ;;
17243
17244    sysv4 | sysv4.2uw2* | sysv4.3*)
17245      lt_prog_compiler_wl_GCJ='-Wl,'
17246      lt_prog_compiler_pic_GCJ='-KPIC'
17247      lt_prog_compiler_static_GCJ='-Bstatic'
17248      ;;
17249
17250    sysv4*MP*)
17251      if test -d /usr/nec ;then
17252	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17253	lt_prog_compiler_static_GCJ='-Bstatic'
17254      fi
17255      ;;
17256
17257    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17258      lt_prog_compiler_wl_GCJ='-Wl,'
17259      lt_prog_compiler_pic_GCJ='-KPIC'
17260      lt_prog_compiler_static_GCJ='-Bstatic'
17261      ;;
17262
17263    unicos*)
17264      lt_prog_compiler_wl_GCJ='-Wl,'
17265      lt_prog_compiler_can_build_shared_GCJ=no
17266      ;;
17267
17268    uts4*)
17269      lt_prog_compiler_pic_GCJ='-pic'
17270      lt_prog_compiler_static_GCJ='-Bstatic'
17271      ;;
17272
17273    *)
17274      lt_prog_compiler_can_build_shared_GCJ=no
17275      ;;
17276    esac
17277  fi
17278
17279{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17280echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17281
17282#
17283# Check to make sure the PIC flag actually works.
17284#
17285if test -n "$lt_prog_compiler_pic_GCJ"; then
17286
17287{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17288echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17289if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17290  echo $ECHO_N "(cached) $ECHO_C" >&6
17291else
17292  lt_cv_prog_compiler_pic_works_GCJ=no
17293  ac_outfile=conftest.$ac_objext
17294   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17295   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17296   # Insert the option either (1) after the last *FLAGS variable, or
17297   # (2) before a word containing "conftest.", or (3) at the end.
17298   # Note that $ac_compile itself does not contain backslashes and begins
17299   # with a dollar sign (not a hyphen), so the echo should work correctly.
17300   # The option is referenced via a variable to avoid confusing sed.
17301   lt_compile=`echo "$ac_compile" | $SED \
17302   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17303   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17304   -e 's:$: $lt_compiler_flag:'`
17305   (eval echo "\"\$as_me:17305: $lt_compile\"" >&5)
17306   (eval "$lt_compile" 2>conftest.err)
17307   ac_status=$?
17308   cat conftest.err >&5
17309   echo "$as_me:17309: \$? = $ac_status" >&5
17310   if (exit $ac_status) && test -s "$ac_outfile"; then
17311     # The compiler can only warn and ignore the option if not recognized
17312     # So say no if there are warnings other than the usual output.
17313     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17314     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17315     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17316       lt_cv_prog_compiler_pic_works_GCJ=yes
17317     fi
17318   fi
17319   $rm conftest*
17320
17321fi
17322{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17323echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17324
17325if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17326    case $lt_prog_compiler_pic_GCJ in
17327     "" | " "*) ;;
17328     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17329     esac
17330else
17331    lt_prog_compiler_pic_GCJ=
17332     lt_prog_compiler_can_build_shared_GCJ=no
17333fi
17334
17335fi
17336case $host_os in
17337  # For platforms which do not support PIC, -DPIC is meaningless:
17338  *djgpp*)
17339    lt_prog_compiler_pic_GCJ=
17340    ;;
17341  *)
17342    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17343    ;;
17344esac
17345
17346#
17347# Check to make sure the static flag actually works.
17348#
17349wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17350{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17351echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17352if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17353  echo $ECHO_N "(cached) $ECHO_C" >&6
17354else
17355  lt_cv_prog_compiler_static_works_GCJ=no
17356   save_LDFLAGS="$LDFLAGS"
17357   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17358   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17359   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17360     # The linker can only warn and ignore the option if not recognized
17361     # So say no if there are warnings
17362     if test -s conftest.err; then
17363       # Append any errors to the config.log.
17364       cat conftest.err 1>&5
17365       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17366       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17367       if diff conftest.exp conftest.er2 >/dev/null; then
17368         lt_cv_prog_compiler_static_works_GCJ=yes
17369       fi
17370     else
17371       lt_cv_prog_compiler_static_works_GCJ=yes
17372     fi
17373   fi
17374   $rm -r conftest*
17375   LDFLAGS="$save_LDFLAGS"
17376
17377fi
17378{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17379echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17380
17381if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17382    :
17383else
17384    lt_prog_compiler_static_GCJ=
17385fi
17386
17387
17388{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17389echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17390if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17391  echo $ECHO_N "(cached) $ECHO_C" >&6
17392else
17393  lt_cv_prog_compiler_c_o_GCJ=no
17394   $rm -r conftest 2>/dev/null
17395   mkdir conftest
17396   cd conftest
17397   mkdir out
17398   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17399
17400   lt_compiler_flag="-o out/conftest2.$ac_objext"
17401   # Insert the option either (1) after the last *FLAGS variable, or
17402   # (2) before a word containing "conftest.", or (3) at the end.
17403   # Note that $ac_compile itself does not contain backslashes and begins
17404   # with a dollar sign (not a hyphen), so the echo should work correctly.
17405   lt_compile=`echo "$ac_compile" | $SED \
17406   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17407   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17408   -e 's:$: $lt_compiler_flag:'`
17409   (eval echo "\"\$as_me:17409: $lt_compile\"" >&5)
17410   (eval "$lt_compile" 2>out/conftest.err)
17411   ac_status=$?
17412   cat out/conftest.err >&5
17413   echo "$as_me:17413: \$? = $ac_status" >&5
17414   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17415   then
17416     # The compiler can only warn and ignore the option if not recognized
17417     # So say no if there are warnings
17418     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17419     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17420     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17421       lt_cv_prog_compiler_c_o_GCJ=yes
17422     fi
17423   fi
17424   chmod u+w . 2>&5
17425   $rm conftest*
17426   # SGI C++ compiler will create directory out/ii_files/ for
17427   # template instantiation
17428   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17429   $rm out/* && rmdir out
17430   cd ..
17431   rmdir conftest
17432   $rm conftest*
17433
17434fi
17435{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17436echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17437
17438
17439hard_links="nottested"
17440if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17441  # do not overwrite the value of need_locks provided by the user
17442  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17443echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17444  hard_links=yes
17445  $rm conftest*
17446  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17447  touch conftest.a
17448  ln conftest.a conftest.b 2>&5 || hard_links=no
17449  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17450  { echo "$as_me:$LINENO: result: $hard_links" >&5
17451echo "${ECHO_T}$hard_links" >&6; }
17452  if test "$hard_links" = no; then
17453    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17454echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17455    need_locks=warn
17456  fi
17457else
17458  need_locks=no
17459fi
17460
17461{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17462echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17463
17464  runpath_var=
17465  allow_undefined_flag_GCJ=
17466  enable_shared_with_static_runtimes_GCJ=no
17467  archive_cmds_GCJ=
17468  archive_expsym_cmds_GCJ=
17469  old_archive_From_new_cmds_GCJ=
17470  old_archive_from_expsyms_cmds_GCJ=
17471  export_dynamic_flag_spec_GCJ=
17472  whole_archive_flag_spec_GCJ=
17473  thread_safe_flag_spec_GCJ=
17474  hardcode_libdir_flag_spec_GCJ=
17475  hardcode_libdir_flag_spec_ld_GCJ=
17476  hardcode_libdir_separator_GCJ=
17477  hardcode_direct_GCJ=no
17478  hardcode_minus_L_GCJ=no
17479  hardcode_shlibpath_var_GCJ=unsupported
17480  link_all_deplibs_GCJ=unknown
17481  hardcode_automatic_GCJ=no
17482  module_cmds_GCJ=
17483  module_expsym_cmds_GCJ=
17484  always_export_symbols_GCJ=no
17485  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17486  # include_expsyms should be a list of space-separated symbols to be *always*
17487  # included in the symbol list
17488  include_expsyms_GCJ=
17489  # exclude_expsyms can be an extended regexp of symbols to exclude
17490  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17491  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17492  # as well as any symbol that contains `d'.
17493  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17494  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17495  # platforms (ab)use it in PIC code, but their linkers get confused if
17496  # the symbol is explicitly referenced.  Since portable code cannot
17497  # rely on this symbol name, it's probably fine to never include it in
17498  # preloaded symbol tables.
17499  # Exclude shared library initialization/finalization symbols.
17500  extract_expsyms_cmds=
17501  # Just being paranoid about ensuring that cc_basename is set.
17502  for cc_temp in $compiler""; do
17503  case $cc_temp in
17504    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17505    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17506    \-*) ;;
17507    *) break;;
17508  esac
17509done
17510cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17511
17512  case $host_os in
17513  cygwin* | mingw* | pw32*)
17514    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17515    # When not using gcc, we currently assume that we are using
17516    # Microsoft Visual C++.
17517    if test "$GCC" != yes; then
17518      with_gnu_ld=no
17519    fi
17520    ;;
17521  interix*)
17522    # we just hope/assume this is gcc and not c89 (= MSVC++)
17523    with_gnu_ld=yes
17524    ;;
17525  openbsd*)
17526    with_gnu_ld=no
17527    ;;
17528  esac
17529
17530  ld_shlibs_GCJ=yes
17531  if test "$with_gnu_ld" = yes; then
17532    # If archive_cmds runs LD, not CC, wlarc should be empty
17533    wlarc='${wl}'
17534
17535    # Set some defaults for GNU ld with shared library support. These
17536    # are reset later if shared libraries are not supported. Putting them
17537    # here allows them to be overridden if necessary.
17538    runpath_var=LD_RUN_PATH
17539    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17540    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17541    # ancient GNU ld didn't support --whole-archive et. al.
17542    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17543	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17544      else
17545  	whole_archive_flag_spec_GCJ=
17546    fi
17547    supports_anon_versioning=no
17548    case `$LD -v 2>/dev/null` in
17549      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17550      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17551      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17552      *\ 2.11.*) ;; # other 2.11 versions
17553      *) supports_anon_versioning=yes ;;
17554    esac
17555
17556    # See if GNU ld supports shared libraries.
17557    case $host_os in
17558    aix[3-9]*)
17559      # On AIX/PPC, the GNU linker is very broken
17560      if test "$host_cpu" != ia64; then
17561	ld_shlibs_GCJ=no
17562	cat <<EOF 1>&2
17563
17564*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17565*** to be unable to reliably create shared libraries on AIX.
17566*** Therefore, libtool is disabling shared libraries support.  If you
17567*** really care for shared libraries, you may want to modify your PATH
17568*** so that a non-GNU linker is found, and then restart.
17569
17570EOF
17571      fi
17572      ;;
17573
17574    amigaos*)
17575      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)'
17576      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17577      hardcode_minus_L_GCJ=yes
17578
17579      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17580      # that the semantics of dynamic libraries on AmigaOS, at least up
17581      # to version 4, is to share data among multiple programs linked
17582      # with the same dynamic library.  Since this doesn't match the
17583      # behavior of shared libraries on other platforms, we can't use
17584      # them.
17585      ld_shlibs_GCJ=no
17586      ;;
17587
17588    beos*)
17589      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17590	allow_undefined_flag_GCJ=unsupported
17591	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17592	# support --undefined.  This deserves some investigation.  FIXME
17593	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17594      else
17595	ld_shlibs_GCJ=no
17596      fi
17597      ;;
17598
17599    cygwin* | mingw* | pw32*)
17600      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17601      # as there is no search path for DLLs.
17602      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17603      allow_undefined_flag_GCJ=unsupported
17604      always_export_symbols_GCJ=no
17605      enable_shared_with_static_runtimes_GCJ=yes
17606      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17607
17608      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17609        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17610	# If the export-symbols file already is a .def file (1st line
17611	# is EXPORTS), use it as is; otherwise, prepend...
17612	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17613	  cp $export_symbols $output_objdir/$soname.def;
17614	else
17615	  echo EXPORTS > $output_objdir/$soname.def;
17616	  cat $export_symbols >> $output_objdir/$soname.def;
17617	fi~
17618	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17619      else
17620	ld_shlibs_GCJ=no
17621      fi
17622      ;;
17623
17624    interix[3-9]*)
17625      hardcode_direct_GCJ=no
17626      hardcode_shlibpath_var_GCJ=no
17627      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17628      export_dynamic_flag_spec_GCJ='${wl}-E'
17629      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17630      # Instead, shared libraries are loaded at an image base (0x10000000 by
17631      # default) and relocated if they conflict, which is a slow very memory
17632      # consuming and fragmenting process.  To avoid this, we pick a random,
17633      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17634      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17635      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'
17636      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'
17637      ;;
17638
17639    gnu* | linux* | k*bsd*-gnu)
17640      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17641	tmp_addflag=
17642	case $cc_basename,$host_cpu in
17643	pgcc*)				# Portland Group C compiler
17644	  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'
17645	  tmp_addflag=' $pic_flag'
17646	  ;;
17647	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17648	  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'
17649	  tmp_addflag=' $pic_flag -Mnomain' ;;
17650	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17651	  tmp_addflag=' -i_dynamic' ;;
17652	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17653	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17654	ifc* | ifort*)			# Intel Fortran compiler
17655	  tmp_addflag=' -nofor_main' ;;
17656	esac
17657	case `$CC -V 2>&1 | sed 5q` in
17658	*Sun\ C*)			# Sun C 5.9
17659	  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'
17660	  tmp_sharedflag='-G' ;;
17661	*Sun\ F*)			# Sun Fortran 8.3
17662	  tmp_sharedflag='-G' ;;
17663	*)
17664	  tmp_sharedflag='-shared' ;;
17665	esac
17666	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17667
17668	if test $supports_anon_versioning = yes; then
17669	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17670  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17671  $echo "local: *; };" >> $output_objdir/$libname.ver~
17672	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17673	fi
17674	link_all_deplibs_GCJ=no
17675      else
17676	ld_shlibs_GCJ=no
17677      fi
17678      ;;
17679
17680    netbsd* | netbsdelf*-gnu)
17681      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17682	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17683	wlarc=
17684      else
17685	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17686	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17687      fi
17688      ;;
17689
17690    solaris*)
17691      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17692	ld_shlibs_GCJ=no
17693	cat <<EOF 1>&2
17694
17695*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17696*** create shared libraries on Solaris systems.  Therefore, libtool
17697*** is disabling shared libraries support.  We urge you to upgrade GNU
17698*** binutils to release 2.9.1 or newer.  Another option is to modify
17699*** your PATH or compiler configuration so that the native linker is
17700*** used, and then restart.
17701
17702EOF
17703      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17704	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17705	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17706      else
17707	ld_shlibs_GCJ=no
17708      fi
17709      ;;
17710
17711    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17712      case `$LD -v 2>&1` in
17713        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17714	ld_shlibs_GCJ=no
17715	cat <<_LT_EOF 1>&2
17716
17717*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17718*** reliably create shared libraries on SCO systems.  Therefore, libtool
17719*** is disabling shared libraries support.  We urge you to upgrade GNU
17720*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17721*** your PATH or compiler configuration so that the native linker is
17722*** used, and then restart.
17723
17724_LT_EOF
17725	;;
17726	*)
17727	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17728	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17729	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17730	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17731	  else
17732	    ld_shlibs_GCJ=no
17733	  fi
17734	;;
17735      esac
17736      ;;
17737
17738    sunos4*)
17739      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17740      wlarc=
17741      hardcode_direct_GCJ=yes
17742      hardcode_shlibpath_var_GCJ=no
17743      ;;
17744
17745    *)
17746      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17747	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17748	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17749      else
17750	ld_shlibs_GCJ=no
17751      fi
17752      ;;
17753    esac
17754
17755    if test "$ld_shlibs_GCJ" = no; then
17756      runpath_var=
17757      hardcode_libdir_flag_spec_GCJ=
17758      export_dynamic_flag_spec_GCJ=
17759      whole_archive_flag_spec_GCJ=
17760    fi
17761  else
17762    # PORTME fill in a description of your system's linker (not GNU ld)
17763    case $host_os in
17764    aix3*)
17765      allow_undefined_flag_GCJ=unsupported
17766      always_export_symbols_GCJ=yes
17767      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'
17768      # Note: this linker hardcodes the directories in LIBPATH if there
17769      # are no directories specified by -L.
17770      hardcode_minus_L_GCJ=yes
17771      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17772	# Neither direct hardcoding nor static linking is supported with a
17773	# broken collect2.
17774	hardcode_direct_GCJ=unsupported
17775      fi
17776      ;;
17777
17778    aix[4-9]*)
17779      if test "$host_cpu" = ia64; then
17780	# On IA64, the linker does run time linking by default, so we don't
17781	# have to do anything special.
17782	aix_use_runtimelinking=no
17783	exp_sym_flag='-Bexport'
17784	no_entry_flag=""
17785      else
17786	# If we're using GNU nm, then we don't want the "-C" option.
17787	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17788	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17789	  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'
17790	else
17791	  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'
17792	fi
17793	aix_use_runtimelinking=no
17794
17795	# Test if we are trying to use run time linking or normal
17796	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17797	# need to do runtime linking.
17798	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17799	  for ld_flag in $LDFLAGS; do
17800  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17801  	    aix_use_runtimelinking=yes
17802  	    break
17803  	  fi
17804	  done
17805	  ;;
17806	esac
17807
17808	exp_sym_flag='-bexport'
17809	no_entry_flag='-bnoentry'
17810      fi
17811
17812      # When large executables or shared objects are built, AIX ld can
17813      # have problems creating the table of contents.  If linking a library
17814      # or program results in "error TOC overflow" add -mminimal-toc to
17815      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17816      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17817
17818      archive_cmds_GCJ=''
17819      hardcode_direct_GCJ=yes
17820      hardcode_libdir_separator_GCJ=':'
17821      link_all_deplibs_GCJ=yes
17822
17823      if test "$GCC" = yes; then
17824	case $host_os in aix4.[012]|aix4.[012].*)
17825	# We only want to do this on AIX 4.2 and lower, the check
17826	# below for broken collect2 doesn't work under 4.3+
17827	  collect2name=`${CC} -print-prog-name=collect2`
17828	  if test -f "$collect2name" && \
17829  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17830	  then
17831  	  # We have reworked collect2
17832  	  :
17833	  else
17834  	  # We have old collect2
17835  	  hardcode_direct_GCJ=unsupported
17836  	  # It fails to find uninstalled libraries when the uninstalled
17837  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17838  	  # to unsupported forces relinking
17839  	  hardcode_minus_L_GCJ=yes
17840  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17841  	  hardcode_libdir_separator_GCJ=
17842	  fi
17843	  ;;
17844	esac
17845	shared_flag='-shared'
17846	if test "$aix_use_runtimelinking" = yes; then
17847	  shared_flag="$shared_flag "'${wl}-G'
17848	fi
17849      else
17850	# not using gcc
17851	if test "$host_cpu" = ia64; then
17852  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17853  	# chokes on -Wl,-G. The following line is correct:
17854	  shared_flag='-G'
17855	else
17856	  if test "$aix_use_runtimelinking" = yes; then
17857	    shared_flag='${wl}-G'
17858	  else
17859	    shared_flag='${wl}-bM:SRE'
17860	  fi
17861	fi
17862      fi
17863
17864      # It seems that -bexpall does not export symbols beginning with
17865      # underscore (_), so it is better to generate a list of symbols to export.
17866      always_export_symbols_GCJ=yes
17867      if test "$aix_use_runtimelinking" = yes; then
17868	# Warning - without using the other runtime loading flags (-brtl),
17869	# -berok will link without error, but may produce a broken library.
17870	allow_undefined_flag_GCJ='-berok'
17871       # Determine the default libpath from the value encoded in an empty executable.
17872       cat >conftest.$ac_ext <<_ACEOF
17873/* confdefs.h.  */
17874_ACEOF
17875cat confdefs.h >>conftest.$ac_ext
17876cat >>conftest.$ac_ext <<_ACEOF
17877/* end confdefs.h.  */
17878
17879int
17880main ()
17881{
17882
17883  ;
17884  return 0;
17885}
17886_ACEOF
17887rm -f conftest.$ac_objext conftest$ac_exeext
17888if { (ac_try="$ac_link"
17889case "(($ac_try" in
17890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891  *) ac_try_echo=$ac_try;;
17892esac
17893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17894  (eval "$ac_link") 2>conftest.er1
17895  ac_status=$?
17896  grep -v '^ *+' conftest.er1 >conftest.err
17897  rm -f conftest.er1
17898  cat conftest.err >&5
17899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900  (exit $ac_status); } && {
17901	 test -z "$ac_c_werror_flag" ||
17902	 test ! -s conftest.err
17903       } && test -s conftest$ac_exeext &&
17904       $as_test_x conftest$ac_exeext; then
17905
17906lt_aix_libpath_sed='
17907    /Import File Strings/,/^$/ {
17908	/^0/ {
17909	    s/^0  *\(.*\)$/\1/
17910	    p
17911	}
17912    }'
17913aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17914# Check for a 64-bit object if we didn't find anything.
17915if test -z "$aix_libpath"; then
17916  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17917fi
17918else
17919  echo "$as_me: failed program was:" >&5
17920sed 's/^/| /' conftest.$ac_ext >&5
17921
17922
17923fi
17924
17925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17926      conftest$ac_exeext conftest.$ac_ext
17927if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17928
17929       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17930	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"
17931       else
17932	if test "$host_cpu" = ia64; then
17933	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17934	  allow_undefined_flag_GCJ="-z nodefs"
17935	  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"
17936	else
17937	 # Determine the default libpath from the value encoded in an empty executable.
17938	 cat >conftest.$ac_ext <<_ACEOF
17939/* confdefs.h.  */
17940_ACEOF
17941cat confdefs.h >>conftest.$ac_ext
17942cat >>conftest.$ac_ext <<_ACEOF
17943/* end confdefs.h.  */
17944
17945int
17946main ()
17947{
17948
17949  ;
17950  return 0;
17951}
17952_ACEOF
17953rm -f conftest.$ac_objext conftest$ac_exeext
17954if { (ac_try="$ac_link"
17955case "(($ac_try" in
17956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957  *) ac_try_echo=$ac_try;;
17958esac
17959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960  (eval "$ac_link") 2>conftest.er1
17961  ac_status=$?
17962  grep -v '^ *+' conftest.er1 >conftest.err
17963  rm -f conftest.er1
17964  cat conftest.err >&5
17965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966  (exit $ac_status); } && {
17967	 test -z "$ac_c_werror_flag" ||
17968	 test ! -s conftest.err
17969       } && test -s conftest$ac_exeext &&
17970       $as_test_x conftest$ac_exeext; then
17971
17972lt_aix_libpath_sed='
17973    /Import File Strings/,/^$/ {
17974	/^0/ {
17975	    s/^0  *\(.*\)$/\1/
17976	    p
17977	}
17978    }'
17979aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17980# Check for a 64-bit object if we didn't find anything.
17981if test -z "$aix_libpath"; then
17982  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17983fi
17984else
17985  echo "$as_me: failed program was:" >&5
17986sed 's/^/| /' conftest.$ac_ext >&5
17987
17988
17989fi
17990
17991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17992      conftest$ac_exeext conftest.$ac_ext
17993if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17994
17995	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17996	  # Warning - without using the other run time loading flags,
17997	  # -berok will link without error, but may produce a broken library.
17998	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17999	  allow_undefined_flag_GCJ=' ${wl}-berok'
18000	  # Exported symbols can be pulled into shared objects from archives
18001	  whole_archive_flag_spec_GCJ='$convenience'
18002	  archive_cmds_need_lc_GCJ=yes
18003	  # This is similar to how AIX traditionally builds its shared libraries.
18004	  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'
18005	fi
18006      fi
18007      ;;
18008
18009    amigaos*)
18010      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)'
18011      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18012      hardcode_minus_L_GCJ=yes
18013      # see comment about different semantics on the GNU ld section
18014      ld_shlibs_GCJ=no
18015      ;;
18016
18017    bsdi[45]*)
18018      export_dynamic_flag_spec_GCJ=-rdynamic
18019      ;;
18020
18021    cygwin* | mingw* | pw32*)
18022      # When not using gcc, we currently assume that we are using
18023      # Microsoft Visual C++.
18024      # hardcode_libdir_flag_spec is actually meaningless, as there is
18025      # no search path for DLLs.
18026      hardcode_libdir_flag_spec_GCJ=' '
18027      allow_undefined_flag_GCJ=unsupported
18028      # Tell ltmain to make .lib files, not .a files.
18029      libext=lib
18030      # Tell ltmain to make .dll files, not .so files.
18031      shrext_cmds=".dll"
18032      # FIXME: Setting linknames here is a bad hack.
18033      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18034      # The linker will automatically build a .lib file if we build a DLL.
18035      old_archive_From_new_cmds_GCJ='true'
18036      # FIXME: Should let the user specify the lib program.
18037      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18038      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18039      enable_shared_with_static_runtimes_GCJ=yes
18040      ;;
18041
18042    darwin* | rhapsody*)
18043      case $host_os in
18044        rhapsody* | darwin1.[012])
18045         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18046         ;;
18047       *) # Darwin 1.3 on
18048         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18049           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18050         else
18051           case ${MACOSX_DEPLOYMENT_TARGET} in
18052             10.[012])
18053               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18054               ;;
18055             10.*)
18056               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18057               ;;
18058           esac
18059         fi
18060         ;;
18061      esac
18062      archive_cmds_need_lc_GCJ=no
18063      hardcode_direct_GCJ=no
18064      hardcode_automatic_GCJ=yes
18065      hardcode_shlibpath_var_GCJ=unsupported
18066      whole_archive_flag_spec_GCJ=''
18067      link_all_deplibs_GCJ=yes
18068    if test "$GCC" = yes ; then
18069    	output_verbose_link_cmd='echo'
18070        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}"
18071        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18072        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}"
18073        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}"
18074    else
18075      case $cc_basename in
18076        xlc*)
18077         output_verbose_link_cmd='echo'
18078         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18079         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18080          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18081         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}'
18082          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}'
18083          ;;
18084       *)
18085         ld_shlibs_GCJ=no
18086          ;;
18087      esac
18088    fi
18089      ;;
18090
18091    dgux*)
18092      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18093      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18094      hardcode_shlibpath_var_GCJ=no
18095      ;;
18096
18097    freebsd1*)
18098      ld_shlibs_GCJ=no
18099      ;;
18100
18101    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18102    # support.  Future versions do this automatically, but an explicit c++rt0.o
18103    # does not break anything, and helps significantly (at the cost of a little
18104    # extra space).
18105    freebsd2.2*)
18106      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18107      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18108      hardcode_direct_GCJ=yes
18109      hardcode_shlibpath_var_GCJ=no
18110      ;;
18111
18112    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18113    freebsd2*)
18114      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18115      hardcode_direct_GCJ=yes
18116      hardcode_minus_L_GCJ=yes
18117      hardcode_shlibpath_var_GCJ=no
18118      ;;
18119
18120    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18121    freebsd* | dragonfly*)
18122      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18123      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18124      hardcode_direct_GCJ=yes
18125      hardcode_shlibpath_var_GCJ=no
18126      ;;
18127
18128    hpux9*)
18129      if test "$GCC" = yes; then
18130	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'
18131      else
18132	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'
18133      fi
18134      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18135      hardcode_libdir_separator_GCJ=:
18136      hardcode_direct_GCJ=yes
18137
18138      # hardcode_minus_L: Not really in the search PATH,
18139      # but as the default location of the library.
18140      hardcode_minus_L_GCJ=yes
18141      export_dynamic_flag_spec_GCJ='${wl}-E'
18142      ;;
18143
18144    hpux10*)
18145      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18146	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18147      else
18148	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18149      fi
18150      if test "$with_gnu_ld" = no; then
18151	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18152	hardcode_libdir_separator_GCJ=:
18153
18154	hardcode_direct_GCJ=yes
18155	export_dynamic_flag_spec_GCJ='${wl}-E'
18156
18157	# hardcode_minus_L: Not really in the search PATH,
18158	# but as the default location of the library.
18159	hardcode_minus_L_GCJ=yes
18160      fi
18161      ;;
18162
18163    hpux11*)
18164      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18165	case $host_cpu in
18166	hppa*64*)
18167	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18168	  ;;
18169	ia64*)
18170	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18171	  ;;
18172	*)
18173	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18174	  ;;
18175	esac
18176      else
18177	case $host_cpu in
18178	hppa*64*)
18179	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18180	  ;;
18181	ia64*)
18182	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18183	  ;;
18184	*)
18185	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18186	  ;;
18187	esac
18188      fi
18189      if test "$with_gnu_ld" = no; then
18190	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18191	hardcode_libdir_separator_GCJ=:
18192
18193	case $host_cpu in
18194	hppa*64*|ia64*)
18195	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18196	  hardcode_direct_GCJ=no
18197	  hardcode_shlibpath_var_GCJ=no
18198	  ;;
18199	*)
18200	  hardcode_direct_GCJ=yes
18201	  export_dynamic_flag_spec_GCJ='${wl}-E'
18202
18203	  # hardcode_minus_L: Not really in the search PATH,
18204	  # but as the default location of the library.
18205	  hardcode_minus_L_GCJ=yes
18206	  ;;
18207	esac
18208      fi
18209      ;;
18210
18211    irix5* | irix6* | nonstopux*)
18212      if test "$GCC" = yes; then
18213	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'
18214      else
18215	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'
18216	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18217      fi
18218      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18219      hardcode_libdir_separator_GCJ=:
18220      link_all_deplibs_GCJ=yes
18221      ;;
18222
18223    netbsd* | netbsdelf*-gnu)
18224      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18225	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18226      else
18227	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18228      fi
18229      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18230      hardcode_direct_GCJ=yes
18231      hardcode_shlibpath_var_GCJ=no
18232      ;;
18233
18234    newsos6)
18235      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18236      hardcode_direct_GCJ=yes
18237      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18238      hardcode_libdir_separator_GCJ=:
18239      hardcode_shlibpath_var_GCJ=no
18240      ;;
18241
18242    openbsd*)
18243      if test -f /usr/libexec/ld.so; then
18244	hardcode_direct_GCJ=yes
18245	hardcode_shlibpath_var_GCJ=no
18246	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18247	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18248	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18249	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18250	  export_dynamic_flag_spec_GCJ='${wl}-E'
18251	else
18252	  case $host_os in
18253	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18254	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18255	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18256	     ;;
18257	   *)
18258	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18259	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18260	     ;;
18261	  esac
18262        fi
18263      else
18264	ld_shlibs_GCJ=no
18265      fi
18266      ;;
18267
18268    os2*)
18269      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18270      hardcode_minus_L_GCJ=yes
18271      allow_undefined_flag_GCJ=unsupported
18272      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'
18273      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18274      ;;
18275
18276    osf3*)
18277      if test "$GCC" = yes; then
18278	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18279	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'
18280      else
18281	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18282	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'
18283      fi
18284      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18285      hardcode_libdir_separator_GCJ=:
18286      ;;
18287
18288    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18289      if test "$GCC" = yes; then
18290	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18291	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'
18292	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18293      else
18294	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18295	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'
18296	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~
18297	$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'
18298
18299	# Both c and cxx compiler support -rpath directly
18300	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18301      fi
18302      hardcode_libdir_separator_GCJ=:
18303      ;;
18304
18305    solaris*)
18306      no_undefined_flag_GCJ=' -z text'
18307      if test "$GCC" = yes; then
18308	wlarc='${wl}'
18309	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18310	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18311	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18312      else
18313	wlarc=''
18314	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18315	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18316  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18317      fi
18318      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18319      hardcode_shlibpath_var_GCJ=no
18320      case $host_os in
18321      solaris2.[0-5] | solaris2.[0-5].*) ;;
18322      *)
18323	# The compiler driver will combine and reorder linker options,
18324	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18325	# but is careful enough not to reorder.
18326 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18327	if test "$GCC" = yes; then
18328	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18329	else
18330	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18331	fi
18332	;;
18333      esac
18334      link_all_deplibs_GCJ=yes
18335      ;;
18336
18337    sunos4*)
18338      if test "x$host_vendor" = xsequent; then
18339	# Use $CC to link under sequent, because it throws in some extra .o
18340	# files that make .init and .fini sections work.
18341	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18342      else
18343	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18344      fi
18345      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18346      hardcode_direct_GCJ=yes
18347      hardcode_minus_L_GCJ=yes
18348      hardcode_shlibpath_var_GCJ=no
18349      ;;
18350
18351    sysv4)
18352      case $host_vendor in
18353	sni)
18354	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18355	  hardcode_direct_GCJ=yes # is this really true???
18356	;;
18357	siemens)
18358	  ## LD is ld it makes a PLAMLIB
18359	  ## CC just makes a GrossModule.
18360	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18361	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18362	  hardcode_direct_GCJ=no
18363        ;;
18364	motorola)
18365	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18366	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18367	;;
18368      esac
18369      runpath_var='LD_RUN_PATH'
18370      hardcode_shlibpath_var_GCJ=no
18371      ;;
18372
18373    sysv4.3*)
18374      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18375      hardcode_shlibpath_var_GCJ=no
18376      export_dynamic_flag_spec_GCJ='-Bexport'
18377      ;;
18378
18379    sysv4*MP*)
18380      if test -d /usr/nec; then
18381	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18382	hardcode_shlibpath_var_GCJ=no
18383	runpath_var=LD_RUN_PATH
18384	hardcode_runpath_var=yes
18385	ld_shlibs_GCJ=yes
18386      fi
18387      ;;
18388
18389    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18390      no_undefined_flag_GCJ='${wl}-z,text'
18391      archive_cmds_need_lc_GCJ=no
18392      hardcode_shlibpath_var_GCJ=no
18393      runpath_var='LD_RUN_PATH'
18394
18395      if test "$GCC" = yes; then
18396	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18397	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18398      else
18399	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18400	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18401      fi
18402      ;;
18403
18404    sysv5* | sco3.2v5* | sco5v6*)
18405      # Note: We can NOT use -z defs as we might desire, because we do not
18406      # link with -lc, and that would cause any symbols used from libc to
18407      # always be unresolved, which means just about no library would
18408      # ever link correctly.  If we're not using GNU ld we use -z text
18409      # though, which does catch some bad symbols but isn't as heavy-handed
18410      # as -z defs.
18411      no_undefined_flag_GCJ='${wl}-z,text'
18412      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18413      archive_cmds_need_lc_GCJ=no
18414      hardcode_shlibpath_var_GCJ=no
18415      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18416      hardcode_libdir_separator_GCJ=':'
18417      link_all_deplibs_GCJ=yes
18418      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18419      runpath_var='LD_RUN_PATH'
18420
18421      if test "$GCC" = yes; then
18422	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18423	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18424      else
18425	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18426	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18427      fi
18428      ;;
18429
18430    uts4*)
18431      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18432      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18433      hardcode_shlibpath_var_GCJ=no
18434      ;;
18435
18436    *)
18437      ld_shlibs_GCJ=no
18438      ;;
18439    esac
18440  fi
18441
18442{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18443echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18444test "$ld_shlibs_GCJ" = no && can_build_shared=no
18445
18446#
18447# Do we need to explicitly link libc?
18448#
18449case "x$archive_cmds_need_lc_GCJ" in
18450x|xyes)
18451  # Assume -lc should be added
18452  archive_cmds_need_lc_GCJ=yes
18453
18454  if test "$enable_shared" = yes && test "$GCC" = yes; then
18455    case $archive_cmds_GCJ in
18456    *'~'*)
18457      # FIXME: we may have to deal with multi-command sequences.
18458      ;;
18459    '$CC '*)
18460      # Test whether the compiler implicitly links with -lc since on some
18461      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18462      # to ld, don't add -lc before -lgcc.
18463      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18464echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18465      $rm conftest*
18466      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18467
18468      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18469  (eval $ac_compile) 2>&5
18470  ac_status=$?
18471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472  (exit $ac_status); } 2>conftest.err; then
18473        soname=conftest
18474        lib=conftest
18475        libobjs=conftest.$ac_objext
18476        deplibs=
18477        wl=$lt_prog_compiler_wl_GCJ
18478	pic_flag=$lt_prog_compiler_pic_GCJ
18479        compiler_flags=-v
18480        linker_flags=-v
18481        verstring=
18482        output_objdir=.
18483        libname=conftest
18484        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18485        allow_undefined_flag_GCJ=
18486        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18487  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18488  ac_status=$?
18489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490  (exit $ac_status); }
18491        then
18492	  archive_cmds_need_lc_GCJ=no
18493        else
18494	  archive_cmds_need_lc_GCJ=yes
18495        fi
18496        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18497      else
18498        cat conftest.err 1>&5
18499      fi
18500      $rm conftest*
18501      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18502echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18503      ;;
18504    esac
18505  fi
18506  ;;
18507esac
18508
18509{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18510echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18511library_names_spec=
18512libname_spec='lib$name'
18513soname_spec=
18514shrext_cmds=".so"
18515postinstall_cmds=
18516postuninstall_cmds=
18517finish_cmds=
18518finish_eval=
18519shlibpath_var=
18520shlibpath_overrides_runpath=unknown
18521version_type=none
18522dynamic_linker="$host_os ld.so"
18523sys_lib_dlsearch_path_spec="/lib /usr/lib"
18524
18525need_lib_prefix=unknown
18526hardcode_into_libs=no
18527
18528# when you set need_version to no, make sure it does not cause -set_version
18529# flags to be left without arguments
18530need_version=unknown
18531
18532case $host_os in
18533aix3*)
18534  version_type=linux
18535  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18536  shlibpath_var=LIBPATH
18537
18538  # AIX 3 has no versioning support, so we append a major version to the name.
18539  soname_spec='${libname}${release}${shared_ext}$major'
18540  ;;
18541
18542aix[4-9]*)
18543  version_type=linux
18544  need_lib_prefix=no
18545  need_version=no
18546  hardcode_into_libs=yes
18547  if test "$host_cpu" = ia64; then
18548    # AIX 5 supports IA64
18549    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18550    shlibpath_var=LD_LIBRARY_PATH
18551  else
18552    # With GCC up to 2.95.x, collect2 would create an import file
18553    # for dependence libraries.  The import file would start with
18554    # the line `#! .'.  This would cause the generated library to
18555    # depend on `.', always an invalid library.  This was fixed in
18556    # development snapshots of GCC prior to 3.0.
18557    case $host_os in
18558      aix4 | aix4.[01] | aix4.[01].*)
18559      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18560	   echo ' yes '
18561	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18562	:
18563      else
18564	can_build_shared=no
18565      fi
18566      ;;
18567    esac
18568    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18569    # soname into executable. Probably we can add versioning support to
18570    # collect2, so additional links can be useful in future.
18571    if test "$aix_use_runtimelinking" = yes; then
18572      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18573      # instead of lib<name>.a to let people know that these are not
18574      # typical AIX shared libraries.
18575      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18576    else
18577      # We preserve .a as extension for shared libraries through AIX4.2
18578      # and later when we are not doing run time linking.
18579      library_names_spec='${libname}${release}.a $libname.a'
18580      soname_spec='${libname}${release}${shared_ext}$major'
18581    fi
18582    shlibpath_var=LIBPATH
18583  fi
18584  ;;
18585
18586amigaos*)
18587  library_names_spec='$libname.ixlibrary $libname.a'
18588  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18589  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'
18590  ;;
18591
18592beos*)
18593  library_names_spec='${libname}${shared_ext}'
18594  dynamic_linker="$host_os ld.so"
18595  shlibpath_var=LIBRARY_PATH
18596  ;;
18597
18598bsdi[45]*)
18599  version_type=linux
18600  need_version=no
18601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18602  soname_spec='${libname}${release}${shared_ext}$major'
18603  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18604  shlibpath_var=LD_LIBRARY_PATH
18605  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18606  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18607  # the default ld.so.conf also contains /usr/contrib/lib and
18608  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18609  # libtool to hard-code these into programs
18610  ;;
18611
18612cygwin* | mingw* | pw32*)
18613  version_type=windows
18614  shrext_cmds=".dll"
18615  need_version=no
18616  need_lib_prefix=no
18617
18618  case $GCC,$host_os in
18619  yes,cygwin* | yes,mingw* | yes,pw32*)
18620    library_names_spec='$libname.dll.a'
18621    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18622    postinstall_cmds='base_file=`basename \${file}`~
18623      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18624      dldir=$destdir/`dirname \$dlpath`~
18625      test -d \$dldir || mkdir -p \$dldir~
18626      $install_prog $dir/$dlname \$dldir/$dlname~
18627      chmod a+x \$dldir/$dlname'
18628    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18629      dlpath=$dir/\$dldll~
18630       $rm \$dlpath'
18631    shlibpath_overrides_runpath=yes
18632
18633    case $host_os in
18634    cygwin*)
18635      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18636      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18637      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18638      ;;
18639    mingw*)
18640      # MinGW DLLs use traditional 'lib' prefix
18641      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18642      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18643      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18644        # It is most probably a Windows format PATH printed by
18645        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18646        # path with ; separators, and with drive letters. We can handle the
18647        # drive letters (cygwin fileutils understands them), so leave them,
18648        # especially as we might pass files found there to a mingw objdump,
18649        # which wouldn't understand a cygwinified path. Ahh.
18650        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18651      else
18652        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18653      fi
18654      ;;
18655    pw32*)
18656      # pw32 DLLs use 'pw' prefix rather than 'lib'
18657      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18658      ;;
18659    esac
18660    ;;
18661
18662  *)
18663    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18664    ;;
18665  esac
18666  dynamic_linker='Win32 ld.exe'
18667  # FIXME: first we should search . and the directory the executable is in
18668  shlibpath_var=PATH
18669  ;;
18670
18671darwin* | rhapsody*)
18672  dynamic_linker="$host_os dyld"
18673  version_type=darwin
18674  need_lib_prefix=no
18675  need_version=no
18676  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18677  soname_spec='${libname}${release}${major}$shared_ext'
18678  shlibpath_overrides_runpath=yes
18679  shlibpath_var=DYLD_LIBRARY_PATH
18680  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18681
18682  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18683  ;;
18684
18685dgux*)
18686  version_type=linux
18687  need_lib_prefix=no
18688  need_version=no
18689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18690  soname_spec='${libname}${release}${shared_ext}$major'
18691  shlibpath_var=LD_LIBRARY_PATH
18692  ;;
18693
18694freebsd1*)
18695  dynamic_linker=no
18696  ;;
18697
18698freebsd* | dragonfly*)
18699  # DragonFly does not have aout.  When/if they implement a new
18700  # versioning mechanism, adjust this.
18701  if test -x /usr/bin/objformat; then
18702    objformat=`/usr/bin/objformat`
18703  else
18704    case $host_os in
18705    freebsd[123]*) objformat=aout ;;
18706    *) objformat=elf ;;
18707    esac
18708  fi
18709  version_type=freebsd-$objformat
18710  case $version_type in
18711    freebsd-elf*)
18712      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18713      need_version=no
18714      need_lib_prefix=no
18715      ;;
18716    freebsd-*)
18717      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18718      need_version=yes
18719      ;;
18720  esac
18721  shlibpath_var=LD_LIBRARY_PATH
18722  case $host_os in
18723  freebsd2*)
18724    shlibpath_overrides_runpath=yes
18725    ;;
18726  freebsd3.[01]* | freebsdelf3.[01]*)
18727    shlibpath_overrides_runpath=yes
18728    hardcode_into_libs=yes
18729    ;;
18730  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18731  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18732    shlibpath_overrides_runpath=no
18733    hardcode_into_libs=yes
18734    ;;
18735  *) # from 4.6 on, and DragonFly
18736    shlibpath_overrides_runpath=yes
18737    hardcode_into_libs=yes
18738    ;;
18739  esac
18740  ;;
18741
18742gnu*)
18743  version_type=linux
18744  need_lib_prefix=no
18745  need_version=no
18746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18747  soname_spec='${libname}${release}${shared_ext}$major'
18748  shlibpath_var=LD_LIBRARY_PATH
18749  hardcode_into_libs=yes
18750  ;;
18751
18752hpux9* | hpux10* | hpux11*)
18753  # Give a soname corresponding to the major version so that dld.sl refuses to
18754  # link against other versions.
18755  version_type=sunos
18756  need_lib_prefix=no
18757  need_version=no
18758  case $host_cpu in
18759  ia64*)
18760    shrext_cmds='.so'
18761    hardcode_into_libs=yes
18762    dynamic_linker="$host_os dld.so"
18763    shlibpath_var=LD_LIBRARY_PATH
18764    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18765    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18766    soname_spec='${libname}${release}${shared_ext}$major'
18767    if test "X$HPUX_IA64_MODE" = X32; then
18768      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18769    else
18770      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18771    fi
18772    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18773    ;;
18774   hppa*64*)
18775     shrext_cmds='.sl'
18776     hardcode_into_libs=yes
18777     dynamic_linker="$host_os dld.sl"
18778     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18779     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18780     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18781     soname_spec='${libname}${release}${shared_ext}$major'
18782     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18783     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18784     ;;
18785   *)
18786    shrext_cmds='.sl'
18787    dynamic_linker="$host_os dld.sl"
18788    shlibpath_var=SHLIB_PATH
18789    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18790    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18791    soname_spec='${libname}${release}${shared_ext}$major'
18792    ;;
18793  esac
18794  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18795  postinstall_cmds='chmod 555 $lib'
18796  ;;
18797
18798interix[3-9]*)
18799  version_type=linux
18800  need_lib_prefix=no
18801  need_version=no
18802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18803  soname_spec='${libname}${release}${shared_ext}$major'
18804  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18805  shlibpath_var=LD_LIBRARY_PATH
18806  shlibpath_overrides_runpath=no
18807  hardcode_into_libs=yes
18808  ;;
18809
18810irix5* | irix6* | nonstopux*)
18811  case $host_os in
18812    nonstopux*) version_type=nonstopux ;;
18813    *)
18814	if test "$lt_cv_prog_gnu_ld" = yes; then
18815		version_type=linux
18816	else
18817		version_type=irix
18818	fi ;;
18819  esac
18820  need_lib_prefix=no
18821  need_version=no
18822  soname_spec='${libname}${release}${shared_ext}$major'
18823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18824  case $host_os in
18825  irix5* | nonstopux*)
18826    libsuff= shlibsuff=
18827    ;;
18828  *)
18829    case $LD in # libtool.m4 will add one of these switches to LD
18830    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18831      libsuff= shlibsuff= libmagic=32-bit;;
18832    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18833      libsuff=32 shlibsuff=N32 libmagic=N32;;
18834    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18835      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18836    *) libsuff= shlibsuff= libmagic=never-match;;
18837    esac
18838    ;;
18839  esac
18840  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18841  shlibpath_overrides_runpath=no
18842  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18843  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18844  hardcode_into_libs=yes
18845  ;;
18846
18847# No shared lib support for Linux oldld, aout, or coff.
18848linux*oldld* | linux*aout* | linux*coff*)
18849  dynamic_linker=no
18850  ;;
18851
18852# This must be Linux ELF.
18853linux* | k*bsd*-gnu)
18854  version_type=linux
18855  need_lib_prefix=no
18856  need_version=no
18857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18858  soname_spec='${libname}${release}${shared_ext}$major'
18859  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18860  shlibpath_var=LD_LIBRARY_PATH
18861  shlibpath_overrides_runpath=no
18862  # This implies no fast_install, which is unacceptable.
18863  # Some rework will be needed to allow for fast_install
18864  # before this can be enabled.
18865  hardcode_into_libs=yes
18866
18867  # Append ld.so.conf contents to the search path
18868  if test -f /etc/ld.so.conf; then
18869    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' ' '`
18870    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18871  fi
18872
18873  # We used to test for /lib/ld.so.1 and disable shared libraries on
18874  # powerpc, because MkLinux only supported shared libraries with the
18875  # GNU dynamic linker.  Since this was broken with cross compilers,
18876  # most powerpc-linux boxes support dynamic linking these days and
18877  # people can always --disable-shared, the test was removed, and we
18878  # assume the GNU/Linux dynamic linker is in use.
18879  dynamic_linker='GNU/Linux ld.so'
18880  ;;
18881
18882netbsdelf*-gnu)
18883  version_type=linux
18884  need_lib_prefix=no
18885  need_version=no
18886  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18887  soname_spec='${libname}${release}${shared_ext}$major'
18888  shlibpath_var=LD_LIBRARY_PATH
18889  shlibpath_overrides_runpath=no
18890  hardcode_into_libs=yes
18891  dynamic_linker='NetBSD ld.elf_so'
18892  ;;
18893
18894netbsd*)
18895  version_type=sunos
18896  need_lib_prefix=no
18897  need_version=no
18898  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18899    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18900    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18901    dynamic_linker='NetBSD (a.out) ld.so'
18902  else
18903    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18904    soname_spec='${libname}${release}${shared_ext}$major'
18905    dynamic_linker='NetBSD ld.elf_so'
18906  fi
18907  shlibpath_var=LD_LIBRARY_PATH
18908  shlibpath_overrides_runpath=yes
18909  hardcode_into_libs=yes
18910  ;;
18911
18912newsos6)
18913  version_type=linux
18914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18915  shlibpath_var=LD_LIBRARY_PATH
18916  shlibpath_overrides_runpath=yes
18917  ;;
18918
18919nto-qnx*)
18920  version_type=linux
18921  need_lib_prefix=no
18922  need_version=no
18923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18924  soname_spec='${libname}${release}${shared_ext}$major'
18925  shlibpath_var=LD_LIBRARY_PATH
18926  shlibpath_overrides_runpath=yes
18927  ;;
18928
18929openbsd*)
18930  version_type=sunos
18931  sys_lib_dlsearch_path_spec="/usr/lib"
18932  need_lib_prefix=no
18933  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18934  case $host_os in
18935    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18936    *)                         need_version=no  ;;
18937  esac
18938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18939  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18940  shlibpath_var=LD_LIBRARY_PATH
18941  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18942    case $host_os in
18943      openbsd2.[89] | openbsd2.[89].*)
18944	shlibpath_overrides_runpath=no
18945	;;
18946      *)
18947	shlibpath_overrides_runpath=yes
18948	;;
18949      esac
18950  else
18951    shlibpath_overrides_runpath=yes
18952  fi
18953  ;;
18954
18955os2*)
18956  libname_spec='$name'
18957  shrext_cmds=".dll"
18958  need_lib_prefix=no
18959  library_names_spec='$libname${shared_ext} $libname.a'
18960  dynamic_linker='OS/2 ld.exe'
18961  shlibpath_var=LIBPATH
18962  ;;
18963
18964osf3* | osf4* | osf5*)
18965  version_type=osf
18966  need_lib_prefix=no
18967  need_version=no
18968  soname_spec='${libname}${release}${shared_ext}$major'
18969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18970  shlibpath_var=LD_LIBRARY_PATH
18971  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18972  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18973  ;;
18974
18975rdos*)
18976  dynamic_linker=no
18977  ;;
18978
18979solaris*)
18980  version_type=linux
18981  need_lib_prefix=no
18982  need_version=no
18983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18984  soname_spec='${libname}${release}${shared_ext}$major'
18985  shlibpath_var=LD_LIBRARY_PATH
18986  shlibpath_overrides_runpath=yes
18987  hardcode_into_libs=yes
18988  # ldd complains unless libraries are executable
18989  postinstall_cmds='chmod +x $lib'
18990  ;;
18991
18992sunos4*)
18993  version_type=sunos
18994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18995  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18996  shlibpath_var=LD_LIBRARY_PATH
18997  shlibpath_overrides_runpath=yes
18998  if test "$with_gnu_ld" = yes; then
18999    need_lib_prefix=no
19000  fi
19001  need_version=yes
19002  ;;
19003
19004sysv4 | sysv4.3*)
19005  version_type=linux
19006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19007  soname_spec='${libname}${release}${shared_ext}$major'
19008  shlibpath_var=LD_LIBRARY_PATH
19009  case $host_vendor in
19010    sni)
19011      shlibpath_overrides_runpath=no
19012      need_lib_prefix=no
19013      export_dynamic_flag_spec='${wl}-Blargedynsym'
19014      runpath_var=LD_RUN_PATH
19015      ;;
19016    siemens)
19017      need_lib_prefix=no
19018      ;;
19019    motorola)
19020      need_lib_prefix=no
19021      need_version=no
19022      shlibpath_overrides_runpath=no
19023      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19024      ;;
19025  esac
19026  ;;
19027
19028sysv4*MP*)
19029  if test -d /usr/nec ;then
19030    version_type=linux
19031    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19032    soname_spec='$libname${shared_ext}.$major'
19033    shlibpath_var=LD_LIBRARY_PATH
19034  fi
19035  ;;
19036
19037sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19038  version_type=freebsd-elf
19039  need_lib_prefix=no
19040  need_version=no
19041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19042  soname_spec='${libname}${release}${shared_ext}$major'
19043  shlibpath_var=LD_LIBRARY_PATH
19044  hardcode_into_libs=yes
19045  if test "$with_gnu_ld" = yes; then
19046    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19047    shlibpath_overrides_runpath=no
19048  else
19049    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19050    shlibpath_overrides_runpath=yes
19051    case $host_os in
19052      sco3.2v5*)
19053        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19054	;;
19055    esac
19056  fi
19057  sys_lib_dlsearch_path_spec='/usr/lib'
19058  ;;
19059
19060uts4*)
19061  version_type=linux
19062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19063  soname_spec='${libname}${release}${shared_ext}$major'
19064  shlibpath_var=LD_LIBRARY_PATH
19065  ;;
19066
19067*)
19068  dynamic_linker=no
19069  ;;
19070esac
19071{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19072echo "${ECHO_T}$dynamic_linker" >&6; }
19073test "$dynamic_linker" = no && can_build_shared=no
19074
19075if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19076  echo $ECHO_N "(cached) $ECHO_C" >&6
19077else
19078  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19079fi
19080
19081sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19082if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19083  echo $ECHO_N "(cached) $ECHO_C" >&6
19084else
19085  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19086fi
19087
19088sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19089
19090variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19091if test "$GCC" = yes; then
19092  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19093fi
19094
19095{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19096echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19097hardcode_action_GCJ=
19098if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19099   test -n "$runpath_var_GCJ" || \
19100   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19101
19102  # We can hardcode non-existant directories.
19103  if test "$hardcode_direct_GCJ" != no &&
19104     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19105     # have to relink, otherwise we might link with an installed library
19106     # when we should be linking with a yet-to-be-installed one
19107     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19108     test "$hardcode_minus_L_GCJ" != no; then
19109    # Linking always hardcodes the temporary library directory.
19110    hardcode_action_GCJ=relink
19111  else
19112    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19113    hardcode_action_GCJ=immediate
19114  fi
19115else
19116  # We cannot hardcode anything, or else we can only hardcode existing
19117  # directories.
19118  hardcode_action_GCJ=unsupported
19119fi
19120{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19121echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19122
19123if test "$hardcode_action_GCJ" = relink; then
19124  # Fast installation is not supported
19125  enable_fast_install=no
19126elif test "$shlibpath_overrides_runpath" = yes ||
19127     test "$enable_shared" = no; then
19128  # Fast installation is not necessary
19129  enable_fast_install=needless
19130fi
19131
19132
19133# The else clause should only fire when bootstrapping the
19134# libtool distribution, otherwise you forgot to ship ltmain.sh
19135# with your package, and you will get complaints that there are
19136# no rules to generate ltmain.sh.
19137if test -f "$ltmain"; then
19138  # See if we are running on zsh, and set the options which allow our commands through
19139  # without removal of \ escapes.
19140  if test -n "${ZSH_VERSION+set}" ; then
19141    setopt NO_GLOB_SUBST
19142  fi
19143  # Now quote all the things that may contain metacharacters while being
19144  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19145  # variables and quote the copies for generation of the libtool script.
19146  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19147    SED SHELL STRIP \
19148    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19149    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19150    deplibs_check_method reload_flag reload_cmds need_locks \
19151    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19152    lt_cv_sys_global_symbol_to_c_name_address \
19153    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19154    old_postinstall_cmds old_postuninstall_cmds \
19155    compiler_GCJ \
19156    CC_GCJ \
19157    LD_GCJ \
19158    lt_prog_compiler_wl_GCJ \
19159    lt_prog_compiler_pic_GCJ \
19160    lt_prog_compiler_static_GCJ \
19161    lt_prog_compiler_no_builtin_flag_GCJ \
19162    export_dynamic_flag_spec_GCJ \
19163    thread_safe_flag_spec_GCJ \
19164    whole_archive_flag_spec_GCJ \
19165    enable_shared_with_static_runtimes_GCJ \
19166    old_archive_cmds_GCJ \
19167    old_archive_from_new_cmds_GCJ \
19168    predep_objects_GCJ \
19169    postdep_objects_GCJ \
19170    predeps_GCJ \
19171    postdeps_GCJ \
19172    compiler_lib_search_path_GCJ \
19173    compiler_lib_search_dirs_GCJ \
19174    archive_cmds_GCJ \
19175    archive_expsym_cmds_GCJ \
19176    postinstall_cmds_GCJ \
19177    postuninstall_cmds_GCJ \
19178    old_archive_from_expsyms_cmds_GCJ \
19179    allow_undefined_flag_GCJ \
19180    no_undefined_flag_GCJ \
19181    export_symbols_cmds_GCJ \
19182    hardcode_libdir_flag_spec_GCJ \
19183    hardcode_libdir_flag_spec_ld_GCJ \
19184    hardcode_libdir_separator_GCJ \
19185    hardcode_automatic_GCJ \
19186    module_cmds_GCJ \
19187    module_expsym_cmds_GCJ \
19188    lt_cv_prog_compiler_c_o_GCJ \
19189    fix_srcfile_path_GCJ \
19190    exclude_expsyms_GCJ \
19191    include_expsyms_GCJ; do
19192
19193    case $var in
19194    old_archive_cmds_GCJ | \
19195    old_archive_from_new_cmds_GCJ | \
19196    archive_cmds_GCJ | \
19197    archive_expsym_cmds_GCJ | \
19198    module_cmds_GCJ | \
19199    module_expsym_cmds_GCJ | \
19200    old_archive_from_expsyms_cmds_GCJ | \
19201    export_symbols_cmds_GCJ | \
19202    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19203    postinstall_cmds | postuninstall_cmds | \
19204    old_postinstall_cmds | old_postuninstall_cmds | \
19205    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19206      # Double-quote double-evaled strings.
19207      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19208      ;;
19209    *)
19210      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19211      ;;
19212    esac
19213  done
19214
19215  case $lt_echo in
19216  *'\$0 --fallback-echo"')
19217    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19218    ;;
19219  esac
19220
19221cfgfile="$ofile"
19222
19223  cat <<__EOF__ >> "$cfgfile"
19224# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19225
19226# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19227
19228# Shell to use when invoking shell scripts.
19229SHELL=$lt_SHELL
19230
19231# Whether or not to build shared libraries.
19232build_libtool_libs=$enable_shared
19233
19234# Whether or not to build static libraries.
19235build_old_libs=$enable_static
19236
19237# Whether or not to add -lc for building shared libraries.
19238build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19239
19240# Whether or not to disallow shared libs when runtime libs are static
19241allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19242
19243# Whether or not to optimize for fast installation.
19244fast_install=$enable_fast_install
19245
19246# The host system.
19247host_alias=$host_alias
19248host=$host
19249host_os=$host_os
19250
19251# The build system.
19252build_alias=$build_alias
19253build=$build
19254build_os=$build_os
19255
19256# An echo program that does not interpret backslashes.
19257echo=$lt_echo
19258
19259# The archiver.
19260AR=$lt_AR
19261AR_FLAGS=$lt_AR_FLAGS
19262
19263# A C compiler.
19264LTCC=$lt_LTCC
19265
19266# LTCC compiler flags.
19267LTCFLAGS=$lt_LTCFLAGS
19268
19269# A language-specific compiler.
19270CC=$lt_compiler_GCJ
19271
19272# Is the compiler the GNU C compiler?
19273with_gcc=$GCC_GCJ
19274
19275# An ERE matcher.
19276EGREP=$lt_EGREP
19277
19278# The linker used to build libraries.
19279LD=$lt_LD_GCJ
19280
19281# Whether we need hard or soft links.
19282LN_S=$lt_LN_S
19283
19284# A BSD-compatible nm program.
19285NM=$lt_NM
19286
19287# A symbol stripping program
19288STRIP=$lt_STRIP
19289
19290# Used to examine libraries when file_magic_cmd begins "file"
19291MAGIC_CMD=$MAGIC_CMD
19292
19293# Used on cygwin: DLL creation program.
19294DLLTOOL="$DLLTOOL"
19295
19296# Used on cygwin: object dumper.
19297OBJDUMP="$OBJDUMP"
19298
19299# Used on cygwin: assembler.
19300AS="$AS"
19301
19302# The name of the directory that contains temporary libtool files.
19303objdir=$objdir
19304
19305# How to create reloadable object files.
19306reload_flag=$lt_reload_flag
19307reload_cmds=$lt_reload_cmds
19308
19309# How to pass a linker flag through the compiler.
19310wl=$lt_lt_prog_compiler_wl_GCJ
19311
19312# Object file suffix (normally "o").
19313objext="$ac_objext"
19314
19315# Old archive suffix (normally "a").
19316libext="$libext"
19317
19318# Shared library suffix (normally ".so").
19319shrext_cmds='$shrext_cmds'
19320
19321# Executable file suffix (normally "").
19322exeext="$exeext"
19323
19324# Additional compiler flags for building library objects.
19325pic_flag=$lt_lt_prog_compiler_pic_GCJ
19326pic_mode=$pic_mode
19327
19328# What is the maximum length of a command?
19329max_cmd_len=$lt_cv_sys_max_cmd_len
19330
19331# Does compiler simultaneously support -c and -o options?
19332compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19333
19334# Must we lock files when doing compilation?
19335need_locks=$lt_need_locks
19336
19337# Do we need the lib prefix for modules?
19338need_lib_prefix=$need_lib_prefix
19339
19340# Do we need a version for libraries?
19341need_version=$need_version
19342
19343# Whether dlopen is supported.
19344dlopen_support=$enable_dlopen
19345
19346# Whether dlopen of programs is supported.
19347dlopen_self=$enable_dlopen_self
19348
19349# Whether dlopen of statically linked programs is supported.
19350dlopen_self_static=$enable_dlopen_self_static
19351
19352# Compiler flag to prevent dynamic linking.
19353link_static_flag=$lt_lt_prog_compiler_static_GCJ
19354
19355# Compiler flag to turn off builtin functions.
19356no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19357
19358# Compiler flag to allow reflexive dlopens.
19359export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19360
19361# Compiler flag to generate shared objects directly from archives.
19362whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19363
19364# Compiler flag to generate thread-safe objects.
19365thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19366
19367# Library versioning type.
19368version_type=$version_type
19369
19370# Format of library name prefix.
19371libname_spec=$lt_libname_spec
19372
19373# List of archive names.  First name is the real one, the rest are links.
19374# The last name is the one that the linker finds with -lNAME.
19375library_names_spec=$lt_library_names_spec
19376
19377# The coded name of the library, if different from the real name.
19378soname_spec=$lt_soname_spec
19379
19380# Commands used to build and install an old-style archive.
19381RANLIB=$lt_RANLIB
19382old_archive_cmds=$lt_old_archive_cmds_GCJ
19383old_postinstall_cmds=$lt_old_postinstall_cmds
19384old_postuninstall_cmds=$lt_old_postuninstall_cmds
19385
19386# Create an old-style archive from a shared archive.
19387old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19388
19389# Create a temporary old-style archive to link instead of a shared archive.
19390old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19391
19392# Commands used to build and install a shared archive.
19393archive_cmds=$lt_archive_cmds_GCJ
19394archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19395postinstall_cmds=$lt_postinstall_cmds
19396postuninstall_cmds=$lt_postuninstall_cmds
19397
19398# Commands used to build a loadable module (assumed same as above if empty)
19399module_cmds=$lt_module_cmds_GCJ
19400module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19401
19402# Commands to strip libraries.
19403old_striplib=$lt_old_striplib
19404striplib=$lt_striplib
19405
19406# Dependencies to place before the objects being linked to create a
19407# shared library.
19408predep_objects=$lt_predep_objects_GCJ
19409
19410# Dependencies to place after the objects being linked to create a
19411# shared library.
19412postdep_objects=$lt_postdep_objects_GCJ
19413
19414# Dependencies to place before the objects being linked to create a
19415# shared library.
19416predeps=$lt_predeps_GCJ
19417
19418# Dependencies to place after the objects being linked to create a
19419# shared library.
19420postdeps=$lt_postdeps_GCJ
19421
19422# The directories searched by this compiler when creating a shared
19423# library
19424compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19425
19426# The library search path used internally by the compiler when linking
19427# a shared library.
19428compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19429
19430# Method to check whether dependent libraries are shared objects.
19431deplibs_check_method=$lt_deplibs_check_method
19432
19433# Command to use when deplibs_check_method == file_magic.
19434file_magic_cmd=$lt_file_magic_cmd
19435
19436# Flag that allows shared libraries with undefined symbols to be built.
19437allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19438
19439# Flag that forces no undefined symbols.
19440no_undefined_flag=$lt_no_undefined_flag_GCJ
19441
19442# Commands used to finish a libtool library installation in a directory.
19443finish_cmds=$lt_finish_cmds
19444
19445# Same as above, but a single script fragment to be evaled but not shown.
19446finish_eval=$lt_finish_eval
19447
19448# Take the output of nm and produce a listing of raw symbols and C names.
19449global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19450
19451# Transform the output of nm in a proper C declaration
19452global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19453
19454# Transform the output of nm in a C name address pair
19455global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19456
19457# This is the shared library runtime path variable.
19458runpath_var=$runpath_var
19459
19460# This is the shared library path variable.
19461shlibpath_var=$shlibpath_var
19462
19463# Is shlibpath searched before the hard-coded library search path?
19464shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19465
19466# How to hardcode a shared library path into an executable.
19467hardcode_action=$hardcode_action_GCJ
19468
19469# Whether we should hardcode library paths into libraries.
19470hardcode_into_libs=$hardcode_into_libs
19471
19472# Flag to hardcode \$libdir into a binary during linking.
19473# This must work even if \$libdir does not exist.
19474hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19475
19476# If ld is used when linking, flag to hardcode \$libdir into
19477# a binary during linking. This must work even if \$libdir does
19478# not exist.
19479hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19480
19481# Whether we need a single -rpath flag with a separated argument.
19482hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19483
19484# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19485# resulting binary.
19486hardcode_direct=$hardcode_direct_GCJ
19487
19488# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19489# resulting binary.
19490hardcode_minus_L=$hardcode_minus_L_GCJ
19491
19492# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19493# the resulting binary.
19494hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19495
19496# Set to yes if building a shared library automatically hardcodes DIR into the library
19497# and all subsequent libraries and executables linked against it.
19498hardcode_automatic=$hardcode_automatic_GCJ
19499
19500# Variables whose values should be saved in libtool wrapper scripts and
19501# restored at relink time.
19502variables_saved_for_relink="$variables_saved_for_relink"
19503
19504# Whether libtool must link a program against all its dependency libraries.
19505link_all_deplibs=$link_all_deplibs_GCJ
19506
19507# Compile-time system search path for libraries
19508sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19509
19510# Run-time system search path for libraries
19511sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19512
19513# Fix the shell variable \$srcfile for the compiler.
19514fix_srcfile_path=$lt_fix_srcfile_path
19515
19516# Set to yes if exported symbols are required.
19517always_export_symbols=$always_export_symbols_GCJ
19518
19519# The commands to list exported symbols.
19520export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19521
19522# The commands to extract the exported symbol list from a shared archive.
19523extract_expsyms_cmds=$lt_extract_expsyms_cmds
19524
19525# Symbols that should not be listed in the preloaded symbols.
19526exclude_expsyms=$lt_exclude_expsyms_GCJ
19527
19528# Symbols that must always be exported.
19529include_expsyms=$lt_include_expsyms_GCJ
19530
19531# ### END LIBTOOL TAG CONFIG: $tagname
19532
19533__EOF__
19534
19535
19536else
19537  # If there is no Makefile yet, we rely on a make rule to execute
19538  # `config.status --recheck' to rerun these tests and create the
19539  # libtool script then.
19540  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19541  if test -f "$ltmain_in"; then
19542    test -f Makefile && make "$ltmain"
19543  fi
19544fi
19545
19546
19547ac_ext=c
19548ac_cpp='$CPP $CPPFLAGS'
19549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551ac_compiler_gnu=$ac_cv_c_compiler_gnu
19552
19553CC="$lt_save_CC"
19554
19555	else
19556	  tagname=""
19557	fi
19558	;;
19559
19560      RC)
19561
19562
19563# Source file extension for RC test sources.
19564ac_ext=rc
19565
19566# Object file extension for compiled RC test sources.
19567objext=o
19568objext_RC=$objext
19569
19570# Code to be used in simple compile tests
19571lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19572
19573# Code to be used in simple link tests
19574lt_simple_link_test_code="$lt_simple_compile_test_code"
19575
19576# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19577
19578# If no C compiler was specified, use CC.
19579LTCC=${LTCC-"$CC"}
19580
19581# If no C compiler flags were specified, use CFLAGS.
19582LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19583
19584# Allow CC to be a program name with arguments.
19585compiler=$CC
19586
19587
19588# save warnings/boilerplate of simple test code
19589ac_outfile=conftest.$ac_objext
19590echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19591eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19592_lt_compiler_boilerplate=`cat conftest.err`
19593$rm conftest*
19594
19595ac_outfile=conftest.$ac_objext
19596echo "$lt_simple_link_test_code" >conftest.$ac_ext
19597eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19598_lt_linker_boilerplate=`cat conftest.err`
19599$rm -r conftest*
19600
19601
19602# Allow CC to be a program name with arguments.
19603lt_save_CC="$CC"
19604CC=${RC-"windres"}
19605compiler=$CC
19606compiler_RC=$CC
19607for cc_temp in $compiler""; do
19608  case $cc_temp in
19609    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19610    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19611    \-*) ;;
19612    *) break;;
19613  esac
19614done
19615cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19616
19617lt_cv_prog_compiler_c_o_RC=yes
19618
19619# The else clause should only fire when bootstrapping the
19620# libtool distribution, otherwise you forgot to ship ltmain.sh
19621# with your package, and you will get complaints that there are
19622# no rules to generate ltmain.sh.
19623if test -f "$ltmain"; then
19624  # See if we are running on zsh, and set the options which allow our commands through
19625  # without removal of \ escapes.
19626  if test -n "${ZSH_VERSION+set}" ; then
19627    setopt NO_GLOB_SUBST
19628  fi
19629  # Now quote all the things that may contain metacharacters while being
19630  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19631  # variables and quote the copies for generation of the libtool script.
19632  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19633    SED SHELL STRIP \
19634    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19635    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19636    deplibs_check_method reload_flag reload_cmds need_locks \
19637    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19638    lt_cv_sys_global_symbol_to_c_name_address \
19639    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19640    old_postinstall_cmds old_postuninstall_cmds \
19641    compiler_RC \
19642    CC_RC \
19643    LD_RC \
19644    lt_prog_compiler_wl_RC \
19645    lt_prog_compiler_pic_RC \
19646    lt_prog_compiler_static_RC \
19647    lt_prog_compiler_no_builtin_flag_RC \
19648    export_dynamic_flag_spec_RC \
19649    thread_safe_flag_spec_RC \
19650    whole_archive_flag_spec_RC \
19651    enable_shared_with_static_runtimes_RC \
19652    old_archive_cmds_RC \
19653    old_archive_from_new_cmds_RC \
19654    predep_objects_RC \
19655    postdep_objects_RC \
19656    predeps_RC \
19657    postdeps_RC \
19658    compiler_lib_search_path_RC \
19659    compiler_lib_search_dirs_RC \
19660    archive_cmds_RC \
19661    archive_expsym_cmds_RC \
19662    postinstall_cmds_RC \
19663    postuninstall_cmds_RC \
19664    old_archive_from_expsyms_cmds_RC \
19665    allow_undefined_flag_RC \
19666    no_undefined_flag_RC \
19667    export_symbols_cmds_RC \
19668    hardcode_libdir_flag_spec_RC \
19669    hardcode_libdir_flag_spec_ld_RC \
19670    hardcode_libdir_separator_RC \
19671    hardcode_automatic_RC \
19672    module_cmds_RC \
19673    module_expsym_cmds_RC \
19674    lt_cv_prog_compiler_c_o_RC \
19675    fix_srcfile_path_RC \
19676    exclude_expsyms_RC \
19677    include_expsyms_RC; do
19678
19679    case $var in
19680    old_archive_cmds_RC | \
19681    old_archive_from_new_cmds_RC | \
19682    archive_cmds_RC | \
19683    archive_expsym_cmds_RC | \
19684    module_cmds_RC | \
19685    module_expsym_cmds_RC | \
19686    old_archive_from_expsyms_cmds_RC | \
19687    export_symbols_cmds_RC | \
19688    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19689    postinstall_cmds | postuninstall_cmds | \
19690    old_postinstall_cmds | old_postuninstall_cmds | \
19691    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19692      # Double-quote double-evaled strings.
19693      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19694      ;;
19695    *)
19696      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19697      ;;
19698    esac
19699  done
19700
19701  case $lt_echo in
19702  *'\$0 --fallback-echo"')
19703    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19704    ;;
19705  esac
19706
19707cfgfile="$ofile"
19708
19709  cat <<__EOF__ >> "$cfgfile"
19710# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19711
19712# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19713
19714# Shell to use when invoking shell scripts.
19715SHELL=$lt_SHELL
19716
19717# Whether or not to build shared libraries.
19718build_libtool_libs=$enable_shared
19719
19720# Whether or not to build static libraries.
19721build_old_libs=$enable_static
19722
19723# Whether or not to add -lc for building shared libraries.
19724build_libtool_need_lc=$archive_cmds_need_lc_RC
19725
19726# Whether or not to disallow shared libs when runtime libs are static
19727allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19728
19729# Whether or not to optimize for fast installation.
19730fast_install=$enable_fast_install
19731
19732# The host system.
19733host_alias=$host_alias
19734host=$host
19735host_os=$host_os
19736
19737# The build system.
19738build_alias=$build_alias
19739build=$build
19740build_os=$build_os
19741
19742# An echo program that does not interpret backslashes.
19743echo=$lt_echo
19744
19745# The archiver.
19746AR=$lt_AR
19747AR_FLAGS=$lt_AR_FLAGS
19748
19749# A C compiler.
19750LTCC=$lt_LTCC
19751
19752# LTCC compiler flags.
19753LTCFLAGS=$lt_LTCFLAGS
19754
19755# A language-specific compiler.
19756CC=$lt_compiler_RC
19757
19758# Is the compiler the GNU C compiler?
19759with_gcc=$GCC_RC
19760
19761# An ERE matcher.
19762EGREP=$lt_EGREP
19763
19764# The linker used to build libraries.
19765LD=$lt_LD_RC
19766
19767# Whether we need hard or soft links.
19768LN_S=$lt_LN_S
19769
19770# A BSD-compatible nm program.
19771NM=$lt_NM
19772
19773# A symbol stripping program
19774STRIP=$lt_STRIP
19775
19776# Used to examine libraries when file_magic_cmd begins "file"
19777MAGIC_CMD=$MAGIC_CMD
19778
19779# Used on cygwin: DLL creation program.
19780DLLTOOL="$DLLTOOL"
19781
19782# Used on cygwin: object dumper.
19783OBJDUMP="$OBJDUMP"
19784
19785# Used on cygwin: assembler.
19786AS="$AS"
19787
19788# The name of the directory that contains temporary libtool files.
19789objdir=$objdir
19790
19791# How to create reloadable object files.
19792reload_flag=$lt_reload_flag
19793reload_cmds=$lt_reload_cmds
19794
19795# How to pass a linker flag through the compiler.
19796wl=$lt_lt_prog_compiler_wl_RC
19797
19798# Object file suffix (normally "o").
19799objext="$ac_objext"
19800
19801# Old archive suffix (normally "a").
19802libext="$libext"
19803
19804# Shared library suffix (normally ".so").
19805shrext_cmds='$shrext_cmds'
19806
19807# Executable file suffix (normally "").
19808exeext="$exeext"
19809
19810# Additional compiler flags for building library objects.
19811pic_flag=$lt_lt_prog_compiler_pic_RC
19812pic_mode=$pic_mode
19813
19814# What is the maximum length of a command?
19815max_cmd_len=$lt_cv_sys_max_cmd_len
19816
19817# Does compiler simultaneously support -c and -o options?
19818compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19819
19820# Must we lock files when doing compilation?
19821need_locks=$lt_need_locks
19822
19823# Do we need the lib prefix for modules?
19824need_lib_prefix=$need_lib_prefix
19825
19826# Do we need a version for libraries?
19827need_version=$need_version
19828
19829# Whether dlopen is supported.
19830dlopen_support=$enable_dlopen
19831
19832# Whether dlopen of programs is supported.
19833dlopen_self=$enable_dlopen_self
19834
19835# Whether dlopen of statically linked programs is supported.
19836dlopen_self_static=$enable_dlopen_self_static
19837
19838# Compiler flag to prevent dynamic linking.
19839link_static_flag=$lt_lt_prog_compiler_static_RC
19840
19841# Compiler flag to turn off builtin functions.
19842no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19843
19844# Compiler flag to allow reflexive dlopens.
19845export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19846
19847# Compiler flag to generate shared objects directly from archives.
19848whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19849
19850# Compiler flag to generate thread-safe objects.
19851thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19852
19853# Library versioning type.
19854version_type=$version_type
19855
19856# Format of library name prefix.
19857libname_spec=$lt_libname_spec
19858
19859# List of archive names.  First name is the real one, the rest are links.
19860# The last name is the one that the linker finds with -lNAME.
19861library_names_spec=$lt_library_names_spec
19862
19863# The coded name of the library, if different from the real name.
19864soname_spec=$lt_soname_spec
19865
19866# Commands used to build and install an old-style archive.
19867RANLIB=$lt_RANLIB
19868old_archive_cmds=$lt_old_archive_cmds_RC
19869old_postinstall_cmds=$lt_old_postinstall_cmds
19870old_postuninstall_cmds=$lt_old_postuninstall_cmds
19871
19872# Create an old-style archive from a shared archive.
19873old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19874
19875# Create a temporary old-style archive to link instead of a shared archive.
19876old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19877
19878# Commands used to build and install a shared archive.
19879archive_cmds=$lt_archive_cmds_RC
19880archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19881postinstall_cmds=$lt_postinstall_cmds
19882postuninstall_cmds=$lt_postuninstall_cmds
19883
19884# Commands used to build a loadable module (assumed same as above if empty)
19885module_cmds=$lt_module_cmds_RC
19886module_expsym_cmds=$lt_module_expsym_cmds_RC
19887
19888# Commands to strip libraries.
19889old_striplib=$lt_old_striplib
19890striplib=$lt_striplib
19891
19892# Dependencies to place before the objects being linked to create a
19893# shared library.
19894predep_objects=$lt_predep_objects_RC
19895
19896# Dependencies to place after the objects being linked to create a
19897# shared library.
19898postdep_objects=$lt_postdep_objects_RC
19899
19900# Dependencies to place before the objects being linked to create a
19901# shared library.
19902predeps=$lt_predeps_RC
19903
19904# Dependencies to place after the objects being linked to create a
19905# shared library.
19906postdeps=$lt_postdeps_RC
19907
19908# The directories searched by this compiler when creating a shared
19909# library
19910compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19911
19912# The library search path used internally by the compiler when linking
19913# a shared library.
19914compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19915
19916# Method to check whether dependent libraries are shared objects.
19917deplibs_check_method=$lt_deplibs_check_method
19918
19919# Command to use when deplibs_check_method == file_magic.
19920file_magic_cmd=$lt_file_magic_cmd
19921
19922# Flag that allows shared libraries with undefined symbols to be built.
19923allow_undefined_flag=$lt_allow_undefined_flag_RC
19924
19925# Flag that forces no undefined symbols.
19926no_undefined_flag=$lt_no_undefined_flag_RC
19927
19928# Commands used to finish a libtool library installation in a directory.
19929finish_cmds=$lt_finish_cmds
19930
19931# Same as above, but a single script fragment to be evaled but not shown.
19932finish_eval=$lt_finish_eval
19933
19934# Take the output of nm and produce a listing of raw symbols and C names.
19935global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19936
19937# Transform the output of nm in a proper C declaration
19938global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19939
19940# Transform the output of nm in a C name address pair
19941global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19942
19943# This is the shared library runtime path variable.
19944runpath_var=$runpath_var
19945
19946# This is the shared library path variable.
19947shlibpath_var=$shlibpath_var
19948
19949# Is shlibpath searched before the hard-coded library search path?
19950shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19951
19952# How to hardcode a shared library path into an executable.
19953hardcode_action=$hardcode_action_RC
19954
19955# Whether we should hardcode library paths into libraries.
19956hardcode_into_libs=$hardcode_into_libs
19957
19958# Flag to hardcode \$libdir into a binary during linking.
19959# This must work even if \$libdir does not exist.
19960hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19961
19962# If ld is used when linking, flag to hardcode \$libdir into
19963# a binary during linking. This must work even if \$libdir does
19964# not exist.
19965hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19966
19967# Whether we need a single -rpath flag with a separated argument.
19968hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19969
19970# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19971# resulting binary.
19972hardcode_direct=$hardcode_direct_RC
19973
19974# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19975# resulting binary.
19976hardcode_minus_L=$hardcode_minus_L_RC
19977
19978# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19979# the resulting binary.
19980hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19981
19982# Set to yes if building a shared library automatically hardcodes DIR into the library
19983# and all subsequent libraries and executables linked against it.
19984hardcode_automatic=$hardcode_automatic_RC
19985
19986# Variables whose values should be saved in libtool wrapper scripts and
19987# restored at relink time.
19988variables_saved_for_relink="$variables_saved_for_relink"
19989
19990# Whether libtool must link a program against all its dependency libraries.
19991link_all_deplibs=$link_all_deplibs_RC
19992
19993# Compile-time system search path for libraries
19994sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19995
19996# Run-time system search path for libraries
19997sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19998
19999# Fix the shell variable \$srcfile for the compiler.
20000fix_srcfile_path=$lt_fix_srcfile_path
20001
20002# Set to yes if exported symbols are required.
20003always_export_symbols=$always_export_symbols_RC
20004
20005# The commands to list exported symbols.
20006export_symbols_cmds=$lt_export_symbols_cmds_RC
20007
20008# The commands to extract the exported symbol list from a shared archive.
20009extract_expsyms_cmds=$lt_extract_expsyms_cmds
20010
20011# Symbols that should not be listed in the preloaded symbols.
20012exclude_expsyms=$lt_exclude_expsyms_RC
20013
20014# Symbols that must always be exported.
20015include_expsyms=$lt_include_expsyms_RC
20016
20017# ### END LIBTOOL TAG CONFIG: $tagname
20018
20019__EOF__
20020
20021
20022else
20023  # If there is no Makefile yet, we rely on a make rule to execute
20024  # `config.status --recheck' to rerun these tests and create the
20025  # libtool script then.
20026  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20027  if test -f "$ltmain_in"; then
20028    test -f Makefile && make "$ltmain"
20029  fi
20030fi
20031
20032
20033ac_ext=c
20034ac_cpp='$CPP $CPPFLAGS'
20035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20037ac_compiler_gnu=$ac_cv_c_compiler_gnu
20038
20039CC="$lt_save_CC"
20040
20041	;;
20042
20043      *)
20044	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20045echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20046   { (exit 1); exit 1; }; }
20047	;;
20048      esac
20049
20050      # Append the new tag name to the list of available tags.
20051      if test -n "$tagname" ; then
20052      available_tags="$available_tags $tagname"
20053    fi
20054    fi
20055  done
20056  IFS="$lt_save_ifs"
20057
20058  # Now substitute the updated list of available tags.
20059  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20060    mv "${ofile}T" "$ofile"
20061    chmod +x "$ofile"
20062  else
20063    rm -f "${ofile}T"
20064    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20065echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20066   { (exit 1); exit 1; }; }
20067  fi
20068fi
20069
20070
20071
20072# This can be used to rebuild libtool when needed
20073LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20074
20075# Always use our own libtool.
20076LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20077
20078# Prevent multiple expansion
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099{ echo "$as_me:$LINENO: checking for long long int" >&5
20100echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
20101if test "${ac_cv_c_long_long+set}" = set; then
20102  echo $ECHO_N "(cached) $ECHO_C" >&6
20103else
20104  if test "$GCC" = yes; then
20105  ac_cv_c_long_long=yes
20106  else
20107        cat >conftest.$ac_ext <<_ACEOF
20108/* confdefs.h.  */
20109_ACEOF
20110cat confdefs.h >>conftest.$ac_ext
20111cat >>conftest.$ac_ext <<_ACEOF
20112/* end confdefs.h.  */
20113
20114int
20115main ()
20116{
20117long long int i;
20118  ;
20119  return 0;
20120}
20121_ACEOF
20122rm -f conftest.$ac_objext
20123if { (ac_try="$ac_compile"
20124case "(($ac_try" in
20125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20126  *) ac_try_echo=$ac_try;;
20127esac
20128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20129  (eval "$ac_compile") 2>conftest.er1
20130  ac_status=$?
20131  grep -v '^ *+' conftest.er1 >conftest.err
20132  rm -f conftest.er1
20133  cat conftest.err >&5
20134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135  (exit $ac_status); } && {
20136	 test -z "$ac_c_werror_flag" ||
20137	 test ! -s conftest.err
20138       } && test -s conftest.$ac_objext; then
20139  ac_cv_c_long_long=yes
20140else
20141  echo "$as_me: failed program was:" >&5
20142sed 's/^/| /' conftest.$ac_ext >&5
20143
20144	ac_cv_c_long_long=no
20145fi
20146
20147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20148   fi
20149fi
20150{ echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
20151echo "${ECHO_T}$ac_cv_c_long_long" >&6; }
20152   if test $ac_cv_c_long_long = yes; then
20153
20154cat >>confdefs.h <<\_ACEOF
20155#define HAVE_LONG_LONG 1
20156_ACEOF
20157
20158   fi
20159
20160ac_ext=cpp
20161ac_cpp='$CXXCPP $CPPFLAGS'
20162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20165
20166
20167# Find a good install program.  We prefer a C program (faster),
20168# so one script is as good as another.  But avoid the broken or
20169# incompatible versions:
20170# SysV /etc/install, /usr/sbin/install
20171# SunOS /usr/etc/install
20172# IRIX /sbin/install
20173# AIX /bin/install
20174# AmigaOS /C/install, which installs bootblocks on floppy discs
20175# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20176# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20177# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20178# OS/2's system install, which has a completely different semantic
20179# ./install, which can be erroneously created by make from ./install.sh.
20180{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20181echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
20182if test -z "$INSTALL"; then
20183if test "${ac_cv_path_install+set}" = set; then
20184  echo $ECHO_N "(cached) $ECHO_C" >&6
20185else
20186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20187for as_dir in $PATH
20188do
20189  IFS=$as_save_IFS
20190  test -z "$as_dir" && as_dir=.
20191  # Account for people who put trailing slashes in PATH elements.
20192case $as_dir/ in
20193  ./ | .// | /cC/* | \
20194  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20195  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20196  /usr/ucb/* ) ;;
20197  *)
20198    # OSF1 and SCO ODT 3.0 have their own names for install.
20199    # Don't use installbsd from OSF since it installs stuff as root
20200    # by default.
20201    for ac_prog in ginstall scoinst install; do
20202      for ac_exec_ext in '' $ac_executable_extensions; do
20203	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20204	  if test $ac_prog = install &&
20205	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20206	    # AIX install.  It has an incompatible calling convention.
20207	    :
20208	  elif test $ac_prog = install &&
20209	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20210	    # program-specific install script used by HP pwplus--don't use.
20211	    :
20212	  else
20213	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20214	    break 3
20215	  fi
20216	fi
20217      done
20218    done
20219    ;;
20220esac
20221done
20222IFS=$as_save_IFS
20223
20224
20225fi
20226  if test "${ac_cv_path_install+set}" = set; then
20227    INSTALL=$ac_cv_path_install
20228  else
20229    # As a last resort, use the slow shell script.  Don't cache a
20230    # value for INSTALL within a source directory, because that will
20231    # break other packages using the cache if that directory is
20232    # removed, or if the value is a relative name.
20233    INSTALL=$ac_install_sh
20234  fi
20235fi
20236{ echo "$as_me:$LINENO: result: $INSTALL" >&5
20237echo "${ECHO_T}$INSTALL" >&6; }
20238
20239# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20240# It thinks the first close brace ends the variable substitution.
20241test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20242
20243test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20244
20245test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20246
20247
20248if test "x$GXX" = "xyes"
20249then
20250CXXFLAGS="-D_GNU_SOURCE $CXXFLAGS"
20251fi
20252
20253docdir=$datadir/doc
20254
20255
20256# Check whether --with-docdir was given.
20257if test "${with_docdir+set}" = set; then
20258  withval=$with_docdir;
20259	if test "x$withval" != xyes && test "x$withval" != xno
20260	then
20261		docdir="$withval"
20262	fi
20263
20264fi
20265
20266
20267
20268
20269
20270
20271
20272
20273for ac_header in exception string
20274do
20275as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20277  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20280  echo $ECHO_N "(cached) $ECHO_C" >&6
20281fi
20282ac_res=`eval echo '${'$as_ac_Header'}'`
20283	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20284echo "${ECHO_T}$ac_res" >&6; }
20285else
20286  # Is the header compilable?
20287{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20288echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20289cat >conftest.$ac_ext <<_ACEOF
20290/* confdefs.h.  */
20291_ACEOF
20292cat confdefs.h >>conftest.$ac_ext
20293cat >>conftest.$ac_ext <<_ACEOF
20294/* end confdefs.h.  */
20295$ac_includes_default
20296#include <$ac_header>
20297_ACEOF
20298rm -f conftest.$ac_objext
20299if { (ac_try="$ac_compile"
20300case "(($ac_try" in
20301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20302  *) ac_try_echo=$ac_try;;
20303esac
20304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20305  (eval "$ac_compile") 2>conftest.er1
20306  ac_status=$?
20307  grep -v '^ *+' conftest.er1 >conftest.err
20308  rm -f conftest.er1
20309  cat conftest.err >&5
20310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311  (exit $ac_status); } && {
20312	 test -z "$ac_cxx_werror_flag" ||
20313	 test ! -s conftest.err
20314       } && test -s conftest.$ac_objext; then
20315  ac_header_compiler=yes
20316else
20317  echo "$as_me: failed program was:" >&5
20318sed 's/^/| /' conftest.$ac_ext >&5
20319
20320	ac_header_compiler=no
20321fi
20322
20323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20324{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20325echo "${ECHO_T}$ac_header_compiler" >&6; }
20326
20327# Is the header present?
20328{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20329echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20330cat >conftest.$ac_ext <<_ACEOF
20331/* confdefs.h.  */
20332_ACEOF
20333cat confdefs.h >>conftest.$ac_ext
20334cat >>conftest.$ac_ext <<_ACEOF
20335/* end confdefs.h.  */
20336#include <$ac_header>
20337_ACEOF
20338if { (ac_try="$ac_cpp conftest.$ac_ext"
20339case "(($ac_try" in
20340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341  *) ac_try_echo=$ac_try;;
20342esac
20343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20345  ac_status=$?
20346  grep -v '^ *+' conftest.er1 >conftest.err
20347  rm -f conftest.er1
20348  cat conftest.err >&5
20349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350  (exit $ac_status); } >/dev/null && {
20351	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20352	 test ! -s conftest.err
20353       }; then
20354  ac_header_preproc=yes
20355else
20356  echo "$as_me: failed program was:" >&5
20357sed 's/^/| /' conftest.$ac_ext >&5
20358
20359  ac_header_preproc=no
20360fi
20361
20362rm -f conftest.err conftest.$ac_ext
20363{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20364echo "${ECHO_T}$ac_header_preproc" >&6; }
20365
20366# So?  What about this header?
20367case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20368  yes:no: )
20369    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20370echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20371    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20372echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20373    ac_header_preproc=yes
20374    ;;
20375  no:yes:* )
20376    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20377echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20378    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20379echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20380    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20381echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20382    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20383echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20384    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20385echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20386    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20387echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20388    ( cat <<\_ASBOX
20389## ---------------------------------------------------- ##
20390## Report this to libodbcxx-devel@lists.sourceforge.net ##
20391## ---------------------------------------------------- ##
20392_ASBOX
20393     ) | sed "s/^/$as_me: WARNING:     /" >&2
20394    ;;
20395esac
20396{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20399  echo $ECHO_N "(cached) $ECHO_C" >&6
20400else
20401  eval "$as_ac_Header=\$ac_header_preproc"
20402fi
20403ac_res=`eval echo '${'$as_ac_Header'}'`
20404	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20405echo "${ECHO_T}$ac_res" >&6; }
20406
20407fi
20408if test `eval echo '${'$as_ac_Header'}'` = yes; then
20409  cat >>confdefs.h <<_ACEOF
20410#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20411_ACEOF
20412
20413else
20414  { { echo "$as_me:$LINENO: error: Header $ac_hdr not found." >&5
20415echo "$as_me: error: Header $ac_hdr not found." >&2;}
20416   { (exit 1); exit 1; }; }
20417fi
20418
20419done
20420
20421
20422
20423for ac_header in set set.h
20424do
20425as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20427  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20430  echo $ECHO_N "(cached) $ECHO_C" >&6
20431fi
20432ac_res=`eval echo '${'$as_ac_Header'}'`
20433	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20434echo "${ECHO_T}$ac_res" >&6; }
20435else
20436  # Is the header compilable?
20437{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20438echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20439cat >conftest.$ac_ext <<_ACEOF
20440/* confdefs.h.  */
20441_ACEOF
20442cat confdefs.h >>conftest.$ac_ext
20443cat >>conftest.$ac_ext <<_ACEOF
20444/* end confdefs.h.  */
20445$ac_includes_default
20446#include <$ac_header>
20447_ACEOF
20448rm -f conftest.$ac_objext
20449if { (ac_try="$ac_compile"
20450case "(($ac_try" in
20451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452  *) ac_try_echo=$ac_try;;
20453esac
20454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455  (eval "$ac_compile") 2>conftest.er1
20456  ac_status=$?
20457  grep -v '^ *+' conftest.er1 >conftest.err
20458  rm -f conftest.er1
20459  cat conftest.err >&5
20460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461  (exit $ac_status); } && {
20462	 test -z "$ac_cxx_werror_flag" ||
20463	 test ! -s conftest.err
20464       } && test -s conftest.$ac_objext; then
20465  ac_header_compiler=yes
20466else
20467  echo "$as_me: failed program was:" >&5
20468sed 's/^/| /' conftest.$ac_ext >&5
20469
20470	ac_header_compiler=no
20471fi
20472
20473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20474{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20475echo "${ECHO_T}$ac_header_compiler" >&6; }
20476
20477# Is the header present?
20478{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20479echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20480cat >conftest.$ac_ext <<_ACEOF
20481/* confdefs.h.  */
20482_ACEOF
20483cat confdefs.h >>conftest.$ac_ext
20484cat >>conftest.$ac_ext <<_ACEOF
20485/* end confdefs.h.  */
20486#include <$ac_header>
20487_ACEOF
20488if { (ac_try="$ac_cpp conftest.$ac_ext"
20489case "(($ac_try" in
20490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491  *) ac_try_echo=$ac_try;;
20492esac
20493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20495  ac_status=$?
20496  grep -v '^ *+' conftest.er1 >conftest.err
20497  rm -f conftest.er1
20498  cat conftest.err >&5
20499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500  (exit $ac_status); } >/dev/null && {
20501	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20502	 test ! -s conftest.err
20503       }; then
20504  ac_header_preproc=yes
20505else
20506  echo "$as_me: failed program was:" >&5
20507sed 's/^/| /' conftest.$ac_ext >&5
20508
20509  ac_header_preproc=no
20510fi
20511
20512rm -f conftest.err conftest.$ac_ext
20513{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20514echo "${ECHO_T}$ac_header_preproc" >&6; }
20515
20516# So?  What about this header?
20517case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20518  yes:no: )
20519    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20520echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20521    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20522echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20523    ac_header_preproc=yes
20524    ;;
20525  no:yes:* )
20526    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20527echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20528    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20529echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20530    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20531echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20532    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20533echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20534    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20535echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20536    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20537echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20538    ( cat <<\_ASBOX
20539## ---------------------------------------------------- ##
20540## Report this to libodbcxx-devel@lists.sourceforge.net ##
20541## ---------------------------------------------------- ##
20542_ASBOX
20543     ) | sed "s/^/$as_me: WARNING:     /" >&2
20544    ;;
20545esac
20546{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20549  echo $ECHO_N "(cached) $ECHO_C" >&6
20550else
20551  eval "$as_ac_Header=\$ac_header_preproc"
20552fi
20553ac_res=`eval echo '${'$as_ac_Header'}'`
20554	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20555echo "${ECHO_T}$ac_res" >&6; }
20556
20557fi
20558if test `eval echo '${'$as_ac_Header'}'` = yes; then
20559  cat >>confdefs.h <<_ACEOF
20560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20561_ACEOF
20562
20563fi
20564
20565done
20566
20567
20568
20569for ac_header in vector vector.h
20570do
20571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20573  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20576  echo $ECHO_N "(cached) $ECHO_C" >&6
20577fi
20578ac_res=`eval echo '${'$as_ac_Header'}'`
20579	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20580echo "${ECHO_T}$ac_res" >&6; }
20581else
20582  # Is the header compilable?
20583{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20584echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20585cat >conftest.$ac_ext <<_ACEOF
20586/* confdefs.h.  */
20587_ACEOF
20588cat confdefs.h >>conftest.$ac_ext
20589cat >>conftest.$ac_ext <<_ACEOF
20590/* end confdefs.h.  */
20591$ac_includes_default
20592#include <$ac_header>
20593_ACEOF
20594rm -f conftest.$ac_objext
20595if { (ac_try="$ac_compile"
20596case "(($ac_try" in
20597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598  *) ac_try_echo=$ac_try;;
20599esac
20600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601  (eval "$ac_compile") 2>conftest.er1
20602  ac_status=$?
20603  grep -v '^ *+' conftest.er1 >conftest.err
20604  rm -f conftest.er1
20605  cat conftest.err >&5
20606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607  (exit $ac_status); } && {
20608	 test -z "$ac_cxx_werror_flag" ||
20609	 test ! -s conftest.err
20610       } && test -s conftest.$ac_objext; then
20611  ac_header_compiler=yes
20612else
20613  echo "$as_me: failed program was:" >&5
20614sed 's/^/| /' conftest.$ac_ext >&5
20615
20616	ac_header_compiler=no
20617fi
20618
20619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20620{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20621echo "${ECHO_T}$ac_header_compiler" >&6; }
20622
20623# Is the header present?
20624{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20625echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20626cat >conftest.$ac_ext <<_ACEOF
20627/* confdefs.h.  */
20628_ACEOF
20629cat confdefs.h >>conftest.$ac_ext
20630cat >>conftest.$ac_ext <<_ACEOF
20631/* end confdefs.h.  */
20632#include <$ac_header>
20633_ACEOF
20634if { (ac_try="$ac_cpp conftest.$ac_ext"
20635case "(($ac_try" in
20636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20637  *) ac_try_echo=$ac_try;;
20638esac
20639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20640  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20641  ac_status=$?
20642  grep -v '^ *+' conftest.er1 >conftest.err
20643  rm -f conftest.er1
20644  cat conftest.err >&5
20645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646  (exit $ac_status); } >/dev/null && {
20647	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20648	 test ! -s conftest.err
20649       }; then
20650  ac_header_preproc=yes
20651else
20652  echo "$as_me: failed program was:" >&5
20653sed 's/^/| /' conftest.$ac_ext >&5
20654
20655  ac_header_preproc=no
20656fi
20657
20658rm -f conftest.err conftest.$ac_ext
20659{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20660echo "${ECHO_T}$ac_header_preproc" >&6; }
20661
20662# So?  What about this header?
20663case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20664  yes:no: )
20665    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20666echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20667    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20668echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20669    ac_header_preproc=yes
20670    ;;
20671  no:yes:* )
20672    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20673echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20674    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20675echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20676    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20677echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20678    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20679echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20680    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20681echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20682    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20683echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20684    ( cat <<\_ASBOX
20685## ---------------------------------------------------- ##
20686## Report this to libodbcxx-devel@lists.sourceforge.net ##
20687## ---------------------------------------------------- ##
20688_ASBOX
20689     ) | sed "s/^/$as_me: WARNING:     /" >&2
20690    ;;
20691esac
20692{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20695  echo $ECHO_N "(cached) $ECHO_C" >&6
20696else
20697  eval "$as_ac_Header=\$ac_header_preproc"
20698fi
20699ac_res=`eval echo '${'$as_ac_Header'}'`
20700	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20701echo "${ECHO_T}$ac_res" >&6; }
20702
20703fi
20704if test `eval echo '${'$as_ac_Header'}'` = yes; then
20705  cat >>confdefs.h <<_ACEOF
20706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20707_ACEOF
20708
20709fi
20710
20711done
20712
20713
20714
20715
20716for ac_header in iostream istream iostream.h
20717do
20718as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20719if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20720  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20722if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20723  echo $ECHO_N "(cached) $ECHO_C" >&6
20724fi
20725ac_res=`eval echo '${'$as_ac_Header'}'`
20726	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20727echo "${ECHO_T}$ac_res" >&6; }
20728else
20729  # Is the header compilable?
20730{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20731echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20732cat >conftest.$ac_ext <<_ACEOF
20733/* confdefs.h.  */
20734_ACEOF
20735cat confdefs.h >>conftest.$ac_ext
20736cat >>conftest.$ac_ext <<_ACEOF
20737/* end confdefs.h.  */
20738$ac_includes_default
20739#include <$ac_header>
20740_ACEOF
20741rm -f conftest.$ac_objext
20742if { (ac_try="$ac_compile"
20743case "(($ac_try" in
20744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745  *) ac_try_echo=$ac_try;;
20746esac
20747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748  (eval "$ac_compile") 2>conftest.er1
20749  ac_status=$?
20750  grep -v '^ *+' conftest.er1 >conftest.err
20751  rm -f conftest.er1
20752  cat conftest.err >&5
20753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754  (exit $ac_status); } && {
20755	 test -z "$ac_cxx_werror_flag" ||
20756	 test ! -s conftest.err
20757       } && test -s conftest.$ac_objext; then
20758  ac_header_compiler=yes
20759else
20760  echo "$as_me: failed program was:" >&5
20761sed 's/^/| /' conftest.$ac_ext >&5
20762
20763	ac_header_compiler=no
20764fi
20765
20766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20767{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20768echo "${ECHO_T}$ac_header_compiler" >&6; }
20769
20770# Is the header present?
20771{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20772echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20773cat >conftest.$ac_ext <<_ACEOF
20774/* confdefs.h.  */
20775_ACEOF
20776cat confdefs.h >>conftest.$ac_ext
20777cat >>conftest.$ac_ext <<_ACEOF
20778/* end confdefs.h.  */
20779#include <$ac_header>
20780_ACEOF
20781if { (ac_try="$ac_cpp conftest.$ac_ext"
20782case "(($ac_try" in
20783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784  *) ac_try_echo=$ac_try;;
20785esac
20786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20788  ac_status=$?
20789  grep -v '^ *+' conftest.er1 >conftest.err
20790  rm -f conftest.er1
20791  cat conftest.err >&5
20792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793  (exit $ac_status); } >/dev/null && {
20794	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20795	 test ! -s conftest.err
20796       }; then
20797  ac_header_preproc=yes
20798else
20799  echo "$as_me: failed program was:" >&5
20800sed 's/^/| /' conftest.$ac_ext >&5
20801
20802  ac_header_preproc=no
20803fi
20804
20805rm -f conftest.err conftest.$ac_ext
20806{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20807echo "${ECHO_T}$ac_header_preproc" >&6; }
20808
20809# So?  What about this header?
20810case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20811  yes:no: )
20812    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20813echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20814    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20815echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20816    ac_header_preproc=yes
20817    ;;
20818  no:yes:* )
20819    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20820echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20821    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20822echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20823    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20824echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20825    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20826echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20827    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20828echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20829    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20830echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20831    ( cat <<\_ASBOX
20832## ---------------------------------------------------- ##
20833## Report this to libodbcxx-devel@lists.sourceforge.net ##
20834## ---------------------------------------------------- ##
20835_ASBOX
20836     ) | sed "s/^/$as_me: WARNING:     /" >&2
20837    ;;
20838esac
20839{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20841if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20842  echo $ECHO_N "(cached) $ECHO_C" >&6
20843else
20844  eval "$as_ac_Header=\$ac_header_preproc"
20845fi
20846ac_res=`eval echo '${'$as_ac_Header'}'`
20847	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20848echo "${ECHO_T}$ac_res" >&6; }
20849
20850fi
20851if test `eval echo '${'$as_ac_Header'}'` = yes; then
20852  cat >>confdefs.h <<_ACEOF
20853#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20854_ACEOF
20855
20856fi
20857
20858done
20859
20860
20861
20862
20863for ac_header in sstream strstream strstream.h
20864do
20865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20867  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20870  echo $ECHO_N "(cached) $ECHO_C" >&6
20871fi
20872ac_res=`eval echo '${'$as_ac_Header'}'`
20873	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20874echo "${ECHO_T}$ac_res" >&6; }
20875else
20876  # Is the header compilable?
20877{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20879cat >conftest.$ac_ext <<_ACEOF
20880/* confdefs.h.  */
20881_ACEOF
20882cat confdefs.h >>conftest.$ac_ext
20883cat >>conftest.$ac_ext <<_ACEOF
20884/* end confdefs.h.  */
20885$ac_includes_default
20886#include <$ac_header>
20887_ACEOF
20888rm -f conftest.$ac_objext
20889if { (ac_try="$ac_compile"
20890case "(($ac_try" in
20891  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892  *) ac_try_echo=$ac_try;;
20893esac
20894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895  (eval "$ac_compile") 2>conftest.er1
20896  ac_status=$?
20897  grep -v '^ *+' conftest.er1 >conftest.err
20898  rm -f conftest.er1
20899  cat conftest.err >&5
20900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901  (exit $ac_status); } && {
20902	 test -z "$ac_cxx_werror_flag" ||
20903	 test ! -s conftest.err
20904       } && test -s conftest.$ac_objext; then
20905  ac_header_compiler=yes
20906else
20907  echo "$as_me: failed program was:" >&5
20908sed 's/^/| /' conftest.$ac_ext >&5
20909
20910	ac_header_compiler=no
20911fi
20912
20913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20914{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20915echo "${ECHO_T}$ac_header_compiler" >&6; }
20916
20917# Is the header present?
20918{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20919echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20920cat >conftest.$ac_ext <<_ACEOF
20921/* confdefs.h.  */
20922_ACEOF
20923cat confdefs.h >>conftest.$ac_ext
20924cat >>conftest.$ac_ext <<_ACEOF
20925/* end confdefs.h.  */
20926#include <$ac_header>
20927_ACEOF
20928if { (ac_try="$ac_cpp conftest.$ac_ext"
20929case "(($ac_try" in
20930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931  *) ac_try_echo=$ac_try;;
20932esac
20933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20935  ac_status=$?
20936  grep -v '^ *+' conftest.er1 >conftest.err
20937  rm -f conftest.er1
20938  cat conftest.err >&5
20939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940  (exit $ac_status); } >/dev/null && {
20941	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20942	 test ! -s conftest.err
20943       }; then
20944  ac_header_preproc=yes
20945else
20946  echo "$as_me: failed program was:" >&5
20947sed 's/^/| /' conftest.$ac_ext >&5
20948
20949  ac_header_preproc=no
20950fi
20951
20952rm -f conftest.err conftest.$ac_ext
20953{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20954echo "${ECHO_T}$ac_header_preproc" >&6; }
20955
20956# So?  What about this header?
20957case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20958  yes:no: )
20959    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20960echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20961    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20962echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20963    ac_header_preproc=yes
20964    ;;
20965  no:yes:* )
20966    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20967echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20968    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20969echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20970    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20971echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20972    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20973echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20974    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20975echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20976    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20977echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20978    ( cat <<\_ASBOX
20979## ---------------------------------------------------- ##
20980## Report this to libodbcxx-devel@lists.sourceforge.net ##
20981## ---------------------------------------------------- ##
20982_ASBOX
20983     ) | sed "s/^/$as_me: WARNING:     /" >&2
20984    ;;
20985esac
20986{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20989  echo $ECHO_N "(cached) $ECHO_C" >&6
20990else
20991  eval "$as_ac_Header=\$ac_header_preproc"
20992fi
20993ac_res=`eval echo '${'$as_ac_Header'}'`
20994	       { echo "$as_me:$LINENO: result: $ac_res" >&5
20995echo "${ECHO_T}$ac_res" >&6; }
20996
20997fi
20998if test `eval echo '${'$as_ac_Header'}'` = yes; then
20999  cat >>confdefs.h <<_ACEOF
21000#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21001_ACEOF
21002
21003fi
21004
21005done
21006
21007
21008
21009
21010
21011for ac_header in ctime cstring cstdlib cstdio
21012do
21013as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21015  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21018  echo $ECHO_N "(cached) $ECHO_C" >&6
21019fi
21020ac_res=`eval echo '${'$as_ac_Header'}'`
21021	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21022echo "${ECHO_T}$ac_res" >&6; }
21023else
21024  # Is the header compilable?
21025{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21026echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21027cat >conftest.$ac_ext <<_ACEOF
21028/* confdefs.h.  */
21029_ACEOF
21030cat confdefs.h >>conftest.$ac_ext
21031cat >>conftest.$ac_ext <<_ACEOF
21032/* end confdefs.h.  */
21033$ac_includes_default
21034#include <$ac_header>
21035_ACEOF
21036rm -f conftest.$ac_objext
21037if { (ac_try="$ac_compile"
21038case "(($ac_try" in
21039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040  *) ac_try_echo=$ac_try;;
21041esac
21042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043  (eval "$ac_compile") 2>conftest.er1
21044  ac_status=$?
21045  grep -v '^ *+' conftest.er1 >conftest.err
21046  rm -f conftest.er1
21047  cat conftest.err >&5
21048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049  (exit $ac_status); } && {
21050	 test -z "$ac_cxx_werror_flag" ||
21051	 test ! -s conftest.err
21052       } && test -s conftest.$ac_objext; then
21053  ac_header_compiler=yes
21054else
21055  echo "$as_me: failed program was:" >&5
21056sed 's/^/| /' conftest.$ac_ext >&5
21057
21058	ac_header_compiler=no
21059fi
21060
21061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21062{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21063echo "${ECHO_T}$ac_header_compiler" >&6; }
21064
21065# Is the header present?
21066{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21067echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21068cat >conftest.$ac_ext <<_ACEOF
21069/* confdefs.h.  */
21070_ACEOF
21071cat confdefs.h >>conftest.$ac_ext
21072cat >>conftest.$ac_ext <<_ACEOF
21073/* end confdefs.h.  */
21074#include <$ac_header>
21075_ACEOF
21076if { (ac_try="$ac_cpp conftest.$ac_ext"
21077case "(($ac_try" in
21078  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21079  *) ac_try_echo=$ac_try;;
21080esac
21081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21082  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21083  ac_status=$?
21084  grep -v '^ *+' conftest.er1 >conftest.err
21085  rm -f conftest.er1
21086  cat conftest.err >&5
21087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088  (exit $ac_status); } >/dev/null && {
21089	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21090	 test ! -s conftest.err
21091       }; then
21092  ac_header_preproc=yes
21093else
21094  echo "$as_me: failed program was:" >&5
21095sed 's/^/| /' conftest.$ac_ext >&5
21096
21097  ac_header_preproc=no
21098fi
21099
21100rm -f conftest.err conftest.$ac_ext
21101{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21102echo "${ECHO_T}$ac_header_preproc" >&6; }
21103
21104# So?  What about this header?
21105case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21106  yes:no: )
21107    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21108echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21109    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21110echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21111    ac_header_preproc=yes
21112    ;;
21113  no:yes:* )
21114    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21115echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21116    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21117echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21118    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21119echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21120    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21121echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21122    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21123echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21124    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21125echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21126    ( cat <<\_ASBOX
21127## ---------------------------------------------------- ##
21128## Report this to libodbcxx-devel@lists.sourceforge.net ##
21129## ---------------------------------------------------- ##
21130_ASBOX
21131     ) | sed "s/^/$as_me: WARNING:     /" >&2
21132    ;;
21133esac
21134{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21137  echo $ECHO_N "(cached) $ECHO_C" >&6
21138else
21139  eval "$as_ac_Header=\$ac_header_preproc"
21140fi
21141ac_res=`eval echo '${'$as_ac_Header'}'`
21142	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21143echo "${ECHO_T}$ac_res" >&6; }
21144
21145fi
21146if test `eval echo '${'$as_ac_Header'}'` = yes; then
21147  cat >>confdefs.h <<_ACEOF
21148#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21149_ACEOF
21150
21151fi
21152
21153done
21154
21155
21156
21157{ echo "$as_me:$LINENO: checking whether to enable threads" >&5
21158echo $ECHO_N "checking whether to enable threads... $ECHO_C" >&6; }
21159# Check whether --enable-threads was given.
21160if test "${enable_threads+set}" = set; then
21161  enableval=$enable_threads; enable_threads=yes
21162
21163fi
21164
21165
21166if test "x$enable_threads" = "xyes"
21167then
21168	{ echo "$as_me:$LINENO: result: yes" >&5
21169echo "${ECHO_T}yes" >&6; }
21170
21171# ok, now check for pthreads
21172if test "${ac_cv_header_pthread_h+set}" = set; then
21173  { echo "$as_me:$LINENO: checking for pthread.h" >&5
21174echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
21175if test "${ac_cv_header_pthread_h+set}" = set; then
21176  echo $ECHO_N "(cached) $ECHO_C" >&6
21177fi
21178{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21179echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
21180else
21181  # Is the header compilable?
21182{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
21183echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
21184cat >conftest.$ac_ext <<_ACEOF
21185/* confdefs.h.  */
21186_ACEOF
21187cat confdefs.h >>conftest.$ac_ext
21188cat >>conftest.$ac_ext <<_ACEOF
21189/* end confdefs.h.  */
21190$ac_includes_default
21191#include <pthread.h>
21192_ACEOF
21193rm -f conftest.$ac_objext
21194if { (ac_try="$ac_compile"
21195case "(($ac_try" in
21196  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21197  *) ac_try_echo=$ac_try;;
21198esac
21199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21200  (eval "$ac_compile") 2>conftest.er1
21201  ac_status=$?
21202  grep -v '^ *+' conftest.er1 >conftest.err
21203  rm -f conftest.er1
21204  cat conftest.err >&5
21205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206  (exit $ac_status); } && {
21207	 test -z "$ac_cxx_werror_flag" ||
21208	 test ! -s conftest.err
21209       } && test -s conftest.$ac_objext; then
21210  ac_header_compiler=yes
21211else
21212  echo "$as_me: failed program was:" >&5
21213sed 's/^/| /' conftest.$ac_ext >&5
21214
21215	ac_header_compiler=no
21216fi
21217
21218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21219{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21220echo "${ECHO_T}$ac_header_compiler" >&6; }
21221
21222# Is the header present?
21223{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
21224echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
21225cat >conftest.$ac_ext <<_ACEOF
21226/* confdefs.h.  */
21227_ACEOF
21228cat confdefs.h >>conftest.$ac_ext
21229cat >>conftest.$ac_ext <<_ACEOF
21230/* end confdefs.h.  */
21231#include <pthread.h>
21232_ACEOF
21233if { (ac_try="$ac_cpp conftest.$ac_ext"
21234case "(($ac_try" in
21235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236  *) ac_try_echo=$ac_try;;
21237esac
21238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21240  ac_status=$?
21241  grep -v '^ *+' conftest.er1 >conftest.err
21242  rm -f conftest.er1
21243  cat conftest.err >&5
21244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245  (exit $ac_status); } >/dev/null && {
21246	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21247	 test ! -s conftest.err
21248       }; then
21249  ac_header_preproc=yes
21250else
21251  echo "$as_me: failed program was:" >&5
21252sed 's/^/| /' conftest.$ac_ext >&5
21253
21254  ac_header_preproc=no
21255fi
21256
21257rm -f conftest.err conftest.$ac_ext
21258{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21259echo "${ECHO_T}$ac_header_preproc" >&6; }
21260
21261# So?  What about this header?
21262case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21263  yes:no: )
21264    { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
21265echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21266    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
21267echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
21268    ac_header_preproc=yes
21269    ;;
21270  no:yes:* )
21271    { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
21272echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
21273    { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
21274echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
21275    { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
21276echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
21277    { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
21278echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21279    { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
21280echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
21281    { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
21282echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
21283    ( cat <<\_ASBOX
21284## ---------------------------------------------------- ##
21285## Report this to libodbcxx-devel@lists.sourceforge.net ##
21286## ---------------------------------------------------- ##
21287_ASBOX
21288     ) | sed "s/^/$as_me: WARNING:     /" >&2
21289    ;;
21290esac
21291{ echo "$as_me:$LINENO: checking for pthread.h" >&5
21292echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
21293if test "${ac_cv_header_pthread_h+set}" = set; then
21294  echo $ECHO_N "(cached) $ECHO_C" >&6
21295else
21296  ac_cv_header_pthread_h=$ac_header_preproc
21297fi
21298{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
21299echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
21300
21301fi
21302if test $ac_cv_header_pthread_h = yes; then
21303
21304
21305cat >>confdefs.h <<\_ACEOF
21306#define HAVE_PTHREAD_H 1
21307_ACEOF
21308
21309
21310else
21311  { { echo "$as_me:$LINENO: error: pthread.h not found. Consider not using --enable-threads" >&5
21312echo "$as_me: error: pthread.h not found. Consider not using --enable-threads" >&2;}
21313   { (exit 1); exit 1; }; }
21314fi
21315
21316
21317
21318# check if pthreads are in our default library environment
21319
21320for ac_func in pthread_create
21321do
21322as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21323{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21324echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21325if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21326  echo $ECHO_N "(cached) $ECHO_C" >&6
21327else
21328  cat >conftest.$ac_ext <<_ACEOF
21329/* confdefs.h.  */
21330_ACEOF
21331cat confdefs.h >>conftest.$ac_ext
21332cat >>conftest.$ac_ext <<_ACEOF
21333/* end confdefs.h.  */
21334/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21335   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21336#define $ac_func innocuous_$ac_func
21337
21338/* System header to define __stub macros and hopefully few prototypes,
21339    which can conflict with char $ac_func (); below.
21340    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21341    <limits.h> exists even on freestanding compilers.  */
21342
21343#ifdef __STDC__
21344# include <limits.h>
21345#else
21346# include <assert.h>
21347#endif
21348
21349#undef $ac_func
21350
21351/* Override any GCC internal prototype to avoid an error.
21352   Use char because int might match the return type of a GCC
21353   builtin and then its argument prototype would still apply.  */
21354#ifdef __cplusplus
21355extern "C"
21356#endif
21357char $ac_func ();
21358/* The GNU C library defines this for functions which it implements
21359    to always fail with ENOSYS.  Some functions are actually named
21360    something starting with __ and the normal name is an alias.  */
21361#if defined __stub_$ac_func || defined __stub___$ac_func
21362choke me
21363#endif
21364
21365int
21366main ()
21367{
21368return $ac_func ();
21369  ;
21370  return 0;
21371}
21372_ACEOF
21373rm -f conftest.$ac_objext conftest$ac_exeext
21374if { (ac_try="$ac_link"
21375case "(($ac_try" in
21376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377  *) ac_try_echo=$ac_try;;
21378esac
21379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21380  (eval "$ac_link") 2>conftest.er1
21381  ac_status=$?
21382  grep -v '^ *+' conftest.er1 >conftest.err
21383  rm -f conftest.er1
21384  cat conftest.err >&5
21385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386  (exit $ac_status); } && {
21387	 test -z "$ac_cxx_werror_flag" ||
21388	 test ! -s conftest.err
21389       } && test -s conftest$ac_exeext &&
21390       $as_test_x conftest$ac_exeext; then
21391  eval "$as_ac_var=yes"
21392else
21393  echo "$as_me: failed program was:" >&5
21394sed 's/^/| /' conftest.$ac_ext >&5
21395
21396	eval "$as_ac_var=no"
21397fi
21398
21399rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21400      conftest$ac_exeext conftest.$ac_ext
21401fi
21402ac_res=`eval echo '${'$as_ac_var'}'`
21403	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21404echo "${ECHO_T}$ac_res" >&6; }
21405if test `eval echo '${'$as_ac_var'}'` = yes; then
21406  cat >>confdefs.h <<_ACEOF
21407#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21408_ACEOF
21409 pthreads_ok=yes
21410else
21411  pthreads_ok=no
21412fi
21413done
21414
21415THREAD_LIBS=""
21416
21417if test "x$pthreads_ok" != xyes
21418then
21419
21420{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21421echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
21422if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21423  echo $ECHO_N "(cached) $ECHO_C" >&6
21424else
21425  ac_check_lib_save_LIBS=$LIBS
21426LIBS="-lpthread  $LIBS"
21427cat >conftest.$ac_ext <<_ACEOF
21428/* confdefs.h.  */
21429_ACEOF
21430cat confdefs.h >>conftest.$ac_ext
21431cat >>conftest.$ac_ext <<_ACEOF
21432/* end confdefs.h.  */
21433
21434/* Override any GCC internal prototype to avoid an error.
21435   Use char because int might match the return type of a GCC
21436   builtin and then its argument prototype would still apply.  */
21437#ifdef __cplusplus
21438extern "C"
21439#endif
21440char pthread_create ();
21441int
21442main ()
21443{
21444return pthread_create ();
21445  ;
21446  return 0;
21447}
21448_ACEOF
21449rm -f conftest.$ac_objext conftest$ac_exeext
21450if { (ac_try="$ac_link"
21451case "(($ac_try" in
21452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453  *) ac_try_echo=$ac_try;;
21454esac
21455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21456  (eval "$ac_link") 2>conftest.er1
21457  ac_status=$?
21458  grep -v '^ *+' conftest.er1 >conftest.err
21459  rm -f conftest.er1
21460  cat conftest.err >&5
21461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462  (exit $ac_status); } && {
21463	 test -z "$ac_cxx_werror_flag" ||
21464	 test ! -s conftest.err
21465       } && test -s conftest$ac_exeext &&
21466       $as_test_x conftest$ac_exeext; then
21467  ac_cv_lib_pthread_pthread_create=yes
21468else
21469  echo "$as_me: failed program was:" >&5
21470sed 's/^/| /' conftest.$ac_ext >&5
21471
21472	ac_cv_lib_pthread_pthread_create=no
21473fi
21474
21475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21476      conftest$ac_exeext conftest.$ac_ext
21477LIBS=$ac_check_lib_save_LIBS
21478fi
21479{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21480echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
21481if test $ac_cv_lib_pthread_pthread_create = yes; then
21482  pthreads_ok=yes
21483	THREAD_LIBS="-lpthread"
21484else
21485  pthreads_ok=no
21486fi
21487
21488fi
21489
21490if test "x$pthreads_ok" != xyes
21491then
21492# hpux 11 uses macros for pthread_create so test another function
21493{ echo "$as_me:$LINENO: checking for pthread_join in -lpthread" >&5
21494echo $ECHO_N "checking for pthread_join in -lpthread... $ECHO_C" >&6; }
21495if test "${ac_cv_lib_pthread_pthread_join+set}" = set; then
21496  echo $ECHO_N "(cached) $ECHO_C" >&6
21497else
21498  ac_check_lib_save_LIBS=$LIBS
21499LIBS="-lpthread  $LIBS"
21500cat >conftest.$ac_ext <<_ACEOF
21501/* confdefs.h.  */
21502_ACEOF
21503cat confdefs.h >>conftest.$ac_ext
21504cat >>conftest.$ac_ext <<_ACEOF
21505/* end confdefs.h.  */
21506
21507/* Override any GCC internal prototype to avoid an error.
21508   Use char because int might match the return type of a GCC
21509   builtin and then its argument prototype would still apply.  */
21510#ifdef __cplusplus
21511extern "C"
21512#endif
21513char pthread_join ();
21514int
21515main ()
21516{
21517return pthread_join ();
21518  ;
21519  return 0;
21520}
21521_ACEOF
21522rm -f conftest.$ac_objext conftest$ac_exeext
21523if { (ac_try="$ac_link"
21524case "(($ac_try" in
21525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526  *) ac_try_echo=$ac_try;;
21527esac
21528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21529  (eval "$ac_link") 2>conftest.er1
21530  ac_status=$?
21531  grep -v '^ *+' conftest.er1 >conftest.err
21532  rm -f conftest.er1
21533  cat conftest.err >&5
21534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535  (exit $ac_status); } && {
21536	 test -z "$ac_cxx_werror_flag" ||
21537	 test ! -s conftest.err
21538       } && test -s conftest$ac_exeext &&
21539       $as_test_x conftest$ac_exeext; then
21540  ac_cv_lib_pthread_pthread_join=yes
21541else
21542  echo "$as_me: failed program was:" >&5
21543sed 's/^/| /' conftest.$ac_ext >&5
21544
21545	ac_cv_lib_pthread_pthread_join=no
21546fi
21547
21548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21549      conftest$ac_exeext conftest.$ac_ext
21550LIBS=$ac_check_lib_save_LIBS
21551fi
21552{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_join" >&5
21553echo "${ECHO_T}$ac_cv_lib_pthread_pthread_join" >&6; }
21554if test $ac_cv_lib_pthread_pthread_join = yes; then
21555  pthreads_ok=yes
21556	THREAD_LIBS="-lpthread"
21557else
21558  pthreads_ok=no
21559fi
21560
21561fi
21562
21563if test "x$pthreads_ok" != xyes
21564then
21565
21566# try libc_r (*BSD)
21567	{ echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21568echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
21569if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21570  echo $ECHO_N "(cached) $ECHO_C" >&6
21571else
21572  ac_check_lib_save_LIBS=$LIBS
21573LIBS="-lc_r  $LIBS"
21574cat >conftest.$ac_ext <<_ACEOF
21575/* confdefs.h.  */
21576_ACEOF
21577cat confdefs.h >>conftest.$ac_ext
21578cat >>conftest.$ac_ext <<_ACEOF
21579/* end confdefs.h.  */
21580
21581/* Override any GCC internal prototype to avoid an error.
21582   Use char because int might match the return type of a GCC
21583   builtin and then its argument prototype would still apply.  */
21584#ifdef __cplusplus
21585extern "C"
21586#endif
21587char pthread_create ();
21588int
21589main ()
21590{
21591return pthread_create ();
21592  ;
21593  return 0;
21594}
21595_ACEOF
21596rm -f conftest.$ac_objext conftest$ac_exeext
21597if { (ac_try="$ac_link"
21598case "(($ac_try" in
21599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600  *) ac_try_echo=$ac_try;;
21601esac
21602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603  (eval "$ac_link") 2>conftest.er1
21604  ac_status=$?
21605  grep -v '^ *+' conftest.er1 >conftest.err
21606  rm -f conftest.er1
21607  cat conftest.err >&5
21608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609  (exit $ac_status); } && {
21610	 test -z "$ac_cxx_werror_flag" ||
21611	 test ! -s conftest.err
21612       } && test -s conftest$ac_exeext &&
21613       $as_test_x conftest$ac_exeext; then
21614  ac_cv_lib_c_r_pthread_create=yes
21615else
21616  echo "$as_me: failed program was:" >&5
21617sed 's/^/| /' conftest.$ac_ext >&5
21618
21619	ac_cv_lib_c_r_pthread_create=no
21620fi
21621
21622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21623      conftest$ac_exeext conftest.$ac_ext
21624LIBS=$ac_check_lib_save_LIBS
21625fi
21626{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21627echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
21628if test $ac_cv_lib_c_r_pthread_create = yes; then
21629  pthreads_ok=yes
21630	THREAD_LIBS="-lc_r"
21631else
21632  pthreads_ok=no
21633fi
21634
21635fi
21636
21637if test "x$pthreads_ok" = xyes
21638then
21639# now we know we can use pthreads
21640
21641cat >>confdefs.h <<\_ACEOF
21642#define ENABLE_THREADS 1
21643_ACEOF
21644
21645	CXXFLAGS="-D_REENTRANT $CXXFLAGS"
21646	CFLAGS="-D_REENTRANT $CFLAGS"
21647else
21648	{ { echo "$as_me:$LINENO: error: Unable to find a POSIX threads environment." >&5
21649echo "$as_me: error: Unable to find a POSIX threads environment." >&2;}
21650   { (exit 1); exit 1; }; }
21651fi
21652else
21653	{ echo "$as_me:$LINENO: result: no" >&5
21654echo "${ECHO_T}no" >&6; }
21655fi
21656
21657
21658
21659if test "x$enable_threads" = "xyes"
21660then
21661
21662#perform some checks for reentrant functions
21663
21664
21665for ac_func in localtime_r
21666do
21667as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21668{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21669echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21670if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21671  echo $ECHO_N "(cached) $ECHO_C" >&6
21672else
21673  cat >conftest.$ac_ext <<_ACEOF
21674/* confdefs.h.  */
21675_ACEOF
21676cat confdefs.h >>conftest.$ac_ext
21677cat >>conftest.$ac_ext <<_ACEOF
21678/* end confdefs.h.  */
21679/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21680   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21681#define $ac_func innocuous_$ac_func
21682
21683/* System header to define __stub macros and hopefully few prototypes,
21684    which can conflict with char $ac_func (); below.
21685    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21686    <limits.h> exists even on freestanding compilers.  */
21687
21688#ifdef __STDC__
21689# include <limits.h>
21690#else
21691# include <assert.h>
21692#endif
21693
21694#undef $ac_func
21695
21696/* Override any GCC internal prototype to avoid an error.
21697   Use char because int might match the return type of a GCC
21698   builtin and then its argument prototype would still apply.  */
21699#ifdef __cplusplus
21700extern "C"
21701#endif
21702char $ac_func ();
21703/* The GNU C library defines this for functions which it implements
21704    to always fail with ENOSYS.  Some functions are actually named
21705    something starting with __ and the normal name is an alias.  */
21706#if defined __stub_$ac_func || defined __stub___$ac_func
21707choke me
21708#endif
21709
21710int
21711main ()
21712{
21713return $ac_func ();
21714  ;
21715  return 0;
21716}
21717_ACEOF
21718rm -f conftest.$ac_objext conftest$ac_exeext
21719if { (ac_try="$ac_link"
21720case "(($ac_try" in
21721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21722  *) ac_try_echo=$ac_try;;
21723esac
21724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21725  (eval "$ac_link") 2>conftest.er1
21726  ac_status=$?
21727  grep -v '^ *+' conftest.er1 >conftest.err
21728  rm -f conftest.er1
21729  cat conftest.err >&5
21730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731  (exit $ac_status); } && {
21732	 test -z "$ac_cxx_werror_flag" ||
21733	 test ! -s conftest.err
21734       } && test -s conftest$ac_exeext &&
21735       $as_test_x conftest$ac_exeext; then
21736  eval "$as_ac_var=yes"
21737else
21738  echo "$as_me: failed program was:" >&5
21739sed 's/^/| /' conftest.$ac_ext >&5
21740
21741	eval "$as_ac_var=no"
21742fi
21743
21744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21745      conftest$ac_exeext conftest.$ac_ext
21746fi
21747ac_res=`eval echo '${'$as_ac_var'}'`
21748	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21749echo "${ECHO_T}$ac_res" >&6; }
21750if test `eval echo '${'$as_ac_var'}'` = yes; then
21751  cat >>confdefs.h <<_ACEOF
21752#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21753_ACEOF
21754
21755fi
21756done
21757
21758
21759#make sure pkgconfig has proper library
21760ODBCPP_LIBRARY="odbc++-mt"
21761else
21762ODBCPP_LIBRARY="odbc++"
21763
21764fi
21765
21766
21767 if test x$enable_threads = xyes; then
21768  THREADS_TRUE=
21769  THREADS_FALSE='#'
21770else
21771  THREADS_TRUE='#'
21772  THREADS_FALSE=
21773fi
21774
21775
21776
21777
21778
21779for ac_func in strtoll strtoq snprintf
21780do
21781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21782{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21784if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21785  echo $ECHO_N "(cached) $ECHO_C" >&6
21786else
21787  cat >conftest.$ac_ext <<_ACEOF
21788/* confdefs.h.  */
21789_ACEOF
21790cat confdefs.h >>conftest.$ac_ext
21791cat >>conftest.$ac_ext <<_ACEOF
21792/* end confdefs.h.  */
21793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21794   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21795#define $ac_func innocuous_$ac_func
21796
21797/* System header to define __stub macros and hopefully few prototypes,
21798    which can conflict with char $ac_func (); below.
21799    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21800    <limits.h> exists even on freestanding compilers.  */
21801
21802#ifdef __STDC__
21803# include <limits.h>
21804#else
21805# include <assert.h>
21806#endif
21807
21808#undef $ac_func
21809
21810/* Override any GCC internal prototype to avoid an error.
21811   Use char because int might match the return type of a GCC
21812   builtin and then its argument prototype would still apply.  */
21813#ifdef __cplusplus
21814extern "C"
21815#endif
21816char $ac_func ();
21817/* The GNU C library defines this for functions which it implements
21818    to always fail with ENOSYS.  Some functions are actually named
21819    something starting with __ and the normal name is an alias.  */
21820#if defined __stub_$ac_func || defined __stub___$ac_func
21821choke me
21822#endif
21823
21824int
21825main ()
21826{
21827return $ac_func ();
21828  ;
21829  return 0;
21830}
21831_ACEOF
21832rm -f conftest.$ac_objext conftest$ac_exeext
21833if { (ac_try="$ac_link"
21834case "(($ac_try" in
21835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21836  *) ac_try_echo=$ac_try;;
21837esac
21838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21839  (eval "$ac_link") 2>conftest.er1
21840  ac_status=$?
21841  grep -v '^ *+' conftest.er1 >conftest.err
21842  rm -f conftest.er1
21843  cat conftest.err >&5
21844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845  (exit $ac_status); } && {
21846	 test -z "$ac_cxx_werror_flag" ||
21847	 test ! -s conftest.err
21848       } && test -s conftest$ac_exeext &&
21849       $as_test_x conftest$ac_exeext; then
21850  eval "$as_ac_var=yes"
21851else
21852  echo "$as_me: failed program was:" >&5
21853sed 's/^/| /' conftest.$ac_ext >&5
21854
21855	eval "$as_ac_var=no"
21856fi
21857
21858rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21859      conftest$ac_exeext conftest.$ac_ext
21860fi
21861ac_res=`eval echo '${'$as_ac_var'}'`
21862	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21863echo "${ECHO_T}$ac_res" >&6; }
21864if test `eval echo '${'$as_ac_var'}'` = yes; then
21865  cat >>confdefs.h <<_ACEOF
21866#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21867_ACEOF
21868
21869fi
21870done
21871
21872
21873
21874
21875ac_ext=c
21876ac_cpp='$CPP $CPPFLAGS'
21877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21879ac_compiler_gnu=$ac_cv_c_compiler_gnu
21880
21881
21882# Check whether --with-odbc was given.
21883if test "${with_odbc+set}" = set; then
21884  withval=$with_odbc;
21885if test "x$withval" != "xyes"
21886then
21887	odbc_dir=$withval
21888else
21889	odbc_dir="/usr/local"
21890fi
21891odbc_libraries_dir="$odbc_dir/lib"
21892odbc_includes_dir="$odbc_dir/include"
21893
21894else
21895   odbc_dir=yes
21896fi
21897
21898
21899
21900# Check whether --with-odbc-includes was given.
21901if test "${with_odbc_includes+set}" = set; then
21902  withval=$with_odbc_includes; odbc_includes_dir=$withval
21903
21904fi
21905
21906
21907
21908# Check whether --with-odbc-libraries was given.
21909if test "${with_odbc_libraries+set}" = set; then
21910  withval=$with_odbc_libraries; odbc_libraries_dir=$withval
21911
21912fi
21913
21914
21915if test "x$odbc_dir" != "xno"; then
21916  save_CPPFLAGS="$CPPFLAGS"
21917  save_LIBS="$LIBS"
21918
21919  if test "x$odbc_includes_dir" != "x" -a "x$odbc_includes_dir" != "x/usr/include"
21920  then
21921    CPPFLAGS="$CPPFLAGS -I$odbc_includes_dir"
21922  fi
21923
21924  if test "x$odbc_libraries_dir" != "x"
21925  then
21926    LIBS="$LIBS -L$odbc_libraries_dir"
21927  fi
21928
21929
21930
21931for ac_header in sql.h sqlext.h
21932do
21933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21934if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21935  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21938  echo $ECHO_N "(cached) $ECHO_C" >&6
21939fi
21940ac_res=`eval echo '${'$as_ac_Header'}'`
21941	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21942echo "${ECHO_T}$ac_res" >&6; }
21943else
21944  # Is the header compilable?
21945{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21946echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21947cat >conftest.$ac_ext <<_ACEOF
21948/* confdefs.h.  */
21949_ACEOF
21950cat confdefs.h >>conftest.$ac_ext
21951cat >>conftest.$ac_ext <<_ACEOF
21952/* end confdefs.h.  */
21953$ac_includes_default
21954#include <$ac_header>
21955_ACEOF
21956rm -f conftest.$ac_objext
21957if { (ac_try="$ac_compile"
21958case "(($ac_try" in
21959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21960  *) ac_try_echo=$ac_try;;
21961esac
21962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21963  (eval "$ac_compile") 2>conftest.er1
21964  ac_status=$?
21965  grep -v '^ *+' conftest.er1 >conftest.err
21966  rm -f conftest.er1
21967  cat conftest.err >&5
21968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969  (exit $ac_status); } && {
21970	 test -z "$ac_c_werror_flag" ||
21971	 test ! -s conftest.err
21972       } && test -s conftest.$ac_objext; then
21973  ac_header_compiler=yes
21974else
21975  echo "$as_me: failed program was:" >&5
21976sed 's/^/| /' conftest.$ac_ext >&5
21977
21978	ac_header_compiler=no
21979fi
21980
21981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21982{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21983echo "${ECHO_T}$ac_header_compiler" >&6; }
21984
21985# Is the header present?
21986{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21987echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21988cat >conftest.$ac_ext <<_ACEOF
21989/* confdefs.h.  */
21990_ACEOF
21991cat confdefs.h >>conftest.$ac_ext
21992cat >>conftest.$ac_ext <<_ACEOF
21993/* end confdefs.h.  */
21994#include <$ac_header>
21995_ACEOF
21996if { (ac_try="$ac_cpp conftest.$ac_ext"
21997case "(($ac_try" in
21998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21999  *) ac_try_echo=$ac_try;;
22000esac
22001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22002  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22003  ac_status=$?
22004  grep -v '^ *+' conftest.er1 >conftest.err
22005  rm -f conftest.er1
22006  cat conftest.err >&5
22007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008  (exit $ac_status); } >/dev/null && {
22009	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22010	 test ! -s conftest.err
22011       }; then
22012  ac_header_preproc=yes
22013else
22014  echo "$as_me: failed program was:" >&5
22015sed 's/^/| /' conftest.$ac_ext >&5
22016
22017  ac_header_preproc=no
22018fi
22019
22020rm -f conftest.err conftest.$ac_ext
22021{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22022echo "${ECHO_T}$ac_header_preproc" >&6; }
22023
22024# So?  What about this header?
22025case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22026  yes:no: )
22027    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22029    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22031    ac_header_preproc=yes
22032    ;;
22033  no:yes:* )
22034    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22036    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22037echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22038    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22040    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22041echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22042    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22044    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22046    ( cat <<\_ASBOX
22047## ---------------------------------------------------- ##
22048## Report this to libodbcxx-devel@lists.sourceforge.net ##
22049## ---------------------------------------------------- ##
22050_ASBOX
22051     ) | sed "s/^/$as_me: WARNING:     /" >&2
22052    ;;
22053esac
22054{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22057  echo $ECHO_N "(cached) $ECHO_C" >&6
22058else
22059  eval "$as_ac_Header=\$ac_header_preproc"
22060fi
22061ac_res=`eval echo '${'$as_ac_Header'}'`
22062	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22063echo "${ECHO_T}$ac_res" >&6; }
22064
22065fi
22066if test `eval echo '${'$as_ac_Header'}'` = yes; then
22067  cat >>confdefs.h <<_ACEOF
22068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22069_ACEOF
22070 odbc_ok=yes; odbc_headers="$odbc_headers $ac_hdr"
22071else
22072  odbc_ok=no; break
22073
22074fi
22075
22076done
22077
22078
22079  # sqlucode.h requires sqltypes.h, which is included
22080  # by the already-checked-for sql.h
22081  if test "x$odbc_ok" = "xyes"
22082  then
22083
22084for ac_header in sqlucode.h
22085do
22086as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22087{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22090  echo $ECHO_N "(cached) $ECHO_C" >&6
22091else
22092  cat >conftest.$ac_ext <<_ACEOF
22093/* confdefs.h.  */
22094_ACEOF
22095cat confdefs.h >>conftest.$ac_ext
22096cat >>conftest.$ac_ext <<_ACEOF
22097/* end confdefs.h.  */
22098#include <sql.h>
22099
22100
22101#include <$ac_header>
22102_ACEOF
22103rm -f conftest.$ac_objext
22104if { (ac_try="$ac_compile"
22105case "(($ac_try" in
22106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22107  *) ac_try_echo=$ac_try;;
22108esac
22109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22110  (eval "$ac_compile") 2>conftest.er1
22111  ac_status=$?
22112  grep -v '^ *+' conftest.er1 >conftest.err
22113  rm -f conftest.er1
22114  cat conftest.err >&5
22115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116  (exit $ac_status); } && {
22117	 test -z "$ac_c_werror_flag" ||
22118	 test ! -s conftest.err
22119       } && test -s conftest.$ac_objext; then
22120  eval "$as_ac_Header=yes"
22121else
22122  echo "$as_me: failed program was:" >&5
22123sed 's/^/| /' conftest.$ac_ext >&5
22124
22125	eval "$as_ac_Header=no"
22126fi
22127
22128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22129fi
22130ac_res=`eval echo '${'$as_ac_Header'}'`
22131	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22132echo "${ECHO_T}$ac_res" >&6; }
22133if test `eval echo '${'$as_ac_Header'}'` = yes; then
22134  cat >>confdefs.h <<_ACEOF
22135#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22136_ACEOF
22137 odbc_headers="$odbc_headers sqlucode.h"
22138else
22139  odbc_ok=no; break
22140fi
22141
22142done
22143
22144  fi
22145
22146  if test "x$odbc_ok" = "xyes"
22147  then
22148    { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
22149echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
22150if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
22151  echo $ECHO_N "(cached) $ECHO_C" >&6
22152else
22153  ac_check_lib_save_LIBS=$LIBS
22154LIBS="-lodbc  $LIBS"
22155cat >conftest.$ac_ext <<_ACEOF
22156/* confdefs.h.  */
22157_ACEOF
22158cat confdefs.h >>conftest.$ac_ext
22159cat >>conftest.$ac_ext <<_ACEOF
22160/* end confdefs.h.  */
22161
22162/* Override any GCC internal prototype to avoid an error.
22163   Use char because int might match the return type of a GCC
22164   builtin and then its argument prototype would still apply.  */
22165#ifdef __cplusplus
22166extern "C"
22167#endif
22168char SQLConnect ();
22169int
22170main ()
22171{
22172return SQLConnect ();
22173  ;
22174  return 0;
22175}
22176_ACEOF
22177rm -f conftest.$ac_objext conftest$ac_exeext
22178if { (ac_try="$ac_link"
22179case "(($ac_try" in
22180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22181  *) ac_try_echo=$ac_try;;
22182esac
22183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22184  (eval "$ac_link") 2>conftest.er1
22185  ac_status=$?
22186  grep -v '^ *+' conftest.er1 >conftest.err
22187  rm -f conftest.er1
22188  cat conftest.err >&5
22189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190  (exit $ac_status); } && {
22191	 test -z "$ac_c_werror_flag" ||
22192	 test ! -s conftest.err
22193       } && test -s conftest$ac_exeext &&
22194       $as_test_x conftest$ac_exeext; then
22195  ac_cv_lib_odbc_SQLConnect=yes
22196else
22197  echo "$as_me: failed program was:" >&5
22198sed 's/^/| /' conftest.$ac_ext >&5
22199
22200	ac_cv_lib_odbc_SQLConnect=no
22201fi
22202
22203rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22204      conftest$ac_exeext conftest.$ac_ext
22205LIBS=$ac_check_lib_save_LIBS
22206fi
22207{ echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
22208echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
22209if test $ac_cv_lib_odbc_SQLConnect = yes; then
22210  odbc_ok=yes
22211else
22212  odbc_ok=no
22213fi
22214
22215  fi
22216
22217  if test "x$odbc_ok" = "xyes"
22218  then
22219    { echo "$as_me:$LINENO: checking for struct _GUID.Data1" >&5
22220echo $ECHO_N "checking for struct _GUID.Data1... $ECHO_C" >&6; }
22221if test "${ac_cv_member_struct__GUID_Data1+set}" = set; then
22222  echo $ECHO_N "(cached) $ECHO_C" >&6
22223else
22224  cat >conftest.$ac_ext <<_ACEOF
22225/* confdefs.h.  */
22226_ACEOF
22227cat confdefs.h >>conftest.$ac_ext
22228cat >>conftest.$ac_ext <<_ACEOF
22229/* end confdefs.h.  */
22230#include sql.h
22231
22232
22233int
22234main ()
22235{
22236static struct _GUID ac_aggr;
22237if (ac_aggr.Data1)
22238return 0;
22239  ;
22240  return 0;
22241}
22242_ACEOF
22243rm -f conftest.$ac_objext
22244if { (ac_try="$ac_compile"
22245case "(($ac_try" in
22246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247  *) ac_try_echo=$ac_try;;
22248esac
22249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250  (eval "$ac_compile") 2>conftest.er1
22251  ac_status=$?
22252  grep -v '^ *+' conftest.er1 >conftest.err
22253  rm -f conftest.er1
22254  cat conftest.err >&5
22255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256  (exit $ac_status); } && {
22257	 test -z "$ac_c_werror_flag" ||
22258	 test ! -s conftest.err
22259       } && test -s conftest.$ac_objext; then
22260  ac_cv_member_struct__GUID_Data1=yes
22261else
22262  echo "$as_me: failed program was:" >&5
22263sed 's/^/| /' conftest.$ac_ext >&5
22264
22265	cat >conftest.$ac_ext <<_ACEOF
22266/* confdefs.h.  */
22267_ACEOF
22268cat confdefs.h >>conftest.$ac_ext
22269cat >>conftest.$ac_ext <<_ACEOF
22270/* end confdefs.h.  */
22271#include sql.h
22272
22273
22274int
22275main ()
22276{
22277static struct _GUID ac_aggr;
22278if (sizeof ac_aggr.Data1)
22279return 0;
22280  ;
22281  return 0;
22282}
22283_ACEOF
22284rm -f conftest.$ac_objext
22285if { (ac_try="$ac_compile"
22286case "(($ac_try" in
22287  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288  *) ac_try_echo=$ac_try;;
22289esac
22290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22291  (eval "$ac_compile") 2>conftest.er1
22292  ac_status=$?
22293  grep -v '^ *+' conftest.er1 >conftest.err
22294  rm -f conftest.er1
22295  cat conftest.err >&5
22296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297  (exit $ac_status); } && {
22298	 test -z "$ac_c_werror_flag" ||
22299	 test ! -s conftest.err
22300       } && test -s conftest.$ac_objext; then
22301  ac_cv_member_struct__GUID_Data1=yes
22302else
22303  echo "$as_me: failed program was:" >&5
22304sed 's/^/| /' conftest.$ac_ext >&5
22305
22306	ac_cv_member_struct__GUID_Data1=no
22307fi
22308
22309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22310fi
22311
22312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22313fi
22314{ echo "$as_me:$LINENO: result: $ac_cv_member_struct__GUID_Data1" >&5
22315echo "${ECHO_T}$ac_cv_member_struct__GUID_Data1" >&6; }
22316if test $ac_cv_member_struct__GUID_Data1 = yes; then
22317  have_struct_guid=yes
22318else
22319  have_struct_guid=no
22320fi
22321
22322
22323    if test "x$have_struct_guid" = "xyes"
22324    then
22325
22326cat >>confdefs.h <<\_ACEOF
22327#define HAVE_STRUCT_GUID
22328_ACEOF
22329
22330    fi
22331  fi
22332
22333else
22334  odbc_ok=no
22335fi
22336
22337{ echo "$as_me:$LINENO: checking whether unixODBC should be used" >&5
22338echo $ECHO_N "checking whether unixODBC should be used... $ECHO_C" >&6; }
22339if test "x$odbc_ok" = "xyes"
22340then
22341	LIBS="$LIBS -lodbc"
22342
22343cat >>confdefs.h <<\_ACEOF
22344#define HAVE_LIBODBC
22345_ACEOF
22346
22347	cat >>confdefs.h <<\_ACEOF
22348#define HAVE_SQL_H
22349_ACEOF
22350
22351	cat >>confdefs.h <<\_ACEOF
22352#define HAVE_SQLEXT_H
22353_ACEOF
22354
22355	{ echo "$as_me:$LINENO: result: yes" >&5
22356echo "${ECHO_T}yes" >&6; }
22357else
22358	CPPFLAGS="$save_CPPFLAGS"
22359	LIBS="$save_LIBS"
22360	{ echo "$as_me:$LINENO: result: no" >&5
22361echo "${ECHO_T}no" >&6; }
22362fi
22363ac_ext=cpp
22364ac_cpp='$CXXCPP $CPPFLAGS'
22365ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22366ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22367ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22368
22369
22370
22371if test "x$odbc_ok" != "xyes"
22372then
22373
22374
22375ac_ext=c
22376ac_cpp='$CPP $CPPFLAGS'
22377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22379ac_compiler_gnu=$ac_cv_c_compiler_gnu
22380
22381
22382# Check whether --with-iodbc was given.
22383if test "${with_iodbc+set}" = set; then
22384  withval=$with_iodbc;
22385if test "x$withval" != "xyes"
22386then
22387	iodbc_dir=$withval
22388else
22389	iodbc_dir="/usr/local"
22390fi
22391
22392fi
22393
22394
22395if test "x$iodbc_dir" = "x"
22396then
22397	iodbc_dir="/usr/local"
22398fi
22399
22400
22401# Check whether --with-iodbc-includes was given.
22402if test "${with_iodbc_includes+set}" = set; then
22403  withval=$with_iodbc_includes; iodbc_includes_dir=$withval
22404else
22405  iodbc_includes_dir="$iodbc_dir/include"
22406
22407fi
22408
22409
22410
22411# Check whether --with-iodbc-libraries was given.
22412if test "${with_iodbc_libraries+set}" = set; then
22413  withval=$with_iodbc_libraries; iodbc_libraries_dir=$withval
22414else
22415  iodbc_libraries_dir="$iodbc_dir/lib"
22416
22417fi
22418
22419
22420save_CPPFLAGS="$CPPFLAGS"
22421save_LIBS="$LIBS"
22422
22423CPPFLAGS="$CPPFLAGS -I$iodbc_includes_dir"
22424LIBS="$LIBS -L$iodbc_libraries_dir"
22425
22426
22427
22428for ac_header in isql.h isqlext.h
22429do
22430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22432  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22435  echo $ECHO_N "(cached) $ECHO_C" >&6
22436fi
22437ac_res=`eval echo '${'$as_ac_Header'}'`
22438	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22439echo "${ECHO_T}$ac_res" >&6; }
22440else
22441  # Is the header compilable?
22442{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22443echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22444cat >conftest.$ac_ext <<_ACEOF
22445/* confdefs.h.  */
22446_ACEOF
22447cat confdefs.h >>conftest.$ac_ext
22448cat >>conftest.$ac_ext <<_ACEOF
22449/* end confdefs.h.  */
22450$ac_includes_default
22451#include <$ac_header>
22452_ACEOF
22453rm -f conftest.$ac_objext
22454if { (ac_try="$ac_compile"
22455case "(($ac_try" in
22456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22457  *) ac_try_echo=$ac_try;;
22458esac
22459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22460  (eval "$ac_compile") 2>conftest.er1
22461  ac_status=$?
22462  grep -v '^ *+' conftest.er1 >conftest.err
22463  rm -f conftest.er1
22464  cat conftest.err >&5
22465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466  (exit $ac_status); } && {
22467	 test -z "$ac_c_werror_flag" ||
22468	 test ! -s conftest.err
22469       } && test -s conftest.$ac_objext; then
22470  ac_header_compiler=yes
22471else
22472  echo "$as_me: failed program was:" >&5
22473sed 's/^/| /' conftest.$ac_ext >&5
22474
22475	ac_header_compiler=no
22476fi
22477
22478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22479{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22480echo "${ECHO_T}$ac_header_compiler" >&6; }
22481
22482# Is the header present?
22483{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22484echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22485cat >conftest.$ac_ext <<_ACEOF
22486/* confdefs.h.  */
22487_ACEOF
22488cat confdefs.h >>conftest.$ac_ext
22489cat >>conftest.$ac_ext <<_ACEOF
22490/* end confdefs.h.  */
22491#include <$ac_header>
22492_ACEOF
22493if { (ac_try="$ac_cpp conftest.$ac_ext"
22494case "(($ac_try" in
22495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22496  *) ac_try_echo=$ac_try;;
22497esac
22498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22499  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22500  ac_status=$?
22501  grep -v '^ *+' conftest.er1 >conftest.err
22502  rm -f conftest.er1
22503  cat conftest.err >&5
22504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505  (exit $ac_status); } >/dev/null && {
22506	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22507	 test ! -s conftest.err
22508       }; then
22509  ac_header_preproc=yes
22510else
22511  echo "$as_me: failed program was:" >&5
22512sed 's/^/| /' conftest.$ac_ext >&5
22513
22514  ac_header_preproc=no
22515fi
22516
22517rm -f conftest.err conftest.$ac_ext
22518{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22519echo "${ECHO_T}$ac_header_preproc" >&6; }
22520
22521# So?  What about this header?
22522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22523  yes:no: )
22524    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22526    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22528    ac_header_preproc=yes
22529    ;;
22530  no:yes:* )
22531    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22533    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22534echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22535    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22537    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22538echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22539    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22541    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22543    ( cat <<\_ASBOX
22544## ---------------------------------------------------- ##
22545## Report this to libodbcxx-devel@lists.sourceforge.net ##
22546## ---------------------------------------------------- ##
22547_ASBOX
22548     ) | sed "s/^/$as_me: WARNING:     /" >&2
22549    ;;
22550esac
22551{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22553if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22554  echo $ECHO_N "(cached) $ECHO_C" >&6
22555else
22556  eval "$as_ac_Header=\$ac_header_preproc"
22557fi
22558ac_res=`eval echo '${'$as_ac_Header'}'`
22559	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22560echo "${ECHO_T}$ac_res" >&6; }
22561
22562fi
22563if test `eval echo '${'$as_ac_Header'}'` = yes; then
22564  cat >>confdefs.h <<_ACEOF
22565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22566_ACEOF
22567 iodbc_ok=yes; odbc_headers="$odbc_headers $ac_hdr"
22568else
22569  iodbc_ok=no; break
22570fi
22571
22572done
22573
22574
22575if test "x$iodbc_ok" = "xyes"
22576then
22577	{ echo "$as_me:$LINENO: checking for SQLConnect in -liodbc" >&5
22578echo $ECHO_N "checking for SQLConnect in -liodbc... $ECHO_C" >&6; }
22579if test "${ac_cv_lib_iodbc_SQLConnect+set}" = set; then
22580  echo $ECHO_N "(cached) $ECHO_C" >&6
22581else
22582  ac_check_lib_save_LIBS=$LIBS
22583LIBS="-liodbc  $LIBS"
22584cat >conftest.$ac_ext <<_ACEOF
22585/* confdefs.h.  */
22586_ACEOF
22587cat confdefs.h >>conftest.$ac_ext
22588cat >>conftest.$ac_ext <<_ACEOF
22589/* end confdefs.h.  */
22590
22591/* Override any GCC internal prototype to avoid an error.
22592   Use char because int might match the return type of a GCC
22593   builtin and then its argument prototype would still apply.  */
22594#ifdef __cplusplus
22595extern "C"
22596#endif
22597char SQLConnect ();
22598int
22599main ()
22600{
22601return SQLConnect ();
22602  ;
22603  return 0;
22604}
22605_ACEOF
22606rm -f conftest.$ac_objext conftest$ac_exeext
22607if { (ac_try="$ac_link"
22608case "(($ac_try" in
22609  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22610  *) ac_try_echo=$ac_try;;
22611esac
22612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22613  (eval "$ac_link") 2>conftest.er1
22614  ac_status=$?
22615  grep -v '^ *+' conftest.er1 >conftest.err
22616  rm -f conftest.er1
22617  cat conftest.err >&5
22618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619  (exit $ac_status); } && {
22620	 test -z "$ac_c_werror_flag" ||
22621	 test ! -s conftest.err
22622       } && test -s conftest$ac_exeext &&
22623       $as_test_x conftest$ac_exeext; then
22624  ac_cv_lib_iodbc_SQLConnect=yes
22625else
22626  echo "$as_me: failed program was:" >&5
22627sed 's/^/| /' conftest.$ac_ext >&5
22628
22629	ac_cv_lib_iodbc_SQLConnect=no
22630fi
22631
22632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22633      conftest$ac_exeext conftest.$ac_ext
22634LIBS=$ac_check_lib_save_LIBS
22635fi
22636{ echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLConnect" >&5
22637echo "${ECHO_T}$ac_cv_lib_iodbc_SQLConnect" >&6; }
22638if test $ac_cv_lib_iodbc_SQLConnect = yes; then
22639  iodbc_ok=yes
22640else
22641  iodbc_ok=no
22642fi
22643
22644fi
22645
22646if test "x$iodbc_ok" = "xyes"
22647then
22648	LIBS="$LIBS -liodbc"
22649
22650cat >>confdefs.h <<\_ACEOF
22651#define HAVE_LIBIODBC 1
22652_ACEOF
22653
22654
22655cat >>confdefs.h <<\_ACEOF
22656#define HAVE_ISQL_H 1
22657_ACEOF
22658
22659
22660cat >>confdefs.h <<\_ACEOF
22661#define HAVE_ISQLEXT_H 1
22662_ACEOF
22663
22664else
22665	CPPFLAGS="$save_CPPFLAGS"
22666	LIBS="$save_LIBS"
22667fi
22668ac_ext=cpp
22669ac_cpp='$CXXCPP $CPPFLAGS'
22670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22673
22674
22675fi
22676
22677
22678if test "x$iodbc_ok" != "xyes" &&
22679   test "x$odbc_ok" != "xyes"
22680then
22681	{ { echo "$as_me:$LINENO: error: No ODBC driver manager configured. Pperhaps you need to give configure --with-odbc=/some/location?" >&5
22682echo "$as_me: error: No ODBC driver manager configured. Pperhaps you need to give configure --with-odbc=/some/location?" >&2;}
22683   { (exit 1); exit 1; }; }
22684fi
22685
22686
22687# Check whether --with-odbc-version was given.
22688if test "${with_odbc_version+set}" = set; then
22689  withval=$with_odbc_version;
22690if test "x$withval" != "xyes"
22691then
22692
22693cat >>confdefs.h <<_ACEOF
22694#define ODBCVER $withval
22695_ACEOF
22696
22697fi
22698
22699fi
22700
22701
22702
22703for ac_header in inttypes.h
22704do
22705as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22707  { echo "$as_me:$LINENO: checking for $ac_header" >&5
22708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22710  echo $ECHO_N "(cached) $ECHO_C" >&6
22711fi
22712ac_res=`eval echo '${'$as_ac_Header'}'`
22713	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22714echo "${ECHO_T}$ac_res" >&6; }
22715else
22716  # Is the header compilable?
22717{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22718echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22719cat >conftest.$ac_ext <<_ACEOF
22720/* confdefs.h.  */
22721_ACEOF
22722cat confdefs.h >>conftest.$ac_ext
22723cat >>conftest.$ac_ext <<_ACEOF
22724/* end confdefs.h.  */
22725$ac_includes_default
22726#include <$ac_header>
22727_ACEOF
22728rm -f conftest.$ac_objext
22729if { (ac_try="$ac_compile"
22730case "(($ac_try" in
22731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22732  *) ac_try_echo=$ac_try;;
22733esac
22734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22735  (eval "$ac_compile") 2>conftest.er1
22736  ac_status=$?
22737  grep -v '^ *+' conftest.er1 >conftest.err
22738  rm -f conftest.er1
22739  cat conftest.err >&5
22740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741  (exit $ac_status); } && {
22742	 test -z "$ac_cxx_werror_flag" ||
22743	 test ! -s conftest.err
22744       } && test -s conftest.$ac_objext; then
22745  ac_header_compiler=yes
22746else
22747  echo "$as_me: failed program was:" >&5
22748sed 's/^/| /' conftest.$ac_ext >&5
22749
22750	ac_header_compiler=no
22751fi
22752
22753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22754{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22755echo "${ECHO_T}$ac_header_compiler" >&6; }
22756
22757# Is the header present?
22758{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22759echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22760cat >conftest.$ac_ext <<_ACEOF
22761/* confdefs.h.  */
22762_ACEOF
22763cat confdefs.h >>conftest.$ac_ext
22764cat >>conftest.$ac_ext <<_ACEOF
22765/* end confdefs.h.  */
22766#include <$ac_header>
22767_ACEOF
22768if { (ac_try="$ac_cpp conftest.$ac_ext"
22769case "(($ac_try" in
22770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22771  *) ac_try_echo=$ac_try;;
22772esac
22773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22774  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22775  ac_status=$?
22776  grep -v '^ *+' conftest.er1 >conftest.err
22777  rm -f conftest.er1
22778  cat conftest.err >&5
22779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780  (exit $ac_status); } >/dev/null && {
22781	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22782	 test ! -s conftest.err
22783       }; then
22784  ac_header_preproc=yes
22785else
22786  echo "$as_me: failed program was:" >&5
22787sed 's/^/| /' conftest.$ac_ext >&5
22788
22789  ac_header_preproc=no
22790fi
22791
22792rm -f conftest.err conftest.$ac_ext
22793{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22794echo "${ECHO_T}$ac_header_preproc" >&6; }
22795
22796# So?  What about this header?
22797case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22798  yes:no: )
22799    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22800echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22801    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22802echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22803    ac_header_preproc=yes
22804    ;;
22805  no:yes:* )
22806    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22807echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22808    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22809echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22810    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22811echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22812    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22813echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22814    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22816    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22817echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22818    ( cat <<\_ASBOX
22819## ---------------------------------------------------- ##
22820## Report this to libodbcxx-devel@lists.sourceforge.net ##
22821## ---------------------------------------------------- ##
22822_ASBOX
22823     ) | sed "s/^/$as_me: WARNING:     /" >&2
22824    ;;
22825esac
22826{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22829  echo $ECHO_N "(cached) $ECHO_C" >&6
22830else
22831  eval "$as_ac_Header=\$ac_header_preproc"
22832fi
22833ac_res=`eval echo '${'$as_ac_Header'}'`
22834	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22835echo "${ECHO_T}$ac_res" >&6; }
22836
22837fi
22838if test `eval echo '${'$as_ac_Header'}'` = yes; then
22839  cat >>confdefs.h <<_ACEOF
22840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22841_ACEOF
22842
22843fi
22844
22845done
22846
22847
22848{ echo "$as_me:$LINENO: checking for int" >&5
22849echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22850if test "${ac_cv_type_int+set}" = set; then
22851  echo $ECHO_N "(cached) $ECHO_C" >&6
22852else
22853  cat >conftest.$ac_ext <<_ACEOF
22854/* confdefs.h.  */
22855_ACEOF
22856cat confdefs.h >>conftest.$ac_ext
22857cat >>conftest.$ac_ext <<_ACEOF
22858/* end confdefs.h.  */
22859$ac_includes_default
22860typedef int ac__type_new_;
22861int
22862main ()
22863{
22864if ((ac__type_new_ *) 0)
22865  return 0;
22866if (sizeof (ac__type_new_))
22867  return 0;
22868  ;
22869  return 0;
22870}
22871_ACEOF
22872rm -f conftest.$ac_objext
22873if { (ac_try="$ac_compile"
22874case "(($ac_try" in
22875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876  *) ac_try_echo=$ac_try;;
22877esac
22878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879  (eval "$ac_compile") 2>conftest.er1
22880  ac_status=$?
22881  grep -v '^ *+' conftest.er1 >conftest.err
22882  rm -f conftest.er1
22883  cat conftest.err >&5
22884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885  (exit $ac_status); } && {
22886	 test -z "$ac_cxx_werror_flag" ||
22887	 test ! -s conftest.err
22888       } && test -s conftest.$ac_objext; then
22889  ac_cv_type_int=yes
22890else
22891  echo "$as_me: failed program was:" >&5
22892sed 's/^/| /' conftest.$ac_ext >&5
22893
22894	ac_cv_type_int=no
22895fi
22896
22897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22898fi
22899{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22900echo "${ECHO_T}$ac_cv_type_int" >&6; }
22901
22902# The cast to long int works around a bug in the HP C Compiler
22903# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22904# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22905# This bug is HP SR number 8606223364.
22906{ echo "$as_me:$LINENO: checking size of int" >&5
22907echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22908if test "${ac_cv_sizeof_int+set}" = set; then
22909  echo $ECHO_N "(cached) $ECHO_C" >&6
22910else
22911  if test "$cross_compiling" = yes; then
22912  # Depending upon the size, compute the lo and hi bounds.
22913cat >conftest.$ac_ext <<_ACEOF
22914/* confdefs.h.  */
22915_ACEOF
22916cat confdefs.h >>conftest.$ac_ext
22917cat >>conftest.$ac_ext <<_ACEOF
22918/* end confdefs.h.  */
22919$ac_includes_default
22920   typedef int ac__type_sizeof_;
22921int
22922main ()
22923{
22924static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22925test_array [0] = 0
22926
22927  ;
22928  return 0;
22929}
22930_ACEOF
22931rm -f conftest.$ac_objext
22932if { (ac_try="$ac_compile"
22933case "(($ac_try" in
22934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22935  *) ac_try_echo=$ac_try;;
22936esac
22937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22938  (eval "$ac_compile") 2>conftest.er1
22939  ac_status=$?
22940  grep -v '^ *+' conftest.er1 >conftest.err
22941  rm -f conftest.er1
22942  cat conftest.err >&5
22943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944  (exit $ac_status); } && {
22945	 test -z "$ac_cxx_werror_flag" ||
22946	 test ! -s conftest.err
22947       } && test -s conftest.$ac_objext; then
22948  ac_lo=0 ac_mid=0
22949  while :; do
22950    cat >conftest.$ac_ext <<_ACEOF
22951/* confdefs.h.  */
22952_ACEOF
22953cat confdefs.h >>conftest.$ac_ext
22954cat >>conftest.$ac_ext <<_ACEOF
22955/* end confdefs.h.  */
22956$ac_includes_default
22957   typedef int ac__type_sizeof_;
22958int
22959main ()
22960{
22961static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22962test_array [0] = 0
22963
22964  ;
22965  return 0;
22966}
22967_ACEOF
22968rm -f conftest.$ac_objext
22969if { (ac_try="$ac_compile"
22970case "(($ac_try" in
22971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22972  *) ac_try_echo=$ac_try;;
22973esac
22974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22975  (eval "$ac_compile") 2>conftest.er1
22976  ac_status=$?
22977  grep -v '^ *+' conftest.er1 >conftest.err
22978  rm -f conftest.er1
22979  cat conftest.err >&5
22980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981  (exit $ac_status); } && {
22982	 test -z "$ac_cxx_werror_flag" ||
22983	 test ! -s conftest.err
22984       } && test -s conftest.$ac_objext; then
22985  ac_hi=$ac_mid; break
22986else
22987  echo "$as_me: failed program was:" >&5
22988sed 's/^/| /' conftest.$ac_ext >&5
22989
22990	ac_lo=`expr $ac_mid + 1`
22991			if test $ac_lo -le $ac_mid; then
22992			  ac_lo= ac_hi=
22993			  break
22994			fi
22995			ac_mid=`expr 2 '*' $ac_mid + 1`
22996fi
22997
22998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22999  done
23000else
23001  echo "$as_me: failed program was:" >&5
23002sed 's/^/| /' conftest.$ac_ext >&5
23003
23004	cat >conftest.$ac_ext <<_ACEOF
23005/* confdefs.h.  */
23006_ACEOF
23007cat confdefs.h >>conftest.$ac_ext
23008cat >>conftest.$ac_ext <<_ACEOF
23009/* end confdefs.h.  */
23010$ac_includes_default
23011   typedef int ac__type_sizeof_;
23012int
23013main ()
23014{
23015static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23016test_array [0] = 0
23017
23018  ;
23019  return 0;
23020}
23021_ACEOF
23022rm -f conftest.$ac_objext
23023if { (ac_try="$ac_compile"
23024case "(($ac_try" in
23025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23026  *) ac_try_echo=$ac_try;;
23027esac
23028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23029  (eval "$ac_compile") 2>conftest.er1
23030  ac_status=$?
23031  grep -v '^ *+' conftest.er1 >conftest.err
23032  rm -f conftest.er1
23033  cat conftest.err >&5
23034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23035  (exit $ac_status); } && {
23036	 test -z "$ac_cxx_werror_flag" ||
23037	 test ! -s conftest.err
23038       } && test -s conftest.$ac_objext; then
23039  ac_hi=-1 ac_mid=-1
23040  while :; do
23041    cat >conftest.$ac_ext <<_ACEOF
23042/* confdefs.h.  */
23043_ACEOF
23044cat confdefs.h >>conftest.$ac_ext
23045cat >>conftest.$ac_ext <<_ACEOF
23046/* end confdefs.h.  */
23047$ac_includes_default
23048   typedef int ac__type_sizeof_;
23049int
23050main ()
23051{
23052static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23053test_array [0] = 0
23054
23055  ;
23056  return 0;
23057}
23058_ACEOF
23059rm -f conftest.$ac_objext
23060if { (ac_try="$ac_compile"
23061case "(($ac_try" in
23062  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23063  *) ac_try_echo=$ac_try;;
23064esac
23065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23066  (eval "$ac_compile") 2>conftest.er1
23067  ac_status=$?
23068  grep -v '^ *+' conftest.er1 >conftest.err
23069  rm -f conftest.er1
23070  cat conftest.err >&5
23071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072  (exit $ac_status); } && {
23073	 test -z "$ac_cxx_werror_flag" ||
23074	 test ! -s conftest.err
23075       } && test -s conftest.$ac_objext; then
23076  ac_lo=$ac_mid; break
23077else
23078  echo "$as_me: failed program was:" >&5
23079sed 's/^/| /' conftest.$ac_ext >&5
23080
23081	ac_hi=`expr '(' $ac_mid ')' - 1`
23082			if test $ac_mid -le $ac_hi; then
23083			  ac_lo= ac_hi=
23084			  break
23085			fi
23086			ac_mid=`expr 2 '*' $ac_mid`
23087fi
23088
23089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23090  done
23091else
23092  echo "$as_me: failed program was:" >&5
23093sed 's/^/| /' conftest.$ac_ext >&5
23094
23095	ac_lo= ac_hi=
23096fi
23097
23098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23099fi
23100
23101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23102# Binary search between lo and hi bounds.
23103while test "x$ac_lo" != "x$ac_hi"; do
23104  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23105  cat >conftest.$ac_ext <<_ACEOF
23106/* confdefs.h.  */
23107_ACEOF
23108cat confdefs.h >>conftest.$ac_ext
23109cat >>conftest.$ac_ext <<_ACEOF
23110/* end confdefs.h.  */
23111$ac_includes_default
23112   typedef int ac__type_sizeof_;
23113int
23114main ()
23115{
23116static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23117test_array [0] = 0
23118
23119  ;
23120  return 0;
23121}
23122_ACEOF
23123rm -f conftest.$ac_objext
23124if { (ac_try="$ac_compile"
23125case "(($ac_try" in
23126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127  *) ac_try_echo=$ac_try;;
23128esac
23129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130  (eval "$ac_compile") 2>conftest.er1
23131  ac_status=$?
23132  grep -v '^ *+' conftest.er1 >conftest.err
23133  rm -f conftest.er1
23134  cat conftest.err >&5
23135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136  (exit $ac_status); } && {
23137	 test -z "$ac_cxx_werror_flag" ||
23138	 test ! -s conftest.err
23139       } && test -s conftest.$ac_objext; then
23140  ac_hi=$ac_mid
23141else
23142  echo "$as_me: failed program was:" >&5
23143sed 's/^/| /' conftest.$ac_ext >&5
23144
23145	ac_lo=`expr '(' $ac_mid ')' + 1`
23146fi
23147
23148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23149done
23150case $ac_lo in
23151?*) ac_cv_sizeof_int=$ac_lo;;
23152'') if test "$ac_cv_type_int" = yes; then
23153     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23154See \`config.log' for more details." >&5
23155echo "$as_me: error: cannot compute sizeof (int)
23156See \`config.log' for more details." >&2;}
23157   { (exit 77); exit 77; }; }
23158   else
23159     ac_cv_sizeof_int=0
23160   fi ;;
23161esac
23162else
23163  cat >conftest.$ac_ext <<_ACEOF
23164/* confdefs.h.  */
23165_ACEOF
23166cat confdefs.h >>conftest.$ac_ext
23167cat >>conftest.$ac_ext <<_ACEOF
23168/* end confdefs.h.  */
23169$ac_includes_default
23170   typedef int ac__type_sizeof_;
23171static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23172static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23173#include <stdio.h>
23174#include <stdlib.h>
23175int
23176main ()
23177{
23178
23179  FILE *f = fopen ("conftest.val", "w");
23180  if (! f)
23181    return 1;
23182  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23183    {
23184      long int i = longval ();
23185      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23186	return 1;
23187      fprintf (f, "%ld\n", i);
23188    }
23189  else
23190    {
23191      unsigned long int i = ulongval ();
23192      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23193	return 1;
23194      fprintf (f, "%lu\n", i);
23195    }
23196  return ferror (f) || fclose (f) != 0;
23197
23198  ;
23199  return 0;
23200}
23201_ACEOF
23202rm -f conftest$ac_exeext
23203if { (ac_try="$ac_link"
23204case "(($ac_try" in
23205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23206  *) ac_try_echo=$ac_try;;
23207esac
23208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23209  (eval "$ac_link") 2>&5
23210  ac_status=$?
23211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23213  { (case "(($ac_try" in
23214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23215  *) ac_try_echo=$ac_try;;
23216esac
23217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23218  (eval "$ac_try") 2>&5
23219  ac_status=$?
23220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221  (exit $ac_status); }; }; then
23222  ac_cv_sizeof_int=`cat conftest.val`
23223else
23224  echo "$as_me: program exited with status $ac_status" >&5
23225echo "$as_me: failed program was:" >&5
23226sed 's/^/| /' conftest.$ac_ext >&5
23227
23228( exit $ac_status )
23229if test "$ac_cv_type_int" = yes; then
23230     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23231See \`config.log' for more details." >&5
23232echo "$as_me: error: cannot compute sizeof (int)
23233See \`config.log' for more details." >&2;}
23234   { (exit 77); exit 77; }; }
23235   else
23236     ac_cv_sizeof_int=0
23237   fi
23238fi
23239rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23240fi
23241rm -f conftest.val
23242fi
23243{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23244echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
23245
23246
23247
23248cat >>confdefs.h <<_ACEOF
23249#define SIZEOF_INT $ac_cv_sizeof_int
23250_ACEOF
23251
23252
23253{ echo "$as_me:$LINENO: checking for long" >&5
23254echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23255if test "${ac_cv_type_long+set}" = set; then
23256  echo $ECHO_N "(cached) $ECHO_C" >&6
23257else
23258  cat >conftest.$ac_ext <<_ACEOF
23259/* confdefs.h.  */
23260_ACEOF
23261cat confdefs.h >>conftest.$ac_ext
23262cat >>conftest.$ac_ext <<_ACEOF
23263/* end confdefs.h.  */
23264$ac_includes_default
23265typedef long ac__type_new_;
23266int
23267main ()
23268{
23269if ((ac__type_new_ *) 0)
23270  return 0;
23271if (sizeof (ac__type_new_))
23272  return 0;
23273  ;
23274  return 0;
23275}
23276_ACEOF
23277rm -f conftest.$ac_objext
23278if { (ac_try="$ac_compile"
23279case "(($ac_try" in
23280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281  *) ac_try_echo=$ac_try;;
23282esac
23283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23284  (eval "$ac_compile") 2>conftest.er1
23285  ac_status=$?
23286  grep -v '^ *+' conftest.er1 >conftest.err
23287  rm -f conftest.er1
23288  cat conftest.err >&5
23289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290  (exit $ac_status); } && {
23291	 test -z "$ac_cxx_werror_flag" ||
23292	 test ! -s conftest.err
23293       } && test -s conftest.$ac_objext; then
23294  ac_cv_type_long=yes
23295else
23296  echo "$as_me: failed program was:" >&5
23297sed 's/^/| /' conftest.$ac_ext >&5
23298
23299	ac_cv_type_long=no
23300fi
23301
23302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23303fi
23304{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23305echo "${ECHO_T}$ac_cv_type_long" >&6; }
23306
23307# The cast to long int works around a bug in the HP C Compiler
23308# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23309# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23310# This bug is HP SR number 8606223364.
23311{ echo "$as_me:$LINENO: checking size of long" >&5
23312echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
23313if test "${ac_cv_sizeof_long+set}" = set; then
23314  echo $ECHO_N "(cached) $ECHO_C" >&6
23315else
23316  if test "$cross_compiling" = yes; then
23317  # Depending upon the size, compute the lo and hi bounds.
23318cat >conftest.$ac_ext <<_ACEOF
23319/* confdefs.h.  */
23320_ACEOF
23321cat confdefs.h >>conftest.$ac_ext
23322cat >>conftest.$ac_ext <<_ACEOF
23323/* end confdefs.h.  */
23324$ac_includes_default
23325   typedef long ac__type_sizeof_;
23326int
23327main ()
23328{
23329static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23330test_array [0] = 0
23331
23332  ;
23333  return 0;
23334}
23335_ACEOF
23336rm -f conftest.$ac_objext
23337if { (ac_try="$ac_compile"
23338case "(($ac_try" in
23339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23340  *) ac_try_echo=$ac_try;;
23341esac
23342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23343  (eval "$ac_compile") 2>conftest.er1
23344  ac_status=$?
23345  grep -v '^ *+' conftest.er1 >conftest.err
23346  rm -f conftest.er1
23347  cat conftest.err >&5
23348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349  (exit $ac_status); } && {
23350	 test -z "$ac_cxx_werror_flag" ||
23351	 test ! -s conftest.err
23352       } && test -s conftest.$ac_objext; then
23353  ac_lo=0 ac_mid=0
23354  while :; do
23355    cat >conftest.$ac_ext <<_ACEOF
23356/* confdefs.h.  */
23357_ACEOF
23358cat confdefs.h >>conftest.$ac_ext
23359cat >>conftest.$ac_ext <<_ACEOF
23360/* end confdefs.h.  */
23361$ac_includes_default
23362   typedef long ac__type_sizeof_;
23363int
23364main ()
23365{
23366static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23367test_array [0] = 0
23368
23369  ;
23370  return 0;
23371}
23372_ACEOF
23373rm -f conftest.$ac_objext
23374if { (ac_try="$ac_compile"
23375case "(($ac_try" in
23376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23377  *) ac_try_echo=$ac_try;;
23378esac
23379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23380  (eval "$ac_compile") 2>conftest.er1
23381  ac_status=$?
23382  grep -v '^ *+' conftest.er1 >conftest.err
23383  rm -f conftest.er1
23384  cat conftest.err >&5
23385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386  (exit $ac_status); } && {
23387	 test -z "$ac_cxx_werror_flag" ||
23388	 test ! -s conftest.err
23389       } && test -s conftest.$ac_objext; then
23390  ac_hi=$ac_mid; break
23391else
23392  echo "$as_me: failed program was:" >&5
23393sed 's/^/| /' conftest.$ac_ext >&5
23394
23395	ac_lo=`expr $ac_mid + 1`
23396			if test $ac_lo -le $ac_mid; then
23397			  ac_lo= ac_hi=
23398			  break
23399			fi
23400			ac_mid=`expr 2 '*' $ac_mid + 1`
23401fi
23402
23403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23404  done
23405else
23406  echo "$as_me: failed program was:" >&5
23407sed 's/^/| /' conftest.$ac_ext >&5
23408
23409	cat >conftest.$ac_ext <<_ACEOF
23410/* confdefs.h.  */
23411_ACEOF
23412cat confdefs.h >>conftest.$ac_ext
23413cat >>conftest.$ac_ext <<_ACEOF
23414/* end confdefs.h.  */
23415$ac_includes_default
23416   typedef long ac__type_sizeof_;
23417int
23418main ()
23419{
23420static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23421test_array [0] = 0
23422
23423  ;
23424  return 0;
23425}
23426_ACEOF
23427rm -f conftest.$ac_objext
23428if { (ac_try="$ac_compile"
23429case "(($ac_try" in
23430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23431  *) ac_try_echo=$ac_try;;
23432esac
23433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23434  (eval "$ac_compile") 2>conftest.er1
23435  ac_status=$?
23436  grep -v '^ *+' conftest.er1 >conftest.err
23437  rm -f conftest.er1
23438  cat conftest.err >&5
23439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440  (exit $ac_status); } && {
23441	 test -z "$ac_cxx_werror_flag" ||
23442	 test ! -s conftest.err
23443       } && test -s conftest.$ac_objext; then
23444  ac_hi=-1 ac_mid=-1
23445  while :; do
23446    cat >conftest.$ac_ext <<_ACEOF
23447/* confdefs.h.  */
23448_ACEOF
23449cat confdefs.h >>conftest.$ac_ext
23450cat >>conftest.$ac_ext <<_ACEOF
23451/* end confdefs.h.  */
23452$ac_includes_default
23453   typedef long ac__type_sizeof_;
23454int
23455main ()
23456{
23457static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23458test_array [0] = 0
23459
23460  ;
23461  return 0;
23462}
23463_ACEOF
23464rm -f conftest.$ac_objext
23465if { (ac_try="$ac_compile"
23466case "(($ac_try" in
23467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468  *) ac_try_echo=$ac_try;;
23469esac
23470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23471  (eval "$ac_compile") 2>conftest.er1
23472  ac_status=$?
23473  grep -v '^ *+' conftest.er1 >conftest.err
23474  rm -f conftest.er1
23475  cat conftest.err >&5
23476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477  (exit $ac_status); } && {
23478	 test -z "$ac_cxx_werror_flag" ||
23479	 test ! -s conftest.err
23480       } && test -s conftest.$ac_objext; then
23481  ac_lo=$ac_mid; break
23482else
23483  echo "$as_me: failed program was:" >&5
23484sed 's/^/| /' conftest.$ac_ext >&5
23485
23486	ac_hi=`expr '(' $ac_mid ')' - 1`
23487			if test $ac_mid -le $ac_hi; then
23488			  ac_lo= ac_hi=
23489			  break
23490			fi
23491			ac_mid=`expr 2 '*' $ac_mid`
23492fi
23493
23494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23495  done
23496else
23497  echo "$as_me: failed program was:" >&5
23498sed 's/^/| /' conftest.$ac_ext >&5
23499
23500	ac_lo= ac_hi=
23501fi
23502
23503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23504fi
23505
23506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23507# Binary search between lo and hi bounds.
23508while test "x$ac_lo" != "x$ac_hi"; do
23509  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23510  cat >conftest.$ac_ext <<_ACEOF
23511/* confdefs.h.  */
23512_ACEOF
23513cat confdefs.h >>conftest.$ac_ext
23514cat >>conftest.$ac_ext <<_ACEOF
23515/* end confdefs.h.  */
23516$ac_includes_default
23517   typedef long ac__type_sizeof_;
23518int
23519main ()
23520{
23521static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23522test_array [0] = 0
23523
23524  ;
23525  return 0;
23526}
23527_ACEOF
23528rm -f conftest.$ac_objext
23529if { (ac_try="$ac_compile"
23530case "(($ac_try" in
23531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23532  *) ac_try_echo=$ac_try;;
23533esac
23534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23535  (eval "$ac_compile") 2>conftest.er1
23536  ac_status=$?
23537  grep -v '^ *+' conftest.er1 >conftest.err
23538  rm -f conftest.er1
23539  cat conftest.err >&5
23540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541  (exit $ac_status); } && {
23542	 test -z "$ac_cxx_werror_flag" ||
23543	 test ! -s conftest.err
23544       } && test -s conftest.$ac_objext; then
23545  ac_hi=$ac_mid
23546else
23547  echo "$as_me: failed program was:" >&5
23548sed 's/^/| /' conftest.$ac_ext >&5
23549
23550	ac_lo=`expr '(' $ac_mid ')' + 1`
23551fi
23552
23553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23554done
23555case $ac_lo in
23556?*) ac_cv_sizeof_long=$ac_lo;;
23557'') if test "$ac_cv_type_long" = yes; then
23558     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23559See \`config.log' for more details." >&5
23560echo "$as_me: error: cannot compute sizeof (long)
23561See \`config.log' for more details." >&2;}
23562   { (exit 77); exit 77; }; }
23563   else
23564     ac_cv_sizeof_long=0
23565   fi ;;
23566esac
23567else
23568  cat >conftest.$ac_ext <<_ACEOF
23569/* confdefs.h.  */
23570_ACEOF
23571cat confdefs.h >>conftest.$ac_ext
23572cat >>conftest.$ac_ext <<_ACEOF
23573/* end confdefs.h.  */
23574$ac_includes_default
23575   typedef long ac__type_sizeof_;
23576static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23577static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23578#include <stdio.h>
23579#include <stdlib.h>
23580int
23581main ()
23582{
23583
23584  FILE *f = fopen ("conftest.val", "w");
23585  if (! f)
23586    return 1;
23587  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23588    {
23589      long int i = longval ();
23590      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23591	return 1;
23592      fprintf (f, "%ld\n", i);
23593    }
23594  else
23595    {
23596      unsigned long int i = ulongval ();
23597      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23598	return 1;
23599      fprintf (f, "%lu\n", i);
23600    }
23601  return ferror (f) || fclose (f) != 0;
23602
23603  ;
23604  return 0;
23605}
23606_ACEOF
23607rm -f conftest$ac_exeext
23608if { (ac_try="$ac_link"
23609case "(($ac_try" in
23610  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23611  *) ac_try_echo=$ac_try;;
23612esac
23613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23614  (eval "$ac_link") 2>&5
23615  ac_status=$?
23616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23618  { (case "(($ac_try" in
23619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23620  *) ac_try_echo=$ac_try;;
23621esac
23622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23623  (eval "$ac_try") 2>&5
23624  ac_status=$?
23625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626  (exit $ac_status); }; }; then
23627  ac_cv_sizeof_long=`cat conftest.val`
23628else
23629  echo "$as_me: program exited with status $ac_status" >&5
23630echo "$as_me: failed program was:" >&5
23631sed 's/^/| /' conftest.$ac_ext >&5
23632
23633( exit $ac_status )
23634if test "$ac_cv_type_long" = yes; then
23635     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23636See \`config.log' for more details." >&5
23637echo "$as_me: error: cannot compute sizeof (long)
23638See \`config.log' for more details." >&2;}
23639   { (exit 77); exit 77; }; }
23640   else
23641     ac_cv_sizeof_long=0
23642   fi
23643fi
23644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23645fi
23646rm -f conftest.val
23647fi
23648{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
23649echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
23650
23651
23652
23653cat >>confdefs.h <<_ACEOF
23654#define SIZEOF_LONG $ac_cv_sizeof_long
23655_ACEOF
23656
23657
23658{ echo "$as_me:$LINENO: checking for long long" >&5
23659echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23660if test "${ac_cv_type_long_long+set}" = set; then
23661  echo $ECHO_N "(cached) $ECHO_C" >&6
23662else
23663  cat >conftest.$ac_ext <<_ACEOF
23664/* confdefs.h.  */
23665_ACEOF
23666cat confdefs.h >>conftest.$ac_ext
23667cat >>conftest.$ac_ext <<_ACEOF
23668/* end confdefs.h.  */
23669$ac_includes_default
23670typedef long long ac__type_new_;
23671int
23672main ()
23673{
23674if ((ac__type_new_ *) 0)
23675  return 0;
23676if (sizeof (ac__type_new_))
23677  return 0;
23678  ;
23679  return 0;
23680}
23681_ACEOF
23682rm -f conftest.$ac_objext
23683if { (ac_try="$ac_compile"
23684case "(($ac_try" in
23685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23686  *) ac_try_echo=$ac_try;;
23687esac
23688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23689  (eval "$ac_compile") 2>conftest.er1
23690  ac_status=$?
23691  grep -v '^ *+' conftest.er1 >conftest.err
23692  rm -f conftest.er1
23693  cat conftest.err >&5
23694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695  (exit $ac_status); } && {
23696	 test -z "$ac_cxx_werror_flag" ||
23697	 test ! -s conftest.err
23698       } && test -s conftest.$ac_objext; then
23699  ac_cv_type_long_long=yes
23700else
23701  echo "$as_me: failed program was:" >&5
23702sed 's/^/| /' conftest.$ac_ext >&5
23703
23704	ac_cv_type_long_long=no
23705fi
23706
23707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23708fi
23709{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23710echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23711
23712# The cast to long int works around a bug in the HP C Compiler
23713# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23714# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23715# This bug is HP SR number 8606223364.
23716{ echo "$as_me:$LINENO: checking size of long long" >&5
23717echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23718if test "${ac_cv_sizeof_long_long+set}" = set; then
23719  echo $ECHO_N "(cached) $ECHO_C" >&6
23720else
23721  if test "$cross_compiling" = yes; then
23722  # Depending upon the size, compute the lo and hi bounds.
23723cat >conftest.$ac_ext <<_ACEOF
23724/* confdefs.h.  */
23725_ACEOF
23726cat confdefs.h >>conftest.$ac_ext
23727cat >>conftest.$ac_ext <<_ACEOF
23728/* end confdefs.h.  */
23729$ac_includes_default
23730   typedef long long ac__type_sizeof_;
23731int
23732main ()
23733{
23734static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23735test_array [0] = 0
23736
23737  ;
23738  return 0;
23739}
23740_ACEOF
23741rm -f conftest.$ac_objext
23742if { (ac_try="$ac_compile"
23743case "(($ac_try" in
23744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23745  *) ac_try_echo=$ac_try;;
23746esac
23747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23748  (eval "$ac_compile") 2>conftest.er1
23749  ac_status=$?
23750  grep -v '^ *+' conftest.er1 >conftest.err
23751  rm -f conftest.er1
23752  cat conftest.err >&5
23753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754  (exit $ac_status); } && {
23755	 test -z "$ac_cxx_werror_flag" ||
23756	 test ! -s conftest.err
23757       } && test -s conftest.$ac_objext; then
23758  ac_lo=0 ac_mid=0
23759  while :; do
23760    cat >conftest.$ac_ext <<_ACEOF
23761/* confdefs.h.  */
23762_ACEOF
23763cat confdefs.h >>conftest.$ac_ext
23764cat >>conftest.$ac_ext <<_ACEOF
23765/* end confdefs.h.  */
23766$ac_includes_default
23767   typedef long long ac__type_sizeof_;
23768int
23769main ()
23770{
23771static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23772test_array [0] = 0
23773
23774  ;
23775  return 0;
23776}
23777_ACEOF
23778rm -f conftest.$ac_objext
23779if { (ac_try="$ac_compile"
23780case "(($ac_try" in
23781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782  *) ac_try_echo=$ac_try;;
23783esac
23784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785  (eval "$ac_compile") 2>conftest.er1
23786  ac_status=$?
23787  grep -v '^ *+' conftest.er1 >conftest.err
23788  rm -f conftest.er1
23789  cat conftest.err >&5
23790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791  (exit $ac_status); } && {
23792	 test -z "$ac_cxx_werror_flag" ||
23793	 test ! -s conftest.err
23794       } && test -s conftest.$ac_objext; then
23795  ac_hi=$ac_mid; break
23796else
23797  echo "$as_me: failed program was:" >&5
23798sed 's/^/| /' conftest.$ac_ext >&5
23799
23800	ac_lo=`expr $ac_mid + 1`
23801			if test $ac_lo -le $ac_mid; then
23802			  ac_lo= ac_hi=
23803			  break
23804			fi
23805			ac_mid=`expr 2 '*' $ac_mid + 1`
23806fi
23807
23808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23809  done
23810else
23811  echo "$as_me: failed program was:" >&5
23812sed 's/^/| /' conftest.$ac_ext >&5
23813
23814	cat >conftest.$ac_ext <<_ACEOF
23815/* confdefs.h.  */
23816_ACEOF
23817cat confdefs.h >>conftest.$ac_ext
23818cat >>conftest.$ac_ext <<_ACEOF
23819/* end confdefs.h.  */
23820$ac_includes_default
23821   typedef long long ac__type_sizeof_;
23822int
23823main ()
23824{
23825static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23826test_array [0] = 0
23827
23828  ;
23829  return 0;
23830}
23831_ACEOF
23832rm -f conftest.$ac_objext
23833if { (ac_try="$ac_compile"
23834case "(($ac_try" in
23835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23836  *) ac_try_echo=$ac_try;;
23837esac
23838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23839  (eval "$ac_compile") 2>conftest.er1
23840  ac_status=$?
23841  grep -v '^ *+' conftest.er1 >conftest.err
23842  rm -f conftest.er1
23843  cat conftest.err >&5
23844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845  (exit $ac_status); } && {
23846	 test -z "$ac_cxx_werror_flag" ||
23847	 test ! -s conftest.err
23848       } && test -s conftest.$ac_objext; then
23849  ac_hi=-1 ac_mid=-1
23850  while :; do
23851    cat >conftest.$ac_ext <<_ACEOF
23852/* confdefs.h.  */
23853_ACEOF
23854cat confdefs.h >>conftest.$ac_ext
23855cat >>conftest.$ac_ext <<_ACEOF
23856/* end confdefs.h.  */
23857$ac_includes_default
23858   typedef long long ac__type_sizeof_;
23859int
23860main ()
23861{
23862static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23863test_array [0] = 0
23864
23865  ;
23866  return 0;
23867}
23868_ACEOF
23869rm -f conftest.$ac_objext
23870if { (ac_try="$ac_compile"
23871case "(($ac_try" in
23872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23873  *) ac_try_echo=$ac_try;;
23874esac
23875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23876  (eval "$ac_compile") 2>conftest.er1
23877  ac_status=$?
23878  grep -v '^ *+' conftest.er1 >conftest.err
23879  rm -f conftest.er1
23880  cat conftest.err >&5
23881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882  (exit $ac_status); } && {
23883	 test -z "$ac_cxx_werror_flag" ||
23884	 test ! -s conftest.err
23885       } && test -s conftest.$ac_objext; then
23886  ac_lo=$ac_mid; break
23887else
23888  echo "$as_me: failed program was:" >&5
23889sed 's/^/| /' conftest.$ac_ext >&5
23890
23891	ac_hi=`expr '(' $ac_mid ')' - 1`
23892			if test $ac_mid -le $ac_hi; then
23893			  ac_lo= ac_hi=
23894			  break
23895			fi
23896			ac_mid=`expr 2 '*' $ac_mid`
23897fi
23898
23899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23900  done
23901else
23902  echo "$as_me: failed program was:" >&5
23903sed 's/^/| /' conftest.$ac_ext >&5
23904
23905	ac_lo= ac_hi=
23906fi
23907
23908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23909fi
23910
23911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23912# Binary search between lo and hi bounds.
23913while test "x$ac_lo" != "x$ac_hi"; do
23914  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23915  cat >conftest.$ac_ext <<_ACEOF
23916/* confdefs.h.  */
23917_ACEOF
23918cat confdefs.h >>conftest.$ac_ext
23919cat >>conftest.$ac_ext <<_ACEOF
23920/* end confdefs.h.  */
23921$ac_includes_default
23922   typedef long long ac__type_sizeof_;
23923int
23924main ()
23925{
23926static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23927test_array [0] = 0
23928
23929  ;
23930  return 0;
23931}
23932_ACEOF
23933rm -f conftest.$ac_objext
23934if { (ac_try="$ac_compile"
23935case "(($ac_try" in
23936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23937  *) ac_try_echo=$ac_try;;
23938esac
23939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23940  (eval "$ac_compile") 2>conftest.er1
23941  ac_status=$?
23942  grep -v '^ *+' conftest.er1 >conftest.err
23943  rm -f conftest.er1
23944  cat conftest.err >&5
23945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946  (exit $ac_status); } && {
23947	 test -z "$ac_cxx_werror_flag" ||
23948	 test ! -s conftest.err
23949       } && test -s conftest.$ac_objext; then
23950  ac_hi=$ac_mid
23951else
23952  echo "$as_me: failed program was:" >&5
23953sed 's/^/| /' conftest.$ac_ext >&5
23954
23955	ac_lo=`expr '(' $ac_mid ')' + 1`
23956fi
23957
23958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23959done
23960case $ac_lo in
23961?*) ac_cv_sizeof_long_long=$ac_lo;;
23962'') if test "$ac_cv_type_long_long" = yes; then
23963     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
23964See \`config.log' for more details." >&5
23965echo "$as_me: error: cannot compute sizeof (long long)
23966See \`config.log' for more details." >&2;}
23967   { (exit 77); exit 77; }; }
23968   else
23969     ac_cv_sizeof_long_long=0
23970   fi ;;
23971esac
23972else
23973  cat >conftest.$ac_ext <<_ACEOF
23974/* confdefs.h.  */
23975_ACEOF
23976cat confdefs.h >>conftest.$ac_ext
23977cat >>conftest.$ac_ext <<_ACEOF
23978/* end confdefs.h.  */
23979$ac_includes_default
23980   typedef long long ac__type_sizeof_;
23981static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23982static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23983#include <stdio.h>
23984#include <stdlib.h>
23985int
23986main ()
23987{
23988
23989  FILE *f = fopen ("conftest.val", "w");
23990  if (! f)
23991    return 1;
23992  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23993    {
23994      long int i = longval ();
23995      if (i != ((long int) (sizeof (ac__type_sizeof_))))
23996	return 1;
23997      fprintf (f, "%ld\n", i);
23998    }
23999  else
24000    {
24001      unsigned long int i = ulongval ();
24002      if (i != ((long int) (sizeof (ac__type_sizeof_))))
24003	return 1;
24004      fprintf (f, "%lu\n", i);
24005    }
24006  return ferror (f) || fclose (f) != 0;
24007
24008  ;
24009  return 0;
24010}
24011_ACEOF
24012rm -f conftest$ac_exeext
24013if { (ac_try="$ac_link"
24014case "(($ac_try" in
24015  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24016  *) ac_try_echo=$ac_try;;
24017esac
24018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24019  (eval "$ac_link") 2>&5
24020  ac_status=$?
24021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24023  { (case "(($ac_try" in
24024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24025  *) ac_try_echo=$ac_try;;
24026esac
24027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24028  (eval "$ac_try") 2>&5
24029  ac_status=$?
24030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031  (exit $ac_status); }; }; then
24032  ac_cv_sizeof_long_long=`cat conftest.val`
24033else
24034  echo "$as_me: program exited with status $ac_status" >&5
24035echo "$as_me: failed program was:" >&5
24036sed 's/^/| /' conftest.$ac_ext >&5
24037
24038( exit $ac_status )
24039if test "$ac_cv_type_long_long" = yes; then
24040     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24041See \`config.log' for more details." >&5
24042echo "$as_me: error: cannot compute sizeof (long long)
24043See \`config.log' for more details." >&2;}
24044   { (exit 77); exit 77; }; }
24045   else
24046     ac_cv_sizeof_long_long=0
24047   fi
24048fi
24049rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24050fi
24051rm -f conftest.val
24052fi
24053{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24054echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24055
24056
24057
24058cat >>confdefs.h <<_ACEOF
24059#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24060_ACEOF
24061
24062
24063
24064LIBREADLINE=""
24065
24066{ echo "$as_me:$LINENO: checking whether to build isql++" >&5
24067echo $ECHO_N "checking whether to build isql++... $ECHO_C" >&6; }
24068
24069
24070# Check whether --with-isqlxx was given.
24071if test "${with_isqlxx+set}" = set; then
24072  withval=$with_isqlxx; with_isqlxx=yes
24073else
24074  with_isqlxx=no
24075fi
24076
24077
24078{ echo "$as_me:$LINENO: result: $with_isqlxx" >&5
24079echo "${ECHO_T}$with_isqlxx" >&6; }
24080
24081if test "x$with_isqlxx" = xyes
24082then
24083
24084# check for readline
24085
24086
24087for ac_header in readline/readline.h readline/history.h
24088do
24089as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24090if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24091  { echo "$as_me:$LINENO: checking for $ac_header" >&5
24092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24094  echo $ECHO_N "(cached) $ECHO_C" >&6
24095fi
24096ac_res=`eval echo '${'$as_ac_Header'}'`
24097	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24098echo "${ECHO_T}$ac_res" >&6; }
24099else
24100  # Is the header compilable?
24101{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24102echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24103cat >conftest.$ac_ext <<_ACEOF
24104/* confdefs.h.  */
24105_ACEOF
24106cat confdefs.h >>conftest.$ac_ext
24107cat >>conftest.$ac_ext <<_ACEOF
24108/* end confdefs.h.  */
24109$ac_includes_default
24110#include <$ac_header>
24111_ACEOF
24112rm -f conftest.$ac_objext
24113if { (ac_try="$ac_compile"
24114case "(($ac_try" in
24115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24116  *) ac_try_echo=$ac_try;;
24117esac
24118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24119  (eval "$ac_compile") 2>conftest.er1
24120  ac_status=$?
24121  grep -v '^ *+' conftest.er1 >conftest.err
24122  rm -f conftest.er1
24123  cat conftest.err >&5
24124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125  (exit $ac_status); } && {
24126	 test -z "$ac_cxx_werror_flag" ||
24127	 test ! -s conftest.err
24128       } && test -s conftest.$ac_objext; then
24129  ac_header_compiler=yes
24130else
24131  echo "$as_me: failed program was:" >&5
24132sed 's/^/| /' conftest.$ac_ext >&5
24133
24134	ac_header_compiler=no
24135fi
24136
24137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24138{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24139echo "${ECHO_T}$ac_header_compiler" >&6; }
24140
24141# Is the header present?
24142{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24143echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24144cat >conftest.$ac_ext <<_ACEOF
24145/* confdefs.h.  */
24146_ACEOF
24147cat confdefs.h >>conftest.$ac_ext
24148cat >>conftest.$ac_ext <<_ACEOF
24149/* end confdefs.h.  */
24150#include <$ac_header>
24151_ACEOF
24152if { (ac_try="$ac_cpp conftest.$ac_ext"
24153case "(($ac_try" in
24154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155  *) ac_try_echo=$ac_try;;
24156esac
24157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24158  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24159  ac_status=$?
24160  grep -v '^ *+' conftest.er1 >conftest.err
24161  rm -f conftest.er1
24162  cat conftest.err >&5
24163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164  (exit $ac_status); } >/dev/null && {
24165	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
24166	 test ! -s conftest.err
24167       }; then
24168  ac_header_preproc=yes
24169else
24170  echo "$as_me: failed program was:" >&5
24171sed 's/^/| /' conftest.$ac_ext >&5
24172
24173  ac_header_preproc=no
24174fi
24175
24176rm -f conftest.err conftest.$ac_ext
24177{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24178echo "${ECHO_T}$ac_header_preproc" >&6; }
24179
24180# So?  What about this header?
24181case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24182  yes:no: )
24183    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24184echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24185    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24186echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24187    ac_header_preproc=yes
24188    ;;
24189  no:yes:* )
24190    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24191echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24192    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24193echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24194    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24195echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24196    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24197echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24198    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24199echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24200    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24201echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24202    ( cat <<\_ASBOX
24203## ---------------------------------------------------- ##
24204## Report this to libodbcxx-devel@lists.sourceforge.net ##
24205## ---------------------------------------------------- ##
24206_ASBOX
24207     ) | sed "s/^/$as_me: WARNING:     /" >&2
24208    ;;
24209esac
24210{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24213  echo $ECHO_N "(cached) $ECHO_C" >&6
24214else
24215  eval "$as_ac_Header=\$ac_header_preproc"
24216fi
24217ac_res=`eval echo '${'$as_ac_Header'}'`
24218	       { echo "$as_me:$LINENO: result: $ac_res" >&5
24219echo "${ECHO_T}$ac_res" >&6; }
24220
24221fi
24222if test `eval echo '${'$as_ac_Header'}'` = yes; then
24223  cat >>confdefs.h <<_ACEOF
24224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24225_ACEOF
24226 readline_ok=yes
24227else
24228  readline_ok=no; break
24229fi
24230
24231done
24232
24233
24234# check for libreadline and libtermcap
24235if test "x$readline_ok" = "xyes"
24236then
24237	{ echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
24238echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
24239if test "${ac_cv_lib_readline_readline+set}" = set; then
24240  echo $ECHO_N "(cached) $ECHO_C" >&6
24241else
24242  ac_check_lib_save_LIBS=$LIBS
24243LIBS="-lreadline -lncurses $LIBS"
24244cat >conftest.$ac_ext <<_ACEOF
24245/* confdefs.h.  */
24246_ACEOF
24247cat confdefs.h >>conftest.$ac_ext
24248cat >>conftest.$ac_ext <<_ACEOF
24249/* end confdefs.h.  */
24250
24251/* Override any GCC internal prototype to avoid an error.
24252   Use char because int might match the return type of a GCC
24253   builtin and then its argument prototype would still apply.  */
24254#ifdef __cplusplus
24255extern "C"
24256#endif
24257char readline ();
24258int
24259main ()
24260{
24261return readline ();
24262  ;
24263  return 0;
24264}
24265_ACEOF
24266rm -f conftest.$ac_objext conftest$ac_exeext
24267if { (ac_try="$ac_link"
24268case "(($ac_try" in
24269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24270  *) ac_try_echo=$ac_try;;
24271esac
24272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24273  (eval "$ac_link") 2>conftest.er1
24274  ac_status=$?
24275  grep -v '^ *+' conftest.er1 >conftest.err
24276  rm -f conftest.er1
24277  cat conftest.err >&5
24278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279  (exit $ac_status); } && {
24280	 test -z "$ac_cxx_werror_flag" ||
24281	 test ! -s conftest.err
24282       } && test -s conftest$ac_exeext &&
24283       $as_test_x conftest$ac_exeext; then
24284  ac_cv_lib_readline_readline=yes
24285else
24286  echo "$as_me: failed program was:" >&5
24287sed 's/^/| /' conftest.$ac_ext >&5
24288
24289	ac_cv_lib_readline_readline=no
24290fi
24291
24292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24293      conftest$ac_exeext conftest.$ac_ext
24294LIBS=$ac_check_lib_save_LIBS
24295fi
24296{ echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
24297echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
24298if test $ac_cv_lib_readline_readline = yes; then
24299  readline_ok=yes
24300else
24301  readline_ok=no
24302fi
24303
24304	if test "x$readline_ok" = "xyes"
24305	then
24306		LIBREADLINE="-lreadline -lncurses"
24307	else
24308		readline_ok=no
24309	fi
24310fi
24311
24312if test "x$readline_ok" != "xyes"
24313then
24314	with_isqlxx=no
24315fi
24316
24317fi
24318
24319
24320
24321# set up our include paths
24322INCLUDES="-I\$(top_srcdir)/include -I\$(top_builddir)/include $INCLUDES"
24323
24324
24325# Extract the first word of "doxygen", so it can be a program name with args.
24326set dummy doxygen; ac_word=$2
24327{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24329if test "${ac_cv_path_doxygen+set}" = set; then
24330  echo $ECHO_N "(cached) $ECHO_C" >&6
24331else
24332  case $doxygen in
24333  [\\/]* | ?:[\\/]*)
24334  ac_cv_path_doxygen="$doxygen" # Let the user override the test with a path.
24335  ;;
24336  *)
24337  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24338for as_dir in $PATH
24339do
24340  IFS=$as_save_IFS
24341  test -z "$as_dir" && as_dir=.
24342  for ac_exec_ext in '' $ac_executable_extensions; do
24343  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24344    ac_cv_path_doxygen="$as_dir/$ac_word$ac_exec_ext"
24345    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24346    break 2
24347  fi
24348done
24349done
24350IFS=$as_save_IFS
24351
24352  ;;
24353esac
24354fi
24355doxygen=$ac_cv_path_doxygen
24356if test -n "$doxygen"; then
24357  { echo "$as_me:$LINENO: result: $doxygen" >&5
24358echo "${ECHO_T}$doxygen" >&6; }
24359else
24360  { echo "$as_me:$LINENO: result: no" >&5
24361echo "${ECHO_T}no" >&6; }
24362fi
24363
24364
24365# Extract the first word of "perl", so it can be a program name with args.
24366set dummy perl; ac_word=$2
24367{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24369if test "${ac_cv_path_perl+set}" = set; then
24370  echo $ECHO_N "(cached) $ECHO_C" >&6
24371else
24372  case $perl in
24373  [\\/]* | ?:[\\/]*)
24374  ac_cv_path_perl="$perl" # Let the user override the test with a path.
24375  ;;
24376  *)
24377  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24378for as_dir in $PATH
24379do
24380  IFS=$as_save_IFS
24381  test -z "$as_dir" && as_dir=.
24382  for ac_exec_ext in '' $ac_executable_extensions; do
24383  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24384    ac_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
24385    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24386    break 2
24387  fi
24388done
24389done
24390IFS=$as_save_IFS
24391
24392  ;;
24393esac
24394fi
24395perl=$ac_cv_path_perl
24396if test -n "$perl"; then
24397  { echo "$as_me:$LINENO: result: $perl" >&5
24398echo "${ECHO_T}$perl" >&6; }
24399else
24400  { echo "$as_me:$LINENO: result: no" >&5
24401echo "${ECHO_T}no" >&6; }
24402fi
24403
24404
24405
24406if test "x$perl" = x
24407then
24408	doxygen=""
24409fi
24410
24411# Extract the first word of "db2html", so it can be a program name with args.
24412set dummy db2html; ac_word=$2
24413{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24415if test "${ac_cv_path_db2html+set}" = set; then
24416  echo $ECHO_N "(cached) $ECHO_C" >&6
24417else
24418  case $db2html in
24419  [\\/]* | ?:[\\/]*)
24420  ac_cv_path_db2html="$db2html" # Let the user override the test with a path.
24421  ;;
24422  *)
24423  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24424for as_dir in $PATH
24425do
24426  IFS=$as_save_IFS
24427  test -z "$as_dir" && as_dir=.
24428  for ac_exec_ext in '' $ac_executable_extensions; do
24429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24430    ac_cv_path_db2html="$as_dir/$ac_word$ac_exec_ext"
24431    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24432    break 2
24433  fi
24434done
24435done
24436IFS=$as_save_IFS
24437
24438  ;;
24439esac
24440fi
24441db2html=$ac_cv_path_db2html
24442if test -n "$db2html"; then
24443  { echo "$as_me:$LINENO: result: $db2html" >&5
24444echo "${ECHO_T}$db2html" >&6; }
24445else
24446  { echo "$as_me:$LINENO: result: no" >&5
24447echo "${ECHO_T}no" >&6; }
24448fi
24449
24450
24451# Extract the first word of "zip", so it can be a program name with args.
24452set dummy zip; ac_word=$2
24453{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24455if test "${ac_cv_path_zip+set}" = set; then
24456  echo $ECHO_N "(cached) $ECHO_C" >&6
24457else
24458  case $zip in
24459  [\\/]* | ?:[\\/]*)
24460  ac_cv_path_zip="$zip" # Let the user override the test with a path.
24461  ;;
24462  *)
24463  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24464for as_dir in $PATH
24465do
24466  IFS=$as_save_IFS
24467  test -z "$as_dir" && as_dir=.
24468  for ac_exec_ext in '' $ac_executable_extensions; do
24469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24470    ac_cv_path_zip="$as_dir/$ac_word$ac_exec_ext"
24471    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24472    break 2
24473  fi
24474done
24475done
24476IFS=$as_save_IFS
24477
24478  ;;
24479esac
24480fi
24481zip=$ac_cv_path_zip
24482if test -n "$zip"; then
24483  { echo "$as_me:$LINENO: result: $zip" >&5
24484echo "${ECHO_T}$zip" >&6; }
24485else
24486  { echo "$as_me:$LINENO: result: no" >&5
24487echo "${ECHO_T}no" >&6; }
24488fi
24489
24490
24491# Extract the first word of "bzip2", so it can be a program name with args.
24492set dummy bzip2; ac_word=$2
24493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
24494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24495if test "${ac_cv_path_bzip2+set}" = set; then
24496  echo $ECHO_N "(cached) $ECHO_C" >&6
24497else
24498  case $bzip2 in
24499  [\\/]* | ?:[\\/]*)
24500  ac_cv_path_bzip2="$bzip2" # Let the user override the test with a path.
24501  ;;
24502  *)
24503  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24504for as_dir in $PATH
24505do
24506  IFS=$as_save_IFS
24507  test -z "$as_dir" && as_dir=.
24508  for ac_exec_ext in '' $ac_executable_extensions; do
24509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24510    ac_cv_path_bzip2="$as_dir/$ac_word$ac_exec_ext"
24511    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24512    break 2
24513  fi
24514done
24515done
24516IFS=$as_save_IFS
24517
24518  ;;
24519esac
24520fi
24521bzip2=$ac_cv_path_bzip2
24522if test -n "$bzip2"; then
24523  { echo "$as_me:$LINENO: result: $bzip2" >&5
24524echo "${ECHO_T}$bzip2" >&6; }
24525else
24526  { echo "$as_me:$LINENO: result: no" >&5
24527echo "${ECHO_T}no" >&6; }
24528fi
24529
24530
24531
24532
24533
24534
24535
24536
24537# Unicode flag
24538
24539# Check whether --with-unicode was given.
24540if test "${with_unicode+set}" = set; then
24541  withval=$with_unicode;
24542if test "x$withval" != "xno"
24543then
24544        enable_unicode=yes
24545fi
24546
24547else
24548  enable_unicode=no
24549fi
24550
24551
24552# qt specific stuff
24553enable_qt=no
24554qt_prefix=/usr/local/qt
24555
24556
24557# Check whether --with-qt was given.
24558if test "${with_qt+set}" = set; then
24559  withval=$with_qt;
24560if test "x$withval" != "xno"
24561then
24562enable_qt=yes
24563if test "x$withval" = "xyes"
24564then
24565	if test "x$QTDIR" != "x"
24566	then
24567		qt_prefix="$QTDIR"
24568	fi
24569else
24570	qt_prefix="$withval"
24571fi
24572fi
24573
24574fi
24575
24576
24577if test "x$enable_qt" = "xyes"
24578then
24579
24580qt_includes="$qt_prefix/include"
24581
24582# Check whether --with-qt-includes was given.
24583if test "${with_qt_includes+set}" = set; then
24584  withval=$with_qt_includes;
24585if test "x$withval" != "xyes"
24586then
24587	qt_includes="$withval"
24588fi
24589
24590fi
24591
24592
24593qt_libs="$qt_prefix/lib"
24594
24595# Check whether --with-qt-libs was given.
24596if test "${with_qt_libs+set}" = set; then
24597  withval=$with_qt_libs;
24598if test "x$withval" != "xyes"
24599then
24600	qt_libs="$withval"
24601fi
24602
24603fi
24604
24605
24606qt_moc="$qt_prefix/bin/moc"
24607
24608# Check whether --with-moc was given.
24609if test "${with_moc+set}" = set; then
24610  withval=$with_moc;
24611if test "x$withval" != "xyes"
24612then
24613	qt_moc="$withval"
24614fi
24615
24616fi
24617
24618fi
24619
24620
24621# Check whether --with-qtsqlxx was given.
24622if test "${with_qtsqlxx+set}" = set; then
24623  withval=$with_qtsqlxx;
24624if test "x$withval" != "xno"
24625then
24626	with_qtsqlxx=yes
24627fi
24628
24629else
24630  with_qtsqlxx=no
24631fi
24632
24633
24634
24635{ echo "$as_me:$LINENO: checking whether Unicode support should be enabled" >&5
24636echo $ECHO_N "checking whether Unicode support should be enabled... $ECHO_C" >&6; }
24637if test "x$enable_unicode" = "xyes"
24638then
24639	{ echo "$as_me:$LINENO: result: yes" >&5
24640echo "${ECHO_T}yes" >&6; }
24641	enable_qt=no
24642        with_qtsqlxx=no
24643        UNICODE_DEFS="-DODBCXX_UNICODE"
24644else
24645	{ echo "$as_me:$LINENO: result: no" >&5
24646echo "${ECHO_T}no" >&6; }
24647fi
24648
24649{ echo "$as_me:$LINENO: checking whether QT support should be enabled" >&5
24650echo $ECHO_N "checking whether QT support should be enabled... $ECHO_C" >&6; }
24651if test "x$enable_qt" = "xyes"
24652then
24653	{ echo "$as_me:$LINENO: result: yes" >&5
24654echo "${ECHO_T}yes" >&6; }
24655	QT_INCLUDES="-I$qt_includes"
24656
24657	if test "x$enable_threads" = "xyes"
24658	then
24659		QT_LIBS="-lqt-mt"
24660		QT_DEFS="-DODBCXX_QT -DQT_THREAD_SUPPORT"
24661	else
24662		QT_LIBS="-lqt"
24663		QT_DEFS="-DODBCXX_QT"
24664	fi
24665
24666	QT_MOC="$qt_moc"
24667	if test "$qt_libs" != "/usr/lib"
24668	then
24669		QT_LIBS="-L$qt_libs $QT_LIBS"
24670	fi
24671
24672	{ echo "$as_me:$LINENO: checking whehter qtsql++ should be built" >&5
24673echo $ECHO_N "checking whehter qtsql++ should be built... $ECHO_C" >&6; }
24674	{ echo "$as_me:$LINENO: result: $with_qtsqlxx" >&5
24675echo "${ECHO_T}$with_qtsqlxx" >&6; }
24676else
24677	with_qtsqlxx=no
24678	{ echo "$as_me:$LINENO: result: no" >&5
24679echo "${ECHO_T}no" >&6; }
24680fi
24681
24682
24683
24684 if test x$with_qtsqlxx = xyes; then
24685  BUILD_QTSQLXX_TRUE=
24686  BUILD_QTSQLXX_FALSE='#'
24687else
24688  BUILD_QTSQLXX_TRUE='#'
24689  BUILD_QTSQLXX_FALSE=
24690fi
24691
24692
24693
24694
24695
24696
24697
24698 if test x$enable_qt = xyes; then
24699  QT_TRUE=
24700  QT_FALSE='#'
24701else
24702  QT_TRUE='#'
24703  QT_FALSE=
24704fi
24705
24706
24707# isql++ can't be built in qt mode
24708if test x$enable_qt = xyes
24709then
24710	with_isqlxx=no
24711fi
24712
24713 if test x$with_isqlxx = xyes; then
24714  BUILD_ISQLXX_TRUE=
24715  BUILD_ISQLXX_FALSE='#'
24716else
24717  BUILD_ISQLXX_TRUE='#'
24718  BUILD_ISQLXX_FALSE=
24719fi
24720
24721
24722
24723# Check whether --with-tests was given.
24724if test "${with_tests+set}" = set; then
24725  withval=$with_tests;
24726if test "x$withval" = "xno"
24727then
24728	with_tests=no
24729else
24730	with_tests=yes
24731fi
24732
24733else
24734  with_tests=yes
24735fi
24736
24737
24738{ echo "$as_me:$LINENO: checking whether to build test programs" >&5
24739echo $ECHO_N "checking whether to build test programs... $ECHO_C" >&6; }
24740{ echo "$as_me:$LINENO: result: $with_tests" >&5
24741echo "${ECHO_T}$with_tests" >&6; }
24742
24743 if test x$with_tests = xyes; then
24744  BUILD_TESTS_TRUE=
24745  BUILD_TESTS_FALSE='#'
24746else
24747  BUILD_TESTS_TRUE='#'
24748  BUILD_TESTS_FALSE=
24749fi
24750
24751
24752# finally, add our we-are-in-the-library flag
24753CXXFLAGS="-DIN_ODBCXX $CXXFLAGS"
24754
24755
24756ac_config_files="$ac_config_files Makefile include/Makefile include/odbc++/Makefile src/Makefile tests/Makefile isql++/Makefile qtsql++/Makefile doc/Makefile doc/progref/Makefile win32/Makefile win32/tests/Makefile libodbc++.spec libodbc++.pc"
24757
24758cat >confcache <<\_ACEOF
24759# This file is a shell script that caches the results of configure
24760# tests run on this system so they can be shared between configure
24761# scripts and configure runs, see configure's option --config-cache.
24762# It is not useful on other systems.  If it contains results you don't
24763# want to keep, you may remove or edit it.
24764#
24765# config.status only pays attention to the cache file if you give it
24766# the --recheck option to rerun configure.
24767#
24768# `ac_cv_env_foo' variables (set or unset) will be overridden when
24769# loading this file, other *unset* `ac_cv_foo' will be assigned the
24770# following values.
24771
24772_ACEOF
24773
24774# The following way of writing the cache mishandles newlines in values,
24775# but we know of no workaround that is simple, portable, and efficient.
24776# So, we kill variables containing newlines.
24777# Ultrix sh set writes to stderr and can't be redirected directly,
24778# and sets the high bit in the cache file unless we assign to the vars.
24779(
24780  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24781    eval ac_val=\$$ac_var
24782    case $ac_val in #(
24783    *${as_nl}*)
24784      case $ac_var in #(
24785      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24786echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24787      esac
24788      case $ac_var in #(
24789      _ | IFS | as_nl) ;; #(
24790      *) $as_unset $ac_var ;;
24791      esac ;;
24792    esac
24793  done
24794
24795  (set) 2>&1 |
24796    case $as_nl`(ac_space=' '; set) 2>&1` in #(
24797    *${as_nl}ac_space=\ *)
24798      # `set' does not quote correctly, so add quotes (double-quote
24799      # substitution turns \\\\ into \\, and sed turns \\ into \).
24800      sed -n \
24801	"s/'/'\\\\''/g;
24802	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24803      ;; #(
24804    *)
24805      # `set' quotes correctly as required by POSIX, so do not add quotes.
24806      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24807      ;;
24808    esac |
24809    sort
24810) |
24811  sed '
24812     /^ac_cv_env_/b end
24813     t clear
24814     :clear
24815     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24816     t end
24817     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24818     :end' >>confcache
24819if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24820  if test -w "$cache_file"; then
24821    test "x$cache_file" != "x/dev/null" &&
24822      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24823echo "$as_me: updating cache $cache_file" >&6;}
24824    cat confcache >$cache_file
24825  else
24826    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24827echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24828  fi
24829fi
24830rm -f confcache
24831
24832test "x$prefix" = xNONE && prefix=$ac_default_prefix
24833# Let make expand exec_prefix.
24834test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24835
24836DEFS=-DHAVE_CONFIG_H
24837
24838ac_libobjs=
24839ac_ltlibobjs=
24840for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24841  # 1. Remove the extension, and $U if already installed.
24842  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24843  ac_i=`echo "$ac_i" | sed "$ac_script"`
24844  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24845  #    will be set to the directory where LIBOBJS objects are built.
24846  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24847  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24848done
24849LIBOBJS=$ac_libobjs
24850
24851LTLIBOBJS=$ac_ltlibobjs
24852
24853
24854if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24855  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24856Usually this means the macro was only invoked conditionally." >&5
24857echo "$as_me: error: conditional \"AMDEP\" was never defined.
24858Usually this means the macro was only invoked conditionally." >&2;}
24859   { (exit 1); exit 1; }; }
24860fi
24861if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24862  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24863Usually this means the macro was only invoked conditionally." >&5
24864echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24865Usually this means the macro was only invoked conditionally." >&2;}
24866   { (exit 1); exit 1; }; }
24867fi
24868if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24869  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24870Usually this means the macro was only invoked conditionally." >&5
24871echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24872Usually this means the macro was only invoked conditionally." >&2;}
24873   { (exit 1); exit 1; }; }
24874fi
24875if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
24876  { { echo "$as_me:$LINENO: error: conditional \"THREADS\" was never defined.
24877Usually this means the macro was only invoked conditionally." >&5
24878echo "$as_me: error: conditional \"THREADS\" was never defined.
24879Usually this means the macro was only invoked conditionally." >&2;}
24880   { (exit 1); exit 1; }; }
24881fi
24882if test -z "${BUILD_QTSQLXX_TRUE}" && test -z "${BUILD_QTSQLXX_FALSE}"; then
24883  { { echo "$as_me:$LINENO: error: conditional \"BUILD_QTSQLXX\" was never defined.
24884Usually this means the macro was only invoked conditionally." >&5
24885echo "$as_me: error: conditional \"BUILD_QTSQLXX\" was never defined.
24886Usually this means the macro was only invoked conditionally." >&2;}
24887   { (exit 1); exit 1; }; }
24888fi
24889if test -z "${QT_TRUE}" && test -z "${QT_FALSE}"; then
24890  { { echo "$as_me:$LINENO: error: conditional \"QT\" was never defined.
24891Usually this means the macro was only invoked conditionally." >&5
24892echo "$as_me: error: conditional \"QT\" was never defined.
24893Usually this means the macro was only invoked conditionally." >&2;}
24894   { (exit 1); exit 1; }; }
24895fi
24896if test -z "${BUILD_ISQLXX_TRUE}" && test -z "${BUILD_ISQLXX_FALSE}"; then
24897  { { echo "$as_me:$LINENO: error: conditional \"BUILD_ISQLXX\" was never defined.
24898Usually this means the macro was only invoked conditionally." >&5
24899echo "$as_me: error: conditional \"BUILD_ISQLXX\" was never defined.
24900Usually this means the macro was only invoked conditionally." >&2;}
24901   { (exit 1); exit 1; }; }
24902fi
24903if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
24904  { { echo "$as_me:$LINENO: error: conditional \"BUILD_TESTS\" was never defined.
24905Usually this means the macro was only invoked conditionally." >&5
24906echo "$as_me: error: conditional \"BUILD_TESTS\" was never defined.
24907Usually this means the macro was only invoked conditionally." >&2;}
24908   { (exit 1); exit 1; }; }
24909fi
24910
24911: ${CONFIG_STATUS=./config.status}
24912ac_clean_files_save=$ac_clean_files
24913ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24914{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24915echo "$as_me: creating $CONFIG_STATUS" >&6;}
24916cat >$CONFIG_STATUS <<_ACEOF
24917#! $SHELL
24918# Generated by $as_me.
24919# Run this file to recreate the current configuration.
24920# Compiler output produced by configure, useful for debugging
24921# configure, is in config.log if it exists.
24922
24923debug=false
24924ac_cs_recheck=false
24925ac_cs_silent=false
24926SHELL=\${CONFIG_SHELL-$SHELL}
24927_ACEOF
24928
24929cat >>$CONFIG_STATUS <<\_ACEOF
24930## --------------------- ##
24931## M4sh Initialization.  ##
24932## --------------------- ##
24933
24934# Be more Bourne compatible
24935DUALCASE=1; export DUALCASE # for MKS sh
24936if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24937  emulate sh
24938  NULLCMD=:
24939  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24940  # is contrary to our usage.  Disable this feature.
24941  alias -g '${1+"$@"}'='"$@"'
24942  setopt NO_GLOB_SUBST
24943else
24944  case `(set -o) 2>/dev/null` in
24945  *posix*) set -o posix ;;
24946esac
24947
24948fi
24949
24950
24951
24952
24953# PATH needs CR
24954# Avoid depending upon Character Ranges.
24955as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24956as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24957as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24958as_cr_digits='0123456789'
24959as_cr_alnum=$as_cr_Letters$as_cr_digits
24960
24961# The user is always right.
24962if test "${PATH_SEPARATOR+set}" != set; then
24963  echo "#! /bin/sh" >conf$$.sh
24964  echo  "exit 0"   >>conf$$.sh
24965  chmod +x conf$$.sh
24966  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24967    PATH_SEPARATOR=';'
24968  else
24969    PATH_SEPARATOR=:
24970  fi
24971  rm -f conf$$.sh
24972fi
24973
24974# Support unset when possible.
24975if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24976  as_unset=unset
24977else
24978  as_unset=false
24979fi
24980
24981
24982# IFS
24983# We need space, tab and new line, in precisely that order.  Quoting is
24984# there to prevent editors from complaining about space-tab.
24985# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24986# splitting by setting IFS to empty value.)
24987as_nl='
24988'
24989IFS=" ""	$as_nl"
24990
24991# Find who we are.  Look in the path if we contain no directory separator.
24992case $0 in
24993  *[\\/]* ) as_myself=$0 ;;
24994  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24995for as_dir in $PATH
24996do
24997  IFS=$as_save_IFS
24998  test -z "$as_dir" && as_dir=.
24999  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25000done
25001IFS=$as_save_IFS
25002
25003     ;;
25004esac
25005# We did not find ourselves, most probably we were run as `sh COMMAND'
25006# in which case we are not to be found in the path.
25007if test "x$as_myself" = x; then
25008  as_myself=$0
25009fi
25010if test ! -f "$as_myself"; then
25011  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25012  { (exit 1); exit 1; }
25013fi
25014
25015# Work around bugs in pre-3.0 UWIN ksh.
25016for as_var in ENV MAIL MAILPATH
25017do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25018done
25019PS1='$ '
25020PS2='> '
25021PS4='+ '
25022
25023# NLS nuisances.
25024for as_var in \
25025  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25026  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25027  LC_TELEPHONE LC_TIME
25028do
25029  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25030    eval $as_var=C; export $as_var
25031  else
25032    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25033  fi
25034done
25035
25036# Required to use basename.
25037if expr a : '\(a\)' >/dev/null 2>&1 &&
25038   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25039  as_expr=expr
25040else
25041  as_expr=false
25042fi
25043
25044if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25045  as_basename=basename
25046else
25047  as_basename=false
25048fi
25049
25050
25051# Name of the executable.
25052as_me=`$as_basename -- "$0" ||
25053$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25054	 X"$0" : 'X\(//\)$' \| \
25055	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25056echo X/"$0" |
25057    sed '/^.*\/\([^/][^/]*\)\/*$/{
25058	    s//\1/
25059	    q
25060	  }
25061	  /^X\/\(\/\/\)$/{
25062	    s//\1/
25063	    q
25064	  }
25065	  /^X\/\(\/\).*/{
25066	    s//\1/
25067	    q
25068	  }
25069	  s/.*/./; q'`
25070
25071# CDPATH.
25072$as_unset CDPATH
25073
25074
25075
25076  as_lineno_1=$LINENO
25077  as_lineno_2=$LINENO
25078  test "x$as_lineno_1" != "x$as_lineno_2" &&
25079  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25080
25081  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25082  # uniformly replaced by the line number.  The first 'sed' inserts a
25083  # line-number line after each line using $LINENO; the second 'sed'
25084  # does the real work.  The second script uses 'N' to pair each
25085  # line-number line with the line containing $LINENO, and appends
25086  # trailing '-' during substitution so that $LINENO is not a special
25087  # case at line end.
25088  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25089  # scripts with optimization help from Paolo Bonzini.  Blame Lee
25090  # E. McMahon (1931-1989) for sed's syntax.  :-)
25091  sed -n '
25092    p
25093    /[$]LINENO/=
25094  ' <$as_myself |
25095    sed '
25096      s/[$]LINENO.*/&-/
25097      t lineno
25098      b
25099      :lineno
25100      N
25101      :loop
25102      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25103      t loop
25104      s/-\n.*//
25105    ' >$as_me.lineno &&
25106  chmod +x "$as_me.lineno" ||
25107    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25108   { (exit 1); exit 1; }; }
25109
25110  # Don't try to exec as it changes $[0], causing all sort of problems
25111  # (the dirname of $[0] is not the place where we might find the
25112  # original and so on.  Autoconf is especially sensitive to this).
25113  . "./$as_me.lineno"
25114  # Exit status is that of the last command.
25115  exit
25116}
25117
25118
25119if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25120  as_dirname=dirname
25121else
25122  as_dirname=false
25123fi
25124
25125ECHO_C= ECHO_N= ECHO_T=
25126case `echo -n x` in
25127-n*)
25128  case `echo 'x\c'` in
25129  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
25130  *)   ECHO_C='\c';;
25131  esac;;
25132*)
25133  ECHO_N='-n';;
25134esac
25135
25136if expr a : '\(a\)' >/dev/null 2>&1 &&
25137   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25138  as_expr=expr
25139else
25140  as_expr=false
25141fi
25142
25143rm -f conf$$ conf$$.exe conf$$.file
25144if test -d conf$$.dir; then
25145  rm -f conf$$.dir/conf$$.file
25146else
25147  rm -f conf$$.dir
25148  mkdir conf$$.dir
25149fi
25150echo >conf$$.file
25151if ln -s conf$$.file conf$$ 2>/dev/null; then
25152  as_ln_s='ln -s'
25153  # ... but there are two gotchas:
25154  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25155  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25156  # In both cases, we have to default to `cp -p'.
25157  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25158    as_ln_s='cp -p'
25159elif ln conf$$.file conf$$ 2>/dev/null; then
25160  as_ln_s=ln
25161else
25162  as_ln_s='cp -p'
25163fi
25164rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25165rmdir conf$$.dir 2>/dev/null
25166
25167if mkdir -p . 2>/dev/null; then
25168  as_mkdir_p=:
25169else
25170  test -d ./-p && rmdir ./-p
25171  as_mkdir_p=false
25172fi
25173
25174if test -x / >/dev/null 2>&1; then
25175  as_test_x='test -x'
25176else
25177  if ls -dL / >/dev/null 2>&1; then
25178    as_ls_L_option=L
25179  else
25180    as_ls_L_option=
25181  fi
25182  as_test_x='
25183    eval sh -c '\''
25184      if test -d "$1"; then
25185        test -d "$1/.";
25186      else
25187	case $1 in
25188        -*)set "./$1";;
25189	esac;
25190	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25191	???[sx]*):;;*)false;;esac;fi
25192    '\'' sh
25193  '
25194fi
25195as_executable_p=$as_test_x
25196
25197# Sed expression to map a string onto a valid CPP name.
25198as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25199
25200# Sed expression to map a string onto a valid variable name.
25201as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25202
25203
25204exec 6>&1
25205
25206# Save the log message, to keep $[0] and so on meaningful, and to
25207# report actual input values of CONFIG_FILES etc. instead of their
25208# values after options handling.
25209ac_log="
25210This file was extended by libodbcxx $as_me 0.2.5, which was
25211generated by GNU Autoconf 2.61.  Invocation command line was
25212
25213  CONFIG_FILES    = $CONFIG_FILES
25214  CONFIG_HEADERS  = $CONFIG_HEADERS
25215  CONFIG_LINKS    = $CONFIG_LINKS
25216  CONFIG_COMMANDS = $CONFIG_COMMANDS
25217  $ $0 $@
25218
25219on `(hostname || uname -n) 2>/dev/null | sed 1q`
25220"
25221
25222_ACEOF
25223
25224cat >>$CONFIG_STATUS <<_ACEOF
25225# Files that config.status was made for.
25226config_files="$ac_config_files"
25227config_headers="$ac_config_headers"
25228config_commands="$ac_config_commands"
25229
25230_ACEOF
25231
25232cat >>$CONFIG_STATUS <<\_ACEOF
25233ac_cs_usage="\
25234\`$as_me' instantiates files from templates according to the
25235current configuration.
25236
25237Usage: $0 [OPTIONS] [FILE]...
25238
25239  -h, --help       print this help, then exit
25240  -V, --version    print version number and configuration settings, then exit
25241  -q, --quiet      do not print progress messages
25242  -d, --debug      don't remove temporary files
25243      --recheck    update $as_me by reconfiguring in the same conditions
25244  --file=FILE[:TEMPLATE]
25245		   instantiate the configuration file FILE
25246  --header=FILE[:TEMPLATE]
25247		   instantiate the configuration header FILE
25248
25249Configuration files:
25250$config_files
25251
25252Configuration headers:
25253$config_headers
25254
25255Configuration commands:
25256$config_commands
25257
25258Report bugs to <bug-autoconf@gnu.org>."
25259
25260_ACEOF
25261cat >>$CONFIG_STATUS <<_ACEOF
25262ac_cs_version="\\
25263libodbcxx config.status 0.2.5
25264configured by $0, generated by GNU Autoconf 2.61,
25265  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25266
25267Copyright (C) 2006 Free Software Foundation, Inc.
25268This config.status script is free software; the Free Software Foundation
25269gives unlimited permission to copy, distribute and modify it."
25270
25271ac_pwd='$ac_pwd'
25272srcdir='$srcdir'
25273INSTALL='$INSTALL'
25274MKDIR_P='$MKDIR_P'
25275_ACEOF
25276
25277cat >>$CONFIG_STATUS <<\_ACEOF
25278# If no file are specified by the user, then we need to provide default
25279# value.  By we need to know if files were specified by the user.
25280ac_need_defaults=:
25281while test $# != 0
25282do
25283  case $1 in
25284  --*=*)
25285    ac_option=`expr "X$1" : 'X\([^=]*\)='`
25286    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25287    ac_shift=:
25288    ;;
25289  *)
25290    ac_option=$1
25291    ac_optarg=$2
25292    ac_shift=shift
25293    ;;
25294  esac
25295
25296  case $ac_option in
25297  # Handling of the options.
25298  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25299    ac_cs_recheck=: ;;
25300  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25301    echo "$ac_cs_version"; exit ;;
25302  --debug | --debu | --deb | --de | --d | -d )
25303    debug=: ;;
25304  --file | --fil | --fi | --f )
25305    $ac_shift
25306    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25307    ac_need_defaults=false;;
25308  --header | --heade | --head | --hea )
25309    $ac_shift
25310    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25311    ac_need_defaults=false;;
25312  --he | --h)
25313    # Conflict between --help and --header
25314    { echo "$as_me: error: ambiguous option: $1
25315Try \`$0 --help' for more information." >&2
25316   { (exit 1); exit 1; }; };;
25317  --help | --hel | -h )
25318    echo "$ac_cs_usage"; exit ;;
25319  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25320  | -silent | --silent | --silen | --sile | --sil | --si | --s)
25321    ac_cs_silent=: ;;
25322
25323  # This is an error.
25324  -*) { echo "$as_me: error: unrecognized option: $1
25325Try \`$0 --help' for more information." >&2
25326   { (exit 1); exit 1; }; } ;;
25327
25328  *) ac_config_targets="$ac_config_targets $1"
25329     ac_need_defaults=false ;;
25330
25331  esac
25332  shift
25333done
25334
25335ac_configure_extra_args=
25336
25337if $ac_cs_silent; then
25338  exec 6>/dev/null
25339  ac_configure_extra_args="$ac_configure_extra_args --silent"
25340fi
25341
25342_ACEOF
25343cat >>$CONFIG_STATUS <<_ACEOF
25344if \$ac_cs_recheck; then
25345  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25346  CONFIG_SHELL=$SHELL
25347  export CONFIG_SHELL
25348  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25349fi
25350
25351_ACEOF
25352cat >>$CONFIG_STATUS <<\_ACEOF
25353exec 5>>config.log
25354{
25355  echo
25356  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25357## Running $as_me. ##
25358_ASBOX
25359  echo "$ac_log"
25360} >&5
25361
25362_ACEOF
25363cat >>$CONFIG_STATUS <<_ACEOF
25364#
25365# INIT-COMMANDS
25366#
25367AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25368
25369_ACEOF
25370
25371cat >>$CONFIG_STATUS <<\_ACEOF
25372
25373# Handling of arguments.
25374for ac_config_target in $ac_config_targets
25375do
25376  case $ac_config_target in
25377    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25378    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25379    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25380    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25381    "include/odbc++/Makefile") CONFIG_FILES="$CONFIG_FILES include/odbc++/Makefile" ;;
25382    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
25383    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
25384    "isql++/Makefile") CONFIG_FILES="$CONFIG_FILES isql++/Makefile" ;;
25385    "qtsql++/Makefile") CONFIG_FILES="$CONFIG_FILES qtsql++/Makefile" ;;
25386    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25387    "doc/progref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/progref/Makefile" ;;
25388    "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
25389    "win32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES win32/tests/Makefile" ;;
25390    "libodbc++.spec") CONFIG_FILES="$CONFIG_FILES libodbc++.spec" ;;
25391    "libodbc++.pc") CONFIG_FILES="$CONFIG_FILES libodbc++.pc" ;;
25392
25393  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25394echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25395   { (exit 1); exit 1; }; };;
25396  esac
25397done
25398
25399
25400# If the user did not use the arguments to specify the items to instantiate,
25401# then the envvar interface is used.  Set only those that are not.
25402# We use the long form for the default assignment because of an extremely
25403# bizarre bug on SunOS 4.1.3.
25404if $ac_need_defaults; then
25405  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25406  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25407  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25408fi
25409
25410# Have a temporary directory for convenience.  Make it in the build tree
25411# simply because there is no reason against having it here, and in addition,
25412# creating and moving files from /tmp can sometimes cause problems.
25413# Hook for its removal unless debugging.
25414# Note that there is a small window in which the directory will not be cleaned:
25415# after its creation but before its name has been assigned to `$tmp'.
25416$debug ||
25417{
25418  tmp=
25419  trap 'exit_status=$?
25420  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25421' 0
25422  trap '{ (exit 1); exit 1; }' 1 2 13 15
25423}
25424# Create a (secure) tmp directory for tmp files.
25425
25426{
25427  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25428  test -n "$tmp" && test -d "$tmp"
25429}  ||
25430{
25431  tmp=./conf$$-$RANDOM
25432  (umask 077 && mkdir "$tmp")
25433} ||
25434{
25435   echo "$me: cannot create a temporary directory in ." >&2
25436   { (exit 1); exit 1; }
25437}
25438
25439#
25440# Set up the sed scripts for CONFIG_FILES section.
25441#
25442
25443# No need to generate the scripts if there are no CONFIG_FILES.
25444# This happens for instance when ./config.status config.h
25445if test -n "$CONFIG_FILES"; then
25446
25447_ACEOF
25448
25449
25450
25451ac_delim='%!_!# '
25452for ac_last_try in false false false false false :; do
25453  cat >conf$$subs.sed <<_ACEOF
25454SHELL!$SHELL$ac_delim
25455PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25456PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25457PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25458PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25459PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25460PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25461exec_prefix!$exec_prefix$ac_delim
25462prefix!$prefix$ac_delim
25463program_transform_name!$program_transform_name$ac_delim
25464bindir!$bindir$ac_delim
25465sbindir!$sbindir$ac_delim
25466libexecdir!$libexecdir$ac_delim
25467datarootdir!$datarootdir$ac_delim
25468datadir!$datadir$ac_delim
25469sysconfdir!$sysconfdir$ac_delim
25470sharedstatedir!$sharedstatedir$ac_delim
25471localstatedir!$localstatedir$ac_delim
25472includedir!$includedir$ac_delim
25473oldincludedir!$oldincludedir$ac_delim
25474docdir!$docdir$ac_delim
25475infodir!$infodir$ac_delim
25476htmldir!$htmldir$ac_delim
25477dvidir!$dvidir$ac_delim
25478pdfdir!$pdfdir$ac_delim
25479psdir!$psdir$ac_delim
25480libdir!$libdir$ac_delim
25481localedir!$localedir$ac_delim
25482mandir!$mandir$ac_delim
25483DEFS!$DEFS$ac_delim
25484ECHO_C!$ECHO_C$ac_delim
25485ECHO_N!$ECHO_N$ac_delim
25486ECHO_T!$ECHO_T$ac_delim
25487LIBS!$LIBS$ac_delim
25488build_alias!$build_alias$ac_delim
25489host_alias!$host_alias$ac_delim
25490target_alias!$target_alias$ac_delim
25491INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25492INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25493INSTALL_DATA!$INSTALL_DATA$ac_delim
25494am__isrc!$am__isrc$ac_delim
25495CYGPATH_W!$CYGPATH_W$ac_delim
25496PACKAGE!$PACKAGE$ac_delim
25497VERSION!$VERSION$ac_delim
25498ACLOCAL!$ACLOCAL$ac_delim
25499AUTOCONF!$AUTOCONF$ac_delim
25500AUTOMAKE!$AUTOMAKE$ac_delim
25501AUTOHEADER!$AUTOHEADER$ac_delim
25502MAKEINFO!$MAKEINFO$ac_delim
25503install_sh!$install_sh$ac_delim
25504STRIP!$STRIP$ac_delim
25505INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25506mkdir_p!$mkdir_p$ac_delim
25507AWK!$AWK$ac_delim
25508SET_MAKE!$SET_MAKE$ac_delim
25509am__leading_dot!$am__leading_dot$ac_delim
25510AMTAR!$AMTAR$ac_delim
25511am__tar!$am__tar$ac_delim
25512am__untar!$am__untar$ac_delim
25513lib_version!$lib_version$ac_delim
25514build!$build$ac_delim
25515build_cpu!$build_cpu$ac_delim
25516build_vendor!$build_vendor$ac_delim
25517build_os!$build_os$ac_delim
25518host!$host$ac_delim
25519host_cpu!$host_cpu$ac_delim
25520host_vendor!$host_vendor$ac_delim
25521host_os!$host_os$ac_delim
25522sed!$sed$ac_delim
25523CXX!$CXX$ac_delim
25524CXXFLAGS!$CXXFLAGS$ac_delim
25525LDFLAGS!$LDFLAGS$ac_delim
25526CPPFLAGS!$CPPFLAGS$ac_delim
25527ac_ct_CXX!$ac_ct_CXX$ac_delim
25528EXEEXT!$EXEEXT$ac_delim
25529OBJEXT!$OBJEXT$ac_delim
25530DEPDIR!$DEPDIR$ac_delim
25531am__include!$am__include$ac_delim
25532am__quote!$am__quote$ac_delim
25533AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25534AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25535AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25536CXXDEPMODE!$CXXDEPMODE$ac_delim
25537am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25538am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25539CXXCPP!$CXXCPP$ac_delim
25540CC!$CC$ac_delim
25541CFLAGS!$CFLAGS$ac_delim
25542ac_ct_CC!$ac_ct_CC$ac_delim
25543CCDEPMODE!$CCDEPMODE$ac_delim
25544am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25545am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25546SED!$SED$ac_delim
25547GREP!$GREP$ac_delim
25548EGREP!$EGREP$ac_delim
25549LN_S!$LN_S$ac_delim
25550ECHO!$ECHO$ac_delim
25551_ACEOF
25552
25553  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25554    break
25555  elif $ac_last_try; then
25556    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25557echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25558   { (exit 1); exit 1; }; }
25559  else
25560    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25561  fi
25562done
25563
25564ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25565if test -n "$ac_eof"; then
25566  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25567  ac_eof=`expr $ac_eof + 1`
25568fi
25569
25570cat >>$CONFIG_STATUS <<_ACEOF
25571cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25572/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25573_ACEOF
25574sed '
25575s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25576s/^/s,@/; s/!/@,|#_!!_#|/
25577:n
25578t n
25579s/'"$ac_delim"'$/,g/; t
25580s/$/\\/; p
25581N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25582' >>$CONFIG_STATUS <conf$$subs.sed
25583rm -f conf$$subs.sed
25584cat >>$CONFIG_STATUS <<_ACEOF
25585CEOF$ac_eof
25586_ACEOF
25587
25588
25589ac_delim='%!_!# '
25590for ac_last_try in false false false false false :; do
25591  cat >conf$$subs.sed <<_ACEOF
25592AR!$AR$ac_delim
25593RANLIB!$RANLIB$ac_delim
25594DSYMUTIL!$DSYMUTIL$ac_delim
25595NMEDIT!$NMEDIT$ac_delim
25596CPP!$CPP$ac_delim
25597F77!$F77$ac_delim
25598FFLAGS!$FFLAGS$ac_delim
25599ac_ct_F77!$ac_ct_F77$ac_delim
25600LIBTOOL!$LIBTOOL$ac_delim
25601THREAD_LIBS!$THREAD_LIBS$ac_delim
25602ODBCPP_LIBRARY!$ODBCPP_LIBRARY$ac_delim
25603THREADS_TRUE!$THREADS_TRUE$ac_delim
25604THREADS_FALSE!$THREADS_FALSE$ac_delim
25605LIBREADLINE!$LIBREADLINE$ac_delim
25606INCLUDES!$INCLUDES$ac_delim
25607doxygen!$doxygen$ac_delim
25608perl!$perl$ac_delim
25609db2html!$db2html$ac_delim
25610zip!$zip$ac_delim
25611bzip2!$bzip2$ac_delim
25612UNICODE_DEFS!$UNICODE_DEFS$ac_delim
25613BUILD_QTSQLXX_TRUE!$BUILD_QTSQLXX_TRUE$ac_delim
25614BUILD_QTSQLXX_FALSE!$BUILD_QTSQLXX_FALSE$ac_delim
25615QT_INCLUDES!$QT_INCLUDES$ac_delim
25616QT_LIBS!$QT_LIBS$ac_delim
25617QT_DEFS!$QT_DEFS$ac_delim
25618QT_MOC!$QT_MOC$ac_delim
25619QT_TRUE!$QT_TRUE$ac_delim
25620QT_FALSE!$QT_FALSE$ac_delim
25621BUILD_ISQLXX_TRUE!$BUILD_ISQLXX_TRUE$ac_delim
25622BUILD_ISQLXX_FALSE!$BUILD_ISQLXX_FALSE$ac_delim
25623BUILD_TESTS_TRUE!$BUILD_TESTS_TRUE$ac_delim
25624BUILD_TESTS_FALSE!$BUILD_TESTS_FALSE$ac_delim
25625LIBOBJS!$LIBOBJS$ac_delim
25626LTLIBOBJS!$LTLIBOBJS$ac_delim
25627_ACEOF
25628
25629  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
25630    break
25631  elif $ac_last_try; then
25632    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25633echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25634   { (exit 1); exit 1; }; }
25635  else
25636    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25637  fi
25638done
25639
25640ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25641if test -n "$ac_eof"; then
25642  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25643  ac_eof=`expr $ac_eof + 1`
25644fi
25645
25646cat >>$CONFIG_STATUS <<_ACEOF
25647cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25648/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25649_ACEOF
25650sed '
25651s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25652s/^/s,@/; s/!/@,|#_!!_#|/
25653:n
25654t n
25655s/'"$ac_delim"'$/,g/; t
25656s/$/\\/; p
25657N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25658' >>$CONFIG_STATUS <conf$$subs.sed
25659rm -f conf$$subs.sed
25660cat >>$CONFIG_STATUS <<_ACEOF
25661:end
25662s/|#_!!_#|//g
25663CEOF$ac_eof
25664_ACEOF
25665
25666
25667# VPATH may cause trouble with some makes, so we remove $(srcdir),
25668# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25669# trailing colons and then remove the whole line if VPATH becomes empty
25670# (actually we leave an empty line to preserve line numbers).
25671if test "x$srcdir" = x.; then
25672  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
25673s/:*\$(srcdir):*/:/
25674s/:*\${srcdir}:*/:/
25675s/:*@srcdir@:*/:/
25676s/^\([^=]*=[	 ]*\):*/\1/
25677s/:*$//
25678s/^[^=]*=[	 ]*$//
25679}'
25680fi
25681
25682cat >>$CONFIG_STATUS <<\_ACEOF
25683fi # test -n "$CONFIG_FILES"
25684
25685
25686for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
25687do
25688  case $ac_tag in
25689  :[FHLC]) ac_mode=$ac_tag; continue;;
25690  esac
25691  case $ac_mode$ac_tag in
25692  :[FHL]*:*);;
25693  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25694echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25695   { (exit 1); exit 1; }; };;
25696  :[FH]-) ac_tag=-:-;;
25697  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25698  esac
25699  ac_save_IFS=$IFS
25700  IFS=:
25701  set x $ac_tag
25702  IFS=$ac_save_IFS
25703  shift
25704  ac_file=$1
25705  shift
25706
25707  case $ac_mode in
25708  :L) ac_source=$1;;
25709  :[FH])
25710    ac_file_inputs=
25711    for ac_f
25712    do
25713      case $ac_f in
25714      -) ac_f="$tmp/stdin";;
25715      *) # Look for the file first in the build tree, then in the source tree
25716	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
25717	 # because $ac_f cannot contain `:'.
25718	 test -f "$ac_f" ||
25719	   case $ac_f in
25720	   [\\/$]*) false;;
25721	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25722	   esac ||
25723	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25724echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25725   { (exit 1); exit 1; }; };;
25726      esac
25727      ac_file_inputs="$ac_file_inputs $ac_f"
25728    done
25729
25730    # Let's still pretend it is `configure' which instantiates (i.e., don't
25731    # use $as_me), people would be surprised to read:
25732    #    /* config.h.  Generated by config.status.  */
25733    configure_input="Generated from "`IFS=:
25734	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25735    if test x"$ac_file" != x-; then
25736      configure_input="$ac_file.  $configure_input"
25737      { echo "$as_me:$LINENO: creating $ac_file" >&5
25738echo "$as_me: creating $ac_file" >&6;}
25739    fi
25740
25741    case $ac_tag in
25742    *:-:* | *:-) cat >"$tmp/stdin";;
25743    esac
25744    ;;
25745  esac
25746
25747  ac_dir=`$as_dirname -- "$ac_file" ||
25748$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25749	 X"$ac_file" : 'X\(//\)[^/]' \| \
25750	 X"$ac_file" : 'X\(//\)$' \| \
25751	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25752echo X"$ac_file" |
25753    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25754	    s//\1/
25755	    q
25756	  }
25757	  /^X\(\/\/\)[^/].*/{
25758	    s//\1/
25759	    q
25760	  }
25761	  /^X\(\/\/\)$/{
25762	    s//\1/
25763	    q
25764	  }
25765	  /^X\(\/\).*/{
25766	    s//\1/
25767	    q
25768	  }
25769	  s/.*/./; q'`
25770  { as_dir="$ac_dir"
25771  case $as_dir in #(
25772  -*) as_dir=./$as_dir;;
25773  esac
25774  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25775    as_dirs=
25776    while :; do
25777      case $as_dir in #(
25778      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25779      *) as_qdir=$as_dir;;
25780      esac
25781      as_dirs="'$as_qdir' $as_dirs"
25782      as_dir=`$as_dirname -- "$as_dir" ||
25783$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25784	 X"$as_dir" : 'X\(//\)[^/]' \| \
25785	 X"$as_dir" : 'X\(//\)$' \| \
25786	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25787echo X"$as_dir" |
25788    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25789	    s//\1/
25790	    q
25791	  }
25792	  /^X\(\/\/\)[^/].*/{
25793	    s//\1/
25794	    q
25795	  }
25796	  /^X\(\/\/\)$/{
25797	    s//\1/
25798	    q
25799	  }
25800	  /^X\(\/\).*/{
25801	    s//\1/
25802	    q
25803	  }
25804	  s/.*/./; q'`
25805      test -d "$as_dir" && break
25806    done
25807    test -z "$as_dirs" || eval "mkdir $as_dirs"
25808  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25809echo "$as_me: error: cannot create directory $as_dir" >&2;}
25810   { (exit 1); exit 1; }; }; }
25811  ac_builddir=.
25812
25813case "$ac_dir" in
25814.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25815*)
25816  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25817  # A ".." for each directory in $ac_dir_suffix.
25818  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25819  case $ac_top_builddir_sub in
25820  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25821  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25822  esac ;;
25823esac
25824ac_abs_top_builddir=$ac_pwd
25825ac_abs_builddir=$ac_pwd$ac_dir_suffix
25826# for backward compatibility:
25827ac_top_builddir=$ac_top_build_prefix
25828
25829case $srcdir in
25830  .)  # We are building in place.
25831    ac_srcdir=.
25832    ac_top_srcdir=$ac_top_builddir_sub
25833    ac_abs_top_srcdir=$ac_pwd ;;
25834  [\\/]* | ?:[\\/]* )  # Absolute name.
25835    ac_srcdir=$srcdir$ac_dir_suffix;
25836    ac_top_srcdir=$srcdir
25837    ac_abs_top_srcdir=$srcdir ;;
25838  *) # Relative name.
25839    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25840    ac_top_srcdir=$ac_top_build_prefix$srcdir
25841    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25842esac
25843ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25844
25845
25846  case $ac_mode in
25847  :F)
25848  #
25849  # CONFIG_FILE
25850  #
25851
25852  case $INSTALL in
25853  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25854  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25855  esac
25856  ac_MKDIR_P=$MKDIR_P
25857  case $MKDIR_P in
25858  [\\/$]* | ?:[\\/]* ) ;;
25859  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25860  esac
25861_ACEOF
25862
25863cat >>$CONFIG_STATUS <<\_ACEOF
25864# If the template does not know about datarootdir, expand it.
25865# FIXME: This hack should be removed a few years after 2.60.
25866ac_datarootdir_hack=; ac_datarootdir_seen=
25867
25868case `sed -n '/datarootdir/ {
25869  p
25870  q
25871}
25872/@datadir@/p
25873/@docdir@/p
25874/@infodir@/p
25875/@localedir@/p
25876/@mandir@/p
25877' $ac_file_inputs` in
25878*datarootdir*) ac_datarootdir_seen=yes;;
25879*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25880  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25881echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25882_ACEOF
25883cat >>$CONFIG_STATUS <<_ACEOF
25884  ac_datarootdir_hack='
25885  s&@datadir@&$datadir&g
25886  s&@docdir@&$docdir&g
25887  s&@infodir@&$infodir&g
25888  s&@localedir@&$localedir&g
25889  s&@mandir@&$mandir&g
25890    s&\\\${datarootdir}&$datarootdir&g' ;;
25891esac
25892_ACEOF
25893
25894# Neutralize VPATH when `$srcdir' = `.'.
25895# Shell code in configure.ac might set extrasub.
25896# FIXME: do we really want to maintain this feature?
25897cat >>$CONFIG_STATUS <<_ACEOF
25898  sed "$ac_vpsub
25899$extrasub
25900_ACEOF
25901cat >>$CONFIG_STATUS <<\_ACEOF
25902:t
25903/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25904s&@configure_input@&$configure_input&;t t
25905s&@top_builddir@&$ac_top_builddir_sub&;t t
25906s&@srcdir@&$ac_srcdir&;t t
25907s&@abs_srcdir@&$ac_abs_srcdir&;t t
25908s&@top_srcdir@&$ac_top_srcdir&;t t
25909s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25910s&@builddir@&$ac_builddir&;t t
25911s&@abs_builddir@&$ac_abs_builddir&;t t
25912s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25913s&@INSTALL@&$ac_INSTALL&;t t
25914s&@MKDIR_P@&$ac_MKDIR_P&;t t
25915$ac_datarootdir_hack
25916" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25917
25918test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25919  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25920  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25921  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25922which seems to be undefined.  Please make sure it is defined." >&5
25923echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25924which seems to be undefined.  Please make sure it is defined." >&2;}
25925
25926  rm -f "$tmp/stdin"
25927  case $ac_file in
25928  -) cat "$tmp/out"; rm -f "$tmp/out";;
25929  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25930  esac
25931 ;;
25932  :H)
25933  #
25934  # CONFIG_HEADER
25935  #
25936_ACEOF
25937
25938# Transform confdefs.h into a sed script `conftest.defines', that
25939# substitutes the proper values into config.h.in to produce config.h.
25940rm -f conftest.defines conftest.tail
25941# First, append a space to every undef/define line, to ease matching.
25942echo 's/$/ /' >conftest.defines
25943# Then, protect against being on the right side of a sed subst, or in
25944# an unquoted here document, in config.status.  If some macros were
25945# called several times there might be several #defines for the same
25946# symbol, which is useless.  But do not sort them, since the last
25947# AC_DEFINE must be honored.
25948ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25949# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25950# NAME is the cpp macro being defined, VALUE is the value it is being given.
25951# PARAMS is the parameter list in the macro definition--in most cases, it's
25952# just an empty string.
25953ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
25954ac_dB='\\)[	 (].*,\\1define\\2'
25955ac_dC=' '
25956ac_dD=' ,'
25957
25958uniq confdefs.h |
25959  sed -n '
25960	t rset
25961	:rset
25962	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
25963	t ok
25964	d
25965	:ok
25966	s/[\\&,]/\\&/g
25967	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25968	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25969  ' >>conftest.defines
25970
25971# Remove the space that was appended to ease matching.
25972# Then replace #undef with comments.  This is necessary, for
25973# example, in the case of _POSIX_SOURCE, which is predefined and required
25974# on some systems where configure will not decide to define it.
25975# (The regexp can be short, since the line contains either #define or #undef.)
25976echo 's/ $//
25977s,^[	 #]*u.*,/* & */,' >>conftest.defines
25978
25979# Break up conftest.defines:
25980ac_max_sed_lines=50
25981
25982# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25983# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25984# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25985# et cetera.
25986ac_in='$ac_file_inputs'
25987ac_out='"$tmp/out1"'
25988ac_nxt='"$tmp/out2"'
25989
25990while :
25991do
25992  # Write a here document:
25993    cat >>$CONFIG_STATUS <<_ACEOF
25994    # First, check the format of the line:
25995    cat >"\$tmp/defines.sed" <<\\CEOF
25996/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
25997/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
25998b
25999:def
26000_ACEOF
26001  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
26002  echo 'CEOF
26003    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26004  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
26005  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
26006  grep . conftest.tail >/dev/null || break
26007  rm -f conftest.defines
26008  mv conftest.tail conftest.defines
26009done
26010rm -f conftest.defines conftest.tail
26011
26012echo "ac_result=$ac_in" >>$CONFIG_STATUS
26013cat >>$CONFIG_STATUS <<\_ACEOF
26014  if test x"$ac_file" != x-; then
26015    echo "/* $configure_input  */" >"$tmp/config.h"
26016    cat "$ac_result" >>"$tmp/config.h"
26017    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
26018      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26019echo "$as_me: $ac_file is unchanged" >&6;}
26020    else
26021      rm -f $ac_file
26022      mv "$tmp/config.h" $ac_file
26023    fi
26024  else
26025    echo "/* $configure_input  */"
26026    cat "$ac_result"
26027  fi
26028  rm -f "$tmp/out12"
26029# Compute $ac_file's index in $config_headers.
26030_am_arg=$ac_file
26031_am_stamp_count=1
26032for _am_header in $config_headers :; do
26033  case $_am_header in
26034    $_am_arg | $_am_arg:* )
26035      break ;;
26036    * )
26037      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26038  esac
26039done
26040echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26041$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26042	 X"$_am_arg" : 'X\(//\)[^/]' \| \
26043	 X"$_am_arg" : 'X\(//\)$' \| \
26044	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26045echo X"$_am_arg" |
26046    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26047	    s//\1/
26048	    q
26049	  }
26050	  /^X\(\/\/\)[^/].*/{
26051	    s//\1/
26052	    q
26053	  }
26054	  /^X\(\/\/\)$/{
26055	    s//\1/
26056	    q
26057	  }
26058	  /^X\(\/\).*/{
26059	    s//\1/
26060	    q
26061	  }
26062	  s/.*/./; q'`/stamp-h$_am_stamp_count
26063 ;;
26064
26065  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
26066echo "$as_me: executing $ac_file commands" >&6;}
26067 ;;
26068  esac
26069
26070
26071  case $ac_file$ac_mode in
26072    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26073  # Strip MF so we end up with the name of the file.
26074  mf=`echo "$mf" | sed -e 's/:.*$//'`
26075  # Check whether this is an Automake generated Makefile or not.
26076  # We used to match only the files named `Makefile.in', but
26077  # some people rename them; so instead we look at the file content.
26078  # Grep'ing the first line is not enough: some people post-process
26079  # each Makefile.in and add a new line on top of each file to say so.
26080  # Grep'ing the whole file is not good either: AIX grep has a line
26081  # limit of 2048, but all sed's we know have understand at least 4000.
26082  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26083    dirpart=`$as_dirname -- "$mf" ||
26084$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26085	 X"$mf" : 'X\(//\)[^/]' \| \
26086	 X"$mf" : 'X\(//\)$' \| \
26087	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26088echo X"$mf" |
26089    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26090	    s//\1/
26091	    q
26092	  }
26093	  /^X\(\/\/\)[^/].*/{
26094	    s//\1/
26095	    q
26096	  }
26097	  /^X\(\/\/\)$/{
26098	    s//\1/
26099	    q
26100	  }
26101	  /^X\(\/\).*/{
26102	    s//\1/
26103	    q
26104	  }
26105	  s/.*/./; q'`
26106  else
26107    continue
26108  fi
26109  # Extract the definition of DEPDIR, am__include, and am__quote
26110  # from the Makefile without running `make'.
26111  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26112  test -z "$DEPDIR" && continue
26113  am__include=`sed -n 's/^am__include = //p' < "$mf"`
26114  test -z "am__include" && continue
26115  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26116  # When using ansi2knr, U may be empty or an underscore; expand it
26117  U=`sed -n 's/^U = //p' < "$mf"`
26118  # Find all dependency output files, they are included files with
26119  # $(DEPDIR) in their names.  We invoke sed twice because it is the
26120  # simplest approach to changing $(DEPDIR) to its actual value in the
26121  # expansion.
26122  for file in `sed -n "
26123    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26124       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26125    # Make sure the directory exists.
26126    test -f "$dirpart/$file" && continue
26127    fdir=`$as_dirname -- "$file" ||
26128$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26129	 X"$file" : 'X\(//\)[^/]' \| \
26130	 X"$file" : 'X\(//\)$' \| \
26131	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26132echo X"$file" |
26133    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26134	    s//\1/
26135	    q
26136	  }
26137	  /^X\(\/\/\)[^/].*/{
26138	    s//\1/
26139	    q
26140	  }
26141	  /^X\(\/\/\)$/{
26142	    s//\1/
26143	    q
26144	  }
26145	  /^X\(\/\).*/{
26146	    s//\1/
26147	    q
26148	  }
26149	  s/.*/./; q'`
26150    { as_dir=$dirpart/$fdir
26151  case $as_dir in #(
26152  -*) as_dir=./$as_dir;;
26153  esac
26154  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26155    as_dirs=
26156    while :; do
26157      case $as_dir in #(
26158      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26159      *) as_qdir=$as_dir;;
26160      esac
26161      as_dirs="'$as_qdir' $as_dirs"
26162      as_dir=`$as_dirname -- "$as_dir" ||
26163$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26164	 X"$as_dir" : 'X\(//\)[^/]' \| \
26165	 X"$as_dir" : 'X\(//\)$' \| \
26166	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26167echo X"$as_dir" |
26168    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26169	    s//\1/
26170	    q
26171	  }
26172	  /^X\(\/\/\)[^/].*/{
26173	    s//\1/
26174	    q
26175	  }
26176	  /^X\(\/\/\)$/{
26177	    s//\1/
26178	    q
26179	  }
26180	  /^X\(\/\).*/{
26181	    s//\1/
26182	    q
26183	  }
26184	  s/.*/./; q'`
26185      test -d "$as_dir" && break
26186    done
26187    test -z "$as_dirs" || eval "mkdir $as_dirs"
26188  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26189echo "$as_me: error: cannot create directory $as_dir" >&2;}
26190   { (exit 1); exit 1; }; }; }
26191    # echo "creating $dirpart/$file"
26192    echo '# dummy' > "$dirpart/$file"
26193  done
26194done
26195 ;;
26196
26197  esac
26198done # for ac_tag
26199
26200
26201{ (exit 0); exit 0; }
26202_ACEOF
26203chmod +x $CONFIG_STATUS
26204ac_clean_files=$ac_clean_files_save
26205
26206
26207# configure is writing to config.log, and then calls config.status.
26208# config.status does its own redirection, appending to config.log.
26209# Unfortunately, on DOS this fails, as config.log is still kept open
26210# by configure, so config.status won't be able to write to it; its
26211# output is simply discarded.  So we exec the FD to /dev/null,
26212# effectively closing config.log, so it can be properly (re)opened and
26213# appended to by config.status.  When coming back to configure, we
26214# need to make the FD available again.
26215if test "$no_create" != yes; then
26216  ac_cs_success=:
26217  ac_config_status_args=
26218  test "$silent" = yes &&
26219    ac_config_status_args="$ac_config_status_args --quiet"
26220  exec 5>/dev/null
26221  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26222  exec 5>>config.log
26223  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26224  # would make configure fail if this is the last instruction.
26225  $ac_cs_success || { (exit 1); exit 1; }
26226fi
26227
26228
26229if test "x$USE_MAINTAINER_MODE" = "xyes"
26230then
26231
26232if test "x$doxygen" = x
26233then
26234	echo "WARNING: doxygen (and/or perl) not found, progref will NOT be regenerated"
26235fi
26236
26237if test "x$db2html" = x
26238then
26239	echo "WARNING: db2html not found, doc/INSTALL/ will not be built"
26240fi
26241
26242if test "x$zip" = x
26243then
26244	echo "WARNING: zip not found, 'make dist' will NOT generate a win32 distribution"
26245fi
26246
26247if test "x$bzip2" = x
26248then
26249	echo "WARNING: bzip2 not found, 'make dist' will NOT generate a .tar.bz2 distribution"
26250fi
26251
26252fi
26253