1#! /bin/sh
2# From configure.ac Revision: 1.4 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61 for GP parity example 3.0.0.
5#
6# Report bugs to <cgagne@gmail.com>.
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization.  ##
14## --------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19  emulate sh
20  NULLCMD=:
21  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22  # is contrary to our usage.  Disable this feature.
23  alias -g '${1+"$@"}'='"$@"'
24  setopt NO_GLOB_SUBST
25else
26  case `(set -o) 2>/dev/null` in
27  *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
45  echo "#! /bin/sh" >conf$$.sh
46  echo  "exit 0"   >>conf$$.sh
47  chmod +x conf$$.sh
48  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49    PATH_SEPARATOR=';'
50  else
51    PATH_SEPARATOR=:
52  fi
53  rm -f conf$$.sh
54fi
55
56# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58  as_unset=unset
59else
60  as_unset=false
61fi
62
63
64# IFS
65# We need space, tab and new line, in precisely that order.  Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" ""	$as_nl"
72
73# Find who we are.  Look in the path if we contain no directory separator.
74case $0 in
75  *[\\/]* ) as_myself=$0 ;;
76  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79  IFS=$as_save_IFS
80  test -z "$as_dir" && as_dir=.
81  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85     ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90  as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94  { (exit 1); exit 1; }
95fi
96
97# Work around bugs in pre-3.0 UWIN ksh.
98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for as_var in \
107  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109  LC_TELEPHONE LC_TIME
110do
111  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112    eval $as_var=C; export $as_var
113  else
114    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115  fi
116done
117
118# Required to use basename.
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120   test "X`expr 00001 : '.*\(...\)'`" = X001; then
121  as_expr=expr
122else
123  as_expr=false
124fi
125
126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127  as_basename=basename
128else
129  as_basename=false
130fi
131
132
133# Name of the executable.
134as_me=`$as_basename -- "$0" ||
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136	 X"$0" : 'X\(//\)$' \| \
137	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138echo X/"$0" |
139    sed '/^.*\/\([^/][^/]*\)\/*$/{
140	    s//\1/
141	    q
142	  }
143	  /^X\/\(\/\/\)$/{
144	    s//\1/
145	    q
146	  }
147	  /^X\/\(\/\).*/{
148	    s//\1/
149	    q
150	  }
151	  s/.*/./; q'`
152
153# CDPATH.
154$as_unset CDPATH
155
156
157if test "x$CONFIG_SHELL" = x; then
158  if (eval ":") 2>/dev/null; then
159  as_have_required=yes
160else
161  as_have_required=no
162fi
163
164  if test $as_have_required = yes && 	 (eval ":
165(as_func_return () {
166  (exit \$1)
167}
168as_func_success () {
169  as_func_return 0
170}
171as_func_failure () {
172  as_func_return 1
173}
174as_func_ret_success () {
175  return 0
176}
177as_func_ret_failure () {
178  return 1
179}
180
181exitcode=0
182if as_func_success; then
183  :
184else
185  exitcode=1
186  echo as_func_success failed.
187fi
188
189if as_func_failure; then
190  exitcode=1
191  echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195  :
196else
197  exitcode=1
198  echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202  exitcode=1
203  echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207  :
208else
209  exitcode=1
210  echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216  as_lineno_1=\$LINENO
217  as_lineno_2=\$LINENO
218  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221  :
222else
223  as_candidate_shells=
224    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226do
227  IFS=$as_save_IFS
228  test -z "$as_dir" && as_dir=.
229  case $as_dir in
230	 /*)
231	   for as_base in sh bash ksh sh5; do
232	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233	   done;;
234       esac
235done
236IFS=$as_save_IFS
237
238
239      for as_shell in $as_candidate_shells $SHELL; do
240	 # Try only shells that exist, to save several forks.
241	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242		{ ("$as_shell") 2> /dev/null <<\_ASEOF
243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244  emulate sh
245  NULLCMD=:
246  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247  # is contrary to our usage.  Disable this feature.
248  alias -g '${1+"$@"}'='"$@"'
249  setopt NO_GLOB_SUBST
250else
251  case `(set -o) 2>/dev/null` in
252  *posix*) set -o posix ;;
253esac
254
255fi
256
257
258:
259_ASEOF
260}; then
261  CONFIG_SHELL=$as_shell
262	       as_have_required=yes
263	       if { "$as_shell" 2> /dev/null <<\_ASEOF
264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265  emulate sh
266  NULLCMD=:
267  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268  # is contrary to our usage.  Disable this feature.
269  alias -g '${1+"$@"}'='"$@"'
270  setopt NO_GLOB_SUBST
271else
272  case `(set -o) 2>/dev/null` in
273  *posix*) set -o posix ;;
274esac
275
276fi
277
278
279:
280(as_func_return () {
281  (exit $1)
282}
283as_func_success () {
284  as_func_return 0
285}
286as_func_failure () {
287  as_func_return 1
288}
289as_func_ret_success () {
290  return 0
291}
292as_func_ret_failure () {
293  return 1
294}
295
296exitcode=0
297if as_func_success; then
298  :
299else
300  exitcode=1
301  echo as_func_success failed.
302fi
303
304if as_func_failure; then
305  exitcode=1
306  echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310  :
311else
312  exitcode=1
313  echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317  exitcode=1
318  echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322  :
323else
324  exitcode=1
325  echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
331  as_lineno_1=$LINENO
332  as_lineno_2=$LINENO
333  test "x$as_lineno_1" != "x$as_lineno_2" &&
334  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338  break
339fi
340
341fi
342
343      done
344
345      if test "x$CONFIG_SHELL" != x; then
346  for as_var in BASH_ENV ENV
347        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348        done
349        export CONFIG_SHELL
350        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354    if test $as_have_required = no; then
355  echo This script requires a shell more modern than all the
356      echo shells that I found on your system.  Please install a
357      echo modern shell, or manually run the script under such a
358      echo shell if you do have one.
359      { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370  (exit \$1)
371}
372as_func_success () {
373  as_func_return 0
374}
375as_func_failure () {
376  as_func_return 1
377}
378as_func_ret_success () {
379  return 0
380}
381as_func_ret_failure () {
382  return 1
383}
384
385exitcode=0
386if as_func_success; then
387  :
388else
389  exitcode=1
390  echo as_func_success failed.
391fi
392
393if as_func_failure; then
394  exitcode=1
395  echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399  :
400else
401  exitcode=1
402  echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406  exitcode=1
407  echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411  :
412else
413  exitcode=1
414  echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418  echo No shell found that supports shell functions.
419  echo Please tell autoconf@gnu.org about your system,
420  echo including any error possibly output before this
421  echo message
422}
423
424
425
426  as_lineno_1=$LINENO
427  as_lineno_2=$LINENO
428  test "x$as_lineno_1" != "x$as_lineno_2" &&
429  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432  # uniformly replaced by the line number.  The first 'sed' inserts a
433  # line-number line after each line using $LINENO; the second 'sed'
434  # does the real work.  The second script uses 'N' to pair each
435  # line-number line with the line containing $LINENO, and appends
436  # trailing '-' during substitution so that $LINENO is not a special
437  # case at line end.
438  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439  # scripts with optimization help from Paolo Bonzini.  Blame Lee
440  # E. McMahon (1931-1989) for sed's syntax.  :-)
441  sed -n '
442    p
443    /[$]LINENO/=
444  ' <$as_myself |
445    sed '
446      s/[$]LINENO.*/&-/
447      t lineno
448      b
449      :lineno
450      N
451      :loop
452      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453      t loop
454      s/-\n.*//
455    ' >$as_me.lineno &&
456  chmod +x "$as_me.lineno" ||
457    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458   { (exit 1); exit 1; }; }
459
460  # Don't try to exec as it changes $[0], causing all sort of problems
461  # (the dirname of $[0] is not the place where we might find the
462  # original and so on.  Autoconf is especially sensitive to this).
463  . "./$as_me.lineno"
464  # Exit status is that of the last command.
465  exit
466}
467
468
469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470  as_dirname=dirname
471else
472  as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478  case `echo 'x\c'` in
479  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
480  *)   ECHO_C='\c';;
481  esac;;
482*)
483  ECHO_N='-n';;
484esac
485
486if expr a : '\(a\)' >/dev/null 2>&1 &&
487   test "X`expr 00001 : '.*\(...\)'`" = X001; then
488  as_expr=expr
489else
490  as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
494if test -d conf$$.dir; then
495  rm -f conf$$.dir/conf$$.file
496else
497  rm -f conf$$.dir
498  mkdir conf$$.dir
499fi
500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
502  as_ln_s='ln -s'
503  # ... but there are two gotchas:
504  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506  # In both cases, we have to default to `cp -p'.
507  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508    as_ln_s='cp -p'
509elif ln conf$$.file conf$$ 2>/dev/null; then
510  as_ln_s=ln
511else
512  as_ln_s='cp -p'
513fi
514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
516
517if mkdir -p . 2>/dev/null; then
518  as_mkdir_p=:
519else
520  test -d ./-p && rmdir ./-p
521  as_mkdir_p=false
522fi
523
524if test -x / >/dev/null 2>&1; then
525  as_test_x='test -x'
526else
527  if ls -dL / >/dev/null 2>&1; then
528    as_ls_L_option=L
529  else
530    as_ls_L_option=
531  fi
532  as_test_x='
533    eval sh -c '\''
534      if test -d "$1"; then
535        test -d "$1/.";
536      else
537	case $1 in
538        -*)set "./$1";;
539	esac;
540	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541	???[sx]*):;;*)false;;esac;fi
542    '\'' sh
543  '
544fi
545as_executable_p=$as_test_x
546
547# Sed expression to map a string onto a valid CPP name.
548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550# Sed expression to map a string onto a valid variable name.
551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556# Check that we are running under the correct shell.
557SHELL=${CONFIG_SHELL-/bin/sh}
558
559case X$ECHO in
560X*--fallback-echo)
561  # Remove one level of quotation (which was required for Make).
562  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563  ;;
564esac
565
566echo=${ECHO-echo}
567if test "X$1" = X--no-reexec; then
568  # Discard the --no-reexec flag, and continue.
569  shift
570elif test "X$1" = X--fallback-echo; then
571  # Avoid inline document here, it may be left over
572  :
573elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574  # Yippee, $echo works!
575  :
576else
577  # Restart under the correct shell.
578  exec $SHELL "$0" --no-reexec ${1+"$@"}
579fi
580
581if test "X$1" = X--fallback-echo; then
582  # used as fallback echo
583  shift
584  cat <<EOF
585$*
586EOF
587  exit 0
588fi
589
590# The HP-UX ksh and POSIX shell print the target directory to stdout
591# if CDPATH is set.
592(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594if test -z "$ECHO"; then
595if test "X${echo_test_string+set}" != Xset; then
596# find a string as large as possible, as long as the shell can cope with it
597  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600       echo_test_string=`eval $cmd` &&
601       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602    then
603      break
604    fi
605  done
606fi
607
608if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610   test "X$echo_testing_string" = "X$echo_test_string"; then
611  :
612else
613  # The Solaris, AIX, and Digital Unix default echo programs unquote
614  # backslashes.  This makes it impossible to quote backslashes using
615  #   echo "$something" | sed 's/\\/\\\\/g'
616  #
617  # So, first we look for a working echo in the user's PATH.
618
619  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620  for dir in $PATH /usr/ucb; do
621    IFS="$lt_save_ifs"
622    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625       test "X$echo_testing_string" = "X$echo_test_string"; then
626      echo="$dir/echo"
627      break
628    fi
629  done
630  IFS="$lt_save_ifs"
631
632  if test "X$echo" = Xecho; then
633    # We didn't find a better echo, so look for alternatives.
634    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636       test "X$echo_testing_string" = "X$echo_test_string"; then
637      # This shell has a builtin print -r that does the trick.
638      echo='print -r'
639    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640	 test "X$CONFIG_SHELL" != X/bin/ksh; then
641      # If we have ksh, try running configure again with it.
642      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643      export ORIGINAL_CONFIG_SHELL
644      CONFIG_SHELL=/bin/ksh
645      export CONFIG_SHELL
646      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647    else
648      # Try using printf.
649      echo='printf %s\n'
650      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652	 test "X$echo_testing_string" = "X$echo_test_string"; then
653	# Cool, printf works
654	:
655      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656	   test "X$echo_testing_string" = 'X\t' &&
657	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658	   test "X$echo_testing_string" = "X$echo_test_string"; then
659	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660	export CONFIG_SHELL
661	SHELL="$CONFIG_SHELL"
662	export SHELL
663	echo="$CONFIG_SHELL $0 --fallback-echo"
664      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665	   test "X$echo_testing_string" = 'X\t' &&
666	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667	   test "X$echo_testing_string" = "X$echo_test_string"; then
668	echo="$CONFIG_SHELL $0 --fallback-echo"
669      else
670	# maybe with a smaller string...
671	prev=:
672
673	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675	  then
676	    break
677	  fi
678	  prev="$cmd"
679	done
680
681	if test "$prev" != 'sed 50q "$0"'; then
682	  echo_test_string=`eval $prev`
683	  export echo_test_string
684	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685	else
686	  # Oops.  We lost completely, so just stick with echo.
687	  echo=echo
688	fi
689      fi
690    fi
691  fi
692fi
693fi
694
695# Copy echo and quote the copy suitably for passing to libtool from
696# the Makefile, instead of quoting the original, which is used later.
697ECHO=$echo
698if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700fi
701
702
703
704
705tagnames=${tagnames+${tagnames},}CXX
706
707tagnames=${tagnames+${tagnames},}F77
708
709exec 7<&0 </dev/null 6>&1
710
711# Name of the host.
712# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713# so uname gets run too.
714ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
716#
717# Initializations.
718#
719ac_default_prefix=/usr/local
720ac_clean_files=
721ac_config_libobj_dir=.
722LIBOBJS=
723cross_compiling=no
724subdirs=
725MFLAGS=
726MAKEFLAGS=
727SHELL=${CONFIG_SHELL-/bin/sh}
728
729# Identity of this package.
730PACKAGE_NAME='GP parity example'
731PACKAGE_TARNAME='parity'
732PACKAGE_VERSION='3.0.0'
733PACKAGE_STRING='GP parity example 3.0.0'
734PACKAGE_BUGREPORT='cgagne@gmail.com'
735
736ac_unique_file="parity/ParityEvalOp.cpp"
737# Factoring default headers for most tests.
738ac_includes_default="\
739#include <stdio.h>
740#ifdef HAVE_SYS_TYPES_H
741# include <sys/types.h>
742#endif
743#ifdef HAVE_SYS_STAT_H
744# include <sys/stat.h>
745#endif
746#ifdef STDC_HEADERS
747# include <stdlib.h>
748# include <stddef.h>
749#else
750# ifdef HAVE_STDLIB_H
751#  include <stdlib.h>
752# endif
753#endif
754#ifdef HAVE_STRING_H
755# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756#  include <memory.h>
757# endif
758# include <string.h>
759#endif
760#ifdef HAVE_STRINGS_H
761# include <strings.h>
762#endif
763#ifdef HAVE_INTTYPES_H
764# include <inttypes.h>
765#endif
766#ifdef HAVE_STDINT_H
767# include <stdint.h>
768#endif
769#ifdef HAVE_UNISTD_H
770# include <unistd.h>
771#endif"
772
773ac_subst_vars='SHELL
774PATH_SEPARATOR
775PACKAGE_NAME
776PACKAGE_TARNAME
777PACKAGE_VERSION
778PACKAGE_STRING
779PACKAGE_BUGREPORT
780exec_prefix
781prefix
782program_transform_name
783bindir
784sbindir
785libexecdir
786datarootdir
787datadir
788sysconfdir
789sharedstatedir
790localstatedir
791includedir
792oldincludedir
793docdir
794infodir
795htmldir
796dvidir
797pdfdir
798psdir
799libdir
800localedir
801mandir
802DEFS
803ECHO_C
804ECHO_N
805ECHO_T
806LIBS
807build_alias
808host_alias
809target_alias
810INSTALL_PROGRAM
811INSTALL_SCRIPT
812INSTALL_DATA
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821AMTAR
822install_sh
823STRIP
824INSTALL_STRIP_PROGRAM
825mkdir_p
826AWK
827SET_MAKE
828am__leading_dot
829CXX
830CXXFLAGS
831LDFLAGS
832CPPFLAGS
833ac_ct_CXX
834EXEEXT
835OBJEXT
836DEPDIR
837am__include
838am__quote
839AMDEP_TRUE
840AMDEP_FALSE
841AMDEPBACKSLASH
842CXXDEPMODE
843am__fastdepCXX_TRUE
844am__fastdepCXX_FALSE
845CXXCPP
846LN_S
847build
848build_cpu
849build_vendor
850build_os
851host
852host_cpu
853host_vendor
854host_os
855CC
856CFLAGS
857ac_ct_CC
858CCDEPMODE
859am__fastdepCC_TRUE
860am__fastdepCC_FALSE
861GREP
862EGREP
863ECHO
864AR
865RANLIB
866CPP
867F77
868FFLAGS
869ac_ct_F77
870LIBTOOL
871PTHREAD_CC
872PTHREAD_LIBS
873PTHREAD_CFLAGS
874LIBOBJS
875LTLIBOBJS'
876ac_subst_files=''
877      ac_precious_vars='build_alias
878host_alias
879target_alias
880CXX
881CXXFLAGS
882LDFLAGS
883LIBS
884CPPFLAGS
885CCC
886CXXCPP
887CC
888CFLAGS
889CPP
890F77
891FFLAGS'
892
893
894# Initialize some variables set by options.
895ac_init_help=
896ac_init_version=false
897# The variables have the same names as the options, with
898# dashes changed to underlines.
899cache_file=/dev/null
900exec_prefix=NONE
901no_create=
902no_recursion=
903prefix=NONE
904program_prefix=NONE
905program_suffix=NONE
906program_transform_name=s,x,x,
907silent=
908site=
909srcdir=
910verbose=
911x_includes=NONE
912x_libraries=NONE
913
914# Installation directory options.
915# These are left unexpanded so users can "make install exec_prefix=/foo"
916# and all the variables that are supposed to be based on exec_prefix
917# by default will actually change.
918# Use braces instead of parens because sh, perl, etc. also accept them.
919# (The list follows the same order as the GNU Coding Standards.)
920bindir='${exec_prefix}/bin'
921sbindir='${exec_prefix}/sbin'
922libexecdir='${exec_prefix}/libexec'
923datarootdir='${prefix}/share'
924datadir='${datarootdir}'
925sysconfdir='${prefix}/etc'
926sharedstatedir='${prefix}/com'
927localstatedir='${prefix}/var'
928includedir='${prefix}/include'
929oldincludedir='/usr/include'
930docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
931infodir='${datarootdir}/info'
932htmldir='${docdir}'
933dvidir='${docdir}'
934pdfdir='${docdir}'
935psdir='${docdir}'
936libdir='${exec_prefix}/lib'
937localedir='${datarootdir}/locale'
938mandir='${datarootdir}/man'
939
940ac_prev=
941ac_dashdash=
942for ac_option
943do
944  # If the previous option needs an argument, assign it.
945  if test -n "$ac_prev"; then
946    eval $ac_prev=\$ac_option
947    ac_prev=
948    continue
949  fi
950
951  case $ac_option in
952  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953  *)	ac_optarg=yes ;;
954  esac
955
956  # Accept the important Cygnus configure options, so we can diagnose typos.
957
958  case $ac_dashdash$ac_option in
959  --)
960    ac_dashdash=yes ;;
961
962  -bindir | --bindir | --bindi | --bind | --bin | --bi)
963    ac_prev=bindir ;;
964  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965    bindir=$ac_optarg ;;
966
967  -build | --build | --buil | --bui | --bu)
968    ac_prev=build_alias ;;
969  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970    build_alias=$ac_optarg ;;
971
972  -cache-file | --cache-file | --cache-fil | --cache-fi \
973  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974    ac_prev=cache_file ;;
975  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977    cache_file=$ac_optarg ;;
978
979  --config-cache | -C)
980    cache_file=config.cache ;;
981
982  -datadir | --datadir | --datadi | --datad)
983    ac_prev=datadir ;;
984  -datadir=* | --datadir=* | --datadi=* | --datad=*)
985    datadir=$ac_optarg ;;
986
987  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988  | --dataroo | --dataro | --datar)
989    ac_prev=datarootdir ;;
990  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992    datarootdir=$ac_optarg ;;
993
994  -disable-* | --disable-*)
995    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996    # Reject names that are not valid shell variable names.
997    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
998      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
999   { (exit 1); exit 1; }; }
1000    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1001    eval enable_$ac_feature=no ;;
1002
1003  -docdir | --docdir | --docdi | --doc | --do)
1004    ac_prev=docdir ;;
1005  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006    docdir=$ac_optarg ;;
1007
1008  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009    ac_prev=dvidir ;;
1010  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011    dvidir=$ac_optarg ;;
1012
1013  -enable-* | --enable-*)
1014    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015    # Reject names that are not valid shell variable names.
1016    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1017      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1018   { (exit 1); exit 1; }; }
1019    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1020    eval enable_$ac_feature=\$ac_optarg ;;
1021
1022  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024  | --exec | --exe | --ex)
1025    ac_prev=exec_prefix ;;
1026  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028  | --exec=* | --exe=* | --ex=*)
1029    exec_prefix=$ac_optarg ;;
1030
1031  -gas | --gas | --ga | --g)
1032    # Obsolete; use --with-gas.
1033    with_gas=yes ;;
1034
1035  -help | --help | --hel | --he | -h)
1036    ac_init_help=long ;;
1037  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038    ac_init_help=recursive ;;
1039  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040    ac_init_help=short ;;
1041
1042  -host | --host | --hos | --ho)
1043    ac_prev=host_alias ;;
1044  -host=* | --host=* | --hos=* | --ho=*)
1045    host_alias=$ac_optarg ;;
1046
1047  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048    ac_prev=htmldir ;;
1049  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050  | --ht=*)
1051    htmldir=$ac_optarg ;;
1052
1053  -includedir | --includedir | --includedi | --included | --include \
1054  | --includ | --inclu | --incl | --inc)
1055    ac_prev=includedir ;;
1056  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057  | --includ=* | --inclu=* | --incl=* | --inc=*)
1058    includedir=$ac_optarg ;;
1059
1060  -infodir | --infodir | --infodi | --infod | --info | --inf)
1061    ac_prev=infodir ;;
1062  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063    infodir=$ac_optarg ;;
1064
1065  -libdir | --libdir | --libdi | --libd)
1066    ac_prev=libdir ;;
1067  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068    libdir=$ac_optarg ;;
1069
1070  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071  | --libexe | --libex | --libe)
1072    ac_prev=libexecdir ;;
1073  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074  | --libexe=* | --libex=* | --libe=*)
1075    libexecdir=$ac_optarg ;;
1076
1077  -localedir | --localedir | --localedi | --localed | --locale)
1078    ac_prev=localedir ;;
1079  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080    localedir=$ac_optarg ;;
1081
1082  -localstatedir | --localstatedir | --localstatedi | --localstated \
1083  | --localstate | --localstat | --localsta | --localst | --locals)
1084    ac_prev=localstatedir ;;
1085  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087    localstatedir=$ac_optarg ;;
1088
1089  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090    ac_prev=mandir ;;
1091  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092    mandir=$ac_optarg ;;
1093
1094  -nfp | --nfp | --nf)
1095    # Obsolete; use --without-fp.
1096    with_fp=no ;;
1097
1098  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099  | --no-cr | --no-c | -n)
1100    no_create=yes ;;
1101
1102  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104    no_recursion=yes ;;
1105
1106  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108  | --oldin | --oldi | --old | --ol | --o)
1109    ac_prev=oldincludedir ;;
1110  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113    oldincludedir=$ac_optarg ;;
1114
1115  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116    ac_prev=prefix ;;
1117  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118    prefix=$ac_optarg ;;
1119
1120  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121  | --program-pre | --program-pr | --program-p)
1122    ac_prev=program_prefix ;;
1123  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125    program_prefix=$ac_optarg ;;
1126
1127  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128  | --program-suf | --program-su | --program-s)
1129    ac_prev=program_suffix ;;
1130  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132    program_suffix=$ac_optarg ;;
1133
1134  -program-transform-name | --program-transform-name \
1135  | --program-transform-nam | --program-transform-na \
1136  | --program-transform-n | --program-transform- \
1137  | --program-transform | --program-transfor \
1138  | --program-transfo | --program-transf \
1139  | --program-trans | --program-tran \
1140  | --progr-tra | --program-tr | --program-t)
1141    ac_prev=program_transform_name ;;
1142  -program-transform-name=* | --program-transform-name=* \
1143  | --program-transform-nam=* | --program-transform-na=* \
1144  | --program-transform-n=* | --program-transform-=* \
1145  | --program-transform=* | --program-transfor=* \
1146  | --program-transfo=* | --program-transf=* \
1147  | --program-trans=* | --program-tran=* \
1148  | --progr-tra=* | --program-tr=* | --program-t=*)
1149    program_transform_name=$ac_optarg ;;
1150
1151  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152    ac_prev=pdfdir ;;
1153  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154    pdfdir=$ac_optarg ;;
1155
1156  -psdir | --psdir | --psdi | --psd | --ps)
1157    ac_prev=psdir ;;
1158  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159    psdir=$ac_optarg ;;
1160
1161  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162  | -silent | --silent | --silen | --sile | --sil)
1163    silent=yes ;;
1164
1165  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166    ac_prev=sbindir ;;
1167  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168  | --sbi=* | --sb=*)
1169    sbindir=$ac_optarg ;;
1170
1171  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173  | --sharedst | --shareds | --shared | --share | --shar \
1174  | --sha | --sh)
1175    ac_prev=sharedstatedir ;;
1176  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179  | --sha=* | --sh=*)
1180    sharedstatedir=$ac_optarg ;;
1181
1182  -site | --site | --sit)
1183    ac_prev=site ;;
1184  -site=* | --site=* | --sit=*)
1185    site=$ac_optarg ;;
1186
1187  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188    ac_prev=srcdir ;;
1189  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190    srcdir=$ac_optarg ;;
1191
1192  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193  | --syscon | --sysco | --sysc | --sys | --sy)
1194    ac_prev=sysconfdir ;;
1195  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197    sysconfdir=$ac_optarg ;;
1198
1199  -target | --target | --targe | --targ | --tar | --ta | --t)
1200    ac_prev=target_alias ;;
1201  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202    target_alias=$ac_optarg ;;
1203
1204  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205    verbose=yes ;;
1206
1207  -version | --version | --versio | --versi | --vers | -V)
1208    ac_init_version=: ;;
1209
1210  -with-* | --with-*)
1211    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212    # Reject names that are not valid shell variable names.
1213    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214      { echo "$as_me: error: invalid package name: $ac_package" >&2
1215   { (exit 1); exit 1; }; }
1216    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1217    eval with_$ac_package=\$ac_optarg ;;
1218
1219  -without-* | --without-*)
1220    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221    # Reject names that are not valid shell variable names.
1222    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223      { echo "$as_me: error: invalid package name: $ac_package" >&2
1224   { (exit 1); exit 1; }; }
1225    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226    eval with_$ac_package=no ;;
1227
1228  --x)
1229    # Obsolete; use --with-x.
1230    with_x=yes ;;
1231
1232  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233  | --x-incl | --x-inc | --x-in | --x-i)
1234    ac_prev=x_includes ;;
1235  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237    x_includes=$ac_optarg ;;
1238
1239  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241    ac_prev=x_libraries ;;
1242  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244    x_libraries=$ac_optarg ;;
1245
1246  -*) { echo "$as_me: error: unrecognized option: $ac_option
1247Try \`$0 --help' for more information." >&2
1248   { (exit 1); exit 1; }; }
1249    ;;
1250
1251  *=*)
1252    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253    # Reject names that are not valid shell variable names.
1254    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1255      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1256   { (exit 1); exit 1; }; }
1257    eval $ac_envvar=\$ac_optarg
1258    export $ac_envvar ;;
1259
1260  *)
1261    # FIXME: should be removed in autoconf 3.0.
1262    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1266    ;;
1267
1268  esac
1269done
1270
1271if test -n "$ac_prev"; then
1272  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273  { echo "$as_me: error: missing argument to $ac_option" >&2
1274   { (exit 1); exit 1; }; }
1275fi
1276
1277# Be sure to have absolute directory names.
1278for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279		datadir sysconfdir sharedstatedir localstatedir includedir \
1280		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281		libdir localedir mandir
1282do
1283  eval ac_val=\$$ac_var
1284  case $ac_val in
1285    [\\/$]* | ?:[\\/]* )  continue;;
1286    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287  esac
1288  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1289   { (exit 1); exit 1; }; }
1290done
1291
1292# There might be people who depend on the old broken behavior: `$host'
1293# used to hold the argument of --host etc.
1294# FIXME: To remove some day.
1295build=$build_alias
1296host=$host_alias
1297target=$target_alias
1298
1299# FIXME: To remove some day.
1300if test "x$host_alias" != x; then
1301  if test "x$build_alias" = x; then
1302    cross_compiling=maybe
1303    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1304    If a cross compiler is detected then cross compile mode will be used." >&2
1305  elif test "x$build_alias" != "x$host_alias"; then
1306    cross_compiling=yes
1307  fi
1308fi
1309
1310ac_tool_prefix=
1311test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313test "$silent" = yes && exec 6>/dev/null
1314
1315
1316ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317ac_ls_di=`ls -di .` &&
1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319  { echo "$as_me: error: Working directory cannot be determined" >&2
1320   { (exit 1); exit 1; }; }
1321test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322  { echo "$as_me: error: pwd does not report name of working directory" >&2
1323   { (exit 1); exit 1; }; }
1324
1325
1326# Find the source files, if location was not specified.
1327if test -z "$srcdir"; then
1328  ac_srcdir_defaulted=yes
1329  # Try the directory containing this script, then the parent directory.
1330  ac_confdir=`$as_dirname -- "$0" ||
1331$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1332	 X"$0" : 'X\(//\)[^/]' \| \
1333	 X"$0" : 'X\(//\)$' \| \
1334	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1335echo X"$0" |
1336    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1337	    s//\1/
1338	    q
1339	  }
1340	  /^X\(\/\/\)[^/].*/{
1341	    s//\1/
1342	    q
1343	  }
1344	  /^X\(\/\/\)$/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\).*/{
1349	    s//\1/
1350	    q
1351	  }
1352	  s/.*/./; q'`
1353  srcdir=$ac_confdir
1354  if test ! -r "$srcdir/$ac_unique_file"; then
1355    srcdir=..
1356  fi
1357else
1358  ac_srcdir_defaulted=no
1359fi
1360if test ! -r "$srcdir/$ac_unique_file"; then
1361  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1362  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1363   { (exit 1); exit 1; }; }
1364fi
1365ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1366ac_abs_confdir=`(
1367	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1368   { (exit 1); exit 1; }; }
1369	pwd)`
1370# When building in place, set srcdir=.
1371if test "$ac_abs_confdir" = "$ac_pwd"; then
1372  srcdir=.
1373fi
1374# Remove unnecessary trailing slashes from srcdir.
1375# Double slashes in file names in object file debugging info
1376# mess up M-x gdb in Emacs.
1377case $srcdir in
1378*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379esac
1380for ac_var in $ac_precious_vars; do
1381  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382  eval ac_env_${ac_var}_value=\$${ac_var}
1383  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385done
1386
1387#
1388# Report the --help message.
1389#
1390if test "$ac_init_help" = "long"; then
1391  # Omit some internal or obsolete options to make the list less imposing.
1392  # This message is too long to be a string in the A/UX 3.1 sh.
1393  cat <<_ACEOF
1394\`configure' configures GP parity example 3.0.0 to adapt to many kinds of systems.
1395
1396Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399VAR=VALUE.  See below for descriptions of some of the useful variables.
1400
1401Defaults for the options are specified in brackets.
1402
1403Configuration:
1404  -h, --help              display this help and exit
1405      --help=short        display options specific to this package
1406      --help=recursive    display the short help of all the included packages
1407  -V, --version           display version information and exit
1408  -q, --quiet, --silent   do not print \`checking...' messages
1409      --cache-file=FILE   cache test results in FILE [disabled]
1410  -C, --config-cache      alias for \`--cache-file=config.cache'
1411  -n, --no-create         do not create output files
1412      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1413
1414Installation directories:
1415  --prefix=PREFIX         install architecture-independent files in PREFIX
1416			  [$ac_default_prefix]
1417  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1418			  [PREFIX]
1419
1420By default, \`make install' will install all the files in
1421\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1422an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423for instance \`--prefix=\$HOME'.
1424
1425For better control, use the options below.
1426
1427Fine tuning of the installation directories:
1428  --bindir=DIR           user executables [EPREFIX/bin]
1429  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1430  --libexecdir=DIR       program executables [EPREFIX/libexec]
1431  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1432  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1433  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1434  --libdir=DIR           object code libraries [EPREFIX/lib]
1435  --includedir=DIR       C header files [PREFIX/include]
1436  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1437  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1438  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1439  --infodir=DIR          info documentation [DATAROOTDIR/info]
1440  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1441  --mandir=DIR           man documentation [DATAROOTDIR/man]
1442  --docdir=DIR           documentation root [DATAROOTDIR/doc/parity]
1443  --htmldir=DIR          html documentation [DOCDIR]
1444  --dvidir=DIR           dvi documentation [DOCDIR]
1445  --pdfdir=DIR           pdf documentation [DOCDIR]
1446  --psdir=DIR            ps documentation [DOCDIR]
1447_ACEOF
1448
1449  cat <<\_ACEOF
1450
1451Program names:
1452  --program-prefix=PREFIX            prepend PREFIX to installed program names
1453  --program-suffix=SUFFIX            append SUFFIX to installed program names
1454  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1455
1456System types:
1457  --build=BUILD     configure for building on BUILD [guessed]
1458  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1459_ACEOF
1460fi
1461
1462if test -n "$ac_init_help"; then
1463  case $ac_init_help in
1464     short | recursive ) echo "Configuration of GP parity example 3.0.0:";;
1465   esac
1466  cat <<\_ACEOF
1467
1468Optional Features:
1469  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1470  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1471  --disable-dependency-tracking  speeds up one-time build
1472  --enable-dependency-tracking   do not reject slow dependency extractors
1473  --enable-shared[=PKGS]  build shared libraries [default=yes]
1474  --enable-static[=PKGS]  build static libraries [default=yes]
1475  --enable-fast-install[=PKGS]
1476                          optimize for fast installation [default=yes]
1477  --disable-libtool-lock  avoid locking (might break parallel builds)
1478  --enable-optimization    enable optimization mode default=no
1479
1480Optional Packages:
1481  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1482  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1483  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1484  --with-pic              try to use only PIC/non-PIC objects [default=use
1485                          both]
1486  --with-tags[=TAGS]      include additional configurations [automatic]
1487  --with-zlib=DIR root directory path of zlib installation defaults to
1488                    /usr/local or /usr if not found in /usr/local
1489  --without-zlib to disable zlib usage completely
1490  --with-pacc-util=DIR       specify installation path of PACC::Util
1491  --with-pacc-util-include=DIR specify exact dir for PACC::Util headers
1492  --with-pacc-util-libdir=DIR specify exact dir for PACC::Util libraries
1493  --with-pacc-xml=DIR       specify installation path of PACC::XML
1494  --with-pacc-xml-include=DIR specify exact dir for PACC::XML headers
1495  --with-pacc-xml-libdir=DIR specify exact dir for PACC::XML libraries
1496  --with-pacc-math=DIR       specify installation path of PACC::Math
1497  --with-pacc-math-include=DIR specify exact dir for PACC::Math headers
1498  --with-pacc-math-libdir=DIR specify exact dir for PACC::Math libraries
1499  --with-pacc-threading=DIR       specify installation path of PACC::Threading
1500  --with-pacc-threading-include=DIR specify exact dir for PACC::Threading headers
1501  --with-pacc-threading-libdir=DIR specify exact dir for PACC::Threading libraries
1502  --with-beagle=DIR       specify installation path of Open BEAGLE
1503  --with-beagle-include=DIR specify exact dir for Open BEAGLE headers
1504  --with-beagle-GA-include=DIR specify exact dir for Open BEAGLE GA headers
1505  --with-beagle-GP-include=DIR specify exact dir for Open BEAGLE GP headers
1506  --with-beagle-Coev-include=DIR specify exact dir for Open BEAGLE co-evolution headers
1507  --with-beagle-libdir=DIR specify exact dir for Open BEAGLE libraries
1508  --with-beagle-GA-libdir=DIR specify exact dir for Open BEAGLE GA libraries
1509  --with-beagle-GP-libdir=DIR specify exact dir for Open BEAGLE GP libraries
1510  --with-beagle-Coev-libdir=DIR specify exact dir for Open BEAGLE co-evolution libraries
1511
1512Some influential environment variables:
1513  CXX         C++ compiler command
1514  CXXFLAGS    C++ compiler flags
1515  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1516              nonstandard directory <lib dir>
1517  LIBS        libraries to pass to the linker, e.g. -l<library>
1518  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1519              you have headers in a nonstandard directory <include dir>
1520  CXXCPP      C++ preprocessor
1521  CC          C compiler command
1522  CFLAGS      C compiler flags
1523  CPP         C preprocessor
1524  F77         Fortran 77 compiler command
1525  FFLAGS      Fortran 77 compiler flags
1526
1527Use these variables to override the choices made by `configure' or to help
1528it to find libraries and programs with nonstandard names/locations.
1529
1530Report bugs to <cgagne@gmail.com>.
1531_ACEOF
1532ac_status=$?
1533fi
1534
1535if test "$ac_init_help" = "recursive"; then
1536  # If there are subdirs, report their specific --help.
1537  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538    test -d "$ac_dir" || continue
1539    ac_builddir=.
1540
1541case "$ac_dir" in
1542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543*)
1544  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1545  # A ".." for each directory in $ac_dir_suffix.
1546  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1547  case $ac_top_builddir_sub in
1548  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550  esac ;;
1551esac
1552ac_abs_top_builddir=$ac_pwd
1553ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554# for backward compatibility:
1555ac_top_builddir=$ac_top_build_prefix
1556
1557case $srcdir in
1558  .)  # We are building in place.
1559    ac_srcdir=.
1560    ac_top_srcdir=$ac_top_builddir_sub
1561    ac_abs_top_srcdir=$ac_pwd ;;
1562  [\\/]* | ?:[\\/]* )  # Absolute name.
1563    ac_srcdir=$srcdir$ac_dir_suffix;
1564    ac_top_srcdir=$srcdir
1565    ac_abs_top_srcdir=$srcdir ;;
1566  *) # Relative name.
1567    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568    ac_top_srcdir=$ac_top_build_prefix$srcdir
1569    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570esac
1571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573    cd "$ac_dir" || { ac_status=$?; continue; }
1574    # Check for guested configure.
1575    if test -f "$ac_srcdir/configure.gnu"; then
1576      echo &&
1577      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578    elif test -f "$ac_srcdir/configure"; then
1579      echo &&
1580      $SHELL "$ac_srcdir/configure" --help=recursive
1581    else
1582      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583    fi || ac_status=$?
1584    cd "$ac_pwd" || { ac_status=$?; break; }
1585  done
1586fi
1587
1588test -n "$ac_init_help" && exit $ac_status
1589if $ac_init_version; then
1590  cat <<\_ACEOF
1591GP parity example configure 3.0.0
1592generated by GNU Autoconf 2.61
1593
1594Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15952002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1596This configure script is free software; the Free Software Foundation
1597gives unlimited permission to copy, distribute and modify it.
1598_ACEOF
1599  exit
1600fi
1601cat >config.log <<_ACEOF
1602This file contains any messages produced by compilers while
1603running configure, to aid debugging if configure makes a mistake.
1604
1605It was created by GP parity example $as_me 3.0.0, which was
1606generated by GNU Autoconf 2.61.  Invocation command line was
1607
1608  $ $0 $@
1609
1610_ACEOF
1611exec 5>>config.log
1612{
1613cat <<_ASUNAME
1614## --------- ##
1615## Platform. ##
1616## --------- ##
1617
1618hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1619uname -m = `(uname -m) 2>/dev/null || echo unknown`
1620uname -r = `(uname -r) 2>/dev/null || echo unknown`
1621uname -s = `(uname -s) 2>/dev/null || echo unknown`
1622uname -v = `(uname -v) 2>/dev/null || echo unknown`
1623
1624/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1625/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1626
1627/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1628/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1629/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1630/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1631/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1632/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1633/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1634
1635_ASUNAME
1636
1637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638for as_dir in $PATH
1639do
1640  IFS=$as_save_IFS
1641  test -z "$as_dir" && as_dir=.
1642  echo "PATH: $as_dir"
1643done
1644IFS=$as_save_IFS
1645
1646} >&5
1647
1648cat >&5 <<_ACEOF
1649
1650
1651## ----------- ##
1652## Core tests. ##
1653## ----------- ##
1654
1655_ACEOF
1656
1657
1658# Keep a trace of the command line.
1659# Strip out --no-create and --no-recursion so they do not pile up.
1660# Strip out --silent because we don't want to record it for future runs.
1661# Also quote any args containing shell meta-characters.
1662# Make two passes to allow for proper duplicate-argument suppression.
1663ac_configure_args=
1664ac_configure_args0=
1665ac_configure_args1=
1666ac_must_keep_next=false
1667for ac_pass in 1 2
1668do
1669  for ac_arg
1670  do
1671    case $ac_arg in
1672    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674    | -silent | --silent | --silen | --sile | --sil)
1675      continue ;;
1676    *\'*)
1677      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1678    esac
1679    case $ac_pass in
1680    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1681    2)
1682      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683      if test $ac_must_keep_next = true; then
1684	ac_must_keep_next=false # Got value, back to normal.
1685      else
1686	case $ac_arg in
1687	  *=* | --config-cache | -C | -disable-* | --disable-* \
1688	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690	  | -with-* | --with-* | -without-* | --without-* | --x)
1691	    case "$ac_configure_args0 " in
1692	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1693	    esac
1694	    ;;
1695	  -* ) ac_must_keep_next=true ;;
1696	esac
1697      fi
1698      ac_configure_args="$ac_configure_args '$ac_arg'"
1699      ;;
1700    esac
1701  done
1702done
1703$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1705
1706# When interrupted or exit'd, cleanup temporary files, and complete
1707# config.log.  We remove comments because anyway the quotes in there
1708# would cause problems or look ugly.
1709# WARNING: Use '\'' to represent an apostrophe within the trap.
1710# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711trap 'exit_status=$?
1712  # Save into config.log some information that might help in debugging.
1713  {
1714    echo
1715
1716    cat <<\_ASBOX
1717## ---------------- ##
1718## Cache variables. ##
1719## ---------------- ##
1720_ASBOX
1721    echo
1722    # The following way of writing the cache mishandles newlines in values,
1723(
1724  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1725    eval ac_val=\$$ac_var
1726    case $ac_val in #(
1727    *${as_nl}*)
1728      case $ac_var in #(
1729      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1730echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1731      esac
1732      case $ac_var in #(
1733      _ | IFS | as_nl) ;; #(
1734      *) $as_unset $ac_var ;;
1735      esac ;;
1736    esac
1737  done
1738  (set) 2>&1 |
1739    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1740    *${as_nl}ac_space=\ *)
1741      sed -n \
1742	"s/'\''/'\''\\\\'\'''\''/g;
1743	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1744      ;; #(
1745    *)
1746      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1747      ;;
1748    esac |
1749    sort
1750)
1751    echo
1752
1753    cat <<\_ASBOX
1754## ----------------- ##
1755## Output variables. ##
1756## ----------------- ##
1757_ASBOX
1758    echo
1759    for ac_var in $ac_subst_vars
1760    do
1761      eval ac_val=\$$ac_var
1762      case $ac_val in
1763      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764      esac
1765      echo "$ac_var='\''$ac_val'\''"
1766    done | sort
1767    echo
1768
1769    if test -n "$ac_subst_files"; then
1770      cat <<\_ASBOX
1771## ------------------- ##
1772## File substitutions. ##
1773## ------------------- ##
1774_ASBOX
1775      echo
1776      for ac_var in $ac_subst_files
1777      do
1778	eval ac_val=\$$ac_var
1779	case $ac_val in
1780	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1781	esac
1782	echo "$ac_var='\''$ac_val'\''"
1783      done | sort
1784      echo
1785    fi
1786
1787    if test -s confdefs.h; then
1788      cat <<\_ASBOX
1789## ----------- ##
1790## confdefs.h. ##
1791## ----------- ##
1792_ASBOX
1793      echo
1794      cat confdefs.h
1795      echo
1796    fi
1797    test "$ac_signal" != 0 &&
1798      echo "$as_me: caught signal $ac_signal"
1799    echo "$as_me: exit $exit_status"
1800  } >&5
1801  rm -f core *.core core.conftest.* &&
1802    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1803    exit $exit_status
1804' 0
1805for ac_signal in 1 2 13 15; do
1806  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1807done
1808ac_signal=0
1809
1810# confdefs.h avoids OS command line length limits that DEFS can exceed.
1811rm -f -r conftest* confdefs.h
1812
1813# Predefined preprocessor variables.
1814
1815cat >>confdefs.h <<_ACEOF
1816#define PACKAGE_NAME "$PACKAGE_NAME"
1817_ACEOF
1818
1819
1820cat >>confdefs.h <<_ACEOF
1821#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1822_ACEOF
1823
1824
1825cat >>confdefs.h <<_ACEOF
1826#define PACKAGE_VERSION "$PACKAGE_VERSION"
1827_ACEOF
1828
1829
1830cat >>confdefs.h <<_ACEOF
1831#define PACKAGE_STRING "$PACKAGE_STRING"
1832_ACEOF
1833
1834
1835cat >>confdefs.h <<_ACEOF
1836#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1837_ACEOF
1838
1839
1840# Let the site file select an alternate cache file if it wants to.
1841# Prefer explicitly selected file to automatically selected ones.
1842if test -n "$CONFIG_SITE"; then
1843  set x "$CONFIG_SITE"
1844elif test "x$prefix" != xNONE; then
1845  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1846else
1847  set x "$ac_default_prefix/share/config.site" \
1848	"$ac_default_prefix/etc/config.site"
1849fi
1850shift
1851for ac_site_file
1852do
1853  if test -r "$ac_site_file"; then
1854    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1855echo "$as_me: loading site script $ac_site_file" >&6;}
1856    sed 's/^/| /' "$ac_site_file" >&5
1857    . "$ac_site_file"
1858  fi
1859done
1860
1861if test -r "$cache_file"; then
1862  # Some versions of bash will fail to source /dev/null (special
1863  # files actually), so we avoid doing that.
1864  if test -f "$cache_file"; then
1865    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1866echo "$as_me: loading cache $cache_file" >&6;}
1867    case $cache_file in
1868      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1869      *)                      . "./$cache_file";;
1870    esac
1871  fi
1872else
1873  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1874echo "$as_me: creating cache $cache_file" >&6;}
1875  >$cache_file
1876fi
1877
1878# Check that the precious variables saved in the cache have kept the same
1879# value.
1880ac_cache_corrupted=false
1881for ac_var in $ac_precious_vars; do
1882  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1883  eval ac_new_set=\$ac_env_${ac_var}_set
1884  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1885  eval ac_new_val=\$ac_env_${ac_var}_value
1886  case $ac_old_set,$ac_new_set in
1887    set,)
1888      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1889echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1890      ac_cache_corrupted=: ;;
1891    ,set)
1892      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1893echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1894      ac_cache_corrupted=: ;;
1895    ,);;
1896    *)
1897      if test "x$ac_old_val" != "x$ac_new_val"; then
1898	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1899echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1900	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1901echo "$as_me:   former value:  $ac_old_val" >&2;}
1902	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1903echo "$as_me:   current value: $ac_new_val" >&2;}
1904	ac_cache_corrupted=:
1905      fi;;
1906  esac
1907  # Pass precious variables to config.status.
1908  if test "$ac_new_set" = set; then
1909    case $ac_new_val in
1910    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1911    *) ac_arg=$ac_var=$ac_new_val ;;
1912    esac
1913    case " $ac_configure_args " in
1914      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1915      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916    esac
1917  fi
1918done
1919if $ac_cache_corrupted; then
1920  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1921echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1922  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1923echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1924   { (exit 1); exit 1; }; }
1925fi
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951ac_ext=c
1952ac_cpp='$CPP $CPPFLAGS'
1953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956
1957
1958
1959ac_aux_dir=
1960for ac_dir in config "$srcdir"/config; do
1961  if test -f "$ac_dir/install-sh"; then
1962    ac_aux_dir=$ac_dir
1963    ac_install_sh="$ac_aux_dir/install-sh -c"
1964    break
1965  elif test -f "$ac_dir/install.sh"; then
1966    ac_aux_dir=$ac_dir
1967    ac_install_sh="$ac_aux_dir/install.sh -c"
1968    break
1969  elif test -f "$ac_dir/shtool"; then
1970    ac_aux_dir=$ac_dir
1971    ac_install_sh="$ac_aux_dir/shtool install -c"
1972    break
1973  fi
1974done
1975if test -z "$ac_aux_dir"; then
1976  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1977echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1978   { (exit 1); exit 1; }; }
1979fi
1980
1981# These three variables are undocumented and unsupported,
1982# and are intended to be withdrawn in a future Autoconf release.
1983# They can cause serious problems if a builder's source tree is in a directory
1984# whose full name contains unusual characters.
1985ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1986ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1987ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1988
1989
1990
1991am__api_version="1.8"
1992# Find a good install program.  We prefer a C program (faster),
1993# so one script is as good as another.  But avoid the broken or
1994# incompatible versions:
1995# SysV /etc/install, /usr/sbin/install
1996# SunOS /usr/etc/install
1997# IRIX /sbin/install
1998# AIX /bin/install
1999# AmigaOS /C/install, which installs bootblocks on floppy discs
2000# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2001# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2002# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2003# OS/2's system install, which has a completely different semantic
2004# ./install, which can be erroneously created by make from ./install.sh.
2005{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2006echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2007if test -z "$INSTALL"; then
2008if test "${ac_cv_path_install+set}" = set; then
2009  echo $ECHO_N "(cached) $ECHO_C" >&6
2010else
2011  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012for as_dir in $PATH
2013do
2014  IFS=$as_save_IFS
2015  test -z "$as_dir" && as_dir=.
2016  # Account for people who put trailing slashes in PATH elements.
2017case $as_dir/ in
2018  ./ | .// | /cC/* | \
2019  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2020  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2021  /usr/ucb/* ) ;;
2022  *)
2023    # OSF1 and SCO ODT 3.0 have their own names for install.
2024    # Don't use installbsd from OSF since it installs stuff as root
2025    # by default.
2026    for ac_prog in ginstall scoinst install; do
2027      for ac_exec_ext in '' $ac_executable_extensions; do
2028	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2029	  if test $ac_prog = install &&
2030	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2031	    # AIX install.  It has an incompatible calling convention.
2032	    :
2033	  elif test $ac_prog = install &&
2034	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2035	    # program-specific install script used by HP pwplus--don't use.
2036	    :
2037	  else
2038	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2039	    break 3
2040	  fi
2041	fi
2042      done
2043    done
2044    ;;
2045esac
2046done
2047IFS=$as_save_IFS
2048
2049
2050fi
2051  if test "${ac_cv_path_install+set}" = set; then
2052    INSTALL=$ac_cv_path_install
2053  else
2054    # As a last resort, use the slow shell script.  Don't cache a
2055    # value for INSTALL within a source directory, because that will
2056    # break other packages using the cache if that directory is
2057    # removed, or if the value is a relative name.
2058    INSTALL=$ac_install_sh
2059  fi
2060fi
2061{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2062echo "${ECHO_T}$INSTALL" >&6; }
2063
2064# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2065# It thinks the first close brace ends the variable substitution.
2066test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2067
2068test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2069
2070test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2071
2072{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2073echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2074# Just in case
2075sleep 1
2076echo timestamp > conftest.file
2077# Do `set' in a subshell so we don't clobber the current shell's
2078# arguments.  Must try -L first in case configure is actually a
2079# symlink; some systems play weird games with the mod time of symlinks
2080# (eg FreeBSD returns the mod time of the symlink's containing
2081# directory).
2082if (
2083   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2084   if test "$*" = "X"; then
2085      # -L didn't work.
2086      set X `ls -t $srcdir/configure conftest.file`
2087   fi
2088   rm -f conftest.file
2089   if test "$*" != "X $srcdir/configure conftest.file" \
2090      && test "$*" != "X conftest.file $srcdir/configure"; then
2091
2092      # If neither matched, then we have a broken ls.  This can happen
2093      # if, for instance, CONFIG_SHELL is bash and it inherits a
2094      # broken ls alias from the environment.  This has actually
2095      # happened.  Such a system could not be considered "sane".
2096      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2097alias in your environment" >&5
2098echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2099alias in your environment" >&2;}
2100   { (exit 1); exit 1; }; }
2101   fi
2102
2103   test "$2" = conftest.file
2104   )
2105then
2106   # Ok.
2107   :
2108else
2109   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2110Check your system clock" >&5
2111echo "$as_me: error: newly created file is older than distributed files!
2112Check your system clock" >&2;}
2113   { (exit 1); exit 1; }; }
2114fi
2115{ echo "$as_me:$LINENO: result: yes" >&5
2116echo "${ECHO_T}yes" >&6; }
2117test "$program_prefix" != NONE &&
2118  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2119# Use a double $ so make ignores it.
2120test "$program_suffix" != NONE &&
2121  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2122# Double any \ or $.  echo might interpret backslashes.
2123# By default was `s,x,x', remove it if useless.
2124cat <<\_ACEOF >conftest.sed
2125s/[\\$]/&&/g;s/;s,x,x,$//
2126_ACEOF
2127program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2128rm -f conftest.sed
2129
2130# expand $ac_aux_dir to an absolute path
2131am_aux_dir=`cd $ac_aux_dir && pwd`
2132
2133test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2134# Use eval to expand $SHELL
2135if eval "$MISSING --run true"; then
2136  am_missing_run="$MISSING --run "
2137else
2138  am_missing_run=
2139  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2140echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2141fi
2142
2143if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2144  # Keeping the `.' argument allows $(mkdir_p) to be used without
2145  # argument.  Indeed, we sometimes output rules like
2146  #   $(mkdir_p) $(somedir)
2147  # where $(somedir) is conditionally defined.
2148  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2149  # expensive solution, as it forces Make to start a sub-shell.)
2150  mkdir_p='mkdir -p -- .'
2151else
2152  # On NextStep and OpenStep, the `mkdir' command does not
2153  # recognize any option.  It will interpret all options as
2154  # directories to create, and then abort because `.' already
2155  # exists.
2156  for d in ./-p ./--version;
2157  do
2158    test -d $d && rmdir $d
2159  done
2160  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2161  if test -f "$ac_aux_dir/mkinstalldirs"; then
2162    mkdir_p='$(mkinstalldirs)'
2163  else
2164    mkdir_p='$(install_sh) -d'
2165  fi
2166fi
2167
2168for ac_prog in gawk mawk nawk awk
2169do
2170  # Extract the first word of "$ac_prog", so it can be a program name with args.
2171set dummy $ac_prog; ac_word=$2
2172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2174if test "${ac_cv_prog_AWK+set}" = set; then
2175  echo $ECHO_N "(cached) $ECHO_C" >&6
2176else
2177  if test -n "$AWK"; then
2178  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2179else
2180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181for as_dir in $PATH
2182do
2183  IFS=$as_save_IFS
2184  test -z "$as_dir" && as_dir=.
2185  for ac_exec_ext in '' $ac_executable_extensions; do
2186  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2187    ac_cv_prog_AWK="$ac_prog"
2188    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189    break 2
2190  fi
2191done
2192done
2193IFS=$as_save_IFS
2194
2195fi
2196fi
2197AWK=$ac_cv_prog_AWK
2198if test -n "$AWK"; then
2199  { echo "$as_me:$LINENO: result: $AWK" >&5
2200echo "${ECHO_T}$AWK" >&6; }
2201else
2202  { echo "$as_me:$LINENO: result: no" >&5
2203echo "${ECHO_T}no" >&6; }
2204fi
2205
2206
2207  test -n "$AWK" && break
2208done
2209
2210{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2211echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2212set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2213if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2214  echo $ECHO_N "(cached) $ECHO_C" >&6
2215else
2216  cat >conftest.make <<\_ACEOF
2217SHELL = /bin/sh
2218all:
2219	@echo '@@@%%%=$(MAKE)=@@@%%%'
2220_ACEOF
2221# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2222case `${MAKE-make} -f conftest.make 2>/dev/null` in
2223  *@@@%%%=?*=@@@%%%*)
2224    eval ac_cv_prog_make_${ac_make}_set=yes;;
2225  *)
2226    eval ac_cv_prog_make_${ac_make}_set=no;;
2227esac
2228rm -f conftest.make
2229fi
2230if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2231  { echo "$as_me:$LINENO: result: yes" >&5
2232echo "${ECHO_T}yes" >&6; }
2233  SET_MAKE=
2234else
2235  { echo "$as_me:$LINENO: result: no" >&5
2236echo "${ECHO_T}no" >&6; }
2237  SET_MAKE="MAKE=${MAKE-make}"
2238fi
2239
2240rm -rf .tst 2>/dev/null
2241mkdir .tst 2>/dev/null
2242if test -d .tst; then
2243  am__leading_dot=.
2244else
2245  am__leading_dot=_
2246fi
2247rmdir .tst 2>/dev/null
2248
2249# test to see if srcdir already configured
2250if test "`cd $srcdir && pwd`" != "`pwd`" &&
2251   test -f $srcdir/config.status; then
2252  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2253echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2254   { (exit 1); exit 1; }; }
2255fi
2256
2257# test whether we have cygpath
2258if test -z "$CYGPATH_W"; then
2259  if (cygpath --version) >/dev/null 2>/dev/null; then
2260    CYGPATH_W='cygpath -w'
2261  else
2262    CYGPATH_W=echo
2263  fi
2264fi
2265
2266
2267# Define the identity of the package.
2268 PACKAGE='parity'
2269 VERSION='3.0.0'
2270
2271
2272cat >>confdefs.h <<_ACEOF
2273#define PACKAGE "$PACKAGE"
2274_ACEOF
2275
2276
2277cat >>confdefs.h <<_ACEOF
2278#define VERSION "$VERSION"
2279_ACEOF
2280
2281# Some tools Automake needs.
2282
2283ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2284
2285
2286AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2287
2288
2289AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2290
2291
2292AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2293
2294
2295MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2296
2297
2298AMTAR=${AMTAR-"${am_missing_run}tar"}
2299
2300install_sh=${install_sh-"$am_aux_dir/install-sh"}
2301
2302# Installed binaries are usually stripped using `strip' when the user
2303# run `make install-strip'.  However `strip' might not be the right
2304# tool to use in cross-compilation environments, therefore Automake
2305# will honor the `STRIP' environment variable to overrule this program.
2306if test "$cross_compiling" != no; then
2307  if test -n "$ac_tool_prefix"; then
2308  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2309set dummy ${ac_tool_prefix}strip; ac_word=$2
2310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2312if test "${ac_cv_prog_STRIP+set}" = set; then
2313  echo $ECHO_N "(cached) $ECHO_C" >&6
2314else
2315  if test -n "$STRIP"; then
2316  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2317else
2318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319for as_dir in $PATH
2320do
2321  IFS=$as_save_IFS
2322  test -z "$as_dir" && as_dir=.
2323  for ac_exec_ext in '' $ac_executable_extensions; do
2324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2325    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2326    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327    break 2
2328  fi
2329done
2330done
2331IFS=$as_save_IFS
2332
2333fi
2334fi
2335STRIP=$ac_cv_prog_STRIP
2336if test -n "$STRIP"; then
2337  { echo "$as_me:$LINENO: result: $STRIP" >&5
2338echo "${ECHO_T}$STRIP" >&6; }
2339else
2340  { echo "$as_me:$LINENO: result: no" >&5
2341echo "${ECHO_T}no" >&6; }
2342fi
2343
2344
2345fi
2346if test -z "$ac_cv_prog_STRIP"; then
2347  ac_ct_STRIP=$STRIP
2348  # Extract the first word of "strip", so it can be a program name with args.
2349set dummy strip; ac_word=$2
2350{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2353  echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355  if test -n "$ac_ct_STRIP"; then
2356  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2357else
2358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359for as_dir in $PATH
2360do
2361  IFS=$as_save_IFS
2362  test -z "$as_dir" && as_dir=.
2363  for ac_exec_ext in '' $ac_executable_extensions; do
2364  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365    ac_cv_prog_ac_ct_STRIP="strip"
2366    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367    break 2
2368  fi
2369done
2370done
2371IFS=$as_save_IFS
2372
2373fi
2374fi
2375ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2376if test -n "$ac_ct_STRIP"; then
2377  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2378echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2379else
2380  { echo "$as_me:$LINENO: result: no" >&5
2381echo "${ECHO_T}no" >&6; }
2382fi
2383
2384  if test "x$ac_ct_STRIP" = x; then
2385    STRIP=":"
2386  else
2387    case $cross_compiling:$ac_tool_warned in
2388yes:)
2389{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2390whose name does not start with the host triplet.  If you think this
2391configuration is useful to you, please write to autoconf@gnu.org." >&5
2392echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2393whose name does not start with the host triplet.  If you think this
2394configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2395ac_tool_warned=yes ;;
2396esac
2397    STRIP=$ac_ct_STRIP
2398  fi
2399else
2400  STRIP="$ac_cv_prog_STRIP"
2401fi
2402
2403fi
2404INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2405
2406# We need awk for the "check" target.  The system "awk" is bad on
2407# some platforms.
2408
2409
2410
2411ac_config_headers="$ac_config_headers parity/config.hpp:parity/config.hpp.in"
2412
2413
2414for ac_prog in gawk mawk nawk awk
2415do
2416  # Extract the first word of "$ac_prog", so it can be a program name with args.
2417set dummy $ac_prog; ac_word=$2
2418{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2420if test "${ac_cv_prog_AWK+set}" = set; then
2421  echo $ECHO_N "(cached) $ECHO_C" >&6
2422else
2423  if test -n "$AWK"; then
2424  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2425else
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
2429  IFS=$as_save_IFS
2430  test -z "$as_dir" && as_dir=.
2431  for ac_exec_ext in '' $ac_executable_extensions; do
2432  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2433    ac_cv_prog_AWK="$ac_prog"
2434    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435    break 2
2436  fi
2437done
2438done
2439IFS=$as_save_IFS
2440
2441fi
2442fi
2443AWK=$ac_cv_prog_AWK
2444if test -n "$AWK"; then
2445  { echo "$as_me:$LINENO: result: $AWK" >&5
2446echo "${ECHO_T}$AWK" >&6; }
2447else
2448  { echo "$as_me:$LINENO: result: no" >&5
2449echo "${ECHO_T}no" >&6; }
2450fi
2451
2452
2453  test -n "$AWK" && break
2454done
2455
2456ac_ext=cpp
2457ac_cpp='$CXXCPP $CPPFLAGS'
2458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2461if test -z "$CXX"; then
2462  if test -n "$CCC"; then
2463    CXX=$CCC
2464  else
2465    if test -n "$ac_tool_prefix"; then
2466  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2467  do
2468    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2469set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2472if test "${ac_cv_prog_CXX+set}" = set; then
2473  echo $ECHO_N "(cached) $ECHO_C" >&6
2474else
2475  if test -n "$CXX"; then
2476  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2477else
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479for as_dir in $PATH
2480do
2481  IFS=$as_save_IFS
2482  test -z "$as_dir" && as_dir=.
2483  for ac_exec_ext in '' $ac_executable_extensions; do
2484  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2486    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487    break 2
2488  fi
2489done
2490done
2491IFS=$as_save_IFS
2492
2493fi
2494fi
2495CXX=$ac_cv_prog_CXX
2496if test -n "$CXX"; then
2497  { echo "$as_me:$LINENO: result: $CXX" >&5
2498echo "${ECHO_T}$CXX" >&6; }
2499else
2500  { echo "$as_me:$LINENO: result: no" >&5
2501echo "${ECHO_T}no" >&6; }
2502fi
2503
2504
2505    test -n "$CXX" && break
2506  done
2507fi
2508if test -z "$CXX"; then
2509  ac_ct_CXX=$CXX
2510  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2511do
2512  # Extract the first word of "$ac_prog", so it can be a program name with args.
2513set dummy $ac_prog; ac_word=$2
2514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2516if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2517  echo $ECHO_N "(cached) $ECHO_C" >&6
2518else
2519  if test -n "$ac_ct_CXX"; then
2520  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2521else
2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523for as_dir in $PATH
2524do
2525  IFS=$as_save_IFS
2526  test -z "$as_dir" && as_dir=.
2527  for ac_exec_ext in '' $ac_executable_extensions; do
2528  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529    ac_cv_prog_ac_ct_CXX="$ac_prog"
2530    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531    break 2
2532  fi
2533done
2534done
2535IFS=$as_save_IFS
2536
2537fi
2538fi
2539ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2540if test -n "$ac_ct_CXX"; then
2541  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2542echo "${ECHO_T}$ac_ct_CXX" >&6; }
2543else
2544  { echo "$as_me:$LINENO: result: no" >&5
2545echo "${ECHO_T}no" >&6; }
2546fi
2547
2548
2549  test -n "$ac_ct_CXX" && break
2550done
2551
2552  if test "x$ac_ct_CXX" = x; then
2553    CXX="g++"
2554  else
2555    case $cross_compiling:$ac_tool_warned in
2556yes:)
2557{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2558whose name does not start with the host triplet.  If you think this
2559configuration is useful to you, please write to autoconf@gnu.org." >&5
2560echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2561whose name does not start with the host triplet.  If you think this
2562configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2563ac_tool_warned=yes ;;
2564esac
2565    CXX=$ac_ct_CXX
2566  fi
2567fi
2568
2569  fi
2570fi
2571# Provide some information about the compiler.
2572echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2573ac_compiler=`set X $ac_compile; echo $2`
2574{ (ac_try="$ac_compiler --version >&5"
2575case "(($ac_try" in
2576  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577  *) ac_try_echo=$ac_try;;
2578esac
2579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580  (eval "$ac_compiler --version >&5") 2>&5
2581  ac_status=$?
2582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583  (exit $ac_status); }
2584{ (ac_try="$ac_compiler -v >&5"
2585case "(($ac_try" in
2586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587  *) ac_try_echo=$ac_try;;
2588esac
2589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590  (eval "$ac_compiler -v >&5") 2>&5
2591  ac_status=$?
2592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593  (exit $ac_status); }
2594{ (ac_try="$ac_compiler -V >&5"
2595case "(($ac_try" in
2596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597  *) ac_try_echo=$ac_try;;
2598esac
2599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2600  (eval "$ac_compiler -V >&5") 2>&5
2601  ac_status=$?
2602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603  (exit $ac_status); }
2604
2605cat >conftest.$ac_ext <<_ACEOF
2606/* confdefs.h.  */
2607_ACEOF
2608cat confdefs.h >>conftest.$ac_ext
2609cat >>conftest.$ac_ext <<_ACEOF
2610/* end confdefs.h.  */
2611
2612int
2613main ()
2614{
2615
2616  ;
2617  return 0;
2618}
2619_ACEOF
2620ac_clean_files_save=$ac_clean_files
2621ac_clean_files="$ac_clean_files a.out a.exe b.out"
2622# Try to create an executable without -o first, disregard a.out.
2623# It will help us diagnose broken compilers, and finding out an intuition
2624# of exeext.
2625{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2626echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2627ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2628#
2629# List of possible output files, starting from the most likely.
2630# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2631# only as a last resort.  b.out is created by i960 compilers.
2632ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2633#
2634# The IRIX 6 linker writes into existing files which may not be
2635# executable, retaining their permissions.  Remove them first so a
2636# subsequent execution test works.
2637ac_rmfiles=
2638for ac_file in $ac_files
2639do
2640  case $ac_file in
2641    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2642    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2643  esac
2644done
2645rm -f $ac_rmfiles
2646
2647if { (ac_try="$ac_link_default"
2648case "(($ac_try" in
2649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650  *) ac_try_echo=$ac_try;;
2651esac
2652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2653  (eval "$ac_link_default") 2>&5
2654  ac_status=$?
2655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656  (exit $ac_status); }; then
2657  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2658# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2659# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2660# so that the user can short-circuit this test for compilers unknown to
2661# Autoconf.
2662for ac_file in $ac_files ''
2663do
2664  test -f "$ac_file" || continue
2665  case $ac_file in
2666    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2667	;;
2668    [ab].out )
2669	# We found the default executable, but exeext='' is most
2670	# certainly right.
2671	break;;
2672    *.* )
2673        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2674	then :; else
2675	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2676	fi
2677	# We set ac_cv_exeext here because the later test for it is not
2678	# safe: cross compilers may not add the suffix if given an `-o'
2679	# argument, so we may need to know it at that point already.
2680	# Even if this section looks crufty: it has the advantage of
2681	# actually working.
2682	break;;
2683    * )
2684	break;;
2685  esac
2686done
2687test "$ac_cv_exeext" = no && ac_cv_exeext=
2688
2689else
2690  ac_file=''
2691fi
2692
2693{ echo "$as_me:$LINENO: result: $ac_file" >&5
2694echo "${ECHO_T}$ac_file" >&6; }
2695if test -z "$ac_file"; then
2696  echo "$as_me: failed program was:" >&5
2697sed 's/^/| /' conftest.$ac_ext >&5
2698
2699{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2700See \`config.log' for more details." >&5
2701echo "$as_me: error: C++ compiler cannot create executables
2702See \`config.log' for more details." >&2;}
2703   { (exit 77); exit 77; }; }
2704fi
2705
2706ac_exeext=$ac_cv_exeext
2707
2708# Check that the compiler produces executables we can run.  If not, either
2709# the compiler is broken, or we cross compile.
2710{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2711echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2712# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2713# If not cross compiling, check that we can run a simple program.
2714if test "$cross_compiling" != yes; then
2715  if { ac_try='./$ac_file'
2716  { (case "(($ac_try" in
2717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718  *) ac_try_echo=$ac_try;;
2719esac
2720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2721  (eval "$ac_try") 2>&5
2722  ac_status=$?
2723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724  (exit $ac_status); }; }; then
2725    cross_compiling=no
2726  else
2727    if test "$cross_compiling" = maybe; then
2728	cross_compiling=yes
2729    else
2730	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2731If you meant to cross compile, use \`--host'.
2732See \`config.log' for more details." >&5
2733echo "$as_me: error: cannot run C++ compiled programs.
2734If you meant to cross compile, use \`--host'.
2735See \`config.log' for more details." >&2;}
2736   { (exit 1); exit 1; }; }
2737    fi
2738  fi
2739fi
2740{ echo "$as_me:$LINENO: result: yes" >&5
2741echo "${ECHO_T}yes" >&6; }
2742
2743rm -f a.out a.exe conftest$ac_cv_exeext b.out
2744ac_clean_files=$ac_clean_files_save
2745# Check that the compiler produces executables we can run.  If not, either
2746# the compiler is broken, or we cross compile.
2747{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2748echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2749{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2750echo "${ECHO_T}$cross_compiling" >&6; }
2751
2752{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2753echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2754if { (ac_try="$ac_link"
2755case "(($ac_try" in
2756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757  *) ac_try_echo=$ac_try;;
2758esac
2759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760  (eval "$ac_link") 2>&5
2761  ac_status=$?
2762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763  (exit $ac_status); }; then
2764  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2765# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2766# work properly (i.e., refer to `conftest.exe'), while it won't with
2767# `rm'.
2768for ac_file in conftest.exe conftest conftest.*; do
2769  test -f "$ac_file" || continue
2770  case $ac_file in
2771    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2772    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2773	  break;;
2774    * ) break;;
2775  esac
2776done
2777else
2778  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2779See \`config.log' for more details." >&5
2780echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2781See \`config.log' for more details." >&2;}
2782   { (exit 1); exit 1; }; }
2783fi
2784
2785rm -f conftest$ac_cv_exeext
2786{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2787echo "${ECHO_T}$ac_cv_exeext" >&6; }
2788
2789rm -f conftest.$ac_ext
2790EXEEXT=$ac_cv_exeext
2791ac_exeext=$EXEEXT
2792{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2793echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2794if test "${ac_cv_objext+set}" = set; then
2795  echo $ECHO_N "(cached) $ECHO_C" >&6
2796else
2797  cat >conftest.$ac_ext <<_ACEOF
2798/* confdefs.h.  */
2799_ACEOF
2800cat confdefs.h >>conftest.$ac_ext
2801cat >>conftest.$ac_ext <<_ACEOF
2802/* end confdefs.h.  */
2803
2804int
2805main ()
2806{
2807
2808  ;
2809  return 0;
2810}
2811_ACEOF
2812rm -f conftest.o conftest.obj
2813if { (ac_try="$ac_compile"
2814case "(($ac_try" in
2815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816  *) ac_try_echo=$ac_try;;
2817esac
2818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819  (eval "$ac_compile") 2>&5
2820  ac_status=$?
2821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822  (exit $ac_status); }; then
2823  for ac_file in conftest.o conftest.obj conftest.*; do
2824  test -f "$ac_file" || continue;
2825  case $ac_file in
2826    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2827    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2828       break;;
2829  esac
2830done
2831else
2832  echo "$as_me: failed program was:" >&5
2833sed 's/^/| /' conftest.$ac_ext >&5
2834
2835{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2836See \`config.log' for more details." >&5
2837echo "$as_me: error: cannot compute suffix of object files: cannot compile
2838See \`config.log' for more details." >&2;}
2839   { (exit 1); exit 1; }; }
2840fi
2841
2842rm -f conftest.$ac_cv_objext conftest.$ac_ext
2843fi
2844{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2845echo "${ECHO_T}$ac_cv_objext" >&6; }
2846OBJEXT=$ac_cv_objext
2847ac_objext=$OBJEXT
2848{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2849echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2850if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2851  echo $ECHO_N "(cached) $ECHO_C" >&6
2852else
2853  cat >conftest.$ac_ext <<_ACEOF
2854/* confdefs.h.  */
2855_ACEOF
2856cat confdefs.h >>conftest.$ac_ext
2857cat >>conftest.$ac_ext <<_ACEOF
2858/* end confdefs.h.  */
2859
2860int
2861main ()
2862{
2863#ifndef __GNUC__
2864       choke me
2865#endif
2866
2867  ;
2868  return 0;
2869}
2870_ACEOF
2871rm -f conftest.$ac_objext
2872if { (ac_try="$ac_compile"
2873case "(($ac_try" in
2874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875  *) ac_try_echo=$ac_try;;
2876esac
2877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878  (eval "$ac_compile") 2>conftest.er1
2879  ac_status=$?
2880  grep -v '^ *+' conftest.er1 >conftest.err
2881  rm -f conftest.er1
2882  cat conftest.err >&5
2883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884  (exit $ac_status); } && {
2885	 test -z "$ac_cxx_werror_flag" ||
2886	 test ! -s conftest.err
2887       } && test -s conftest.$ac_objext; then
2888  ac_compiler_gnu=yes
2889else
2890  echo "$as_me: failed program was:" >&5
2891sed 's/^/| /' conftest.$ac_ext >&5
2892
2893	ac_compiler_gnu=no
2894fi
2895
2896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2898
2899fi
2900{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2901echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2902GXX=`test $ac_compiler_gnu = yes && echo yes`
2903ac_test_CXXFLAGS=${CXXFLAGS+set}
2904ac_save_CXXFLAGS=$CXXFLAGS
2905{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2906echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2907if test "${ac_cv_prog_cxx_g+set}" = set; then
2908  echo $ECHO_N "(cached) $ECHO_C" >&6
2909else
2910  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2911   ac_cxx_werror_flag=yes
2912   ac_cv_prog_cxx_g=no
2913   CXXFLAGS="-g"
2914   cat >conftest.$ac_ext <<_ACEOF
2915/* confdefs.h.  */
2916_ACEOF
2917cat confdefs.h >>conftest.$ac_ext
2918cat >>conftest.$ac_ext <<_ACEOF
2919/* end confdefs.h.  */
2920
2921int
2922main ()
2923{
2924
2925  ;
2926  return 0;
2927}
2928_ACEOF
2929rm -f conftest.$ac_objext
2930if { (ac_try="$ac_compile"
2931case "(($ac_try" in
2932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933  *) ac_try_echo=$ac_try;;
2934esac
2935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936  (eval "$ac_compile") 2>conftest.er1
2937  ac_status=$?
2938  grep -v '^ *+' conftest.er1 >conftest.err
2939  rm -f conftest.er1
2940  cat conftest.err >&5
2941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942  (exit $ac_status); } && {
2943	 test -z "$ac_cxx_werror_flag" ||
2944	 test ! -s conftest.err
2945       } && test -s conftest.$ac_objext; then
2946  ac_cv_prog_cxx_g=yes
2947else
2948  echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951	CXXFLAGS=""
2952      cat >conftest.$ac_ext <<_ACEOF
2953/* confdefs.h.  */
2954_ACEOF
2955cat confdefs.h >>conftest.$ac_ext
2956cat >>conftest.$ac_ext <<_ACEOF
2957/* end confdefs.h.  */
2958
2959int
2960main ()
2961{
2962
2963  ;
2964  return 0;
2965}
2966_ACEOF
2967rm -f conftest.$ac_objext
2968if { (ac_try="$ac_compile"
2969case "(($ac_try" in
2970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971  *) ac_try_echo=$ac_try;;
2972esac
2973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974  (eval "$ac_compile") 2>conftest.er1
2975  ac_status=$?
2976  grep -v '^ *+' conftest.er1 >conftest.err
2977  rm -f conftest.er1
2978  cat conftest.err >&5
2979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980  (exit $ac_status); } && {
2981	 test -z "$ac_cxx_werror_flag" ||
2982	 test ! -s conftest.err
2983       } && test -s conftest.$ac_objext; then
2984  :
2985else
2986  echo "$as_me: failed program was:" >&5
2987sed 's/^/| /' conftest.$ac_ext >&5
2988
2989	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2990	 CXXFLAGS="-g"
2991	 cat >conftest.$ac_ext <<_ACEOF
2992/* confdefs.h.  */
2993_ACEOF
2994cat confdefs.h >>conftest.$ac_ext
2995cat >>conftest.$ac_ext <<_ACEOF
2996/* end confdefs.h.  */
2997
2998int
2999main ()
3000{
3001
3002  ;
3003  return 0;
3004}
3005_ACEOF
3006rm -f conftest.$ac_objext
3007if { (ac_try="$ac_compile"
3008case "(($ac_try" in
3009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010  *) ac_try_echo=$ac_try;;
3011esac
3012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013  (eval "$ac_compile") 2>conftest.er1
3014  ac_status=$?
3015  grep -v '^ *+' conftest.er1 >conftest.err
3016  rm -f conftest.er1
3017  cat conftest.err >&5
3018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019  (exit $ac_status); } && {
3020	 test -z "$ac_cxx_werror_flag" ||
3021	 test ! -s conftest.err
3022       } && test -s conftest.$ac_objext; then
3023  ac_cv_prog_cxx_g=yes
3024else
3025  echo "$as_me: failed program was:" >&5
3026sed 's/^/| /' conftest.$ac_ext >&5
3027
3028
3029fi
3030
3031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032fi
3033
3034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3035fi
3036
3037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3039fi
3040{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3041echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3042if test "$ac_test_CXXFLAGS" = set; then
3043  CXXFLAGS=$ac_save_CXXFLAGS
3044elif test $ac_cv_prog_cxx_g = yes; then
3045  if test "$GXX" = yes; then
3046    CXXFLAGS="-g -O2"
3047  else
3048    CXXFLAGS="-g"
3049  fi
3050else
3051  if test "$GXX" = yes; then
3052    CXXFLAGS="-O2"
3053  else
3054    CXXFLAGS=
3055  fi
3056fi
3057ac_ext=c
3058ac_cpp='$CPP $CPPFLAGS'
3059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062DEPDIR="${am__leading_dot}deps"
3063
3064ac_config_commands="$ac_config_commands depfiles"
3065
3066
3067am_make=${MAKE-make}
3068cat > confinc << 'END'
3069am__doit:
3070	@echo done
3071.PHONY: am__doit
3072END
3073# If we don't find an include directive, just comment out the code.
3074{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3075echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3076am__include="#"
3077am__quote=
3078_am_result=none
3079# First try GNU make style include.
3080echo "include confinc" > confmf
3081# We grep out `Entering directory' and `Leaving directory'
3082# messages which can occur if `w' ends up in MAKEFLAGS.
3083# In particular we don't look at `^make:' because GNU make might
3084# be invoked under some other name (usually "gmake"), in which
3085# case it prints its new name instead of `make'.
3086if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3087   am__include=include
3088   am__quote=
3089   _am_result=GNU
3090fi
3091# Now try BSD make style include.
3092if test "$am__include" = "#"; then
3093   echo '.include "confinc"' > confmf
3094   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3095      am__include=.include
3096      am__quote="\""
3097      _am_result=BSD
3098   fi
3099fi
3100
3101
3102{ echo "$as_me:$LINENO: result: $_am_result" >&5
3103echo "${ECHO_T}$_am_result" >&6; }
3104rm -f confinc confmf
3105
3106# Check whether --enable-dependency-tracking was given.
3107if test "${enable_dependency_tracking+set}" = set; then
3108  enableval=$enable_dependency_tracking;
3109fi
3110
3111if test "x$enable_dependency_tracking" != xno; then
3112  am_depcomp="$ac_aux_dir/depcomp"
3113  AMDEPBACKSLASH='\'
3114fi
3115
3116
3117if test "x$enable_dependency_tracking" != xno; then
3118  AMDEP_TRUE=
3119  AMDEP_FALSE='#'
3120else
3121  AMDEP_TRUE='#'
3122  AMDEP_FALSE=
3123fi
3124
3125
3126
3127
3128depcc="$CXX"  am_compiler_list=
3129
3130{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3131echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3132if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3133  echo $ECHO_N "(cached) $ECHO_C" >&6
3134else
3135  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3136  # We make a subdir and do the tests there.  Otherwise we can end up
3137  # making bogus files that we don't know about and never remove.  For
3138  # instance it was reported that on HP-UX the gcc test will end up
3139  # making a dummy file named `D' -- because `-MD' means `put the output
3140  # in D'.
3141  mkdir conftest.dir
3142  # Copy depcomp to subdir because otherwise we won't find it if we're
3143  # using a relative directory.
3144  cp "$am_depcomp" conftest.dir
3145  cd conftest.dir
3146  # We will build objects and dependencies in a subdirectory because
3147  # it helps to detect inapplicable dependency modes.  For instance
3148  # both Tru64's cc and ICC support -MD to output dependencies as a
3149  # side effect of compilation, but ICC will put the dependencies in
3150  # the current directory while Tru64 will put them in the object
3151  # directory.
3152  mkdir sub
3153
3154  am_cv_CXX_dependencies_compiler_type=none
3155  if test "$am_compiler_list" = ""; then
3156     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3157  fi
3158  for depmode in $am_compiler_list; do
3159    # Setup a source with many dependencies, because some compilers
3160    # like to wrap large dependency lists on column 80 (with \), and
3161    # we should not choose a depcomp mode which is confused by this.
3162    #
3163    # We need to recreate these files for each test, as the compiler may
3164    # overwrite some of them when testing with obscure command lines.
3165    # This happens at least with the AIX C compiler.
3166    : > sub/conftest.c
3167    for i in 1 2 3 4 5 6; do
3168      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3169      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3170      # Solaris 8's {/usr,}/bin/sh.
3171      touch sub/conftst$i.h
3172    done
3173    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3174
3175    case $depmode in
3176    nosideeffect)
3177      # after this tag, mechanisms are not by side-effect, so they'll
3178      # only be used when explicitly requested
3179      if test "x$enable_dependency_tracking" = xyes; then
3180	continue
3181      else
3182	break
3183      fi
3184      ;;
3185    none) break ;;
3186    esac
3187    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3188    # mode.  It turns out that the SunPro C++ compiler does not properly
3189    # handle `-M -o', and we need to detect this.
3190    if depmode=$depmode \
3191       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3192       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3193       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3194         >/dev/null 2>conftest.err &&
3195       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3196       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3197       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3198      # icc doesn't choke on unknown options, it will just issue warnings
3199      # or remarks (even with -Werror).  So we grep stderr for any message
3200      # that says an option was ignored or not supported.
3201      # When given -MP, icc 7.0 and 7.1 complain thusly:
3202      #   icc: Command line warning: ignoring option '-M'; no argument required
3203      # The diagnosis changed in icc 8.0:
3204      #   icc: Command line remark: option '-MP' not supported
3205      if (grep 'ignoring option' conftest.err ||
3206          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3207        am_cv_CXX_dependencies_compiler_type=$depmode
3208        break
3209      fi
3210    fi
3211  done
3212
3213  cd ..
3214  rm -rf conftest.dir
3215else
3216  am_cv_CXX_dependencies_compiler_type=none
3217fi
3218
3219fi
3220{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3221echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3222CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3223
3224
3225
3226if
3227  test "x$enable_dependency_tracking" != xno \
3228  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3229  am__fastdepCXX_TRUE=
3230  am__fastdepCXX_FALSE='#'
3231else
3232  am__fastdepCXX_TRUE='#'
3233  am__fastdepCXX_FALSE=
3234fi
3235
3236
3237ac_ext=cpp
3238ac_cpp='$CXXCPP $CPPFLAGS'
3239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3242{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3243echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3244if test -z "$CXXCPP"; then
3245  if test "${ac_cv_prog_CXXCPP+set}" = set; then
3246  echo $ECHO_N "(cached) $ECHO_C" >&6
3247else
3248      # Double quotes because CXXCPP needs to be expanded
3249    for CXXCPP in "$CXX -E" "/lib/cpp"
3250    do
3251      ac_preproc_ok=false
3252for ac_cxx_preproc_warn_flag in '' yes
3253do
3254  # Use a header file that comes with gcc, so configuring glibc
3255  # with a fresh cross-compiler works.
3256  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3257  # <limits.h> exists even on freestanding compilers.
3258  # On the NeXT, cc -E runs the code through the compiler's parser,
3259  # not just through cpp. "Syntax error" is here to catch this case.
3260  cat >conftest.$ac_ext <<_ACEOF
3261/* confdefs.h.  */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
3265/* end confdefs.h.  */
3266#ifdef __STDC__
3267# include <limits.h>
3268#else
3269# include <assert.h>
3270#endif
3271		     Syntax error
3272_ACEOF
3273if { (ac_try="$ac_cpp conftest.$ac_ext"
3274case "(($ac_try" in
3275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276  *) ac_try_echo=$ac_try;;
3277esac
3278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3280  ac_status=$?
3281  grep -v '^ *+' conftest.er1 >conftest.err
3282  rm -f conftest.er1
3283  cat conftest.err >&5
3284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285  (exit $ac_status); } >/dev/null && {
3286	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3287	 test ! -s conftest.err
3288       }; then
3289  :
3290else
3291  echo "$as_me: failed program was:" >&5
3292sed 's/^/| /' conftest.$ac_ext >&5
3293
3294  # Broken: fails on valid input.
3295continue
3296fi
3297
3298rm -f conftest.err conftest.$ac_ext
3299
3300  # OK, works on sane cases.  Now check whether nonexistent headers
3301  # can be detected and how.
3302  cat >conftest.$ac_ext <<_ACEOF
3303/* confdefs.h.  */
3304_ACEOF
3305cat confdefs.h >>conftest.$ac_ext
3306cat >>conftest.$ac_ext <<_ACEOF
3307/* end confdefs.h.  */
3308#include <ac_nonexistent.h>
3309_ACEOF
3310if { (ac_try="$ac_cpp conftest.$ac_ext"
3311case "(($ac_try" in
3312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313  *) ac_try_echo=$ac_try;;
3314esac
3315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3317  ac_status=$?
3318  grep -v '^ *+' conftest.er1 >conftest.err
3319  rm -f conftest.er1
3320  cat conftest.err >&5
3321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322  (exit $ac_status); } >/dev/null && {
3323	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3324	 test ! -s conftest.err
3325       }; then
3326  # Broken: success on invalid input.
3327continue
3328else
3329  echo "$as_me: failed program was:" >&5
3330sed 's/^/| /' conftest.$ac_ext >&5
3331
3332  # Passes both tests.
3333ac_preproc_ok=:
3334break
3335fi
3336
3337rm -f conftest.err conftest.$ac_ext
3338
3339done
3340# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3341rm -f conftest.err conftest.$ac_ext
3342if $ac_preproc_ok; then
3343  break
3344fi
3345
3346    done
3347    ac_cv_prog_CXXCPP=$CXXCPP
3348
3349fi
3350  CXXCPP=$ac_cv_prog_CXXCPP
3351else
3352  ac_cv_prog_CXXCPP=$CXXCPP
3353fi
3354{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
3355echo "${ECHO_T}$CXXCPP" >&6; }
3356ac_preproc_ok=false
3357for ac_cxx_preproc_warn_flag in '' yes
3358do
3359  # Use a header file that comes with gcc, so configuring glibc
3360  # with a fresh cross-compiler works.
3361  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3362  # <limits.h> exists even on freestanding compilers.
3363  # On the NeXT, cc -E runs the code through the compiler's parser,
3364  # not just through cpp. "Syntax error" is here to catch this case.
3365  cat >conftest.$ac_ext <<_ACEOF
3366/* confdefs.h.  */
3367_ACEOF
3368cat confdefs.h >>conftest.$ac_ext
3369cat >>conftest.$ac_ext <<_ACEOF
3370/* end confdefs.h.  */
3371#ifdef __STDC__
3372# include <limits.h>
3373#else
3374# include <assert.h>
3375#endif
3376		     Syntax error
3377_ACEOF
3378if { (ac_try="$ac_cpp conftest.$ac_ext"
3379case "(($ac_try" in
3380  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381  *) ac_try_echo=$ac_try;;
3382esac
3383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3385  ac_status=$?
3386  grep -v '^ *+' conftest.er1 >conftest.err
3387  rm -f conftest.er1
3388  cat conftest.err >&5
3389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390  (exit $ac_status); } >/dev/null && {
3391	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3392	 test ! -s conftest.err
3393       }; then
3394  :
3395else
3396  echo "$as_me: failed program was:" >&5
3397sed 's/^/| /' conftest.$ac_ext >&5
3398
3399  # Broken: fails on valid input.
3400continue
3401fi
3402
3403rm -f conftest.err conftest.$ac_ext
3404
3405  # OK, works on sane cases.  Now check whether nonexistent headers
3406  # can be detected and how.
3407  cat >conftest.$ac_ext <<_ACEOF
3408/* confdefs.h.  */
3409_ACEOF
3410cat confdefs.h >>conftest.$ac_ext
3411cat >>conftest.$ac_ext <<_ACEOF
3412/* end confdefs.h.  */
3413#include <ac_nonexistent.h>
3414_ACEOF
3415if { (ac_try="$ac_cpp conftest.$ac_ext"
3416case "(($ac_try" in
3417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418  *) ac_try_echo=$ac_try;;
3419esac
3420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422  ac_status=$?
3423  grep -v '^ *+' conftest.er1 >conftest.err
3424  rm -f conftest.er1
3425  cat conftest.err >&5
3426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427  (exit $ac_status); } >/dev/null && {
3428	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3429	 test ! -s conftest.err
3430       }; then
3431  # Broken: success on invalid input.
3432continue
3433else
3434  echo "$as_me: failed program was:" >&5
3435sed 's/^/| /' conftest.$ac_ext >&5
3436
3437  # Passes both tests.
3438ac_preproc_ok=:
3439break
3440fi
3441
3442rm -f conftest.err conftest.$ac_ext
3443
3444done
3445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446rm -f conftest.err conftest.$ac_ext
3447if $ac_preproc_ok; then
3448  :
3449else
3450  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3451See \`config.log' for more details." >&5
3452echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3453See \`config.log' for more details." >&2;}
3454   { (exit 1); exit 1; }; }
3455fi
3456
3457ac_ext=c
3458ac_cpp='$CPP $CPPFLAGS'
3459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3464echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3465LN_S=$as_ln_s
3466if test "$LN_S" = "ln -s"; then
3467  { echo "$as_me:$LINENO: result: yes" >&5
3468echo "${ECHO_T}yes" >&6; }
3469else
3470  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3471echo "${ECHO_T}no, using $LN_S" >&6; }
3472fi
3473
3474# Check whether --enable-shared was given.
3475if test "${enable_shared+set}" = set; then
3476  enableval=$enable_shared; p=${PACKAGE-default}
3477    case $enableval in
3478    yes) enable_shared=yes ;;
3479    no) enable_shared=no ;;
3480    *)
3481      enable_shared=no
3482      # Look at the argument we got.  We use all the common list separators.
3483      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3484      for pkg in $enableval; do
3485	IFS="$lt_save_ifs"
3486	if test "X$pkg" = "X$p"; then
3487	  enable_shared=yes
3488	fi
3489      done
3490      IFS="$lt_save_ifs"
3491      ;;
3492    esac
3493else
3494  enable_shared=yes
3495fi
3496
3497
3498# Check whether --enable-static was given.
3499if test "${enable_static+set}" = set; then
3500  enableval=$enable_static; p=${PACKAGE-default}
3501    case $enableval in
3502    yes) enable_static=yes ;;
3503    no) enable_static=no ;;
3504    *)
3505     enable_static=no
3506      # Look at the argument we got.  We use all the common list separators.
3507      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3508      for pkg in $enableval; do
3509	IFS="$lt_save_ifs"
3510	if test "X$pkg" = "X$p"; then
3511	  enable_static=yes
3512	fi
3513      done
3514      IFS="$lt_save_ifs"
3515      ;;
3516    esac
3517else
3518  enable_static=yes
3519fi
3520
3521
3522# Check whether --enable-fast-install was given.
3523if test "${enable_fast_install+set}" = set; then
3524  enableval=$enable_fast_install; p=${PACKAGE-default}
3525    case $enableval in
3526    yes) enable_fast_install=yes ;;
3527    no) enable_fast_install=no ;;
3528    *)
3529      enable_fast_install=no
3530      # Look at the argument we got.  We use all the common list separators.
3531      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3532      for pkg in $enableval; do
3533	IFS="$lt_save_ifs"
3534	if test "X$pkg" = "X$p"; then
3535	  enable_fast_install=yes
3536	fi
3537      done
3538      IFS="$lt_save_ifs"
3539      ;;
3540    esac
3541else
3542  enable_fast_install=yes
3543fi
3544
3545
3546# Make sure we can run config.sub.
3547$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3548  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3549echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3550   { (exit 1); exit 1; }; }
3551
3552{ echo "$as_me:$LINENO: checking build system type" >&5
3553echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3554if test "${ac_cv_build+set}" = set; then
3555  echo $ECHO_N "(cached) $ECHO_C" >&6
3556else
3557  ac_build_alias=$build_alias
3558test "x$ac_build_alias" = x &&
3559  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3560test "x$ac_build_alias" = x &&
3561  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3562echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3563   { (exit 1); exit 1; }; }
3564ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3565  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3566echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3567   { (exit 1); exit 1; }; }
3568
3569fi
3570{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3571echo "${ECHO_T}$ac_cv_build" >&6; }
3572case $ac_cv_build in
3573*-*-*) ;;
3574*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3575echo "$as_me: error: invalid value of canonical build" >&2;}
3576   { (exit 1); exit 1; }; };;
3577esac
3578build=$ac_cv_build
3579ac_save_IFS=$IFS; IFS='-'
3580set x $ac_cv_build
3581shift
3582build_cpu=$1
3583build_vendor=$2
3584shift; shift
3585# Remember, the first character of IFS is used to create $*,
3586# except with old shells:
3587build_os=$*
3588IFS=$ac_save_IFS
3589case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3590
3591
3592{ echo "$as_me:$LINENO: checking host system type" >&5
3593echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3594if test "${ac_cv_host+set}" = set; then
3595  echo $ECHO_N "(cached) $ECHO_C" >&6
3596else
3597  if test "x$host_alias" = x; then
3598  ac_cv_host=$ac_cv_build
3599else
3600  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3601    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3602echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3603   { (exit 1); exit 1; }; }
3604fi
3605
3606fi
3607{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3608echo "${ECHO_T}$ac_cv_host" >&6; }
3609case $ac_cv_host in
3610*-*-*) ;;
3611*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3612echo "$as_me: error: invalid value of canonical host" >&2;}
3613   { (exit 1); exit 1; }; };;
3614esac
3615host=$ac_cv_host
3616ac_save_IFS=$IFS; IFS='-'
3617set x $ac_cv_host
3618shift
3619host_cpu=$1
3620host_vendor=$2
3621shift; shift
3622# Remember, the first character of IFS is used to create $*,
3623# except with old shells:
3624host_os=$*
3625IFS=$ac_save_IFS
3626case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3627
3628
3629ac_ext=c
3630ac_cpp='$CPP $CPPFLAGS'
3631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634if test -n "$ac_tool_prefix"; then
3635  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3636set dummy ${ac_tool_prefix}gcc; ac_word=$2
3637{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3639if test "${ac_cv_prog_CC+set}" = set; then
3640  echo $ECHO_N "(cached) $ECHO_C" >&6
3641else
3642  if test -n "$CC"; then
3643  ac_cv_prog_CC="$CC" # Let the user override the test.
3644else
3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646for as_dir in $PATH
3647do
3648  IFS=$as_save_IFS
3649  test -z "$as_dir" && as_dir=.
3650  for ac_exec_ext in '' $ac_executable_extensions; do
3651  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3652    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3653    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654    break 2
3655  fi
3656done
3657done
3658IFS=$as_save_IFS
3659
3660fi
3661fi
3662CC=$ac_cv_prog_CC
3663if test -n "$CC"; then
3664  { echo "$as_me:$LINENO: result: $CC" >&5
3665echo "${ECHO_T}$CC" >&6; }
3666else
3667  { echo "$as_me:$LINENO: result: no" >&5
3668echo "${ECHO_T}no" >&6; }
3669fi
3670
3671
3672fi
3673if test -z "$ac_cv_prog_CC"; then
3674  ac_ct_CC=$CC
3675  # Extract the first word of "gcc", so it can be a program name with args.
3676set dummy gcc; ac_word=$2
3677{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3679if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3680  echo $ECHO_N "(cached) $ECHO_C" >&6
3681else
3682  if test -n "$ac_ct_CC"; then
3683  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3684else
3685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686for as_dir in $PATH
3687do
3688  IFS=$as_save_IFS
3689  test -z "$as_dir" && as_dir=.
3690  for ac_exec_ext in '' $ac_executable_extensions; do
3691  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692    ac_cv_prog_ac_ct_CC="gcc"
3693    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3694    break 2
3695  fi
3696done
3697done
3698IFS=$as_save_IFS
3699
3700fi
3701fi
3702ac_ct_CC=$ac_cv_prog_ac_ct_CC
3703if test -n "$ac_ct_CC"; then
3704  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3705echo "${ECHO_T}$ac_ct_CC" >&6; }
3706else
3707  { echo "$as_me:$LINENO: result: no" >&5
3708echo "${ECHO_T}no" >&6; }
3709fi
3710
3711  if test "x$ac_ct_CC" = x; then
3712    CC=""
3713  else
3714    case $cross_compiling:$ac_tool_warned in
3715yes:)
3716{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3717whose name does not start with the host triplet.  If you think this
3718configuration is useful to you, please write to autoconf@gnu.org." >&5
3719echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3720whose name does not start with the host triplet.  If you think this
3721configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3722ac_tool_warned=yes ;;
3723esac
3724    CC=$ac_ct_CC
3725  fi
3726else
3727  CC="$ac_cv_prog_CC"
3728fi
3729
3730if test -z "$CC"; then
3731          if test -n "$ac_tool_prefix"; then
3732    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3733set dummy ${ac_tool_prefix}cc; ac_word=$2
3734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3736if test "${ac_cv_prog_CC+set}" = set; then
3737  echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739  if test -n "$CC"; then
3740  ac_cv_prog_CC="$CC" # Let the user override the test.
3741else
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745  IFS=$as_save_IFS
3746  test -z "$as_dir" && as_dir=.
3747  for ac_exec_ext in '' $ac_executable_extensions; do
3748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749    ac_cv_prog_CC="${ac_tool_prefix}cc"
3750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3751    break 2
3752  fi
3753done
3754done
3755IFS=$as_save_IFS
3756
3757fi
3758fi
3759CC=$ac_cv_prog_CC
3760if test -n "$CC"; then
3761  { echo "$as_me:$LINENO: result: $CC" >&5
3762echo "${ECHO_T}$CC" >&6; }
3763else
3764  { echo "$as_me:$LINENO: result: no" >&5
3765echo "${ECHO_T}no" >&6; }
3766fi
3767
3768
3769  fi
3770fi
3771if test -z "$CC"; then
3772  # Extract the first word of "cc", so it can be a program name with args.
3773set dummy cc; ac_word=$2
3774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3776if test "${ac_cv_prog_CC+set}" = set; then
3777  echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779  if test -n "$CC"; then
3780  ac_cv_prog_CC="$CC" # Let the user override the test.
3781else
3782  ac_prog_rejected=no
3783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784for as_dir in $PATH
3785do
3786  IFS=$as_save_IFS
3787  test -z "$as_dir" && as_dir=.
3788  for ac_exec_ext in '' $ac_executable_extensions; do
3789  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3790    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3791       ac_prog_rejected=yes
3792       continue
3793     fi
3794    ac_cv_prog_CC="cc"
3795    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796    break 2
3797  fi
3798done
3799done
3800IFS=$as_save_IFS
3801
3802if test $ac_prog_rejected = yes; then
3803  # We found a bogon in the path, so make sure we never use it.
3804  set dummy $ac_cv_prog_CC
3805  shift
3806  if test $# != 0; then
3807    # We chose a different compiler from the bogus one.
3808    # However, it has the same basename, so the bogon will be chosen
3809    # first if we set CC to just the basename; use the full file name.
3810    shift
3811    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3812  fi
3813fi
3814fi
3815fi
3816CC=$ac_cv_prog_CC
3817if test -n "$CC"; then
3818  { echo "$as_me:$LINENO: result: $CC" >&5
3819echo "${ECHO_T}$CC" >&6; }
3820else
3821  { echo "$as_me:$LINENO: result: no" >&5
3822echo "${ECHO_T}no" >&6; }
3823fi
3824
3825
3826fi
3827if test -z "$CC"; then
3828  if test -n "$ac_tool_prefix"; then
3829  for ac_prog in cl.exe
3830  do
3831    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3832set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3835if test "${ac_cv_prog_CC+set}" = set; then
3836  echo $ECHO_N "(cached) $ECHO_C" >&6
3837else
3838  if test -n "$CC"; then
3839  ac_cv_prog_CC="$CC" # Let the user override the test.
3840else
3841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842for as_dir in $PATH
3843do
3844  IFS=$as_save_IFS
3845  test -z "$as_dir" && as_dir=.
3846  for ac_exec_ext in '' $ac_executable_extensions; do
3847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3848    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3849    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3850    break 2
3851  fi
3852done
3853done
3854IFS=$as_save_IFS
3855
3856fi
3857fi
3858CC=$ac_cv_prog_CC
3859if test -n "$CC"; then
3860  { echo "$as_me:$LINENO: result: $CC" >&5
3861echo "${ECHO_T}$CC" >&6; }
3862else
3863  { echo "$as_me:$LINENO: result: no" >&5
3864echo "${ECHO_T}no" >&6; }
3865fi
3866
3867
3868    test -n "$CC" && break
3869  done
3870fi
3871if test -z "$CC"; then
3872  ac_ct_CC=$CC
3873  for ac_prog in cl.exe
3874do
3875  # Extract the first word of "$ac_prog", so it can be a program name with args.
3876set dummy $ac_prog; ac_word=$2
3877{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3879if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3880  echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882  if test -n "$ac_ct_CC"; then
3883  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3884else
3885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886for as_dir in $PATH
3887do
3888  IFS=$as_save_IFS
3889  test -z "$as_dir" && as_dir=.
3890  for ac_exec_ext in '' $ac_executable_extensions; do
3891  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892    ac_cv_prog_ac_ct_CC="$ac_prog"
3893    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3894    break 2
3895  fi
3896done
3897done
3898IFS=$as_save_IFS
3899
3900fi
3901fi
3902ac_ct_CC=$ac_cv_prog_ac_ct_CC
3903if test -n "$ac_ct_CC"; then
3904  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3905echo "${ECHO_T}$ac_ct_CC" >&6; }
3906else
3907  { echo "$as_me:$LINENO: result: no" >&5
3908echo "${ECHO_T}no" >&6; }
3909fi
3910
3911
3912  test -n "$ac_ct_CC" && break
3913done
3914
3915  if test "x$ac_ct_CC" = x; then
3916    CC=""
3917  else
3918    case $cross_compiling:$ac_tool_warned in
3919yes:)
3920{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3921whose name does not start with the host triplet.  If you think this
3922configuration is useful to you, please write to autoconf@gnu.org." >&5
3923echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3924whose name does not start with the host triplet.  If you think this
3925configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3926ac_tool_warned=yes ;;
3927esac
3928    CC=$ac_ct_CC
3929  fi
3930fi
3931
3932fi
3933
3934
3935test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3936See \`config.log' for more details." >&5
3937echo "$as_me: error: no acceptable C compiler found in \$PATH
3938See \`config.log' for more details." >&2;}
3939   { (exit 1); exit 1; }; }
3940
3941# Provide some information about the compiler.
3942echo "$as_me:$LINENO: checking for C compiler version" >&5
3943ac_compiler=`set X $ac_compile; echo $2`
3944{ (ac_try="$ac_compiler --version >&5"
3945case "(($ac_try" in
3946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947  *) ac_try_echo=$ac_try;;
3948esac
3949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3950  (eval "$ac_compiler --version >&5") 2>&5
3951  ac_status=$?
3952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953  (exit $ac_status); }
3954{ (ac_try="$ac_compiler -v >&5"
3955case "(($ac_try" in
3956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957  *) ac_try_echo=$ac_try;;
3958esac
3959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960  (eval "$ac_compiler -v >&5") 2>&5
3961  ac_status=$?
3962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963  (exit $ac_status); }
3964{ (ac_try="$ac_compiler -V >&5"
3965case "(($ac_try" in
3966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967  *) ac_try_echo=$ac_try;;
3968esac
3969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970  (eval "$ac_compiler -V >&5") 2>&5
3971  ac_status=$?
3972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973  (exit $ac_status); }
3974
3975{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3976echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3977if test "${ac_cv_c_compiler_gnu+set}" = set; then
3978  echo $ECHO_N "(cached) $ECHO_C" >&6
3979else
3980  cat >conftest.$ac_ext <<_ACEOF
3981/* confdefs.h.  */
3982_ACEOF
3983cat confdefs.h >>conftest.$ac_ext
3984cat >>conftest.$ac_ext <<_ACEOF
3985/* end confdefs.h.  */
3986
3987int
3988main ()
3989{
3990#ifndef __GNUC__
3991       choke me
3992#endif
3993
3994  ;
3995  return 0;
3996}
3997_ACEOF
3998rm -f conftest.$ac_objext
3999if { (ac_try="$ac_compile"
4000case "(($ac_try" in
4001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002  *) ac_try_echo=$ac_try;;
4003esac
4004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005  (eval "$ac_compile") 2>conftest.er1
4006  ac_status=$?
4007  grep -v '^ *+' conftest.er1 >conftest.err
4008  rm -f conftest.er1
4009  cat conftest.err >&5
4010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011  (exit $ac_status); } && {
4012	 test -z "$ac_c_werror_flag" ||
4013	 test ! -s conftest.err
4014       } && test -s conftest.$ac_objext; then
4015  ac_compiler_gnu=yes
4016else
4017  echo "$as_me: failed program was:" >&5
4018sed 's/^/| /' conftest.$ac_ext >&5
4019
4020	ac_compiler_gnu=no
4021fi
4022
4023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024ac_cv_c_compiler_gnu=$ac_compiler_gnu
4025
4026fi
4027{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4028echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4029GCC=`test $ac_compiler_gnu = yes && echo yes`
4030ac_test_CFLAGS=${CFLAGS+set}
4031ac_save_CFLAGS=$CFLAGS
4032{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4033echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4034if test "${ac_cv_prog_cc_g+set}" = set; then
4035  echo $ECHO_N "(cached) $ECHO_C" >&6
4036else
4037  ac_save_c_werror_flag=$ac_c_werror_flag
4038   ac_c_werror_flag=yes
4039   ac_cv_prog_cc_g=no
4040   CFLAGS="-g"
4041   cat >conftest.$ac_ext <<_ACEOF
4042/* confdefs.h.  */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h.  */
4047
4048int
4049main ()
4050{
4051
4052  ;
4053  return 0;
4054}
4055_ACEOF
4056rm -f conftest.$ac_objext
4057if { (ac_try="$ac_compile"
4058case "(($ac_try" in
4059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060  *) ac_try_echo=$ac_try;;
4061esac
4062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063  (eval "$ac_compile") 2>conftest.er1
4064  ac_status=$?
4065  grep -v '^ *+' conftest.er1 >conftest.err
4066  rm -f conftest.er1
4067  cat conftest.err >&5
4068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069  (exit $ac_status); } && {
4070	 test -z "$ac_c_werror_flag" ||
4071	 test ! -s conftest.err
4072       } && test -s conftest.$ac_objext; then
4073  ac_cv_prog_cc_g=yes
4074else
4075  echo "$as_me: failed program was:" >&5
4076sed 's/^/| /' conftest.$ac_ext >&5
4077
4078	CFLAGS=""
4079      cat >conftest.$ac_ext <<_ACEOF
4080/* confdefs.h.  */
4081_ACEOF
4082cat confdefs.h >>conftest.$ac_ext
4083cat >>conftest.$ac_ext <<_ACEOF
4084/* end confdefs.h.  */
4085
4086int
4087main ()
4088{
4089
4090  ;
4091  return 0;
4092}
4093_ACEOF
4094rm -f conftest.$ac_objext
4095if { (ac_try="$ac_compile"
4096case "(($ac_try" in
4097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098  *) ac_try_echo=$ac_try;;
4099esac
4100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101  (eval "$ac_compile") 2>conftest.er1
4102  ac_status=$?
4103  grep -v '^ *+' conftest.er1 >conftest.err
4104  rm -f conftest.er1
4105  cat conftest.err >&5
4106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107  (exit $ac_status); } && {
4108	 test -z "$ac_c_werror_flag" ||
4109	 test ! -s conftest.err
4110       } && test -s conftest.$ac_objext; then
4111  :
4112else
4113  echo "$as_me: failed program was:" >&5
4114sed 's/^/| /' conftest.$ac_ext >&5
4115
4116	ac_c_werror_flag=$ac_save_c_werror_flag
4117	 CFLAGS="-g"
4118	 cat >conftest.$ac_ext <<_ACEOF
4119/* confdefs.h.  */
4120_ACEOF
4121cat confdefs.h >>conftest.$ac_ext
4122cat >>conftest.$ac_ext <<_ACEOF
4123/* end confdefs.h.  */
4124
4125int
4126main ()
4127{
4128
4129  ;
4130  return 0;
4131}
4132_ACEOF
4133rm -f conftest.$ac_objext
4134if { (ac_try="$ac_compile"
4135case "(($ac_try" in
4136  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137  *) ac_try_echo=$ac_try;;
4138esac
4139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140  (eval "$ac_compile") 2>conftest.er1
4141  ac_status=$?
4142  grep -v '^ *+' conftest.er1 >conftest.err
4143  rm -f conftest.er1
4144  cat conftest.err >&5
4145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146  (exit $ac_status); } && {
4147	 test -z "$ac_c_werror_flag" ||
4148	 test ! -s conftest.err
4149       } && test -s conftest.$ac_objext; then
4150  ac_cv_prog_cc_g=yes
4151else
4152  echo "$as_me: failed program was:" >&5
4153sed 's/^/| /' conftest.$ac_ext >&5
4154
4155
4156fi
4157
4158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159fi
4160
4161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162fi
4163
4164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165   ac_c_werror_flag=$ac_save_c_werror_flag
4166fi
4167{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4168echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4169if test "$ac_test_CFLAGS" = set; then
4170  CFLAGS=$ac_save_CFLAGS
4171elif test $ac_cv_prog_cc_g = yes; then
4172  if test "$GCC" = yes; then
4173    CFLAGS="-g -O2"
4174  else
4175    CFLAGS="-g"
4176  fi
4177else
4178  if test "$GCC" = yes; then
4179    CFLAGS="-O2"
4180  else
4181    CFLAGS=
4182  fi
4183fi
4184{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4185echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4186if test "${ac_cv_prog_cc_c89+set}" = set; then
4187  echo $ECHO_N "(cached) $ECHO_C" >&6
4188else
4189  ac_cv_prog_cc_c89=no
4190ac_save_CC=$CC
4191cat >conftest.$ac_ext <<_ACEOF
4192/* confdefs.h.  */
4193_ACEOF
4194cat confdefs.h >>conftest.$ac_ext
4195cat >>conftest.$ac_ext <<_ACEOF
4196/* end confdefs.h.  */
4197#include <stdarg.h>
4198#include <stdio.h>
4199#include <sys/types.h>
4200#include <sys/stat.h>
4201/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4202struct buf { int x; };
4203FILE * (*rcsopen) (struct buf *, struct stat *, int);
4204static char *e (p, i)
4205     char **p;
4206     int i;
4207{
4208  return p[i];
4209}
4210static char *f (char * (*g) (char **, int), char **p, ...)
4211{
4212  char *s;
4213  va_list v;
4214  va_start (v,p);
4215  s = g (p, va_arg (v,int));
4216  va_end (v);
4217  return s;
4218}
4219
4220/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4221   function prototypes and stuff, but not '\xHH' hex character constants.
4222   These don't provoke an error unfortunately, instead are silently treated
4223   as 'x'.  The following induces an error, until -std is added to get
4224   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4225   array size at least.  It's necessary to write '\x00'==0 to get something
4226   that's true only with -std.  */
4227int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4228
4229/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4230   inside strings and character constants.  */
4231#define FOO(x) 'x'
4232int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4233
4234int test (int i, double x);
4235struct s1 {int (*f) (int a);};
4236struct s2 {int (*f) (double a);};
4237int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4238int argc;
4239char **argv;
4240int
4241main ()
4242{
4243return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4244  ;
4245  return 0;
4246}
4247_ACEOF
4248for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4249	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4250do
4251  CC="$ac_save_CC $ac_arg"
4252  rm -f conftest.$ac_objext
4253if { (ac_try="$ac_compile"
4254case "(($ac_try" in
4255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256  *) ac_try_echo=$ac_try;;
4257esac
4258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4259  (eval "$ac_compile") 2>conftest.er1
4260  ac_status=$?
4261  grep -v '^ *+' conftest.er1 >conftest.err
4262  rm -f conftest.er1
4263  cat conftest.err >&5
4264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265  (exit $ac_status); } && {
4266	 test -z "$ac_c_werror_flag" ||
4267	 test ! -s conftest.err
4268       } && test -s conftest.$ac_objext; then
4269  ac_cv_prog_cc_c89=$ac_arg
4270else
4271  echo "$as_me: failed program was:" >&5
4272sed 's/^/| /' conftest.$ac_ext >&5
4273
4274
4275fi
4276
4277rm -f core conftest.err conftest.$ac_objext
4278  test "x$ac_cv_prog_cc_c89" != "xno" && break
4279done
4280rm -f conftest.$ac_ext
4281CC=$ac_save_CC
4282
4283fi
4284# AC_CACHE_VAL
4285case "x$ac_cv_prog_cc_c89" in
4286  x)
4287    { echo "$as_me:$LINENO: result: none needed" >&5
4288echo "${ECHO_T}none needed" >&6; } ;;
4289  xno)
4290    { echo "$as_me:$LINENO: result: unsupported" >&5
4291echo "${ECHO_T}unsupported" >&6; } ;;
4292  *)
4293    CC="$CC $ac_cv_prog_cc_c89"
4294    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4295echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4296esac
4297
4298
4299ac_ext=c
4300ac_cpp='$CPP $CPPFLAGS'
4301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304
4305depcc="$CC"   am_compiler_list=
4306
4307{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4308echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4309if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4310  echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4313  # We make a subdir and do the tests there.  Otherwise we can end up
4314  # making bogus files that we don't know about and never remove.  For
4315  # instance it was reported that on HP-UX the gcc test will end up
4316  # making a dummy file named `D' -- because `-MD' means `put the output
4317  # in D'.
4318  mkdir conftest.dir
4319  # Copy depcomp to subdir because otherwise we won't find it if we're
4320  # using a relative directory.
4321  cp "$am_depcomp" conftest.dir
4322  cd conftest.dir
4323  # We will build objects and dependencies in a subdirectory because
4324  # it helps to detect inapplicable dependency modes.  For instance
4325  # both Tru64's cc and ICC support -MD to output dependencies as a
4326  # side effect of compilation, but ICC will put the dependencies in
4327  # the current directory while Tru64 will put them in the object
4328  # directory.
4329  mkdir sub
4330
4331  am_cv_CC_dependencies_compiler_type=none
4332  if test "$am_compiler_list" = ""; then
4333     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4334  fi
4335  for depmode in $am_compiler_list; do
4336    # Setup a source with many dependencies, because some compilers
4337    # like to wrap large dependency lists on column 80 (with \), and
4338    # we should not choose a depcomp mode which is confused by this.
4339    #
4340    # We need to recreate these files for each test, as the compiler may
4341    # overwrite some of them when testing with obscure command lines.
4342    # This happens at least with the AIX C compiler.
4343    : > sub/conftest.c
4344    for i in 1 2 3 4 5 6; do
4345      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4346      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4347      # Solaris 8's {/usr,}/bin/sh.
4348      touch sub/conftst$i.h
4349    done
4350    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4351
4352    case $depmode in
4353    nosideeffect)
4354      # after this tag, mechanisms are not by side-effect, so they'll
4355      # only be used when explicitly requested
4356      if test "x$enable_dependency_tracking" = xyes; then
4357	continue
4358      else
4359	break
4360      fi
4361      ;;
4362    none) break ;;
4363    esac
4364    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4365    # mode.  It turns out that the SunPro C++ compiler does not properly
4366    # handle `-M -o', and we need to detect this.
4367    if depmode=$depmode \
4368       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4369       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4370       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4371         >/dev/null 2>conftest.err &&
4372       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4373       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4374       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4375      # icc doesn't choke on unknown options, it will just issue warnings
4376      # or remarks (even with -Werror).  So we grep stderr for any message
4377      # that says an option was ignored or not supported.
4378      # When given -MP, icc 7.0 and 7.1 complain thusly:
4379      #   icc: Command line warning: ignoring option '-M'; no argument required
4380      # The diagnosis changed in icc 8.0:
4381      #   icc: Command line remark: option '-MP' not supported
4382      if (grep 'ignoring option' conftest.err ||
4383          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4384        am_cv_CC_dependencies_compiler_type=$depmode
4385        break
4386      fi
4387    fi
4388  done
4389
4390  cd ..
4391  rm -rf conftest.dir
4392else
4393  am_cv_CC_dependencies_compiler_type=none
4394fi
4395
4396fi
4397{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4398echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4399CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4400
4401
4402
4403if
4404  test "x$enable_dependency_tracking" != xno \
4405  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4406  am__fastdepCC_TRUE=
4407  am__fastdepCC_FALSE='#'
4408else
4409  am__fastdepCC_TRUE='#'
4410  am__fastdepCC_FALSE=
4411fi
4412
4413
4414{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4415echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4416if test "${lt_cv_path_SED+set}" = set; then
4417  echo $ECHO_N "(cached) $ECHO_C" >&6
4418else
4419  # Loop through the user's path and test for sed and gsed.
4420# Then use that list of sed's as ones to test for truncation.
4421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422for as_dir in $PATH
4423do
4424  IFS=$as_save_IFS
4425  test -z "$as_dir" && as_dir=.
4426  for lt_ac_prog in sed gsed; do
4427    for ac_exec_ext in '' $ac_executable_extensions; do
4428      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4429        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4430      fi
4431    done
4432  done
4433done
4434lt_ac_max=0
4435lt_ac_count=0
4436# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4437# along with /bin/sed that truncates output.
4438for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4439  test ! -f $lt_ac_sed && continue
4440  cat /dev/null > conftest.in
4441  lt_ac_count=0
4442  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4443  # Check for GNU sed and select it if it is found.
4444  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4445    lt_cv_path_SED=$lt_ac_sed
4446    break
4447  fi
4448  while true; do
4449    cat conftest.in conftest.in >conftest.tmp
4450    mv conftest.tmp conftest.in
4451    cp conftest.in conftest.nl
4452    echo >>conftest.nl
4453    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4454    cmp -s conftest.out conftest.nl || break
4455    # 10000 chars as input seems more than enough
4456    test $lt_ac_count -gt 10 && break
4457    lt_ac_count=`expr $lt_ac_count + 1`
4458    if test $lt_ac_count -gt $lt_ac_max; then
4459      lt_ac_max=$lt_ac_count
4460      lt_cv_path_SED=$lt_ac_sed
4461    fi
4462  done
4463done
4464
4465fi
4466
4467SED=$lt_cv_path_SED
4468{ echo "$as_me:$LINENO: result: $SED" >&5
4469echo "${ECHO_T}$SED" >&6; }
4470
4471{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4472echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4473if test "${ac_cv_path_GREP+set}" = set; then
4474  echo $ECHO_N "(cached) $ECHO_C" >&6
4475else
4476  # Extract the first word of "grep ggrep" to use in msg output
4477if test -z "$GREP"; then
4478set dummy grep ggrep; ac_prog_name=$2
4479if test "${ac_cv_path_GREP+set}" = set; then
4480  echo $ECHO_N "(cached) $ECHO_C" >&6
4481else
4482  ac_path_GREP_found=false
4483# Loop through the user's path and test for each of PROGNAME-LIST
4484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4486do
4487  IFS=$as_save_IFS
4488  test -z "$as_dir" && as_dir=.
4489  for ac_prog in grep ggrep; do
4490  for ac_exec_ext in '' $ac_executable_extensions; do
4491    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4492    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4493    # Check for GNU ac_path_GREP and select it if it is found.
4494  # Check for GNU $ac_path_GREP
4495case `"$ac_path_GREP" --version 2>&1` in
4496*GNU*)
4497  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4498*)
4499  ac_count=0
4500  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4501  while :
4502  do
4503    cat "conftest.in" "conftest.in" >"conftest.tmp"
4504    mv "conftest.tmp" "conftest.in"
4505    cp "conftest.in" "conftest.nl"
4506    echo 'GREP' >> "conftest.nl"
4507    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4508    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4509    ac_count=`expr $ac_count + 1`
4510    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4511      # Best one so far, save it but keep looking for a better one
4512      ac_cv_path_GREP="$ac_path_GREP"
4513      ac_path_GREP_max=$ac_count
4514    fi
4515    # 10*(2^10) chars as input seems more than enough
4516    test $ac_count -gt 10 && break
4517  done
4518  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4519esac
4520
4521
4522    $ac_path_GREP_found && break 3
4523  done
4524done
4525
4526done
4527IFS=$as_save_IFS
4528
4529
4530fi
4531
4532GREP="$ac_cv_path_GREP"
4533if test -z "$GREP"; then
4534  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4535echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4536   { (exit 1); exit 1; }; }
4537fi
4538
4539else
4540  ac_cv_path_GREP=$GREP
4541fi
4542
4543
4544fi
4545{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4546echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4547 GREP="$ac_cv_path_GREP"
4548
4549
4550{ echo "$as_me:$LINENO: checking for egrep" >&5
4551echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4552if test "${ac_cv_path_EGREP+set}" = set; then
4553  echo $ECHO_N "(cached) $ECHO_C" >&6
4554else
4555  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4556   then ac_cv_path_EGREP="$GREP -E"
4557   else
4558     # Extract the first word of "egrep" to use in msg output
4559if test -z "$EGREP"; then
4560set dummy egrep; ac_prog_name=$2
4561if test "${ac_cv_path_EGREP+set}" = set; then
4562  echo $ECHO_N "(cached) $ECHO_C" >&6
4563else
4564  ac_path_EGREP_found=false
4565# Loop through the user's path and test for each of PROGNAME-LIST
4566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4568do
4569  IFS=$as_save_IFS
4570  test -z "$as_dir" && as_dir=.
4571  for ac_prog in egrep; do
4572  for ac_exec_ext in '' $ac_executable_extensions; do
4573    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4574    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4575    # Check for GNU ac_path_EGREP and select it if it is found.
4576  # Check for GNU $ac_path_EGREP
4577case `"$ac_path_EGREP" --version 2>&1` in
4578*GNU*)
4579  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4580*)
4581  ac_count=0
4582  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4583  while :
4584  do
4585    cat "conftest.in" "conftest.in" >"conftest.tmp"
4586    mv "conftest.tmp" "conftest.in"
4587    cp "conftest.in" "conftest.nl"
4588    echo 'EGREP' >> "conftest.nl"
4589    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4590    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4591    ac_count=`expr $ac_count + 1`
4592    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4593      # Best one so far, save it but keep looking for a better one
4594      ac_cv_path_EGREP="$ac_path_EGREP"
4595      ac_path_EGREP_max=$ac_count
4596    fi
4597    # 10*(2^10) chars as input seems more than enough
4598    test $ac_count -gt 10 && break
4599  done
4600  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4601esac
4602
4603
4604    $ac_path_EGREP_found && break 3
4605  done
4606done
4607
4608done
4609IFS=$as_save_IFS
4610
4611
4612fi
4613
4614EGREP="$ac_cv_path_EGREP"
4615if test -z "$EGREP"; then
4616  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4617echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4618   { (exit 1); exit 1; }; }
4619fi
4620
4621else
4622  ac_cv_path_EGREP=$EGREP
4623fi
4624
4625
4626   fi
4627fi
4628{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4629echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4630 EGREP="$ac_cv_path_EGREP"
4631
4632
4633
4634# Check whether --with-gnu-ld was given.
4635if test "${with_gnu_ld+set}" = set; then
4636  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4637else
4638  with_gnu_ld=no
4639fi
4640
4641ac_prog=ld
4642if test "$GCC" = yes; then
4643  # Check if gcc -print-prog-name=ld gives a path.
4644  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4645echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4646  case $host in
4647  *-*-mingw*)
4648    # gcc leaves a trailing carriage return which upsets mingw
4649    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4650  *)
4651    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4652  esac
4653  case $ac_prog in
4654    # Accept absolute paths.
4655    [\\/]* | ?:[\\/]*)
4656      re_direlt='/[^/][^/]*/\.\./'
4657      # Canonicalize the pathname of ld
4658      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4659      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4660	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4661      done
4662      test -z "$LD" && LD="$ac_prog"
4663      ;;
4664  "")
4665    # If it fails, then pretend we aren't using GCC.
4666    ac_prog=ld
4667    ;;
4668  *)
4669    # If it is relative, then search for the first ld in PATH.
4670    with_gnu_ld=unknown
4671    ;;
4672  esac
4673elif test "$with_gnu_ld" = yes; then
4674  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4675echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4676else
4677  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4678echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4679fi
4680if test "${lt_cv_path_LD+set}" = set; then
4681  echo $ECHO_N "(cached) $ECHO_C" >&6
4682else
4683  if test -z "$LD"; then
4684  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4685  for ac_dir in $PATH; do
4686    IFS="$lt_save_ifs"
4687    test -z "$ac_dir" && ac_dir=.
4688    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4689      lt_cv_path_LD="$ac_dir/$ac_prog"
4690      # Check to see if the program is GNU ld.  I'd rather use --version,
4691      # but apparently some variants of GNU ld only accept -v.
4692      # Break only if it was the GNU/non-GNU ld that we prefer.
4693      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4694      *GNU* | *'with BFD'*)
4695	test "$with_gnu_ld" != no && break
4696	;;
4697      *)
4698	test "$with_gnu_ld" != yes && break
4699	;;
4700      esac
4701    fi
4702  done
4703  IFS="$lt_save_ifs"
4704else
4705  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4706fi
4707fi
4708
4709LD="$lt_cv_path_LD"
4710if test -n "$LD"; then
4711  { echo "$as_me:$LINENO: result: $LD" >&5
4712echo "${ECHO_T}$LD" >&6; }
4713else
4714  { echo "$as_me:$LINENO: result: no" >&5
4715echo "${ECHO_T}no" >&6; }
4716fi
4717test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4718echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4719   { (exit 1); exit 1; }; }
4720{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4721echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4722if test "${lt_cv_prog_gnu_ld+set}" = set; then
4723  echo $ECHO_N "(cached) $ECHO_C" >&6
4724else
4725  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4726case `$LD -v 2>&1 </dev/null` in
4727*GNU* | *'with BFD'*)
4728  lt_cv_prog_gnu_ld=yes
4729  ;;
4730*)
4731  lt_cv_prog_gnu_ld=no
4732  ;;
4733esac
4734fi
4735{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4736echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4737with_gnu_ld=$lt_cv_prog_gnu_ld
4738
4739
4740{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4741echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4742if test "${lt_cv_ld_reload_flag+set}" = set; then
4743  echo $ECHO_N "(cached) $ECHO_C" >&6
4744else
4745  lt_cv_ld_reload_flag='-r'
4746fi
4747{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4748echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4749reload_flag=$lt_cv_ld_reload_flag
4750case $reload_flag in
4751"" | " "*) ;;
4752*) reload_flag=" $reload_flag" ;;
4753esac
4754reload_cmds='$LD$reload_flag -o $output$reload_objs'
4755case $host_os in
4756  darwin*)
4757    if test "$GCC" = yes; then
4758      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4759    else
4760      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4761    fi
4762    ;;
4763esac
4764
4765{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4766echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4767if test "${lt_cv_path_NM+set}" = set; then
4768  echo $ECHO_N "(cached) $ECHO_C" >&6
4769else
4770  if test -n "$NM"; then
4771  # Let the user override the test.
4772  lt_cv_path_NM="$NM"
4773else
4774  lt_nm_to_check="${ac_tool_prefix}nm"
4775  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4776    lt_nm_to_check="$lt_nm_to_check nm"
4777  fi
4778  for lt_tmp_nm in $lt_nm_to_check; do
4779    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4780    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4781      IFS="$lt_save_ifs"
4782      test -z "$ac_dir" && ac_dir=.
4783      tmp_nm="$ac_dir/$lt_tmp_nm"
4784      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4785	# Check to see if the nm accepts a BSD-compat flag.
4786	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4787	#   nm: unknown option "B" ignored
4788	# Tru64's nm complains that /dev/null is an invalid object file
4789	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4790	*/dev/null* | *'Invalid file or object type'*)
4791	  lt_cv_path_NM="$tmp_nm -B"
4792	  break
4793	  ;;
4794	*)
4795	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4796	  */dev/null*)
4797	    lt_cv_path_NM="$tmp_nm -p"
4798	    break
4799	    ;;
4800	  *)
4801	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4802	    continue # so that we can try to find one that supports BSD flags
4803	    ;;
4804	  esac
4805	  ;;
4806	esac
4807      fi
4808    done
4809    IFS="$lt_save_ifs"
4810  done
4811  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4812fi
4813fi
4814{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4815echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4816NM="$lt_cv_path_NM"
4817
4818{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4819echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4820if test "${lt_cv_deplibs_check_method+set}" = set; then
4821  echo $ECHO_N "(cached) $ECHO_C" >&6
4822else
4823  lt_cv_file_magic_cmd='$MAGIC_CMD'
4824lt_cv_file_magic_test_file=
4825lt_cv_deplibs_check_method='unknown'
4826# Need to set the preceding variable on all platforms that support
4827# interlibrary dependencies.
4828# 'none' -- dependencies not supported.
4829# `unknown' -- same as none, but documents that we really don't know.
4830# 'pass_all' -- all dependencies passed with no checks.
4831# 'test_compile' -- check by making test program.
4832# 'file_magic [[regex]]' -- check by looking for files in library path
4833# which responds to the $file_magic_cmd with a given extended regex.
4834# If you have `file' or equivalent on your system and you're not sure
4835# whether `pass_all' will *always* work, you probably want this one.
4836
4837case $host_os in
4838aix4* | aix5*)
4839  lt_cv_deplibs_check_method=pass_all
4840  ;;
4841
4842beos*)
4843  lt_cv_deplibs_check_method=pass_all
4844  ;;
4845
4846bsdi[45]*)
4847  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4848  lt_cv_file_magic_cmd='/usr/bin/file -L'
4849  lt_cv_file_magic_test_file=/shlib/libc.so
4850  ;;
4851
4852cygwin*)
4853  # func_win32_libid is a shell function defined in ltmain.sh
4854  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4855  lt_cv_file_magic_cmd='func_win32_libid'
4856  ;;
4857
4858mingw* | pw32*)
4859  # Base MSYS/MinGW do not provide the 'file' command needed by
4860  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4861  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4862  lt_cv_file_magic_cmd='$OBJDUMP -f'
4863  ;;
4864
4865darwin* | rhapsody*)
4866  lt_cv_deplibs_check_method=pass_all
4867  ;;
4868
4869freebsd* | dragonfly*)
4870  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4871    case $host_cpu in
4872    i*86 )
4873      # Not sure whether the presence of OpenBSD here was a mistake.
4874      # Let's accept both of them until this is cleared up.
4875      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4876      lt_cv_file_magic_cmd=/usr/bin/file
4877      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4878      ;;
4879    esac
4880  else
4881    lt_cv_deplibs_check_method=pass_all
4882  fi
4883  ;;
4884
4885gnu*)
4886  lt_cv_deplibs_check_method=pass_all
4887  ;;
4888
4889hpux10.20* | hpux11*)
4890  lt_cv_file_magic_cmd=/usr/bin/file
4891  case $host_cpu in
4892  ia64*)
4893    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4894    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4895    ;;
4896  hppa*64*)
4897    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]'
4898    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4899    ;;
4900  *)
4901    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4902    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4903    ;;
4904  esac
4905  ;;
4906
4907interix3*)
4908  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4909  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4910  ;;
4911
4912irix5* | irix6* | nonstopux*)
4913  case $LD in
4914  *-32|*"-32 ") libmagic=32-bit;;
4915  *-n32|*"-n32 ") libmagic=N32;;
4916  *-64|*"-64 ") libmagic=64-bit;;
4917  *) libmagic=never-match;;
4918  esac
4919  lt_cv_deplibs_check_method=pass_all
4920  ;;
4921
4922# This must be Linux ELF.
4923linux* | k*bsd*-gnu)
4924  lt_cv_deplibs_check_method=pass_all
4925  ;;
4926
4927netbsd* | netbsdelf*-gnu)
4928  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4929    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4930  else
4931    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4932  fi
4933  ;;
4934
4935newos6*)
4936  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4937  lt_cv_file_magic_cmd=/usr/bin/file
4938  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4939  ;;
4940
4941nto-qnx*)
4942  lt_cv_deplibs_check_method=unknown
4943  ;;
4944
4945openbsd*)
4946  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4947    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4948  else
4949    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4950  fi
4951  ;;
4952
4953osf3* | osf4* | osf5*)
4954  lt_cv_deplibs_check_method=pass_all
4955  ;;
4956
4957solaris*)
4958  lt_cv_deplibs_check_method=pass_all
4959  ;;
4960
4961sysv4 | sysv4.3*)
4962  case $host_vendor in
4963  motorola)
4964    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]'
4965    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4966    ;;
4967  ncr)
4968    lt_cv_deplibs_check_method=pass_all
4969    ;;
4970  sequent)
4971    lt_cv_file_magic_cmd='/bin/file'
4972    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4973    ;;
4974  sni)
4975    lt_cv_file_magic_cmd='/bin/file'
4976    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4977    lt_cv_file_magic_test_file=/lib/libc.so
4978    ;;
4979  siemens)
4980    lt_cv_deplibs_check_method=pass_all
4981    ;;
4982  pc)
4983    lt_cv_deplibs_check_method=pass_all
4984    ;;
4985  esac
4986  ;;
4987
4988sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4989  lt_cv_deplibs_check_method=pass_all
4990  ;;
4991esac
4992
4993fi
4994{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4995echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4996file_magic_cmd=$lt_cv_file_magic_cmd
4997deplibs_check_method=$lt_cv_deplibs_check_method
4998test -z "$deplibs_check_method" && deplibs_check_method=unknown
4999
5000
5001
5002
5003# If no C compiler was specified, use CC.
5004LTCC=${LTCC-"$CC"}
5005
5006# If no C compiler flags were specified, use CFLAGS.
5007LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5008
5009# Allow CC to be a program name with arguments.
5010compiler=$CC
5011
5012
5013# Check whether --enable-libtool-lock was given.
5014if test "${enable_libtool_lock+set}" = set; then
5015  enableval=$enable_libtool_lock;
5016fi
5017
5018test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5019
5020# Some flags need to be propagated to the compiler or linker for good
5021# libtool support.
5022case $host in
5023ia64-*-hpux*)
5024  # Find out which ABI we are using.
5025  echo 'int i;' > conftest.$ac_ext
5026  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5027  (eval $ac_compile) 2>&5
5028  ac_status=$?
5029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030  (exit $ac_status); }; then
5031    case `/usr/bin/file conftest.$ac_objext` in
5032    *ELF-32*)
5033      HPUX_IA64_MODE="32"
5034      ;;
5035    *ELF-64*)
5036      HPUX_IA64_MODE="64"
5037      ;;
5038    esac
5039  fi
5040  rm -rf conftest*
5041  ;;
5042*-*-irix6*)
5043  # Find out which ABI we are using.
5044  echo '#line 5044 "configure"' > conftest.$ac_ext
5045  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5046  (eval $ac_compile) 2>&5
5047  ac_status=$?
5048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049  (exit $ac_status); }; then
5050   if test "$lt_cv_prog_gnu_ld" = yes; then
5051    case `/usr/bin/file conftest.$ac_objext` in
5052    *32-bit*)
5053      LD="${LD-ld} -melf32bsmip"
5054      ;;
5055    *N32*)
5056      LD="${LD-ld} -melf32bmipn32"
5057      ;;
5058    *64-bit*)
5059      LD="${LD-ld} -melf64bmip"
5060      ;;
5061    esac
5062   else
5063    case `/usr/bin/file conftest.$ac_objext` in
5064    *32-bit*)
5065      LD="${LD-ld} -32"
5066      ;;
5067    *N32*)
5068      LD="${LD-ld} -n32"
5069      ;;
5070    *64-bit*)
5071      LD="${LD-ld} -64"
5072      ;;
5073    esac
5074   fi
5075  fi
5076  rm -rf conftest*
5077  ;;
5078
5079x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5080  # Find out which ABI we are using.
5081  echo 'int i;' > conftest.$ac_ext
5082  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5083  (eval $ac_compile) 2>&5
5084  ac_status=$?
5085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086  (exit $ac_status); }; then
5087    case `/usr/bin/file conftest.o` in
5088    *32-bit*)
5089      case $host in
5090        x86_64-*linux*)
5091          LD="${LD-ld} -m elf_i386"
5092          ;;
5093        ppc64-*linux*|powerpc64-*linux*)
5094          LD="${LD-ld} -m elf32ppclinux"
5095          ;;
5096        s390x-*linux*)
5097          LD="${LD-ld} -m elf_s390"
5098          ;;
5099        sparc64-*linux*)
5100          LD="${LD-ld} -m elf32_sparc"
5101          ;;
5102      esac
5103      ;;
5104    *64-bit*)
5105      case $host in
5106        x86_64-*linux*)
5107          LD="${LD-ld} -m elf_x86_64"
5108          ;;
5109        ppc*-*linux*|powerpc*-*linux*)
5110          LD="${LD-ld} -m elf64ppc"
5111          ;;
5112        s390*-*linux*)
5113          LD="${LD-ld} -m elf64_s390"
5114          ;;
5115        sparc*-*linux*)
5116          LD="${LD-ld} -m elf64_sparc"
5117          ;;
5118      esac
5119      ;;
5120    esac
5121  fi
5122  rm -rf conftest*
5123  ;;
5124
5125*-*-sco3.2v5*)
5126  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5127  SAVE_CFLAGS="$CFLAGS"
5128  CFLAGS="$CFLAGS -belf"
5129  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5130echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5131if test "${lt_cv_cc_needs_belf+set}" = set; then
5132  echo $ECHO_N "(cached) $ECHO_C" >&6
5133else
5134  ac_ext=c
5135ac_cpp='$CPP $CPPFLAGS'
5136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139
5140     cat >conftest.$ac_ext <<_ACEOF
5141/* confdefs.h.  */
5142_ACEOF
5143cat confdefs.h >>conftest.$ac_ext
5144cat >>conftest.$ac_ext <<_ACEOF
5145/* end confdefs.h.  */
5146
5147int
5148main ()
5149{
5150
5151  ;
5152  return 0;
5153}
5154_ACEOF
5155rm -f conftest.$ac_objext conftest$ac_exeext
5156if { (ac_try="$ac_link"
5157case "(($ac_try" in
5158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159  *) ac_try_echo=$ac_try;;
5160esac
5161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162  (eval "$ac_link") 2>conftest.er1
5163  ac_status=$?
5164  grep -v '^ *+' conftest.er1 >conftest.err
5165  rm -f conftest.er1
5166  cat conftest.err >&5
5167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168  (exit $ac_status); } && {
5169	 test -z "$ac_c_werror_flag" ||
5170	 test ! -s conftest.err
5171       } && test -s conftest$ac_exeext &&
5172       $as_test_x conftest$ac_exeext; then
5173  lt_cv_cc_needs_belf=yes
5174else
5175  echo "$as_me: failed program was:" >&5
5176sed 's/^/| /' conftest.$ac_ext >&5
5177
5178	lt_cv_cc_needs_belf=no
5179fi
5180
5181rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5182      conftest$ac_exeext conftest.$ac_ext
5183     ac_ext=c
5184ac_cpp='$CPP $CPPFLAGS'
5185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187ac_compiler_gnu=$ac_cv_c_compiler_gnu
5188
5189fi
5190{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5191echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5192  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5193    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5194    CFLAGS="$SAVE_CFLAGS"
5195  fi
5196  ;;
5197sparc*-*solaris*)
5198  # Find out which ABI we are using.
5199  echo 'int i;' > conftest.$ac_ext
5200  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5201  (eval $ac_compile) 2>&5
5202  ac_status=$?
5203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204  (exit $ac_status); }; then
5205    case `/usr/bin/file conftest.o` in
5206    *64-bit*)
5207      case $lt_cv_prog_gnu_ld in
5208      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5209      *)    LD="${LD-ld} -64" ;;
5210      esac
5211      ;;
5212    esac
5213  fi
5214  rm -rf conftest*
5215  ;;
5216
5217
5218esac
5219
5220need_locks="$enable_libtool_lock"
5221
5222
5223ac_ext=c
5224ac_cpp='$CPP $CPPFLAGS'
5225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5227ac_compiler_gnu=$ac_cv_c_compiler_gnu
5228{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5229echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5230# On Suns, sometimes $CPP names a directory.
5231if test -n "$CPP" && test -d "$CPP"; then
5232  CPP=
5233fi
5234if test -z "$CPP"; then
5235  if test "${ac_cv_prog_CPP+set}" = set; then
5236  echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238      # Double quotes because CPP needs to be expanded
5239    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5240    do
5241      ac_preproc_ok=false
5242for ac_c_preproc_warn_flag in '' yes
5243do
5244  # Use a header file that comes with gcc, so configuring glibc
5245  # with a fresh cross-compiler works.
5246  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5247  # <limits.h> exists even on freestanding compilers.
5248  # On the NeXT, cc -E runs the code through the compiler's parser,
5249  # not just through cpp. "Syntax error" is here to catch this case.
5250  cat >conftest.$ac_ext <<_ACEOF
5251/* confdefs.h.  */
5252_ACEOF
5253cat confdefs.h >>conftest.$ac_ext
5254cat >>conftest.$ac_ext <<_ACEOF
5255/* end confdefs.h.  */
5256#ifdef __STDC__
5257# include <limits.h>
5258#else
5259# include <assert.h>
5260#endif
5261		     Syntax error
5262_ACEOF
5263if { (ac_try="$ac_cpp conftest.$ac_ext"
5264case "(($ac_try" in
5265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266  *) ac_try_echo=$ac_try;;
5267esac
5268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5270  ac_status=$?
5271  grep -v '^ *+' conftest.er1 >conftest.err
5272  rm -f conftest.er1
5273  cat conftest.err >&5
5274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275  (exit $ac_status); } >/dev/null && {
5276	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5277	 test ! -s conftest.err
5278       }; then
5279  :
5280else
5281  echo "$as_me: failed program was:" >&5
5282sed 's/^/| /' conftest.$ac_ext >&5
5283
5284  # Broken: fails on valid input.
5285continue
5286fi
5287
5288rm -f conftest.err conftest.$ac_ext
5289
5290  # OK, works on sane cases.  Now check whether nonexistent headers
5291  # can be detected and how.
5292  cat >conftest.$ac_ext <<_ACEOF
5293/* confdefs.h.  */
5294_ACEOF
5295cat confdefs.h >>conftest.$ac_ext
5296cat >>conftest.$ac_ext <<_ACEOF
5297/* end confdefs.h.  */
5298#include <ac_nonexistent.h>
5299_ACEOF
5300if { (ac_try="$ac_cpp conftest.$ac_ext"
5301case "(($ac_try" in
5302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303  *) ac_try_echo=$ac_try;;
5304esac
5305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5307  ac_status=$?
5308  grep -v '^ *+' conftest.er1 >conftest.err
5309  rm -f conftest.er1
5310  cat conftest.err >&5
5311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312  (exit $ac_status); } >/dev/null && {
5313	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5314	 test ! -s conftest.err
5315       }; then
5316  # Broken: success on invalid input.
5317continue
5318else
5319  echo "$as_me: failed program was:" >&5
5320sed 's/^/| /' conftest.$ac_ext >&5
5321
5322  # Passes both tests.
5323ac_preproc_ok=:
5324break
5325fi
5326
5327rm -f conftest.err conftest.$ac_ext
5328
5329done
5330# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5331rm -f conftest.err conftest.$ac_ext
5332if $ac_preproc_ok; then
5333  break
5334fi
5335
5336    done
5337    ac_cv_prog_CPP=$CPP
5338
5339fi
5340  CPP=$ac_cv_prog_CPP
5341else
5342  ac_cv_prog_CPP=$CPP
5343fi
5344{ echo "$as_me:$LINENO: result: $CPP" >&5
5345echo "${ECHO_T}$CPP" >&6; }
5346ac_preproc_ok=false
5347for ac_c_preproc_warn_flag in '' yes
5348do
5349  # Use a header file that comes with gcc, so configuring glibc
5350  # with a fresh cross-compiler works.
5351  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5352  # <limits.h> exists even on freestanding compilers.
5353  # On the NeXT, cc -E runs the code through the compiler's parser,
5354  # not just through cpp. "Syntax error" is here to catch this case.
5355  cat >conftest.$ac_ext <<_ACEOF
5356/* confdefs.h.  */
5357_ACEOF
5358cat confdefs.h >>conftest.$ac_ext
5359cat >>conftest.$ac_ext <<_ACEOF
5360/* end confdefs.h.  */
5361#ifdef __STDC__
5362# include <limits.h>
5363#else
5364# include <assert.h>
5365#endif
5366		     Syntax error
5367_ACEOF
5368if { (ac_try="$ac_cpp conftest.$ac_ext"
5369case "(($ac_try" in
5370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371  *) ac_try_echo=$ac_try;;
5372esac
5373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5375  ac_status=$?
5376  grep -v '^ *+' conftest.er1 >conftest.err
5377  rm -f conftest.er1
5378  cat conftest.err >&5
5379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380  (exit $ac_status); } >/dev/null && {
5381	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5382	 test ! -s conftest.err
5383       }; then
5384  :
5385else
5386  echo "$as_me: failed program was:" >&5
5387sed 's/^/| /' conftest.$ac_ext >&5
5388
5389  # Broken: fails on valid input.
5390continue
5391fi
5392
5393rm -f conftest.err conftest.$ac_ext
5394
5395  # OK, works on sane cases.  Now check whether nonexistent headers
5396  # can be detected and how.
5397  cat >conftest.$ac_ext <<_ACEOF
5398/* confdefs.h.  */
5399_ACEOF
5400cat confdefs.h >>conftest.$ac_ext
5401cat >>conftest.$ac_ext <<_ACEOF
5402/* end confdefs.h.  */
5403#include <ac_nonexistent.h>
5404_ACEOF
5405if { (ac_try="$ac_cpp conftest.$ac_ext"
5406case "(($ac_try" in
5407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408  *) ac_try_echo=$ac_try;;
5409esac
5410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5412  ac_status=$?
5413  grep -v '^ *+' conftest.er1 >conftest.err
5414  rm -f conftest.er1
5415  cat conftest.err >&5
5416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417  (exit $ac_status); } >/dev/null && {
5418	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5419	 test ! -s conftest.err
5420       }; then
5421  # Broken: success on invalid input.
5422continue
5423else
5424  echo "$as_me: failed program was:" >&5
5425sed 's/^/| /' conftest.$ac_ext >&5
5426
5427  # Passes both tests.
5428ac_preproc_ok=:
5429break
5430fi
5431
5432rm -f conftest.err conftest.$ac_ext
5433
5434done
5435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5436rm -f conftest.err conftest.$ac_ext
5437if $ac_preproc_ok; then
5438  :
5439else
5440  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5441See \`config.log' for more details." >&5
5442echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5443See \`config.log' for more details." >&2;}
5444   { (exit 1); exit 1; }; }
5445fi
5446
5447ac_ext=c
5448ac_cpp='$CPP $CPPFLAGS'
5449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5451ac_compiler_gnu=$ac_cv_c_compiler_gnu
5452
5453
5454{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5455echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5456if test "${ac_cv_header_stdc+set}" = set; then
5457  echo $ECHO_N "(cached) $ECHO_C" >&6
5458else
5459  cat >conftest.$ac_ext <<_ACEOF
5460/* confdefs.h.  */
5461_ACEOF
5462cat confdefs.h >>conftest.$ac_ext
5463cat >>conftest.$ac_ext <<_ACEOF
5464/* end confdefs.h.  */
5465#include <stdlib.h>
5466#include <stdarg.h>
5467#include <string.h>
5468#include <float.h>
5469
5470int
5471main ()
5472{
5473
5474  ;
5475  return 0;
5476}
5477_ACEOF
5478rm -f conftest.$ac_objext
5479if { (ac_try="$ac_compile"
5480case "(($ac_try" in
5481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482  *) ac_try_echo=$ac_try;;
5483esac
5484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485  (eval "$ac_compile") 2>conftest.er1
5486  ac_status=$?
5487  grep -v '^ *+' conftest.er1 >conftest.err
5488  rm -f conftest.er1
5489  cat conftest.err >&5
5490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491  (exit $ac_status); } && {
5492	 test -z "$ac_c_werror_flag" ||
5493	 test ! -s conftest.err
5494       } && test -s conftest.$ac_objext; then
5495  ac_cv_header_stdc=yes
5496else
5497  echo "$as_me: failed program was:" >&5
5498sed 's/^/| /' conftest.$ac_ext >&5
5499
5500	ac_cv_header_stdc=no
5501fi
5502
5503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504
5505if test $ac_cv_header_stdc = yes; then
5506  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5507  cat >conftest.$ac_ext <<_ACEOF
5508/* confdefs.h.  */
5509_ACEOF
5510cat confdefs.h >>conftest.$ac_ext
5511cat >>conftest.$ac_ext <<_ACEOF
5512/* end confdefs.h.  */
5513#include <string.h>
5514
5515_ACEOF
5516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5517  $EGREP "memchr" >/dev/null 2>&1; then
5518  :
5519else
5520  ac_cv_header_stdc=no
5521fi
5522rm -f conftest*
5523
5524fi
5525
5526if test $ac_cv_header_stdc = yes; then
5527  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5528  cat >conftest.$ac_ext <<_ACEOF
5529/* confdefs.h.  */
5530_ACEOF
5531cat confdefs.h >>conftest.$ac_ext
5532cat >>conftest.$ac_ext <<_ACEOF
5533/* end confdefs.h.  */
5534#include <stdlib.h>
5535
5536_ACEOF
5537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5538  $EGREP "free" >/dev/null 2>&1; then
5539  :
5540else
5541  ac_cv_header_stdc=no
5542fi
5543rm -f conftest*
5544
5545fi
5546
5547if test $ac_cv_header_stdc = yes; then
5548  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5549  if test "$cross_compiling" = yes; then
5550  :
5551else
5552  cat >conftest.$ac_ext <<_ACEOF
5553/* confdefs.h.  */
5554_ACEOF
5555cat confdefs.h >>conftest.$ac_ext
5556cat >>conftest.$ac_ext <<_ACEOF
5557/* end confdefs.h.  */
5558#include <ctype.h>
5559#include <stdlib.h>
5560#if ((' ' & 0x0FF) == 0x020)
5561# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5562# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5563#else
5564# define ISLOWER(c) \
5565		   (('a' <= (c) && (c) <= 'i') \
5566		     || ('j' <= (c) && (c) <= 'r') \
5567		     || ('s' <= (c) && (c) <= 'z'))
5568# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5569#endif
5570
5571#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5572int
5573main ()
5574{
5575  int i;
5576  for (i = 0; i < 256; i++)
5577    if (XOR (islower (i), ISLOWER (i))
5578	|| toupper (i) != TOUPPER (i))
5579      return 2;
5580  return 0;
5581}
5582_ACEOF
5583rm -f conftest$ac_exeext
5584if { (ac_try="$ac_link"
5585case "(($ac_try" in
5586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587  *) ac_try_echo=$ac_try;;
5588esac
5589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590  (eval "$ac_link") 2>&5
5591  ac_status=$?
5592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5594  { (case "(($ac_try" in
5595  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596  *) ac_try_echo=$ac_try;;
5597esac
5598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5599  (eval "$ac_try") 2>&5
5600  ac_status=$?
5601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602  (exit $ac_status); }; }; then
5603  :
5604else
5605  echo "$as_me: program exited with status $ac_status" >&5
5606echo "$as_me: failed program was:" >&5
5607sed 's/^/| /' conftest.$ac_ext >&5
5608
5609( exit $ac_status )
5610ac_cv_header_stdc=no
5611fi
5612rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5613fi
5614
5615
5616fi
5617fi
5618{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5619echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5620if test $ac_cv_header_stdc = yes; then
5621
5622cat >>confdefs.h <<\_ACEOF
5623#define STDC_HEADERS 1
5624_ACEOF
5625
5626fi
5627
5628# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5639		  inttypes.h stdint.h unistd.h
5640do
5641as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5642{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5644if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5645  echo $ECHO_N "(cached) $ECHO_C" >&6
5646else
5647  cat >conftest.$ac_ext <<_ACEOF
5648/* confdefs.h.  */
5649_ACEOF
5650cat confdefs.h >>conftest.$ac_ext
5651cat >>conftest.$ac_ext <<_ACEOF
5652/* end confdefs.h.  */
5653$ac_includes_default
5654
5655#include <$ac_header>
5656_ACEOF
5657rm -f conftest.$ac_objext
5658if { (ac_try="$ac_compile"
5659case "(($ac_try" in
5660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661  *) ac_try_echo=$ac_try;;
5662esac
5663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664  (eval "$ac_compile") 2>conftest.er1
5665  ac_status=$?
5666  grep -v '^ *+' conftest.er1 >conftest.err
5667  rm -f conftest.er1
5668  cat conftest.err >&5
5669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670  (exit $ac_status); } && {
5671	 test -z "$ac_c_werror_flag" ||
5672	 test ! -s conftest.err
5673       } && test -s conftest.$ac_objext; then
5674  eval "$as_ac_Header=yes"
5675else
5676  echo "$as_me: failed program was:" >&5
5677sed 's/^/| /' conftest.$ac_ext >&5
5678
5679	eval "$as_ac_Header=no"
5680fi
5681
5682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683fi
5684ac_res=`eval echo '${'$as_ac_Header'}'`
5685	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5686echo "${ECHO_T}$ac_res" >&6; }
5687if test `eval echo '${'$as_ac_Header'}'` = yes; then
5688  cat >>confdefs.h <<_ACEOF
5689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5690_ACEOF
5691
5692fi
5693
5694done
5695
5696
5697
5698for ac_header in dlfcn.h
5699do
5700as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5702  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5704if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5705  echo $ECHO_N "(cached) $ECHO_C" >&6
5706fi
5707ac_res=`eval echo '${'$as_ac_Header'}'`
5708	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5709echo "${ECHO_T}$ac_res" >&6; }
5710else
5711  # Is the header compilable?
5712{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5713echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5714cat >conftest.$ac_ext <<_ACEOF
5715/* confdefs.h.  */
5716_ACEOF
5717cat confdefs.h >>conftest.$ac_ext
5718cat >>conftest.$ac_ext <<_ACEOF
5719/* end confdefs.h.  */
5720$ac_includes_default
5721#include <$ac_header>
5722_ACEOF
5723rm -f conftest.$ac_objext
5724if { (ac_try="$ac_compile"
5725case "(($ac_try" in
5726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727  *) ac_try_echo=$ac_try;;
5728esac
5729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730  (eval "$ac_compile") 2>conftest.er1
5731  ac_status=$?
5732  grep -v '^ *+' conftest.er1 >conftest.err
5733  rm -f conftest.er1
5734  cat conftest.err >&5
5735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736  (exit $ac_status); } && {
5737	 test -z "$ac_c_werror_flag" ||
5738	 test ! -s conftest.err
5739       } && test -s conftest.$ac_objext; then
5740  ac_header_compiler=yes
5741else
5742  echo "$as_me: failed program was:" >&5
5743sed 's/^/| /' conftest.$ac_ext >&5
5744
5745	ac_header_compiler=no
5746fi
5747
5748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5750echo "${ECHO_T}$ac_header_compiler" >&6; }
5751
5752# Is the header present?
5753{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5754echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5755cat >conftest.$ac_ext <<_ACEOF
5756/* confdefs.h.  */
5757_ACEOF
5758cat confdefs.h >>conftest.$ac_ext
5759cat >>conftest.$ac_ext <<_ACEOF
5760/* end confdefs.h.  */
5761#include <$ac_header>
5762_ACEOF
5763if { (ac_try="$ac_cpp conftest.$ac_ext"
5764case "(($ac_try" in
5765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5766  *) ac_try_echo=$ac_try;;
5767esac
5768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5769  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5770  ac_status=$?
5771  grep -v '^ *+' conftest.er1 >conftest.err
5772  rm -f conftest.er1
5773  cat conftest.err >&5
5774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775  (exit $ac_status); } >/dev/null && {
5776	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5777	 test ! -s conftest.err
5778       }; then
5779  ac_header_preproc=yes
5780else
5781  echo "$as_me: failed program was:" >&5
5782sed 's/^/| /' conftest.$ac_ext >&5
5783
5784  ac_header_preproc=no
5785fi
5786
5787rm -f conftest.err conftest.$ac_ext
5788{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5789echo "${ECHO_T}$ac_header_preproc" >&6; }
5790
5791# So?  What about this header?
5792case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5793  yes:no: )
5794    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5795echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5796    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5797echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5798    ac_header_preproc=yes
5799    ;;
5800  no:yes:* )
5801    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5802echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5803    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5804echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5805    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5806echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5807    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5808echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5809    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5811    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5812echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5813    ( cat <<\_ASBOX
5814## ------------------------------- ##
5815## Report this to cgagne@gmail.com ##
5816## ------------------------------- ##
5817_ASBOX
5818     ) | sed "s/^/$as_me: WARNING:     /" >&2
5819    ;;
5820esac
5821{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5823if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5824  echo $ECHO_N "(cached) $ECHO_C" >&6
5825else
5826  eval "$as_ac_Header=\$ac_header_preproc"
5827fi
5828ac_res=`eval echo '${'$as_ac_Header'}'`
5829	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5830echo "${ECHO_T}$ac_res" >&6; }
5831
5832fi
5833if test `eval echo '${'$as_ac_Header'}'` = yes; then
5834  cat >>confdefs.h <<_ACEOF
5835#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5836_ACEOF
5837
5838fi
5839
5840done
5841
5842
5843
5844if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5845    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5846    (test "X$CXX" != "Xg++"))) ; then
5847  ac_ext=cpp
5848ac_cpp='$CXXCPP $CPPFLAGS'
5849ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5850ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5851ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5852{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5853echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5854if test -z "$CXXCPP"; then
5855  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5856  echo $ECHO_N "(cached) $ECHO_C" >&6
5857else
5858      # Double quotes because CXXCPP needs to be expanded
5859    for CXXCPP in "$CXX -E" "/lib/cpp"
5860    do
5861      ac_preproc_ok=false
5862for ac_cxx_preproc_warn_flag in '' yes
5863do
5864  # Use a header file that comes with gcc, so configuring glibc
5865  # with a fresh cross-compiler works.
5866  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5867  # <limits.h> exists even on freestanding compilers.
5868  # On the NeXT, cc -E runs the code through the compiler's parser,
5869  # not just through cpp. "Syntax error" is here to catch this case.
5870  cat >conftest.$ac_ext <<_ACEOF
5871/* confdefs.h.  */
5872_ACEOF
5873cat confdefs.h >>conftest.$ac_ext
5874cat >>conftest.$ac_ext <<_ACEOF
5875/* end confdefs.h.  */
5876#ifdef __STDC__
5877# include <limits.h>
5878#else
5879# include <assert.h>
5880#endif
5881		     Syntax error
5882_ACEOF
5883if { (ac_try="$ac_cpp conftest.$ac_ext"
5884case "(($ac_try" in
5885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886  *) ac_try_echo=$ac_try;;
5887esac
5888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5890  ac_status=$?
5891  grep -v '^ *+' conftest.er1 >conftest.err
5892  rm -f conftest.er1
5893  cat conftest.err >&5
5894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895  (exit $ac_status); } >/dev/null && {
5896	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5897	 test ! -s conftest.err
5898       }; then
5899  :
5900else
5901  echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
5904  # Broken: fails on valid input.
5905continue
5906fi
5907
5908rm -f conftest.err conftest.$ac_ext
5909
5910  # OK, works on sane cases.  Now check whether nonexistent headers
5911  # can be detected and how.
5912  cat >conftest.$ac_ext <<_ACEOF
5913/* confdefs.h.  */
5914_ACEOF
5915cat confdefs.h >>conftest.$ac_ext
5916cat >>conftest.$ac_ext <<_ACEOF
5917/* end confdefs.h.  */
5918#include <ac_nonexistent.h>
5919_ACEOF
5920if { (ac_try="$ac_cpp conftest.$ac_ext"
5921case "(($ac_try" in
5922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923  *) ac_try_echo=$ac_try;;
5924esac
5925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5927  ac_status=$?
5928  grep -v '^ *+' conftest.er1 >conftest.err
5929  rm -f conftest.er1
5930  cat conftest.err >&5
5931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932  (exit $ac_status); } >/dev/null && {
5933	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5934	 test ! -s conftest.err
5935       }; then
5936  # Broken: success on invalid input.
5937continue
5938else
5939  echo "$as_me: failed program was:" >&5
5940sed 's/^/| /' conftest.$ac_ext >&5
5941
5942  # Passes both tests.
5943ac_preproc_ok=:
5944break
5945fi
5946
5947rm -f conftest.err conftest.$ac_ext
5948
5949done
5950# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5951rm -f conftest.err conftest.$ac_ext
5952if $ac_preproc_ok; then
5953  break
5954fi
5955
5956    done
5957    ac_cv_prog_CXXCPP=$CXXCPP
5958
5959fi
5960  CXXCPP=$ac_cv_prog_CXXCPP
5961else
5962  ac_cv_prog_CXXCPP=$CXXCPP
5963fi
5964{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5965echo "${ECHO_T}$CXXCPP" >&6; }
5966ac_preproc_ok=false
5967for ac_cxx_preproc_warn_flag in '' yes
5968do
5969  # Use a header file that comes with gcc, so configuring glibc
5970  # with a fresh cross-compiler works.
5971  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5972  # <limits.h> exists even on freestanding compilers.
5973  # On the NeXT, cc -E runs the code through the compiler's parser,
5974  # not just through cpp. "Syntax error" is here to catch this case.
5975  cat >conftest.$ac_ext <<_ACEOF
5976/* confdefs.h.  */
5977_ACEOF
5978cat confdefs.h >>conftest.$ac_ext
5979cat >>conftest.$ac_ext <<_ACEOF
5980/* end confdefs.h.  */
5981#ifdef __STDC__
5982# include <limits.h>
5983#else
5984# include <assert.h>
5985#endif
5986		     Syntax error
5987_ACEOF
5988if { (ac_try="$ac_cpp conftest.$ac_ext"
5989case "(($ac_try" in
5990  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991  *) ac_try_echo=$ac_try;;
5992esac
5993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5995  ac_status=$?
5996  grep -v '^ *+' conftest.er1 >conftest.err
5997  rm -f conftest.er1
5998  cat conftest.err >&5
5999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000  (exit $ac_status); } >/dev/null && {
6001	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6002	 test ! -s conftest.err
6003       }; then
6004  :
6005else
6006  echo "$as_me: failed program was:" >&5
6007sed 's/^/| /' conftest.$ac_ext >&5
6008
6009  # Broken: fails on valid input.
6010continue
6011fi
6012
6013rm -f conftest.err conftest.$ac_ext
6014
6015  # OK, works on sane cases.  Now check whether nonexistent headers
6016  # can be detected and how.
6017  cat >conftest.$ac_ext <<_ACEOF
6018/* confdefs.h.  */
6019_ACEOF
6020cat confdefs.h >>conftest.$ac_ext
6021cat >>conftest.$ac_ext <<_ACEOF
6022/* end confdefs.h.  */
6023#include <ac_nonexistent.h>
6024_ACEOF
6025if { (ac_try="$ac_cpp conftest.$ac_ext"
6026case "(($ac_try" in
6027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028  *) ac_try_echo=$ac_try;;
6029esac
6030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6032  ac_status=$?
6033  grep -v '^ *+' conftest.er1 >conftest.err
6034  rm -f conftest.er1
6035  cat conftest.err >&5
6036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037  (exit $ac_status); } >/dev/null && {
6038	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6039	 test ! -s conftest.err
6040       }; then
6041  # Broken: success on invalid input.
6042continue
6043else
6044  echo "$as_me: failed program was:" >&5
6045sed 's/^/| /' conftest.$ac_ext >&5
6046
6047  # Passes both tests.
6048ac_preproc_ok=:
6049break
6050fi
6051
6052rm -f conftest.err conftest.$ac_ext
6053
6054done
6055# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6056rm -f conftest.err conftest.$ac_ext
6057if $ac_preproc_ok; then
6058  :
6059else
6060  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6061See \`config.log' for more details." >&5
6062echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6063See \`config.log' for more details." >&2;}
6064   { (exit 1); exit 1; }; }
6065fi
6066
6067ac_ext=cpp
6068ac_cpp='$CXXCPP $CPPFLAGS'
6069ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6070ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6071ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6072
6073fi
6074
6075
6076ac_ext=f
6077ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6078ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6079ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6080if test -n "$ac_tool_prefix"; then
6081  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
6082  do
6083    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6085{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6087if test "${ac_cv_prog_F77+set}" = set; then
6088  echo $ECHO_N "(cached) $ECHO_C" >&6
6089else
6090  if test -n "$F77"; then
6091  ac_cv_prog_F77="$F77" # Let the user override the test.
6092else
6093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094for as_dir in $PATH
6095do
6096  IFS=$as_save_IFS
6097  test -z "$as_dir" && as_dir=.
6098  for ac_exec_ext in '' $ac_executable_extensions; do
6099  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6100    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6101    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6102    break 2
6103  fi
6104done
6105done
6106IFS=$as_save_IFS
6107
6108fi
6109fi
6110F77=$ac_cv_prog_F77
6111if test -n "$F77"; then
6112  { echo "$as_me:$LINENO: result: $F77" >&5
6113echo "${ECHO_T}$F77" >&6; }
6114else
6115  { echo "$as_me:$LINENO: result: no" >&5
6116echo "${ECHO_T}no" >&6; }
6117fi
6118
6119
6120    test -n "$F77" && break
6121  done
6122fi
6123if test -z "$F77"; then
6124  ac_ct_F77=$F77
6125  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
6126do
6127  # Extract the first word of "$ac_prog", so it can be a program name with args.
6128set dummy $ac_prog; ac_word=$2
6129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6131if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6132  echo $ECHO_N "(cached) $ECHO_C" >&6
6133else
6134  if test -n "$ac_ct_F77"; then
6135  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6136else
6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140  IFS=$as_save_IFS
6141  test -z "$as_dir" && as_dir=.
6142  for ac_exec_ext in '' $ac_executable_extensions; do
6143  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144    ac_cv_prog_ac_ct_F77="$ac_prog"
6145    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146    break 2
6147  fi
6148done
6149done
6150IFS=$as_save_IFS
6151
6152fi
6153fi
6154ac_ct_F77=$ac_cv_prog_ac_ct_F77
6155if test -n "$ac_ct_F77"; then
6156  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6157echo "${ECHO_T}$ac_ct_F77" >&6; }
6158else
6159  { echo "$as_me:$LINENO: result: no" >&5
6160echo "${ECHO_T}no" >&6; }
6161fi
6162
6163
6164  test -n "$ac_ct_F77" && break
6165done
6166
6167  if test "x$ac_ct_F77" = x; then
6168    F77=""
6169  else
6170    case $cross_compiling:$ac_tool_warned in
6171yes:)
6172{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6173whose name does not start with the host triplet.  If you think this
6174configuration is useful to you, please write to autoconf@gnu.org." >&5
6175echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6176whose name does not start with the host triplet.  If you think this
6177configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6178ac_tool_warned=yes ;;
6179esac
6180    F77=$ac_ct_F77
6181  fi
6182fi
6183
6184
6185# Provide some information about the compiler.
6186echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6187ac_compiler=`set X $ac_compile; echo $2`
6188{ (ac_try="$ac_compiler --version >&5"
6189case "(($ac_try" in
6190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191  *) ac_try_echo=$ac_try;;
6192esac
6193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6194  (eval "$ac_compiler --version >&5") 2>&5
6195  ac_status=$?
6196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197  (exit $ac_status); }
6198{ (ac_try="$ac_compiler -v >&5"
6199case "(($ac_try" in
6200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201  *) ac_try_echo=$ac_try;;
6202esac
6203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204  (eval "$ac_compiler -v >&5") 2>&5
6205  ac_status=$?
6206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207  (exit $ac_status); }
6208{ (ac_try="$ac_compiler -V >&5"
6209case "(($ac_try" in
6210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211  *) ac_try_echo=$ac_try;;
6212esac
6213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214  (eval "$ac_compiler -V >&5") 2>&5
6215  ac_status=$?
6216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217  (exit $ac_status); }
6218rm -f a.out
6219
6220# If we don't use `.F' as extension, the preprocessor is not run on the
6221# input file.  (Note that this only needs to work for GNU compilers.)
6222ac_save_ext=$ac_ext
6223ac_ext=F
6224{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6225echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6226if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6227  echo $ECHO_N "(cached) $ECHO_C" >&6
6228else
6229  cat >conftest.$ac_ext <<_ACEOF
6230      program main
6231#ifndef __GNUC__
6232       choke me
6233#endif
6234
6235      end
6236_ACEOF
6237rm -f conftest.$ac_objext
6238if { (ac_try="$ac_compile"
6239case "(($ac_try" in
6240  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6241  *) ac_try_echo=$ac_try;;
6242esac
6243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6244  (eval "$ac_compile") 2>conftest.er1
6245  ac_status=$?
6246  grep -v '^ *+' conftest.er1 >conftest.err
6247  rm -f conftest.er1
6248  cat conftest.err >&5
6249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250  (exit $ac_status); } && {
6251	 test -z "$ac_f77_werror_flag" ||
6252	 test ! -s conftest.err
6253       } && test -s conftest.$ac_objext; then
6254  ac_compiler_gnu=yes
6255else
6256  echo "$as_me: failed program was:" >&5
6257sed 's/^/| /' conftest.$ac_ext >&5
6258
6259	ac_compiler_gnu=no
6260fi
6261
6262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6264
6265fi
6266{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6267echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6268ac_ext=$ac_save_ext
6269ac_test_FFLAGS=${FFLAGS+set}
6270ac_save_FFLAGS=$FFLAGS
6271FFLAGS=
6272{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6273echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6274if test "${ac_cv_prog_f77_g+set}" = set; then
6275  echo $ECHO_N "(cached) $ECHO_C" >&6
6276else
6277  FFLAGS=-g
6278cat >conftest.$ac_ext <<_ACEOF
6279      program main
6280
6281      end
6282_ACEOF
6283rm -f conftest.$ac_objext
6284if { (ac_try="$ac_compile"
6285case "(($ac_try" in
6286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287  *) ac_try_echo=$ac_try;;
6288esac
6289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290  (eval "$ac_compile") 2>conftest.er1
6291  ac_status=$?
6292  grep -v '^ *+' conftest.er1 >conftest.err
6293  rm -f conftest.er1
6294  cat conftest.err >&5
6295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296  (exit $ac_status); } && {
6297	 test -z "$ac_f77_werror_flag" ||
6298	 test ! -s conftest.err
6299       } && test -s conftest.$ac_objext; then
6300  ac_cv_prog_f77_g=yes
6301else
6302  echo "$as_me: failed program was:" >&5
6303sed 's/^/| /' conftest.$ac_ext >&5
6304
6305	ac_cv_prog_f77_g=no
6306fi
6307
6308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309
6310fi
6311{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6312echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6313if test "$ac_test_FFLAGS" = set; then
6314  FFLAGS=$ac_save_FFLAGS
6315elif test $ac_cv_prog_f77_g = yes; then
6316  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6317    FFLAGS="-g -O2"
6318  else
6319    FFLAGS="-g"
6320  fi
6321else
6322  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6323    FFLAGS="-O2"
6324  else
6325    FFLAGS=
6326  fi
6327fi
6328
6329G77=`test $ac_compiler_gnu = yes && echo yes`
6330ac_ext=c
6331ac_cpp='$CPP $CPPFLAGS'
6332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6334ac_compiler_gnu=$ac_cv_c_compiler_gnu
6335
6336
6337
6338# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6339
6340# find the maximum length of command line arguments
6341{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6342echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6343if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6344  echo $ECHO_N "(cached) $ECHO_C" >&6
6345else
6346    i=0
6347  teststring="ABCD"
6348
6349  case $build_os in
6350  msdosdjgpp*)
6351    # On DJGPP, this test can blow up pretty badly due to problems in libc
6352    # (any single argument exceeding 2000 bytes causes a buffer overrun
6353    # during glob expansion).  Even if it were fixed, the result of this
6354    # check would be larger than it should be.
6355    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6356    ;;
6357
6358  gnu*)
6359    # Under GNU Hurd, this test is not required because there is
6360    # no limit to the length of command line arguments.
6361    # Libtool will interpret -1 as no limit whatsoever
6362    lt_cv_sys_max_cmd_len=-1;
6363    ;;
6364
6365  cygwin* | mingw*)
6366    # On Win9x/ME, this test blows up -- it succeeds, but takes
6367    # about 5 minutes as the teststring grows exponentially.
6368    # Worse, since 9x/ME are not pre-emptively multitasking,
6369    # you end up with a "frozen" computer, even though with patience
6370    # the test eventually succeeds (with a max line length of 256k).
6371    # Instead, let's just punt: use the minimum linelength reported by
6372    # all of the supported platforms: 8192 (on NT/2K/XP).
6373    lt_cv_sys_max_cmd_len=8192;
6374    ;;
6375
6376  amigaos*)
6377    # On AmigaOS with pdksh, this test takes hours, literally.
6378    # So we just punt and use a minimum line length of 8192.
6379    lt_cv_sys_max_cmd_len=8192;
6380    ;;
6381
6382  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6383    # This has been around since 386BSD, at least.  Likely further.
6384    if test -x /sbin/sysctl; then
6385      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6386    elif test -x /usr/sbin/sysctl; then
6387      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6388    else
6389      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6390    fi
6391    # And add a safety zone
6392    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6393    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6394    ;;
6395
6396  interix*)
6397    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6398    lt_cv_sys_max_cmd_len=196608
6399    ;;
6400
6401  osf*)
6402    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6403    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6404    # nice to cause kernel panics so lets avoid the loop below.
6405    # First set a reasonable default.
6406    lt_cv_sys_max_cmd_len=16384
6407    #
6408    if test -x /sbin/sysconfig; then
6409      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6410        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6411      esac
6412    fi
6413    ;;
6414  sco3.2v5*)
6415    lt_cv_sys_max_cmd_len=102400
6416    ;;
6417  sysv5* | sco5v6* | sysv4.2uw2*)
6418    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6419    if test -n "$kargmax"; then
6420      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6421    else
6422      lt_cv_sys_max_cmd_len=32768
6423    fi
6424    ;;
6425  *)
6426    # If test is not a shell built-in, we'll probably end up computing a
6427    # maximum length that is only half of the actual maximum length, but
6428    # we can't tell.
6429    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6430    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6431	       = "XX$teststring") >/dev/null 2>&1 &&
6432	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6433	    lt_cv_sys_max_cmd_len=$new_result &&
6434	    test $i != 17 # 1/2 MB should be enough
6435    do
6436      i=`expr $i + 1`
6437      teststring=$teststring$teststring
6438    done
6439    teststring=
6440    # Add a significant safety factor because C++ compilers can tack on massive
6441    # amounts of additional arguments before passing them to the linker.
6442    # It appears as though 1/2 is a usable value.
6443    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6444    ;;
6445  esac
6446
6447fi
6448
6449if test -n $lt_cv_sys_max_cmd_len ; then
6450  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6451echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6452else
6453  { echo "$as_me:$LINENO: result: none" >&5
6454echo "${ECHO_T}none" >&6; }
6455fi
6456
6457
6458
6459
6460# Check for command to grab the raw symbol name followed by C symbol from nm.
6461{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6462echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6463if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6464  echo $ECHO_N "(cached) $ECHO_C" >&6
6465else
6466
6467# These are sane defaults that work on at least a few old systems.
6468# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6469
6470# Character class describing NM global symbol codes.
6471symcode='[BCDEGRST]'
6472
6473# Regexp to match symbols that can be accessed directly from C.
6474sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6475
6476# Transform an extracted symbol line into a proper C declaration
6477lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6478
6479# Transform an extracted symbol line into symbol name and symbol address
6480lt_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'"
6481
6482# Define system-specific variables.
6483case $host_os in
6484aix*)
6485  symcode='[BCDT]'
6486  ;;
6487cygwin* | mingw* | pw32*)
6488  symcode='[ABCDGISTW]'
6489  ;;
6490hpux*) # Its linker distinguishes data from code symbols
6491  if test "$host_cpu" = ia64; then
6492    symcode='[ABCDEGRST]'
6493  fi
6494  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6495  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'"
6496  ;;
6497linux* | k*bsd*-gnu)
6498  if test "$host_cpu" = ia64; then
6499    symcode='[ABCDGIRSTW]'
6500    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6501    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'"
6502  fi
6503  ;;
6504irix* | nonstopux*)
6505  symcode='[BCDEGRST]'
6506  ;;
6507osf*)
6508  symcode='[BCDEGQRST]'
6509  ;;
6510solaris*)
6511  symcode='[BDRT]'
6512  ;;
6513sco3.2v5*)
6514  symcode='[DT]'
6515  ;;
6516sysv4.2uw2*)
6517  symcode='[DT]'
6518  ;;
6519sysv5* | sco5v6* | unixware* | OpenUNIX*)
6520  symcode='[ABDT]'
6521  ;;
6522sysv4)
6523  symcode='[DFNSTU]'
6524  ;;
6525esac
6526
6527# Handle CRLF in mingw tool chain
6528opt_cr=
6529case $build_os in
6530mingw*)
6531  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6532  ;;
6533esac
6534
6535# If we're using GNU nm, then use its standard symbol codes.
6536case `$NM -V 2>&1` in
6537*GNU* | *'with BFD'*)
6538  symcode='[ABCDGIRSTW]' ;;
6539esac
6540
6541# Try without a prefix undercore, then with it.
6542for ac_symprfx in "" "_"; do
6543
6544  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6545  symxfrm="\\1 $ac_symprfx\\2 \\2"
6546
6547  # Write the raw and C identifiers.
6548  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6549
6550  # Check to see that the pipe works correctly.
6551  pipe_works=no
6552
6553  rm -f conftest*
6554  cat > conftest.$ac_ext <<EOF
6555#ifdef __cplusplus
6556extern "C" {
6557#endif
6558char nm_test_var;
6559void nm_test_func(){}
6560#ifdef __cplusplus
6561}
6562#endif
6563int main(){nm_test_var='a';nm_test_func();return(0);}
6564EOF
6565
6566  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6567  (eval $ac_compile) 2>&5
6568  ac_status=$?
6569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570  (exit $ac_status); }; then
6571    # Now try to grab the symbols.
6572    nlist=conftest.nm
6573    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6574  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6575  ac_status=$?
6576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577  (exit $ac_status); } && test -s "$nlist"; then
6578      # Try sorting and uniquifying the output.
6579      if sort "$nlist" | uniq > "$nlist"T; then
6580	mv -f "$nlist"T "$nlist"
6581      else
6582	rm -f "$nlist"T
6583      fi
6584
6585      # Make sure that we snagged all the symbols we need.
6586      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6587	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6588	  cat <<EOF > conftest.$ac_ext
6589#ifdef __cplusplus
6590extern "C" {
6591#endif
6592
6593EOF
6594	  # Now generate the symbol file.
6595	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6596
6597	  cat <<EOF >> conftest.$ac_ext
6598#if defined (__STDC__) && __STDC__
6599# define lt_ptr_t void *
6600#else
6601# define lt_ptr_t char *
6602# define const
6603#endif
6604
6605/* The mapping between symbol names and symbols. */
6606const struct {
6607  const char *name;
6608  lt_ptr_t address;
6609}
6610lt_preloaded_symbols[] =
6611{
6612EOF
6613	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6614	  cat <<\EOF >> conftest.$ac_ext
6615  {0, (lt_ptr_t) 0}
6616};
6617
6618#ifdef __cplusplus
6619}
6620#endif
6621EOF
6622	  # Now try linking the two files.
6623	  mv conftest.$ac_objext conftstm.$ac_objext
6624	  lt_save_LIBS="$LIBS"
6625	  lt_save_CFLAGS="$CFLAGS"
6626	  LIBS="conftstm.$ac_objext"
6627	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6628	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6629  (eval $ac_link) 2>&5
6630  ac_status=$?
6631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6633	    pipe_works=yes
6634	  fi
6635	  LIBS="$lt_save_LIBS"
6636	  CFLAGS="$lt_save_CFLAGS"
6637	else
6638	  echo "cannot find nm_test_func in $nlist" >&5
6639	fi
6640      else
6641	echo "cannot find nm_test_var in $nlist" >&5
6642      fi
6643    else
6644      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6645    fi
6646  else
6647    echo "$progname: failed program was:" >&5
6648    cat conftest.$ac_ext >&5
6649  fi
6650  rm -f conftest* conftst*
6651
6652  # Do not use the global_symbol_pipe unless it works.
6653  if test "$pipe_works" = yes; then
6654    break
6655  else
6656    lt_cv_sys_global_symbol_pipe=
6657  fi
6658done
6659
6660fi
6661
6662if test -z "$lt_cv_sys_global_symbol_pipe"; then
6663  lt_cv_sys_global_symbol_to_cdecl=
6664fi
6665if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6666  { echo "$as_me:$LINENO: result: failed" >&5
6667echo "${ECHO_T}failed" >&6; }
6668else
6669  { echo "$as_me:$LINENO: result: ok" >&5
6670echo "${ECHO_T}ok" >&6; }
6671fi
6672
6673{ echo "$as_me:$LINENO: checking for objdir" >&5
6674echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6675if test "${lt_cv_objdir+set}" = set; then
6676  echo $ECHO_N "(cached) $ECHO_C" >&6
6677else
6678  rm -f .libs 2>/dev/null
6679mkdir .libs 2>/dev/null
6680if test -d .libs; then
6681  lt_cv_objdir=.libs
6682else
6683  # MS-DOS does not allow filenames that begin with a dot.
6684  lt_cv_objdir=_libs
6685fi
6686rmdir .libs 2>/dev/null
6687fi
6688{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6689echo "${ECHO_T}$lt_cv_objdir" >&6; }
6690objdir=$lt_cv_objdir
6691
6692
6693
6694
6695
6696case $host_os in
6697aix3*)
6698  # AIX sometimes has problems with the GCC collect2 program.  For some
6699  # reason, if we set the COLLECT_NAMES environment variable, the problems
6700  # vanish in a puff of smoke.
6701  if test "X${COLLECT_NAMES+set}" != Xset; then
6702    COLLECT_NAMES=
6703    export COLLECT_NAMES
6704  fi
6705  ;;
6706esac
6707
6708# Sed substitution that helps us do robust quoting.  It backslashifies
6709# metacharacters that are still active within double-quoted strings.
6710Xsed='sed -e 1s/^X//'
6711sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6712
6713# Same as above, but do not quote variable references.
6714double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6715
6716# Sed substitution to delay expansion of an escaped shell variable in a
6717# double_quote_subst'ed string.
6718delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6719
6720# Sed substitution to avoid accidental globbing in evaled expressions
6721no_glob_subst='s/\*/\\\*/g'
6722
6723# Constants:
6724rm="rm -f"
6725
6726# Global variables:
6727default_ofile=libtool
6728can_build_shared=yes
6729
6730# All known linkers require a `.a' archive for static linking (except MSVC,
6731# which needs '.lib').
6732libext=a
6733ltmain="$ac_aux_dir/ltmain.sh"
6734ofile="$default_ofile"
6735with_gnu_ld="$lt_cv_prog_gnu_ld"
6736
6737if test -n "$ac_tool_prefix"; then
6738  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6739set dummy ${ac_tool_prefix}ar; ac_word=$2
6740{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6742if test "${ac_cv_prog_AR+set}" = set; then
6743  echo $ECHO_N "(cached) $ECHO_C" >&6
6744else
6745  if test -n "$AR"; then
6746  ac_cv_prog_AR="$AR" # Let the user override the test.
6747else
6748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749for as_dir in $PATH
6750do
6751  IFS=$as_save_IFS
6752  test -z "$as_dir" && as_dir=.
6753  for ac_exec_ext in '' $ac_executable_extensions; do
6754  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6755    ac_cv_prog_AR="${ac_tool_prefix}ar"
6756    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757    break 2
6758  fi
6759done
6760done
6761IFS=$as_save_IFS
6762
6763fi
6764fi
6765AR=$ac_cv_prog_AR
6766if test -n "$AR"; then
6767  { echo "$as_me:$LINENO: result: $AR" >&5
6768echo "${ECHO_T}$AR" >&6; }
6769else
6770  { echo "$as_me:$LINENO: result: no" >&5
6771echo "${ECHO_T}no" >&6; }
6772fi
6773
6774
6775fi
6776if test -z "$ac_cv_prog_AR"; then
6777  ac_ct_AR=$AR
6778  # Extract the first word of "ar", so it can be a program name with args.
6779set dummy ar; ac_word=$2
6780{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6782if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6783  echo $ECHO_N "(cached) $ECHO_C" >&6
6784else
6785  if test -n "$ac_ct_AR"; then
6786  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6787else
6788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789for as_dir in $PATH
6790do
6791  IFS=$as_save_IFS
6792  test -z "$as_dir" && as_dir=.
6793  for ac_exec_ext in '' $ac_executable_extensions; do
6794  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6795    ac_cv_prog_ac_ct_AR="ar"
6796    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797    break 2
6798  fi
6799done
6800done
6801IFS=$as_save_IFS
6802
6803fi
6804fi
6805ac_ct_AR=$ac_cv_prog_ac_ct_AR
6806if test -n "$ac_ct_AR"; then
6807  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6808echo "${ECHO_T}$ac_ct_AR" >&6; }
6809else
6810  { echo "$as_me:$LINENO: result: no" >&5
6811echo "${ECHO_T}no" >&6; }
6812fi
6813
6814  if test "x$ac_ct_AR" = x; then
6815    AR="false"
6816  else
6817    case $cross_compiling:$ac_tool_warned in
6818yes:)
6819{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6820whose name does not start with the host triplet.  If you think this
6821configuration is useful to you, please write to autoconf@gnu.org." >&5
6822echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6823whose name does not start with the host triplet.  If you think this
6824configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6825ac_tool_warned=yes ;;
6826esac
6827    AR=$ac_ct_AR
6828  fi
6829else
6830  AR="$ac_cv_prog_AR"
6831fi
6832
6833if test -n "$ac_tool_prefix"; then
6834  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6835set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6836{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6838if test "${ac_cv_prog_RANLIB+set}" = set; then
6839  echo $ECHO_N "(cached) $ECHO_C" >&6
6840else
6841  if test -n "$RANLIB"; then
6842  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6843else
6844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845for as_dir in $PATH
6846do
6847  IFS=$as_save_IFS
6848  test -z "$as_dir" && as_dir=.
6849  for ac_exec_ext in '' $ac_executable_extensions; do
6850  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6851    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6852    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853    break 2
6854  fi
6855done
6856done
6857IFS=$as_save_IFS
6858
6859fi
6860fi
6861RANLIB=$ac_cv_prog_RANLIB
6862if test -n "$RANLIB"; then
6863  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6864echo "${ECHO_T}$RANLIB" >&6; }
6865else
6866  { echo "$as_me:$LINENO: result: no" >&5
6867echo "${ECHO_T}no" >&6; }
6868fi
6869
6870
6871fi
6872if test -z "$ac_cv_prog_RANLIB"; then
6873  ac_ct_RANLIB=$RANLIB
6874  # Extract the first word of "ranlib", so it can be a program name with args.
6875set dummy ranlib; ac_word=$2
6876{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6878if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6879  echo $ECHO_N "(cached) $ECHO_C" >&6
6880else
6881  if test -n "$ac_ct_RANLIB"; then
6882  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6883else
6884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885for as_dir in $PATH
6886do
6887  IFS=$as_save_IFS
6888  test -z "$as_dir" && as_dir=.
6889  for ac_exec_ext in '' $ac_executable_extensions; do
6890  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6891    ac_cv_prog_ac_ct_RANLIB="ranlib"
6892    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893    break 2
6894  fi
6895done
6896done
6897IFS=$as_save_IFS
6898
6899fi
6900fi
6901ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6902if test -n "$ac_ct_RANLIB"; then
6903  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6904echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6905else
6906  { echo "$as_me:$LINENO: result: no" >&5
6907echo "${ECHO_T}no" >&6; }
6908fi
6909
6910  if test "x$ac_ct_RANLIB" = x; then
6911    RANLIB=":"
6912  else
6913    case $cross_compiling:$ac_tool_warned in
6914yes:)
6915{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6916whose name does not start with the host triplet.  If you think this
6917configuration is useful to you, please write to autoconf@gnu.org." >&5
6918echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6919whose name does not start with the host triplet.  If you think this
6920configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6921ac_tool_warned=yes ;;
6922esac
6923    RANLIB=$ac_ct_RANLIB
6924  fi
6925else
6926  RANLIB="$ac_cv_prog_RANLIB"
6927fi
6928
6929if test -n "$ac_tool_prefix"; then
6930  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6931set dummy ${ac_tool_prefix}strip; ac_word=$2
6932{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6934if test "${ac_cv_prog_STRIP+set}" = set; then
6935  echo $ECHO_N "(cached) $ECHO_C" >&6
6936else
6937  if test -n "$STRIP"; then
6938  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6939else
6940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941for as_dir in $PATH
6942do
6943  IFS=$as_save_IFS
6944  test -z "$as_dir" && as_dir=.
6945  for ac_exec_ext in '' $ac_executable_extensions; do
6946  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6947    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6948    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6949    break 2
6950  fi
6951done
6952done
6953IFS=$as_save_IFS
6954
6955fi
6956fi
6957STRIP=$ac_cv_prog_STRIP
6958if test -n "$STRIP"; then
6959  { echo "$as_me:$LINENO: result: $STRIP" >&5
6960echo "${ECHO_T}$STRIP" >&6; }
6961else
6962  { echo "$as_me:$LINENO: result: no" >&5
6963echo "${ECHO_T}no" >&6; }
6964fi
6965
6966
6967fi
6968if test -z "$ac_cv_prog_STRIP"; then
6969  ac_ct_STRIP=$STRIP
6970  # Extract the first word of "strip", so it can be a program name with args.
6971set dummy strip; ac_word=$2
6972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6975  echo $ECHO_N "(cached) $ECHO_C" >&6
6976else
6977  if test -n "$ac_ct_STRIP"; then
6978  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6979else
6980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981for as_dir in $PATH
6982do
6983  IFS=$as_save_IFS
6984  test -z "$as_dir" && as_dir=.
6985  for ac_exec_ext in '' $ac_executable_extensions; do
6986  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6987    ac_cv_prog_ac_ct_STRIP="strip"
6988    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6989    break 2
6990  fi
6991done
6992done
6993IFS=$as_save_IFS
6994
6995fi
6996fi
6997ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6998if test -n "$ac_ct_STRIP"; then
6999  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7000echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7001else
7002  { echo "$as_me:$LINENO: result: no" >&5
7003echo "${ECHO_T}no" >&6; }
7004fi
7005
7006  if test "x$ac_ct_STRIP" = x; then
7007    STRIP=":"
7008  else
7009    case $cross_compiling:$ac_tool_warned in
7010yes:)
7011{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7012whose name does not start with the host triplet.  If you think this
7013configuration is useful to you, please write to autoconf@gnu.org." >&5
7014echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7015whose name does not start with the host triplet.  If you think this
7016configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7017ac_tool_warned=yes ;;
7018esac
7019    STRIP=$ac_ct_STRIP
7020  fi
7021else
7022  STRIP="$ac_cv_prog_STRIP"
7023fi
7024
7025
7026old_CC="$CC"
7027old_CFLAGS="$CFLAGS"
7028
7029# Set sane defaults for various variables
7030test -z "$AR" && AR=ar
7031test -z "$AR_FLAGS" && AR_FLAGS=cru
7032test -z "$AS" && AS=as
7033test -z "$CC" && CC=cc
7034test -z "$LTCC" && LTCC=$CC
7035test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7036test -z "$DLLTOOL" && DLLTOOL=dlltool
7037test -z "$LD" && LD=ld
7038test -z "$LN_S" && LN_S="ln -s"
7039test -z "$MAGIC_CMD" && MAGIC_CMD=file
7040test -z "$NM" && NM=nm
7041test -z "$SED" && SED=sed
7042test -z "$OBJDUMP" && OBJDUMP=objdump
7043test -z "$RANLIB" && RANLIB=:
7044test -z "$STRIP" && STRIP=:
7045test -z "$ac_objext" && ac_objext=o
7046
7047# Determine commands to create old-style static archives.
7048old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7049old_postinstall_cmds='chmod 644 $oldlib'
7050old_postuninstall_cmds=
7051
7052if test -n "$RANLIB"; then
7053  case $host_os in
7054  openbsd*)
7055    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7056    ;;
7057  *)
7058    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7059    ;;
7060  esac
7061  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7062fi
7063
7064for cc_temp in $compiler""; do
7065  case $cc_temp in
7066    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7067    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7068    \-*) ;;
7069    *) break;;
7070  esac
7071done
7072cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7073
7074
7075# Only perform the check for file, if the check method requires it
7076case $deplibs_check_method in
7077file_magic*)
7078  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7079    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7080echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7081if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7082  echo $ECHO_N "(cached) $ECHO_C" >&6
7083else
7084  case $MAGIC_CMD in
7085[\\/*] |  ?:[\\/]*)
7086  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7087  ;;
7088*)
7089  lt_save_MAGIC_CMD="$MAGIC_CMD"
7090  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7091  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7092  for ac_dir in $ac_dummy; do
7093    IFS="$lt_save_ifs"
7094    test -z "$ac_dir" && ac_dir=.
7095    if test -f $ac_dir/${ac_tool_prefix}file; then
7096      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7097      if test -n "$file_magic_test_file"; then
7098	case $deplibs_check_method in
7099	"file_magic "*)
7100	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7101	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7102	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7103	    $EGREP "$file_magic_regex" > /dev/null; then
7104	    :
7105	  else
7106	    cat <<EOF 1>&2
7107
7108*** Warning: the command libtool uses to detect shared libraries,
7109*** $file_magic_cmd, produces output that libtool cannot recognize.
7110*** The result is that libtool may fail to recognize shared libraries
7111*** as such.  This will affect the creation of libtool libraries that
7112*** depend on shared libraries, but programs linked with such libtool
7113*** libraries will work regardless of this problem.  Nevertheless, you
7114*** may want to report the problem to your system manager and/or to
7115*** bug-libtool@gnu.org
7116
7117EOF
7118	  fi ;;
7119	esac
7120      fi
7121      break
7122    fi
7123  done
7124  IFS="$lt_save_ifs"
7125  MAGIC_CMD="$lt_save_MAGIC_CMD"
7126  ;;
7127esac
7128fi
7129
7130MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7131if test -n "$MAGIC_CMD"; then
7132  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7133echo "${ECHO_T}$MAGIC_CMD" >&6; }
7134else
7135  { echo "$as_me:$LINENO: result: no" >&5
7136echo "${ECHO_T}no" >&6; }
7137fi
7138
7139if test -z "$lt_cv_path_MAGIC_CMD"; then
7140  if test -n "$ac_tool_prefix"; then
7141    { echo "$as_me:$LINENO: checking for file" >&5
7142echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7143if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7144  echo $ECHO_N "(cached) $ECHO_C" >&6
7145else
7146  case $MAGIC_CMD in
7147[\\/*] |  ?:[\\/]*)
7148  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7149  ;;
7150*)
7151  lt_save_MAGIC_CMD="$MAGIC_CMD"
7152  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7153  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7154  for ac_dir in $ac_dummy; do
7155    IFS="$lt_save_ifs"
7156    test -z "$ac_dir" && ac_dir=.
7157    if test -f $ac_dir/file; then
7158      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7159      if test -n "$file_magic_test_file"; then
7160	case $deplibs_check_method in
7161	"file_magic "*)
7162	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7163	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7164	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7165	    $EGREP "$file_magic_regex" > /dev/null; then
7166	    :
7167	  else
7168	    cat <<EOF 1>&2
7169
7170*** Warning: the command libtool uses to detect shared libraries,
7171*** $file_magic_cmd, produces output that libtool cannot recognize.
7172*** The result is that libtool may fail to recognize shared libraries
7173*** as such.  This will affect the creation of libtool libraries that
7174*** depend on shared libraries, but programs linked with such libtool
7175*** libraries will work regardless of this problem.  Nevertheless, you
7176*** may want to report the problem to your system manager and/or to
7177*** bug-libtool@gnu.org
7178
7179EOF
7180	  fi ;;
7181	esac
7182      fi
7183      break
7184    fi
7185  done
7186  IFS="$lt_save_ifs"
7187  MAGIC_CMD="$lt_save_MAGIC_CMD"
7188  ;;
7189esac
7190fi
7191
7192MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7193if test -n "$MAGIC_CMD"; then
7194  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7195echo "${ECHO_T}$MAGIC_CMD" >&6; }
7196else
7197  { echo "$as_me:$LINENO: result: no" >&5
7198echo "${ECHO_T}no" >&6; }
7199fi
7200
7201  else
7202    MAGIC_CMD=:
7203  fi
7204fi
7205
7206  fi
7207  ;;
7208esac
7209
7210enable_dlopen=no
7211enable_win32_dll=no
7212
7213# Check whether --enable-libtool-lock was given.
7214if test "${enable_libtool_lock+set}" = set; then
7215  enableval=$enable_libtool_lock;
7216fi
7217
7218test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7219
7220
7221# Check whether --with-pic was given.
7222if test "${with_pic+set}" = set; then
7223  withval=$with_pic; pic_mode="$withval"
7224else
7225  pic_mode=default
7226fi
7227
7228test -z "$pic_mode" && pic_mode=default
7229
7230# Use C for the default configuration in the libtool script
7231tagname=
7232lt_save_CC="$CC"
7233ac_ext=c
7234ac_cpp='$CPP $CPPFLAGS'
7235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7237ac_compiler_gnu=$ac_cv_c_compiler_gnu
7238
7239
7240# Source file extension for C test sources.
7241ac_ext=c
7242
7243# Object file extension for compiled C test sources.
7244objext=o
7245objext=$objext
7246
7247# Code to be used in simple compile tests
7248lt_simple_compile_test_code="int some_variable = 0;\n"
7249
7250# Code to be used in simple link tests
7251lt_simple_link_test_code='int main(){return(0);}\n'
7252
7253
7254# If no C compiler was specified, use CC.
7255LTCC=${LTCC-"$CC"}
7256
7257# If no C compiler flags were specified, use CFLAGS.
7258LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7259
7260# Allow CC to be a program name with arguments.
7261compiler=$CC
7262
7263
7264# save warnings/boilerplate of simple test code
7265ac_outfile=conftest.$ac_objext
7266printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7267eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7268_lt_compiler_boilerplate=`cat conftest.err`
7269$rm conftest*
7270
7271ac_outfile=conftest.$ac_objext
7272printf "$lt_simple_link_test_code" >conftest.$ac_ext
7273eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7274_lt_linker_boilerplate=`cat conftest.err`
7275$rm conftest*
7276
7277
7278
7279lt_prog_compiler_no_builtin_flag=
7280
7281if test "$GCC" = yes; then
7282  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7283
7284
7285{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7286echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7287if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7288  echo $ECHO_N "(cached) $ECHO_C" >&6
7289else
7290  lt_cv_prog_compiler_rtti_exceptions=no
7291  ac_outfile=conftest.$ac_objext
7292   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7293   lt_compiler_flag="-fno-rtti -fno-exceptions"
7294   # Insert the option either (1) after the last *FLAGS variable, or
7295   # (2) before a word containing "conftest.", or (3) at the end.
7296   # Note that $ac_compile itself does not contain backslashes and begins
7297   # with a dollar sign (not a hyphen), so the echo should work correctly.
7298   # The option is referenced via a variable to avoid confusing sed.
7299   lt_compile=`echo "$ac_compile" | $SED \
7300   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7301   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7302   -e 's:$: $lt_compiler_flag:'`
7303   (eval echo "\"\$as_me:7303: $lt_compile\"" >&5)
7304   (eval "$lt_compile" 2>conftest.err)
7305   ac_status=$?
7306   cat conftest.err >&5
7307   echo "$as_me:7307: \$? = $ac_status" >&5
7308   if (exit $ac_status) && test -s "$ac_outfile"; then
7309     # The compiler can only warn and ignore the option if not recognized
7310     # So say no if there are warnings other than the usual output.
7311     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7312     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7313     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7314       lt_cv_prog_compiler_rtti_exceptions=yes
7315     fi
7316   fi
7317   $rm conftest*
7318
7319fi
7320{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7321echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7322
7323if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7324    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7325else
7326    :
7327fi
7328
7329fi
7330
7331lt_prog_compiler_wl=
7332lt_prog_compiler_pic=
7333lt_prog_compiler_static=
7334
7335{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7336echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7337
7338  if test "$GCC" = yes; then
7339    lt_prog_compiler_wl='-Wl,'
7340    lt_prog_compiler_static='-static'
7341
7342    case $host_os in
7343      aix*)
7344      # All AIX code is PIC.
7345      if test "$host_cpu" = ia64; then
7346	# AIX 5 now supports IA64 processor
7347	lt_prog_compiler_static='-Bstatic'
7348      fi
7349      ;;
7350
7351    amigaos*)
7352      # FIXME: we need at least 68020 code to build shared libraries, but
7353      # adding the `-m68020' flag to GCC prevents building anything better,
7354      # like `-m68040'.
7355      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7356      ;;
7357
7358    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7359      # PIC is the default for these OSes.
7360      ;;
7361
7362    mingw* | pw32* | os2*)
7363      # This hack is so that the source file can tell whether it is being
7364      # built for inclusion in a dll (and should export symbols for example).
7365      lt_prog_compiler_pic='-DDLL_EXPORT'
7366      ;;
7367
7368    darwin* | rhapsody*)
7369      # PIC is the default on this platform
7370      # Common symbols not allowed in MH_DYLIB files
7371      lt_prog_compiler_pic='-fno-common'
7372      ;;
7373
7374    interix3*)
7375      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7376      # Instead, we relocate shared libraries at runtime.
7377      ;;
7378
7379    msdosdjgpp*)
7380      # Just because we use GCC doesn't mean we suddenly get shared libraries
7381      # on systems that don't support them.
7382      lt_prog_compiler_can_build_shared=no
7383      enable_shared=no
7384      ;;
7385
7386    sysv4*MP*)
7387      if test -d /usr/nec; then
7388	lt_prog_compiler_pic=-Kconform_pic
7389      fi
7390      ;;
7391
7392    hpux*)
7393      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7394      # not for PA HP-UX.
7395      case $host_cpu in
7396      hppa*64*|ia64*)
7397	# +Z the default
7398	;;
7399      *)
7400	lt_prog_compiler_pic='-fPIC'
7401	;;
7402      esac
7403      ;;
7404
7405    *)
7406      lt_prog_compiler_pic='-fPIC'
7407      ;;
7408    esac
7409  else
7410    # PORTME Check for flag to pass linker flags through the system compiler.
7411    case $host_os in
7412    aix*)
7413      lt_prog_compiler_wl='-Wl,'
7414      if test "$host_cpu" = ia64; then
7415	# AIX 5 now supports IA64 processor
7416	lt_prog_compiler_static='-Bstatic'
7417      else
7418	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7419      fi
7420      ;;
7421      darwin*)
7422        # PIC is the default on this platform
7423        # Common symbols not allowed in MH_DYLIB files
7424       case $cc_basename in
7425         xlc*)
7426         lt_prog_compiler_pic='-qnocommon'
7427         lt_prog_compiler_wl='-Wl,'
7428         ;;
7429       esac
7430       ;;
7431
7432    mingw* | pw32* | os2*)
7433      # This hack is so that the source file can tell whether it is being
7434      # built for inclusion in a dll (and should export symbols for example).
7435      lt_prog_compiler_pic='-DDLL_EXPORT'
7436      ;;
7437
7438    hpux9* | hpux10* | hpux11*)
7439      lt_prog_compiler_wl='-Wl,'
7440      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7441      # not for PA HP-UX.
7442      case $host_cpu in
7443      hppa*64*|ia64*)
7444	# +Z the default
7445	;;
7446      *)
7447	lt_prog_compiler_pic='+Z'
7448	;;
7449      esac
7450      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7451      lt_prog_compiler_static='${wl}-a ${wl}archive'
7452      ;;
7453
7454    irix5* | irix6* | nonstopux*)
7455      lt_prog_compiler_wl='-Wl,'
7456      # PIC (with -KPIC) is the default.
7457      lt_prog_compiler_static='-non_shared'
7458      ;;
7459
7460    newsos6)
7461      lt_prog_compiler_pic='-KPIC'
7462      lt_prog_compiler_static='-Bstatic'
7463      ;;
7464
7465    linux* | k*bsd*-gnu)
7466      case $cc_basename in
7467      icc* | ecc*)
7468	lt_prog_compiler_wl='-Wl,'
7469	lt_prog_compiler_pic='-KPIC'
7470	lt_prog_compiler_static='-static'
7471        ;;
7472      pgcc* | pgf77* | pgf90* | pgf95*)
7473        # Portland Group compilers (*not* the Pentium gcc compiler,
7474	# which looks to be a dead project)
7475	lt_prog_compiler_wl='-Wl,'
7476	lt_prog_compiler_pic='-fpic'
7477	lt_prog_compiler_static='-Bstatic'
7478        ;;
7479      ccc*)
7480        lt_prog_compiler_wl='-Wl,'
7481        # All Alpha code is PIC.
7482        lt_prog_compiler_static='-non_shared'
7483        ;;
7484      esac
7485      ;;
7486
7487    osf3* | osf4* | osf5*)
7488      lt_prog_compiler_wl='-Wl,'
7489      # All OSF/1 code is PIC.
7490      lt_prog_compiler_static='-non_shared'
7491      ;;
7492
7493    solaris*)
7494      lt_prog_compiler_pic='-KPIC'
7495      lt_prog_compiler_static='-Bstatic'
7496      case $cc_basename in
7497      f77* | f90* | f95*)
7498	lt_prog_compiler_wl='-Qoption ld ';;
7499      *)
7500	lt_prog_compiler_wl='-Wl,';;
7501      esac
7502      ;;
7503
7504    sunos4*)
7505      lt_prog_compiler_wl='-Qoption ld '
7506      lt_prog_compiler_pic='-PIC'
7507      lt_prog_compiler_static='-Bstatic'
7508      ;;
7509
7510    sysv4 | sysv4.2uw2* | sysv4.3*)
7511      lt_prog_compiler_wl='-Wl,'
7512      lt_prog_compiler_pic='-KPIC'
7513      lt_prog_compiler_static='-Bstatic'
7514      ;;
7515
7516    sysv4*MP*)
7517      if test -d /usr/nec ;then
7518	lt_prog_compiler_pic='-Kconform_pic'
7519	lt_prog_compiler_static='-Bstatic'
7520      fi
7521      ;;
7522
7523    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7524      lt_prog_compiler_wl='-Wl,'
7525      lt_prog_compiler_pic='-KPIC'
7526      lt_prog_compiler_static='-Bstatic'
7527      ;;
7528
7529    unicos*)
7530      lt_prog_compiler_wl='-Wl,'
7531      lt_prog_compiler_can_build_shared=no
7532      ;;
7533
7534    uts4*)
7535      lt_prog_compiler_pic='-pic'
7536      lt_prog_compiler_static='-Bstatic'
7537      ;;
7538
7539    *)
7540      lt_prog_compiler_can_build_shared=no
7541      ;;
7542    esac
7543  fi
7544
7545{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7546echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7547
7548#
7549# Check to make sure the PIC flag actually works.
7550#
7551if test -n "$lt_prog_compiler_pic"; then
7552
7553{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7554echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7555if test "${lt_prog_compiler_pic_works+set}" = set; then
7556  echo $ECHO_N "(cached) $ECHO_C" >&6
7557else
7558  lt_prog_compiler_pic_works=no
7559  ac_outfile=conftest.$ac_objext
7560   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7561   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7562   # Insert the option either (1) after the last *FLAGS variable, or
7563   # (2) before a word containing "conftest.", or (3) at the end.
7564   # Note that $ac_compile itself does not contain backslashes and begins
7565   # with a dollar sign (not a hyphen), so the echo should work correctly.
7566   # The option is referenced via a variable to avoid confusing sed.
7567   lt_compile=`echo "$ac_compile" | $SED \
7568   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7569   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7570   -e 's:$: $lt_compiler_flag:'`
7571   (eval echo "\"\$as_me:7571: $lt_compile\"" >&5)
7572   (eval "$lt_compile" 2>conftest.err)
7573   ac_status=$?
7574   cat conftest.err >&5
7575   echo "$as_me:7575: \$? = $ac_status" >&5
7576   if (exit $ac_status) && test -s "$ac_outfile"; then
7577     # The compiler can only warn and ignore the option if not recognized
7578     # So say no if there are warnings other than the usual output.
7579     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7580     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7581     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7582       lt_prog_compiler_pic_works=yes
7583     fi
7584   fi
7585   $rm conftest*
7586
7587fi
7588{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7589echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7590
7591if test x"$lt_prog_compiler_pic_works" = xyes; then
7592    case $lt_prog_compiler_pic in
7593     "" | " "*) ;;
7594     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7595     esac
7596else
7597    lt_prog_compiler_pic=
7598     lt_prog_compiler_can_build_shared=no
7599fi
7600
7601fi
7602case $host_os in
7603  # For platforms which do not support PIC, -DPIC is meaningless:
7604  *djgpp*)
7605    lt_prog_compiler_pic=
7606    ;;
7607  *)
7608    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7609    ;;
7610esac
7611
7612#
7613# Check to make sure the static flag actually works.
7614#
7615wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7616{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7617echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7618if test "${lt_prog_compiler_static_works+set}" = set; then
7619  echo $ECHO_N "(cached) $ECHO_C" >&6
7620else
7621  lt_prog_compiler_static_works=no
7622   save_LDFLAGS="$LDFLAGS"
7623   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7624   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7625   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7626     # The linker can only warn and ignore the option if not recognized
7627     # So say no if there are warnings
7628     if test -s conftest.err; then
7629       # Append any errors to the config.log.
7630       cat conftest.err 1>&5
7631       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7632       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7633       if diff conftest.exp conftest.er2 >/dev/null; then
7634         lt_prog_compiler_static_works=yes
7635       fi
7636     else
7637       lt_prog_compiler_static_works=yes
7638     fi
7639   fi
7640   $rm conftest*
7641   LDFLAGS="$save_LDFLAGS"
7642
7643fi
7644{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7645echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7646
7647if test x"$lt_prog_compiler_static_works" = xyes; then
7648    :
7649else
7650    lt_prog_compiler_static=
7651fi
7652
7653
7654{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7655echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7656if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7657  echo $ECHO_N "(cached) $ECHO_C" >&6
7658else
7659  lt_cv_prog_compiler_c_o=no
7660   $rm -r conftest 2>/dev/null
7661   mkdir conftest
7662   cd conftest
7663   mkdir out
7664   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7665
7666   lt_compiler_flag="-o out/conftest2.$ac_objext"
7667   # Insert the option either (1) after the last *FLAGS variable, or
7668   # (2) before a word containing "conftest.", or (3) at the end.
7669   # Note that $ac_compile itself does not contain backslashes and begins
7670   # with a dollar sign (not a hyphen), so the echo should work correctly.
7671   lt_compile=`echo "$ac_compile" | $SED \
7672   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7673   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7674   -e 's:$: $lt_compiler_flag:'`
7675   (eval echo "\"\$as_me:7675: $lt_compile\"" >&5)
7676   (eval "$lt_compile" 2>out/conftest.err)
7677   ac_status=$?
7678   cat out/conftest.err >&5
7679   echo "$as_me:7679: \$? = $ac_status" >&5
7680   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7681   then
7682     # The compiler can only warn and ignore the option if not recognized
7683     # So say no if there are warnings
7684     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7685     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7686     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7687       lt_cv_prog_compiler_c_o=yes
7688     fi
7689   fi
7690   chmod u+w . 2>&5
7691   $rm conftest*
7692   # SGI C++ compiler will create directory out/ii_files/ for
7693   # template instantiation
7694   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7695   $rm out/* && rmdir out
7696   cd ..
7697   rmdir conftest
7698   $rm conftest*
7699
7700fi
7701{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7702echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7703
7704
7705hard_links="nottested"
7706if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7707  # do not overwrite the value of need_locks provided by the user
7708  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7709echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7710  hard_links=yes
7711  $rm conftest*
7712  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7713  touch conftest.a
7714  ln conftest.a conftest.b 2>&5 || hard_links=no
7715  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7716  { echo "$as_me:$LINENO: result: $hard_links" >&5
7717echo "${ECHO_T}$hard_links" >&6; }
7718  if test "$hard_links" = no; then
7719    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7720echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7721    need_locks=warn
7722  fi
7723else
7724  need_locks=no
7725fi
7726
7727{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7728echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7729
7730  runpath_var=
7731  allow_undefined_flag=
7732  enable_shared_with_static_runtimes=no
7733  archive_cmds=
7734  archive_expsym_cmds=
7735  old_archive_From_new_cmds=
7736  old_archive_from_expsyms_cmds=
7737  export_dynamic_flag_spec=
7738  whole_archive_flag_spec=
7739  thread_safe_flag_spec=
7740  hardcode_libdir_flag_spec=
7741  hardcode_libdir_flag_spec_ld=
7742  hardcode_libdir_separator=
7743  hardcode_direct=no
7744  hardcode_minus_L=no
7745  hardcode_shlibpath_var=unsupported
7746  link_all_deplibs=unknown
7747  hardcode_automatic=no
7748  module_cmds=
7749  module_expsym_cmds=
7750  always_export_symbols=no
7751  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7752  # include_expsyms should be a list of space-separated symbols to be *always*
7753  # included in the symbol list
7754  include_expsyms=
7755  # exclude_expsyms can be an extended regexp of symbols to exclude
7756  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7757  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7758  # as well as any symbol that contains `d'.
7759  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7760  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7761  # platforms (ab)use it in PIC code, but their linkers get confused if
7762  # the symbol is explicitly referenced.  Since portable code cannot
7763  # rely on this symbol name, it's probably fine to never include it in
7764  # preloaded symbol tables.
7765  extract_expsyms_cmds=
7766  # Just being paranoid about ensuring that cc_basename is set.
7767  for cc_temp in $compiler""; do
7768  case $cc_temp in
7769    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7770    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7771    \-*) ;;
7772    *) break;;
7773  esac
7774done
7775cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7776
7777  case $host_os in
7778  cygwin* | mingw* | pw32*)
7779    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7780    # When not using gcc, we currently assume that we are using
7781    # Microsoft Visual C++.
7782    if test "$GCC" != yes; then
7783      with_gnu_ld=no
7784    fi
7785    ;;
7786  interix*)
7787    # we just hope/assume this is gcc and not c89 (= MSVC++)
7788    with_gnu_ld=yes
7789    ;;
7790  openbsd*)
7791    with_gnu_ld=no
7792    ;;
7793  esac
7794
7795  ld_shlibs=yes
7796  if test "$with_gnu_ld" = yes; then
7797    # If archive_cmds runs LD, not CC, wlarc should be empty
7798    wlarc='${wl}'
7799
7800    # Set some defaults for GNU ld with shared library support. These
7801    # are reset later if shared libraries are not supported. Putting them
7802    # here allows them to be overridden if necessary.
7803    runpath_var=LD_RUN_PATH
7804    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7805    export_dynamic_flag_spec='${wl}--export-dynamic'
7806    # ancient GNU ld didn't support --whole-archive et. al.
7807    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7808	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7809      else
7810  	whole_archive_flag_spec=
7811    fi
7812    supports_anon_versioning=no
7813    case `$LD -v 2>/dev/null` in
7814      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7815      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7816      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7817      *\ 2.11.*) ;; # other 2.11 versions
7818      *) supports_anon_versioning=yes ;;
7819    esac
7820
7821    # See if GNU ld supports shared libraries.
7822    case $host_os in
7823    aix3* | aix4* | aix5*)
7824      # On AIX/PPC, the GNU linker is very broken
7825      if test "$host_cpu" != ia64; then
7826	ld_shlibs=no
7827	cat <<EOF 1>&2
7828
7829*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7830*** to be unable to reliably create shared libraries on AIX.
7831*** Therefore, libtool is disabling shared libraries support.  If you
7832*** really care for shared libraries, you may want to modify your PATH
7833*** so that a non-GNU linker is found, and then restart.
7834
7835EOF
7836      fi
7837      ;;
7838
7839    amigaos*)
7840      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)'
7841      hardcode_libdir_flag_spec='-L$libdir'
7842      hardcode_minus_L=yes
7843
7844      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7845      # that the semantics of dynamic libraries on AmigaOS, at least up
7846      # to version 4, is to share data among multiple programs linked
7847      # with the same dynamic library.  Since this doesn't match the
7848      # behavior of shared libraries on other platforms, we can't use
7849      # them.
7850      ld_shlibs=no
7851      ;;
7852
7853    beos*)
7854      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7855	allow_undefined_flag=unsupported
7856	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7857	# support --undefined.  This deserves some investigation.  FIXME
7858	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7859      else
7860	ld_shlibs=no
7861      fi
7862      ;;
7863
7864    cygwin* | mingw* | pw32*)
7865      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7866      # as there is no search path for DLLs.
7867      hardcode_libdir_flag_spec='-L$libdir'
7868      allow_undefined_flag=unsupported
7869      always_export_symbols=no
7870      enable_shared_with_static_runtimes=yes
7871      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7872
7873      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7874        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7875	# If the export-symbols file already is a .def file (1st line
7876	# is EXPORTS), use it as is; otherwise, prepend...
7877	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7878	  cp $export_symbols $output_objdir/$soname.def;
7879	else
7880	  echo EXPORTS > $output_objdir/$soname.def;
7881	  cat $export_symbols >> $output_objdir/$soname.def;
7882	fi~
7883	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7884      else
7885	ld_shlibs=no
7886      fi
7887      ;;
7888
7889    interix3*)
7890      hardcode_direct=no
7891      hardcode_shlibpath_var=no
7892      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7893      export_dynamic_flag_spec='${wl}-E'
7894      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7895      # Instead, shared libraries are loaded at an image base (0x10000000 by
7896      # default) and relocated if they conflict, which is a slow very memory
7897      # consuming and fragmenting process.  To avoid this, we pick a random,
7898      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7899      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7900      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7901      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'
7902      ;;
7903
7904    linux* | k*bsd*-gnu)
7905      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7906	tmp_addflag=
7907	case $cc_basename,$host_cpu in
7908	pgcc*)				# Portland Group C compiler
7909	  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'
7910	  tmp_addflag=' $pic_flag'
7911	  ;;
7912	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7913	  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'
7914	  tmp_addflag=' $pic_flag -Mnomain' ;;
7915	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7916	  tmp_addflag=' -i_dynamic' ;;
7917	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7918	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7919	ifc* | ifort*)			# Intel Fortran compiler
7920	  tmp_addflag=' -nofor_main' ;;
7921	esac
7922	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7923
7924	if test $supports_anon_versioning = yes; then
7925	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7926  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7927  $echo "local: *; };" >> $output_objdir/$libname.ver~
7928	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7929	fi
7930	link_all_deplibs=no
7931      else
7932	ld_shlibs=no
7933      fi
7934      ;;
7935
7936    netbsd* | netbsdelf*-gnu)
7937      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7938	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7939	wlarc=
7940      else
7941	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7942	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7943      fi
7944      ;;
7945
7946    solaris*)
7947      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7948	ld_shlibs=no
7949	cat <<EOF 1>&2
7950
7951*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7952*** create shared libraries on Solaris systems.  Therefore, libtool
7953*** is disabling shared libraries support.  We urge you to upgrade GNU
7954*** binutils to release 2.9.1 or newer.  Another option is to modify
7955*** your PATH or compiler configuration so that the native linker is
7956*** used, and then restart.
7957
7958EOF
7959      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7960	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7961	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7962      else
7963	ld_shlibs=no
7964      fi
7965      ;;
7966
7967    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7968      case `$LD -v 2>&1` in
7969        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7970	ld_shlibs=no
7971	cat <<_LT_EOF 1>&2
7972
7973*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7974*** reliably create shared libraries on SCO systems.  Therefore, libtool
7975*** is disabling shared libraries support.  We urge you to upgrade GNU
7976*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7977*** your PATH or compiler configuration so that the native linker is
7978*** used, and then restart.
7979
7980_LT_EOF
7981	;;
7982	*)
7983	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7984	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7985	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7986	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7987	  else
7988	    ld_shlibs=no
7989	  fi
7990	;;
7991      esac
7992      ;;
7993
7994    sunos4*)
7995      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7996      wlarc=
7997      hardcode_direct=yes
7998      hardcode_shlibpath_var=no
7999      ;;
8000
8001    *)
8002      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8003	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8004	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8005      else
8006	ld_shlibs=no
8007      fi
8008      ;;
8009    esac
8010
8011    if test "$ld_shlibs" = no; then
8012      runpath_var=
8013      hardcode_libdir_flag_spec=
8014      export_dynamic_flag_spec=
8015      whole_archive_flag_spec=
8016    fi
8017  else
8018    # PORTME fill in a description of your system's linker (not GNU ld)
8019    case $host_os in
8020    aix3*)
8021      allow_undefined_flag=unsupported
8022      always_export_symbols=yes
8023      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'
8024      # Note: this linker hardcodes the directories in LIBPATH if there
8025      # are no directories specified by -L.
8026      hardcode_minus_L=yes
8027      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8028	# Neither direct hardcoding nor static linking is supported with a
8029	# broken collect2.
8030	hardcode_direct=unsupported
8031      fi
8032      ;;
8033
8034    aix4* | aix5*)
8035      if test "$host_cpu" = ia64; then
8036	# On IA64, the linker does run time linking by default, so we don't
8037	# have to do anything special.
8038	aix_use_runtimelinking=no
8039	exp_sym_flag='-Bexport'
8040	no_entry_flag=""
8041      else
8042	# If we're using GNU nm, then we don't want the "-C" option.
8043	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8044	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8045	  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'
8046	else
8047	  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'
8048	fi
8049	aix_use_runtimelinking=no
8050
8051	# Test if we are trying to use run time linking or normal
8052	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8053	# need to do runtime linking.
8054	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8055	  for ld_flag in $LDFLAGS; do
8056  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8057  	    aix_use_runtimelinking=yes
8058  	    break
8059  	  fi
8060	  done
8061	  ;;
8062	esac
8063
8064	exp_sym_flag='-bexport'
8065	no_entry_flag='-bnoentry'
8066      fi
8067
8068      # When large executables or shared objects are built, AIX ld can
8069      # have problems creating the table of contents.  If linking a library
8070      # or program results in "error TOC overflow" add -mminimal-toc to
8071      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8072      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8073
8074      archive_cmds=''
8075      hardcode_direct=yes
8076      hardcode_libdir_separator=':'
8077      link_all_deplibs=yes
8078
8079      if test "$GCC" = yes; then
8080	case $host_os in aix4.[012]|aix4.[012].*)
8081	# We only want to do this on AIX 4.2 and lower, the check
8082	# below for broken collect2 doesn't work under 4.3+
8083	  collect2name=`${CC} -print-prog-name=collect2`
8084	  if test -f "$collect2name" && \
8085  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8086	  then
8087  	  # We have reworked collect2
8088  	  hardcode_direct=yes
8089	  else
8090  	  # We have old collect2
8091  	  hardcode_direct=unsupported
8092  	  # It fails to find uninstalled libraries when the uninstalled
8093  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8094  	  # to unsupported forces relinking
8095  	  hardcode_minus_L=yes
8096  	  hardcode_libdir_flag_spec='-L$libdir'
8097  	  hardcode_libdir_separator=
8098	  fi
8099	  ;;
8100	esac
8101	shared_flag='-shared'
8102	if test "$aix_use_runtimelinking" = yes; then
8103	  shared_flag="$shared_flag "'${wl}-G'
8104	fi
8105      else
8106	# not using gcc
8107	if test "$host_cpu" = ia64; then
8108  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8109  	# chokes on -Wl,-G. The following line is correct:
8110	  shared_flag='-G'
8111	else
8112	  if test "$aix_use_runtimelinking" = yes; then
8113	    shared_flag='${wl}-G'
8114	  else
8115	    shared_flag='${wl}-bM:SRE'
8116	  fi
8117	fi
8118      fi
8119
8120      # It seems that -bexpall does not export symbols beginning with
8121      # underscore (_), so it is better to generate a list of symbols to export.
8122      always_export_symbols=yes
8123      if test "$aix_use_runtimelinking" = yes; then
8124	# Warning - without using the other runtime loading flags (-brtl),
8125	# -berok will link without error, but may produce a broken library.
8126	allow_undefined_flag='-berok'
8127       # Determine the default libpath from the value encoded in an empty executable.
8128       cat >conftest.$ac_ext <<_ACEOF
8129/* confdefs.h.  */
8130_ACEOF
8131cat confdefs.h >>conftest.$ac_ext
8132cat >>conftest.$ac_ext <<_ACEOF
8133/* end confdefs.h.  */
8134
8135int
8136main ()
8137{
8138
8139  ;
8140  return 0;
8141}
8142_ACEOF
8143rm -f conftest.$ac_objext conftest$ac_exeext
8144if { (ac_try="$ac_link"
8145case "(($ac_try" in
8146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147  *) ac_try_echo=$ac_try;;
8148esac
8149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150  (eval "$ac_link") 2>conftest.er1
8151  ac_status=$?
8152  grep -v '^ *+' conftest.er1 >conftest.err
8153  rm -f conftest.er1
8154  cat conftest.err >&5
8155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156  (exit $ac_status); } && {
8157	 test -z "$ac_c_werror_flag" ||
8158	 test ! -s conftest.err
8159       } && test -s conftest$ac_exeext &&
8160       $as_test_x conftest$ac_exeext; then
8161
8162aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8163}'`
8164# Check for a 64-bit object if we didn't find anything.
8165if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8166}'`; fi
8167else
8168  echo "$as_me: failed program was:" >&5
8169sed 's/^/| /' conftest.$ac_ext >&5
8170
8171
8172fi
8173
8174rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8175      conftest$ac_exeext conftest.$ac_ext
8176if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8177
8178       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8179	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"
8180       else
8181	if test "$host_cpu" = ia64; then
8182	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8183	  allow_undefined_flag="-z nodefs"
8184	  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"
8185	else
8186	 # Determine the default libpath from the value encoded in an empty executable.
8187	 cat >conftest.$ac_ext <<_ACEOF
8188/* confdefs.h.  */
8189_ACEOF
8190cat confdefs.h >>conftest.$ac_ext
8191cat >>conftest.$ac_ext <<_ACEOF
8192/* end confdefs.h.  */
8193
8194int
8195main ()
8196{
8197
8198  ;
8199  return 0;
8200}
8201_ACEOF
8202rm -f conftest.$ac_objext conftest$ac_exeext
8203if { (ac_try="$ac_link"
8204case "(($ac_try" in
8205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206  *) ac_try_echo=$ac_try;;
8207esac
8208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209  (eval "$ac_link") 2>conftest.er1
8210  ac_status=$?
8211  grep -v '^ *+' conftest.er1 >conftest.err
8212  rm -f conftest.er1
8213  cat conftest.err >&5
8214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215  (exit $ac_status); } && {
8216	 test -z "$ac_c_werror_flag" ||
8217	 test ! -s conftest.err
8218       } && test -s conftest$ac_exeext &&
8219       $as_test_x conftest$ac_exeext; then
8220
8221aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8222}'`
8223# Check for a 64-bit object if we didn't find anything.
8224if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8225}'`; fi
8226else
8227  echo "$as_me: failed program was:" >&5
8228sed 's/^/| /' conftest.$ac_ext >&5
8229
8230
8231fi
8232
8233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8234      conftest$ac_exeext conftest.$ac_ext
8235if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8236
8237	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8238	  # Warning - without using the other run time loading flags,
8239	  # -berok will link without error, but may produce a broken library.
8240	  no_undefined_flag=' ${wl}-bernotok'
8241	  allow_undefined_flag=' ${wl}-berok'
8242	  # Exported symbols can be pulled into shared objects from archives
8243	  whole_archive_flag_spec='$convenience'
8244	  archive_cmds_need_lc=yes
8245	  # This is similar to how AIX traditionally builds its shared libraries.
8246	  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'
8247	fi
8248      fi
8249      ;;
8250
8251    amigaos*)
8252      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)'
8253      hardcode_libdir_flag_spec='-L$libdir'
8254      hardcode_minus_L=yes
8255      # see comment about different semantics on the GNU ld section
8256      ld_shlibs=no
8257      ;;
8258
8259    bsdi[45]*)
8260      export_dynamic_flag_spec=-rdynamic
8261      ;;
8262
8263    cygwin* | mingw* | pw32*)
8264      # When not using gcc, we currently assume that we are using
8265      # Microsoft Visual C++.
8266      # hardcode_libdir_flag_spec is actually meaningless, as there is
8267      # no search path for DLLs.
8268      hardcode_libdir_flag_spec=' '
8269      allow_undefined_flag=unsupported
8270      # Tell ltmain to make .lib files, not .a files.
8271      libext=lib
8272      # Tell ltmain to make .dll files, not .so files.
8273      shrext_cmds=".dll"
8274      # FIXME: Setting linknames here is a bad hack.
8275      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8276      # The linker will automatically build a .lib file if we build a DLL.
8277      old_archive_From_new_cmds='true'
8278      # FIXME: Should let the user specify the lib program.
8279      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8280      fix_srcfile_path='`cygpath -w "$srcfile"`'
8281      enable_shared_with_static_runtimes=yes
8282      ;;
8283
8284    darwin* | rhapsody*)
8285      case $host_os in
8286        rhapsody* | darwin1.[012])
8287         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8288         ;;
8289       *) # Darwin 1.3 on
8290         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8291           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8292         else
8293           case ${MACOSX_DEPLOYMENT_TARGET} in
8294             10.[012])
8295               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8296               ;;
8297             10.*)
8298               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8299               ;;
8300           esac
8301         fi
8302         ;;
8303      esac
8304      archive_cmds_need_lc=no
8305      hardcode_direct=no
8306      hardcode_automatic=yes
8307      hardcode_shlibpath_var=unsupported
8308      whole_archive_flag_spec=''
8309      link_all_deplibs=yes
8310    if test "$GCC" = yes ; then
8311    	output_verbose_link_cmd='echo'
8312        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8313      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8314      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8315      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8316      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}'
8317    else
8318      case $cc_basename in
8319        xlc*)
8320         output_verbose_link_cmd='echo'
8321         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8322         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8323          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8324         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8325          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}'
8326          ;;
8327       *)
8328         ld_shlibs=no
8329          ;;
8330      esac
8331    fi
8332      ;;
8333
8334    dgux*)
8335      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8336      hardcode_libdir_flag_spec='-L$libdir'
8337      hardcode_shlibpath_var=no
8338      ;;
8339
8340    freebsd1*)
8341      ld_shlibs=no
8342      ;;
8343
8344    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8345    # support.  Future versions do this automatically, but an explicit c++rt0.o
8346    # does not break anything, and helps significantly (at the cost of a little
8347    # extra space).
8348    freebsd2.2*)
8349      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8350      hardcode_libdir_flag_spec='-R$libdir'
8351      hardcode_direct=yes
8352      hardcode_shlibpath_var=no
8353      ;;
8354
8355    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8356    freebsd2*)
8357      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8358      hardcode_direct=yes
8359      hardcode_minus_L=yes
8360      hardcode_shlibpath_var=no
8361      ;;
8362
8363    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8364    freebsd* | dragonfly*)
8365      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8366      hardcode_libdir_flag_spec='-R$libdir'
8367      hardcode_direct=yes
8368      hardcode_shlibpath_var=no
8369      ;;
8370
8371    hpux9*)
8372      if test "$GCC" = yes; then
8373	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'
8374      else
8375	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'
8376      fi
8377      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8378      hardcode_libdir_separator=:
8379      hardcode_direct=yes
8380
8381      # hardcode_minus_L: Not really in the search PATH,
8382      # but as the default location of the library.
8383      hardcode_minus_L=yes
8384      export_dynamic_flag_spec='${wl}-E'
8385      ;;
8386
8387    hpux10*)
8388      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8389	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8390      else
8391	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8392      fi
8393      if test "$with_gnu_ld" = no; then
8394	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8395	hardcode_libdir_separator=:
8396
8397	hardcode_direct=yes
8398	export_dynamic_flag_spec='${wl}-E'
8399
8400	# hardcode_minus_L: Not really in the search PATH,
8401	# but as the default location of the library.
8402	hardcode_minus_L=yes
8403      fi
8404      ;;
8405
8406    hpux11*)
8407      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8408	case $host_cpu in
8409	hppa*64*)
8410	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8411	  ;;
8412	ia64*)
8413	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8414	  ;;
8415	*)
8416	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8417	  ;;
8418	esac
8419      else
8420	case $host_cpu in
8421	hppa*64*)
8422	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8423	  ;;
8424	ia64*)
8425	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8426	  ;;
8427	*)
8428	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8429	  ;;
8430	esac
8431      fi
8432      if test "$with_gnu_ld" = no; then
8433	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8434	hardcode_libdir_separator=:
8435
8436	case $host_cpu in
8437	hppa*64*|ia64*)
8438	  hardcode_libdir_flag_spec_ld='+b $libdir'
8439	  hardcode_direct=no
8440	  hardcode_shlibpath_var=no
8441	  ;;
8442	*)
8443	  hardcode_direct=yes
8444	  export_dynamic_flag_spec='${wl}-E'
8445
8446	  # hardcode_minus_L: Not really in the search PATH,
8447	  # but as the default location of the library.
8448	  hardcode_minus_L=yes
8449	  ;;
8450	esac
8451      fi
8452      ;;
8453
8454    irix5* | irix6* | nonstopux*)
8455      if test "$GCC" = yes; then
8456	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'
8457      else
8458	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'
8459	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8460      fi
8461      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8462      hardcode_libdir_separator=:
8463      link_all_deplibs=yes
8464      ;;
8465
8466    netbsd* | netbsdelf*-gnu)
8467      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8468	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8469      else
8470	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8471      fi
8472      hardcode_libdir_flag_spec='-R$libdir'
8473      hardcode_direct=yes
8474      hardcode_shlibpath_var=no
8475      ;;
8476
8477    newsos6)
8478      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8479      hardcode_direct=yes
8480      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8481      hardcode_libdir_separator=:
8482      hardcode_shlibpath_var=no
8483      ;;
8484
8485    openbsd*)
8486      hardcode_direct=yes
8487      hardcode_shlibpath_var=no
8488      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8489	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8490	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8491	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8492	export_dynamic_flag_spec='${wl}-E'
8493      else
8494       case $host_os in
8495	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8496	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8497	   hardcode_libdir_flag_spec='-R$libdir'
8498	   ;;
8499	 *)
8500	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8501	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8502	   ;;
8503       esac
8504      fi
8505      ;;
8506
8507    os2*)
8508      hardcode_libdir_flag_spec='-L$libdir'
8509      hardcode_minus_L=yes
8510      allow_undefined_flag=unsupported
8511      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'
8512      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8513      ;;
8514
8515    osf3*)
8516      if test "$GCC" = yes; then
8517	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8518	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'
8519      else
8520	allow_undefined_flag=' -expect_unresolved \*'
8521	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'
8522      fi
8523      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8524      hardcode_libdir_separator=:
8525      ;;
8526
8527    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8528      if test "$GCC" = yes; then
8529	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8530	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'
8531	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8532      else
8533	allow_undefined_flag=' -expect_unresolved \*'
8534	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'
8535	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8536	$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'
8537
8538	# Both c and cxx compiler support -rpath directly
8539	hardcode_libdir_flag_spec='-rpath $libdir'
8540      fi
8541      hardcode_libdir_separator=:
8542      ;;
8543
8544    solaris*)
8545      no_undefined_flag=' -z text'
8546      if test "$GCC" = yes; then
8547	wlarc='${wl}'
8548	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8549	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8550	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8551      else
8552	wlarc=''
8553	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8554	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8555  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8556      fi
8557      hardcode_libdir_flag_spec='-R$libdir'
8558      hardcode_shlibpath_var=no
8559      case $host_os in
8560      solaris2.[0-5] | solaris2.[0-5].*) ;;
8561      *)
8562 	# The compiler driver will combine linker options so we
8563 	# cannot just pass the convience library names through
8564 	# without $wl, iff we do not link with $LD.
8565 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8566 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8567 	case $wlarc in
8568 	'')
8569 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8570 	*)
8571 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8572 	esac ;;
8573      esac
8574      link_all_deplibs=yes
8575      ;;
8576
8577    sunos4*)
8578      if test "x$host_vendor" = xsequent; then
8579	# Use $CC to link under sequent, because it throws in some extra .o
8580	# files that make .init and .fini sections work.
8581	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8582      else
8583	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8584      fi
8585      hardcode_libdir_flag_spec='-L$libdir'
8586      hardcode_direct=yes
8587      hardcode_minus_L=yes
8588      hardcode_shlibpath_var=no
8589      ;;
8590
8591    sysv4)
8592      case $host_vendor in
8593	sni)
8594	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8595	  hardcode_direct=yes # is this really true???
8596	;;
8597	siemens)
8598	  ## LD is ld it makes a PLAMLIB
8599	  ## CC just makes a GrossModule.
8600	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8601	  reload_cmds='$CC -r -o $output$reload_objs'
8602	  hardcode_direct=no
8603        ;;
8604	motorola)
8605	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8606	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8607	;;
8608      esac
8609      runpath_var='LD_RUN_PATH'
8610      hardcode_shlibpath_var=no
8611      ;;
8612
8613    sysv4.3*)
8614      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8615      hardcode_shlibpath_var=no
8616      export_dynamic_flag_spec='-Bexport'
8617      ;;
8618
8619    sysv4*MP*)
8620      if test -d /usr/nec; then
8621	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8622	hardcode_shlibpath_var=no
8623	runpath_var=LD_RUN_PATH
8624	hardcode_runpath_var=yes
8625	ld_shlibs=yes
8626      fi
8627      ;;
8628
8629    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8630      no_undefined_flag='${wl}-z,text'
8631      archive_cmds_need_lc=no
8632      hardcode_shlibpath_var=no
8633      runpath_var='LD_RUN_PATH'
8634
8635      if test "$GCC" = yes; then
8636	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8637	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8638      else
8639	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8640	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8641      fi
8642      ;;
8643
8644    sysv5* | sco3.2v5* | sco5v6*)
8645      # Note: We can NOT use -z defs as we might desire, because we do not
8646      # link with -lc, and that would cause any symbols used from libc to
8647      # always be unresolved, which means just about no library would
8648      # ever link correctly.  If we're not using GNU ld we use -z text
8649      # though, which does catch some bad symbols but isn't as heavy-handed
8650      # as -z defs.
8651      no_undefined_flag='${wl}-z,text'
8652      allow_undefined_flag='${wl}-z,nodefs'
8653      archive_cmds_need_lc=no
8654      hardcode_shlibpath_var=no
8655      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8656      hardcode_libdir_separator=':'
8657      link_all_deplibs=yes
8658      export_dynamic_flag_spec='${wl}-Bexport'
8659      runpath_var='LD_RUN_PATH'
8660
8661      if test "$GCC" = yes; then
8662	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8663	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8664      else
8665	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8666	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8667      fi
8668      ;;
8669
8670    uts4*)
8671      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8672      hardcode_libdir_flag_spec='-L$libdir'
8673      hardcode_shlibpath_var=no
8674      ;;
8675
8676    *)
8677      ld_shlibs=no
8678      ;;
8679    esac
8680  fi
8681
8682{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8683echo "${ECHO_T}$ld_shlibs" >&6; }
8684test "$ld_shlibs" = no && can_build_shared=no
8685
8686#
8687# Do we need to explicitly link libc?
8688#
8689case "x$archive_cmds_need_lc" in
8690x|xyes)
8691  # Assume -lc should be added
8692  archive_cmds_need_lc=yes
8693
8694  if test "$enable_shared" = yes && test "$GCC" = yes; then
8695    case $archive_cmds in
8696    *'~'*)
8697      # FIXME: we may have to deal with multi-command sequences.
8698      ;;
8699    '$CC '*)
8700      # Test whether the compiler implicitly links with -lc since on some
8701      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8702      # to ld, don't add -lc before -lgcc.
8703      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8704echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8705      $rm conftest*
8706      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8707
8708      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8709  (eval $ac_compile) 2>&5
8710  ac_status=$?
8711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712  (exit $ac_status); } 2>conftest.err; then
8713        soname=conftest
8714        lib=conftest
8715        libobjs=conftest.$ac_objext
8716        deplibs=
8717        wl=$lt_prog_compiler_wl
8718	pic_flag=$lt_prog_compiler_pic
8719        compiler_flags=-v
8720        linker_flags=-v
8721        verstring=
8722        output_objdir=.
8723        libname=conftest
8724        lt_save_allow_undefined_flag=$allow_undefined_flag
8725        allow_undefined_flag=
8726        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8727  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8728  ac_status=$?
8729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730  (exit $ac_status); }
8731        then
8732	  archive_cmds_need_lc=no
8733        else
8734	  archive_cmds_need_lc=yes
8735        fi
8736        allow_undefined_flag=$lt_save_allow_undefined_flag
8737      else
8738        cat conftest.err 1>&5
8739      fi
8740      $rm conftest*
8741      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8742echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8743      ;;
8744    esac
8745  fi
8746  ;;
8747esac
8748
8749{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8750echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8751library_names_spec=
8752libname_spec='lib$name'
8753soname_spec=
8754shrext_cmds=".so"
8755postinstall_cmds=
8756postuninstall_cmds=
8757finish_cmds=
8758finish_eval=
8759shlibpath_var=
8760shlibpath_overrides_runpath=unknown
8761version_type=none
8762dynamic_linker="$host_os ld.so"
8763sys_lib_dlsearch_path_spec="/lib /usr/lib"
8764if test "$GCC" = yes; then
8765  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8766  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8767    # if the path contains ";" then we assume it to be the separator
8768    # otherwise default to the standard path separator (i.e. ":") - it is
8769    # assumed that no part of a normal pathname contains ";" but that should
8770    # okay in the real world where ";" in dirpaths is itself problematic.
8771    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8772  else
8773    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8774  fi
8775else
8776  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8777fi
8778need_lib_prefix=unknown
8779hardcode_into_libs=no
8780
8781# when you set need_version to no, make sure it does not cause -set_version
8782# flags to be left without arguments
8783need_version=unknown
8784
8785case $host_os in
8786aix3*)
8787  version_type=linux
8788  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8789  shlibpath_var=LIBPATH
8790
8791  # AIX 3 has no versioning support, so we append a major version to the name.
8792  soname_spec='${libname}${release}${shared_ext}$major'
8793  ;;
8794
8795aix4* | aix5*)
8796  version_type=linux
8797  need_lib_prefix=no
8798  need_version=no
8799  hardcode_into_libs=yes
8800  if test "$host_cpu" = ia64; then
8801    # AIX 5 supports IA64
8802    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8803    shlibpath_var=LD_LIBRARY_PATH
8804  else
8805    # With GCC up to 2.95.x, collect2 would create an import file
8806    # for dependence libraries.  The import file would start with
8807    # the line `#! .'.  This would cause the generated library to
8808    # depend on `.', always an invalid library.  This was fixed in
8809    # development snapshots of GCC prior to 3.0.
8810    case $host_os in
8811      aix4 | aix4.[01] | aix4.[01].*)
8812      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8813	   echo ' yes '
8814	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8815	:
8816      else
8817	can_build_shared=no
8818      fi
8819      ;;
8820    esac
8821    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8822    # soname into executable. Probably we can add versioning support to
8823    # collect2, so additional links can be useful in future.
8824    if test "$aix_use_runtimelinking" = yes; then
8825      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8826      # instead of lib<name>.a to let people know that these are not
8827      # typical AIX shared libraries.
8828      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8829    else
8830      # We preserve .a as extension for shared libraries through AIX4.2
8831      # and later when we are not doing run time linking.
8832      library_names_spec='${libname}${release}.a $libname.a'
8833      soname_spec='${libname}${release}${shared_ext}$major'
8834    fi
8835    shlibpath_var=LIBPATH
8836  fi
8837  ;;
8838
8839amigaos*)
8840  library_names_spec='$libname.ixlibrary $libname.a'
8841  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8842  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'
8843  ;;
8844
8845beos*)
8846  library_names_spec='${libname}${shared_ext}'
8847  dynamic_linker="$host_os ld.so"
8848  shlibpath_var=LIBRARY_PATH
8849  ;;
8850
8851bsdi[45]*)
8852  version_type=linux
8853  need_version=no
8854  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8855  soname_spec='${libname}${release}${shared_ext}$major'
8856  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8857  shlibpath_var=LD_LIBRARY_PATH
8858  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8859  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8860  # the default ld.so.conf also contains /usr/contrib/lib and
8861  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8862  # libtool to hard-code these into programs
8863  ;;
8864
8865cygwin* | mingw* | pw32*)
8866  version_type=windows
8867  shrext_cmds=".dll"
8868  need_version=no
8869  need_lib_prefix=no
8870
8871  case $GCC,$host_os in
8872  yes,cygwin* | yes,mingw* | yes,pw32*)
8873    library_names_spec='$libname.dll.a'
8874    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8875    postinstall_cmds='base_file=`basename \${file}`~
8876      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8877      dldir=$destdir/`dirname \$dlpath`~
8878      test -d \$dldir || mkdir -p \$dldir~
8879      $install_prog $dir/$dlname \$dldir/$dlname~
8880      chmod a+x \$dldir/$dlname'
8881    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8882      dlpath=$dir/\$dldll~
8883       $rm \$dlpath'
8884    shlibpath_overrides_runpath=yes
8885
8886    case $host_os in
8887    cygwin*)
8888      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8889      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8890      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8891      ;;
8892    mingw*)
8893      # MinGW DLLs use traditional 'lib' prefix
8894      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8895      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8896      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8897        # It is most probably a Windows format PATH printed by
8898        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8899        # path with ; separators, and with drive letters. We can handle the
8900        # drive letters (cygwin fileutils understands them), so leave them,
8901        # especially as we might pass files found there to a mingw objdump,
8902        # which wouldn't understand a cygwinified path. Ahh.
8903        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8904      else
8905        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8906      fi
8907      ;;
8908    pw32*)
8909      # pw32 DLLs use 'pw' prefix rather than 'lib'
8910      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8911      ;;
8912    esac
8913    ;;
8914
8915  *)
8916    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8917    ;;
8918  esac
8919  dynamic_linker='Win32 ld.exe'
8920  # FIXME: first we should search . and the directory the executable is in
8921  shlibpath_var=PATH
8922  ;;
8923
8924darwin* | rhapsody*)
8925  dynamic_linker="$host_os dyld"
8926  version_type=darwin
8927  need_lib_prefix=no
8928  need_version=no
8929  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8930  soname_spec='${libname}${release}${major}$shared_ext'
8931  shlibpath_overrides_runpath=yes
8932  shlibpath_var=DYLD_LIBRARY_PATH
8933  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8934  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8935  if test "$GCC" = yes; then
8936    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8937  else
8938    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8939  fi
8940  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8941  ;;
8942
8943dgux*)
8944  version_type=linux
8945  need_lib_prefix=no
8946  need_version=no
8947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8948  soname_spec='${libname}${release}${shared_ext}$major'
8949  shlibpath_var=LD_LIBRARY_PATH
8950  ;;
8951
8952freebsd1*)
8953  dynamic_linker=no
8954  ;;
8955
8956freebsd* | dragonfly*)
8957  # DragonFly does not have aout.  When/if they implement a new
8958  # versioning mechanism, adjust this.
8959  if test -x /usr/bin/objformat; then
8960    objformat=`/usr/bin/objformat`
8961  else
8962    case $host_os in
8963    freebsd[123]*) objformat=aout ;;
8964    *) objformat=elf ;;
8965    esac
8966  fi
8967  version_type=freebsd-$objformat
8968  case $version_type in
8969    freebsd-elf*)
8970      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8971      need_version=no
8972      need_lib_prefix=no
8973      ;;
8974    freebsd-*)
8975      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8976      need_version=yes
8977      ;;
8978  esac
8979  shlibpath_var=LD_LIBRARY_PATH
8980  case $host_os in
8981  freebsd2*)
8982    shlibpath_overrides_runpath=yes
8983    ;;
8984  freebsd3.[01]* | freebsdelf3.[01]*)
8985    shlibpath_overrides_runpath=yes
8986    hardcode_into_libs=yes
8987    ;;
8988  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8989  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8990    shlibpath_overrides_runpath=no
8991    hardcode_into_libs=yes
8992    ;;
8993  freebsd*) # from 4.6 on
8994    shlibpath_overrides_runpath=yes
8995    hardcode_into_libs=yes
8996    ;;
8997  esac
8998  ;;
8999
9000gnu*)
9001  version_type=linux
9002  need_lib_prefix=no
9003  need_version=no
9004  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9005  soname_spec='${libname}${release}${shared_ext}$major'
9006  shlibpath_var=LD_LIBRARY_PATH
9007  hardcode_into_libs=yes
9008  ;;
9009
9010hpux9* | hpux10* | hpux11*)
9011  # Give a soname corresponding to the major version so that dld.sl refuses to
9012  # link against other versions.
9013  version_type=sunos
9014  need_lib_prefix=no
9015  need_version=no
9016  case $host_cpu in
9017  ia64*)
9018    shrext_cmds='.so'
9019    hardcode_into_libs=yes
9020    dynamic_linker="$host_os dld.so"
9021    shlibpath_var=LD_LIBRARY_PATH
9022    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9023    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024    soname_spec='${libname}${release}${shared_ext}$major'
9025    if test "X$HPUX_IA64_MODE" = X32; then
9026      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9027    else
9028      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9029    fi
9030    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9031    ;;
9032   hppa*64*)
9033     shrext_cmds='.sl'
9034     hardcode_into_libs=yes
9035     dynamic_linker="$host_os dld.sl"
9036     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9037     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9038     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039     soname_spec='${libname}${release}${shared_ext}$major'
9040     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9041     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9042     ;;
9043   *)
9044    shrext_cmds='.sl'
9045    dynamic_linker="$host_os dld.sl"
9046    shlibpath_var=SHLIB_PATH
9047    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9048    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9049    soname_spec='${libname}${release}${shared_ext}$major'
9050    ;;
9051  esac
9052  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9053  postinstall_cmds='chmod 555 $lib'
9054  ;;
9055
9056interix3*)
9057  version_type=linux
9058  need_lib_prefix=no
9059  need_version=no
9060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9061  soname_spec='${libname}${release}${shared_ext}$major'
9062  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9063  shlibpath_var=LD_LIBRARY_PATH
9064  shlibpath_overrides_runpath=no
9065  hardcode_into_libs=yes
9066  ;;
9067
9068irix5* | irix6* | nonstopux*)
9069  case $host_os in
9070    nonstopux*) version_type=nonstopux ;;
9071    *)
9072	if test "$lt_cv_prog_gnu_ld" = yes; then
9073		version_type=linux
9074	else
9075		version_type=irix
9076	fi ;;
9077  esac
9078  need_lib_prefix=no
9079  need_version=no
9080  soname_spec='${libname}${release}${shared_ext}$major'
9081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9082  case $host_os in
9083  irix5* | nonstopux*)
9084    libsuff= shlibsuff=
9085    ;;
9086  *)
9087    case $LD in # libtool.m4 will add one of these switches to LD
9088    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9089      libsuff= shlibsuff= libmagic=32-bit;;
9090    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9091      libsuff=32 shlibsuff=N32 libmagic=N32;;
9092    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9093      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9094    *) libsuff= shlibsuff= libmagic=never-match;;
9095    esac
9096    ;;
9097  esac
9098  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9099  shlibpath_overrides_runpath=no
9100  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9101  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9102  hardcode_into_libs=yes
9103  ;;
9104
9105# No shared lib support for Linux oldld, aout, or coff.
9106linux*oldld* | linux*aout* | linux*coff*)
9107  dynamic_linker=no
9108  ;;
9109
9110# This must be Linux ELF.
9111linux* | k*bsd*-gnu)
9112  version_type=linux
9113  need_lib_prefix=no
9114  need_version=no
9115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116  soname_spec='${libname}${release}${shared_ext}$major'
9117  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9118  shlibpath_var=LD_LIBRARY_PATH
9119  shlibpath_overrides_runpath=no
9120  # This implies no fast_install, which is unacceptable.
9121  # Some rework will be needed to allow for fast_install
9122  # before this can be enabled.
9123  hardcode_into_libs=yes
9124
9125  # Append ld.so.conf contents to the search path
9126  if test -f /etc/ld.so.conf; then
9127    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9128    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9129  fi
9130
9131  # We used to test for /lib/ld.so.1 and disable shared libraries on
9132  # powerpc, because MkLinux only supported shared libraries with the
9133  # GNU dynamic linker.  Since this was broken with cross compilers,
9134  # most powerpc-linux boxes support dynamic linking these days and
9135  # people can always --disable-shared, the test was removed, and we
9136  # assume the GNU/Linux dynamic linker is in use.
9137  dynamic_linker='GNU/Linux ld.so'
9138  ;;
9139
9140netbsdelf*-gnu)
9141  version_type=linux
9142  need_lib_prefix=no
9143  need_version=no
9144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9145  soname_spec='${libname}${release}${shared_ext}$major'
9146  shlibpath_var=LD_LIBRARY_PATH
9147  shlibpath_overrides_runpath=no
9148  hardcode_into_libs=yes
9149  dynamic_linker='NetBSD ld.elf_so'
9150  ;;
9151
9152netbsd*)
9153  version_type=sunos
9154  need_lib_prefix=no
9155  need_version=no
9156  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9157    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9158    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9159    dynamic_linker='NetBSD (a.out) ld.so'
9160  else
9161    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9162    soname_spec='${libname}${release}${shared_ext}$major'
9163    dynamic_linker='NetBSD ld.elf_so'
9164  fi
9165  shlibpath_var=LD_LIBRARY_PATH
9166  shlibpath_overrides_runpath=yes
9167  hardcode_into_libs=yes
9168  ;;
9169
9170newsos6)
9171  version_type=linux
9172  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9173  shlibpath_var=LD_LIBRARY_PATH
9174  shlibpath_overrides_runpath=yes
9175  ;;
9176
9177nto-qnx*)
9178  version_type=linux
9179  need_lib_prefix=no
9180  need_version=no
9181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9182  soname_spec='${libname}${release}${shared_ext}$major'
9183  shlibpath_var=LD_LIBRARY_PATH
9184  shlibpath_overrides_runpath=yes
9185  ;;
9186
9187openbsd*)
9188  version_type=sunos
9189  sys_lib_dlsearch_path_spec="/usr/lib"
9190  need_lib_prefix=no
9191  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9192  case $host_os in
9193    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9194    *)                         need_version=no  ;;
9195  esac
9196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9197  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9198  shlibpath_var=LD_LIBRARY_PATH
9199  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9200    case $host_os in
9201      openbsd2.[89] | openbsd2.[89].*)
9202	shlibpath_overrides_runpath=no
9203	;;
9204      *)
9205	shlibpath_overrides_runpath=yes
9206	;;
9207      esac
9208  else
9209    shlibpath_overrides_runpath=yes
9210  fi
9211  ;;
9212
9213os2*)
9214  libname_spec='$name'
9215  shrext_cmds=".dll"
9216  need_lib_prefix=no
9217  library_names_spec='$libname${shared_ext} $libname.a'
9218  dynamic_linker='OS/2 ld.exe'
9219  shlibpath_var=LIBPATH
9220  ;;
9221
9222osf3* | osf4* | osf5*)
9223  version_type=osf
9224  need_lib_prefix=no
9225  need_version=no
9226  soname_spec='${libname}${release}${shared_ext}$major'
9227  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228  shlibpath_var=LD_LIBRARY_PATH
9229  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9230  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9231  ;;
9232
9233solaris*)
9234  version_type=linux
9235  need_lib_prefix=no
9236  need_version=no
9237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238  soname_spec='${libname}${release}${shared_ext}$major'
9239  shlibpath_var=LD_LIBRARY_PATH
9240  shlibpath_overrides_runpath=yes
9241  hardcode_into_libs=yes
9242  # ldd complains unless libraries are executable
9243  postinstall_cmds='chmod +x $lib'
9244  ;;
9245
9246sunos4*)
9247  version_type=sunos
9248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9249  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9250  shlibpath_var=LD_LIBRARY_PATH
9251  shlibpath_overrides_runpath=yes
9252  if test "$with_gnu_ld" = yes; then
9253    need_lib_prefix=no
9254  fi
9255  need_version=yes
9256  ;;
9257
9258sysv4 | sysv4.3*)
9259  version_type=linux
9260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9261  soname_spec='${libname}${release}${shared_ext}$major'
9262  shlibpath_var=LD_LIBRARY_PATH
9263  case $host_vendor in
9264    sni)
9265      shlibpath_overrides_runpath=no
9266      need_lib_prefix=no
9267      export_dynamic_flag_spec='${wl}-Blargedynsym'
9268      runpath_var=LD_RUN_PATH
9269      ;;
9270    siemens)
9271      need_lib_prefix=no
9272      ;;
9273    motorola)
9274      need_lib_prefix=no
9275      need_version=no
9276      shlibpath_overrides_runpath=no
9277      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9278      ;;
9279  esac
9280  ;;
9281
9282sysv4*MP*)
9283  if test -d /usr/nec ;then
9284    version_type=linux
9285    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9286    soname_spec='$libname${shared_ext}.$major'
9287    shlibpath_var=LD_LIBRARY_PATH
9288  fi
9289  ;;
9290
9291sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9292  version_type=freebsd-elf
9293  need_lib_prefix=no
9294  need_version=no
9295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9296  soname_spec='${libname}${release}${shared_ext}$major'
9297  shlibpath_var=LD_LIBRARY_PATH
9298  hardcode_into_libs=yes
9299  if test "$with_gnu_ld" = yes; then
9300    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9301    shlibpath_overrides_runpath=no
9302  else
9303    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9304    shlibpath_overrides_runpath=yes
9305    case $host_os in
9306      sco3.2v5*)
9307        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9308	;;
9309    esac
9310  fi
9311  sys_lib_dlsearch_path_spec='/usr/lib'
9312  ;;
9313
9314uts4*)
9315  version_type=linux
9316  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9317  soname_spec='${libname}${release}${shared_ext}$major'
9318  shlibpath_var=LD_LIBRARY_PATH
9319  ;;
9320
9321*)
9322  dynamic_linker=no
9323  ;;
9324esac
9325{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9326echo "${ECHO_T}$dynamic_linker" >&6; }
9327test "$dynamic_linker" = no && can_build_shared=no
9328
9329variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9330if test "$GCC" = yes; then
9331  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9332fi
9333
9334{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9335echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9336hardcode_action=
9337if test -n "$hardcode_libdir_flag_spec" || \
9338   test -n "$runpath_var" || \
9339   test "X$hardcode_automatic" = "Xyes" ; then
9340
9341  # We can hardcode non-existant directories.
9342  if test "$hardcode_direct" != no &&
9343     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9344     # have to relink, otherwise we might link with an installed library
9345     # when we should be linking with a yet-to-be-installed one
9346     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9347     test "$hardcode_minus_L" != no; then
9348    # Linking always hardcodes the temporary library directory.
9349    hardcode_action=relink
9350  else
9351    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9352    hardcode_action=immediate
9353  fi
9354else
9355  # We cannot hardcode anything, or else we can only hardcode existing
9356  # directories.
9357  hardcode_action=unsupported
9358fi
9359{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9360echo "${ECHO_T}$hardcode_action" >&6; }
9361
9362if test "$hardcode_action" = relink; then
9363  # Fast installation is not supported
9364  enable_fast_install=no
9365elif test "$shlibpath_overrides_runpath" = yes ||
9366     test "$enable_shared" = no; then
9367  # Fast installation is not necessary
9368  enable_fast_install=needless
9369fi
9370
9371striplib=
9372old_striplib=
9373{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9374echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9375if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9376  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9377  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9378  { echo "$as_me:$LINENO: result: yes" >&5
9379echo "${ECHO_T}yes" >&6; }
9380else
9381# FIXME - insert some real tests, host_os isn't really good enough
9382  case $host_os in
9383   darwin*)
9384       if test -n "$STRIP" ; then
9385         striplib="$STRIP -x"
9386         { echo "$as_me:$LINENO: result: yes" >&5
9387echo "${ECHO_T}yes" >&6; }
9388       else
9389  { echo "$as_me:$LINENO: result: no" >&5
9390echo "${ECHO_T}no" >&6; }
9391fi
9392       ;;
9393   *)
9394  { echo "$as_me:$LINENO: result: no" >&5
9395echo "${ECHO_T}no" >&6; }
9396    ;;
9397  esac
9398fi
9399
9400if test "x$enable_dlopen" != xyes; then
9401  enable_dlopen=unknown
9402  enable_dlopen_self=unknown
9403  enable_dlopen_self_static=unknown
9404else
9405  lt_cv_dlopen=no
9406  lt_cv_dlopen_libs=
9407
9408  case $host_os in
9409  beos*)
9410    lt_cv_dlopen="load_add_on"
9411    lt_cv_dlopen_libs=
9412    lt_cv_dlopen_self=yes
9413    ;;
9414
9415  mingw* | pw32*)
9416    lt_cv_dlopen="LoadLibrary"
9417    lt_cv_dlopen_libs=
9418   ;;
9419
9420  cygwin*)
9421    lt_cv_dlopen="dlopen"
9422    lt_cv_dlopen_libs=
9423   ;;
9424
9425  darwin*)
9426  # if libdl is installed we need to link against it
9427    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9428echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9429if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9430  echo $ECHO_N "(cached) $ECHO_C" >&6
9431else
9432  ac_check_lib_save_LIBS=$LIBS
9433LIBS="-ldl  $LIBS"
9434cat >conftest.$ac_ext <<_ACEOF
9435/* confdefs.h.  */
9436_ACEOF
9437cat confdefs.h >>conftest.$ac_ext
9438cat >>conftest.$ac_ext <<_ACEOF
9439/* end confdefs.h.  */
9440
9441/* Override any GCC internal prototype to avoid an error.
9442   Use char because int might match the return type of a GCC
9443   builtin and then its argument prototype would still apply.  */
9444#ifdef __cplusplus
9445extern "C"
9446#endif
9447char dlopen ();
9448int
9449main ()
9450{
9451return dlopen ();
9452  ;
9453  return 0;
9454}
9455_ACEOF
9456rm -f conftest.$ac_objext conftest$ac_exeext
9457if { (ac_try="$ac_link"
9458case "(($ac_try" in
9459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9460  *) ac_try_echo=$ac_try;;
9461esac
9462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9463  (eval "$ac_link") 2>conftest.er1
9464  ac_status=$?
9465  grep -v '^ *+' conftest.er1 >conftest.err
9466  rm -f conftest.er1
9467  cat conftest.err >&5
9468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469  (exit $ac_status); } && {
9470	 test -z "$ac_c_werror_flag" ||
9471	 test ! -s conftest.err
9472       } && test -s conftest$ac_exeext &&
9473       $as_test_x conftest$ac_exeext; then
9474  ac_cv_lib_dl_dlopen=yes
9475else
9476  echo "$as_me: failed program was:" >&5
9477sed 's/^/| /' conftest.$ac_ext >&5
9478
9479	ac_cv_lib_dl_dlopen=no
9480fi
9481
9482rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9483      conftest$ac_exeext conftest.$ac_ext
9484LIBS=$ac_check_lib_save_LIBS
9485fi
9486{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9487echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9488if test $ac_cv_lib_dl_dlopen = yes; then
9489  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9490else
9491
9492    lt_cv_dlopen="dyld"
9493    lt_cv_dlopen_libs=
9494    lt_cv_dlopen_self=yes
9495
9496fi
9497
9498   ;;
9499
9500  *)
9501    { echo "$as_me:$LINENO: checking for shl_load" >&5
9502echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9503if test "${ac_cv_func_shl_load+set}" = set; then
9504  echo $ECHO_N "(cached) $ECHO_C" >&6
9505else
9506  cat >conftest.$ac_ext <<_ACEOF
9507/* confdefs.h.  */
9508_ACEOF
9509cat confdefs.h >>conftest.$ac_ext
9510cat >>conftest.$ac_ext <<_ACEOF
9511/* end confdefs.h.  */
9512/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9513   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9514#define shl_load innocuous_shl_load
9515
9516/* System header to define __stub macros and hopefully few prototypes,
9517    which can conflict with char shl_load (); below.
9518    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9519    <limits.h> exists even on freestanding compilers.  */
9520
9521#ifdef __STDC__
9522# include <limits.h>
9523#else
9524# include <assert.h>
9525#endif
9526
9527#undef shl_load
9528
9529/* Override any GCC internal prototype to avoid an error.
9530   Use char because int might match the return type of a GCC
9531   builtin and then its argument prototype would still apply.  */
9532#ifdef __cplusplus
9533extern "C"
9534#endif
9535char shl_load ();
9536/* The GNU C library defines this for functions which it implements
9537    to always fail with ENOSYS.  Some functions are actually named
9538    something starting with __ and the normal name is an alias.  */
9539#if defined __stub_shl_load || defined __stub___shl_load
9540choke me
9541#endif
9542
9543int
9544main ()
9545{
9546return shl_load ();
9547  ;
9548  return 0;
9549}
9550_ACEOF
9551rm -f conftest.$ac_objext conftest$ac_exeext
9552if { (ac_try="$ac_link"
9553case "(($ac_try" in
9554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555  *) ac_try_echo=$ac_try;;
9556esac
9557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558  (eval "$ac_link") 2>conftest.er1
9559  ac_status=$?
9560  grep -v '^ *+' conftest.er1 >conftest.err
9561  rm -f conftest.er1
9562  cat conftest.err >&5
9563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564  (exit $ac_status); } && {
9565	 test -z "$ac_c_werror_flag" ||
9566	 test ! -s conftest.err
9567       } && test -s conftest$ac_exeext &&
9568       $as_test_x conftest$ac_exeext; then
9569  ac_cv_func_shl_load=yes
9570else
9571  echo "$as_me: failed program was:" >&5
9572sed 's/^/| /' conftest.$ac_ext >&5
9573
9574	ac_cv_func_shl_load=no
9575fi
9576
9577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9578      conftest$ac_exeext conftest.$ac_ext
9579fi
9580{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9581echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9582if test $ac_cv_func_shl_load = yes; then
9583  lt_cv_dlopen="shl_load"
9584else
9585  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9586echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9587if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9588  echo $ECHO_N "(cached) $ECHO_C" >&6
9589else
9590  ac_check_lib_save_LIBS=$LIBS
9591LIBS="-ldld  $LIBS"
9592cat >conftest.$ac_ext <<_ACEOF
9593/* confdefs.h.  */
9594_ACEOF
9595cat confdefs.h >>conftest.$ac_ext
9596cat >>conftest.$ac_ext <<_ACEOF
9597/* end confdefs.h.  */
9598
9599/* Override any GCC internal prototype to avoid an error.
9600   Use char because int might match the return type of a GCC
9601   builtin and then its argument prototype would still apply.  */
9602#ifdef __cplusplus
9603extern "C"
9604#endif
9605char shl_load ();
9606int
9607main ()
9608{
9609return shl_load ();
9610  ;
9611  return 0;
9612}
9613_ACEOF
9614rm -f conftest.$ac_objext conftest$ac_exeext
9615if { (ac_try="$ac_link"
9616case "(($ac_try" in
9617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618  *) ac_try_echo=$ac_try;;
9619esac
9620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621  (eval "$ac_link") 2>conftest.er1
9622  ac_status=$?
9623  grep -v '^ *+' conftest.er1 >conftest.err
9624  rm -f conftest.er1
9625  cat conftest.err >&5
9626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627  (exit $ac_status); } && {
9628	 test -z "$ac_c_werror_flag" ||
9629	 test ! -s conftest.err
9630       } && test -s conftest$ac_exeext &&
9631       $as_test_x conftest$ac_exeext; then
9632  ac_cv_lib_dld_shl_load=yes
9633else
9634  echo "$as_me: failed program was:" >&5
9635sed 's/^/| /' conftest.$ac_ext >&5
9636
9637	ac_cv_lib_dld_shl_load=no
9638fi
9639
9640rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9641      conftest$ac_exeext conftest.$ac_ext
9642LIBS=$ac_check_lib_save_LIBS
9643fi
9644{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9645echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9646if test $ac_cv_lib_dld_shl_load = yes; then
9647  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9648else
9649  { echo "$as_me:$LINENO: checking for dlopen" >&5
9650echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9651if test "${ac_cv_func_dlopen+set}" = set; then
9652  echo $ECHO_N "(cached) $ECHO_C" >&6
9653else
9654  cat >conftest.$ac_ext <<_ACEOF
9655/* confdefs.h.  */
9656_ACEOF
9657cat confdefs.h >>conftest.$ac_ext
9658cat >>conftest.$ac_ext <<_ACEOF
9659/* end confdefs.h.  */
9660/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9661   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9662#define dlopen innocuous_dlopen
9663
9664/* System header to define __stub macros and hopefully few prototypes,
9665    which can conflict with char dlopen (); below.
9666    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667    <limits.h> exists even on freestanding compilers.  */
9668
9669#ifdef __STDC__
9670# include <limits.h>
9671#else
9672# include <assert.h>
9673#endif
9674
9675#undef dlopen
9676
9677/* Override any GCC internal prototype to avoid an error.
9678   Use char because int might match the return type of a GCC
9679   builtin and then its argument prototype would still apply.  */
9680#ifdef __cplusplus
9681extern "C"
9682#endif
9683char dlopen ();
9684/* The GNU C library defines this for functions which it implements
9685    to always fail with ENOSYS.  Some functions are actually named
9686    something starting with __ and the normal name is an alias.  */
9687#if defined __stub_dlopen || defined __stub___dlopen
9688choke me
9689#endif
9690
9691int
9692main ()
9693{
9694return dlopen ();
9695  ;
9696  return 0;
9697}
9698_ACEOF
9699rm -f conftest.$ac_objext conftest$ac_exeext
9700if { (ac_try="$ac_link"
9701case "(($ac_try" in
9702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703  *) ac_try_echo=$ac_try;;
9704esac
9705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706  (eval "$ac_link") 2>conftest.er1
9707  ac_status=$?
9708  grep -v '^ *+' conftest.er1 >conftest.err
9709  rm -f conftest.er1
9710  cat conftest.err >&5
9711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712  (exit $ac_status); } && {
9713	 test -z "$ac_c_werror_flag" ||
9714	 test ! -s conftest.err
9715       } && test -s conftest$ac_exeext &&
9716       $as_test_x conftest$ac_exeext; then
9717  ac_cv_func_dlopen=yes
9718else
9719  echo "$as_me: failed program was:" >&5
9720sed 's/^/| /' conftest.$ac_ext >&5
9721
9722	ac_cv_func_dlopen=no
9723fi
9724
9725rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9726      conftest$ac_exeext conftest.$ac_ext
9727fi
9728{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9729echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9730if test $ac_cv_func_dlopen = yes; then
9731  lt_cv_dlopen="dlopen"
9732else
9733  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9734echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9735if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9736  echo $ECHO_N "(cached) $ECHO_C" >&6
9737else
9738  ac_check_lib_save_LIBS=$LIBS
9739LIBS="-ldl  $LIBS"
9740cat >conftest.$ac_ext <<_ACEOF
9741/* confdefs.h.  */
9742_ACEOF
9743cat confdefs.h >>conftest.$ac_ext
9744cat >>conftest.$ac_ext <<_ACEOF
9745/* end confdefs.h.  */
9746
9747/* Override any GCC internal prototype to avoid an error.
9748   Use char because int might match the return type of a GCC
9749   builtin and then its argument prototype would still apply.  */
9750#ifdef __cplusplus
9751extern "C"
9752#endif
9753char dlopen ();
9754int
9755main ()
9756{
9757return dlopen ();
9758  ;
9759  return 0;
9760}
9761_ACEOF
9762rm -f conftest.$ac_objext conftest$ac_exeext
9763if { (ac_try="$ac_link"
9764case "(($ac_try" in
9765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766  *) ac_try_echo=$ac_try;;
9767esac
9768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769  (eval "$ac_link") 2>conftest.er1
9770  ac_status=$?
9771  grep -v '^ *+' conftest.er1 >conftest.err
9772  rm -f conftest.er1
9773  cat conftest.err >&5
9774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775  (exit $ac_status); } && {
9776	 test -z "$ac_c_werror_flag" ||
9777	 test ! -s conftest.err
9778       } && test -s conftest$ac_exeext &&
9779       $as_test_x conftest$ac_exeext; then
9780  ac_cv_lib_dl_dlopen=yes
9781else
9782  echo "$as_me: failed program was:" >&5
9783sed 's/^/| /' conftest.$ac_ext >&5
9784
9785	ac_cv_lib_dl_dlopen=no
9786fi
9787
9788rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9789      conftest$ac_exeext conftest.$ac_ext
9790LIBS=$ac_check_lib_save_LIBS
9791fi
9792{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9793echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9794if test $ac_cv_lib_dl_dlopen = yes; then
9795  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9796else
9797  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9798echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9799if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9800  echo $ECHO_N "(cached) $ECHO_C" >&6
9801else
9802  ac_check_lib_save_LIBS=$LIBS
9803LIBS="-lsvld  $LIBS"
9804cat >conftest.$ac_ext <<_ACEOF
9805/* confdefs.h.  */
9806_ACEOF
9807cat confdefs.h >>conftest.$ac_ext
9808cat >>conftest.$ac_ext <<_ACEOF
9809/* end confdefs.h.  */
9810
9811/* Override any GCC internal prototype to avoid an error.
9812   Use char because int might match the return type of a GCC
9813   builtin and then its argument prototype would still apply.  */
9814#ifdef __cplusplus
9815extern "C"
9816#endif
9817char dlopen ();
9818int
9819main ()
9820{
9821return dlopen ();
9822  ;
9823  return 0;
9824}
9825_ACEOF
9826rm -f conftest.$ac_objext conftest$ac_exeext
9827if { (ac_try="$ac_link"
9828case "(($ac_try" in
9829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830  *) ac_try_echo=$ac_try;;
9831esac
9832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833  (eval "$ac_link") 2>conftest.er1
9834  ac_status=$?
9835  grep -v '^ *+' conftest.er1 >conftest.err
9836  rm -f conftest.er1
9837  cat conftest.err >&5
9838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839  (exit $ac_status); } && {
9840	 test -z "$ac_c_werror_flag" ||
9841	 test ! -s conftest.err
9842       } && test -s conftest$ac_exeext &&
9843       $as_test_x conftest$ac_exeext; then
9844  ac_cv_lib_svld_dlopen=yes
9845else
9846  echo "$as_me: failed program was:" >&5
9847sed 's/^/| /' conftest.$ac_ext >&5
9848
9849	ac_cv_lib_svld_dlopen=no
9850fi
9851
9852rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9853      conftest$ac_exeext conftest.$ac_ext
9854LIBS=$ac_check_lib_save_LIBS
9855fi
9856{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9857echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9858if test $ac_cv_lib_svld_dlopen = yes; then
9859  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9860else
9861  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9862echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9863if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9864  echo $ECHO_N "(cached) $ECHO_C" >&6
9865else
9866  ac_check_lib_save_LIBS=$LIBS
9867LIBS="-ldld  $LIBS"
9868cat >conftest.$ac_ext <<_ACEOF
9869/* confdefs.h.  */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
9873/* end confdefs.h.  */
9874
9875/* Override any GCC internal prototype to avoid an error.
9876   Use char because int might match the return type of a GCC
9877   builtin and then its argument prototype would still apply.  */
9878#ifdef __cplusplus
9879extern "C"
9880#endif
9881char dld_link ();
9882int
9883main ()
9884{
9885return dld_link ();
9886  ;
9887  return 0;
9888}
9889_ACEOF
9890rm -f conftest.$ac_objext conftest$ac_exeext
9891if { (ac_try="$ac_link"
9892case "(($ac_try" in
9893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894  *) ac_try_echo=$ac_try;;
9895esac
9896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897  (eval "$ac_link") 2>conftest.er1
9898  ac_status=$?
9899  grep -v '^ *+' conftest.er1 >conftest.err
9900  rm -f conftest.er1
9901  cat conftest.err >&5
9902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903  (exit $ac_status); } && {
9904	 test -z "$ac_c_werror_flag" ||
9905	 test ! -s conftest.err
9906       } && test -s conftest$ac_exeext &&
9907       $as_test_x conftest$ac_exeext; then
9908  ac_cv_lib_dld_dld_link=yes
9909else
9910  echo "$as_me: failed program was:" >&5
9911sed 's/^/| /' conftest.$ac_ext >&5
9912
9913	ac_cv_lib_dld_dld_link=no
9914fi
9915
9916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9917      conftest$ac_exeext conftest.$ac_ext
9918LIBS=$ac_check_lib_save_LIBS
9919fi
9920{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9921echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9922if test $ac_cv_lib_dld_dld_link = yes; then
9923  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9924fi
9925
9926
9927fi
9928
9929
9930fi
9931
9932
9933fi
9934
9935
9936fi
9937
9938
9939fi
9940
9941    ;;
9942  esac
9943
9944  if test "x$lt_cv_dlopen" != xno; then
9945    enable_dlopen=yes
9946  else
9947    enable_dlopen=no
9948  fi
9949
9950  case $lt_cv_dlopen in
9951  dlopen)
9952    save_CPPFLAGS="$CPPFLAGS"
9953    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9954
9955    save_LDFLAGS="$LDFLAGS"
9956    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9957
9958    save_LIBS="$LIBS"
9959    LIBS="$lt_cv_dlopen_libs $LIBS"
9960
9961    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9962echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9963if test "${lt_cv_dlopen_self+set}" = set; then
9964  echo $ECHO_N "(cached) $ECHO_C" >&6
9965else
9966  	  if test "$cross_compiling" = yes; then :
9967  lt_cv_dlopen_self=cross
9968else
9969  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9970  lt_status=$lt_dlunknown
9971  cat > conftest.$ac_ext <<EOF
9972#line 9972 "configure"
9973#include "confdefs.h"
9974
9975#if HAVE_DLFCN_H
9976#include <dlfcn.h>
9977#endif
9978
9979#include <stdio.h>
9980
9981#ifdef RTLD_GLOBAL
9982#  define LT_DLGLOBAL		RTLD_GLOBAL
9983#else
9984#  ifdef DL_GLOBAL
9985#    define LT_DLGLOBAL		DL_GLOBAL
9986#  else
9987#    define LT_DLGLOBAL		0
9988#  endif
9989#endif
9990
9991/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9992   find out it does not work in some platform. */
9993#ifndef LT_DLLAZY_OR_NOW
9994#  ifdef RTLD_LAZY
9995#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9996#  else
9997#    ifdef DL_LAZY
9998#      define LT_DLLAZY_OR_NOW		DL_LAZY
9999#    else
10000#      ifdef RTLD_NOW
10001#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10002#      else
10003#        ifdef DL_NOW
10004#          define LT_DLLAZY_OR_NOW	DL_NOW
10005#        else
10006#          define LT_DLLAZY_OR_NOW	0
10007#        endif
10008#      endif
10009#    endif
10010#  endif
10011#endif
10012
10013#ifdef __cplusplus
10014extern "C" void exit (int);
10015#endif
10016
10017void fnord() { int i=42;}
10018int main ()
10019{
10020  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10021  int status = $lt_dlunknown;
10022
10023  if (self)
10024    {
10025      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10026      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10027      /* dlclose (self); */
10028    }
10029  else
10030    puts (dlerror ());
10031
10032    exit (status);
10033}
10034EOF
10035  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10036  (eval $ac_link) 2>&5
10037  ac_status=$?
10038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10040    (./conftest; exit; ) >&5 2>/dev/null
10041    lt_status=$?
10042    case x$lt_status in
10043      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10044      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10045      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10046    esac
10047  else :
10048    # compilation failed
10049    lt_cv_dlopen_self=no
10050  fi
10051fi
10052rm -fr conftest*
10053
10054
10055fi
10056{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10057echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10058
10059    if test "x$lt_cv_dlopen_self" = xyes; then
10060      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10061      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10062echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10063if test "${lt_cv_dlopen_self_static+set}" = set; then
10064  echo $ECHO_N "(cached) $ECHO_C" >&6
10065else
10066  	  if test "$cross_compiling" = yes; then :
10067  lt_cv_dlopen_self_static=cross
10068else
10069  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10070  lt_status=$lt_dlunknown
10071  cat > conftest.$ac_ext <<EOF
10072#line 10072 "configure"
10073#include "confdefs.h"
10074
10075#if HAVE_DLFCN_H
10076#include <dlfcn.h>
10077#endif
10078
10079#include <stdio.h>
10080
10081#ifdef RTLD_GLOBAL
10082#  define LT_DLGLOBAL		RTLD_GLOBAL
10083#else
10084#  ifdef DL_GLOBAL
10085#    define LT_DLGLOBAL		DL_GLOBAL
10086#  else
10087#    define LT_DLGLOBAL		0
10088#  endif
10089#endif
10090
10091/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10092   find out it does not work in some platform. */
10093#ifndef LT_DLLAZY_OR_NOW
10094#  ifdef RTLD_LAZY
10095#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10096#  else
10097#    ifdef DL_LAZY
10098#      define LT_DLLAZY_OR_NOW		DL_LAZY
10099#    else
10100#      ifdef RTLD_NOW
10101#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10102#      else
10103#        ifdef DL_NOW
10104#          define LT_DLLAZY_OR_NOW	DL_NOW
10105#        else
10106#          define LT_DLLAZY_OR_NOW	0
10107#        endif
10108#      endif
10109#    endif
10110#  endif
10111#endif
10112
10113#ifdef __cplusplus
10114extern "C" void exit (int);
10115#endif
10116
10117void fnord() { int i=42;}
10118int main ()
10119{
10120  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10121  int status = $lt_dlunknown;
10122
10123  if (self)
10124    {
10125      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10126      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10127      /* dlclose (self); */
10128    }
10129  else
10130    puts (dlerror ());
10131
10132    exit (status);
10133}
10134EOF
10135  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10136  (eval $ac_link) 2>&5
10137  ac_status=$?
10138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10140    (./conftest; exit; ) >&5 2>/dev/null
10141    lt_status=$?
10142    case x$lt_status in
10143      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10144      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10145      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10146    esac
10147  else :
10148    # compilation failed
10149    lt_cv_dlopen_self_static=no
10150  fi
10151fi
10152rm -fr conftest*
10153
10154
10155fi
10156{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10157echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10158    fi
10159
10160    CPPFLAGS="$save_CPPFLAGS"
10161    LDFLAGS="$save_LDFLAGS"
10162    LIBS="$save_LIBS"
10163    ;;
10164  esac
10165
10166  case $lt_cv_dlopen_self in
10167  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10168  *) enable_dlopen_self=unknown ;;
10169  esac
10170
10171  case $lt_cv_dlopen_self_static in
10172  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10173  *) enable_dlopen_self_static=unknown ;;
10174  esac
10175fi
10176
10177
10178# Report which library types will actually be built
10179{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10180echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10181{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10182echo "${ECHO_T}$can_build_shared" >&6; }
10183
10184{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10185echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10186test "$can_build_shared" = "no" && enable_shared=no
10187
10188# On AIX, shared libraries and static libraries use the same namespace, and
10189# are all built from PIC.
10190case $host_os in
10191aix3*)
10192  test "$enable_shared" = yes && enable_static=no
10193  if test -n "$RANLIB"; then
10194    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10195    postinstall_cmds='$RANLIB $lib'
10196  fi
10197  ;;
10198
10199aix4* | aix5*)
10200  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10201    test "$enable_shared" = yes && enable_static=no
10202  fi
10203    ;;
10204esac
10205{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10206echo "${ECHO_T}$enable_shared" >&6; }
10207
10208{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10209echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10210# Make sure either enable_shared or enable_static is yes.
10211test "$enable_shared" = yes || enable_static=yes
10212{ echo "$as_me:$LINENO: result: $enable_static" >&5
10213echo "${ECHO_T}$enable_static" >&6; }
10214
10215# The else clause should only fire when bootstrapping the
10216# libtool distribution, otherwise you forgot to ship ltmain.sh
10217# with your package, and you will get complaints that there are
10218# no rules to generate ltmain.sh.
10219if test -f "$ltmain"; then
10220  # See if we are running on zsh, and set the options which allow our commands through
10221  # without removal of \ escapes.
10222  if test -n "${ZSH_VERSION+set}" ; then
10223    setopt NO_GLOB_SUBST
10224  fi
10225  # Now quote all the things that may contain metacharacters while being
10226  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10227  # variables and quote the copies for generation of the libtool script.
10228  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10229    SED SHELL STRIP \
10230    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10231    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10232    deplibs_check_method reload_flag reload_cmds need_locks \
10233    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10234    lt_cv_sys_global_symbol_to_c_name_address \
10235    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10236    old_postinstall_cmds old_postuninstall_cmds \
10237    compiler \
10238    CC \
10239    LD \
10240    lt_prog_compiler_wl \
10241    lt_prog_compiler_pic \
10242    lt_prog_compiler_static \
10243    lt_prog_compiler_no_builtin_flag \
10244    export_dynamic_flag_spec \
10245    thread_safe_flag_spec \
10246    whole_archive_flag_spec \
10247    enable_shared_with_static_runtimes \
10248    old_archive_cmds \
10249    old_archive_from_new_cmds \
10250    predep_objects \
10251    postdep_objects \
10252    predeps \
10253    postdeps \
10254    compiler_lib_search_path \
10255    archive_cmds \
10256    archive_expsym_cmds \
10257    postinstall_cmds \
10258    postuninstall_cmds \
10259    old_archive_from_expsyms_cmds \
10260    allow_undefined_flag \
10261    no_undefined_flag \
10262    export_symbols_cmds \
10263    hardcode_libdir_flag_spec \
10264    hardcode_libdir_flag_spec_ld \
10265    hardcode_libdir_separator \
10266    hardcode_automatic \
10267    module_cmds \
10268    module_expsym_cmds \
10269    lt_cv_prog_compiler_c_o \
10270    exclude_expsyms \
10271    include_expsyms; do
10272
10273    case $var in
10274    old_archive_cmds | \
10275    old_archive_from_new_cmds | \
10276    archive_cmds | \
10277    archive_expsym_cmds | \
10278    module_cmds | \
10279    module_expsym_cmds | \
10280    old_archive_from_expsyms_cmds | \
10281    export_symbols_cmds | \
10282    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10283    postinstall_cmds | postuninstall_cmds | \
10284    old_postinstall_cmds | old_postuninstall_cmds | \
10285    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10286      # Double-quote double-evaled strings.
10287      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10288      ;;
10289    *)
10290      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10291      ;;
10292    esac
10293  done
10294
10295  case $lt_echo in
10296  *'\$0 --fallback-echo"')
10297    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10298    ;;
10299  esac
10300
10301cfgfile="${ofile}T"
10302  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10303  $rm -f "$cfgfile"
10304  { echo "$as_me:$LINENO: creating $ofile" >&5
10305echo "$as_me: creating $ofile" >&6;}
10306
10307  cat <<__EOF__ >> "$cfgfile"
10308#! $SHELL
10309
10310# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10311# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10312# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10313#
10314# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10315# Free Software Foundation, Inc.
10316#
10317# This file is part of GNU Libtool:
10318# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10319#
10320# This program is free software; you can redistribute it and/or modify
10321# it under the terms of the GNU General Public License as published by
10322# the Free Software Foundation; either version 2 of the License, or
10323# (at your option) any later version.
10324#
10325# This program is distributed in the hope that it will be useful, but
10326# WITHOUT ANY WARRANTY; without even the implied warranty of
10327# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10328# General Public License for more details.
10329#
10330# You should have received a copy of the GNU General Public License
10331# along with this program; if not, write to the Free Software
10332# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10333#
10334# As a special exception to the GNU General Public License, if you
10335# distribute this file as part of a program that contains a
10336# configuration script generated by Autoconf, you may include it under
10337# the same distribution terms that you use for the rest of that program.
10338
10339# A sed program that does not truncate output.
10340SED=$lt_SED
10341
10342# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10343Xsed="$SED -e 1s/^X//"
10344
10345# The HP-UX ksh and POSIX shell print the target directory to stdout
10346# if CDPATH is set.
10347(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10348
10349# The names of the tagged configurations supported by this script.
10350available_tags=
10351
10352# ### BEGIN LIBTOOL CONFIG
10353
10354# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10355
10356# Shell to use when invoking shell scripts.
10357SHELL=$lt_SHELL
10358
10359# Whether or not to build shared libraries.
10360build_libtool_libs=$enable_shared
10361
10362# Whether or not to build static libraries.
10363build_old_libs=$enable_static
10364
10365# Whether or not to add -lc for building shared libraries.
10366build_libtool_need_lc=$archive_cmds_need_lc
10367
10368# Whether or not to disallow shared libs when runtime libs are static
10369allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10370
10371# Whether or not to optimize for fast installation.
10372fast_install=$enable_fast_install
10373
10374# The host system.
10375host_alias=$host_alias
10376host=$host
10377host_os=$host_os
10378
10379# The build system.
10380build_alias=$build_alias
10381build=$build
10382build_os=$build_os
10383
10384# An echo program that does not interpret backslashes.
10385echo=$lt_echo
10386
10387# The archiver.
10388AR=$lt_AR
10389AR_FLAGS=$lt_AR_FLAGS
10390
10391# A C compiler.
10392LTCC=$lt_LTCC
10393
10394# LTCC compiler flags.
10395LTCFLAGS=$lt_LTCFLAGS
10396
10397# A language-specific compiler.
10398CC=$lt_compiler
10399
10400# Is the compiler the GNU C compiler?
10401with_gcc=$GCC
10402
10403# An ERE matcher.
10404EGREP=$lt_EGREP
10405
10406# The linker used to build libraries.
10407LD=$lt_LD
10408
10409# Whether we need hard or soft links.
10410LN_S=$lt_LN_S
10411
10412# A BSD-compatible nm program.
10413NM=$lt_NM
10414
10415# A symbol stripping program
10416STRIP=$lt_STRIP
10417
10418# Used to examine libraries when file_magic_cmd begins "file"
10419MAGIC_CMD=$MAGIC_CMD
10420
10421# Used on cygwin: DLL creation program.
10422DLLTOOL="$DLLTOOL"
10423
10424# Used on cygwin: object dumper.
10425OBJDUMP="$OBJDUMP"
10426
10427# Used on cygwin: assembler.
10428AS="$AS"
10429
10430# The name of the directory that contains temporary libtool files.
10431objdir=$objdir
10432
10433# How to create reloadable object files.
10434reload_flag=$lt_reload_flag
10435reload_cmds=$lt_reload_cmds
10436
10437# How to pass a linker flag through the compiler.
10438wl=$lt_lt_prog_compiler_wl
10439
10440# Object file suffix (normally "o").
10441objext="$ac_objext"
10442
10443# Old archive suffix (normally "a").
10444libext="$libext"
10445
10446# Shared library suffix (normally ".so").
10447shrext_cmds='$shrext_cmds'
10448
10449# Executable file suffix (normally "").
10450exeext="$exeext"
10451
10452# Additional compiler flags for building library objects.
10453pic_flag=$lt_lt_prog_compiler_pic
10454pic_mode=$pic_mode
10455
10456# What is the maximum length of a command?
10457max_cmd_len=$lt_cv_sys_max_cmd_len
10458
10459# Does compiler simultaneously support -c and -o options?
10460compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10461
10462# Must we lock files when doing compilation?
10463need_locks=$lt_need_locks
10464
10465# Do we need the lib prefix for modules?
10466need_lib_prefix=$need_lib_prefix
10467
10468# Do we need a version for libraries?
10469need_version=$need_version
10470
10471# Whether dlopen is supported.
10472dlopen_support=$enable_dlopen
10473
10474# Whether dlopen of programs is supported.
10475dlopen_self=$enable_dlopen_self
10476
10477# Whether dlopen of statically linked programs is supported.
10478dlopen_self_static=$enable_dlopen_self_static
10479
10480# Compiler flag to prevent dynamic linking.
10481link_static_flag=$lt_lt_prog_compiler_static
10482
10483# Compiler flag to turn off builtin functions.
10484no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10485
10486# Compiler flag to allow reflexive dlopens.
10487export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10488
10489# Compiler flag to generate shared objects directly from archives.
10490whole_archive_flag_spec=$lt_whole_archive_flag_spec
10491
10492# Compiler flag to generate thread-safe objects.
10493thread_safe_flag_spec=$lt_thread_safe_flag_spec
10494
10495# Library versioning type.
10496version_type=$version_type
10497
10498# Format of library name prefix.
10499libname_spec=$lt_libname_spec
10500
10501# List of archive names.  First name is the real one, the rest are links.
10502# The last name is the one that the linker finds with -lNAME.
10503library_names_spec=$lt_library_names_spec
10504
10505# The coded name of the library, if different from the real name.
10506soname_spec=$lt_soname_spec
10507
10508# Commands used to build and install an old-style archive.
10509RANLIB=$lt_RANLIB
10510old_archive_cmds=$lt_old_archive_cmds
10511old_postinstall_cmds=$lt_old_postinstall_cmds
10512old_postuninstall_cmds=$lt_old_postuninstall_cmds
10513
10514# Create an old-style archive from a shared archive.
10515old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10516
10517# Create a temporary old-style archive to link instead of a shared archive.
10518old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10519
10520# Commands used to build and install a shared archive.
10521archive_cmds=$lt_archive_cmds
10522archive_expsym_cmds=$lt_archive_expsym_cmds
10523postinstall_cmds=$lt_postinstall_cmds
10524postuninstall_cmds=$lt_postuninstall_cmds
10525
10526# Commands used to build a loadable module (assumed same as above if empty)
10527module_cmds=$lt_module_cmds
10528module_expsym_cmds=$lt_module_expsym_cmds
10529
10530# Commands to strip libraries.
10531old_striplib=$lt_old_striplib
10532striplib=$lt_striplib
10533
10534# Dependencies to place before the objects being linked to create a
10535# shared library.
10536predep_objects=$lt_predep_objects
10537
10538# Dependencies to place after the objects being linked to create a
10539# shared library.
10540postdep_objects=$lt_postdep_objects
10541
10542# Dependencies to place before the objects being linked to create a
10543# shared library.
10544predeps=$lt_predeps
10545
10546# Dependencies to place after the objects being linked to create a
10547# shared library.
10548postdeps=$lt_postdeps
10549
10550# The library search path used internally by the compiler when linking
10551# a shared library.
10552compiler_lib_search_path=$lt_compiler_lib_search_path
10553
10554# Method to check whether dependent libraries are shared objects.
10555deplibs_check_method=$lt_deplibs_check_method
10556
10557# Command to use when deplibs_check_method == file_magic.
10558file_magic_cmd=$lt_file_magic_cmd
10559
10560# Flag that allows shared libraries with undefined symbols to be built.
10561allow_undefined_flag=$lt_allow_undefined_flag
10562
10563# Flag that forces no undefined symbols.
10564no_undefined_flag=$lt_no_undefined_flag
10565
10566# Commands used to finish a libtool library installation in a directory.
10567finish_cmds=$lt_finish_cmds
10568
10569# Same as above, but a single script fragment to be evaled but not shown.
10570finish_eval=$lt_finish_eval
10571
10572# Take the output of nm and produce a listing of raw symbols and C names.
10573global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10574
10575# Transform the output of nm in a proper C declaration
10576global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10577
10578# Transform the output of nm in a C name address pair
10579global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10580
10581# This is the shared library runtime path variable.
10582runpath_var=$runpath_var
10583
10584# This is the shared library path variable.
10585shlibpath_var=$shlibpath_var
10586
10587# Is shlibpath searched before the hard-coded library search path?
10588shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10589
10590# How to hardcode a shared library path into an executable.
10591hardcode_action=$hardcode_action
10592
10593# Whether we should hardcode library paths into libraries.
10594hardcode_into_libs=$hardcode_into_libs
10595
10596# Flag to hardcode \$libdir into a binary during linking.
10597# This must work even if \$libdir does not exist.
10598hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10599
10600# If ld is used when linking, flag to hardcode \$libdir into
10601# a binary during linking. This must work even if \$libdir does
10602# not exist.
10603hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10604
10605# Whether we need a single -rpath flag with a separated argument.
10606hardcode_libdir_separator=$lt_hardcode_libdir_separator
10607
10608# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10609# resulting binary.
10610hardcode_direct=$hardcode_direct
10611
10612# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10613# resulting binary.
10614hardcode_minus_L=$hardcode_minus_L
10615
10616# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10617# the resulting binary.
10618hardcode_shlibpath_var=$hardcode_shlibpath_var
10619
10620# Set to yes if building a shared library automatically hardcodes DIR into the library
10621# and all subsequent libraries and executables linked against it.
10622hardcode_automatic=$hardcode_automatic
10623
10624# Variables whose values should be saved in libtool wrapper scripts and
10625# restored at relink time.
10626variables_saved_for_relink="$variables_saved_for_relink"
10627
10628# Whether libtool must link a program against all its dependency libraries.
10629link_all_deplibs=$link_all_deplibs
10630
10631# Compile-time system search path for libraries
10632sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10633
10634# Run-time system search path for libraries
10635sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10636
10637# Fix the shell variable \$srcfile for the compiler.
10638fix_srcfile_path="$fix_srcfile_path"
10639
10640# Set to yes if exported symbols are required.
10641always_export_symbols=$always_export_symbols
10642
10643# The commands to list exported symbols.
10644export_symbols_cmds=$lt_export_symbols_cmds
10645
10646# The commands to extract the exported symbol list from a shared archive.
10647extract_expsyms_cmds=$lt_extract_expsyms_cmds
10648
10649# Symbols that should not be listed in the preloaded symbols.
10650exclude_expsyms=$lt_exclude_expsyms
10651
10652# Symbols that must always be exported.
10653include_expsyms=$lt_include_expsyms
10654
10655# ### END LIBTOOL CONFIG
10656
10657__EOF__
10658
10659
10660  case $host_os in
10661  aix3*)
10662    cat <<\EOF >> "$cfgfile"
10663
10664# AIX sometimes has problems with the GCC collect2 program.  For some
10665# reason, if we set the COLLECT_NAMES environment variable, the problems
10666# vanish in a puff of smoke.
10667if test "X${COLLECT_NAMES+set}" != Xset; then
10668  COLLECT_NAMES=
10669  export COLLECT_NAMES
10670fi
10671EOF
10672    ;;
10673  esac
10674
10675  # We use sed instead of cat because bash on DJGPP gets confused if
10676  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10677  # text mode, it properly converts lines to CR/LF.  This bash problem
10678  # is reportedly fixed, but why not run on old versions too?
10679  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10680
10681  mv -f "$cfgfile" "$ofile" || \
10682    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10683  chmod +x "$ofile"
10684
10685else
10686  # If there is no Makefile yet, we rely on a make rule to execute
10687  # `config.status --recheck' to rerun these tests and create the
10688  # libtool script then.
10689  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10690  if test -f "$ltmain_in"; then
10691    test -f Makefile && make "$ltmain"
10692  fi
10693fi
10694
10695
10696ac_ext=c
10697ac_cpp='$CPP $CPPFLAGS'
10698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10700ac_compiler_gnu=$ac_cv_c_compiler_gnu
10701
10702CC="$lt_save_CC"
10703
10704
10705# Check whether --with-tags was given.
10706if test "${with_tags+set}" = set; then
10707  withval=$with_tags; tagnames="$withval"
10708fi
10709
10710
10711if test -f "$ltmain" && test -n "$tagnames"; then
10712  if test ! -f "${ofile}"; then
10713    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10714echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10715  fi
10716
10717  if test -z "$LTCC"; then
10718    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10719    if test -z "$LTCC"; then
10720      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10721echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10722    else
10723      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10724echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10725    fi
10726  fi
10727  if test -z "$LTCFLAGS"; then
10728    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10729  fi
10730
10731  # Extract list of available tagged configurations in $ofile.
10732  # Note that this assumes the entire list is on one line.
10733  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10734
10735  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10736  for tagname in $tagnames; do
10737    IFS="$lt_save_ifs"
10738    # Check whether tagname contains only valid characters
10739    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10740    "") ;;
10741    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10742echo "$as_me: error: invalid tag name: $tagname" >&2;}
10743   { (exit 1); exit 1; }; }
10744	;;
10745    esac
10746
10747    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10748    then
10749      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10750echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10751   { (exit 1); exit 1; }; }
10752    fi
10753
10754    # Update the list of available tags.
10755    if test -n "$tagname"; then
10756      echo appending configuration tag \"$tagname\" to $ofile
10757
10758      case $tagname in
10759      CXX)
10760	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10761	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10762	    (test "X$CXX" != "Xg++"))) ; then
10763	  ac_ext=cpp
10764ac_cpp='$CXXCPP $CPPFLAGS'
10765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10768
10769
10770
10771
10772archive_cmds_need_lc_CXX=no
10773allow_undefined_flag_CXX=
10774always_export_symbols_CXX=no
10775archive_expsym_cmds_CXX=
10776export_dynamic_flag_spec_CXX=
10777hardcode_direct_CXX=no
10778hardcode_libdir_flag_spec_CXX=
10779hardcode_libdir_flag_spec_ld_CXX=
10780hardcode_libdir_separator_CXX=
10781hardcode_minus_L_CXX=no
10782hardcode_shlibpath_var_CXX=unsupported
10783hardcode_automatic_CXX=no
10784module_cmds_CXX=
10785module_expsym_cmds_CXX=
10786link_all_deplibs_CXX=unknown
10787old_archive_cmds_CXX=$old_archive_cmds
10788no_undefined_flag_CXX=
10789whole_archive_flag_spec_CXX=
10790enable_shared_with_static_runtimes_CXX=no
10791
10792# Dependencies to place before and after the object being linked:
10793predep_objects_CXX=
10794postdep_objects_CXX=
10795predeps_CXX=
10796postdeps_CXX=
10797compiler_lib_search_path_CXX=
10798
10799# Source file extension for C++ test sources.
10800ac_ext=cpp
10801
10802# Object file extension for compiled C++ test sources.
10803objext=o
10804objext_CXX=$objext
10805
10806# Code to be used in simple compile tests
10807lt_simple_compile_test_code="int some_variable = 0;\n"
10808
10809# Code to be used in simple link tests
10810lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10811
10812# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10813
10814# If no C compiler was specified, use CC.
10815LTCC=${LTCC-"$CC"}
10816
10817# If no C compiler flags were specified, use CFLAGS.
10818LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10819
10820# Allow CC to be a program name with arguments.
10821compiler=$CC
10822
10823
10824# save warnings/boilerplate of simple test code
10825ac_outfile=conftest.$ac_objext
10826printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10827eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10828_lt_compiler_boilerplate=`cat conftest.err`
10829$rm conftest*
10830
10831ac_outfile=conftest.$ac_objext
10832printf "$lt_simple_link_test_code" >conftest.$ac_ext
10833eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10834_lt_linker_boilerplate=`cat conftest.err`
10835$rm conftest*
10836
10837
10838# Allow CC to be a program name with arguments.
10839lt_save_CC=$CC
10840lt_save_LD=$LD
10841lt_save_GCC=$GCC
10842GCC=$GXX
10843lt_save_with_gnu_ld=$with_gnu_ld
10844lt_save_path_LD=$lt_cv_path_LD
10845if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10846  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10847else
10848  $as_unset lt_cv_prog_gnu_ld
10849fi
10850if test -n "${lt_cv_path_LDCXX+set}"; then
10851  lt_cv_path_LD=$lt_cv_path_LDCXX
10852else
10853  $as_unset lt_cv_path_LD
10854fi
10855test -z "${LDCXX+set}" || LD=$LDCXX
10856CC=${CXX-"c++"}
10857compiler=$CC
10858compiler_CXX=$CC
10859for cc_temp in $compiler""; do
10860  case $cc_temp in
10861    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10862    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10863    \-*) ;;
10864    *) break;;
10865  esac
10866done
10867cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10868
10869
10870# We don't want -fno-exception wen compiling C++ code, so set the
10871# no_builtin_flag separately
10872if test "$GXX" = yes; then
10873  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10874else
10875  lt_prog_compiler_no_builtin_flag_CXX=
10876fi
10877
10878if test "$GXX" = yes; then
10879  # Set up default GNU C++ configuration
10880
10881
10882# Check whether --with-gnu-ld was given.
10883if test "${with_gnu_ld+set}" = set; then
10884  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10885else
10886  with_gnu_ld=no
10887fi
10888
10889ac_prog=ld
10890if test "$GCC" = yes; then
10891  # Check if gcc -print-prog-name=ld gives a path.
10892  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10893echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10894  case $host in
10895  *-*-mingw*)
10896    # gcc leaves a trailing carriage return which upsets mingw
10897    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10898  *)
10899    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10900  esac
10901  case $ac_prog in
10902    # Accept absolute paths.
10903    [\\/]* | ?:[\\/]*)
10904      re_direlt='/[^/][^/]*/\.\./'
10905      # Canonicalize the pathname of ld
10906      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10907      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10908	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10909      done
10910      test -z "$LD" && LD="$ac_prog"
10911      ;;
10912  "")
10913    # If it fails, then pretend we aren't using GCC.
10914    ac_prog=ld
10915    ;;
10916  *)
10917    # If it is relative, then search for the first ld in PATH.
10918    with_gnu_ld=unknown
10919    ;;
10920  esac
10921elif test "$with_gnu_ld" = yes; then
10922  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10923echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10924else
10925  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10926echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10927fi
10928if test "${lt_cv_path_LD+set}" = set; then
10929  echo $ECHO_N "(cached) $ECHO_C" >&6
10930else
10931  if test -z "$LD"; then
10932  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10933  for ac_dir in $PATH; do
10934    IFS="$lt_save_ifs"
10935    test -z "$ac_dir" && ac_dir=.
10936    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10937      lt_cv_path_LD="$ac_dir/$ac_prog"
10938      # Check to see if the program is GNU ld.  I'd rather use --version,
10939      # but apparently some variants of GNU ld only accept -v.
10940      # Break only if it was the GNU/non-GNU ld that we prefer.
10941      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10942      *GNU* | *'with BFD'*)
10943	test "$with_gnu_ld" != no && break
10944	;;
10945      *)
10946	test "$with_gnu_ld" != yes && break
10947	;;
10948      esac
10949    fi
10950  done
10951  IFS="$lt_save_ifs"
10952else
10953  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10954fi
10955fi
10956
10957LD="$lt_cv_path_LD"
10958if test -n "$LD"; then
10959  { echo "$as_me:$LINENO: result: $LD" >&5
10960echo "${ECHO_T}$LD" >&6; }
10961else
10962  { echo "$as_me:$LINENO: result: no" >&5
10963echo "${ECHO_T}no" >&6; }
10964fi
10965test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10966echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10967   { (exit 1); exit 1; }; }
10968{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10969echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10970if test "${lt_cv_prog_gnu_ld+set}" = set; then
10971  echo $ECHO_N "(cached) $ECHO_C" >&6
10972else
10973  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10974case `$LD -v 2>&1 </dev/null` in
10975*GNU* | *'with BFD'*)
10976  lt_cv_prog_gnu_ld=yes
10977  ;;
10978*)
10979  lt_cv_prog_gnu_ld=no
10980  ;;
10981esac
10982fi
10983{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10984echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10985with_gnu_ld=$lt_cv_prog_gnu_ld
10986
10987
10988
10989  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10990  # archiving commands below assume that GNU ld is being used.
10991  if test "$with_gnu_ld" = yes; then
10992    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10993    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'
10994
10995    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10996    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10997
10998    # If archive_cmds runs LD, not CC, wlarc should be empty
10999    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11000    #     investigate it a little bit more. (MM)
11001    wlarc='${wl}'
11002
11003    # ancient GNU ld didn't support --whole-archive et. al.
11004    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11005	grep 'no-whole-archive' > /dev/null; then
11006      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11007    else
11008      whole_archive_flag_spec_CXX=
11009    fi
11010  else
11011    with_gnu_ld=no
11012    wlarc=
11013
11014    # A generic and very simple default shared library creation
11015    # command for GNU C++ for the case where it uses the native
11016    # linker, instead of GNU ld.  If possible, this setting should
11017    # overridden to take advantage of the native linker features on
11018    # the platform it is being used on.
11019    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11020  fi
11021
11022  # Commands to make compiler produce verbose output that lists
11023  # what "hidden" libraries, object files and flags are used when
11024  # linking a shared library.
11025  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11026
11027else
11028  GXX=no
11029  with_gnu_ld=no
11030  wlarc=
11031fi
11032
11033# PORTME: fill in a description of your system's C++ link characteristics
11034{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11035echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11036ld_shlibs_CXX=yes
11037case $host_os in
11038  aix3*)
11039    # FIXME: insert proper C++ library support
11040    ld_shlibs_CXX=no
11041    ;;
11042  aix4* | aix5*)
11043    if test "$host_cpu" = ia64; then
11044      # On IA64, the linker does run time linking by default, so we don't
11045      # have to do anything special.
11046      aix_use_runtimelinking=no
11047      exp_sym_flag='-Bexport'
11048      no_entry_flag=""
11049    else
11050      aix_use_runtimelinking=no
11051
11052      # Test if we are trying to use run time linking or normal
11053      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11054      # need to do runtime linking.
11055      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11056	for ld_flag in $LDFLAGS; do
11057	  case $ld_flag in
11058	  *-brtl*)
11059	    aix_use_runtimelinking=yes
11060	    break
11061	    ;;
11062	  esac
11063	done
11064	;;
11065      esac
11066
11067      exp_sym_flag='-bexport'
11068      no_entry_flag='-bnoentry'
11069    fi
11070
11071    # When large executables or shared objects are built, AIX ld can
11072    # have problems creating the table of contents.  If linking a library
11073    # or program results in "error TOC overflow" add -mminimal-toc to
11074    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11075    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11076
11077    archive_cmds_CXX=''
11078    hardcode_direct_CXX=yes
11079    hardcode_libdir_separator_CXX=':'
11080    link_all_deplibs_CXX=yes
11081
11082    if test "$GXX" = yes; then
11083      case $host_os in aix4.[012]|aix4.[012].*)
11084      # We only want to do this on AIX 4.2 and lower, the check
11085      # below for broken collect2 doesn't work under 4.3+
11086	collect2name=`${CC} -print-prog-name=collect2`
11087	if test -f "$collect2name" && \
11088	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11089	then
11090	  # We have reworked collect2
11091	  hardcode_direct_CXX=yes
11092	else
11093	  # We have old collect2
11094	  hardcode_direct_CXX=unsupported
11095	  # It fails to find uninstalled libraries when the uninstalled
11096	  # path is not listed in the libpath.  Setting hardcode_minus_L
11097	  # to unsupported forces relinking
11098	  hardcode_minus_L_CXX=yes
11099	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11100	  hardcode_libdir_separator_CXX=
11101	fi
11102	;;
11103      esac
11104      shared_flag='-shared'
11105      if test "$aix_use_runtimelinking" = yes; then
11106	shared_flag="$shared_flag "'${wl}-G'
11107      fi
11108    else
11109      # not using gcc
11110      if test "$host_cpu" = ia64; then
11111	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11112	# chokes on -Wl,-G. The following line is correct:
11113	shared_flag='-G'
11114      else
11115	if test "$aix_use_runtimelinking" = yes; then
11116	  shared_flag='${wl}-G'
11117	else
11118	  shared_flag='${wl}-bM:SRE'
11119	fi
11120      fi
11121    fi
11122
11123    # It seems that -bexpall does not export symbols beginning with
11124    # underscore (_), so it is better to generate a list of symbols to export.
11125    always_export_symbols_CXX=yes
11126    if test "$aix_use_runtimelinking" = yes; then
11127      # Warning - without using the other runtime loading flags (-brtl),
11128      # -berok will link without error, but may produce a broken library.
11129      allow_undefined_flag_CXX='-berok'
11130      # Determine the default libpath from the value encoded in an empty executable.
11131      cat >conftest.$ac_ext <<_ACEOF
11132/* confdefs.h.  */
11133_ACEOF
11134cat confdefs.h >>conftest.$ac_ext
11135cat >>conftest.$ac_ext <<_ACEOF
11136/* end confdefs.h.  */
11137
11138int
11139main ()
11140{
11141
11142  ;
11143  return 0;
11144}
11145_ACEOF
11146rm -f conftest.$ac_objext conftest$ac_exeext
11147if { (ac_try="$ac_link"
11148case "(($ac_try" in
11149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150  *) ac_try_echo=$ac_try;;
11151esac
11152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153  (eval "$ac_link") 2>conftest.er1
11154  ac_status=$?
11155  grep -v '^ *+' conftest.er1 >conftest.err
11156  rm -f conftest.er1
11157  cat conftest.err >&5
11158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159  (exit $ac_status); } && {
11160	 test -z "$ac_cxx_werror_flag" ||
11161	 test ! -s conftest.err
11162       } && test -s conftest$ac_exeext &&
11163       $as_test_x conftest$ac_exeext; then
11164
11165aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11166}'`
11167# Check for a 64-bit object if we didn't find anything.
11168if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11169}'`; fi
11170else
11171  echo "$as_me: failed program was:" >&5
11172sed 's/^/| /' conftest.$ac_ext >&5
11173
11174
11175fi
11176
11177rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11178      conftest$ac_exeext conftest.$ac_ext
11179if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11180
11181      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11182
11183      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"
11184     else
11185      if test "$host_cpu" = ia64; then
11186	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11187	allow_undefined_flag_CXX="-z nodefs"
11188	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"
11189      else
11190	# Determine the default libpath from the value encoded in an empty executable.
11191	cat >conftest.$ac_ext <<_ACEOF
11192/* confdefs.h.  */
11193_ACEOF
11194cat confdefs.h >>conftest.$ac_ext
11195cat >>conftest.$ac_ext <<_ACEOF
11196/* end confdefs.h.  */
11197
11198int
11199main ()
11200{
11201
11202  ;
11203  return 0;
11204}
11205_ACEOF
11206rm -f conftest.$ac_objext conftest$ac_exeext
11207if { (ac_try="$ac_link"
11208case "(($ac_try" in
11209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11210  *) ac_try_echo=$ac_try;;
11211esac
11212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11213  (eval "$ac_link") 2>conftest.er1
11214  ac_status=$?
11215  grep -v '^ *+' conftest.er1 >conftest.err
11216  rm -f conftest.er1
11217  cat conftest.err >&5
11218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219  (exit $ac_status); } && {
11220	 test -z "$ac_cxx_werror_flag" ||
11221	 test ! -s conftest.err
11222       } && test -s conftest$ac_exeext &&
11223       $as_test_x conftest$ac_exeext; then
11224
11225aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11226}'`
11227# Check for a 64-bit object if we didn't find anything.
11228if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11229}'`; fi
11230else
11231  echo "$as_me: failed program was:" >&5
11232sed 's/^/| /' conftest.$ac_ext >&5
11233
11234
11235fi
11236
11237rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11238      conftest$ac_exeext conftest.$ac_ext
11239if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11240
11241	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11242	# Warning - without using the other run time loading flags,
11243	# -berok will link without error, but may produce a broken library.
11244	no_undefined_flag_CXX=' ${wl}-bernotok'
11245	allow_undefined_flag_CXX=' ${wl}-berok'
11246	# Exported symbols can be pulled into shared objects from archives
11247	whole_archive_flag_spec_CXX='$convenience'
11248	archive_cmds_need_lc_CXX=yes
11249	# This is similar to how AIX traditionally builds its shared libraries.
11250	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'
11251      fi
11252    fi
11253    ;;
11254
11255  beos*)
11256    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11257      allow_undefined_flag_CXX=unsupported
11258      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11259      # support --undefined.  This deserves some investigation.  FIXME
11260      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11261    else
11262      ld_shlibs_CXX=no
11263    fi
11264    ;;
11265
11266  chorus*)
11267    case $cc_basename in
11268      *)
11269	# FIXME: insert proper C++ library support
11270	ld_shlibs_CXX=no
11271	;;
11272    esac
11273    ;;
11274
11275  cygwin* | mingw* | pw32*)
11276    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11277    # as there is no search path for DLLs.
11278    hardcode_libdir_flag_spec_CXX='-L$libdir'
11279    allow_undefined_flag_CXX=unsupported
11280    always_export_symbols_CXX=no
11281    enable_shared_with_static_runtimes_CXX=yes
11282
11283    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11284      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'
11285      # If the export-symbols file already is a .def file (1st line
11286      # is EXPORTS), use it as is; otherwise, prepend...
11287      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11288	cp $export_symbols $output_objdir/$soname.def;
11289      else
11290	echo EXPORTS > $output_objdir/$soname.def;
11291	cat $export_symbols >> $output_objdir/$soname.def;
11292      fi~
11293      $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'
11294    else
11295      ld_shlibs_CXX=no
11296    fi
11297  ;;
11298      darwin* | rhapsody*)
11299        case $host_os in
11300        rhapsody* | darwin1.[012])
11301         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11302         ;;
11303       *) # Darwin 1.3 on
11304         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11305           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11306         else
11307           case ${MACOSX_DEPLOYMENT_TARGET} in
11308             10.[012])
11309               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11310               ;;
11311             10.*)
11312               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11313               ;;
11314           esac
11315         fi
11316         ;;
11317        esac
11318      archive_cmds_need_lc_CXX=no
11319      hardcode_direct_CXX=no
11320      hardcode_automatic_CXX=yes
11321      hardcode_shlibpath_var_CXX=unsupported
11322      whole_archive_flag_spec_CXX=''
11323      link_all_deplibs_CXX=yes
11324
11325    if test "$GXX" = yes ; then
11326      lt_int_apple_cc_single_mod=no
11327      output_verbose_link_cmd='echo'
11328      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11329       lt_int_apple_cc_single_mod=yes
11330      fi
11331      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11332       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11333      else
11334          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'
11335        fi
11336        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11337        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11338          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11339            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11340          else
11341            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11342          fi
11343            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}'
11344      else
11345      case $cc_basename in
11346        xlc*)
11347         output_verbose_link_cmd='echo'
11348          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11349          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11350          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11351          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11352          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}'
11353          ;;
11354       *)
11355         ld_shlibs_CXX=no
11356          ;;
11357      esac
11358      fi
11359        ;;
11360
11361  dgux*)
11362    case $cc_basename in
11363      ec++*)
11364	# FIXME: insert proper C++ library support
11365	ld_shlibs_CXX=no
11366	;;
11367      ghcx*)
11368	# Green Hills C++ Compiler
11369	# FIXME: insert proper C++ library support
11370	ld_shlibs_CXX=no
11371	;;
11372      *)
11373	# FIXME: insert proper C++ library support
11374	ld_shlibs_CXX=no
11375	;;
11376    esac
11377    ;;
11378  freebsd[12]*)
11379    # C++ shared libraries reported to be fairly broken before switch to ELF
11380    ld_shlibs_CXX=no
11381    ;;
11382  freebsd-elf*)
11383    archive_cmds_need_lc_CXX=no
11384    ;;
11385  freebsd* | dragonfly*)
11386    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11387    # conventions
11388    ld_shlibs_CXX=yes
11389    ;;
11390  gnu*)
11391    ;;
11392  hpux9*)
11393    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11394    hardcode_libdir_separator_CXX=:
11395    export_dynamic_flag_spec_CXX='${wl}-E'
11396    hardcode_direct_CXX=yes
11397    hardcode_minus_L_CXX=yes # Not in the search PATH,
11398				# but as the default
11399				# location of the library.
11400
11401    case $cc_basename in
11402    CC*)
11403      # FIXME: insert proper C++ library support
11404      ld_shlibs_CXX=no
11405      ;;
11406    aCC*)
11407      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'
11408      # Commands to make compiler produce verbose output that lists
11409      # what "hidden" libraries, object files and flags are used when
11410      # linking a shared library.
11411      #
11412      # There doesn't appear to be a way to prevent this compiler from
11413      # explicitly linking system object files so we need to strip them
11414      # from the output so that they don't get included in the library
11415      # dependencies.
11416      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'
11417      ;;
11418    *)
11419      if test "$GXX" = yes; then
11420        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'
11421      else
11422        # FIXME: insert proper C++ library support
11423        ld_shlibs_CXX=no
11424      fi
11425      ;;
11426    esac
11427    ;;
11428  hpux10*|hpux11*)
11429    if test $with_gnu_ld = no; then
11430      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11431      hardcode_libdir_separator_CXX=:
11432
11433      case $host_cpu in
11434      hppa*64*|ia64*)
11435	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11436        ;;
11437      *)
11438	export_dynamic_flag_spec_CXX='${wl}-E'
11439        ;;
11440      esac
11441    fi
11442    case $host_cpu in
11443    hppa*64*|ia64*)
11444      hardcode_direct_CXX=no
11445      hardcode_shlibpath_var_CXX=no
11446      ;;
11447    *)
11448      hardcode_direct_CXX=yes
11449      hardcode_minus_L_CXX=yes # Not in the search PATH,
11450					      # but as the default
11451					      # location of the library.
11452      ;;
11453    esac
11454
11455    case $cc_basename in
11456      CC*)
11457	# FIXME: insert proper C++ library support
11458	ld_shlibs_CXX=no
11459	;;
11460      aCC*)
11461	case $host_cpu in
11462	hppa*64*)
11463	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11464	  ;;
11465	ia64*)
11466	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11467	  ;;
11468	*)
11469	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11470	  ;;
11471	esac
11472	# Commands to make compiler produce verbose output that lists
11473	# what "hidden" libraries, object files and flags are used when
11474	# linking a shared library.
11475	#
11476	# There doesn't appear to be a way to prevent this compiler from
11477	# explicitly linking system object files so we need to strip them
11478	# from the output so that they don't get included in the library
11479	# dependencies.
11480	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'
11481	;;
11482      *)
11483	if test "$GXX" = yes; then
11484	  if test $with_gnu_ld = no; then
11485	    case $host_cpu in
11486	    hppa*64*)
11487	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11488	      ;;
11489	    ia64*)
11490	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11491	      ;;
11492	    *)
11493	      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'
11494	      ;;
11495	    esac
11496	  fi
11497	else
11498	  # FIXME: insert proper C++ library support
11499	  ld_shlibs_CXX=no
11500	fi
11501	;;
11502    esac
11503    ;;
11504  interix3*)
11505    hardcode_direct_CXX=no
11506    hardcode_shlibpath_var_CXX=no
11507    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11508    export_dynamic_flag_spec_CXX='${wl}-E'
11509    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11510    # Instead, shared libraries are loaded at an image base (0x10000000 by
11511    # default) and relocated if they conflict, which is a slow very memory
11512    # consuming and fragmenting process.  To avoid this, we pick a random,
11513    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11514    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11515    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'
11516    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'
11517    ;;
11518  irix5* | irix6*)
11519    case $cc_basename in
11520      CC*)
11521	# SGI C++
11522	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'
11523
11524	# Archives containing C++ object files must be created using
11525	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11526	# necessary to make sure instantiated templates are included
11527	# in the archive.
11528	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11529	;;
11530      *)
11531	if test "$GXX" = yes; then
11532	  if test "$with_gnu_ld" = no; then
11533	    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'
11534	  else
11535	    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'
11536	  fi
11537	fi
11538	link_all_deplibs_CXX=yes
11539	;;
11540    esac
11541    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11542    hardcode_libdir_separator_CXX=:
11543    ;;
11544  linux* | k*bsd*-gnu)
11545    case $cc_basename in
11546      KCC*)
11547	# Kuck and Associates, Inc. (KAI) C++ Compiler
11548
11549	# KCC will only create a shared library if the output file
11550	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11551	# to its proper name (with version) after linking.
11552	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'
11553	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'
11554	# Commands to make compiler produce verbose output that lists
11555	# what "hidden" libraries, object files and flags are used when
11556	# linking a shared library.
11557	#
11558	# There doesn't appear to be a way to prevent this compiler from
11559	# explicitly linking system object files so we need to strip them
11560	# from the output so that they don't get included in the library
11561	# dependencies.
11562	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'
11563
11564	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11565	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11566
11567	# Archives containing C++ object files must be created using
11568	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11569	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11570	;;
11571      icpc*)
11572	# Intel C++
11573	with_gnu_ld=yes
11574	# version 8.0 and above of icpc choke on multiply defined symbols
11575	# if we add $predep_objects and $postdep_objects, however 7.1 and
11576	# earlier do not add the objects themselves.
11577	case `$CC -V 2>&1` in
11578	*"Version 7."*)
11579  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11580  	  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'
11581	  ;;
11582	*)  # Version 8.0 or newer
11583	  tmp_idyn=
11584	  case $host_cpu in
11585	    ia64*) tmp_idyn=' -i_dynamic';;
11586	  esac
11587  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11588	  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'
11589	  ;;
11590	esac
11591	archive_cmds_need_lc_CXX=no
11592	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11593	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11594	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11595	;;
11596      pgCC*)
11597        # Portland Group C++ compiler
11598	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11599  	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'
11600
11601	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11602	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11603	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'
11604        ;;
11605      cxx*)
11606	# Compaq C++
11607	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11608	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'
11609
11610	runpath_var=LD_RUN_PATH
11611	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11612	hardcode_libdir_separator_CXX=:
11613
11614	# Commands to make compiler produce verbose output that lists
11615	# what "hidden" libraries, object files and flags are used when
11616	# linking a shared library.
11617	#
11618	# There doesn't appear to be a way to prevent this compiler from
11619	# explicitly linking system object files so we need to strip them
11620	# from the output so that they don't get included in the library
11621	# dependencies.
11622	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'
11623	;;
11624    esac
11625    ;;
11626  lynxos*)
11627    # FIXME: insert proper C++ library support
11628    ld_shlibs_CXX=no
11629    ;;
11630  m88k*)
11631    # FIXME: insert proper C++ library support
11632    ld_shlibs_CXX=no
11633    ;;
11634  mvs*)
11635    case $cc_basename in
11636      cxx*)
11637	# FIXME: insert proper C++ library support
11638	ld_shlibs_CXX=no
11639	;;
11640      *)
11641	# FIXME: insert proper C++ library support
11642	ld_shlibs_CXX=no
11643	;;
11644    esac
11645    ;;
11646  netbsd* | netbsdelf*-gnu)
11647    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11648      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11649      wlarc=
11650      hardcode_libdir_flag_spec_CXX='-R$libdir'
11651      hardcode_direct_CXX=yes
11652      hardcode_shlibpath_var_CXX=no
11653    fi
11654    # Workaround some broken pre-1.5 toolchains
11655    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11656    ;;
11657  openbsd2*)
11658    # C++ shared libraries are fairly broken
11659    ld_shlibs_CXX=no
11660    ;;
11661  openbsd*)
11662    hardcode_direct_CXX=yes
11663    hardcode_shlibpath_var_CXX=no
11664    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11665    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11666    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11667      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11668      export_dynamic_flag_spec_CXX='${wl}-E'
11669      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11670    fi
11671    output_verbose_link_cmd='echo'
11672    ;;
11673  osf3*)
11674    case $cc_basename in
11675      KCC*)
11676	# Kuck and Associates, Inc. (KAI) C++ Compiler
11677
11678	# KCC will only create a shared library if the output file
11679	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11680	# to its proper name (with version) after linking.
11681	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'
11682
11683	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11684	hardcode_libdir_separator_CXX=:
11685
11686	# Archives containing C++ object files must be created using
11687	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11688	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11689
11690	;;
11691      RCC*)
11692	# Rational C++ 2.4.1
11693	# FIXME: insert proper C++ library support
11694	ld_shlibs_CXX=no
11695	;;
11696      cxx*)
11697	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11698	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'
11699
11700	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11701	hardcode_libdir_separator_CXX=:
11702
11703	# Commands to make compiler produce verbose output that lists
11704	# what "hidden" libraries, object files and flags are used when
11705	# linking a shared library.
11706	#
11707	# There doesn't appear to be a way to prevent this compiler from
11708	# explicitly linking system object files so we need to strip them
11709	# from the output so that they don't get included in the library
11710	# dependencies.
11711	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'
11712	;;
11713      *)
11714	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11715	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11716	  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'
11717
11718	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11719	  hardcode_libdir_separator_CXX=:
11720
11721	  # Commands to make compiler produce verbose output that lists
11722	  # what "hidden" libraries, object files and flags are used when
11723	  # linking a shared library.
11724	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11725
11726	else
11727	  # FIXME: insert proper C++ library support
11728	  ld_shlibs_CXX=no
11729	fi
11730	;;
11731    esac
11732    ;;
11733  osf4* | osf5*)
11734    case $cc_basename in
11735      KCC*)
11736	# Kuck and Associates, Inc. (KAI) C++ Compiler
11737
11738	# KCC will only create a shared library if the output file
11739	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11740	# to its proper name (with version) after linking.
11741	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'
11742
11743	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11744	hardcode_libdir_separator_CXX=:
11745
11746	# Archives containing C++ object files must be created using
11747	# the KAI C++ compiler.
11748	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11749	;;
11750      RCC*)
11751	# Rational C++ 2.4.1
11752	# FIXME: insert proper C++ library support
11753	ld_shlibs_CXX=no
11754	;;
11755      cxx*)
11756	allow_undefined_flag_CXX=' -expect_unresolved \*'
11757	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'
11758	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11759	  echo "-hidden">> $lib.exp~
11760	  $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~
11761	  $rm $lib.exp'
11762
11763	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11764	hardcode_libdir_separator_CXX=:
11765
11766	# Commands to make compiler produce verbose output that lists
11767	# what "hidden" libraries, object files and flags are used when
11768	# linking a shared library.
11769	#
11770	# There doesn't appear to be a way to prevent this compiler from
11771	# explicitly linking system object files so we need to strip them
11772	# from the output so that they don't get included in the library
11773	# dependencies.
11774	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'
11775	;;
11776      *)
11777	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11778	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11779	 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'
11780
11781	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11782	  hardcode_libdir_separator_CXX=:
11783
11784	  # Commands to make compiler produce verbose output that lists
11785	  # what "hidden" libraries, object files and flags are used when
11786	  # linking a shared library.
11787	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11788
11789	else
11790	  # FIXME: insert proper C++ library support
11791	  ld_shlibs_CXX=no
11792	fi
11793	;;
11794    esac
11795    ;;
11796  psos*)
11797    # FIXME: insert proper C++ library support
11798    ld_shlibs_CXX=no
11799    ;;
11800  sunos4*)
11801    case $cc_basename in
11802      CC*)
11803	# Sun C++ 4.x
11804	# FIXME: insert proper C++ library support
11805	ld_shlibs_CXX=no
11806	;;
11807      lcc*)
11808	# Lucid
11809	# FIXME: insert proper C++ library support
11810	ld_shlibs_CXX=no
11811	;;
11812      *)
11813	# FIXME: insert proper C++ library support
11814	ld_shlibs_CXX=no
11815	;;
11816    esac
11817    ;;
11818  solaris*)
11819    case $cc_basename in
11820      CC*)
11821	# Sun C++ 4.2, 5.x and Centerline C++
11822        archive_cmds_need_lc_CXX=yes
11823	no_undefined_flag_CXX=' -zdefs'
11824	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11825	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11826	$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'
11827
11828	hardcode_libdir_flag_spec_CXX='-R$libdir'
11829	hardcode_shlibpath_var_CXX=no
11830	case $host_os in
11831	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11832	  *)
11833	    # The C++ compiler is used as linker so we must use $wl
11834	    # flag to pass the commands to the underlying system
11835	    # linker. We must also pass each convience library through
11836	    # to the system linker between allextract/defaultextract.
11837	    # The C++ compiler will combine linker options so we
11838	    # cannot just pass the convience library names through
11839	    # without $wl.
11840	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11841	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11842	    ;;
11843	esac
11844	link_all_deplibs_CXX=yes
11845
11846	output_verbose_link_cmd='echo'
11847
11848	# Archives containing C++ object files must be created using
11849	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11850	# necessary to make sure instantiated templates are included
11851	# in the archive.
11852	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11853	;;
11854      gcx*)
11855	# Green Hills C++ Compiler
11856	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11857
11858	# The C++ compiler must be used to create the archive.
11859	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11860	;;
11861      *)
11862	# GNU C++ compiler with Solaris linker
11863	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11864	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11865	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11866	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11867	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11868		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11869
11870	    # Commands to make compiler produce verbose output that lists
11871	    # what "hidden" libraries, object files and flags are used when
11872	    # linking a shared library.
11873	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11874	  else
11875	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11876	    # platform.
11877	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11878	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11879		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11880
11881	    # Commands to make compiler produce verbose output that lists
11882	    # what "hidden" libraries, object files and flags are used when
11883	    # linking a shared library.
11884	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11885	  fi
11886
11887	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11888	fi
11889	;;
11890    esac
11891    ;;
11892  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11893    no_undefined_flag_CXX='${wl}-z,text'
11894    archive_cmds_need_lc_CXX=no
11895    hardcode_shlibpath_var_CXX=no
11896    runpath_var='LD_RUN_PATH'
11897
11898    case $cc_basename in
11899      CC*)
11900	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11901	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11902	;;
11903      *)
11904	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11905	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11906	;;
11907    esac
11908    ;;
11909  sysv5* | sco3.2v5* | sco5v6*)
11910    # Note: We can NOT use -z defs as we might desire, because we do not
11911    # link with -lc, and that would cause any symbols used from libc to
11912    # always be unresolved, which means just about no library would
11913    # ever link correctly.  If we're not using GNU ld we use -z text
11914    # though, which does catch some bad symbols but isn't as heavy-handed
11915    # as -z defs.
11916    # For security reasons, it is highly recommended that you always
11917    # use absolute paths for naming shared libraries, and exclude the
11918    # DT_RUNPATH tag from executables and libraries.  But doing so
11919    # requires that you compile everything twice, which is a pain.
11920    # So that behaviour is only enabled if SCOABSPATH is set to a
11921    # non-empty value in the environment.  Most likely only useful for
11922    # creating official distributions of packages.
11923    # This is a hack until libtool officially supports absolute path
11924    # names for shared libraries.
11925    no_undefined_flag_CXX='${wl}-z,text'
11926    allow_undefined_flag_CXX='${wl}-z,nodefs'
11927    archive_cmds_need_lc_CXX=no
11928    hardcode_shlibpath_var_CXX=no
11929    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11930    hardcode_libdir_separator_CXX=':'
11931    link_all_deplibs_CXX=yes
11932    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11933    runpath_var='LD_RUN_PATH'
11934
11935    case $cc_basename in
11936      CC*)
11937	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11938	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11939	;;
11940      *)
11941	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11942	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11943	;;
11944    esac
11945    ;;
11946  tandem*)
11947    case $cc_basename in
11948      NCC*)
11949	# NonStop-UX NCC 3.20
11950	# FIXME: insert proper C++ library support
11951	ld_shlibs_CXX=no
11952	;;
11953      *)
11954	# FIXME: insert proper C++ library support
11955	ld_shlibs_CXX=no
11956	;;
11957    esac
11958    ;;
11959  vxworks*)
11960    # FIXME: insert proper C++ library support
11961    ld_shlibs_CXX=no
11962    ;;
11963  *)
11964    # FIXME: insert proper C++ library support
11965    ld_shlibs_CXX=no
11966    ;;
11967esac
11968{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11969echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11970test "$ld_shlibs_CXX" = no && can_build_shared=no
11971
11972GCC_CXX="$GXX"
11973LD_CXX="$LD"
11974
11975
11976cat > conftest.$ac_ext <<EOF
11977class Foo
11978{
11979public:
11980  Foo (void) { a = 0; }
11981private:
11982  int a;
11983};
11984EOF
11985
11986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11987  (eval $ac_compile) 2>&5
11988  ac_status=$?
11989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990  (exit $ac_status); }; then
11991  # Parse the compiler output and extract the necessary
11992  # objects, libraries and library flags.
11993
11994  # Sentinel used to keep track of whether or not we are before
11995  # the conftest object file.
11996  pre_test_object_deps_done=no
11997
11998  # The `*' in the case matches for architectures that use `case' in
11999  # $output_verbose_cmd can trigger glob expansion during the loop
12000  # eval without this substitution.
12001  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12002
12003  for p in `eval $output_verbose_link_cmd`; do
12004    case $p in
12005
12006    -L* | -R* | -l*)
12007       # Some compilers place space between "-{L,R}" and the path.
12008       # Remove the space.
12009       if test $p = "-L" \
12010	  || test $p = "-R"; then
12011	 prev=$p
12012	 continue
12013       else
12014	 prev=
12015       fi
12016
12017       if test "$pre_test_object_deps_done" = no; then
12018	 case $p in
12019	 -L* | -R*)
12020	   # Internal compiler library paths should come after those
12021	   # provided the user.  The postdeps already come after the
12022	   # user supplied libs so there is no need to process them.
12023	   if test -z "$compiler_lib_search_path_CXX"; then
12024	     compiler_lib_search_path_CXX="${prev}${p}"
12025	   else
12026	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12027	   fi
12028	   ;;
12029	 # The "-l" case would never come before the object being
12030	 # linked, so don't bother handling this case.
12031	 esac
12032       else
12033	 if test -z "$postdeps_CXX"; then
12034	   postdeps_CXX="${prev}${p}"
12035	 else
12036	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12037	 fi
12038       fi
12039       ;;
12040
12041    *.$objext)
12042       # This assumes that the test object file only shows up
12043       # once in the compiler output.
12044       if test "$p" = "conftest.$objext"; then
12045	 pre_test_object_deps_done=yes
12046	 continue
12047       fi
12048
12049       if test "$pre_test_object_deps_done" = no; then
12050	 if test -z "$predep_objects_CXX"; then
12051	   predep_objects_CXX="$p"
12052	 else
12053	   predep_objects_CXX="$predep_objects_CXX $p"
12054	 fi
12055       else
12056	 if test -z "$postdep_objects_CXX"; then
12057	   postdep_objects_CXX="$p"
12058	 else
12059	   postdep_objects_CXX="$postdep_objects_CXX $p"
12060	 fi
12061       fi
12062       ;;
12063
12064    *) ;; # Ignore the rest.
12065
12066    esac
12067  done
12068
12069  # Clean up.
12070  rm -f a.out a.exe
12071else
12072  echo "libtool.m4: error: problem compiling CXX test program"
12073fi
12074
12075$rm -f confest.$objext
12076
12077# PORTME: override above test on systems where it is broken
12078case $host_os in
12079interix3*)
12080  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12081  # hack all around it, let's just trust "g++" to DTRT.
12082  predep_objects_CXX=
12083  postdep_objects_CXX=
12084  postdeps_CXX=
12085  ;;
12086
12087solaris*)
12088  case $cc_basename in
12089  CC*)
12090    # Adding this requires a known-good setup of shared libraries for
12091    # Sun compiler versions before 5.6, else PIC objects from an old
12092    # archive will be linked into the output, leading to subtle bugs.
12093    postdeps_CXX='-lCstd -lCrun'
12094    ;;
12095  esac
12096  ;;
12097esac
12098
12099
12100case " $postdeps_CXX " in
12101*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12102esac
12103
12104lt_prog_compiler_wl_CXX=
12105lt_prog_compiler_pic_CXX=
12106lt_prog_compiler_static_CXX=
12107
12108{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12109echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12110
12111  # C++ specific cases for pic, static, wl, etc.
12112  if test "$GXX" = yes; then
12113    lt_prog_compiler_wl_CXX='-Wl,'
12114    lt_prog_compiler_static_CXX='-static'
12115
12116    case $host_os in
12117    aix*)
12118      # All AIX code is PIC.
12119      if test "$host_cpu" = ia64; then
12120	# AIX 5 now supports IA64 processor
12121	lt_prog_compiler_static_CXX='-Bstatic'
12122      fi
12123      ;;
12124    amigaos*)
12125      # FIXME: we need at least 68020 code to build shared libraries, but
12126      # adding the `-m68020' flag to GCC prevents building anything better,
12127      # like `-m68040'.
12128      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12129      ;;
12130    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12131      # PIC is the default for these OSes.
12132      ;;
12133    mingw* | os2* | pw32*)
12134      # This hack is so that the source file can tell whether it is being
12135      # built for inclusion in a dll (and should export symbols for example).
12136      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12137      ;;
12138    darwin* | rhapsody*)
12139      # PIC is the default on this platform
12140      # Common symbols not allowed in MH_DYLIB files
12141      lt_prog_compiler_pic_CXX='-fno-common'
12142      ;;
12143    *djgpp*)
12144      # DJGPP does not support shared libraries at all
12145      lt_prog_compiler_pic_CXX=
12146      ;;
12147    interix3*)
12148      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12149      # Instead, we relocate shared libraries at runtime.
12150      ;;
12151    sysv4*MP*)
12152      if test -d /usr/nec; then
12153	lt_prog_compiler_pic_CXX=-Kconform_pic
12154      fi
12155      ;;
12156    hpux*)
12157      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12158      # not for PA HP-UX.
12159      case $host_cpu in
12160      hppa*64*|ia64*)
12161	;;
12162      *)
12163	lt_prog_compiler_pic_CXX='-fPIC'
12164	;;
12165      esac
12166      ;;
12167    *)
12168      lt_prog_compiler_pic_CXX='-fPIC'
12169      ;;
12170    esac
12171  else
12172    case $host_os in
12173      aix4* | aix5*)
12174	# All AIX code is PIC.
12175	if test "$host_cpu" = ia64; then
12176	  # AIX 5 now supports IA64 processor
12177	  lt_prog_compiler_static_CXX='-Bstatic'
12178	else
12179	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12180	fi
12181	;;
12182      chorus*)
12183	case $cc_basename in
12184	cxch68*)
12185	  # Green Hills C++ Compiler
12186	  # _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"
12187	  ;;
12188	esac
12189	;;
12190       darwin*)
12191         # PIC is the default on this platform
12192         # Common symbols not allowed in MH_DYLIB files
12193         case $cc_basename in
12194           xlc*)
12195           lt_prog_compiler_pic_CXX='-qnocommon'
12196           lt_prog_compiler_wl_CXX='-Wl,'
12197           ;;
12198         esac
12199       ;;
12200      dgux*)
12201	case $cc_basename in
12202	  ec++*)
12203	    lt_prog_compiler_pic_CXX='-KPIC'
12204	    ;;
12205	  ghcx*)
12206	    # Green Hills C++ Compiler
12207	    lt_prog_compiler_pic_CXX='-pic'
12208	    ;;
12209	  *)
12210	    ;;
12211	esac
12212	;;
12213      freebsd* | dragonfly*)
12214	# FreeBSD uses GNU C++
12215	;;
12216      hpux9* | hpux10* | hpux11*)
12217	case $cc_basename in
12218	  CC*)
12219	    lt_prog_compiler_wl_CXX='-Wl,'
12220	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12221	    if test "$host_cpu" != ia64; then
12222	      lt_prog_compiler_pic_CXX='+Z'
12223	    fi
12224	    ;;
12225	  aCC*)
12226	    lt_prog_compiler_wl_CXX='-Wl,'
12227	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12228	    case $host_cpu in
12229	    hppa*64*|ia64*)
12230	      # +Z the default
12231	      ;;
12232	    *)
12233	      lt_prog_compiler_pic_CXX='+Z'
12234	      ;;
12235	    esac
12236	    ;;
12237	  *)
12238	    ;;
12239	esac
12240	;;
12241      interix*)
12242	# This is c89, which is MS Visual C++ (no shared libs)
12243	# Anyone wants to do a port?
12244	;;
12245      irix5* | irix6* | nonstopux*)
12246	case $cc_basename in
12247	  CC*)
12248	    lt_prog_compiler_wl_CXX='-Wl,'
12249	    lt_prog_compiler_static_CXX='-non_shared'
12250	    # CC pic flag -KPIC is the default.
12251	    ;;
12252	  *)
12253	    ;;
12254	esac
12255	;;
12256      linux* | k*bsd*-gnu)
12257	case $cc_basename in
12258	  KCC*)
12259	    # KAI C++ Compiler
12260	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12261	    lt_prog_compiler_pic_CXX='-fPIC'
12262	    ;;
12263	  icpc* | ecpc*)
12264	    # Intel C++
12265	    lt_prog_compiler_wl_CXX='-Wl,'
12266	    lt_prog_compiler_pic_CXX='-KPIC'
12267	    lt_prog_compiler_static_CXX='-static'
12268	    ;;
12269	  pgCC*)
12270	    # Portland Group C++ compiler.
12271	    lt_prog_compiler_wl_CXX='-Wl,'
12272	    lt_prog_compiler_pic_CXX='-fpic'
12273	    lt_prog_compiler_static_CXX='-Bstatic'
12274	    ;;
12275	  cxx*)
12276	    # Compaq C++
12277	    # Make sure the PIC flag is empty.  It appears that all Alpha
12278	    # Linux and Compaq Tru64 Unix objects are PIC.
12279	    lt_prog_compiler_pic_CXX=
12280	    lt_prog_compiler_static_CXX='-non_shared'
12281	    ;;
12282	  *)
12283	    ;;
12284	esac
12285	;;
12286      lynxos*)
12287	;;
12288      m88k*)
12289	;;
12290      mvs*)
12291	case $cc_basename in
12292	  cxx*)
12293	    lt_prog_compiler_pic_CXX='-W c,exportall'
12294	    ;;
12295	  *)
12296	    ;;
12297	esac
12298	;;
12299      netbsd* | netbsdelf*-gnu)
12300	;;
12301      osf3* | osf4* | osf5*)
12302	case $cc_basename in
12303	  KCC*)
12304	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12305	    ;;
12306	  RCC*)
12307	    # Rational C++ 2.4.1
12308	    lt_prog_compiler_pic_CXX='-pic'
12309	    ;;
12310	  cxx*)
12311	    # Digital/Compaq C++
12312	    lt_prog_compiler_wl_CXX='-Wl,'
12313	    # Make sure the PIC flag is empty.  It appears that all Alpha
12314	    # Linux and Compaq Tru64 Unix objects are PIC.
12315	    lt_prog_compiler_pic_CXX=
12316	    lt_prog_compiler_static_CXX='-non_shared'
12317	    ;;
12318	  *)
12319	    ;;
12320	esac
12321	;;
12322      psos*)
12323	;;
12324      solaris*)
12325	case $cc_basename in
12326	  CC*)
12327	    # Sun C++ 4.2, 5.x and Centerline C++
12328	    lt_prog_compiler_pic_CXX='-KPIC'
12329	    lt_prog_compiler_static_CXX='-Bstatic'
12330	    lt_prog_compiler_wl_CXX='-Qoption ld '
12331	    ;;
12332	  gcx*)
12333	    # Green Hills C++ Compiler
12334	    lt_prog_compiler_pic_CXX='-PIC'
12335	    ;;
12336	  *)
12337	    ;;
12338	esac
12339	;;
12340      sunos4*)
12341	case $cc_basename in
12342	  CC*)
12343	    # Sun C++ 4.x
12344	    lt_prog_compiler_pic_CXX='-pic'
12345	    lt_prog_compiler_static_CXX='-Bstatic'
12346	    ;;
12347	  lcc*)
12348	    # Lucid
12349	    lt_prog_compiler_pic_CXX='-pic'
12350	    ;;
12351	  *)
12352	    ;;
12353	esac
12354	;;
12355      tandem*)
12356	case $cc_basename in
12357	  NCC*)
12358	    # NonStop-UX NCC 3.20
12359	    lt_prog_compiler_pic_CXX='-KPIC'
12360	    ;;
12361	  *)
12362	    ;;
12363	esac
12364	;;
12365      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12366	case $cc_basename in
12367	  CC*)
12368	    lt_prog_compiler_wl_CXX='-Wl,'
12369	    lt_prog_compiler_pic_CXX='-KPIC'
12370	    lt_prog_compiler_static_CXX='-Bstatic'
12371	    ;;
12372	esac
12373	;;
12374      vxworks*)
12375	;;
12376      *)
12377	lt_prog_compiler_can_build_shared_CXX=no
12378	;;
12379    esac
12380  fi
12381
12382{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12383echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12384
12385#
12386# Check to make sure the PIC flag actually works.
12387#
12388if test -n "$lt_prog_compiler_pic_CXX"; then
12389
12390{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12391echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12392if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12393  echo $ECHO_N "(cached) $ECHO_C" >&6
12394else
12395  lt_prog_compiler_pic_works_CXX=no
12396  ac_outfile=conftest.$ac_objext
12397   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12398   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12399   # Insert the option either (1) after the last *FLAGS variable, or
12400   # (2) before a word containing "conftest.", or (3) at the end.
12401   # Note that $ac_compile itself does not contain backslashes and begins
12402   # with a dollar sign (not a hyphen), so the echo should work correctly.
12403   # The option is referenced via a variable to avoid confusing sed.
12404   lt_compile=`echo "$ac_compile" | $SED \
12405   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12406   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12407   -e 's:$: $lt_compiler_flag:'`
12408   (eval echo "\"\$as_me:12408: $lt_compile\"" >&5)
12409   (eval "$lt_compile" 2>conftest.err)
12410   ac_status=$?
12411   cat conftest.err >&5
12412   echo "$as_me:12412: \$? = $ac_status" >&5
12413   if (exit $ac_status) && test -s "$ac_outfile"; then
12414     # The compiler can only warn and ignore the option if not recognized
12415     # So say no if there are warnings other than the usual output.
12416     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12417     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12418     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12419       lt_prog_compiler_pic_works_CXX=yes
12420     fi
12421   fi
12422   $rm conftest*
12423
12424fi
12425{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12426echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12427
12428if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12429    case $lt_prog_compiler_pic_CXX in
12430     "" | " "*) ;;
12431     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12432     esac
12433else
12434    lt_prog_compiler_pic_CXX=
12435     lt_prog_compiler_can_build_shared_CXX=no
12436fi
12437
12438fi
12439case $host_os in
12440  # For platforms which do not support PIC, -DPIC is meaningless:
12441  *djgpp*)
12442    lt_prog_compiler_pic_CXX=
12443    ;;
12444  *)
12445    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12446    ;;
12447esac
12448
12449#
12450# Check to make sure the static flag actually works.
12451#
12452wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12453{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12454echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12455if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12456  echo $ECHO_N "(cached) $ECHO_C" >&6
12457else
12458  lt_prog_compiler_static_works_CXX=no
12459   save_LDFLAGS="$LDFLAGS"
12460   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12461   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12462   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12463     # The linker can only warn and ignore the option if not recognized
12464     # So say no if there are warnings
12465     if test -s conftest.err; then
12466       # Append any errors to the config.log.
12467       cat conftest.err 1>&5
12468       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12469       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12470       if diff conftest.exp conftest.er2 >/dev/null; then
12471         lt_prog_compiler_static_works_CXX=yes
12472       fi
12473     else
12474       lt_prog_compiler_static_works_CXX=yes
12475     fi
12476   fi
12477   $rm conftest*
12478   LDFLAGS="$save_LDFLAGS"
12479
12480fi
12481{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12482echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12483
12484if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12485    :
12486else
12487    lt_prog_compiler_static_CXX=
12488fi
12489
12490
12491{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12492echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12493if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12494  echo $ECHO_N "(cached) $ECHO_C" >&6
12495else
12496  lt_cv_prog_compiler_c_o_CXX=no
12497   $rm -r conftest 2>/dev/null
12498   mkdir conftest
12499   cd conftest
12500   mkdir out
12501   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12502
12503   lt_compiler_flag="-o out/conftest2.$ac_objext"
12504   # Insert the option either (1) after the last *FLAGS variable, or
12505   # (2) before a word containing "conftest.", or (3) at the end.
12506   # Note that $ac_compile itself does not contain backslashes and begins
12507   # with a dollar sign (not a hyphen), so the echo should work correctly.
12508   lt_compile=`echo "$ac_compile" | $SED \
12509   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12510   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12511   -e 's:$: $lt_compiler_flag:'`
12512   (eval echo "\"\$as_me:12512: $lt_compile\"" >&5)
12513   (eval "$lt_compile" 2>out/conftest.err)
12514   ac_status=$?
12515   cat out/conftest.err >&5
12516   echo "$as_me:12516: \$? = $ac_status" >&5
12517   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12518   then
12519     # The compiler can only warn and ignore the option if not recognized
12520     # So say no if there are warnings
12521     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12522     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12523     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12524       lt_cv_prog_compiler_c_o_CXX=yes
12525     fi
12526   fi
12527   chmod u+w . 2>&5
12528   $rm conftest*
12529   # SGI C++ compiler will create directory out/ii_files/ for
12530   # template instantiation
12531   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12532   $rm out/* && rmdir out
12533   cd ..
12534   rmdir conftest
12535   $rm conftest*
12536
12537fi
12538{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12539echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12540
12541
12542hard_links="nottested"
12543if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12544  # do not overwrite the value of need_locks provided by the user
12545  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12546echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12547  hard_links=yes
12548  $rm conftest*
12549  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12550  touch conftest.a
12551  ln conftest.a conftest.b 2>&5 || hard_links=no
12552  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12553  { echo "$as_me:$LINENO: result: $hard_links" >&5
12554echo "${ECHO_T}$hard_links" >&6; }
12555  if test "$hard_links" = no; then
12556    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12557echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12558    need_locks=warn
12559  fi
12560else
12561  need_locks=no
12562fi
12563
12564{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12565echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12566
12567  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12568  case $host_os in
12569  aix4* | aix5*)
12570    # If we're using GNU nm, then we don't want the "-C" option.
12571    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12572    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12573      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'
12574    else
12575      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'
12576    fi
12577    ;;
12578  pw32*)
12579    export_symbols_cmds_CXX="$ltdll_cmds"
12580  ;;
12581  cygwin* | mingw*)
12582    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'
12583  ;;
12584  linux* | k*bsd*-gnu)
12585    link_all_deplibs_CXX=no
12586  ;;
12587  *)
12588    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12589  ;;
12590  esac
12591
12592{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12593echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12594test "$ld_shlibs_CXX" = no && can_build_shared=no
12595
12596#
12597# Do we need to explicitly link libc?
12598#
12599case "x$archive_cmds_need_lc_CXX" in
12600x|xyes)
12601  # Assume -lc should be added
12602  archive_cmds_need_lc_CXX=yes
12603
12604  if test "$enable_shared" = yes && test "$GCC" = yes; then
12605    case $archive_cmds_CXX in
12606    *'~'*)
12607      # FIXME: we may have to deal with multi-command sequences.
12608      ;;
12609    '$CC '*)
12610      # Test whether the compiler implicitly links with -lc since on some
12611      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12612      # to ld, don't add -lc before -lgcc.
12613      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12614echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12615      $rm conftest*
12616      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12617
12618      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12619  (eval $ac_compile) 2>&5
12620  ac_status=$?
12621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622  (exit $ac_status); } 2>conftest.err; then
12623        soname=conftest
12624        lib=conftest
12625        libobjs=conftest.$ac_objext
12626        deplibs=
12627        wl=$lt_prog_compiler_wl_CXX
12628	pic_flag=$lt_prog_compiler_pic_CXX
12629        compiler_flags=-v
12630        linker_flags=-v
12631        verstring=
12632        output_objdir=.
12633        libname=conftest
12634        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12635        allow_undefined_flag_CXX=
12636        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12637  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12638  ac_status=$?
12639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640  (exit $ac_status); }
12641        then
12642	  archive_cmds_need_lc_CXX=no
12643        else
12644	  archive_cmds_need_lc_CXX=yes
12645        fi
12646        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12647      else
12648        cat conftest.err 1>&5
12649      fi
12650      $rm conftest*
12651      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12652echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12653      ;;
12654    esac
12655  fi
12656  ;;
12657esac
12658
12659{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12660echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12661library_names_spec=
12662libname_spec='lib$name'
12663soname_spec=
12664shrext_cmds=".so"
12665postinstall_cmds=
12666postuninstall_cmds=
12667finish_cmds=
12668finish_eval=
12669shlibpath_var=
12670shlibpath_overrides_runpath=unknown
12671version_type=none
12672dynamic_linker="$host_os ld.so"
12673sys_lib_dlsearch_path_spec="/lib /usr/lib"
12674if test "$GCC" = yes; then
12675  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12676  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12677    # if the path contains ";" then we assume it to be the separator
12678    # otherwise default to the standard path separator (i.e. ":") - it is
12679    # assumed that no part of a normal pathname contains ";" but that should
12680    # okay in the real world where ";" in dirpaths is itself problematic.
12681    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12682  else
12683    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12684  fi
12685else
12686  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12687fi
12688need_lib_prefix=unknown
12689hardcode_into_libs=no
12690
12691# when you set need_version to no, make sure it does not cause -set_version
12692# flags to be left without arguments
12693need_version=unknown
12694
12695case $host_os in
12696aix3*)
12697  version_type=linux
12698  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12699  shlibpath_var=LIBPATH
12700
12701  # AIX 3 has no versioning support, so we append a major version to the name.
12702  soname_spec='${libname}${release}${shared_ext}$major'
12703  ;;
12704
12705aix4* | aix5*)
12706  version_type=linux
12707  need_lib_prefix=no
12708  need_version=no
12709  hardcode_into_libs=yes
12710  if test "$host_cpu" = ia64; then
12711    # AIX 5 supports IA64
12712    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12713    shlibpath_var=LD_LIBRARY_PATH
12714  else
12715    # With GCC up to 2.95.x, collect2 would create an import file
12716    # for dependence libraries.  The import file would start with
12717    # the line `#! .'.  This would cause the generated library to
12718    # depend on `.', always an invalid library.  This was fixed in
12719    # development snapshots of GCC prior to 3.0.
12720    case $host_os in
12721      aix4 | aix4.[01] | aix4.[01].*)
12722      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12723	   echo ' yes '
12724	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12725	:
12726      else
12727	can_build_shared=no
12728      fi
12729      ;;
12730    esac
12731    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12732    # soname into executable. Probably we can add versioning support to
12733    # collect2, so additional links can be useful in future.
12734    if test "$aix_use_runtimelinking" = yes; then
12735      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12736      # instead of lib<name>.a to let people know that these are not
12737      # typical AIX shared libraries.
12738      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12739    else
12740      # We preserve .a as extension for shared libraries through AIX4.2
12741      # and later when we are not doing run time linking.
12742      library_names_spec='${libname}${release}.a $libname.a'
12743      soname_spec='${libname}${release}${shared_ext}$major'
12744    fi
12745    shlibpath_var=LIBPATH
12746  fi
12747  ;;
12748
12749amigaos*)
12750  library_names_spec='$libname.ixlibrary $libname.a'
12751  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12752  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'
12753  ;;
12754
12755beos*)
12756  library_names_spec='${libname}${shared_ext}'
12757  dynamic_linker="$host_os ld.so"
12758  shlibpath_var=LIBRARY_PATH
12759  ;;
12760
12761bsdi[45]*)
12762  version_type=linux
12763  need_version=no
12764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12765  soname_spec='${libname}${release}${shared_ext}$major'
12766  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12767  shlibpath_var=LD_LIBRARY_PATH
12768  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12769  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12770  # the default ld.so.conf also contains /usr/contrib/lib and
12771  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12772  # libtool to hard-code these into programs
12773  ;;
12774
12775cygwin* | mingw* | pw32*)
12776  version_type=windows
12777  shrext_cmds=".dll"
12778  need_version=no
12779  need_lib_prefix=no
12780
12781  case $GCC,$host_os in
12782  yes,cygwin* | yes,mingw* | yes,pw32*)
12783    library_names_spec='$libname.dll.a'
12784    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12785    postinstall_cmds='base_file=`basename \${file}`~
12786      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12787      dldir=$destdir/`dirname \$dlpath`~
12788      test -d \$dldir || mkdir -p \$dldir~
12789      $install_prog $dir/$dlname \$dldir/$dlname~
12790      chmod a+x \$dldir/$dlname'
12791    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12792      dlpath=$dir/\$dldll~
12793       $rm \$dlpath'
12794    shlibpath_overrides_runpath=yes
12795
12796    case $host_os in
12797    cygwin*)
12798      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12799      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12800      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12801      ;;
12802    mingw*)
12803      # MinGW DLLs use traditional 'lib' prefix
12804      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12805      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12806      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12807        # It is most probably a Windows format PATH printed by
12808        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12809        # path with ; separators, and with drive letters. We can handle the
12810        # drive letters (cygwin fileutils understands them), so leave them,
12811        # especially as we might pass files found there to a mingw objdump,
12812        # which wouldn't understand a cygwinified path. Ahh.
12813        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12814      else
12815        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12816      fi
12817      ;;
12818    pw32*)
12819      # pw32 DLLs use 'pw' prefix rather than 'lib'
12820      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12821      ;;
12822    esac
12823    ;;
12824
12825  *)
12826    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12827    ;;
12828  esac
12829  dynamic_linker='Win32 ld.exe'
12830  # FIXME: first we should search . and the directory the executable is in
12831  shlibpath_var=PATH
12832  ;;
12833
12834darwin* | rhapsody*)
12835  dynamic_linker="$host_os dyld"
12836  version_type=darwin
12837  need_lib_prefix=no
12838  need_version=no
12839  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12840  soname_spec='${libname}${release}${major}$shared_ext'
12841  shlibpath_overrides_runpath=yes
12842  shlibpath_var=DYLD_LIBRARY_PATH
12843  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12844  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12845  if test "$GCC" = yes; then
12846    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12847  else
12848    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12849  fi
12850  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12851  ;;
12852
12853dgux*)
12854  version_type=linux
12855  need_lib_prefix=no
12856  need_version=no
12857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12858  soname_spec='${libname}${release}${shared_ext}$major'
12859  shlibpath_var=LD_LIBRARY_PATH
12860  ;;
12861
12862freebsd1*)
12863  dynamic_linker=no
12864  ;;
12865
12866freebsd* | dragonfly*)
12867  # DragonFly does not have aout.  When/if they implement a new
12868  # versioning mechanism, adjust this.
12869  if test -x /usr/bin/objformat; then
12870    objformat=`/usr/bin/objformat`
12871  else
12872    case $host_os in
12873    freebsd[123]*) objformat=aout ;;
12874    *) objformat=elf ;;
12875    esac
12876  fi
12877  version_type=freebsd-$objformat
12878  case $version_type in
12879    freebsd-elf*)
12880      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12881      need_version=no
12882      need_lib_prefix=no
12883      ;;
12884    freebsd-*)
12885      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12886      need_version=yes
12887      ;;
12888  esac
12889  shlibpath_var=LD_LIBRARY_PATH
12890  case $host_os in
12891  freebsd2*)
12892    shlibpath_overrides_runpath=yes
12893    ;;
12894  freebsd3.[01]* | freebsdelf3.[01]*)
12895    shlibpath_overrides_runpath=yes
12896    hardcode_into_libs=yes
12897    ;;
12898  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12899  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12900    shlibpath_overrides_runpath=no
12901    hardcode_into_libs=yes
12902    ;;
12903  freebsd*) # from 4.6 on
12904    shlibpath_overrides_runpath=yes
12905    hardcode_into_libs=yes
12906    ;;
12907  esac
12908  ;;
12909
12910gnu*)
12911  version_type=linux
12912  need_lib_prefix=no
12913  need_version=no
12914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12915  soname_spec='${libname}${release}${shared_ext}$major'
12916  shlibpath_var=LD_LIBRARY_PATH
12917  hardcode_into_libs=yes
12918  ;;
12919
12920hpux9* | hpux10* | hpux11*)
12921  # Give a soname corresponding to the major version so that dld.sl refuses to
12922  # link against other versions.
12923  version_type=sunos
12924  need_lib_prefix=no
12925  need_version=no
12926  case $host_cpu in
12927  ia64*)
12928    shrext_cmds='.so'
12929    hardcode_into_libs=yes
12930    dynamic_linker="$host_os dld.so"
12931    shlibpath_var=LD_LIBRARY_PATH
12932    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12933    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12934    soname_spec='${libname}${release}${shared_ext}$major'
12935    if test "X$HPUX_IA64_MODE" = X32; then
12936      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12937    else
12938      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12939    fi
12940    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12941    ;;
12942   hppa*64*)
12943     shrext_cmds='.sl'
12944     hardcode_into_libs=yes
12945     dynamic_linker="$host_os dld.sl"
12946     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12947     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12948     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12949     soname_spec='${libname}${release}${shared_ext}$major'
12950     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12951     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12952     ;;
12953   *)
12954    shrext_cmds='.sl'
12955    dynamic_linker="$host_os dld.sl"
12956    shlibpath_var=SHLIB_PATH
12957    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12958    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12959    soname_spec='${libname}${release}${shared_ext}$major'
12960    ;;
12961  esac
12962  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12963  postinstall_cmds='chmod 555 $lib'
12964  ;;
12965
12966interix3*)
12967  version_type=linux
12968  need_lib_prefix=no
12969  need_version=no
12970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12971  soname_spec='${libname}${release}${shared_ext}$major'
12972  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12973  shlibpath_var=LD_LIBRARY_PATH
12974  shlibpath_overrides_runpath=no
12975  hardcode_into_libs=yes
12976  ;;
12977
12978irix5* | irix6* | nonstopux*)
12979  case $host_os in
12980    nonstopux*) version_type=nonstopux ;;
12981    *)
12982	if test "$lt_cv_prog_gnu_ld" = yes; then
12983		version_type=linux
12984	else
12985		version_type=irix
12986	fi ;;
12987  esac
12988  need_lib_prefix=no
12989  need_version=no
12990  soname_spec='${libname}${release}${shared_ext}$major'
12991  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12992  case $host_os in
12993  irix5* | nonstopux*)
12994    libsuff= shlibsuff=
12995    ;;
12996  *)
12997    case $LD in # libtool.m4 will add one of these switches to LD
12998    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12999      libsuff= shlibsuff= libmagic=32-bit;;
13000    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13001      libsuff=32 shlibsuff=N32 libmagic=N32;;
13002    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13003      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13004    *) libsuff= shlibsuff= libmagic=never-match;;
13005    esac
13006    ;;
13007  esac
13008  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13009  shlibpath_overrides_runpath=no
13010  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13011  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13012  hardcode_into_libs=yes
13013  ;;
13014
13015# No shared lib support for Linux oldld, aout, or coff.
13016linux*oldld* | linux*aout* | linux*coff*)
13017  dynamic_linker=no
13018  ;;
13019
13020# This must be Linux ELF.
13021linux* | k*bsd*-gnu)
13022  version_type=linux
13023  need_lib_prefix=no
13024  need_version=no
13025  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13026  soname_spec='${libname}${release}${shared_ext}$major'
13027  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13028  shlibpath_var=LD_LIBRARY_PATH
13029  shlibpath_overrides_runpath=no
13030  # This implies no fast_install, which is unacceptable.
13031  # Some rework will be needed to allow for fast_install
13032  # before this can be enabled.
13033  hardcode_into_libs=yes
13034
13035  # Append ld.so.conf contents to the search path
13036  if test -f /etc/ld.so.conf; then
13037    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13038    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13039  fi
13040
13041  # We used to test for /lib/ld.so.1 and disable shared libraries on
13042  # powerpc, because MkLinux only supported shared libraries with the
13043  # GNU dynamic linker.  Since this was broken with cross compilers,
13044  # most powerpc-linux boxes support dynamic linking these days and
13045  # people can always --disable-shared, the test was removed, and we
13046  # assume the GNU/Linux dynamic linker is in use.
13047  dynamic_linker='GNU/Linux ld.so'
13048  ;;
13049
13050netbsdelf*-gnu)
13051  version_type=linux
13052  need_lib_prefix=no
13053  need_version=no
13054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13055  soname_spec='${libname}${release}${shared_ext}$major'
13056  shlibpath_var=LD_LIBRARY_PATH
13057  shlibpath_overrides_runpath=no
13058  hardcode_into_libs=yes
13059  dynamic_linker='NetBSD ld.elf_so'
13060  ;;
13061
13062netbsd*)
13063  version_type=sunos
13064  need_lib_prefix=no
13065  need_version=no
13066  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13067    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13068    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13069    dynamic_linker='NetBSD (a.out) ld.so'
13070  else
13071    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13072    soname_spec='${libname}${release}${shared_ext}$major'
13073    dynamic_linker='NetBSD ld.elf_so'
13074  fi
13075  shlibpath_var=LD_LIBRARY_PATH
13076  shlibpath_overrides_runpath=yes
13077  hardcode_into_libs=yes
13078  ;;
13079
13080newsos6)
13081  version_type=linux
13082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13083  shlibpath_var=LD_LIBRARY_PATH
13084  shlibpath_overrides_runpath=yes
13085  ;;
13086
13087nto-qnx*)
13088  version_type=linux
13089  need_lib_prefix=no
13090  need_version=no
13091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13092  soname_spec='${libname}${release}${shared_ext}$major'
13093  shlibpath_var=LD_LIBRARY_PATH
13094  shlibpath_overrides_runpath=yes
13095  ;;
13096
13097openbsd*)
13098  version_type=sunos
13099  sys_lib_dlsearch_path_spec="/usr/lib"
13100  need_lib_prefix=no
13101  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13102  case $host_os in
13103    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13104    *)                         need_version=no  ;;
13105  esac
13106  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13107  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13108  shlibpath_var=LD_LIBRARY_PATH
13109  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13110    case $host_os in
13111      openbsd2.[89] | openbsd2.[89].*)
13112	shlibpath_overrides_runpath=no
13113	;;
13114      *)
13115	shlibpath_overrides_runpath=yes
13116	;;
13117      esac
13118  else
13119    shlibpath_overrides_runpath=yes
13120  fi
13121  ;;
13122
13123os2*)
13124  libname_spec='$name'
13125  shrext_cmds=".dll"
13126  need_lib_prefix=no
13127  library_names_spec='$libname${shared_ext} $libname.a'
13128  dynamic_linker='OS/2 ld.exe'
13129  shlibpath_var=LIBPATH
13130  ;;
13131
13132osf3* | osf4* | osf5*)
13133  version_type=osf
13134  need_lib_prefix=no
13135  need_version=no
13136  soname_spec='${libname}${release}${shared_ext}$major'
13137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13138  shlibpath_var=LD_LIBRARY_PATH
13139  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13140  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13141  ;;
13142
13143solaris*)
13144  version_type=linux
13145  need_lib_prefix=no
13146  need_version=no
13147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13148  soname_spec='${libname}${release}${shared_ext}$major'
13149  shlibpath_var=LD_LIBRARY_PATH
13150  shlibpath_overrides_runpath=yes
13151  hardcode_into_libs=yes
13152  # ldd complains unless libraries are executable
13153  postinstall_cmds='chmod +x $lib'
13154  ;;
13155
13156sunos4*)
13157  version_type=sunos
13158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13159  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13160  shlibpath_var=LD_LIBRARY_PATH
13161  shlibpath_overrides_runpath=yes
13162  if test "$with_gnu_ld" = yes; then
13163    need_lib_prefix=no
13164  fi
13165  need_version=yes
13166  ;;
13167
13168sysv4 | sysv4.3*)
13169  version_type=linux
13170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13171  soname_spec='${libname}${release}${shared_ext}$major'
13172  shlibpath_var=LD_LIBRARY_PATH
13173  case $host_vendor in
13174    sni)
13175      shlibpath_overrides_runpath=no
13176      need_lib_prefix=no
13177      export_dynamic_flag_spec='${wl}-Blargedynsym'
13178      runpath_var=LD_RUN_PATH
13179      ;;
13180    siemens)
13181      need_lib_prefix=no
13182      ;;
13183    motorola)
13184      need_lib_prefix=no
13185      need_version=no
13186      shlibpath_overrides_runpath=no
13187      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13188      ;;
13189  esac
13190  ;;
13191
13192sysv4*MP*)
13193  if test -d /usr/nec ;then
13194    version_type=linux
13195    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13196    soname_spec='$libname${shared_ext}.$major'
13197    shlibpath_var=LD_LIBRARY_PATH
13198  fi
13199  ;;
13200
13201sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13202  version_type=freebsd-elf
13203  need_lib_prefix=no
13204  need_version=no
13205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13206  soname_spec='${libname}${release}${shared_ext}$major'
13207  shlibpath_var=LD_LIBRARY_PATH
13208  hardcode_into_libs=yes
13209  if test "$with_gnu_ld" = yes; then
13210    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13211    shlibpath_overrides_runpath=no
13212  else
13213    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13214    shlibpath_overrides_runpath=yes
13215    case $host_os in
13216      sco3.2v5*)
13217        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13218	;;
13219    esac
13220  fi
13221  sys_lib_dlsearch_path_spec='/usr/lib'
13222  ;;
13223
13224uts4*)
13225  version_type=linux
13226  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13227  soname_spec='${libname}${release}${shared_ext}$major'
13228  shlibpath_var=LD_LIBRARY_PATH
13229  ;;
13230
13231*)
13232  dynamic_linker=no
13233  ;;
13234esac
13235{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13236echo "${ECHO_T}$dynamic_linker" >&6; }
13237test "$dynamic_linker" = no && can_build_shared=no
13238
13239variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13240if test "$GCC" = yes; then
13241  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13242fi
13243
13244{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13245echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13246hardcode_action_CXX=
13247if test -n "$hardcode_libdir_flag_spec_CXX" || \
13248   test -n "$runpath_var_CXX" || \
13249   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13250
13251  # We can hardcode non-existant directories.
13252  if test "$hardcode_direct_CXX" != no &&
13253     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13254     # have to relink, otherwise we might link with an installed library
13255     # when we should be linking with a yet-to-be-installed one
13256     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13257     test "$hardcode_minus_L_CXX" != no; then
13258    # Linking always hardcodes the temporary library directory.
13259    hardcode_action_CXX=relink
13260  else
13261    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13262    hardcode_action_CXX=immediate
13263  fi
13264else
13265  # We cannot hardcode anything, or else we can only hardcode existing
13266  # directories.
13267  hardcode_action_CXX=unsupported
13268fi
13269{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13270echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13271
13272if test "$hardcode_action_CXX" = relink; then
13273  # Fast installation is not supported
13274  enable_fast_install=no
13275elif test "$shlibpath_overrides_runpath" = yes ||
13276     test "$enable_shared" = no; then
13277  # Fast installation is not necessary
13278  enable_fast_install=needless
13279fi
13280
13281
13282# The else clause should only fire when bootstrapping the
13283# libtool distribution, otherwise you forgot to ship ltmain.sh
13284# with your package, and you will get complaints that there are
13285# no rules to generate ltmain.sh.
13286if test -f "$ltmain"; then
13287  # See if we are running on zsh, and set the options which allow our commands through
13288  # without removal of \ escapes.
13289  if test -n "${ZSH_VERSION+set}" ; then
13290    setopt NO_GLOB_SUBST
13291  fi
13292  # Now quote all the things that may contain metacharacters while being
13293  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13294  # variables and quote the copies for generation of the libtool script.
13295  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13296    SED SHELL STRIP \
13297    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13298    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13299    deplibs_check_method reload_flag reload_cmds need_locks \
13300    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13301    lt_cv_sys_global_symbol_to_c_name_address \
13302    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13303    old_postinstall_cmds old_postuninstall_cmds \
13304    compiler_CXX \
13305    CC_CXX \
13306    LD_CXX \
13307    lt_prog_compiler_wl_CXX \
13308    lt_prog_compiler_pic_CXX \
13309    lt_prog_compiler_static_CXX \
13310    lt_prog_compiler_no_builtin_flag_CXX \
13311    export_dynamic_flag_spec_CXX \
13312    thread_safe_flag_spec_CXX \
13313    whole_archive_flag_spec_CXX \
13314    enable_shared_with_static_runtimes_CXX \
13315    old_archive_cmds_CXX \
13316    old_archive_from_new_cmds_CXX \
13317    predep_objects_CXX \
13318    postdep_objects_CXX \
13319    predeps_CXX \
13320    postdeps_CXX \
13321    compiler_lib_search_path_CXX \
13322    archive_cmds_CXX \
13323    archive_expsym_cmds_CXX \
13324    postinstall_cmds_CXX \
13325    postuninstall_cmds_CXX \
13326    old_archive_from_expsyms_cmds_CXX \
13327    allow_undefined_flag_CXX \
13328    no_undefined_flag_CXX \
13329    export_symbols_cmds_CXX \
13330    hardcode_libdir_flag_spec_CXX \
13331    hardcode_libdir_flag_spec_ld_CXX \
13332    hardcode_libdir_separator_CXX \
13333    hardcode_automatic_CXX \
13334    module_cmds_CXX \
13335    module_expsym_cmds_CXX \
13336    lt_cv_prog_compiler_c_o_CXX \
13337    exclude_expsyms_CXX \
13338    include_expsyms_CXX; do
13339
13340    case $var in
13341    old_archive_cmds_CXX | \
13342    old_archive_from_new_cmds_CXX | \
13343    archive_cmds_CXX | \
13344    archive_expsym_cmds_CXX | \
13345    module_cmds_CXX | \
13346    module_expsym_cmds_CXX | \
13347    old_archive_from_expsyms_cmds_CXX | \
13348    export_symbols_cmds_CXX | \
13349    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13350    postinstall_cmds | postuninstall_cmds | \
13351    old_postinstall_cmds | old_postuninstall_cmds | \
13352    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13353      # Double-quote double-evaled strings.
13354      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13355      ;;
13356    *)
13357      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13358      ;;
13359    esac
13360  done
13361
13362  case $lt_echo in
13363  *'\$0 --fallback-echo"')
13364    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13365    ;;
13366  esac
13367
13368cfgfile="$ofile"
13369
13370  cat <<__EOF__ >> "$cfgfile"
13371# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13372
13373# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13374
13375# Shell to use when invoking shell scripts.
13376SHELL=$lt_SHELL
13377
13378# Whether or not to build shared libraries.
13379build_libtool_libs=$enable_shared
13380
13381# Whether or not to build static libraries.
13382build_old_libs=$enable_static
13383
13384# Whether or not to add -lc for building shared libraries.
13385build_libtool_need_lc=$archive_cmds_need_lc_CXX
13386
13387# Whether or not to disallow shared libs when runtime libs are static
13388allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13389
13390# Whether or not to optimize for fast installation.
13391fast_install=$enable_fast_install
13392
13393# The host system.
13394host_alias=$host_alias
13395host=$host
13396host_os=$host_os
13397
13398# The build system.
13399build_alias=$build_alias
13400build=$build
13401build_os=$build_os
13402
13403# An echo program that does not interpret backslashes.
13404echo=$lt_echo
13405
13406# The archiver.
13407AR=$lt_AR
13408AR_FLAGS=$lt_AR_FLAGS
13409
13410# A C compiler.
13411LTCC=$lt_LTCC
13412
13413# LTCC compiler flags.
13414LTCFLAGS=$lt_LTCFLAGS
13415
13416# A language-specific compiler.
13417CC=$lt_compiler_CXX
13418
13419# Is the compiler the GNU C compiler?
13420with_gcc=$GCC_CXX
13421
13422# An ERE matcher.
13423EGREP=$lt_EGREP
13424
13425# The linker used to build libraries.
13426LD=$lt_LD_CXX
13427
13428# Whether we need hard or soft links.
13429LN_S=$lt_LN_S
13430
13431# A BSD-compatible nm program.
13432NM=$lt_NM
13433
13434# A symbol stripping program
13435STRIP=$lt_STRIP
13436
13437# Used to examine libraries when file_magic_cmd begins "file"
13438MAGIC_CMD=$MAGIC_CMD
13439
13440# Used on cygwin: DLL creation program.
13441DLLTOOL="$DLLTOOL"
13442
13443# Used on cygwin: object dumper.
13444OBJDUMP="$OBJDUMP"
13445
13446# Used on cygwin: assembler.
13447AS="$AS"
13448
13449# The name of the directory that contains temporary libtool files.
13450objdir=$objdir
13451
13452# How to create reloadable object files.
13453reload_flag=$lt_reload_flag
13454reload_cmds=$lt_reload_cmds
13455
13456# How to pass a linker flag through the compiler.
13457wl=$lt_lt_prog_compiler_wl_CXX
13458
13459# Object file suffix (normally "o").
13460objext="$ac_objext"
13461
13462# Old archive suffix (normally "a").
13463libext="$libext"
13464
13465# Shared library suffix (normally ".so").
13466shrext_cmds='$shrext_cmds'
13467
13468# Executable file suffix (normally "").
13469exeext="$exeext"
13470
13471# Additional compiler flags for building library objects.
13472pic_flag=$lt_lt_prog_compiler_pic_CXX
13473pic_mode=$pic_mode
13474
13475# What is the maximum length of a command?
13476max_cmd_len=$lt_cv_sys_max_cmd_len
13477
13478# Does compiler simultaneously support -c and -o options?
13479compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13480
13481# Must we lock files when doing compilation?
13482need_locks=$lt_need_locks
13483
13484# Do we need the lib prefix for modules?
13485need_lib_prefix=$need_lib_prefix
13486
13487# Do we need a version for libraries?
13488need_version=$need_version
13489
13490# Whether dlopen is supported.
13491dlopen_support=$enable_dlopen
13492
13493# Whether dlopen of programs is supported.
13494dlopen_self=$enable_dlopen_self
13495
13496# Whether dlopen of statically linked programs is supported.
13497dlopen_self_static=$enable_dlopen_self_static
13498
13499# Compiler flag to prevent dynamic linking.
13500link_static_flag=$lt_lt_prog_compiler_static_CXX
13501
13502# Compiler flag to turn off builtin functions.
13503no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13504
13505# Compiler flag to allow reflexive dlopens.
13506export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13507
13508# Compiler flag to generate shared objects directly from archives.
13509whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13510
13511# Compiler flag to generate thread-safe objects.
13512thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13513
13514# Library versioning type.
13515version_type=$version_type
13516
13517# Format of library name prefix.
13518libname_spec=$lt_libname_spec
13519
13520# List of archive names.  First name is the real one, the rest are links.
13521# The last name is the one that the linker finds with -lNAME.
13522library_names_spec=$lt_library_names_spec
13523
13524# The coded name of the library, if different from the real name.
13525soname_spec=$lt_soname_spec
13526
13527# Commands used to build and install an old-style archive.
13528RANLIB=$lt_RANLIB
13529old_archive_cmds=$lt_old_archive_cmds_CXX
13530old_postinstall_cmds=$lt_old_postinstall_cmds
13531old_postuninstall_cmds=$lt_old_postuninstall_cmds
13532
13533# Create an old-style archive from a shared archive.
13534old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13535
13536# Create a temporary old-style archive to link instead of a shared archive.
13537old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13538
13539# Commands used to build and install a shared archive.
13540archive_cmds=$lt_archive_cmds_CXX
13541archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13542postinstall_cmds=$lt_postinstall_cmds
13543postuninstall_cmds=$lt_postuninstall_cmds
13544
13545# Commands used to build a loadable module (assumed same as above if empty)
13546module_cmds=$lt_module_cmds_CXX
13547module_expsym_cmds=$lt_module_expsym_cmds_CXX
13548
13549# Commands to strip libraries.
13550old_striplib=$lt_old_striplib
13551striplib=$lt_striplib
13552
13553# Dependencies to place before the objects being linked to create a
13554# shared library.
13555predep_objects=$lt_predep_objects_CXX
13556
13557# Dependencies to place after the objects being linked to create a
13558# shared library.
13559postdep_objects=$lt_postdep_objects_CXX
13560
13561# Dependencies to place before the objects being linked to create a
13562# shared library.
13563predeps=$lt_predeps_CXX
13564
13565# Dependencies to place after the objects being linked to create a
13566# shared library.
13567postdeps=$lt_postdeps_CXX
13568
13569# The library search path used internally by the compiler when linking
13570# a shared library.
13571compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13572
13573# Method to check whether dependent libraries are shared objects.
13574deplibs_check_method=$lt_deplibs_check_method
13575
13576# Command to use when deplibs_check_method == file_magic.
13577file_magic_cmd=$lt_file_magic_cmd
13578
13579# Flag that allows shared libraries with undefined symbols to be built.
13580allow_undefined_flag=$lt_allow_undefined_flag_CXX
13581
13582# Flag that forces no undefined symbols.
13583no_undefined_flag=$lt_no_undefined_flag_CXX
13584
13585# Commands used to finish a libtool library installation in a directory.
13586finish_cmds=$lt_finish_cmds
13587
13588# Same as above, but a single script fragment to be evaled but not shown.
13589finish_eval=$lt_finish_eval
13590
13591# Take the output of nm and produce a listing of raw symbols and C names.
13592global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13593
13594# Transform the output of nm in a proper C declaration
13595global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13596
13597# Transform the output of nm in a C name address pair
13598global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13599
13600# This is the shared library runtime path variable.
13601runpath_var=$runpath_var
13602
13603# This is the shared library path variable.
13604shlibpath_var=$shlibpath_var
13605
13606# Is shlibpath searched before the hard-coded library search path?
13607shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13608
13609# How to hardcode a shared library path into an executable.
13610hardcode_action=$hardcode_action_CXX
13611
13612# Whether we should hardcode library paths into libraries.
13613hardcode_into_libs=$hardcode_into_libs
13614
13615# Flag to hardcode \$libdir into a binary during linking.
13616# This must work even if \$libdir does not exist.
13617hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13618
13619# If ld is used when linking, flag to hardcode \$libdir into
13620# a binary during linking. This must work even if \$libdir does
13621# not exist.
13622hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13623
13624# Whether we need a single -rpath flag with a separated argument.
13625hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13626
13627# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13628# resulting binary.
13629hardcode_direct=$hardcode_direct_CXX
13630
13631# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13632# resulting binary.
13633hardcode_minus_L=$hardcode_minus_L_CXX
13634
13635# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13636# the resulting binary.
13637hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13638
13639# Set to yes if building a shared library automatically hardcodes DIR into the library
13640# and all subsequent libraries and executables linked against it.
13641hardcode_automatic=$hardcode_automatic_CXX
13642
13643# Variables whose values should be saved in libtool wrapper scripts and
13644# restored at relink time.
13645variables_saved_for_relink="$variables_saved_for_relink"
13646
13647# Whether libtool must link a program against all its dependency libraries.
13648link_all_deplibs=$link_all_deplibs_CXX
13649
13650# Compile-time system search path for libraries
13651sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13652
13653# Run-time system search path for libraries
13654sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13655
13656# Fix the shell variable \$srcfile for the compiler.
13657fix_srcfile_path="$fix_srcfile_path_CXX"
13658
13659# Set to yes if exported symbols are required.
13660always_export_symbols=$always_export_symbols_CXX
13661
13662# The commands to list exported symbols.
13663export_symbols_cmds=$lt_export_symbols_cmds_CXX
13664
13665# The commands to extract the exported symbol list from a shared archive.
13666extract_expsyms_cmds=$lt_extract_expsyms_cmds
13667
13668# Symbols that should not be listed in the preloaded symbols.
13669exclude_expsyms=$lt_exclude_expsyms_CXX
13670
13671# Symbols that must always be exported.
13672include_expsyms=$lt_include_expsyms_CXX
13673
13674# ### END LIBTOOL TAG CONFIG: $tagname
13675
13676__EOF__
13677
13678
13679else
13680  # If there is no Makefile yet, we rely on a make rule to execute
13681  # `config.status --recheck' to rerun these tests and create the
13682  # libtool script then.
13683  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13684  if test -f "$ltmain_in"; then
13685    test -f Makefile && make "$ltmain"
13686  fi
13687fi
13688
13689
13690ac_ext=c
13691ac_cpp='$CPP $CPPFLAGS'
13692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13694ac_compiler_gnu=$ac_cv_c_compiler_gnu
13695
13696CC=$lt_save_CC
13697LDCXX=$LD
13698LD=$lt_save_LD
13699GCC=$lt_save_GCC
13700with_gnu_ldcxx=$with_gnu_ld
13701with_gnu_ld=$lt_save_with_gnu_ld
13702lt_cv_path_LDCXX=$lt_cv_path_LD
13703lt_cv_path_LD=$lt_save_path_LD
13704lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13705lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13706
13707	else
13708	  tagname=""
13709	fi
13710	;;
13711
13712      F77)
13713	if test -n "$F77" && test "X$F77" != "Xno"; then
13714
13715ac_ext=f
13716ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13717ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13718ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13719
13720
13721archive_cmds_need_lc_F77=no
13722allow_undefined_flag_F77=
13723always_export_symbols_F77=no
13724archive_expsym_cmds_F77=
13725export_dynamic_flag_spec_F77=
13726hardcode_direct_F77=no
13727hardcode_libdir_flag_spec_F77=
13728hardcode_libdir_flag_spec_ld_F77=
13729hardcode_libdir_separator_F77=
13730hardcode_minus_L_F77=no
13731hardcode_automatic_F77=no
13732module_cmds_F77=
13733module_expsym_cmds_F77=
13734link_all_deplibs_F77=unknown
13735old_archive_cmds_F77=$old_archive_cmds
13736no_undefined_flag_F77=
13737whole_archive_flag_spec_F77=
13738enable_shared_with_static_runtimes_F77=no
13739
13740# Source file extension for f77 test sources.
13741ac_ext=f
13742
13743# Object file extension for compiled f77 test sources.
13744objext=o
13745objext_F77=$objext
13746
13747# Code to be used in simple compile tests
13748lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13749
13750# Code to be used in simple link tests
13751lt_simple_link_test_code="      program t\n      end\n"
13752
13753# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13754
13755# If no C compiler was specified, use CC.
13756LTCC=${LTCC-"$CC"}
13757
13758# If no C compiler flags were specified, use CFLAGS.
13759LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13760
13761# Allow CC to be a program name with arguments.
13762compiler=$CC
13763
13764
13765# save warnings/boilerplate of simple test code
13766ac_outfile=conftest.$ac_objext
13767printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13768eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13769_lt_compiler_boilerplate=`cat conftest.err`
13770$rm conftest*
13771
13772ac_outfile=conftest.$ac_objext
13773printf "$lt_simple_link_test_code" >conftest.$ac_ext
13774eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13775_lt_linker_boilerplate=`cat conftest.err`
13776$rm conftest*
13777
13778
13779# Allow CC to be a program name with arguments.
13780lt_save_CC="$CC"
13781CC=${F77-"f77"}
13782compiler=$CC
13783compiler_F77=$CC
13784for cc_temp in $compiler""; do
13785  case $cc_temp in
13786    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13787    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13788    \-*) ;;
13789    *) break;;
13790  esac
13791done
13792cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13793
13794
13795{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13796echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13797{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13798echo "${ECHO_T}$can_build_shared" >&6; }
13799
13800{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13801echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13802test "$can_build_shared" = "no" && enable_shared=no
13803
13804# On AIX, shared libraries and static libraries use the same namespace, and
13805# are all built from PIC.
13806case $host_os in
13807aix3*)
13808  test "$enable_shared" = yes && enable_static=no
13809  if test -n "$RANLIB"; then
13810    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13811    postinstall_cmds='$RANLIB $lib'
13812  fi
13813  ;;
13814aix4* | aix5*)
13815  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13816    test "$enable_shared" = yes && enable_static=no
13817  fi
13818  ;;
13819esac
13820{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13821echo "${ECHO_T}$enable_shared" >&6; }
13822
13823{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13824echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13825# Make sure either enable_shared or enable_static is yes.
13826test "$enable_shared" = yes || enable_static=yes
13827{ echo "$as_me:$LINENO: result: $enable_static" >&5
13828echo "${ECHO_T}$enable_static" >&6; }
13829
13830GCC_F77="$G77"
13831LD_F77="$LD"
13832
13833lt_prog_compiler_wl_F77=
13834lt_prog_compiler_pic_F77=
13835lt_prog_compiler_static_F77=
13836
13837{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13838echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13839
13840  if test "$GCC" = yes; then
13841    lt_prog_compiler_wl_F77='-Wl,'
13842    lt_prog_compiler_static_F77='-static'
13843
13844    case $host_os in
13845      aix*)
13846      # All AIX code is PIC.
13847      if test "$host_cpu" = ia64; then
13848	# AIX 5 now supports IA64 processor
13849	lt_prog_compiler_static_F77='-Bstatic'
13850      fi
13851      ;;
13852
13853    amigaos*)
13854      # FIXME: we need at least 68020 code to build shared libraries, but
13855      # adding the `-m68020' flag to GCC prevents building anything better,
13856      # like `-m68040'.
13857      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13858      ;;
13859
13860    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13861      # PIC is the default for these OSes.
13862      ;;
13863
13864    mingw* | pw32* | os2*)
13865      # This hack is so that the source file can tell whether it is being
13866      # built for inclusion in a dll (and should export symbols for example).
13867      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13868      ;;
13869
13870    darwin* | rhapsody*)
13871      # PIC is the default on this platform
13872      # Common symbols not allowed in MH_DYLIB files
13873      lt_prog_compiler_pic_F77='-fno-common'
13874      ;;
13875
13876    interix3*)
13877      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13878      # Instead, we relocate shared libraries at runtime.
13879      ;;
13880
13881    msdosdjgpp*)
13882      # Just because we use GCC doesn't mean we suddenly get shared libraries
13883      # on systems that don't support them.
13884      lt_prog_compiler_can_build_shared_F77=no
13885      enable_shared=no
13886      ;;
13887
13888    sysv4*MP*)
13889      if test -d /usr/nec; then
13890	lt_prog_compiler_pic_F77=-Kconform_pic
13891      fi
13892      ;;
13893
13894    hpux*)
13895      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13896      # not for PA HP-UX.
13897      case $host_cpu in
13898      hppa*64*|ia64*)
13899	# +Z the default
13900	;;
13901      *)
13902	lt_prog_compiler_pic_F77='-fPIC'
13903	;;
13904      esac
13905      ;;
13906
13907    *)
13908      lt_prog_compiler_pic_F77='-fPIC'
13909      ;;
13910    esac
13911  else
13912    # PORTME Check for flag to pass linker flags through the system compiler.
13913    case $host_os in
13914    aix*)
13915      lt_prog_compiler_wl_F77='-Wl,'
13916      if test "$host_cpu" = ia64; then
13917	# AIX 5 now supports IA64 processor
13918	lt_prog_compiler_static_F77='-Bstatic'
13919      else
13920	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13921      fi
13922      ;;
13923      darwin*)
13924        # PIC is the default on this platform
13925        # Common symbols not allowed in MH_DYLIB files
13926       case $cc_basename in
13927         xlc*)
13928         lt_prog_compiler_pic_F77='-qnocommon'
13929         lt_prog_compiler_wl_F77='-Wl,'
13930         ;;
13931       esac
13932       ;;
13933
13934    mingw* | pw32* | os2*)
13935      # This hack is so that the source file can tell whether it is being
13936      # built for inclusion in a dll (and should export symbols for example).
13937      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13938      ;;
13939
13940    hpux9* | hpux10* | hpux11*)
13941      lt_prog_compiler_wl_F77='-Wl,'
13942      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13943      # not for PA HP-UX.
13944      case $host_cpu in
13945      hppa*64*|ia64*)
13946	# +Z the default
13947	;;
13948      *)
13949	lt_prog_compiler_pic_F77='+Z'
13950	;;
13951      esac
13952      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13953      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13954      ;;
13955
13956    irix5* | irix6* | nonstopux*)
13957      lt_prog_compiler_wl_F77='-Wl,'
13958      # PIC (with -KPIC) is the default.
13959      lt_prog_compiler_static_F77='-non_shared'
13960      ;;
13961
13962    newsos6)
13963      lt_prog_compiler_pic_F77='-KPIC'
13964      lt_prog_compiler_static_F77='-Bstatic'
13965      ;;
13966
13967    linux* | k*bsd*-gnu)
13968      case $cc_basename in
13969      icc* | ecc*)
13970	lt_prog_compiler_wl_F77='-Wl,'
13971	lt_prog_compiler_pic_F77='-KPIC'
13972	lt_prog_compiler_static_F77='-static'
13973        ;;
13974      pgcc* | pgf77* | pgf90* | pgf95*)
13975        # Portland Group compilers (*not* the Pentium gcc compiler,
13976	# which looks to be a dead project)
13977	lt_prog_compiler_wl_F77='-Wl,'
13978	lt_prog_compiler_pic_F77='-fpic'
13979	lt_prog_compiler_static_F77='-Bstatic'
13980        ;;
13981      ccc*)
13982        lt_prog_compiler_wl_F77='-Wl,'
13983        # All Alpha code is PIC.
13984        lt_prog_compiler_static_F77='-non_shared'
13985        ;;
13986      esac
13987      ;;
13988
13989    osf3* | osf4* | osf5*)
13990      lt_prog_compiler_wl_F77='-Wl,'
13991      # All OSF/1 code is PIC.
13992      lt_prog_compiler_static_F77='-non_shared'
13993      ;;
13994
13995    solaris*)
13996      lt_prog_compiler_pic_F77='-KPIC'
13997      lt_prog_compiler_static_F77='-Bstatic'
13998      case $cc_basename in
13999      f77* | f90* | f95*)
14000	lt_prog_compiler_wl_F77='-Qoption ld ';;
14001      *)
14002	lt_prog_compiler_wl_F77='-Wl,';;
14003      esac
14004      ;;
14005
14006    sunos4*)
14007      lt_prog_compiler_wl_F77='-Qoption ld '
14008      lt_prog_compiler_pic_F77='-PIC'
14009      lt_prog_compiler_static_F77='-Bstatic'
14010      ;;
14011
14012    sysv4 | sysv4.2uw2* | sysv4.3*)
14013      lt_prog_compiler_wl_F77='-Wl,'
14014      lt_prog_compiler_pic_F77='-KPIC'
14015      lt_prog_compiler_static_F77='-Bstatic'
14016      ;;
14017
14018    sysv4*MP*)
14019      if test -d /usr/nec ;then
14020	lt_prog_compiler_pic_F77='-Kconform_pic'
14021	lt_prog_compiler_static_F77='-Bstatic'
14022      fi
14023      ;;
14024
14025    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14026      lt_prog_compiler_wl_F77='-Wl,'
14027      lt_prog_compiler_pic_F77='-KPIC'
14028      lt_prog_compiler_static_F77='-Bstatic'
14029      ;;
14030
14031    unicos*)
14032      lt_prog_compiler_wl_F77='-Wl,'
14033      lt_prog_compiler_can_build_shared_F77=no
14034      ;;
14035
14036    uts4*)
14037      lt_prog_compiler_pic_F77='-pic'
14038      lt_prog_compiler_static_F77='-Bstatic'
14039      ;;
14040
14041    *)
14042      lt_prog_compiler_can_build_shared_F77=no
14043      ;;
14044    esac
14045  fi
14046
14047{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14048echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14049
14050#
14051# Check to make sure the PIC flag actually works.
14052#
14053if test -n "$lt_prog_compiler_pic_F77"; then
14054
14055{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14056echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14057if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14058  echo $ECHO_N "(cached) $ECHO_C" >&6
14059else
14060  lt_prog_compiler_pic_works_F77=no
14061  ac_outfile=conftest.$ac_objext
14062   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14063   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14064   # Insert the option either (1) after the last *FLAGS variable, or
14065   # (2) before a word containing "conftest.", or (3) at the end.
14066   # Note that $ac_compile itself does not contain backslashes and begins
14067   # with a dollar sign (not a hyphen), so the echo should work correctly.
14068   # The option is referenced via a variable to avoid confusing sed.
14069   lt_compile=`echo "$ac_compile" | $SED \
14070   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14071   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14072   -e 's:$: $lt_compiler_flag:'`
14073   (eval echo "\"\$as_me:14073: $lt_compile\"" >&5)
14074   (eval "$lt_compile" 2>conftest.err)
14075   ac_status=$?
14076   cat conftest.err >&5
14077   echo "$as_me:14077: \$? = $ac_status" >&5
14078   if (exit $ac_status) && test -s "$ac_outfile"; then
14079     # The compiler can only warn and ignore the option if not recognized
14080     # So say no if there are warnings other than the usual output.
14081     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14082     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14083     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14084       lt_prog_compiler_pic_works_F77=yes
14085     fi
14086   fi
14087   $rm conftest*
14088
14089fi
14090{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14091echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14092
14093if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14094    case $lt_prog_compiler_pic_F77 in
14095     "" | " "*) ;;
14096     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14097     esac
14098else
14099    lt_prog_compiler_pic_F77=
14100     lt_prog_compiler_can_build_shared_F77=no
14101fi
14102
14103fi
14104case $host_os in
14105  # For platforms which do not support PIC, -DPIC is meaningless:
14106  *djgpp*)
14107    lt_prog_compiler_pic_F77=
14108    ;;
14109  *)
14110    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14111    ;;
14112esac
14113
14114#
14115# Check to make sure the static flag actually works.
14116#
14117wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14118{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14119echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14120if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14121  echo $ECHO_N "(cached) $ECHO_C" >&6
14122else
14123  lt_prog_compiler_static_works_F77=no
14124   save_LDFLAGS="$LDFLAGS"
14125   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14126   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14127   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14128     # The linker can only warn and ignore the option if not recognized
14129     # So say no if there are warnings
14130     if test -s conftest.err; then
14131       # Append any errors to the config.log.
14132       cat conftest.err 1>&5
14133       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14134       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14135       if diff conftest.exp conftest.er2 >/dev/null; then
14136         lt_prog_compiler_static_works_F77=yes
14137       fi
14138     else
14139       lt_prog_compiler_static_works_F77=yes
14140     fi
14141   fi
14142   $rm conftest*
14143   LDFLAGS="$save_LDFLAGS"
14144
14145fi
14146{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14147echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14148
14149if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14150    :
14151else
14152    lt_prog_compiler_static_F77=
14153fi
14154
14155
14156{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14157echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14158if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14159  echo $ECHO_N "(cached) $ECHO_C" >&6
14160else
14161  lt_cv_prog_compiler_c_o_F77=no
14162   $rm -r conftest 2>/dev/null
14163   mkdir conftest
14164   cd conftest
14165   mkdir out
14166   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14167
14168   lt_compiler_flag="-o out/conftest2.$ac_objext"
14169   # Insert the option either (1) after the last *FLAGS variable, or
14170   # (2) before a word containing "conftest.", or (3) at the end.
14171   # Note that $ac_compile itself does not contain backslashes and begins
14172   # with a dollar sign (not a hyphen), so the echo should work correctly.
14173   lt_compile=`echo "$ac_compile" | $SED \
14174   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14175   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14176   -e 's:$: $lt_compiler_flag:'`
14177   (eval echo "\"\$as_me:14177: $lt_compile\"" >&5)
14178   (eval "$lt_compile" 2>out/conftest.err)
14179   ac_status=$?
14180   cat out/conftest.err >&5
14181   echo "$as_me:14181: \$? = $ac_status" >&5
14182   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14183   then
14184     # The compiler can only warn and ignore the option if not recognized
14185     # So say no if there are warnings
14186     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14187     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14188     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14189       lt_cv_prog_compiler_c_o_F77=yes
14190     fi
14191   fi
14192   chmod u+w . 2>&5
14193   $rm conftest*
14194   # SGI C++ compiler will create directory out/ii_files/ for
14195   # template instantiation
14196   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14197   $rm out/* && rmdir out
14198   cd ..
14199   rmdir conftest
14200   $rm conftest*
14201
14202fi
14203{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14204echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14205
14206
14207hard_links="nottested"
14208if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14209  # do not overwrite the value of need_locks provided by the user
14210  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14211echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14212  hard_links=yes
14213  $rm conftest*
14214  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14215  touch conftest.a
14216  ln conftest.a conftest.b 2>&5 || hard_links=no
14217  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14218  { echo "$as_me:$LINENO: result: $hard_links" >&5
14219echo "${ECHO_T}$hard_links" >&6; }
14220  if test "$hard_links" = no; then
14221    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14222echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14223    need_locks=warn
14224  fi
14225else
14226  need_locks=no
14227fi
14228
14229{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14230echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14231
14232  runpath_var=
14233  allow_undefined_flag_F77=
14234  enable_shared_with_static_runtimes_F77=no
14235  archive_cmds_F77=
14236  archive_expsym_cmds_F77=
14237  old_archive_From_new_cmds_F77=
14238  old_archive_from_expsyms_cmds_F77=
14239  export_dynamic_flag_spec_F77=
14240  whole_archive_flag_spec_F77=
14241  thread_safe_flag_spec_F77=
14242  hardcode_libdir_flag_spec_F77=
14243  hardcode_libdir_flag_spec_ld_F77=
14244  hardcode_libdir_separator_F77=
14245  hardcode_direct_F77=no
14246  hardcode_minus_L_F77=no
14247  hardcode_shlibpath_var_F77=unsupported
14248  link_all_deplibs_F77=unknown
14249  hardcode_automatic_F77=no
14250  module_cmds_F77=
14251  module_expsym_cmds_F77=
14252  always_export_symbols_F77=no
14253  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14254  # include_expsyms should be a list of space-separated symbols to be *always*
14255  # included in the symbol list
14256  include_expsyms_F77=
14257  # exclude_expsyms can be an extended regexp of symbols to exclude
14258  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14259  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14260  # as well as any symbol that contains `d'.
14261  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14262  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14263  # platforms (ab)use it in PIC code, but their linkers get confused if
14264  # the symbol is explicitly referenced.  Since portable code cannot
14265  # rely on this symbol name, it's probably fine to never include it in
14266  # preloaded symbol tables.
14267  extract_expsyms_cmds=
14268  # Just being paranoid about ensuring that cc_basename is set.
14269  for cc_temp in $compiler""; do
14270  case $cc_temp in
14271    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14272    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14273    \-*) ;;
14274    *) break;;
14275  esac
14276done
14277cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14278
14279  case $host_os in
14280  cygwin* | mingw* | pw32*)
14281    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14282    # When not using gcc, we currently assume that we are using
14283    # Microsoft Visual C++.
14284    if test "$GCC" != yes; then
14285      with_gnu_ld=no
14286    fi
14287    ;;
14288  interix*)
14289    # we just hope/assume this is gcc and not c89 (= MSVC++)
14290    with_gnu_ld=yes
14291    ;;
14292  openbsd*)
14293    with_gnu_ld=no
14294    ;;
14295  esac
14296
14297  ld_shlibs_F77=yes
14298  if test "$with_gnu_ld" = yes; then
14299    # If archive_cmds runs LD, not CC, wlarc should be empty
14300    wlarc='${wl}'
14301
14302    # Set some defaults for GNU ld with shared library support. These
14303    # are reset later if shared libraries are not supported. Putting them
14304    # here allows them to be overridden if necessary.
14305    runpath_var=LD_RUN_PATH
14306    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14307    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14308    # ancient GNU ld didn't support --whole-archive et. al.
14309    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14310	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14311      else
14312  	whole_archive_flag_spec_F77=
14313    fi
14314    supports_anon_versioning=no
14315    case `$LD -v 2>/dev/null` in
14316      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14317      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14318      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14319      *\ 2.11.*) ;; # other 2.11 versions
14320      *) supports_anon_versioning=yes ;;
14321    esac
14322
14323    # See if GNU ld supports shared libraries.
14324    case $host_os in
14325    aix3* | aix4* | aix5*)
14326      # On AIX/PPC, the GNU linker is very broken
14327      if test "$host_cpu" != ia64; then
14328	ld_shlibs_F77=no
14329	cat <<EOF 1>&2
14330
14331*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14332*** to be unable to reliably create shared libraries on AIX.
14333*** Therefore, libtool is disabling shared libraries support.  If you
14334*** really care for shared libraries, you may want to modify your PATH
14335*** so that a non-GNU linker is found, and then restart.
14336
14337EOF
14338      fi
14339      ;;
14340
14341    amigaos*)
14342      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)'
14343      hardcode_libdir_flag_spec_F77='-L$libdir'
14344      hardcode_minus_L_F77=yes
14345
14346      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14347      # that the semantics of dynamic libraries on AmigaOS, at least up
14348      # to version 4, is to share data among multiple programs linked
14349      # with the same dynamic library.  Since this doesn't match the
14350      # behavior of shared libraries on other platforms, we can't use
14351      # them.
14352      ld_shlibs_F77=no
14353      ;;
14354
14355    beos*)
14356      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14357	allow_undefined_flag_F77=unsupported
14358	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14359	# support --undefined.  This deserves some investigation.  FIXME
14360	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14361      else
14362	ld_shlibs_F77=no
14363      fi
14364      ;;
14365
14366    cygwin* | mingw* | pw32*)
14367      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14368      # as there is no search path for DLLs.
14369      hardcode_libdir_flag_spec_F77='-L$libdir'
14370      allow_undefined_flag_F77=unsupported
14371      always_export_symbols_F77=no
14372      enable_shared_with_static_runtimes_F77=yes
14373      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14374
14375      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14376        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14377	# If the export-symbols file already is a .def file (1st line
14378	# is EXPORTS), use it as is; otherwise, prepend...
14379	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14380	  cp $export_symbols $output_objdir/$soname.def;
14381	else
14382	  echo EXPORTS > $output_objdir/$soname.def;
14383	  cat $export_symbols >> $output_objdir/$soname.def;
14384	fi~
14385	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14386      else
14387	ld_shlibs_F77=no
14388      fi
14389      ;;
14390
14391    interix3*)
14392      hardcode_direct_F77=no
14393      hardcode_shlibpath_var_F77=no
14394      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14395      export_dynamic_flag_spec_F77='${wl}-E'
14396      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14397      # Instead, shared libraries are loaded at an image base (0x10000000 by
14398      # default) and relocated if they conflict, which is a slow very memory
14399      # consuming and fragmenting process.  To avoid this, we pick a random,
14400      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14401      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14402      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'
14403      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'
14404      ;;
14405
14406    linux* | k*bsd*-gnu)
14407      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14408	tmp_addflag=
14409	case $cc_basename,$host_cpu in
14410	pgcc*)				# Portland Group C compiler
14411	  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'
14412	  tmp_addflag=' $pic_flag'
14413	  ;;
14414	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14415	  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'
14416	  tmp_addflag=' $pic_flag -Mnomain' ;;
14417	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14418	  tmp_addflag=' -i_dynamic' ;;
14419	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14420	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14421	ifc* | ifort*)			# Intel Fortran compiler
14422	  tmp_addflag=' -nofor_main' ;;
14423	esac
14424	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14425
14426	if test $supports_anon_versioning = yes; then
14427	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14428  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14429  $echo "local: *; };" >> $output_objdir/$libname.ver~
14430	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14431	fi
14432	link_all_deplibs_F77=no
14433      else
14434	ld_shlibs_F77=no
14435      fi
14436      ;;
14437
14438    netbsd* | netbsdelf*-gnu)
14439      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14440	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14441	wlarc=
14442      else
14443	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14444	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14445      fi
14446      ;;
14447
14448    solaris*)
14449      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14450	ld_shlibs_F77=no
14451	cat <<EOF 1>&2
14452
14453*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14454*** create shared libraries on Solaris systems.  Therefore, libtool
14455*** is disabling shared libraries support.  We urge you to upgrade GNU
14456*** binutils to release 2.9.1 or newer.  Another option is to modify
14457*** your PATH or compiler configuration so that the native linker is
14458*** used, and then restart.
14459
14460EOF
14461      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14462	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14463	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14464      else
14465	ld_shlibs_F77=no
14466      fi
14467      ;;
14468
14469    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14470      case `$LD -v 2>&1` in
14471        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14472	ld_shlibs_F77=no
14473	cat <<_LT_EOF 1>&2
14474
14475*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14476*** reliably create shared libraries on SCO systems.  Therefore, libtool
14477*** is disabling shared libraries support.  We urge you to upgrade GNU
14478*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14479*** your PATH or compiler configuration so that the native linker is
14480*** used, and then restart.
14481
14482_LT_EOF
14483	;;
14484	*)
14485	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14486	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14487	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14488	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14489	  else
14490	    ld_shlibs_F77=no
14491	  fi
14492	;;
14493      esac
14494      ;;
14495
14496    sunos4*)
14497      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14498      wlarc=
14499      hardcode_direct_F77=yes
14500      hardcode_shlibpath_var_F77=no
14501      ;;
14502
14503    *)
14504      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14505	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14506	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14507      else
14508	ld_shlibs_F77=no
14509      fi
14510      ;;
14511    esac
14512
14513    if test "$ld_shlibs_F77" = no; then
14514      runpath_var=
14515      hardcode_libdir_flag_spec_F77=
14516      export_dynamic_flag_spec_F77=
14517      whole_archive_flag_spec_F77=
14518    fi
14519  else
14520    # PORTME fill in a description of your system's linker (not GNU ld)
14521    case $host_os in
14522    aix3*)
14523      allow_undefined_flag_F77=unsupported
14524      always_export_symbols_F77=yes
14525      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'
14526      # Note: this linker hardcodes the directories in LIBPATH if there
14527      # are no directories specified by -L.
14528      hardcode_minus_L_F77=yes
14529      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14530	# Neither direct hardcoding nor static linking is supported with a
14531	# broken collect2.
14532	hardcode_direct_F77=unsupported
14533      fi
14534      ;;
14535
14536    aix4* | aix5*)
14537      if test "$host_cpu" = ia64; then
14538	# On IA64, the linker does run time linking by default, so we don't
14539	# have to do anything special.
14540	aix_use_runtimelinking=no
14541	exp_sym_flag='-Bexport'
14542	no_entry_flag=""
14543      else
14544	# If we're using GNU nm, then we don't want the "-C" option.
14545	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14546	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14547	  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'
14548	else
14549	  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'
14550	fi
14551	aix_use_runtimelinking=no
14552
14553	# Test if we are trying to use run time linking or normal
14554	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14555	# need to do runtime linking.
14556	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14557	  for ld_flag in $LDFLAGS; do
14558  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14559  	    aix_use_runtimelinking=yes
14560  	    break
14561  	  fi
14562	  done
14563	  ;;
14564	esac
14565
14566	exp_sym_flag='-bexport'
14567	no_entry_flag='-bnoentry'
14568      fi
14569
14570      # When large executables or shared objects are built, AIX ld can
14571      # have problems creating the table of contents.  If linking a library
14572      # or program results in "error TOC overflow" add -mminimal-toc to
14573      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14574      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14575
14576      archive_cmds_F77=''
14577      hardcode_direct_F77=yes
14578      hardcode_libdir_separator_F77=':'
14579      link_all_deplibs_F77=yes
14580
14581      if test "$GCC" = yes; then
14582	case $host_os in aix4.[012]|aix4.[012].*)
14583	# We only want to do this on AIX 4.2 and lower, the check
14584	# below for broken collect2 doesn't work under 4.3+
14585	  collect2name=`${CC} -print-prog-name=collect2`
14586	  if test -f "$collect2name" && \
14587  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14588	  then
14589  	  # We have reworked collect2
14590  	  hardcode_direct_F77=yes
14591	  else
14592  	  # We have old collect2
14593  	  hardcode_direct_F77=unsupported
14594  	  # It fails to find uninstalled libraries when the uninstalled
14595  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14596  	  # to unsupported forces relinking
14597  	  hardcode_minus_L_F77=yes
14598  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14599  	  hardcode_libdir_separator_F77=
14600	  fi
14601	  ;;
14602	esac
14603	shared_flag='-shared'
14604	if test "$aix_use_runtimelinking" = yes; then
14605	  shared_flag="$shared_flag "'${wl}-G'
14606	fi
14607      else
14608	# not using gcc
14609	if test "$host_cpu" = ia64; then
14610  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14611  	# chokes on -Wl,-G. The following line is correct:
14612	  shared_flag='-G'
14613	else
14614	  if test "$aix_use_runtimelinking" = yes; then
14615	    shared_flag='${wl}-G'
14616	  else
14617	    shared_flag='${wl}-bM:SRE'
14618	  fi
14619	fi
14620      fi
14621
14622      # It seems that -bexpall does not export symbols beginning with
14623      # underscore (_), so it is better to generate a list of symbols to export.
14624      always_export_symbols_F77=yes
14625      if test "$aix_use_runtimelinking" = yes; then
14626	# Warning - without using the other runtime loading flags (-brtl),
14627	# -berok will link without error, but may produce a broken library.
14628	allow_undefined_flag_F77='-berok'
14629       # Determine the default libpath from the value encoded in an empty executable.
14630       cat >conftest.$ac_ext <<_ACEOF
14631      program main
14632
14633      end
14634_ACEOF
14635rm -f conftest.$ac_objext conftest$ac_exeext
14636if { (ac_try="$ac_link"
14637case "(($ac_try" in
14638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14639  *) ac_try_echo=$ac_try;;
14640esac
14641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14642  (eval "$ac_link") 2>conftest.er1
14643  ac_status=$?
14644  grep -v '^ *+' conftest.er1 >conftest.err
14645  rm -f conftest.er1
14646  cat conftest.err >&5
14647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648  (exit $ac_status); } && {
14649	 test -z "$ac_f77_werror_flag" ||
14650	 test ! -s conftest.err
14651       } && test -s conftest$ac_exeext &&
14652       $as_test_x conftest$ac_exeext; then
14653
14654aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14655}'`
14656# Check for a 64-bit object if we didn't find anything.
14657if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14658}'`; fi
14659else
14660  echo "$as_me: failed program was:" >&5
14661sed 's/^/| /' conftest.$ac_ext >&5
14662
14663
14664fi
14665
14666rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14667      conftest$ac_exeext conftest.$ac_ext
14668if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14669
14670       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14671	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"
14672       else
14673	if test "$host_cpu" = ia64; then
14674	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14675	  allow_undefined_flag_F77="-z nodefs"
14676	  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"
14677	else
14678	 # Determine the default libpath from the value encoded in an empty executable.
14679	 cat >conftest.$ac_ext <<_ACEOF
14680      program main
14681
14682      end
14683_ACEOF
14684rm -f conftest.$ac_objext conftest$ac_exeext
14685if { (ac_try="$ac_link"
14686case "(($ac_try" in
14687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688  *) ac_try_echo=$ac_try;;
14689esac
14690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691  (eval "$ac_link") 2>conftest.er1
14692  ac_status=$?
14693  grep -v '^ *+' conftest.er1 >conftest.err
14694  rm -f conftest.er1
14695  cat conftest.err >&5
14696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697  (exit $ac_status); } && {
14698	 test -z "$ac_f77_werror_flag" ||
14699	 test ! -s conftest.err
14700       } && test -s conftest$ac_exeext &&
14701       $as_test_x conftest$ac_exeext; then
14702
14703aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14704}'`
14705# Check for a 64-bit object if we didn't find anything.
14706if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14707}'`; fi
14708else
14709  echo "$as_me: failed program was:" >&5
14710sed 's/^/| /' conftest.$ac_ext >&5
14711
14712
14713fi
14714
14715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14716      conftest$ac_exeext conftest.$ac_ext
14717if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14718
14719	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14720	  # Warning - without using the other run time loading flags,
14721	  # -berok will link without error, but may produce a broken library.
14722	  no_undefined_flag_F77=' ${wl}-bernotok'
14723	  allow_undefined_flag_F77=' ${wl}-berok'
14724	  # Exported symbols can be pulled into shared objects from archives
14725	  whole_archive_flag_spec_F77='$convenience'
14726	  archive_cmds_need_lc_F77=yes
14727	  # This is similar to how AIX traditionally builds its shared libraries.
14728	  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'
14729	fi
14730      fi
14731      ;;
14732
14733    amigaos*)
14734      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)'
14735      hardcode_libdir_flag_spec_F77='-L$libdir'
14736      hardcode_minus_L_F77=yes
14737      # see comment about different semantics on the GNU ld section
14738      ld_shlibs_F77=no
14739      ;;
14740
14741    bsdi[45]*)
14742      export_dynamic_flag_spec_F77=-rdynamic
14743      ;;
14744
14745    cygwin* | mingw* | pw32*)
14746      # When not using gcc, we currently assume that we are using
14747      # Microsoft Visual C++.
14748      # hardcode_libdir_flag_spec is actually meaningless, as there is
14749      # no search path for DLLs.
14750      hardcode_libdir_flag_spec_F77=' '
14751      allow_undefined_flag_F77=unsupported
14752      # Tell ltmain to make .lib files, not .a files.
14753      libext=lib
14754      # Tell ltmain to make .dll files, not .so files.
14755      shrext_cmds=".dll"
14756      # FIXME: Setting linknames here is a bad hack.
14757      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14758      # The linker will automatically build a .lib file if we build a DLL.
14759      old_archive_From_new_cmds_F77='true'
14760      # FIXME: Should let the user specify the lib program.
14761      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14762      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14763      enable_shared_with_static_runtimes_F77=yes
14764      ;;
14765
14766    darwin* | rhapsody*)
14767      case $host_os in
14768        rhapsody* | darwin1.[012])
14769         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14770         ;;
14771       *) # Darwin 1.3 on
14772         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14773           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14774         else
14775           case ${MACOSX_DEPLOYMENT_TARGET} in
14776             10.[012])
14777               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14778               ;;
14779             10.*)
14780               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14781               ;;
14782           esac
14783         fi
14784         ;;
14785      esac
14786      archive_cmds_need_lc_F77=no
14787      hardcode_direct_F77=no
14788      hardcode_automatic_F77=yes
14789      hardcode_shlibpath_var_F77=unsupported
14790      whole_archive_flag_spec_F77=''
14791      link_all_deplibs_F77=yes
14792    if test "$GCC" = yes ; then
14793    	output_verbose_link_cmd='echo'
14794        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14795      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14796      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14797      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14798      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}'
14799    else
14800      case $cc_basename in
14801        xlc*)
14802         output_verbose_link_cmd='echo'
14803         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14804         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14805          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14806         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14807          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}'
14808          ;;
14809       *)
14810         ld_shlibs_F77=no
14811          ;;
14812      esac
14813    fi
14814      ;;
14815
14816    dgux*)
14817      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14818      hardcode_libdir_flag_spec_F77='-L$libdir'
14819      hardcode_shlibpath_var_F77=no
14820      ;;
14821
14822    freebsd1*)
14823      ld_shlibs_F77=no
14824      ;;
14825
14826    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14827    # support.  Future versions do this automatically, but an explicit c++rt0.o
14828    # does not break anything, and helps significantly (at the cost of a little
14829    # extra space).
14830    freebsd2.2*)
14831      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14832      hardcode_libdir_flag_spec_F77='-R$libdir'
14833      hardcode_direct_F77=yes
14834      hardcode_shlibpath_var_F77=no
14835      ;;
14836
14837    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14838    freebsd2*)
14839      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14840      hardcode_direct_F77=yes
14841      hardcode_minus_L_F77=yes
14842      hardcode_shlibpath_var_F77=no
14843      ;;
14844
14845    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14846    freebsd* | dragonfly*)
14847      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14848      hardcode_libdir_flag_spec_F77='-R$libdir'
14849      hardcode_direct_F77=yes
14850      hardcode_shlibpath_var_F77=no
14851      ;;
14852
14853    hpux9*)
14854      if test "$GCC" = yes; then
14855	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'
14856      else
14857	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'
14858      fi
14859      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14860      hardcode_libdir_separator_F77=:
14861      hardcode_direct_F77=yes
14862
14863      # hardcode_minus_L: Not really in the search PATH,
14864      # but as the default location of the library.
14865      hardcode_minus_L_F77=yes
14866      export_dynamic_flag_spec_F77='${wl}-E'
14867      ;;
14868
14869    hpux10*)
14870      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14871	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14872      else
14873	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14874      fi
14875      if test "$with_gnu_ld" = no; then
14876	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14877	hardcode_libdir_separator_F77=:
14878
14879	hardcode_direct_F77=yes
14880	export_dynamic_flag_spec_F77='${wl}-E'
14881
14882	# hardcode_minus_L: Not really in the search PATH,
14883	# but as the default location of the library.
14884	hardcode_minus_L_F77=yes
14885      fi
14886      ;;
14887
14888    hpux11*)
14889      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14890	case $host_cpu in
14891	hppa*64*)
14892	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14893	  ;;
14894	ia64*)
14895	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14896	  ;;
14897	*)
14898	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14899	  ;;
14900	esac
14901      else
14902	case $host_cpu in
14903	hppa*64*)
14904	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14905	  ;;
14906	ia64*)
14907	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14908	  ;;
14909	*)
14910	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14911	  ;;
14912	esac
14913      fi
14914      if test "$with_gnu_ld" = no; then
14915	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14916	hardcode_libdir_separator_F77=:
14917
14918	case $host_cpu in
14919	hppa*64*|ia64*)
14920	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14921	  hardcode_direct_F77=no
14922	  hardcode_shlibpath_var_F77=no
14923	  ;;
14924	*)
14925	  hardcode_direct_F77=yes
14926	  export_dynamic_flag_spec_F77='${wl}-E'
14927
14928	  # hardcode_minus_L: Not really in the search PATH,
14929	  # but as the default location of the library.
14930	  hardcode_minus_L_F77=yes
14931	  ;;
14932	esac
14933      fi
14934      ;;
14935
14936    irix5* | irix6* | nonstopux*)
14937      if test "$GCC" = yes; then
14938	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'
14939      else
14940	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'
14941	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14942      fi
14943      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14944      hardcode_libdir_separator_F77=:
14945      link_all_deplibs_F77=yes
14946      ;;
14947
14948    netbsd* | netbsdelf*-gnu)
14949      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14950	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14951      else
14952	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14953      fi
14954      hardcode_libdir_flag_spec_F77='-R$libdir'
14955      hardcode_direct_F77=yes
14956      hardcode_shlibpath_var_F77=no
14957      ;;
14958
14959    newsos6)
14960      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14961      hardcode_direct_F77=yes
14962      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14963      hardcode_libdir_separator_F77=:
14964      hardcode_shlibpath_var_F77=no
14965      ;;
14966
14967    openbsd*)
14968      hardcode_direct_F77=yes
14969      hardcode_shlibpath_var_F77=no
14970      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14971	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14972	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14973	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14974	export_dynamic_flag_spec_F77='${wl}-E'
14975      else
14976       case $host_os in
14977	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14978	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14979	   hardcode_libdir_flag_spec_F77='-R$libdir'
14980	   ;;
14981	 *)
14982	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14983	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14984	   ;;
14985       esac
14986      fi
14987      ;;
14988
14989    os2*)
14990      hardcode_libdir_flag_spec_F77='-L$libdir'
14991      hardcode_minus_L_F77=yes
14992      allow_undefined_flag_F77=unsupported
14993      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'
14994      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14995      ;;
14996
14997    osf3*)
14998      if test "$GCC" = yes; then
14999	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15000	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'
15001      else
15002	allow_undefined_flag_F77=' -expect_unresolved \*'
15003	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'
15004      fi
15005      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15006      hardcode_libdir_separator_F77=:
15007      ;;
15008
15009    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15010      if test "$GCC" = yes; then
15011	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15012	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'
15013	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15014      else
15015	allow_undefined_flag_F77=' -expect_unresolved \*'
15016	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'
15017	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~
15018	$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'
15019
15020	# Both c and cxx compiler support -rpath directly
15021	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15022      fi
15023      hardcode_libdir_separator_F77=:
15024      ;;
15025
15026    solaris*)
15027      no_undefined_flag_F77=' -z text'
15028      if test "$GCC" = yes; then
15029	wlarc='${wl}'
15030	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15031	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15032	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15033      else
15034	wlarc=''
15035	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15036	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15037  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15038      fi
15039      hardcode_libdir_flag_spec_F77='-R$libdir'
15040      hardcode_shlibpath_var_F77=no
15041      case $host_os in
15042      solaris2.[0-5] | solaris2.[0-5].*) ;;
15043      *)
15044 	# The compiler driver will combine linker options so we
15045 	# cannot just pass the convience library names through
15046 	# without $wl, iff we do not link with $LD.
15047 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15048 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15049 	case $wlarc in
15050 	'')
15051 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15052 	*)
15053 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15054 	esac ;;
15055      esac
15056      link_all_deplibs_F77=yes
15057      ;;
15058
15059    sunos4*)
15060      if test "x$host_vendor" = xsequent; then
15061	# Use $CC to link under sequent, because it throws in some extra .o
15062	# files that make .init and .fini sections work.
15063	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15064      else
15065	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15066      fi
15067      hardcode_libdir_flag_spec_F77='-L$libdir'
15068      hardcode_direct_F77=yes
15069      hardcode_minus_L_F77=yes
15070      hardcode_shlibpath_var_F77=no
15071      ;;
15072
15073    sysv4)
15074      case $host_vendor in
15075	sni)
15076	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15077	  hardcode_direct_F77=yes # is this really true???
15078	;;
15079	siemens)
15080	  ## LD is ld it makes a PLAMLIB
15081	  ## CC just makes a GrossModule.
15082	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15083	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15084	  hardcode_direct_F77=no
15085        ;;
15086	motorola)
15087	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15088	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15089	;;
15090      esac
15091      runpath_var='LD_RUN_PATH'
15092      hardcode_shlibpath_var_F77=no
15093      ;;
15094
15095    sysv4.3*)
15096      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15097      hardcode_shlibpath_var_F77=no
15098      export_dynamic_flag_spec_F77='-Bexport'
15099      ;;
15100
15101    sysv4*MP*)
15102      if test -d /usr/nec; then
15103	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15104	hardcode_shlibpath_var_F77=no
15105	runpath_var=LD_RUN_PATH
15106	hardcode_runpath_var=yes
15107	ld_shlibs_F77=yes
15108      fi
15109      ;;
15110
15111    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15112      no_undefined_flag_F77='${wl}-z,text'
15113      archive_cmds_need_lc_F77=no
15114      hardcode_shlibpath_var_F77=no
15115      runpath_var='LD_RUN_PATH'
15116
15117      if test "$GCC" = yes; then
15118	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15119	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15120      else
15121	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15122	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15123      fi
15124      ;;
15125
15126    sysv5* | sco3.2v5* | sco5v6*)
15127      # Note: We can NOT use -z defs as we might desire, because we do not
15128      # link with -lc, and that would cause any symbols used from libc to
15129      # always be unresolved, which means just about no library would
15130      # ever link correctly.  If we're not using GNU ld we use -z text
15131      # though, which does catch some bad symbols but isn't as heavy-handed
15132      # as -z defs.
15133      no_undefined_flag_F77='${wl}-z,text'
15134      allow_undefined_flag_F77='${wl}-z,nodefs'
15135      archive_cmds_need_lc_F77=no
15136      hardcode_shlibpath_var_F77=no
15137      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15138      hardcode_libdir_separator_F77=':'
15139      link_all_deplibs_F77=yes
15140      export_dynamic_flag_spec_F77='${wl}-Bexport'
15141      runpath_var='LD_RUN_PATH'
15142
15143      if test "$GCC" = yes; then
15144	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15145	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15146      else
15147	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15148	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15149      fi
15150      ;;
15151
15152    uts4*)
15153      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15154      hardcode_libdir_flag_spec_F77='-L$libdir'
15155      hardcode_shlibpath_var_F77=no
15156      ;;
15157
15158    *)
15159      ld_shlibs_F77=no
15160      ;;
15161    esac
15162  fi
15163
15164{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15165echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15166test "$ld_shlibs_F77" = no && can_build_shared=no
15167
15168#
15169# Do we need to explicitly link libc?
15170#
15171case "x$archive_cmds_need_lc_F77" in
15172x|xyes)
15173  # Assume -lc should be added
15174  archive_cmds_need_lc_F77=yes
15175
15176  if test "$enable_shared" = yes && test "$GCC" = yes; then
15177    case $archive_cmds_F77 in
15178    *'~'*)
15179      # FIXME: we may have to deal with multi-command sequences.
15180      ;;
15181    '$CC '*)
15182      # Test whether the compiler implicitly links with -lc since on some
15183      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15184      # to ld, don't add -lc before -lgcc.
15185      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15186echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15187      $rm conftest*
15188      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15189
15190      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15191  (eval $ac_compile) 2>&5
15192  ac_status=$?
15193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194  (exit $ac_status); } 2>conftest.err; then
15195        soname=conftest
15196        lib=conftest
15197        libobjs=conftest.$ac_objext
15198        deplibs=
15199        wl=$lt_prog_compiler_wl_F77
15200	pic_flag=$lt_prog_compiler_pic_F77
15201        compiler_flags=-v
15202        linker_flags=-v
15203        verstring=
15204        output_objdir=.
15205        libname=conftest
15206        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15207        allow_undefined_flag_F77=
15208        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15209  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15210  ac_status=$?
15211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212  (exit $ac_status); }
15213        then
15214	  archive_cmds_need_lc_F77=no
15215        else
15216	  archive_cmds_need_lc_F77=yes
15217        fi
15218        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15219      else
15220        cat conftest.err 1>&5
15221      fi
15222      $rm conftest*
15223      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15224echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15225      ;;
15226    esac
15227  fi
15228  ;;
15229esac
15230
15231{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15232echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15233library_names_spec=
15234libname_spec='lib$name'
15235soname_spec=
15236shrext_cmds=".so"
15237postinstall_cmds=
15238postuninstall_cmds=
15239finish_cmds=
15240finish_eval=
15241shlibpath_var=
15242shlibpath_overrides_runpath=unknown
15243version_type=none
15244dynamic_linker="$host_os ld.so"
15245sys_lib_dlsearch_path_spec="/lib /usr/lib"
15246if test "$GCC" = yes; then
15247  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15248  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15249    # if the path contains ";" then we assume it to be the separator
15250    # otherwise default to the standard path separator (i.e. ":") - it is
15251    # assumed that no part of a normal pathname contains ";" but that should
15252    # okay in the real world where ";" in dirpaths is itself problematic.
15253    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15254  else
15255    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15256  fi
15257else
15258  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15259fi
15260need_lib_prefix=unknown
15261hardcode_into_libs=no
15262
15263# when you set need_version to no, make sure it does not cause -set_version
15264# flags to be left without arguments
15265need_version=unknown
15266
15267case $host_os in
15268aix3*)
15269  version_type=linux
15270  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15271  shlibpath_var=LIBPATH
15272
15273  # AIX 3 has no versioning support, so we append a major version to the name.
15274  soname_spec='${libname}${release}${shared_ext}$major'
15275  ;;
15276
15277aix4* | aix5*)
15278  version_type=linux
15279  need_lib_prefix=no
15280  need_version=no
15281  hardcode_into_libs=yes
15282  if test "$host_cpu" = ia64; then
15283    # AIX 5 supports IA64
15284    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15285    shlibpath_var=LD_LIBRARY_PATH
15286  else
15287    # With GCC up to 2.95.x, collect2 would create an import file
15288    # for dependence libraries.  The import file would start with
15289    # the line `#! .'.  This would cause the generated library to
15290    # depend on `.', always an invalid library.  This was fixed in
15291    # development snapshots of GCC prior to 3.0.
15292    case $host_os in
15293      aix4 | aix4.[01] | aix4.[01].*)
15294      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15295	   echo ' yes '
15296	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15297	:
15298      else
15299	can_build_shared=no
15300      fi
15301      ;;
15302    esac
15303    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15304    # soname into executable. Probably we can add versioning support to
15305    # collect2, so additional links can be useful in future.
15306    if test "$aix_use_runtimelinking" = yes; then
15307      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15308      # instead of lib<name>.a to let people know that these are not
15309      # typical AIX shared libraries.
15310      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15311    else
15312      # We preserve .a as extension for shared libraries through AIX4.2
15313      # and later when we are not doing run time linking.
15314      library_names_spec='${libname}${release}.a $libname.a'
15315      soname_spec='${libname}${release}${shared_ext}$major'
15316    fi
15317    shlibpath_var=LIBPATH
15318  fi
15319  ;;
15320
15321amigaos*)
15322  library_names_spec='$libname.ixlibrary $libname.a'
15323  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15324  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'
15325  ;;
15326
15327beos*)
15328  library_names_spec='${libname}${shared_ext}'
15329  dynamic_linker="$host_os ld.so"
15330  shlibpath_var=LIBRARY_PATH
15331  ;;
15332
15333bsdi[45]*)
15334  version_type=linux
15335  need_version=no
15336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15337  soname_spec='${libname}${release}${shared_ext}$major'
15338  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15339  shlibpath_var=LD_LIBRARY_PATH
15340  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15341  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15342  # the default ld.so.conf also contains /usr/contrib/lib and
15343  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15344  # libtool to hard-code these into programs
15345  ;;
15346
15347cygwin* | mingw* | pw32*)
15348  version_type=windows
15349  shrext_cmds=".dll"
15350  need_version=no
15351  need_lib_prefix=no
15352
15353  case $GCC,$host_os in
15354  yes,cygwin* | yes,mingw* | yes,pw32*)
15355    library_names_spec='$libname.dll.a'
15356    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15357    postinstall_cmds='base_file=`basename \${file}`~
15358      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15359      dldir=$destdir/`dirname \$dlpath`~
15360      test -d \$dldir || mkdir -p \$dldir~
15361      $install_prog $dir/$dlname \$dldir/$dlname~
15362      chmod a+x \$dldir/$dlname'
15363    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15364      dlpath=$dir/\$dldll~
15365       $rm \$dlpath'
15366    shlibpath_overrides_runpath=yes
15367
15368    case $host_os in
15369    cygwin*)
15370      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15371      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15372      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15373      ;;
15374    mingw*)
15375      # MinGW DLLs use traditional 'lib' prefix
15376      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15377      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15378      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15379        # It is most probably a Windows format PATH printed by
15380        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15381        # path with ; separators, and with drive letters. We can handle the
15382        # drive letters (cygwin fileutils understands them), so leave them,
15383        # especially as we might pass files found there to a mingw objdump,
15384        # which wouldn't understand a cygwinified path. Ahh.
15385        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15386      else
15387        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15388      fi
15389      ;;
15390    pw32*)
15391      # pw32 DLLs use 'pw' prefix rather than 'lib'
15392      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15393      ;;
15394    esac
15395    ;;
15396
15397  *)
15398    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15399    ;;
15400  esac
15401  dynamic_linker='Win32 ld.exe'
15402  # FIXME: first we should search . and the directory the executable is in
15403  shlibpath_var=PATH
15404  ;;
15405
15406darwin* | rhapsody*)
15407  dynamic_linker="$host_os dyld"
15408  version_type=darwin
15409  need_lib_prefix=no
15410  need_version=no
15411  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15412  soname_spec='${libname}${release}${major}$shared_ext'
15413  shlibpath_overrides_runpath=yes
15414  shlibpath_var=DYLD_LIBRARY_PATH
15415  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15416  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15417  if test "$GCC" = yes; then
15418    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15419  else
15420    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15421  fi
15422  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15423  ;;
15424
15425dgux*)
15426  version_type=linux
15427  need_lib_prefix=no
15428  need_version=no
15429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15430  soname_spec='${libname}${release}${shared_ext}$major'
15431  shlibpath_var=LD_LIBRARY_PATH
15432  ;;
15433
15434freebsd1*)
15435  dynamic_linker=no
15436  ;;
15437
15438freebsd* | dragonfly*)
15439  # DragonFly does not have aout.  When/if they implement a new
15440  # versioning mechanism, adjust this.
15441  if test -x /usr/bin/objformat; then
15442    objformat=`/usr/bin/objformat`
15443  else
15444    case $host_os in
15445    freebsd[123]*) objformat=aout ;;
15446    *) objformat=elf ;;
15447    esac
15448  fi
15449  version_type=freebsd-$objformat
15450  case $version_type in
15451    freebsd-elf*)
15452      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15453      need_version=no
15454      need_lib_prefix=no
15455      ;;
15456    freebsd-*)
15457      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15458      need_version=yes
15459      ;;
15460  esac
15461  shlibpath_var=LD_LIBRARY_PATH
15462  case $host_os in
15463  freebsd2*)
15464    shlibpath_overrides_runpath=yes
15465    ;;
15466  freebsd3.[01]* | freebsdelf3.[01]*)
15467    shlibpath_overrides_runpath=yes
15468    hardcode_into_libs=yes
15469    ;;
15470  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15471  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15472    shlibpath_overrides_runpath=no
15473    hardcode_into_libs=yes
15474    ;;
15475  freebsd*) # from 4.6 on
15476    shlibpath_overrides_runpath=yes
15477    hardcode_into_libs=yes
15478    ;;
15479  esac
15480  ;;
15481
15482gnu*)
15483  version_type=linux
15484  need_lib_prefix=no
15485  need_version=no
15486  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15487  soname_spec='${libname}${release}${shared_ext}$major'
15488  shlibpath_var=LD_LIBRARY_PATH
15489  hardcode_into_libs=yes
15490  ;;
15491
15492hpux9* | hpux10* | hpux11*)
15493  # Give a soname corresponding to the major version so that dld.sl refuses to
15494  # link against other versions.
15495  version_type=sunos
15496  need_lib_prefix=no
15497  need_version=no
15498  case $host_cpu in
15499  ia64*)
15500    shrext_cmds='.so'
15501    hardcode_into_libs=yes
15502    dynamic_linker="$host_os dld.so"
15503    shlibpath_var=LD_LIBRARY_PATH
15504    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15505    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15506    soname_spec='${libname}${release}${shared_ext}$major'
15507    if test "X$HPUX_IA64_MODE" = X32; then
15508      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15509    else
15510      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15511    fi
15512    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15513    ;;
15514   hppa*64*)
15515     shrext_cmds='.sl'
15516     hardcode_into_libs=yes
15517     dynamic_linker="$host_os dld.sl"
15518     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15519     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15520     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521     soname_spec='${libname}${release}${shared_ext}$major'
15522     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15523     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15524     ;;
15525   *)
15526    shrext_cmds='.sl'
15527    dynamic_linker="$host_os dld.sl"
15528    shlibpath_var=SHLIB_PATH
15529    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15530    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15531    soname_spec='${libname}${release}${shared_ext}$major'
15532    ;;
15533  esac
15534  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15535  postinstall_cmds='chmod 555 $lib'
15536  ;;
15537
15538interix3*)
15539  version_type=linux
15540  need_lib_prefix=no
15541  need_version=no
15542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15543  soname_spec='${libname}${release}${shared_ext}$major'
15544  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15545  shlibpath_var=LD_LIBRARY_PATH
15546  shlibpath_overrides_runpath=no
15547  hardcode_into_libs=yes
15548  ;;
15549
15550irix5* | irix6* | nonstopux*)
15551  case $host_os in
15552    nonstopux*) version_type=nonstopux ;;
15553    *)
15554	if test "$lt_cv_prog_gnu_ld" = yes; then
15555		version_type=linux
15556	else
15557		version_type=irix
15558	fi ;;
15559  esac
15560  need_lib_prefix=no
15561  need_version=no
15562  soname_spec='${libname}${release}${shared_ext}$major'
15563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15564  case $host_os in
15565  irix5* | nonstopux*)
15566    libsuff= shlibsuff=
15567    ;;
15568  *)
15569    case $LD in # libtool.m4 will add one of these switches to LD
15570    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15571      libsuff= shlibsuff= libmagic=32-bit;;
15572    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15573      libsuff=32 shlibsuff=N32 libmagic=N32;;
15574    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15575      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15576    *) libsuff= shlibsuff= libmagic=never-match;;
15577    esac
15578    ;;
15579  esac
15580  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15581  shlibpath_overrides_runpath=no
15582  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15583  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15584  hardcode_into_libs=yes
15585  ;;
15586
15587# No shared lib support for Linux oldld, aout, or coff.
15588linux*oldld* | linux*aout* | linux*coff*)
15589  dynamic_linker=no
15590  ;;
15591
15592# This must be Linux ELF.
15593linux* | k*bsd*-gnu)
15594  version_type=linux
15595  need_lib_prefix=no
15596  need_version=no
15597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15598  soname_spec='${libname}${release}${shared_ext}$major'
15599  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15600  shlibpath_var=LD_LIBRARY_PATH
15601  shlibpath_overrides_runpath=no
15602  # This implies no fast_install, which is unacceptable.
15603  # Some rework will be needed to allow for fast_install
15604  # before this can be enabled.
15605  hardcode_into_libs=yes
15606
15607  # Append ld.so.conf contents to the search path
15608  if test -f /etc/ld.so.conf; then
15609    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15610    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15611  fi
15612
15613  # We used to test for /lib/ld.so.1 and disable shared libraries on
15614  # powerpc, because MkLinux only supported shared libraries with the
15615  # GNU dynamic linker.  Since this was broken with cross compilers,
15616  # most powerpc-linux boxes support dynamic linking these days and
15617  # people can always --disable-shared, the test was removed, and we
15618  # assume the GNU/Linux dynamic linker is in use.
15619  dynamic_linker='GNU/Linux ld.so'
15620  ;;
15621
15622netbsdelf*-gnu)
15623  version_type=linux
15624  need_lib_prefix=no
15625  need_version=no
15626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15627  soname_spec='${libname}${release}${shared_ext}$major'
15628  shlibpath_var=LD_LIBRARY_PATH
15629  shlibpath_overrides_runpath=no
15630  hardcode_into_libs=yes
15631  dynamic_linker='NetBSD ld.elf_so'
15632  ;;
15633
15634netbsd*)
15635  version_type=sunos
15636  need_lib_prefix=no
15637  need_version=no
15638  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15639    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15640    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15641    dynamic_linker='NetBSD (a.out) ld.so'
15642  else
15643    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15644    soname_spec='${libname}${release}${shared_ext}$major'
15645    dynamic_linker='NetBSD ld.elf_so'
15646  fi
15647  shlibpath_var=LD_LIBRARY_PATH
15648  shlibpath_overrides_runpath=yes
15649  hardcode_into_libs=yes
15650  ;;
15651
15652newsos6)
15653  version_type=linux
15654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15655  shlibpath_var=LD_LIBRARY_PATH
15656  shlibpath_overrides_runpath=yes
15657  ;;
15658
15659nto-qnx*)
15660  version_type=linux
15661  need_lib_prefix=no
15662  need_version=no
15663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15664  soname_spec='${libname}${release}${shared_ext}$major'
15665  shlibpath_var=LD_LIBRARY_PATH
15666  shlibpath_overrides_runpath=yes
15667  ;;
15668
15669openbsd*)
15670  version_type=sunos
15671  sys_lib_dlsearch_path_spec="/usr/lib"
15672  need_lib_prefix=no
15673  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15674  case $host_os in
15675    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15676    *)                         need_version=no  ;;
15677  esac
15678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15679  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15680  shlibpath_var=LD_LIBRARY_PATH
15681  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15682    case $host_os in
15683      openbsd2.[89] | openbsd2.[89].*)
15684	shlibpath_overrides_runpath=no
15685	;;
15686      *)
15687	shlibpath_overrides_runpath=yes
15688	;;
15689      esac
15690  else
15691    shlibpath_overrides_runpath=yes
15692  fi
15693  ;;
15694
15695os2*)
15696  libname_spec='$name'
15697  shrext_cmds=".dll"
15698  need_lib_prefix=no
15699  library_names_spec='$libname${shared_ext} $libname.a'
15700  dynamic_linker='OS/2 ld.exe'
15701  shlibpath_var=LIBPATH
15702  ;;
15703
15704osf3* | osf4* | osf5*)
15705  version_type=osf
15706  need_lib_prefix=no
15707  need_version=no
15708  soname_spec='${libname}${release}${shared_ext}$major'
15709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15710  shlibpath_var=LD_LIBRARY_PATH
15711  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15712  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15713  ;;
15714
15715solaris*)
15716  version_type=linux
15717  need_lib_prefix=no
15718  need_version=no
15719  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720  soname_spec='${libname}${release}${shared_ext}$major'
15721  shlibpath_var=LD_LIBRARY_PATH
15722  shlibpath_overrides_runpath=yes
15723  hardcode_into_libs=yes
15724  # ldd complains unless libraries are executable
15725  postinstall_cmds='chmod +x $lib'
15726  ;;
15727
15728sunos4*)
15729  version_type=sunos
15730  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15731  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15732  shlibpath_var=LD_LIBRARY_PATH
15733  shlibpath_overrides_runpath=yes
15734  if test "$with_gnu_ld" = yes; then
15735    need_lib_prefix=no
15736  fi
15737  need_version=yes
15738  ;;
15739
15740sysv4 | sysv4.3*)
15741  version_type=linux
15742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15743  soname_spec='${libname}${release}${shared_ext}$major'
15744  shlibpath_var=LD_LIBRARY_PATH
15745  case $host_vendor in
15746    sni)
15747      shlibpath_overrides_runpath=no
15748      need_lib_prefix=no
15749      export_dynamic_flag_spec='${wl}-Blargedynsym'
15750      runpath_var=LD_RUN_PATH
15751      ;;
15752    siemens)
15753      need_lib_prefix=no
15754      ;;
15755    motorola)
15756      need_lib_prefix=no
15757      need_version=no
15758      shlibpath_overrides_runpath=no
15759      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15760      ;;
15761  esac
15762  ;;
15763
15764sysv4*MP*)
15765  if test -d /usr/nec ;then
15766    version_type=linux
15767    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15768    soname_spec='$libname${shared_ext}.$major'
15769    shlibpath_var=LD_LIBRARY_PATH
15770  fi
15771  ;;
15772
15773sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15774  version_type=freebsd-elf
15775  need_lib_prefix=no
15776  need_version=no
15777  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15778  soname_spec='${libname}${release}${shared_ext}$major'
15779  shlibpath_var=LD_LIBRARY_PATH
15780  hardcode_into_libs=yes
15781  if test "$with_gnu_ld" = yes; then
15782    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15783    shlibpath_overrides_runpath=no
15784  else
15785    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15786    shlibpath_overrides_runpath=yes
15787    case $host_os in
15788      sco3.2v5*)
15789        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15790	;;
15791    esac
15792  fi
15793  sys_lib_dlsearch_path_spec='/usr/lib'
15794  ;;
15795
15796uts4*)
15797  version_type=linux
15798  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15799  soname_spec='${libname}${release}${shared_ext}$major'
15800  shlibpath_var=LD_LIBRARY_PATH
15801  ;;
15802
15803*)
15804  dynamic_linker=no
15805  ;;
15806esac
15807{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15808echo "${ECHO_T}$dynamic_linker" >&6; }
15809test "$dynamic_linker" = no && can_build_shared=no
15810
15811variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15812if test "$GCC" = yes; then
15813  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15814fi
15815
15816{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15817echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15818hardcode_action_F77=
15819if test -n "$hardcode_libdir_flag_spec_F77" || \
15820   test -n "$runpath_var_F77" || \
15821   test "X$hardcode_automatic_F77" = "Xyes" ; then
15822
15823  # We can hardcode non-existant directories.
15824  if test "$hardcode_direct_F77" != no &&
15825     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15826     # have to relink, otherwise we might link with an installed library
15827     # when we should be linking with a yet-to-be-installed one
15828     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15829     test "$hardcode_minus_L_F77" != no; then
15830    # Linking always hardcodes the temporary library directory.
15831    hardcode_action_F77=relink
15832  else
15833    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15834    hardcode_action_F77=immediate
15835  fi
15836else
15837  # We cannot hardcode anything, or else we can only hardcode existing
15838  # directories.
15839  hardcode_action_F77=unsupported
15840fi
15841{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15842echo "${ECHO_T}$hardcode_action_F77" >&6; }
15843
15844if test "$hardcode_action_F77" = relink; then
15845  # Fast installation is not supported
15846  enable_fast_install=no
15847elif test "$shlibpath_overrides_runpath" = yes ||
15848     test "$enable_shared" = no; then
15849  # Fast installation is not necessary
15850  enable_fast_install=needless
15851fi
15852
15853
15854# The else clause should only fire when bootstrapping the
15855# libtool distribution, otherwise you forgot to ship ltmain.sh
15856# with your package, and you will get complaints that there are
15857# no rules to generate ltmain.sh.
15858if test -f "$ltmain"; then
15859  # See if we are running on zsh, and set the options which allow our commands through
15860  # without removal of \ escapes.
15861  if test -n "${ZSH_VERSION+set}" ; then
15862    setopt NO_GLOB_SUBST
15863  fi
15864  # Now quote all the things that may contain metacharacters while being
15865  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15866  # variables and quote the copies for generation of the libtool script.
15867  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15868    SED SHELL STRIP \
15869    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15870    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15871    deplibs_check_method reload_flag reload_cmds need_locks \
15872    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15873    lt_cv_sys_global_symbol_to_c_name_address \
15874    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15875    old_postinstall_cmds old_postuninstall_cmds \
15876    compiler_F77 \
15877    CC_F77 \
15878    LD_F77 \
15879    lt_prog_compiler_wl_F77 \
15880    lt_prog_compiler_pic_F77 \
15881    lt_prog_compiler_static_F77 \
15882    lt_prog_compiler_no_builtin_flag_F77 \
15883    export_dynamic_flag_spec_F77 \
15884    thread_safe_flag_spec_F77 \
15885    whole_archive_flag_spec_F77 \
15886    enable_shared_with_static_runtimes_F77 \
15887    old_archive_cmds_F77 \
15888    old_archive_from_new_cmds_F77 \
15889    predep_objects_F77 \
15890    postdep_objects_F77 \
15891    predeps_F77 \
15892    postdeps_F77 \
15893    compiler_lib_search_path_F77 \
15894    archive_cmds_F77 \
15895    archive_expsym_cmds_F77 \
15896    postinstall_cmds_F77 \
15897    postuninstall_cmds_F77 \
15898    old_archive_from_expsyms_cmds_F77 \
15899    allow_undefined_flag_F77 \
15900    no_undefined_flag_F77 \
15901    export_symbols_cmds_F77 \
15902    hardcode_libdir_flag_spec_F77 \
15903    hardcode_libdir_flag_spec_ld_F77 \
15904    hardcode_libdir_separator_F77 \
15905    hardcode_automatic_F77 \
15906    module_cmds_F77 \
15907    module_expsym_cmds_F77 \
15908    lt_cv_prog_compiler_c_o_F77 \
15909    exclude_expsyms_F77 \
15910    include_expsyms_F77; do
15911
15912    case $var in
15913    old_archive_cmds_F77 | \
15914    old_archive_from_new_cmds_F77 | \
15915    archive_cmds_F77 | \
15916    archive_expsym_cmds_F77 | \
15917    module_cmds_F77 | \
15918    module_expsym_cmds_F77 | \
15919    old_archive_from_expsyms_cmds_F77 | \
15920    export_symbols_cmds_F77 | \
15921    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15922    postinstall_cmds | postuninstall_cmds | \
15923    old_postinstall_cmds | old_postuninstall_cmds | \
15924    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15925      # Double-quote double-evaled strings.
15926      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15927      ;;
15928    *)
15929      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15930      ;;
15931    esac
15932  done
15933
15934  case $lt_echo in
15935  *'\$0 --fallback-echo"')
15936    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15937    ;;
15938  esac
15939
15940cfgfile="$ofile"
15941
15942  cat <<__EOF__ >> "$cfgfile"
15943# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15944
15945# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15946
15947# Shell to use when invoking shell scripts.
15948SHELL=$lt_SHELL
15949
15950# Whether or not to build shared libraries.
15951build_libtool_libs=$enable_shared
15952
15953# Whether or not to build static libraries.
15954build_old_libs=$enable_static
15955
15956# Whether or not to add -lc for building shared libraries.
15957build_libtool_need_lc=$archive_cmds_need_lc_F77
15958
15959# Whether or not to disallow shared libs when runtime libs are static
15960allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15961
15962# Whether or not to optimize for fast installation.
15963fast_install=$enable_fast_install
15964
15965# The host system.
15966host_alias=$host_alias
15967host=$host
15968host_os=$host_os
15969
15970# The build system.
15971build_alias=$build_alias
15972build=$build
15973build_os=$build_os
15974
15975# An echo program that does not interpret backslashes.
15976echo=$lt_echo
15977
15978# The archiver.
15979AR=$lt_AR
15980AR_FLAGS=$lt_AR_FLAGS
15981
15982# A C compiler.
15983LTCC=$lt_LTCC
15984
15985# LTCC compiler flags.
15986LTCFLAGS=$lt_LTCFLAGS
15987
15988# A language-specific compiler.
15989CC=$lt_compiler_F77
15990
15991# Is the compiler the GNU C compiler?
15992with_gcc=$GCC_F77
15993
15994# An ERE matcher.
15995EGREP=$lt_EGREP
15996
15997# The linker used to build libraries.
15998LD=$lt_LD_F77
15999
16000# Whether we need hard or soft links.
16001LN_S=$lt_LN_S
16002
16003# A BSD-compatible nm program.
16004NM=$lt_NM
16005
16006# A symbol stripping program
16007STRIP=$lt_STRIP
16008
16009# Used to examine libraries when file_magic_cmd begins "file"
16010MAGIC_CMD=$MAGIC_CMD
16011
16012# Used on cygwin: DLL creation program.
16013DLLTOOL="$DLLTOOL"
16014
16015# Used on cygwin: object dumper.
16016OBJDUMP="$OBJDUMP"
16017
16018# Used on cygwin: assembler.
16019AS="$AS"
16020
16021# The name of the directory that contains temporary libtool files.
16022objdir=$objdir
16023
16024# How to create reloadable object files.
16025reload_flag=$lt_reload_flag
16026reload_cmds=$lt_reload_cmds
16027
16028# How to pass a linker flag through the compiler.
16029wl=$lt_lt_prog_compiler_wl_F77
16030
16031# Object file suffix (normally "o").
16032objext="$ac_objext"
16033
16034# Old archive suffix (normally "a").
16035libext="$libext"
16036
16037# Shared library suffix (normally ".so").
16038shrext_cmds='$shrext_cmds'
16039
16040# Executable file suffix (normally "").
16041exeext="$exeext"
16042
16043# Additional compiler flags for building library objects.
16044pic_flag=$lt_lt_prog_compiler_pic_F77
16045pic_mode=$pic_mode
16046
16047# What is the maximum length of a command?
16048max_cmd_len=$lt_cv_sys_max_cmd_len
16049
16050# Does compiler simultaneously support -c and -o options?
16051compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16052
16053# Must we lock files when doing compilation?
16054need_locks=$lt_need_locks
16055
16056# Do we need the lib prefix for modules?
16057need_lib_prefix=$need_lib_prefix
16058
16059# Do we need a version for libraries?
16060need_version=$need_version
16061
16062# Whether dlopen is supported.
16063dlopen_support=$enable_dlopen
16064
16065# Whether dlopen of programs is supported.
16066dlopen_self=$enable_dlopen_self
16067
16068# Whether dlopen of statically linked programs is supported.
16069dlopen_self_static=$enable_dlopen_self_static
16070
16071# Compiler flag to prevent dynamic linking.
16072link_static_flag=$lt_lt_prog_compiler_static_F77
16073
16074# Compiler flag to turn off builtin functions.
16075no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16076
16077# Compiler flag to allow reflexive dlopens.
16078export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16079
16080# Compiler flag to generate shared objects directly from archives.
16081whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16082
16083# Compiler flag to generate thread-safe objects.
16084thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16085
16086# Library versioning type.
16087version_type=$version_type
16088
16089# Format of library name prefix.
16090libname_spec=$lt_libname_spec
16091
16092# List of archive names.  First name is the real one, the rest are links.
16093# The last name is the one that the linker finds with -lNAME.
16094library_names_spec=$lt_library_names_spec
16095
16096# The coded name of the library, if different from the real name.
16097soname_spec=$lt_soname_spec
16098
16099# Commands used to build and install an old-style archive.
16100RANLIB=$lt_RANLIB
16101old_archive_cmds=$lt_old_archive_cmds_F77
16102old_postinstall_cmds=$lt_old_postinstall_cmds
16103old_postuninstall_cmds=$lt_old_postuninstall_cmds
16104
16105# Create an old-style archive from a shared archive.
16106old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16107
16108# Create a temporary old-style archive to link instead of a shared archive.
16109old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16110
16111# Commands used to build and install a shared archive.
16112archive_cmds=$lt_archive_cmds_F77
16113archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16114postinstall_cmds=$lt_postinstall_cmds
16115postuninstall_cmds=$lt_postuninstall_cmds
16116
16117# Commands used to build a loadable module (assumed same as above if empty)
16118module_cmds=$lt_module_cmds_F77
16119module_expsym_cmds=$lt_module_expsym_cmds_F77
16120
16121# Commands to strip libraries.
16122old_striplib=$lt_old_striplib
16123striplib=$lt_striplib
16124
16125# Dependencies to place before the objects being linked to create a
16126# shared library.
16127predep_objects=$lt_predep_objects_F77
16128
16129# Dependencies to place after the objects being linked to create a
16130# shared library.
16131postdep_objects=$lt_postdep_objects_F77
16132
16133# Dependencies to place before the objects being linked to create a
16134# shared library.
16135predeps=$lt_predeps_F77
16136
16137# Dependencies to place after the objects being linked to create a
16138# shared library.
16139postdeps=$lt_postdeps_F77
16140
16141# The library search path used internally by the compiler when linking
16142# a shared library.
16143compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16144
16145# Method to check whether dependent libraries are shared objects.
16146deplibs_check_method=$lt_deplibs_check_method
16147
16148# Command to use when deplibs_check_method == file_magic.
16149file_magic_cmd=$lt_file_magic_cmd
16150
16151# Flag that allows shared libraries with undefined symbols to be built.
16152allow_undefined_flag=$lt_allow_undefined_flag_F77
16153
16154# Flag that forces no undefined symbols.
16155no_undefined_flag=$lt_no_undefined_flag_F77
16156
16157# Commands used to finish a libtool library installation in a directory.
16158finish_cmds=$lt_finish_cmds
16159
16160# Same as above, but a single script fragment to be evaled but not shown.
16161finish_eval=$lt_finish_eval
16162
16163# Take the output of nm and produce a listing of raw symbols and C names.
16164global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16165
16166# Transform the output of nm in a proper C declaration
16167global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16168
16169# Transform the output of nm in a C name address pair
16170global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16171
16172# This is the shared library runtime path variable.
16173runpath_var=$runpath_var
16174
16175# This is the shared library path variable.
16176shlibpath_var=$shlibpath_var
16177
16178# Is shlibpath searched before the hard-coded library search path?
16179shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16180
16181# How to hardcode a shared library path into an executable.
16182hardcode_action=$hardcode_action_F77
16183
16184# Whether we should hardcode library paths into libraries.
16185hardcode_into_libs=$hardcode_into_libs
16186
16187# Flag to hardcode \$libdir into a binary during linking.
16188# This must work even if \$libdir does not exist.
16189hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16190
16191# If ld is used when linking, flag to hardcode \$libdir into
16192# a binary during linking. This must work even if \$libdir does
16193# not exist.
16194hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16195
16196# Whether we need a single -rpath flag with a separated argument.
16197hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16198
16199# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16200# resulting binary.
16201hardcode_direct=$hardcode_direct_F77
16202
16203# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16204# resulting binary.
16205hardcode_minus_L=$hardcode_minus_L_F77
16206
16207# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16208# the resulting binary.
16209hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16210
16211# Set to yes if building a shared library automatically hardcodes DIR into the library
16212# and all subsequent libraries and executables linked against it.
16213hardcode_automatic=$hardcode_automatic_F77
16214
16215# Variables whose values should be saved in libtool wrapper scripts and
16216# restored at relink time.
16217variables_saved_for_relink="$variables_saved_for_relink"
16218
16219# Whether libtool must link a program against all its dependency libraries.
16220link_all_deplibs=$link_all_deplibs_F77
16221
16222# Compile-time system search path for libraries
16223sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16224
16225# Run-time system search path for libraries
16226sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16227
16228# Fix the shell variable \$srcfile for the compiler.
16229fix_srcfile_path="$fix_srcfile_path_F77"
16230
16231# Set to yes if exported symbols are required.
16232always_export_symbols=$always_export_symbols_F77
16233
16234# The commands to list exported symbols.
16235export_symbols_cmds=$lt_export_symbols_cmds_F77
16236
16237# The commands to extract the exported symbol list from a shared archive.
16238extract_expsyms_cmds=$lt_extract_expsyms_cmds
16239
16240# Symbols that should not be listed in the preloaded symbols.
16241exclude_expsyms=$lt_exclude_expsyms_F77
16242
16243# Symbols that must always be exported.
16244include_expsyms=$lt_include_expsyms_F77
16245
16246# ### END LIBTOOL TAG CONFIG: $tagname
16247
16248__EOF__
16249
16250
16251else
16252  # If there is no Makefile yet, we rely on a make rule to execute
16253  # `config.status --recheck' to rerun these tests and create the
16254  # libtool script then.
16255  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16256  if test -f "$ltmain_in"; then
16257    test -f Makefile && make "$ltmain"
16258  fi
16259fi
16260
16261
16262ac_ext=c
16263ac_cpp='$CPP $CPPFLAGS'
16264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16266ac_compiler_gnu=$ac_cv_c_compiler_gnu
16267
16268CC="$lt_save_CC"
16269
16270	else
16271	  tagname=""
16272	fi
16273	;;
16274
16275      GCJ)
16276	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16277
16278
16279# Source file extension for Java test sources.
16280ac_ext=java
16281
16282# Object file extension for compiled Java test sources.
16283objext=o
16284objext_GCJ=$objext
16285
16286# Code to be used in simple compile tests
16287lt_simple_compile_test_code="class foo {}\n"
16288
16289# Code to be used in simple link tests
16290lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16291
16292# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16293
16294# If no C compiler was specified, use CC.
16295LTCC=${LTCC-"$CC"}
16296
16297# If no C compiler flags were specified, use CFLAGS.
16298LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16299
16300# Allow CC to be a program name with arguments.
16301compiler=$CC
16302
16303
16304# save warnings/boilerplate of simple test code
16305ac_outfile=conftest.$ac_objext
16306printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16307eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16308_lt_compiler_boilerplate=`cat conftest.err`
16309$rm conftest*
16310
16311ac_outfile=conftest.$ac_objext
16312printf "$lt_simple_link_test_code" >conftest.$ac_ext
16313eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16314_lt_linker_boilerplate=`cat conftest.err`
16315$rm conftest*
16316
16317
16318# Allow CC to be a program name with arguments.
16319lt_save_CC="$CC"
16320CC=${GCJ-"gcj"}
16321compiler=$CC
16322compiler_GCJ=$CC
16323for cc_temp in $compiler""; do
16324  case $cc_temp in
16325    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16326    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16327    \-*) ;;
16328    *) break;;
16329  esac
16330done
16331cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16332
16333
16334# GCJ did not exist at the time GCC didn't implicitly link libc in.
16335archive_cmds_need_lc_GCJ=no
16336
16337old_archive_cmds_GCJ=$old_archive_cmds
16338
16339
16340lt_prog_compiler_no_builtin_flag_GCJ=
16341
16342if test "$GCC" = yes; then
16343  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16344
16345
16346{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16347echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16348if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16349  echo $ECHO_N "(cached) $ECHO_C" >&6
16350else
16351  lt_cv_prog_compiler_rtti_exceptions=no
16352  ac_outfile=conftest.$ac_objext
16353   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16354   lt_compiler_flag="-fno-rtti -fno-exceptions"
16355   # Insert the option either (1) after the last *FLAGS variable, or
16356   # (2) before a word containing "conftest.", or (3) at the end.
16357   # Note that $ac_compile itself does not contain backslashes and begins
16358   # with a dollar sign (not a hyphen), so the echo should work correctly.
16359   # The option is referenced via a variable to avoid confusing sed.
16360   lt_compile=`echo "$ac_compile" | $SED \
16361   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16362   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16363   -e 's:$: $lt_compiler_flag:'`
16364   (eval echo "\"\$as_me:16364: $lt_compile\"" >&5)
16365   (eval "$lt_compile" 2>conftest.err)
16366   ac_status=$?
16367   cat conftest.err >&5
16368   echo "$as_me:16368: \$? = $ac_status" >&5
16369   if (exit $ac_status) && test -s "$ac_outfile"; then
16370     # The compiler can only warn and ignore the option if not recognized
16371     # So say no if there are warnings other than the usual output.
16372     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16373     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16374     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16375       lt_cv_prog_compiler_rtti_exceptions=yes
16376     fi
16377   fi
16378   $rm conftest*
16379
16380fi
16381{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16382echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16383
16384if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16385    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16386else
16387    :
16388fi
16389
16390fi
16391
16392lt_prog_compiler_wl_GCJ=
16393lt_prog_compiler_pic_GCJ=
16394lt_prog_compiler_static_GCJ=
16395
16396{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16397echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16398
16399  if test "$GCC" = yes; then
16400    lt_prog_compiler_wl_GCJ='-Wl,'
16401    lt_prog_compiler_static_GCJ='-static'
16402
16403    case $host_os in
16404      aix*)
16405      # All AIX code is PIC.
16406      if test "$host_cpu" = ia64; then
16407	# AIX 5 now supports IA64 processor
16408	lt_prog_compiler_static_GCJ='-Bstatic'
16409      fi
16410      ;;
16411
16412    amigaos*)
16413      # FIXME: we need at least 68020 code to build shared libraries, but
16414      # adding the `-m68020' flag to GCC prevents building anything better,
16415      # like `-m68040'.
16416      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16417      ;;
16418
16419    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16420      # PIC is the default for these OSes.
16421      ;;
16422
16423    mingw* | pw32* | os2*)
16424      # This hack is so that the source file can tell whether it is being
16425      # built for inclusion in a dll (and should export symbols for example).
16426      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16427      ;;
16428
16429    darwin* | rhapsody*)
16430      # PIC is the default on this platform
16431      # Common symbols not allowed in MH_DYLIB files
16432      lt_prog_compiler_pic_GCJ='-fno-common'
16433      ;;
16434
16435    interix3*)
16436      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16437      # Instead, we relocate shared libraries at runtime.
16438      ;;
16439
16440    msdosdjgpp*)
16441      # Just because we use GCC doesn't mean we suddenly get shared libraries
16442      # on systems that don't support them.
16443      lt_prog_compiler_can_build_shared_GCJ=no
16444      enable_shared=no
16445      ;;
16446
16447    sysv4*MP*)
16448      if test -d /usr/nec; then
16449	lt_prog_compiler_pic_GCJ=-Kconform_pic
16450      fi
16451      ;;
16452
16453    hpux*)
16454      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16455      # not for PA HP-UX.
16456      case $host_cpu in
16457      hppa*64*|ia64*)
16458	# +Z the default
16459	;;
16460      *)
16461	lt_prog_compiler_pic_GCJ='-fPIC'
16462	;;
16463      esac
16464      ;;
16465
16466    *)
16467      lt_prog_compiler_pic_GCJ='-fPIC'
16468      ;;
16469    esac
16470  else
16471    # PORTME Check for flag to pass linker flags through the system compiler.
16472    case $host_os in
16473    aix*)
16474      lt_prog_compiler_wl_GCJ='-Wl,'
16475      if test "$host_cpu" = ia64; then
16476	# AIX 5 now supports IA64 processor
16477	lt_prog_compiler_static_GCJ='-Bstatic'
16478      else
16479	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16480      fi
16481      ;;
16482      darwin*)
16483        # PIC is the default on this platform
16484        # Common symbols not allowed in MH_DYLIB files
16485       case $cc_basename in
16486         xlc*)
16487         lt_prog_compiler_pic_GCJ='-qnocommon'
16488         lt_prog_compiler_wl_GCJ='-Wl,'
16489         ;;
16490       esac
16491       ;;
16492
16493    mingw* | pw32* | os2*)
16494      # This hack is so that the source file can tell whether it is being
16495      # built for inclusion in a dll (and should export symbols for example).
16496      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16497      ;;
16498
16499    hpux9* | hpux10* | hpux11*)
16500      lt_prog_compiler_wl_GCJ='-Wl,'
16501      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16502      # not for PA HP-UX.
16503      case $host_cpu in
16504      hppa*64*|ia64*)
16505	# +Z the default
16506	;;
16507      *)
16508	lt_prog_compiler_pic_GCJ='+Z'
16509	;;
16510      esac
16511      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16512      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16513      ;;
16514
16515    irix5* | irix6* | nonstopux*)
16516      lt_prog_compiler_wl_GCJ='-Wl,'
16517      # PIC (with -KPIC) is the default.
16518      lt_prog_compiler_static_GCJ='-non_shared'
16519      ;;
16520
16521    newsos6)
16522      lt_prog_compiler_pic_GCJ='-KPIC'
16523      lt_prog_compiler_static_GCJ='-Bstatic'
16524      ;;
16525
16526    linux* | k*bsd*-gnu)
16527      case $cc_basename in
16528      icc* | ecc*)
16529	lt_prog_compiler_wl_GCJ='-Wl,'
16530	lt_prog_compiler_pic_GCJ='-KPIC'
16531	lt_prog_compiler_static_GCJ='-static'
16532        ;;
16533      pgcc* | pgf77* | pgf90* | pgf95*)
16534        # Portland Group compilers (*not* the Pentium gcc compiler,
16535	# which looks to be a dead project)
16536	lt_prog_compiler_wl_GCJ='-Wl,'
16537	lt_prog_compiler_pic_GCJ='-fpic'
16538	lt_prog_compiler_static_GCJ='-Bstatic'
16539        ;;
16540      ccc*)
16541        lt_prog_compiler_wl_GCJ='-Wl,'
16542        # All Alpha code is PIC.
16543        lt_prog_compiler_static_GCJ='-non_shared'
16544        ;;
16545      esac
16546      ;;
16547
16548    osf3* | osf4* | osf5*)
16549      lt_prog_compiler_wl_GCJ='-Wl,'
16550      # All OSF/1 code is PIC.
16551      lt_prog_compiler_static_GCJ='-non_shared'
16552      ;;
16553
16554    solaris*)
16555      lt_prog_compiler_pic_GCJ='-KPIC'
16556      lt_prog_compiler_static_GCJ='-Bstatic'
16557      case $cc_basename in
16558      f77* | f90* | f95*)
16559	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16560      *)
16561	lt_prog_compiler_wl_GCJ='-Wl,';;
16562      esac
16563      ;;
16564
16565    sunos4*)
16566      lt_prog_compiler_wl_GCJ='-Qoption ld '
16567      lt_prog_compiler_pic_GCJ='-PIC'
16568      lt_prog_compiler_static_GCJ='-Bstatic'
16569      ;;
16570
16571    sysv4 | sysv4.2uw2* | sysv4.3*)
16572      lt_prog_compiler_wl_GCJ='-Wl,'
16573      lt_prog_compiler_pic_GCJ='-KPIC'
16574      lt_prog_compiler_static_GCJ='-Bstatic'
16575      ;;
16576
16577    sysv4*MP*)
16578      if test -d /usr/nec ;then
16579	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16580	lt_prog_compiler_static_GCJ='-Bstatic'
16581      fi
16582      ;;
16583
16584    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16585      lt_prog_compiler_wl_GCJ='-Wl,'
16586      lt_prog_compiler_pic_GCJ='-KPIC'
16587      lt_prog_compiler_static_GCJ='-Bstatic'
16588      ;;
16589
16590    unicos*)
16591      lt_prog_compiler_wl_GCJ='-Wl,'
16592      lt_prog_compiler_can_build_shared_GCJ=no
16593      ;;
16594
16595    uts4*)
16596      lt_prog_compiler_pic_GCJ='-pic'
16597      lt_prog_compiler_static_GCJ='-Bstatic'
16598      ;;
16599
16600    *)
16601      lt_prog_compiler_can_build_shared_GCJ=no
16602      ;;
16603    esac
16604  fi
16605
16606{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16607echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16608
16609#
16610# Check to make sure the PIC flag actually works.
16611#
16612if test -n "$lt_prog_compiler_pic_GCJ"; then
16613
16614{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16615echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16616if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16617  echo $ECHO_N "(cached) $ECHO_C" >&6
16618else
16619  lt_prog_compiler_pic_works_GCJ=no
16620  ac_outfile=conftest.$ac_objext
16621   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16622   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16623   # Insert the option either (1) after the last *FLAGS variable, or
16624   # (2) before a word containing "conftest.", or (3) at the end.
16625   # Note that $ac_compile itself does not contain backslashes and begins
16626   # with a dollar sign (not a hyphen), so the echo should work correctly.
16627   # The option is referenced via a variable to avoid confusing sed.
16628   lt_compile=`echo "$ac_compile" | $SED \
16629   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16630   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16631   -e 's:$: $lt_compiler_flag:'`
16632   (eval echo "\"\$as_me:16632: $lt_compile\"" >&5)
16633   (eval "$lt_compile" 2>conftest.err)
16634   ac_status=$?
16635   cat conftest.err >&5
16636   echo "$as_me:16636: \$? = $ac_status" >&5
16637   if (exit $ac_status) && test -s "$ac_outfile"; then
16638     # The compiler can only warn and ignore the option if not recognized
16639     # So say no if there are warnings other than the usual output.
16640     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16641     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16642     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16643       lt_prog_compiler_pic_works_GCJ=yes
16644     fi
16645   fi
16646   $rm conftest*
16647
16648fi
16649{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16650echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16651
16652if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16653    case $lt_prog_compiler_pic_GCJ in
16654     "" | " "*) ;;
16655     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16656     esac
16657else
16658    lt_prog_compiler_pic_GCJ=
16659     lt_prog_compiler_can_build_shared_GCJ=no
16660fi
16661
16662fi
16663case $host_os in
16664  # For platforms which do not support PIC, -DPIC is meaningless:
16665  *djgpp*)
16666    lt_prog_compiler_pic_GCJ=
16667    ;;
16668  *)
16669    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16670    ;;
16671esac
16672
16673#
16674# Check to make sure the static flag actually works.
16675#
16676wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16677{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16678echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16679if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16680  echo $ECHO_N "(cached) $ECHO_C" >&6
16681else
16682  lt_prog_compiler_static_works_GCJ=no
16683   save_LDFLAGS="$LDFLAGS"
16684   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16685   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16686   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16687     # The linker can only warn and ignore the option if not recognized
16688     # So say no if there are warnings
16689     if test -s conftest.err; then
16690       # Append any errors to the config.log.
16691       cat conftest.err 1>&5
16692       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16693       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16694       if diff conftest.exp conftest.er2 >/dev/null; then
16695         lt_prog_compiler_static_works_GCJ=yes
16696       fi
16697     else
16698       lt_prog_compiler_static_works_GCJ=yes
16699     fi
16700   fi
16701   $rm conftest*
16702   LDFLAGS="$save_LDFLAGS"
16703
16704fi
16705{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16706echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16707
16708if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16709    :
16710else
16711    lt_prog_compiler_static_GCJ=
16712fi
16713
16714
16715{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16716echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16717if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16718  echo $ECHO_N "(cached) $ECHO_C" >&6
16719else
16720  lt_cv_prog_compiler_c_o_GCJ=no
16721   $rm -r conftest 2>/dev/null
16722   mkdir conftest
16723   cd conftest
16724   mkdir out
16725   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16726
16727   lt_compiler_flag="-o out/conftest2.$ac_objext"
16728   # Insert the option either (1) after the last *FLAGS variable, or
16729   # (2) before a word containing "conftest.", or (3) at the end.
16730   # Note that $ac_compile itself does not contain backslashes and begins
16731   # with a dollar sign (not a hyphen), so the echo should work correctly.
16732   lt_compile=`echo "$ac_compile" | $SED \
16733   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16734   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16735   -e 's:$: $lt_compiler_flag:'`
16736   (eval echo "\"\$as_me:16736: $lt_compile\"" >&5)
16737   (eval "$lt_compile" 2>out/conftest.err)
16738   ac_status=$?
16739   cat out/conftest.err >&5
16740   echo "$as_me:16740: \$? = $ac_status" >&5
16741   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16742   then
16743     # The compiler can only warn and ignore the option if not recognized
16744     # So say no if there are warnings
16745     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16746     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16747     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16748       lt_cv_prog_compiler_c_o_GCJ=yes
16749     fi
16750   fi
16751   chmod u+w . 2>&5
16752   $rm conftest*
16753   # SGI C++ compiler will create directory out/ii_files/ for
16754   # template instantiation
16755   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16756   $rm out/* && rmdir out
16757   cd ..
16758   rmdir conftest
16759   $rm conftest*
16760
16761fi
16762{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16763echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16764
16765
16766hard_links="nottested"
16767if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16768  # do not overwrite the value of need_locks provided by the user
16769  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16770echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16771  hard_links=yes
16772  $rm conftest*
16773  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16774  touch conftest.a
16775  ln conftest.a conftest.b 2>&5 || hard_links=no
16776  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16777  { echo "$as_me:$LINENO: result: $hard_links" >&5
16778echo "${ECHO_T}$hard_links" >&6; }
16779  if test "$hard_links" = no; then
16780    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16781echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16782    need_locks=warn
16783  fi
16784else
16785  need_locks=no
16786fi
16787
16788{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16789echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16790
16791  runpath_var=
16792  allow_undefined_flag_GCJ=
16793  enable_shared_with_static_runtimes_GCJ=no
16794  archive_cmds_GCJ=
16795  archive_expsym_cmds_GCJ=
16796  old_archive_From_new_cmds_GCJ=
16797  old_archive_from_expsyms_cmds_GCJ=
16798  export_dynamic_flag_spec_GCJ=
16799  whole_archive_flag_spec_GCJ=
16800  thread_safe_flag_spec_GCJ=
16801  hardcode_libdir_flag_spec_GCJ=
16802  hardcode_libdir_flag_spec_ld_GCJ=
16803  hardcode_libdir_separator_GCJ=
16804  hardcode_direct_GCJ=no
16805  hardcode_minus_L_GCJ=no
16806  hardcode_shlibpath_var_GCJ=unsupported
16807  link_all_deplibs_GCJ=unknown
16808  hardcode_automatic_GCJ=no
16809  module_cmds_GCJ=
16810  module_expsym_cmds_GCJ=
16811  always_export_symbols_GCJ=no
16812  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16813  # include_expsyms should be a list of space-separated symbols to be *always*
16814  # included in the symbol list
16815  include_expsyms_GCJ=
16816  # exclude_expsyms can be an extended regexp of symbols to exclude
16817  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16818  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16819  # as well as any symbol that contains `d'.
16820  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16821  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16822  # platforms (ab)use it in PIC code, but their linkers get confused if
16823  # the symbol is explicitly referenced.  Since portable code cannot
16824  # rely on this symbol name, it's probably fine to never include it in
16825  # preloaded symbol tables.
16826  extract_expsyms_cmds=
16827  # Just being paranoid about ensuring that cc_basename is set.
16828  for cc_temp in $compiler""; do
16829  case $cc_temp in
16830    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16831    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16832    \-*) ;;
16833    *) break;;
16834  esac
16835done
16836cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16837
16838  case $host_os in
16839  cygwin* | mingw* | pw32*)
16840    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16841    # When not using gcc, we currently assume that we are using
16842    # Microsoft Visual C++.
16843    if test "$GCC" != yes; then
16844      with_gnu_ld=no
16845    fi
16846    ;;
16847  interix*)
16848    # we just hope/assume this is gcc and not c89 (= MSVC++)
16849    with_gnu_ld=yes
16850    ;;
16851  openbsd*)
16852    with_gnu_ld=no
16853    ;;
16854  esac
16855
16856  ld_shlibs_GCJ=yes
16857  if test "$with_gnu_ld" = yes; then
16858    # If archive_cmds runs LD, not CC, wlarc should be empty
16859    wlarc='${wl}'
16860
16861    # Set some defaults for GNU ld with shared library support. These
16862    # are reset later if shared libraries are not supported. Putting them
16863    # here allows them to be overridden if necessary.
16864    runpath_var=LD_RUN_PATH
16865    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16866    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16867    # ancient GNU ld didn't support --whole-archive et. al.
16868    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16869	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16870      else
16871  	whole_archive_flag_spec_GCJ=
16872    fi
16873    supports_anon_versioning=no
16874    case `$LD -v 2>/dev/null` in
16875      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16876      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16877      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16878      *\ 2.11.*) ;; # other 2.11 versions
16879      *) supports_anon_versioning=yes ;;
16880    esac
16881
16882    # See if GNU ld supports shared libraries.
16883    case $host_os in
16884    aix3* | aix4* | aix5*)
16885      # On AIX/PPC, the GNU linker is very broken
16886      if test "$host_cpu" != ia64; then
16887	ld_shlibs_GCJ=no
16888	cat <<EOF 1>&2
16889
16890*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16891*** to be unable to reliably create shared libraries on AIX.
16892*** Therefore, libtool is disabling shared libraries support.  If you
16893*** really care for shared libraries, you may want to modify your PATH
16894*** so that a non-GNU linker is found, and then restart.
16895
16896EOF
16897      fi
16898      ;;
16899
16900    amigaos*)
16901      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)'
16902      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16903      hardcode_minus_L_GCJ=yes
16904
16905      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16906      # that the semantics of dynamic libraries on AmigaOS, at least up
16907      # to version 4, is to share data among multiple programs linked
16908      # with the same dynamic library.  Since this doesn't match the
16909      # behavior of shared libraries on other platforms, we can't use
16910      # them.
16911      ld_shlibs_GCJ=no
16912      ;;
16913
16914    beos*)
16915      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16916	allow_undefined_flag_GCJ=unsupported
16917	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16918	# support --undefined.  This deserves some investigation.  FIXME
16919	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16920      else
16921	ld_shlibs_GCJ=no
16922      fi
16923      ;;
16924
16925    cygwin* | mingw* | pw32*)
16926      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16927      # as there is no search path for DLLs.
16928      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16929      allow_undefined_flag_GCJ=unsupported
16930      always_export_symbols_GCJ=no
16931      enable_shared_with_static_runtimes_GCJ=yes
16932      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16933
16934      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16935        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16936	# If the export-symbols file already is a .def file (1st line
16937	# is EXPORTS), use it as is; otherwise, prepend...
16938	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16939	  cp $export_symbols $output_objdir/$soname.def;
16940	else
16941	  echo EXPORTS > $output_objdir/$soname.def;
16942	  cat $export_symbols >> $output_objdir/$soname.def;
16943	fi~
16944	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16945      else
16946	ld_shlibs_GCJ=no
16947      fi
16948      ;;
16949
16950    interix3*)
16951      hardcode_direct_GCJ=no
16952      hardcode_shlibpath_var_GCJ=no
16953      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16954      export_dynamic_flag_spec_GCJ='${wl}-E'
16955      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16956      # Instead, shared libraries are loaded at an image base (0x10000000 by
16957      # default) and relocated if they conflict, which is a slow very memory
16958      # consuming and fragmenting process.  To avoid this, we pick a random,
16959      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16960      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16961      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'
16962      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'
16963      ;;
16964
16965    linux* | k*bsd*-gnu)
16966      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16967	tmp_addflag=
16968	case $cc_basename,$host_cpu in
16969	pgcc*)				# Portland Group C compiler
16970	  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'
16971	  tmp_addflag=' $pic_flag'
16972	  ;;
16973	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16974	  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'
16975	  tmp_addflag=' $pic_flag -Mnomain' ;;
16976	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16977	  tmp_addflag=' -i_dynamic' ;;
16978	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16979	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16980	ifc* | ifort*)			# Intel Fortran compiler
16981	  tmp_addflag=' -nofor_main' ;;
16982	esac
16983	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16984
16985	if test $supports_anon_versioning = yes; then
16986	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16987  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16988  $echo "local: *; };" >> $output_objdir/$libname.ver~
16989	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16990	fi
16991	link_all_deplibs_GCJ=no
16992      else
16993	ld_shlibs_GCJ=no
16994      fi
16995      ;;
16996
16997    netbsd* | netbsdelf*-gnu)
16998      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16999	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17000	wlarc=
17001      else
17002	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17003	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17004      fi
17005      ;;
17006
17007    solaris*)
17008      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17009	ld_shlibs_GCJ=no
17010	cat <<EOF 1>&2
17011
17012*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17013*** create shared libraries on Solaris systems.  Therefore, libtool
17014*** is disabling shared libraries support.  We urge you to upgrade GNU
17015*** binutils to release 2.9.1 or newer.  Another option is to modify
17016*** your PATH or compiler configuration so that the native linker is
17017*** used, and then restart.
17018
17019EOF
17020      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17021	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17022	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17023      else
17024	ld_shlibs_GCJ=no
17025      fi
17026      ;;
17027
17028    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17029      case `$LD -v 2>&1` in
17030        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17031	ld_shlibs_GCJ=no
17032	cat <<_LT_EOF 1>&2
17033
17034*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17035*** reliably create shared libraries on SCO systems.  Therefore, libtool
17036*** is disabling shared libraries support.  We urge you to upgrade GNU
17037*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17038*** your PATH or compiler configuration so that the native linker is
17039*** used, and then restart.
17040
17041_LT_EOF
17042	;;
17043	*)
17044	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17045	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17046	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17047	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17048	  else
17049	    ld_shlibs_GCJ=no
17050	  fi
17051	;;
17052      esac
17053      ;;
17054
17055    sunos4*)
17056      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17057      wlarc=
17058      hardcode_direct_GCJ=yes
17059      hardcode_shlibpath_var_GCJ=no
17060      ;;
17061
17062    *)
17063      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17064	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17065	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17066      else
17067	ld_shlibs_GCJ=no
17068      fi
17069      ;;
17070    esac
17071
17072    if test "$ld_shlibs_GCJ" = no; then
17073      runpath_var=
17074      hardcode_libdir_flag_spec_GCJ=
17075      export_dynamic_flag_spec_GCJ=
17076      whole_archive_flag_spec_GCJ=
17077    fi
17078  else
17079    # PORTME fill in a description of your system's linker (not GNU ld)
17080    case $host_os in
17081    aix3*)
17082      allow_undefined_flag_GCJ=unsupported
17083      always_export_symbols_GCJ=yes
17084      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'
17085      # Note: this linker hardcodes the directories in LIBPATH if there
17086      # are no directories specified by -L.
17087      hardcode_minus_L_GCJ=yes
17088      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17089	# Neither direct hardcoding nor static linking is supported with a
17090	# broken collect2.
17091	hardcode_direct_GCJ=unsupported
17092      fi
17093      ;;
17094
17095    aix4* | aix5*)
17096      if test "$host_cpu" = ia64; then
17097	# On IA64, the linker does run time linking by default, so we don't
17098	# have to do anything special.
17099	aix_use_runtimelinking=no
17100	exp_sym_flag='-Bexport'
17101	no_entry_flag=""
17102      else
17103	# If we're using GNU nm, then we don't want the "-C" option.
17104	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17105	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17106	  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'
17107	else
17108	  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'
17109	fi
17110	aix_use_runtimelinking=no
17111
17112	# Test if we are trying to use run time linking or normal
17113	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17114	# need to do runtime linking.
17115	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17116	  for ld_flag in $LDFLAGS; do
17117  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17118  	    aix_use_runtimelinking=yes
17119  	    break
17120  	  fi
17121	  done
17122	  ;;
17123	esac
17124
17125	exp_sym_flag='-bexport'
17126	no_entry_flag='-bnoentry'
17127      fi
17128
17129      # When large executables or shared objects are built, AIX ld can
17130      # have problems creating the table of contents.  If linking a library
17131      # or program results in "error TOC overflow" add -mminimal-toc to
17132      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17133      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17134
17135      archive_cmds_GCJ=''
17136      hardcode_direct_GCJ=yes
17137      hardcode_libdir_separator_GCJ=':'
17138      link_all_deplibs_GCJ=yes
17139
17140      if test "$GCC" = yes; then
17141	case $host_os in aix4.[012]|aix4.[012].*)
17142	# We only want to do this on AIX 4.2 and lower, the check
17143	# below for broken collect2 doesn't work under 4.3+
17144	  collect2name=`${CC} -print-prog-name=collect2`
17145	  if test -f "$collect2name" && \
17146  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17147	  then
17148  	  # We have reworked collect2
17149  	  hardcode_direct_GCJ=yes
17150	  else
17151  	  # We have old collect2
17152  	  hardcode_direct_GCJ=unsupported
17153  	  # It fails to find uninstalled libraries when the uninstalled
17154  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17155  	  # to unsupported forces relinking
17156  	  hardcode_minus_L_GCJ=yes
17157  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17158  	  hardcode_libdir_separator_GCJ=
17159	  fi
17160	  ;;
17161	esac
17162	shared_flag='-shared'
17163	if test "$aix_use_runtimelinking" = yes; then
17164	  shared_flag="$shared_flag "'${wl}-G'
17165	fi
17166      else
17167	# not using gcc
17168	if test "$host_cpu" = ia64; then
17169  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17170  	# chokes on -Wl,-G. The following line is correct:
17171	  shared_flag='-G'
17172	else
17173	  if test "$aix_use_runtimelinking" = yes; then
17174	    shared_flag='${wl}-G'
17175	  else
17176	    shared_flag='${wl}-bM:SRE'
17177	  fi
17178	fi
17179      fi
17180
17181      # It seems that -bexpall does not export symbols beginning with
17182      # underscore (_), so it is better to generate a list of symbols to export.
17183      always_export_symbols_GCJ=yes
17184      if test "$aix_use_runtimelinking" = yes; then
17185	# Warning - without using the other runtime loading flags (-brtl),
17186	# -berok will link without error, but may produce a broken library.
17187	allow_undefined_flag_GCJ='-berok'
17188       # Determine the default libpath from the value encoded in an empty executable.
17189       cat >conftest.$ac_ext <<_ACEOF
17190/* confdefs.h.  */
17191_ACEOF
17192cat confdefs.h >>conftest.$ac_ext
17193cat >>conftest.$ac_ext <<_ACEOF
17194/* end confdefs.h.  */
17195
17196int
17197main ()
17198{
17199
17200  ;
17201  return 0;
17202}
17203_ACEOF
17204rm -f conftest.$ac_objext conftest$ac_exeext
17205if { (ac_try="$ac_link"
17206case "(($ac_try" in
17207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208  *) ac_try_echo=$ac_try;;
17209esac
17210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211  (eval "$ac_link") 2>conftest.er1
17212  ac_status=$?
17213  grep -v '^ *+' conftest.er1 >conftest.err
17214  rm -f conftest.er1
17215  cat conftest.err >&5
17216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217  (exit $ac_status); } && {
17218	 test -z "$ac_c_werror_flag" ||
17219	 test ! -s conftest.err
17220       } && test -s conftest$ac_exeext &&
17221       $as_test_x conftest$ac_exeext; then
17222
17223aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17224}'`
17225# Check for a 64-bit object if we didn't find anything.
17226if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17227}'`; fi
17228else
17229  echo "$as_me: failed program was:" >&5
17230sed 's/^/| /' conftest.$ac_ext >&5
17231
17232
17233fi
17234
17235rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17236      conftest$ac_exeext conftest.$ac_ext
17237if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17238
17239       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17240	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"
17241       else
17242	if test "$host_cpu" = ia64; then
17243	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17244	  allow_undefined_flag_GCJ="-z nodefs"
17245	  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"
17246	else
17247	 # Determine the default libpath from the value encoded in an empty executable.
17248	 cat >conftest.$ac_ext <<_ACEOF
17249/* confdefs.h.  */
17250_ACEOF
17251cat confdefs.h >>conftest.$ac_ext
17252cat >>conftest.$ac_ext <<_ACEOF
17253/* end confdefs.h.  */
17254
17255int
17256main ()
17257{
17258
17259  ;
17260  return 0;
17261}
17262_ACEOF
17263rm -f conftest.$ac_objext conftest$ac_exeext
17264if { (ac_try="$ac_link"
17265case "(($ac_try" in
17266  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267  *) ac_try_echo=$ac_try;;
17268esac
17269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270  (eval "$ac_link") 2>conftest.er1
17271  ac_status=$?
17272  grep -v '^ *+' conftest.er1 >conftest.err
17273  rm -f conftest.er1
17274  cat conftest.err >&5
17275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276  (exit $ac_status); } && {
17277	 test -z "$ac_c_werror_flag" ||
17278	 test ! -s conftest.err
17279       } && test -s conftest$ac_exeext &&
17280       $as_test_x conftest$ac_exeext; then
17281
17282aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17283}'`
17284# Check for a 64-bit object if we didn't find anything.
17285if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17286}'`; fi
17287else
17288  echo "$as_me: failed program was:" >&5
17289sed 's/^/| /' conftest.$ac_ext >&5
17290
17291
17292fi
17293
17294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17295      conftest$ac_exeext conftest.$ac_ext
17296if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17297
17298	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17299	  # Warning - without using the other run time loading flags,
17300	  # -berok will link without error, but may produce a broken library.
17301	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17302	  allow_undefined_flag_GCJ=' ${wl}-berok'
17303	  # Exported symbols can be pulled into shared objects from archives
17304	  whole_archive_flag_spec_GCJ='$convenience'
17305	  archive_cmds_need_lc_GCJ=yes
17306	  # This is similar to how AIX traditionally builds its shared libraries.
17307	  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'
17308	fi
17309      fi
17310      ;;
17311
17312    amigaos*)
17313      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)'
17314      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17315      hardcode_minus_L_GCJ=yes
17316      # see comment about different semantics on the GNU ld section
17317      ld_shlibs_GCJ=no
17318      ;;
17319
17320    bsdi[45]*)
17321      export_dynamic_flag_spec_GCJ=-rdynamic
17322      ;;
17323
17324    cygwin* | mingw* | pw32*)
17325      # When not using gcc, we currently assume that we are using
17326      # Microsoft Visual C++.
17327      # hardcode_libdir_flag_spec is actually meaningless, as there is
17328      # no search path for DLLs.
17329      hardcode_libdir_flag_spec_GCJ=' '
17330      allow_undefined_flag_GCJ=unsupported
17331      # Tell ltmain to make .lib files, not .a files.
17332      libext=lib
17333      # Tell ltmain to make .dll files, not .so files.
17334      shrext_cmds=".dll"
17335      # FIXME: Setting linknames here is a bad hack.
17336      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17337      # The linker will automatically build a .lib file if we build a DLL.
17338      old_archive_From_new_cmds_GCJ='true'
17339      # FIXME: Should let the user specify the lib program.
17340      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17341      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17342      enable_shared_with_static_runtimes_GCJ=yes
17343      ;;
17344
17345    darwin* | rhapsody*)
17346      case $host_os in
17347        rhapsody* | darwin1.[012])
17348         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17349         ;;
17350       *) # Darwin 1.3 on
17351         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17352           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17353         else
17354           case ${MACOSX_DEPLOYMENT_TARGET} in
17355             10.[012])
17356               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17357               ;;
17358             10.*)
17359               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17360               ;;
17361           esac
17362         fi
17363         ;;
17364      esac
17365      archive_cmds_need_lc_GCJ=no
17366      hardcode_direct_GCJ=no
17367      hardcode_automatic_GCJ=yes
17368      hardcode_shlibpath_var_GCJ=unsupported
17369      whole_archive_flag_spec_GCJ=''
17370      link_all_deplibs_GCJ=yes
17371    if test "$GCC" = yes ; then
17372    	output_verbose_link_cmd='echo'
17373        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17374      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17375      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17376      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17377      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}'
17378    else
17379      case $cc_basename in
17380        xlc*)
17381         output_verbose_link_cmd='echo'
17382         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17383         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17384          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17385         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17386          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}'
17387          ;;
17388       *)
17389         ld_shlibs_GCJ=no
17390          ;;
17391      esac
17392    fi
17393      ;;
17394
17395    dgux*)
17396      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17397      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17398      hardcode_shlibpath_var_GCJ=no
17399      ;;
17400
17401    freebsd1*)
17402      ld_shlibs_GCJ=no
17403      ;;
17404
17405    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17406    # support.  Future versions do this automatically, but an explicit c++rt0.o
17407    # does not break anything, and helps significantly (at the cost of a little
17408    # extra space).
17409    freebsd2.2*)
17410      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17411      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17412      hardcode_direct_GCJ=yes
17413      hardcode_shlibpath_var_GCJ=no
17414      ;;
17415
17416    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17417    freebsd2*)
17418      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17419      hardcode_direct_GCJ=yes
17420      hardcode_minus_L_GCJ=yes
17421      hardcode_shlibpath_var_GCJ=no
17422      ;;
17423
17424    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17425    freebsd* | dragonfly*)
17426      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17427      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17428      hardcode_direct_GCJ=yes
17429      hardcode_shlibpath_var_GCJ=no
17430      ;;
17431
17432    hpux9*)
17433      if test "$GCC" = yes; then
17434	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'
17435      else
17436	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'
17437      fi
17438      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17439      hardcode_libdir_separator_GCJ=:
17440      hardcode_direct_GCJ=yes
17441
17442      # hardcode_minus_L: Not really in the search PATH,
17443      # but as the default location of the library.
17444      hardcode_minus_L_GCJ=yes
17445      export_dynamic_flag_spec_GCJ='${wl}-E'
17446      ;;
17447
17448    hpux10*)
17449      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17450	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17451      else
17452	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17453      fi
17454      if test "$with_gnu_ld" = no; then
17455	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17456	hardcode_libdir_separator_GCJ=:
17457
17458	hardcode_direct_GCJ=yes
17459	export_dynamic_flag_spec_GCJ='${wl}-E'
17460
17461	# hardcode_minus_L: Not really in the search PATH,
17462	# but as the default location of the library.
17463	hardcode_minus_L_GCJ=yes
17464      fi
17465      ;;
17466
17467    hpux11*)
17468      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17469	case $host_cpu in
17470	hppa*64*)
17471	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17472	  ;;
17473	ia64*)
17474	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17475	  ;;
17476	*)
17477	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17478	  ;;
17479	esac
17480      else
17481	case $host_cpu in
17482	hppa*64*)
17483	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17484	  ;;
17485	ia64*)
17486	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17487	  ;;
17488	*)
17489	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17490	  ;;
17491	esac
17492      fi
17493      if test "$with_gnu_ld" = no; then
17494	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17495	hardcode_libdir_separator_GCJ=:
17496
17497	case $host_cpu in
17498	hppa*64*|ia64*)
17499	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17500	  hardcode_direct_GCJ=no
17501	  hardcode_shlibpath_var_GCJ=no
17502	  ;;
17503	*)
17504	  hardcode_direct_GCJ=yes
17505	  export_dynamic_flag_spec_GCJ='${wl}-E'
17506
17507	  # hardcode_minus_L: Not really in the search PATH,
17508	  # but as the default location of the library.
17509	  hardcode_minus_L_GCJ=yes
17510	  ;;
17511	esac
17512      fi
17513      ;;
17514
17515    irix5* | irix6* | nonstopux*)
17516      if test "$GCC" = yes; then
17517	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'
17518      else
17519	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'
17520	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17521      fi
17522      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17523      hardcode_libdir_separator_GCJ=:
17524      link_all_deplibs_GCJ=yes
17525      ;;
17526
17527    netbsd* | netbsdelf*-gnu)
17528      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17529	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17530      else
17531	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17532      fi
17533      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17534      hardcode_direct_GCJ=yes
17535      hardcode_shlibpath_var_GCJ=no
17536      ;;
17537
17538    newsos6)
17539      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17540      hardcode_direct_GCJ=yes
17541      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17542      hardcode_libdir_separator_GCJ=:
17543      hardcode_shlibpath_var_GCJ=no
17544      ;;
17545
17546    openbsd*)
17547      hardcode_direct_GCJ=yes
17548      hardcode_shlibpath_var_GCJ=no
17549      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17550	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17551	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17552	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17553	export_dynamic_flag_spec_GCJ='${wl}-E'
17554      else
17555       case $host_os in
17556	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17557	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17558	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17559	   ;;
17560	 *)
17561	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17562	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17563	   ;;
17564       esac
17565      fi
17566      ;;
17567
17568    os2*)
17569      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17570      hardcode_minus_L_GCJ=yes
17571      allow_undefined_flag_GCJ=unsupported
17572      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'
17573      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17574      ;;
17575
17576    osf3*)
17577      if test "$GCC" = yes; then
17578	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17579	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'
17580      else
17581	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17582	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'
17583      fi
17584      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17585      hardcode_libdir_separator_GCJ=:
17586      ;;
17587
17588    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17589      if test "$GCC" = yes; then
17590	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17591	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'
17592	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17593      else
17594	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17595	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'
17596	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~
17597	$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'
17598
17599	# Both c and cxx compiler support -rpath directly
17600	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17601      fi
17602      hardcode_libdir_separator_GCJ=:
17603      ;;
17604
17605    solaris*)
17606      no_undefined_flag_GCJ=' -z text'
17607      if test "$GCC" = yes; then
17608	wlarc='${wl}'
17609	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17610	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17611	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17612      else
17613	wlarc=''
17614	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17615	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17616  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17617      fi
17618      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17619      hardcode_shlibpath_var_GCJ=no
17620      case $host_os in
17621      solaris2.[0-5] | solaris2.[0-5].*) ;;
17622      *)
17623 	# The compiler driver will combine linker options so we
17624 	# cannot just pass the convience library names through
17625 	# without $wl, iff we do not link with $LD.
17626 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17627 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17628 	case $wlarc in
17629 	'')
17630 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17631 	*)
17632 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17633 	esac ;;
17634      esac
17635      link_all_deplibs_GCJ=yes
17636      ;;
17637
17638    sunos4*)
17639      if test "x$host_vendor" = xsequent; then
17640	# Use $CC to link under sequent, because it throws in some extra .o
17641	# files that make .init and .fini sections work.
17642	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17643      else
17644	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17645      fi
17646      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17647      hardcode_direct_GCJ=yes
17648      hardcode_minus_L_GCJ=yes
17649      hardcode_shlibpath_var_GCJ=no
17650      ;;
17651
17652    sysv4)
17653      case $host_vendor in
17654	sni)
17655	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17656	  hardcode_direct_GCJ=yes # is this really true???
17657	;;
17658	siemens)
17659	  ## LD is ld it makes a PLAMLIB
17660	  ## CC just makes a GrossModule.
17661	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17662	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17663	  hardcode_direct_GCJ=no
17664        ;;
17665	motorola)
17666	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17667	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17668	;;
17669      esac
17670      runpath_var='LD_RUN_PATH'
17671      hardcode_shlibpath_var_GCJ=no
17672      ;;
17673
17674    sysv4.3*)
17675      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17676      hardcode_shlibpath_var_GCJ=no
17677      export_dynamic_flag_spec_GCJ='-Bexport'
17678      ;;
17679
17680    sysv4*MP*)
17681      if test -d /usr/nec; then
17682	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17683	hardcode_shlibpath_var_GCJ=no
17684	runpath_var=LD_RUN_PATH
17685	hardcode_runpath_var=yes
17686	ld_shlibs_GCJ=yes
17687      fi
17688      ;;
17689
17690    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17691      no_undefined_flag_GCJ='${wl}-z,text'
17692      archive_cmds_need_lc_GCJ=no
17693      hardcode_shlibpath_var_GCJ=no
17694      runpath_var='LD_RUN_PATH'
17695
17696      if test "$GCC" = yes; then
17697	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17698	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17699      else
17700	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17701	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17702      fi
17703      ;;
17704
17705    sysv5* | sco3.2v5* | sco5v6*)
17706      # Note: We can NOT use -z defs as we might desire, because we do not
17707      # link with -lc, and that would cause any symbols used from libc to
17708      # always be unresolved, which means just about no library would
17709      # ever link correctly.  If we're not using GNU ld we use -z text
17710      # though, which does catch some bad symbols but isn't as heavy-handed
17711      # as -z defs.
17712      no_undefined_flag_GCJ='${wl}-z,text'
17713      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17714      archive_cmds_need_lc_GCJ=no
17715      hardcode_shlibpath_var_GCJ=no
17716      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17717      hardcode_libdir_separator_GCJ=':'
17718      link_all_deplibs_GCJ=yes
17719      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17720      runpath_var='LD_RUN_PATH'
17721
17722      if test "$GCC" = yes; then
17723	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17724	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17725      else
17726	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17727	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17728      fi
17729      ;;
17730
17731    uts4*)
17732      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17733      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17734      hardcode_shlibpath_var_GCJ=no
17735      ;;
17736
17737    *)
17738      ld_shlibs_GCJ=no
17739      ;;
17740    esac
17741  fi
17742
17743{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17744echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17745test "$ld_shlibs_GCJ" = no && can_build_shared=no
17746
17747#
17748# Do we need to explicitly link libc?
17749#
17750case "x$archive_cmds_need_lc_GCJ" in
17751x|xyes)
17752  # Assume -lc should be added
17753  archive_cmds_need_lc_GCJ=yes
17754
17755  if test "$enable_shared" = yes && test "$GCC" = yes; then
17756    case $archive_cmds_GCJ in
17757    *'~'*)
17758      # FIXME: we may have to deal with multi-command sequences.
17759      ;;
17760    '$CC '*)
17761      # Test whether the compiler implicitly links with -lc since on some
17762      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17763      # to ld, don't add -lc before -lgcc.
17764      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17765echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17766      $rm conftest*
17767      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17768
17769      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17770  (eval $ac_compile) 2>&5
17771  ac_status=$?
17772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773  (exit $ac_status); } 2>conftest.err; then
17774        soname=conftest
17775        lib=conftest
17776        libobjs=conftest.$ac_objext
17777        deplibs=
17778        wl=$lt_prog_compiler_wl_GCJ
17779	pic_flag=$lt_prog_compiler_pic_GCJ
17780        compiler_flags=-v
17781        linker_flags=-v
17782        verstring=
17783        output_objdir=.
17784        libname=conftest
17785        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17786        allow_undefined_flag_GCJ=
17787        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17788  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17789  ac_status=$?
17790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791  (exit $ac_status); }
17792        then
17793	  archive_cmds_need_lc_GCJ=no
17794        else
17795	  archive_cmds_need_lc_GCJ=yes
17796        fi
17797        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17798      else
17799        cat conftest.err 1>&5
17800      fi
17801      $rm conftest*
17802      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17803echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17804      ;;
17805    esac
17806  fi
17807  ;;
17808esac
17809
17810{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17811echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17812library_names_spec=
17813libname_spec='lib$name'
17814soname_spec=
17815shrext_cmds=".so"
17816postinstall_cmds=
17817postuninstall_cmds=
17818finish_cmds=
17819finish_eval=
17820shlibpath_var=
17821shlibpath_overrides_runpath=unknown
17822version_type=none
17823dynamic_linker="$host_os ld.so"
17824sys_lib_dlsearch_path_spec="/lib /usr/lib"
17825if test "$GCC" = yes; then
17826  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17827  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17828    # if the path contains ";" then we assume it to be the separator
17829    # otherwise default to the standard path separator (i.e. ":") - it is
17830    # assumed that no part of a normal pathname contains ";" but that should
17831    # okay in the real world where ";" in dirpaths is itself problematic.
17832    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17833  else
17834    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17835  fi
17836else
17837  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17838fi
17839need_lib_prefix=unknown
17840hardcode_into_libs=no
17841
17842# when you set need_version to no, make sure it does not cause -set_version
17843# flags to be left without arguments
17844need_version=unknown
17845
17846case $host_os in
17847aix3*)
17848  version_type=linux
17849  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17850  shlibpath_var=LIBPATH
17851
17852  # AIX 3 has no versioning support, so we append a major version to the name.
17853  soname_spec='${libname}${release}${shared_ext}$major'
17854  ;;
17855
17856aix4* | aix5*)
17857  version_type=linux
17858  need_lib_prefix=no
17859  need_version=no
17860  hardcode_into_libs=yes
17861  if test "$host_cpu" = ia64; then
17862    # AIX 5 supports IA64
17863    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17864    shlibpath_var=LD_LIBRARY_PATH
17865  else
17866    # With GCC up to 2.95.x, collect2 would create an import file
17867    # for dependence libraries.  The import file would start with
17868    # the line `#! .'.  This would cause the generated library to
17869    # depend on `.', always an invalid library.  This was fixed in
17870    # development snapshots of GCC prior to 3.0.
17871    case $host_os in
17872      aix4 | aix4.[01] | aix4.[01].*)
17873      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17874	   echo ' yes '
17875	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17876	:
17877      else
17878	can_build_shared=no
17879      fi
17880      ;;
17881    esac
17882    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17883    # soname into executable. Probably we can add versioning support to
17884    # collect2, so additional links can be useful in future.
17885    if test "$aix_use_runtimelinking" = yes; then
17886      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17887      # instead of lib<name>.a to let people know that these are not
17888      # typical AIX shared libraries.
17889      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17890    else
17891      # We preserve .a as extension for shared libraries through AIX4.2
17892      # and later when we are not doing run time linking.
17893      library_names_spec='${libname}${release}.a $libname.a'
17894      soname_spec='${libname}${release}${shared_ext}$major'
17895    fi
17896    shlibpath_var=LIBPATH
17897  fi
17898  ;;
17899
17900amigaos*)
17901  library_names_spec='$libname.ixlibrary $libname.a'
17902  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17903  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'
17904  ;;
17905
17906beos*)
17907  library_names_spec='${libname}${shared_ext}'
17908  dynamic_linker="$host_os ld.so"
17909  shlibpath_var=LIBRARY_PATH
17910  ;;
17911
17912bsdi[45]*)
17913  version_type=linux
17914  need_version=no
17915  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17916  soname_spec='${libname}${release}${shared_ext}$major'
17917  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17918  shlibpath_var=LD_LIBRARY_PATH
17919  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17920  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17921  # the default ld.so.conf also contains /usr/contrib/lib and
17922  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17923  # libtool to hard-code these into programs
17924  ;;
17925
17926cygwin* | mingw* | pw32*)
17927  version_type=windows
17928  shrext_cmds=".dll"
17929  need_version=no
17930  need_lib_prefix=no
17931
17932  case $GCC,$host_os in
17933  yes,cygwin* | yes,mingw* | yes,pw32*)
17934    library_names_spec='$libname.dll.a'
17935    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17936    postinstall_cmds='base_file=`basename \${file}`~
17937      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17938      dldir=$destdir/`dirname \$dlpath`~
17939      test -d \$dldir || mkdir -p \$dldir~
17940      $install_prog $dir/$dlname \$dldir/$dlname~
17941      chmod a+x \$dldir/$dlname'
17942    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17943      dlpath=$dir/\$dldll~
17944       $rm \$dlpath'
17945    shlibpath_overrides_runpath=yes
17946
17947    case $host_os in
17948    cygwin*)
17949      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17950      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17951      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17952      ;;
17953    mingw*)
17954      # MinGW DLLs use traditional 'lib' prefix
17955      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17956      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17957      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17958        # It is most probably a Windows format PATH printed by
17959        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17960        # path with ; separators, and with drive letters. We can handle the
17961        # drive letters (cygwin fileutils understands them), so leave them,
17962        # especially as we might pass files found there to a mingw objdump,
17963        # which wouldn't understand a cygwinified path. Ahh.
17964        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17965      else
17966        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17967      fi
17968      ;;
17969    pw32*)
17970      # pw32 DLLs use 'pw' prefix rather than 'lib'
17971      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17972      ;;
17973    esac
17974    ;;
17975
17976  *)
17977    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17978    ;;
17979  esac
17980  dynamic_linker='Win32 ld.exe'
17981  # FIXME: first we should search . and the directory the executable is in
17982  shlibpath_var=PATH
17983  ;;
17984
17985darwin* | rhapsody*)
17986  dynamic_linker="$host_os dyld"
17987  version_type=darwin
17988  need_lib_prefix=no
17989  need_version=no
17990  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17991  soname_spec='${libname}${release}${major}$shared_ext'
17992  shlibpath_overrides_runpath=yes
17993  shlibpath_var=DYLD_LIBRARY_PATH
17994  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17995  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17996  if test "$GCC" = yes; then
17997    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17998  else
17999    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18000  fi
18001  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18002  ;;
18003
18004dgux*)
18005  version_type=linux
18006  need_lib_prefix=no
18007  need_version=no
18008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18009  soname_spec='${libname}${release}${shared_ext}$major'
18010  shlibpath_var=LD_LIBRARY_PATH
18011  ;;
18012
18013freebsd1*)
18014  dynamic_linker=no
18015  ;;
18016
18017freebsd* | dragonfly*)
18018  # DragonFly does not have aout.  When/if they implement a new
18019  # versioning mechanism, adjust this.
18020  if test -x /usr/bin/objformat; then
18021    objformat=`/usr/bin/objformat`
18022  else
18023    case $host_os in
18024    freebsd[123]*) objformat=aout ;;
18025    *) objformat=elf ;;
18026    esac
18027  fi
18028  version_type=freebsd-$objformat
18029  case $version_type in
18030    freebsd-elf*)
18031      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18032      need_version=no
18033      need_lib_prefix=no
18034      ;;
18035    freebsd-*)
18036      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18037      need_version=yes
18038      ;;
18039  esac
18040  shlibpath_var=LD_LIBRARY_PATH
18041  case $host_os in
18042  freebsd2*)
18043    shlibpath_overrides_runpath=yes
18044    ;;
18045  freebsd3.[01]* | freebsdelf3.[01]*)
18046    shlibpath_overrides_runpath=yes
18047    hardcode_into_libs=yes
18048    ;;
18049  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18050  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18051    shlibpath_overrides_runpath=no
18052    hardcode_into_libs=yes
18053    ;;
18054  freebsd*) # from 4.6 on
18055    shlibpath_overrides_runpath=yes
18056    hardcode_into_libs=yes
18057    ;;
18058  esac
18059  ;;
18060
18061gnu*)
18062  version_type=linux
18063  need_lib_prefix=no
18064  need_version=no
18065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18066  soname_spec='${libname}${release}${shared_ext}$major'
18067  shlibpath_var=LD_LIBRARY_PATH
18068  hardcode_into_libs=yes
18069  ;;
18070
18071hpux9* | hpux10* | hpux11*)
18072  # Give a soname corresponding to the major version so that dld.sl refuses to
18073  # link against other versions.
18074  version_type=sunos
18075  need_lib_prefix=no
18076  need_version=no
18077  case $host_cpu in
18078  ia64*)
18079    shrext_cmds='.so'
18080    hardcode_into_libs=yes
18081    dynamic_linker="$host_os dld.so"
18082    shlibpath_var=LD_LIBRARY_PATH
18083    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18084    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18085    soname_spec='${libname}${release}${shared_ext}$major'
18086    if test "X$HPUX_IA64_MODE" = X32; then
18087      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18088    else
18089      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18090    fi
18091    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18092    ;;
18093   hppa*64*)
18094     shrext_cmds='.sl'
18095     hardcode_into_libs=yes
18096     dynamic_linker="$host_os dld.sl"
18097     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18098     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18099     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18100     soname_spec='${libname}${release}${shared_ext}$major'
18101     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18102     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18103     ;;
18104   *)
18105    shrext_cmds='.sl'
18106    dynamic_linker="$host_os dld.sl"
18107    shlibpath_var=SHLIB_PATH
18108    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18109    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18110    soname_spec='${libname}${release}${shared_ext}$major'
18111    ;;
18112  esac
18113  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18114  postinstall_cmds='chmod 555 $lib'
18115  ;;
18116
18117interix3*)
18118  version_type=linux
18119  need_lib_prefix=no
18120  need_version=no
18121  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18122  soname_spec='${libname}${release}${shared_ext}$major'
18123  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18124  shlibpath_var=LD_LIBRARY_PATH
18125  shlibpath_overrides_runpath=no
18126  hardcode_into_libs=yes
18127  ;;
18128
18129irix5* | irix6* | nonstopux*)
18130  case $host_os in
18131    nonstopux*) version_type=nonstopux ;;
18132    *)
18133	if test "$lt_cv_prog_gnu_ld" = yes; then
18134		version_type=linux
18135	else
18136		version_type=irix
18137	fi ;;
18138  esac
18139  need_lib_prefix=no
18140  need_version=no
18141  soname_spec='${libname}${release}${shared_ext}$major'
18142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18143  case $host_os in
18144  irix5* | nonstopux*)
18145    libsuff= shlibsuff=
18146    ;;
18147  *)
18148    case $LD in # libtool.m4 will add one of these switches to LD
18149    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18150      libsuff= shlibsuff= libmagic=32-bit;;
18151    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18152      libsuff=32 shlibsuff=N32 libmagic=N32;;
18153    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18154      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18155    *) libsuff= shlibsuff= libmagic=never-match;;
18156    esac
18157    ;;
18158  esac
18159  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18160  shlibpath_overrides_runpath=no
18161  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18162  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18163  hardcode_into_libs=yes
18164  ;;
18165
18166# No shared lib support for Linux oldld, aout, or coff.
18167linux*oldld* | linux*aout* | linux*coff*)
18168  dynamic_linker=no
18169  ;;
18170
18171# This must be Linux ELF.
18172linux* | k*bsd*-gnu)
18173  version_type=linux
18174  need_lib_prefix=no
18175  need_version=no
18176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18177  soname_spec='${libname}${release}${shared_ext}$major'
18178  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18179  shlibpath_var=LD_LIBRARY_PATH
18180  shlibpath_overrides_runpath=no
18181  # This implies no fast_install, which is unacceptable.
18182  # Some rework will be needed to allow for fast_install
18183  # before this can be enabled.
18184  hardcode_into_libs=yes
18185
18186  # Append ld.so.conf contents to the search path
18187  if test -f /etc/ld.so.conf; then
18188    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18189    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18190  fi
18191
18192  # We used to test for /lib/ld.so.1 and disable shared libraries on
18193  # powerpc, because MkLinux only supported shared libraries with the
18194  # GNU dynamic linker.  Since this was broken with cross compilers,
18195  # most powerpc-linux boxes support dynamic linking these days and
18196  # people can always --disable-shared, the test was removed, and we
18197  # assume the GNU/Linux dynamic linker is in use.
18198  dynamic_linker='GNU/Linux ld.so'
18199  ;;
18200
18201netbsdelf*-gnu)
18202  version_type=linux
18203  need_lib_prefix=no
18204  need_version=no
18205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18206  soname_spec='${libname}${release}${shared_ext}$major'
18207  shlibpath_var=LD_LIBRARY_PATH
18208  shlibpath_overrides_runpath=no
18209  hardcode_into_libs=yes
18210  dynamic_linker='NetBSD ld.elf_so'
18211  ;;
18212
18213netbsd*)
18214  version_type=sunos
18215  need_lib_prefix=no
18216  need_version=no
18217  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18218    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18219    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18220    dynamic_linker='NetBSD (a.out) ld.so'
18221  else
18222    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18223    soname_spec='${libname}${release}${shared_ext}$major'
18224    dynamic_linker='NetBSD ld.elf_so'
18225  fi
18226  shlibpath_var=LD_LIBRARY_PATH
18227  shlibpath_overrides_runpath=yes
18228  hardcode_into_libs=yes
18229  ;;
18230
18231newsos6)
18232  version_type=linux
18233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18234  shlibpath_var=LD_LIBRARY_PATH
18235  shlibpath_overrides_runpath=yes
18236  ;;
18237
18238nto-qnx*)
18239  version_type=linux
18240  need_lib_prefix=no
18241  need_version=no
18242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18243  soname_spec='${libname}${release}${shared_ext}$major'
18244  shlibpath_var=LD_LIBRARY_PATH
18245  shlibpath_overrides_runpath=yes
18246  ;;
18247
18248openbsd*)
18249  version_type=sunos
18250  sys_lib_dlsearch_path_spec="/usr/lib"
18251  need_lib_prefix=no
18252  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18253  case $host_os in
18254    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18255    *)                         need_version=no  ;;
18256  esac
18257  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18258  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18259  shlibpath_var=LD_LIBRARY_PATH
18260  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18261    case $host_os in
18262      openbsd2.[89] | openbsd2.[89].*)
18263	shlibpath_overrides_runpath=no
18264	;;
18265      *)
18266	shlibpath_overrides_runpath=yes
18267	;;
18268      esac
18269  else
18270    shlibpath_overrides_runpath=yes
18271  fi
18272  ;;
18273
18274os2*)
18275  libname_spec='$name'
18276  shrext_cmds=".dll"
18277  need_lib_prefix=no
18278  library_names_spec='$libname${shared_ext} $libname.a'
18279  dynamic_linker='OS/2 ld.exe'
18280  shlibpath_var=LIBPATH
18281  ;;
18282
18283osf3* | osf4* | osf5*)
18284  version_type=osf
18285  need_lib_prefix=no
18286  need_version=no
18287  soname_spec='${libname}${release}${shared_ext}$major'
18288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18289  shlibpath_var=LD_LIBRARY_PATH
18290  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18291  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18292  ;;
18293
18294solaris*)
18295  version_type=linux
18296  need_lib_prefix=no
18297  need_version=no
18298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18299  soname_spec='${libname}${release}${shared_ext}$major'
18300  shlibpath_var=LD_LIBRARY_PATH
18301  shlibpath_overrides_runpath=yes
18302  hardcode_into_libs=yes
18303  # ldd complains unless libraries are executable
18304  postinstall_cmds='chmod +x $lib'
18305  ;;
18306
18307sunos4*)
18308  version_type=sunos
18309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18310  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18311  shlibpath_var=LD_LIBRARY_PATH
18312  shlibpath_overrides_runpath=yes
18313  if test "$with_gnu_ld" = yes; then
18314    need_lib_prefix=no
18315  fi
18316  need_version=yes
18317  ;;
18318
18319sysv4 | sysv4.3*)
18320  version_type=linux
18321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18322  soname_spec='${libname}${release}${shared_ext}$major'
18323  shlibpath_var=LD_LIBRARY_PATH
18324  case $host_vendor in
18325    sni)
18326      shlibpath_overrides_runpath=no
18327      need_lib_prefix=no
18328      export_dynamic_flag_spec='${wl}-Blargedynsym'
18329      runpath_var=LD_RUN_PATH
18330      ;;
18331    siemens)
18332      need_lib_prefix=no
18333      ;;
18334    motorola)
18335      need_lib_prefix=no
18336      need_version=no
18337      shlibpath_overrides_runpath=no
18338      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18339      ;;
18340  esac
18341  ;;
18342
18343sysv4*MP*)
18344  if test -d /usr/nec ;then
18345    version_type=linux
18346    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18347    soname_spec='$libname${shared_ext}.$major'
18348    shlibpath_var=LD_LIBRARY_PATH
18349  fi
18350  ;;
18351
18352sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18353  version_type=freebsd-elf
18354  need_lib_prefix=no
18355  need_version=no
18356  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18357  soname_spec='${libname}${release}${shared_ext}$major'
18358  shlibpath_var=LD_LIBRARY_PATH
18359  hardcode_into_libs=yes
18360  if test "$with_gnu_ld" = yes; then
18361    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18362    shlibpath_overrides_runpath=no
18363  else
18364    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18365    shlibpath_overrides_runpath=yes
18366    case $host_os in
18367      sco3.2v5*)
18368        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18369	;;
18370    esac
18371  fi
18372  sys_lib_dlsearch_path_spec='/usr/lib'
18373  ;;
18374
18375uts4*)
18376  version_type=linux
18377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18378  soname_spec='${libname}${release}${shared_ext}$major'
18379  shlibpath_var=LD_LIBRARY_PATH
18380  ;;
18381
18382*)
18383  dynamic_linker=no
18384  ;;
18385esac
18386{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18387echo "${ECHO_T}$dynamic_linker" >&6; }
18388test "$dynamic_linker" = no && can_build_shared=no
18389
18390variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18391if test "$GCC" = yes; then
18392  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18393fi
18394
18395{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18396echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18397hardcode_action_GCJ=
18398if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18399   test -n "$runpath_var_GCJ" || \
18400   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18401
18402  # We can hardcode non-existant directories.
18403  if test "$hardcode_direct_GCJ" != no &&
18404     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18405     # have to relink, otherwise we might link with an installed library
18406     # when we should be linking with a yet-to-be-installed one
18407     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18408     test "$hardcode_minus_L_GCJ" != no; then
18409    # Linking always hardcodes the temporary library directory.
18410    hardcode_action_GCJ=relink
18411  else
18412    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18413    hardcode_action_GCJ=immediate
18414  fi
18415else
18416  # We cannot hardcode anything, or else we can only hardcode existing
18417  # directories.
18418  hardcode_action_GCJ=unsupported
18419fi
18420{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18421echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18422
18423if test "$hardcode_action_GCJ" = relink; then
18424  # Fast installation is not supported
18425  enable_fast_install=no
18426elif test "$shlibpath_overrides_runpath" = yes ||
18427     test "$enable_shared" = no; then
18428  # Fast installation is not necessary
18429  enable_fast_install=needless
18430fi
18431
18432
18433# The else clause should only fire when bootstrapping the
18434# libtool distribution, otherwise you forgot to ship ltmain.sh
18435# with your package, and you will get complaints that there are
18436# no rules to generate ltmain.sh.
18437if test -f "$ltmain"; then
18438  # See if we are running on zsh, and set the options which allow our commands through
18439  # without removal of \ escapes.
18440  if test -n "${ZSH_VERSION+set}" ; then
18441    setopt NO_GLOB_SUBST
18442  fi
18443  # Now quote all the things that may contain metacharacters while being
18444  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18445  # variables and quote the copies for generation of the libtool script.
18446  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18447    SED SHELL STRIP \
18448    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18449    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18450    deplibs_check_method reload_flag reload_cmds need_locks \
18451    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18452    lt_cv_sys_global_symbol_to_c_name_address \
18453    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18454    old_postinstall_cmds old_postuninstall_cmds \
18455    compiler_GCJ \
18456    CC_GCJ \
18457    LD_GCJ \
18458    lt_prog_compiler_wl_GCJ \
18459    lt_prog_compiler_pic_GCJ \
18460    lt_prog_compiler_static_GCJ \
18461    lt_prog_compiler_no_builtin_flag_GCJ \
18462    export_dynamic_flag_spec_GCJ \
18463    thread_safe_flag_spec_GCJ \
18464    whole_archive_flag_spec_GCJ \
18465    enable_shared_with_static_runtimes_GCJ \
18466    old_archive_cmds_GCJ \
18467    old_archive_from_new_cmds_GCJ \
18468    predep_objects_GCJ \
18469    postdep_objects_GCJ \
18470    predeps_GCJ \
18471    postdeps_GCJ \
18472    compiler_lib_search_path_GCJ \
18473    archive_cmds_GCJ \
18474    archive_expsym_cmds_GCJ \
18475    postinstall_cmds_GCJ \
18476    postuninstall_cmds_GCJ \
18477    old_archive_from_expsyms_cmds_GCJ \
18478    allow_undefined_flag_GCJ \
18479    no_undefined_flag_GCJ \
18480    export_symbols_cmds_GCJ \
18481    hardcode_libdir_flag_spec_GCJ \
18482    hardcode_libdir_flag_spec_ld_GCJ \
18483    hardcode_libdir_separator_GCJ \
18484    hardcode_automatic_GCJ \
18485    module_cmds_GCJ \
18486    module_expsym_cmds_GCJ \
18487    lt_cv_prog_compiler_c_o_GCJ \
18488    exclude_expsyms_GCJ \
18489    include_expsyms_GCJ; do
18490
18491    case $var in
18492    old_archive_cmds_GCJ | \
18493    old_archive_from_new_cmds_GCJ | \
18494    archive_cmds_GCJ | \
18495    archive_expsym_cmds_GCJ | \
18496    module_cmds_GCJ | \
18497    module_expsym_cmds_GCJ | \
18498    old_archive_from_expsyms_cmds_GCJ | \
18499    export_symbols_cmds_GCJ | \
18500    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18501    postinstall_cmds | postuninstall_cmds | \
18502    old_postinstall_cmds | old_postuninstall_cmds | \
18503    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18504      # Double-quote double-evaled strings.
18505      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18506      ;;
18507    *)
18508      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18509      ;;
18510    esac
18511  done
18512
18513  case $lt_echo in
18514  *'\$0 --fallback-echo"')
18515    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18516    ;;
18517  esac
18518
18519cfgfile="$ofile"
18520
18521  cat <<__EOF__ >> "$cfgfile"
18522# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18523
18524# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18525
18526# Shell to use when invoking shell scripts.
18527SHELL=$lt_SHELL
18528
18529# Whether or not to build shared libraries.
18530build_libtool_libs=$enable_shared
18531
18532# Whether or not to build static libraries.
18533build_old_libs=$enable_static
18534
18535# Whether or not to add -lc for building shared libraries.
18536build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18537
18538# Whether or not to disallow shared libs when runtime libs are static
18539allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18540
18541# Whether or not to optimize for fast installation.
18542fast_install=$enable_fast_install
18543
18544# The host system.
18545host_alias=$host_alias
18546host=$host
18547host_os=$host_os
18548
18549# The build system.
18550build_alias=$build_alias
18551build=$build
18552build_os=$build_os
18553
18554# An echo program that does not interpret backslashes.
18555echo=$lt_echo
18556
18557# The archiver.
18558AR=$lt_AR
18559AR_FLAGS=$lt_AR_FLAGS
18560
18561# A C compiler.
18562LTCC=$lt_LTCC
18563
18564# LTCC compiler flags.
18565LTCFLAGS=$lt_LTCFLAGS
18566
18567# A language-specific compiler.
18568CC=$lt_compiler_GCJ
18569
18570# Is the compiler the GNU C compiler?
18571with_gcc=$GCC_GCJ
18572
18573# An ERE matcher.
18574EGREP=$lt_EGREP
18575
18576# The linker used to build libraries.
18577LD=$lt_LD_GCJ
18578
18579# Whether we need hard or soft links.
18580LN_S=$lt_LN_S
18581
18582# A BSD-compatible nm program.
18583NM=$lt_NM
18584
18585# A symbol stripping program
18586STRIP=$lt_STRIP
18587
18588# Used to examine libraries when file_magic_cmd begins "file"
18589MAGIC_CMD=$MAGIC_CMD
18590
18591# Used on cygwin: DLL creation program.
18592DLLTOOL="$DLLTOOL"
18593
18594# Used on cygwin: object dumper.
18595OBJDUMP="$OBJDUMP"
18596
18597# Used on cygwin: assembler.
18598AS="$AS"
18599
18600# The name of the directory that contains temporary libtool files.
18601objdir=$objdir
18602
18603# How to create reloadable object files.
18604reload_flag=$lt_reload_flag
18605reload_cmds=$lt_reload_cmds
18606
18607# How to pass a linker flag through the compiler.
18608wl=$lt_lt_prog_compiler_wl_GCJ
18609
18610# Object file suffix (normally "o").
18611objext="$ac_objext"
18612
18613# Old archive suffix (normally "a").
18614libext="$libext"
18615
18616# Shared library suffix (normally ".so").
18617shrext_cmds='$shrext_cmds'
18618
18619# Executable file suffix (normally "").
18620exeext="$exeext"
18621
18622# Additional compiler flags for building library objects.
18623pic_flag=$lt_lt_prog_compiler_pic_GCJ
18624pic_mode=$pic_mode
18625
18626# What is the maximum length of a command?
18627max_cmd_len=$lt_cv_sys_max_cmd_len
18628
18629# Does compiler simultaneously support -c and -o options?
18630compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18631
18632# Must we lock files when doing compilation?
18633need_locks=$lt_need_locks
18634
18635# Do we need the lib prefix for modules?
18636need_lib_prefix=$need_lib_prefix
18637
18638# Do we need a version for libraries?
18639need_version=$need_version
18640
18641# Whether dlopen is supported.
18642dlopen_support=$enable_dlopen
18643
18644# Whether dlopen of programs is supported.
18645dlopen_self=$enable_dlopen_self
18646
18647# Whether dlopen of statically linked programs is supported.
18648dlopen_self_static=$enable_dlopen_self_static
18649
18650# Compiler flag to prevent dynamic linking.
18651link_static_flag=$lt_lt_prog_compiler_static_GCJ
18652
18653# Compiler flag to turn off builtin functions.
18654no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18655
18656# Compiler flag to allow reflexive dlopens.
18657export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18658
18659# Compiler flag to generate shared objects directly from archives.
18660whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18661
18662# Compiler flag to generate thread-safe objects.
18663thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18664
18665# Library versioning type.
18666version_type=$version_type
18667
18668# Format of library name prefix.
18669libname_spec=$lt_libname_spec
18670
18671# List of archive names.  First name is the real one, the rest are links.
18672# The last name is the one that the linker finds with -lNAME.
18673library_names_spec=$lt_library_names_spec
18674
18675# The coded name of the library, if different from the real name.
18676soname_spec=$lt_soname_spec
18677
18678# Commands used to build and install an old-style archive.
18679RANLIB=$lt_RANLIB
18680old_archive_cmds=$lt_old_archive_cmds_GCJ
18681old_postinstall_cmds=$lt_old_postinstall_cmds
18682old_postuninstall_cmds=$lt_old_postuninstall_cmds
18683
18684# Create an old-style archive from a shared archive.
18685old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18686
18687# Create a temporary old-style archive to link instead of a shared archive.
18688old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18689
18690# Commands used to build and install a shared archive.
18691archive_cmds=$lt_archive_cmds_GCJ
18692archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18693postinstall_cmds=$lt_postinstall_cmds
18694postuninstall_cmds=$lt_postuninstall_cmds
18695
18696# Commands used to build a loadable module (assumed same as above if empty)
18697module_cmds=$lt_module_cmds_GCJ
18698module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18699
18700# Commands to strip libraries.
18701old_striplib=$lt_old_striplib
18702striplib=$lt_striplib
18703
18704# Dependencies to place before the objects being linked to create a
18705# shared library.
18706predep_objects=$lt_predep_objects_GCJ
18707
18708# Dependencies to place after the objects being linked to create a
18709# shared library.
18710postdep_objects=$lt_postdep_objects_GCJ
18711
18712# Dependencies to place before the objects being linked to create a
18713# shared library.
18714predeps=$lt_predeps_GCJ
18715
18716# Dependencies to place after the objects being linked to create a
18717# shared library.
18718postdeps=$lt_postdeps_GCJ
18719
18720# The library search path used internally by the compiler when linking
18721# a shared library.
18722compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18723
18724# Method to check whether dependent libraries are shared objects.
18725deplibs_check_method=$lt_deplibs_check_method
18726
18727# Command to use when deplibs_check_method == file_magic.
18728file_magic_cmd=$lt_file_magic_cmd
18729
18730# Flag that allows shared libraries with undefined symbols to be built.
18731allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18732
18733# Flag that forces no undefined symbols.
18734no_undefined_flag=$lt_no_undefined_flag_GCJ
18735
18736# Commands used to finish a libtool library installation in a directory.
18737finish_cmds=$lt_finish_cmds
18738
18739# Same as above, but a single script fragment to be evaled but not shown.
18740finish_eval=$lt_finish_eval
18741
18742# Take the output of nm and produce a listing of raw symbols and C names.
18743global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18744
18745# Transform the output of nm in a proper C declaration
18746global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18747
18748# Transform the output of nm in a C name address pair
18749global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18750
18751# This is the shared library runtime path variable.
18752runpath_var=$runpath_var
18753
18754# This is the shared library path variable.
18755shlibpath_var=$shlibpath_var
18756
18757# Is shlibpath searched before the hard-coded library search path?
18758shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18759
18760# How to hardcode a shared library path into an executable.
18761hardcode_action=$hardcode_action_GCJ
18762
18763# Whether we should hardcode library paths into libraries.
18764hardcode_into_libs=$hardcode_into_libs
18765
18766# Flag to hardcode \$libdir into a binary during linking.
18767# This must work even if \$libdir does not exist.
18768hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18769
18770# If ld is used when linking, flag to hardcode \$libdir into
18771# a binary during linking. This must work even if \$libdir does
18772# not exist.
18773hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18774
18775# Whether we need a single -rpath flag with a separated argument.
18776hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18777
18778# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18779# resulting binary.
18780hardcode_direct=$hardcode_direct_GCJ
18781
18782# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18783# resulting binary.
18784hardcode_minus_L=$hardcode_minus_L_GCJ
18785
18786# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18787# the resulting binary.
18788hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18789
18790# Set to yes if building a shared library automatically hardcodes DIR into the library
18791# and all subsequent libraries and executables linked against it.
18792hardcode_automatic=$hardcode_automatic_GCJ
18793
18794# Variables whose values should be saved in libtool wrapper scripts and
18795# restored at relink time.
18796variables_saved_for_relink="$variables_saved_for_relink"
18797
18798# Whether libtool must link a program against all its dependency libraries.
18799link_all_deplibs=$link_all_deplibs_GCJ
18800
18801# Compile-time system search path for libraries
18802sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18803
18804# Run-time system search path for libraries
18805sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18806
18807# Fix the shell variable \$srcfile for the compiler.
18808fix_srcfile_path="$fix_srcfile_path_GCJ"
18809
18810# Set to yes if exported symbols are required.
18811always_export_symbols=$always_export_symbols_GCJ
18812
18813# The commands to list exported symbols.
18814export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18815
18816# The commands to extract the exported symbol list from a shared archive.
18817extract_expsyms_cmds=$lt_extract_expsyms_cmds
18818
18819# Symbols that should not be listed in the preloaded symbols.
18820exclude_expsyms=$lt_exclude_expsyms_GCJ
18821
18822# Symbols that must always be exported.
18823include_expsyms=$lt_include_expsyms_GCJ
18824
18825# ### END LIBTOOL TAG CONFIG: $tagname
18826
18827__EOF__
18828
18829
18830else
18831  # If there is no Makefile yet, we rely on a make rule to execute
18832  # `config.status --recheck' to rerun these tests and create the
18833  # libtool script then.
18834  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18835  if test -f "$ltmain_in"; then
18836    test -f Makefile && make "$ltmain"
18837  fi
18838fi
18839
18840
18841ac_ext=c
18842ac_cpp='$CPP $CPPFLAGS'
18843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18845ac_compiler_gnu=$ac_cv_c_compiler_gnu
18846
18847CC="$lt_save_CC"
18848
18849	else
18850	  tagname=""
18851	fi
18852	;;
18853
18854      RC)
18855
18856
18857# Source file extension for RC test sources.
18858ac_ext=rc
18859
18860# Object file extension for compiled RC test sources.
18861objext=o
18862objext_RC=$objext
18863
18864# Code to be used in simple compile tests
18865lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18866
18867# Code to be used in simple link tests
18868lt_simple_link_test_code="$lt_simple_compile_test_code"
18869
18870# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18871
18872# If no C compiler was specified, use CC.
18873LTCC=${LTCC-"$CC"}
18874
18875# If no C compiler flags were specified, use CFLAGS.
18876LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18877
18878# Allow CC to be a program name with arguments.
18879compiler=$CC
18880
18881
18882# save warnings/boilerplate of simple test code
18883ac_outfile=conftest.$ac_objext
18884printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18885eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18886_lt_compiler_boilerplate=`cat conftest.err`
18887$rm conftest*
18888
18889ac_outfile=conftest.$ac_objext
18890printf "$lt_simple_link_test_code" >conftest.$ac_ext
18891eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18892_lt_linker_boilerplate=`cat conftest.err`
18893$rm conftest*
18894
18895
18896# Allow CC to be a program name with arguments.
18897lt_save_CC="$CC"
18898CC=${RC-"windres"}
18899compiler=$CC
18900compiler_RC=$CC
18901for cc_temp in $compiler""; do
18902  case $cc_temp in
18903    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18904    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18905    \-*) ;;
18906    *) break;;
18907  esac
18908done
18909cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18910
18911lt_cv_prog_compiler_c_o_RC=yes
18912
18913# The else clause should only fire when bootstrapping the
18914# libtool distribution, otherwise you forgot to ship ltmain.sh
18915# with your package, and you will get complaints that there are
18916# no rules to generate ltmain.sh.
18917if test -f "$ltmain"; then
18918  # See if we are running on zsh, and set the options which allow our commands through
18919  # without removal of \ escapes.
18920  if test -n "${ZSH_VERSION+set}" ; then
18921    setopt NO_GLOB_SUBST
18922  fi
18923  # Now quote all the things that may contain metacharacters while being
18924  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18925  # variables and quote the copies for generation of the libtool script.
18926  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18927    SED SHELL STRIP \
18928    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18929    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18930    deplibs_check_method reload_flag reload_cmds need_locks \
18931    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18932    lt_cv_sys_global_symbol_to_c_name_address \
18933    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18934    old_postinstall_cmds old_postuninstall_cmds \
18935    compiler_RC \
18936    CC_RC \
18937    LD_RC \
18938    lt_prog_compiler_wl_RC \
18939    lt_prog_compiler_pic_RC \
18940    lt_prog_compiler_static_RC \
18941    lt_prog_compiler_no_builtin_flag_RC \
18942    export_dynamic_flag_spec_RC \
18943    thread_safe_flag_spec_RC \
18944    whole_archive_flag_spec_RC \
18945    enable_shared_with_static_runtimes_RC \
18946    old_archive_cmds_RC \
18947    old_archive_from_new_cmds_RC \
18948    predep_objects_RC \
18949    postdep_objects_RC \
18950    predeps_RC \
18951    postdeps_RC \
18952    compiler_lib_search_path_RC \
18953    archive_cmds_RC \
18954    archive_expsym_cmds_RC \
18955    postinstall_cmds_RC \
18956    postuninstall_cmds_RC \
18957    old_archive_from_expsyms_cmds_RC \
18958    allow_undefined_flag_RC \
18959    no_undefined_flag_RC \
18960    export_symbols_cmds_RC \
18961    hardcode_libdir_flag_spec_RC \
18962    hardcode_libdir_flag_spec_ld_RC \
18963    hardcode_libdir_separator_RC \
18964    hardcode_automatic_RC \
18965    module_cmds_RC \
18966    module_expsym_cmds_RC \
18967    lt_cv_prog_compiler_c_o_RC \
18968    exclude_expsyms_RC \
18969    include_expsyms_RC; do
18970
18971    case $var in
18972    old_archive_cmds_RC | \
18973    old_archive_from_new_cmds_RC | \
18974    archive_cmds_RC | \
18975    archive_expsym_cmds_RC | \
18976    module_cmds_RC | \
18977    module_expsym_cmds_RC | \
18978    old_archive_from_expsyms_cmds_RC | \
18979    export_symbols_cmds_RC | \
18980    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18981    postinstall_cmds | postuninstall_cmds | \
18982    old_postinstall_cmds | old_postuninstall_cmds | \
18983    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18984      # Double-quote double-evaled strings.
18985      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18986      ;;
18987    *)
18988      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18989      ;;
18990    esac
18991  done
18992
18993  case $lt_echo in
18994  *'\$0 --fallback-echo"')
18995    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18996    ;;
18997  esac
18998
18999cfgfile="$ofile"
19000
19001  cat <<__EOF__ >> "$cfgfile"
19002# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19003
19004# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19005
19006# Shell to use when invoking shell scripts.
19007SHELL=$lt_SHELL
19008
19009# Whether or not to build shared libraries.
19010build_libtool_libs=$enable_shared
19011
19012# Whether or not to build static libraries.
19013build_old_libs=$enable_static
19014
19015# Whether or not to add -lc for building shared libraries.
19016build_libtool_need_lc=$archive_cmds_need_lc_RC
19017
19018# Whether or not to disallow shared libs when runtime libs are static
19019allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19020
19021# Whether or not to optimize for fast installation.
19022fast_install=$enable_fast_install
19023
19024# The host system.
19025host_alias=$host_alias
19026host=$host
19027host_os=$host_os
19028
19029# The build system.
19030build_alias=$build_alias
19031build=$build
19032build_os=$build_os
19033
19034# An echo program that does not interpret backslashes.
19035echo=$lt_echo
19036
19037# The archiver.
19038AR=$lt_AR
19039AR_FLAGS=$lt_AR_FLAGS
19040
19041# A C compiler.
19042LTCC=$lt_LTCC
19043
19044# LTCC compiler flags.
19045LTCFLAGS=$lt_LTCFLAGS
19046
19047# A language-specific compiler.
19048CC=$lt_compiler_RC
19049
19050# Is the compiler the GNU C compiler?
19051with_gcc=$GCC_RC
19052
19053# An ERE matcher.
19054EGREP=$lt_EGREP
19055
19056# The linker used to build libraries.
19057LD=$lt_LD_RC
19058
19059# Whether we need hard or soft links.
19060LN_S=$lt_LN_S
19061
19062# A BSD-compatible nm program.
19063NM=$lt_NM
19064
19065# A symbol stripping program
19066STRIP=$lt_STRIP
19067
19068# Used to examine libraries when file_magic_cmd begins "file"
19069MAGIC_CMD=$MAGIC_CMD
19070
19071# Used on cygwin: DLL creation program.
19072DLLTOOL="$DLLTOOL"
19073
19074# Used on cygwin: object dumper.
19075OBJDUMP="$OBJDUMP"
19076
19077# Used on cygwin: assembler.
19078AS="$AS"
19079
19080# The name of the directory that contains temporary libtool files.
19081objdir=$objdir
19082
19083# How to create reloadable object files.
19084reload_flag=$lt_reload_flag
19085reload_cmds=$lt_reload_cmds
19086
19087# How to pass a linker flag through the compiler.
19088wl=$lt_lt_prog_compiler_wl_RC
19089
19090# Object file suffix (normally "o").
19091objext="$ac_objext"
19092
19093# Old archive suffix (normally "a").
19094libext="$libext"
19095
19096# Shared library suffix (normally ".so").
19097shrext_cmds='$shrext_cmds'
19098
19099# Executable file suffix (normally "").
19100exeext="$exeext"
19101
19102# Additional compiler flags for building library objects.
19103pic_flag=$lt_lt_prog_compiler_pic_RC
19104pic_mode=$pic_mode
19105
19106# What is the maximum length of a command?
19107max_cmd_len=$lt_cv_sys_max_cmd_len
19108
19109# Does compiler simultaneously support -c and -o options?
19110compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19111
19112# Must we lock files when doing compilation?
19113need_locks=$lt_need_locks
19114
19115# Do we need the lib prefix for modules?
19116need_lib_prefix=$need_lib_prefix
19117
19118# Do we need a version for libraries?
19119need_version=$need_version
19120
19121# Whether dlopen is supported.
19122dlopen_support=$enable_dlopen
19123
19124# Whether dlopen of programs is supported.
19125dlopen_self=$enable_dlopen_self
19126
19127# Whether dlopen of statically linked programs is supported.
19128dlopen_self_static=$enable_dlopen_self_static
19129
19130# Compiler flag to prevent dynamic linking.
19131link_static_flag=$lt_lt_prog_compiler_static_RC
19132
19133# Compiler flag to turn off builtin functions.
19134no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19135
19136# Compiler flag to allow reflexive dlopens.
19137export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19138
19139# Compiler flag to generate shared objects directly from archives.
19140whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19141
19142# Compiler flag to generate thread-safe objects.
19143thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19144
19145# Library versioning type.
19146version_type=$version_type
19147
19148# Format of library name prefix.
19149libname_spec=$lt_libname_spec
19150
19151# List of archive names.  First name is the real one, the rest are links.
19152# The last name is the one that the linker finds with -lNAME.
19153library_names_spec=$lt_library_names_spec
19154
19155# The coded name of the library, if different from the real name.
19156soname_spec=$lt_soname_spec
19157
19158# Commands used to build and install an old-style archive.
19159RANLIB=$lt_RANLIB
19160old_archive_cmds=$lt_old_archive_cmds_RC
19161old_postinstall_cmds=$lt_old_postinstall_cmds
19162old_postuninstall_cmds=$lt_old_postuninstall_cmds
19163
19164# Create an old-style archive from a shared archive.
19165old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19166
19167# Create a temporary old-style archive to link instead of a shared archive.
19168old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19169
19170# Commands used to build and install a shared archive.
19171archive_cmds=$lt_archive_cmds_RC
19172archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19173postinstall_cmds=$lt_postinstall_cmds
19174postuninstall_cmds=$lt_postuninstall_cmds
19175
19176# Commands used to build a loadable module (assumed same as above if empty)
19177module_cmds=$lt_module_cmds_RC
19178module_expsym_cmds=$lt_module_expsym_cmds_RC
19179
19180# Commands to strip libraries.
19181old_striplib=$lt_old_striplib
19182striplib=$lt_striplib
19183
19184# Dependencies to place before the objects being linked to create a
19185# shared library.
19186predep_objects=$lt_predep_objects_RC
19187
19188# Dependencies to place after the objects being linked to create a
19189# shared library.
19190postdep_objects=$lt_postdep_objects_RC
19191
19192# Dependencies to place before the objects being linked to create a
19193# shared library.
19194predeps=$lt_predeps_RC
19195
19196# Dependencies to place after the objects being linked to create a
19197# shared library.
19198postdeps=$lt_postdeps_RC
19199
19200# The library search path used internally by the compiler when linking
19201# a shared library.
19202compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19203
19204# Method to check whether dependent libraries are shared objects.
19205deplibs_check_method=$lt_deplibs_check_method
19206
19207# Command to use when deplibs_check_method == file_magic.
19208file_magic_cmd=$lt_file_magic_cmd
19209
19210# Flag that allows shared libraries with undefined symbols to be built.
19211allow_undefined_flag=$lt_allow_undefined_flag_RC
19212
19213# Flag that forces no undefined symbols.
19214no_undefined_flag=$lt_no_undefined_flag_RC
19215
19216# Commands used to finish a libtool library installation in a directory.
19217finish_cmds=$lt_finish_cmds
19218
19219# Same as above, but a single script fragment to be evaled but not shown.
19220finish_eval=$lt_finish_eval
19221
19222# Take the output of nm and produce a listing of raw symbols and C names.
19223global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19224
19225# Transform the output of nm in a proper C declaration
19226global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19227
19228# Transform the output of nm in a C name address pair
19229global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19230
19231# This is the shared library runtime path variable.
19232runpath_var=$runpath_var
19233
19234# This is the shared library path variable.
19235shlibpath_var=$shlibpath_var
19236
19237# Is shlibpath searched before the hard-coded library search path?
19238shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19239
19240# How to hardcode a shared library path into an executable.
19241hardcode_action=$hardcode_action_RC
19242
19243# Whether we should hardcode library paths into libraries.
19244hardcode_into_libs=$hardcode_into_libs
19245
19246# Flag to hardcode \$libdir into a binary during linking.
19247# This must work even if \$libdir does not exist.
19248hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19249
19250# If ld is used when linking, flag to hardcode \$libdir into
19251# a binary during linking. This must work even if \$libdir does
19252# not exist.
19253hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19254
19255# Whether we need a single -rpath flag with a separated argument.
19256hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19257
19258# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19259# resulting binary.
19260hardcode_direct=$hardcode_direct_RC
19261
19262# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19263# resulting binary.
19264hardcode_minus_L=$hardcode_minus_L_RC
19265
19266# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19267# the resulting binary.
19268hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19269
19270# Set to yes if building a shared library automatically hardcodes DIR into the library
19271# and all subsequent libraries and executables linked against it.
19272hardcode_automatic=$hardcode_automatic_RC
19273
19274# Variables whose values should be saved in libtool wrapper scripts and
19275# restored at relink time.
19276variables_saved_for_relink="$variables_saved_for_relink"
19277
19278# Whether libtool must link a program against all its dependency libraries.
19279link_all_deplibs=$link_all_deplibs_RC
19280
19281# Compile-time system search path for libraries
19282sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19283
19284# Run-time system search path for libraries
19285sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19286
19287# Fix the shell variable \$srcfile for the compiler.
19288fix_srcfile_path="$fix_srcfile_path_RC"
19289
19290# Set to yes if exported symbols are required.
19291always_export_symbols=$always_export_symbols_RC
19292
19293# The commands to list exported symbols.
19294export_symbols_cmds=$lt_export_symbols_cmds_RC
19295
19296# The commands to extract the exported symbol list from a shared archive.
19297extract_expsyms_cmds=$lt_extract_expsyms_cmds
19298
19299# Symbols that should not be listed in the preloaded symbols.
19300exclude_expsyms=$lt_exclude_expsyms_RC
19301
19302# Symbols that must always be exported.
19303include_expsyms=$lt_include_expsyms_RC
19304
19305# ### END LIBTOOL TAG CONFIG: $tagname
19306
19307__EOF__
19308
19309
19310else
19311  # If there is no Makefile yet, we rely on a make rule to execute
19312  # `config.status --recheck' to rerun these tests and create the
19313  # libtool script then.
19314  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19315  if test -f "$ltmain_in"; then
19316    test -f Makefile && make "$ltmain"
19317  fi
19318fi
19319
19320
19321ac_ext=c
19322ac_cpp='$CPP $CPPFLAGS'
19323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19325ac_compiler_gnu=$ac_cv_c_compiler_gnu
19326
19327CC="$lt_save_CC"
19328
19329	;;
19330
19331      *)
19332	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19333echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19334   { (exit 1); exit 1; }; }
19335	;;
19336      esac
19337
19338      # Append the new tag name to the list of available tags.
19339      if test -n "$tagname" ; then
19340      available_tags="$available_tags $tagname"
19341    fi
19342    fi
19343  done
19344  IFS="$lt_save_ifs"
19345
19346  # Now substitute the updated list of available tags.
19347  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19348    mv "${ofile}T" "$ofile"
19349    chmod +x "$ofile"
19350  else
19351    rm -f "${ofile}T"
19352    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19353echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19354   { (exit 1); exit 1; }; }
19355  fi
19356fi
19357
19358
19359
19360# This can be used to rebuild libtool when needed
19361LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19362
19363# Always use our own libtool.
19364LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19365
19366# Prevent multiple expansion
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388ac_ext=cpp
19389ac_cpp='$CXXCPP $CPPFLAGS'
19390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19393
19394
19395
19396{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19397echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19398if test "${ac_cv_header_stdc+set}" = set; then
19399  echo $ECHO_N "(cached) $ECHO_C" >&6
19400else
19401  cat >conftest.$ac_ext <<_ACEOF
19402/* confdefs.h.  */
19403_ACEOF
19404cat confdefs.h >>conftest.$ac_ext
19405cat >>conftest.$ac_ext <<_ACEOF
19406/* end confdefs.h.  */
19407#include <stdlib.h>
19408#include <stdarg.h>
19409#include <string.h>
19410#include <float.h>
19411
19412int
19413main ()
19414{
19415
19416  ;
19417  return 0;
19418}
19419_ACEOF
19420rm -f conftest.$ac_objext
19421if { (ac_try="$ac_compile"
19422case "(($ac_try" in
19423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424  *) ac_try_echo=$ac_try;;
19425esac
19426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427  (eval "$ac_compile") 2>conftest.er1
19428  ac_status=$?
19429  grep -v '^ *+' conftest.er1 >conftest.err
19430  rm -f conftest.er1
19431  cat conftest.err >&5
19432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433  (exit $ac_status); } && {
19434	 test -z "$ac_cxx_werror_flag" ||
19435	 test ! -s conftest.err
19436       } && test -s conftest.$ac_objext; then
19437  ac_cv_header_stdc=yes
19438else
19439  echo "$as_me: failed program was:" >&5
19440sed 's/^/| /' conftest.$ac_ext >&5
19441
19442	ac_cv_header_stdc=no
19443fi
19444
19445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19446
19447if test $ac_cv_header_stdc = yes; then
19448  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19449  cat >conftest.$ac_ext <<_ACEOF
19450/* confdefs.h.  */
19451_ACEOF
19452cat confdefs.h >>conftest.$ac_ext
19453cat >>conftest.$ac_ext <<_ACEOF
19454/* end confdefs.h.  */
19455#include <string.h>
19456
19457_ACEOF
19458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19459  $EGREP "memchr" >/dev/null 2>&1; then
19460  :
19461else
19462  ac_cv_header_stdc=no
19463fi
19464rm -f conftest*
19465
19466fi
19467
19468if test $ac_cv_header_stdc = yes; then
19469  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19470  cat >conftest.$ac_ext <<_ACEOF
19471/* confdefs.h.  */
19472_ACEOF
19473cat confdefs.h >>conftest.$ac_ext
19474cat >>conftest.$ac_ext <<_ACEOF
19475/* end confdefs.h.  */
19476#include <stdlib.h>
19477
19478_ACEOF
19479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19480  $EGREP "free" >/dev/null 2>&1; then
19481  :
19482else
19483  ac_cv_header_stdc=no
19484fi
19485rm -f conftest*
19486
19487fi
19488
19489if test $ac_cv_header_stdc = yes; then
19490  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19491  if test "$cross_compiling" = yes; then
19492  :
19493else
19494  cat >conftest.$ac_ext <<_ACEOF
19495/* confdefs.h.  */
19496_ACEOF
19497cat confdefs.h >>conftest.$ac_ext
19498cat >>conftest.$ac_ext <<_ACEOF
19499/* end confdefs.h.  */
19500#include <ctype.h>
19501#include <stdlib.h>
19502#if ((' ' & 0x0FF) == 0x020)
19503# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19504# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19505#else
19506# define ISLOWER(c) \
19507		   (('a' <= (c) && (c) <= 'i') \
19508		     || ('j' <= (c) && (c) <= 'r') \
19509		     || ('s' <= (c) && (c) <= 'z'))
19510# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19511#endif
19512
19513#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19514int
19515main ()
19516{
19517  int i;
19518  for (i = 0; i < 256; i++)
19519    if (XOR (islower (i), ISLOWER (i))
19520	|| toupper (i) != TOUPPER (i))
19521      return 2;
19522  return 0;
19523}
19524_ACEOF
19525rm -f conftest$ac_exeext
19526if { (ac_try="$ac_link"
19527case "(($ac_try" in
19528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529  *) ac_try_echo=$ac_try;;
19530esac
19531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532  (eval "$ac_link") 2>&5
19533  ac_status=$?
19534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19536  { (case "(($ac_try" in
19537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538  *) ac_try_echo=$ac_try;;
19539esac
19540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541  (eval "$ac_try") 2>&5
19542  ac_status=$?
19543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544  (exit $ac_status); }; }; then
19545  :
19546else
19547  echo "$as_me: program exited with status $ac_status" >&5
19548echo "$as_me: failed program was:" >&5
19549sed 's/^/| /' conftest.$ac_ext >&5
19550
19551( exit $ac_status )
19552ac_cv_header_stdc=no
19553fi
19554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19555fi
19556
19557
19558fi
19559fi
19560{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19561echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19562if test $ac_cv_header_stdc = yes; then
19563
19564cat >>confdefs.h <<\_ACEOF
19565#define STDC_HEADERS 1
19566_ACEOF
19567
19568fi
19569
19570
19571#
19572# Handle user hints
19573#
19574{ echo "$as_me:$LINENO: checking if zlib is wanted" >&5
19575echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6; }
19576
19577# Check whether --with-zlib was given.
19578if test "${with_zlib+set}" = set; then
19579  withval=$with_zlib; if test "$withval" != no ; then
19580  { echo "$as_me:$LINENO: result: yes" >&5
19581echo "${ECHO_T}yes" >&6; }
19582  ZLIB_HOME="$withval"
19583else
19584  { echo "$as_me:$LINENO: result: no" >&5
19585echo "${ECHO_T}no" >&6; }
19586fi
19587else
19588
19589{ echo "$as_me:$LINENO: result: yes" >&5
19590echo "${ECHO_T}yes" >&6; }
19591ZLIB_HOME=/usr/local
19592if test ! -f "${ZLIB_HOME}/include/zlib.h"
19593then
19594        ZLIB_HOME=/usr
19595fi
19596
19597fi
19598
19599#
19600# Locate zlib, if wanted
19601#
19602if test -n "${ZLIB_HOME}"
19603then
19604        ZLIB_OLD_LDFLAGS=$LDFLAGS
19605        ZLIB_OLD_CPPFLAGS=$LDFLAGS
19606        LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
19607        CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
19608
19609        ac_ext=c
19610ac_cpp='$CPP $CPPFLAGS'
19611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19613ac_compiler_gnu=$ac_cv_c_compiler_gnu
19614
19615        { echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
19616echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
19617if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
19618  echo $ECHO_N "(cached) $ECHO_C" >&6
19619else
19620  ac_check_lib_save_LIBS=$LIBS
19621LIBS="-lz  $LIBS"
19622cat >conftest.$ac_ext <<_ACEOF
19623/* confdefs.h.  */
19624_ACEOF
19625cat confdefs.h >>conftest.$ac_ext
19626cat >>conftest.$ac_ext <<_ACEOF
19627/* end confdefs.h.  */
19628
19629/* Override any GCC internal prototype to avoid an error.
19630   Use char because int might match the return type of a GCC
19631   builtin and then its argument prototype would still apply.  */
19632#ifdef __cplusplus
19633extern "C"
19634#endif
19635char inflateEnd ();
19636int
19637main ()
19638{
19639return inflateEnd ();
19640  ;
19641  return 0;
19642}
19643_ACEOF
19644rm -f conftest.$ac_objext conftest$ac_exeext
19645if { (ac_try="$ac_link"
19646case "(($ac_try" in
19647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19648  *) ac_try_echo=$ac_try;;
19649esac
19650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19651  (eval "$ac_link") 2>conftest.er1
19652  ac_status=$?
19653  grep -v '^ *+' conftest.er1 >conftest.err
19654  rm -f conftest.er1
19655  cat conftest.err >&5
19656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657  (exit $ac_status); } && {
19658	 test -z "$ac_c_werror_flag" ||
19659	 test ! -s conftest.err
19660       } && test -s conftest$ac_exeext &&
19661       $as_test_x conftest$ac_exeext; then
19662  ac_cv_lib_z_inflateEnd=yes
19663else
19664  echo "$as_me: failed program was:" >&5
19665sed 's/^/| /' conftest.$ac_ext >&5
19666
19667	ac_cv_lib_z_inflateEnd=no
19668fi
19669
19670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19671      conftest$ac_exeext conftest.$ac_ext
19672LIBS=$ac_check_lib_save_LIBS
19673fi
19674{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
19675echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; }
19676if test $ac_cv_lib_z_inflateEnd = yes; then
19677  zlib_cv_libz=yes
19678else
19679  zlib_cv_libz=no
19680fi
19681
19682        if test "${ac_cv_header_zlib_h+set}" = set; then
19683  { echo "$as_me:$LINENO: checking for zlib.h" >&5
19684echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
19685if test "${ac_cv_header_zlib_h+set}" = set; then
19686  echo $ECHO_N "(cached) $ECHO_C" >&6
19687fi
19688{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19689echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
19690else
19691  # Is the header compilable?
19692{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
19693echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
19694cat >conftest.$ac_ext <<_ACEOF
19695/* confdefs.h.  */
19696_ACEOF
19697cat confdefs.h >>conftest.$ac_ext
19698cat >>conftest.$ac_ext <<_ACEOF
19699/* end confdefs.h.  */
19700$ac_includes_default
19701#include <zlib.h>
19702_ACEOF
19703rm -f conftest.$ac_objext
19704if { (ac_try="$ac_compile"
19705case "(($ac_try" in
19706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707  *) ac_try_echo=$ac_try;;
19708esac
19709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710  (eval "$ac_compile") 2>conftest.er1
19711  ac_status=$?
19712  grep -v '^ *+' conftest.er1 >conftest.err
19713  rm -f conftest.er1
19714  cat conftest.err >&5
19715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716  (exit $ac_status); } && {
19717	 test -z "$ac_c_werror_flag" ||
19718	 test ! -s conftest.err
19719       } && test -s conftest.$ac_objext; then
19720  ac_header_compiler=yes
19721else
19722  echo "$as_me: failed program was:" >&5
19723sed 's/^/| /' conftest.$ac_ext >&5
19724
19725	ac_header_compiler=no
19726fi
19727
19728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19729{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19730echo "${ECHO_T}$ac_header_compiler" >&6; }
19731
19732# Is the header present?
19733{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
19734echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
19735cat >conftest.$ac_ext <<_ACEOF
19736/* confdefs.h.  */
19737_ACEOF
19738cat confdefs.h >>conftest.$ac_ext
19739cat >>conftest.$ac_ext <<_ACEOF
19740/* end confdefs.h.  */
19741#include <zlib.h>
19742_ACEOF
19743if { (ac_try="$ac_cpp conftest.$ac_ext"
19744case "(($ac_try" in
19745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746  *) ac_try_echo=$ac_try;;
19747esac
19748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19750  ac_status=$?
19751  grep -v '^ *+' conftest.er1 >conftest.err
19752  rm -f conftest.er1
19753  cat conftest.err >&5
19754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755  (exit $ac_status); } >/dev/null && {
19756	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19757	 test ! -s conftest.err
19758       }; then
19759  ac_header_preproc=yes
19760else
19761  echo "$as_me: failed program was:" >&5
19762sed 's/^/| /' conftest.$ac_ext >&5
19763
19764  ac_header_preproc=no
19765fi
19766
19767rm -f conftest.err conftest.$ac_ext
19768{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19769echo "${ECHO_T}$ac_header_preproc" >&6; }
19770
19771# So?  What about this header?
19772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19773  yes:no: )
19774    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19775echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19776    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19777echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19778    ac_header_preproc=yes
19779    ;;
19780  no:yes:* )
19781    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19782echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
19783    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
19784echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
19785    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19786echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19787    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
19788echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19789    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19790echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19791    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19792echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
19793    ( cat <<\_ASBOX
19794## ------------------------------- ##
19795## Report this to cgagne@gmail.com ##
19796## ------------------------------- ##
19797_ASBOX
19798     ) | sed "s/^/$as_me: WARNING:     /" >&2
19799    ;;
19800esac
19801{ echo "$as_me:$LINENO: checking for zlib.h" >&5
19802echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
19803if test "${ac_cv_header_zlib_h+set}" = set; then
19804  echo $ECHO_N "(cached) $ECHO_C" >&6
19805else
19806  ac_cv_header_zlib_h=$ac_header_preproc
19807fi
19808{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19809echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
19810
19811fi
19812if test $ac_cv_header_zlib_h = yes; then
19813  zlib_cv_zlib_h=yes
19814else
19815  zlib_cv_zlib_h=no
19816fi
19817
19818
19819        ac_ext=cpp
19820ac_cpp='$CXXCPP $CPPFLAGS'
19821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19824
19825        if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"
19826        then
19827                #
19828                # If both library and header were found, use them
19829                #
19830
19831{ echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
19832echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6; }
19833if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
19834  echo $ECHO_N "(cached) $ECHO_C" >&6
19835else
19836  ac_check_lib_save_LIBS=$LIBS
19837LIBS="-lz  $LIBS"
19838cat >conftest.$ac_ext <<_ACEOF
19839/* confdefs.h.  */
19840_ACEOF
19841cat confdefs.h >>conftest.$ac_ext
19842cat >>conftest.$ac_ext <<_ACEOF
19843/* end confdefs.h.  */
19844
19845/* Override any GCC internal prototype to avoid an error.
19846   Use char because int might match the return type of a GCC
19847   builtin and then its argument prototype would still apply.  */
19848#ifdef __cplusplus
19849extern "C"
19850#endif
19851char inflateEnd ();
19852int
19853main ()
19854{
19855return inflateEnd ();
19856  ;
19857  return 0;
19858}
19859_ACEOF
19860rm -f conftest.$ac_objext conftest$ac_exeext
19861if { (ac_try="$ac_link"
19862case "(($ac_try" in
19863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19864  *) ac_try_echo=$ac_try;;
19865esac
19866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19867  (eval "$ac_link") 2>conftest.er1
19868  ac_status=$?
19869  grep -v '^ *+' conftest.er1 >conftest.err
19870  rm -f conftest.er1
19871  cat conftest.err >&5
19872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873  (exit $ac_status); } && {
19874	 test -z "$ac_cxx_werror_flag" ||
19875	 test ! -s conftest.err
19876       } && test -s conftest$ac_exeext &&
19877       $as_test_x conftest$ac_exeext; then
19878  ac_cv_lib_z_inflateEnd=yes
19879else
19880  echo "$as_me: failed program was:" >&5
19881sed 's/^/| /' conftest.$ac_ext >&5
19882
19883	ac_cv_lib_z_inflateEnd=no
19884fi
19885
19886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19887      conftest$ac_exeext conftest.$ac_ext
19888LIBS=$ac_check_lib_save_LIBS
19889fi
19890{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
19891echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6; }
19892if test $ac_cv_lib_z_inflateEnd = yes; then
19893  cat >>confdefs.h <<_ACEOF
19894#define HAVE_LIBZ 1
19895_ACEOF
19896
19897  LIBS="-lz $LIBS"
19898
19899fi
19900
19901                { echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
19902echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6; }
19903                { echo "$as_me:$LINENO: result: ok" >&5
19904echo "${ECHO_T}ok" >&6; }
19905        else
19906                #
19907                # If either header or library was not found, revert and bomb
19908                #
19909                { echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
19910echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6; }
19911                LDFLAGS="$ZLIB_OLD_LDFLAGS"
19912                CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
19913                { echo "$as_me:$LINENO: result: failed" >&5
19914echo "${ECHO_T}failed" >&6; }
19915        fi
19916fi
19917
19918
19919
19920
19921
19922ac_ext=c
19923ac_cpp='$CPP $CPPFLAGS'
19924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19926ac_compiler_gnu=$ac_cv_c_compiler_gnu
19927
19928acx_pthread_ok=no
19929
19930# We used to check for pthread.h first, but this fails if pthread.h
19931# requires special compiler flags (e.g. on True64 or Sequent).
19932# It gets checked for in the link test anyway.
19933
19934# First of all, check if the user has set any of the PTHREAD_LIBS,
19935# etcetera environment variables, and if threads linking works using
19936# them:
19937if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19938        save_CFLAGS="$CFLAGS"
19939        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19940        save_LIBS="$LIBS"
19941        LIBS="$PTHREAD_LIBS $LIBS"
19942        { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19943echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
19944        cat >conftest.$ac_ext <<_ACEOF
19945/* confdefs.h.  */
19946_ACEOF
19947cat confdefs.h >>conftest.$ac_ext
19948cat >>conftest.$ac_ext <<_ACEOF
19949/* end confdefs.h.  */
19950
19951/* Override any GCC internal prototype to avoid an error.
19952   Use char because int might match the return type of a GCC
19953   builtin and then its argument prototype would still apply.  */
19954#ifdef __cplusplus
19955extern "C"
19956#endif
19957char pthread_join ();
19958int
19959main ()
19960{
19961return pthread_join ();
19962  ;
19963  return 0;
19964}
19965_ACEOF
19966rm -f conftest.$ac_objext conftest$ac_exeext
19967if { (ac_try="$ac_link"
19968case "(($ac_try" in
19969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970  *) ac_try_echo=$ac_try;;
19971esac
19972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973  (eval "$ac_link") 2>conftest.er1
19974  ac_status=$?
19975  grep -v '^ *+' conftest.er1 >conftest.err
19976  rm -f conftest.er1
19977  cat conftest.err >&5
19978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979  (exit $ac_status); } && {
19980	 test -z "$ac_c_werror_flag" ||
19981	 test ! -s conftest.err
19982       } && test -s conftest$ac_exeext &&
19983       $as_test_x conftest$ac_exeext; then
19984  acx_pthread_ok=yes
19985else
19986  echo "$as_me: failed program was:" >&5
19987sed 's/^/| /' conftest.$ac_ext >&5
19988
19989
19990fi
19991
19992rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19993      conftest$ac_exeext conftest.$ac_ext
19994        { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19995echo "${ECHO_T}$acx_pthread_ok" >&6; }
19996        if test x"$acx_pthread_ok" = xno; then
19997                PTHREAD_LIBS=""
19998                PTHREAD_CFLAGS=""
19999        fi
20000        LIBS="$save_LIBS"
20001        CFLAGS="$save_CFLAGS"
20002fi
20003
20004# We must check for the threads library under a number of different
20005# names; the ordering is very important because some systems
20006# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20007# libraries is broken (non-POSIX).
20008
20009# Create a list of thread flags to try.  Items starting with a "-" are
20010# C compiler flags, and other items are library names, except for "none"
20011# which indicates that we try without any flags at all.
20012
20013acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
20014
20015# The ordering *is* (sometimes) important.  Some notes on the
20016# individual items follow:
20017
20018# pthreads: AIX (must check this before -lpthread)
20019# none: in case threads are in libc; should be tried before -Kthread and
20020#       other compiler flags to prevent continual compiler warnings
20021# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20022# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20023# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20024# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
20025# -pthreads: Solaris/gcc
20026# -mthreads: Mingw32/gcc, Lynx/gcc
20027# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20028#      doesn't hurt to check since this sometimes defines pthreads too;
20029#      also defines -D_REENTRANT)
20030# pthread: Linux, etcetera
20031# --thread-safe: KAI C++
20032
20033case "${host_cpu}-${host_os}" in
20034        *solaris*)
20035
20036        # On Solaris (at least, for some versions), libc contains stubbed
20037        # (non-functional) versions of the pthreads routines, so link-based
20038        # tests will erroneously succeed.  (We need to link with -pthread or
20039        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
20040        # a function called by this macro, so we could check for that, but
20041        # who knows whether they'll stub that too in a future libc.)  So,
20042        # we'll just look for -pthreads and -lpthread first:
20043
20044        acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
20045        ;;
20046esac
20047
20048if test x"$acx_pthread_ok" = xno; then
20049for flag in $acx_pthread_flags; do
20050
20051        case $flag in
20052                none)
20053                { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
20054echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
20055                ;;
20056
20057                -*)
20058                { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
20059echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
20060                PTHREAD_CFLAGS="$flag"
20061                ;;
20062
20063                *)
20064                { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
20065echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
20066                PTHREAD_LIBS="-l$flag"
20067                ;;
20068        esac
20069
20070        save_LIBS="$LIBS"
20071        save_CFLAGS="$CFLAGS"
20072        LIBS="$PTHREAD_LIBS $LIBS"
20073        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20074
20075        # Check for various functions.  We must include pthread.h,
20076        # since some functions may be macros.  (On the Sequent, we
20077        # need a special flag -Kthread to make this header compile.)
20078        # We check for pthread_join because it is in -lpthread on IRIX
20079        # while pthread_create is in libc.  We check for pthread_attr_init
20080        # due to DEC craziness with -lpthreads.  We check for
20081        # pthread_cleanup_push because it is one of the few pthread
20082        # functions on Solaris that doesn't have a non-functional libc stub.
20083        # We try pthread_create on general principles.
20084        cat >conftest.$ac_ext <<_ACEOF
20085/* confdefs.h.  */
20086_ACEOF
20087cat confdefs.h >>conftest.$ac_ext
20088cat >>conftest.$ac_ext <<_ACEOF
20089/* end confdefs.h.  */
20090#include <pthread.h>
20091int
20092main ()
20093{
20094pthread_t th; pthread_join(th, 0);
20095                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
20096                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
20097  ;
20098  return 0;
20099}
20100_ACEOF
20101rm -f conftest.$ac_objext conftest$ac_exeext
20102if { (ac_try="$ac_link"
20103case "(($ac_try" in
20104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105  *) ac_try_echo=$ac_try;;
20106esac
20107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108  (eval "$ac_link") 2>conftest.er1
20109  ac_status=$?
20110  grep -v '^ *+' conftest.er1 >conftest.err
20111  rm -f conftest.er1
20112  cat conftest.err >&5
20113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114  (exit $ac_status); } && {
20115	 test -z "$ac_c_werror_flag" ||
20116	 test ! -s conftest.err
20117       } && test -s conftest$ac_exeext &&
20118       $as_test_x conftest$ac_exeext; then
20119  acx_pthread_ok=yes
20120else
20121  echo "$as_me: failed program was:" >&5
20122sed 's/^/| /' conftest.$ac_ext >&5
20123
20124
20125fi
20126
20127rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20128      conftest$ac_exeext conftest.$ac_ext
20129
20130        LIBS="$save_LIBS"
20131        CFLAGS="$save_CFLAGS"
20132
20133        { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
20134echo "${ECHO_T}$acx_pthread_ok" >&6; }
20135        if test "x$acx_pthread_ok" = xyes; then
20136                break;
20137        fi
20138
20139        PTHREAD_LIBS=""
20140        PTHREAD_CFLAGS=""
20141done
20142fi
20143
20144# Various other checks:
20145if test "x$acx_pthread_ok" = xyes; then
20146        save_LIBS="$LIBS"
20147        LIBS="$PTHREAD_LIBS $LIBS"
20148        save_CFLAGS="$CFLAGS"
20149        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20150
20151        # Detect AIX lossage: threads are created detached by default
20152        # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
20153        { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
20154echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
20155        cat >conftest.$ac_ext <<_ACEOF
20156/* confdefs.h.  */
20157_ACEOF
20158cat confdefs.h >>conftest.$ac_ext
20159cat >>conftest.$ac_ext <<_ACEOF
20160/* end confdefs.h.  */
20161#include <pthread.h>
20162int
20163main ()
20164{
20165int attr=PTHREAD_CREATE_JOINABLE;
20166  ;
20167  return 0;
20168}
20169_ACEOF
20170rm -f conftest.$ac_objext conftest$ac_exeext
20171if { (ac_try="$ac_link"
20172case "(($ac_try" in
20173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20174  *) ac_try_echo=$ac_try;;
20175esac
20176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20177  (eval "$ac_link") 2>conftest.er1
20178  ac_status=$?
20179  grep -v '^ *+' conftest.er1 >conftest.err
20180  rm -f conftest.er1
20181  cat conftest.err >&5
20182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183  (exit $ac_status); } && {
20184	 test -z "$ac_c_werror_flag" ||
20185	 test ! -s conftest.err
20186       } && test -s conftest$ac_exeext &&
20187       $as_test_x conftest$ac_exeext; then
20188  ok=PTHREAD_CREATE_JOINABLE
20189else
20190  echo "$as_me: failed program was:" >&5
20191sed 's/^/| /' conftest.$ac_ext >&5
20192
20193	ok=unknown
20194fi
20195
20196rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20197      conftest$ac_exeext conftest.$ac_ext
20198        if test x"$ok" = xunknown; then
20199                cat >conftest.$ac_ext <<_ACEOF
20200/* confdefs.h.  */
20201_ACEOF
20202cat confdefs.h >>conftest.$ac_ext
20203cat >>conftest.$ac_ext <<_ACEOF
20204/* end confdefs.h.  */
20205#include <pthread.h>
20206int
20207main ()
20208{
20209int attr=PTHREAD_CREATE_UNDETACHED;
20210  ;
20211  return 0;
20212}
20213_ACEOF
20214rm -f conftest.$ac_objext conftest$ac_exeext
20215if { (ac_try="$ac_link"
20216case "(($ac_try" in
20217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218  *) ac_try_echo=$ac_try;;
20219esac
20220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221  (eval "$ac_link") 2>conftest.er1
20222  ac_status=$?
20223  grep -v '^ *+' conftest.er1 >conftest.err
20224  rm -f conftest.er1
20225  cat conftest.err >&5
20226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227  (exit $ac_status); } && {
20228	 test -z "$ac_c_werror_flag" ||
20229	 test ! -s conftest.err
20230       } && test -s conftest$ac_exeext &&
20231       $as_test_x conftest$ac_exeext; then
20232  ok=PTHREAD_CREATE_UNDETACHED
20233else
20234  echo "$as_me: failed program was:" >&5
20235sed 's/^/| /' conftest.$ac_ext >&5
20236
20237	ok=unknown
20238fi
20239
20240rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20241      conftest$ac_exeext conftest.$ac_ext
20242        fi
20243        if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
20244
20245cat >>confdefs.h <<\_ACEOF
20246#define PTHREAD_CREATE_JOINABLE $ok
20247_ACEOF
20248
20249        fi
20250        { echo "$as_me:$LINENO: result: ${ok}" >&5
20251echo "${ECHO_T}${ok}" >&6; }
20252        if test x"$ok" = xunknown; then
20253                { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
20254echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
20255        fi
20256
20257        { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
20258echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
20259        flag=no
20260        case "${host_cpu}-${host_os}" in
20261                *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
20262                *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
20263        esac
20264        { echo "$as_me:$LINENO: result: ${flag}" >&5
20265echo "${ECHO_T}${flag}" >&6; }
20266        if test "x$flag" != xno; then
20267                PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
20268        fi
20269
20270        LIBS="$save_LIBS"
20271        CFLAGS="$save_CFLAGS"
20272
20273        # More AIX lossage: must compile with cc_r
20274        # Extract the first word of "cc_r", so it can be a program name with args.
20275set dummy cc_r; ac_word=$2
20276{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20278if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
20279  echo $ECHO_N "(cached) $ECHO_C" >&6
20280else
20281  if test -n "$PTHREAD_CC"; then
20282  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20283else
20284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20285for as_dir in $PATH
20286do
20287  IFS=$as_save_IFS
20288  test -z "$as_dir" && as_dir=.
20289  for ac_exec_ext in '' $ac_executable_extensions; do
20290  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20291    ac_cv_prog_PTHREAD_CC="cc_r"
20292    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20293    break 2
20294  fi
20295done
20296done
20297IFS=$as_save_IFS
20298
20299  test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
20300fi
20301fi
20302PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20303if test -n "$PTHREAD_CC"; then
20304  { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
20305echo "${ECHO_T}$PTHREAD_CC" >&6; }
20306else
20307  { echo "$as_me:$LINENO: result: no" >&5
20308echo "${ECHO_T}no" >&6; }
20309fi
20310
20311
20312else
20313        PTHREAD_CC="$CC"
20314fi
20315
20316
20317
20318
20319
20320# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20321if test x"$acx_pthread_ok" = xyes; then
20322
20323cat >>confdefs.h <<\_ACEOF
20324#define HAVE_PTHREAD 1
20325_ACEOF
20326
20327        :
20328else
20329        acx_pthread_ok=no
20330
20331fi
20332ac_ext=cpp
20333ac_cpp='$CXXCPP $CPPFLAGS'
20334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20337
20338
20339LIBS="$PTHREAD_LIBS $LIBS"
20340CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20341CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
20342
20343
20344
20345# Check whether --with-pacc-util was given.
20346if test "${with_pacc_util+set}" = set; then
20347  withval=$with_pacc_util; pacc_util_path="$withval"
20348else
20349  pacc_util_path="../../../../PACC"
20350fi
20351
20352
20353# Check whether --with-pacc-util-include was given.
20354if test "${with_pacc_util_include+set}" = set; then
20355  withval=$with_pacc_util_include; pacc_util_path_include="$withval"
20356fi
20357
20358
20359# Check whether --with-pacc-util-libdir was given.
20360if test "${with_pacc_util_libdir+set}" = set; then
20361  withval=$with_pacc_util_libdir; pacc_util_path_libdir="$withval"
20362fi
20363
20364if test -z "$pacc_util_path"; then
20365  pacc_util_path="../../../../PACC"
20366fi
20367if test -z "$pacc_util_path_include"; then
20368  if test -z "../../../../PACC"; then
20369    pacc_util_path_include="$pacc_util_path"/include
20370  else
20371    pacc_util_path_include="../../../../PACC"
20372  fi
20373fi
20374if test -z "$pacc_util_path_libdir"; then
20375  if test -z "../../../../PACC/Util"; then
20376    pacc_util_path_libdir="$pacc_util_path"/lib
20377  else
20378    pacc_util_path_libdir="../../../../PACC/Util"
20379  fi
20380fi
20381CPPFLAGS="$CPPFLAGS -I$pacc_util_path_include"
20382LIBS="$pacc_util_path_libdir/libpacc-util.la $LIBS"
20383{ echo "$as_me:$LINENO: checking if PACC::Util headers are correctly included" >&5
20384echo $ECHO_N "checking if PACC::Util headers are correctly included... $ECHO_C" >&6; }
20385if test "${pacc_util_include_test+set}" = set; then
20386  echo $ECHO_N "(cached) $ECHO_C" >&6
20387else
20388
20389 ac_ext=cpp
20390ac_cpp='$CXXCPP $CPPFLAGS'
20391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20394
20395 cat >conftest.$ac_ext <<_ACEOF
20396/* confdefs.h.  */
20397_ACEOF
20398cat confdefs.h >>conftest.$ac_ext
20399cat >>conftest.$ac_ext <<_ACEOF
20400/* end confdefs.h.  */
20401Util.hpp
20402_ACEOF
20403if { (ac_try="$ac_cpp conftest.$ac_ext"
20404case "(($ac_try" in
20405  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406  *) ac_try_echo=$ac_try;;
20407esac
20408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20410  ac_status=$?
20411  grep -v '^ *+' conftest.er1 >conftest.err
20412  rm -f conftest.er1
20413  cat conftest.err >&5
20414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415  (exit $ac_status); } >/dev/null && {
20416	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20417	 test ! -s conftest.err
20418       }; then
20419  pacc_util_include_test=yes
20420else
20421  echo "$as_me: failed program was:" >&5
20422sed 's/^/| /' conftest.$ac_ext >&5
20423
20424  pacc_util_include_test=no
20425fi
20426
20427rm -f conftest.err conftest.$ac_ext
20428 ac_ext=cpp
20429ac_cpp='$CXXCPP $CPPFLAGS'
20430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20433
20434
20435fi
20436{ echo "$as_me:$LINENO: result: $pacc_util_include_test" >&5
20437echo "${ECHO_T}$pacc_util_include_test" >&6; }
20438
20439
20440
20441# Check whether --with-pacc-xml was given.
20442if test "${with_pacc_xml+set}" = set; then
20443  withval=$with_pacc_xml; pacc_xml_path="$withval"
20444else
20445  pacc_xml_path="../../../../PACC"
20446fi
20447
20448
20449# Check whether --with-pacc-xml-include was given.
20450if test "${with_pacc_xml_include+set}" = set; then
20451  withval=$with_pacc_xml_include; pacc_xml_path_include="$withval"
20452fi
20453
20454
20455# Check whether --with-pacc-xml-libdir was given.
20456if test "${with_pacc_xml_libdir+set}" = set; then
20457  withval=$with_pacc_xml_libdir; pacc_xml_path_libdir="$withval"
20458fi
20459
20460if test -z "$pacc_xml_path"; then
20461  pacc_xml_path="../../../../PACC"
20462fi
20463if test -z "$pacc_xml_path_include"; then
20464  if test -z "../../../../PACC"; then
20465    pacc_xml_path_include="$pacc_xml_path"/include
20466  else
20467    pacc_xml_path_include="../../../../PACC"
20468  fi
20469fi
20470if test -z "$pacc_xml_path_libdir"; then
20471  if test -z "../../../../PACC/XML"; then
20472    pacc_xml_path_libdir="$pacc_xml_path"/lib
20473  else
20474    pacc_xml_path_libdir="../../../../PACC/XML"
20475  fi
20476fi
20477CPPFLAGS="$CPPFLAGS -I$pacc_xml_path_include"
20478LIBS="$pacc_xml_path_libdir/libpacc-xml.la $LIBS"
20479{ echo "$as_me:$LINENO: checking if PACC::XML headers are correctly included" >&5
20480echo $ECHO_N "checking if PACC::XML headers are correctly included... $ECHO_C" >&6; }
20481if test "${pacc_xml_include_test+set}" = set; then
20482  echo $ECHO_N "(cached) $ECHO_C" >&6
20483else
20484
20485 ac_ext=cpp
20486ac_cpp='$CXXCPP $CPPFLAGS'
20487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20490
20491 cat >conftest.$ac_ext <<_ACEOF
20492/* confdefs.h.  */
20493_ACEOF
20494cat confdefs.h >>conftest.$ac_ext
20495cat >>conftest.$ac_ext <<_ACEOF
20496/* end confdefs.h.  */
20497XML.hpp
20498_ACEOF
20499if { (ac_try="$ac_cpp conftest.$ac_ext"
20500case "(($ac_try" in
20501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502  *) ac_try_echo=$ac_try;;
20503esac
20504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20506  ac_status=$?
20507  grep -v '^ *+' conftest.er1 >conftest.err
20508  rm -f conftest.er1
20509  cat conftest.err >&5
20510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511  (exit $ac_status); } >/dev/null && {
20512	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20513	 test ! -s conftest.err
20514       }; then
20515  pacc_xml_include_test=yes
20516else
20517  echo "$as_me: failed program was:" >&5
20518sed 's/^/| /' conftest.$ac_ext >&5
20519
20520  pacc_xml_include_test=no
20521fi
20522
20523rm -f conftest.err conftest.$ac_ext
20524 ac_ext=cpp
20525ac_cpp='$CXXCPP $CPPFLAGS'
20526ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20527ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20528ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20529
20530
20531fi
20532{ echo "$as_me:$LINENO: result: $pacc_xml_include_test" >&5
20533echo "${ECHO_T}$pacc_xml_include_test" >&6; }
20534
20535
20536
20537# Check whether --with-pacc-math was given.
20538if test "${with_pacc_math+set}" = set; then
20539  withval=$with_pacc_math; pacc_math_path="$withval"
20540else
20541  pacc_math_path="../../../../PACC"
20542fi
20543
20544
20545# Check whether --with-pacc-math-include was given.
20546if test "${with_pacc_math_include+set}" = set; then
20547  withval=$with_pacc_math_include; pacc_math_path_include="$withval"
20548fi
20549
20550
20551# Check whether --with-pacc-math-libdir was given.
20552if test "${with_pacc_math_libdir+set}" = set; then
20553  withval=$with_pacc_math_libdir; pacc_math_path_libdir="$withval"
20554fi
20555
20556if test -z "$pacc_math_path"; then
20557  pacc_math_path="../../../../PACC"
20558fi
20559if test -z "$pacc_math_path_include"; then
20560  if test -z "../../../../PACC"; then
20561    pacc_math_path_include="$pacc_math_path"/include
20562  else
20563    pacc_math_path_include="../../../../PACC"
20564  fi
20565fi
20566if test -z "$pacc_math_path_libdir"; then
20567  if test -z "../../../../PACC/Math"; then
20568    pacc_math_path_libdir="$pacc_math_path"/lib
20569  else
20570    pacc_math_path_libdir="../../../../PACC/Math"
20571  fi
20572fi
20573CPPFLAGS="$CPPFLAGS -I$pacc_math_path_include"
20574LIBS="$pacc_math_path_libdir/libpacc-math.la $LIBS"
20575{ echo "$as_me:$LINENO: checking if PACC::Math headers are correctly included" >&5
20576echo $ECHO_N "checking if PACC::Math headers are correctly included... $ECHO_C" >&6; }
20577if test "${pacc_math_include_test+set}" = set; then
20578  echo $ECHO_N "(cached) $ECHO_C" >&6
20579else
20580
20581 ac_ext=cpp
20582ac_cpp='$CXXCPP $CPPFLAGS'
20583ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20584ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20585ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20586
20587 cat >conftest.$ac_ext <<_ACEOF
20588/* confdefs.h.  */
20589_ACEOF
20590cat confdefs.h >>conftest.$ac_ext
20591cat >>conftest.$ac_ext <<_ACEOF
20592/* end confdefs.h.  */
20593Math.hpp
20594_ACEOF
20595if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
20608	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20609	 test ! -s conftest.err
20610       }; then
20611  pacc_math_include_test=yes
20612else
20613  echo "$as_me: failed program was:" >&5
20614sed 's/^/| /' conftest.$ac_ext >&5
20615
20616  pacc_math_include_test=no
20617fi
20618
20619rm -f conftest.err conftest.$ac_ext
20620 ac_ext=cpp
20621ac_cpp='$CXXCPP $CPPFLAGS'
20622ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20623ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20624ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20625
20626
20627fi
20628{ echo "$as_me:$LINENO: result: $pacc_math_include_test" >&5
20629echo "${ECHO_T}$pacc_math_include_test" >&6; }
20630
20631
20632
20633# Check whether --with-pacc-threading was given.
20634if test "${with_pacc_threading+set}" = set; then
20635  withval=$with_pacc_threading; pacc_threading_path="$withval"
20636else
20637  pacc_threading_path="../../../../PACC"
20638fi
20639
20640
20641# Check whether --with-pacc-threading-include was given.
20642if test "${with_pacc_threading_include+set}" = set; then
20643  withval=$with_pacc_threading_include; pacc_threading_path_include="$withval"
20644fi
20645
20646
20647# Check whether --with-pacc-threading-libdir was given.
20648if test "${with_pacc_threading_libdir+set}" = set; then
20649  withval=$with_pacc_threading_libdir; pacc_threading_path_libdir="$withval"
20650fi
20651
20652if test -z "$pacc_threading_path"; then
20653  pacc_threading_path="../../../../PACC"
20654fi
20655if test -z "$pacc_threading_path_include"; then
20656  if test -z "../../../../PACC"; then
20657    pacc_threading_path_include="$pacc_threading_path"/include
20658  else
20659    pacc_threading_path_include="../../../../PACC"
20660  fi
20661fi
20662if test -z "$pacc_threading_path_libdir"; then
20663  if test -z "../../../../PACC/Threading"; then
20664    pacc_threading_path_libdir="$pacc_threading_path"/lib
20665  else
20666    pacc_threading_path_libdir="../../../../PACC/Threading"
20667  fi
20668fi
20669CPPFLAGS="$CPPFLAGS -I$pacc_threading_path_include"
20670LIBS="$pacc_threading_path_libdir/libpacc-threading.la $LIBS"
20671{ echo "$as_me:$LINENO: checking if PACC::Threading headers are correctly included" >&5
20672echo $ECHO_N "checking if PACC::Threading headers are correctly included... $ECHO_C" >&6; }
20673if test "${pacc_threading_include_test+set}" = set; then
20674  echo $ECHO_N "(cached) $ECHO_C" >&6
20675else
20676
20677 ac_ext=cpp
20678ac_cpp='$CXXCPP $CPPFLAGS'
20679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20682
20683 cat >conftest.$ac_ext <<_ACEOF
20684/* confdefs.h.  */
20685_ACEOF
20686cat confdefs.h >>conftest.$ac_ext
20687cat >>conftest.$ac_ext <<_ACEOF
20688/* end confdefs.h.  */
20689Threading.hpp
20690_ACEOF
20691if { (ac_try="$ac_cpp conftest.$ac_ext"
20692case "(($ac_try" in
20693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20694  *) ac_try_echo=$ac_try;;
20695esac
20696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20697  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20698  ac_status=$?
20699  grep -v '^ *+' conftest.er1 >conftest.err
20700  rm -f conftest.er1
20701  cat conftest.err >&5
20702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703  (exit $ac_status); } >/dev/null && {
20704	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20705	 test ! -s conftest.err
20706       }; then
20707  pacc_threading_include_test=yes
20708else
20709  echo "$as_me: failed program was:" >&5
20710sed 's/^/| /' conftest.$ac_ext >&5
20711
20712  pacc_threading_include_test=no
20713fi
20714
20715rm -f conftest.err conftest.$ac_ext
20716 ac_ext=cpp
20717ac_cpp='$CXXCPP $CPPFLAGS'
20718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20721
20722
20723fi
20724{ echo "$as_me:$LINENO: result: $pacc_threading_include_test" >&5
20725echo "${ECHO_T}$pacc_threading_include_test" >&6; }
20726
20727
20728
20729# Check whether --enable-optimization was given.
20730if test "${enable_optimization+set}" = set; then
20731  enableval=$enable_optimization; case $enableval in
20732  yes) enable_optimization=yes;;
20733  no) enable_optimization=no;;
20734  *) enable_optimization=no;; esac
20735else
20736  enable_optimization=no
20737fi
20738
20739if test "$enable_optimization" = yes; then
20740  CFLAGS=`echo $CFLAGS | sed 's/\(?*\)-g\(?*\)/\1\2/'`
20741  CXXFLAGS=`echo $CXXFLAGS | sed 's/\(?*\)-g\(?*\)/\1\2/'`
20742else
20743  CFLAGS=`echo $CFLAGS | sed 's/\(?*\)-O[0-9]\(?*\)/\1\2/'`
20744  CXXFLAGS=`echo $CXXFLAGS | sed 's/\(?*\)-O[0-9]\(?*\)/\1\2/'`
20745fi
20746
20747# Check whether --with-beagle was given.
20748if test "${with_beagle+set}" = set; then
20749  withval=$with_beagle; ob_beagle_path="$withval"
20750else
20751  ob_beagle_path="../../../../beagle"
20752fi
20753
20754
20755# Check whether --with-beagle-include was given.
20756if test "${with_beagle_include+set}" = set; then
20757  withval=$with_beagle_include; ob_beagle_path_include="$withval"
20758fi
20759
20760
20761# Check whether --with-beagle-GA-include was given.
20762if test "${with_beagle_GA_include+set}" = set; then
20763  withval=$with_beagle_GA_include; ob_beagle_path_ga_include="$withval"
20764fi
20765
20766
20767# Check whether --with-beagle-GP-include was given.
20768if test "${with_beagle_GP_include+set}" = set; then
20769  withval=$with_beagle_GP_include; ob_beagle_path_gp_include="$withval"
20770fi
20771
20772
20773# Check whether --with-beagle-Coev-include was given.
20774if test "${with_beagle_Coev_include+set}" = set; then
20775  withval=$with_beagle_Coev_include; ob_beagle_path_coev_include="$withval"
20776fi
20777
20778
20779# Check whether --with-beagle-libdir was given.
20780if test "${with_beagle_libdir+set}" = set; then
20781  withval=$with_beagle_libdir; ob_beagle_path_libdir="$withval"
20782fi
20783
20784
20785# Check whether --with-beagle-GA-libdir was given.
20786if test "${with_beagle_GA_libdir+set}" = set; then
20787  withval=$with_beagle_GA_libdir; ob_beagle_path_ga_libdir="$withval"
20788fi
20789
20790
20791# Check whether --with-beagle-GP-libdir was given.
20792if test "${with_beagle_GP_libdir+set}" = set; then
20793  withval=$with_beagle_GP_libdir; ob_beagle_path_gp_libdir="$withval"
20794fi
20795
20796
20797# Check whether --with-beagle-Coev-libdir was given.
20798if test "${with_beagle_Coev_libdir+set}" = set; then
20799  withval=$with_beagle_Coev_libdir; ob_beagle_path_coev_libdir="$withval"
20800fi
20801
20802if test -z "$ob_beagle_path"; then
20803  ob_beagle_path="../../../../beagle"
20804fi
20805if test -z "$ob_beagle_path_include"; then
20806  if test -z "../../../../beagle/include"; then
20807    ob_beagle_path_include="$ob_beagle_path"/include
20808  else
20809    ob_beagle_path_include="../../../../beagle/include"
20810  fi
20811fi
20812if test -z "$ob_beagle_path_libdir"; then
20813  if test -z "../../../../beagle/src"; then
20814    ob_beagle_path_libdir="$ob_beagle_path"/lib
20815  else
20816    ob_beagle_path_libdir="../../../../beagle/src"
20817  fi
20818fi
20819if test -z "$ob_beagle_path_ga_include"; then
20820  if test -z "../../../../beagle/GA/include"; then
20821    ob_beagle_path_ga_include=$ob_beagle_path_include
20822  else
20823    ob_beagle_path_ga_include="../../../../beagle/GA/include"
20824  fi
20825fi
20826if test -z "$ob_beagle_path_ga_libdir"; then
20827  if test -z "../../../../beagle/GA/src"; then
20828    ob_beagle_path_ga_libdir=$ob_beagle_path_libdir
20829  else
20830    ob_beagle_path_ga_libdir="../../../../beagle/GA/src"
20831  fi
20832fi
20833if test -z "$ob_beagle_path_gp_include"; then
20834  if test -z "../../../../beagle/GP/include"; then
20835    ob_beagle_path_gp_include=$ob_beagle_path_include
20836  else
20837    ob_beagle_path_gp_include="../../../../beagle/GP/include"
20838  fi
20839fi
20840if test -z "$ob_beagle_path_gp_libdir"; then
20841  if test -z "../../../../beagle/GP/src"; then
20842    ob_beagle_path_gp_libdir=$ob_beagle_path_libdir
20843  else
20844    ob_beagle_path_gp_libdir="../../../../beagle/GP/src"
20845  fi
20846fi
20847if test -z "$ob_beagle_path_coev_include"; then
20848  if test -z "../../../../beagle/Coev/include"; then
20849    ob_beagle_path_coev_include=$ob_beagle_path_include
20850  else
20851    ob_beagle_path_coev_include="../../../../beagle/Coev/include"
20852  fi
20853fi
20854if test -z "$ob_beagle_path_coev_libdir"; then
20855  if test -z "../../../../beagle/Coev/src"; then
20856    ob_beagle_path_coev_libdir=$ob_beagle_path_libdir
20857  else
20858    ob_beagle_path_coev_libdir="../../../../beagle/Coev/src"
20859  fi
20860fi
20861CPPFLAGS="$CPPFLAGS -I$ob_beagle_path_include -I$ob_beagle_path_ga_include -I$ob_beagle_path_gp_include -I$ob_beagle_path_coev_include"
20862LIBS="$ob_beagle_path_coev_libdir/libbeagle-Coev.la $ob_beagle_path_gp_libdir/libbeagle-GP.la $ob_beagle_path_ga_libdir/libbeagle-GA.la $ob_beagle_path_libdir/libbeagle.la $LIBS"
20863{ echo "$as_me:$LINENO: checking if Open BEAGLE headers are correctly included" >&5
20864echo $ECHO_N "checking if Open BEAGLE headers are correctly included... $ECHO_C" >&6; }
20865if test "${ob_beagle_include_test+set}" = set; then
20866  echo $ECHO_N "(cached) $ECHO_C" >&6
20867else
20868
20869 ac_ext=cpp
20870ac_cpp='$CXXCPP $CPPFLAGS'
20871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20874
20875 cat >conftest.$ac_ext <<_ACEOF
20876/* confdefs.h.  */
20877_ACEOF
20878cat confdefs.h >>conftest.$ac_ext
20879cat >>conftest.$ac_ext <<_ACEOF
20880/* end confdefs.h.  */
20881beagle/beagle.hpp beagle/GA.hpp beagle/GP.hpp beagle/Coev.hpp
20882_ACEOF
20883if { (ac_try="$ac_cpp conftest.$ac_ext"
20884case "(($ac_try" in
20885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886  *) ac_try_echo=$ac_try;;
20887esac
20888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20890  ac_status=$?
20891  grep -v '^ *+' conftest.er1 >conftest.err
20892  rm -f conftest.er1
20893  cat conftest.err >&5
20894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895  (exit $ac_status); } >/dev/null && {
20896	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20897	 test ! -s conftest.err
20898       }; then
20899  ob_beagle_include_test=yes
20900else
20901  echo "$as_me: failed program was:" >&5
20902sed 's/^/| /' conftest.$ac_ext >&5
20903
20904  ob_beagle_include_test=no
20905fi
20906
20907rm -f conftest.err conftest.$ac_ext
20908 ac_ext=cpp
20909ac_cpp='$CXXCPP $CPPFLAGS'
20910ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20911ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20912ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20913
20914
20915fi
20916{ echo "$as_me:$LINENO: result: $ob_beagle_include_test" >&5
20917echo "${ECHO_T}$ob_beagle_include_test" >&6; }
20918
20919
20920ac_config_files="$ac_config_files Makefile parity/Makefile"
20921
20922cat >confcache <<\_ACEOF
20923# This file is a shell script that caches the results of configure
20924# tests run on this system so they can be shared between configure
20925# scripts and configure runs, see configure's option --config-cache.
20926# It is not useful on other systems.  If it contains results you don't
20927# want to keep, you may remove or edit it.
20928#
20929# config.status only pays attention to the cache file if you give it
20930# the --recheck option to rerun configure.
20931#
20932# `ac_cv_env_foo' variables (set or unset) will be overridden when
20933# loading this file, other *unset* `ac_cv_foo' will be assigned the
20934# following values.
20935
20936_ACEOF
20937
20938# The following way of writing the cache mishandles newlines in values,
20939# but we know of no workaround that is simple, portable, and efficient.
20940# So, we kill variables containing newlines.
20941# Ultrix sh set writes to stderr and can't be redirected directly,
20942# and sets the high bit in the cache file unless we assign to the vars.
20943(
20944  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20945    eval ac_val=\$$ac_var
20946    case $ac_val in #(
20947    *${as_nl}*)
20948      case $ac_var in #(
20949      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20950echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20951      esac
20952      case $ac_var in #(
20953      _ | IFS | as_nl) ;; #(
20954      *) $as_unset $ac_var ;;
20955      esac ;;
20956    esac
20957  done
20958
20959  (set) 2>&1 |
20960    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20961    *${as_nl}ac_space=\ *)
20962      # `set' does not quote correctly, so add quotes (double-quote
20963      # substitution turns \\\\ into \\, and sed turns \\ into \).
20964      sed -n \
20965	"s/'/'\\\\''/g;
20966	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20967      ;; #(
20968    *)
20969      # `set' quotes correctly as required by POSIX, so do not add quotes.
20970      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20971      ;;
20972    esac |
20973    sort
20974) |
20975  sed '
20976     /^ac_cv_env_/b end
20977     t clear
20978     :clear
20979     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20980     t end
20981     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20982     :end' >>confcache
20983if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20984  if test -w "$cache_file"; then
20985    test "x$cache_file" != "x/dev/null" &&
20986      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20987echo "$as_me: updating cache $cache_file" >&6;}
20988    cat confcache >$cache_file
20989  else
20990    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20991echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20992  fi
20993fi
20994rm -f confcache
20995
20996test "x$prefix" = xNONE && prefix=$ac_default_prefix
20997# Let make expand exec_prefix.
20998test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20999
21000DEFS=-DHAVE_CONFIG_H
21001
21002ac_libobjs=
21003ac_ltlibobjs=
21004for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21005  # 1. Remove the extension, and $U if already installed.
21006  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21007  ac_i=`echo "$ac_i" | sed "$ac_script"`
21008  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21009  #    will be set to the directory where LIBOBJS objects are built.
21010  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21011  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21012done
21013LIBOBJS=$ac_libobjs
21014
21015LTLIBOBJS=$ac_ltlibobjs
21016
21017
21018if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21019  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21020Usually this means the macro was only invoked conditionally." >&5
21021echo "$as_me: error: conditional \"AMDEP\" was never defined.
21022Usually this means the macro was only invoked conditionally." >&2;}
21023   { (exit 1); exit 1; }; }
21024fi
21025if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21026  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21027Usually this means the macro was only invoked conditionally." >&5
21028echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21029Usually this means the macro was only invoked conditionally." >&2;}
21030   { (exit 1); exit 1; }; }
21031fi
21032if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21033  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21034Usually this means the macro was only invoked conditionally." >&5
21035echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21036Usually this means the macro was only invoked conditionally." >&2;}
21037   { (exit 1); exit 1; }; }
21038fi
21039
21040: ${CONFIG_STATUS=./config.status}
21041ac_clean_files_save=$ac_clean_files
21042ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21043{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21044echo "$as_me: creating $CONFIG_STATUS" >&6;}
21045cat >$CONFIG_STATUS <<_ACEOF
21046#! $SHELL
21047# Generated by $as_me.
21048# Run this file to recreate the current configuration.
21049# Compiler output produced by configure, useful for debugging
21050# configure, is in config.log if it exists.
21051
21052debug=false
21053ac_cs_recheck=false
21054ac_cs_silent=false
21055SHELL=\${CONFIG_SHELL-$SHELL}
21056_ACEOF
21057
21058cat >>$CONFIG_STATUS <<\_ACEOF
21059## --------------------- ##
21060## M4sh Initialization.  ##
21061## --------------------- ##
21062
21063# Be more Bourne compatible
21064DUALCASE=1; export DUALCASE # for MKS sh
21065if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21066  emulate sh
21067  NULLCMD=:
21068  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21069  # is contrary to our usage.  Disable this feature.
21070  alias -g '${1+"$@"}'='"$@"'
21071  setopt NO_GLOB_SUBST
21072else
21073  case `(set -o) 2>/dev/null` in
21074  *posix*) set -o posix ;;
21075esac
21076
21077fi
21078
21079
21080
21081
21082# PATH needs CR
21083# Avoid depending upon Character Ranges.
21084as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21085as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21086as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21087as_cr_digits='0123456789'
21088as_cr_alnum=$as_cr_Letters$as_cr_digits
21089
21090# The user is always right.
21091if test "${PATH_SEPARATOR+set}" != set; then
21092  echo "#! /bin/sh" >conf$$.sh
21093  echo  "exit 0"   >>conf$$.sh
21094  chmod +x conf$$.sh
21095  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21096    PATH_SEPARATOR=';'
21097  else
21098    PATH_SEPARATOR=:
21099  fi
21100  rm -f conf$$.sh
21101fi
21102
21103# Support unset when possible.
21104if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21105  as_unset=unset
21106else
21107  as_unset=false
21108fi
21109
21110
21111# IFS
21112# We need space, tab and new line, in precisely that order.  Quoting is
21113# there to prevent editors from complaining about space-tab.
21114# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21115# splitting by setting IFS to empty value.)
21116as_nl='
21117'
21118IFS=" ""	$as_nl"
21119
21120# Find who we are.  Look in the path if we contain no directory separator.
21121case $0 in
21122  *[\\/]* ) as_myself=$0 ;;
21123  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21124for as_dir in $PATH
21125do
21126  IFS=$as_save_IFS
21127  test -z "$as_dir" && as_dir=.
21128  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21129done
21130IFS=$as_save_IFS
21131
21132     ;;
21133esac
21134# We did not find ourselves, most probably we were run as `sh COMMAND'
21135# in which case we are not to be found in the path.
21136if test "x$as_myself" = x; then
21137  as_myself=$0
21138fi
21139if test ! -f "$as_myself"; then
21140  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21141  { (exit 1); exit 1; }
21142fi
21143
21144# Work around bugs in pre-3.0 UWIN ksh.
21145for as_var in ENV MAIL MAILPATH
21146do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21147done
21148PS1='$ '
21149PS2='> '
21150PS4='+ '
21151
21152# NLS nuisances.
21153for as_var in \
21154  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21155  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21156  LC_TELEPHONE LC_TIME
21157do
21158  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21159    eval $as_var=C; export $as_var
21160  else
21161    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21162  fi
21163done
21164
21165# Required to use basename.
21166if expr a : '\(a\)' >/dev/null 2>&1 &&
21167   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21168  as_expr=expr
21169else
21170  as_expr=false
21171fi
21172
21173if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21174  as_basename=basename
21175else
21176  as_basename=false
21177fi
21178
21179
21180# Name of the executable.
21181as_me=`$as_basename -- "$0" ||
21182$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21183	 X"$0" : 'X\(//\)$' \| \
21184	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21185echo X/"$0" |
21186    sed '/^.*\/\([^/][^/]*\)\/*$/{
21187	    s//\1/
21188	    q
21189	  }
21190	  /^X\/\(\/\/\)$/{
21191	    s//\1/
21192	    q
21193	  }
21194	  /^X\/\(\/\).*/{
21195	    s//\1/
21196	    q
21197	  }
21198	  s/.*/./; q'`
21199
21200# CDPATH.
21201$as_unset CDPATH
21202
21203
21204
21205  as_lineno_1=$LINENO
21206  as_lineno_2=$LINENO
21207  test "x$as_lineno_1" != "x$as_lineno_2" &&
21208  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21209
21210  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21211  # uniformly replaced by the line number.  The first 'sed' inserts a
21212  # line-number line after each line using $LINENO; the second 'sed'
21213  # does the real work.  The second script uses 'N' to pair each
21214  # line-number line with the line containing $LINENO, and appends
21215  # trailing '-' during substitution so that $LINENO is not a special
21216  # case at line end.
21217  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21218  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21219  # E. McMahon (1931-1989) for sed's syntax.  :-)
21220  sed -n '
21221    p
21222    /[$]LINENO/=
21223  ' <$as_myself |
21224    sed '
21225      s/[$]LINENO.*/&-/
21226      t lineno
21227      b
21228      :lineno
21229      N
21230      :loop
21231      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21232      t loop
21233      s/-\n.*//
21234    ' >$as_me.lineno &&
21235  chmod +x "$as_me.lineno" ||
21236    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21237   { (exit 1); exit 1; }; }
21238
21239  # Don't try to exec as it changes $[0], causing all sort of problems
21240  # (the dirname of $[0] is not the place where we might find the
21241  # original and so on.  Autoconf is especially sensitive to this).
21242  . "./$as_me.lineno"
21243  # Exit status is that of the last command.
21244  exit
21245}
21246
21247
21248if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21249  as_dirname=dirname
21250else
21251  as_dirname=false
21252fi
21253
21254ECHO_C= ECHO_N= ECHO_T=
21255case `echo -n x` in
21256-n*)
21257  case `echo 'x\c'` in
21258  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21259  *)   ECHO_C='\c';;
21260  esac;;
21261*)
21262  ECHO_N='-n';;
21263esac
21264
21265if expr a : '\(a\)' >/dev/null 2>&1 &&
21266   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21267  as_expr=expr
21268else
21269  as_expr=false
21270fi
21271
21272rm -f conf$$ conf$$.exe conf$$.file
21273if test -d conf$$.dir; then
21274  rm -f conf$$.dir/conf$$.file
21275else
21276  rm -f conf$$.dir
21277  mkdir conf$$.dir
21278fi
21279echo >conf$$.file
21280if ln -s conf$$.file conf$$ 2>/dev/null; then
21281  as_ln_s='ln -s'
21282  # ... but there are two gotchas:
21283  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21284  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21285  # In both cases, we have to default to `cp -p'.
21286  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21287    as_ln_s='cp -p'
21288elif ln conf$$.file conf$$ 2>/dev/null; then
21289  as_ln_s=ln
21290else
21291  as_ln_s='cp -p'
21292fi
21293rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21294rmdir conf$$.dir 2>/dev/null
21295
21296if mkdir -p . 2>/dev/null; then
21297  as_mkdir_p=:
21298else
21299  test -d ./-p && rmdir ./-p
21300  as_mkdir_p=false
21301fi
21302
21303if test -x / >/dev/null 2>&1; then
21304  as_test_x='test -x'
21305else
21306  if ls -dL / >/dev/null 2>&1; then
21307    as_ls_L_option=L
21308  else
21309    as_ls_L_option=
21310  fi
21311  as_test_x='
21312    eval sh -c '\''
21313      if test -d "$1"; then
21314        test -d "$1/.";
21315      else
21316	case $1 in
21317        -*)set "./$1";;
21318	esac;
21319	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21320	???[sx]*):;;*)false;;esac;fi
21321    '\'' sh
21322  '
21323fi
21324as_executable_p=$as_test_x
21325
21326# Sed expression to map a string onto a valid CPP name.
21327as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21328
21329# Sed expression to map a string onto a valid variable name.
21330as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21331
21332
21333exec 6>&1
21334
21335# Save the log message, to keep $[0] and so on meaningful, and to
21336# report actual input values of CONFIG_FILES etc. instead of their
21337# values after options handling.
21338ac_log="
21339This file was extended by GP parity example $as_me 3.0.0, which was
21340generated by GNU Autoconf 2.61.  Invocation command line was
21341
21342  CONFIG_FILES    = $CONFIG_FILES
21343  CONFIG_HEADERS  = $CONFIG_HEADERS
21344  CONFIG_LINKS    = $CONFIG_LINKS
21345  CONFIG_COMMANDS = $CONFIG_COMMANDS
21346  $ $0 $@
21347
21348on `(hostname || uname -n) 2>/dev/null | sed 1q`
21349"
21350
21351_ACEOF
21352
21353cat >>$CONFIG_STATUS <<_ACEOF
21354# Files that config.status was made for.
21355config_files="$ac_config_files"
21356config_headers="$ac_config_headers"
21357config_commands="$ac_config_commands"
21358
21359_ACEOF
21360
21361cat >>$CONFIG_STATUS <<\_ACEOF
21362ac_cs_usage="\
21363\`$as_me' instantiates files from templates according to the
21364current configuration.
21365
21366Usage: $0 [OPTIONS] [FILE]...
21367
21368  -h, --help       print this help, then exit
21369  -V, --version    print version number and configuration settings, then exit
21370  -q, --quiet      do not print progress messages
21371  -d, --debug      don't remove temporary files
21372      --recheck    update $as_me by reconfiguring in the same conditions
21373  --file=FILE[:TEMPLATE]
21374		   instantiate the configuration file FILE
21375  --header=FILE[:TEMPLATE]
21376		   instantiate the configuration header FILE
21377
21378Configuration files:
21379$config_files
21380
21381Configuration headers:
21382$config_headers
21383
21384Configuration commands:
21385$config_commands
21386
21387Report bugs to <bug-autoconf@gnu.org>."
21388
21389_ACEOF
21390cat >>$CONFIG_STATUS <<_ACEOF
21391ac_cs_version="\\
21392GP parity example config.status 3.0.0
21393configured by $0, generated by GNU Autoconf 2.61,
21394  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21395
21396Copyright (C) 2006 Free Software Foundation, Inc.
21397This config.status script is free software; the Free Software Foundation
21398gives unlimited permission to copy, distribute and modify it."
21399
21400ac_pwd='$ac_pwd'
21401srcdir='$srcdir'
21402INSTALL='$INSTALL'
21403_ACEOF
21404
21405cat >>$CONFIG_STATUS <<\_ACEOF
21406# If no file are specified by the user, then we need to provide default
21407# value.  By we need to know if files were specified by the user.
21408ac_need_defaults=:
21409while test $# != 0
21410do
21411  case $1 in
21412  --*=*)
21413    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21414    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21415    ac_shift=:
21416    ;;
21417  *)
21418    ac_option=$1
21419    ac_optarg=$2
21420    ac_shift=shift
21421    ;;
21422  esac
21423
21424  case $ac_option in
21425  # Handling of the options.
21426  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21427    ac_cs_recheck=: ;;
21428  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21429    echo "$ac_cs_version"; exit ;;
21430  --debug | --debu | --deb | --de | --d | -d )
21431    debug=: ;;
21432  --file | --fil | --fi | --f )
21433    $ac_shift
21434    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21435    ac_need_defaults=false;;
21436  --header | --heade | --head | --hea )
21437    $ac_shift
21438    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21439    ac_need_defaults=false;;
21440  --he | --h)
21441    # Conflict between --help and --header
21442    { echo "$as_me: error: ambiguous option: $1
21443Try \`$0 --help' for more information." >&2
21444   { (exit 1); exit 1; }; };;
21445  --help | --hel | -h )
21446    echo "$ac_cs_usage"; exit ;;
21447  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21448  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21449    ac_cs_silent=: ;;
21450
21451  # This is an error.
21452  -*) { echo "$as_me: error: unrecognized option: $1
21453Try \`$0 --help' for more information." >&2
21454   { (exit 1); exit 1; }; } ;;
21455
21456  *) ac_config_targets="$ac_config_targets $1"
21457     ac_need_defaults=false ;;
21458
21459  esac
21460  shift
21461done
21462
21463ac_configure_extra_args=
21464
21465if $ac_cs_silent; then
21466  exec 6>/dev/null
21467  ac_configure_extra_args="$ac_configure_extra_args --silent"
21468fi
21469
21470_ACEOF
21471cat >>$CONFIG_STATUS <<_ACEOF
21472if \$ac_cs_recheck; then
21473  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21474  CONFIG_SHELL=$SHELL
21475  export CONFIG_SHELL
21476  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21477fi
21478
21479_ACEOF
21480cat >>$CONFIG_STATUS <<\_ACEOF
21481exec 5>>config.log
21482{
21483  echo
21484  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21485## Running $as_me. ##
21486_ASBOX
21487  echo "$ac_log"
21488} >&5
21489
21490_ACEOF
21491cat >>$CONFIG_STATUS <<_ACEOF
21492#
21493# INIT-COMMANDS
21494#
21495AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21496
21497_ACEOF
21498
21499cat >>$CONFIG_STATUS <<\_ACEOF
21500
21501# Handling of arguments.
21502for ac_config_target in $ac_config_targets
21503do
21504  case $ac_config_target in
21505    "parity/config.hpp") CONFIG_HEADERS="$CONFIG_HEADERS parity/config.hpp:parity/config.hpp.in" ;;
21506    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21507    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21508    "parity/Makefile") CONFIG_FILES="$CONFIG_FILES parity/Makefile" ;;
21509
21510  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21511echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21512   { (exit 1); exit 1; }; };;
21513  esac
21514done
21515
21516
21517# If the user did not use the arguments to specify the items to instantiate,
21518# then the envvar interface is used.  Set only those that are not.
21519# We use the long form for the default assignment because of an extremely
21520# bizarre bug on SunOS 4.1.3.
21521if $ac_need_defaults; then
21522  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21523  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21524  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21525fi
21526
21527# Have a temporary directory for convenience.  Make it in the build tree
21528# simply because there is no reason against having it here, and in addition,
21529# creating and moving files from /tmp can sometimes cause problems.
21530# Hook for its removal unless debugging.
21531# Note that there is a small window in which the directory will not be cleaned:
21532# after its creation but before its name has been assigned to `$tmp'.
21533$debug ||
21534{
21535  tmp=
21536  trap 'exit_status=$?
21537  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21538' 0
21539  trap '{ (exit 1); exit 1; }' 1 2 13 15
21540}
21541# Create a (secure) tmp directory for tmp files.
21542
21543{
21544  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21545  test -n "$tmp" && test -d "$tmp"
21546}  ||
21547{
21548  tmp=./conf$$-$RANDOM
21549  (umask 077 && mkdir "$tmp")
21550} ||
21551{
21552   echo "$me: cannot create a temporary directory in ." >&2
21553   { (exit 1); exit 1; }
21554}
21555
21556#
21557# Set up the sed scripts for CONFIG_FILES section.
21558#
21559
21560# No need to generate the scripts if there are no CONFIG_FILES.
21561# This happens for instance when ./config.status config.h
21562if test -n "$CONFIG_FILES"; then
21563
21564_ACEOF
21565
21566
21567
21568ac_delim='%!_!# '
21569for ac_last_try in false false false false false :; do
21570  cat >conf$$subs.sed <<_ACEOF
21571SHELL!$SHELL$ac_delim
21572PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21573PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21574PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21575PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21576PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21577PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21578exec_prefix!$exec_prefix$ac_delim
21579prefix!$prefix$ac_delim
21580program_transform_name!$program_transform_name$ac_delim
21581bindir!$bindir$ac_delim
21582sbindir!$sbindir$ac_delim
21583libexecdir!$libexecdir$ac_delim
21584datarootdir!$datarootdir$ac_delim
21585datadir!$datadir$ac_delim
21586sysconfdir!$sysconfdir$ac_delim
21587sharedstatedir!$sharedstatedir$ac_delim
21588localstatedir!$localstatedir$ac_delim
21589includedir!$includedir$ac_delim
21590oldincludedir!$oldincludedir$ac_delim
21591docdir!$docdir$ac_delim
21592infodir!$infodir$ac_delim
21593htmldir!$htmldir$ac_delim
21594dvidir!$dvidir$ac_delim
21595pdfdir!$pdfdir$ac_delim
21596psdir!$psdir$ac_delim
21597libdir!$libdir$ac_delim
21598localedir!$localedir$ac_delim
21599mandir!$mandir$ac_delim
21600DEFS!$DEFS$ac_delim
21601ECHO_C!$ECHO_C$ac_delim
21602ECHO_N!$ECHO_N$ac_delim
21603ECHO_T!$ECHO_T$ac_delim
21604LIBS!$LIBS$ac_delim
21605build_alias!$build_alias$ac_delim
21606host_alias!$host_alias$ac_delim
21607target_alias!$target_alias$ac_delim
21608INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21609INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21610INSTALL_DATA!$INSTALL_DATA$ac_delim
21611CYGPATH_W!$CYGPATH_W$ac_delim
21612PACKAGE!$PACKAGE$ac_delim
21613VERSION!$VERSION$ac_delim
21614ACLOCAL!$ACLOCAL$ac_delim
21615AUTOCONF!$AUTOCONF$ac_delim
21616AUTOMAKE!$AUTOMAKE$ac_delim
21617AUTOHEADER!$AUTOHEADER$ac_delim
21618MAKEINFO!$MAKEINFO$ac_delim
21619AMTAR!$AMTAR$ac_delim
21620install_sh!$install_sh$ac_delim
21621STRIP!$STRIP$ac_delim
21622INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21623mkdir_p!$mkdir_p$ac_delim
21624AWK!$AWK$ac_delim
21625SET_MAKE!$SET_MAKE$ac_delim
21626am__leading_dot!$am__leading_dot$ac_delim
21627CXX!$CXX$ac_delim
21628CXXFLAGS!$CXXFLAGS$ac_delim
21629LDFLAGS!$LDFLAGS$ac_delim
21630CPPFLAGS!$CPPFLAGS$ac_delim
21631ac_ct_CXX!$ac_ct_CXX$ac_delim
21632EXEEXT!$EXEEXT$ac_delim
21633OBJEXT!$OBJEXT$ac_delim
21634DEPDIR!$DEPDIR$ac_delim
21635am__include!$am__include$ac_delim
21636am__quote!$am__quote$ac_delim
21637AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21638AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21639AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21640CXXDEPMODE!$CXXDEPMODE$ac_delim
21641am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21642am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21643CXXCPP!$CXXCPP$ac_delim
21644LN_S!$LN_S$ac_delim
21645build!$build$ac_delim
21646build_cpu!$build_cpu$ac_delim
21647build_vendor!$build_vendor$ac_delim
21648build_os!$build_os$ac_delim
21649host!$host$ac_delim
21650host_cpu!$host_cpu$ac_delim
21651host_vendor!$host_vendor$ac_delim
21652host_os!$host_os$ac_delim
21653CC!$CC$ac_delim
21654CFLAGS!$CFLAGS$ac_delim
21655ac_ct_CC!$ac_ct_CC$ac_delim
21656CCDEPMODE!$CCDEPMODE$ac_delim
21657am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21658am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21659GREP!$GREP$ac_delim
21660EGREP!$EGREP$ac_delim
21661ECHO!$ECHO$ac_delim
21662AR!$AR$ac_delim
21663RANLIB!$RANLIB$ac_delim
21664CPP!$CPP$ac_delim
21665F77!$F77$ac_delim
21666FFLAGS!$FFLAGS$ac_delim
21667ac_ct_F77!$ac_ct_F77$ac_delim
21668_ACEOF
21669
21670  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21671    break
21672  elif $ac_last_try; then
21673    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21674echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21675   { (exit 1); exit 1; }; }
21676  else
21677    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21678  fi
21679done
21680
21681ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21682if test -n "$ac_eof"; then
21683  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21684  ac_eof=`expr $ac_eof + 1`
21685fi
21686
21687cat >>$CONFIG_STATUS <<_ACEOF
21688cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21689/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21690_ACEOF
21691sed '
21692s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21693s/^/s,@/; s/!/@,|#_!!_#|/
21694:n
21695t n
21696s/'"$ac_delim"'$/,g/; t
21697s/$/\\/; p
21698N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21699' >>$CONFIG_STATUS <conf$$subs.sed
21700rm -f conf$$subs.sed
21701cat >>$CONFIG_STATUS <<_ACEOF
21702CEOF$ac_eof
21703_ACEOF
21704
21705
21706ac_delim='%!_!# '
21707for ac_last_try in false false false false false :; do
21708  cat >conf$$subs.sed <<_ACEOF
21709LIBTOOL!$LIBTOOL$ac_delim
21710PTHREAD_CC!$PTHREAD_CC$ac_delim
21711PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
21712PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
21713LIBOBJS!$LIBOBJS$ac_delim
21714LTLIBOBJS!$LTLIBOBJS$ac_delim
21715_ACEOF
21716
21717  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
21718    break
21719  elif $ac_last_try; then
21720    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21721echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21722   { (exit 1); exit 1; }; }
21723  else
21724    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21725  fi
21726done
21727
21728ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21729if test -n "$ac_eof"; then
21730  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21731  ac_eof=`expr $ac_eof + 1`
21732fi
21733
21734cat >>$CONFIG_STATUS <<_ACEOF
21735cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21736/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21737_ACEOF
21738sed '
21739s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21740s/^/s,@/; s/!/@,|#_!!_#|/
21741:n
21742t n
21743s/'"$ac_delim"'$/,g/; t
21744s/$/\\/; p
21745N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21746' >>$CONFIG_STATUS <conf$$subs.sed
21747rm -f conf$$subs.sed
21748cat >>$CONFIG_STATUS <<_ACEOF
21749:end
21750s/|#_!!_#|//g
21751CEOF$ac_eof
21752_ACEOF
21753
21754
21755# VPATH may cause trouble with some makes, so we remove $(srcdir),
21756# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21757# trailing colons and then remove the whole line if VPATH becomes empty
21758# (actually we leave an empty line to preserve line numbers).
21759if test "x$srcdir" = x.; then
21760  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21761s/:*\$(srcdir):*/:/
21762s/:*\${srcdir}:*/:/
21763s/:*@srcdir@:*/:/
21764s/^\([^=]*=[	 ]*\):*/\1/
21765s/:*$//
21766s/^[^=]*=[	 ]*$//
21767}'
21768fi
21769
21770cat >>$CONFIG_STATUS <<\_ACEOF
21771fi # test -n "$CONFIG_FILES"
21772
21773
21774for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21775do
21776  case $ac_tag in
21777  :[FHLC]) ac_mode=$ac_tag; continue;;
21778  esac
21779  case $ac_mode$ac_tag in
21780  :[FHL]*:*);;
21781  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21782echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21783   { (exit 1); exit 1; }; };;
21784  :[FH]-) ac_tag=-:-;;
21785  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21786  esac
21787  ac_save_IFS=$IFS
21788  IFS=:
21789  set x $ac_tag
21790  IFS=$ac_save_IFS
21791  shift
21792  ac_file=$1
21793  shift
21794
21795  case $ac_mode in
21796  :L) ac_source=$1;;
21797  :[FH])
21798    ac_file_inputs=
21799    for ac_f
21800    do
21801      case $ac_f in
21802      -) ac_f="$tmp/stdin";;
21803      *) # Look for the file first in the build tree, then in the source tree
21804	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21805	 # because $ac_f cannot contain `:'.
21806	 test -f "$ac_f" ||
21807	   case $ac_f in
21808	   [\\/$]*) false;;
21809	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21810	   esac ||
21811	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21812echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21813   { (exit 1); exit 1; }; };;
21814      esac
21815      ac_file_inputs="$ac_file_inputs $ac_f"
21816    done
21817
21818    # Let's still pretend it is `configure' which instantiates (i.e., don't
21819    # use $as_me), people would be surprised to read:
21820    #    /* config.h.  Generated by config.status.  */
21821    configure_input="Generated from "`IFS=:
21822	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21823    if test x"$ac_file" != x-; then
21824      configure_input="$ac_file.  $configure_input"
21825      { echo "$as_me:$LINENO: creating $ac_file" >&5
21826echo "$as_me: creating $ac_file" >&6;}
21827    fi
21828
21829    case $ac_tag in
21830    *:-:* | *:-) cat >"$tmp/stdin";;
21831    esac
21832    ;;
21833  esac
21834
21835  ac_dir=`$as_dirname -- "$ac_file" ||
21836$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21837	 X"$ac_file" : 'X\(//\)[^/]' \| \
21838	 X"$ac_file" : 'X\(//\)$' \| \
21839	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21840echo X"$ac_file" |
21841    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21842	    s//\1/
21843	    q
21844	  }
21845	  /^X\(\/\/\)[^/].*/{
21846	    s//\1/
21847	    q
21848	  }
21849	  /^X\(\/\/\)$/{
21850	    s//\1/
21851	    q
21852	  }
21853	  /^X\(\/\).*/{
21854	    s//\1/
21855	    q
21856	  }
21857	  s/.*/./; q'`
21858  { as_dir="$ac_dir"
21859  case $as_dir in #(
21860  -*) as_dir=./$as_dir;;
21861  esac
21862  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21863    as_dirs=
21864    while :; do
21865      case $as_dir in #(
21866      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21867      *) as_qdir=$as_dir;;
21868      esac
21869      as_dirs="'$as_qdir' $as_dirs"
21870      as_dir=`$as_dirname -- "$as_dir" ||
21871$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21872	 X"$as_dir" : 'X\(//\)[^/]' \| \
21873	 X"$as_dir" : 'X\(//\)$' \| \
21874	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21875echo X"$as_dir" |
21876    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21877	    s//\1/
21878	    q
21879	  }
21880	  /^X\(\/\/\)[^/].*/{
21881	    s//\1/
21882	    q
21883	  }
21884	  /^X\(\/\/\)$/{
21885	    s//\1/
21886	    q
21887	  }
21888	  /^X\(\/\).*/{
21889	    s//\1/
21890	    q
21891	  }
21892	  s/.*/./; q'`
21893      test -d "$as_dir" && break
21894    done
21895    test -z "$as_dirs" || eval "mkdir $as_dirs"
21896  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21897echo "$as_me: error: cannot create directory $as_dir" >&2;}
21898   { (exit 1); exit 1; }; }; }
21899  ac_builddir=.
21900
21901case "$ac_dir" in
21902.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21903*)
21904  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21905  # A ".." for each directory in $ac_dir_suffix.
21906  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21907  case $ac_top_builddir_sub in
21908  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21909  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21910  esac ;;
21911esac
21912ac_abs_top_builddir=$ac_pwd
21913ac_abs_builddir=$ac_pwd$ac_dir_suffix
21914# for backward compatibility:
21915ac_top_builddir=$ac_top_build_prefix
21916
21917case $srcdir in
21918  .)  # We are building in place.
21919    ac_srcdir=.
21920    ac_top_srcdir=$ac_top_builddir_sub
21921    ac_abs_top_srcdir=$ac_pwd ;;
21922  [\\/]* | ?:[\\/]* )  # Absolute name.
21923    ac_srcdir=$srcdir$ac_dir_suffix;
21924    ac_top_srcdir=$srcdir
21925    ac_abs_top_srcdir=$srcdir ;;
21926  *) # Relative name.
21927    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21928    ac_top_srcdir=$ac_top_build_prefix$srcdir
21929    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21930esac
21931ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21932
21933
21934  case $ac_mode in
21935  :F)
21936  #
21937  # CONFIG_FILE
21938  #
21939
21940  case $INSTALL in
21941  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21942  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21943  esac
21944_ACEOF
21945
21946cat >>$CONFIG_STATUS <<\_ACEOF
21947# If the template does not know about datarootdir, expand it.
21948# FIXME: This hack should be removed a few years after 2.60.
21949ac_datarootdir_hack=; ac_datarootdir_seen=
21950
21951case `sed -n '/datarootdir/ {
21952  p
21953  q
21954}
21955/@datadir@/p
21956/@docdir@/p
21957/@infodir@/p
21958/@localedir@/p
21959/@mandir@/p
21960' $ac_file_inputs` in
21961*datarootdir*) ac_datarootdir_seen=yes;;
21962*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21963  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21964echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21965_ACEOF
21966cat >>$CONFIG_STATUS <<_ACEOF
21967  ac_datarootdir_hack='
21968  s&@datadir@&$datadir&g
21969  s&@docdir@&$docdir&g
21970  s&@infodir@&$infodir&g
21971  s&@localedir@&$localedir&g
21972  s&@mandir@&$mandir&g
21973    s&\\\${datarootdir}&$datarootdir&g' ;;
21974esac
21975_ACEOF
21976
21977# Neutralize VPATH when `$srcdir' = `.'.
21978# Shell code in configure.ac might set extrasub.
21979# FIXME: do we really want to maintain this feature?
21980cat >>$CONFIG_STATUS <<_ACEOF
21981  sed "$ac_vpsub
21982$extrasub
21983_ACEOF
21984cat >>$CONFIG_STATUS <<\_ACEOF
21985:t
21986/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21987s&@configure_input@&$configure_input&;t t
21988s&@top_builddir@&$ac_top_builddir_sub&;t t
21989s&@srcdir@&$ac_srcdir&;t t
21990s&@abs_srcdir@&$ac_abs_srcdir&;t t
21991s&@top_srcdir@&$ac_top_srcdir&;t t
21992s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21993s&@builddir@&$ac_builddir&;t t
21994s&@abs_builddir@&$ac_abs_builddir&;t t
21995s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21996s&@INSTALL@&$ac_INSTALL&;t t
21997$ac_datarootdir_hack
21998" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21999
22000test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22001  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22002  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22003  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22004which seems to be undefined.  Please make sure it is defined." >&5
22005echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22006which seems to be undefined.  Please make sure it is defined." >&2;}
22007
22008  rm -f "$tmp/stdin"
22009  case $ac_file in
22010  -) cat "$tmp/out"; rm -f "$tmp/out";;
22011  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22012  esac
22013 ;;
22014  :H)
22015  #
22016  # CONFIG_HEADER
22017  #
22018_ACEOF
22019
22020# Transform confdefs.h into a sed script `conftest.defines', that
22021# substitutes the proper values into config.h.in to produce config.h.
22022rm -f conftest.defines conftest.tail
22023# First, append a space to every undef/define line, to ease matching.
22024echo 's/$/ /' >conftest.defines
22025# Then, protect against being on the right side of a sed subst, or in
22026# an unquoted here document, in config.status.  If some macros were
22027# called several times there might be several #defines for the same
22028# symbol, which is useless.  But do not sort them, since the last
22029# AC_DEFINE must be honored.
22030ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22031# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22032# NAME is the cpp macro being defined, VALUE is the value it is being given.
22033# PARAMS is the parameter list in the macro definition--in most cases, it's
22034# just an empty string.
22035ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
22036ac_dB='\\)[	 (].*,\\1define\\2'
22037ac_dC=' '
22038ac_dD=' ,'
22039
22040uniq confdefs.h |
22041  sed -n '
22042	t rset
22043	:rset
22044	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
22045	t ok
22046	d
22047	:ok
22048	s/[\\&,]/\\&/g
22049	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22050	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22051  ' >>conftest.defines
22052
22053# Remove the space that was appended to ease matching.
22054# Then replace #undef with comments.  This is necessary, for
22055# example, in the case of _POSIX_SOURCE, which is predefined and required
22056# on some systems where configure will not decide to define it.
22057# (The regexp can be short, since the line contains either #define or #undef.)
22058echo 's/ $//
22059s,^[	 #]*u.*,/* & */,' >>conftest.defines
22060
22061# Break up conftest.defines:
22062ac_max_sed_lines=50
22063
22064# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22065# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22066# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22067# et cetera.
22068ac_in='$ac_file_inputs'
22069ac_out='"$tmp/out1"'
22070ac_nxt='"$tmp/out2"'
22071
22072while :
22073do
22074  # Write a here document:
22075    cat >>$CONFIG_STATUS <<_ACEOF
22076    # First, check the format of the line:
22077    cat >"\$tmp/defines.sed" <<\\CEOF
22078/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
22079/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
22080b
22081:def
22082_ACEOF
22083  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22084  echo 'CEOF
22085    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22086  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22087  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22088  grep . conftest.tail >/dev/null || break
22089  rm -f conftest.defines
22090  mv conftest.tail conftest.defines
22091done
22092rm -f conftest.defines conftest.tail
22093
22094echo "ac_result=$ac_in" >>$CONFIG_STATUS
22095cat >>$CONFIG_STATUS <<\_ACEOF
22096  if test x"$ac_file" != x-; then
22097    echo "/* $configure_input  */" >"$tmp/config.h"
22098    cat "$ac_result" >>"$tmp/config.h"
22099    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22100      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22101echo "$as_me: $ac_file is unchanged" >&6;}
22102    else
22103      rm -f $ac_file
22104      mv "$tmp/config.h" $ac_file
22105    fi
22106  else
22107    echo "/* $configure_input  */"
22108    cat "$ac_result"
22109  fi
22110  rm -f "$tmp/out12"
22111# Compute $ac_file's index in $config_headers.
22112_am_stamp_count=1
22113for _am_header in $config_headers :; do
22114  case $_am_header in
22115    $ac_file | $ac_file:* )
22116      break ;;
22117    * )
22118      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22119  esac
22120done
22121echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22122$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22123	 X$ac_file : 'X\(//\)[^/]' \| \
22124	 X$ac_file : 'X\(//\)$' \| \
22125	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22126echo X$ac_file |
22127    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22128	    s//\1/
22129	    q
22130	  }
22131	  /^X\(\/\/\)[^/].*/{
22132	    s//\1/
22133	    q
22134	  }
22135	  /^X\(\/\/\)$/{
22136	    s//\1/
22137	    q
22138	  }
22139	  /^X\(\/\).*/{
22140	    s//\1/
22141	    q
22142	  }
22143	  s/.*/./; q'`/stamp-h$_am_stamp_count
22144 ;;
22145
22146  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22147echo "$as_me: executing $ac_file commands" >&6;}
22148 ;;
22149  esac
22150
22151
22152  case $ac_file$ac_mode in
22153    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22154  # Strip MF so we end up with the name of the file.
22155  mf=`echo "$mf" | sed -e 's/:.*$//'`
22156  # Check whether this is an Automake generated Makefile or not.
22157  # We used to match only the files named `Makefile.in', but
22158  # some people rename them; so instead we look at the file content.
22159  # Grep'ing the first line is not enough: some people post-process
22160  # each Makefile.in and add a new line on top of each file to say so.
22161  # So let's grep whole file.
22162  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22163    dirpart=`$as_dirname -- "$mf" ||
22164$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22165	 X"$mf" : 'X\(//\)[^/]' \| \
22166	 X"$mf" : 'X\(//\)$' \| \
22167	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22168echo X"$mf" |
22169    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22170	    s//\1/
22171	    q
22172	  }
22173	  /^X\(\/\/\)[^/].*/{
22174	    s//\1/
22175	    q
22176	  }
22177	  /^X\(\/\/\)$/{
22178	    s//\1/
22179	    q
22180	  }
22181	  /^X\(\/\).*/{
22182	    s//\1/
22183	    q
22184	  }
22185	  s/.*/./; q'`
22186  else
22187    continue
22188  fi
22189  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22190  # Extract the definition of DEP_FILES from the Makefile without
22191  # running `make'.
22192  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22193  test -z "$DEPDIR" && continue
22194  # When using ansi2knr, U may be empty or an underscore; expand it
22195  U=`sed -n 's/^U = //p' < "$mf"`
22196  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22197  # We invoke sed twice because it is the simplest approach to
22198  # changing $(DEPDIR) to its actual value in the expansion.
22199  for file in `sed -n '
22200    /^DEP_FILES = .*\\\\$/ {
22201      s/^DEP_FILES = //
22202      :loop
22203	s/\\\\$//
22204	p
22205	n
22206	/\\\\$/ b loop
22207      p
22208    }
22209    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
22210       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22211    # Make sure the directory exists.
22212    test -f "$dirpart/$file" && continue
22213    fdir=`$as_dirname -- "$file" ||
22214$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22215	 X"$file" : 'X\(//\)[^/]' \| \
22216	 X"$file" : 'X\(//\)$' \| \
22217	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22218echo X"$file" |
22219    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22220	    s//\1/
22221	    q
22222	  }
22223	  /^X\(\/\/\)[^/].*/{
22224	    s//\1/
22225	    q
22226	  }
22227	  /^X\(\/\/\)$/{
22228	    s//\1/
22229	    q
22230	  }
22231	  /^X\(\/\).*/{
22232	    s//\1/
22233	    q
22234	  }
22235	  s/.*/./; q'`
22236    { as_dir=$dirpart/$fdir
22237  case $as_dir in #(
22238  -*) as_dir=./$as_dir;;
22239  esac
22240  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22241    as_dirs=
22242    while :; do
22243      case $as_dir in #(
22244      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22245      *) as_qdir=$as_dir;;
22246      esac
22247      as_dirs="'$as_qdir' $as_dirs"
22248      as_dir=`$as_dirname -- "$as_dir" ||
22249$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22250	 X"$as_dir" : 'X\(//\)[^/]' \| \
22251	 X"$as_dir" : 'X\(//\)$' \| \
22252	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22253echo X"$as_dir" |
22254    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22255	    s//\1/
22256	    q
22257	  }
22258	  /^X\(\/\/\)[^/].*/{
22259	    s//\1/
22260	    q
22261	  }
22262	  /^X\(\/\/\)$/{
22263	    s//\1/
22264	    q
22265	  }
22266	  /^X\(\/\).*/{
22267	    s//\1/
22268	    q
22269	  }
22270	  s/.*/./; q'`
22271      test -d "$as_dir" && break
22272    done
22273    test -z "$as_dirs" || eval "mkdir $as_dirs"
22274  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22275echo "$as_me: error: cannot create directory $as_dir" >&2;}
22276   { (exit 1); exit 1; }; }; }
22277    # echo "creating $dirpart/$file"
22278    echo '# dummy' > "$dirpart/$file"
22279  done
22280done
22281 ;;
22282
22283  esac
22284done # for ac_tag
22285
22286
22287{ (exit 0); exit 0; }
22288_ACEOF
22289chmod +x $CONFIG_STATUS
22290ac_clean_files=$ac_clean_files_save
22291
22292
22293# configure is writing to config.log, and then calls config.status.
22294# config.status does its own redirection, appending to config.log.
22295# Unfortunately, on DOS this fails, as config.log is still kept open
22296# by configure, so config.status won't be able to write to it; its
22297# output is simply discarded.  So we exec the FD to /dev/null,
22298# effectively closing config.log, so it can be properly (re)opened and
22299# appended to by config.status.  When coming back to configure, we
22300# need to make the FD available again.
22301if test "$no_create" != yes; then
22302  ac_cs_success=:
22303  ac_config_status_args=
22304  test "$silent" = yes &&
22305    ac_config_status_args="$ac_config_status_args --quiet"
22306  exec 5>/dev/null
22307  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22308  exec 5>>config.log
22309  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22310  # would make configure fail if this is the last instruction.
22311  $ac_cs_success || { (exit 1); exit 1; }
22312fi
22313
22314