configure revision bd1da9d7
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for libXres 1.0.3.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22  setopt NO_GLOB_SUBST
23else
24  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25fi
26BIN_SH=xpg4; export BIN_SH # for Tru64
27DUALCASE=1; export DUALCASE # for MKS sh
28
29
30# PATH needs CR
31# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40  echo "#! /bin/sh" >conf$$.sh
41  echo  "exit 0"   >>conf$$.sh
42  chmod +x conf$$.sh
43  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44    PATH_SEPARATOR=';'
45  else
46    PATH_SEPARATOR=:
47  fi
48  rm -f conf$$.sh
49fi
50
51# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53  as_unset=unset
54else
55  as_unset=false
56fi
57
58
59# IFS
60# We need space, tab and new line, in precisely that order.  Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" ""	$as_nl"
67
68# Find who we are.  Look in the path if we contain no directory separator.
69case $0 in
70  *[\\/]* ) as_myself=$0 ;;
71  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72for as_dir in $PATH
73do
74  IFS=$as_save_IFS
75  test -z "$as_dir" && as_dir=.
76  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
78IFS=$as_save_IFS
79
80     ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85  as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89  { (exit 1); exit 1; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for as_var in \
102  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104  LC_TELEPHONE LC_TIME
105do
106  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107    eval $as_var=C; export $as_var
108  else
109    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110  fi
111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115   test "X`expr 00001 : '.*\(...\)'`" = X001; then
116  as_expr=expr
117else
118  as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122  as_basename=basename
123else
124  as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131	 X"$0" : 'X\(//\)$' \| \
132	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
134    sed '/^.*\/\([^/][^/]*\)\/*$/{
135	    s//\1/
136	    q
137	  }
138	  /^X\/\(\/\/\)$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\).*/{
143	    s//\1/
144	    q
145	  }
146	  s/.*/./; q'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153  if (eval ":") 2>/dev/null; then
154  as_have_required=yes
155else
156  as_have_required=no
157fi
158
159  if test $as_have_required = yes && 	 (eval ":
160(as_func_return () {
161  (exit \$1)
162}
163as_func_success () {
164  as_func_return 0
165}
166as_func_failure () {
167  as_func_return 1
168}
169as_func_ret_success () {
170  return 0
171}
172as_func_ret_failure () {
173  return 1
174}
175
176exitcode=0
177if as_func_success; then
178  :
179else
180  exitcode=1
181  echo as_func_success failed.
182fi
183
184if as_func_failure; then
185  exitcode=1
186  echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190  :
191else
192  exitcode=1
193  echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197  exitcode=1
198  echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202  :
203else
204  exitcode=1
205  echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211  as_lineno_1=\$LINENO
212  as_lineno_2=\$LINENO
213  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216  :
217else
218  as_candidate_shells=
219    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  case $as_dir in
225	 /*)
226	   for as_base in sh bash ksh sh5; do
227	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228	   done;;
229       esac
230done
231IFS=$as_save_IFS
232
233
234      for as_shell in $as_candidate_shells $SHELL; do
235	 # Try only shells that exist, to save several forks.
236	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237		{ ("$as_shell") 2> /dev/null <<\_ASEOF
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240  emulate sh
241  NULLCMD=:
242  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243  # is contrary to our usage.  Disable this feature.
244  alias -g '${1+"$@"}'='"$@"'
245  setopt NO_GLOB_SUBST
246else
247  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255  CONFIG_SHELL=$as_shell
256	       as_have_required=yes
257	       if { "$as_shell" 2> /dev/null <<\_ASEOF
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274  (exit $1)
275}
276as_func_success () {
277  as_func_return 0
278}
279as_func_failure () {
280  as_func_return 1
281}
282as_func_ret_success () {
283  return 0
284}
285as_func_ret_failure () {
286  return 1
287}
288
289exitcode=0
290if as_func_success; then
291  :
292else
293  exitcode=1
294  echo as_func_success failed.
295fi
296
297if as_func_failure; then
298  exitcode=1
299  echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303  :
304else
305  exitcode=1
306  echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310  exitcode=1
311  echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315  :
316else
317  exitcode=1
318  echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
324  as_lineno_1=$LINENO
325  as_lineno_2=$LINENO
326  test "x$as_lineno_1" != "x$as_lineno_2" &&
327  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331  break
332fi
333
334fi
335
336      done
337
338      if test "x$CONFIG_SHELL" != x; then
339  for as_var in BASH_ENV ENV
340        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341        done
342        export CONFIG_SHELL
343        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347    if test $as_have_required = no; then
348  echo This script requires a shell more modern than all the
349      echo shells that I found on your system.  Please install a
350      echo modern shell, or manually run the script under such a
351      echo shell if you do have one.
352      { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363  (exit \$1)
364}
365as_func_success () {
366  as_func_return 0
367}
368as_func_failure () {
369  as_func_return 1
370}
371as_func_ret_success () {
372  return 0
373}
374as_func_ret_failure () {
375  return 1
376}
377
378exitcode=0
379if as_func_success; then
380  :
381else
382  exitcode=1
383  echo as_func_success failed.
384fi
385
386if as_func_failure; then
387  exitcode=1
388  echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392  :
393else
394  exitcode=1
395  echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399  exitcode=1
400  echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404  :
405else
406  exitcode=1
407  echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411  echo No shell found that supports shell functions.
412  echo Please tell autoconf@gnu.org about your system,
413  echo including any error possibly output before this
414  echo message
415}
416
417
418
419  as_lineno_1=$LINENO
420  as_lineno_2=$LINENO
421  test "x$as_lineno_1" != "x$as_lineno_2" &&
422  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425  # uniformly replaced by the line number.  The first 'sed' inserts a
426  # line-number line after each line using $LINENO; the second 'sed'
427  # does the real work.  The second script uses 'N' to pair each
428  # line-number line with the line containing $LINENO, and appends
429  # trailing '-' during substitution so that $LINENO is not a special
430  # case at line end.
431  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432  # scripts with optimization help from Paolo Bonzini.  Blame Lee
433  # E. McMahon (1931-1989) for sed's syntax.  :-)
434  sed -n '
435    p
436    /[$]LINENO/=
437  ' <$as_myself |
438    sed '
439      s/[$]LINENO.*/&-/
440      t lineno
441      b
442      :lineno
443      N
444      :loop
445      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446      t loop
447      s/-\n.*//
448    ' >$as_me.lineno &&
449  chmod +x "$as_me.lineno" ||
450    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451   { (exit 1); exit 1; }; }
452
453  # Don't try to exec as it changes $[0], causing all sort of problems
454  # (the dirname of $[0] is not the place where we might find the
455  # original and so on.  Autoconf is especially sensitive to this).
456  . "./$as_me.lineno"
457  # Exit status is that of the last command.
458  exit
459}
460
461
462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463  as_dirname=dirname
464else
465  as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471  case `echo 'x\c'` in
472  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
473  *)   ECHO_C='\c';;
474  esac;;
475*)
476  ECHO_N='-n';;
477esac
478
479if expr a : '\(a\)' >/dev/null 2>&1 &&
480   test "X`expr 00001 : '.*\(...\)'`" = X001; then
481  as_expr=expr
482else
483  as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
487if test -d conf$$.dir; then
488  rm -f conf$$.dir/conf$$.file
489else
490  rm -f conf$$.dir
491  mkdir conf$$.dir
492fi
493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
495  as_ln_s='ln -s'
496  # ... but there are two gotchas:
497  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499  # In both cases, we have to default to `cp -p'.
500  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501    as_ln_s='cp -p'
502elif ln conf$$.file conf$$ 2>/dev/null; then
503  as_ln_s=ln
504else
505  as_ln_s='cp -p'
506fi
507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
509
510if mkdir -p . 2>/dev/null; then
511  as_mkdir_p=:
512else
513  test -d ./-p && rmdir ./-p
514  as_mkdir_p=false
515fi
516
517# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525  as_executable_p="test -x"
526else
527  as_executable_p=:
528fi
529rm -f conf$$.file
530
531# Sed expression to map a string onto a valid CPP name.
532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534# Sed expression to map a string onto a valid variable name.
535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539
540# Check that we are running under the correct shell.
541SHELL=${CONFIG_SHELL-/bin/sh}
542
543case X$ECHO in
544X*--fallback-echo)
545  # Remove one level of quotation (which was required for Make).
546  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
547  ;;
548esac
549
550echo=${ECHO-echo}
551if test "X$1" = X--no-reexec; then
552  # Discard the --no-reexec flag, and continue.
553  shift
554elif test "X$1" = X--fallback-echo; then
555  # Avoid inline document here, it may be left over
556  :
557elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
558  # Yippee, $echo works!
559  :
560else
561  # Restart under the correct shell.
562  exec $SHELL "$0" --no-reexec ${1+"$@"}
563fi
564
565if test "X$1" = X--fallback-echo; then
566  # used as fallback echo
567  shift
568  cat <<EOF
569$*
570EOF
571  exit 0
572fi
573
574# The HP-UX ksh and POSIX shell print the target directory to stdout
575# if CDPATH is set.
576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
577
578if test -z "$ECHO"; then
579if test "X${echo_test_string+set}" != Xset; then
580# find a string as large as possible, as long as the shell can cope with it
581  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
582    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
583    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
584       echo_test_string=`eval $cmd` &&
585       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
586    then
587      break
588    fi
589  done
590fi
591
592if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
593   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
594   test "X$echo_testing_string" = "X$echo_test_string"; then
595  :
596else
597  # The Solaris, AIX, and Digital Unix default echo programs unquote
598  # backslashes.  This makes it impossible to quote backslashes using
599  #   echo "$something" | sed 's/\\/\\\\/g'
600  #
601  # So, first we look for a working echo in the user's PATH.
602
603  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604  for dir in $PATH /usr/ucb; do
605    IFS="$lt_save_ifs"
606    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609       test "X$echo_testing_string" = "X$echo_test_string"; then
610      echo="$dir/echo"
611      break
612    fi
613  done
614  IFS="$lt_save_ifs"
615
616  if test "X$echo" = Xecho; then
617    # We didn't find a better echo, so look for alternatives.
618    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
619       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
620       test "X$echo_testing_string" = "X$echo_test_string"; then
621      # This shell has a builtin print -r that does the trick.
622      echo='print -r'
623    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
624	 test "X$CONFIG_SHELL" != X/bin/ksh; then
625      # If we have ksh, try running configure again with it.
626      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627      export ORIGINAL_CONFIG_SHELL
628      CONFIG_SHELL=/bin/ksh
629      export CONFIG_SHELL
630      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631    else
632      # Try using printf.
633      echo='printf %s\n'
634      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
635	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
636	 test "X$echo_testing_string" = "X$echo_test_string"; then
637	# Cool, printf works
638	:
639      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640	   test "X$echo_testing_string" = 'X\t' &&
641	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642	   test "X$echo_testing_string" = "X$echo_test_string"; then
643	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644	export CONFIG_SHELL
645	SHELL="$CONFIG_SHELL"
646	export SHELL
647	echo="$CONFIG_SHELL $0 --fallback-echo"
648      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649	   test "X$echo_testing_string" = 'X\t' &&
650	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651	   test "X$echo_testing_string" = "X$echo_test_string"; then
652	echo="$CONFIG_SHELL $0 --fallback-echo"
653      else
654	# maybe with a smaller string...
655	prev=:
656
657	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
659	  then
660	    break
661	  fi
662	  prev="$cmd"
663	done
664
665	if test "$prev" != 'sed 50q "$0"'; then
666	  echo_test_string=`eval $prev`
667	  export echo_test_string
668	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669	else
670	  # Oops.  We lost completely, so just stick with echo.
671	  echo=echo
672	fi
673      fi
674    fi
675  fi
676fi
677fi
678
679# Copy echo and quote the copy suitably for passing to libtool from
680# the Makefile, instead of quoting the original, which is used later.
681ECHO=$echo
682if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684fi
685
686
687
688
689tagnames=${tagnames+${tagnames},}CXX
690
691tagnames=${tagnames+${tagnames},}F77
692
693exec 7<&0 </dev/null 6>&1
694
695# Name of the host.
696# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697# so uname gets run too.
698ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699
700#
701# Initializations.
702#
703ac_default_prefix=/usr/local
704ac_clean_files=
705ac_config_libobj_dir=.
706LIBOBJS=
707cross_compiling=no
708subdirs=
709MFLAGS=
710MAKEFLAGS=
711SHELL=${CONFIG_SHELL-/bin/sh}
712
713# Identity of this package.
714PACKAGE_NAME='libXres'
715PACKAGE_TARNAME='libXres'
716PACKAGE_VERSION='1.0.3'
717PACKAGE_STRING='libXres 1.0.3'
718PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
719
720# Factoring default headers for most tests.
721ac_includes_default="\
722#include <stdio.h>
723#if HAVE_SYS_TYPES_H
724# include <sys/types.h>
725#endif
726#if HAVE_SYS_STAT_H
727# include <sys/stat.h>
728#endif
729#if STDC_HEADERS
730# include <stdlib.h>
731# include <stddef.h>
732#else
733# if HAVE_STDLIB_H
734#  include <stdlib.h>
735# endif
736#endif
737#if HAVE_STRING_H
738# if !STDC_HEADERS && HAVE_MEMORY_H
739#  include <memory.h>
740# endif
741# include <string.h>
742#endif
743#if HAVE_STRINGS_H
744# include <strings.h>
745#endif
746#if HAVE_INTTYPES_H
747# include <inttypes.h>
748#endif
749#if HAVE_STDINT_H
750# include <stdint.h>
751#endif
752#if HAVE_UNISTD_H
753# include <unistd.h>
754#endif"
755
756ac_subst_vars='SHELL
757PATH_SEPARATOR
758PACKAGE_NAME
759PACKAGE_TARNAME
760PACKAGE_VERSION
761PACKAGE_STRING
762PACKAGE_BUGREPORT
763exec_prefix
764prefix
765program_transform_name
766bindir
767sbindir
768libexecdir
769datarootdir
770datadir
771sysconfdir
772sharedstatedir
773localstatedir
774includedir
775oldincludedir
776docdir
777infodir
778htmldir
779dvidir
780pdfdir
781psdir
782libdir
783localedir
784mandir
785DEFS
786ECHO_C
787ECHO_N
788ECHO_T
789LIBS
790build_alias
791host_alias
792target_alias
793INSTALL_PROGRAM
794INSTALL_SCRIPT
795INSTALL_DATA
796CYGPATH_W
797PACKAGE
798VERSION
799ACLOCAL
800AUTOCONF
801AUTOMAKE
802AUTOHEADER
803MAKEINFO
804install_sh
805STRIP
806INSTALL_STRIP_PROGRAM
807mkdir_p
808AWK
809SET_MAKE
810am__leading_dot
811AMTAR
812am__tar
813am__untar
814AMSHOWCMDSAT
815AMDEPSHOWCMDSAT
816AMPRETTYECHO
817AMCMDECHO
818LT_QUIET
819CC
820CFLAGS
821LDFLAGS
822CPPFLAGS
823ac_ct_CC
824EXEEXT
825OBJEXT
826DEPDIR
827am__include
828am__quote
829AMDEP_TRUE
830AMDEP_FALSE
831AMDEPBACKSLASH
832CCDEPMODE
833am__fastdepCC_TRUE
834am__fastdepCC_FALSE
835build
836build_cpu
837build_vendor
838build_os
839host
840host_cpu
841host_vendor
842host_os
843GREP
844EGREP
845LN_S
846ECHO
847AR
848RANLIB
849CPP
850CXX
851CXXFLAGS
852ac_ct_CXX
853CXXDEPMODE
854am__fastdepCXX_TRUE
855am__fastdepCXX_FALSE
856CXXCPP
857F77
858FFLAGS
859ac_ct_F77
860LIBTOOL
861PKG_CONFIG
862XRES_CFLAGS
863XRES_LIBS
864RESOURCEEXT_CFLAGS
865RESOURCEEXT_LIBS
866MALLOC_ZERO_CFLAGS
867XMALLOC_ZERO_CFLAGS
868XTMALLOC_ZERO_CFLAGS
869APP_MAN_SUFFIX
870LIB_MAN_SUFFIX
871FILE_MAN_SUFFIX
872MISC_MAN_SUFFIX
873DRIVER_MAN_SUFFIX
874ADMIN_MAN_SUFFIX
875APP_MAN_DIR
876LIB_MAN_DIR
877FILE_MAN_DIR
878MISC_MAN_DIR
879DRIVER_MAN_DIR
880ADMIN_MAN_DIR
881LIBOBJS
882LTLIBOBJS'
883ac_subst_files=''
884      ac_precious_vars='build_alias
885host_alias
886target_alias
887CC
888CFLAGS
889LDFLAGS
890CPPFLAGS
891CPP
892CXX
893CXXFLAGS
894CCC
895CXXCPP
896F77
897FFLAGS
898PKG_CONFIG
899XRES_CFLAGS
900XRES_LIBS
901RESOURCEEXT_CFLAGS
902RESOURCEEXT_LIBS'
903
904
905# Initialize some variables set by options.
906ac_init_help=
907ac_init_version=false
908# The variables have the same names as the options, with
909# dashes changed to underlines.
910cache_file=/dev/null
911exec_prefix=NONE
912no_create=
913no_recursion=
914prefix=NONE
915program_prefix=NONE
916program_suffix=NONE
917program_transform_name=s,x,x,
918silent=
919site=
920srcdir=
921verbose=
922x_includes=NONE
923x_libraries=NONE
924
925# Installation directory options.
926# These are left unexpanded so users can "make install exec_prefix=/foo"
927# and all the variables that are supposed to be based on exec_prefix
928# by default will actually change.
929# Use braces instead of parens because sh, perl, etc. also accept them.
930# (The list follows the same order as the GNU Coding Standards.)
931bindir='${exec_prefix}/bin'
932sbindir='${exec_prefix}/sbin'
933libexecdir='${exec_prefix}/libexec'
934datarootdir='${prefix}/share'
935datadir='${datarootdir}'
936sysconfdir='${prefix}/etc'
937sharedstatedir='${prefix}/com'
938localstatedir='${prefix}/var'
939includedir='${prefix}/include'
940oldincludedir='/usr/include'
941docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
942infodir='${datarootdir}/info'
943htmldir='${docdir}'
944dvidir='${docdir}'
945pdfdir='${docdir}'
946psdir='${docdir}'
947libdir='${exec_prefix}/lib'
948localedir='${datarootdir}/locale'
949mandir='${datarootdir}/man'
950
951ac_prev=
952ac_dashdash=
953for ac_option
954do
955  # If the previous option needs an argument, assign it.
956  if test -n "$ac_prev"; then
957    eval $ac_prev=\$ac_option
958    ac_prev=
959    continue
960  fi
961
962  case $ac_option in
963  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964  *)	ac_optarg=yes ;;
965  esac
966
967  # Accept the important Cygnus configure options, so we can diagnose typos.
968
969  case $ac_dashdash$ac_option in
970  --)
971    ac_dashdash=yes ;;
972
973  -bindir | --bindir | --bindi | --bind | --bin | --bi)
974    ac_prev=bindir ;;
975  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976    bindir=$ac_optarg ;;
977
978  -build | --build | --buil | --bui | --bu)
979    ac_prev=build_alias ;;
980  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981    build_alias=$ac_optarg ;;
982
983  -cache-file | --cache-file | --cache-fil | --cache-fi \
984  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985    ac_prev=cache_file ;;
986  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988    cache_file=$ac_optarg ;;
989
990  --config-cache | -C)
991    cache_file=config.cache ;;
992
993  -datadir | --datadir | --datadi | --datad)
994    ac_prev=datadir ;;
995  -datadir=* | --datadir=* | --datadi=* | --datad=*)
996    datadir=$ac_optarg ;;
997
998  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999  | --dataroo | --dataro | --datar)
1000    ac_prev=datarootdir ;;
1001  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003    datarootdir=$ac_optarg ;;
1004
1005  -disable-* | --disable-*)
1006    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007    # Reject names that are not valid shell variable names.
1008    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1009      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1010   { (exit 1); exit 1; }; }
1011    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1012    eval enable_$ac_feature=no ;;
1013
1014  -docdir | --docdir | --docdi | --doc | --do)
1015    ac_prev=docdir ;;
1016  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017    docdir=$ac_optarg ;;
1018
1019  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020    ac_prev=dvidir ;;
1021  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022    dvidir=$ac_optarg ;;
1023
1024  -enable-* | --enable-*)
1025    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026    # Reject names that are not valid shell variable names.
1027    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1028      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1029   { (exit 1); exit 1; }; }
1030    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1031    eval enable_$ac_feature=\$ac_optarg ;;
1032
1033  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035  | --exec | --exe | --ex)
1036    ac_prev=exec_prefix ;;
1037  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039  | --exec=* | --exe=* | --ex=*)
1040    exec_prefix=$ac_optarg ;;
1041
1042  -gas | --gas | --ga | --g)
1043    # Obsolete; use --with-gas.
1044    with_gas=yes ;;
1045
1046  -help | --help | --hel | --he | -h)
1047    ac_init_help=long ;;
1048  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049    ac_init_help=recursive ;;
1050  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051    ac_init_help=short ;;
1052
1053  -host | --host | --hos | --ho)
1054    ac_prev=host_alias ;;
1055  -host=* | --host=* | --hos=* | --ho=*)
1056    host_alias=$ac_optarg ;;
1057
1058  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1059    ac_prev=htmldir ;;
1060  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1061  | --ht=*)
1062    htmldir=$ac_optarg ;;
1063
1064  -includedir | --includedir | --includedi | --included | --include \
1065  | --includ | --inclu | --incl | --inc)
1066    ac_prev=includedir ;;
1067  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068  | --includ=* | --inclu=* | --incl=* | --inc=*)
1069    includedir=$ac_optarg ;;
1070
1071  -infodir | --infodir | --infodi | --infod | --info | --inf)
1072    ac_prev=infodir ;;
1073  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074    infodir=$ac_optarg ;;
1075
1076  -libdir | --libdir | --libdi | --libd)
1077    ac_prev=libdir ;;
1078  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1079    libdir=$ac_optarg ;;
1080
1081  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082  | --libexe | --libex | --libe)
1083    ac_prev=libexecdir ;;
1084  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085  | --libexe=* | --libex=* | --libe=*)
1086    libexecdir=$ac_optarg ;;
1087
1088  -localedir | --localedir | --localedi | --localed | --locale)
1089    ac_prev=localedir ;;
1090  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091    localedir=$ac_optarg ;;
1092
1093  -localstatedir | --localstatedir | --localstatedi | --localstated \
1094  | --localstate | --localstat | --localsta | --localst | --locals)
1095    ac_prev=localstatedir ;;
1096  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098    localstatedir=$ac_optarg ;;
1099
1100  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1101    ac_prev=mandir ;;
1102  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103    mandir=$ac_optarg ;;
1104
1105  -nfp | --nfp | --nf)
1106    # Obsolete; use --without-fp.
1107    with_fp=no ;;
1108
1109  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110  | --no-cr | --no-c | -n)
1111    no_create=yes ;;
1112
1113  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115    no_recursion=yes ;;
1116
1117  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119  | --oldin | --oldi | --old | --ol | --o)
1120    ac_prev=oldincludedir ;;
1121  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124    oldincludedir=$ac_optarg ;;
1125
1126  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1127    ac_prev=prefix ;;
1128  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129    prefix=$ac_optarg ;;
1130
1131  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1132  | --program-pre | --program-pr | --program-p)
1133    ac_prev=program_prefix ;;
1134  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1135  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136    program_prefix=$ac_optarg ;;
1137
1138  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1139  | --program-suf | --program-su | --program-s)
1140    ac_prev=program_suffix ;;
1141  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1142  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143    program_suffix=$ac_optarg ;;
1144
1145  -program-transform-name | --program-transform-name \
1146  | --program-transform-nam | --program-transform-na \
1147  | --program-transform-n | --program-transform- \
1148  | --program-transform | --program-transfor \
1149  | --program-transfo | --program-transf \
1150  | --program-trans | --program-tran \
1151  | --progr-tra | --program-tr | --program-t)
1152    ac_prev=program_transform_name ;;
1153  -program-transform-name=* | --program-transform-name=* \
1154  | --program-transform-nam=* | --program-transform-na=* \
1155  | --program-transform-n=* | --program-transform-=* \
1156  | --program-transform=* | --program-transfor=* \
1157  | --program-transfo=* | --program-transf=* \
1158  | --program-trans=* | --program-tran=* \
1159  | --progr-tra=* | --program-tr=* | --program-t=*)
1160    program_transform_name=$ac_optarg ;;
1161
1162  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1163    ac_prev=pdfdir ;;
1164  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165    pdfdir=$ac_optarg ;;
1166
1167  -psdir | --psdir | --psdi | --psd | --ps)
1168    ac_prev=psdir ;;
1169  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170    psdir=$ac_optarg ;;
1171
1172  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173  | -silent | --silent | --silen | --sile | --sil)
1174    silent=yes ;;
1175
1176  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1177    ac_prev=sbindir ;;
1178  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1179  | --sbi=* | --sb=*)
1180    sbindir=$ac_optarg ;;
1181
1182  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1183  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184  | --sharedst | --shareds | --shared | --share | --shar \
1185  | --sha | --sh)
1186    ac_prev=sharedstatedir ;;
1187  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1190  | --sha=* | --sh=*)
1191    sharedstatedir=$ac_optarg ;;
1192
1193  -site | --site | --sit)
1194    ac_prev=site ;;
1195  -site=* | --site=* | --sit=*)
1196    site=$ac_optarg ;;
1197
1198  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1199    ac_prev=srcdir ;;
1200  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201    srcdir=$ac_optarg ;;
1202
1203  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204  | --syscon | --sysco | --sysc | --sys | --sy)
1205    ac_prev=sysconfdir ;;
1206  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208    sysconfdir=$ac_optarg ;;
1209
1210  -target | --target | --targe | --targ | --tar | --ta | --t)
1211    ac_prev=target_alias ;;
1212  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213    target_alias=$ac_optarg ;;
1214
1215  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216    verbose=yes ;;
1217
1218  -version | --version | --versio | --versi | --vers | -V)
1219    ac_init_version=: ;;
1220
1221  -with-* | --with-*)
1222    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223    # Reject names that are not valid shell variable names.
1224    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1225      { echo "$as_me: error: invalid package name: $ac_package" >&2
1226   { (exit 1); exit 1; }; }
1227    ac_package=`echo $ac_package| sed 's/-/_/g'`
1228    eval with_$ac_package=\$ac_optarg ;;
1229
1230  -without-* | --without-*)
1231    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232    # Reject names that are not valid shell variable names.
1233    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1234      { echo "$as_me: error: invalid package name: $ac_package" >&2
1235   { (exit 1); exit 1; }; }
1236    ac_package=`echo $ac_package | sed 's/-/_/g'`
1237    eval with_$ac_package=no ;;
1238
1239  --x)
1240    # Obsolete; use --with-x.
1241    with_x=yes ;;
1242
1243  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244  | --x-incl | --x-inc | --x-in | --x-i)
1245    ac_prev=x_includes ;;
1246  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248    x_includes=$ac_optarg ;;
1249
1250  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252    ac_prev=x_libraries ;;
1253  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255    x_libraries=$ac_optarg ;;
1256
1257  -*) { echo "$as_me: error: unrecognized option: $ac_option
1258Try \`$0 --help' for more information." >&2
1259   { (exit 1); exit 1; }; }
1260    ;;
1261
1262  *=*)
1263    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264    # Reject names that are not valid shell variable names.
1265    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1266      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1267   { (exit 1); exit 1; }; }
1268    eval $ac_envvar=\$ac_optarg
1269    export $ac_envvar ;;
1270
1271  *)
1272    # FIXME: should be removed in autoconf 3.0.
1273    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1277    ;;
1278
1279  esac
1280done
1281
1282if test -n "$ac_prev"; then
1283  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284  { echo "$as_me: error: missing argument to $ac_option" >&2
1285   { (exit 1); exit 1; }; }
1286fi
1287
1288# Be sure to have absolute directory names.
1289for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290		datadir sysconfdir sharedstatedir localstatedir includedir \
1291		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292		libdir localedir mandir
1293do
1294  eval ac_val=\$$ac_var
1295  case $ac_val in
1296    [\\/$]* | ?:[\\/]* )  continue;;
1297    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298  esac
1299  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1300   { (exit 1); exit 1; }; }
1301done
1302
1303# There might be people who depend on the old broken behavior: `$host'
1304# used to hold the argument of --host etc.
1305# FIXME: To remove some day.
1306build=$build_alias
1307host=$host_alias
1308target=$target_alias
1309
1310# FIXME: To remove some day.
1311if test "x$host_alias" != x; then
1312  if test "x$build_alias" = x; then
1313    cross_compiling=maybe
1314    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1315    If a cross compiler is detected then cross compile mode will be used." >&2
1316  elif test "x$build_alias" != "x$host_alias"; then
1317    cross_compiling=yes
1318  fi
1319fi
1320
1321ac_tool_prefix=
1322test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323
1324test "$silent" = yes && exec 6>/dev/null
1325
1326
1327ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328ac_ls_di=`ls -di .` &&
1329ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330  { echo "$as_me: error: Working directory cannot be determined" >&2
1331   { (exit 1); exit 1; }; }
1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333  { echo "$as_me: error: pwd does not report name of working directory" >&2
1334   { (exit 1); exit 1; }; }
1335
1336
1337# Find the source files, if location was not specified.
1338if test -z "$srcdir"; then
1339  ac_srcdir_defaulted=yes
1340  # Try the directory containing this script, then the parent directory.
1341  ac_confdir=`$as_dirname -- "$0" ||
1342$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343	 X"$0" : 'X\(//\)[^/]' \| \
1344	 X"$0" : 'X\(//\)$' \| \
1345	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1346echo X"$0" |
1347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348	    s//\1/
1349	    q
1350	  }
1351	  /^X\(\/\/\)[^/].*/{
1352	    s//\1/
1353	    q
1354	  }
1355	  /^X\(\/\/\)$/{
1356	    s//\1/
1357	    q
1358	  }
1359	  /^X\(\/\).*/{
1360	    s//\1/
1361	    q
1362	  }
1363	  s/.*/./; q'`
1364  srcdir=$ac_confdir
1365  if test ! -r "$srcdir/$ac_unique_file"; then
1366    srcdir=..
1367  fi
1368else
1369  ac_srcdir_defaulted=no
1370fi
1371if test ! -r "$srcdir/$ac_unique_file"; then
1372  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1374   { (exit 1); exit 1; }; }
1375fi
1376ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377ac_abs_confdir=`(
1378	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1379   { (exit 1); exit 1; }; }
1380	pwd)`
1381# When building in place, set srcdir=.
1382if test "$ac_abs_confdir" = "$ac_pwd"; then
1383  srcdir=.
1384fi
1385# Remove unnecessary trailing slashes from srcdir.
1386# Double slashes in file names in object file debugging info
1387# mess up M-x gdb in Emacs.
1388case $srcdir in
1389*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390esac
1391for ac_var in $ac_precious_vars; do
1392  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393  eval ac_env_${ac_var}_value=\$${ac_var}
1394  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396done
1397
1398#
1399# Report the --help message.
1400#
1401if test "$ac_init_help" = "long"; then
1402  # Omit some internal or obsolete options to make the list less imposing.
1403  # This message is too long to be a string in the A/UX 3.1 sh.
1404  cat <<_ACEOF
1405\`configure' configures libXres 1.0.3 to adapt to many kinds of systems.
1406
1407Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410VAR=VALUE.  See below for descriptions of some of the useful variables.
1411
1412Defaults for the options are specified in brackets.
1413
1414Configuration:
1415  -h, --help              display this help and exit
1416      --help=short        display options specific to this package
1417      --help=recursive    display the short help of all the included packages
1418  -V, --version           display version information and exit
1419  -q, --quiet, --silent   do not print \`checking...' messages
1420      --cache-file=FILE   cache test results in FILE [disabled]
1421  -C, --config-cache      alias for \`--cache-file=config.cache'
1422  -n, --no-create         do not create output files
1423      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1424
1425Installation directories:
1426  --prefix=PREFIX         install architecture-independent files in PREFIX
1427			  [$ac_default_prefix]
1428  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1429			  [PREFIX]
1430
1431By default, \`make install' will install all the files in
1432\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1433an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434for instance \`--prefix=\$HOME'.
1435
1436For better control, use the options below.
1437
1438Fine tuning of the installation directories:
1439  --bindir=DIR           user executables [EPREFIX/bin]
1440  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1441  --libexecdir=DIR       program executables [EPREFIX/libexec]
1442  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1443  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1444  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1445  --libdir=DIR           object code libraries [EPREFIX/lib]
1446  --includedir=DIR       C header files [PREFIX/include]
1447  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1448  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1449  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1450  --infodir=DIR          info documentation [DATAROOTDIR/info]
1451  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1452  --mandir=DIR           man documentation [DATAROOTDIR/man]
1453  --docdir=DIR           documentation root [DATAROOTDIR/doc/libXres]
1454  --htmldir=DIR          html documentation [DOCDIR]
1455  --dvidir=DIR           dvi documentation [DOCDIR]
1456  --pdfdir=DIR           pdf documentation [DOCDIR]
1457  --psdir=DIR            ps documentation [DOCDIR]
1458_ACEOF
1459
1460  cat <<\_ACEOF
1461
1462Program names:
1463  --program-prefix=PREFIX            prepend PREFIX to installed program names
1464  --program-suffix=SUFFIX            append SUFFIX to installed program names
1465  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1466
1467System types:
1468  --build=BUILD     configure for building on BUILD [guessed]
1469  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1470_ACEOF
1471fi
1472
1473if test -n "$ac_init_help"; then
1474  case $ac_init_help in
1475     short | recursive ) echo "Configuration of libXres 1.0.3:";;
1476   esac
1477  cat <<\_ACEOF
1478
1479Optional Features:
1480  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1481  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1482  --disable-pretty-cmds          show all commands executed
1483  --enable-pretty-cmds           do not output the entire command lines
1484  --disable-dependency-tracking  speeds up one-time build
1485  --enable-dependency-tracking   do not reject slow dependency extractors
1486  --enable-shared[=PKGS]  build shared libraries [default=yes]
1487  --enable-static[=PKGS]  build static libraries [default=yes]
1488  --enable-fast-install[=PKGS]
1489                          optimize for fast installation [default=yes]
1490  --disable-libtool-lock  avoid locking (might break parallel builds)
1491  --enable-malloc0returnsnull
1492                          malloc(0) returns NULL (default: auto)
1493
1494Optional Packages:
1495  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1496  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1497  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1498  --with-pic              try to use only PIC/non-PIC objects [default=use
1499                          both]
1500  --with-tags[=TAGS]      include additional configurations [automatic]
1501  --with-release-version=STRING
1502                          Use release version string in package name
1503
1504Some influential environment variables:
1505  CC          C compiler command
1506  CFLAGS      C compiler flags
1507  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1508              nonstandard directory <lib dir>
1509  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1510              you have headers in a nonstandard directory <include dir>
1511  CPP         C preprocessor
1512  CXX         C++ compiler command
1513  CXXFLAGS    C++ compiler flags
1514  CXXCPP      C++ preprocessor
1515  F77         Fortran 77 compiler command
1516  FFLAGS      Fortran 77 compiler flags
1517  PKG_CONFIG  path to pkg-config utility
1518  XRES_CFLAGS C compiler flags for XRES, overriding pkg-config
1519  XRES_LIBS   linker flags for XRES, overriding pkg-config
1520  RESOURCEEXT_CFLAGS
1521              C compiler flags for RESOURCEEXT, overriding pkg-config
1522  RESOURCEEXT_LIBS
1523              linker flags for RESOURCEEXT, overriding pkg-config
1524
1525Use these variables to override the choices made by `configure' or to help
1526it to find libraries and programs with nonstandard names/locations.
1527
1528Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1529_ACEOF
1530ac_status=$?
1531fi
1532
1533if test "$ac_init_help" = "recursive"; then
1534  # If there are subdirs, report their specific --help.
1535  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536    test -d "$ac_dir" || continue
1537    ac_builddir=.
1538
1539case "$ac_dir" in
1540.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541*)
1542  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1543  # A ".." for each directory in $ac_dir_suffix.
1544  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1545  case $ac_top_builddir_sub in
1546  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1548  esac ;;
1549esac
1550ac_abs_top_builddir=$ac_pwd
1551ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552# for backward compatibility:
1553ac_top_builddir=$ac_top_build_prefix
1554
1555case $srcdir in
1556  .)  # We are building in place.
1557    ac_srcdir=.
1558    ac_top_srcdir=$ac_top_builddir_sub
1559    ac_abs_top_srcdir=$ac_pwd ;;
1560  [\\/]* | ?:[\\/]* )  # Absolute name.
1561    ac_srcdir=$srcdir$ac_dir_suffix;
1562    ac_top_srcdir=$srcdir
1563    ac_abs_top_srcdir=$srcdir ;;
1564  *) # Relative name.
1565    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566    ac_top_srcdir=$ac_top_build_prefix$srcdir
1567    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568esac
1569ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570
1571    cd "$ac_dir" || { ac_status=$?; continue; }
1572    # Check for guested configure.
1573    if test -f "$ac_srcdir/configure.gnu"; then
1574      echo &&
1575      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576    elif test -f "$ac_srcdir/configure"; then
1577      echo &&
1578      $SHELL "$ac_srcdir/configure" --help=recursive
1579    else
1580      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581    fi || ac_status=$?
1582    cd "$ac_pwd" || { ac_status=$?; break; }
1583  done
1584fi
1585
1586test -n "$ac_init_help" && exit $ac_status
1587if $ac_init_version; then
1588  cat <<\_ACEOF
1589libXres configure 1.0.3
1590generated by GNU Autoconf 2.60
1591
1592Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15932002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1594This configure script is free software; the Free Software Foundation
1595gives unlimited permission to copy, distribute and modify it.
1596_ACEOF
1597  exit
1598fi
1599cat >config.log <<_ACEOF
1600This file contains any messages produced by compilers while
1601running configure, to aid debugging if configure makes a mistake.
1602
1603It was created by libXres $as_me 1.0.3, which was
1604generated by GNU Autoconf 2.60.  Invocation command line was
1605
1606  $ $0 $@
1607
1608_ACEOF
1609exec 5>>config.log
1610{
1611cat <<_ASUNAME
1612## --------- ##
1613## Platform. ##
1614## --------- ##
1615
1616hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1617uname -m = `(uname -m) 2>/dev/null || echo unknown`
1618uname -r = `(uname -r) 2>/dev/null || echo unknown`
1619uname -s = `(uname -s) 2>/dev/null || echo unknown`
1620uname -v = `(uname -v) 2>/dev/null || echo unknown`
1621
1622/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1623/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1624
1625/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1626/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1627/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1628/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1629/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1630/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1631/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1632
1633_ASUNAME
1634
1635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636for as_dir in $PATH
1637do
1638  IFS=$as_save_IFS
1639  test -z "$as_dir" && as_dir=.
1640  echo "PATH: $as_dir"
1641done
1642IFS=$as_save_IFS
1643
1644} >&5
1645
1646cat >&5 <<_ACEOF
1647
1648
1649## ----------- ##
1650## Core tests. ##
1651## ----------- ##
1652
1653_ACEOF
1654
1655
1656# Keep a trace of the command line.
1657# Strip out --no-create and --no-recursion so they do not pile up.
1658# Strip out --silent because we don't want to record it for future runs.
1659# Also quote any args containing shell meta-characters.
1660# Make two passes to allow for proper duplicate-argument suppression.
1661ac_configure_args=
1662ac_configure_args0=
1663ac_configure_args1=
1664ac_must_keep_next=false
1665for ac_pass in 1 2
1666do
1667  for ac_arg
1668  do
1669    case $ac_arg in
1670    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1671    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1672    | -silent | --silent | --silen | --sile | --sil)
1673      continue ;;
1674    *\'*)
1675      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1676    esac
1677    case $ac_pass in
1678    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1679    2)
1680      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1681      if test $ac_must_keep_next = true; then
1682	ac_must_keep_next=false # Got value, back to normal.
1683      else
1684	case $ac_arg in
1685	  *=* | --config-cache | -C | -disable-* | --disable-* \
1686	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1687	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1688	  | -with-* | --with-* | -without-* | --without-* | --x)
1689	    case "$ac_configure_args0 " in
1690	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1691	    esac
1692	    ;;
1693	  -* ) ac_must_keep_next=true ;;
1694	esac
1695      fi
1696      ac_configure_args="$ac_configure_args '$ac_arg'"
1697      ;;
1698    esac
1699  done
1700done
1701$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1702$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1703
1704# When interrupted or exit'd, cleanup temporary files, and complete
1705# config.log.  We remove comments because anyway the quotes in there
1706# would cause problems or look ugly.
1707# WARNING: Use '\'' to represent an apostrophe within the trap.
1708# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1709trap 'exit_status=$?
1710  # Save into config.log some information that might help in debugging.
1711  {
1712    echo
1713
1714    cat <<\_ASBOX
1715## ---------------- ##
1716## Cache variables. ##
1717## ---------------- ##
1718_ASBOX
1719    echo
1720    # The following way of writing the cache mishandles newlines in values,
1721(
1722  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1723    eval ac_val=\$$ac_var
1724    case $ac_val in #(
1725    *${as_nl}*)
1726      case $ac_var in #(
1727      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1728echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1729      esac
1730      case $ac_var in #(
1731      _ | IFS | as_nl) ;; #(
1732      *) $as_unset $ac_var ;;
1733      esac ;;
1734    esac
1735  done
1736  (set) 2>&1 |
1737    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1738    *${as_nl}ac_space=\ *)
1739      sed -n \
1740	"s/'\''/'\''\\\\'\'''\''/g;
1741	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1742      ;; #(
1743    *)
1744      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1745      ;;
1746    esac |
1747    sort
1748)
1749    echo
1750
1751    cat <<\_ASBOX
1752## ----------------- ##
1753## Output variables. ##
1754## ----------------- ##
1755_ASBOX
1756    echo
1757    for ac_var in $ac_subst_vars
1758    do
1759      eval ac_val=\$$ac_var
1760      case $ac_val in
1761      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762      esac
1763      echo "$ac_var='\''$ac_val'\''"
1764    done | sort
1765    echo
1766
1767    if test -n "$ac_subst_files"; then
1768      cat <<\_ASBOX
1769## ------------------- ##
1770## File substitutions. ##
1771## ------------------- ##
1772_ASBOX
1773      echo
1774      for ac_var in $ac_subst_files
1775      do
1776	eval ac_val=\$$ac_var
1777	case $ac_val in
1778	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779	esac
1780	echo "$ac_var='\''$ac_val'\''"
1781      done | sort
1782      echo
1783    fi
1784
1785    if test -s confdefs.h; then
1786      cat <<\_ASBOX
1787## ----------- ##
1788## confdefs.h. ##
1789## ----------- ##
1790_ASBOX
1791      echo
1792      cat confdefs.h
1793      echo
1794    fi
1795    test "$ac_signal" != 0 &&
1796      echo "$as_me: caught signal $ac_signal"
1797    echo "$as_me: exit $exit_status"
1798  } >&5
1799  rm -f core *.core core.conftest.* &&
1800    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1801    exit $exit_status
1802' 0
1803for ac_signal in 1 2 13 15; do
1804  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1805done
1806ac_signal=0
1807
1808# confdefs.h avoids OS command line length limits that DEFS can exceed.
1809rm -f -r conftest* confdefs.h
1810
1811# Predefined preprocessor variables.
1812
1813cat >>confdefs.h <<_ACEOF
1814#define PACKAGE_NAME "$PACKAGE_NAME"
1815_ACEOF
1816
1817
1818cat >>confdefs.h <<_ACEOF
1819#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1820_ACEOF
1821
1822
1823cat >>confdefs.h <<_ACEOF
1824#define PACKAGE_VERSION "$PACKAGE_VERSION"
1825_ACEOF
1826
1827
1828cat >>confdefs.h <<_ACEOF
1829#define PACKAGE_STRING "$PACKAGE_STRING"
1830_ACEOF
1831
1832
1833cat >>confdefs.h <<_ACEOF
1834#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1835_ACEOF
1836
1837
1838# Let the site file select an alternate cache file if it wants to.
1839# Prefer explicitly selected file to automatically selected ones.
1840if test -n "$CONFIG_SITE"; then
1841  set x "$CONFIG_SITE"
1842elif test "x$prefix" != xNONE; then
1843  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1844else
1845  set x "$ac_default_prefix/share/config.site" \
1846	"$ac_default_prefix/etc/config.site"
1847fi
1848shift
1849for ac_site_file
1850do
1851  if test -r "$ac_site_file"; then
1852    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1853echo "$as_me: loading site script $ac_site_file" >&6;}
1854    sed 's/^/| /' "$ac_site_file" >&5
1855    . "$ac_site_file"
1856  fi
1857done
1858
1859if test -r "$cache_file"; then
1860  # Some versions of bash will fail to source /dev/null (special
1861  # files actually), so we avoid doing that.
1862  if test -f "$cache_file"; then
1863    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1864echo "$as_me: loading cache $cache_file" >&6;}
1865    case $cache_file in
1866      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1867      *)                      . "./$cache_file";;
1868    esac
1869  fi
1870else
1871  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1872echo "$as_me: creating cache $cache_file" >&6;}
1873  >$cache_file
1874fi
1875
1876# Check that the precious variables saved in the cache have kept the same
1877# value.
1878ac_cache_corrupted=false
1879for ac_var in $ac_precious_vars; do
1880  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1881  eval ac_new_set=\$ac_env_${ac_var}_set
1882  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1883  eval ac_new_val=\$ac_env_${ac_var}_value
1884  case $ac_old_set,$ac_new_set in
1885    set,)
1886      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1887echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1888      ac_cache_corrupted=: ;;
1889    ,set)
1890      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1891echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1892      ac_cache_corrupted=: ;;
1893    ,);;
1894    *)
1895      if test "x$ac_old_val" != "x$ac_new_val"; then
1896	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1897echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1898	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1899echo "$as_me:   former value:  $ac_old_val" >&2;}
1900	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1901echo "$as_me:   current value: $ac_new_val" >&2;}
1902	ac_cache_corrupted=:
1903      fi;;
1904  esac
1905  # Pass precious variables to config.status.
1906  if test "$ac_new_set" = set; then
1907    case $ac_new_val in
1908    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1909    *) ac_arg=$ac_var=$ac_new_val ;;
1910    esac
1911    case " $ac_configure_args " in
1912      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1913      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1914    esac
1915  fi
1916done
1917if $ac_cache_corrupted; then
1918  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1919echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1920  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1921echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1922   { (exit 1); exit 1; }; }
1923fi
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949ac_ext=c
1950ac_cpp='$CPP $CPPFLAGS'
1951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954
1955
1956ac_aux_dir=
1957for ac_dir in . "$srcdir"/.; do
1958  if test -f "$ac_dir/install-sh"; then
1959    ac_aux_dir=$ac_dir
1960    ac_install_sh="$ac_aux_dir/install-sh -c"
1961    break
1962  elif test -f "$ac_dir/install.sh"; then
1963    ac_aux_dir=$ac_dir
1964    ac_install_sh="$ac_aux_dir/install.sh -c"
1965    break
1966  elif test -f "$ac_dir/shtool"; then
1967    ac_aux_dir=$ac_dir
1968    ac_install_sh="$ac_aux_dir/shtool install -c"
1969    break
1970  fi
1971done
1972if test -z "$ac_aux_dir"; then
1973  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1974echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1975   { (exit 1); exit 1; }; }
1976fi
1977
1978# These three variables are undocumented and unsupported,
1979# and are intended to be withdrawn in a future Autoconf release.
1980# They can cause serious problems if a builder's source tree is in a directory
1981# whose full name contains unusual characters.
1982ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1983ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1984ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1985
1986
1987am__api_version="1.9"
1988# Find a good install program.  We prefer a C program (faster),
1989# so one script is as good as another.  But avoid the broken or
1990# incompatible versions:
1991# SysV /etc/install, /usr/sbin/install
1992# SunOS /usr/etc/install
1993# IRIX /sbin/install
1994# AIX /bin/install
1995# AmigaOS /C/install, which installs bootblocks on floppy discs
1996# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1997# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1998# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1999# OS/2's system install, which has a completely different semantic
2000# ./install, which can be erroneously created by make from ./install.sh.
2001{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2002echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2003if test -z "$INSTALL"; then
2004if test "${ac_cv_path_install+set}" = set; then
2005  echo $ECHO_N "(cached) $ECHO_C" >&6
2006else
2007  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008for as_dir in $PATH
2009do
2010  IFS=$as_save_IFS
2011  test -z "$as_dir" && as_dir=.
2012  # Account for people who put trailing slashes in PATH elements.
2013case $as_dir/ in
2014  ./ | .// | /cC/* | \
2015  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2016  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2017  /usr/ucb/* ) ;;
2018  *)
2019    # OSF1 and SCO ODT 3.0 have their own names for install.
2020    # Don't use installbsd from OSF since it installs stuff as root
2021    # by default.
2022    for ac_prog in ginstall scoinst install; do
2023      for ac_exec_ext in '' $ac_executable_extensions; do
2024	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2025	  if test $ac_prog = install &&
2026	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2027	    # AIX install.  It has an incompatible calling convention.
2028	    :
2029	  elif test $ac_prog = install &&
2030	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2031	    # program-specific install script used by HP pwplus--don't use.
2032	    :
2033	  else
2034	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2035	    break 3
2036	  fi
2037	fi
2038      done
2039    done
2040    ;;
2041esac
2042done
2043IFS=$as_save_IFS
2044
2045
2046fi
2047  if test "${ac_cv_path_install+set}" = set; then
2048    INSTALL=$ac_cv_path_install
2049  else
2050    # As a last resort, use the slow shell script.  Don't cache a
2051    # value for INSTALL within a source directory, because that will
2052    # break other packages using the cache if that directory is
2053    # removed, or if the value is a relative name.
2054    INSTALL=$ac_install_sh
2055  fi
2056fi
2057{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2058echo "${ECHO_T}$INSTALL" >&6; }
2059
2060# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2061# It thinks the first close brace ends the variable substitution.
2062test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2063
2064test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2065
2066test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2067
2068{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2069echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2070# Just in case
2071sleep 1
2072echo timestamp > conftest.file
2073# Do `set' in a subshell so we don't clobber the current shell's
2074# arguments.  Must try -L first in case configure is actually a
2075# symlink; some systems play weird games with the mod time of symlinks
2076# (eg FreeBSD returns the mod time of the symlink's containing
2077# directory).
2078if (
2079   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2080   if test "$*" = "X"; then
2081      # -L didn't work.
2082      set X `ls -t $srcdir/configure conftest.file`
2083   fi
2084   rm -f conftest.file
2085   if test "$*" != "X $srcdir/configure conftest.file" \
2086      && test "$*" != "X conftest.file $srcdir/configure"; then
2087
2088      # If neither matched, then we have a broken ls.  This can happen
2089      # if, for instance, CONFIG_SHELL is bash and it inherits a
2090      # broken ls alias from the environment.  This has actually
2091      # happened.  Such a system could not be considered "sane".
2092      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2093alias in your environment" >&5
2094echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2095alias in your environment" >&2;}
2096   { (exit 1); exit 1; }; }
2097   fi
2098
2099   test "$2" = conftest.file
2100   )
2101then
2102   # Ok.
2103   :
2104else
2105   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2106Check your system clock" >&5
2107echo "$as_me: error: newly created file is older than distributed files!
2108Check your system clock" >&2;}
2109   { (exit 1); exit 1; }; }
2110fi
2111{ echo "$as_me:$LINENO: result: yes" >&5
2112echo "${ECHO_T}yes" >&6; }
2113test "$program_prefix" != NONE &&
2114  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2115# Use a double $ so make ignores it.
2116test "$program_suffix" != NONE &&
2117  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2118# Double any \ or $.  echo might interpret backslashes.
2119# By default was `s,x,x', remove it if useless.
2120cat <<\_ACEOF >conftest.sed
2121s/[\\$]/&&/g;s/;s,x,x,$//
2122_ACEOF
2123program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2124rm -f conftest.sed
2125
2126# expand $ac_aux_dir to an absolute path
2127am_aux_dir=`cd $ac_aux_dir && pwd`
2128
2129test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2130# Use eval to expand $SHELL
2131if eval "$MISSING --run true"; then
2132  am_missing_run="$MISSING --run "
2133else
2134  am_missing_run=
2135  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2136echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2137fi
2138
2139if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2140  # We used to keeping the `.' as first argument, in order to
2141  # allow $(mkdir_p) to be used without argument.  As in
2142  #   $(mkdir_p) $(somedir)
2143  # where $(somedir) is conditionally defined.  However this is wrong
2144  # for two reasons:
2145  #  1. if the package is installed by a user who cannot write `.'
2146  #     make install will fail,
2147  #  2. the above comment should most certainly read
2148  #     $(mkdir_p) $(DESTDIR)$(somedir)
2149  #     so it does not work when $(somedir) is undefined and
2150  #     $(DESTDIR) is not.
2151  #  To support the latter case, we have to write
2152  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2153  #  so the `.' trick is pointless.
2154  mkdir_p='mkdir -p --'
2155else
2156  # On NextStep and OpenStep, the `mkdir' command does not
2157  # recognize any option.  It will interpret all options as
2158  # directories to create, and then abort because `.' already
2159  # exists.
2160  for d in ./-p ./--version;
2161  do
2162    test -d $d && rmdir $d
2163  done
2164  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2165  if test -f "$ac_aux_dir/mkinstalldirs"; then
2166    mkdir_p='$(mkinstalldirs)'
2167  else
2168    mkdir_p='$(install_sh) -d'
2169  fi
2170fi
2171
2172for ac_prog in gawk mawk nawk awk
2173do
2174  # Extract the first word of "$ac_prog", so it can be a program name with args.
2175set dummy $ac_prog; ac_word=$2
2176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2178if test "${ac_cv_prog_AWK+set}" = set; then
2179  echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
2181  if test -n "$AWK"; then
2182  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2183else
2184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185for as_dir in $PATH
2186do
2187  IFS=$as_save_IFS
2188  test -z "$as_dir" && as_dir=.
2189  for ac_exec_ext in '' $ac_executable_extensions; do
2190  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2191    ac_cv_prog_AWK="$ac_prog"
2192    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193    break 2
2194  fi
2195done
2196done
2197IFS=$as_save_IFS
2198
2199fi
2200fi
2201AWK=$ac_cv_prog_AWK
2202if test -n "$AWK"; then
2203  { echo "$as_me:$LINENO: result: $AWK" >&5
2204echo "${ECHO_T}$AWK" >&6; }
2205else
2206  { echo "$as_me:$LINENO: result: no" >&5
2207echo "${ECHO_T}no" >&6; }
2208fi
2209
2210
2211  test -n "$AWK" && break
2212done
2213
2214{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2215echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2216set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2217if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2218  echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220  cat >conftest.make <<\_ACEOF
2221SHELL = /bin/sh
2222all:
2223	@echo '@@@%%%=$(MAKE)=@@@%%%'
2224_ACEOF
2225# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2226case `${MAKE-make} -f conftest.make 2>/dev/null` in
2227  *@@@%%%=?*=@@@%%%*)
2228    eval ac_cv_prog_make_${ac_make}_set=yes;;
2229  *)
2230    eval ac_cv_prog_make_${ac_make}_set=no;;
2231esac
2232rm -f conftest.make
2233fi
2234if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2235  { echo "$as_me:$LINENO: result: yes" >&5
2236echo "${ECHO_T}yes" >&6; }
2237  SET_MAKE=
2238else
2239  { echo "$as_me:$LINENO: result: no" >&5
2240echo "${ECHO_T}no" >&6; }
2241  SET_MAKE="MAKE=${MAKE-make}"
2242fi
2243
2244rm -rf .tst 2>/dev/null
2245mkdir .tst 2>/dev/null
2246if test -d .tst; then
2247  am__leading_dot=.
2248else
2249  am__leading_dot=_
2250fi
2251rmdir .tst 2>/dev/null
2252
2253# Check whether --enable-pretty-cmds was given.
2254if test "${enable_pretty_cmds+set}" = set; then
2255  enableval=$enable_pretty_cmds;
2256fi
2257
2258AMSHOWCMDSAT=''
2259AMDEPSHOWCMDSAT=''
2260AMPRETTYECHO=true
2261AMCMDECHO=echo
2262if test "x$enable_pretty_cmds" = xyes;
2263then
2264  AMSHOWCMDSAT='@'
2265  test "x$enable_dependency_tracking" = xno && AMDEPSHOWCMDSAT='@'
2266  AMPRETTYECHO=echo
2267  AMCMDECHO=true
2268  LT_QUIET='--quiet'
2269fi
2270
2271
2272
2273
2274
2275
2276# test to see if srcdir already configured
2277if test "`cd $srcdir && pwd`" != "`pwd`" &&
2278   test -f $srcdir/config.status; then
2279  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2280echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2281   { (exit 1); exit 1; }; }
2282fi
2283
2284# test whether we have cygpath
2285if test -z "$CYGPATH_W"; then
2286  if (cygpath --version) >/dev/null 2>/dev/null; then
2287    CYGPATH_W='cygpath -w'
2288  else
2289    CYGPATH_W=echo
2290  fi
2291fi
2292
2293
2294# Define the identity of the package.
2295 PACKAGE='libXres'
2296 VERSION='1.0.3'
2297
2298
2299cat >>confdefs.h <<_ACEOF
2300#define PACKAGE "$PACKAGE"
2301_ACEOF
2302
2303
2304cat >>confdefs.h <<_ACEOF
2305#define VERSION "$VERSION"
2306_ACEOF
2307
2308# Some tools Automake needs.
2309
2310ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2311
2312
2313AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2314
2315
2316AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2317
2318
2319AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2320
2321
2322MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2323
2324install_sh=${install_sh-"$am_aux_dir/install-sh"}
2325
2326# Installed binaries are usually stripped using `strip' when the user
2327# run `make install-strip'.  However `strip' might not be the right
2328# tool to use in cross-compilation environments, therefore Automake
2329# will honor the `STRIP' environment variable to overrule this program.
2330if test "$cross_compiling" != no; then
2331  if test -n "$ac_tool_prefix"; then
2332  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2333set dummy ${ac_tool_prefix}strip; ac_word=$2
2334{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336if test "${ac_cv_prog_STRIP+set}" = set; then
2337  echo $ECHO_N "(cached) $ECHO_C" >&6
2338else
2339  if test -n "$STRIP"; then
2340  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2341else
2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343for as_dir in $PATH
2344do
2345  IFS=$as_save_IFS
2346  test -z "$as_dir" && as_dir=.
2347  for ac_exec_ext in '' $ac_executable_extensions; do
2348  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2349    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2350    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351    break 2
2352  fi
2353done
2354done
2355IFS=$as_save_IFS
2356
2357fi
2358fi
2359STRIP=$ac_cv_prog_STRIP
2360if test -n "$STRIP"; then
2361  { echo "$as_me:$LINENO: result: $STRIP" >&5
2362echo "${ECHO_T}$STRIP" >&6; }
2363else
2364  { echo "$as_me:$LINENO: result: no" >&5
2365echo "${ECHO_T}no" >&6; }
2366fi
2367
2368
2369fi
2370if test -z "$ac_cv_prog_STRIP"; then
2371  ac_ct_STRIP=$STRIP
2372  # Extract the first word of "strip", so it can be a program name with args.
2373set dummy strip; ac_word=$2
2374{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2376if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2377  echo $ECHO_N "(cached) $ECHO_C" >&6
2378else
2379  if test -n "$ac_ct_STRIP"; then
2380  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2381else
2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385  IFS=$as_save_IFS
2386  test -z "$as_dir" && as_dir=.
2387  for ac_exec_ext in '' $ac_executable_extensions; do
2388  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2389    ac_cv_prog_ac_ct_STRIP="strip"
2390    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391    break 2
2392  fi
2393done
2394done
2395IFS=$as_save_IFS
2396
2397fi
2398fi
2399ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2400if test -n "$ac_ct_STRIP"; then
2401  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2402echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2403else
2404  { echo "$as_me:$LINENO: result: no" >&5
2405echo "${ECHO_T}no" >&6; }
2406fi
2407
2408  if test "x$ac_ct_STRIP" = x; then
2409    STRIP=":"
2410  else
2411    case $cross_compiling:$ac_tool_warned in
2412yes:)
2413{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2414whose name does not start with the host triplet.  If you think this
2415configuration is useful to you, please write to autoconf@gnu.org." >&5
2416echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2417whose name does not start with the host triplet.  If you think this
2418configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2419ac_tool_warned=yes ;;
2420esac
2421    STRIP=$ac_ct_STRIP
2422  fi
2423else
2424  STRIP="$ac_cv_prog_STRIP"
2425fi
2426
2427fi
2428INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2429
2430# We need awk for the "check" target.  The system "awk" is bad on
2431# some platforms.
2432# Always define AMTAR for backward compatibility.
2433
2434AMTAR=${AMTAR-"${am_missing_run}tar"}
2435
2436am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2437
2438
2439
2440
2441
2442
2443ac_config_headers="$ac_config_headers config.h"
2444
2445
2446# Check for progs
2447ac_ext=c
2448ac_cpp='$CPP $CPPFLAGS'
2449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451ac_compiler_gnu=$ac_cv_c_compiler_gnu
2452if test -n "$ac_tool_prefix"; then
2453  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2454set dummy ${ac_tool_prefix}gcc; ac_word=$2
2455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457if test "${ac_cv_prog_CC+set}" = set; then
2458  echo $ECHO_N "(cached) $ECHO_C" >&6
2459else
2460  if test -n "$CC"; then
2461  ac_cv_prog_CC="$CC" # Let the user override the test.
2462else
2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466  IFS=$as_save_IFS
2467  test -z "$as_dir" && as_dir=.
2468  for ac_exec_ext in '' $ac_executable_extensions; do
2469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2470    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2471    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472    break 2
2473  fi
2474done
2475done
2476IFS=$as_save_IFS
2477
2478fi
2479fi
2480CC=$ac_cv_prog_CC
2481if test -n "$CC"; then
2482  { echo "$as_me:$LINENO: result: $CC" >&5
2483echo "${ECHO_T}$CC" >&6; }
2484else
2485  { echo "$as_me:$LINENO: result: no" >&5
2486echo "${ECHO_T}no" >&6; }
2487fi
2488
2489
2490fi
2491if test -z "$ac_cv_prog_CC"; then
2492  ac_ct_CC=$CC
2493  # Extract the first word of "gcc", so it can be a program name with args.
2494set dummy gcc; ac_word=$2
2495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2497if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2498  echo $ECHO_N "(cached) $ECHO_C" >&6
2499else
2500  if test -n "$ac_ct_CC"; then
2501  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2502else
2503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504for as_dir in $PATH
2505do
2506  IFS=$as_save_IFS
2507  test -z "$as_dir" && as_dir=.
2508  for ac_exec_ext in '' $ac_executable_extensions; do
2509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2510    ac_cv_prog_ac_ct_CC="gcc"
2511    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512    break 2
2513  fi
2514done
2515done
2516IFS=$as_save_IFS
2517
2518fi
2519fi
2520ac_ct_CC=$ac_cv_prog_ac_ct_CC
2521if test -n "$ac_ct_CC"; then
2522  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2523echo "${ECHO_T}$ac_ct_CC" >&6; }
2524else
2525  { echo "$as_me:$LINENO: result: no" >&5
2526echo "${ECHO_T}no" >&6; }
2527fi
2528
2529  if test "x$ac_ct_CC" = x; then
2530    CC=""
2531  else
2532    case $cross_compiling:$ac_tool_warned in
2533yes:)
2534{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2535whose name does not start with the host triplet.  If you think this
2536configuration is useful to you, please write to autoconf@gnu.org." >&5
2537echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2538whose name does not start with the host triplet.  If you think this
2539configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2540ac_tool_warned=yes ;;
2541esac
2542    CC=$ac_ct_CC
2543  fi
2544else
2545  CC="$ac_cv_prog_CC"
2546fi
2547
2548if test -z "$CC"; then
2549          if test -n "$ac_tool_prefix"; then
2550    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2551set dummy ${ac_tool_prefix}cc; ac_word=$2
2552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2554if test "${ac_cv_prog_CC+set}" = set; then
2555  echo $ECHO_N "(cached) $ECHO_C" >&6
2556else
2557  if test -n "$CC"; then
2558  ac_cv_prog_CC="$CC" # Let the user override the test.
2559else
2560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2561for as_dir in $PATH
2562do
2563  IFS=$as_save_IFS
2564  test -z "$as_dir" && as_dir=.
2565  for ac_exec_ext in '' $ac_executable_extensions; do
2566  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2567    ac_cv_prog_CC="${ac_tool_prefix}cc"
2568    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569    break 2
2570  fi
2571done
2572done
2573IFS=$as_save_IFS
2574
2575fi
2576fi
2577CC=$ac_cv_prog_CC
2578if test -n "$CC"; then
2579  { echo "$as_me:$LINENO: result: $CC" >&5
2580echo "${ECHO_T}$CC" >&6; }
2581else
2582  { echo "$as_me:$LINENO: result: no" >&5
2583echo "${ECHO_T}no" >&6; }
2584fi
2585
2586
2587  fi
2588fi
2589if test -z "$CC"; then
2590  # Extract the first word of "cc", so it can be a program name with args.
2591set dummy cc; ac_word=$2
2592{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2594if test "${ac_cv_prog_CC+set}" = set; then
2595  echo $ECHO_N "(cached) $ECHO_C" >&6
2596else
2597  if test -n "$CC"; then
2598  ac_cv_prog_CC="$CC" # Let the user override the test.
2599else
2600  ac_prog_rejected=no
2601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602for as_dir in $PATH
2603do
2604  IFS=$as_save_IFS
2605  test -z "$as_dir" && as_dir=.
2606  for ac_exec_ext in '' $ac_executable_extensions; do
2607  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2608    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2609       ac_prog_rejected=yes
2610       continue
2611     fi
2612    ac_cv_prog_CC="cc"
2613    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614    break 2
2615  fi
2616done
2617done
2618IFS=$as_save_IFS
2619
2620if test $ac_prog_rejected = yes; then
2621  # We found a bogon in the path, so make sure we never use it.
2622  set dummy $ac_cv_prog_CC
2623  shift
2624  if test $# != 0; then
2625    # We chose a different compiler from the bogus one.
2626    # However, it has the same basename, so the bogon will be chosen
2627    # first if we set CC to just the basename; use the full file name.
2628    shift
2629    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2630  fi
2631fi
2632fi
2633fi
2634CC=$ac_cv_prog_CC
2635if test -n "$CC"; then
2636  { echo "$as_me:$LINENO: result: $CC" >&5
2637echo "${ECHO_T}$CC" >&6; }
2638else
2639  { echo "$as_me:$LINENO: result: no" >&5
2640echo "${ECHO_T}no" >&6; }
2641fi
2642
2643
2644fi
2645if test -z "$CC"; then
2646  if test -n "$ac_tool_prefix"; then
2647  for ac_prog in cl.exe
2648  do
2649    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2650set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653if test "${ac_cv_prog_CC+set}" = set; then
2654  echo $ECHO_N "(cached) $ECHO_C" >&6
2655else
2656  if test -n "$CC"; then
2657  ac_cv_prog_CC="$CC" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662  IFS=$as_save_IFS
2663  test -z "$as_dir" && as_dir=.
2664  for ac_exec_ext in '' $ac_executable_extensions; do
2665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2666    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668    break 2
2669  fi
2670done
2671done
2672IFS=$as_save_IFS
2673
2674fi
2675fi
2676CC=$ac_cv_prog_CC
2677if test -n "$CC"; then
2678  { echo "$as_me:$LINENO: result: $CC" >&5
2679echo "${ECHO_T}$CC" >&6; }
2680else
2681  { echo "$as_me:$LINENO: result: no" >&5
2682echo "${ECHO_T}no" >&6; }
2683fi
2684
2685
2686    test -n "$CC" && break
2687  done
2688fi
2689if test -z "$CC"; then
2690  ac_ct_CC=$CC
2691  for ac_prog in cl.exe
2692do
2693  # Extract the first word of "$ac_prog", so it can be a program name with args.
2694set dummy $ac_prog; ac_word=$2
2695{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2697if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2698  echo $ECHO_N "(cached) $ECHO_C" >&6
2699else
2700  if test -n "$ac_ct_CC"; then
2701  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2702else
2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704for as_dir in $PATH
2705do
2706  IFS=$as_save_IFS
2707  test -z "$as_dir" && as_dir=.
2708  for ac_exec_ext in '' $ac_executable_extensions; do
2709  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2710    ac_cv_prog_ac_ct_CC="$ac_prog"
2711    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712    break 2
2713  fi
2714done
2715done
2716IFS=$as_save_IFS
2717
2718fi
2719fi
2720ac_ct_CC=$ac_cv_prog_ac_ct_CC
2721if test -n "$ac_ct_CC"; then
2722  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2723echo "${ECHO_T}$ac_ct_CC" >&6; }
2724else
2725  { echo "$as_me:$LINENO: result: no" >&5
2726echo "${ECHO_T}no" >&6; }
2727fi
2728
2729
2730  test -n "$ac_ct_CC" && break
2731done
2732
2733  if test "x$ac_ct_CC" = x; then
2734    CC=""
2735  else
2736    case $cross_compiling:$ac_tool_warned in
2737yes:)
2738{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2739whose name does not start with the host triplet.  If you think this
2740configuration is useful to you, please write to autoconf@gnu.org." >&5
2741echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2742whose name does not start with the host triplet.  If you think this
2743configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2744ac_tool_warned=yes ;;
2745esac
2746    CC=$ac_ct_CC
2747  fi
2748fi
2749
2750fi
2751
2752
2753test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2754See \`config.log' for more details." >&5
2755echo "$as_me: error: no acceptable C compiler found in \$PATH
2756See \`config.log' for more details." >&2;}
2757   { (exit 1); exit 1; }; }
2758
2759# Provide some information about the compiler.
2760echo "$as_me:$LINENO: checking for C compiler version" >&5
2761ac_compiler=`set X $ac_compile; echo $2`
2762{ (ac_try="$ac_compiler --version >&5"
2763case "(($ac_try" in
2764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765  *) ac_try_echo=$ac_try;;
2766esac
2767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768  (eval "$ac_compiler --version >&5") 2>&5
2769  ac_status=$?
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); }
2772{ (ac_try="$ac_compiler -v >&5"
2773case "(($ac_try" in
2774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775  *) ac_try_echo=$ac_try;;
2776esac
2777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778  (eval "$ac_compiler -v >&5") 2>&5
2779  ac_status=$?
2780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781  (exit $ac_status); }
2782{ (ac_try="$ac_compiler -V >&5"
2783case "(($ac_try" in
2784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785  *) ac_try_echo=$ac_try;;
2786esac
2787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788  (eval "$ac_compiler -V >&5") 2>&5
2789  ac_status=$?
2790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791  (exit $ac_status); }
2792
2793cat >conftest.$ac_ext <<_ACEOF
2794/* confdefs.h.  */
2795_ACEOF
2796cat confdefs.h >>conftest.$ac_ext
2797cat >>conftest.$ac_ext <<_ACEOF
2798/* end confdefs.h.  */
2799
2800int
2801main ()
2802{
2803
2804  ;
2805  return 0;
2806}
2807_ACEOF
2808ac_clean_files_save=$ac_clean_files
2809ac_clean_files="$ac_clean_files a.out a.exe b.out"
2810# Try to create an executable without -o first, disregard a.out.
2811# It will help us diagnose broken compilers, and finding out an intuition
2812# of exeext.
2813{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2814echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2815ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2816#
2817# List of possible output files, starting from the most likely.
2818# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2819# only as a last resort.  b.out is created by i960 compilers.
2820ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2821#
2822# The IRIX 6 linker writes into existing files which may not be
2823# executable, retaining their permissions.  Remove them first so a
2824# subsequent execution test works.
2825ac_rmfiles=
2826for ac_file in $ac_files
2827do
2828  case $ac_file in
2829    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2830    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2831  esac
2832done
2833rm -f $ac_rmfiles
2834
2835if { (ac_try="$ac_link_default"
2836case "(($ac_try" in
2837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838  *) ac_try_echo=$ac_try;;
2839esac
2840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841  (eval "$ac_link_default") 2>&5
2842  ac_status=$?
2843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844  (exit $ac_status); }; then
2845  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2846# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2847# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2848# so that the user can short-circuit this test for compilers unknown to
2849# Autoconf.
2850for ac_file in $ac_files
2851do
2852  test -f "$ac_file" || continue
2853  case $ac_file in
2854    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2855	;;
2856    [ab].out )
2857	# We found the default executable, but exeext='' is most
2858	# certainly right.
2859	break;;
2860    *.* )
2861        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2862	then :; else
2863	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2864	fi
2865	# We set ac_cv_exeext here because the later test for it is not
2866	# safe: cross compilers may not add the suffix if given an `-o'
2867	# argument, so we may need to know it at that point already.
2868	# Even if this section looks crufty: it has the advantage of
2869	# actually working.
2870	break;;
2871    * )
2872	break;;
2873  esac
2874done
2875test "$ac_cv_exeext" = no && ac_cv_exeext=
2876
2877else
2878  echo "$as_me: failed program was:" >&5
2879sed 's/^/| /' conftest.$ac_ext >&5
2880
2881{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2882See \`config.log' for more details." >&5
2883echo "$as_me: error: C compiler cannot create executables
2884See \`config.log' for more details." >&2;}
2885   { (exit 77); exit 77; }; }
2886fi
2887
2888ac_exeext=$ac_cv_exeext
2889{ echo "$as_me:$LINENO: result: $ac_file" >&5
2890echo "${ECHO_T}$ac_file" >&6; }
2891
2892# Check that the compiler produces executables we can run.  If not, either
2893# the compiler is broken, or we cross compile.
2894{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2895echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2896# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2897# If not cross compiling, check that we can run a simple program.
2898if test "$cross_compiling" != yes; then
2899  if { ac_try='./$ac_file'
2900  { (case "(($ac_try" in
2901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902  *) ac_try_echo=$ac_try;;
2903esac
2904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905  (eval "$ac_try") 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }; }; then
2909    cross_compiling=no
2910  else
2911    if test "$cross_compiling" = maybe; then
2912	cross_compiling=yes
2913    else
2914	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2915If you meant to cross compile, use \`--host'.
2916See \`config.log' for more details." >&5
2917echo "$as_me: error: cannot run C compiled programs.
2918If you meant to cross compile, use \`--host'.
2919See \`config.log' for more details." >&2;}
2920   { (exit 1); exit 1; }; }
2921    fi
2922  fi
2923fi
2924{ echo "$as_me:$LINENO: result: yes" >&5
2925echo "${ECHO_T}yes" >&6; }
2926
2927rm -f a.out a.exe conftest$ac_cv_exeext b.out
2928ac_clean_files=$ac_clean_files_save
2929# Check that the compiler produces executables we can run.  If not, either
2930# the compiler is broken, or we cross compile.
2931{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2932echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2933{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2934echo "${ECHO_T}$cross_compiling" >&6; }
2935
2936{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2937echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2938if { (ac_try="$ac_link"
2939case "(($ac_try" in
2940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941  *) ac_try_echo=$ac_try;;
2942esac
2943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944  (eval "$ac_link") 2>&5
2945  ac_status=$?
2946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947  (exit $ac_status); }; then
2948  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2949# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2950# work properly (i.e., refer to `conftest.exe'), while it won't with
2951# `rm'.
2952for ac_file in conftest.exe conftest conftest.*; do
2953  test -f "$ac_file" || continue
2954  case $ac_file in
2955    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2956    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2957	  break;;
2958    * ) break;;
2959  esac
2960done
2961else
2962  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2963See \`config.log' for more details." >&5
2964echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2965See \`config.log' for more details." >&2;}
2966   { (exit 1); exit 1; }; }
2967fi
2968
2969rm -f conftest$ac_cv_exeext
2970{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2971echo "${ECHO_T}$ac_cv_exeext" >&6; }
2972
2973rm -f conftest.$ac_ext
2974EXEEXT=$ac_cv_exeext
2975ac_exeext=$EXEEXT
2976{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2977echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2978if test "${ac_cv_objext+set}" = set; then
2979  echo $ECHO_N "(cached) $ECHO_C" >&6
2980else
2981  cat >conftest.$ac_ext <<_ACEOF
2982/* confdefs.h.  */
2983_ACEOF
2984cat confdefs.h >>conftest.$ac_ext
2985cat >>conftest.$ac_ext <<_ACEOF
2986/* end confdefs.h.  */
2987
2988int
2989main ()
2990{
2991
2992  ;
2993  return 0;
2994}
2995_ACEOF
2996rm -f conftest.o conftest.obj
2997if { (ac_try="$ac_compile"
2998case "(($ac_try" in
2999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000  *) ac_try_echo=$ac_try;;
3001esac
3002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003  (eval "$ac_compile") 2>&5
3004  ac_status=$?
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); }; then
3007  for ac_file in conftest.o conftest.obj conftest.*; do
3008  test -f "$ac_file" || continue;
3009  case $ac_file in
3010    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3011    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3012       break;;
3013  esac
3014done
3015else
3016  echo "$as_me: failed program was:" >&5
3017sed 's/^/| /' conftest.$ac_ext >&5
3018
3019{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3020See \`config.log' for more details." >&5
3021echo "$as_me: error: cannot compute suffix of object files: cannot compile
3022See \`config.log' for more details." >&2;}
3023   { (exit 1); exit 1; }; }
3024fi
3025
3026rm -f conftest.$ac_cv_objext conftest.$ac_ext
3027fi
3028{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3029echo "${ECHO_T}$ac_cv_objext" >&6; }
3030OBJEXT=$ac_cv_objext
3031ac_objext=$OBJEXT
3032{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3033echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3034if test "${ac_cv_c_compiler_gnu+set}" = set; then
3035  echo $ECHO_N "(cached) $ECHO_C" >&6
3036else
3037  cat >conftest.$ac_ext <<_ACEOF
3038/* confdefs.h.  */
3039_ACEOF
3040cat confdefs.h >>conftest.$ac_ext
3041cat >>conftest.$ac_ext <<_ACEOF
3042/* end confdefs.h.  */
3043
3044int
3045main ()
3046{
3047#ifndef __GNUC__
3048       choke me
3049#endif
3050
3051  ;
3052  return 0;
3053}
3054_ACEOF
3055rm -f conftest.$ac_objext
3056if { (ac_try="$ac_compile"
3057case "(($ac_try" in
3058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059  *) ac_try_echo=$ac_try;;
3060esac
3061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062  (eval "$ac_compile") 2>conftest.er1
3063  ac_status=$?
3064  grep -v '^ *+' conftest.er1 >conftest.err
3065  rm -f conftest.er1
3066  cat conftest.err >&5
3067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068  (exit $ac_status); } &&
3069	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3070  { (case "(($ac_try" in
3071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072  *) ac_try_echo=$ac_try;;
3073esac
3074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075  (eval "$ac_try") 2>&5
3076  ac_status=$?
3077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078  (exit $ac_status); }; } &&
3079	 { ac_try='test -s conftest.$ac_objext'
3080  { (case "(($ac_try" in
3081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082  *) ac_try_echo=$ac_try;;
3083esac
3084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085  (eval "$ac_try") 2>&5
3086  ac_status=$?
3087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088  (exit $ac_status); }; }; then
3089  ac_compiler_gnu=yes
3090else
3091  echo "$as_me: failed program was:" >&5
3092sed 's/^/| /' conftest.$ac_ext >&5
3093
3094	ac_compiler_gnu=no
3095fi
3096
3097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3098ac_cv_c_compiler_gnu=$ac_compiler_gnu
3099
3100fi
3101{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3102echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3103GCC=`test $ac_compiler_gnu = yes && echo yes`
3104ac_test_CFLAGS=${CFLAGS+set}
3105ac_save_CFLAGS=$CFLAGS
3106{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3107echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3108if test "${ac_cv_prog_cc_g+set}" = set; then
3109  echo $ECHO_N "(cached) $ECHO_C" >&6
3110else
3111  ac_save_c_werror_flag=$ac_c_werror_flag
3112   ac_c_werror_flag=yes
3113   ac_cv_prog_cc_g=no
3114   CFLAGS="-g"
3115   cat >conftest.$ac_ext <<_ACEOF
3116/* confdefs.h.  */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h.  */
3121
3122int
3123main ()
3124{
3125
3126  ;
3127  return 0;
3128}
3129_ACEOF
3130rm -f conftest.$ac_objext
3131if { (ac_try="$ac_compile"
3132case "(($ac_try" in
3133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134  *) ac_try_echo=$ac_try;;
3135esac
3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137  (eval "$ac_compile") 2>conftest.er1
3138  ac_status=$?
3139  grep -v '^ *+' conftest.er1 >conftest.err
3140  rm -f conftest.er1
3141  cat conftest.err >&5
3142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143  (exit $ac_status); } &&
3144	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3145  { (case "(($ac_try" in
3146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147  *) ac_try_echo=$ac_try;;
3148esac
3149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150  (eval "$ac_try") 2>&5
3151  ac_status=$?
3152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153  (exit $ac_status); }; } &&
3154	 { ac_try='test -s conftest.$ac_objext'
3155  { (case "(($ac_try" in
3156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157  *) ac_try_echo=$ac_try;;
3158esac
3159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160  (eval "$ac_try") 2>&5
3161  ac_status=$?
3162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163  (exit $ac_status); }; }; then
3164  ac_cv_prog_cc_g=yes
3165else
3166  echo "$as_me: failed program was:" >&5
3167sed 's/^/| /' conftest.$ac_ext >&5
3168
3169	CFLAGS=""
3170      cat >conftest.$ac_ext <<_ACEOF
3171/* confdefs.h.  */
3172_ACEOF
3173cat confdefs.h >>conftest.$ac_ext
3174cat >>conftest.$ac_ext <<_ACEOF
3175/* end confdefs.h.  */
3176
3177int
3178main ()
3179{
3180
3181  ;
3182  return 0;
3183}
3184_ACEOF
3185rm -f conftest.$ac_objext
3186if { (ac_try="$ac_compile"
3187case "(($ac_try" in
3188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189  *) ac_try_echo=$ac_try;;
3190esac
3191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192  (eval "$ac_compile") 2>conftest.er1
3193  ac_status=$?
3194  grep -v '^ *+' conftest.er1 >conftest.err
3195  rm -f conftest.er1
3196  cat conftest.err >&5
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); } &&
3199	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3200  { (case "(($ac_try" in
3201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202  *) ac_try_echo=$ac_try;;
3203esac
3204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205  (eval "$ac_try") 2>&5
3206  ac_status=$?
3207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208  (exit $ac_status); }; } &&
3209	 { ac_try='test -s conftest.$ac_objext'
3210  { (case "(($ac_try" in
3211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212  *) ac_try_echo=$ac_try;;
3213esac
3214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215  (eval "$ac_try") 2>&5
3216  ac_status=$?
3217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218  (exit $ac_status); }; }; then
3219  :
3220else
3221  echo "$as_me: failed program was:" >&5
3222sed 's/^/| /' conftest.$ac_ext >&5
3223
3224	ac_c_werror_flag=$ac_save_c_werror_flag
3225	 CFLAGS="-g"
3226	 cat >conftest.$ac_ext <<_ACEOF
3227/* confdefs.h.  */
3228_ACEOF
3229cat confdefs.h >>conftest.$ac_ext
3230cat >>conftest.$ac_ext <<_ACEOF
3231/* end confdefs.h.  */
3232
3233int
3234main ()
3235{
3236
3237  ;
3238  return 0;
3239}
3240_ACEOF
3241rm -f conftest.$ac_objext
3242if { (ac_try="$ac_compile"
3243case "(($ac_try" in
3244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245  *) ac_try_echo=$ac_try;;
3246esac
3247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248  (eval "$ac_compile") 2>conftest.er1
3249  ac_status=$?
3250  grep -v '^ *+' conftest.er1 >conftest.err
3251  rm -f conftest.er1
3252  cat conftest.err >&5
3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254  (exit $ac_status); } &&
3255	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3256  { (case "(($ac_try" in
3257  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258  *) ac_try_echo=$ac_try;;
3259esac
3260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3261  (eval "$ac_try") 2>&5
3262  ac_status=$?
3263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264  (exit $ac_status); }; } &&
3265	 { ac_try='test -s conftest.$ac_objext'
3266  { (case "(($ac_try" in
3267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268  *) ac_try_echo=$ac_try;;
3269esac
3270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271  (eval "$ac_try") 2>&5
3272  ac_status=$?
3273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274  (exit $ac_status); }; }; then
3275  ac_cv_prog_cc_g=yes
3276else
3277  echo "$as_me: failed program was:" >&5
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
3280
3281fi
3282
3283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284fi
3285
3286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287fi
3288
3289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290   ac_c_werror_flag=$ac_save_c_werror_flag
3291fi
3292{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3293echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3294if test "$ac_test_CFLAGS" = set; then
3295  CFLAGS=$ac_save_CFLAGS
3296elif test $ac_cv_prog_cc_g = yes; then
3297  if test "$GCC" = yes; then
3298    CFLAGS="-g -O2"
3299  else
3300    CFLAGS="-g"
3301  fi
3302else
3303  if test "$GCC" = yes; then
3304    CFLAGS="-O2"
3305  else
3306    CFLAGS=
3307  fi
3308fi
3309{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3310echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3311if test "${ac_cv_prog_cc_c89+set}" = set; then
3312  echo $ECHO_N "(cached) $ECHO_C" >&6
3313else
3314  ac_cv_prog_cc_c89=no
3315ac_save_CC=$CC
3316cat >conftest.$ac_ext <<_ACEOF
3317/* confdefs.h.  */
3318_ACEOF
3319cat confdefs.h >>conftest.$ac_ext
3320cat >>conftest.$ac_ext <<_ACEOF
3321/* end confdefs.h.  */
3322#include <stdarg.h>
3323#include <stdio.h>
3324#include <sys/types.h>
3325#include <sys/stat.h>
3326/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3327struct buf { int x; };
3328FILE * (*rcsopen) (struct buf *, struct stat *, int);
3329static char *e (p, i)
3330     char **p;
3331     int i;
3332{
3333  return p[i];
3334}
3335static char *f (char * (*g) (char **, int), char **p, ...)
3336{
3337  char *s;
3338  va_list v;
3339  va_start (v,p);
3340  s = g (p, va_arg (v,int));
3341  va_end (v);
3342  return s;
3343}
3344
3345/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3346   function prototypes and stuff, but not '\xHH' hex character constants.
3347   These don't provoke an error unfortunately, instead are silently treated
3348   as 'x'.  The following induces an error, until -std is added to get
3349   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3350   array size at least.  It's necessary to write '\x00'==0 to get something
3351   that's true only with -std.  */
3352int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3353
3354/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3355   inside strings and character constants.  */
3356#define FOO(x) 'x'
3357int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3358
3359int test (int i, double x);
3360struct s1 {int (*f) (int a);};
3361struct s2 {int (*f) (double a);};
3362int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3363int argc;
3364char **argv;
3365int
3366main ()
3367{
3368return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3369  ;
3370  return 0;
3371}
3372_ACEOF
3373for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3374	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3375do
3376  CC="$ac_save_CC $ac_arg"
3377  rm -f conftest.$ac_objext
3378if { (ac_try="$ac_compile"
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_compile") 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); } &&
3391	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3392  { (case "(($ac_try" in
3393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394  *) ac_try_echo=$ac_try;;
3395esac
3396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397  (eval "$ac_try") 2>&5
3398  ac_status=$?
3399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400  (exit $ac_status); }; } &&
3401	 { ac_try='test -s conftest.$ac_objext'
3402  { (case "(($ac_try" in
3403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404  *) ac_try_echo=$ac_try;;
3405esac
3406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407  (eval "$ac_try") 2>&5
3408  ac_status=$?
3409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410  (exit $ac_status); }; }; then
3411  ac_cv_prog_cc_c89=$ac_arg
3412else
3413  echo "$as_me: failed program was:" >&5
3414sed 's/^/| /' conftest.$ac_ext >&5
3415
3416
3417fi
3418
3419rm -f core conftest.err conftest.$ac_objext
3420  test "x$ac_cv_prog_cc_c89" != "xno" && break
3421done
3422rm -f conftest.$ac_ext
3423CC=$ac_save_CC
3424
3425fi
3426# AC_CACHE_VAL
3427case "x$ac_cv_prog_cc_c89" in
3428  x)
3429    { echo "$as_me:$LINENO: result: none needed" >&5
3430echo "${ECHO_T}none needed" >&6; } ;;
3431  xno)
3432    { echo "$as_me:$LINENO: result: unsupported" >&5
3433echo "${ECHO_T}unsupported" >&6; } ;;
3434  *)
3435    CC="$CC $ac_cv_prog_cc_c89"
3436    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3437echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3438esac
3439
3440
3441ac_ext=c
3442ac_cpp='$CPP $CPPFLAGS'
3443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445ac_compiler_gnu=$ac_cv_c_compiler_gnu
3446DEPDIR="${am__leading_dot}deps"
3447
3448ac_config_commands="$ac_config_commands depfiles"
3449
3450
3451am_make=${MAKE-make}
3452cat > confinc << 'END'
3453am__doit:
3454	@echo done
3455.PHONY: am__doit
3456END
3457# If we don't find an include directive, just comment out the code.
3458{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3459echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3460am__include="#"
3461am__quote=
3462_am_result=none
3463# First try GNU make style include.
3464echo "include confinc" > confmf
3465# We grep out `Entering directory' and `Leaving directory'
3466# messages which can occur if `w' ends up in MAKEFLAGS.
3467# In particular we don't look at `^make:' because GNU make might
3468# be invoked under some other name (usually "gmake"), in which
3469# case it prints its new name instead of `make'.
3470if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3471   am__include=include
3472   am__quote=
3473   _am_result=GNU
3474fi
3475# Now try BSD make style include.
3476if test "$am__include" = "#"; then
3477   echo '.include "confinc"' > confmf
3478   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3479      am__include=.include
3480      am__quote="\""
3481      _am_result=BSD
3482   fi
3483fi
3484
3485
3486{ echo "$as_me:$LINENO: result: $_am_result" >&5
3487echo "${ECHO_T}$_am_result" >&6; }
3488rm -f confinc confmf
3489
3490# Check whether --enable-dependency-tracking was given.
3491if test "${enable_dependency_tracking+set}" = set; then
3492  enableval=$enable_dependency_tracking;
3493fi
3494
3495if test "x$enable_dependency_tracking" != xno; then
3496  am_depcomp="$ac_aux_dir/depcomp"
3497  AMDEPBACKSLASH='\'
3498fi
3499
3500
3501if test "x$enable_dependency_tracking" != xno; then
3502  AMDEP_TRUE=
3503  AMDEP_FALSE='#'
3504else
3505  AMDEP_TRUE='#'
3506  AMDEP_FALSE=
3507fi
3508
3509
3510
3511
3512depcc="$CC"   am_compiler_list=
3513
3514{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3515echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3516if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3517  echo $ECHO_N "(cached) $ECHO_C" >&6
3518else
3519  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3520  # We make a subdir and do the tests there.  Otherwise we can end up
3521  # making bogus files that we don't know about and never remove.  For
3522  # instance it was reported that on HP-UX the gcc test will end up
3523  # making a dummy file named `D' -- because `-MD' means `put the output
3524  # in D'.
3525  mkdir conftest.dir
3526  # Copy depcomp to subdir because otherwise we won't find it if we're
3527  # using a relative directory.
3528  cp "$am_depcomp" conftest.dir
3529  cd conftest.dir
3530  # We will build objects and dependencies in a subdirectory because
3531  # it helps to detect inapplicable dependency modes.  For instance
3532  # both Tru64's cc and ICC support -MD to output dependencies as a
3533  # side effect of compilation, but ICC will put the dependencies in
3534  # the current directory while Tru64 will put them in the object
3535  # directory.
3536  mkdir sub
3537
3538  am_cv_CC_dependencies_compiler_type=none
3539  if test "$am_compiler_list" = ""; then
3540     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3541  fi
3542  for depmode in $am_compiler_list; do
3543    # Setup a source with many dependencies, because some compilers
3544    # like to wrap large dependency lists on column 80 (with \), and
3545    # we should not choose a depcomp mode which is confused by this.
3546    #
3547    # We need to recreate these files for each test, as the compiler may
3548    # overwrite some of them when testing with obscure command lines.
3549    # This happens at least with the AIX C compiler.
3550    : > sub/conftest.c
3551    for i in 1 2 3 4 5 6; do
3552      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3553      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3554      # Solaris 8's {/usr,}/bin/sh.
3555      touch sub/conftst$i.h
3556    done
3557    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3558
3559    case $depmode in
3560    nosideeffect)
3561      # after this tag, mechanisms are not by side-effect, so they'll
3562      # only be used when explicitly requested
3563      if test "x$enable_dependency_tracking" = xyes; then
3564	continue
3565      else
3566	break
3567      fi
3568      ;;
3569    none) break ;;
3570    esac
3571    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3572    # mode.  It turns out that the SunPro C++ compiler does not properly
3573    # handle `-M -o', and we need to detect this.
3574    if depmode=$depmode \
3575       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3576       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3577       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3578         >/dev/null 2>conftest.err &&
3579       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3580       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3581       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3582      # icc doesn't choke on unknown options, it will just issue warnings
3583      # or remarks (even with -Werror).  So we grep stderr for any message
3584      # that says an option was ignored or not supported.
3585      # When given -MP, icc 7.0 and 7.1 complain thusly:
3586      #   icc: Command line warning: ignoring option '-M'; no argument required
3587      # The diagnosis changed in icc 8.0:
3588      #   icc: Command line remark: option '-MP' not supported
3589      if (grep 'ignoring option' conftest.err ||
3590          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3591        am_cv_CC_dependencies_compiler_type=$depmode
3592        break
3593      fi
3594    fi
3595  done
3596
3597  cd ..
3598  rm -rf conftest.dir
3599else
3600  am_cv_CC_dependencies_compiler_type=none
3601fi
3602
3603fi
3604{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3605echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3606CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3607
3608
3609
3610if
3611  test "x$enable_dependency_tracking" != xno \
3612  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3613  am__fastdepCC_TRUE=
3614  am__fastdepCC_FALSE='#'
3615else
3616  am__fastdepCC_TRUE='#'
3617  am__fastdepCC_FALSE=
3618fi
3619
3620
3621# Check whether --enable-shared was given.
3622if test "${enable_shared+set}" = set; then
3623  enableval=$enable_shared; p=${PACKAGE-default}
3624    case $enableval in
3625    yes) enable_shared=yes ;;
3626    no) enable_shared=no ;;
3627    *)
3628      enable_shared=no
3629      # Look at the argument we got.  We use all the common list separators.
3630      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3631      for pkg in $enableval; do
3632	IFS="$lt_save_ifs"
3633	if test "X$pkg" = "X$p"; then
3634	  enable_shared=yes
3635	fi
3636      done
3637      IFS="$lt_save_ifs"
3638      ;;
3639    esac
3640else
3641  enable_shared=yes
3642fi
3643
3644
3645# Check whether --enable-static was given.
3646if test "${enable_static+set}" = set; then
3647  enableval=$enable_static; p=${PACKAGE-default}
3648    case $enableval in
3649    yes) enable_static=yes ;;
3650    no) enable_static=no ;;
3651    *)
3652     enable_static=no
3653      # Look at the argument we got.  We use all the common list separators.
3654      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3655      for pkg in $enableval; do
3656	IFS="$lt_save_ifs"
3657	if test "X$pkg" = "X$p"; then
3658	  enable_static=yes
3659	fi
3660      done
3661      IFS="$lt_save_ifs"
3662      ;;
3663    esac
3664else
3665  enable_static=yes
3666fi
3667
3668
3669# Check whether --enable-fast-install was given.
3670if test "${enable_fast_install+set}" = set; then
3671  enableval=$enable_fast_install; p=${PACKAGE-default}
3672    case $enableval in
3673    yes) enable_fast_install=yes ;;
3674    no) enable_fast_install=no ;;
3675    *)
3676      enable_fast_install=no
3677      # Look at the argument we got.  We use all the common list separators.
3678      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3679      for pkg in $enableval; do
3680	IFS="$lt_save_ifs"
3681	if test "X$pkg" = "X$p"; then
3682	  enable_fast_install=yes
3683	fi
3684      done
3685      IFS="$lt_save_ifs"
3686      ;;
3687    esac
3688else
3689  enable_fast_install=yes
3690fi
3691
3692
3693# Make sure we can run config.sub.
3694$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3695  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3696echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3697   { (exit 1); exit 1; }; }
3698
3699{ echo "$as_me:$LINENO: checking build system type" >&5
3700echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3701if test "${ac_cv_build+set}" = set; then
3702  echo $ECHO_N "(cached) $ECHO_C" >&6
3703else
3704  ac_build_alias=$build_alias
3705test "x$ac_build_alias" = x &&
3706  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3707test "x$ac_build_alias" = x &&
3708  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3709echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3710   { (exit 1); exit 1; }; }
3711ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3712  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3713echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3714   { (exit 1); exit 1; }; }
3715
3716fi
3717{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3718echo "${ECHO_T}$ac_cv_build" >&6; }
3719case $ac_cv_build in
3720*-*-*) ;;
3721*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3722echo "$as_me: error: invalid value of canonical build" >&2;}
3723   { (exit 1); exit 1; }; };;
3724esac
3725build=$ac_cv_build
3726ac_save_IFS=$IFS; IFS='-'
3727set x $ac_cv_build
3728shift
3729build_cpu=$1
3730build_vendor=$2
3731shift; shift
3732# Remember, the first character of IFS is used to create $*,
3733# except with old shells:
3734build_os=$*
3735IFS=$ac_save_IFS
3736case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3737
3738
3739{ echo "$as_me:$LINENO: checking host system type" >&5
3740echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3741if test "${ac_cv_host+set}" = set; then
3742  echo $ECHO_N "(cached) $ECHO_C" >&6
3743else
3744  if test "x$host_alias" = x; then
3745  ac_cv_host=$ac_cv_build
3746else
3747  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3748    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3749echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3750   { (exit 1); exit 1; }; }
3751fi
3752
3753fi
3754{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3755echo "${ECHO_T}$ac_cv_host" >&6; }
3756case $ac_cv_host in
3757*-*-*) ;;
3758*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3759echo "$as_me: error: invalid value of canonical host" >&2;}
3760   { (exit 1); exit 1; }; };;
3761esac
3762host=$ac_cv_host
3763ac_save_IFS=$IFS; IFS='-'
3764set x $ac_cv_host
3765shift
3766host_cpu=$1
3767host_vendor=$2
3768shift; shift
3769# Remember, the first character of IFS is used to create $*,
3770# except with old shells:
3771host_os=$*
3772IFS=$ac_save_IFS
3773case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3774
3775
3776{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3777echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3778if test "${lt_cv_path_SED+set}" = set; then
3779  echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781  # Loop through the user's path and test for sed and gsed.
3782# Then use that list of sed's as ones to test for truncation.
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 lt_ac_prog in sed gsed; do
3789    for ac_exec_ext in '' $ac_executable_extensions; do
3790      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3791        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3792      fi
3793    done
3794  done
3795done
3796lt_ac_max=0
3797lt_ac_count=0
3798# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3799# along with /bin/sed that truncates output.
3800for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3801  test ! -f $lt_ac_sed && continue
3802  cat /dev/null > conftest.in
3803  lt_ac_count=0
3804  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3805  # Check for GNU sed and select it if it is found.
3806  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3807    lt_cv_path_SED=$lt_ac_sed
3808    break
3809  fi
3810  while true; do
3811    cat conftest.in conftest.in >conftest.tmp
3812    mv conftest.tmp conftest.in
3813    cp conftest.in conftest.nl
3814    echo >>conftest.nl
3815    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3816    cmp -s conftest.out conftest.nl || break
3817    # 10000 chars as input seems more than enough
3818    test $lt_ac_count -gt 10 && break
3819    lt_ac_count=`expr $lt_ac_count + 1`
3820    if test $lt_ac_count -gt $lt_ac_max; then
3821      lt_ac_max=$lt_ac_count
3822      lt_cv_path_SED=$lt_ac_sed
3823    fi
3824  done
3825done
3826
3827fi
3828
3829SED=$lt_cv_path_SED
3830{ echo "$as_me:$LINENO: result: $SED" >&5
3831echo "${ECHO_T}$SED" >&6; }
3832
3833{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3834echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3835if test "${ac_cv_path_GREP+set}" = set; then
3836  echo $ECHO_N "(cached) $ECHO_C" >&6
3837else
3838  # Extract the first word of "grep ggrep" to use in msg output
3839if test -z "$GREP"; then
3840set dummy grep ggrep; ac_prog_name=$2
3841if test "${ac_cv_path_GREP+set}" = set; then
3842  echo $ECHO_N "(cached) $ECHO_C" >&6
3843else
3844  ac_path_GREP_found=false
3845# Loop through the user's path and test for each of PROGNAME-LIST
3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3848do
3849  IFS=$as_save_IFS
3850  test -z "$as_dir" && as_dir=.
3851  for ac_prog in grep ggrep; do
3852  for ac_exec_ext in '' $ac_executable_extensions; do
3853    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3854    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3855    # Check for GNU ac_path_GREP and select it if it is found.
3856  # Check for GNU $ac_path_GREP
3857case `"$ac_path_GREP" --version 2>&1` in
3858*GNU*)
3859  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3860*)
3861  ac_count=0
3862  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3863  while :
3864  do
3865    cat "conftest.in" "conftest.in" >"conftest.tmp"
3866    mv "conftest.tmp" "conftest.in"
3867    cp "conftest.in" "conftest.nl"
3868    echo 'GREP' >> "conftest.nl"
3869    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3870    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3871    ac_count=`expr $ac_count + 1`
3872    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3873      # Best one so far, save it but keep looking for a better one
3874      ac_cv_path_GREP="$ac_path_GREP"
3875      ac_path_GREP_max=$ac_count
3876    fi
3877    # 10*(2^10) chars as input seems more than enough
3878    test $ac_count -gt 10 && break
3879  done
3880  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3881esac
3882
3883
3884    $ac_path_GREP_found && break 3
3885  done
3886done
3887
3888done
3889IFS=$as_save_IFS
3890
3891
3892fi
3893
3894GREP="$ac_cv_path_GREP"
3895if test -z "$GREP"; then
3896  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3897echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3898   { (exit 1); exit 1; }; }
3899fi
3900
3901else
3902  ac_cv_path_GREP=$GREP
3903fi
3904
3905
3906fi
3907{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3908echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3909 GREP="$ac_cv_path_GREP"
3910
3911
3912{ echo "$as_me:$LINENO: checking for egrep" >&5
3913echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3914if test "${ac_cv_path_EGREP+set}" = set; then
3915  echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3918   then ac_cv_path_EGREP="$GREP -E"
3919   else
3920     # Extract the first word of "egrep" to use in msg output
3921if test -z "$EGREP"; then
3922set dummy egrep; ac_prog_name=$2
3923if test "${ac_cv_path_EGREP+set}" = set; then
3924  echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926  ac_path_EGREP_found=false
3927# Loop through the user's path and test for each of PROGNAME-LIST
3928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3930do
3931  IFS=$as_save_IFS
3932  test -z "$as_dir" && as_dir=.
3933  for ac_prog in egrep; do
3934  for ac_exec_ext in '' $ac_executable_extensions; do
3935    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3936    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3937    # Check for GNU ac_path_EGREP and select it if it is found.
3938  # Check for GNU $ac_path_EGREP
3939case `"$ac_path_EGREP" --version 2>&1` in
3940*GNU*)
3941  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3942*)
3943  ac_count=0
3944  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3945  while :
3946  do
3947    cat "conftest.in" "conftest.in" >"conftest.tmp"
3948    mv "conftest.tmp" "conftest.in"
3949    cp "conftest.in" "conftest.nl"
3950    echo 'EGREP' >> "conftest.nl"
3951    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3952    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3953    ac_count=`expr $ac_count + 1`
3954    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3955      # Best one so far, save it but keep looking for a better one
3956      ac_cv_path_EGREP="$ac_path_EGREP"
3957      ac_path_EGREP_max=$ac_count
3958    fi
3959    # 10*(2^10) chars as input seems more than enough
3960    test $ac_count -gt 10 && break
3961  done
3962  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3963esac
3964
3965
3966    $ac_path_EGREP_found && break 3
3967  done
3968done
3969
3970done
3971IFS=$as_save_IFS
3972
3973
3974fi
3975
3976EGREP="$ac_cv_path_EGREP"
3977if test -z "$EGREP"; then
3978  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3979echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3980   { (exit 1); exit 1; }; }
3981fi
3982
3983else
3984  ac_cv_path_EGREP=$EGREP
3985fi
3986
3987
3988   fi
3989fi
3990{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3991echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3992 EGREP="$ac_cv_path_EGREP"
3993
3994
3995
3996# Check whether --with-gnu-ld was given.
3997if test "${with_gnu_ld+set}" = set; then
3998  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3999else
4000  with_gnu_ld=no
4001fi
4002
4003ac_prog=ld
4004if test "$GCC" = yes; then
4005  # Check if gcc -print-prog-name=ld gives a path.
4006  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4007echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4008  case $host in
4009  *-*-mingw*)
4010    # gcc leaves a trailing carriage return which upsets mingw
4011    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4012  *)
4013    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4014  esac
4015  case $ac_prog in
4016    # Accept absolute paths.
4017    [\\/]* | ?:[\\/]*)
4018      re_direlt='/[^/][^/]*/\.\./'
4019      # Canonicalize the pathname of ld
4020      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4021      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4022	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4023      done
4024      test -z "$LD" && LD="$ac_prog"
4025      ;;
4026  "")
4027    # If it fails, then pretend we aren't using GCC.
4028    ac_prog=ld
4029    ;;
4030  *)
4031    # If it is relative, then search for the first ld in PATH.
4032    with_gnu_ld=unknown
4033    ;;
4034  esac
4035elif test "$with_gnu_ld" = yes; then
4036  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4037echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4038else
4039  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4040echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4041fi
4042if test "${lt_cv_path_LD+set}" = set; then
4043  echo $ECHO_N "(cached) $ECHO_C" >&6
4044else
4045  if test -z "$LD"; then
4046  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4047  for ac_dir in $PATH; do
4048    IFS="$lt_save_ifs"
4049    test -z "$ac_dir" && ac_dir=.
4050    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4051      lt_cv_path_LD="$ac_dir/$ac_prog"
4052      # Check to see if the program is GNU ld.  I'd rather use --version,
4053      # but apparently some variants of GNU ld only accept -v.
4054      # Break only if it was the GNU/non-GNU ld that we prefer.
4055      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4056      *GNU* | *'with BFD'*)
4057	test "$with_gnu_ld" != no && break
4058	;;
4059      *)
4060	test "$with_gnu_ld" != yes && break
4061	;;
4062      esac
4063    fi
4064  done
4065  IFS="$lt_save_ifs"
4066else
4067  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4068fi
4069fi
4070
4071LD="$lt_cv_path_LD"
4072if test -n "$LD"; then
4073  { echo "$as_me:$LINENO: result: $LD" >&5
4074echo "${ECHO_T}$LD" >&6; }
4075else
4076  { echo "$as_me:$LINENO: result: no" >&5
4077echo "${ECHO_T}no" >&6; }
4078fi
4079test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4080echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4081   { (exit 1); exit 1; }; }
4082{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4083echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4084if test "${lt_cv_prog_gnu_ld+set}" = set; then
4085  echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4088case `$LD -v 2>&1 </dev/null` in
4089*GNU* | *'with BFD'*)
4090  lt_cv_prog_gnu_ld=yes
4091  ;;
4092*)
4093  lt_cv_prog_gnu_ld=no
4094  ;;
4095esac
4096fi
4097{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4098echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4099with_gnu_ld=$lt_cv_prog_gnu_ld
4100
4101
4102{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4103echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4104if test "${lt_cv_ld_reload_flag+set}" = set; then
4105  echo $ECHO_N "(cached) $ECHO_C" >&6
4106else
4107  lt_cv_ld_reload_flag='-r'
4108fi
4109{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4110echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4111reload_flag=$lt_cv_ld_reload_flag
4112case $reload_flag in
4113"" | " "*) ;;
4114*) reload_flag=" $reload_flag" ;;
4115esac
4116reload_cmds='$LD$reload_flag -o $output$reload_objs'
4117case $host_os in
4118  darwin*)
4119    if test "$GCC" = yes; then
4120      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4121    else
4122      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4123    fi
4124    ;;
4125esac
4126
4127{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4128echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4129if test "${lt_cv_path_NM+set}" = set; then
4130  echo $ECHO_N "(cached) $ECHO_C" >&6
4131else
4132  if test -n "$NM"; then
4133  # Let the user override the test.
4134  lt_cv_path_NM="$NM"
4135else
4136  lt_nm_to_check="${ac_tool_prefix}nm"
4137  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4138    lt_nm_to_check="$lt_nm_to_check nm"
4139  fi
4140  for lt_tmp_nm in $lt_nm_to_check; do
4141    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4142    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4143      IFS="$lt_save_ifs"
4144      test -z "$ac_dir" && ac_dir=.
4145      tmp_nm="$ac_dir/$lt_tmp_nm"
4146      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4147	# Check to see if the nm accepts a BSD-compat flag.
4148	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4149	#   nm: unknown option "B" ignored
4150	# Tru64's nm complains that /dev/null is an invalid object file
4151	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4152	*/dev/null* | *'Invalid file or object type'*)
4153	  lt_cv_path_NM="$tmp_nm -B"
4154	  break
4155	  ;;
4156	*)
4157	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4158	  */dev/null*)
4159	    lt_cv_path_NM="$tmp_nm -p"
4160	    break
4161	    ;;
4162	  *)
4163	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4164	    continue # so that we can try to find one that supports BSD flags
4165	    ;;
4166	  esac
4167	  ;;
4168	esac
4169      fi
4170    done
4171    IFS="$lt_save_ifs"
4172  done
4173  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4174fi
4175fi
4176{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4177echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4178NM="$lt_cv_path_NM"
4179
4180{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4181echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4182LN_S=$as_ln_s
4183if test "$LN_S" = "ln -s"; then
4184  { echo "$as_me:$LINENO: result: yes" >&5
4185echo "${ECHO_T}yes" >&6; }
4186else
4187  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4188echo "${ECHO_T}no, using $LN_S" >&6; }
4189fi
4190
4191{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4192echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4193if test "${lt_cv_deplibs_check_method+set}" = set; then
4194  echo $ECHO_N "(cached) $ECHO_C" >&6
4195else
4196  lt_cv_file_magic_cmd='$MAGIC_CMD'
4197lt_cv_file_magic_test_file=
4198lt_cv_deplibs_check_method='unknown'
4199# Need to set the preceding variable on all platforms that support
4200# interlibrary dependencies.
4201# 'none' -- dependencies not supported.
4202# `unknown' -- same as none, but documents that we really don't know.
4203# 'pass_all' -- all dependencies passed with no checks.
4204# 'test_compile' -- check by making test program.
4205# 'file_magic [[regex]]' -- check by looking for files in library path
4206# which responds to the $file_magic_cmd with a given extended regex.
4207# If you have `file' or equivalent on your system and you're not sure
4208# whether `pass_all' will *always* work, you probably want this one.
4209
4210case $host_os in
4211aix4* | aix5*)
4212  lt_cv_deplibs_check_method=pass_all
4213  ;;
4214
4215beos*)
4216  lt_cv_deplibs_check_method=pass_all
4217  ;;
4218
4219bsdi[45]*)
4220  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4221  lt_cv_file_magic_cmd='/usr/bin/file -L'
4222  lt_cv_file_magic_test_file=/shlib/libc.so
4223  ;;
4224
4225cygwin*)
4226  # func_win32_libid is a shell function defined in ltmain.sh
4227  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4228  lt_cv_file_magic_cmd='func_win32_libid'
4229  ;;
4230
4231mingw* | pw32*)
4232  # Base MSYS/MinGW do not provide the 'file' command needed by
4233  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4234  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4235  lt_cv_file_magic_cmd='$OBJDUMP -f'
4236  ;;
4237
4238darwin* | rhapsody*)
4239  lt_cv_deplibs_check_method=pass_all
4240  ;;
4241
4242freebsd* | dragonfly*)
4243  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4244    case $host_cpu in
4245    i*86 )
4246      # Not sure whether the presence of OpenBSD here was a mistake.
4247      # Let's accept both of them until this is cleared up.
4248      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4249      lt_cv_file_magic_cmd=/usr/bin/file
4250      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4251      ;;
4252    esac
4253  else
4254    lt_cv_deplibs_check_method=pass_all
4255  fi
4256  ;;
4257
4258gnu*)
4259  lt_cv_deplibs_check_method=pass_all
4260  ;;
4261
4262hpux10.20* | hpux11*)
4263  lt_cv_file_magic_cmd=/usr/bin/file
4264  case $host_cpu in
4265  ia64*)
4266    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4267    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4268    ;;
4269  hppa*64*)
4270    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]'
4271    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4272    ;;
4273  *)
4274    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4275    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4276    ;;
4277  esac
4278  ;;
4279
4280interix3*)
4281  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4282  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4283  ;;
4284
4285irix5* | irix6* | nonstopux*)
4286  case $LD in
4287  *-32|*"-32 ") libmagic=32-bit;;
4288  *-n32|*"-n32 ") libmagic=N32;;
4289  *-64|*"-64 ") libmagic=64-bit;;
4290  *) libmagic=never-match;;
4291  esac
4292  lt_cv_deplibs_check_method=pass_all
4293  ;;
4294
4295# This must be Linux ELF.
4296linux* | k*bsd*-gnu)
4297  lt_cv_deplibs_check_method=pass_all
4298  ;;
4299
4300netbsd* | netbsdelf*-gnu)
4301  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4302    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4303  else
4304    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4305  fi
4306  ;;
4307
4308newos6*)
4309  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4310  lt_cv_file_magic_cmd=/usr/bin/file
4311  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4312  ;;
4313
4314nto-qnx*)
4315  lt_cv_deplibs_check_method=unknown
4316  ;;
4317
4318openbsd*)
4319  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4320    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4321  else
4322    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4323  fi
4324  ;;
4325
4326osf3* | osf4* | osf5*)
4327  lt_cv_deplibs_check_method=pass_all
4328  ;;
4329
4330solaris*)
4331  lt_cv_deplibs_check_method=pass_all
4332  ;;
4333
4334sysv4 | sysv4.3*)
4335  case $host_vendor in
4336  motorola)
4337    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]'
4338    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4339    ;;
4340  ncr)
4341    lt_cv_deplibs_check_method=pass_all
4342    ;;
4343  sequent)
4344    lt_cv_file_magic_cmd='/bin/file'
4345    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4346    ;;
4347  sni)
4348    lt_cv_file_magic_cmd='/bin/file'
4349    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4350    lt_cv_file_magic_test_file=/lib/libc.so
4351    ;;
4352  siemens)
4353    lt_cv_deplibs_check_method=pass_all
4354    ;;
4355  pc)
4356    lt_cv_deplibs_check_method=pass_all
4357    ;;
4358  esac
4359  ;;
4360
4361sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4362  lt_cv_deplibs_check_method=pass_all
4363  ;;
4364esac
4365
4366fi
4367{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4368echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4369file_magic_cmd=$lt_cv_file_magic_cmd
4370deplibs_check_method=$lt_cv_deplibs_check_method
4371test -z "$deplibs_check_method" && deplibs_check_method=unknown
4372
4373
4374
4375
4376# If no C compiler was specified, use CC.
4377LTCC=${LTCC-"$CC"}
4378
4379# If no C compiler flags were specified, use CFLAGS.
4380LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4381
4382# Allow CC to be a program name with arguments.
4383compiler=$CC
4384
4385
4386# Check whether --enable-libtool-lock was given.
4387if test "${enable_libtool_lock+set}" = set; then
4388  enableval=$enable_libtool_lock;
4389fi
4390
4391test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4392
4393# Some flags need to be propagated to the compiler or linker for good
4394# libtool support.
4395case $host in
4396ia64-*-hpux*)
4397  # Find out which ABI we are using.
4398  echo 'int i;' > conftest.$ac_ext
4399  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400  (eval $ac_compile) 2>&5
4401  ac_status=$?
4402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403  (exit $ac_status); }; then
4404    case `/usr/bin/file conftest.$ac_objext` in
4405    *ELF-32*)
4406      HPUX_IA64_MODE="32"
4407      ;;
4408    *ELF-64*)
4409      HPUX_IA64_MODE="64"
4410      ;;
4411    esac
4412  fi
4413  rm -rf conftest*
4414  ;;
4415*-*-irix6*)
4416  # Find out which ABI we are using.
4417  echo '#line 4417 "configure"' > conftest.$ac_ext
4418  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419  (eval $ac_compile) 2>&5
4420  ac_status=$?
4421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422  (exit $ac_status); }; then
4423   if test "$lt_cv_prog_gnu_ld" = yes; then
4424    case `/usr/bin/file conftest.$ac_objext` in
4425    *32-bit*)
4426      LD="${LD-ld} -melf32bsmip"
4427      ;;
4428    *N32*)
4429      LD="${LD-ld} -melf32bmipn32"
4430      ;;
4431    *64-bit*)
4432      LD="${LD-ld} -melf64bmip"
4433      ;;
4434    esac
4435   else
4436    case `/usr/bin/file conftest.$ac_objext` in
4437    *32-bit*)
4438      LD="${LD-ld} -32"
4439      ;;
4440    *N32*)
4441      LD="${LD-ld} -n32"
4442      ;;
4443    *64-bit*)
4444      LD="${LD-ld} -64"
4445      ;;
4446    esac
4447   fi
4448  fi
4449  rm -rf conftest*
4450  ;;
4451
4452x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4453  # Find out which ABI we are using.
4454  echo 'int i;' > conftest.$ac_ext
4455  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4456  (eval $ac_compile) 2>&5
4457  ac_status=$?
4458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459  (exit $ac_status); }; then
4460    case `/usr/bin/file conftest.o` in
4461    *32-bit*)
4462      case $host in
4463        x86_64-*linux*)
4464          LD="${LD-ld} -m elf_i386"
4465          ;;
4466        ppc64-*linux*|powerpc64-*linux*)
4467          LD="${LD-ld} -m elf32ppclinux"
4468          ;;
4469        s390x-*linux*)
4470          LD="${LD-ld} -m elf_s390"
4471          ;;
4472        sparc64-*linux*)
4473          LD="${LD-ld} -m elf32_sparc"
4474          ;;
4475      esac
4476      ;;
4477    *64-bit*)
4478      case $host in
4479        x86_64-*linux*)
4480          LD="${LD-ld} -m elf_x86_64"
4481          ;;
4482        ppc*-*linux*|powerpc*-*linux*)
4483          LD="${LD-ld} -m elf64ppc"
4484          ;;
4485        s390*-*linux*)
4486          LD="${LD-ld} -m elf64_s390"
4487          ;;
4488        sparc*-*linux*)
4489          LD="${LD-ld} -m elf64_sparc"
4490          ;;
4491      esac
4492      ;;
4493    esac
4494  fi
4495  rm -rf conftest*
4496  ;;
4497
4498*-*-sco3.2v5*)
4499  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4500  SAVE_CFLAGS="$CFLAGS"
4501  CFLAGS="$CFLAGS -belf"
4502  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4503echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4504if test "${lt_cv_cc_needs_belf+set}" = set; then
4505  echo $ECHO_N "(cached) $ECHO_C" >&6
4506else
4507  ac_ext=c
4508ac_cpp='$CPP $CPPFLAGS'
4509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511ac_compiler_gnu=$ac_cv_c_compiler_gnu
4512
4513     cat >conftest.$ac_ext <<_ACEOF
4514/* confdefs.h.  */
4515_ACEOF
4516cat confdefs.h >>conftest.$ac_ext
4517cat >>conftest.$ac_ext <<_ACEOF
4518/* end confdefs.h.  */
4519
4520int
4521main ()
4522{
4523
4524  ;
4525  return 0;
4526}
4527_ACEOF
4528rm -f conftest.$ac_objext conftest$ac_exeext
4529if { (ac_try="$ac_link"
4530case "(($ac_try" in
4531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4532  *) ac_try_echo=$ac_try;;
4533esac
4534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535  (eval "$ac_link") 2>conftest.er1
4536  ac_status=$?
4537  grep -v '^ *+' conftest.er1 >conftest.err
4538  rm -f conftest.er1
4539  cat conftest.err >&5
4540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541  (exit $ac_status); } &&
4542	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4543  { (case "(($ac_try" in
4544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545  *) ac_try_echo=$ac_try;;
4546esac
4547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548  (eval "$ac_try") 2>&5
4549  ac_status=$?
4550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551  (exit $ac_status); }; } &&
4552	 { ac_try='test -s conftest$ac_exeext'
4553  { (case "(($ac_try" in
4554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555  *) ac_try_echo=$ac_try;;
4556esac
4557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558  (eval "$ac_try") 2>&5
4559  ac_status=$?
4560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561  (exit $ac_status); }; }; then
4562  lt_cv_cc_needs_belf=yes
4563else
4564  echo "$as_me: failed program was:" >&5
4565sed 's/^/| /' conftest.$ac_ext >&5
4566
4567	lt_cv_cc_needs_belf=no
4568fi
4569
4570rm -f core conftest.err conftest.$ac_objext \
4571      conftest$ac_exeext conftest.$ac_ext
4572     ac_ext=c
4573ac_cpp='$CPP $CPPFLAGS'
4574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4576ac_compiler_gnu=$ac_cv_c_compiler_gnu
4577
4578fi
4579{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4580echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4581  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4582    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4583    CFLAGS="$SAVE_CFLAGS"
4584  fi
4585  ;;
4586sparc*-*solaris*)
4587  # Find out which ABI we are using.
4588  echo 'int i;' > conftest.$ac_ext
4589  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590  (eval $ac_compile) 2>&5
4591  ac_status=$?
4592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593  (exit $ac_status); }; then
4594    case `/usr/bin/file conftest.o` in
4595    *64-bit*)
4596      case $lt_cv_prog_gnu_ld in
4597      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4598      *)    LD="${LD-ld} -64" ;;
4599      esac
4600      ;;
4601    esac
4602  fi
4603  rm -rf conftest*
4604  ;;
4605
4606
4607esac
4608
4609need_locks="$enable_libtool_lock"
4610
4611
4612ac_ext=c
4613ac_cpp='$CPP $CPPFLAGS'
4614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4618echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4619# On Suns, sometimes $CPP names a directory.
4620if test -n "$CPP" && test -d "$CPP"; then
4621  CPP=
4622fi
4623if test -z "$CPP"; then
4624  if test "${ac_cv_prog_CPP+set}" = set; then
4625  echo $ECHO_N "(cached) $ECHO_C" >&6
4626else
4627      # Double quotes because CPP needs to be expanded
4628    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4629    do
4630      ac_preproc_ok=false
4631for ac_c_preproc_warn_flag in '' yes
4632do
4633  # Use a header file that comes with gcc, so configuring glibc
4634  # with a fresh cross-compiler works.
4635  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4636  # <limits.h> exists even on freestanding compilers.
4637  # On the NeXT, cc -E runs the code through the compiler's parser,
4638  # not just through cpp. "Syntax error" is here to catch this case.
4639  cat >conftest.$ac_ext <<_ACEOF
4640/* confdefs.h.  */
4641_ACEOF
4642cat confdefs.h >>conftest.$ac_ext
4643cat >>conftest.$ac_ext <<_ACEOF
4644/* end confdefs.h.  */
4645#ifdef __STDC__
4646# include <limits.h>
4647#else
4648# include <assert.h>
4649#endif
4650		     Syntax error
4651_ACEOF
4652if { (ac_try="$ac_cpp conftest.$ac_ext"
4653case "(($ac_try" in
4654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655  *) ac_try_echo=$ac_try;;
4656esac
4657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4659  ac_status=$?
4660  grep -v '^ *+' conftest.er1 >conftest.err
4661  rm -f conftest.er1
4662  cat conftest.err >&5
4663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664  (exit $ac_status); } >/dev/null; then
4665  if test -s conftest.err; then
4666    ac_cpp_err=$ac_c_preproc_warn_flag
4667    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4668  else
4669    ac_cpp_err=
4670  fi
4671else
4672  ac_cpp_err=yes
4673fi
4674if test -z "$ac_cpp_err"; then
4675  :
4676else
4677  echo "$as_me: failed program was:" >&5
4678sed 's/^/| /' conftest.$ac_ext >&5
4679
4680  # Broken: fails on valid input.
4681continue
4682fi
4683
4684rm -f conftest.err conftest.$ac_ext
4685
4686  # OK, works on sane cases.  Now check whether nonexistent headers
4687  # can be detected and how.
4688  cat >conftest.$ac_ext <<_ACEOF
4689/* confdefs.h.  */
4690_ACEOF
4691cat confdefs.h >>conftest.$ac_ext
4692cat >>conftest.$ac_ext <<_ACEOF
4693/* end confdefs.h.  */
4694#include <ac_nonexistent.h>
4695_ACEOF
4696if { (ac_try="$ac_cpp conftest.$ac_ext"
4697case "(($ac_try" in
4698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699  *) ac_try_echo=$ac_try;;
4700esac
4701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4702  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4703  ac_status=$?
4704  grep -v '^ *+' conftest.er1 >conftest.err
4705  rm -f conftest.er1
4706  cat conftest.err >&5
4707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708  (exit $ac_status); } >/dev/null; then
4709  if test -s conftest.err; then
4710    ac_cpp_err=$ac_c_preproc_warn_flag
4711    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4712  else
4713    ac_cpp_err=
4714  fi
4715else
4716  ac_cpp_err=yes
4717fi
4718if test -z "$ac_cpp_err"; then
4719  # Broken: success on invalid input.
4720continue
4721else
4722  echo "$as_me: failed program was:" >&5
4723sed 's/^/| /' conftest.$ac_ext >&5
4724
4725  # Passes both tests.
4726ac_preproc_ok=:
4727break
4728fi
4729
4730rm -f conftest.err conftest.$ac_ext
4731
4732done
4733# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4734rm -f conftest.err conftest.$ac_ext
4735if $ac_preproc_ok; then
4736  break
4737fi
4738
4739    done
4740    ac_cv_prog_CPP=$CPP
4741
4742fi
4743  CPP=$ac_cv_prog_CPP
4744else
4745  ac_cv_prog_CPP=$CPP
4746fi
4747{ echo "$as_me:$LINENO: result: $CPP" >&5
4748echo "${ECHO_T}$CPP" >&6; }
4749ac_preproc_ok=false
4750for ac_c_preproc_warn_flag in '' yes
4751do
4752  # Use a header file that comes with gcc, so configuring glibc
4753  # with a fresh cross-compiler works.
4754  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4755  # <limits.h> exists even on freestanding compilers.
4756  # On the NeXT, cc -E runs the code through the compiler's parser,
4757  # not just through cpp. "Syntax error" is here to catch this case.
4758  cat >conftest.$ac_ext <<_ACEOF
4759/* confdefs.h.  */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h.  */
4764#ifdef __STDC__
4765# include <limits.h>
4766#else
4767# include <assert.h>
4768#endif
4769		     Syntax error
4770_ACEOF
4771if { (ac_try="$ac_cpp conftest.$ac_ext"
4772case "(($ac_try" in
4773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774  *) ac_try_echo=$ac_try;;
4775esac
4776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4778  ac_status=$?
4779  grep -v '^ *+' conftest.er1 >conftest.err
4780  rm -f conftest.er1
4781  cat conftest.err >&5
4782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783  (exit $ac_status); } >/dev/null; then
4784  if test -s conftest.err; then
4785    ac_cpp_err=$ac_c_preproc_warn_flag
4786    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4787  else
4788    ac_cpp_err=
4789  fi
4790else
4791  ac_cpp_err=yes
4792fi
4793if test -z "$ac_cpp_err"; then
4794  :
4795else
4796  echo "$as_me: failed program was:" >&5
4797sed 's/^/| /' conftest.$ac_ext >&5
4798
4799  # Broken: fails on valid input.
4800continue
4801fi
4802
4803rm -f conftest.err conftest.$ac_ext
4804
4805  # OK, works on sane cases.  Now check whether nonexistent headers
4806  # can be detected and how.
4807  cat >conftest.$ac_ext <<_ACEOF
4808/* confdefs.h.  */
4809_ACEOF
4810cat confdefs.h >>conftest.$ac_ext
4811cat >>conftest.$ac_ext <<_ACEOF
4812/* end confdefs.h.  */
4813#include <ac_nonexistent.h>
4814_ACEOF
4815if { (ac_try="$ac_cpp conftest.$ac_ext"
4816case "(($ac_try" in
4817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818  *) ac_try_echo=$ac_try;;
4819esac
4820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4821  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4822  ac_status=$?
4823  grep -v '^ *+' conftest.er1 >conftest.err
4824  rm -f conftest.er1
4825  cat conftest.err >&5
4826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827  (exit $ac_status); } >/dev/null; then
4828  if test -s conftest.err; then
4829    ac_cpp_err=$ac_c_preproc_warn_flag
4830    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4831  else
4832    ac_cpp_err=
4833  fi
4834else
4835  ac_cpp_err=yes
4836fi
4837if test -z "$ac_cpp_err"; then
4838  # Broken: success on invalid input.
4839continue
4840else
4841  echo "$as_me: failed program was:" >&5
4842sed 's/^/| /' conftest.$ac_ext >&5
4843
4844  # Passes both tests.
4845ac_preproc_ok=:
4846break
4847fi
4848
4849rm -f conftest.err conftest.$ac_ext
4850
4851done
4852# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4853rm -f conftest.err conftest.$ac_ext
4854if $ac_preproc_ok; then
4855  :
4856else
4857  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4858See \`config.log' for more details." >&5
4859echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4860See \`config.log' for more details." >&2;}
4861   { (exit 1); exit 1; }; }
4862fi
4863
4864ac_ext=c
4865ac_cpp='$CPP $CPPFLAGS'
4866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868ac_compiler_gnu=$ac_cv_c_compiler_gnu
4869
4870
4871{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4872echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4873if test "${ac_cv_header_stdc+set}" = set; then
4874  echo $ECHO_N "(cached) $ECHO_C" >&6
4875else
4876  cat >conftest.$ac_ext <<_ACEOF
4877/* confdefs.h.  */
4878_ACEOF
4879cat confdefs.h >>conftest.$ac_ext
4880cat >>conftest.$ac_ext <<_ACEOF
4881/* end confdefs.h.  */
4882#include <stdlib.h>
4883#include <stdarg.h>
4884#include <string.h>
4885#include <float.h>
4886
4887int
4888main ()
4889{
4890
4891  ;
4892  return 0;
4893}
4894_ACEOF
4895rm -f conftest.$ac_objext
4896if { (ac_try="$ac_compile"
4897case "(($ac_try" in
4898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899  *) ac_try_echo=$ac_try;;
4900esac
4901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902  (eval "$ac_compile") 2>conftest.er1
4903  ac_status=$?
4904  grep -v '^ *+' conftest.er1 >conftest.err
4905  rm -f conftest.er1
4906  cat conftest.err >&5
4907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908  (exit $ac_status); } &&
4909	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4910  { (case "(($ac_try" in
4911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912  *) ac_try_echo=$ac_try;;
4913esac
4914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915  (eval "$ac_try") 2>&5
4916  ac_status=$?
4917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918  (exit $ac_status); }; } &&
4919	 { ac_try='test -s conftest.$ac_objext'
4920  { (case "(($ac_try" in
4921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922  *) ac_try_echo=$ac_try;;
4923esac
4924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4925  (eval "$ac_try") 2>&5
4926  ac_status=$?
4927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928  (exit $ac_status); }; }; then
4929  ac_cv_header_stdc=yes
4930else
4931  echo "$as_me: failed program was:" >&5
4932sed 's/^/| /' conftest.$ac_ext >&5
4933
4934	ac_cv_header_stdc=no
4935fi
4936
4937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938
4939if test $ac_cv_header_stdc = yes; then
4940  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4941  cat >conftest.$ac_ext <<_ACEOF
4942/* confdefs.h.  */
4943_ACEOF
4944cat confdefs.h >>conftest.$ac_ext
4945cat >>conftest.$ac_ext <<_ACEOF
4946/* end confdefs.h.  */
4947#include <string.h>
4948
4949_ACEOF
4950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4951  $EGREP "memchr" >/dev/null 2>&1; then
4952  :
4953else
4954  ac_cv_header_stdc=no
4955fi
4956rm -f conftest*
4957
4958fi
4959
4960if test $ac_cv_header_stdc = yes; then
4961  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4962  cat >conftest.$ac_ext <<_ACEOF
4963/* confdefs.h.  */
4964_ACEOF
4965cat confdefs.h >>conftest.$ac_ext
4966cat >>conftest.$ac_ext <<_ACEOF
4967/* end confdefs.h.  */
4968#include <stdlib.h>
4969
4970_ACEOF
4971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4972  $EGREP "free" >/dev/null 2>&1; then
4973  :
4974else
4975  ac_cv_header_stdc=no
4976fi
4977rm -f conftest*
4978
4979fi
4980
4981if test $ac_cv_header_stdc = yes; then
4982  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4983  if test "$cross_compiling" = yes; then
4984  :
4985else
4986  cat >conftest.$ac_ext <<_ACEOF
4987/* confdefs.h.  */
4988_ACEOF
4989cat confdefs.h >>conftest.$ac_ext
4990cat >>conftest.$ac_ext <<_ACEOF
4991/* end confdefs.h.  */
4992#include <ctype.h>
4993#include <stdlib.h>
4994#if ((' ' & 0x0FF) == 0x020)
4995# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4996# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4997#else
4998# define ISLOWER(c) \
4999		   (('a' <= (c) && (c) <= 'i') \
5000		     || ('j' <= (c) && (c) <= 'r') \
5001		     || ('s' <= (c) && (c) <= 'z'))
5002# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5003#endif
5004
5005#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5006int
5007main ()
5008{
5009  int i;
5010  for (i = 0; i < 256; i++)
5011    if (XOR (islower (i), ISLOWER (i))
5012	|| toupper (i) != TOUPPER (i))
5013      return 2;
5014  return 0;
5015}
5016_ACEOF
5017rm -f conftest$ac_exeext
5018if { (ac_try="$ac_link"
5019case "(($ac_try" in
5020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021  *) ac_try_echo=$ac_try;;
5022esac
5023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024  (eval "$ac_link") 2>&5
5025  ac_status=$?
5026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5028  { (case "(($ac_try" in
5029  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030  *) ac_try_echo=$ac_try;;
5031esac
5032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033  (eval "$ac_try") 2>&5
5034  ac_status=$?
5035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036  (exit $ac_status); }; }; then
5037  :
5038else
5039  echo "$as_me: program exited with status $ac_status" >&5
5040echo "$as_me: failed program was:" >&5
5041sed 's/^/| /' conftest.$ac_ext >&5
5042
5043( exit $ac_status )
5044ac_cv_header_stdc=no
5045fi
5046rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5047fi
5048
5049
5050fi
5051fi
5052{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5053echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5054if test $ac_cv_header_stdc = yes; then
5055
5056cat >>confdefs.h <<\_ACEOF
5057#define STDC_HEADERS 1
5058_ACEOF
5059
5060fi
5061
5062# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5073		  inttypes.h stdint.h unistd.h
5074do
5075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5076{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5079  echo $ECHO_N "(cached) $ECHO_C" >&6
5080else
5081  cat >conftest.$ac_ext <<_ACEOF
5082/* confdefs.h.  */
5083_ACEOF
5084cat confdefs.h >>conftest.$ac_ext
5085cat >>conftest.$ac_ext <<_ACEOF
5086/* end confdefs.h.  */
5087$ac_includes_default
5088
5089#include <$ac_header>
5090_ACEOF
5091rm -f conftest.$ac_objext
5092if { (ac_try="$ac_compile"
5093case "(($ac_try" in
5094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095  *) ac_try_echo=$ac_try;;
5096esac
5097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098  (eval "$ac_compile") 2>conftest.er1
5099  ac_status=$?
5100  grep -v '^ *+' conftest.er1 >conftest.err
5101  rm -f conftest.er1
5102  cat conftest.err >&5
5103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104  (exit $ac_status); } &&
5105	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5106  { (case "(($ac_try" in
5107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108  *) ac_try_echo=$ac_try;;
5109esac
5110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111  (eval "$ac_try") 2>&5
5112  ac_status=$?
5113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114  (exit $ac_status); }; } &&
5115	 { ac_try='test -s conftest.$ac_objext'
5116  { (case "(($ac_try" in
5117  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118  *) ac_try_echo=$ac_try;;
5119esac
5120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121  (eval "$ac_try") 2>&5
5122  ac_status=$?
5123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124  (exit $ac_status); }; }; then
5125  eval "$as_ac_Header=yes"
5126else
5127  echo "$as_me: failed program was:" >&5
5128sed 's/^/| /' conftest.$ac_ext >&5
5129
5130	eval "$as_ac_Header=no"
5131fi
5132
5133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134fi
5135ac_res=`eval echo '${'$as_ac_Header'}'`
5136	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5137echo "${ECHO_T}$ac_res" >&6; }
5138if test `eval echo '${'$as_ac_Header'}'` = yes; then
5139  cat >>confdefs.h <<_ACEOF
5140#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5141_ACEOF
5142
5143fi
5144
5145done
5146
5147
5148
5149for ac_header in dlfcn.h
5150do
5151as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5153  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5156  echo $ECHO_N "(cached) $ECHO_C" >&6
5157fi
5158ac_res=`eval echo '${'$as_ac_Header'}'`
5159	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5160echo "${ECHO_T}$ac_res" >&6; }
5161else
5162  # Is the header compilable?
5163{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5164echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5165cat >conftest.$ac_ext <<_ACEOF
5166/* confdefs.h.  */
5167_ACEOF
5168cat confdefs.h >>conftest.$ac_ext
5169cat >>conftest.$ac_ext <<_ACEOF
5170/* end confdefs.h.  */
5171$ac_includes_default
5172#include <$ac_header>
5173_ACEOF
5174rm -f conftest.$ac_objext
5175if { (ac_try="$ac_compile"
5176case "(($ac_try" in
5177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178  *) ac_try_echo=$ac_try;;
5179esac
5180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5181  (eval "$ac_compile") 2>conftest.er1
5182  ac_status=$?
5183  grep -v '^ *+' conftest.er1 >conftest.err
5184  rm -f conftest.er1
5185  cat conftest.err >&5
5186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187  (exit $ac_status); } &&
5188	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5189  { (case "(($ac_try" in
5190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191  *) ac_try_echo=$ac_try;;
5192esac
5193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194  (eval "$ac_try") 2>&5
5195  ac_status=$?
5196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197  (exit $ac_status); }; } &&
5198	 { ac_try='test -s conftest.$ac_objext'
5199  { (case "(($ac_try" in
5200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201  *) ac_try_echo=$ac_try;;
5202esac
5203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204  (eval "$ac_try") 2>&5
5205  ac_status=$?
5206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207  (exit $ac_status); }; }; then
5208  ac_header_compiler=yes
5209else
5210  echo "$as_me: failed program was:" >&5
5211sed 's/^/| /' conftest.$ac_ext >&5
5212
5213	ac_header_compiler=no
5214fi
5215
5216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5217{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5218echo "${ECHO_T}$ac_header_compiler" >&6; }
5219
5220# Is the header present?
5221{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5222echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5223cat >conftest.$ac_ext <<_ACEOF
5224/* confdefs.h.  */
5225_ACEOF
5226cat confdefs.h >>conftest.$ac_ext
5227cat >>conftest.$ac_ext <<_ACEOF
5228/* end confdefs.h.  */
5229#include <$ac_header>
5230_ACEOF
5231if { (ac_try="$ac_cpp conftest.$ac_ext"
5232case "(($ac_try" in
5233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234  *) ac_try_echo=$ac_try;;
5235esac
5236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5238  ac_status=$?
5239  grep -v '^ *+' conftest.er1 >conftest.err
5240  rm -f conftest.er1
5241  cat conftest.err >&5
5242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243  (exit $ac_status); } >/dev/null; then
5244  if test -s conftest.err; then
5245    ac_cpp_err=$ac_c_preproc_warn_flag
5246    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5247  else
5248    ac_cpp_err=
5249  fi
5250else
5251  ac_cpp_err=yes
5252fi
5253if test -z "$ac_cpp_err"; then
5254  ac_header_preproc=yes
5255else
5256  echo "$as_me: failed program was:" >&5
5257sed 's/^/| /' conftest.$ac_ext >&5
5258
5259  ac_header_preproc=no
5260fi
5261
5262rm -f conftest.err conftest.$ac_ext
5263{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5264echo "${ECHO_T}$ac_header_preproc" >&6; }
5265
5266# So?  What about this header?
5267case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5268  yes:no: )
5269    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5270echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5271    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5272echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5273    ac_header_preproc=yes
5274    ;;
5275  no:yes:* )
5276    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5277echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5278    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5279echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5280    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5281echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5282    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5283echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5284    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5285echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5286    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5287echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5288    ( cat <<\_ASBOX
5289## ---------------------------------------------------------------------- ##
5290## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5291## ---------------------------------------------------------------------- ##
5292_ASBOX
5293     ) | sed "s/^/$as_me: WARNING:     /" >&2
5294    ;;
5295esac
5296{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5299  echo $ECHO_N "(cached) $ECHO_C" >&6
5300else
5301  eval "$as_ac_Header=\$ac_header_preproc"
5302fi
5303ac_res=`eval echo '${'$as_ac_Header'}'`
5304	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5305echo "${ECHO_T}$ac_res" >&6; }
5306
5307fi
5308if test `eval echo '${'$as_ac_Header'}'` = yes; then
5309  cat >>confdefs.h <<_ACEOF
5310#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5311_ACEOF
5312
5313fi
5314
5315done
5316
5317ac_ext=cpp
5318ac_cpp='$CXXCPP $CPPFLAGS'
5319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5322if test -z "$CXX"; then
5323  if test -n "$CCC"; then
5324    CXX=$CCC
5325  else
5326    if test -n "$ac_tool_prefix"; then
5327  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5328  do
5329    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5330set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5331{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5333if test "${ac_cv_prog_CXX+set}" = set; then
5334  echo $ECHO_N "(cached) $ECHO_C" >&6
5335else
5336  if test -n "$CXX"; then
5337  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5338else
5339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340for as_dir in $PATH
5341do
5342  IFS=$as_save_IFS
5343  test -z "$as_dir" && as_dir=.
5344  for ac_exec_ext in '' $ac_executable_extensions; do
5345  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5346    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5347    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348    break 2
5349  fi
5350done
5351done
5352IFS=$as_save_IFS
5353
5354fi
5355fi
5356CXX=$ac_cv_prog_CXX
5357if test -n "$CXX"; then
5358  { echo "$as_me:$LINENO: result: $CXX" >&5
5359echo "${ECHO_T}$CXX" >&6; }
5360else
5361  { echo "$as_me:$LINENO: result: no" >&5
5362echo "${ECHO_T}no" >&6; }
5363fi
5364
5365
5366    test -n "$CXX" && break
5367  done
5368fi
5369if test -z "$CXX"; then
5370  ac_ct_CXX=$CXX
5371  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5372do
5373  # Extract the first word of "$ac_prog", so it can be a program name with args.
5374set dummy $ac_prog; ac_word=$2
5375{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5377if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5378  echo $ECHO_N "(cached) $ECHO_C" >&6
5379else
5380  if test -n "$ac_ct_CXX"; then
5381  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5382else
5383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384for as_dir in $PATH
5385do
5386  IFS=$as_save_IFS
5387  test -z "$as_dir" && as_dir=.
5388  for ac_exec_ext in '' $ac_executable_extensions; do
5389  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5390    ac_cv_prog_ac_ct_CXX="$ac_prog"
5391    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5392    break 2
5393  fi
5394done
5395done
5396IFS=$as_save_IFS
5397
5398fi
5399fi
5400ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5401if test -n "$ac_ct_CXX"; then
5402  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5403echo "${ECHO_T}$ac_ct_CXX" >&6; }
5404else
5405  { echo "$as_me:$LINENO: result: no" >&5
5406echo "${ECHO_T}no" >&6; }
5407fi
5408
5409
5410  test -n "$ac_ct_CXX" && break
5411done
5412
5413  if test "x$ac_ct_CXX" = x; then
5414    CXX="g++"
5415  else
5416    case $cross_compiling:$ac_tool_warned in
5417yes:)
5418{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5419whose name does not start with the host triplet.  If you think this
5420configuration is useful to you, please write to autoconf@gnu.org." >&5
5421echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5422whose name does not start with the host triplet.  If you think this
5423configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5424ac_tool_warned=yes ;;
5425esac
5426    CXX=$ac_ct_CXX
5427  fi
5428fi
5429
5430  fi
5431fi
5432# Provide some information about the compiler.
5433echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5434ac_compiler=`set X $ac_compile; echo $2`
5435{ (ac_try="$ac_compiler --version >&5"
5436case "(($ac_try" in
5437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438  *) ac_try_echo=$ac_try;;
5439esac
5440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5441  (eval "$ac_compiler --version >&5") 2>&5
5442  ac_status=$?
5443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444  (exit $ac_status); }
5445{ (ac_try="$ac_compiler -v >&5"
5446case "(($ac_try" in
5447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448  *) ac_try_echo=$ac_try;;
5449esac
5450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451  (eval "$ac_compiler -v >&5") 2>&5
5452  ac_status=$?
5453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454  (exit $ac_status); }
5455{ (ac_try="$ac_compiler -V >&5"
5456case "(($ac_try" in
5457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458  *) ac_try_echo=$ac_try;;
5459esac
5460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461  (eval "$ac_compiler -V >&5") 2>&5
5462  ac_status=$?
5463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464  (exit $ac_status); }
5465
5466{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5467echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5468if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5469  echo $ECHO_N "(cached) $ECHO_C" >&6
5470else
5471  cat >conftest.$ac_ext <<_ACEOF
5472/* confdefs.h.  */
5473_ACEOF
5474cat confdefs.h >>conftest.$ac_ext
5475cat >>conftest.$ac_ext <<_ACEOF
5476/* end confdefs.h.  */
5477
5478int
5479main ()
5480{
5481#ifndef __GNUC__
5482       choke me
5483#endif
5484
5485  ;
5486  return 0;
5487}
5488_ACEOF
5489rm -f conftest.$ac_objext
5490if { (ac_try="$ac_compile"
5491case "(($ac_try" in
5492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493  *) ac_try_echo=$ac_try;;
5494esac
5495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496  (eval "$ac_compile") 2>conftest.er1
5497  ac_status=$?
5498  grep -v '^ *+' conftest.er1 >conftest.err
5499  rm -f conftest.er1
5500  cat conftest.err >&5
5501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502  (exit $ac_status); } &&
5503	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5504  { (case "(($ac_try" in
5505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506  *) ac_try_echo=$ac_try;;
5507esac
5508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509  (eval "$ac_try") 2>&5
5510  ac_status=$?
5511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512  (exit $ac_status); }; } &&
5513	 { ac_try='test -s conftest.$ac_objext'
5514  { (case "(($ac_try" in
5515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516  *) ac_try_echo=$ac_try;;
5517esac
5518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519  (eval "$ac_try") 2>&5
5520  ac_status=$?
5521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522  (exit $ac_status); }; }; then
5523  ac_compiler_gnu=yes
5524else
5525  echo "$as_me: failed program was:" >&5
5526sed 's/^/| /' conftest.$ac_ext >&5
5527
5528	ac_compiler_gnu=no
5529fi
5530
5531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5532ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5533
5534fi
5535{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5536echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5537GXX=`test $ac_compiler_gnu = yes && echo yes`
5538ac_test_CXXFLAGS=${CXXFLAGS+set}
5539ac_save_CXXFLAGS=$CXXFLAGS
5540{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5541echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5542if test "${ac_cv_prog_cxx_g+set}" = set; then
5543  echo $ECHO_N "(cached) $ECHO_C" >&6
5544else
5545  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5546   ac_cxx_werror_flag=yes
5547   ac_cv_prog_cxx_g=no
5548   CXXFLAGS="-g"
5549   cat >conftest.$ac_ext <<_ACEOF
5550/* confdefs.h.  */
5551_ACEOF
5552cat confdefs.h >>conftest.$ac_ext
5553cat >>conftest.$ac_ext <<_ACEOF
5554/* end confdefs.h.  */
5555
5556int
5557main ()
5558{
5559
5560  ;
5561  return 0;
5562}
5563_ACEOF
5564rm -f conftest.$ac_objext
5565if { (ac_try="$ac_compile"
5566case "(($ac_try" in
5567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568  *) ac_try_echo=$ac_try;;
5569esac
5570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571  (eval "$ac_compile") 2>conftest.er1
5572  ac_status=$?
5573  grep -v '^ *+' conftest.er1 >conftest.err
5574  rm -f conftest.er1
5575  cat conftest.err >&5
5576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577  (exit $ac_status); } &&
5578	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5579  { (case "(($ac_try" in
5580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581  *) ac_try_echo=$ac_try;;
5582esac
5583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584  (eval "$ac_try") 2>&5
5585  ac_status=$?
5586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587  (exit $ac_status); }; } &&
5588	 { ac_try='test -s conftest.$ac_objext'
5589  { (case "(($ac_try" in
5590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591  *) ac_try_echo=$ac_try;;
5592esac
5593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594  (eval "$ac_try") 2>&5
5595  ac_status=$?
5596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597  (exit $ac_status); }; }; then
5598  ac_cv_prog_cxx_g=yes
5599else
5600  echo "$as_me: failed program was:" >&5
5601sed 's/^/| /' conftest.$ac_ext >&5
5602
5603	CXXFLAGS=""
5604      cat >conftest.$ac_ext <<_ACEOF
5605/* confdefs.h.  */
5606_ACEOF
5607cat confdefs.h >>conftest.$ac_ext
5608cat >>conftest.$ac_ext <<_ACEOF
5609/* end confdefs.h.  */
5610
5611int
5612main ()
5613{
5614
5615  ;
5616  return 0;
5617}
5618_ACEOF
5619rm -f conftest.$ac_objext
5620if { (ac_try="$ac_compile"
5621case "(($ac_try" in
5622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5623  *) ac_try_echo=$ac_try;;
5624esac
5625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626  (eval "$ac_compile") 2>conftest.er1
5627  ac_status=$?
5628  grep -v '^ *+' conftest.er1 >conftest.err
5629  rm -f conftest.er1
5630  cat conftest.err >&5
5631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632  (exit $ac_status); } &&
5633	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5634  { (case "(($ac_try" in
5635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5636  *) ac_try_echo=$ac_try;;
5637esac
5638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639  (eval "$ac_try") 2>&5
5640  ac_status=$?
5641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642  (exit $ac_status); }; } &&
5643	 { ac_try='test -s conftest.$ac_objext'
5644  { (case "(($ac_try" in
5645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646  *) ac_try_echo=$ac_try;;
5647esac
5648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649  (eval "$ac_try") 2>&5
5650  ac_status=$?
5651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652  (exit $ac_status); }; }; then
5653  :
5654else
5655  echo "$as_me: failed program was:" >&5
5656sed 's/^/| /' conftest.$ac_ext >&5
5657
5658	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5659	 CXXFLAGS="-g"
5660	 cat >conftest.$ac_ext <<_ACEOF
5661/* confdefs.h.  */
5662_ACEOF
5663cat confdefs.h >>conftest.$ac_ext
5664cat >>conftest.$ac_ext <<_ACEOF
5665/* end confdefs.h.  */
5666
5667int
5668main ()
5669{
5670
5671  ;
5672  return 0;
5673}
5674_ACEOF
5675rm -f conftest.$ac_objext
5676if { (ac_try="$ac_compile"
5677case "(($ac_try" in
5678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679  *) ac_try_echo=$ac_try;;
5680esac
5681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682  (eval "$ac_compile") 2>conftest.er1
5683  ac_status=$?
5684  grep -v '^ *+' conftest.er1 >conftest.err
5685  rm -f conftest.er1
5686  cat conftest.err >&5
5687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688  (exit $ac_status); } &&
5689	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5690  { (case "(($ac_try" in
5691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5692  *) ac_try_echo=$ac_try;;
5693esac
5694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5695  (eval "$ac_try") 2>&5
5696  ac_status=$?
5697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698  (exit $ac_status); }; } &&
5699	 { ac_try='test -s conftest.$ac_objext'
5700  { (case "(($ac_try" in
5701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702  *) ac_try_echo=$ac_try;;
5703esac
5704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705  (eval "$ac_try") 2>&5
5706  ac_status=$?
5707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708  (exit $ac_status); }; }; then
5709  ac_cv_prog_cxx_g=yes
5710else
5711  echo "$as_me: failed program was:" >&5
5712sed 's/^/| /' conftest.$ac_ext >&5
5713
5714
5715fi
5716
5717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718fi
5719
5720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721fi
5722
5723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5725fi
5726{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5727echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5728if test "$ac_test_CXXFLAGS" = set; then
5729  CXXFLAGS=$ac_save_CXXFLAGS
5730elif test $ac_cv_prog_cxx_g = yes; then
5731  if test "$GXX" = yes; then
5732    CXXFLAGS="-g -O2"
5733  else
5734    CXXFLAGS="-g"
5735  fi
5736else
5737  if test "$GXX" = yes; then
5738    CXXFLAGS="-O2"
5739  else
5740    CXXFLAGS=
5741  fi
5742fi
5743ac_ext=cpp
5744ac_cpp='$CXXCPP $CPPFLAGS'
5745ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5748
5749depcc="$CXX"  am_compiler_list=
5750
5751{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5752echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5753if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5754  echo $ECHO_N "(cached) $ECHO_C" >&6
5755else
5756  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5757  # We make a subdir and do the tests there.  Otherwise we can end up
5758  # making bogus files that we don't know about and never remove.  For
5759  # instance it was reported that on HP-UX the gcc test will end up
5760  # making a dummy file named `D' -- because `-MD' means `put the output
5761  # in D'.
5762  mkdir conftest.dir
5763  # Copy depcomp to subdir because otherwise we won't find it if we're
5764  # using a relative directory.
5765  cp "$am_depcomp" conftest.dir
5766  cd conftest.dir
5767  # We will build objects and dependencies in a subdirectory because
5768  # it helps to detect inapplicable dependency modes.  For instance
5769  # both Tru64's cc and ICC support -MD to output dependencies as a
5770  # side effect of compilation, but ICC will put the dependencies in
5771  # the current directory while Tru64 will put them in the object
5772  # directory.
5773  mkdir sub
5774
5775  am_cv_CXX_dependencies_compiler_type=none
5776  if test "$am_compiler_list" = ""; then
5777     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5778  fi
5779  for depmode in $am_compiler_list; do
5780    # Setup a source with many dependencies, because some compilers
5781    # like to wrap large dependency lists on column 80 (with \), and
5782    # we should not choose a depcomp mode which is confused by this.
5783    #
5784    # We need to recreate these files for each test, as the compiler may
5785    # overwrite some of them when testing with obscure command lines.
5786    # This happens at least with the AIX C compiler.
5787    : > sub/conftest.c
5788    for i in 1 2 3 4 5 6; do
5789      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5790      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5791      # Solaris 8's {/usr,}/bin/sh.
5792      touch sub/conftst$i.h
5793    done
5794    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5795
5796    case $depmode in
5797    nosideeffect)
5798      # after this tag, mechanisms are not by side-effect, so they'll
5799      # only be used when explicitly requested
5800      if test "x$enable_dependency_tracking" = xyes; then
5801	continue
5802      else
5803	break
5804      fi
5805      ;;
5806    none) break ;;
5807    esac
5808    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5809    # mode.  It turns out that the SunPro C++ compiler does not properly
5810    # handle `-M -o', and we need to detect this.
5811    if depmode=$depmode \
5812       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5813       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5814       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5815         >/dev/null 2>conftest.err &&
5816       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5817       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5818       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5819      # icc doesn't choke on unknown options, it will just issue warnings
5820      # or remarks (even with -Werror).  So we grep stderr for any message
5821      # that says an option was ignored or not supported.
5822      # When given -MP, icc 7.0 and 7.1 complain thusly:
5823      #   icc: Command line warning: ignoring option '-M'; no argument required
5824      # The diagnosis changed in icc 8.0:
5825      #   icc: Command line remark: option '-MP' not supported
5826      if (grep 'ignoring option' conftest.err ||
5827          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5828        am_cv_CXX_dependencies_compiler_type=$depmode
5829        break
5830      fi
5831    fi
5832  done
5833
5834  cd ..
5835  rm -rf conftest.dir
5836else
5837  am_cv_CXX_dependencies_compiler_type=none
5838fi
5839
5840fi
5841{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5842echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5843CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5844
5845
5846
5847if
5848  test "x$enable_dependency_tracking" != xno \
5849  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5850  am__fastdepCXX_TRUE=
5851  am__fastdepCXX_FALSE='#'
5852else
5853  am__fastdepCXX_TRUE='#'
5854  am__fastdepCXX_FALSE=
5855fi
5856
5857
5858
5859
5860if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5861    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5862    (test "X$CXX" != "Xg++"))) ; then
5863  ac_ext=cpp
5864ac_cpp='$CXXCPP $CPPFLAGS'
5865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5868{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5869echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5870if test -z "$CXXCPP"; then
5871  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5872  echo $ECHO_N "(cached) $ECHO_C" >&6
5873else
5874      # Double quotes because CXXCPP needs to be expanded
5875    for CXXCPP in "$CXX -E" "/lib/cpp"
5876    do
5877      ac_preproc_ok=false
5878for ac_cxx_preproc_warn_flag in '' yes
5879do
5880  # Use a header file that comes with gcc, so configuring glibc
5881  # with a fresh cross-compiler works.
5882  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5883  # <limits.h> exists even on freestanding compilers.
5884  # On the NeXT, cc -E runs the code through the compiler's parser,
5885  # not just through cpp. "Syntax error" is here to catch this case.
5886  cat >conftest.$ac_ext <<_ACEOF
5887/* confdefs.h.  */
5888_ACEOF
5889cat confdefs.h >>conftest.$ac_ext
5890cat >>conftest.$ac_ext <<_ACEOF
5891/* end confdefs.h.  */
5892#ifdef __STDC__
5893# include <limits.h>
5894#else
5895# include <assert.h>
5896#endif
5897		     Syntax error
5898_ACEOF
5899if { (ac_try="$ac_cpp conftest.$ac_ext"
5900case "(($ac_try" in
5901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902  *) ac_try_echo=$ac_try;;
5903esac
5904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5906  ac_status=$?
5907  grep -v '^ *+' conftest.er1 >conftest.err
5908  rm -f conftest.er1
5909  cat conftest.err >&5
5910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911  (exit $ac_status); } >/dev/null; then
5912  if test -s conftest.err; then
5913    ac_cpp_err=$ac_cxx_preproc_warn_flag
5914    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5915  else
5916    ac_cpp_err=
5917  fi
5918else
5919  ac_cpp_err=yes
5920fi
5921if test -z "$ac_cpp_err"; then
5922  :
5923else
5924  echo "$as_me: failed program was:" >&5
5925sed 's/^/| /' conftest.$ac_ext >&5
5926
5927  # Broken: fails on valid input.
5928continue
5929fi
5930
5931rm -f conftest.err conftest.$ac_ext
5932
5933  # OK, works on sane cases.  Now check whether nonexistent headers
5934  # can be detected and how.
5935  cat >conftest.$ac_ext <<_ACEOF
5936/* confdefs.h.  */
5937_ACEOF
5938cat confdefs.h >>conftest.$ac_ext
5939cat >>conftest.$ac_ext <<_ACEOF
5940/* end confdefs.h.  */
5941#include <ac_nonexistent.h>
5942_ACEOF
5943if { (ac_try="$ac_cpp conftest.$ac_ext"
5944case "(($ac_try" in
5945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946  *) ac_try_echo=$ac_try;;
5947esac
5948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5950  ac_status=$?
5951  grep -v '^ *+' conftest.er1 >conftest.err
5952  rm -f conftest.er1
5953  cat conftest.err >&5
5954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955  (exit $ac_status); } >/dev/null; then
5956  if test -s conftest.err; then
5957    ac_cpp_err=$ac_cxx_preproc_warn_flag
5958    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5959  else
5960    ac_cpp_err=
5961  fi
5962else
5963  ac_cpp_err=yes
5964fi
5965if test -z "$ac_cpp_err"; then
5966  # Broken: success on invalid input.
5967continue
5968else
5969  echo "$as_me: failed program was:" >&5
5970sed 's/^/| /' conftest.$ac_ext >&5
5971
5972  # Passes both tests.
5973ac_preproc_ok=:
5974break
5975fi
5976
5977rm -f conftest.err conftest.$ac_ext
5978
5979done
5980# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5981rm -f conftest.err conftest.$ac_ext
5982if $ac_preproc_ok; then
5983  break
5984fi
5985
5986    done
5987    ac_cv_prog_CXXCPP=$CXXCPP
5988
5989fi
5990  CXXCPP=$ac_cv_prog_CXXCPP
5991else
5992  ac_cv_prog_CXXCPP=$CXXCPP
5993fi
5994{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5995echo "${ECHO_T}$CXXCPP" >&6; }
5996ac_preproc_ok=false
5997for ac_cxx_preproc_warn_flag in '' yes
5998do
5999  # Use a header file that comes with gcc, so configuring glibc
6000  # with a fresh cross-compiler works.
6001  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6002  # <limits.h> exists even on freestanding compilers.
6003  # On the NeXT, cc -E runs the code through the compiler's parser,
6004  # not just through cpp. "Syntax error" is here to catch this case.
6005  cat >conftest.$ac_ext <<_ACEOF
6006/* confdefs.h.  */
6007_ACEOF
6008cat confdefs.h >>conftest.$ac_ext
6009cat >>conftest.$ac_ext <<_ACEOF
6010/* end confdefs.h.  */
6011#ifdef __STDC__
6012# include <limits.h>
6013#else
6014# include <assert.h>
6015#endif
6016		     Syntax error
6017_ACEOF
6018if { (ac_try="$ac_cpp conftest.$ac_ext"
6019case "(($ac_try" in
6020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021  *) ac_try_echo=$ac_try;;
6022esac
6023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6025  ac_status=$?
6026  grep -v '^ *+' conftest.er1 >conftest.err
6027  rm -f conftest.er1
6028  cat conftest.err >&5
6029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030  (exit $ac_status); } >/dev/null; then
6031  if test -s conftest.err; then
6032    ac_cpp_err=$ac_cxx_preproc_warn_flag
6033    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6034  else
6035    ac_cpp_err=
6036  fi
6037else
6038  ac_cpp_err=yes
6039fi
6040if test -z "$ac_cpp_err"; then
6041  :
6042else
6043  echo "$as_me: failed program was:" >&5
6044sed 's/^/| /' conftest.$ac_ext >&5
6045
6046  # Broken: fails on valid input.
6047continue
6048fi
6049
6050rm -f conftest.err conftest.$ac_ext
6051
6052  # OK, works on sane cases.  Now check whether nonexistent headers
6053  # can be detected and how.
6054  cat >conftest.$ac_ext <<_ACEOF
6055/* confdefs.h.  */
6056_ACEOF
6057cat confdefs.h >>conftest.$ac_ext
6058cat >>conftest.$ac_ext <<_ACEOF
6059/* end confdefs.h.  */
6060#include <ac_nonexistent.h>
6061_ACEOF
6062if { (ac_try="$ac_cpp conftest.$ac_ext"
6063case "(($ac_try" in
6064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065  *) ac_try_echo=$ac_try;;
6066esac
6067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6069  ac_status=$?
6070  grep -v '^ *+' conftest.er1 >conftest.err
6071  rm -f conftest.er1
6072  cat conftest.err >&5
6073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074  (exit $ac_status); } >/dev/null; then
6075  if test -s conftest.err; then
6076    ac_cpp_err=$ac_cxx_preproc_warn_flag
6077    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6078  else
6079    ac_cpp_err=
6080  fi
6081else
6082  ac_cpp_err=yes
6083fi
6084if test -z "$ac_cpp_err"; then
6085  # Broken: success on invalid input.
6086continue
6087else
6088  echo "$as_me: failed program was:" >&5
6089sed 's/^/| /' conftest.$ac_ext >&5
6090
6091  # Passes both tests.
6092ac_preproc_ok=:
6093break
6094fi
6095
6096rm -f conftest.err conftest.$ac_ext
6097
6098done
6099# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6100rm -f conftest.err conftest.$ac_ext
6101if $ac_preproc_ok; then
6102  :
6103else
6104  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6105See \`config.log' for more details." >&5
6106echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6107See \`config.log' for more details." >&2;}
6108   { (exit 1); exit 1; }; }
6109fi
6110
6111ac_ext=cpp
6112ac_cpp='$CXXCPP $CPPFLAGS'
6113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6116
6117fi
6118
6119
6120ac_ext=f
6121ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6122ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6123ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6124if test -n "$ac_tool_prefix"; then
6125  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6126  do
6127    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6128set dummy $ac_tool_prefix$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_F77+set}" = set; then
6132  echo $ECHO_N "(cached) $ECHO_C" >&6
6133else
6134  if test -n "$F77"; then
6135  ac_cv_prog_F77="$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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6144    ac_cv_prog_F77="$ac_tool_prefix$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
6154F77=$ac_cv_prog_F77
6155if test -n "$F77"; then
6156  { echo "$as_me:$LINENO: result: $F77" >&5
6157echo "${ECHO_T}$F77" >&6; }
6158else
6159  { echo "$as_me:$LINENO: result: no" >&5
6160echo "${ECHO_T}no" >&6; }
6161fi
6162
6163
6164    test -n "$F77" && break
6165  done
6166fi
6167if test -z "$F77"; then
6168  ac_ct_F77=$F77
6169  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
6170do
6171  # Extract the first word of "$ac_prog", so it can be a program name with args.
6172set dummy $ac_prog; ac_word=$2
6173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6175if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6176  echo $ECHO_N "(cached) $ECHO_C" >&6
6177else
6178  if test -n "$ac_ct_F77"; then
6179  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6180else
6181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182for as_dir in $PATH
6183do
6184  IFS=$as_save_IFS
6185  test -z "$as_dir" && as_dir=.
6186  for ac_exec_ext in '' $ac_executable_extensions; do
6187  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6188    ac_cv_prog_ac_ct_F77="$ac_prog"
6189    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190    break 2
6191  fi
6192done
6193done
6194IFS=$as_save_IFS
6195
6196fi
6197fi
6198ac_ct_F77=$ac_cv_prog_ac_ct_F77
6199if test -n "$ac_ct_F77"; then
6200  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6201echo "${ECHO_T}$ac_ct_F77" >&6; }
6202else
6203  { echo "$as_me:$LINENO: result: no" >&5
6204echo "${ECHO_T}no" >&6; }
6205fi
6206
6207
6208  test -n "$ac_ct_F77" && break
6209done
6210
6211  if test "x$ac_ct_F77" = x; then
6212    F77=""
6213  else
6214    case $cross_compiling:$ac_tool_warned in
6215yes:)
6216{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6217whose name does not start with the host triplet.  If you think this
6218configuration is useful to you, please write to autoconf@gnu.org." >&5
6219echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6220whose name does not start with the host triplet.  If you think this
6221configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6222ac_tool_warned=yes ;;
6223esac
6224    F77=$ac_ct_F77
6225  fi
6226fi
6227
6228
6229# Provide some information about the compiler.
6230echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6231ac_compiler=`set X $ac_compile; echo $2`
6232{ (ac_try="$ac_compiler --version >&5"
6233case "(($ac_try" in
6234  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235  *) ac_try_echo=$ac_try;;
6236esac
6237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238  (eval "$ac_compiler --version >&5") 2>&5
6239  ac_status=$?
6240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241  (exit $ac_status); }
6242{ (ac_try="$ac_compiler -v >&5"
6243case "(($ac_try" in
6244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245  *) ac_try_echo=$ac_try;;
6246esac
6247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248  (eval "$ac_compiler -v >&5") 2>&5
6249  ac_status=$?
6250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251  (exit $ac_status); }
6252{ (ac_try="$ac_compiler -V >&5"
6253case "(($ac_try" in
6254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255  *) ac_try_echo=$ac_try;;
6256esac
6257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258  (eval "$ac_compiler -V >&5") 2>&5
6259  ac_status=$?
6260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261  (exit $ac_status); }
6262rm -f a.out
6263
6264# If we don't use `.F' as extension, the preprocessor is not run on the
6265# input file.  (Note that this only needs to work for GNU compilers.)
6266ac_save_ext=$ac_ext
6267ac_ext=F
6268{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6269echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6270if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6271  echo $ECHO_N "(cached) $ECHO_C" >&6
6272else
6273  cat >conftest.$ac_ext <<_ACEOF
6274      program main
6275#ifndef __GNUC__
6276       choke me
6277#endif
6278
6279      end
6280_ACEOF
6281rm -f conftest.$ac_objext
6282if { (ac_try="$ac_compile"
6283case "(($ac_try" in
6284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285  *) ac_try_echo=$ac_try;;
6286esac
6287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288  (eval "$ac_compile") 2>conftest.er1
6289  ac_status=$?
6290  grep -v '^ *+' conftest.er1 >conftest.err
6291  rm -f conftest.er1
6292  cat conftest.err >&5
6293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294  (exit $ac_status); } &&
6295	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6296  { (case "(($ac_try" in
6297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298  *) ac_try_echo=$ac_try;;
6299esac
6300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301  (eval "$ac_try") 2>&5
6302  ac_status=$?
6303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304  (exit $ac_status); }; } &&
6305	 { ac_try='test -s conftest.$ac_objext'
6306  { (case "(($ac_try" in
6307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308  *) ac_try_echo=$ac_try;;
6309esac
6310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311  (eval "$ac_try") 2>&5
6312  ac_status=$?
6313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314  (exit $ac_status); }; }; then
6315  ac_compiler_gnu=yes
6316else
6317  echo "$as_me: failed program was:" >&5
6318sed 's/^/| /' conftest.$ac_ext >&5
6319
6320	ac_compiler_gnu=no
6321fi
6322
6323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6325
6326fi
6327{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6328echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6329ac_ext=$ac_save_ext
6330ac_test_FFLAGS=${FFLAGS+set}
6331ac_save_FFLAGS=$FFLAGS
6332FFLAGS=
6333{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6334echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6335if test "${ac_cv_prog_f77_g+set}" = set; then
6336  echo $ECHO_N "(cached) $ECHO_C" >&6
6337else
6338  FFLAGS=-g
6339cat >conftest.$ac_ext <<_ACEOF
6340      program main
6341
6342      end
6343_ACEOF
6344rm -f conftest.$ac_objext
6345if { (ac_try="$ac_compile"
6346case "(($ac_try" in
6347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348  *) ac_try_echo=$ac_try;;
6349esac
6350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351  (eval "$ac_compile") 2>conftest.er1
6352  ac_status=$?
6353  grep -v '^ *+' conftest.er1 >conftest.err
6354  rm -f conftest.er1
6355  cat conftest.err >&5
6356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357  (exit $ac_status); } &&
6358	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6359  { (case "(($ac_try" in
6360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361  *) ac_try_echo=$ac_try;;
6362esac
6363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6364  (eval "$ac_try") 2>&5
6365  ac_status=$?
6366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367  (exit $ac_status); }; } &&
6368	 { ac_try='test -s conftest.$ac_objext'
6369  { (case "(($ac_try" in
6370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371  *) ac_try_echo=$ac_try;;
6372esac
6373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6374  (eval "$ac_try") 2>&5
6375  ac_status=$?
6376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377  (exit $ac_status); }; }; then
6378  ac_cv_prog_f77_g=yes
6379else
6380  echo "$as_me: failed program was:" >&5
6381sed 's/^/| /' conftest.$ac_ext >&5
6382
6383	ac_cv_prog_f77_g=no
6384fi
6385
6386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6387
6388fi
6389{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6390echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6391if test "$ac_test_FFLAGS" = set; then
6392  FFLAGS=$ac_save_FFLAGS
6393elif test $ac_cv_prog_f77_g = yes; then
6394  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6395    FFLAGS="-g -O2"
6396  else
6397    FFLAGS="-g"
6398  fi
6399else
6400  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6401    FFLAGS="-O2"
6402  else
6403    FFLAGS=
6404  fi
6405fi
6406
6407G77=`test $ac_compiler_gnu = yes && echo yes`
6408ac_ext=c
6409ac_cpp='$CPP $CPPFLAGS'
6410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6412ac_compiler_gnu=$ac_cv_c_compiler_gnu
6413
6414
6415
6416# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6417
6418# find the maximum length of command line arguments
6419{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6420echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6421if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6422  echo $ECHO_N "(cached) $ECHO_C" >&6
6423else
6424    i=0
6425  teststring="ABCD"
6426
6427  case $build_os in
6428  msdosdjgpp*)
6429    # On DJGPP, this test can blow up pretty badly due to problems in libc
6430    # (any single argument exceeding 2000 bytes causes a buffer overrun
6431    # during glob expansion).  Even if it were fixed, the result of this
6432    # check would be larger than it should be.
6433    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6434    ;;
6435
6436  gnu*)
6437    # Under GNU Hurd, this test is not required because there is
6438    # no limit to the length of command line arguments.
6439    # Libtool will interpret -1 as no limit whatsoever
6440    lt_cv_sys_max_cmd_len=-1;
6441    ;;
6442
6443  cygwin* | mingw*)
6444    # On Win9x/ME, this test blows up -- it succeeds, but takes
6445    # about 5 minutes as the teststring grows exponentially.
6446    # Worse, since 9x/ME are not pre-emptively multitasking,
6447    # you end up with a "frozen" computer, even though with patience
6448    # the test eventually succeeds (with a max line length of 256k).
6449    # Instead, let's just punt: use the minimum linelength reported by
6450    # all of the supported platforms: 8192 (on NT/2K/XP).
6451    lt_cv_sys_max_cmd_len=8192;
6452    ;;
6453
6454  amigaos*)
6455    # On AmigaOS with pdksh, this test takes hours, literally.
6456    # So we just punt and use a minimum line length of 8192.
6457    lt_cv_sys_max_cmd_len=8192;
6458    ;;
6459
6460  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6461    # This has been around since 386BSD, at least.  Likely further.
6462    if test -x /sbin/sysctl; then
6463      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6464    elif test -x /usr/sbin/sysctl; then
6465      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6466    else
6467      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6468    fi
6469    # And add a safety zone
6470    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6471    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6472    ;;
6473
6474  interix*)
6475    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6476    lt_cv_sys_max_cmd_len=196608
6477    ;;
6478
6479  osf*)
6480    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6481    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6482    # nice to cause kernel panics so lets avoid the loop below.
6483    # First set a reasonable default.
6484    lt_cv_sys_max_cmd_len=16384
6485    #
6486    if test -x /sbin/sysconfig; then
6487      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6488        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6489      esac
6490    fi
6491    ;;
6492  sco3.2v5*)
6493    lt_cv_sys_max_cmd_len=102400
6494    ;;
6495  sysv5* | sco5v6* | sysv4.2uw2*)
6496    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6497    if test -n "$kargmax"; then
6498      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6499    else
6500      lt_cv_sys_max_cmd_len=32768
6501    fi
6502    ;;
6503  *)
6504    # If test is not a shell built-in, we'll probably end up computing a
6505    # maximum length that is only half of the actual maximum length, but
6506    # we can't tell.
6507    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6508    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6509	       = "XX$teststring") >/dev/null 2>&1 &&
6510	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6511	    lt_cv_sys_max_cmd_len=$new_result &&
6512	    test $i != 17 # 1/2 MB should be enough
6513    do
6514      i=`expr $i + 1`
6515      teststring=$teststring$teststring
6516    done
6517    teststring=
6518    # Add a significant safety factor because C++ compilers can tack on massive
6519    # amounts of additional arguments before passing them to the linker.
6520    # It appears as though 1/2 is a usable value.
6521    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6522    ;;
6523  esac
6524
6525fi
6526
6527if test -n $lt_cv_sys_max_cmd_len ; then
6528  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6529echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6530else
6531  { echo "$as_me:$LINENO: result: none" >&5
6532echo "${ECHO_T}none" >&6; }
6533fi
6534
6535
6536
6537
6538# Check for command to grab the raw symbol name followed by C symbol from nm.
6539{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6540echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6541if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6542  echo $ECHO_N "(cached) $ECHO_C" >&6
6543else
6544
6545# These are sane defaults that work on at least a few old systems.
6546# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6547
6548# Character class describing NM global symbol codes.
6549symcode='[BCDEGRST]'
6550
6551# Regexp to match symbols that can be accessed directly from C.
6552sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6553
6554# Transform an extracted symbol line into a proper C declaration
6555lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6556
6557# Transform an extracted symbol line into symbol name and symbol address
6558lt_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'"
6559
6560# Define system-specific variables.
6561case $host_os in
6562aix*)
6563  symcode='[BCDT]'
6564  ;;
6565cygwin* | mingw* | pw32*)
6566  symcode='[ABCDGISTW]'
6567  ;;
6568hpux*) # Its linker distinguishes data from code symbols
6569  if test "$host_cpu" = ia64; then
6570    symcode='[ABCDEGRST]'
6571  fi
6572  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6573  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'"
6574  ;;
6575linux* | k*bsd*-gnu)
6576  if test "$host_cpu" = ia64; then
6577    symcode='[ABCDGIRSTW]'
6578    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6579    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'"
6580  fi
6581  ;;
6582irix* | nonstopux*)
6583  symcode='[BCDEGRST]'
6584  ;;
6585osf*)
6586  symcode='[BCDEGQRST]'
6587  ;;
6588solaris*)
6589  symcode='[BDRT]'
6590  ;;
6591sco3.2v5*)
6592  symcode='[DT]'
6593  ;;
6594sysv4.2uw2*)
6595  symcode='[DT]'
6596  ;;
6597sysv5* | sco5v6* | unixware* | OpenUNIX*)
6598  symcode='[ABDT]'
6599  ;;
6600sysv4)
6601  symcode='[DFNSTU]'
6602  ;;
6603esac
6604
6605# Handle CRLF in mingw tool chain
6606opt_cr=
6607case $build_os in
6608mingw*)
6609  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6610  ;;
6611esac
6612
6613# If we're using GNU nm, then use its standard symbol codes.
6614case `$NM -V 2>&1` in
6615*GNU* | *'with BFD'*)
6616  symcode='[ABCDGIRSTW]' ;;
6617esac
6618
6619# Try without a prefix undercore, then with it.
6620for ac_symprfx in "" "_"; do
6621
6622  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6623  symxfrm="\\1 $ac_symprfx\\2 \\2"
6624
6625  # Write the raw and C identifiers.
6626  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6627
6628  # Check to see that the pipe works correctly.
6629  pipe_works=no
6630
6631  rm -f conftest*
6632  cat > conftest.$ac_ext <<EOF
6633#ifdef __cplusplus
6634extern "C" {
6635#endif
6636char nm_test_var;
6637void nm_test_func(){}
6638#ifdef __cplusplus
6639}
6640#endif
6641int main(){nm_test_var='a';nm_test_func();return(0);}
6642EOF
6643
6644  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6645  (eval $ac_compile) 2>&5
6646  ac_status=$?
6647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648  (exit $ac_status); }; then
6649    # Now try to grab the symbols.
6650    nlist=conftest.nm
6651    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6652  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6653  ac_status=$?
6654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655  (exit $ac_status); } && test -s "$nlist"; then
6656      # Try sorting and uniquifying the output.
6657      if sort "$nlist" | uniq > "$nlist"T; then
6658	mv -f "$nlist"T "$nlist"
6659      else
6660	rm -f "$nlist"T
6661      fi
6662
6663      # Make sure that we snagged all the symbols we need.
6664      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6665	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6666	  cat <<EOF > conftest.$ac_ext
6667#ifdef __cplusplus
6668extern "C" {
6669#endif
6670
6671EOF
6672	  # Now generate the symbol file.
6673	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6674
6675	  cat <<EOF >> conftest.$ac_ext
6676#if defined (__STDC__) && __STDC__
6677# define lt_ptr_t void *
6678#else
6679# define lt_ptr_t char *
6680# define const
6681#endif
6682
6683/* The mapping between symbol names and symbols. */
6684const struct {
6685  const char *name;
6686  lt_ptr_t address;
6687}
6688lt_preloaded_symbols[] =
6689{
6690EOF
6691	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6692	  cat <<\EOF >> conftest.$ac_ext
6693  {0, (lt_ptr_t) 0}
6694};
6695
6696#ifdef __cplusplus
6697}
6698#endif
6699EOF
6700	  # Now try linking the two files.
6701	  mv conftest.$ac_objext conftstm.$ac_objext
6702	  lt_save_LIBS="$LIBS"
6703	  lt_save_CFLAGS="$CFLAGS"
6704	  LIBS="conftstm.$ac_objext"
6705	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6706	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6707  (eval $ac_link) 2>&5
6708  ac_status=$?
6709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6711	    pipe_works=yes
6712	  fi
6713	  LIBS="$lt_save_LIBS"
6714	  CFLAGS="$lt_save_CFLAGS"
6715	else
6716	  echo "cannot find nm_test_func in $nlist" >&5
6717	fi
6718      else
6719	echo "cannot find nm_test_var in $nlist" >&5
6720      fi
6721    else
6722      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6723    fi
6724  else
6725    echo "$progname: failed program was:" >&5
6726    cat conftest.$ac_ext >&5
6727  fi
6728  rm -f conftest* conftst*
6729
6730  # Do not use the global_symbol_pipe unless it works.
6731  if test "$pipe_works" = yes; then
6732    break
6733  else
6734    lt_cv_sys_global_symbol_pipe=
6735  fi
6736done
6737
6738fi
6739
6740if test -z "$lt_cv_sys_global_symbol_pipe"; then
6741  lt_cv_sys_global_symbol_to_cdecl=
6742fi
6743if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6744  { echo "$as_me:$LINENO: result: failed" >&5
6745echo "${ECHO_T}failed" >&6; }
6746else
6747  { echo "$as_me:$LINENO: result: ok" >&5
6748echo "${ECHO_T}ok" >&6; }
6749fi
6750
6751{ echo "$as_me:$LINENO: checking for objdir" >&5
6752echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6753if test "${lt_cv_objdir+set}" = set; then
6754  echo $ECHO_N "(cached) $ECHO_C" >&6
6755else
6756  rm -f .libs 2>/dev/null
6757mkdir .libs 2>/dev/null
6758if test -d .libs; then
6759  lt_cv_objdir=.libs
6760else
6761  # MS-DOS does not allow filenames that begin with a dot.
6762  lt_cv_objdir=_libs
6763fi
6764rmdir .libs 2>/dev/null
6765fi
6766{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6767echo "${ECHO_T}$lt_cv_objdir" >&6; }
6768objdir=$lt_cv_objdir
6769
6770
6771
6772
6773
6774case $host_os in
6775aix3*)
6776  # AIX sometimes has problems with the GCC collect2 program.  For some
6777  # reason, if we set the COLLECT_NAMES environment variable, the problems
6778  # vanish in a puff of smoke.
6779  if test "X${COLLECT_NAMES+set}" != Xset; then
6780    COLLECT_NAMES=
6781    export COLLECT_NAMES
6782  fi
6783  ;;
6784esac
6785
6786# Sed substitution that helps us do robust quoting.  It backslashifies
6787# metacharacters that are still active within double-quoted strings.
6788Xsed='sed -e 1s/^X//'
6789sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6790
6791# Same as above, but do not quote variable references.
6792double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6793
6794# Sed substitution to delay expansion of an escaped shell variable in a
6795# double_quote_subst'ed string.
6796delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6797
6798# Sed substitution to avoid accidental globbing in evaled expressions
6799no_glob_subst='s/\*/\\\*/g'
6800
6801# Constants:
6802rm="rm -f"
6803
6804# Global variables:
6805default_ofile=libtool
6806can_build_shared=yes
6807
6808# All known linkers require a `.a' archive for static linking (except MSVC,
6809# which needs '.lib').
6810libext=a
6811ltmain="$ac_aux_dir/ltmain.sh"
6812ofile="$default_ofile"
6813with_gnu_ld="$lt_cv_prog_gnu_ld"
6814
6815if test -n "$ac_tool_prefix"; then
6816  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6817set dummy ${ac_tool_prefix}ar; ac_word=$2
6818{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820if test "${ac_cv_prog_AR+set}" = set; then
6821  echo $ECHO_N "(cached) $ECHO_C" >&6
6822else
6823  if test -n "$AR"; then
6824  ac_cv_prog_AR="$AR" # Let the user override the test.
6825else
6826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827for as_dir in $PATH
6828do
6829  IFS=$as_save_IFS
6830  test -z "$as_dir" && as_dir=.
6831  for ac_exec_ext in '' $ac_executable_extensions; do
6832  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6833    ac_cv_prog_AR="${ac_tool_prefix}ar"
6834    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835    break 2
6836  fi
6837done
6838done
6839IFS=$as_save_IFS
6840
6841fi
6842fi
6843AR=$ac_cv_prog_AR
6844if test -n "$AR"; then
6845  { echo "$as_me:$LINENO: result: $AR" >&5
6846echo "${ECHO_T}$AR" >&6; }
6847else
6848  { echo "$as_me:$LINENO: result: no" >&5
6849echo "${ECHO_T}no" >&6; }
6850fi
6851
6852
6853fi
6854if test -z "$ac_cv_prog_AR"; then
6855  ac_ct_AR=$AR
6856  # Extract the first word of "ar", so it can be a program name with args.
6857set dummy ar; ac_word=$2
6858{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6861  echo $ECHO_N "(cached) $ECHO_C" >&6
6862else
6863  if test -n "$ac_ct_AR"; then
6864  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6865else
6866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867for as_dir in $PATH
6868do
6869  IFS=$as_save_IFS
6870  test -z "$as_dir" && as_dir=.
6871  for ac_exec_ext in '' $ac_executable_extensions; do
6872  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6873    ac_cv_prog_ac_ct_AR="ar"
6874    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875    break 2
6876  fi
6877done
6878done
6879IFS=$as_save_IFS
6880
6881fi
6882fi
6883ac_ct_AR=$ac_cv_prog_ac_ct_AR
6884if test -n "$ac_ct_AR"; then
6885  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6886echo "${ECHO_T}$ac_ct_AR" >&6; }
6887else
6888  { echo "$as_me:$LINENO: result: no" >&5
6889echo "${ECHO_T}no" >&6; }
6890fi
6891
6892  if test "x$ac_ct_AR" = x; then
6893    AR="false"
6894  else
6895    case $cross_compiling:$ac_tool_warned in
6896yes:)
6897{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6898whose name does not start with the host triplet.  If you think this
6899configuration is useful to you, please write to autoconf@gnu.org." >&5
6900echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6901whose name does not start with the host triplet.  If you think this
6902configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6903ac_tool_warned=yes ;;
6904esac
6905    AR=$ac_ct_AR
6906  fi
6907else
6908  AR="$ac_cv_prog_AR"
6909fi
6910
6911if test -n "$ac_tool_prefix"; then
6912  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6913set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6914{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6916if test "${ac_cv_prog_RANLIB+set}" = set; then
6917  echo $ECHO_N "(cached) $ECHO_C" >&6
6918else
6919  if test -n "$RANLIB"; then
6920  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6921else
6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925  IFS=$as_save_IFS
6926  test -z "$as_dir" && as_dir=.
6927  for ac_exec_ext in '' $ac_executable_extensions; do
6928  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6929    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6930    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931    break 2
6932  fi
6933done
6934done
6935IFS=$as_save_IFS
6936
6937fi
6938fi
6939RANLIB=$ac_cv_prog_RANLIB
6940if test -n "$RANLIB"; then
6941  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6942echo "${ECHO_T}$RANLIB" >&6; }
6943else
6944  { echo "$as_me:$LINENO: result: no" >&5
6945echo "${ECHO_T}no" >&6; }
6946fi
6947
6948
6949fi
6950if test -z "$ac_cv_prog_RANLIB"; then
6951  ac_ct_RANLIB=$RANLIB
6952  # Extract the first word of "ranlib", so it can be a program name with args.
6953set dummy ranlib; ac_word=$2
6954{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6956if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6957  echo $ECHO_N "(cached) $ECHO_C" >&6
6958else
6959  if test -n "$ac_ct_RANLIB"; then
6960  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6961else
6962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963for as_dir in $PATH
6964do
6965  IFS=$as_save_IFS
6966  test -z "$as_dir" && as_dir=.
6967  for ac_exec_ext in '' $ac_executable_extensions; do
6968  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6969    ac_cv_prog_ac_ct_RANLIB="ranlib"
6970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971    break 2
6972  fi
6973done
6974done
6975IFS=$as_save_IFS
6976
6977fi
6978fi
6979ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6980if test -n "$ac_ct_RANLIB"; then
6981  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6982echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6983else
6984  { echo "$as_me:$LINENO: result: no" >&5
6985echo "${ECHO_T}no" >&6; }
6986fi
6987
6988  if test "x$ac_ct_RANLIB" = x; then
6989    RANLIB=":"
6990  else
6991    case $cross_compiling:$ac_tool_warned in
6992yes:)
6993{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6994whose name does not start with the host triplet.  If you think this
6995configuration is useful to you, please write to autoconf@gnu.org." >&5
6996echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6997whose name does not start with the host triplet.  If you think this
6998configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6999ac_tool_warned=yes ;;
7000esac
7001    RANLIB=$ac_ct_RANLIB
7002  fi
7003else
7004  RANLIB="$ac_cv_prog_RANLIB"
7005fi
7006
7007if test -n "$ac_tool_prefix"; then
7008  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7009set dummy ${ac_tool_prefix}strip; ac_word=$2
7010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7012if test "${ac_cv_prog_STRIP+set}" = set; then
7013  echo $ECHO_N "(cached) $ECHO_C" >&6
7014else
7015  if test -n "$STRIP"; then
7016  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7017else
7018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021  IFS=$as_save_IFS
7022  test -z "$as_dir" && as_dir=.
7023  for ac_exec_ext in '' $ac_executable_extensions; do
7024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7025    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7026    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027    break 2
7028  fi
7029done
7030done
7031IFS=$as_save_IFS
7032
7033fi
7034fi
7035STRIP=$ac_cv_prog_STRIP
7036if test -n "$STRIP"; then
7037  { echo "$as_me:$LINENO: result: $STRIP" >&5
7038echo "${ECHO_T}$STRIP" >&6; }
7039else
7040  { echo "$as_me:$LINENO: result: no" >&5
7041echo "${ECHO_T}no" >&6; }
7042fi
7043
7044
7045fi
7046if test -z "$ac_cv_prog_STRIP"; then
7047  ac_ct_STRIP=$STRIP
7048  # Extract the first word of "strip", so it can be a program name with args.
7049set dummy strip; ac_word=$2
7050{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7052if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7053  echo $ECHO_N "(cached) $ECHO_C" >&6
7054else
7055  if test -n "$ac_ct_STRIP"; then
7056  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7057else
7058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061  IFS=$as_save_IFS
7062  test -z "$as_dir" && as_dir=.
7063  for ac_exec_ext in '' $ac_executable_extensions; do
7064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065    ac_cv_prog_ac_ct_STRIP="strip"
7066    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067    break 2
7068  fi
7069done
7070done
7071IFS=$as_save_IFS
7072
7073fi
7074fi
7075ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7076if test -n "$ac_ct_STRIP"; then
7077  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7078echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7079else
7080  { echo "$as_me:$LINENO: result: no" >&5
7081echo "${ECHO_T}no" >&6; }
7082fi
7083
7084  if test "x$ac_ct_STRIP" = x; then
7085    STRIP=":"
7086  else
7087    case $cross_compiling:$ac_tool_warned in
7088yes:)
7089{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7090whose name does not start with the host triplet.  If you think this
7091configuration is useful to you, please write to autoconf@gnu.org." >&5
7092echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7093whose name does not start with the host triplet.  If you think this
7094configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7095ac_tool_warned=yes ;;
7096esac
7097    STRIP=$ac_ct_STRIP
7098  fi
7099else
7100  STRIP="$ac_cv_prog_STRIP"
7101fi
7102
7103
7104old_CC="$CC"
7105old_CFLAGS="$CFLAGS"
7106
7107# Set sane defaults for various variables
7108test -z "$AR" && AR=ar
7109test -z "$AR_FLAGS" && AR_FLAGS=cru
7110test -z "$AS" && AS=as
7111test -z "$CC" && CC=cc
7112test -z "$LTCC" && LTCC=$CC
7113test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7114test -z "$DLLTOOL" && DLLTOOL=dlltool
7115test -z "$LD" && LD=ld
7116test -z "$LN_S" && LN_S="ln -s"
7117test -z "$MAGIC_CMD" && MAGIC_CMD=file
7118test -z "$NM" && NM=nm
7119test -z "$SED" && SED=sed
7120test -z "$OBJDUMP" && OBJDUMP=objdump
7121test -z "$RANLIB" && RANLIB=:
7122test -z "$STRIP" && STRIP=:
7123test -z "$ac_objext" && ac_objext=o
7124
7125# Determine commands to create old-style static archives.
7126old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7127old_postinstall_cmds='chmod 644 $oldlib'
7128old_postuninstall_cmds=
7129
7130if test -n "$RANLIB"; then
7131  case $host_os in
7132  openbsd*)
7133    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7134    ;;
7135  *)
7136    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7137    ;;
7138  esac
7139  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7140fi
7141
7142for cc_temp in $compiler""; do
7143  case $cc_temp in
7144    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7145    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7146    \-*) ;;
7147    *) break;;
7148  esac
7149done
7150cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7151
7152
7153# Only perform the check for file, if the check method requires it
7154case $deplibs_check_method in
7155file_magic*)
7156  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7157    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7158echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7159if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7160  echo $ECHO_N "(cached) $ECHO_C" >&6
7161else
7162  case $MAGIC_CMD in
7163[\\/*] |  ?:[\\/]*)
7164  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7165  ;;
7166*)
7167  lt_save_MAGIC_CMD="$MAGIC_CMD"
7168  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7169  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7170  for ac_dir in $ac_dummy; do
7171    IFS="$lt_save_ifs"
7172    test -z "$ac_dir" && ac_dir=.
7173    if test -f $ac_dir/${ac_tool_prefix}file; then
7174      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7175      if test -n "$file_magic_test_file"; then
7176	case $deplibs_check_method in
7177	"file_magic "*)
7178	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7179	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7180	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7181	    $EGREP "$file_magic_regex" > /dev/null; then
7182	    :
7183	  else
7184	    cat <<EOF 1>&2
7185
7186*** Warning: the command libtool uses to detect shared libraries,
7187*** $file_magic_cmd, produces output that libtool cannot recognize.
7188*** The result is that libtool may fail to recognize shared libraries
7189*** as such.  This will affect the creation of libtool libraries that
7190*** depend on shared libraries, but programs linked with such libtool
7191*** libraries will work regardless of this problem.  Nevertheless, you
7192*** may want to report the problem to your system manager and/or to
7193*** bug-libtool@gnu.org
7194
7195EOF
7196	  fi ;;
7197	esac
7198      fi
7199      break
7200    fi
7201  done
7202  IFS="$lt_save_ifs"
7203  MAGIC_CMD="$lt_save_MAGIC_CMD"
7204  ;;
7205esac
7206fi
7207
7208MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7209if test -n "$MAGIC_CMD"; then
7210  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7211echo "${ECHO_T}$MAGIC_CMD" >&6; }
7212else
7213  { echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6; }
7215fi
7216
7217if test -z "$lt_cv_path_MAGIC_CMD"; then
7218  if test -n "$ac_tool_prefix"; then
7219    { echo "$as_me:$LINENO: checking for file" >&5
7220echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7221if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7222  echo $ECHO_N "(cached) $ECHO_C" >&6
7223else
7224  case $MAGIC_CMD in
7225[\\/*] |  ?:[\\/]*)
7226  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7227  ;;
7228*)
7229  lt_save_MAGIC_CMD="$MAGIC_CMD"
7230  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7231  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7232  for ac_dir in $ac_dummy; do
7233    IFS="$lt_save_ifs"
7234    test -z "$ac_dir" && ac_dir=.
7235    if test -f $ac_dir/file; then
7236      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7237      if test -n "$file_magic_test_file"; then
7238	case $deplibs_check_method in
7239	"file_magic "*)
7240	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7241	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7242	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7243	    $EGREP "$file_magic_regex" > /dev/null; then
7244	    :
7245	  else
7246	    cat <<EOF 1>&2
7247
7248*** Warning: the command libtool uses to detect shared libraries,
7249*** $file_magic_cmd, produces output that libtool cannot recognize.
7250*** The result is that libtool may fail to recognize shared libraries
7251*** as such.  This will affect the creation of libtool libraries that
7252*** depend on shared libraries, but programs linked with such libtool
7253*** libraries will work regardless of this problem.  Nevertheless, you
7254*** may want to report the problem to your system manager and/or to
7255*** bug-libtool@gnu.org
7256
7257EOF
7258	  fi ;;
7259	esac
7260      fi
7261      break
7262    fi
7263  done
7264  IFS="$lt_save_ifs"
7265  MAGIC_CMD="$lt_save_MAGIC_CMD"
7266  ;;
7267esac
7268fi
7269
7270MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7271if test -n "$MAGIC_CMD"; then
7272  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7273echo "${ECHO_T}$MAGIC_CMD" >&6; }
7274else
7275  { echo "$as_me:$LINENO: result: no" >&5
7276echo "${ECHO_T}no" >&6; }
7277fi
7278
7279  else
7280    MAGIC_CMD=:
7281  fi
7282fi
7283
7284  fi
7285  ;;
7286esac
7287
7288enable_dlopen=no
7289enable_win32_dll=no
7290
7291# Check whether --enable-libtool-lock was given.
7292if test "${enable_libtool_lock+set}" = set; then
7293  enableval=$enable_libtool_lock;
7294fi
7295
7296test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7297
7298
7299# Check whether --with-pic was given.
7300if test "${with_pic+set}" = set; then
7301  withval=$with_pic; pic_mode="$withval"
7302else
7303  pic_mode=default
7304fi
7305
7306test -z "$pic_mode" && pic_mode=default
7307
7308# Use C for the default configuration in the libtool script
7309tagname=
7310lt_save_CC="$CC"
7311ac_ext=c
7312ac_cpp='$CPP $CPPFLAGS'
7313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7315ac_compiler_gnu=$ac_cv_c_compiler_gnu
7316
7317
7318# Source file extension for C test sources.
7319ac_ext=c
7320
7321# Object file extension for compiled C test sources.
7322objext=o
7323objext=$objext
7324
7325# Code to be used in simple compile tests
7326lt_simple_compile_test_code="int some_variable = 0;\n"
7327
7328# Code to be used in simple link tests
7329lt_simple_link_test_code='int main(){return(0);}\n'
7330
7331
7332# If no C compiler was specified, use CC.
7333LTCC=${LTCC-"$CC"}
7334
7335# If no C compiler flags were specified, use CFLAGS.
7336LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7337
7338# Allow CC to be a program name with arguments.
7339compiler=$CC
7340
7341
7342# save warnings/boilerplate of simple test code
7343ac_outfile=conftest.$ac_objext
7344printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7345eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7346_lt_compiler_boilerplate=`cat conftest.err`
7347$rm conftest*
7348
7349ac_outfile=conftest.$ac_objext
7350printf "$lt_simple_link_test_code" >conftest.$ac_ext
7351eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7352_lt_linker_boilerplate=`cat conftest.err`
7353$rm conftest*
7354
7355
7356
7357lt_prog_compiler_no_builtin_flag=
7358
7359if test "$GCC" = yes; then
7360  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7361
7362
7363{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7364echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7365if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7366  echo $ECHO_N "(cached) $ECHO_C" >&6
7367else
7368  lt_cv_prog_compiler_rtti_exceptions=no
7369  ac_outfile=conftest.$ac_objext
7370   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7371   lt_compiler_flag="-fno-rtti -fno-exceptions"
7372   # Insert the option either (1) after the last *FLAGS variable, or
7373   # (2) before a word containing "conftest.", or (3) at the end.
7374   # Note that $ac_compile itself does not contain backslashes and begins
7375   # with a dollar sign (not a hyphen), so the echo should work correctly.
7376   # The option is referenced via a variable to avoid confusing sed.
7377   lt_compile=`echo "$ac_compile" | $SED \
7378   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7379   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7380   -e 's:$: $lt_compiler_flag:'`
7381   (eval echo "\"\$as_me:7381: $lt_compile\"" >&5)
7382   (eval "$lt_compile" 2>conftest.err)
7383   ac_status=$?
7384   cat conftest.err >&5
7385   echo "$as_me:7385: \$? = $ac_status" >&5
7386   if (exit $ac_status) && test -s "$ac_outfile"; then
7387     # The compiler can only warn and ignore the option if not recognized
7388     # So say no if there are warnings other than the usual output.
7389     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7390     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7391     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7392       lt_cv_prog_compiler_rtti_exceptions=yes
7393     fi
7394   fi
7395   $rm conftest*
7396
7397fi
7398{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7399echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7400
7401if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7402    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7403else
7404    :
7405fi
7406
7407fi
7408
7409lt_prog_compiler_wl=
7410lt_prog_compiler_pic=
7411lt_prog_compiler_static=
7412
7413{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7414echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7415
7416  if test "$GCC" = yes; then
7417    lt_prog_compiler_wl='-Wl,'
7418    lt_prog_compiler_static='-static'
7419
7420    case $host_os in
7421      aix*)
7422      # All AIX code is PIC.
7423      if test "$host_cpu" = ia64; then
7424	# AIX 5 now supports IA64 processor
7425	lt_prog_compiler_static='-Bstatic'
7426      fi
7427      ;;
7428
7429    amigaos*)
7430      # FIXME: we need at least 68020 code to build shared libraries, but
7431      # adding the `-m68020' flag to GCC prevents building anything better,
7432      # like `-m68040'.
7433      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7434      ;;
7435
7436    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7437      # PIC is the default for these OSes.
7438      ;;
7439
7440    mingw* | pw32* | os2*)
7441      # This hack is so that the source file can tell whether it is being
7442      # built for inclusion in a dll (and should export symbols for example).
7443      lt_prog_compiler_pic='-DDLL_EXPORT'
7444      ;;
7445
7446    darwin* | rhapsody*)
7447      # PIC is the default on this platform
7448      # Common symbols not allowed in MH_DYLIB files
7449      lt_prog_compiler_pic='-fno-common'
7450      ;;
7451
7452    interix3*)
7453      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7454      # Instead, we relocate shared libraries at runtime.
7455      ;;
7456
7457    msdosdjgpp*)
7458      # Just because we use GCC doesn't mean we suddenly get shared libraries
7459      # on systems that don't support them.
7460      lt_prog_compiler_can_build_shared=no
7461      enable_shared=no
7462      ;;
7463
7464    sysv4*MP*)
7465      if test -d /usr/nec; then
7466	lt_prog_compiler_pic=-Kconform_pic
7467      fi
7468      ;;
7469
7470    hpux*)
7471      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7472      # not for PA HP-UX.
7473      case $host_cpu in
7474      hppa*64*|ia64*)
7475	# +Z the default
7476	;;
7477      *)
7478	lt_prog_compiler_pic='-fPIC'
7479	;;
7480      esac
7481      ;;
7482
7483    *)
7484      lt_prog_compiler_pic='-fPIC'
7485      ;;
7486    esac
7487  else
7488    # PORTME Check for flag to pass linker flags through the system compiler.
7489    case $host_os in
7490    aix*)
7491      lt_prog_compiler_wl='-Wl,'
7492      if test "$host_cpu" = ia64; then
7493	# AIX 5 now supports IA64 processor
7494	lt_prog_compiler_static='-Bstatic'
7495      else
7496	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7497      fi
7498      ;;
7499      darwin*)
7500        # PIC is the default on this platform
7501        # Common symbols not allowed in MH_DYLIB files
7502       case $cc_basename in
7503         xlc*)
7504         lt_prog_compiler_pic='-qnocommon'
7505         lt_prog_compiler_wl='-Wl,'
7506         ;;
7507       esac
7508       ;;
7509
7510    mingw* | pw32* | os2*)
7511      # This hack is so that the source file can tell whether it is being
7512      # built for inclusion in a dll (and should export symbols for example).
7513      lt_prog_compiler_pic='-DDLL_EXPORT'
7514      ;;
7515
7516    hpux9* | hpux10* | hpux11*)
7517      lt_prog_compiler_wl='-Wl,'
7518      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7519      # not for PA HP-UX.
7520      case $host_cpu in
7521      hppa*64*|ia64*)
7522	# +Z the default
7523	;;
7524      *)
7525	lt_prog_compiler_pic='+Z'
7526	;;
7527      esac
7528      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7529      lt_prog_compiler_static='${wl}-a ${wl}archive'
7530      ;;
7531
7532    irix5* | irix6* | nonstopux*)
7533      lt_prog_compiler_wl='-Wl,'
7534      # PIC (with -KPIC) is the default.
7535      lt_prog_compiler_static='-non_shared'
7536      ;;
7537
7538    newsos6)
7539      lt_prog_compiler_pic='-KPIC'
7540      lt_prog_compiler_static='-Bstatic'
7541      ;;
7542
7543    linux* | k*bsd*-gnu)
7544      case $cc_basename in
7545      icc* | ecc*)
7546	lt_prog_compiler_wl='-Wl,'
7547	lt_prog_compiler_pic='-KPIC'
7548	lt_prog_compiler_static='-static'
7549        ;;
7550      pgcc* | pgf77* | pgf90* | pgf95*)
7551        # Portland Group compilers (*not* the Pentium gcc compiler,
7552	# which looks to be a dead project)
7553	lt_prog_compiler_wl='-Wl,'
7554	lt_prog_compiler_pic='-fpic'
7555	lt_prog_compiler_static='-Bstatic'
7556        ;;
7557      ccc*)
7558        lt_prog_compiler_wl='-Wl,'
7559        # All Alpha code is PIC.
7560        lt_prog_compiler_static='-non_shared'
7561        ;;
7562      esac
7563      ;;
7564
7565    osf3* | osf4* | osf5*)
7566      lt_prog_compiler_wl='-Wl,'
7567      # All OSF/1 code is PIC.
7568      lt_prog_compiler_static='-non_shared'
7569      ;;
7570
7571    solaris*)
7572      lt_prog_compiler_pic='-KPIC'
7573      lt_prog_compiler_static='-Bstatic'
7574      case $cc_basename in
7575      f77* | f90* | f95*)
7576	lt_prog_compiler_wl='-Qoption ld ';;
7577      *)
7578	lt_prog_compiler_wl='-Wl,';;
7579      esac
7580      ;;
7581
7582    sunos4*)
7583      lt_prog_compiler_wl='-Qoption ld '
7584      lt_prog_compiler_pic='-PIC'
7585      lt_prog_compiler_static='-Bstatic'
7586      ;;
7587
7588    sysv4 | sysv4.2uw2* | sysv4.3*)
7589      lt_prog_compiler_wl='-Wl,'
7590      lt_prog_compiler_pic='-KPIC'
7591      lt_prog_compiler_static='-Bstatic'
7592      ;;
7593
7594    sysv4*MP*)
7595      if test -d /usr/nec ;then
7596	lt_prog_compiler_pic='-Kconform_pic'
7597	lt_prog_compiler_static='-Bstatic'
7598      fi
7599      ;;
7600
7601    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7602      lt_prog_compiler_wl='-Wl,'
7603      lt_prog_compiler_pic='-KPIC'
7604      lt_prog_compiler_static='-Bstatic'
7605      ;;
7606
7607    unicos*)
7608      lt_prog_compiler_wl='-Wl,'
7609      lt_prog_compiler_can_build_shared=no
7610      ;;
7611
7612    uts4*)
7613      lt_prog_compiler_pic='-pic'
7614      lt_prog_compiler_static='-Bstatic'
7615      ;;
7616
7617    *)
7618      lt_prog_compiler_can_build_shared=no
7619      ;;
7620    esac
7621  fi
7622
7623{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7624echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7625
7626#
7627# Check to make sure the PIC flag actually works.
7628#
7629if test -n "$lt_prog_compiler_pic"; then
7630
7631{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7632echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7633if test "${lt_prog_compiler_pic_works+set}" = set; then
7634  echo $ECHO_N "(cached) $ECHO_C" >&6
7635else
7636  lt_prog_compiler_pic_works=no
7637  ac_outfile=conftest.$ac_objext
7638   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7639   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7640   # Insert the option either (1) after the last *FLAGS variable, or
7641   # (2) before a word containing "conftest.", or (3) at the end.
7642   # Note that $ac_compile itself does not contain backslashes and begins
7643   # with a dollar sign (not a hyphen), so the echo should work correctly.
7644   # The option is referenced via a variable to avoid confusing sed.
7645   lt_compile=`echo "$ac_compile" | $SED \
7646   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7647   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7648   -e 's:$: $lt_compiler_flag:'`
7649   (eval echo "\"\$as_me:7649: $lt_compile\"" >&5)
7650   (eval "$lt_compile" 2>conftest.err)
7651   ac_status=$?
7652   cat conftest.err >&5
7653   echo "$as_me:7653: \$? = $ac_status" >&5
7654   if (exit $ac_status) && test -s "$ac_outfile"; then
7655     # The compiler can only warn and ignore the option if not recognized
7656     # So say no if there are warnings other than the usual output.
7657     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7658     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7659     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7660       lt_prog_compiler_pic_works=yes
7661     fi
7662   fi
7663   $rm conftest*
7664
7665fi
7666{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7667echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7668
7669if test x"$lt_prog_compiler_pic_works" = xyes; then
7670    case $lt_prog_compiler_pic in
7671     "" | " "*) ;;
7672     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7673     esac
7674else
7675    lt_prog_compiler_pic=
7676     lt_prog_compiler_can_build_shared=no
7677fi
7678
7679fi
7680case $host_os in
7681  # For platforms which do not support PIC, -DPIC is meaningless:
7682  *djgpp*)
7683    lt_prog_compiler_pic=
7684    ;;
7685  *)
7686    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7687    ;;
7688esac
7689
7690#
7691# Check to make sure the static flag actually works.
7692#
7693wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7694{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7695echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7696if test "${lt_prog_compiler_static_works+set}" = set; then
7697  echo $ECHO_N "(cached) $ECHO_C" >&6
7698else
7699  lt_prog_compiler_static_works=no
7700   save_LDFLAGS="$LDFLAGS"
7701   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7702   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7703   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7704     # The linker can only warn and ignore the option if not recognized
7705     # So say no if there are warnings
7706     if test -s conftest.err; then
7707       # Append any errors to the config.log.
7708       cat conftest.err 1>&5
7709       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7710       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7711       if diff conftest.exp conftest.er2 >/dev/null; then
7712         lt_prog_compiler_static_works=yes
7713       fi
7714     else
7715       lt_prog_compiler_static_works=yes
7716     fi
7717   fi
7718   $rm conftest*
7719   LDFLAGS="$save_LDFLAGS"
7720
7721fi
7722{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7723echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7724
7725if test x"$lt_prog_compiler_static_works" = xyes; then
7726    :
7727else
7728    lt_prog_compiler_static=
7729fi
7730
7731
7732{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7733echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7734if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7735  echo $ECHO_N "(cached) $ECHO_C" >&6
7736else
7737  lt_cv_prog_compiler_c_o=no
7738   $rm -r conftest 2>/dev/null
7739   mkdir conftest
7740   cd conftest
7741   mkdir out
7742   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7743
7744   lt_compiler_flag="-o out/conftest2.$ac_objext"
7745   # Insert the option either (1) after the last *FLAGS variable, or
7746   # (2) before a word containing "conftest.", or (3) at the end.
7747   # Note that $ac_compile itself does not contain backslashes and begins
7748   # with a dollar sign (not a hyphen), so the echo should work correctly.
7749   lt_compile=`echo "$ac_compile" | $SED \
7750   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7751   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7752   -e 's:$: $lt_compiler_flag:'`
7753   (eval echo "\"\$as_me:7753: $lt_compile\"" >&5)
7754   (eval "$lt_compile" 2>out/conftest.err)
7755   ac_status=$?
7756   cat out/conftest.err >&5
7757   echo "$as_me:7757: \$? = $ac_status" >&5
7758   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7759   then
7760     # The compiler can only warn and ignore the option if not recognized
7761     # So say no if there are warnings
7762     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7763     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7764     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7765       lt_cv_prog_compiler_c_o=yes
7766     fi
7767   fi
7768   chmod u+w . 2>&5
7769   $rm conftest*
7770   # SGI C++ compiler will create directory out/ii_files/ for
7771   # template instantiation
7772   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7773   $rm out/* && rmdir out
7774   cd ..
7775   rmdir conftest
7776   $rm conftest*
7777
7778fi
7779{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7780echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7781
7782
7783hard_links="nottested"
7784if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7785  # do not overwrite the value of need_locks provided by the user
7786  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7787echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7788  hard_links=yes
7789  $rm conftest*
7790  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7791  touch conftest.a
7792  ln conftest.a conftest.b 2>&5 || hard_links=no
7793  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7794  { echo "$as_me:$LINENO: result: $hard_links" >&5
7795echo "${ECHO_T}$hard_links" >&6; }
7796  if test "$hard_links" = no; then
7797    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7798echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7799    need_locks=warn
7800  fi
7801else
7802  need_locks=no
7803fi
7804
7805{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7806echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7807
7808  runpath_var=
7809  allow_undefined_flag=
7810  enable_shared_with_static_runtimes=no
7811  archive_cmds=
7812  archive_expsym_cmds=
7813  old_archive_From_new_cmds=
7814  old_archive_from_expsyms_cmds=
7815  export_dynamic_flag_spec=
7816  whole_archive_flag_spec=
7817  thread_safe_flag_spec=
7818  hardcode_libdir_flag_spec=
7819  hardcode_libdir_flag_spec_ld=
7820  hardcode_libdir_separator=
7821  hardcode_direct=no
7822  hardcode_minus_L=no
7823  hardcode_shlibpath_var=unsupported
7824  link_all_deplibs=unknown
7825  hardcode_automatic=no
7826  module_cmds=
7827  module_expsym_cmds=
7828  always_export_symbols=no
7829  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7830  # include_expsyms should be a list of space-separated symbols to be *always*
7831  # included in the symbol list
7832  include_expsyms=
7833  # exclude_expsyms can be an extended regexp of symbols to exclude
7834  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7835  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7836  # as well as any symbol that contains `d'.
7837  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7838  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7839  # platforms (ab)use it in PIC code, but their linkers get confused if
7840  # the symbol is explicitly referenced.  Since portable code cannot
7841  # rely on this symbol name, it's probably fine to never include it in
7842  # preloaded symbol tables.
7843  extract_expsyms_cmds=
7844  # Just being paranoid about ensuring that cc_basename is set.
7845  for cc_temp in $compiler""; do
7846  case $cc_temp in
7847    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7848    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7849    \-*) ;;
7850    *) break;;
7851  esac
7852done
7853cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7854
7855  case $host_os in
7856  cygwin* | mingw* | pw32*)
7857    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7858    # When not using gcc, we currently assume that we are using
7859    # Microsoft Visual C++.
7860    if test "$GCC" != yes; then
7861      with_gnu_ld=no
7862    fi
7863    ;;
7864  interix*)
7865    # we just hope/assume this is gcc and not c89 (= MSVC++)
7866    with_gnu_ld=yes
7867    ;;
7868  openbsd*)
7869    with_gnu_ld=no
7870    ;;
7871  esac
7872
7873  ld_shlibs=yes
7874  if test "$with_gnu_ld" = yes; then
7875    # If archive_cmds runs LD, not CC, wlarc should be empty
7876    wlarc='${wl}'
7877
7878    # Set some defaults for GNU ld with shared library support. These
7879    # are reset later if shared libraries are not supported. Putting them
7880    # here allows them to be overridden if necessary.
7881    runpath_var=LD_RUN_PATH
7882    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7883    export_dynamic_flag_spec='${wl}--export-dynamic'
7884    # ancient GNU ld didn't support --whole-archive et. al.
7885    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7886	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7887      else
7888  	whole_archive_flag_spec=
7889    fi
7890    supports_anon_versioning=no
7891    case `$LD -v 2>/dev/null` in
7892      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7893      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7894      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7895      *\ 2.11.*) ;; # other 2.11 versions
7896      *) supports_anon_versioning=yes ;;
7897    esac
7898
7899    # See if GNU ld supports shared libraries.
7900    case $host_os in
7901    aix3* | aix4* | aix5*)
7902      # On AIX/PPC, the GNU linker is very broken
7903      if test "$host_cpu" != ia64; then
7904	ld_shlibs=no
7905	cat <<EOF 1>&2
7906
7907*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7908*** to be unable to reliably create shared libraries on AIX.
7909*** Therefore, libtool is disabling shared libraries support.  If you
7910*** really care for shared libraries, you may want to modify your PATH
7911*** so that a non-GNU linker is found, and then restart.
7912
7913EOF
7914      fi
7915      ;;
7916
7917    amigaos*)
7918      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)'
7919      hardcode_libdir_flag_spec='-L$libdir'
7920      hardcode_minus_L=yes
7921
7922      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7923      # that the semantics of dynamic libraries on AmigaOS, at least up
7924      # to version 4, is to share data among multiple programs linked
7925      # with the same dynamic library.  Since this doesn't match the
7926      # behavior of shared libraries on other platforms, we can't use
7927      # them.
7928      ld_shlibs=no
7929      ;;
7930
7931    beos*)
7932      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7933	allow_undefined_flag=unsupported
7934	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7935	# support --undefined.  This deserves some investigation.  FIXME
7936	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7937      else
7938	ld_shlibs=no
7939      fi
7940      ;;
7941
7942    cygwin* | mingw* | pw32*)
7943      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7944      # as there is no search path for DLLs.
7945      hardcode_libdir_flag_spec='-L$libdir'
7946      allow_undefined_flag=unsupported
7947      always_export_symbols=no
7948      enable_shared_with_static_runtimes=yes
7949      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7950
7951      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7952        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7953	# If the export-symbols file already is a .def file (1st line
7954	# is EXPORTS), use it as is; otherwise, prepend...
7955	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7956	  cp $export_symbols $output_objdir/$soname.def;
7957	else
7958	  echo EXPORTS > $output_objdir/$soname.def;
7959	  cat $export_symbols >> $output_objdir/$soname.def;
7960	fi~
7961	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7962      else
7963	ld_shlibs=no
7964      fi
7965      ;;
7966
7967    interix3*)
7968      hardcode_direct=no
7969      hardcode_shlibpath_var=no
7970      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7971      export_dynamic_flag_spec='${wl}-E'
7972      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7973      # Instead, shared libraries are loaded at an image base (0x10000000 by
7974      # default) and relocated if they conflict, which is a slow very memory
7975      # consuming and fragmenting process.  To avoid this, we pick a random,
7976      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7977      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7978      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7979      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'
7980      ;;
7981
7982    linux* | k*bsd*-gnu)
7983      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7984	tmp_addflag=
7985	case $cc_basename,$host_cpu in
7986	pgcc*)				# Portland Group C compiler
7987	  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'
7988	  tmp_addflag=' $pic_flag'
7989	  ;;
7990	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7991	  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'
7992	  tmp_addflag=' $pic_flag -Mnomain' ;;
7993	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7994	  tmp_addflag=' -i_dynamic' ;;
7995	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7996	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7997	ifc* | ifort*)			# Intel Fortran compiler
7998	  tmp_addflag=' -nofor_main' ;;
7999	esac
8000	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8001
8002	if test $supports_anon_versioning = yes; then
8003	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8004  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8005  $echo "local: *; };" >> $output_objdir/$libname.ver~
8006	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8007	fi
8008	link_all_deplibs=no
8009      else
8010	ld_shlibs=no
8011      fi
8012      ;;
8013
8014    netbsd* | netbsdelf*-gnu)
8015      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8016	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8017	wlarc=
8018      else
8019	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8020	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8021      fi
8022      ;;
8023
8024    solaris*)
8025      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8026	ld_shlibs=no
8027	cat <<EOF 1>&2
8028
8029*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8030*** create shared libraries on Solaris systems.  Therefore, libtool
8031*** is disabling shared libraries support.  We urge you to upgrade GNU
8032*** binutils to release 2.9.1 or newer.  Another option is to modify
8033*** your PATH or compiler configuration so that the native linker is
8034*** used, and then restart.
8035
8036EOF
8037      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8038	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8039	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8040      else
8041	ld_shlibs=no
8042      fi
8043      ;;
8044
8045    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8046      case `$LD -v 2>&1` in
8047        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8048	ld_shlibs=no
8049	cat <<_LT_EOF 1>&2
8050
8051*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8052*** reliably create shared libraries on SCO systems.  Therefore, libtool
8053*** is disabling shared libraries support.  We urge you to upgrade GNU
8054*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8055*** your PATH or compiler configuration so that the native linker is
8056*** used, and then restart.
8057
8058_LT_EOF
8059	;;
8060	*)
8061	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8062	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8063	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8064	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8065	  else
8066	    ld_shlibs=no
8067	  fi
8068	;;
8069      esac
8070      ;;
8071
8072    sunos4*)
8073      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8074      wlarc=
8075      hardcode_direct=yes
8076      hardcode_shlibpath_var=no
8077      ;;
8078
8079    *)
8080      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8081	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8082	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8083      else
8084	ld_shlibs=no
8085      fi
8086      ;;
8087    esac
8088
8089    if test "$ld_shlibs" = no; then
8090      runpath_var=
8091      hardcode_libdir_flag_spec=
8092      export_dynamic_flag_spec=
8093      whole_archive_flag_spec=
8094    fi
8095  else
8096    # PORTME fill in a description of your system's linker (not GNU ld)
8097    case $host_os in
8098    aix3*)
8099      allow_undefined_flag=unsupported
8100      always_export_symbols=yes
8101      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'
8102      # Note: this linker hardcodes the directories in LIBPATH if there
8103      # are no directories specified by -L.
8104      hardcode_minus_L=yes
8105      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8106	# Neither direct hardcoding nor static linking is supported with a
8107	# broken collect2.
8108	hardcode_direct=unsupported
8109      fi
8110      ;;
8111
8112    aix4* | aix5*)
8113      if test "$host_cpu" = ia64; then
8114	# On IA64, the linker does run time linking by default, so we don't
8115	# have to do anything special.
8116	aix_use_runtimelinking=no
8117	exp_sym_flag='-Bexport'
8118	no_entry_flag=""
8119      else
8120	# If we're using GNU nm, then we don't want the "-C" option.
8121	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8122	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8123	  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'
8124	else
8125	  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'
8126	fi
8127	aix_use_runtimelinking=no
8128
8129	# Test if we are trying to use run time linking or normal
8130	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8131	# need to do runtime linking.
8132	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8133	  for ld_flag in $LDFLAGS; do
8134  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8135  	    aix_use_runtimelinking=yes
8136  	    break
8137  	  fi
8138	  done
8139	  ;;
8140	esac
8141
8142	exp_sym_flag='-bexport'
8143	no_entry_flag='-bnoentry'
8144      fi
8145
8146      # When large executables or shared objects are built, AIX ld can
8147      # have problems creating the table of contents.  If linking a library
8148      # or program results in "error TOC overflow" add -mminimal-toc to
8149      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8150      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8151
8152      archive_cmds=''
8153      hardcode_direct=yes
8154      hardcode_libdir_separator=':'
8155      link_all_deplibs=yes
8156
8157      if test "$GCC" = yes; then
8158	case $host_os in aix4.[012]|aix4.[012].*)
8159	# We only want to do this on AIX 4.2 and lower, the check
8160	# below for broken collect2 doesn't work under 4.3+
8161	  collect2name=`${CC} -print-prog-name=collect2`
8162	  if test -f "$collect2name" && \
8163  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8164	  then
8165  	  # We have reworked collect2
8166  	  hardcode_direct=yes
8167	  else
8168  	  # We have old collect2
8169  	  hardcode_direct=unsupported
8170  	  # It fails to find uninstalled libraries when the uninstalled
8171  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8172  	  # to unsupported forces relinking
8173  	  hardcode_minus_L=yes
8174  	  hardcode_libdir_flag_spec='-L$libdir'
8175  	  hardcode_libdir_separator=
8176	  fi
8177	  ;;
8178	esac
8179	shared_flag='-shared'
8180	if test "$aix_use_runtimelinking" = yes; then
8181	  shared_flag="$shared_flag "'${wl}-G'
8182	fi
8183      else
8184	# not using gcc
8185	if test "$host_cpu" = ia64; then
8186  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8187  	# chokes on -Wl,-G. The following line is correct:
8188	  shared_flag='-G'
8189	else
8190	  if test "$aix_use_runtimelinking" = yes; then
8191	    shared_flag='${wl}-G'
8192	  else
8193	    shared_flag='${wl}-bM:SRE'
8194	  fi
8195	fi
8196      fi
8197
8198      # It seems that -bexpall does not export symbols beginning with
8199      # underscore (_), so it is better to generate a list of symbols to export.
8200      always_export_symbols=yes
8201      if test "$aix_use_runtimelinking" = yes; then
8202	# Warning - without using the other runtime loading flags (-brtl),
8203	# -berok will link without error, but may produce a broken library.
8204	allow_undefined_flag='-berok'
8205       # Determine the default libpath from the value encoded in an empty executable.
8206       cat >conftest.$ac_ext <<_ACEOF
8207/* confdefs.h.  */
8208_ACEOF
8209cat confdefs.h >>conftest.$ac_ext
8210cat >>conftest.$ac_ext <<_ACEOF
8211/* end confdefs.h.  */
8212
8213int
8214main ()
8215{
8216
8217  ;
8218  return 0;
8219}
8220_ACEOF
8221rm -f conftest.$ac_objext conftest$ac_exeext
8222if { (ac_try="$ac_link"
8223case "(($ac_try" in
8224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225  *) ac_try_echo=$ac_try;;
8226esac
8227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228  (eval "$ac_link") 2>conftest.er1
8229  ac_status=$?
8230  grep -v '^ *+' conftest.er1 >conftest.err
8231  rm -f conftest.er1
8232  cat conftest.err >&5
8233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234  (exit $ac_status); } &&
8235	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8236  { (case "(($ac_try" in
8237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238  *) ac_try_echo=$ac_try;;
8239esac
8240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241  (eval "$ac_try") 2>&5
8242  ac_status=$?
8243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244  (exit $ac_status); }; } &&
8245	 { ac_try='test -s conftest$ac_exeext'
8246  { (case "(($ac_try" in
8247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248  *) ac_try_echo=$ac_try;;
8249esac
8250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251  (eval "$ac_try") 2>&5
8252  ac_status=$?
8253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254  (exit $ac_status); }; }; then
8255
8256aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8257}'`
8258# Check for a 64-bit object if we didn't find anything.
8259if 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; }
8260}'`; fi
8261else
8262  echo "$as_me: failed program was:" >&5
8263sed 's/^/| /' conftest.$ac_ext >&5
8264
8265
8266fi
8267
8268rm -f core conftest.err conftest.$ac_objext \
8269      conftest$ac_exeext conftest.$ac_ext
8270if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8271
8272       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8273	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"
8274       else
8275	if test "$host_cpu" = ia64; then
8276	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8277	  allow_undefined_flag="-z nodefs"
8278	  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"
8279	else
8280	 # Determine the default libpath from the value encoded in an empty executable.
8281	 cat >conftest.$ac_ext <<_ACEOF
8282/* confdefs.h.  */
8283_ACEOF
8284cat confdefs.h >>conftest.$ac_ext
8285cat >>conftest.$ac_ext <<_ACEOF
8286/* end confdefs.h.  */
8287
8288int
8289main ()
8290{
8291
8292  ;
8293  return 0;
8294}
8295_ACEOF
8296rm -f conftest.$ac_objext conftest$ac_exeext
8297if { (ac_try="$ac_link"
8298case "(($ac_try" in
8299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300  *) ac_try_echo=$ac_try;;
8301esac
8302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303  (eval "$ac_link") 2>conftest.er1
8304  ac_status=$?
8305  grep -v '^ *+' conftest.er1 >conftest.err
8306  rm -f conftest.er1
8307  cat conftest.err >&5
8308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309  (exit $ac_status); } &&
8310	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8311  { (case "(($ac_try" in
8312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313  *) ac_try_echo=$ac_try;;
8314esac
8315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316  (eval "$ac_try") 2>&5
8317  ac_status=$?
8318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319  (exit $ac_status); }; } &&
8320	 { ac_try='test -s conftest$ac_exeext'
8321  { (case "(($ac_try" in
8322  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8323  *) ac_try_echo=$ac_try;;
8324esac
8325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326  (eval "$ac_try") 2>&5
8327  ac_status=$?
8328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329  (exit $ac_status); }; }; then
8330
8331aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8332}'`
8333# Check for a 64-bit object if we didn't find anything.
8334if 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; }
8335}'`; fi
8336else
8337  echo "$as_me: failed program was:" >&5
8338sed 's/^/| /' conftest.$ac_ext >&5
8339
8340
8341fi
8342
8343rm -f core conftest.err conftest.$ac_objext \
8344      conftest$ac_exeext conftest.$ac_ext
8345if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8346
8347	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8348	  # Warning - without using the other run time loading flags,
8349	  # -berok will link without error, but may produce a broken library.
8350	  no_undefined_flag=' ${wl}-bernotok'
8351	  allow_undefined_flag=' ${wl}-berok'
8352	  # Exported symbols can be pulled into shared objects from archives
8353	  whole_archive_flag_spec='$convenience'
8354	  archive_cmds_need_lc=yes
8355	  # This is similar to how AIX traditionally builds its shared libraries.
8356	  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'
8357	fi
8358      fi
8359      ;;
8360
8361    amigaos*)
8362      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)'
8363      hardcode_libdir_flag_spec='-L$libdir'
8364      hardcode_minus_L=yes
8365      # see comment about different semantics on the GNU ld section
8366      ld_shlibs=no
8367      ;;
8368
8369    bsdi[45]*)
8370      export_dynamic_flag_spec=-rdynamic
8371      ;;
8372
8373    cygwin* | mingw* | pw32*)
8374      # When not using gcc, we currently assume that we are using
8375      # Microsoft Visual C++.
8376      # hardcode_libdir_flag_spec is actually meaningless, as there is
8377      # no search path for DLLs.
8378      hardcode_libdir_flag_spec=' '
8379      allow_undefined_flag=unsupported
8380      # Tell ltmain to make .lib files, not .a files.
8381      libext=lib
8382      # Tell ltmain to make .dll files, not .so files.
8383      shrext_cmds=".dll"
8384      # FIXME: Setting linknames here is a bad hack.
8385      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8386      # The linker will automatically build a .lib file if we build a DLL.
8387      old_archive_From_new_cmds='true'
8388      # FIXME: Should let the user specify the lib program.
8389      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8390      fix_srcfile_path='`cygpath -w "$srcfile"`'
8391      enable_shared_with_static_runtimes=yes
8392      ;;
8393
8394    darwin* | rhapsody*)
8395      case $host_os in
8396        rhapsody* | darwin1.[012])
8397         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8398         ;;
8399       *) # Darwin 1.3 on
8400         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8401           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8402         else
8403           case ${MACOSX_DEPLOYMENT_TARGET} in
8404             10.[012])
8405               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8406               ;;
8407             10.*)
8408               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8409               ;;
8410           esac
8411         fi
8412         ;;
8413      esac
8414      archive_cmds_need_lc=no
8415      hardcode_direct=no
8416      hardcode_automatic=yes
8417      hardcode_shlibpath_var=unsupported
8418      whole_archive_flag_spec=''
8419      link_all_deplibs=yes
8420    if test "$GCC" = yes ; then
8421    	output_verbose_link_cmd='echo'
8422        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8423      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8424      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8425      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}'
8426      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}'
8427    else
8428      case $cc_basename in
8429        xlc*)
8430         output_verbose_link_cmd='echo'
8431         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8432         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8433          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8434         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}'
8435          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}'
8436          ;;
8437       *)
8438         ld_shlibs=no
8439          ;;
8440      esac
8441    fi
8442      ;;
8443
8444    dgux*)
8445      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8446      hardcode_libdir_flag_spec='-L$libdir'
8447      hardcode_shlibpath_var=no
8448      ;;
8449
8450    freebsd1*)
8451      ld_shlibs=no
8452      ;;
8453
8454    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8455    # support.  Future versions do this automatically, but an explicit c++rt0.o
8456    # does not break anything, and helps significantly (at the cost of a little
8457    # extra space).
8458    freebsd2.2*)
8459      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8460      hardcode_libdir_flag_spec='-R$libdir'
8461      hardcode_direct=yes
8462      hardcode_shlibpath_var=no
8463      ;;
8464
8465    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8466    freebsd2*)
8467      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8468      hardcode_direct=yes
8469      hardcode_minus_L=yes
8470      hardcode_shlibpath_var=no
8471      ;;
8472
8473    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8474    freebsd* | dragonfly*)
8475      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8476      hardcode_libdir_flag_spec='-R$libdir'
8477      hardcode_direct=yes
8478      hardcode_shlibpath_var=no
8479      ;;
8480
8481    hpux9*)
8482      if test "$GCC" = yes; then
8483	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'
8484      else
8485	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'
8486      fi
8487      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8488      hardcode_libdir_separator=:
8489      hardcode_direct=yes
8490
8491      # hardcode_minus_L: Not really in the search PATH,
8492      # but as the default location of the library.
8493      hardcode_minus_L=yes
8494      export_dynamic_flag_spec='${wl}-E'
8495      ;;
8496
8497    hpux10*)
8498      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8499	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8500      else
8501	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8502      fi
8503      if test "$with_gnu_ld" = no; then
8504	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8505	hardcode_libdir_separator=:
8506
8507	hardcode_direct=yes
8508	export_dynamic_flag_spec='${wl}-E'
8509
8510	# hardcode_minus_L: Not really in the search PATH,
8511	# but as the default location of the library.
8512	hardcode_minus_L=yes
8513      fi
8514      ;;
8515
8516    hpux11*)
8517      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8518	case $host_cpu in
8519	hppa*64*)
8520	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8521	  ;;
8522	ia64*)
8523	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8524	  ;;
8525	*)
8526	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8527	  ;;
8528	esac
8529      else
8530	case $host_cpu in
8531	hppa*64*)
8532	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8533	  ;;
8534	ia64*)
8535	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8536	  ;;
8537	*)
8538	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8539	  ;;
8540	esac
8541      fi
8542      if test "$with_gnu_ld" = no; then
8543	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8544	hardcode_libdir_separator=:
8545
8546	case $host_cpu in
8547	hppa*64*|ia64*)
8548	  hardcode_libdir_flag_spec_ld='+b $libdir'
8549	  hardcode_direct=no
8550	  hardcode_shlibpath_var=no
8551	  ;;
8552	*)
8553	  hardcode_direct=yes
8554	  export_dynamic_flag_spec='${wl}-E'
8555
8556	  # hardcode_minus_L: Not really in the search PATH,
8557	  # but as the default location of the library.
8558	  hardcode_minus_L=yes
8559	  ;;
8560	esac
8561      fi
8562      ;;
8563
8564    irix5* | irix6* | nonstopux*)
8565      if test "$GCC" = yes; then
8566	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'
8567      else
8568	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'
8569	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8570      fi
8571      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8572      hardcode_libdir_separator=:
8573      link_all_deplibs=yes
8574      ;;
8575
8576    netbsd* | netbsdelf*-gnu)
8577      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8578	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8579      else
8580	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8581      fi
8582      hardcode_libdir_flag_spec='-R$libdir'
8583      hardcode_direct=yes
8584      hardcode_shlibpath_var=no
8585      ;;
8586
8587    newsos6)
8588      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8589      hardcode_direct=yes
8590      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8591      hardcode_libdir_separator=:
8592      hardcode_shlibpath_var=no
8593      ;;
8594
8595    openbsd*)
8596      hardcode_direct=yes
8597      hardcode_shlibpath_var=no
8598      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8599	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8600	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8601	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8602	export_dynamic_flag_spec='${wl}-E'
8603      else
8604       case $host_os in
8605	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8606	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8607	   hardcode_libdir_flag_spec='-R$libdir'
8608	   ;;
8609	 *)
8610	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8611	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8612	   ;;
8613       esac
8614      fi
8615      ;;
8616
8617    os2*)
8618      hardcode_libdir_flag_spec='-L$libdir'
8619      hardcode_minus_L=yes
8620      allow_undefined_flag=unsupported
8621      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'
8622      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8623      ;;
8624
8625    osf3*)
8626      if test "$GCC" = yes; then
8627	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8628	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'
8629      else
8630	allow_undefined_flag=' -expect_unresolved \*'
8631	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'
8632      fi
8633      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8634      hardcode_libdir_separator=:
8635      ;;
8636
8637    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8638      if test "$GCC" = yes; then
8639	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8640	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'
8641	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8642      else
8643	allow_undefined_flag=' -expect_unresolved \*'
8644	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'
8645	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8646	$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'
8647
8648	# Both c and cxx compiler support -rpath directly
8649	hardcode_libdir_flag_spec='-rpath $libdir'
8650      fi
8651      hardcode_libdir_separator=:
8652      ;;
8653
8654    solaris*)
8655      no_undefined_flag=' -z text'
8656      if test "$GCC" = yes; then
8657	wlarc='${wl}'
8658	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8659	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8660	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8661      else
8662	wlarc=''
8663	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8664	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8665  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8666      fi
8667      hardcode_libdir_flag_spec='-R$libdir'
8668      hardcode_shlibpath_var=no
8669      case $host_os in
8670      solaris2.[0-5] | solaris2.[0-5].*) ;;
8671      *)
8672 	# The compiler driver will combine linker options so we
8673 	# cannot just pass the convience library names through
8674 	# without $wl, iff we do not link with $LD.
8675 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8676 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8677 	case $wlarc in
8678 	'')
8679 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8680 	*)
8681 	  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' ;;
8682 	esac ;;
8683      esac
8684      link_all_deplibs=yes
8685      ;;
8686
8687    sunos4*)
8688      if test "x$host_vendor" = xsequent; then
8689	# Use $CC to link under sequent, because it throws in some extra .o
8690	# files that make .init and .fini sections work.
8691	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8692      else
8693	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8694      fi
8695      hardcode_libdir_flag_spec='-L$libdir'
8696      hardcode_direct=yes
8697      hardcode_minus_L=yes
8698      hardcode_shlibpath_var=no
8699      ;;
8700
8701    sysv4)
8702      case $host_vendor in
8703	sni)
8704	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8705	  hardcode_direct=yes # is this really true???
8706	;;
8707	siemens)
8708	  ## LD is ld it makes a PLAMLIB
8709	  ## CC just makes a GrossModule.
8710	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8711	  reload_cmds='$CC -r -o $output$reload_objs'
8712	  hardcode_direct=no
8713        ;;
8714	motorola)
8715	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8716	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8717	;;
8718      esac
8719      runpath_var='LD_RUN_PATH'
8720      hardcode_shlibpath_var=no
8721      ;;
8722
8723    sysv4.3*)
8724      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8725      hardcode_shlibpath_var=no
8726      export_dynamic_flag_spec='-Bexport'
8727      ;;
8728
8729    sysv4*MP*)
8730      if test -d /usr/nec; then
8731	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8732	hardcode_shlibpath_var=no
8733	runpath_var=LD_RUN_PATH
8734	hardcode_runpath_var=yes
8735	ld_shlibs=yes
8736      fi
8737      ;;
8738
8739    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8740      no_undefined_flag='${wl}-z,text'
8741      archive_cmds_need_lc=no
8742      hardcode_shlibpath_var=no
8743      runpath_var='LD_RUN_PATH'
8744
8745      if test "$GCC" = yes; then
8746	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8747	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8748      else
8749	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8750	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8751      fi
8752      ;;
8753
8754    sysv5* | sco3.2v5* | sco5v6*)
8755      # Note: We can NOT use -z defs as we might desire, because we do not
8756      # link with -lc, and that would cause any symbols used from libc to
8757      # always be unresolved, which means just about no library would
8758      # ever link correctly.  If we're not using GNU ld we use -z text
8759      # though, which does catch some bad symbols but isn't as heavy-handed
8760      # as -z defs.
8761      no_undefined_flag='${wl}-z,text'
8762      allow_undefined_flag='${wl}-z,nodefs'
8763      archive_cmds_need_lc=no
8764      hardcode_shlibpath_var=no
8765      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8766      hardcode_libdir_separator=':'
8767      link_all_deplibs=yes
8768      export_dynamic_flag_spec='${wl}-Bexport'
8769      runpath_var='LD_RUN_PATH'
8770
8771      if test "$GCC" = yes; then
8772	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8773	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8774      else
8775	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8776	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8777      fi
8778      ;;
8779
8780    uts4*)
8781      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782      hardcode_libdir_flag_spec='-L$libdir'
8783      hardcode_shlibpath_var=no
8784      ;;
8785
8786    *)
8787      ld_shlibs=no
8788      ;;
8789    esac
8790  fi
8791
8792{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8793echo "${ECHO_T}$ld_shlibs" >&6; }
8794test "$ld_shlibs" = no && can_build_shared=no
8795
8796#
8797# Do we need to explicitly link libc?
8798#
8799case "x$archive_cmds_need_lc" in
8800x|xyes)
8801  # Assume -lc should be added
8802  archive_cmds_need_lc=yes
8803
8804  if test "$enable_shared" = yes && test "$GCC" = yes; then
8805    case $archive_cmds in
8806    *'~'*)
8807      # FIXME: we may have to deal with multi-command sequences.
8808      ;;
8809    '$CC '*)
8810      # Test whether the compiler implicitly links with -lc since on some
8811      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8812      # to ld, don't add -lc before -lgcc.
8813      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8814echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8815      $rm conftest*
8816      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8817
8818      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8819  (eval $ac_compile) 2>&5
8820  ac_status=$?
8821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822  (exit $ac_status); } 2>conftest.err; then
8823        soname=conftest
8824        lib=conftest
8825        libobjs=conftest.$ac_objext
8826        deplibs=
8827        wl=$lt_prog_compiler_wl
8828	pic_flag=$lt_prog_compiler_pic
8829        compiler_flags=-v
8830        linker_flags=-v
8831        verstring=
8832        output_objdir=.
8833        libname=conftest
8834        lt_save_allow_undefined_flag=$allow_undefined_flag
8835        allow_undefined_flag=
8836        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8837  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8838  ac_status=$?
8839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840  (exit $ac_status); }
8841        then
8842	  archive_cmds_need_lc=no
8843        else
8844	  archive_cmds_need_lc=yes
8845        fi
8846        allow_undefined_flag=$lt_save_allow_undefined_flag
8847      else
8848        cat conftest.err 1>&5
8849      fi
8850      $rm conftest*
8851      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8852echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8853      ;;
8854    esac
8855  fi
8856  ;;
8857esac
8858
8859{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8860echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8861library_names_spec=
8862libname_spec='lib$name'
8863soname_spec=
8864shrext_cmds=".so"
8865postinstall_cmds=
8866postuninstall_cmds=
8867finish_cmds=
8868finish_eval=
8869shlibpath_var=
8870shlibpath_overrides_runpath=unknown
8871version_type=none
8872dynamic_linker="$host_os ld.so"
8873sys_lib_dlsearch_path_spec="/lib /usr/lib"
8874if test "$GCC" = yes; then
8875  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8876  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8877    # if the path contains ";" then we assume it to be the separator
8878    # otherwise default to the standard path separator (i.e. ":") - it is
8879    # assumed that no part of a normal pathname contains ";" but that should
8880    # okay in the real world where ";" in dirpaths is itself problematic.
8881    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8882  else
8883    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8884  fi
8885else
8886  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8887fi
8888need_lib_prefix=unknown
8889hardcode_into_libs=no
8890
8891# when you set need_version to no, make sure it does not cause -set_version
8892# flags to be left without arguments
8893need_version=unknown
8894
8895case $host_os in
8896aix3*)
8897  version_type=linux
8898  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8899  shlibpath_var=LIBPATH
8900
8901  # AIX 3 has no versioning support, so we append a major version to the name.
8902  soname_spec='${libname}${release}${shared_ext}$major'
8903  ;;
8904
8905aix4* | aix5*)
8906  version_type=linux
8907  need_lib_prefix=no
8908  need_version=no
8909  hardcode_into_libs=yes
8910  if test "$host_cpu" = ia64; then
8911    # AIX 5 supports IA64
8912    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8913    shlibpath_var=LD_LIBRARY_PATH
8914  else
8915    # With GCC up to 2.95.x, collect2 would create an import file
8916    # for dependence libraries.  The import file would start with
8917    # the line `#! .'.  This would cause the generated library to
8918    # depend on `.', always an invalid library.  This was fixed in
8919    # development snapshots of GCC prior to 3.0.
8920    case $host_os in
8921      aix4 | aix4.[01] | aix4.[01].*)
8922      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8923	   echo ' yes '
8924	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8925	:
8926      else
8927	can_build_shared=no
8928      fi
8929      ;;
8930    esac
8931    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8932    # soname into executable. Probably we can add versioning support to
8933    # collect2, so additional links can be useful in future.
8934    if test "$aix_use_runtimelinking" = yes; then
8935      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8936      # instead of lib<name>.a to let people know that these are not
8937      # typical AIX shared libraries.
8938      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8939    else
8940      # We preserve .a as extension for shared libraries through AIX4.2
8941      # and later when we are not doing run time linking.
8942      library_names_spec='${libname}${release}.a $libname.a'
8943      soname_spec='${libname}${release}${shared_ext}$major'
8944    fi
8945    shlibpath_var=LIBPATH
8946  fi
8947  ;;
8948
8949amigaos*)
8950  library_names_spec='$libname.ixlibrary $libname.a'
8951  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8952  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'
8953  ;;
8954
8955beos*)
8956  library_names_spec='${libname}${shared_ext}'
8957  dynamic_linker="$host_os ld.so"
8958  shlibpath_var=LIBRARY_PATH
8959  ;;
8960
8961bsdi[45]*)
8962  version_type=linux
8963  need_version=no
8964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8965  soname_spec='${libname}${release}${shared_ext}$major'
8966  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8967  shlibpath_var=LD_LIBRARY_PATH
8968  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8969  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8970  # the default ld.so.conf also contains /usr/contrib/lib and
8971  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8972  # libtool to hard-code these into programs
8973  ;;
8974
8975cygwin* | mingw* | pw32*)
8976  version_type=windows
8977  shrext_cmds=".dll"
8978  need_version=no
8979  need_lib_prefix=no
8980
8981  case $GCC,$host_os in
8982  yes,cygwin* | yes,mingw* | yes,pw32*)
8983    library_names_spec='$libname.dll.a'
8984    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8985    postinstall_cmds='base_file=`basename \${file}`~
8986      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8987      dldir=$destdir/`dirname \$dlpath`~
8988      test -d \$dldir || mkdir -p \$dldir~
8989      $install_prog $dir/$dlname \$dldir/$dlname~
8990      chmod a+x \$dldir/$dlname'
8991    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8992      dlpath=$dir/\$dldll~
8993       $rm \$dlpath'
8994    shlibpath_overrides_runpath=yes
8995
8996    case $host_os in
8997    cygwin*)
8998      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8999      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9000      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9001      ;;
9002    mingw*)
9003      # MinGW DLLs use traditional 'lib' prefix
9004      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9005      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9006      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9007        # It is most probably a Windows format PATH printed by
9008        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9009        # path with ; separators, and with drive letters. We can handle the
9010        # drive letters (cygwin fileutils understands them), so leave them,
9011        # especially as we might pass files found there to a mingw objdump,
9012        # which wouldn't understand a cygwinified path. Ahh.
9013        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9014      else
9015        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9016      fi
9017      ;;
9018    pw32*)
9019      # pw32 DLLs use 'pw' prefix rather than 'lib'
9020      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9021      ;;
9022    esac
9023    ;;
9024
9025  *)
9026    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9027    ;;
9028  esac
9029  dynamic_linker='Win32 ld.exe'
9030  # FIXME: first we should search . and the directory the executable is in
9031  shlibpath_var=PATH
9032  ;;
9033
9034darwin* | rhapsody*)
9035  dynamic_linker="$host_os dyld"
9036  version_type=darwin
9037  need_lib_prefix=no
9038  need_version=no
9039  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9040  soname_spec='${libname}${release}${major}$shared_ext'
9041  shlibpath_overrides_runpath=yes
9042  shlibpath_var=DYLD_LIBRARY_PATH
9043  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9044  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9045  if test "$GCC" = yes; then
9046    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"`
9047  else
9048    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9049  fi
9050  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9051  ;;
9052
9053dgux*)
9054  version_type=linux
9055  need_lib_prefix=no
9056  need_version=no
9057  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9058  soname_spec='${libname}${release}${shared_ext}$major'
9059  shlibpath_var=LD_LIBRARY_PATH
9060  ;;
9061
9062freebsd1*)
9063  dynamic_linker=no
9064  ;;
9065
9066freebsd* | dragonfly*)
9067  # DragonFly does not have aout.  When/if they implement a new
9068  # versioning mechanism, adjust this.
9069  if test -x /usr/bin/objformat; then
9070    objformat=`/usr/bin/objformat`
9071  else
9072    case $host_os in
9073    freebsd[123]*) objformat=aout ;;
9074    *) objformat=elf ;;
9075    esac
9076  fi
9077  version_type=freebsd-$objformat
9078  case $version_type in
9079    freebsd-elf*)
9080      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9081      need_version=no
9082      need_lib_prefix=no
9083      ;;
9084    freebsd-*)
9085      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9086      need_version=yes
9087      ;;
9088  esac
9089  shlibpath_var=LD_LIBRARY_PATH
9090  case $host_os in
9091  freebsd2*)
9092    shlibpath_overrides_runpath=yes
9093    ;;
9094  freebsd3.[01]* | freebsdelf3.[01]*)
9095    shlibpath_overrides_runpath=yes
9096    hardcode_into_libs=yes
9097    ;;
9098  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9099  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9100    shlibpath_overrides_runpath=no
9101    hardcode_into_libs=yes
9102    ;;
9103  freebsd*) # from 4.6 on
9104    shlibpath_overrides_runpath=yes
9105    hardcode_into_libs=yes
9106    ;;
9107  esac
9108  ;;
9109
9110gnu*)
9111  version_type=linux
9112  need_lib_prefix=no
9113  need_version=no
9114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9115  soname_spec='${libname}${release}${shared_ext}$major'
9116  shlibpath_var=LD_LIBRARY_PATH
9117  hardcode_into_libs=yes
9118  ;;
9119
9120hpux9* | hpux10* | hpux11*)
9121  # Give a soname corresponding to the major version so that dld.sl refuses to
9122  # link against other versions.
9123  version_type=sunos
9124  need_lib_prefix=no
9125  need_version=no
9126  case $host_cpu in
9127  ia64*)
9128    shrext_cmds='.so'
9129    hardcode_into_libs=yes
9130    dynamic_linker="$host_os dld.so"
9131    shlibpath_var=LD_LIBRARY_PATH
9132    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9133    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134    soname_spec='${libname}${release}${shared_ext}$major'
9135    if test "X$HPUX_IA64_MODE" = X32; then
9136      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9137    else
9138      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9139    fi
9140    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9141    ;;
9142   hppa*64*)
9143     shrext_cmds='.sl'
9144     hardcode_into_libs=yes
9145     dynamic_linker="$host_os dld.sl"
9146     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9147     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9148     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9149     soname_spec='${libname}${release}${shared_ext}$major'
9150     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9151     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9152     ;;
9153   *)
9154    shrext_cmds='.sl'
9155    dynamic_linker="$host_os dld.sl"
9156    shlibpath_var=SHLIB_PATH
9157    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9158    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9159    soname_spec='${libname}${release}${shared_ext}$major'
9160    ;;
9161  esac
9162  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9163  postinstall_cmds='chmod 555 $lib'
9164  ;;
9165
9166interix3*)
9167  version_type=linux
9168  need_lib_prefix=no
9169  need_version=no
9170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9171  soname_spec='${libname}${release}${shared_ext}$major'
9172  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9173  shlibpath_var=LD_LIBRARY_PATH
9174  shlibpath_overrides_runpath=no
9175  hardcode_into_libs=yes
9176  ;;
9177
9178irix5* | irix6* | nonstopux*)
9179  case $host_os in
9180    nonstopux*) version_type=nonstopux ;;
9181    *)
9182	if test "$lt_cv_prog_gnu_ld" = yes; then
9183		version_type=linux
9184	else
9185		version_type=irix
9186	fi ;;
9187  esac
9188  need_lib_prefix=no
9189  need_version=no
9190  soname_spec='${libname}${release}${shared_ext}$major'
9191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9192  case $host_os in
9193  irix5* | nonstopux*)
9194    libsuff= shlibsuff=
9195    ;;
9196  *)
9197    case $LD in # libtool.m4 will add one of these switches to LD
9198    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9199      libsuff= shlibsuff= libmagic=32-bit;;
9200    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9201      libsuff=32 shlibsuff=N32 libmagic=N32;;
9202    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9203      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9204    *) libsuff= shlibsuff= libmagic=never-match;;
9205    esac
9206    ;;
9207  esac
9208  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9209  shlibpath_overrides_runpath=no
9210  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9211  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9212  hardcode_into_libs=yes
9213  ;;
9214
9215# No shared lib support for Linux oldld, aout, or coff.
9216linux*oldld* | linux*aout* | linux*coff*)
9217  dynamic_linker=no
9218  ;;
9219
9220# This must be Linux ELF.
9221linux* | k*bsd*-gnu)
9222  version_type=linux
9223  need_lib_prefix=no
9224  need_version=no
9225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9226  soname_spec='${libname}${release}${shared_ext}$major'
9227  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9228  shlibpath_var=LD_LIBRARY_PATH
9229  shlibpath_overrides_runpath=no
9230  # This implies no fast_install, which is unacceptable.
9231  # Some rework will be needed to allow for fast_install
9232  # before this can be enabled.
9233  hardcode_into_libs=yes
9234
9235  # Append ld.so.conf contents to the search path
9236  if test -f /etc/ld.so.conf; then
9237    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' ' '`
9238    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9239  fi
9240
9241  # We used to test for /lib/ld.so.1 and disable shared libraries on
9242  # powerpc, because MkLinux only supported shared libraries with the
9243  # GNU dynamic linker.  Since this was broken with cross compilers,
9244  # most powerpc-linux boxes support dynamic linking these days and
9245  # people can always --disable-shared, the test was removed, and we
9246  # assume the GNU/Linux dynamic linker is in use.
9247  dynamic_linker='GNU/Linux ld.so'
9248  ;;
9249
9250netbsdelf*-gnu)
9251  version_type=linux
9252  need_lib_prefix=no
9253  need_version=no
9254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9255  soname_spec='${libname}${release}${shared_ext}$major'
9256  shlibpath_var=LD_LIBRARY_PATH
9257  shlibpath_overrides_runpath=no
9258  hardcode_into_libs=yes
9259  dynamic_linker='NetBSD ld.elf_so'
9260  ;;
9261
9262netbsd*)
9263  version_type=sunos
9264  need_lib_prefix=no
9265  need_version=no
9266  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9267    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9268    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9269    dynamic_linker='NetBSD (a.out) ld.so'
9270  else
9271    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9272    soname_spec='${libname}${release}${shared_ext}$major'
9273    dynamic_linker='NetBSD ld.elf_so'
9274  fi
9275  shlibpath_var=LD_LIBRARY_PATH
9276  shlibpath_overrides_runpath=yes
9277  hardcode_into_libs=yes
9278  ;;
9279
9280newsos6)
9281  version_type=linux
9282  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283  shlibpath_var=LD_LIBRARY_PATH
9284  shlibpath_overrides_runpath=yes
9285  ;;
9286
9287nto-qnx*)
9288  version_type=linux
9289  need_lib_prefix=no
9290  need_version=no
9291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9292  soname_spec='${libname}${release}${shared_ext}$major'
9293  shlibpath_var=LD_LIBRARY_PATH
9294  shlibpath_overrides_runpath=yes
9295  ;;
9296
9297openbsd*)
9298  version_type=sunos
9299  sys_lib_dlsearch_path_spec="/usr/lib"
9300  need_lib_prefix=no
9301  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9302  case $host_os in
9303    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9304    *)                         need_version=no  ;;
9305  esac
9306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9307  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9308  shlibpath_var=LD_LIBRARY_PATH
9309  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9310    case $host_os in
9311      openbsd2.[89] | openbsd2.[89].*)
9312	shlibpath_overrides_runpath=no
9313	;;
9314      *)
9315	shlibpath_overrides_runpath=yes
9316	;;
9317      esac
9318  else
9319    shlibpath_overrides_runpath=yes
9320  fi
9321  ;;
9322
9323os2*)
9324  libname_spec='$name'
9325  shrext_cmds=".dll"
9326  need_lib_prefix=no
9327  library_names_spec='$libname${shared_ext} $libname.a'
9328  dynamic_linker='OS/2 ld.exe'
9329  shlibpath_var=LIBPATH
9330  ;;
9331
9332osf3* | osf4* | osf5*)
9333  version_type=osf
9334  need_lib_prefix=no
9335  need_version=no
9336  soname_spec='${libname}${release}${shared_ext}$major'
9337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9338  shlibpath_var=LD_LIBRARY_PATH
9339  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9340  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9341  ;;
9342
9343solaris*)
9344  version_type=linux
9345  need_lib_prefix=no
9346  need_version=no
9347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348  soname_spec='${libname}${release}${shared_ext}$major'
9349  shlibpath_var=LD_LIBRARY_PATH
9350  shlibpath_overrides_runpath=yes
9351  hardcode_into_libs=yes
9352  # ldd complains unless libraries are executable
9353  postinstall_cmds='chmod +x $lib'
9354  ;;
9355
9356sunos4*)
9357  version_type=sunos
9358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9359  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9360  shlibpath_var=LD_LIBRARY_PATH
9361  shlibpath_overrides_runpath=yes
9362  if test "$with_gnu_ld" = yes; then
9363    need_lib_prefix=no
9364  fi
9365  need_version=yes
9366  ;;
9367
9368sysv4 | sysv4.3*)
9369  version_type=linux
9370  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9371  soname_spec='${libname}${release}${shared_ext}$major'
9372  shlibpath_var=LD_LIBRARY_PATH
9373  case $host_vendor in
9374    sni)
9375      shlibpath_overrides_runpath=no
9376      need_lib_prefix=no
9377      export_dynamic_flag_spec='${wl}-Blargedynsym'
9378      runpath_var=LD_RUN_PATH
9379      ;;
9380    siemens)
9381      need_lib_prefix=no
9382      ;;
9383    motorola)
9384      need_lib_prefix=no
9385      need_version=no
9386      shlibpath_overrides_runpath=no
9387      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9388      ;;
9389  esac
9390  ;;
9391
9392sysv4*MP*)
9393  if test -d /usr/nec ;then
9394    version_type=linux
9395    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9396    soname_spec='$libname${shared_ext}.$major'
9397    shlibpath_var=LD_LIBRARY_PATH
9398  fi
9399  ;;
9400
9401sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9402  version_type=freebsd-elf
9403  need_lib_prefix=no
9404  need_version=no
9405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9406  soname_spec='${libname}${release}${shared_ext}$major'
9407  shlibpath_var=LD_LIBRARY_PATH
9408  hardcode_into_libs=yes
9409  if test "$with_gnu_ld" = yes; then
9410    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9411    shlibpath_overrides_runpath=no
9412  else
9413    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9414    shlibpath_overrides_runpath=yes
9415    case $host_os in
9416      sco3.2v5*)
9417        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9418	;;
9419    esac
9420  fi
9421  sys_lib_dlsearch_path_spec='/usr/lib'
9422  ;;
9423
9424uts4*)
9425  version_type=linux
9426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9427  soname_spec='${libname}${release}${shared_ext}$major'
9428  shlibpath_var=LD_LIBRARY_PATH
9429  ;;
9430
9431*)
9432  dynamic_linker=no
9433  ;;
9434esac
9435{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9436echo "${ECHO_T}$dynamic_linker" >&6; }
9437test "$dynamic_linker" = no && can_build_shared=no
9438
9439variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9440if test "$GCC" = yes; then
9441  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9442fi
9443
9444{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9445echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9446hardcode_action=
9447if test -n "$hardcode_libdir_flag_spec" || \
9448   test -n "$runpath_var" || \
9449   test "X$hardcode_automatic" = "Xyes" ; then
9450
9451  # We can hardcode non-existant directories.
9452  if test "$hardcode_direct" != no &&
9453     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9454     # have to relink, otherwise we might link with an installed library
9455     # when we should be linking with a yet-to-be-installed one
9456     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9457     test "$hardcode_minus_L" != no; then
9458    # Linking always hardcodes the temporary library directory.
9459    hardcode_action=relink
9460  else
9461    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9462    hardcode_action=immediate
9463  fi
9464else
9465  # We cannot hardcode anything, or else we can only hardcode existing
9466  # directories.
9467  hardcode_action=unsupported
9468fi
9469{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9470echo "${ECHO_T}$hardcode_action" >&6; }
9471
9472if test "$hardcode_action" = relink; then
9473  # Fast installation is not supported
9474  enable_fast_install=no
9475elif test "$shlibpath_overrides_runpath" = yes ||
9476     test "$enable_shared" = no; then
9477  # Fast installation is not necessary
9478  enable_fast_install=needless
9479fi
9480
9481striplib=
9482old_striplib=
9483{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9484echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9485if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9486  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9487  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9488  { echo "$as_me:$LINENO: result: yes" >&5
9489echo "${ECHO_T}yes" >&6; }
9490else
9491# FIXME - insert some real tests, host_os isn't really good enough
9492  case $host_os in
9493   darwin*)
9494       if test -n "$STRIP" ; then
9495         striplib="$STRIP -x"
9496         { echo "$as_me:$LINENO: result: yes" >&5
9497echo "${ECHO_T}yes" >&6; }
9498       else
9499  { echo "$as_me:$LINENO: result: no" >&5
9500echo "${ECHO_T}no" >&6; }
9501fi
9502       ;;
9503   *)
9504  { echo "$as_me:$LINENO: result: no" >&5
9505echo "${ECHO_T}no" >&6; }
9506    ;;
9507  esac
9508fi
9509
9510if test "x$enable_dlopen" != xyes; then
9511  enable_dlopen=unknown
9512  enable_dlopen_self=unknown
9513  enable_dlopen_self_static=unknown
9514else
9515  lt_cv_dlopen=no
9516  lt_cv_dlopen_libs=
9517
9518  case $host_os in
9519  beos*)
9520    lt_cv_dlopen="load_add_on"
9521    lt_cv_dlopen_libs=
9522    lt_cv_dlopen_self=yes
9523    ;;
9524
9525  mingw* | pw32*)
9526    lt_cv_dlopen="LoadLibrary"
9527    lt_cv_dlopen_libs=
9528   ;;
9529
9530  cygwin*)
9531    lt_cv_dlopen="dlopen"
9532    lt_cv_dlopen_libs=
9533   ;;
9534
9535  darwin*)
9536  # if libdl is installed we need to link against it
9537    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9538echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9539if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9540  echo $ECHO_N "(cached) $ECHO_C" >&6
9541else
9542  ac_check_lib_save_LIBS=$LIBS
9543LIBS="-ldl  $LIBS"
9544cat >conftest.$ac_ext <<_ACEOF
9545/* confdefs.h.  */
9546_ACEOF
9547cat confdefs.h >>conftest.$ac_ext
9548cat >>conftest.$ac_ext <<_ACEOF
9549/* end confdefs.h.  */
9550
9551/* Override any GCC internal prototype to avoid an error.
9552   Use char because int might match the return type of a GCC
9553   builtin and then its argument prototype would still apply.  */
9554#ifdef __cplusplus
9555extern "C"
9556#endif
9557char dlopen ();
9558int
9559main ()
9560{
9561return dlopen ();
9562  ;
9563  return 0;
9564}
9565_ACEOF
9566rm -f conftest.$ac_objext conftest$ac_exeext
9567if { (ac_try="$ac_link"
9568case "(($ac_try" in
9569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570  *) ac_try_echo=$ac_try;;
9571esac
9572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573  (eval "$ac_link") 2>conftest.er1
9574  ac_status=$?
9575  grep -v '^ *+' conftest.er1 >conftest.err
9576  rm -f conftest.er1
9577  cat conftest.err >&5
9578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579  (exit $ac_status); } &&
9580	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9581  { (case "(($ac_try" in
9582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583  *) ac_try_echo=$ac_try;;
9584esac
9585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586  (eval "$ac_try") 2>&5
9587  ac_status=$?
9588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589  (exit $ac_status); }; } &&
9590	 { ac_try='test -s conftest$ac_exeext'
9591  { (case "(($ac_try" in
9592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593  *) ac_try_echo=$ac_try;;
9594esac
9595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596  (eval "$ac_try") 2>&5
9597  ac_status=$?
9598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599  (exit $ac_status); }; }; then
9600  ac_cv_lib_dl_dlopen=yes
9601else
9602  echo "$as_me: failed program was:" >&5
9603sed 's/^/| /' conftest.$ac_ext >&5
9604
9605	ac_cv_lib_dl_dlopen=no
9606fi
9607
9608rm -f core conftest.err conftest.$ac_objext \
9609      conftest$ac_exeext conftest.$ac_ext
9610LIBS=$ac_check_lib_save_LIBS
9611fi
9612{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9613echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9614if test $ac_cv_lib_dl_dlopen = yes; then
9615  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9616else
9617
9618    lt_cv_dlopen="dyld"
9619    lt_cv_dlopen_libs=
9620    lt_cv_dlopen_self=yes
9621
9622fi
9623
9624   ;;
9625
9626  *)
9627    { echo "$as_me:$LINENO: checking for shl_load" >&5
9628echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9629if test "${ac_cv_func_shl_load+set}" = set; then
9630  echo $ECHO_N "(cached) $ECHO_C" >&6
9631else
9632  cat >conftest.$ac_ext <<_ACEOF
9633/* confdefs.h.  */
9634_ACEOF
9635cat confdefs.h >>conftest.$ac_ext
9636cat >>conftest.$ac_ext <<_ACEOF
9637/* end confdefs.h.  */
9638/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9639   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9640#define shl_load innocuous_shl_load
9641
9642/* System header to define __stub macros and hopefully few prototypes,
9643    which can conflict with char shl_load (); below.
9644    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9645    <limits.h> exists even on freestanding compilers.  */
9646
9647#ifdef __STDC__
9648# include <limits.h>
9649#else
9650# include <assert.h>
9651#endif
9652
9653#undef shl_load
9654
9655/* Override any GCC internal prototype to avoid an error.
9656   Use char because int might match the return type of a GCC
9657   builtin and then its argument prototype would still apply.  */
9658#ifdef __cplusplus
9659extern "C"
9660#endif
9661char shl_load ();
9662/* The GNU C library defines this for functions which it implements
9663    to always fail with ENOSYS.  Some functions are actually named
9664    something starting with __ and the normal name is an alias.  */
9665#if defined __stub_shl_load || defined __stub___shl_load
9666choke me
9667#endif
9668
9669int
9670main ()
9671{
9672return shl_load ();
9673  ;
9674  return 0;
9675}
9676_ACEOF
9677rm -f conftest.$ac_objext conftest$ac_exeext
9678if { (ac_try="$ac_link"
9679case "(($ac_try" in
9680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9681  *) ac_try_echo=$ac_try;;
9682esac
9683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9684  (eval "$ac_link") 2>conftest.er1
9685  ac_status=$?
9686  grep -v '^ *+' conftest.er1 >conftest.err
9687  rm -f conftest.er1
9688  cat conftest.err >&5
9689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690  (exit $ac_status); } &&
9691	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9692  { (case "(($ac_try" in
9693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694  *) ac_try_echo=$ac_try;;
9695esac
9696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697  (eval "$ac_try") 2>&5
9698  ac_status=$?
9699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700  (exit $ac_status); }; } &&
9701	 { ac_try='test -s conftest$ac_exeext'
9702  { (case "(($ac_try" in
9703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704  *) ac_try_echo=$ac_try;;
9705esac
9706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707  (eval "$ac_try") 2>&5
9708  ac_status=$?
9709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710  (exit $ac_status); }; }; then
9711  ac_cv_func_shl_load=yes
9712else
9713  echo "$as_me: failed program was:" >&5
9714sed 's/^/| /' conftest.$ac_ext >&5
9715
9716	ac_cv_func_shl_load=no
9717fi
9718
9719rm -f core conftest.err conftest.$ac_objext \
9720      conftest$ac_exeext conftest.$ac_ext
9721fi
9722{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9723echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9724if test $ac_cv_func_shl_load = yes; then
9725  lt_cv_dlopen="shl_load"
9726else
9727  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9728echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9729if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9730  echo $ECHO_N "(cached) $ECHO_C" >&6
9731else
9732  ac_check_lib_save_LIBS=$LIBS
9733LIBS="-ldld  $LIBS"
9734cat >conftest.$ac_ext <<_ACEOF
9735/* confdefs.h.  */
9736_ACEOF
9737cat confdefs.h >>conftest.$ac_ext
9738cat >>conftest.$ac_ext <<_ACEOF
9739/* end confdefs.h.  */
9740
9741/* Override any GCC internal prototype to avoid an error.
9742   Use char because int might match the return type of a GCC
9743   builtin and then its argument prototype would still apply.  */
9744#ifdef __cplusplus
9745extern "C"
9746#endif
9747char shl_load ();
9748int
9749main ()
9750{
9751return shl_load ();
9752  ;
9753  return 0;
9754}
9755_ACEOF
9756rm -f conftest.$ac_objext conftest$ac_exeext
9757if { (ac_try="$ac_link"
9758case "(($ac_try" in
9759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760  *) ac_try_echo=$ac_try;;
9761esac
9762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763  (eval "$ac_link") 2>conftest.er1
9764  ac_status=$?
9765  grep -v '^ *+' conftest.er1 >conftest.err
9766  rm -f conftest.er1
9767  cat conftest.err >&5
9768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769  (exit $ac_status); } &&
9770	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9771  { (case "(($ac_try" in
9772  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773  *) ac_try_echo=$ac_try;;
9774esac
9775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776  (eval "$ac_try") 2>&5
9777  ac_status=$?
9778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779  (exit $ac_status); }; } &&
9780	 { ac_try='test -s conftest$ac_exeext'
9781  { (case "(($ac_try" in
9782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783  *) ac_try_echo=$ac_try;;
9784esac
9785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786  (eval "$ac_try") 2>&5
9787  ac_status=$?
9788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789  (exit $ac_status); }; }; then
9790  ac_cv_lib_dld_shl_load=yes
9791else
9792  echo "$as_me: failed program was:" >&5
9793sed 's/^/| /' conftest.$ac_ext >&5
9794
9795	ac_cv_lib_dld_shl_load=no
9796fi
9797
9798rm -f core conftest.err conftest.$ac_objext \
9799      conftest$ac_exeext conftest.$ac_ext
9800LIBS=$ac_check_lib_save_LIBS
9801fi
9802{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9803echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9804if test $ac_cv_lib_dld_shl_load = yes; then
9805  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9806else
9807  { echo "$as_me:$LINENO: checking for dlopen" >&5
9808echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9809if test "${ac_cv_func_dlopen+set}" = set; then
9810  echo $ECHO_N "(cached) $ECHO_C" >&6
9811else
9812  cat >conftest.$ac_ext <<_ACEOF
9813/* confdefs.h.  */
9814_ACEOF
9815cat confdefs.h >>conftest.$ac_ext
9816cat >>conftest.$ac_ext <<_ACEOF
9817/* end confdefs.h.  */
9818/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9819   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9820#define dlopen innocuous_dlopen
9821
9822/* System header to define __stub macros and hopefully few prototypes,
9823    which can conflict with char dlopen (); below.
9824    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9825    <limits.h> exists even on freestanding compilers.  */
9826
9827#ifdef __STDC__
9828# include <limits.h>
9829#else
9830# include <assert.h>
9831#endif
9832
9833#undef dlopen
9834
9835/* Override any GCC internal prototype to avoid an error.
9836   Use char because int might match the return type of a GCC
9837   builtin and then its argument prototype would still apply.  */
9838#ifdef __cplusplus
9839extern "C"
9840#endif
9841char dlopen ();
9842/* The GNU C library defines this for functions which it implements
9843    to always fail with ENOSYS.  Some functions are actually named
9844    something starting with __ and the normal name is an alias.  */
9845#if defined __stub_dlopen || defined __stub___dlopen
9846choke me
9847#endif
9848
9849int
9850main ()
9851{
9852return dlopen ();
9853  ;
9854  return 0;
9855}
9856_ACEOF
9857rm -f conftest.$ac_objext conftest$ac_exeext
9858if { (ac_try="$ac_link"
9859case "(($ac_try" in
9860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861  *) ac_try_echo=$ac_try;;
9862esac
9863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864  (eval "$ac_link") 2>conftest.er1
9865  ac_status=$?
9866  grep -v '^ *+' conftest.er1 >conftest.err
9867  rm -f conftest.er1
9868  cat conftest.err >&5
9869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870  (exit $ac_status); } &&
9871	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9872  { (case "(($ac_try" in
9873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874  *) ac_try_echo=$ac_try;;
9875esac
9876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877  (eval "$ac_try") 2>&5
9878  ac_status=$?
9879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880  (exit $ac_status); }; } &&
9881	 { ac_try='test -s conftest$ac_exeext'
9882  { (case "(($ac_try" in
9883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884  *) ac_try_echo=$ac_try;;
9885esac
9886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9887  (eval "$ac_try") 2>&5
9888  ac_status=$?
9889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890  (exit $ac_status); }; }; then
9891  ac_cv_func_dlopen=yes
9892else
9893  echo "$as_me: failed program was:" >&5
9894sed 's/^/| /' conftest.$ac_ext >&5
9895
9896	ac_cv_func_dlopen=no
9897fi
9898
9899rm -f core conftest.err conftest.$ac_objext \
9900      conftest$ac_exeext conftest.$ac_ext
9901fi
9902{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9903echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9904if test $ac_cv_func_dlopen = yes; then
9905  lt_cv_dlopen="dlopen"
9906else
9907  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9908echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9909if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9910  echo $ECHO_N "(cached) $ECHO_C" >&6
9911else
9912  ac_check_lib_save_LIBS=$LIBS
9913LIBS="-ldl  $LIBS"
9914cat >conftest.$ac_ext <<_ACEOF
9915/* confdefs.h.  */
9916_ACEOF
9917cat confdefs.h >>conftest.$ac_ext
9918cat >>conftest.$ac_ext <<_ACEOF
9919/* end confdefs.h.  */
9920
9921/* Override any GCC internal prototype to avoid an error.
9922   Use char because int might match the return type of a GCC
9923   builtin and then its argument prototype would still apply.  */
9924#ifdef __cplusplus
9925extern "C"
9926#endif
9927char dlopen ();
9928int
9929main ()
9930{
9931return dlopen ();
9932  ;
9933  return 0;
9934}
9935_ACEOF
9936rm -f conftest.$ac_objext conftest$ac_exeext
9937if { (ac_try="$ac_link"
9938case "(($ac_try" in
9939  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940  *) ac_try_echo=$ac_try;;
9941esac
9942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943  (eval "$ac_link") 2>conftest.er1
9944  ac_status=$?
9945  grep -v '^ *+' conftest.er1 >conftest.err
9946  rm -f conftest.er1
9947  cat conftest.err >&5
9948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949  (exit $ac_status); } &&
9950	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9951  { (case "(($ac_try" in
9952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953  *) ac_try_echo=$ac_try;;
9954esac
9955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956  (eval "$ac_try") 2>&5
9957  ac_status=$?
9958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959  (exit $ac_status); }; } &&
9960	 { ac_try='test -s conftest$ac_exeext'
9961  { (case "(($ac_try" in
9962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963  *) ac_try_echo=$ac_try;;
9964esac
9965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966  (eval "$ac_try") 2>&5
9967  ac_status=$?
9968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969  (exit $ac_status); }; }; then
9970  ac_cv_lib_dl_dlopen=yes
9971else
9972  echo "$as_me: failed program was:" >&5
9973sed 's/^/| /' conftest.$ac_ext >&5
9974
9975	ac_cv_lib_dl_dlopen=no
9976fi
9977
9978rm -f core conftest.err conftest.$ac_objext \
9979      conftest$ac_exeext conftest.$ac_ext
9980LIBS=$ac_check_lib_save_LIBS
9981fi
9982{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9983echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9984if test $ac_cv_lib_dl_dlopen = yes; then
9985  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9986else
9987  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9988echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9989if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9990  echo $ECHO_N "(cached) $ECHO_C" >&6
9991else
9992  ac_check_lib_save_LIBS=$LIBS
9993LIBS="-lsvld  $LIBS"
9994cat >conftest.$ac_ext <<_ACEOF
9995/* confdefs.h.  */
9996_ACEOF
9997cat confdefs.h >>conftest.$ac_ext
9998cat >>conftest.$ac_ext <<_ACEOF
9999/* end confdefs.h.  */
10000
10001/* Override any GCC internal prototype to avoid an error.
10002   Use char because int might match the return type of a GCC
10003   builtin and then its argument prototype would still apply.  */
10004#ifdef __cplusplus
10005extern "C"
10006#endif
10007char dlopen ();
10008int
10009main ()
10010{
10011return dlopen ();
10012  ;
10013  return 0;
10014}
10015_ACEOF
10016rm -f conftest.$ac_objext conftest$ac_exeext
10017if { (ac_try="$ac_link"
10018case "(($ac_try" in
10019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020  *) ac_try_echo=$ac_try;;
10021esac
10022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023  (eval "$ac_link") 2>conftest.er1
10024  ac_status=$?
10025  grep -v '^ *+' conftest.er1 >conftest.err
10026  rm -f conftest.er1
10027  cat conftest.err >&5
10028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029  (exit $ac_status); } &&
10030	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10031  { (case "(($ac_try" in
10032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033  *) ac_try_echo=$ac_try;;
10034esac
10035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036  (eval "$ac_try") 2>&5
10037  ac_status=$?
10038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039  (exit $ac_status); }; } &&
10040	 { ac_try='test -s conftest$ac_exeext'
10041  { (case "(($ac_try" in
10042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043  *) ac_try_echo=$ac_try;;
10044esac
10045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046  (eval "$ac_try") 2>&5
10047  ac_status=$?
10048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049  (exit $ac_status); }; }; then
10050  ac_cv_lib_svld_dlopen=yes
10051else
10052  echo "$as_me: failed program was:" >&5
10053sed 's/^/| /' conftest.$ac_ext >&5
10054
10055	ac_cv_lib_svld_dlopen=no
10056fi
10057
10058rm -f core conftest.err conftest.$ac_objext \
10059      conftest$ac_exeext conftest.$ac_ext
10060LIBS=$ac_check_lib_save_LIBS
10061fi
10062{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10063echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10064if test $ac_cv_lib_svld_dlopen = yes; then
10065  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10066else
10067  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10068echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10069if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10070  echo $ECHO_N "(cached) $ECHO_C" >&6
10071else
10072  ac_check_lib_save_LIBS=$LIBS
10073LIBS="-ldld  $LIBS"
10074cat >conftest.$ac_ext <<_ACEOF
10075/* confdefs.h.  */
10076_ACEOF
10077cat confdefs.h >>conftest.$ac_ext
10078cat >>conftest.$ac_ext <<_ACEOF
10079/* end confdefs.h.  */
10080
10081/* Override any GCC internal prototype to avoid an error.
10082   Use char because int might match the return type of a GCC
10083   builtin and then its argument prototype would still apply.  */
10084#ifdef __cplusplus
10085extern "C"
10086#endif
10087char dld_link ();
10088int
10089main ()
10090{
10091return dld_link ();
10092  ;
10093  return 0;
10094}
10095_ACEOF
10096rm -f conftest.$ac_objext conftest$ac_exeext
10097if { (ac_try="$ac_link"
10098case "(($ac_try" in
10099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100  *) ac_try_echo=$ac_try;;
10101esac
10102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103  (eval "$ac_link") 2>conftest.er1
10104  ac_status=$?
10105  grep -v '^ *+' conftest.er1 >conftest.err
10106  rm -f conftest.er1
10107  cat conftest.err >&5
10108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109  (exit $ac_status); } &&
10110	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10111  { (case "(($ac_try" in
10112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113  *) ac_try_echo=$ac_try;;
10114esac
10115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116  (eval "$ac_try") 2>&5
10117  ac_status=$?
10118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119  (exit $ac_status); }; } &&
10120	 { ac_try='test -s conftest$ac_exeext'
10121  { (case "(($ac_try" in
10122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123  *) ac_try_echo=$ac_try;;
10124esac
10125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126  (eval "$ac_try") 2>&5
10127  ac_status=$?
10128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129  (exit $ac_status); }; }; then
10130  ac_cv_lib_dld_dld_link=yes
10131else
10132  echo "$as_me: failed program was:" >&5
10133sed 's/^/| /' conftest.$ac_ext >&5
10134
10135	ac_cv_lib_dld_dld_link=no
10136fi
10137
10138rm -f core conftest.err conftest.$ac_objext \
10139      conftest$ac_exeext conftest.$ac_ext
10140LIBS=$ac_check_lib_save_LIBS
10141fi
10142{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10143echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10144if test $ac_cv_lib_dld_dld_link = yes; then
10145  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10146fi
10147
10148
10149fi
10150
10151
10152fi
10153
10154
10155fi
10156
10157
10158fi
10159
10160
10161fi
10162
10163    ;;
10164  esac
10165
10166  if test "x$lt_cv_dlopen" != xno; then
10167    enable_dlopen=yes
10168  else
10169    enable_dlopen=no
10170  fi
10171
10172  case $lt_cv_dlopen in
10173  dlopen)
10174    save_CPPFLAGS="$CPPFLAGS"
10175    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10176
10177    save_LDFLAGS="$LDFLAGS"
10178    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10179
10180    save_LIBS="$LIBS"
10181    LIBS="$lt_cv_dlopen_libs $LIBS"
10182
10183    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10184echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10185if test "${lt_cv_dlopen_self+set}" = set; then
10186  echo $ECHO_N "(cached) $ECHO_C" >&6
10187else
10188  	  if test "$cross_compiling" = yes; then :
10189  lt_cv_dlopen_self=cross
10190else
10191  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10192  lt_status=$lt_dlunknown
10193  cat > conftest.$ac_ext <<EOF
10194#line 10194 "configure"
10195#include "confdefs.h"
10196
10197#if HAVE_DLFCN_H
10198#include <dlfcn.h>
10199#endif
10200
10201#include <stdio.h>
10202
10203#ifdef RTLD_GLOBAL
10204#  define LT_DLGLOBAL		RTLD_GLOBAL
10205#else
10206#  ifdef DL_GLOBAL
10207#    define LT_DLGLOBAL		DL_GLOBAL
10208#  else
10209#    define LT_DLGLOBAL		0
10210#  endif
10211#endif
10212
10213/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10214   find out it does not work in some platform. */
10215#ifndef LT_DLLAZY_OR_NOW
10216#  ifdef RTLD_LAZY
10217#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10218#  else
10219#    ifdef DL_LAZY
10220#      define LT_DLLAZY_OR_NOW		DL_LAZY
10221#    else
10222#      ifdef RTLD_NOW
10223#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10224#      else
10225#        ifdef DL_NOW
10226#          define LT_DLLAZY_OR_NOW	DL_NOW
10227#        else
10228#          define LT_DLLAZY_OR_NOW	0
10229#        endif
10230#      endif
10231#    endif
10232#  endif
10233#endif
10234
10235#ifdef __cplusplus
10236extern "C" void exit (int);
10237#endif
10238
10239void fnord() { int i=42;}
10240int main ()
10241{
10242  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10243  int status = $lt_dlunknown;
10244
10245  if (self)
10246    {
10247      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10248      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10249      /* dlclose (self); */
10250    }
10251  else
10252    puts (dlerror ());
10253
10254    exit (status);
10255}
10256EOF
10257  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10258  (eval $ac_link) 2>&5
10259  ac_status=$?
10260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10262    (./conftest; exit; ) >&5 2>/dev/null
10263    lt_status=$?
10264    case x$lt_status in
10265      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10266      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10267      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10268    esac
10269  else :
10270    # compilation failed
10271    lt_cv_dlopen_self=no
10272  fi
10273fi
10274rm -fr conftest*
10275
10276
10277fi
10278{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10279echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10280
10281    if test "x$lt_cv_dlopen_self" = xyes; then
10282      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10283      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10284echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10285if test "${lt_cv_dlopen_self_static+set}" = set; then
10286  echo $ECHO_N "(cached) $ECHO_C" >&6
10287else
10288  	  if test "$cross_compiling" = yes; then :
10289  lt_cv_dlopen_self_static=cross
10290else
10291  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10292  lt_status=$lt_dlunknown
10293  cat > conftest.$ac_ext <<EOF
10294#line 10294 "configure"
10295#include "confdefs.h"
10296
10297#if HAVE_DLFCN_H
10298#include <dlfcn.h>
10299#endif
10300
10301#include <stdio.h>
10302
10303#ifdef RTLD_GLOBAL
10304#  define LT_DLGLOBAL		RTLD_GLOBAL
10305#else
10306#  ifdef DL_GLOBAL
10307#    define LT_DLGLOBAL		DL_GLOBAL
10308#  else
10309#    define LT_DLGLOBAL		0
10310#  endif
10311#endif
10312
10313/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10314   find out it does not work in some platform. */
10315#ifndef LT_DLLAZY_OR_NOW
10316#  ifdef RTLD_LAZY
10317#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10318#  else
10319#    ifdef DL_LAZY
10320#      define LT_DLLAZY_OR_NOW		DL_LAZY
10321#    else
10322#      ifdef RTLD_NOW
10323#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10324#      else
10325#        ifdef DL_NOW
10326#          define LT_DLLAZY_OR_NOW	DL_NOW
10327#        else
10328#          define LT_DLLAZY_OR_NOW	0
10329#        endif
10330#      endif
10331#    endif
10332#  endif
10333#endif
10334
10335#ifdef __cplusplus
10336extern "C" void exit (int);
10337#endif
10338
10339void fnord() { int i=42;}
10340int main ()
10341{
10342  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10343  int status = $lt_dlunknown;
10344
10345  if (self)
10346    {
10347      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10348      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10349      /* dlclose (self); */
10350    }
10351  else
10352    puts (dlerror ());
10353
10354    exit (status);
10355}
10356EOF
10357  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10358  (eval $ac_link) 2>&5
10359  ac_status=$?
10360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10362    (./conftest; exit; ) >&5 2>/dev/null
10363    lt_status=$?
10364    case x$lt_status in
10365      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10366      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10367      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10368    esac
10369  else :
10370    # compilation failed
10371    lt_cv_dlopen_self_static=no
10372  fi
10373fi
10374rm -fr conftest*
10375
10376
10377fi
10378{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10379echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10380    fi
10381
10382    CPPFLAGS="$save_CPPFLAGS"
10383    LDFLAGS="$save_LDFLAGS"
10384    LIBS="$save_LIBS"
10385    ;;
10386  esac
10387
10388  case $lt_cv_dlopen_self in
10389  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10390  *) enable_dlopen_self=unknown ;;
10391  esac
10392
10393  case $lt_cv_dlopen_self_static in
10394  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10395  *) enable_dlopen_self_static=unknown ;;
10396  esac
10397fi
10398
10399
10400# Report which library types will actually be built
10401{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10402echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10403{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10404echo "${ECHO_T}$can_build_shared" >&6; }
10405
10406{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10407echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10408test "$can_build_shared" = "no" && enable_shared=no
10409
10410# On AIX, shared libraries and static libraries use the same namespace, and
10411# are all built from PIC.
10412case $host_os in
10413aix3*)
10414  test "$enable_shared" = yes && enable_static=no
10415  if test -n "$RANLIB"; then
10416    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10417    postinstall_cmds='$RANLIB $lib'
10418  fi
10419  ;;
10420
10421aix4* | aix5*)
10422  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10423    test "$enable_shared" = yes && enable_static=no
10424  fi
10425    ;;
10426esac
10427{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10428echo "${ECHO_T}$enable_shared" >&6; }
10429
10430{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10431echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10432# Make sure either enable_shared or enable_static is yes.
10433test "$enable_shared" = yes || enable_static=yes
10434{ echo "$as_me:$LINENO: result: $enable_static" >&5
10435echo "${ECHO_T}$enable_static" >&6; }
10436
10437# The else clause should only fire when bootstrapping the
10438# libtool distribution, otherwise you forgot to ship ltmain.sh
10439# with your package, and you will get complaints that there are
10440# no rules to generate ltmain.sh.
10441if test -f "$ltmain"; then
10442  # See if we are running on zsh, and set the options which allow our commands through
10443  # without removal of \ escapes.
10444  if test -n "${ZSH_VERSION+set}" ; then
10445    setopt NO_GLOB_SUBST
10446  fi
10447  # Now quote all the things that may contain metacharacters while being
10448  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10449  # variables and quote the copies for generation of the libtool script.
10450  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10451    SED SHELL STRIP \
10452    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10453    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10454    deplibs_check_method reload_flag reload_cmds need_locks \
10455    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10456    lt_cv_sys_global_symbol_to_c_name_address \
10457    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10458    old_postinstall_cmds old_postuninstall_cmds \
10459    compiler \
10460    CC \
10461    LD \
10462    lt_prog_compiler_wl \
10463    lt_prog_compiler_pic \
10464    lt_prog_compiler_static \
10465    lt_prog_compiler_no_builtin_flag \
10466    export_dynamic_flag_spec \
10467    thread_safe_flag_spec \
10468    whole_archive_flag_spec \
10469    enable_shared_with_static_runtimes \
10470    old_archive_cmds \
10471    old_archive_from_new_cmds \
10472    predep_objects \
10473    postdep_objects \
10474    predeps \
10475    postdeps \
10476    compiler_lib_search_path \
10477    archive_cmds \
10478    archive_expsym_cmds \
10479    postinstall_cmds \
10480    postuninstall_cmds \
10481    old_archive_from_expsyms_cmds \
10482    allow_undefined_flag \
10483    no_undefined_flag \
10484    export_symbols_cmds \
10485    hardcode_libdir_flag_spec \
10486    hardcode_libdir_flag_spec_ld \
10487    hardcode_libdir_separator \
10488    hardcode_automatic \
10489    module_cmds \
10490    module_expsym_cmds \
10491    lt_cv_prog_compiler_c_o \
10492    exclude_expsyms \
10493    include_expsyms; do
10494
10495    case $var in
10496    old_archive_cmds | \
10497    old_archive_from_new_cmds | \
10498    archive_cmds | \
10499    archive_expsym_cmds | \
10500    module_cmds | \
10501    module_expsym_cmds | \
10502    old_archive_from_expsyms_cmds | \
10503    export_symbols_cmds | \
10504    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10505    postinstall_cmds | postuninstall_cmds | \
10506    old_postinstall_cmds | old_postuninstall_cmds | \
10507    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10508      # Double-quote double-evaled strings.
10509      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10510      ;;
10511    *)
10512      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10513      ;;
10514    esac
10515  done
10516
10517  case $lt_echo in
10518  *'\$0 --fallback-echo"')
10519    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10520    ;;
10521  esac
10522
10523cfgfile="${ofile}T"
10524  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10525  $rm -f "$cfgfile"
10526  { echo "$as_me:$LINENO: creating $ofile" >&5
10527echo "$as_me: creating $ofile" >&6;}
10528
10529  cat <<__EOF__ >> "$cfgfile"
10530#! $SHELL
10531
10532# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10533# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10534# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10535#
10536# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10537# Free Software Foundation, Inc.
10538#
10539# This file is part of GNU Libtool:
10540# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10541#
10542# This program is free software; you can redistribute it and/or modify
10543# it under the terms of the GNU General Public License as published by
10544# the Free Software Foundation; either version 2 of the License, or
10545# (at your option) any later version.
10546#
10547# This program is distributed in the hope that it will be useful, but
10548# WITHOUT ANY WARRANTY; without even the implied warranty of
10549# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10550# General Public License for more details.
10551#
10552# You should have received a copy of the GNU General Public License
10553# along with this program; if not, write to the Free Software
10554# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10555#
10556# As a special exception to the GNU General Public License, if you
10557# distribute this file as part of a program that contains a
10558# configuration script generated by Autoconf, you may include it under
10559# the same distribution terms that you use for the rest of that program.
10560
10561# A sed program that does not truncate output.
10562SED=$lt_SED
10563
10564# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10565Xsed="$SED -e 1s/^X//"
10566
10567# The HP-UX ksh and POSIX shell print the target directory to stdout
10568# if CDPATH is set.
10569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10570
10571# The names of the tagged configurations supported by this script.
10572available_tags=
10573
10574# ### BEGIN LIBTOOL CONFIG
10575
10576# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10577
10578# Shell to use when invoking shell scripts.
10579SHELL=$lt_SHELL
10580
10581# Whether or not to build shared libraries.
10582build_libtool_libs=$enable_shared
10583
10584# Whether or not to build static libraries.
10585build_old_libs=$enable_static
10586
10587# Whether or not to add -lc for building shared libraries.
10588build_libtool_need_lc=$archive_cmds_need_lc
10589
10590# Whether or not to disallow shared libs when runtime libs are static
10591allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10592
10593# Whether or not to optimize for fast installation.
10594fast_install=$enable_fast_install
10595
10596# The host system.
10597host_alias=$host_alias
10598host=$host
10599host_os=$host_os
10600
10601# The build system.
10602build_alias=$build_alias
10603build=$build
10604build_os=$build_os
10605
10606# An echo program that does not interpret backslashes.
10607echo=$lt_echo
10608
10609# The archiver.
10610AR=$lt_AR
10611AR_FLAGS=$lt_AR_FLAGS
10612
10613# A C compiler.
10614LTCC=$lt_LTCC
10615
10616# LTCC compiler flags.
10617LTCFLAGS=$lt_LTCFLAGS
10618
10619# A language-specific compiler.
10620CC=$lt_compiler
10621
10622# Is the compiler the GNU C compiler?
10623with_gcc=$GCC
10624
10625# An ERE matcher.
10626EGREP=$lt_EGREP
10627
10628# The linker used to build libraries.
10629LD=$lt_LD
10630
10631# Whether we need hard or soft links.
10632LN_S=$lt_LN_S
10633
10634# A BSD-compatible nm program.
10635NM=$lt_NM
10636
10637# A symbol stripping program
10638STRIP=$lt_STRIP
10639
10640# Used to examine libraries when file_magic_cmd begins "file"
10641MAGIC_CMD=$MAGIC_CMD
10642
10643# Used on cygwin: DLL creation program.
10644DLLTOOL="$DLLTOOL"
10645
10646# Used on cygwin: object dumper.
10647OBJDUMP="$OBJDUMP"
10648
10649# Used on cygwin: assembler.
10650AS="$AS"
10651
10652# The name of the directory that contains temporary libtool files.
10653objdir=$objdir
10654
10655# How to create reloadable object files.
10656reload_flag=$lt_reload_flag
10657reload_cmds=$lt_reload_cmds
10658
10659# How to pass a linker flag through the compiler.
10660wl=$lt_lt_prog_compiler_wl
10661
10662# Object file suffix (normally "o").
10663objext="$ac_objext"
10664
10665# Old archive suffix (normally "a").
10666libext="$libext"
10667
10668# Shared library suffix (normally ".so").
10669shrext_cmds='$shrext_cmds'
10670
10671# Executable file suffix (normally "").
10672exeext="$exeext"
10673
10674# Additional compiler flags for building library objects.
10675pic_flag=$lt_lt_prog_compiler_pic
10676pic_mode=$pic_mode
10677
10678# What is the maximum length of a command?
10679max_cmd_len=$lt_cv_sys_max_cmd_len
10680
10681# Does compiler simultaneously support -c and -o options?
10682compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10683
10684# Must we lock files when doing compilation?
10685need_locks=$lt_need_locks
10686
10687# Do we need the lib prefix for modules?
10688need_lib_prefix=$need_lib_prefix
10689
10690# Do we need a version for libraries?
10691need_version=$need_version
10692
10693# Whether dlopen is supported.
10694dlopen_support=$enable_dlopen
10695
10696# Whether dlopen of programs is supported.
10697dlopen_self=$enable_dlopen_self
10698
10699# Whether dlopen of statically linked programs is supported.
10700dlopen_self_static=$enable_dlopen_self_static
10701
10702# Compiler flag to prevent dynamic linking.
10703link_static_flag=$lt_lt_prog_compiler_static
10704
10705# Compiler flag to turn off builtin functions.
10706no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10707
10708# Compiler flag to allow reflexive dlopens.
10709export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10710
10711# Compiler flag to generate shared objects directly from archives.
10712whole_archive_flag_spec=$lt_whole_archive_flag_spec
10713
10714# Compiler flag to generate thread-safe objects.
10715thread_safe_flag_spec=$lt_thread_safe_flag_spec
10716
10717# Library versioning type.
10718version_type=$version_type
10719
10720# Format of library name prefix.
10721libname_spec=$lt_libname_spec
10722
10723# List of archive names.  First name is the real one, the rest are links.
10724# The last name is the one that the linker finds with -lNAME.
10725library_names_spec=$lt_library_names_spec
10726
10727# The coded name of the library, if different from the real name.
10728soname_spec=$lt_soname_spec
10729
10730# Commands used to build and install an old-style archive.
10731RANLIB=$lt_RANLIB
10732old_archive_cmds=$lt_old_archive_cmds
10733old_postinstall_cmds=$lt_old_postinstall_cmds
10734old_postuninstall_cmds=$lt_old_postuninstall_cmds
10735
10736# Create an old-style archive from a shared archive.
10737old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10738
10739# Create a temporary old-style archive to link instead of a shared archive.
10740old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10741
10742# Commands used to build and install a shared archive.
10743archive_cmds=$lt_archive_cmds
10744archive_expsym_cmds=$lt_archive_expsym_cmds
10745postinstall_cmds=$lt_postinstall_cmds
10746postuninstall_cmds=$lt_postuninstall_cmds
10747
10748# Commands used to build a loadable module (assumed same as above if empty)
10749module_cmds=$lt_module_cmds
10750module_expsym_cmds=$lt_module_expsym_cmds
10751
10752# Commands to strip libraries.
10753old_striplib=$lt_old_striplib
10754striplib=$lt_striplib
10755
10756# Dependencies to place before the objects being linked to create a
10757# shared library.
10758predep_objects=$lt_predep_objects
10759
10760# Dependencies to place after the objects being linked to create a
10761# shared library.
10762postdep_objects=$lt_postdep_objects
10763
10764# Dependencies to place before the objects being linked to create a
10765# shared library.
10766predeps=$lt_predeps
10767
10768# Dependencies to place after the objects being linked to create a
10769# shared library.
10770postdeps=$lt_postdeps
10771
10772# The library search path used internally by the compiler when linking
10773# a shared library.
10774compiler_lib_search_path=$lt_compiler_lib_search_path
10775
10776# Method to check whether dependent libraries are shared objects.
10777deplibs_check_method=$lt_deplibs_check_method
10778
10779# Command to use when deplibs_check_method == file_magic.
10780file_magic_cmd=$lt_file_magic_cmd
10781
10782# Flag that allows shared libraries with undefined symbols to be built.
10783allow_undefined_flag=$lt_allow_undefined_flag
10784
10785# Flag that forces no undefined symbols.
10786no_undefined_flag=$lt_no_undefined_flag
10787
10788# Commands used to finish a libtool library installation in a directory.
10789finish_cmds=$lt_finish_cmds
10790
10791# Same as above, but a single script fragment to be evaled but not shown.
10792finish_eval=$lt_finish_eval
10793
10794# Take the output of nm and produce a listing of raw symbols and C names.
10795global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10796
10797# Transform the output of nm in a proper C declaration
10798global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10799
10800# Transform the output of nm in a C name address pair
10801global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10802
10803# This is the shared library runtime path variable.
10804runpath_var=$runpath_var
10805
10806# This is the shared library path variable.
10807shlibpath_var=$shlibpath_var
10808
10809# Is shlibpath searched before the hard-coded library search path?
10810shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10811
10812# How to hardcode a shared library path into an executable.
10813hardcode_action=$hardcode_action
10814
10815# Whether we should hardcode library paths into libraries.
10816hardcode_into_libs=$hardcode_into_libs
10817
10818# Flag to hardcode \$libdir into a binary during linking.
10819# This must work even if \$libdir does not exist.
10820hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10821
10822# If ld is used when linking, flag to hardcode \$libdir into
10823# a binary during linking. This must work even if \$libdir does
10824# not exist.
10825hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10826
10827# Whether we need a single -rpath flag with a separated argument.
10828hardcode_libdir_separator=$lt_hardcode_libdir_separator
10829
10830# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10831# resulting binary.
10832hardcode_direct=$hardcode_direct
10833
10834# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10835# resulting binary.
10836hardcode_minus_L=$hardcode_minus_L
10837
10838# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10839# the resulting binary.
10840hardcode_shlibpath_var=$hardcode_shlibpath_var
10841
10842# Set to yes if building a shared library automatically hardcodes DIR into the library
10843# and all subsequent libraries and executables linked against it.
10844hardcode_automatic=$hardcode_automatic
10845
10846# Variables whose values should be saved in libtool wrapper scripts and
10847# restored at relink time.
10848variables_saved_for_relink="$variables_saved_for_relink"
10849
10850# Whether libtool must link a program against all its dependency libraries.
10851link_all_deplibs=$link_all_deplibs
10852
10853# Compile-time system search path for libraries
10854sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10855
10856# Run-time system search path for libraries
10857sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10858
10859# Fix the shell variable \$srcfile for the compiler.
10860fix_srcfile_path="$fix_srcfile_path"
10861
10862# Set to yes if exported symbols are required.
10863always_export_symbols=$always_export_symbols
10864
10865# The commands to list exported symbols.
10866export_symbols_cmds=$lt_export_symbols_cmds
10867
10868# The commands to extract the exported symbol list from a shared archive.
10869extract_expsyms_cmds=$lt_extract_expsyms_cmds
10870
10871# Symbols that should not be listed in the preloaded symbols.
10872exclude_expsyms=$lt_exclude_expsyms
10873
10874# Symbols that must always be exported.
10875include_expsyms=$lt_include_expsyms
10876
10877# ### END LIBTOOL CONFIG
10878
10879__EOF__
10880
10881
10882  case $host_os in
10883  aix3*)
10884    cat <<\EOF >> "$cfgfile"
10885
10886# AIX sometimes has problems with the GCC collect2 program.  For some
10887# reason, if we set the COLLECT_NAMES environment variable, the problems
10888# vanish in a puff of smoke.
10889if test "X${COLLECT_NAMES+set}" != Xset; then
10890  COLLECT_NAMES=
10891  export COLLECT_NAMES
10892fi
10893EOF
10894    ;;
10895  esac
10896
10897  # We use sed instead of cat because bash on DJGPP gets confused if
10898  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10899  # text mode, it properly converts lines to CR/LF.  This bash problem
10900  # is reportedly fixed, but why not run on old versions too?
10901  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10902
10903  mv -f "$cfgfile" "$ofile" || \
10904    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10905  chmod +x "$ofile"
10906
10907else
10908  # If there is no Makefile yet, we rely on a make rule to execute
10909  # `config.status --recheck' to rerun these tests and create the
10910  # libtool script then.
10911  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10912  if test -f "$ltmain_in"; then
10913    test -f Makefile && make "$ltmain"
10914  fi
10915fi
10916
10917
10918ac_ext=c
10919ac_cpp='$CPP $CPPFLAGS'
10920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10922ac_compiler_gnu=$ac_cv_c_compiler_gnu
10923
10924CC="$lt_save_CC"
10925
10926
10927# Check whether --with-tags was given.
10928if test "${with_tags+set}" = set; then
10929  withval=$with_tags; tagnames="$withval"
10930fi
10931
10932
10933if test -f "$ltmain" && test -n "$tagnames"; then
10934  if test ! -f "${ofile}"; then
10935    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10936echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10937  fi
10938
10939  if test -z "$LTCC"; then
10940    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10941    if test -z "$LTCC"; then
10942      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10943echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10944    else
10945      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10946echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10947    fi
10948  fi
10949  if test -z "$LTCFLAGS"; then
10950    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10951  fi
10952
10953  # Extract list of available tagged configurations in $ofile.
10954  # Note that this assumes the entire list is on one line.
10955  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10956
10957  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10958  for tagname in $tagnames; do
10959    IFS="$lt_save_ifs"
10960    # Check whether tagname contains only valid characters
10961    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10962    "") ;;
10963    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10964echo "$as_me: error: invalid tag name: $tagname" >&2;}
10965   { (exit 1); exit 1; }; }
10966	;;
10967    esac
10968
10969    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10970    then
10971      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10972echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10973   { (exit 1); exit 1; }; }
10974    fi
10975
10976    # Update the list of available tags.
10977    if test -n "$tagname"; then
10978      echo appending configuration tag \"$tagname\" to $ofile
10979
10980      case $tagname in
10981      CXX)
10982	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10983	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10984	    (test "X$CXX" != "Xg++"))) ; then
10985	  ac_ext=cpp
10986ac_cpp='$CXXCPP $CPPFLAGS'
10987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10990
10991
10992
10993
10994archive_cmds_need_lc_CXX=no
10995allow_undefined_flag_CXX=
10996always_export_symbols_CXX=no
10997archive_expsym_cmds_CXX=
10998export_dynamic_flag_spec_CXX=
10999hardcode_direct_CXX=no
11000hardcode_libdir_flag_spec_CXX=
11001hardcode_libdir_flag_spec_ld_CXX=
11002hardcode_libdir_separator_CXX=
11003hardcode_minus_L_CXX=no
11004hardcode_shlibpath_var_CXX=unsupported
11005hardcode_automatic_CXX=no
11006module_cmds_CXX=
11007module_expsym_cmds_CXX=
11008link_all_deplibs_CXX=unknown
11009old_archive_cmds_CXX=$old_archive_cmds
11010no_undefined_flag_CXX=
11011whole_archive_flag_spec_CXX=
11012enable_shared_with_static_runtimes_CXX=no
11013
11014# Dependencies to place before and after the object being linked:
11015predep_objects_CXX=
11016postdep_objects_CXX=
11017predeps_CXX=
11018postdeps_CXX=
11019compiler_lib_search_path_CXX=
11020
11021# Source file extension for C++ test sources.
11022ac_ext=cpp
11023
11024# Object file extension for compiled C++ test sources.
11025objext=o
11026objext_CXX=$objext
11027
11028# Code to be used in simple compile tests
11029lt_simple_compile_test_code="int some_variable = 0;\n"
11030
11031# Code to be used in simple link tests
11032lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11033
11034# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11035
11036# If no C compiler was specified, use CC.
11037LTCC=${LTCC-"$CC"}
11038
11039# If no C compiler flags were specified, use CFLAGS.
11040LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11041
11042# Allow CC to be a program name with arguments.
11043compiler=$CC
11044
11045
11046# save warnings/boilerplate of simple test code
11047ac_outfile=conftest.$ac_objext
11048printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11049eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11050_lt_compiler_boilerplate=`cat conftest.err`
11051$rm conftest*
11052
11053ac_outfile=conftest.$ac_objext
11054printf "$lt_simple_link_test_code" >conftest.$ac_ext
11055eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11056_lt_linker_boilerplate=`cat conftest.err`
11057$rm conftest*
11058
11059
11060# Allow CC to be a program name with arguments.
11061lt_save_CC=$CC
11062lt_save_LD=$LD
11063lt_save_GCC=$GCC
11064GCC=$GXX
11065lt_save_with_gnu_ld=$with_gnu_ld
11066lt_save_path_LD=$lt_cv_path_LD
11067if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11068  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11069else
11070  $as_unset lt_cv_prog_gnu_ld
11071fi
11072if test -n "${lt_cv_path_LDCXX+set}"; then
11073  lt_cv_path_LD=$lt_cv_path_LDCXX
11074else
11075  $as_unset lt_cv_path_LD
11076fi
11077test -z "${LDCXX+set}" || LD=$LDCXX
11078CC=${CXX-"c++"}
11079compiler=$CC
11080compiler_CXX=$CC
11081for cc_temp in $compiler""; do
11082  case $cc_temp in
11083    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11084    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11085    \-*) ;;
11086    *) break;;
11087  esac
11088done
11089cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11090
11091
11092# We don't want -fno-exception wen compiling C++ code, so set the
11093# no_builtin_flag separately
11094if test "$GXX" = yes; then
11095  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11096else
11097  lt_prog_compiler_no_builtin_flag_CXX=
11098fi
11099
11100if test "$GXX" = yes; then
11101  # Set up default GNU C++ configuration
11102
11103
11104# Check whether --with-gnu-ld was given.
11105if test "${with_gnu_ld+set}" = set; then
11106  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11107else
11108  with_gnu_ld=no
11109fi
11110
11111ac_prog=ld
11112if test "$GCC" = yes; then
11113  # Check if gcc -print-prog-name=ld gives a path.
11114  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11115echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11116  case $host in
11117  *-*-mingw*)
11118    # gcc leaves a trailing carriage return which upsets mingw
11119    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11120  *)
11121    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11122  esac
11123  case $ac_prog in
11124    # Accept absolute paths.
11125    [\\/]* | ?:[\\/]*)
11126      re_direlt='/[^/][^/]*/\.\./'
11127      # Canonicalize the pathname of ld
11128      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11129      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11130	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11131      done
11132      test -z "$LD" && LD="$ac_prog"
11133      ;;
11134  "")
11135    # If it fails, then pretend we aren't using GCC.
11136    ac_prog=ld
11137    ;;
11138  *)
11139    # If it is relative, then search for the first ld in PATH.
11140    with_gnu_ld=unknown
11141    ;;
11142  esac
11143elif test "$with_gnu_ld" = yes; then
11144  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11145echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11146else
11147  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11148echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11149fi
11150if test "${lt_cv_path_LD+set}" = set; then
11151  echo $ECHO_N "(cached) $ECHO_C" >&6
11152else
11153  if test -z "$LD"; then
11154  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11155  for ac_dir in $PATH; do
11156    IFS="$lt_save_ifs"
11157    test -z "$ac_dir" && ac_dir=.
11158    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11159      lt_cv_path_LD="$ac_dir/$ac_prog"
11160      # Check to see if the program is GNU ld.  I'd rather use --version,
11161      # but apparently some variants of GNU ld only accept -v.
11162      # Break only if it was the GNU/non-GNU ld that we prefer.
11163      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11164      *GNU* | *'with BFD'*)
11165	test "$with_gnu_ld" != no && break
11166	;;
11167      *)
11168	test "$with_gnu_ld" != yes && break
11169	;;
11170      esac
11171    fi
11172  done
11173  IFS="$lt_save_ifs"
11174else
11175  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11176fi
11177fi
11178
11179LD="$lt_cv_path_LD"
11180if test -n "$LD"; then
11181  { echo "$as_me:$LINENO: result: $LD" >&5
11182echo "${ECHO_T}$LD" >&6; }
11183else
11184  { echo "$as_me:$LINENO: result: no" >&5
11185echo "${ECHO_T}no" >&6; }
11186fi
11187test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11188echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11189   { (exit 1); exit 1; }; }
11190{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11191echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11192if test "${lt_cv_prog_gnu_ld+set}" = set; then
11193  echo $ECHO_N "(cached) $ECHO_C" >&6
11194else
11195  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11196case `$LD -v 2>&1 </dev/null` in
11197*GNU* | *'with BFD'*)
11198  lt_cv_prog_gnu_ld=yes
11199  ;;
11200*)
11201  lt_cv_prog_gnu_ld=no
11202  ;;
11203esac
11204fi
11205{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11206echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11207with_gnu_ld=$lt_cv_prog_gnu_ld
11208
11209
11210
11211  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11212  # archiving commands below assume that GNU ld is being used.
11213  if test "$with_gnu_ld" = yes; then
11214    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11215    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'
11216
11217    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11218    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11219
11220    # If archive_cmds runs LD, not CC, wlarc should be empty
11221    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11222    #     investigate it a little bit more. (MM)
11223    wlarc='${wl}'
11224
11225    # ancient GNU ld didn't support --whole-archive et. al.
11226    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11227	grep 'no-whole-archive' > /dev/null; then
11228      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11229    else
11230      whole_archive_flag_spec_CXX=
11231    fi
11232  else
11233    with_gnu_ld=no
11234    wlarc=
11235
11236    # A generic and very simple default shared library creation
11237    # command for GNU C++ for the case where it uses the native
11238    # linker, instead of GNU ld.  If possible, this setting should
11239    # overridden to take advantage of the native linker features on
11240    # the platform it is being used on.
11241    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11242  fi
11243
11244  # Commands to make compiler produce verbose output that lists
11245  # what "hidden" libraries, object files and flags are used when
11246  # linking a shared library.
11247  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11248
11249else
11250  GXX=no
11251  with_gnu_ld=no
11252  wlarc=
11253fi
11254
11255# PORTME: fill in a description of your system's C++ link characteristics
11256{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11257echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11258ld_shlibs_CXX=yes
11259case $host_os in
11260  aix3*)
11261    # FIXME: insert proper C++ library support
11262    ld_shlibs_CXX=no
11263    ;;
11264  aix4* | aix5*)
11265    if test "$host_cpu" = ia64; then
11266      # On IA64, the linker does run time linking by default, so we don't
11267      # have to do anything special.
11268      aix_use_runtimelinking=no
11269      exp_sym_flag='-Bexport'
11270      no_entry_flag=""
11271    else
11272      aix_use_runtimelinking=no
11273
11274      # Test if we are trying to use run time linking or normal
11275      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11276      # need to do runtime linking.
11277      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11278	for ld_flag in $LDFLAGS; do
11279	  case $ld_flag in
11280	  *-brtl*)
11281	    aix_use_runtimelinking=yes
11282	    break
11283	    ;;
11284	  esac
11285	done
11286	;;
11287      esac
11288
11289      exp_sym_flag='-bexport'
11290      no_entry_flag='-bnoentry'
11291    fi
11292
11293    # When large executables or shared objects are built, AIX ld can
11294    # have problems creating the table of contents.  If linking a library
11295    # or program results in "error TOC overflow" add -mminimal-toc to
11296    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11297    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11298
11299    archive_cmds_CXX=''
11300    hardcode_direct_CXX=yes
11301    hardcode_libdir_separator_CXX=':'
11302    link_all_deplibs_CXX=yes
11303
11304    if test "$GXX" = yes; then
11305      case $host_os in aix4.[012]|aix4.[012].*)
11306      # We only want to do this on AIX 4.2 and lower, the check
11307      # below for broken collect2 doesn't work under 4.3+
11308	collect2name=`${CC} -print-prog-name=collect2`
11309	if test -f "$collect2name" && \
11310	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11311	then
11312	  # We have reworked collect2
11313	  hardcode_direct_CXX=yes
11314	else
11315	  # We have old collect2
11316	  hardcode_direct_CXX=unsupported
11317	  # It fails to find uninstalled libraries when the uninstalled
11318	  # path is not listed in the libpath.  Setting hardcode_minus_L
11319	  # to unsupported forces relinking
11320	  hardcode_minus_L_CXX=yes
11321	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11322	  hardcode_libdir_separator_CXX=
11323	fi
11324	;;
11325      esac
11326      shared_flag='-shared'
11327      if test "$aix_use_runtimelinking" = yes; then
11328	shared_flag="$shared_flag "'${wl}-G'
11329      fi
11330    else
11331      # not using gcc
11332      if test "$host_cpu" = ia64; then
11333	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11334	# chokes on -Wl,-G. The following line is correct:
11335	shared_flag='-G'
11336      else
11337	if test "$aix_use_runtimelinking" = yes; then
11338	  shared_flag='${wl}-G'
11339	else
11340	  shared_flag='${wl}-bM:SRE'
11341	fi
11342      fi
11343    fi
11344
11345    # It seems that -bexpall does not export symbols beginning with
11346    # underscore (_), so it is better to generate a list of symbols to export.
11347    always_export_symbols_CXX=yes
11348    if test "$aix_use_runtimelinking" = yes; then
11349      # Warning - without using the other runtime loading flags (-brtl),
11350      # -berok will link without error, but may produce a broken library.
11351      allow_undefined_flag_CXX='-berok'
11352      # Determine the default libpath from the value encoded in an empty executable.
11353      cat >conftest.$ac_ext <<_ACEOF
11354/* confdefs.h.  */
11355_ACEOF
11356cat confdefs.h >>conftest.$ac_ext
11357cat >>conftest.$ac_ext <<_ACEOF
11358/* end confdefs.h.  */
11359
11360int
11361main ()
11362{
11363
11364  ;
11365  return 0;
11366}
11367_ACEOF
11368rm -f conftest.$ac_objext conftest$ac_exeext
11369if { (ac_try="$ac_link"
11370case "(($ac_try" in
11371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372  *) ac_try_echo=$ac_try;;
11373esac
11374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11375  (eval "$ac_link") 2>conftest.er1
11376  ac_status=$?
11377  grep -v '^ *+' conftest.er1 >conftest.err
11378  rm -f conftest.er1
11379  cat conftest.err >&5
11380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381  (exit $ac_status); } &&
11382	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11383  { (case "(($ac_try" in
11384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385  *) ac_try_echo=$ac_try;;
11386esac
11387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388  (eval "$ac_try") 2>&5
11389  ac_status=$?
11390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391  (exit $ac_status); }; } &&
11392	 { ac_try='test -s conftest$ac_exeext'
11393  { (case "(($ac_try" in
11394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395  *) ac_try_echo=$ac_try;;
11396esac
11397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398  (eval "$ac_try") 2>&5
11399  ac_status=$?
11400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401  (exit $ac_status); }; }; then
11402
11403aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11404}'`
11405# Check for a 64-bit object if we didn't find anything.
11406if 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; }
11407}'`; fi
11408else
11409  echo "$as_me: failed program was:" >&5
11410sed 's/^/| /' conftest.$ac_ext >&5
11411
11412
11413fi
11414
11415rm -f core conftest.err conftest.$ac_objext \
11416      conftest$ac_exeext conftest.$ac_ext
11417if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11418
11419      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11420
11421      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"
11422     else
11423      if test "$host_cpu" = ia64; then
11424	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11425	allow_undefined_flag_CXX="-z nodefs"
11426	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"
11427      else
11428	# Determine the default libpath from the value encoded in an empty executable.
11429	cat >conftest.$ac_ext <<_ACEOF
11430/* confdefs.h.  */
11431_ACEOF
11432cat confdefs.h >>conftest.$ac_ext
11433cat >>conftest.$ac_ext <<_ACEOF
11434/* end confdefs.h.  */
11435
11436int
11437main ()
11438{
11439
11440  ;
11441  return 0;
11442}
11443_ACEOF
11444rm -f conftest.$ac_objext conftest$ac_exeext
11445if { (ac_try="$ac_link"
11446case "(($ac_try" in
11447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448  *) ac_try_echo=$ac_try;;
11449esac
11450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451  (eval "$ac_link") 2>conftest.er1
11452  ac_status=$?
11453  grep -v '^ *+' conftest.er1 >conftest.err
11454  rm -f conftest.er1
11455  cat conftest.err >&5
11456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457  (exit $ac_status); } &&
11458	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11459  { (case "(($ac_try" in
11460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461  *) ac_try_echo=$ac_try;;
11462esac
11463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464  (eval "$ac_try") 2>&5
11465  ac_status=$?
11466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467  (exit $ac_status); }; } &&
11468	 { ac_try='test -s conftest$ac_exeext'
11469  { (case "(($ac_try" in
11470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11471  *) ac_try_echo=$ac_try;;
11472esac
11473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11474  (eval "$ac_try") 2>&5
11475  ac_status=$?
11476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477  (exit $ac_status); }; }; then
11478
11479aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11480}'`
11481# Check for a 64-bit object if we didn't find anything.
11482if 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; }
11483}'`; fi
11484else
11485  echo "$as_me: failed program was:" >&5
11486sed 's/^/| /' conftest.$ac_ext >&5
11487
11488
11489fi
11490
11491rm -f core conftest.err conftest.$ac_objext \
11492      conftest$ac_exeext conftest.$ac_ext
11493if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11494
11495	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11496	# Warning - without using the other run time loading flags,
11497	# -berok will link without error, but may produce a broken library.
11498	no_undefined_flag_CXX=' ${wl}-bernotok'
11499	allow_undefined_flag_CXX=' ${wl}-berok'
11500	# Exported symbols can be pulled into shared objects from archives
11501	whole_archive_flag_spec_CXX='$convenience'
11502	archive_cmds_need_lc_CXX=yes
11503	# This is similar to how AIX traditionally builds its shared libraries.
11504	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'
11505      fi
11506    fi
11507    ;;
11508
11509  beos*)
11510    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11511      allow_undefined_flag_CXX=unsupported
11512      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11513      # support --undefined.  This deserves some investigation.  FIXME
11514      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11515    else
11516      ld_shlibs_CXX=no
11517    fi
11518    ;;
11519
11520  chorus*)
11521    case $cc_basename in
11522      *)
11523	# FIXME: insert proper C++ library support
11524	ld_shlibs_CXX=no
11525	;;
11526    esac
11527    ;;
11528
11529  cygwin* | mingw* | pw32*)
11530    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11531    # as there is no search path for DLLs.
11532    hardcode_libdir_flag_spec_CXX='-L$libdir'
11533    allow_undefined_flag_CXX=unsupported
11534    always_export_symbols_CXX=no
11535    enable_shared_with_static_runtimes_CXX=yes
11536
11537    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11538      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'
11539      # If the export-symbols file already is a .def file (1st line
11540      # is EXPORTS), use it as is; otherwise, prepend...
11541      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11542	cp $export_symbols $output_objdir/$soname.def;
11543      else
11544	echo EXPORTS > $output_objdir/$soname.def;
11545	cat $export_symbols >> $output_objdir/$soname.def;
11546      fi~
11547      $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'
11548    else
11549      ld_shlibs_CXX=no
11550    fi
11551  ;;
11552      darwin* | rhapsody*)
11553        case $host_os in
11554        rhapsody* | darwin1.[012])
11555         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11556         ;;
11557       *) # Darwin 1.3 on
11558         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11559           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11560         else
11561           case ${MACOSX_DEPLOYMENT_TARGET} in
11562             10.[012])
11563               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11564               ;;
11565             10.*)
11566               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11567               ;;
11568           esac
11569         fi
11570         ;;
11571        esac
11572      archive_cmds_need_lc_CXX=no
11573      hardcode_direct_CXX=no
11574      hardcode_automatic_CXX=yes
11575      hardcode_shlibpath_var_CXX=unsupported
11576      whole_archive_flag_spec_CXX=''
11577      link_all_deplibs_CXX=yes
11578
11579    if test "$GXX" = yes ; then
11580      lt_int_apple_cc_single_mod=no
11581      output_verbose_link_cmd='echo'
11582      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11583       lt_int_apple_cc_single_mod=yes
11584      fi
11585      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11586       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11587      else
11588          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'
11589        fi
11590        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11591        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11592          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11593            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}'
11594          else
11595            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}'
11596          fi
11597            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}'
11598      else
11599      case $cc_basename in
11600        xlc*)
11601         output_verbose_link_cmd='echo'
11602          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'
11603          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11604          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11605          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}'
11606          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}'
11607          ;;
11608       *)
11609         ld_shlibs_CXX=no
11610          ;;
11611      esac
11612      fi
11613        ;;
11614
11615  dgux*)
11616    case $cc_basename in
11617      ec++*)
11618	# FIXME: insert proper C++ library support
11619	ld_shlibs_CXX=no
11620	;;
11621      ghcx*)
11622	# Green Hills C++ Compiler
11623	# FIXME: insert proper C++ library support
11624	ld_shlibs_CXX=no
11625	;;
11626      *)
11627	# FIXME: insert proper C++ library support
11628	ld_shlibs_CXX=no
11629	;;
11630    esac
11631    ;;
11632  freebsd[12]*)
11633    # C++ shared libraries reported to be fairly broken before switch to ELF
11634    ld_shlibs_CXX=no
11635    ;;
11636  freebsd-elf*)
11637    archive_cmds_need_lc_CXX=no
11638    ;;
11639  freebsd* | dragonfly*)
11640    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11641    # conventions
11642    ld_shlibs_CXX=yes
11643    ;;
11644  gnu*)
11645    ;;
11646  hpux9*)
11647    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11648    hardcode_libdir_separator_CXX=:
11649    export_dynamic_flag_spec_CXX='${wl}-E'
11650    hardcode_direct_CXX=yes
11651    hardcode_minus_L_CXX=yes # Not in the search PATH,
11652				# but as the default
11653				# location of the library.
11654
11655    case $cc_basename in
11656    CC*)
11657      # FIXME: insert proper C++ library support
11658      ld_shlibs_CXX=no
11659      ;;
11660    aCC*)
11661      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'
11662      # Commands to make compiler produce verbose output that lists
11663      # what "hidden" libraries, object files and flags are used when
11664      # linking a shared library.
11665      #
11666      # There doesn't appear to be a way to prevent this compiler from
11667      # explicitly linking system object files so we need to strip them
11668      # from the output so that they don't get included in the library
11669      # dependencies.
11670      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'
11671      ;;
11672    *)
11673      if test "$GXX" = yes; then
11674        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'
11675      else
11676        # FIXME: insert proper C++ library support
11677        ld_shlibs_CXX=no
11678      fi
11679      ;;
11680    esac
11681    ;;
11682  hpux10*|hpux11*)
11683    if test $with_gnu_ld = no; then
11684      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11685      hardcode_libdir_separator_CXX=:
11686
11687      case $host_cpu in
11688      hppa*64*|ia64*)
11689	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11690        ;;
11691      *)
11692	export_dynamic_flag_spec_CXX='${wl}-E'
11693        ;;
11694      esac
11695    fi
11696    case $host_cpu in
11697    hppa*64*|ia64*)
11698      hardcode_direct_CXX=no
11699      hardcode_shlibpath_var_CXX=no
11700      ;;
11701    *)
11702      hardcode_direct_CXX=yes
11703      hardcode_minus_L_CXX=yes # Not in the search PATH,
11704					      # but as the default
11705					      # location of the library.
11706      ;;
11707    esac
11708
11709    case $cc_basename in
11710      CC*)
11711	# FIXME: insert proper C++ library support
11712	ld_shlibs_CXX=no
11713	;;
11714      aCC*)
11715	case $host_cpu in
11716	hppa*64*)
11717	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11718	  ;;
11719	ia64*)
11720	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11721	  ;;
11722	*)
11723	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11724	  ;;
11725	esac
11726	# Commands to make compiler produce verbose output that lists
11727	# what "hidden" libraries, object files and flags are used when
11728	# linking a shared library.
11729	#
11730	# There doesn't appear to be a way to prevent this compiler from
11731	# explicitly linking system object files so we need to strip them
11732	# from the output so that they don't get included in the library
11733	# dependencies.
11734	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'
11735	;;
11736      *)
11737	if test "$GXX" = yes; then
11738	  if test $with_gnu_ld = no; then
11739	    case $host_cpu in
11740	    hppa*64*)
11741	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11742	      ;;
11743	    ia64*)
11744	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11745	      ;;
11746	    *)
11747	      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'
11748	      ;;
11749	    esac
11750	  fi
11751	else
11752	  # FIXME: insert proper C++ library support
11753	  ld_shlibs_CXX=no
11754	fi
11755	;;
11756    esac
11757    ;;
11758  interix3*)
11759    hardcode_direct_CXX=no
11760    hardcode_shlibpath_var_CXX=no
11761    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11762    export_dynamic_flag_spec_CXX='${wl}-E'
11763    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11764    # Instead, shared libraries are loaded at an image base (0x10000000 by
11765    # default) and relocated if they conflict, which is a slow very memory
11766    # consuming and fragmenting process.  To avoid this, we pick a random,
11767    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11768    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11769    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'
11770    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'
11771    ;;
11772  irix5* | irix6*)
11773    case $cc_basename in
11774      CC*)
11775	# SGI C++
11776	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'
11777
11778	# Archives containing C++ object files must be created using
11779	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11780	# necessary to make sure instantiated templates are included
11781	# in the archive.
11782	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11783	;;
11784      *)
11785	if test "$GXX" = yes; then
11786	  if test "$with_gnu_ld" = no; then
11787	    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'
11788	  else
11789	    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'
11790	  fi
11791	fi
11792	link_all_deplibs_CXX=yes
11793	;;
11794    esac
11795    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11796    hardcode_libdir_separator_CXX=:
11797    ;;
11798  linux* | k*bsd*-gnu)
11799    case $cc_basename in
11800      KCC*)
11801	# Kuck and Associates, Inc. (KAI) C++ Compiler
11802
11803	# KCC will only create a shared library if the output file
11804	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11805	# to its proper name (with version) after linking.
11806	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'
11807	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'
11808	# Commands to make compiler produce verbose output that lists
11809	# what "hidden" libraries, object files and flags are used when
11810	# linking a shared library.
11811	#
11812	# There doesn't appear to be a way to prevent this compiler from
11813	# explicitly linking system object files so we need to strip them
11814	# from the output so that they don't get included in the library
11815	# dependencies.
11816	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'
11817
11818	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11819	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11820
11821	# Archives containing C++ object files must be created using
11822	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11823	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11824	;;
11825      icpc*)
11826	# Intel C++
11827	with_gnu_ld=yes
11828	# version 8.0 and above of icpc choke on multiply defined symbols
11829	# if we add $predep_objects and $postdep_objects, however 7.1 and
11830	# earlier do not add the objects themselves.
11831	case `$CC -V 2>&1` in
11832	*"Version 7."*)
11833  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11834  	  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'
11835	  ;;
11836	*)  # Version 8.0 or newer
11837	  tmp_idyn=
11838	  case $host_cpu in
11839	    ia64*) tmp_idyn=' -i_dynamic';;
11840	  esac
11841  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11842	  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'
11843	  ;;
11844	esac
11845	archive_cmds_need_lc_CXX=no
11846	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11847	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11848	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11849	;;
11850      pgCC*)
11851        # Portland Group C++ compiler
11852	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11853  	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'
11854
11855	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11856	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11857	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'
11858        ;;
11859      cxx*)
11860	# Compaq C++
11861	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11862	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'
11863
11864	runpath_var=LD_RUN_PATH
11865	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11866	hardcode_libdir_separator_CXX=:
11867
11868	# Commands to make compiler produce verbose output that lists
11869	# what "hidden" libraries, object files and flags are used when
11870	# linking a shared library.
11871	#
11872	# There doesn't appear to be a way to prevent this compiler from
11873	# explicitly linking system object files so we need to strip them
11874	# from the output so that they don't get included in the library
11875	# dependencies.
11876	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'
11877	;;
11878    esac
11879    ;;
11880  lynxos*)
11881    # FIXME: insert proper C++ library support
11882    ld_shlibs_CXX=no
11883    ;;
11884  m88k*)
11885    # FIXME: insert proper C++ library support
11886    ld_shlibs_CXX=no
11887    ;;
11888  mvs*)
11889    case $cc_basename in
11890      cxx*)
11891	# FIXME: insert proper C++ library support
11892	ld_shlibs_CXX=no
11893	;;
11894      *)
11895	# FIXME: insert proper C++ library support
11896	ld_shlibs_CXX=no
11897	;;
11898    esac
11899    ;;
11900  netbsd* | netbsdelf*-gnu)
11901    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11902      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11903      wlarc=
11904      hardcode_libdir_flag_spec_CXX='-R$libdir'
11905      hardcode_direct_CXX=yes
11906      hardcode_shlibpath_var_CXX=no
11907    fi
11908    # Workaround some broken pre-1.5 toolchains
11909    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11910    ;;
11911  openbsd2*)
11912    # C++ shared libraries are fairly broken
11913    ld_shlibs_CXX=no
11914    ;;
11915  openbsd*)
11916    hardcode_direct_CXX=yes
11917    hardcode_shlibpath_var_CXX=no
11918    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11919    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11920    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11921      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11922      export_dynamic_flag_spec_CXX='${wl}-E'
11923      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11924    fi
11925    output_verbose_link_cmd='echo'
11926    ;;
11927  osf3*)
11928    case $cc_basename in
11929      KCC*)
11930	# Kuck and Associates, Inc. (KAI) C++ Compiler
11931
11932	# KCC will only create a shared library if the output file
11933	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11934	# to its proper name (with version) after linking.
11935	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'
11936
11937	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11938	hardcode_libdir_separator_CXX=:
11939
11940	# Archives containing C++ object files must be created using
11941	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11942	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11943
11944	;;
11945      RCC*)
11946	# Rational C++ 2.4.1
11947	# FIXME: insert proper C++ library support
11948	ld_shlibs_CXX=no
11949	;;
11950      cxx*)
11951	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11952	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'
11953
11954	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11955	hardcode_libdir_separator_CXX=:
11956
11957	# Commands to make compiler produce verbose output that lists
11958	# what "hidden" libraries, object files and flags are used when
11959	# linking a shared library.
11960	#
11961	# There doesn't appear to be a way to prevent this compiler from
11962	# explicitly linking system object files so we need to strip them
11963	# from the output so that they don't get included in the library
11964	# dependencies.
11965	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'
11966	;;
11967      *)
11968	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11969	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11970	  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'
11971
11972	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11973	  hardcode_libdir_separator_CXX=:
11974
11975	  # Commands to make compiler produce verbose output that lists
11976	  # what "hidden" libraries, object files and flags are used when
11977	  # linking a shared library.
11978	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11979
11980	else
11981	  # FIXME: insert proper C++ library support
11982	  ld_shlibs_CXX=no
11983	fi
11984	;;
11985    esac
11986    ;;
11987  osf4* | osf5*)
11988    case $cc_basename in
11989      KCC*)
11990	# Kuck and Associates, Inc. (KAI) C++ Compiler
11991
11992	# KCC will only create a shared library if the output file
11993	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11994	# to its proper name (with version) after linking.
11995	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'
11996
11997	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11998	hardcode_libdir_separator_CXX=:
11999
12000	# Archives containing C++ object files must be created using
12001	# the KAI C++ compiler.
12002	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12003	;;
12004      RCC*)
12005	# Rational C++ 2.4.1
12006	# FIXME: insert proper C++ library support
12007	ld_shlibs_CXX=no
12008	;;
12009      cxx*)
12010	allow_undefined_flag_CXX=' -expect_unresolved \*'
12011	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'
12012	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12013	  echo "-hidden">> $lib.exp~
12014	  $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~
12015	  $rm $lib.exp'
12016
12017	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12018	hardcode_libdir_separator_CXX=:
12019
12020	# Commands to make compiler produce verbose output that lists
12021	# what "hidden" libraries, object files and flags are used when
12022	# linking a shared library.
12023	#
12024	# There doesn't appear to be a way to prevent this compiler from
12025	# explicitly linking system object files so we need to strip them
12026	# from the output so that they don't get included in the library
12027	# dependencies.
12028	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'
12029	;;
12030      *)
12031	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12032	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12033	 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'
12034
12035	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12036	  hardcode_libdir_separator_CXX=:
12037
12038	  # Commands to make compiler produce verbose output that lists
12039	  # what "hidden" libraries, object files and flags are used when
12040	  # linking a shared library.
12041	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12042
12043	else
12044	  # FIXME: insert proper C++ library support
12045	  ld_shlibs_CXX=no
12046	fi
12047	;;
12048    esac
12049    ;;
12050  psos*)
12051    # FIXME: insert proper C++ library support
12052    ld_shlibs_CXX=no
12053    ;;
12054  sunos4*)
12055    case $cc_basename in
12056      CC*)
12057	# Sun C++ 4.x
12058	# FIXME: insert proper C++ library support
12059	ld_shlibs_CXX=no
12060	;;
12061      lcc*)
12062	# Lucid
12063	# FIXME: insert proper C++ library support
12064	ld_shlibs_CXX=no
12065	;;
12066      *)
12067	# FIXME: insert proper C++ library support
12068	ld_shlibs_CXX=no
12069	;;
12070    esac
12071    ;;
12072  solaris*)
12073    case $cc_basename in
12074      CC*)
12075	# Sun C++ 4.2, 5.x and Centerline C++
12076        archive_cmds_need_lc_CXX=yes
12077	no_undefined_flag_CXX=' -zdefs'
12078	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12079	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12080	$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'
12081
12082	hardcode_libdir_flag_spec_CXX='-R$libdir'
12083	hardcode_shlibpath_var_CXX=no
12084	case $host_os in
12085	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12086	  *)
12087	    # The C++ compiler is used as linker so we must use $wl
12088	    # flag to pass the commands to the underlying system
12089	    # linker. We must also pass each convience library through
12090	    # to the system linker between allextract/defaultextract.
12091	    # The C++ compiler will combine linker options so we
12092	    # cannot just pass the convience library names through
12093	    # without $wl.
12094	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12095	    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'
12096	    ;;
12097	esac
12098	link_all_deplibs_CXX=yes
12099
12100	output_verbose_link_cmd='echo'
12101
12102	# Archives containing C++ object files must be created using
12103	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12104	# necessary to make sure instantiated templates are included
12105	# in the archive.
12106	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12107	;;
12108      gcx*)
12109	# Green Hills C++ Compiler
12110	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12111
12112	# The C++ compiler must be used to create the archive.
12113	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12114	;;
12115      *)
12116	# GNU C++ compiler with Solaris linker
12117	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12118	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12119	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12120	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12121	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12122		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12123
12124	    # Commands to make compiler produce verbose output that lists
12125	    # what "hidden" libraries, object files and flags are used when
12126	    # linking a shared library.
12127	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12128	  else
12129	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12130	    # platform.
12131	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12132	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12133		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12134
12135	    # Commands to make compiler produce verbose output that lists
12136	    # what "hidden" libraries, object files and flags are used when
12137	    # linking a shared library.
12138	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12139	  fi
12140
12141	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12142	fi
12143	;;
12144    esac
12145    ;;
12146  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12147    no_undefined_flag_CXX='${wl}-z,text'
12148    archive_cmds_need_lc_CXX=no
12149    hardcode_shlibpath_var_CXX=no
12150    runpath_var='LD_RUN_PATH'
12151
12152    case $cc_basename in
12153      CC*)
12154	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12155	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12156	;;
12157      *)
12158	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12159	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12160	;;
12161    esac
12162    ;;
12163  sysv5* | sco3.2v5* | sco5v6*)
12164    # Note: We can NOT use -z defs as we might desire, because we do not
12165    # link with -lc, and that would cause any symbols used from libc to
12166    # always be unresolved, which means just about no library would
12167    # ever link correctly.  If we're not using GNU ld we use -z text
12168    # though, which does catch some bad symbols but isn't as heavy-handed
12169    # as -z defs.
12170    # For security reasons, it is highly recommended that you always
12171    # use absolute paths for naming shared libraries, and exclude the
12172    # DT_RUNPATH tag from executables and libraries.  But doing so
12173    # requires that you compile everything twice, which is a pain.
12174    # So that behaviour is only enabled if SCOABSPATH is set to a
12175    # non-empty value in the environment.  Most likely only useful for
12176    # creating official distributions of packages.
12177    # This is a hack until libtool officially supports absolute path
12178    # names for shared libraries.
12179    no_undefined_flag_CXX='${wl}-z,text'
12180    allow_undefined_flag_CXX='${wl}-z,nodefs'
12181    archive_cmds_need_lc_CXX=no
12182    hardcode_shlibpath_var_CXX=no
12183    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12184    hardcode_libdir_separator_CXX=':'
12185    link_all_deplibs_CXX=yes
12186    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12187    runpath_var='LD_RUN_PATH'
12188
12189    case $cc_basename in
12190      CC*)
12191	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12192	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12193	;;
12194      *)
12195	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12196	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12197	;;
12198    esac
12199    ;;
12200  tandem*)
12201    case $cc_basename in
12202      NCC*)
12203	# NonStop-UX NCC 3.20
12204	# FIXME: insert proper C++ library support
12205	ld_shlibs_CXX=no
12206	;;
12207      *)
12208	# FIXME: insert proper C++ library support
12209	ld_shlibs_CXX=no
12210	;;
12211    esac
12212    ;;
12213  vxworks*)
12214    # FIXME: insert proper C++ library support
12215    ld_shlibs_CXX=no
12216    ;;
12217  *)
12218    # FIXME: insert proper C++ library support
12219    ld_shlibs_CXX=no
12220    ;;
12221esac
12222{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12223echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12224test "$ld_shlibs_CXX" = no && can_build_shared=no
12225
12226GCC_CXX="$GXX"
12227LD_CXX="$LD"
12228
12229
12230cat > conftest.$ac_ext <<EOF
12231class Foo
12232{
12233public:
12234  Foo (void) { a = 0; }
12235private:
12236  int a;
12237};
12238EOF
12239
12240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12241  (eval $ac_compile) 2>&5
12242  ac_status=$?
12243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244  (exit $ac_status); }; then
12245  # Parse the compiler output and extract the necessary
12246  # objects, libraries and library flags.
12247
12248  # Sentinel used to keep track of whether or not we are before
12249  # the conftest object file.
12250  pre_test_object_deps_done=no
12251
12252  # The `*' in the case matches for architectures that use `case' in
12253  # $output_verbose_cmd can trigger glob expansion during the loop
12254  # eval without this substitution.
12255  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12256
12257  for p in `eval $output_verbose_link_cmd`; do
12258    case $p in
12259
12260    -L* | -R* | -l*)
12261       # Some compilers place space between "-{L,R}" and the path.
12262       # Remove the space.
12263       if test $p = "-L" \
12264	  || test $p = "-R"; then
12265	 prev=$p
12266	 continue
12267       else
12268	 prev=
12269       fi
12270
12271       if test "$pre_test_object_deps_done" = no; then
12272	 case $p in
12273	 -L* | -R*)
12274	   # Internal compiler library paths should come after those
12275	   # provided the user.  The postdeps already come after the
12276	   # user supplied libs so there is no need to process them.
12277	   if test -z "$compiler_lib_search_path_CXX"; then
12278	     compiler_lib_search_path_CXX="${prev}${p}"
12279	   else
12280	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12281	   fi
12282	   ;;
12283	 # The "-l" case would never come before the object being
12284	 # linked, so don't bother handling this case.
12285	 esac
12286       else
12287	 if test -z "$postdeps_CXX"; then
12288	   postdeps_CXX="${prev}${p}"
12289	 else
12290	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12291	 fi
12292       fi
12293       ;;
12294
12295    *.$objext)
12296       # This assumes that the test object file only shows up
12297       # once in the compiler output.
12298       if test "$p" = "conftest.$objext"; then
12299	 pre_test_object_deps_done=yes
12300	 continue
12301       fi
12302
12303       if test "$pre_test_object_deps_done" = no; then
12304	 if test -z "$predep_objects_CXX"; then
12305	   predep_objects_CXX="$p"
12306	 else
12307	   predep_objects_CXX="$predep_objects_CXX $p"
12308	 fi
12309       else
12310	 if test -z "$postdep_objects_CXX"; then
12311	   postdep_objects_CXX="$p"
12312	 else
12313	   postdep_objects_CXX="$postdep_objects_CXX $p"
12314	 fi
12315       fi
12316       ;;
12317
12318    *) ;; # Ignore the rest.
12319
12320    esac
12321  done
12322
12323  # Clean up.
12324  rm -f a.out a.exe
12325else
12326  echo "libtool.m4: error: problem compiling CXX test program"
12327fi
12328
12329$rm -f confest.$objext
12330
12331# PORTME: override above test on systems where it is broken
12332case $host_os in
12333interix3*)
12334  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12335  # hack all around it, let's just trust "g++" to DTRT.
12336  predep_objects_CXX=
12337  postdep_objects_CXX=
12338  postdeps_CXX=
12339  ;;
12340
12341solaris*)
12342  case $cc_basename in
12343  CC*)
12344    # Adding this requires a known-good setup of shared libraries for
12345    # Sun compiler versions before 5.6, else PIC objects from an old
12346    # archive will be linked into the output, leading to subtle bugs.
12347    postdeps_CXX='-lCstd -lCrun'
12348    ;;
12349  esac
12350  ;;
12351esac
12352
12353
12354case " $postdeps_CXX " in
12355*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12356esac
12357
12358lt_prog_compiler_wl_CXX=
12359lt_prog_compiler_pic_CXX=
12360lt_prog_compiler_static_CXX=
12361
12362{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12363echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12364
12365  # C++ specific cases for pic, static, wl, etc.
12366  if test "$GXX" = yes; then
12367    lt_prog_compiler_wl_CXX='-Wl,'
12368    lt_prog_compiler_static_CXX='-static'
12369
12370    case $host_os in
12371    aix*)
12372      # All AIX code is PIC.
12373      if test "$host_cpu" = ia64; then
12374	# AIX 5 now supports IA64 processor
12375	lt_prog_compiler_static_CXX='-Bstatic'
12376      fi
12377      ;;
12378    amigaos*)
12379      # FIXME: we need at least 68020 code to build shared libraries, but
12380      # adding the `-m68020' flag to GCC prevents building anything better,
12381      # like `-m68040'.
12382      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12383      ;;
12384    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12385      # PIC is the default for these OSes.
12386      ;;
12387    mingw* | os2* | pw32*)
12388      # This hack is so that the source file can tell whether it is being
12389      # built for inclusion in a dll (and should export symbols for example).
12390      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12391      ;;
12392    darwin* | rhapsody*)
12393      # PIC is the default on this platform
12394      # Common symbols not allowed in MH_DYLIB files
12395      lt_prog_compiler_pic_CXX='-fno-common'
12396      ;;
12397    *djgpp*)
12398      # DJGPP does not support shared libraries at all
12399      lt_prog_compiler_pic_CXX=
12400      ;;
12401    interix3*)
12402      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12403      # Instead, we relocate shared libraries at runtime.
12404      ;;
12405    sysv4*MP*)
12406      if test -d /usr/nec; then
12407	lt_prog_compiler_pic_CXX=-Kconform_pic
12408      fi
12409      ;;
12410    hpux*)
12411      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12412      # not for PA HP-UX.
12413      case $host_cpu in
12414      hppa*64*|ia64*)
12415	;;
12416      *)
12417	lt_prog_compiler_pic_CXX='-fPIC'
12418	;;
12419      esac
12420      ;;
12421    *)
12422      lt_prog_compiler_pic_CXX='-fPIC'
12423      ;;
12424    esac
12425  else
12426    case $host_os in
12427      aix4* | aix5*)
12428	# All AIX code is PIC.
12429	if test "$host_cpu" = ia64; then
12430	  # AIX 5 now supports IA64 processor
12431	  lt_prog_compiler_static_CXX='-Bstatic'
12432	else
12433	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12434	fi
12435	;;
12436      chorus*)
12437	case $cc_basename in
12438	cxch68*)
12439	  # Green Hills C++ Compiler
12440	  # _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"
12441	  ;;
12442	esac
12443	;;
12444       darwin*)
12445         # PIC is the default on this platform
12446         # Common symbols not allowed in MH_DYLIB files
12447         case $cc_basename in
12448           xlc*)
12449           lt_prog_compiler_pic_CXX='-qnocommon'
12450           lt_prog_compiler_wl_CXX='-Wl,'
12451           ;;
12452         esac
12453       ;;
12454      dgux*)
12455	case $cc_basename in
12456	  ec++*)
12457	    lt_prog_compiler_pic_CXX='-KPIC'
12458	    ;;
12459	  ghcx*)
12460	    # Green Hills C++ Compiler
12461	    lt_prog_compiler_pic_CXX='-pic'
12462	    ;;
12463	  *)
12464	    ;;
12465	esac
12466	;;
12467      freebsd* | dragonfly*)
12468	# FreeBSD uses GNU C++
12469	;;
12470      hpux9* | hpux10* | hpux11*)
12471	case $cc_basename in
12472	  CC*)
12473	    lt_prog_compiler_wl_CXX='-Wl,'
12474	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12475	    if test "$host_cpu" != ia64; then
12476	      lt_prog_compiler_pic_CXX='+Z'
12477	    fi
12478	    ;;
12479	  aCC*)
12480	    lt_prog_compiler_wl_CXX='-Wl,'
12481	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12482	    case $host_cpu in
12483	    hppa*64*|ia64*)
12484	      # +Z the default
12485	      ;;
12486	    *)
12487	      lt_prog_compiler_pic_CXX='+Z'
12488	      ;;
12489	    esac
12490	    ;;
12491	  *)
12492	    ;;
12493	esac
12494	;;
12495      interix*)
12496	# This is c89, which is MS Visual C++ (no shared libs)
12497	# Anyone wants to do a port?
12498	;;
12499      irix5* | irix6* | nonstopux*)
12500	case $cc_basename in
12501	  CC*)
12502	    lt_prog_compiler_wl_CXX='-Wl,'
12503	    lt_prog_compiler_static_CXX='-non_shared'
12504	    # CC pic flag -KPIC is the default.
12505	    ;;
12506	  *)
12507	    ;;
12508	esac
12509	;;
12510      linux* | k*bsd*-gnu)
12511	case $cc_basename in
12512	  KCC*)
12513	    # KAI C++ Compiler
12514	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12515	    lt_prog_compiler_pic_CXX='-fPIC'
12516	    ;;
12517	  icpc* | ecpc*)
12518	    # Intel C++
12519	    lt_prog_compiler_wl_CXX='-Wl,'
12520	    lt_prog_compiler_pic_CXX='-KPIC'
12521	    lt_prog_compiler_static_CXX='-static'
12522	    ;;
12523	  pgCC*)
12524	    # Portland Group C++ compiler.
12525	    lt_prog_compiler_wl_CXX='-Wl,'
12526	    lt_prog_compiler_pic_CXX='-fpic'
12527	    lt_prog_compiler_static_CXX='-Bstatic'
12528	    ;;
12529	  cxx*)
12530	    # Compaq C++
12531	    # Make sure the PIC flag is empty.  It appears that all Alpha
12532	    # Linux and Compaq Tru64 Unix objects are PIC.
12533	    lt_prog_compiler_pic_CXX=
12534	    lt_prog_compiler_static_CXX='-non_shared'
12535	    ;;
12536	  *)
12537	    ;;
12538	esac
12539	;;
12540      lynxos*)
12541	;;
12542      m88k*)
12543	;;
12544      mvs*)
12545	case $cc_basename in
12546	  cxx*)
12547	    lt_prog_compiler_pic_CXX='-W c,exportall'
12548	    ;;
12549	  *)
12550	    ;;
12551	esac
12552	;;
12553      netbsd* | netbsdelf*-gnu)
12554	;;
12555      osf3* | osf4* | osf5*)
12556	case $cc_basename in
12557	  KCC*)
12558	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12559	    ;;
12560	  RCC*)
12561	    # Rational C++ 2.4.1
12562	    lt_prog_compiler_pic_CXX='-pic'
12563	    ;;
12564	  cxx*)
12565	    # Digital/Compaq C++
12566	    lt_prog_compiler_wl_CXX='-Wl,'
12567	    # Make sure the PIC flag is empty.  It appears that all Alpha
12568	    # Linux and Compaq Tru64 Unix objects are PIC.
12569	    lt_prog_compiler_pic_CXX=
12570	    lt_prog_compiler_static_CXX='-non_shared'
12571	    ;;
12572	  *)
12573	    ;;
12574	esac
12575	;;
12576      psos*)
12577	;;
12578      solaris*)
12579	case $cc_basename in
12580	  CC*)
12581	    # Sun C++ 4.2, 5.x and Centerline C++
12582	    lt_prog_compiler_pic_CXX='-KPIC'
12583	    lt_prog_compiler_static_CXX='-Bstatic'
12584	    lt_prog_compiler_wl_CXX='-Qoption ld '
12585	    ;;
12586	  gcx*)
12587	    # Green Hills C++ Compiler
12588	    lt_prog_compiler_pic_CXX='-PIC'
12589	    ;;
12590	  *)
12591	    ;;
12592	esac
12593	;;
12594      sunos4*)
12595	case $cc_basename in
12596	  CC*)
12597	    # Sun C++ 4.x
12598	    lt_prog_compiler_pic_CXX='-pic'
12599	    lt_prog_compiler_static_CXX='-Bstatic'
12600	    ;;
12601	  lcc*)
12602	    # Lucid
12603	    lt_prog_compiler_pic_CXX='-pic'
12604	    ;;
12605	  *)
12606	    ;;
12607	esac
12608	;;
12609      tandem*)
12610	case $cc_basename in
12611	  NCC*)
12612	    # NonStop-UX NCC 3.20
12613	    lt_prog_compiler_pic_CXX='-KPIC'
12614	    ;;
12615	  *)
12616	    ;;
12617	esac
12618	;;
12619      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12620	case $cc_basename in
12621	  CC*)
12622	    lt_prog_compiler_wl_CXX='-Wl,'
12623	    lt_prog_compiler_pic_CXX='-KPIC'
12624	    lt_prog_compiler_static_CXX='-Bstatic'
12625	    ;;
12626	esac
12627	;;
12628      vxworks*)
12629	;;
12630      *)
12631	lt_prog_compiler_can_build_shared_CXX=no
12632	;;
12633    esac
12634  fi
12635
12636{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12637echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12638
12639#
12640# Check to make sure the PIC flag actually works.
12641#
12642if test -n "$lt_prog_compiler_pic_CXX"; then
12643
12644{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12645echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12646if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12647  echo $ECHO_N "(cached) $ECHO_C" >&6
12648else
12649  lt_prog_compiler_pic_works_CXX=no
12650  ac_outfile=conftest.$ac_objext
12651   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12652   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12653   # Insert the option either (1) after the last *FLAGS variable, or
12654   # (2) before a word containing "conftest.", or (3) at the end.
12655   # Note that $ac_compile itself does not contain backslashes and begins
12656   # with a dollar sign (not a hyphen), so the echo should work correctly.
12657   # The option is referenced via a variable to avoid confusing sed.
12658   lt_compile=`echo "$ac_compile" | $SED \
12659   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12660   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12661   -e 's:$: $lt_compiler_flag:'`
12662   (eval echo "\"\$as_me:12662: $lt_compile\"" >&5)
12663   (eval "$lt_compile" 2>conftest.err)
12664   ac_status=$?
12665   cat conftest.err >&5
12666   echo "$as_me:12666: \$? = $ac_status" >&5
12667   if (exit $ac_status) && test -s "$ac_outfile"; then
12668     # The compiler can only warn and ignore the option if not recognized
12669     # So say no if there are warnings other than the usual output.
12670     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12671     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12672     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12673       lt_prog_compiler_pic_works_CXX=yes
12674     fi
12675   fi
12676   $rm conftest*
12677
12678fi
12679{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12680echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12681
12682if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12683    case $lt_prog_compiler_pic_CXX in
12684     "" | " "*) ;;
12685     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12686     esac
12687else
12688    lt_prog_compiler_pic_CXX=
12689     lt_prog_compiler_can_build_shared_CXX=no
12690fi
12691
12692fi
12693case $host_os in
12694  # For platforms which do not support PIC, -DPIC is meaningless:
12695  *djgpp*)
12696    lt_prog_compiler_pic_CXX=
12697    ;;
12698  *)
12699    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12700    ;;
12701esac
12702
12703#
12704# Check to make sure the static flag actually works.
12705#
12706wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12707{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12708echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12709if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12710  echo $ECHO_N "(cached) $ECHO_C" >&6
12711else
12712  lt_prog_compiler_static_works_CXX=no
12713   save_LDFLAGS="$LDFLAGS"
12714   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12715   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12716   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12717     # The linker can only warn and ignore the option if not recognized
12718     # So say no if there are warnings
12719     if test -s conftest.err; then
12720       # Append any errors to the config.log.
12721       cat conftest.err 1>&5
12722       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12723       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12724       if diff conftest.exp conftest.er2 >/dev/null; then
12725         lt_prog_compiler_static_works_CXX=yes
12726       fi
12727     else
12728       lt_prog_compiler_static_works_CXX=yes
12729     fi
12730   fi
12731   $rm conftest*
12732   LDFLAGS="$save_LDFLAGS"
12733
12734fi
12735{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12736echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12737
12738if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12739    :
12740else
12741    lt_prog_compiler_static_CXX=
12742fi
12743
12744
12745{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12746echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12747if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12748  echo $ECHO_N "(cached) $ECHO_C" >&6
12749else
12750  lt_cv_prog_compiler_c_o_CXX=no
12751   $rm -r conftest 2>/dev/null
12752   mkdir conftest
12753   cd conftest
12754   mkdir out
12755   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12756
12757   lt_compiler_flag="-o out/conftest2.$ac_objext"
12758   # Insert the option either (1) after the last *FLAGS variable, or
12759   # (2) before a word containing "conftest.", or (3) at the end.
12760   # Note that $ac_compile itself does not contain backslashes and begins
12761   # with a dollar sign (not a hyphen), so the echo should work correctly.
12762   lt_compile=`echo "$ac_compile" | $SED \
12763   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12764   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12765   -e 's:$: $lt_compiler_flag:'`
12766   (eval echo "\"\$as_me:12766: $lt_compile\"" >&5)
12767   (eval "$lt_compile" 2>out/conftest.err)
12768   ac_status=$?
12769   cat out/conftest.err >&5
12770   echo "$as_me:12770: \$? = $ac_status" >&5
12771   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12772   then
12773     # The compiler can only warn and ignore the option if not recognized
12774     # So say no if there are warnings
12775     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12776     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12777     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12778       lt_cv_prog_compiler_c_o_CXX=yes
12779     fi
12780   fi
12781   chmod u+w . 2>&5
12782   $rm conftest*
12783   # SGI C++ compiler will create directory out/ii_files/ for
12784   # template instantiation
12785   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12786   $rm out/* && rmdir out
12787   cd ..
12788   rmdir conftest
12789   $rm conftest*
12790
12791fi
12792{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12793echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12794
12795
12796hard_links="nottested"
12797if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12798  # do not overwrite the value of need_locks provided by the user
12799  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12800echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12801  hard_links=yes
12802  $rm conftest*
12803  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12804  touch conftest.a
12805  ln conftest.a conftest.b 2>&5 || hard_links=no
12806  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12807  { echo "$as_me:$LINENO: result: $hard_links" >&5
12808echo "${ECHO_T}$hard_links" >&6; }
12809  if test "$hard_links" = no; then
12810    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12811echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12812    need_locks=warn
12813  fi
12814else
12815  need_locks=no
12816fi
12817
12818{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12819echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12820
12821  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12822  case $host_os in
12823  aix4* | aix5*)
12824    # If we're using GNU nm, then we don't want the "-C" option.
12825    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12826    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12827      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'
12828    else
12829      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'
12830    fi
12831    ;;
12832  pw32*)
12833    export_symbols_cmds_CXX="$ltdll_cmds"
12834  ;;
12835  cygwin* | mingw*)
12836    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'
12837  ;;
12838  linux* | k*bsd*-gnu)
12839    link_all_deplibs_CXX=no
12840  ;;
12841  *)
12842    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12843  ;;
12844  esac
12845
12846{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12847echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12848test "$ld_shlibs_CXX" = no && can_build_shared=no
12849
12850#
12851# Do we need to explicitly link libc?
12852#
12853case "x$archive_cmds_need_lc_CXX" in
12854x|xyes)
12855  # Assume -lc should be added
12856  archive_cmds_need_lc_CXX=yes
12857
12858  if test "$enable_shared" = yes && test "$GCC" = yes; then
12859    case $archive_cmds_CXX in
12860    *'~'*)
12861      # FIXME: we may have to deal with multi-command sequences.
12862      ;;
12863    '$CC '*)
12864      # Test whether the compiler implicitly links with -lc since on some
12865      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12866      # to ld, don't add -lc before -lgcc.
12867      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12868echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12869      $rm conftest*
12870      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12871
12872      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12873  (eval $ac_compile) 2>&5
12874  ac_status=$?
12875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876  (exit $ac_status); } 2>conftest.err; then
12877        soname=conftest
12878        lib=conftest
12879        libobjs=conftest.$ac_objext
12880        deplibs=
12881        wl=$lt_prog_compiler_wl_CXX
12882	pic_flag=$lt_prog_compiler_pic_CXX
12883        compiler_flags=-v
12884        linker_flags=-v
12885        verstring=
12886        output_objdir=.
12887        libname=conftest
12888        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12889        allow_undefined_flag_CXX=
12890        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12891  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12892  ac_status=$?
12893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894  (exit $ac_status); }
12895        then
12896	  archive_cmds_need_lc_CXX=no
12897        else
12898	  archive_cmds_need_lc_CXX=yes
12899        fi
12900        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12901      else
12902        cat conftest.err 1>&5
12903      fi
12904      $rm conftest*
12905      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12906echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12907      ;;
12908    esac
12909  fi
12910  ;;
12911esac
12912
12913{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12914echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12915library_names_spec=
12916libname_spec='lib$name'
12917soname_spec=
12918shrext_cmds=".so"
12919postinstall_cmds=
12920postuninstall_cmds=
12921finish_cmds=
12922finish_eval=
12923shlibpath_var=
12924shlibpath_overrides_runpath=unknown
12925version_type=none
12926dynamic_linker="$host_os ld.so"
12927sys_lib_dlsearch_path_spec="/lib /usr/lib"
12928if test "$GCC" = yes; then
12929  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12930  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12931    # if the path contains ";" then we assume it to be the separator
12932    # otherwise default to the standard path separator (i.e. ":") - it is
12933    # assumed that no part of a normal pathname contains ";" but that should
12934    # okay in the real world where ";" in dirpaths is itself problematic.
12935    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12936  else
12937    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12938  fi
12939else
12940  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12941fi
12942need_lib_prefix=unknown
12943hardcode_into_libs=no
12944
12945# when you set need_version to no, make sure it does not cause -set_version
12946# flags to be left without arguments
12947need_version=unknown
12948
12949case $host_os in
12950aix3*)
12951  version_type=linux
12952  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12953  shlibpath_var=LIBPATH
12954
12955  # AIX 3 has no versioning support, so we append a major version to the name.
12956  soname_spec='${libname}${release}${shared_ext}$major'
12957  ;;
12958
12959aix4* | aix5*)
12960  version_type=linux
12961  need_lib_prefix=no
12962  need_version=no
12963  hardcode_into_libs=yes
12964  if test "$host_cpu" = ia64; then
12965    # AIX 5 supports IA64
12966    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12967    shlibpath_var=LD_LIBRARY_PATH
12968  else
12969    # With GCC up to 2.95.x, collect2 would create an import file
12970    # for dependence libraries.  The import file would start with
12971    # the line `#! .'.  This would cause the generated library to
12972    # depend on `.', always an invalid library.  This was fixed in
12973    # development snapshots of GCC prior to 3.0.
12974    case $host_os in
12975      aix4 | aix4.[01] | aix4.[01].*)
12976      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12977	   echo ' yes '
12978	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12979	:
12980      else
12981	can_build_shared=no
12982      fi
12983      ;;
12984    esac
12985    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12986    # soname into executable. Probably we can add versioning support to
12987    # collect2, so additional links can be useful in future.
12988    if test "$aix_use_runtimelinking" = yes; then
12989      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12990      # instead of lib<name>.a to let people know that these are not
12991      # typical AIX shared libraries.
12992      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12993    else
12994      # We preserve .a as extension for shared libraries through AIX4.2
12995      # and later when we are not doing run time linking.
12996      library_names_spec='${libname}${release}.a $libname.a'
12997      soname_spec='${libname}${release}${shared_ext}$major'
12998    fi
12999    shlibpath_var=LIBPATH
13000  fi
13001  ;;
13002
13003amigaos*)
13004  library_names_spec='$libname.ixlibrary $libname.a'
13005  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13006  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'
13007  ;;
13008
13009beos*)
13010  library_names_spec='${libname}${shared_ext}'
13011  dynamic_linker="$host_os ld.so"
13012  shlibpath_var=LIBRARY_PATH
13013  ;;
13014
13015bsdi[45]*)
13016  version_type=linux
13017  need_version=no
13018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13019  soname_spec='${libname}${release}${shared_ext}$major'
13020  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13021  shlibpath_var=LD_LIBRARY_PATH
13022  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13023  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13024  # the default ld.so.conf also contains /usr/contrib/lib and
13025  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13026  # libtool to hard-code these into programs
13027  ;;
13028
13029cygwin* | mingw* | pw32*)
13030  version_type=windows
13031  shrext_cmds=".dll"
13032  need_version=no
13033  need_lib_prefix=no
13034
13035  case $GCC,$host_os in
13036  yes,cygwin* | yes,mingw* | yes,pw32*)
13037    library_names_spec='$libname.dll.a'
13038    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13039    postinstall_cmds='base_file=`basename \${file}`~
13040      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13041      dldir=$destdir/`dirname \$dlpath`~
13042      test -d \$dldir || mkdir -p \$dldir~
13043      $install_prog $dir/$dlname \$dldir/$dlname~
13044      chmod a+x \$dldir/$dlname'
13045    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13046      dlpath=$dir/\$dldll~
13047       $rm \$dlpath'
13048    shlibpath_overrides_runpath=yes
13049
13050    case $host_os in
13051    cygwin*)
13052      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13053      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13054      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13055      ;;
13056    mingw*)
13057      # MinGW DLLs use traditional 'lib' prefix
13058      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13059      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13060      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13061        # It is most probably a Windows format PATH printed by
13062        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13063        # path with ; separators, and with drive letters. We can handle the
13064        # drive letters (cygwin fileutils understands them), so leave them,
13065        # especially as we might pass files found there to a mingw objdump,
13066        # which wouldn't understand a cygwinified path. Ahh.
13067        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13068      else
13069        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13070      fi
13071      ;;
13072    pw32*)
13073      # pw32 DLLs use 'pw' prefix rather than 'lib'
13074      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13075      ;;
13076    esac
13077    ;;
13078
13079  *)
13080    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13081    ;;
13082  esac
13083  dynamic_linker='Win32 ld.exe'
13084  # FIXME: first we should search . and the directory the executable is in
13085  shlibpath_var=PATH
13086  ;;
13087
13088darwin* | rhapsody*)
13089  dynamic_linker="$host_os dyld"
13090  version_type=darwin
13091  need_lib_prefix=no
13092  need_version=no
13093  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13094  soname_spec='${libname}${release}${major}$shared_ext'
13095  shlibpath_overrides_runpath=yes
13096  shlibpath_var=DYLD_LIBRARY_PATH
13097  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13098  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13099  if test "$GCC" = yes; then
13100    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"`
13101  else
13102    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13103  fi
13104  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13105  ;;
13106
13107dgux*)
13108  version_type=linux
13109  need_lib_prefix=no
13110  need_version=no
13111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13112  soname_spec='${libname}${release}${shared_ext}$major'
13113  shlibpath_var=LD_LIBRARY_PATH
13114  ;;
13115
13116freebsd1*)
13117  dynamic_linker=no
13118  ;;
13119
13120freebsd* | dragonfly*)
13121  # DragonFly does not have aout.  When/if they implement a new
13122  # versioning mechanism, adjust this.
13123  if test -x /usr/bin/objformat; then
13124    objformat=`/usr/bin/objformat`
13125  else
13126    case $host_os in
13127    freebsd[123]*) objformat=aout ;;
13128    *) objformat=elf ;;
13129    esac
13130  fi
13131  version_type=freebsd-$objformat
13132  case $version_type in
13133    freebsd-elf*)
13134      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13135      need_version=no
13136      need_lib_prefix=no
13137      ;;
13138    freebsd-*)
13139      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13140      need_version=yes
13141      ;;
13142  esac
13143  shlibpath_var=LD_LIBRARY_PATH
13144  case $host_os in
13145  freebsd2*)
13146    shlibpath_overrides_runpath=yes
13147    ;;
13148  freebsd3.[01]* | freebsdelf3.[01]*)
13149    shlibpath_overrides_runpath=yes
13150    hardcode_into_libs=yes
13151    ;;
13152  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13153  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13154    shlibpath_overrides_runpath=no
13155    hardcode_into_libs=yes
13156    ;;
13157  freebsd*) # from 4.6 on
13158    shlibpath_overrides_runpath=yes
13159    hardcode_into_libs=yes
13160    ;;
13161  esac
13162  ;;
13163
13164gnu*)
13165  version_type=linux
13166  need_lib_prefix=no
13167  need_version=no
13168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13169  soname_spec='${libname}${release}${shared_ext}$major'
13170  shlibpath_var=LD_LIBRARY_PATH
13171  hardcode_into_libs=yes
13172  ;;
13173
13174hpux9* | hpux10* | hpux11*)
13175  # Give a soname corresponding to the major version so that dld.sl refuses to
13176  # link against other versions.
13177  version_type=sunos
13178  need_lib_prefix=no
13179  need_version=no
13180  case $host_cpu in
13181  ia64*)
13182    shrext_cmds='.so'
13183    hardcode_into_libs=yes
13184    dynamic_linker="$host_os dld.so"
13185    shlibpath_var=LD_LIBRARY_PATH
13186    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13187    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13188    soname_spec='${libname}${release}${shared_ext}$major'
13189    if test "X$HPUX_IA64_MODE" = X32; then
13190      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13191    else
13192      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13193    fi
13194    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13195    ;;
13196   hppa*64*)
13197     shrext_cmds='.sl'
13198     hardcode_into_libs=yes
13199     dynamic_linker="$host_os dld.sl"
13200     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13201     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13203     soname_spec='${libname}${release}${shared_ext}$major'
13204     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13205     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13206     ;;
13207   *)
13208    shrext_cmds='.sl'
13209    dynamic_linker="$host_os dld.sl"
13210    shlibpath_var=SHLIB_PATH
13211    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13212    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13213    soname_spec='${libname}${release}${shared_ext}$major'
13214    ;;
13215  esac
13216  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13217  postinstall_cmds='chmod 555 $lib'
13218  ;;
13219
13220interix3*)
13221  version_type=linux
13222  need_lib_prefix=no
13223  need_version=no
13224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13225  soname_spec='${libname}${release}${shared_ext}$major'
13226  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13227  shlibpath_var=LD_LIBRARY_PATH
13228  shlibpath_overrides_runpath=no
13229  hardcode_into_libs=yes
13230  ;;
13231
13232irix5* | irix6* | nonstopux*)
13233  case $host_os in
13234    nonstopux*) version_type=nonstopux ;;
13235    *)
13236	if test "$lt_cv_prog_gnu_ld" = yes; then
13237		version_type=linux
13238	else
13239		version_type=irix
13240	fi ;;
13241  esac
13242  need_lib_prefix=no
13243  need_version=no
13244  soname_spec='${libname}${release}${shared_ext}$major'
13245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13246  case $host_os in
13247  irix5* | nonstopux*)
13248    libsuff= shlibsuff=
13249    ;;
13250  *)
13251    case $LD in # libtool.m4 will add one of these switches to LD
13252    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13253      libsuff= shlibsuff= libmagic=32-bit;;
13254    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13255      libsuff=32 shlibsuff=N32 libmagic=N32;;
13256    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13257      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13258    *) libsuff= shlibsuff= libmagic=never-match;;
13259    esac
13260    ;;
13261  esac
13262  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13263  shlibpath_overrides_runpath=no
13264  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13265  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13266  hardcode_into_libs=yes
13267  ;;
13268
13269# No shared lib support for Linux oldld, aout, or coff.
13270linux*oldld* | linux*aout* | linux*coff*)
13271  dynamic_linker=no
13272  ;;
13273
13274# This must be Linux ELF.
13275linux* | k*bsd*-gnu)
13276  version_type=linux
13277  need_lib_prefix=no
13278  need_version=no
13279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13280  soname_spec='${libname}${release}${shared_ext}$major'
13281  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13282  shlibpath_var=LD_LIBRARY_PATH
13283  shlibpath_overrides_runpath=no
13284  # This implies no fast_install, which is unacceptable.
13285  # Some rework will be needed to allow for fast_install
13286  # before this can be enabled.
13287  hardcode_into_libs=yes
13288
13289  # Append ld.so.conf contents to the search path
13290  if test -f /etc/ld.so.conf; then
13291    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' ' '`
13292    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13293  fi
13294
13295  # We used to test for /lib/ld.so.1 and disable shared libraries on
13296  # powerpc, because MkLinux only supported shared libraries with the
13297  # GNU dynamic linker.  Since this was broken with cross compilers,
13298  # most powerpc-linux boxes support dynamic linking these days and
13299  # people can always --disable-shared, the test was removed, and we
13300  # assume the GNU/Linux dynamic linker is in use.
13301  dynamic_linker='GNU/Linux ld.so'
13302  ;;
13303
13304netbsdelf*-gnu)
13305  version_type=linux
13306  need_lib_prefix=no
13307  need_version=no
13308  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13309  soname_spec='${libname}${release}${shared_ext}$major'
13310  shlibpath_var=LD_LIBRARY_PATH
13311  shlibpath_overrides_runpath=no
13312  hardcode_into_libs=yes
13313  dynamic_linker='NetBSD ld.elf_so'
13314  ;;
13315
13316netbsd*)
13317  version_type=sunos
13318  need_lib_prefix=no
13319  need_version=no
13320  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13321    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13322    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13323    dynamic_linker='NetBSD (a.out) ld.so'
13324  else
13325    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13326    soname_spec='${libname}${release}${shared_ext}$major'
13327    dynamic_linker='NetBSD ld.elf_so'
13328  fi
13329  shlibpath_var=LD_LIBRARY_PATH
13330  shlibpath_overrides_runpath=yes
13331  hardcode_into_libs=yes
13332  ;;
13333
13334newsos6)
13335  version_type=linux
13336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13337  shlibpath_var=LD_LIBRARY_PATH
13338  shlibpath_overrides_runpath=yes
13339  ;;
13340
13341nto-qnx*)
13342  version_type=linux
13343  need_lib_prefix=no
13344  need_version=no
13345  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13346  soname_spec='${libname}${release}${shared_ext}$major'
13347  shlibpath_var=LD_LIBRARY_PATH
13348  shlibpath_overrides_runpath=yes
13349  ;;
13350
13351openbsd*)
13352  version_type=sunos
13353  sys_lib_dlsearch_path_spec="/usr/lib"
13354  need_lib_prefix=no
13355  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13356  case $host_os in
13357    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13358    *)                         need_version=no  ;;
13359  esac
13360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13361  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13362  shlibpath_var=LD_LIBRARY_PATH
13363  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13364    case $host_os in
13365      openbsd2.[89] | openbsd2.[89].*)
13366	shlibpath_overrides_runpath=no
13367	;;
13368      *)
13369	shlibpath_overrides_runpath=yes
13370	;;
13371      esac
13372  else
13373    shlibpath_overrides_runpath=yes
13374  fi
13375  ;;
13376
13377os2*)
13378  libname_spec='$name'
13379  shrext_cmds=".dll"
13380  need_lib_prefix=no
13381  library_names_spec='$libname${shared_ext} $libname.a'
13382  dynamic_linker='OS/2 ld.exe'
13383  shlibpath_var=LIBPATH
13384  ;;
13385
13386osf3* | osf4* | osf5*)
13387  version_type=osf
13388  need_lib_prefix=no
13389  need_version=no
13390  soname_spec='${libname}${release}${shared_ext}$major'
13391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13392  shlibpath_var=LD_LIBRARY_PATH
13393  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13394  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13395  ;;
13396
13397solaris*)
13398  version_type=linux
13399  need_lib_prefix=no
13400  need_version=no
13401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13402  soname_spec='${libname}${release}${shared_ext}$major'
13403  shlibpath_var=LD_LIBRARY_PATH
13404  shlibpath_overrides_runpath=yes
13405  hardcode_into_libs=yes
13406  # ldd complains unless libraries are executable
13407  postinstall_cmds='chmod +x $lib'
13408  ;;
13409
13410sunos4*)
13411  version_type=sunos
13412  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13413  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13414  shlibpath_var=LD_LIBRARY_PATH
13415  shlibpath_overrides_runpath=yes
13416  if test "$with_gnu_ld" = yes; then
13417    need_lib_prefix=no
13418  fi
13419  need_version=yes
13420  ;;
13421
13422sysv4 | sysv4.3*)
13423  version_type=linux
13424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13425  soname_spec='${libname}${release}${shared_ext}$major'
13426  shlibpath_var=LD_LIBRARY_PATH
13427  case $host_vendor in
13428    sni)
13429      shlibpath_overrides_runpath=no
13430      need_lib_prefix=no
13431      export_dynamic_flag_spec='${wl}-Blargedynsym'
13432      runpath_var=LD_RUN_PATH
13433      ;;
13434    siemens)
13435      need_lib_prefix=no
13436      ;;
13437    motorola)
13438      need_lib_prefix=no
13439      need_version=no
13440      shlibpath_overrides_runpath=no
13441      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13442      ;;
13443  esac
13444  ;;
13445
13446sysv4*MP*)
13447  if test -d /usr/nec ;then
13448    version_type=linux
13449    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13450    soname_spec='$libname${shared_ext}.$major'
13451    shlibpath_var=LD_LIBRARY_PATH
13452  fi
13453  ;;
13454
13455sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13456  version_type=freebsd-elf
13457  need_lib_prefix=no
13458  need_version=no
13459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13460  soname_spec='${libname}${release}${shared_ext}$major'
13461  shlibpath_var=LD_LIBRARY_PATH
13462  hardcode_into_libs=yes
13463  if test "$with_gnu_ld" = yes; then
13464    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13465    shlibpath_overrides_runpath=no
13466  else
13467    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13468    shlibpath_overrides_runpath=yes
13469    case $host_os in
13470      sco3.2v5*)
13471        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13472	;;
13473    esac
13474  fi
13475  sys_lib_dlsearch_path_spec='/usr/lib'
13476  ;;
13477
13478uts4*)
13479  version_type=linux
13480  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13481  soname_spec='${libname}${release}${shared_ext}$major'
13482  shlibpath_var=LD_LIBRARY_PATH
13483  ;;
13484
13485*)
13486  dynamic_linker=no
13487  ;;
13488esac
13489{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13490echo "${ECHO_T}$dynamic_linker" >&6; }
13491test "$dynamic_linker" = no && can_build_shared=no
13492
13493variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13494if test "$GCC" = yes; then
13495  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13496fi
13497
13498{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13499echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13500hardcode_action_CXX=
13501if test -n "$hardcode_libdir_flag_spec_CXX" || \
13502   test -n "$runpath_var_CXX" || \
13503   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13504
13505  # We can hardcode non-existant directories.
13506  if test "$hardcode_direct_CXX" != no &&
13507     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13508     # have to relink, otherwise we might link with an installed library
13509     # when we should be linking with a yet-to-be-installed one
13510     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13511     test "$hardcode_minus_L_CXX" != no; then
13512    # Linking always hardcodes the temporary library directory.
13513    hardcode_action_CXX=relink
13514  else
13515    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13516    hardcode_action_CXX=immediate
13517  fi
13518else
13519  # We cannot hardcode anything, or else we can only hardcode existing
13520  # directories.
13521  hardcode_action_CXX=unsupported
13522fi
13523{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13524echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13525
13526if test "$hardcode_action_CXX" = relink; then
13527  # Fast installation is not supported
13528  enable_fast_install=no
13529elif test "$shlibpath_overrides_runpath" = yes ||
13530     test "$enable_shared" = no; then
13531  # Fast installation is not necessary
13532  enable_fast_install=needless
13533fi
13534
13535
13536# The else clause should only fire when bootstrapping the
13537# libtool distribution, otherwise you forgot to ship ltmain.sh
13538# with your package, and you will get complaints that there are
13539# no rules to generate ltmain.sh.
13540if test -f "$ltmain"; then
13541  # See if we are running on zsh, and set the options which allow our commands through
13542  # without removal of \ escapes.
13543  if test -n "${ZSH_VERSION+set}" ; then
13544    setopt NO_GLOB_SUBST
13545  fi
13546  # Now quote all the things that may contain metacharacters while being
13547  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13548  # variables and quote the copies for generation of the libtool script.
13549  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13550    SED SHELL STRIP \
13551    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13552    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13553    deplibs_check_method reload_flag reload_cmds need_locks \
13554    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13555    lt_cv_sys_global_symbol_to_c_name_address \
13556    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13557    old_postinstall_cmds old_postuninstall_cmds \
13558    compiler_CXX \
13559    CC_CXX \
13560    LD_CXX \
13561    lt_prog_compiler_wl_CXX \
13562    lt_prog_compiler_pic_CXX \
13563    lt_prog_compiler_static_CXX \
13564    lt_prog_compiler_no_builtin_flag_CXX \
13565    export_dynamic_flag_spec_CXX \
13566    thread_safe_flag_spec_CXX \
13567    whole_archive_flag_spec_CXX \
13568    enable_shared_with_static_runtimes_CXX \
13569    old_archive_cmds_CXX \
13570    old_archive_from_new_cmds_CXX \
13571    predep_objects_CXX \
13572    postdep_objects_CXX \
13573    predeps_CXX \
13574    postdeps_CXX \
13575    compiler_lib_search_path_CXX \
13576    archive_cmds_CXX \
13577    archive_expsym_cmds_CXX \
13578    postinstall_cmds_CXX \
13579    postuninstall_cmds_CXX \
13580    old_archive_from_expsyms_cmds_CXX \
13581    allow_undefined_flag_CXX \
13582    no_undefined_flag_CXX \
13583    export_symbols_cmds_CXX \
13584    hardcode_libdir_flag_spec_CXX \
13585    hardcode_libdir_flag_spec_ld_CXX \
13586    hardcode_libdir_separator_CXX \
13587    hardcode_automatic_CXX \
13588    module_cmds_CXX \
13589    module_expsym_cmds_CXX \
13590    lt_cv_prog_compiler_c_o_CXX \
13591    exclude_expsyms_CXX \
13592    include_expsyms_CXX; do
13593
13594    case $var in
13595    old_archive_cmds_CXX | \
13596    old_archive_from_new_cmds_CXX | \
13597    archive_cmds_CXX | \
13598    archive_expsym_cmds_CXX | \
13599    module_cmds_CXX | \
13600    module_expsym_cmds_CXX | \
13601    old_archive_from_expsyms_cmds_CXX | \
13602    export_symbols_cmds_CXX | \
13603    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13604    postinstall_cmds | postuninstall_cmds | \
13605    old_postinstall_cmds | old_postuninstall_cmds | \
13606    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13607      # Double-quote double-evaled strings.
13608      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13609      ;;
13610    *)
13611      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13612      ;;
13613    esac
13614  done
13615
13616  case $lt_echo in
13617  *'\$0 --fallback-echo"')
13618    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13619    ;;
13620  esac
13621
13622cfgfile="$ofile"
13623
13624  cat <<__EOF__ >> "$cfgfile"
13625# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13626
13627# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13628
13629# Shell to use when invoking shell scripts.
13630SHELL=$lt_SHELL
13631
13632# Whether or not to build shared libraries.
13633build_libtool_libs=$enable_shared
13634
13635# Whether or not to build static libraries.
13636build_old_libs=$enable_static
13637
13638# Whether or not to add -lc for building shared libraries.
13639build_libtool_need_lc=$archive_cmds_need_lc_CXX
13640
13641# Whether or not to disallow shared libs when runtime libs are static
13642allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13643
13644# Whether or not to optimize for fast installation.
13645fast_install=$enable_fast_install
13646
13647# The host system.
13648host_alias=$host_alias
13649host=$host
13650host_os=$host_os
13651
13652# The build system.
13653build_alias=$build_alias
13654build=$build
13655build_os=$build_os
13656
13657# An echo program that does not interpret backslashes.
13658echo=$lt_echo
13659
13660# The archiver.
13661AR=$lt_AR
13662AR_FLAGS=$lt_AR_FLAGS
13663
13664# A C compiler.
13665LTCC=$lt_LTCC
13666
13667# LTCC compiler flags.
13668LTCFLAGS=$lt_LTCFLAGS
13669
13670# A language-specific compiler.
13671CC=$lt_compiler_CXX
13672
13673# Is the compiler the GNU C compiler?
13674with_gcc=$GCC_CXX
13675
13676# An ERE matcher.
13677EGREP=$lt_EGREP
13678
13679# The linker used to build libraries.
13680LD=$lt_LD_CXX
13681
13682# Whether we need hard or soft links.
13683LN_S=$lt_LN_S
13684
13685# A BSD-compatible nm program.
13686NM=$lt_NM
13687
13688# A symbol stripping program
13689STRIP=$lt_STRIP
13690
13691# Used to examine libraries when file_magic_cmd begins "file"
13692MAGIC_CMD=$MAGIC_CMD
13693
13694# Used on cygwin: DLL creation program.
13695DLLTOOL="$DLLTOOL"
13696
13697# Used on cygwin: object dumper.
13698OBJDUMP="$OBJDUMP"
13699
13700# Used on cygwin: assembler.
13701AS="$AS"
13702
13703# The name of the directory that contains temporary libtool files.
13704objdir=$objdir
13705
13706# How to create reloadable object files.
13707reload_flag=$lt_reload_flag
13708reload_cmds=$lt_reload_cmds
13709
13710# How to pass a linker flag through the compiler.
13711wl=$lt_lt_prog_compiler_wl_CXX
13712
13713# Object file suffix (normally "o").
13714objext="$ac_objext"
13715
13716# Old archive suffix (normally "a").
13717libext="$libext"
13718
13719# Shared library suffix (normally ".so").
13720shrext_cmds='$shrext_cmds'
13721
13722# Executable file suffix (normally "").
13723exeext="$exeext"
13724
13725# Additional compiler flags for building library objects.
13726pic_flag=$lt_lt_prog_compiler_pic_CXX
13727pic_mode=$pic_mode
13728
13729# What is the maximum length of a command?
13730max_cmd_len=$lt_cv_sys_max_cmd_len
13731
13732# Does compiler simultaneously support -c and -o options?
13733compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13734
13735# Must we lock files when doing compilation?
13736need_locks=$lt_need_locks
13737
13738# Do we need the lib prefix for modules?
13739need_lib_prefix=$need_lib_prefix
13740
13741# Do we need a version for libraries?
13742need_version=$need_version
13743
13744# Whether dlopen is supported.
13745dlopen_support=$enable_dlopen
13746
13747# Whether dlopen of programs is supported.
13748dlopen_self=$enable_dlopen_self
13749
13750# Whether dlopen of statically linked programs is supported.
13751dlopen_self_static=$enable_dlopen_self_static
13752
13753# Compiler flag to prevent dynamic linking.
13754link_static_flag=$lt_lt_prog_compiler_static_CXX
13755
13756# Compiler flag to turn off builtin functions.
13757no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13758
13759# Compiler flag to allow reflexive dlopens.
13760export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13761
13762# Compiler flag to generate shared objects directly from archives.
13763whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13764
13765# Compiler flag to generate thread-safe objects.
13766thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13767
13768# Library versioning type.
13769version_type=$version_type
13770
13771# Format of library name prefix.
13772libname_spec=$lt_libname_spec
13773
13774# List of archive names.  First name is the real one, the rest are links.
13775# The last name is the one that the linker finds with -lNAME.
13776library_names_spec=$lt_library_names_spec
13777
13778# The coded name of the library, if different from the real name.
13779soname_spec=$lt_soname_spec
13780
13781# Commands used to build and install an old-style archive.
13782RANLIB=$lt_RANLIB
13783old_archive_cmds=$lt_old_archive_cmds_CXX
13784old_postinstall_cmds=$lt_old_postinstall_cmds
13785old_postuninstall_cmds=$lt_old_postuninstall_cmds
13786
13787# Create an old-style archive from a shared archive.
13788old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13789
13790# Create a temporary old-style archive to link instead of a shared archive.
13791old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13792
13793# Commands used to build and install a shared archive.
13794archive_cmds=$lt_archive_cmds_CXX
13795archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13796postinstall_cmds=$lt_postinstall_cmds
13797postuninstall_cmds=$lt_postuninstall_cmds
13798
13799# Commands used to build a loadable module (assumed same as above if empty)
13800module_cmds=$lt_module_cmds_CXX
13801module_expsym_cmds=$lt_module_expsym_cmds_CXX
13802
13803# Commands to strip libraries.
13804old_striplib=$lt_old_striplib
13805striplib=$lt_striplib
13806
13807# Dependencies to place before the objects being linked to create a
13808# shared library.
13809predep_objects=$lt_predep_objects_CXX
13810
13811# Dependencies to place after the objects being linked to create a
13812# shared library.
13813postdep_objects=$lt_postdep_objects_CXX
13814
13815# Dependencies to place before the objects being linked to create a
13816# shared library.
13817predeps=$lt_predeps_CXX
13818
13819# Dependencies to place after the objects being linked to create a
13820# shared library.
13821postdeps=$lt_postdeps_CXX
13822
13823# The library search path used internally by the compiler when linking
13824# a shared library.
13825compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13826
13827# Method to check whether dependent libraries are shared objects.
13828deplibs_check_method=$lt_deplibs_check_method
13829
13830# Command to use when deplibs_check_method == file_magic.
13831file_magic_cmd=$lt_file_magic_cmd
13832
13833# Flag that allows shared libraries with undefined symbols to be built.
13834allow_undefined_flag=$lt_allow_undefined_flag_CXX
13835
13836# Flag that forces no undefined symbols.
13837no_undefined_flag=$lt_no_undefined_flag_CXX
13838
13839# Commands used to finish a libtool library installation in a directory.
13840finish_cmds=$lt_finish_cmds
13841
13842# Same as above, but a single script fragment to be evaled but not shown.
13843finish_eval=$lt_finish_eval
13844
13845# Take the output of nm and produce a listing of raw symbols and C names.
13846global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13847
13848# Transform the output of nm in a proper C declaration
13849global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13850
13851# Transform the output of nm in a C name address pair
13852global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13853
13854# This is the shared library runtime path variable.
13855runpath_var=$runpath_var
13856
13857# This is the shared library path variable.
13858shlibpath_var=$shlibpath_var
13859
13860# Is shlibpath searched before the hard-coded library search path?
13861shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13862
13863# How to hardcode a shared library path into an executable.
13864hardcode_action=$hardcode_action_CXX
13865
13866# Whether we should hardcode library paths into libraries.
13867hardcode_into_libs=$hardcode_into_libs
13868
13869# Flag to hardcode \$libdir into a binary during linking.
13870# This must work even if \$libdir does not exist.
13871hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13872
13873# If ld is used when linking, flag to hardcode \$libdir into
13874# a binary during linking. This must work even if \$libdir does
13875# not exist.
13876hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13877
13878# Whether we need a single -rpath flag with a separated argument.
13879hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13880
13881# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13882# resulting binary.
13883hardcode_direct=$hardcode_direct_CXX
13884
13885# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13886# resulting binary.
13887hardcode_minus_L=$hardcode_minus_L_CXX
13888
13889# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13890# the resulting binary.
13891hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13892
13893# Set to yes if building a shared library automatically hardcodes DIR into the library
13894# and all subsequent libraries and executables linked against it.
13895hardcode_automatic=$hardcode_automatic_CXX
13896
13897# Variables whose values should be saved in libtool wrapper scripts and
13898# restored at relink time.
13899variables_saved_for_relink="$variables_saved_for_relink"
13900
13901# Whether libtool must link a program against all its dependency libraries.
13902link_all_deplibs=$link_all_deplibs_CXX
13903
13904# Compile-time system search path for libraries
13905sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13906
13907# Run-time system search path for libraries
13908sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13909
13910# Fix the shell variable \$srcfile for the compiler.
13911fix_srcfile_path="$fix_srcfile_path_CXX"
13912
13913# Set to yes if exported symbols are required.
13914always_export_symbols=$always_export_symbols_CXX
13915
13916# The commands to list exported symbols.
13917export_symbols_cmds=$lt_export_symbols_cmds_CXX
13918
13919# The commands to extract the exported symbol list from a shared archive.
13920extract_expsyms_cmds=$lt_extract_expsyms_cmds
13921
13922# Symbols that should not be listed in the preloaded symbols.
13923exclude_expsyms=$lt_exclude_expsyms_CXX
13924
13925# Symbols that must always be exported.
13926include_expsyms=$lt_include_expsyms_CXX
13927
13928# ### END LIBTOOL TAG CONFIG: $tagname
13929
13930__EOF__
13931
13932
13933else
13934  # If there is no Makefile yet, we rely on a make rule to execute
13935  # `config.status --recheck' to rerun these tests and create the
13936  # libtool script then.
13937  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13938  if test -f "$ltmain_in"; then
13939    test -f Makefile && make "$ltmain"
13940  fi
13941fi
13942
13943
13944ac_ext=c
13945ac_cpp='$CPP $CPPFLAGS'
13946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13948ac_compiler_gnu=$ac_cv_c_compiler_gnu
13949
13950CC=$lt_save_CC
13951LDCXX=$LD
13952LD=$lt_save_LD
13953GCC=$lt_save_GCC
13954with_gnu_ldcxx=$with_gnu_ld
13955with_gnu_ld=$lt_save_with_gnu_ld
13956lt_cv_path_LDCXX=$lt_cv_path_LD
13957lt_cv_path_LD=$lt_save_path_LD
13958lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13959lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13960
13961	else
13962	  tagname=""
13963	fi
13964	;;
13965
13966      F77)
13967	if test -n "$F77" && test "X$F77" != "Xno"; then
13968
13969ac_ext=f
13970ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13971ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13972ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13973
13974
13975archive_cmds_need_lc_F77=no
13976allow_undefined_flag_F77=
13977always_export_symbols_F77=no
13978archive_expsym_cmds_F77=
13979export_dynamic_flag_spec_F77=
13980hardcode_direct_F77=no
13981hardcode_libdir_flag_spec_F77=
13982hardcode_libdir_flag_spec_ld_F77=
13983hardcode_libdir_separator_F77=
13984hardcode_minus_L_F77=no
13985hardcode_automatic_F77=no
13986module_cmds_F77=
13987module_expsym_cmds_F77=
13988link_all_deplibs_F77=unknown
13989old_archive_cmds_F77=$old_archive_cmds
13990no_undefined_flag_F77=
13991whole_archive_flag_spec_F77=
13992enable_shared_with_static_runtimes_F77=no
13993
13994# Source file extension for f77 test sources.
13995ac_ext=f
13996
13997# Object file extension for compiled f77 test sources.
13998objext=o
13999objext_F77=$objext
14000
14001# Code to be used in simple compile tests
14002lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14003
14004# Code to be used in simple link tests
14005lt_simple_link_test_code="      program t\n      end\n"
14006
14007# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14008
14009# If no C compiler was specified, use CC.
14010LTCC=${LTCC-"$CC"}
14011
14012# If no C compiler flags were specified, use CFLAGS.
14013LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14014
14015# Allow CC to be a program name with arguments.
14016compiler=$CC
14017
14018
14019# save warnings/boilerplate of simple test code
14020ac_outfile=conftest.$ac_objext
14021printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14022eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14023_lt_compiler_boilerplate=`cat conftest.err`
14024$rm conftest*
14025
14026ac_outfile=conftest.$ac_objext
14027printf "$lt_simple_link_test_code" >conftest.$ac_ext
14028eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14029_lt_linker_boilerplate=`cat conftest.err`
14030$rm conftest*
14031
14032
14033# Allow CC to be a program name with arguments.
14034lt_save_CC="$CC"
14035CC=${F77-"f77"}
14036compiler=$CC
14037compiler_F77=$CC
14038for cc_temp in $compiler""; do
14039  case $cc_temp in
14040    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14041    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14042    \-*) ;;
14043    *) break;;
14044  esac
14045done
14046cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14047
14048
14049{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14050echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14051{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14052echo "${ECHO_T}$can_build_shared" >&6; }
14053
14054{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14055echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14056test "$can_build_shared" = "no" && enable_shared=no
14057
14058# On AIX, shared libraries and static libraries use the same namespace, and
14059# are all built from PIC.
14060case $host_os in
14061aix3*)
14062  test "$enable_shared" = yes && enable_static=no
14063  if test -n "$RANLIB"; then
14064    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14065    postinstall_cmds='$RANLIB $lib'
14066  fi
14067  ;;
14068aix4* | aix5*)
14069  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14070    test "$enable_shared" = yes && enable_static=no
14071  fi
14072  ;;
14073esac
14074{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14075echo "${ECHO_T}$enable_shared" >&6; }
14076
14077{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14078echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14079# Make sure either enable_shared or enable_static is yes.
14080test "$enable_shared" = yes || enable_static=yes
14081{ echo "$as_me:$LINENO: result: $enable_static" >&5
14082echo "${ECHO_T}$enable_static" >&6; }
14083
14084GCC_F77="$G77"
14085LD_F77="$LD"
14086
14087lt_prog_compiler_wl_F77=
14088lt_prog_compiler_pic_F77=
14089lt_prog_compiler_static_F77=
14090
14091{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14092echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14093
14094  if test "$GCC" = yes; then
14095    lt_prog_compiler_wl_F77='-Wl,'
14096    lt_prog_compiler_static_F77='-static'
14097
14098    case $host_os in
14099      aix*)
14100      # All AIX code is PIC.
14101      if test "$host_cpu" = ia64; then
14102	# AIX 5 now supports IA64 processor
14103	lt_prog_compiler_static_F77='-Bstatic'
14104      fi
14105      ;;
14106
14107    amigaos*)
14108      # FIXME: we need at least 68020 code to build shared libraries, but
14109      # adding the `-m68020' flag to GCC prevents building anything better,
14110      # like `-m68040'.
14111      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14112      ;;
14113
14114    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14115      # PIC is the default for these OSes.
14116      ;;
14117
14118    mingw* | pw32* | os2*)
14119      # This hack is so that the source file can tell whether it is being
14120      # built for inclusion in a dll (and should export symbols for example).
14121      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14122      ;;
14123
14124    darwin* | rhapsody*)
14125      # PIC is the default on this platform
14126      # Common symbols not allowed in MH_DYLIB files
14127      lt_prog_compiler_pic_F77='-fno-common'
14128      ;;
14129
14130    interix3*)
14131      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14132      # Instead, we relocate shared libraries at runtime.
14133      ;;
14134
14135    msdosdjgpp*)
14136      # Just because we use GCC doesn't mean we suddenly get shared libraries
14137      # on systems that don't support them.
14138      lt_prog_compiler_can_build_shared_F77=no
14139      enable_shared=no
14140      ;;
14141
14142    sysv4*MP*)
14143      if test -d /usr/nec; then
14144	lt_prog_compiler_pic_F77=-Kconform_pic
14145      fi
14146      ;;
14147
14148    hpux*)
14149      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14150      # not for PA HP-UX.
14151      case $host_cpu in
14152      hppa*64*|ia64*)
14153	# +Z the default
14154	;;
14155      *)
14156	lt_prog_compiler_pic_F77='-fPIC'
14157	;;
14158      esac
14159      ;;
14160
14161    *)
14162      lt_prog_compiler_pic_F77='-fPIC'
14163      ;;
14164    esac
14165  else
14166    # PORTME Check for flag to pass linker flags through the system compiler.
14167    case $host_os in
14168    aix*)
14169      lt_prog_compiler_wl_F77='-Wl,'
14170      if test "$host_cpu" = ia64; then
14171	# AIX 5 now supports IA64 processor
14172	lt_prog_compiler_static_F77='-Bstatic'
14173      else
14174	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14175      fi
14176      ;;
14177      darwin*)
14178        # PIC is the default on this platform
14179        # Common symbols not allowed in MH_DYLIB files
14180       case $cc_basename in
14181         xlc*)
14182         lt_prog_compiler_pic_F77='-qnocommon'
14183         lt_prog_compiler_wl_F77='-Wl,'
14184         ;;
14185       esac
14186       ;;
14187
14188    mingw* | pw32* | os2*)
14189      # This hack is so that the source file can tell whether it is being
14190      # built for inclusion in a dll (and should export symbols for example).
14191      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14192      ;;
14193
14194    hpux9* | hpux10* | hpux11*)
14195      lt_prog_compiler_wl_F77='-Wl,'
14196      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14197      # not for PA HP-UX.
14198      case $host_cpu in
14199      hppa*64*|ia64*)
14200	# +Z the default
14201	;;
14202      *)
14203	lt_prog_compiler_pic_F77='+Z'
14204	;;
14205      esac
14206      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14207      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14208      ;;
14209
14210    irix5* | irix6* | nonstopux*)
14211      lt_prog_compiler_wl_F77='-Wl,'
14212      # PIC (with -KPIC) is the default.
14213      lt_prog_compiler_static_F77='-non_shared'
14214      ;;
14215
14216    newsos6)
14217      lt_prog_compiler_pic_F77='-KPIC'
14218      lt_prog_compiler_static_F77='-Bstatic'
14219      ;;
14220
14221    linux* | k*bsd*-gnu)
14222      case $cc_basename in
14223      icc* | ecc*)
14224	lt_prog_compiler_wl_F77='-Wl,'
14225	lt_prog_compiler_pic_F77='-KPIC'
14226	lt_prog_compiler_static_F77='-static'
14227        ;;
14228      pgcc* | pgf77* | pgf90* | pgf95*)
14229        # Portland Group compilers (*not* the Pentium gcc compiler,
14230	# which looks to be a dead project)
14231	lt_prog_compiler_wl_F77='-Wl,'
14232	lt_prog_compiler_pic_F77='-fpic'
14233	lt_prog_compiler_static_F77='-Bstatic'
14234        ;;
14235      ccc*)
14236        lt_prog_compiler_wl_F77='-Wl,'
14237        # All Alpha code is PIC.
14238        lt_prog_compiler_static_F77='-non_shared'
14239        ;;
14240      esac
14241      ;;
14242
14243    osf3* | osf4* | osf5*)
14244      lt_prog_compiler_wl_F77='-Wl,'
14245      # All OSF/1 code is PIC.
14246      lt_prog_compiler_static_F77='-non_shared'
14247      ;;
14248
14249    solaris*)
14250      lt_prog_compiler_pic_F77='-KPIC'
14251      lt_prog_compiler_static_F77='-Bstatic'
14252      case $cc_basename in
14253      f77* | f90* | f95*)
14254	lt_prog_compiler_wl_F77='-Qoption ld ';;
14255      *)
14256	lt_prog_compiler_wl_F77='-Wl,';;
14257      esac
14258      ;;
14259
14260    sunos4*)
14261      lt_prog_compiler_wl_F77='-Qoption ld '
14262      lt_prog_compiler_pic_F77='-PIC'
14263      lt_prog_compiler_static_F77='-Bstatic'
14264      ;;
14265
14266    sysv4 | sysv4.2uw2* | sysv4.3*)
14267      lt_prog_compiler_wl_F77='-Wl,'
14268      lt_prog_compiler_pic_F77='-KPIC'
14269      lt_prog_compiler_static_F77='-Bstatic'
14270      ;;
14271
14272    sysv4*MP*)
14273      if test -d /usr/nec ;then
14274	lt_prog_compiler_pic_F77='-Kconform_pic'
14275	lt_prog_compiler_static_F77='-Bstatic'
14276      fi
14277      ;;
14278
14279    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14280      lt_prog_compiler_wl_F77='-Wl,'
14281      lt_prog_compiler_pic_F77='-KPIC'
14282      lt_prog_compiler_static_F77='-Bstatic'
14283      ;;
14284
14285    unicos*)
14286      lt_prog_compiler_wl_F77='-Wl,'
14287      lt_prog_compiler_can_build_shared_F77=no
14288      ;;
14289
14290    uts4*)
14291      lt_prog_compiler_pic_F77='-pic'
14292      lt_prog_compiler_static_F77='-Bstatic'
14293      ;;
14294
14295    *)
14296      lt_prog_compiler_can_build_shared_F77=no
14297      ;;
14298    esac
14299  fi
14300
14301{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14302echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14303
14304#
14305# Check to make sure the PIC flag actually works.
14306#
14307if test -n "$lt_prog_compiler_pic_F77"; then
14308
14309{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14310echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14311if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14312  echo $ECHO_N "(cached) $ECHO_C" >&6
14313else
14314  lt_prog_compiler_pic_works_F77=no
14315  ac_outfile=conftest.$ac_objext
14316   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14317   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14318   # Insert the option either (1) after the last *FLAGS variable, or
14319   # (2) before a word containing "conftest.", or (3) at the end.
14320   # Note that $ac_compile itself does not contain backslashes and begins
14321   # with a dollar sign (not a hyphen), so the echo should work correctly.
14322   # The option is referenced via a variable to avoid confusing sed.
14323   lt_compile=`echo "$ac_compile" | $SED \
14324   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14325   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14326   -e 's:$: $lt_compiler_flag:'`
14327   (eval echo "\"\$as_me:14327: $lt_compile\"" >&5)
14328   (eval "$lt_compile" 2>conftest.err)
14329   ac_status=$?
14330   cat conftest.err >&5
14331   echo "$as_me:14331: \$? = $ac_status" >&5
14332   if (exit $ac_status) && test -s "$ac_outfile"; then
14333     # The compiler can only warn and ignore the option if not recognized
14334     # So say no if there are warnings other than the usual output.
14335     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14336     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14337     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14338       lt_prog_compiler_pic_works_F77=yes
14339     fi
14340   fi
14341   $rm conftest*
14342
14343fi
14344{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14345echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14346
14347if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14348    case $lt_prog_compiler_pic_F77 in
14349     "" | " "*) ;;
14350     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14351     esac
14352else
14353    lt_prog_compiler_pic_F77=
14354     lt_prog_compiler_can_build_shared_F77=no
14355fi
14356
14357fi
14358case $host_os in
14359  # For platforms which do not support PIC, -DPIC is meaningless:
14360  *djgpp*)
14361    lt_prog_compiler_pic_F77=
14362    ;;
14363  *)
14364    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14365    ;;
14366esac
14367
14368#
14369# Check to make sure the static flag actually works.
14370#
14371wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14372{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14373echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14374if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14375  echo $ECHO_N "(cached) $ECHO_C" >&6
14376else
14377  lt_prog_compiler_static_works_F77=no
14378   save_LDFLAGS="$LDFLAGS"
14379   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14380   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14381   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14382     # The linker can only warn and ignore the option if not recognized
14383     # So say no if there are warnings
14384     if test -s conftest.err; then
14385       # Append any errors to the config.log.
14386       cat conftest.err 1>&5
14387       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14388       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14389       if diff conftest.exp conftest.er2 >/dev/null; then
14390         lt_prog_compiler_static_works_F77=yes
14391       fi
14392     else
14393       lt_prog_compiler_static_works_F77=yes
14394     fi
14395   fi
14396   $rm conftest*
14397   LDFLAGS="$save_LDFLAGS"
14398
14399fi
14400{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14401echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14402
14403if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14404    :
14405else
14406    lt_prog_compiler_static_F77=
14407fi
14408
14409
14410{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14411echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14412if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14413  echo $ECHO_N "(cached) $ECHO_C" >&6
14414else
14415  lt_cv_prog_compiler_c_o_F77=no
14416   $rm -r conftest 2>/dev/null
14417   mkdir conftest
14418   cd conftest
14419   mkdir out
14420   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14421
14422   lt_compiler_flag="-o out/conftest2.$ac_objext"
14423   # Insert the option either (1) after the last *FLAGS variable, or
14424   # (2) before a word containing "conftest.", or (3) at the end.
14425   # Note that $ac_compile itself does not contain backslashes and begins
14426   # with a dollar sign (not a hyphen), so the echo should work correctly.
14427   lt_compile=`echo "$ac_compile" | $SED \
14428   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14429   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14430   -e 's:$: $lt_compiler_flag:'`
14431   (eval echo "\"\$as_me:14431: $lt_compile\"" >&5)
14432   (eval "$lt_compile" 2>out/conftest.err)
14433   ac_status=$?
14434   cat out/conftest.err >&5
14435   echo "$as_me:14435: \$? = $ac_status" >&5
14436   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14437   then
14438     # The compiler can only warn and ignore the option if not recognized
14439     # So say no if there are warnings
14440     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14441     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14442     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14443       lt_cv_prog_compiler_c_o_F77=yes
14444     fi
14445   fi
14446   chmod u+w . 2>&5
14447   $rm conftest*
14448   # SGI C++ compiler will create directory out/ii_files/ for
14449   # template instantiation
14450   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14451   $rm out/* && rmdir out
14452   cd ..
14453   rmdir conftest
14454   $rm conftest*
14455
14456fi
14457{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14458echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14459
14460
14461hard_links="nottested"
14462if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14463  # do not overwrite the value of need_locks provided by the user
14464  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14465echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14466  hard_links=yes
14467  $rm conftest*
14468  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14469  touch conftest.a
14470  ln conftest.a conftest.b 2>&5 || hard_links=no
14471  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14472  { echo "$as_me:$LINENO: result: $hard_links" >&5
14473echo "${ECHO_T}$hard_links" >&6; }
14474  if test "$hard_links" = no; then
14475    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14476echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14477    need_locks=warn
14478  fi
14479else
14480  need_locks=no
14481fi
14482
14483{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14484echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14485
14486  runpath_var=
14487  allow_undefined_flag_F77=
14488  enable_shared_with_static_runtimes_F77=no
14489  archive_cmds_F77=
14490  archive_expsym_cmds_F77=
14491  old_archive_From_new_cmds_F77=
14492  old_archive_from_expsyms_cmds_F77=
14493  export_dynamic_flag_spec_F77=
14494  whole_archive_flag_spec_F77=
14495  thread_safe_flag_spec_F77=
14496  hardcode_libdir_flag_spec_F77=
14497  hardcode_libdir_flag_spec_ld_F77=
14498  hardcode_libdir_separator_F77=
14499  hardcode_direct_F77=no
14500  hardcode_minus_L_F77=no
14501  hardcode_shlibpath_var_F77=unsupported
14502  link_all_deplibs_F77=unknown
14503  hardcode_automatic_F77=no
14504  module_cmds_F77=
14505  module_expsym_cmds_F77=
14506  always_export_symbols_F77=no
14507  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14508  # include_expsyms should be a list of space-separated symbols to be *always*
14509  # included in the symbol list
14510  include_expsyms_F77=
14511  # exclude_expsyms can be an extended regexp of symbols to exclude
14512  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14513  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14514  # as well as any symbol that contains `d'.
14515  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14516  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14517  # platforms (ab)use it in PIC code, but their linkers get confused if
14518  # the symbol is explicitly referenced.  Since portable code cannot
14519  # rely on this symbol name, it's probably fine to never include it in
14520  # preloaded symbol tables.
14521  extract_expsyms_cmds=
14522  # Just being paranoid about ensuring that cc_basename is set.
14523  for cc_temp in $compiler""; do
14524  case $cc_temp in
14525    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14526    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14527    \-*) ;;
14528    *) break;;
14529  esac
14530done
14531cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14532
14533  case $host_os in
14534  cygwin* | mingw* | pw32*)
14535    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14536    # When not using gcc, we currently assume that we are using
14537    # Microsoft Visual C++.
14538    if test "$GCC" != yes; then
14539      with_gnu_ld=no
14540    fi
14541    ;;
14542  interix*)
14543    # we just hope/assume this is gcc and not c89 (= MSVC++)
14544    with_gnu_ld=yes
14545    ;;
14546  openbsd*)
14547    with_gnu_ld=no
14548    ;;
14549  esac
14550
14551  ld_shlibs_F77=yes
14552  if test "$with_gnu_ld" = yes; then
14553    # If archive_cmds runs LD, not CC, wlarc should be empty
14554    wlarc='${wl}'
14555
14556    # Set some defaults for GNU ld with shared library support. These
14557    # are reset later if shared libraries are not supported. Putting them
14558    # here allows them to be overridden if necessary.
14559    runpath_var=LD_RUN_PATH
14560    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14561    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14562    # ancient GNU ld didn't support --whole-archive et. al.
14563    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14564	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14565      else
14566  	whole_archive_flag_spec_F77=
14567    fi
14568    supports_anon_versioning=no
14569    case `$LD -v 2>/dev/null` in
14570      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14571      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14572      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14573      *\ 2.11.*) ;; # other 2.11 versions
14574      *) supports_anon_versioning=yes ;;
14575    esac
14576
14577    # See if GNU ld supports shared libraries.
14578    case $host_os in
14579    aix3* | aix4* | aix5*)
14580      # On AIX/PPC, the GNU linker is very broken
14581      if test "$host_cpu" != ia64; then
14582	ld_shlibs_F77=no
14583	cat <<EOF 1>&2
14584
14585*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14586*** to be unable to reliably create shared libraries on AIX.
14587*** Therefore, libtool is disabling shared libraries support.  If you
14588*** really care for shared libraries, you may want to modify your PATH
14589*** so that a non-GNU linker is found, and then restart.
14590
14591EOF
14592      fi
14593      ;;
14594
14595    amigaos*)
14596      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)'
14597      hardcode_libdir_flag_spec_F77='-L$libdir'
14598      hardcode_minus_L_F77=yes
14599
14600      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14601      # that the semantics of dynamic libraries on AmigaOS, at least up
14602      # to version 4, is to share data among multiple programs linked
14603      # with the same dynamic library.  Since this doesn't match the
14604      # behavior of shared libraries on other platforms, we can't use
14605      # them.
14606      ld_shlibs_F77=no
14607      ;;
14608
14609    beos*)
14610      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14611	allow_undefined_flag_F77=unsupported
14612	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14613	# support --undefined.  This deserves some investigation.  FIXME
14614	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14615      else
14616	ld_shlibs_F77=no
14617      fi
14618      ;;
14619
14620    cygwin* | mingw* | pw32*)
14621      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14622      # as there is no search path for DLLs.
14623      hardcode_libdir_flag_spec_F77='-L$libdir'
14624      allow_undefined_flag_F77=unsupported
14625      always_export_symbols_F77=no
14626      enable_shared_with_static_runtimes_F77=yes
14627      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14628
14629      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14630        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14631	# If the export-symbols file already is a .def file (1st line
14632	# is EXPORTS), use it as is; otherwise, prepend...
14633	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14634	  cp $export_symbols $output_objdir/$soname.def;
14635	else
14636	  echo EXPORTS > $output_objdir/$soname.def;
14637	  cat $export_symbols >> $output_objdir/$soname.def;
14638	fi~
14639	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14640      else
14641	ld_shlibs_F77=no
14642      fi
14643      ;;
14644
14645    interix3*)
14646      hardcode_direct_F77=no
14647      hardcode_shlibpath_var_F77=no
14648      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14649      export_dynamic_flag_spec_F77='${wl}-E'
14650      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14651      # Instead, shared libraries are loaded at an image base (0x10000000 by
14652      # default) and relocated if they conflict, which is a slow very memory
14653      # consuming and fragmenting process.  To avoid this, we pick a random,
14654      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14655      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14656      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'
14657      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'
14658      ;;
14659
14660    linux* | k*bsd*-gnu)
14661      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14662	tmp_addflag=
14663	case $cc_basename,$host_cpu in
14664	pgcc*)				# Portland Group C compiler
14665	  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'
14666	  tmp_addflag=' $pic_flag'
14667	  ;;
14668	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14669	  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'
14670	  tmp_addflag=' $pic_flag -Mnomain' ;;
14671	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14672	  tmp_addflag=' -i_dynamic' ;;
14673	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14674	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14675	ifc* | ifort*)			# Intel Fortran compiler
14676	  tmp_addflag=' -nofor_main' ;;
14677	esac
14678	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14679
14680	if test $supports_anon_versioning = yes; then
14681	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14682  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14683  $echo "local: *; };" >> $output_objdir/$libname.ver~
14684	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14685	fi
14686	link_all_deplibs_F77=no
14687      else
14688	ld_shlibs_F77=no
14689      fi
14690      ;;
14691
14692    netbsd* | netbsdelf*-gnu)
14693      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14694	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14695	wlarc=
14696      else
14697	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14698	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14699      fi
14700      ;;
14701
14702    solaris*)
14703      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14704	ld_shlibs_F77=no
14705	cat <<EOF 1>&2
14706
14707*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14708*** create shared libraries on Solaris systems.  Therefore, libtool
14709*** is disabling shared libraries support.  We urge you to upgrade GNU
14710*** binutils to release 2.9.1 or newer.  Another option is to modify
14711*** your PATH or compiler configuration so that the native linker is
14712*** used, and then restart.
14713
14714EOF
14715      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14716	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14717	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14718      else
14719	ld_shlibs_F77=no
14720      fi
14721      ;;
14722
14723    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14724      case `$LD -v 2>&1` in
14725        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14726	ld_shlibs_F77=no
14727	cat <<_LT_EOF 1>&2
14728
14729*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14730*** reliably create shared libraries on SCO systems.  Therefore, libtool
14731*** is disabling shared libraries support.  We urge you to upgrade GNU
14732*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14733*** your PATH or compiler configuration so that the native linker is
14734*** used, and then restart.
14735
14736_LT_EOF
14737	;;
14738	*)
14739	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14740	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14741	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14742	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14743	  else
14744	    ld_shlibs_F77=no
14745	  fi
14746	;;
14747      esac
14748      ;;
14749
14750    sunos4*)
14751      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14752      wlarc=
14753      hardcode_direct_F77=yes
14754      hardcode_shlibpath_var_F77=no
14755      ;;
14756
14757    *)
14758      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14759	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14760	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14761      else
14762	ld_shlibs_F77=no
14763      fi
14764      ;;
14765    esac
14766
14767    if test "$ld_shlibs_F77" = no; then
14768      runpath_var=
14769      hardcode_libdir_flag_spec_F77=
14770      export_dynamic_flag_spec_F77=
14771      whole_archive_flag_spec_F77=
14772    fi
14773  else
14774    # PORTME fill in a description of your system's linker (not GNU ld)
14775    case $host_os in
14776    aix3*)
14777      allow_undefined_flag_F77=unsupported
14778      always_export_symbols_F77=yes
14779      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'
14780      # Note: this linker hardcodes the directories in LIBPATH if there
14781      # are no directories specified by -L.
14782      hardcode_minus_L_F77=yes
14783      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14784	# Neither direct hardcoding nor static linking is supported with a
14785	# broken collect2.
14786	hardcode_direct_F77=unsupported
14787      fi
14788      ;;
14789
14790    aix4* | aix5*)
14791      if test "$host_cpu" = ia64; then
14792	# On IA64, the linker does run time linking by default, so we don't
14793	# have to do anything special.
14794	aix_use_runtimelinking=no
14795	exp_sym_flag='-Bexport'
14796	no_entry_flag=""
14797      else
14798	# If we're using GNU nm, then we don't want the "-C" option.
14799	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14800	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14801	  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'
14802	else
14803	  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'
14804	fi
14805	aix_use_runtimelinking=no
14806
14807	# Test if we are trying to use run time linking or normal
14808	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14809	# need to do runtime linking.
14810	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14811	  for ld_flag in $LDFLAGS; do
14812  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14813  	    aix_use_runtimelinking=yes
14814  	    break
14815  	  fi
14816	  done
14817	  ;;
14818	esac
14819
14820	exp_sym_flag='-bexport'
14821	no_entry_flag='-bnoentry'
14822      fi
14823
14824      # When large executables or shared objects are built, AIX ld can
14825      # have problems creating the table of contents.  If linking a library
14826      # or program results in "error TOC overflow" add -mminimal-toc to
14827      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14828      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14829
14830      archive_cmds_F77=''
14831      hardcode_direct_F77=yes
14832      hardcode_libdir_separator_F77=':'
14833      link_all_deplibs_F77=yes
14834
14835      if test "$GCC" = yes; then
14836	case $host_os in aix4.[012]|aix4.[012].*)
14837	# We only want to do this on AIX 4.2 and lower, the check
14838	# below for broken collect2 doesn't work under 4.3+
14839	  collect2name=`${CC} -print-prog-name=collect2`
14840	  if test -f "$collect2name" && \
14841  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14842	  then
14843  	  # We have reworked collect2
14844  	  hardcode_direct_F77=yes
14845	  else
14846  	  # We have old collect2
14847  	  hardcode_direct_F77=unsupported
14848  	  # It fails to find uninstalled libraries when the uninstalled
14849  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14850  	  # to unsupported forces relinking
14851  	  hardcode_minus_L_F77=yes
14852  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14853  	  hardcode_libdir_separator_F77=
14854	  fi
14855	  ;;
14856	esac
14857	shared_flag='-shared'
14858	if test "$aix_use_runtimelinking" = yes; then
14859	  shared_flag="$shared_flag "'${wl}-G'
14860	fi
14861      else
14862	# not using gcc
14863	if test "$host_cpu" = ia64; then
14864  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14865  	# chokes on -Wl,-G. The following line is correct:
14866	  shared_flag='-G'
14867	else
14868	  if test "$aix_use_runtimelinking" = yes; then
14869	    shared_flag='${wl}-G'
14870	  else
14871	    shared_flag='${wl}-bM:SRE'
14872	  fi
14873	fi
14874      fi
14875
14876      # It seems that -bexpall does not export symbols beginning with
14877      # underscore (_), so it is better to generate a list of symbols to export.
14878      always_export_symbols_F77=yes
14879      if test "$aix_use_runtimelinking" = yes; then
14880	# Warning - without using the other runtime loading flags (-brtl),
14881	# -berok will link without error, but may produce a broken library.
14882	allow_undefined_flag_F77='-berok'
14883       # Determine the default libpath from the value encoded in an empty executable.
14884       cat >conftest.$ac_ext <<_ACEOF
14885      program main
14886
14887      end
14888_ACEOF
14889rm -f conftest.$ac_objext conftest$ac_exeext
14890if { (ac_try="$ac_link"
14891case "(($ac_try" in
14892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893  *) ac_try_echo=$ac_try;;
14894esac
14895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896  (eval "$ac_link") 2>conftest.er1
14897  ac_status=$?
14898  grep -v '^ *+' conftest.er1 >conftest.err
14899  rm -f conftest.er1
14900  cat conftest.err >&5
14901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902  (exit $ac_status); } &&
14903	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14904  { (case "(($ac_try" in
14905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906  *) ac_try_echo=$ac_try;;
14907esac
14908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909  (eval "$ac_try") 2>&5
14910  ac_status=$?
14911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912  (exit $ac_status); }; } &&
14913	 { ac_try='test -s conftest$ac_exeext'
14914  { (case "(($ac_try" in
14915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916  *) ac_try_echo=$ac_try;;
14917esac
14918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919  (eval "$ac_try") 2>&5
14920  ac_status=$?
14921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922  (exit $ac_status); }; }; then
14923
14924aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14925}'`
14926# Check for a 64-bit object if we didn't find anything.
14927if 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; }
14928}'`; fi
14929else
14930  echo "$as_me: failed program was:" >&5
14931sed 's/^/| /' conftest.$ac_ext >&5
14932
14933
14934fi
14935
14936rm -f core conftest.err conftest.$ac_objext \
14937      conftest$ac_exeext conftest.$ac_ext
14938if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14939
14940       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14941	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"
14942       else
14943	if test "$host_cpu" = ia64; then
14944	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14945	  allow_undefined_flag_F77="-z nodefs"
14946	  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"
14947	else
14948	 # Determine the default libpath from the value encoded in an empty executable.
14949	 cat >conftest.$ac_ext <<_ACEOF
14950      program main
14951
14952      end
14953_ACEOF
14954rm -f conftest.$ac_objext conftest$ac_exeext
14955if { (ac_try="$ac_link"
14956case "(($ac_try" in
14957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14958  *) ac_try_echo=$ac_try;;
14959esac
14960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14961  (eval "$ac_link") 2>conftest.er1
14962  ac_status=$?
14963  grep -v '^ *+' conftest.er1 >conftest.err
14964  rm -f conftest.er1
14965  cat conftest.err >&5
14966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967  (exit $ac_status); } &&
14968	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14969  { (case "(($ac_try" in
14970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971  *) ac_try_echo=$ac_try;;
14972esac
14973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974  (eval "$ac_try") 2>&5
14975  ac_status=$?
14976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977  (exit $ac_status); }; } &&
14978	 { ac_try='test -s conftest$ac_exeext'
14979  { (case "(($ac_try" in
14980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981  *) ac_try_echo=$ac_try;;
14982esac
14983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984  (eval "$ac_try") 2>&5
14985  ac_status=$?
14986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987  (exit $ac_status); }; }; then
14988
14989aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14990}'`
14991# Check for a 64-bit object if we didn't find anything.
14992if 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; }
14993}'`; fi
14994else
14995  echo "$as_me: failed program was:" >&5
14996sed 's/^/| /' conftest.$ac_ext >&5
14997
14998
14999fi
15000
15001rm -f core conftest.err conftest.$ac_objext \
15002      conftest$ac_exeext conftest.$ac_ext
15003if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15004
15005	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15006	  # Warning - without using the other run time loading flags,
15007	  # -berok will link without error, but may produce a broken library.
15008	  no_undefined_flag_F77=' ${wl}-bernotok'
15009	  allow_undefined_flag_F77=' ${wl}-berok'
15010	  # Exported symbols can be pulled into shared objects from archives
15011	  whole_archive_flag_spec_F77='$convenience'
15012	  archive_cmds_need_lc_F77=yes
15013	  # This is similar to how AIX traditionally builds its shared libraries.
15014	  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'
15015	fi
15016      fi
15017      ;;
15018
15019    amigaos*)
15020      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)'
15021      hardcode_libdir_flag_spec_F77='-L$libdir'
15022      hardcode_minus_L_F77=yes
15023      # see comment about different semantics on the GNU ld section
15024      ld_shlibs_F77=no
15025      ;;
15026
15027    bsdi[45]*)
15028      export_dynamic_flag_spec_F77=-rdynamic
15029      ;;
15030
15031    cygwin* | mingw* | pw32*)
15032      # When not using gcc, we currently assume that we are using
15033      # Microsoft Visual C++.
15034      # hardcode_libdir_flag_spec is actually meaningless, as there is
15035      # no search path for DLLs.
15036      hardcode_libdir_flag_spec_F77=' '
15037      allow_undefined_flag_F77=unsupported
15038      # Tell ltmain to make .lib files, not .a files.
15039      libext=lib
15040      # Tell ltmain to make .dll files, not .so files.
15041      shrext_cmds=".dll"
15042      # FIXME: Setting linknames here is a bad hack.
15043      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15044      # The linker will automatically build a .lib file if we build a DLL.
15045      old_archive_From_new_cmds_F77='true'
15046      # FIXME: Should let the user specify the lib program.
15047      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15048      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15049      enable_shared_with_static_runtimes_F77=yes
15050      ;;
15051
15052    darwin* | rhapsody*)
15053      case $host_os in
15054        rhapsody* | darwin1.[012])
15055         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15056         ;;
15057       *) # Darwin 1.3 on
15058         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15059           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15060         else
15061           case ${MACOSX_DEPLOYMENT_TARGET} in
15062             10.[012])
15063               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15064               ;;
15065             10.*)
15066               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15067               ;;
15068           esac
15069         fi
15070         ;;
15071      esac
15072      archive_cmds_need_lc_F77=no
15073      hardcode_direct_F77=no
15074      hardcode_automatic_F77=yes
15075      hardcode_shlibpath_var_F77=unsupported
15076      whole_archive_flag_spec_F77=''
15077      link_all_deplibs_F77=yes
15078    if test "$GCC" = yes ; then
15079    	output_verbose_link_cmd='echo'
15080        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15081      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15082      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15083      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}'
15084      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}'
15085    else
15086      case $cc_basename in
15087        xlc*)
15088         output_verbose_link_cmd='echo'
15089         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15090         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15091          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15092         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}'
15093          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}'
15094          ;;
15095       *)
15096         ld_shlibs_F77=no
15097          ;;
15098      esac
15099    fi
15100      ;;
15101
15102    dgux*)
15103      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15104      hardcode_libdir_flag_spec_F77='-L$libdir'
15105      hardcode_shlibpath_var_F77=no
15106      ;;
15107
15108    freebsd1*)
15109      ld_shlibs_F77=no
15110      ;;
15111
15112    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15113    # support.  Future versions do this automatically, but an explicit c++rt0.o
15114    # does not break anything, and helps significantly (at the cost of a little
15115    # extra space).
15116    freebsd2.2*)
15117      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15118      hardcode_libdir_flag_spec_F77='-R$libdir'
15119      hardcode_direct_F77=yes
15120      hardcode_shlibpath_var_F77=no
15121      ;;
15122
15123    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15124    freebsd2*)
15125      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15126      hardcode_direct_F77=yes
15127      hardcode_minus_L_F77=yes
15128      hardcode_shlibpath_var_F77=no
15129      ;;
15130
15131    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15132    freebsd* | dragonfly*)
15133      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15134      hardcode_libdir_flag_spec_F77='-R$libdir'
15135      hardcode_direct_F77=yes
15136      hardcode_shlibpath_var_F77=no
15137      ;;
15138
15139    hpux9*)
15140      if test "$GCC" = yes; then
15141	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'
15142      else
15143	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'
15144      fi
15145      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15146      hardcode_libdir_separator_F77=:
15147      hardcode_direct_F77=yes
15148
15149      # hardcode_minus_L: Not really in the search PATH,
15150      # but as the default location of the library.
15151      hardcode_minus_L_F77=yes
15152      export_dynamic_flag_spec_F77='${wl}-E'
15153      ;;
15154
15155    hpux10*)
15156      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15157	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15158      else
15159	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15160      fi
15161      if test "$with_gnu_ld" = no; then
15162	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15163	hardcode_libdir_separator_F77=:
15164
15165	hardcode_direct_F77=yes
15166	export_dynamic_flag_spec_F77='${wl}-E'
15167
15168	# hardcode_minus_L: Not really in the search PATH,
15169	# but as the default location of the library.
15170	hardcode_minus_L_F77=yes
15171      fi
15172      ;;
15173
15174    hpux11*)
15175      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15176	case $host_cpu in
15177	hppa*64*)
15178	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15179	  ;;
15180	ia64*)
15181	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15182	  ;;
15183	*)
15184	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15185	  ;;
15186	esac
15187      else
15188	case $host_cpu in
15189	hppa*64*)
15190	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15191	  ;;
15192	ia64*)
15193	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15194	  ;;
15195	*)
15196	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15197	  ;;
15198	esac
15199      fi
15200      if test "$with_gnu_ld" = no; then
15201	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15202	hardcode_libdir_separator_F77=:
15203
15204	case $host_cpu in
15205	hppa*64*|ia64*)
15206	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15207	  hardcode_direct_F77=no
15208	  hardcode_shlibpath_var_F77=no
15209	  ;;
15210	*)
15211	  hardcode_direct_F77=yes
15212	  export_dynamic_flag_spec_F77='${wl}-E'
15213
15214	  # hardcode_minus_L: Not really in the search PATH,
15215	  # but as the default location of the library.
15216	  hardcode_minus_L_F77=yes
15217	  ;;
15218	esac
15219      fi
15220      ;;
15221
15222    irix5* | irix6* | nonstopux*)
15223      if test "$GCC" = yes; then
15224	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'
15225      else
15226	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'
15227	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15228      fi
15229      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15230      hardcode_libdir_separator_F77=:
15231      link_all_deplibs_F77=yes
15232      ;;
15233
15234    netbsd* | netbsdelf*-gnu)
15235      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15236	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15237      else
15238	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15239      fi
15240      hardcode_libdir_flag_spec_F77='-R$libdir'
15241      hardcode_direct_F77=yes
15242      hardcode_shlibpath_var_F77=no
15243      ;;
15244
15245    newsos6)
15246      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15247      hardcode_direct_F77=yes
15248      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15249      hardcode_libdir_separator_F77=:
15250      hardcode_shlibpath_var_F77=no
15251      ;;
15252
15253    openbsd*)
15254      hardcode_direct_F77=yes
15255      hardcode_shlibpath_var_F77=no
15256      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15257	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15258	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15259	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15260	export_dynamic_flag_spec_F77='${wl}-E'
15261      else
15262       case $host_os in
15263	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15264	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15265	   hardcode_libdir_flag_spec_F77='-R$libdir'
15266	   ;;
15267	 *)
15268	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15269	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15270	   ;;
15271       esac
15272      fi
15273      ;;
15274
15275    os2*)
15276      hardcode_libdir_flag_spec_F77='-L$libdir'
15277      hardcode_minus_L_F77=yes
15278      allow_undefined_flag_F77=unsupported
15279      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'
15280      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15281      ;;
15282
15283    osf3*)
15284      if test "$GCC" = yes; then
15285	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15286	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'
15287      else
15288	allow_undefined_flag_F77=' -expect_unresolved \*'
15289	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'
15290      fi
15291      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15292      hardcode_libdir_separator_F77=:
15293      ;;
15294
15295    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15296      if test "$GCC" = yes; then
15297	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15298	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'
15299	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15300      else
15301	allow_undefined_flag_F77=' -expect_unresolved \*'
15302	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'
15303	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~
15304	$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'
15305
15306	# Both c and cxx compiler support -rpath directly
15307	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15308      fi
15309      hardcode_libdir_separator_F77=:
15310      ;;
15311
15312    solaris*)
15313      no_undefined_flag_F77=' -z text'
15314      if test "$GCC" = yes; then
15315	wlarc='${wl}'
15316	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15317	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15318	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15319      else
15320	wlarc=''
15321	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15322	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15323  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15324      fi
15325      hardcode_libdir_flag_spec_F77='-R$libdir'
15326      hardcode_shlibpath_var_F77=no
15327      case $host_os in
15328      solaris2.[0-5] | solaris2.[0-5].*) ;;
15329      *)
15330 	# The compiler driver will combine linker options so we
15331 	# cannot just pass the convience library names through
15332 	# without $wl, iff we do not link with $LD.
15333 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15334 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15335 	case $wlarc in
15336 	'')
15337 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15338 	*)
15339 	  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' ;;
15340 	esac ;;
15341      esac
15342      link_all_deplibs_F77=yes
15343      ;;
15344
15345    sunos4*)
15346      if test "x$host_vendor" = xsequent; then
15347	# Use $CC to link under sequent, because it throws in some extra .o
15348	# files that make .init and .fini sections work.
15349	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15350      else
15351	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15352      fi
15353      hardcode_libdir_flag_spec_F77='-L$libdir'
15354      hardcode_direct_F77=yes
15355      hardcode_minus_L_F77=yes
15356      hardcode_shlibpath_var_F77=no
15357      ;;
15358
15359    sysv4)
15360      case $host_vendor in
15361	sni)
15362	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15363	  hardcode_direct_F77=yes # is this really true???
15364	;;
15365	siemens)
15366	  ## LD is ld it makes a PLAMLIB
15367	  ## CC just makes a GrossModule.
15368	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15369	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15370	  hardcode_direct_F77=no
15371        ;;
15372	motorola)
15373	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15374	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15375	;;
15376      esac
15377      runpath_var='LD_RUN_PATH'
15378      hardcode_shlibpath_var_F77=no
15379      ;;
15380
15381    sysv4.3*)
15382      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15383      hardcode_shlibpath_var_F77=no
15384      export_dynamic_flag_spec_F77='-Bexport'
15385      ;;
15386
15387    sysv4*MP*)
15388      if test -d /usr/nec; then
15389	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15390	hardcode_shlibpath_var_F77=no
15391	runpath_var=LD_RUN_PATH
15392	hardcode_runpath_var=yes
15393	ld_shlibs_F77=yes
15394      fi
15395      ;;
15396
15397    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15398      no_undefined_flag_F77='${wl}-z,text'
15399      archive_cmds_need_lc_F77=no
15400      hardcode_shlibpath_var_F77=no
15401      runpath_var='LD_RUN_PATH'
15402
15403      if test "$GCC" = yes; then
15404	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15405	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15406      else
15407	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15408	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15409      fi
15410      ;;
15411
15412    sysv5* | sco3.2v5* | sco5v6*)
15413      # Note: We can NOT use -z defs as we might desire, because we do not
15414      # link with -lc, and that would cause any symbols used from libc to
15415      # always be unresolved, which means just about no library would
15416      # ever link correctly.  If we're not using GNU ld we use -z text
15417      # though, which does catch some bad symbols but isn't as heavy-handed
15418      # as -z defs.
15419      no_undefined_flag_F77='${wl}-z,text'
15420      allow_undefined_flag_F77='${wl}-z,nodefs'
15421      archive_cmds_need_lc_F77=no
15422      hardcode_shlibpath_var_F77=no
15423      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15424      hardcode_libdir_separator_F77=':'
15425      link_all_deplibs_F77=yes
15426      export_dynamic_flag_spec_F77='${wl}-Bexport'
15427      runpath_var='LD_RUN_PATH'
15428
15429      if test "$GCC" = yes; then
15430	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15431	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15432      else
15433	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15434	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15435      fi
15436      ;;
15437
15438    uts4*)
15439      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15440      hardcode_libdir_flag_spec_F77='-L$libdir'
15441      hardcode_shlibpath_var_F77=no
15442      ;;
15443
15444    *)
15445      ld_shlibs_F77=no
15446      ;;
15447    esac
15448  fi
15449
15450{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15451echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15452test "$ld_shlibs_F77" = no && can_build_shared=no
15453
15454#
15455# Do we need to explicitly link libc?
15456#
15457case "x$archive_cmds_need_lc_F77" in
15458x|xyes)
15459  # Assume -lc should be added
15460  archive_cmds_need_lc_F77=yes
15461
15462  if test "$enable_shared" = yes && test "$GCC" = yes; then
15463    case $archive_cmds_F77 in
15464    *'~'*)
15465      # FIXME: we may have to deal with multi-command sequences.
15466      ;;
15467    '$CC '*)
15468      # Test whether the compiler implicitly links with -lc since on some
15469      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15470      # to ld, don't add -lc before -lgcc.
15471      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15472echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15473      $rm conftest*
15474      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15475
15476      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15477  (eval $ac_compile) 2>&5
15478  ac_status=$?
15479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480  (exit $ac_status); } 2>conftest.err; then
15481        soname=conftest
15482        lib=conftest
15483        libobjs=conftest.$ac_objext
15484        deplibs=
15485        wl=$lt_prog_compiler_wl_F77
15486	pic_flag=$lt_prog_compiler_pic_F77
15487        compiler_flags=-v
15488        linker_flags=-v
15489        verstring=
15490        output_objdir=.
15491        libname=conftest
15492        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15493        allow_undefined_flag_F77=
15494        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15495  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15496  ac_status=$?
15497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498  (exit $ac_status); }
15499        then
15500	  archive_cmds_need_lc_F77=no
15501        else
15502	  archive_cmds_need_lc_F77=yes
15503        fi
15504        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15505      else
15506        cat conftest.err 1>&5
15507      fi
15508      $rm conftest*
15509      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15510echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15511      ;;
15512    esac
15513  fi
15514  ;;
15515esac
15516
15517{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15518echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15519library_names_spec=
15520libname_spec='lib$name'
15521soname_spec=
15522shrext_cmds=".so"
15523postinstall_cmds=
15524postuninstall_cmds=
15525finish_cmds=
15526finish_eval=
15527shlibpath_var=
15528shlibpath_overrides_runpath=unknown
15529version_type=none
15530dynamic_linker="$host_os ld.so"
15531sys_lib_dlsearch_path_spec="/lib /usr/lib"
15532if test "$GCC" = yes; then
15533  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15534  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15535    # if the path contains ";" then we assume it to be the separator
15536    # otherwise default to the standard path separator (i.e. ":") - it is
15537    # assumed that no part of a normal pathname contains ";" but that should
15538    # okay in the real world where ";" in dirpaths is itself problematic.
15539    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15540  else
15541    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15542  fi
15543else
15544  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15545fi
15546need_lib_prefix=unknown
15547hardcode_into_libs=no
15548
15549# when you set need_version to no, make sure it does not cause -set_version
15550# flags to be left without arguments
15551need_version=unknown
15552
15553case $host_os in
15554aix3*)
15555  version_type=linux
15556  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15557  shlibpath_var=LIBPATH
15558
15559  # AIX 3 has no versioning support, so we append a major version to the name.
15560  soname_spec='${libname}${release}${shared_ext}$major'
15561  ;;
15562
15563aix4* | aix5*)
15564  version_type=linux
15565  need_lib_prefix=no
15566  need_version=no
15567  hardcode_into_libs=yes
15568  if test "$host_cpu" = ia64; then
15569    # AIX 5 supports IA64
15570    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15571    shlibpath_var=LD_LIBRARY_PATH
15572  else
15573    # With GCC up to 2.95.x, collect2 would create an import file
15574    # for dependence libraries.  The import file would start with
15575    # the line `#! .'.  This would cause the generated library to
15576    # depend on `.', always an invalid library.  This was fixed in
15577    # development snapshots of GCC prior to 3.0.
15578    case $host_os in
15579      aix4 | aix4.[01] | aix4.[01].*)
15580      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15581	   echo ' yes '
15582	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15583	:
15584      else
15585	can_build_shared=no
15586      fi
15587      ;;
15588    esac
15589    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15590    # soname into executable. Probably we can add versioning support to
15591    # collect2, so additional links can be useful in future.
15592    if test "$aix_use_runtimelinking" = yes; then
15593      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15594      # instead of lib<name>.a to let people know that these are not
15595      # typical AIX shared libraries.
15596      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15597    else
15598      # We preserve .a as extension for shared libraries through AIX4.2
15599      # and later when we are not doing run time linking.
15600      library_names_spec='${libname}${release}.a $libname.a'
15601      soname_spec='${libname}${release}${shared_ext}$major'
15602    fi
15603    shlibpath_var=LIBPATH
15604  fi
15605  ;;
15606
15607amigaos*)
15608  library_names_spec='$libname.ixlibrary $libname.a'
15609  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15610  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'
15611  ;;
15612
15613beos*)
15614  library_names_spec='${libname}${shared_ext}'
15615  dynamic_linker="$host_os ld.so"
15616  shlibpath_var=LIBRARY_PATH
15617  ;;
15618
15619bsdi[45]*)
15620  version_type=linux
15621  need_version=no
15622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15623  soname_spec='${libname}${release}${shared_ext}$major'
15624  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15625  shlibpath_var=LD_LIBRARY_PATH
15626  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15627  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15628  # the default ld.so.conf also contains /usr/contrib/lib and
15629  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15630  # libtool to hard-code these into programs
15631  ;;
15632
15633cygwin* | mingw* | pw32*)
15634  version_type=windows
15635  shrext_cmds=".dll"
15636  need_version=no
15637  need_lib_prefix=no
15638
15639  case $GCC,$host_os in
15640  yes,cygwin* | yes,mingw* | yes,pw32*)
15641    library_names_spec='$libname.dll.a'
15642    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15643    postinstall_cmds='base_file=`basename \${file}`~
15644      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15645      dldir=$destdir/`dirname \$dlpath`~
15646      test -d \$dldir || mkdir -p \$dldir~
15647      $install_prog $dir/$dlname \$dldir/$dlname~
15648      chmod a+x \$dldir/$dlname'
15649    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15650      dlpath=$dir/\$dldll~
15651       $rm \$dlpath'
15652    shlibpath_overrides_runpath=yes
15653
15654    case $host_os in
15655    cygwin*)
15656      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15657      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15658      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15659      ;;
15660    mingw*)
15661      # MinGW DLLs use traditional 'lib' prefix
15662      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15663      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15664      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15665        # It is most probably a Windows format PATH printed by
15666        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15667        # path with ; separators, and with drive letters. We can handle the
15668        # drive letters (cygwin fileutils understands them), so leave them,
15669        # especially as we might pass files found there to a mingw objdump,
15670        # which wouldn't understand a cygwinified path. Ahh.
15671        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15672      else
15673        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15674      fi
15675      ;;
15676    pw32*)
15677      # pw32 DLLs use 'pw' prefix rather than 'lib'
15678      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15679      ;;
15680    esac
15681    ;;
15682
15683  *)
15684    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15685    ;;
15686  esac
15687  dynamic_linker='Win32 ld.exe'
15688  # FIXME: first we should search . and the directory the executable is in
15689  shlibpath_var=PATH
15690  ;;
15691
15692darwin* | rhapsody*)
15693  dynamic_linker="$host_os dyld"
15694  version_type=darwin
15695  need_lib_prefix=no
15696  need_version=no
15697  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15698  soname_spec='${libname}${release}${major}$shared_ext'
15699  shlibpath_overrides_runpath=yes
15700  shlibpath_var=DYLD_LIBRARY_PATH
15701  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15702  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15703  if test "$GCC" = yes; then
15704    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"`
15705  else
15706    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15707  fi
15708  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15709  ;;
15710
15711dgux*)
15712  version_type=linux
15713  need_lib_prefix=no
15714  need_version=no
15715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15716  soname_spec='${libname}${release}${shared_ext}$major'
15717  shlibpath_var=LD_LIBRARY_PATH
15718  ;;
15719
15720freebsd1*)
15721  dynamic_linker=no
15722  ;;
15723
15724freebsd* | dragonfly*)
15725  # DragonFly does not have aout.  When/if they implement a new
15726  # versioning mechanism, adjust this.
15727  if test -x /usr/bin/objformat; then
15728    objformat=`/usr/bin/objformat`
15729  else
15730    case $host_os in
15731    freebsd[123]*) objformat=aout ;;
15732    *) objformat=elf ;;
15733    esac
15734  fi
15735  version_type=freebsd-$objformat
15736  case $version_type in
15737    freebsd-elf*)
15738      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15739      need_version=no
15740      need_lib_prefix=no
15741      ;;
15742    freebsd-*)
15743      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15744      need_version=yes
15745      ;;
15746  esac
15747  shlibpath_var=LD_LIBRARY_PATH
15748  case $host_os in
15749  freebsd2*)
15750    shlibpath_overrides_runpath=yes
15751    ;;
15752  freebsd3.[01]* | freebsdelf3.[01]*)
15753    shlibpath_overrides_runpath=yes
15754    hardcode_into_libs=yes
15755    ;;
15756  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15757  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15758    shlibpath_overrides_runpath=no
15759    hardcode_into_libs=yes
15760    ;;
15761  freebsd*) # from 4.6 on
15762    shlibpath_overrides_runpath=yes
15763    hardcode_into_libs=yes
15764    ;;
15765  esac
15766  ;;
15767
15768gnu*)
15769  version_type=linux
15770  need_lib_prefix=no
15771  need_version=no
15772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15773  soname_spec='${libname}${release}${shared_ext}$major'
15774  shlibpath_var=LD_LIBRARY_PATH
15775  hardcode_into_libs=yes
15776  ;;
15777
15778hpux9* | hpux10* | hpux11*)
15779  # Give a soname corresponding to the major version so that dld.sl refuses to
15780  # link against other versions.
15781  version_type=sunos
15782  need_lib_prefix=no
15783  need_version=no
15784  case $host_cpu in
15785  ia64*)
15786    shrext_cmds='.so'
15787    hardcode_into_libs=yes
15788    dynamic_linker="$host_os dld.so"
15789    shlibpath_var=LD_LIBRARY_PATH
15790    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15791    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792    soname_spec='${libname}${release}${shared_ext}$major'
15793    if test "X$HPUX_IA64_MODE" = X32; then
15794      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15795    else
15796      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15797    fi
15798    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15799    ;;
15800   hppa*64*)
15801     shrext_cmds='.sl'
15802     hardcode_into_libs=yes
15803     dynamic_linker="$host_os dld.sl"
15804     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15805     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15806     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15807     soname_spec='${libname}${release}${shared_ext}$major'
15808     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15809     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15810     ;;
15811   *)
15812    shrext_cmds='.sl'
15813    dynamic_linker="$host_os dld.sl"
15814    shlibpath_var=SHLIB_PATH
15815    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15816    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15817    soname_spec='${libname}${release}${shared_ext}$major'
15818    ;;
15819  esac
15820  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15821  postinstall_cmds='chmod 555 $lib'
15822  ;;
15823
15824interix3*)
15825  version_type=linux
15826  need_lib_prefix=no
15827  need_version=no
15828  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15829  soname_spec='${libname}${release}${shared_ext}$major'
15830  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15831  shlibpath_var=LD_LIBRARY_PATH
15832  shlibpath_overrides_runpath=no
15833  hardcode_into_libs=yes
15834  ;;
15835
15836irix5* | irix6* | nonstopux*)
15837  case $host_os in
15838    nonstopux*) version_type=nonstopux ;;
15839    *)
15840	if test "$lt_cv_prog_gnu_ld" = yes; then
15841		version_type=linux
15842	else
15843		version_type=irix
15844	fi ;;
15845  esac
15846  need_lib_prefix=no
15847  need_version=no
15848  soname_spec='${libname}${release}${shared_ext}$major'
15849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15850  case $host_os in
15851  irix5* | nonstopux*)
15852    libsuff= shlibsuff=
15853    ;;
15854  *)
15855    case $LD in # libtool.m4 will add one of these switches to LD
15856    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15857      libsuff= shlibsuff= libmagic=32-bit;;
15858    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15859      libsuff=32 shlibsuff=N32 libmagic=N32;;
15860    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15861      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15862    *) libsuff= shlibsuff= libmagic=never-match;;
15863    esac
15864    ;;
15865  esac
15866  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15867  shlibpath_overrides_runpath=no
15868  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15869  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15870  hardcode_into_libs=yes
15871  ;;
15872
15873# No shared lib support for Linux oldld, aout, or coff.
15874linux*oldld* | linux*aout* | linux*coff*)
15875  dynamic_linker=no
15876  ;;
15877
15878# This must be Linux ELF.
15879linux* | k*bsd*-gnu)
15880  version_type=linux
15881  need_lib_prefix=no
15882  need_version=no
15883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15884  soname_spec='${libname}${release}${shared_ext}$major'
15885  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15886  shlibpath_var=LD_LIBRARY_PATH
15887  shlibpath_overrides_runpath=no
15888  # This implies no fast_install, which is unacceptable.
15889  # Some rework will be needed to allow for fast_install
15890  # before this can be enabled.
15891  hardcode_into_libs=yes
15892
15893  # Append ld.so.conf contents to the search path
15894  if test -f /etc/ld.so.conf; then
15895    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' ' '`
15896    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15897  fi
15898
15899  # We used to test for /lib/ld.so.1 and disable shared libraries on
15900  # powerpc, because MkLinux only supported shared libraries with the
15901  # GNU dynamic linker.  Since this was broken with cross compilers,
15902  # most powerpc-linux boxes support dynamic linking these days and
15903  # people can always --disable-shared, the test was removed, and we
15904  # assume the GNU/Linux dynamic linker is in use.
15905  dynamic_linker='GNU/Linux ld.so'
15906  ;;
15907
15908netbsdelf*-gnu)
15909  version_type=linux
15910  need_lib_prefix=no
15911  need_version=no
15912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15913  soname_spec='${libname}${release}${shared_ext}$major'
15914  shlibpath_var=LD_LIBRARY_PATH
15915  shlibpath_overrides_runpath=no
15916  hardcode_into_libs=yes
15917  dynamic_linker='NetBSD ld.elf_so'
15918  ;;
15919
15920netbsd*)
15921  version_type=sunos
15922  need_lib_prefix=no
15923  need_version=no
15924  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15925    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15926    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15927    dynamic_linker='NetBSD (a.out) ld.so'
15928  else
15929    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15930    soname_spec='${libname}${release}${shared_ext}$major'
15931    dynamic_linker='NetBSD ld.elf_so'
15932  fi
15933  shlibpath_var=LD_LIBRARY_PATH
15934  shlibpath_overrides_runpath=yes
15935  hardcode_into_libs=yes
15936  ;;
15937
15938newsos6)
15939  version_type=linux
15940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15941  shlibpath_var=LD_LIBRARY_PATH
15942  shlibpath_overrides_runpath=yes
15943  ;;
15944
15945nto-qnx*)
15946  version_type=linux
15947  need_lib_prefix=no
15948  need_version=no
15949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15950  soname_spec='${libname}${release}${shared_ext}$major'
15951  shlibpath_var=LD_LIBRARY_PATH
15952  shlibpath_overrides_runpath=yes
15953  ;;
15954
15955openbsd*)
15956  version_type=sunos
15957  sys_lib_dlsearch_path_spec="/usr/lib"
15958  need_lib_prefix=no
15959  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15960  case $host_os in
15961    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15962    *)                         need_version=no  ;;
15963  esac
15964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15965  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15966  shlibpath_var=LD_LIBRARY_PATH
15967  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15968    case $host_os in
15969      openbsd2.[89] | openbsd2.[89].*)
15970	shlibpath_overrides_runpath=no
15971	;;
15972      *)
15973	shlibpath_overrides_runpath=yes
15974	;;
15975      esac
15976  else
15977    shlibpath_overrides_runpath=yes
15978  fi
15979  ;;
15980
15981os2*)
15982  libname_spec='$name'
15983  shrext_cmds=".dll"
15984  need_lib_prefix=no
15985  library_names_spec='$libname${shared_ext} $libname.a'
15986  dynamic_linker='OS/2 ld.exe'
15987  shlibpath_var=LIBPATH
15988  ;;
15989
15990osf3* | osf4* | osf5*)
15991  version_type=osf
15992  need_lib_prefix=no
15993  need_version=no
15994  soname_spec='${libname}${release}${shared_ext}$major'
15995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996  shlibpath_var=LD_LIBRARY_PATH
15997  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15998  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15999  ;;
16000
16001solaris*)
16002  version_type=linux
16003  need_lib_prefix=no
16004  need_version=no
16005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16006  soname_spec='${libname}${release}${shared_ext}$major'
16007  shlibpath_var=LD_LIBRARY_PATH
16008  shlibpath_overrides_runpath=yes
16009  hardcode_into_libs=yes
16010  # ldd complains unless libraries are executable
16011  postinstall_cmds='chmod +x $lib'
16012  ;;
16013
16014sunos4*)
16015  version_type=sunos
16016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16017  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16018  shlibpath_var=LD_LIBRARY_PATH
16019  shlibpath_overrides_runpath=yes
16020  if test "$with_gnu_ld" = yes; then
16021    need_lib_prefix=no
16022  fi
16023  need_version=yes
16024  ;;
16025
16026sysv4 | sysv4.3*)
16027  version_type=linux
16028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029  soname_spec='${libname}${release}${shared_ext}$major'
16030  shlibpath_var=LD_LIBRARY_PATH
16031  case $host_vendor in
16032    sni)
16033      shlibpath_overrides_runpath=no
16034      need_lib_prefix=no
16035      export_dynamic_flag_spec='${wl}-Blargedynsym'
16036      runpath_var=LD_RUN_PATH
16037      ;;
16038    siemens)
16039      need_lib_prefix=no
16040      ;;
16041    motorola)
16042      need_lib_prefix=no
16043      need_version=no
16044      shlibpath_overrides_runpath=no
16045      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16046      ;;
16047  esac
16048  ;;
16049
16050sysv4*MP*)
16051  if test -d /usr/nec ;then
16052    version_type=linux
16053    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16054    soname_spec='$libname${shared_ext}.$major'
16055    shlibpath_var=LD_LIBRARY_PATH
16056  fi
16057  ;;
16058
16059sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16060  version_type=freebsd-elf
16061  need_lib_prefix=no
16062  need_version=no
16063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16064  soname_spec='${libname}${release}${shared_ext}$major'
16065  shlibpath_var=LD_LIBRARY_PATH
16066  hardcode_into_libs=yes
16067  if test "$with_gnu_ld" = yes; then
16068    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16069    shlibpath_overrides_runpath=no
16070  else
16071    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16072    shlibpath_overrides_runpath=yes
16073    case $host_os in
16074      sco3.2v5*)
16075        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16076	;;
16077    esac
16078  fi
16079  sys_lib_dlsearch_path_spec='/usr/lib'
16080  ;;
16081
16082uts4*)
16083  version_type=linux
16084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16085  soname_spec='${libname}${release}${shared_ext}$major'
16086  shlibpath_var=LD_LIBRARY_PATH
16087  ;;
16088
16089*)
16090  dynamic_linker=no
16091  ;;
16092esac
16093{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16094echo "${ECHO_T}$dynamic_linker" >&6; }
16095test "$dynamic_linker" = no && can_build_shared=no
16096
16097variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16098if test "$GCC" = yes; then
16099  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16100fi
16101
16102{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16103echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16104hardcode_action_F77=
16105if test -n "$hardcode_libdir_flag_spec_F77" || \
16106   test -n "$runpath_var_F77" || \
16107   test "X$hardcode_automatic_F77" = "Xyes" ; then
16108
16109  # We can hardcode non-existant directories.
16110  if test "$hardcode_direct_F77" != no &&
16111     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16112     # have to relink, otherwise we might link with an installed library
16113     # when we should be linking with a yet-to-be-installed one
16114     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16115     test "$hardcode_minus_L_F77" != no; then
16116    # Linking always hardcodes the temporary library directory.
16117    hardcode_action_F77=relink
16118  else
16119    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16120    hardcode_action_F77=immediate
16121  fi
16122else
16123  # We cannot hardcode anything, or else we can only hardcode existing
16124  # directories.
16125  hardcode_action_F77=unsupported
16126fi
16127{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16128echo "${ECHO_T}$hardcode_action_F77" >&6; }
16129
16130if test "$hardcode_action_F77" = relink; then
16131  # Fast installation is not supported
16132  enable_fast_install=no
16133elif test "$shlibpath_overrides_runpath" = yes ||
16134     test "$enable_shared" = no; then
16135  # Fast installation is not necessary
16136  enable_fast_install=needless
16137fi
16138
16139
16140# The else clause should only fire when bootstrapping the
16141# libtool distribution, otherwise you forgot to ship ltmain.sh
16142# with your package, and you will get complaints that there are
16143# no rules to generate ltmain.sh.
16144if test -f "$ltmain"; then
16145  # See if we are running on zsh, and set the options which allow our commands through
16146  # without removal of \ escapes.
16147  if test -n "${ZSH_VERSION+set}" ; then
16148    setopt NO_GLOB_SUBST
16149  fi
16150  # Now quote all the things that may contain metacharacters while being
16151  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16152  # variables and quote the copies for generation of the libtool script.
16153  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16154    SED SHELL STRIP \
16155    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16156    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16157    deplibs_check_method reload_flag reload_cmds need_locks \
16158    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16159    lt_cv_sys_global_symbol_to_c_name_address \
16160    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16161    old_postinstall_cmds old_postuninstall_cmds \
16162    compiler_F77 \
16163    CC_F77 \
16164    LD_F77 \
16165    lt_prog_compiler_wl_F77 \
16166    lt_prog_compiler_pic_F77 \
16167    lt_prog_compiler_static_F77 \
16168    lt_prog_compiler_no_builtin_flag_F77 \
16169    export_dynamic_flag_spec_F77 \
16170    thread_safe_flag_spec_F77 \
16171    whole_archive_flag_spec_F77 \
16172    enable_shared_with_static_runtimes_F77 \
16173    old_archive_cmds_F77 \
16174    old_archive_from_new_cmds_F77 \
16175    predep_objects_F77 \
16176    postdep_objects_F77 \
16177    predeps_F77 \
16178    postdeps_F77 \
16179    compiler_lib_search_path_F77 \
16180    archive_cmds_F77 \
16181    archive_expsym_cmds_F77 \
16182    postinstall_cmds_F77 \
16183    postuninstall_cmds_F77 \
16184    old_archive_from_expsyms_cmds_F77 \
16185    allow_undefined_flag_F77 \
16186    no_undefined_flag_F77 \
16187    export_symbols_cmds_F77 \
16188    hardcode_libdir_flag_spec_F77 \
16189    hardcode_libdir_flag_spec_ld_F77 \
16190    hardcode_libdir_separator_F77 \
16191    hardcode_automatic_F77 \
16192    module_cmds_F77 \
16193    module_expsym_cmds_F77 \
16194    lt_cv_prog_compiler_c_o_F77 \
16195    exclude_expsyms_F77 \
16196    include_expsyms_F77; do
16197
16198    case $var in
16199    old_archive_cmds_F77 | \
16200    old_archive_from_new_cmds_F77 | \
16201    archive_cmds_F77 | \
16202    archive_expsym_cmds_F77 | \
16203    module_cmds_F77 | \
16204    module_expsym_cmds_F77 | \
16205    old_archive_from_expsyms_cmds_F77 | \
16206    export_symbols_cmds_F77 | \
16207    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16208    postinstall_cmds | postuninstall_cmds | \
16209    old_postinstall_cmds | old_postuninstall_cmds | \
16210    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16211      # Double-quote double-evaled strings.
16212      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16213      ;;
16214    *)
16215      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16216      ;;
16217    esac
16218  done
16219
16220  case $lt_echo in
16221  *'\$0 --fallback-echo"')
16222    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16223    ;;
16224  esac
16225
16226cfgfile="$ofile"
16227
16228  cat <<__EOF__ >> "$cfgfile"
16229# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16230
16231# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16232
16233# Shell to use when invoking shell scripts.
16234SHELL=$lt_SHELL
16235
16236# Whether or not to build shared libraries.
16237build_libtool_libs=$enable_shared
16238
16239# Whether or not to build static libraries.
16240build_old_libs=$enable_static
16241
16242# Whether or not to add -lc for building shared libraries.
16243build_libtool_need_lc=$archive_cmds_need_lc_F77
16244
16245# Whether or not to disallow shared libs when runtime libs are static
16246allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16247
16248# Whether or not to optimize for fast installation.
16249fast_install=$enable_fast_install
16250
16251# The host system.
16252host_alias=$host_alias
16253host=$host
16254host_os=$host_os
16255
16256# The build system.
16257build_alias=$build_alias
16258build=$build
16259build_os=$build_os
16260
16261# An echo program that does not interpret backslashes.
16262echo=$lt_echo
16263
16264# The archiver.
16265AR=$lt_AR
16266AR_FLAGS=$lt_AR_FLAGS
16267
16268# A C compiler.
16269LTCC=$lt_LTCC
16270
16271# LTCC compiler flags.
16272LTCFLAGS=$lt_LTCFLAGS
16273
16274# A language-specific compiler.
16275CC=$lt_compiler_F77
16276
16277# Is the compiler the GNU C compiler?
16278with_gcc=$GCC_F77
16279
16280# An ERE matcher.
16281EGREP=$lt_EGREP
16282
16283# The linker used to build libraries.
16284LD=$lt_LD_F77
16285
16286# Whether we need hard or soft links.
16287LN_S=$lt_LN_S
16288
16289# A BSD-compatible nm program.
16290NM=$lt_NM
16291
16292# A symbol stripping program
16293STRIP=$lt_STRIP
16294
16295# Used to examine libraries when file_magic_cmd begins "file"
16296MAGIC_CMD=$MAGIC_CMD
16297
16298# Used on cygwin: DLL creation program.
16299DLLTOOL="$DLLTOOL"
16300
16301# Used on cygwin: object dumper.
16302OBJDUMP="$OBJDUMP"
16303
16304# Used on cygwin: assembler.
16305AS="$AS"
16306
16307# The name of the directory that contains temporary libtool files.
16308objdir=$objdir
16309
16310# How to create reloadable object files.
16311reload_flag=$lt_reload_flag
16312reload_cmds=$lt_reload_cmds
16313
16314# How to pass a linker flag through the compiler.
16315wl=$lt_lt_prog_compiler_wl_F77
16316
16317# Object file suffix (normally "o").
16318objext="$ac_objext"
16319
16320# Old archive suffix (normally "a").
16321libext="$libext"
16322
16323# Shared library suffix (normally ".so").
16324shrext_cmds='$shrext_cmds'
16325
16326# Executable file suffix (normally "").
16327exeext="$exeext"
16328
16329# Additional compiler flags for building library objects.
16330pic_flag=$lt_lt_prog_compiler_pic_F77
16331pic_mode=$pic_mode
16332
16333# What is the maximum length of a command?
16334max_cmd_len=$lt_cv_sys_max_cmd_len
16335
16336# Does compiler simultaneously support -c and -o options?
16337compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16338
16339# Must we lock files when doing compilation?
16340need_locks=$lt_need_locks
16341
16342# Do we need the lib prefix for modules?
16343need_lib_prefix=$need_lib_prefix
16344
16345# Do we need a version for libraries?
16346need_version=$need_version
16347
16348# Whether dlopen is supported.
16349dlopen_support=$enable_dlopen
16350
16351# Whether dlopen of programs is supported.
16352dlopen_self=$enable_dlopen_self
16353
16354# Whether dlopen of statically linked programs is supported.
16355dlopen_self_static=$enable_dlopen_self_static
16356
16357# Compiler flag to prevent dynamic linking.
16358link_static_flag=$lt_lt_prog_compiler_static_F77
16359
16360# Compiler flag to turn off builtin functions.
16361no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16362
16363# Compiler flag to allow reflexive dlopens.
16364export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16365
16366# Compiler flag to generate shared objects directly from archives.
16367whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16368
16369# Compiler flag to generate thread-safe objects.
16370thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16371
16372# Library versioning type.
16373version_type=$version_type
16374
16375# Format of library name prefix.
16376libname_spec=$lt_libname_spec
16377
16378# List of archive names.  First name is the real one, the rest are links.
16379# The last name is the one that the linker finds with -lNAME.
16380library_names_spec=$lt_library_names_spec
16381
16382# The coded name of the library, if different from the real name.
16383soname_spec=$lt_soname_spec
16384
16385# Commands used to build and install an old-style archive.
16386RANLIB=$lt_RANLIB
16387old_archive_cmds=$lt_old_archive_cmds_F77
16388old_postinstall_cmds=$lt_old_postinstall_cmds
16389old_postuninstall_cmds=$lt_old_postuninstall_cmds
16390
16391# Create an old-style archive from a shared archive.
16392old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16393
16394# Create a temporary old-style archive to link instead of a shared archive.
16395old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16396
16397# Commands used to build and install a shared archive.
16398archive_cmds=$lt_archive_cmds_F77
16399archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16400postinstall_cmds=$lt_postinstall_cmds
16401postuninstall_cmds=$lt_postuninstall_cmds
16402
16403# Commands used to build a loadable module (assumed same as above if empty)
16404module_cmds=$lt_module_cmds_F77
16405module_expsym_cmds=$lt_module_expsym_cmds_F77
16406
16407# Commands to strip libraries.
16408old_striplib=$lt_old_striplib
16409striplib=$lt_striplib
16410
16411# Dependencies to place before the objects being linked to create a
16412# shared library.
16413predep_objects=$lt_predep_objects_F77
16414
16415# Dependencies to place after the objects being linked to create a
16416# shared library.
16417postdep_objects=$lt_postdep_objects_F77
16418
16419# Dependencies to place before the objects being linked to create a
16420# shared library.
16421predeps=$lt_predeps_F77
16422
16423# Dependencies to place after the objects being linked to create a
16424# shared library.
16425postdeps=$lt_postdeps_F77
16426
16427# The library search path used internally by the compiler when linking
16428# a shared library.
16429compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16430
16431# Method to check whether dependent libraries are shared objects.
16432deplibs_check_method=$lt_deplibs_check_method
16433
16434# Command to use when deplibs_check_method == file_magic.
16435file_magic_cmd=$lt_file_magic_cmd
16436
16437# Flag that allows shared libraries with undefined symbols to be built.
16438allow_undefined_flag=$lt_allow_undefined_flag_F77
16439
16440# Flag that forces no undefined symbols.
16441no_undefined_flag=$lt_no_undefined_flag_F77
16442
16443# Commands used to finish a libtool library installation in a directory.
16444finish_cmds=$lt_finish_cmds
16445
16446# Same as above, but a single script fragment to be evaled but not shown.
16447finish_eval=$lt_finish_eval
16448
16449# Take the output of nm and produce a listing of raw symbols and C names.
16450global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16451
16452# Transform the output of nm in a proper C declaration
16453global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16454
16455# Transform the output of nm in a C name address pair
16456global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16457
16458# This is the shared library runtime path variable.
16459runpath_var=$runpath_var
16460
16461# This is the shared library path variable.
16462shlibpath_var=$shlibpath_var
16463
16464# Is shlibpath searched before the hard-coded library search path?
16465shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16466
16467# How to hardcode a shared library path into an executable.
16468hardcode_action=$hardcode_action_F77
16469
16470# Whether we should hardcode library paths into libraries.
16471hardcode_into_libs=$hardcode_into_libs
16472
16473# Flag to hardcode \$libdir into a binary during linking.
16474# This must work even if \$libdir does not exist.
16475hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16476
16477# If ld is used when linking, flag to hardcode \$libdir into
16478# a binary during linking. This must work even if \$libdir does
16479# not exist.
16480hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16481
16482# Whether we need a single -rpath flag with a separated argument.
16483hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16484
16485# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16486# resulting binary.
16487hardcode_direct=$hardcode_direct_F77
16488
16489# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16490# resulting binary.
16491hardcode_minus_L=$hardcode_minus_L_F77
16492
16493# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16494# the resulting binary.
16495hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16496
16497# Set to yes if building a shared library automatically hardcodes DIR into the library
16498# and all subsequent libraries and executables linked against it.
16499hardcode_automatic=$hardcode_automatic_F77
16500
16501# Variables whose values should be saved in libtool wrapper scripts and
16502# restored at relink time.
16503variables_saved_for_relink="$variables_saved_for_relink"
16504
16505# Whether libtool must link a program against all its dependency libraries.
16506link_all_deplibs=$link_all_deplibs_F77
16507
16508# Compile-time system search path for libraries
16509sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16510
16511# Run-time system search path for libraries
16512sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16513
16514# Fix the shell variable \$srcfile for the compiler.
16515fix_srcfile_path="$fix_srcfile_path_F77"
16516
16517# Set to yes if exported symbols are required.
16518always_export_symbols=$always_export_symbols_F77
16519
16520# The commands to list exported symbols.
16521export_symbols_cmds=$lt_export_symbols_cmds_F77
16522
16523# The commands to extract the exported symbol list from a shared archive.
16524extract_expsyms_cmds=$lt_extract_expsyms_cmds
16525
16526# Symbols that should not be listed in the preloaded symbols.
16527exclude_expsyms=$lt_exclude_expsyms_F77
16528
16529# Symbols that must always be exported.
16530include_expsyms=$lt_include_expsyms_F77
16531
16532# ### END LIBTOOL TAG CONFIG: $tagname
16533
16534__EOF__
16535
16536
16537else
16538  # If there is no Makefile yet, we rely on a make rule to execute
16539  # `config.status --recheck' to rerun these tests and create the
16540  # libtool script then.
16541  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16542  if test -f "$ltmain_in"; then
16543    test -f Makefile && make "$ltmain"
16544  fi
16545fi
16546
16547
16548ac_ext=c
16549ac_cpp='$CPP $CPPFLAGS'
16550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16552ac_compiler_gnu=$ac_cv_c_compiler_gnu
16553
16554CC="$lt_save_CC"
16555
16556	else
16557	  tagname=""
16558	fi
16559	;;
16560
16561      GCJ)
16562	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16563
16564
16565# Source file extension for Java test sources.
16566ac_ext=java
16567
16568# Object file extension for compiled Java test sources.
16569objext=o
16570objext_GCJ=$objext
16571
16572# Code to be used in simple compile tests
16573lt_simple_compile_test_code="class foo {}\n"
16574
16575# Code to be used in simple link tests
16576lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16577
16578# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16579
16580# If no C compiler was specified, use CC.
16581LTCC=${LTCC-"$CC"}
16582
16583# If no C compiler flags were specified, use CFLAGS.
16584LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16585
16586# Allow CC to be a program name with arguments.
16587compiler=$CC
16588
16589
16590# save warnings/boilerplate of simple test code
16591ac_outfile=conftest.$ac_objext
16592printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16593eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16594_lt_compiler_boilerplate=`cat conftest.err`
16595$rm conftest*
16596
16597ac_outfile=conftest.$ac_objext
16598printf "$lt_simple_link_test_code" >conftest.$ac_ext
16599eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16600_lt_linker_boilerplate=`cat conftest.err`
16601$rm conftest*
16602
16603
16604# Allow CC to be a program name with arguments.
16605lt_save_CC="$CC"
16606CC=${GCJ-"gcj"}
16607compiler=$CC
16608compiler_GCJ=$CC
16609for cc_temp in $compiler""; do
16610  case $cc_temp in
16611    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16612    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16613    \-*) ;;
16614    *) break;;
16615  esac
16616done
16617cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16618
16619
16620# GCJ did not exist at the time GCC didn't implicitly link libc in.
16621archive_cmds_need_lc_GCJ=no
16622
16623old_archive_cmds_GCJ=$old_archive_cmds
16624
16625
16626lt_prog_compiler_no_builtin_flag_GCJ=
16627
16628if test "$GCC" = yes; then
16629  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16630
16631
16632{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16633echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16634if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16635  echo $ECHO_N "(cached) $ECHO_C" >&6
16636else
16637  lt_cv_prog_compiler_rtti_exceptions=no
16638  ac_outfile=conftest.$ac_objext
16639   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16640   lt_compiler_flag="-fno-rtti -fno-exceptions"
16641   # Insert the option either (1) after the last *FLAGS variable, or
16642   # (2) before a word containing "conftest.", or (3) at the end.
16643   # Note that $ac_compile itself does not contain backslashes and begins
16644   # with a dollar sign (not a hyphen), so the echo should work correctly.
16645   # The option is referenced via a variable to avoid confusing sed.
16646   lt_compile=`echo "$ac_compile" | $SED \
16647   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16648   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16649   -e 's:$: $lt_compiler_flag:'`
16650   (eval echo "\"\$as_me:16650: $lt_compile\"" >&5)
16651   (eval "$lt_compile" 2>conftest.err)
16652   ac_status=$?
16653   cat conftest.err >&5
16654   echo "$as_me:16654: \$? = $ac_status" >&5
16655   if (exit $ac_status) && test -s "$ac_outfile"; then
16656     # The compiler can only warn and ignore the option if not recognized
16657     # So say no if there are warnings other than the usual output.
16658     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16659     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16660     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16661       lt_cv_prog_compiler_rtti_exceptions=yes
16662     fi
16663   fi
16664   $rm conftest*
16665
16666fi
16667{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16668echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16669
16670if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16671    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16672else
16673    :
16674fi
16675
16676fi
16677
16678lt_prog_compiler_wl_GCJ=
16679lt_prog_compiler_pic_GCJ=
16680lt_prog_compiler_static_GCJ=
16681
16682{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16683echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16684
16685  if test "$GCC" = yes; then
16686    lt_prog_compiler_wl_GCJ='-Wl,'
16687    lt_prog_compiler_static_GCJ='-static'
16688
16689    case $host_os in
16690      aix*)
16691      # All AIX code is PIC.
16692      if test "$host_cpu" = ia64; then
16693	# AIX 5 now supports IA64 processor
16694	lt_prog_compiler_static_GCJ='-Bstatic'
16695      fi
16696      ;;
16697
16698    amigaos*)
16699      # FIXME: we need at least 68020 code to build shared libraries, but
16700      # adding the `-m68020' flag to GCC prevents building anything better,
16701      # like `-m68040'.
16702      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16703      ;;
16704
16705    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16706      # PIC is the default for these OSes.
16707      ;;
16708
16709    mingw* | pw32* | os2*)
16710      # This hack is so that the source file can tell whether it is being
16711      # built for inclusion in a dll (and should export symbols for example).
16712      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16713      ;;
16714
16715    darwin* | rhapsody*)
16716      # PIC is the default on this platform
16717      # Common symbols not allowed in MH_DYLIB files
16718      lt_prog_compiler_pic_GCJ='-fno-common'
16719      ;;
16720
16721    interix3*)
16722      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16723      # Instead, we relocate shared libraries at runtime.
16724      ;;
16725
16726    msdosdjgpp*)
16727      # Just because we use GCC doesn't mean we suddenly get shared libraries
16728      # on systems that don't support them.
16729      lt_prog_compiler_can_build_shared_GCJ=no
16730      enable_shared=no
16731      ;;
16732
16733    sysv4*MP*)
16734      if test -d /usr/nec; then
16735	lt_prog_compiler_pic_GCJ=-Kconform_pic
16736      fi
16737      ;;
16738
16739    hpux*)
16740      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16741      # not for PA HP-UX.
16742      case $host_cpu in
16743      hppa*64*|ia64*)
16744	# +Z the default
16745	;;
16746      *)
16747	lt_prog_compiler_pic_GCJ='-fPIC'
16748	;;
16749      esac
16750      ;;
16751
16752    *)
16753      lt_prog_compiler_pic_GCJ='-fPIC'
16754      ;;
16755    esac
16756  else
16757    # PORTME Check for flag to pass linker flags through the system compiler.
16758    case $host_os in
16759    aix*)
16760      lt_prog_compiler_wl_GCJ='-Wl,'
16761      if test "$host_cpu" = ia64; then
16762	# AIX 5 now supports IA64 processor
16763	lt_prog_compiler_static_GCJ='-Bstatic'
16764      else
16765	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16766      fi
16767      ;;
16768      darwin*)
16769        # PIC is the default on this platform
16770        # Common symbols not allowed in MH_DYLIB files
16771       case $cc_basename in
16772         xlc*)
16773         lt_prog_compiler_pic_GCJ='-qnocommon'
16774         lt_prog_compiler_wl_GCJ='-Wl,'
16775         ;;
16776       esac
16777       ;;
16778
16779    mingw* | pw32* | os2*)
16780      # This hack is so that the source file can tell whether it is being
16781      # built for inclusion in a dll (and should export symbols for example).
16782      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16783      ;;
16784
16785    hpux9* | hpux10* | hpux11*)
16786      lt_prog_compiler_wl_GCJ='-Wl,'
16787      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16788      # not for PA HP-UX.
16789      case $host_cpu in
16790      hppa*64*|ia64*)
16791	# +Z the default
16792	;;
16793      *)
16794	lt_prog_compiler_pic_GCJ='+Z'
16795	;;
16796      esac
16797      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16798      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16799      ;;
16800
16801    irix5* | irix6* | nonstopux*)
16802      lt_prog_compiler_wl_GCJ='-Wl,'
16803      # PIC (with -KPIC) is the default.
16804      lt_prog_compiler_static_GCJ='-non_shared'
16805      ;;
16806
16807    newsos6)
16808      lt_prog_compiler_pic_GCJ='-KPIC'
16809      lt_prog_compiler_static_GCJ='-Bstatic'
16810      ;;
16811
16812    linux* | k*bsd*-gnu)
16813      case $cc_basename in
16814      icc* | ecc*)
16815	lt_prog_compiler_wl_GCJ='-Wl,'
16816	lt_prog_compiler_pic_GCJ='-KPIC'
16817	lt_prog_compiler_static_GCJ='-static'
16818        ;;
16819      pgcc* | pgf77* | pgf90* | pgf95*)
16820        # Portland Group compilers (*not* the Pentium gcc compiler,
16821	# which looks to be a dead project)
16822	lt_prog_compiler_wl_GCJ='-Wl,'
16823	lt_prog_compiler_pic_GCJ='-fpic'
16824	lt_prog_compiler_static_GCJ='-Bstatic'
16825        ;;
16826      ccc*)
16827        lt_prog_compiler_wl_GCJ='-Wl,'
16828        # All Alpha code is PIC.
16829        lt_prog_compiler_static_GCJ='-non_shared'
16830        ;;
16831      esac
16832      ;;
16833
16834    osf3* | osf4* | osf5*)
16835      lt_prog_compiler_wl_GCJ='-Wl,'
16836      # All OSF/1 code is PIC.
16837      lt_prog_compiler_static_GCJ='-non_shared'
16838      ;;
16839
16840    solaris*)
16841      lt_prog_compiler_pic_GCJ='-KPIC'
16842      lt_prog_compiler_static_GCJ='-Bstatic'
16843      case $cc_basename in
16844      f77* | f90* | f95*)
16845	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16846      *)
16847	lt_prog_compiler_wl_GCJ='-Wl,';;
16848      esac
16849      ;;
16850
16851    sunos4*)
16852      lt_prog_compiler_wl_GCJ='-Qoption ld '
16853      lt_prog_compiler_pic_GCJ='-PIC'
16854      lt_prog_compiler_static_GCJ='-Bstatic'
16855      ;;
16856
16857    sysv4 | sysv4.2uw2* | sysv4.3*)
16858      lt_prog_compiler_wl_GCJ='-Wl,'
16859      lt_prog_compiler_pic_GCJ='-KPIC'
16860      lt_prog_compiler_static_GCJ='-Bstatic'
16861      ;;
16862
16863    sysv4*MP*)
16864      if test -d /usr/nec ;then
16865	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16866	lt_prog_compiler_static_GCJ='-Bstatic'
16867      fi
16868      ;;
16869
16870    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16871      lt_prog_compiler_wl_GCJ='-Wl,'
16872      lt_prog_compiler_pic_GCJ='-KPIC'
16873      lt_prog_compiler_static_GCJ='-Bstatic'
16874      ;;
16875
16876    unicos*)
16877      lt_prog_compiler_wl_GCJ='-Wl,'
16878      lt_prog_compiler_can_build_shared_GCJ=no
16879      ;;
16880
16881    uts4*)
16882      lt_prog_compiler_pic_GCJ='-pic'
16883      lt_prog_compiler_static_GCJ='-Bstatic'
16884      ;;
16885
16886    *)
16887      lt_prog_compiler_can_build_shared_GCJ=no
16888      ;;
16889    esac
16890  fi
16891
16892{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16893echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16894
16895#
16896# Check to make sure the PIC flag actually works.
16897#
16898if test -n "$lt_prog_compiler_pic_GCJ"; then
16899
16900{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16901echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16902if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16903  echo $ECHO_N "(cached) $ECHO_C" >&6
16904else
16905  lt_prog_compiler_pic_works_GCJ=no
16906  ac_outfile=conftest.$ac_objext
16907   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16908   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16909   # Insert the option either (1) after the last *FLAGS variable, or
16910   # (2) before a word containing "conftest.", or (3) at the end.
16911   # Note that $ac_compile itself does not contain backslashes and begins
16912   # with a dollar sign (not a hyphen), so the echo should work correctly.
16913   # The option is referenced via a variable to avoid confusing sed.
16914   lt_compile=`echo "$ac_compile" | $SED \
16915   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16916   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16917   -e 's:$: $lt_compiler_flag:'`
16918   (eval echo "\"\$as_me:16918: $lt_compile\"" >&5)
16919   (eval "$lt_compile" 2>conftest.err)
16920   ac_status=$?
16921   cat conftest.err >&5
16922   echo "$as_me:16922: \$? = $ac_status" >&5
16923   if (exit $ac_status) && test -s "$ac_outfile"; then
16924     # The compiler can only warn and ignore the option if not recognized
16925     # So say no if there are warnings other than the usual output.
16926     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16927     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16928     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16929       lt_prog_compiler_pic_works_GCJ=yes
16930     fi
16931   fi
16932   $rm conftest*
16933
16934fi
16935{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16936echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16937
16938if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16939    case $lt_prog_compiler_pic_GCJ in
16940     "" | " "*) ;;
16941     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16942     esac
16943else
16944    lt_prog_compiler_pic_GCJ=
16945     lt_prog_compiler_can_build_shared_GCJ=no
16946fi
16947
16948fi
16949case $host_os in
16950  # For platforms which do not support PIC, -DPIC is meaningless:
16951  *djgpp*)
16952    lt_prog_compiler_pic_GCJ=
16953    ;;
16954  *)
16955    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16956    ;;
16957esac
16958
16959#
16960# Check to make sure the static flag actually works.
16961#
16962wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16963{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16964echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16965if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16966  echo $ECHO_N "(cached) $ECHO_C" >&6
16967else
16968  lt_prog_compiler_static_works_GCJ=no
16969   save_LDFLAGS="$LDFLAGS"
16970   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16971   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16972   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16973     # The linker can only warn and ignore the option if not recognized
16974     # So say no if there are warnings
16975     if test -s conftest.err; then
16976       # Append any errors to the config.log.
16977       cat conftest.err 1>&5
16978       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16979       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16980       if diff conftest.exp conftest.er2 >/dev/null; then
16981         lt_prog_compiler_static_works_GCJ=yes
16982       fi
16983     else
16984       lt_prog_compiler_static_works_GCJ=yes
16985     fi
16986   fi
16987   $rm conftest*
16988   LDFLAGS="$save_LDFLAGS"
16989
16990fi
16991{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16992echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16993
16994if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16995    :
16996else
16997    lt_prog_compiler_static_GCJ=
16998fi
16999
17000
17001{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17002echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17003if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17004  echo $ECHO_N "(cached) $ECHO_C" >&6
17005else
17006  lt_cv_prog_compiler_c_o_GCJ=no
17007   $rm -r conftest 2>/dev/null
17008   mkdir conftest
17009   cd conftest
17010   mkdir out
17011   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17012
17013   lt_compiler_flag="-o out/conftest2.$ac_objext"
17014   # Insert the option either (1) after the last *FLAGS variable, or
17015   # (2) before a word containing "conftest.", or (3) at the end.
17016   # Note that $ac_compile itself does not contain backslashes and begins
17017   # with a dollar sign (not a hyphen), so the echo should work correctly.
17018   lt_compile=`echo "$ac_compile" | $SED \
17019   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17020   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17021   -e 's:$: $lt_compiler_flag:'`
17022   (eval echo "\"\$as_me:17022: $lt_compile\"" >&5)
17023   (eval "$lt_compile" 2>out/conftest.err)
17024   ac_status=$?
17025   cat out/conftest.err >&5
17026   echo "$as_me:17026: \$? = $ac_status" >&5
17027   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17028   then
17029     # The compiler can only warn and ignore the option if not recognized
17030     # So say no if there are warnings
17031     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17032     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17033     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17034       lt_cv_prog_compiler_c_o_GCJ=yes
17035     fi
17036   fi
17037   chmod u+w . 2>&5
17038   $rm conftest*
17039   # SGI C++ compiler will create directory out/ii_files/ for
17040   # template instantiation
17041   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17042   $rm out/* && rmdir out
17043   cd ..
17044   rmdir conftest
17045   $rm conftest*
17046
17047fi
17048{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17049echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17050
17051
17052hard_links="nottested"
17053if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17054  # do not overwrite the value of need_locks provided by the user
17055  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17056echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17057  hard_links=yes
17058  $rm conftest*
17059  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17060  touch conftest.a
17061  ln conftest.a conftest.b 2>&5 || hard_links=no
17062  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17063  { echo "$as_me:$LINENO: result: $hard_links" >&5
17064echo "${ECHO_T}$hard_links" >&6; }
17065  if test "$hard_links" = no; then
17066    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17067echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17068    need_locks=warn
17069  fi
17070else
17071  need_locks=no
17072fi
17073
17074{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17075echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17076
17077  runpath_var=
17078  allow_undefined_flag_GCJ=
17079  enable_shared_with_static_runtimes_GCJ=no
17080  archive_cmds_GCJ=
17081  archive_expsym_cmds_GCJ=
17082  old_archive_From_new_cmds_GCJ=
17083  old_archive_from_expsyms_cmds_GCJ=
17084  export_dynamic_flag_spec_GCJ=
17085  whole_archive_flag_spec_GCJ=
17086  thread_safe_flag_spec_GCJ=
17087  hardcode_libdir_flag_spec_GCJ=
17088  hardcode_libdir_flag_spec_ld_GCJ=
17089  hardcode_libdir_separator_GCJ=
17090  hardcode_direct_GCJ=no
17091  hardcode_minus_L_GCJ=no
17092  hardcode_shlibpath_var_GCJ=unsupported
17093  link_all_deplibs_GCJ=unknown
17094  hardcode_automatic_GCJ=no
17095  module_cmds_GCJ=
17096  module_expsym_cmds_GCJ=
17097  always_export_symbols_GCJ=no
17098  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17099  # include_expsyms should be a list of space-separated symbols to be *always*
17100  # included in the symbol list
17101  include_expsyms_GCJ=
17102  # exclude_expsyms can be an extended regexp of symbols to exclude
17103  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17104  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17105  # as well as any symbol that contains `d'.
17106  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17107  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17108  # platforms (ab)use it in PIC code, but their linkers get confused if
17109  # the symbol is explicitly referenced.  Since portable code cannot
17110  # rely on this symbol name, it's probably fine to never include it in
17111  # preloaded symbol tables.
17112  extract_expsyms_cmds=
17113  # Just being paranoid about ensuring that cc_basename is set.
17114  for cc_temp in $compiler""; do
17115  case $cc_temp in
17116    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17117    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17118    \-*) ;;
17119    *) break;;
17120  esac
17121done
17122cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17123
17124  case $host_os in
17125  cygwin* | mingw* | pw32*)
17126    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17127    # When not using gcc, we currently assume that we are using
17128    # Microsoft Visual C++.
17129    if test "$GCC" != yes; then
17130      with_gnu_ld=no
17131    fi
17132    ;;
17133  interix*)
17134    # we just hope/assume this is gcc and not c89 (= MSVC++)
17135    with_gnu_ld=yes
17136    ;;
17137  openbsd*)
17138    with_gnu_ld=no
17139    ;;
17140  esac
17141
17142  ld_shlibs_GCJ=yes
17143  if test "$with_gnu_ld" = yes; then
17144    # If archive_cmds runs LD, not CC, wlarc should be empty
17145    wlarc='${wl}'
17146
17147    # Set some defaults for GNU ld with shared library support. These
17148    # are reset later if shared libraries are not supported. Putting them
17149    # here allows them to be overridden if necessary.
17150    runpath_var=LD_RUN_PATH
17151    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17152    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17153    # ancient GNU ld didn't support --whole-archive et. al.
17154    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17155	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17156      else
17157  	whole_archive_flag_spec_GCJ=
17158    fi
17159    supports_anon_versioning=no
17160    case `$LD -v 2>/dev/null` in
17161      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17162      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17163      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17164      *\ 2.11.*) ;; # other 2.11 versions
17165      *) supports_anon_versioning=yes ;;
17166    esac
17167
17168    # See if GNU ld supports shared libraries.
17169    case $host_os in
17170    aix3* | aix4* | aix5*)
17171      # On AIX/PPC, the GNU linker is very broken
17172      if test "$host_cpu" != ia64; then
17173	ld_shlibs_GCJ=no
17174	cat <<EOF 1>&2
17175
17176*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17177*** to be unable to reliably create shared libraries on AIX.
17178*** Therefore, libtool is disabling shared libraries support.  If you
17179*** really care for shared libraries, you may want to modify your PATH
17180*** so that a non-GNU linker is found, and then restart.
17181
17182EOF
17183      fi
17184      ;;
17185
17186    amigaos*)
17187      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)'
17188      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17189      hardcode_minus_L_GCJ=yes
17190
17191      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17192      # that the semantics of dynamic libraries on AmigaOS, at least up
17193      # to version 4, is to share data among multiple programs linked
17194      # with the same dynamic library.  Since this doesn't match the
17195      # behavior of shared libraries on other platforms, we can't use
17196      # them.
17197      ld_shlibs_GCJ=no
17198      ;;
17199
17200    beos*)
17201      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17202	allow_undefined_flag_GCJ=unsupported
17203	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17204	# support --undefined.  This deserves some investigation.  FIXME
17205	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17206      else
17207	ld_shlibs_GCJ=no
17208      fi
17209      ;;
17210
17211    cygwin* | mingw* | pw32*)
17212      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17213      # as there is no search path for DLLs.
17214      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17215      allow_undefined_flag_GCJ=unsupported
17216      always_export_symbols_GCJ=no
17217      enable_shared_with_static_runtimes_GCJ=yes
17218      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17219
17220      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17221        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17222	# If the export-symbols file already is a .def file (1st line
17223	# is EXPORTS), use it as is; otherwise, prepend...
17224	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17225	  cp $export_symbols $output_objdir/$soname.def;
17226	else
17227	  echo EXPORTS > $output_objdir/$soname.def;
17228	  cat $export_symbols >> $output_objdir/$soname.def;
17229	fi~
17230	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17231      else
17232	ld_shlibs_GCJ=no
17233      fi
17234      ;;
17235
17236    interix3*)
17237      hardcode_direct_GCJ=no
17238      hardcode_shlibpath_var_GCJ=no
17239      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17240      export_dynamic_flag_spec_GCJ='${wl}-E'
17241      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17242      # Instead, shared libraries are loaded at an image base (0x10000000 by
17243      # default) and relocated if they conflict, which is a slow very memory
17244      # consuming and fragmenting process.  To avoid this, we pick a random,
17245      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17246      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17247      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'
17248      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'
17249      ;;
17250
17251    linux* | k*bsd*-gnu)
17252      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17253	tmp_addflag=
17254	case $cc_basename,$host_cpu in
17255	pgcc*)				# Portland Group C compiler
17256	  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'
17257	  tmp_addflag=' $pic_flag'
17258	  ;;
17259	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17260	  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'
17261	  tmp_addflag=' $pic_flag -Mnomain' ;;
17262	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17263	  tmp_addflag=' -i_dynamic' ;;
17264	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17265	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17266	ifc* | ifort*)			# Intel Fortran compiler
17267	  tmp_addflag=' -nofor_main' ;;
17268	esac
17269	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17270
17271	if test $supports_anon_versioning = yes; then
17272	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17273  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17274  $echo "local: *; };" >> $output_objdir/$libname.ver~
17275	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17276	fi
17277	link_all_deplibs_GCJ=no
17278      else
17279	ld_shlibs_GCJ=no
17280      fi
17281      ;;
17282
17283    netbsd* | netbsdelf*-gnu)
17284      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17285	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17286	wlarc=
17287      else
17288	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17289	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17290      fi
17291      ;;
17292
17293    solaris*)
17294      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17295	ld_shlibs_GCJ=no
17296	cat <<EOF 1>&2
17297
17298*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17299*** create shared libraries on Solaris systems.  Therefore, libtool
17300*** is disabling shared libraries support.  We urge you to upgrade GNU
17301*** binutils to release 2.9.1 or newer.  Another option is to modify
17302*** your PATH or compiler configuration so that the native linker is
17303*** used, and then restart.
17304
17305EOF
17306      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17307	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17308	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17309      else
17310	ld_shlibs_GCJ=no
17311      fi
17312      ;;
17313
17314    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17315      case `$LD -v 2>&1` in
17316        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17317	ld_shlibs_GCJ=no
17318	cat <<_LT_EOF 1>&2
17319
17320*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17321*** reliably create shared libraries on SCO systems.  Therefore, libtool
17322*** is disabling shared libraries support.  We urge you to upgrade GNU
17323*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17324*** your PATH or compiler configuration so that the native linker is
17325*** used, and then restart.
17326
17327_LT_EOF
17328	;;
17329	*)
17330	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17331	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17332	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17333	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17334	  else
17335	    ld_shlibs_GCJ=no
17336	  fi
17337	;;
17338      esac
17339      ;;
17340
17341    sunos4*)
17342      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17343      wlarc=
17344      hardcode_direct_GCJ=yes
17345      hardcode_shlibpath_var_GCJ=no
17346      ;;
17347
17348    *)
17349      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17350	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17351	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17352      else
17353	ld_shlibs_GCJ=no
17354      fi
17355      ;;
17356    esac
17357
17358    if test "$ld_shlibs_GCJ" = no; then
17359      runpath_var=
17360      hardcode_libdir_flag_spec_GCJ=
17361      export_dynamic_flag_spec_GCJ=
17362      whole_archive_flag_spec_GCJ=
17363    fi
17364  else
17365    # PORTME fill in a description of your system's linker (not GNU ld)
17366    case $host_os in
17367    aix3*)
17368      allow_undefined_flag_GCJ=unsupported
17369      always_export_symbols_GCJ=yes
17370      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'
17371      # Note: this linker hardcodes the directories in LIBPATH if there
17372      # are no directories specified by -L.
17373      hardcode_minus_L_GCJ=yes
17374      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17375	# Neither direct hardcoding nor static linking is supported with a
17376	# broken collect2.
17377	hardcode_direct_GCJ=unsupported
17378      fi
17379      ;;
17380
17381    aix4* | aix5*)
17382      if test "$host_cpu" = ia64; then
17383	# On IA64, the linker does run time linking by default, so we don't
17384	# have to do anything special.
17385	aix_use_runtimelinking=no
17386	exp_sym_flag='-Bexport'
17387	no_entry_flag=""
17388      else
17389	# If we're using GNU nm, then we don't want the "-C" option.
17390	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17391	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17392	  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'
17393	else
17394	  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'
17395	fi
17396	aix_use_runtimelinking=no
17397
17398	# Test if we are trying to use run time linking or normal
17399	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17400	# need to do runtime linking.
17401	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17402	  for ld_flag in $LDFLAGS; do
17403  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17404  	    aix_use_runtimelinking=yes
17405  	    break
17406  	  fi
17407	  done
17408	  ;;
17409	esac
17410
17411	exp_sym_flag='-bexport'
17412	no_entry_flag='-bnoentry'
17413      fi
17414
17415      # When large executables or shared objects are built, AIX ld can
17416      # have problems creating the table of contents.  If linking a library
17417      # or program results in "error TOC overflow" add -mminimal-toc to
17418      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17419      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17420
17421      archive_cmds_GCJ=''
17422      hardcode_direct_GCJ=yes
17423      hardcode_libdir_separator_GCJ=':'
17424      link_all_deplibs_GCJ=yes
17425
17426      if test "$GCC" = yes; then
17427	case $host_os in aix4.[012]|aix4.[012].*)
17428	# We only want to do this on AIX 4.2 and lower, the check
17429	# below for broken collect2 doesn't work under 4.3+
17430	  collect2name=`${CC} -print-prog-name=collect2`
17431	  if test -f "$collect2name" && \
17432  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17433	  then
17434  	  # We have reworked collect2
17435  	  hardcode_direct_GCJ=yes
17436	  else
17437  	  # We have old collect2
17438  	  hardcode_direct_GCJ=unsupported
17439  	  # It fails to find uninstalled libraries when the uninstalled
17440  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17441  	  # to unsupported forces relinking
17442  	  hardcode_minus_L_GCJ=yes
17443  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17444  	  hardcode_libdir_separator_GCJ=
17445	  fi
17446	  ;;
17447	esac
17448	shared_flag='-shared'
17449	if test "$aix_use_runtimelinking" = yes; then
17450	  shared_flag="$shared_flag "'${wl}-G'
17451	fi
17452      else
17453	# not using gcc
17454	if test "$host_cpu" = ia64; then
17455  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17456  	# chokes on -Wl,-G. The following line is correct:
17457	  shared_flag='-G'
17458	else
17459	  if test "$aix_use_runtimelinking" = yes; then
17460	    shared_flag='${wl}-G'
17461	  else
17462	    shared_flag='${wl}-bM:SRE'
17463	  fi
17464	fi
17465      fi
17466
17467      # It seems that -bexpall does not export symbols beginning with
17468      # underscore (_), so it is better to generate a list of symbols to export.
17469      always_export_symbols_GCJ=yes
17470      if test "$aix_use_runtimelinking" = yes; then
17471	# Warning - without using the other runtime loading flags (-brtl),
17472	# -berok will link without error, but may produce a broken library.
17473	allow_undefined_flag_GCJ='-berok'
17474       # Determine the default libpath from the value encoded in an empty executable.
17475       cat >conftest.$ac_ext <<_ACEOF
17476/* confdefs.h.  */
17477_ACEOF
17478cat confdefs.h >>conftest.$ac_ext
17479cat >>conftest.$ac_ext <<_ACEOF
17480/* end confdefs.h.  */
17481
17482int
17483main ()
17484{
17485
17486  ;
17487  return 0;
17488}
17489_ACEOF
17490rm -f conftest.$ac_objext conftest$ac_exeext
17491if { (ac_try="$ac_link"
17492case "(($ac_try" in
17493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494  *) ac_try_echo=$ac_try;;
17495esac
17496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497  (eval "$ac_link") 2>conftest.er1
17498  ac_status=$?
17499  grep -v '^ *+' conftest.er1 >conftest.err
17500  rm -f conftest.er1
17501  cat conftest.err >&5
17502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503  (exit $ac_status); } &&
17504	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17505  { (case "(($ac_try" in
17506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507  *) ac_try_echo=$ac_try;;
17508esac
17509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510  (eval "$ac_try") 2>&5
17511  ac_status=$?
17512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513  (exit $ac_status); }; } &&
17514	 { ac_try='test -s conftest$ac_exeext'
17515  { (case "(($ac_try" in
17516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517  *) ac_try_echo=$ac_try;;
17518esac
17519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520  (eval "$ac_try") 2>&5
17521  ac_status=$?
17522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523  (exit $ac_status); }; }; then
17524
17525aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17526}'`
17527# Check for a 64-bit object if we didn't find anything.
17528if 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; }
17529}'`; fi
17530else
17531  echo "$as_me: failed program was:" >&5
17532sed 's/^/| /' conftest.$ac_ext >&5
17533
17534
17535fi
17536
17537rm -f core conftest.err conftest.$ac_objext \
17538      conftest$ac_exeext conftest.$ac_ext
17539if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17540
17541       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17542	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"
17543       else
17544	if test "$host_cpu" = ia64; then
17545	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17546	  allow_undefined_flag_GCJ="-z nodefs"
17547	  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"
17548	else
17549	 # Determine the default libpath from the value encoded in an empty executable.
17550	 cat >conftest.$ac_ext <<_ACEOF
17551/* confdefs.h.  */
17552_ACEOF
17553cat confdefs.h >>conftest.$ac_ext
17554cat >>conftest.$ac_ext <<_ACEOF
17555/* end confdefs.h.  */
17556
17557int
17558main ()
17559{
17560
17561  ;
17562  return 0;
17563}
17564_ACEOF
17565rm -f conftest.$ac_objext conftest$ac_exeext
17566if { (ac_try="$ac_link"
17567case "(($ac_try" in
17568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17569  *) ac_try_echo=$ac_try;;
17570esac
17571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17572  (eval "$ac_link") 2>conftest.er1
17573  ac_status=$?
17574  grep -v '^ *+' conftest.er1 >conftest.err
17575  rm -f conftest.er1
17576  cat conftest.err >&5
17577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578  (exit $ac_status); } &&
17579	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17580  { (case "(($ac_try" in
17581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17582  *) ac_try_echo=$ac_try;;
17583esac
17584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17585  (eval "$ac_try") 2>&5
17586  ac_status=$?
17587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588  (exit $ac_status); }; } &&
17589	 { ac_try='test -s conftest$ac_exeext'
17590  { (case "(($ac_try" in
17591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592  *) ac_try_echo=$ac_try;;
17593esac
17594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595  (eval "$ac_try") 2>&5
17596  ac_status=$?
17597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598  (exit $ac_status); }; }; then
17599
17600aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17601}'`
17602# Check for a 64-bit object if we didn't find anything.
17603if 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; }
17604}'`; fi
17605else
17606  echo "$as_me: failed program was:" >&5
17607sed 's/^/| /' conftest.$ac_ext >&5
17608
17609
17610fi
17611
17612rm -f core conftest.err conftest.$ac_objext \
17613      conftest$ac_exeext conftest.$ac_ext
17614if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17615
17616	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17617	  # Warning - without using the other run time loading flags,
17618	  # -berok will link without error, but may produce a broken library.
17619	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17620	  allow_undefined_flag_GCJ=' ${wl}-berok'
17621	  # Exported symbols can be pulled into shared objects from archives
17622	  whole_archive_flag_spec_GCJ='$convenience'
17623	  archive_cmds_need_lc_GCJ=yes
17624	  # This is similar to how AIX traditionally builds its shared libraries.
17625	  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'
17626	fi
17627      fi
17628      ;;
17629
17630    amigaos*)
17631      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)'
17632      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17633      hardcode_minus_L_GCJ=yes
17634      # see comment about different semantics on the GNU ld section
17635      ld_shlibs_GCJ=no
17636      ;;
17637
17638    bsdi[45]*)
17639      export_dynamic_flag_spec_GCJ=-rdynamic
17640      ;;
17641
17642    cygwin* | mingw* | pw32*)
17643      # When not using gcc, we currently assume that we are using
17644      # Microsoft Visual C++.
17645      # hardcode_libdir_flag_spec is actually meaningless, as there is
17646      # no search path for DLLs.
17647      hardcode_libdir_flag_spec_GCJ=' '
17648      allow_undefined_flag_GCJ=unsupported
17649      # Tell ltmain to make .lib files, not .a files.
17650      libext=lib
17651      # Tell ltmain to make .dll files, not .so files.
17652      shrext_cmds=".dll"
17653      # FIXME: Setting linknames here is a bad hack.
17654      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17655      # The linker will automatically build a .lib file if we build a DLL.
17656      old_archive_From_new_cmds_GCJ='true'
17657      # FIXME: Should let the user specify the lib program.
17658      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17659      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17660      enable_shared_with_static_runtimes_GCJ=yes
17661      ;;
17662
17663    darwin* | rhapsody*)
17664      case $host_os in
17665        rhapsody* | darwin1.[012])
17666         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17667         ;;
17668       *) # Darwin 1.3 on
17669         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17670           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17671         else
17672           case ${MACOSX_DEPLOYMENT_TARGET} in
17673             10.[012])
17674               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17675               ;;
17676             10.*)
17677               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17678               ;;
17679           esac
17680         fi
17681         ;;
17682      esac
17683      archive_cmds_need_lc_GCJ=no
17684      hardcode_direct_GCJ=no
17685      hardcode_automatic_GCJ=yes
17686      hardcode_shlibpath_var_GCJ=unsupported
17687      whole_archive_flag_spec_GCJ=''
17688      link_all_deplibs_GCJ=yes
17689    if test "$GCC" = yes ; then
17690    	output_verbose_link_cmd='echo'
17691        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17692      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17693      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17694      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}'
17695      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}'
17696    else
17697      case $cc_basename in
17698        xlc*)
17699         output_verbose_link_cmd='echo'
17700         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17701         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17702          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17703         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}'
17704          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}'
17705          ;;
17706       *)
17707         ld_shlibs_GCJ=no
17708          ;;
17709      esac
17710    fi
17711      ;;
17712
17713    dgux*)
17714      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17715      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17716      hardcode_shlibpath_var_GCJ=no
17717      ;;
17718
17719    freebsd1*)
17720      ld_shlibs_GCJ=no
17721      ;;
17722
17723    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17724    # support.  Future versions do this automatically, but an explicit c++rt0.o
17725    # does not break anything, and helps significantly (at the cost of a little
17726    # extra space).
17727    freebsd2.2*)
17728      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17729      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17730      hardcode_direct_GCJ=yes
17731      hardcode_shlibpath_var_GCJ=no
17732      ;;
17733
17734    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17735    freebsd2*)
17736      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17737      hardcode_direct_GCJ=yes
17738      hardcode_minus_L_GCJ=yes
17739      hardcode_shlibpath_var_GCJ=no
17740      ;;
17741
17742    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17743    freebsd* | dragonfly*)
17744      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17745      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17746      hardcode_direct_GCJ=yes
17747      hardcode_shlibpath_var_GCJ=no
17748      ;;
17749
17750    hpux9*)
17751      if test "$GCC" = yes; then
17752	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'
17753      else
17754	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'
17755      fi
17756      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17757      hardcode_libdir_separator_GCJ=:
17758      hardcode_direct_GCJ=yes
17759
17760      # hardcode_minus_L: Not really in the search PATH,
17761      # but as the default location of the library.
17762      hardcode_minus_L_GCJ=yes
17763      export_dynamic_flag_spec_GCJ='${wl}-E'
17764      ;;
17765
17766    hpux10*)
17767      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17768	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17769      else
17770	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17771      fi
17772      if test "$with_gnu_ld" = no; then
17773	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17774	hardcode_libdir_separator_GCJ=:
17775
17776	hardcode_direct_GCJ=yes
17777	export_dynamic_flag_spec_GCJ='${wl}-E'
17778
17779	# hardcode_minus_L: Not really in the search PATH,
17780	# but as the default location of the library.
17781	hardcode_minus_L_GCJ=yes
17782      fi
17783      ;;
17784
17785    hpux11*)
17786      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17787	case $host_cpu in
17788	hppa*64*)
17789	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17790	  ;;
17791	ia64*)
17792	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17793	  ;;
17794	*)
17795	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17796	  ;;
17797	esac
17798      else
17799	case $host_cpu in
17800	hppa*64*)
17801	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17802	  ;;
17803	ia64*)
17804	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17805	  ;;
17806	*)
17807	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17808	  ;;
17809	esac
17810      fi
17811      if test "$with_gnu_ld" = no; then
17812	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17813	hardcode_libdir_separator_GCJ=:
17814
17815	case $host_cpu in
17816	hppa*64*|ia64*)
17817	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17818	  hardcode_direct_GCJ=no
17819	  hardcode_shlibpath_var_GCJ=no
17820	  ;;
17821	*)
17822	  hardcode_direct_GCJ=yes
17823	  export_dynamic_flag_spec_GCJ='${wl}-E'
17824
17825	  # hardcode_minus_L: Not really in the search PATH,
17826	  # but as the default location of the library.
17827	  hardcode_minus_L_GCJ=yes
17828	  ;;
17829	esac
17830      fi
17831      ;;
17832
17833    irix5* | irix6* | nonstopux*)
17834      if test "$GCC" = yes; then
17835	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'
17836      else
17837	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'
17838	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17839      fi
17840      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17841      hardcode_libdir_separator_GCJ=:
17842      link_all_deplibs_GCJ=yes
17843      ;;
17844
17845    netbsd* | netbsdelf*-gnu)
17846      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17847	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17848      else
17849	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17850      fi
17851      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17852      hardcode_direct_GCJ=yes
17853      hardcode_shlibpath_var_GCJ=no
17854      ;;
17855
17856    newsos6)
17857      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17858      hardcode_direct_GCJ=yes
17859      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17860      hardcode_libdir_separator_GCJ=:
17861      hardcode_shlibpath_var_GCJ=no
17862      ;;
17863
17864    openbsd*)
17865      hardcode_direct_GCJ=yes
17866      hardcode_shlibpath_var_GCJ=no
17867      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17868	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17869	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17870	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17871	export_dynamic_flag_spec_GCJ='${wl}-E'
17872      else
17873       case $host_os in
17874	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17875	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17876	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17877	   ;;
17878	 *)
17879	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17880	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17881	   ;;
17882       esac
17883      fi
17884      ;;
17885
17886    os2*)
17887      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17888      hardcode_minus_L_GCJ=yes
17889      allow_undefined_flag_GCJ=unsupported
17890      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'
17891      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17892      ;;
17893
17894    osf3*)
17895      if test "$GCC" = yes; then
17896	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17897	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'
17898      else
17899	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17900	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'
17901      fi
17902      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17903      hardcode_libdir_separator_GCJ=:
17904      ;;
17905
17906    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17907      if test "$GCC" = yes; then
17908	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17909	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'
17910	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17911      else
17912	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17913	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'
17914	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~
17915	$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'
17916
17917	# Both c and cxx compiler support -rpath directly
17918	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17919      fi
17920      hardcode_libdir_separator_GCJ=:
17921      ;;
17922
17923    solaris*)
17924      no_undefined_flag_GCJ=' -z text'
17925      if test "$GCC" = yes; then
17926	wlarc='${wl}'
17927	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17928	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17929	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17930      else
17931	wlarc=''
17932	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17933	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17934  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17935      fi
17936      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17937      hardcode_shlibpath_var_GCJ=no
17938      case $host_os in
17939      solaris2.[0-5] | solaris2.[0-5].*) ;;
17940      *)
17941 	# The compiler driver will combine linker options so we
17942 	# cannot just pass the convience library names through
17943 	# without $wl, iff we do not link with $LD.
17944 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17945 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17946 	case $wlarc in
17947 	'')
17948 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17949 	*)
17950 	  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' ;;
17951 	esac ;;
17952      esac
17953      link_all_deplibs_GCJ=yes
17954      ;;
17955
17956    sunos4*)
17957      if test "x$host_vendor" = xsequent; then
17958	# Use $CC to link under sequent, because it throws in some extra .o
17959	# files that make .init and .fini sections work.
17960	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17961      else
17962	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17963      fi
17964      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17965      hardcode_direct_GCJ=yes
17966      hardcode_minus_L_GCJ=yes
17967      hardcode_shlibpath_var_GCJ=no
17968      ;;
17969
17970    sysv4)
17971      case $host_vendor in
17972	sni)
17973	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17974	  hardcode_direct_GCJ=yes # is this really true???
17975	;;
17976	siemens)
17977	  ## LD is ld it makes a PLAMLIB
17978	  ## CC just makes a GrossModule.
17979	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17980	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17981	  hardcode_direct_GCJ=no
17982        ;;
17983	motorola)
17984	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17985	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17986	;;
17987      esac
17988      runpath_var='LD_RUN_PATH'
17989      hardcode_shlibpath_var_GCJ=no
17990      ;;
17991
17992    sysv4.3*)
17993      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17994      hardcode_shlibpath_var_GCJ=no
17995      export_dynamic_flag_spec_GCJ='-Bexport'
17996      ;;
17997
17998    sysv4*MP*)
17999      if test -d /usr/nec; then
18000	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18001	hardcode_shlibpath_var_GCJ=no
18002	runpath_var=LD_RUN_PATH
18003	hardcode_runpath_var=yes
18004	ld_shlibs_GCJ=yes
18005      fi
18006      ;;
18007
18008    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18009      no_undefined_flag_GCJ='${wl}-z,text'
18010      archive_cmds_need_lc_GCJ=no
18011      hardcode_shlibpath_var_GCJ=no
18012      runpath_var='LD_RUN_PATH'
18013
18014      if test "$GCC" = yes; then
18015	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18016	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18017      else
18018	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18019	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18020      fi
18021      ;;
18022
18023    sysv5* | sco3.2v5* | sco5v6*)
18024      # Note: We can NOT use -z defs as we might desire, because we do not
18025      # link with -lc, and that would cause any symbols used from libc to
18026      # always be unresolved, which means just about no library would
18027      # ever link correctly.  If we're not using GNU ld we use -z text
18028      # though, which does catch some bad symbols but isn't as heavy-handed
18029      # as -z defs.
18030      no_undefined_flag_GCJ='${wl}-z,text'
18031      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18032      archive_cmds_need_lc_GCJ=no
18033      hardcode_shlibpath_var_GCJ=no
18034      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18035      hardcode_libdir_separator_GCJ=':'
18036      link_all_deplibs_GCJ=yes
18037      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18038      runpath_var='LD_RUN_PATH'
18039
18040      if test "$GCC" = yes; then
18041	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18042	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18043      else
18044	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18045	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18046      fi
18047      ;;
18048
18049    uts4*)
18050      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18051      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18052      hardcode_shlibpath_var_GCJ=no
18053      ;;
18054
18055    *)
18056      ld_shlibs_GCJ=no
18057      ;;
18058    esac
18059  fi
18060
18061{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18062echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18063test "$ld_shlibs_GCJ" = no && can_build_shared=no
18064
18065#
18066# Do we need to explicitly link libc?
18067#
18068case "x$archive_cmds_need_lc_GCJ" in
18069x|xyes)
18070  # Assume -lc should be added
18071  archive_cmds_need_lc_GCJ=yes
18072
18073  if test "$enable_shared" = yes && test "$GCC" = yes; then
18074    case $archive_cmds_GCJ in
18075    *'~'*)
18076      # FIXME: we may have to deal with multi-command sequences.
18077      ;;
18078    '$CC '*)
18079      # Test whether the compiler implicitly links with -lc since on some
18080      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18081      # to ld, don't add -lc before -lgcc.
18082      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18083echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18084      $rm conftest*
18085      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18086
18087      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18088  (eval $ac_compile) 2>&5
18089  ac_status=$?
18090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091  (exit $ac_status); } 2>conftest.err; then
18092        soname=conftest
18093        lib=conftest
18094        libobjs=conftest.$ac_objext
18095        deplibs=
18096        wl=$lt_prog_compiler_wl_GCJ
18097	pic_flag=$lt_prog_compiler_pic_GCJ
18098        compiler_flags=-v
18099        linker_flags=-v
18100        verstring=
18101        output_objdir=.
18102        libname=conftest
18103        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18104        allow_undefined_flag_GCJ=
18105        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18106  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18107  ac_status=$?
18108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109  (exit $ac_status); }
18110        then
18111	  archive_cmds_need_lc_GCJ=no
18112        else
18113	  archive_cmds_need_lc_GCJ=yes
18114        fi
18115        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18116      else
18117        cat conftest.err 1>&5
18118      fi
18119      $rm conftest*
18120      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18121echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18122      ;;
18123    esac
18124  fi
18125  ;;
18126esac
18127
18128{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18129echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18130library_names_spec=
18131libname_spec='lib$name'
18132soname_spec=
18133shrext_cmds=".so"
18134postinstall_cmds=
18135postuninstall_cmds=
18136finish_cmds=
18137finish_eval=
18138shlibpath_var=
18139shlibpath_overrides_runpath=unknown
18140version_type=none
18141dynamic_linker="$host_os ld.so"
18142sys_lib_dlsearch_path_spec="/lib /usr/lib"
18143if test "$GCC" = yes; then
18144  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18145  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18146    # if the path contains ";" then we assume it to be the separator
18147    # otherwise default to the standard path separator (i.e. ":") - it is
18148    # assumed that no part of a normal pathname contains ";" but that should
18149    # okay in the real world where ";" in dirpaths is itself problematic.
18150    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18151  else
18152    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18153  fi
18154else
18155  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18156fi
18157need_lib_prefix=unknown
18158hardcode_into_libs=no
18159
18160# when you set need_version to no, make sure it does not cause -set_version
18161# flags to be left without arguments
18162need_version=unknown
18163
18164case $host_os in
18165aix3*)
18166  version_type=linux
18167  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18168  shlibpath_var=LIBPATH
18169
18170  # AIX 3 has no versioning support, so we append a major version to the name.
18171  soname_spec='${libname}${release}${shared_ext}$major'
18172  ;;
18173
18174aix4* | aix5*)
18175  version_type=linux
18176  need_lib_prefix=no
18177  need_version=no
18178  hardcode_into_libs=yes
18179  if test "$host_cpu" = ia64; then
18180    # AIX 5 supports IA64
18181    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18182    shlibpath_var=LD_LIBRARY_PATH
18183  else
18184    # With GCC up to 2.95.x, collect2 would create an import file
18185    # for dependence libraries.  The import file would start with
18186    # the line `#! .'.  This would cause the generated library to
18187    # depend on `.', always an invalid library.  This was fixed in
18188    # development snapshots of GCC prior to 3.0.
18189    case $host_os in
18190      aix4 | aix4.[01] | aix4.[01].*)
18191      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18192	   echo ' yes '
18193	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18194	:
18195      else
18196	can_build_shared=no
18197      fi
18198      ;;
18199    esac
18200    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18201    # soname into executable. Probably we can add versioning support to
18202    # collect2, so additional links can be useful in future.
18203    if test "$aix_use_runtimelinking" = yes; then
18204      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18205      # instead of lib<name>.a to let people know that these are not
18206      # typical AIX shared libraries.
18207      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18208    else
18209      # We preserve .a as extension for shared libraries through AIX4.2
18210      # and later when we are not doing run time linking.
18211      library_names_spec='${libname}${release}.a $libname.a'
18212      soname_spec='${libname}${release}${shared_ext}$major'
18213    fi
18214    shlibpath_var=LIBPATH
18215  fi
18216  ;;
18217
18218amigaos*)
18219  library_names_spec='$libname.ixlibrary $libname.a'
18220  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18221  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'
18222  ;;
18223
18224beos*)
18225  library_names_spec='${libname}${shared_ext}'
18226  dynamic_linker="$host_os ld.so"
18227  shlibpath_var=LIBRARY_PATH
18228  ;;
18229
18230bsdi[45]*)
18231  version_type=linux
18232  need_version=no
18233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18234  soname_spec='${libname}${release}${shared_ext}$major'
18235  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18236  shlibpath_var=LD_LIBRARY_PATH
18237  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18238  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18239  # the default ld.so.conf also contains /usr/contrib/lib and
18240  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18241  # libtool to hard-code these into programs
18242  ;;
18243
18244cygwin* | mingw* | pw32*)
18245  version_type=windows
18246  shrext_cmds=".dll"
18247  need_version=no
18248  need_lib_prefix=no
18249
18250  case $GCC,$host_os in
18251  yes,cygwin* | yes,mingw* | yes,pw32*)
18252    library_names_spec='$libname.dll.a'
18253    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18254    postinstall_cmds='base_file=`basename \${file}`~
18255      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18256      dldir=$destdir/`dirname \$dlpath`~
18257      test -d \$dldir || mkdir -p \$dldir~
18258      $install_prog $dir/$dlname \$dldir/$dlname~
18259      chmod a+x \$dldir/$dlname'
18260    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18261      dlpath=$dir/\$dldll~
18262       $rm \$dlpath'
18263    shlibpath_overrides_runpath=yes
18264
18265    case $host_os in
18266    cygwin*)
18267      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18268      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18269      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18270      ;;
18271    mingw*)
18272      # MinGW DLLs use traditional 'lib' prefix
18273      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18274      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18275      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18276        # It is most probably a Windows format PATH printed by
18277        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18278        # path with ; separators, and with drive letters. We can handle the
18279        # drive letters (cygwin fileutils understands them), so leave them,
18280        # especially as we might pass files found there to a mingw objdump,
18281        # which wouldn't understand a cygwinified path. Ahh.
18282        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18283      else
18284        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18285      fi
18286      ;;
18287    pw32*)
18288      # pw32 DLLs use 'pw' prefix rather than 'lib'
18289      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18290      ;;
18291    esac
18292    ;;
18293
18294  *)
18295    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18296    ;;
18297  esac
18298  dynamic_linker='Win32 ld.exe'
18299  # FIXME: first we should search . and the directory the executable is in
18300  shlibpath_var=PATH
18301  ;;
18302
18303darwin* | rhapsody*)
18304  dynamic_linker="$host_os dyld"
18305  version_type=darwin
18306  need_lib_prefix=no
18307  need_version=no
18308  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18309  soname_spec='${libname}${release}${major}$shared_ext'
18310  shlibpath_overrides_runpath=yes
18311  shlibpath_var=DYLD_LIBRARY_PATH
18312  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18313  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18314  if test "$GCC" = yes; then
18315    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"`
18316  else
18317    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18318  fi
18319  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18320  ;;
18321
18322dgux*)
18323  version_type=linux
18324  need_lib_prefix=no
18325  need_version=no
18326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18327  soname_spec='${libname}${release}${shared_ext}$major'
18328  shlibpath_var=LD_LIBRARY_PATH
18329  ;;
18330
18331freebsd1*)
18332  dynamic_linker=no
18333  ;;
18334
18335freebsd* | dragonfly*)
18336  # DragonFly does not have aout.  When/if they implement a new
18337  # versioning mechanism, adjust this.
18338  if test -x /usr/bin/objformat; then
18339    objformat=`/usr/bin/objformat`
18340  else
18341    case $host_os in
18342    freebsd[123]*) objformat=aout ;;
18343    *) objformat=elf ;;
18344    esac
18345  fi
18346  version_type=freebsd-$objformat
18347  case $version_type in
18348    freebsd-elf*)
18349      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18350      need_version=no
18351      need_lib_prefix=no
18352      ;;
18353    freebsd-*)
18354      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18355      need_version=yes
18356      ;;
18357  esac
18358  shlibpath_var=LD_LIBRARY_PATH
18359  case $host_os in
18360  freebsd2*)
18361    shlibpath_overrides_runpath=yes
18362    ;;
18363  freebsd3.[01]* | freebsdelf3.[01]*)
18364    shlibpath_overrides_runpath=yes
18365    hardcode_into_libs=yes
18366    ;;
18367  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18368  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18369    shlibpath_overrides_runpath=no
18370    hardcode_into_libs=yes
18371    ;;
18372  freebsd*) # from 4.6 on
18373    shlibpath_overrides_runpath=yes
18374    hardcode_into_libs=yes
18375    ;;
18376  esac
18377  ;;
18378
18379gnu*)
18380  version_type=linux
18381  need_lib_prefix=no
18382  need_version=no
18383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18384  soname_spec='${libname}${release}${shared_ext}$major'
18385  shlibpath_var=LD_LIBRARY_PATH
18386  hardcode_into_libs=yes
18387  ;;
18388
18389hpux9* | hpux10* | hpux11*)
18390  # Give a soname corresponding to the major version so that dld.sl refuses to
18391  # link against other versions.
18392  version_type=sunos
18393  need_lib_prefix=no
18394  need_version=no
18395  case $host_cpu in
18396  ia64*)
18397    shrext_cmds='.so'
18398    hardcode_into_libs=yes
18399    dynamic_linker="$host_os dld.so"
18400    shlibpath_var=LD_LIBRARY_PATH
18401    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18402    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18403    soname_spec='${libname}${release}${shared_ext}$major'
18404    if test "X$HPUX_IA64_MODE" = X32; then
18405      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18406    else
18407      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18408    fi
18409    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18410    ;;
18411   hppa*64*)
18412     shrext_cmds='.sl'
18413     hardcode_into_libs=yes
18414     dynamic_linker="$host_os dld.sl"
18415     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18416     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18417     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18418     soname_spec='${libname}${release}${shared_ext}$major'
18419     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18420     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18421     ;;
18422   *)
18423    shrext_cmds='.sl'
18424    dynamic_linker="$host_os dld.sl"
18425    shlibpath_var=SHLIB_PATH
18426    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18427    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18428    soname_spec='${libname}${release}${shared_ext}$major'
18429    ;;
18430  esac
18431  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18432  postinstall_cmds='chmod 555 $lib'
18433  ;;
18434
18435interix3*)
18436  version_type=linux
18437  need_lib_prefix=no
18438  need_version=no
18439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18440  soname_spec='${libname}${release}${shared_ext}$major'
18441  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18442  shlibpath_var=LD_LIBRARY_PATH
18443  shlibpath_overrides_runpath=no
18444  hardcode_into_libs=yes
18445  ;;
18446
18447irix5* | irix6* | nonstopux*)
18448  case $host_os in
18449    nonstopux*) version_type=nonstopux ;;
18450    *)
18451	if test "$lt_cv_prog_gnu_ld" = yes; then
18452		version_type=linux
18453	else
18454		version_type=irix
18455	fi ;;
18456  esac
18457  need_lib_prefix=no
18458  need_version=no
18459  soname_spec='${libname}${release}${shared_ext}$major'
18460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18461  case $host_os in
18462  irix5* | nonstopux*)
18463    libsuff= shlibsuff=
18464    ;;
18465  *)
18466    case $LD in # libtool.m4 will add one of these switches to LD
18467    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18468      libsuff= shlibsuff= libmagic=32-bit;;
18469    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18470      libsuff=32 shlibsuff=N32 libmagic=N32;;
18471    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18472      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18473    *) libsuff= shlibsuff= libmagic=never-match;;
18474    esac
18475    ;;
18476  esac
18477  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18478  shlibpath_overrides_runpath=no
18479  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18480  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18481  hardcode_into_libs=yes
18482  ;;
18483
18484# No shared lib support for Linux oldld, aout, or coff.
18485linux*oldld* | linux*aout* | linux*coff*)
18486  dynamic_linker=no
18487  ;;
18488
18489# This must be Linux ELF.
18490linux* | k*bsd*-gnu)
18491  version_type=linux
18492  need_lib_prefix=no
18493  need_version=no
18494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18495  soname_spec='${libname}${release}${shared_ext}$major'
18496  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18497  shlibpath_var=LD_LIBRARY_PATH
18498  shlibpath_overrides_runpath=no
18499  # This implies no fast_install, which is unacceptable.
18500  # Some rework will be needed to allow for fast_install
18501  # before this can be enabled.
18502  hardcode_into_libs=yes
18503
18504  # Append ld.so.conf contents to the search path
18505  if test -f /etc/ld.so.conf; then
18506    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' ' '`
18507    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18508  fi
18509
18510  # We used to test for /lib/ld.so.1 and disable shared libraries on
18511  # powerpc, because MkLinux only supported shared libraries with the
18512  # GNU dynamic linker.  Since this was broken with cross compilers,
18513  # most powerpc-linux boxes support dynamic linking these days and
18514  # people can always --disable-shared, the test was removed, and we
18515  # assume the GNU/Linux dynamic linker is in use.
18516  dynamic_linker='GNU/Linux ld.so'
18517  ;;
18518
18519netbsdelf*-gnu)
18520  version_type=linux
18521  need_lib_prefix=no
18522  need_version=no
18523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18524  soname_spec='${libname}${release}${shared_ext}$major'
18525  shlibpath_var=LD_LIBRARY_PATH
18526  shlibpath_overrides_runpath=no
18527  hardcode_into_libs=yes
18528  dynamic_linker='NetBSD ld.elf_so'
18529  ;;
18530
18531netbsd*)
18532  version_type=sunos
18533  need_lib_prefix=no
18534  need_version=no
18535  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18536    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18537    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18538    dynamic_linker='NetBSD (a.out) ld.so'
18539  else
18540    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18541    soname_spec='${libname}${release}${shared_ext}$major'
18542    dynamic_linker='NetBSD ld.elf_so'
18543  fi
18544  shlibpath_var=LD_LIBRARY_PATH
18545  shlibpath_overrides_runpath=yes
18546  hardcode_into_libs=yes
18547  ;;
18548
18549newsos6)
18550  version_type=linux
18551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18552  shlibpath_var=LD_LIBRARY_PATH
18553  shlibpath_overrides_runpath=yes
18554  ;;
18555
18556nto-qnx*)
18557  version_type=linux
18558  need_lib_prefix=no
18559  need_version=no
18560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18561  soname_spec='${libname}${release}${shared_ext}$major'
18562  shlibpath_var=LD_LIBRARY_PATH
18563  shlibpath_overrides_runpath=yes
18564  ;;
18565
18566openbsd*)
18567  version_type=sunos
18568  sys_lib_dlsearch_path_spec="/usr/lib"
18569  need_lib_prefix=no
18570  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18571  case $host_os in
18572    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18573    *)                         need_version=no  ;;
18574  esac
18575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18576  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18577  shlibpath_var=LD_LIBRARY_PATH
18578  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18579    case $host_os in
18580      openbsd2.[89] | openbsd2.[89].*)
18581	shlibpath_overrides_runpath=no
18582	;;
18583      *)
18584	shlibpath_overrides_runpath=yes
18585	;;
18586      esac
18587  else
18588    shlibpath_overrides_runpath=yes
18589  fi
18590  ;;
18591
18592os2*)
18593  libname_spec='$name'
18594  shrext_cmds=".dll"
18595  need_lib_prefix=no
18596  library_names_spec='$libname${shared_ext} $libname.a'
18597  dynamic_linker='OS/2 ld.exe'
18598  shlibpath_var=LIBPATH
18599  ;;
18600
18601osf3* | osf4* | osf5*)
18602  version_type=osf
18603  need_lib_prefix=no
18604  need_version=no
18605  soname_spec='${libname}${release}${shared_ext}$major'
18606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18607  shlibpath_var=LD_LIBRARY_PATH
18608  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18609  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18610  ;;
18611
18612solaris*)
18613  version_type=linux
18614  need_lib_prefix=no
18615  need_version=no
18616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18617  soname_spec='${libname}${release}${shared_ext}$major'
18618  shlibpath_var=LD_LIBRARY_PATH
18619  shlibpath_overrides_runpath=yes
18620  hardcode_into_libs=yes
18621  # ldd complains unless libraries are executable
18622  postinstall_cmds='chmod +x $lib'
18623  ;;
18624
18625sunos4*)
18626  version_type=sunos
18627  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18628  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18629  shlibpath_var=LD_LIBRARY_PATH
18630  shlibpath_overrides_runpath=yes
18631  if test "$with_gnu_ld" = yes; then
18632    need_lib_prefix=no
18633  fi
18634  need_version=yes
18635  ;;
18636
18637sysv4 | sysv4.3*)
18638  version_type=linux
18639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18640  soname_spec='${libname}${release}${shared_ext}$major'
18641  shlibpath_var=LD_LIBRARY_PATH
18642  case $host_vendor in
18643    sni)
18644      shlibpath_overrides_runpath=no
18645      need_lib_prefix=no
18646      export_dynamic_flag_spec='${wl}-Blargedynsym'
18647      runpath_var=LD_RUN_PATH
18648      ;;
18649    siemens)
18650      need_lib_prefix=no
18651      ;;
18652    motorola)
18653      need_lib_prefix=no
18654      need_version=no
18655      shlibpath_overrides_runpath=no
18656      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18657      ;;
18658  esac
18659  ;;
18660
18661sysv4*MP*)
18662  if test -d /usr/nec ;then
18663    version_type=linux
18664    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18665    soname_spec='$libname${shared_ext}.$major'
18666    shlibpath_var=LD_LIBRARY_PATH
18667  fi
18668  ;;
18669
18670sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18671  version_type=freebsd-elf
18672  need_lib_prefix=no
18673  need_version=no
18674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18675  soname_spec='${libname}${release}${shared_ext}$major'
18676  shlibpath_var=LD_LIBRARY_PATH
18677  hardcode_into_libs=yes
18678  if test "$with_gnu_ld" = yes; then
18679    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18680    shlibpath_overrides_runpath=no
18681  else
18682    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18683    shlibpath_overrides_runpath=yes
18684    case $host_os in
18685      sco3.2v5*)
18686        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18687	;;
18688    esac
18689  fi
18690  sys_lib_dlsearch_path_spec='/usr/lib'
18691  ;;
18692
18693uts4*)
18694  version_type=linux
18695  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18696  soname_spec='${libname}${release}${shared_ext}$major'
18697  shlibpath_var=LD_LIBRARY_PATH
18698  ;;
18699
18700*)
18701  dynamic_linker=no
18702  ;;
18703esac
18704{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18705echo "${ECHO_T}$dynamic_linker" >&6; }
18706test "$dynamic_linker" = no && can_build_shared=no
18707
18708variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18709if test "$GCC" = yes; then
18710  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18711fi
18712
18713{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18714echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18715hardcode_action_GCJ=
18716if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18717   test -n "$runpath_var_GCJ" || \
18718   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18719
18720  # We can hardcode non-existant directories.
18721  if test "$hardcode_direct_GCJ" != no &&
18722     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18723     # have to relink, otherwise we might link with an installed library
18724     # when we should be linking with a yet-to-be-installed one
18725     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18726     test "$hardcode_minus_L_GCJ" != no; then
18727    # Linking always hardcodes the temporary library directory.
18728    hardcode_action_GCJ=relink
18729  else
18730    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18731    hardcode_action_GCJ=immediate
18732  fi
18733else
18734  # We cannot hardcode anything, or else we can only hardcode existing
18735  # directories.
18736  hardcode_action_GCJ=unsupported
18737fi
18738{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18739echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18740
18741if test "$hardcode_action_GCJ" = relink; then
18742  # Fast installation is not supported
18743  enable_fast_install=no
18744elif test "$shlibpath_overrides_runpath" = yes ||
18745     test "$enable_shared" = no; then
18746  # Fast installation is not necessary
18747  enable_fast_install=needless
18748fi
18749
18750
18751# The else clause should only fire when bootstrapping the
18752# libtool distribution, otherwise you forgot to ship ltmain.sh
18753# with your package, and you will get complaints that there are
18754# no rules to generate ltmain.sh.
18755if test -f "$ltmain"; then
18756  # See if we are running on zsh, and set the options which allow our commands through
18757  # without removal of \ escapes.
18758  if test -n "${ZSH_VERSION+set}" ; then
18759    setopt NO_GLOB_SUBST
18760  fi
18761  # Now quote all the things that may contain metacharacters while being
18762  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18763  # variables and quote the copies for generation of the libtool script.
18764  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18765    SED SHELL STRIP \
18766    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18767    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18768    deplibs_check_method reload_flag reload_cmds need_locks \
18769    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18770    lt_cv_sys_global_symbol_to_c_name_address \
18771    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18772    old_postinstall_cmds old_postuninstall_cmds \
18773    compiler_GCJ \
18774    CC_GCJ \
18775    LD_GCJ \
18776    lt_prog_compiler_wl_GCJ \
18777    lt_prog_compiler_pic_GCJ \
18778    lt_prog_compiler_static_GCJ \
18779    lt_prog_compiler_no_builtin_flag_GCJ \
18780    export_dynamic_flag_spec_GCJ \
18781    thread_safe_flag_spec_GCJ \
18782    whole_archive_flag_spec_GCJ \
18783    enable_shared_with_static_runtimes_GCJ \
18784    old_archive_cmds_GCJ \
18785    old_archive_from_new_cmds_GCJ \
18786    predep_objects_GCJ \
18787    postdep_objects_GCJ \
18788    predeps_GCJ \
18789    postdeps_GCJ \
18790    compiler_lib_search_path_GCJ \
18791    archive_cmds_GCJ \
18792    archive_expsym_cmds_GCJ \
18793    postinstall_cmds_GCJ \
18794    postuninstall_cmds_GCJ \
18795    old_archive_from_expsyms_cmds_GCJ \
18796    allow_undefined_flag_GCJ \
18797    no_undefined_flag_GCJ \
18798    export_symbols_cmds_GCJ \
18799    hardcode_libdir_flag_spec_GCJ \
18800    hardcode_libdir_flag_spec_ld_GCJ \
18801    hardcode_libdir_separator_GCJ \
18802    hardcode_automatic_GCJ \
18803    module_cmds_GCJ \
18804    module_expsym_cmds_GCJ \
18805    lt_cv_prog_compiler_c_o_GCJ \
18806    exclude_expsyms_GCJ \
18807    include_expsyms_GCJ; do
18808
18809    case $var in
18810    old_archive_cmds_GCJ | \
18811    old_archive_from_new_cmds_GCJ | \
18812    archive_cmds_GCJ | \
18813    archive_expsym_cmds_GCJ | \
18814    module_cmds_GCJ | \
18815    module_expsym_cmds_GCJ | \
18816    old_archive_from_expsyms_cmds_GCJ | \
18817    export_symbols_cmds_GCJ | \
18818    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18819    postinstall_cmds | postuninstall_cmds | \
18820    old_postinstall_cmds | old_postuninstall_cmds | \
18821    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18822      # Double-quote double-evaled strings.
18823      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18824      ;;
18825    *)
18826      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18827      ;;
18828    esac
18829  done
18830
18831  case $lt_echo in
18832  *'\$0 --fallback-echo"')
18833    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18834    ;;
18835  esac
18836
18837cfgfile="$ofile"
18838
18839  cat <<__EOF__ >> "$cfgfile"
18840# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18841
18842# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18843
18844# Shell to use when invoking shell scripts.
18845SHELL=$lt_SHELL
18846
18847# Whether or not to build shared libraries.
18848build_libtool_libs=$enable_shared
18849
18850# Whether or not to build static libraries.
18851build_old_libs=$enable_static
18852
18853# Whether or not to add -lc for building shared libraries.
18854build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18855
18856# Whether or not to disallow shared libs when runtime libs are static
18857allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18858
18859# Whether or not to optimize for fast installation.
18860fast_install=$enable_fast_install
18861
18862# The host system.
18863host_alias=$host_alias
18864host=$host
18865host_os=$host_os
18866
18867# The build system.
18868build_alias=$build_alias
18869build=$build
18870build_os=$build_os
18871
18872# An echo program that does not interpret backslashes.
18873echo=$lt_echo
18874
18875# The archiver.
18876AR=$lt_AR
18877AR_FLAGS=$lt_AR_FLAGS
18878
18879# A C compiler.
18880LTCC=$lt_LTCC
18881
18882# LTCC compiler flags.
18883LTCFLAGS=$lt_LTCFLAGS
18884
18885# A language-specific compiler.
18886CC=$lt_compiler_GCJ
18887
18888# Is the compiler the GNU C compiler?
18889with_gcc=$GCC_GCJ
18890
18891# An ERE matcher.
18892EGREP=$lt_EGREP
18893
18894# The linker used to build libraries.
18895LD=$lt_LD_GCJ
18896
18897# Whether we need hard or soft links.
18898LN_S=$lt_LN_S
18899
18900# A BSD-compatible nm program.
18901NM=$lt_NM
18902
18903# A symbol stripping program
18904STRIP=$lt_STRIP
18905
18906# Used to examine libraries when file_magic_cmd begins "file"
18907MAGIC_CMD=$MAGIC_CMD
18908
18909# Used on cygwin: DLL creation program.
18910DLLTOOL="$DLLTOOL"
18911
18912# Used on cygwin: object dumper.
18913OBJDUMP="$OBJDUMP"
18914
18915# Used on cygwin: assembler.
18916AS="$AS"
18917
18918# The name of the directory that contains temporary libtool files.
18919objdir=$objdir
18920
18921# How to create reloadable object files.
18922reload_flag=$lt_reload_flag
18923reload_cmds=$lt_reload_cmds
18924
18925# How to pass a linker flag through the compiler.
18926wl=$lt_lt_prog_compiler_wl_GCJ
18927
18928# Object file suffix (normally "o").
18929objext="$ac_objext"
18930
18931# Old archive suffix (normally "a").
18932libext="$libext"
18933
18934# Shared library suffix (normally ".so").
18935shrext_cmds='$shrext_cmds'
18936
18937# Executable file suffix (normally "").
18938exeext="$exeext"
18939
18940# Additional compiler flags for building library objects.
18941pic_flag=$lt_lt_prog_compiler_pic_GCJ
18942pic_mode=$pic_mode
18943
18944# What is the maximum length of a command?
18945max_cmd_len=$lt_cv_sys_max_cmd_len
18946
18947# Does compiler simultaneously support -c and -o options?
18948compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18949
18950# Must we lock files when doing compilation?
18951need_locks=$lt_need_locks
18952
18953# Do we need the lib prefix for modules?
18954need_lib_prefix=$need_lib_prefix
18955
18956# Do we need a version for libraries?
18957need_version=$need_version
18958
18959# Whether dlopen is supported.
18960dlopen_support=$enable_dlopen
18961
18962# Whether dlopen of programs is supported.
18963dlopen_self=$enable_dlopen_self
18964
18965# Whether dlopen of statically linked programs is supported.
18966dlopen_self_static=$enable_dlopen_self_static
18967
18968# Compiler flag to prevent dynamic linking.
18969link_static_flag=$lt_lt_prog_compiler_static_GCJ
18970
18971# Compiler flag to turn off builtin functions.
18972no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18973
18974# Compiler flag to allow reflexive dlopens.
18975export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18976
18977# Compiler flag to generate shared objects directly from archives.
18978whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18979
18980# Compiler flag to generate thread-safe objects.
18981thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18982
18983# Library versioning type.
18984version_type=$version_type
18985
18986# Format of library name prefix.
18987libname_spec=$lt_libname_spec
18988
18989# List of archive names.  First name is the real one, the rest are links.
18990# The last name is the one that the linker finds with -lNAME.
18991library_names_spec=$lt_library_names_spec
18992
18993# The coded name of the library, if different from the real name.
18994soname_spec=$lt_soname_spec
18995
18996# Commands used to build and install an old-style archive.
18997RANLIB=$lt_RANLIB
18998old_archive_cmds=$lt_old_archive_cmds_GCJ
18999old_postinstall_cmds=$lt_old_postinstall_cmds
19000old_postuninstall_cmds=$lt_old_postuninstall_cmds
19001
19002# Create an old-style archive from a shared archive.
19003old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19004
19005# Create a temporary old-style archive to link instead of a shared archive.
19006old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19007
19008# Commands used to build and install a shared archive.
19009archive_cmds=$lt_archive_cmds_GCJ
19010archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19011postinstall_cmds=$lt_postinstall_cmds
19012postuninstall_cmds=$lt_postuninstall_cmds
19013
19014# Commands used to build a loadable module (assumed same as above if empty)
19015module_cmds=$lt_module_cmds_GCJ
19016module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19017
19018# Commands to strip libraries.
19019old_striplib=$lt_old_striplib
19020striplib=$lt_striplib
19021
19022# Dependencies to place before the objects being linked to create a
19023# shared library.
19024predep_objects=$lt_predep_objects_GCJ
19025
19026# Dependencies to place after the objects being linked to create a
19027# shared library.
19028postdep_objects=$lt_postdep_objects_GCJ
19029
19030# Dependencies to place before the objects being linked to create a
19031# shared library.
19032predeps=$lt_predeps_GCJ
19033
19034# Dependencies to place after the objects being linked to create a
19035# shared library.
19036postdeps=$lt_postdeps_GCJ
19037
19038# The library search path used internally by the compiler when linking
19039# a shared library.
19040compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19041
19042# Method to check whether dependent libraries are shared objects.
19043deplibs_check_method=$lt_deplibs_check_method
19044
19045# Command to use when deplibs_check_method == file_magic.
19046file_magic_cmd=$lt_file_magic_cmd
19047
19048# Flag that allows shared libraries with undefined symbols to be built.
19049allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19050
19051# Flag that forces no undefined symbols.
19052no_undefined_flag=$lt_no_undefined_flag_GCJ
19053
19054# Commands used to finish a libtool library installation in a directory.
19055finish_cmds=$lt_finish_cmds
19056
19057# Same as above, but a single script fragment to be evaled but not shown.
19058finish_eval=$lt_finish_eval
19059
19060# Take the output of nm and produce a listing of raw symbols and C names.
19061global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19062
19063# Transform the output of nm in a proper C declaration
19064global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19065
19066# Transform the output of nm in a C name address pair
19067global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19068
19069# This is the shared library runtime path variable.
19070runpath_var=$runpath_var
19071
19072# This is the shared library path variable.
19073shlibpath_var=$shlibpath_var
19074
19075# Is shlibpath searched before the hard-coded library search path?
19076shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19077
19078# How to hardcode a shared library path into an executable.
19079hardcode_action=$hardcode_action_GCJ
19080
19081# Whether we should hardcode library paths into libraries.
19082hardcode_into_libs=$hardcode_into_libs
19083
19084# Flag to hardcode \$libdir into a binary during linking.
19085# This must work even if \$libdir does not exist.
19086hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19087
19088# If ld is used when linking, flag to hardcode \$libdir into
19089# a binary during linking. This must work even if \$libdir does
19090# not exist.
19091hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19092
19093# Whether we need a single -rpath flag with a separated argument.
19094hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19095
19096# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19097# resulting binary.
19098hardcode_direct=$hardcode_direct_GCJ
19099
19100# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19101# resulting binary.
19102hardcode_minus_L=$hardcode_minus_L_GCJ
19103
19104# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19105# the resulting binary.
19106hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19107
19108# Set to yes if building a shared library automatically hardcodes DIR into the library
19109# and all subsequent libraries and executables linked against it.
19110hardcode_automatic=$hardcode_automatic_GCJ
19111
19112# Variables whose values should be saved in libtool wrapper scripts and
19113# restored at relink time.
19114variables_saved_for_relink="$variables_saved_for_relink"
19115
19116# Whether libtool must link a program against all its dependency libraries.
19117link_all_deplibs=$link_all_deplibs_GCJ
19118
19119# Compile-time system search path for libraries
19120sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19121
19122# Run-time system search path for libraries
19123sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19124
19125# Fix the shell variable \$srcfile for the compiler.
19126fix_srcfile_path="$fix_srcfile_path_GCJ"
19127
19128# Set to yes if exported symbols are required.
19129always_export_symbols=$always_export_symbols_GCJ
19130
19131# The commands to list exported symbols.
19132export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19133
19134# The commands to extract the exported symbol list from a shared archive.
19135extract_expsyms_cmds=$lt_extract_expsyms_cmds
19136
19137# Symbols that should not be listed in the preloaded symbols.
19138exclude_expsyms=$lt_exclude_expsyms_GCJ
19139
19140# Symbols that must always be exported.
19141include_expsyms=$lt_include_expsyms_GCJ
19142
19143# ### END LIBTOOL TAG CONFIG: $tagname
19144
19145__EOF__
19146
19147
19148else
19149  # If there is no Makefile yet, we rely on a make rule to execute
19150  # `config.status --recheck' to rerun these tests and create the
19151  # libtool script then.
19152  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19153  if test -f "$ltmain_in"; then
19154    test -f Makefile && make "$ltmain"
19155  fi
19156fi
19157
19158
19159ac_ext=c
19160ac_cpp='$CPP $CPPFLAGS'
19161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19163ac_compiler_gnu=$ac_cv_c_compiler_gnu
19164
19165CC="$lt_save_CC"
19166
19167	else
19168	  tagname=""
19169	fi
19170	;;
19171
19172      RC)
19173
19174
19175# Source file extension for RC test sources.
19176ac_ext=rc
19177
19178# Object file extension for compiled RC test sources.
19179objext=o
19180objext_RC=$objext
19181
19182# Code to be used in simple compile tests
19183lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19184
19185# Code to be used in simple link tests
19186lt_simple_link_test_code="$lt_simple_compile_test_code"
19187
19188# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19189
19190# If no C compiler was specified, use CC.
19191LTCC=${LTCC-"$CC"}
19192
19193# If no C compiler flags were specified, use CFLAGS.
19194LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19195
19196# Allow CC to be a program name with arguments.
19197compiler=$CC
19198
19199
19200# save warnings/boilerplate of simple test code
19201ac_outfile=conftest.$ac_objext
19202printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19203eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19204_lt_compiler_boilerplate=`cat conftest.err`
19205$rm conftest*
19206
19207ac_outfile=conftest.$ac_objext
19208printf "$lt_simple_link_test_code" >conftest.$ac_ext
19209eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19210_lt_linker_boilerplate=`cat conftest.err`
19211$rm conftest*
19212
19213
19214# Allow CC to be a program name with arguments.
19215lt_save_CC="$CC"
19216CC=${RC-"windres"}
19217compiler=$CC
19218compiler_RC=$CC
19219for cc_temp in $compiler""; do
19220  case $cc_temp in
19221    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19222    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19223    \-*) ;;
19224    *) break;;
19225  esac
19226done
19227cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19228
19229lt_cv_prog_compiler_c_o_RC=yes
19230
19231# The else clause should only fire when bootstrapping the
19232# libtool distribution, otherwise you forgot to ship ltmain.sh
19233# with your package, and you will get complaints that there are
19234# no rules to generate ltmain.sh.
19235if test -f "$ltmain"; then
19236  # See if we are running on zsh, and set the options which allow our commands through
19237  # without removal of \ escapes.
19238  if test -n "${ZSH_VERSION+set}" ; then
19239    setopt NO_GLOB_SUBST
19240  fi
19241  # Now quote all the things that may contain metacharacters while being
19242  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19243  # variables and quote the copies for generation of the libtool script.
19244  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19245    SED SHELL STRIP \
19246    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19247    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19248    deplibs_check_method reload_flag reload_cmds need_locks \
19249    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19250    lt_cv_sys_global_symbol_to_c_name_address \
19251    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19252    old_postinstall_cmds old_postuninstall_cmds \
19253    compiler_RC \
19254    CC_RC \
19255    LD_RC \
19256    lt_prog_compiler_wl_RC \
19257    lt_prog_compiler_pic_RC \
19258    lt_prog_compiler_static_RC \
19259    lt_prog_compiler_no_builtin_flag_RC \
19260    export_dynamic_flag_spec_RC \
19261    thread_safe_flag_spec_RC \
19262    whole_archive_flag_spec_RC \
19263    enable_shared_with_static_runtimes_RC \
19264    old_archive_cmds_RC \
19265    old_archive_from_new_cmds_RC \
19266    predep_objects_RC \
19267    postdep_objects_RC \
19268    predeps_RC \
19269    postdeps_RC \
19270    compiler_lib_search_path_RC \
19271    archive_cmds_RC \
19272    archive_expsym_cmds_RC \
19273    postinstall_cmds_RC \
19274    postuninstall_cmds_RC \
19275    old_archive_from_expsyms_cmds_RC \
19276    allow_undefined_flag_RC \
19277    no_undefined_flag_RC \
19278    export_symbols_cmds_RC \
19279    hardcode_libdir_flag_spec_RC \
19280    hardcode_libdir_flag_spec_ld_RC \
19281    hardcode_libdir_separator_RC \
19282    hardcode_automatic_RC \
19283    module_cmds_RC \
19284    module_expsym_cmds_RC \
19285    lt_cv_prog_compiler_c_o_RC \
19286    exclude_expsyms_RC \
19287    include_expsyms_RC; do
19288
19289    case $var in
19290    old_archive_cmds_RC | \
19291    old_archive_from_new_cmds_RC | \
19292    archive_cmds_RC | \
19293    archive_expsym_cmds_RC | \
19294    module_cmds_RC | \
19295    module_expsym_cmds_RC | \
19296    old_archive_from_expsyms_cmds_RC | \
19297    export_symbols_cmds_RC | \
19298    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19299    postinstall_cmds | postuninstall_cmds | \
19300    old_postinstall_cmds | old_postuninstall_cmds | \
19301    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19302      # Double-quote double-evaled strings.
19303      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19304      ;;
19305    *)
19306      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19307      ;;
19308    esac
19309  done
19310
19311  case $lt_echo in
19312  *'\$0 --fallback-echo"')
19313    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19314    ;;
19315  esac
19316
19317cfgfile="$ofile"
19318
19319  cat <<__EOF__ >> "$cfgfile"
19320# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19321
19322# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19323
19324# Shell to use when invoking shell scripts.
19325SHELL=$lt_SHELL
19326
19327# Whether or not to build shared libraries.
19328build_libtool_libs=$enable_shared
19329
19330# Whether or not to build static libraries.
19331build_old_libs=$enable_static
19332
19333# Whether or not to add -lc for building shared libraries.
19334build_libtool_need_lc=$archive_cmds_need_lc_RC
19335
19336# Whether or not to disallow shared libs when runtime libs are static
19337allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19338
19339# Whether or not to optimize for fast installation.
19340fast_install=$enable_fast_install
19341
19342# The host system.
19343host_alias=$host_alias
19344host=$host
19345host_os=$host_os
19346
19347# The build system.
19348build_alias=$build_alias
19349build=$build
19350build_os=$build_os
19351
19352# An echo program that does not interpret backslashes.
19353echo=$lt_echo
19354
19355# The archiver.
19356AR=$lt_AR
19357AR_FLAGS=$lt_AR_FLAGS
19358
19359# A C compiler.
19360LTCC=$lt_LTCC
19361
19362# LTCC compiler flags.
19363LTCFLAGS=$lt_LTCFLAGS
19364
19365# A language-specific compiler.
19366CC=$lt_compiler_RC
19367
19368# Is the compiler the GNU C compiler?
19369with_gcc=$GCC_RC
19370
19371# An ERE matcher.
19372EGREP=$lt_EGREP
19373
19374# The linker used to build libraries.
19375LD=$lt_LD_RC
19376
19377# Whether we need hard or soft links.
19378LN_S=$lt_LN_S
19379
19380# A BSD-compatible nm program.
19381NM=$lt_NM
19382
19383# A symbol stripping program
19384STRIP=$lt_STRIP
19385
19386# Used to examine libraries when file_magic_cmd begins "file"
19387MAGIC_CMD=$MAGIC_CMD
19388
19389# Used on cygwin: DLL creation program.
19390DLLTOOL="$DLLTOOL"
19391
19392# Used on cygwin: object dumper.
19393OBJDUMP="$OBJDUMP"
19394
19395# Used on cygwin: assembler.
19396AS="$AS"
19397
19398# The name of the directory that contains temporary libtool files.
19399objdir=$objdir
19400
19401# How to create reloadable object files.
19402reload_flag=$lt_reload_flag
19403reload_cmds=$lt_reload_cmds
19404
19405# How to pass a linker flag through the compiler.
19406wl=$lt_lt_prog_compiler_wl_RC
19407
19408# Object file suffix (normally "o").
19409objext="$ac_objext"
19410
19411# Old archive suffix (normally "a").
19412libext="$libext"
19413
19414# Shared library suffix (normally ".so").
19415shrext_cmds='$shrext_cmds'
19416
19417# Executable file suffix (normally "").
19418exeext="$exeext"
19419
19420# Additional compiler flags for building library objects.
19421pic_flag=$lt_lt_prog_compiler_pic_RC
19422pic_mode=$pic_mode
19423
19424# What is the maximum length of a command?
19425max_cmd_len=$lt_cv_sys_max_cmd_len
19426
19427# Does compiler simultaneously support -c and -o options?
19428compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19429
19430# Must we lock files when doing compilation?
19431need_locks=$lt_need_locks
19432
19433# Do we need the lib prefix for modules?
19434need_lib_prefix=$need_lib_prefix
19435
19436# Do we need a version for libraries?
19437need_version=$need_version
19438
19439# Whether dlopen is supported.
19440dlopen_support=$enable_dlopen
19441
19442# Whether dlopen of programs is supported.
19443dlopen_self=$enable_dlopen_self
19444
19445# Whether dlopen of statically linked programs is supported.
19446dlopen_self_static=$enable_dlopen_self_static
19447
19448# Compiler flag to prevent dynamic linking.
19449link_static_flag=$lt_lt_prog_compiler_static_RC
19450
19451# Compiler flag to turn off builtin functions.
19452no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19453
19454# Compiler flag to allow reflexive dlopens.
19455export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19456
19457# Compiler flag to generate shared objects directly from archives.
19458whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19459
19460# Compiler flag to generate thread-safe objects.
19461thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19462
19463# Library versioning type.
19464version_type=$version_type
19465
19466# Format of library name prefix.
19467libname_spec=$lt_libname_spec
19468
19469# List of archive names.  First name is the real one, the rest are links.
19470# The last name is the one that the linker finds with -lNAME.
19471library_names_spec=$lt_library_names_spec
19472
19473# The coded name of the library, if different from the real name.
19474soname_spec=$lt_soname_spec
19475
19476# Commands used to build and install an old-style archive.
19477RANLIB=$lt_RANLIB
19478old_archive_cmds=$lt_old_archive_cmds_RC
19479old_postinstall_cmds=$lt_old_postinstall_cmds
19480old_postuninstall_cmds=$lt_old_postuninstall_cmds
19481
19482# Create an old-style archive from a shared archive.
19483old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19484
19485# Create a temporary old-style archive to link instead of a shared archive.
19486old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19487
19488# Commands used to build and install a shared archive.
19489archive_cmds=$lt_archive_cmds_RC
19490archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19491postinstall_cmds=$lt_postinstall_cmds
19492postuninstall_cmds=$lt_postuninstall_cmds
19493
19494# Commands used to build a loadable module (assumed same as above if empty)
19495module_cmds=$lt_module_cmds_RC
19496module_expsym_cmds=$lt_module_expsym_cmds_RC
19497
19498# Commands to strip libraries.
19499old_striplib=$lt_old_striplib
19500striplib=$lt_striplib
19501
19502# Dependencies to place before the objects being linked to create a
19503# shared library.
19504predep_objects=$lt_predep_objects_RC
19505
19506# Dependencies to place after the objects being linked to create a
19507# shared library.
19508postdep_objects=$lt_postdep_objects_RC
19509
19510# Dependencies to place before the objects being linked to create a
19511# shared library.
19512predeps=$lt_predeps_RC
19513
19514# Dependencies to place after the objects being linked to create a
19515# shared library.
19516postdeps=$lt_postdeps_RC
19517
19518# The library search path used internally by the compiler when linking
19519# a shared library.
19520compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19521
19522# Method to check whether dependent libraries are shared objects.
19523deplibs_check_method=$lt_deplibs_check_method
19524
19525# Command to use when deplibs_check_method == file_magic.
19526file_magic_cmd=$lt_file_magic_cmd
19527
19528# Flag that allows shared libraries with undefined symbols to be built.
19529allow_undefined_flag=$lt_allow_undefined_flag_RC
19530
19531# Flag that forces no undefined symbols.
19532no_undefined_flag=$lt_no_undefined_flag_RC
19533
19534# Commands used to finish a libtool library installation in a directory.
19535finish_cmds=$lt_finish_cmds
19536
19537# Same as above, but a single script fragment to be evaled but not shown.
19538finish_eval=$lt_finish_eval
19539
19540# Take the output of nm and produce a listing of raw symbols and C names.
19541global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19542
19543# Transform the output of nm in a proper C declaration
19544global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19545
19546# Transform the output of nm in a C name address pair
19547global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19548
19549# This is the shared library runtime path variable.
19550runpath_var=$runpath_var
19551
19552# This is the shared library path variable.
19553shlibpath_var=$shlibpath_var
19554
19555# Is shlibpath searched before the hard-coded library search path?
19556shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19557
19558# How to hardcode a shared library path into an executable.
19559hardcode_action=$hardcode_action_RC
19560
19561# Whether we should hardcode library paths into libraries.
19562hardcode_into_libs=$hardcode_into_libs
19563
19564# Flag to hardcode \$libdir into a binary during linking.
19565# This must work even if \$libdir does not exist.
19566hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19567
19568# If ld is used when linking, flag to hardcode \$libdir into
19569# a binary during linking. This must work even if \$libdir does
19570# not exist.
19571hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19572
19573# Whether we need a single -rpath flag with a separated argument.
19574hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19575
19576# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19577# resulting binary.
19578hardcode_direct=$hardcode_direct_RC
19579
19580# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19581# resulting binary.
19582hardcode_minus_L=$hardcode_minus_L_RC
19583
19584# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19585# the resulting binary.
19586hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19587
19588# Set to yes if building a shared library automatically hardcodes DIR into the library
19589# and all subsequent libraries and executables linked against it.
19590hardcode_automatic=$hardcode_automatic_RC
19591
19592# Variables whose values should be saved in libtool wrapper scripts and
19593# restored at relink time.
19594variables_saved_for_relink="$variables_saved_for_relink"
19595
19596# Whether libtool must link a program against all its dependency libraries.
19597link_all_deplibs=$link_all_deplibs_RC
19598
19599# Compile-time system search path for libraries
19600sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19601
19602# Run-time system search path for libraries
19603sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19604
19605# Fix the shell variable \$srcfile for the compiler.
19606fix_srcfile_path="$fix_srcfile_path_RC"
19607
19608# Set to yes if exported symbols are required.
19609always_export_symbols=$always_export_symbols_RC
19610
19611# The commands to list exported symbols.
19612export_symbols_cmds=$lt_export_symbols_cmds_RC
19613
19614# The commands to extract the exported symbol list from a shared archive.
19615extract_expsyms_cmds=$lt_extract_expsyms_cmds
19616
19617# Symbols that should not be listed in the preloaded symbols.
19618exclude_expsyms=$lt_exclude_expsyms_RC
19619
19620# Symbols that must always be exported.
19621include_expsyms=$lt_include_expsyms_RC
19622
19623# ### END LIBTOOL TAG CONFIG: $tagname
19624
19625__EOF__
19626
19627
19628else
19629  # If there is no Makefile yet, we rely on a make rule to execute
19630  # `config.status --recheck' to rerun these tests and create the
19631  # libtool script then.
19632  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19633  if test -f "$ltmain_in"; then
19634    test -f Makefile && make "$ltmain"
19635  fi
19636fi
19637
19638
19639ac_ext=c
19640ac_cpp='$CPP $CPPFLAGS'
19641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19643ac_compiler_gnu=$ac_cv_c_compiler_gnu
19644
19645CC="$lt_save_CC"
19646
19647	;;
19648
19649      *)
19650	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19651echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19652   { (exit 1); exit 1; }; }
19653	;;
19654      esac
19655
19656      # Append the new tag name to the list of available tags.
19657      if test -n "$tagname" ; then
19658      available_tags="$available_tags $tagname"
19659    fi
19660    fi
19661  done
19662  IFS="$lt_save_ifs"
19663
19664  # Now substitute the updated list of available tags.
19665  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19666    mv "${ofile}T" "$ofile"
19667    chmod +x "$ofile"
19668  else
19669    rm -f "${ofile}T"
19670    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19671echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19672   { (exit 1); exit 1; }; }
19673  fi
19674fi
19675
19676
19677
19678# This can be used to rebuild libtool when needed
19679LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19680
19681# Always use our own libtool.
19682LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19683
19684# Prevent multiple expansion
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706# get modules
19707
19708
19709if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19710	if test -n "$ac_tool_prefix"; then
19711  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19712set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19713{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19715if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19716  echo $ECHO_N "(cached) $ECHO_C" >&6
19717else
19718  case $PKG_CONFIG in
19719  [\\/]* | ?:[\\/]*)
19720  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19721  ;;
19722  *)
19723  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19724for as_dir in $PATH
19725do
19726  IFS=$as_save_IFS
19727  test -z "$as_dir" && as_dir=.
19728  for ac_exec_ext in '' $ac_executable_extensions; do
19729  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19730    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19731    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19732    break 2
19733  fi
19734done
19735done
19736IFS=$as_save_IFS
19737
19738  ;;
19739esac
19740fi
19741PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19742if test -n "$PKG_CONFIG"; then
19743  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19744echo "${ECHO_T}$PKG_CONFIG" >&6; }
19745else
19746  { echo "$as_me:$LINENO: result: no" >&5
19747echo "${ECHO_T}no" >&6; }
19748fi
19749
19750
19751fi
19752if test -z "$ac_cv_path_PKG_CONFIG"; then
19753  ac_pt_PKG_CONFIG=$PKG_CONFIG
19754  # Extract the first word of "pkg-config", so it can be a program name with args.
19755set dummy pkg-config; ac_word=$2
19756{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19758if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19759  echo $ECHO_N "(cached) $ECHO_C" >&6
19760else
19761  case $ac_pt_PKG_CONFIG in
19762  [\\/]* | ?:[\\/]*)
19763  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19764  ;;
19765  *)
19766  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19767for as_dir in $PATH
19768do
19769  IFS=$as_save_IFS
19770  test -z "$as_dir" && as_dir=.
19771  for ac_exec_ext in '' $ac_executable_extensions; do
19772  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19773    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19774    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19775    break 2
19776  fi
19777done
19778done
19779IFS=$as_save_IFS
19780
19781  ;;
19782esac
19783fi
19784ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19785if test -n "$ac_pt_PKG_CONFIG"; then
19786  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19787echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19788else
19789  { echo "$as_me:$LINENO: result: no" >&5
19790echo "${ECHO_T}no" >&6; }
19791fi
19792
19793  if test "x$ac_pt_PKG_CONFIG" = x; then
19794    PKG_CONFIG=""
19795  else
19796    case $cross_compiling:$ac_tool_warned in
19797yes:)
19798{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19799whose name does not start with the host triplet.  If you think this
19800configuration is useful to you, please write to autoconf@gnu.org." >&5
19801echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19802whose name does not start with the host triplet.  If you think this
19803configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19804ac_tool_warned=yes ;;
19805esac
19806    PKG_CONFIG=$ac_pt_PKG_CONFIG
19807  fi
19808else
19809  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19810fi
19811
19812fi
19813if test -n "$PKG_CONFIG"; then
19814	_pkg_min_version=0.9.0
19815	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19816echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19817	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19818		{ echo "$as_me:$LINENO: result: yes" >&5
19819echo "${ECHO_T}yes" >&6; }
19820	else
19821		{ echo "$as_me:$LINENO: result: no" >&5
19822echo "${ECHO_T}no" >&6; }
19823		PKG_CONFIG=""
19824	fi
19825
19826fi
19827
19828pkg_failed=no
19829{ echo "$as_me:$LINENO: checking for XRES" >&5
19830echo $ECHO_N "checking for XRES... $ECHO_C" >&6; }
19831
19832if test -n "$PKG_CONFIG"; then
19833    if test -n "$XRES_CFLAGS"; then
19834        pkg_cv_XRES_CFLAGS="$XRES_CFLAGS"
19835    else
19836        if test -n "$PKG_CONFIG" && \
19837    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto\"") >&5
19838  ($PKG_CONFIG --exists --print-errors "x11 xext xextproto") 2>&5
19839  ac_status=$?
19840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841  (exit $ac_status); }; then
19842  pkg_cv_XRES_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto" 2>/dev/null`
19843else
19844  pkg_failed=yes
19845fi
19846    fi
19847else
19848	pkg_failed=untried
19849fi
19850if test -n "$PKG_CONFIG"; then
19851    if test -n "$XRES_LIBS"; then
19852        pkg_cv_XRES_LIBS="$XRES_LIBS"
19853    else
19854        if test -n "$PKG_CONFIG" && \
19855    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto\"") >&5
19856  ($PKG_CONFIG --exists --print-errors "x11 xext xextproto") 2>&5
19857  ac_status=$?
19858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859  (exit $ac_status); }; then
19860  pkg_cv_XRES_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto" 2>/dev/null`
19861else
19862  pkg_failed=yes
19863fi
19864    fi
19865else
19866	pkg_failed=untried
19867fi
19868
19869
19870
19871if test $pkg_failed = yes; then
19872
19873if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19874        _pkg_short_errors_supported=yes
19875else
19876        _pkg_short_errors_supported=no
19877fi
19878        if test $_pkg_short_errors_supported = yes; then
19879	        XRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xext xextproto"`
19880        else
19881	        XRES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xext xextproto"`
19882        fi
19883	# Put the nasty error message in config.log where it belongs
19884	echo "$XRES_PKG_ERRORS" >&5
19885
19886	{ { echo "$as_me:$LINENO: error: Package requirements (x11 xext xextproto) were not met:
19887
19888$XRES_PKG_ERRORS
19889
19890Consider adjusting the PKG_CONFIG_PATH environment variable if you
19891installed software in a non-standard prefix.
19892
19893Alternatively, you may set the environment variables XRES_CFLAGS
19894and XRES_LIBS to avoid the need to call pkg-config.
19895See the pkg-config man page for more details.
19896" >&5
19897echo "$as_me: error: Package requirements (x11 xext xextproto) were not met:
19898
19899$XRES_PKG_ERRORS
19900
19901Consider adjusting the PKG_CONFIG_PATH environment variable if you
19902installed software in a non-standard prefix.
19903
19904Alternatively, you may set the environment variables XRES_CFLAGS
19905and XRES_LIBS to avoid the need to call pkg-config.
19906See the pkg-config man page for more details.
19907" >&2;}
19908   { (exit 1); exit 1; }; }
19909elif test $pkg_failed = untried; then
19910	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
19911is in your PATH or set the PKG_CONFIG environment variable to the full
19912path to pkg-config.
19913
19914Alternatively, you may set the environment variables XRES_CFLAGS
19915and XRES_LIBS to avoid the need to call pkg-config.
19916See the pkg-config man page for more details.
19917
19918To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19919See \`config.log' for more details." >&5
19920echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
19921is in your PATH or set the PKG_CONFIG environment variable to the full
19922path to pkg-config.
19923
19924Alternatively, you may set the environment variables XRES_CFLAGS
19925and XRES_LIBS to avoid the need to call pkg-config.
19926See the pkg-config man page for more details.
19927
19928To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19929See \`config.log' for more details." >&2;}
19930   { (exit 1); exit 1; }; }
19931else
19932	XRES_CFLAGS=$pkg_cv_XRES_CFLAGS
19933	XRES_LIBS=$pkg_cv_XRES_LIBS
19934        { echo "$as_me:$LINENO: result: yes" >&5
19935echo "${ECHO_T}yes" >&6; }
19936	:
19937fi
19938
19939
19940
19941
19942# Check xres configuration, strip extra digits from package version to
19943# find the required protocol version
19944
19945RES_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
19946
19947pkg_failed=no
19948{ echo "$as_me:$LINENO: checking for RESOURCEEXT" >&5
19949echo $ECHO_N "checking for RESOURCEEXT... $ECHO_C" >&6; }
19950
19951if test -n "$PKG_CONFIG"; then
19952    if test -n "$RESOURCEEXT_CFLAGS"; then
19953        pkg_cv_RESOURCEEXT_CFLAGS="$RESOURCEEXT_CFLAGS"
19954    else
19955        if test -n "$PKG_CONFIG" && \
19956    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"resourceproto >= \$RES_VERSION\"") >&5
19957  ($PKG_CONFIG --exists --print-errors "resourceproto >= $RES_VERSION") 2>&5
19958  ac_status=$?
19959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960  (exit $ac_status); }; then
19961  pkg_cv_RESOURCEEXT_CFLAGS=`$PKG_CONFIG --cflags "resourceproto >= $RES_VERSION" 2>/dev/null`
19962else
19963  pkg_failed=yes
19964fi
19965    fi
19966else
19967	pkg_failed=untried
19968fi
19969if test -n "$PKG_CONFIG"; then
19970    if test -n "$RESOURCEEXT_LIBS"; then
19971        pkg_cv_RESOURCEEXT_LIBS="$RESOURCEEXT_LIBS"
19972    else
19973        if test -n "$PKG_CONFIG" && \
19974    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"resourceproto >= \$RES_VERSION\"") >&5
19975  ($PKG_CONFIG --exists --print-errors "resourceproto >= $RES_VERSION") 2>&5
19976  ac_status=$?
19977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978  (exit $ac_status); }; then
19979  pkg_cv_RESOURCEEXT_LIBS=`$PKG_CONFIG --libs "resourceproto >= $RES_VERSION" 2>/dev/null`
19980else
19981  pkg_failed=yes
19982fi
19983    fi
19984else
19985	pkg_failed=untried
19986fi
19987
19988
19989
19990if test $pkg_failed = yes; then
19991
19992if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19993        _pkg_short_errors_supported=yes
19994else
19995        _pkg_short_errors_supported=no
19996fi
19997        if test $_pkg_short_errors_supported = yes; then
19998	        RESOURCEEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "resourceproto >= $RES_VERSION"`
19999        else
20000	        RESOURCEEXT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "resourceproto >= $RES_VERSION"`
20001        fi
20002	# Put the nasty error message in config.log where it belongs
20003	echo "$RESOURCEEXT_PKG_ERRORS" >&5
20004
20005	{ { echo "$as_me:$LINENO: error: Package requirements (resourceproto >= $RES_VERSION) were not met:
20006
20007$RESOURCEEXT_PKG_ERRORS
20008
20009Consider adjusting the PKG_CONFIG_PATH environment variable if you
20010installed software in a non-standard prefix.
20011
20012Alternatively, you may set the environment variables RESOURCEEXT_CFLAGS
20013and RESOURCEEXT_LIBS to avoid the need to call pkg-config.
20014See the pkg-config man page for more details.
20015" >&5
20016echo "$as_me: error: Package requirements (resourceproto >= $RES_VERSION) were not met:
20017
20018$RESOURCEEXT_PKG_ERRORS
20019
20020Consider adjusting the PKG_CONFIG_PATH environment variable if you
20021installed software in a non-standard prefix.
20022
20023Alternatively, you may set the environment variables RESOURCEEXT_CFLAGS
20024and RESOURCEEXT_LIBS to avoid the need to call pkg-config.
20025See the pkg-config man page for more details.
20026" >&2;}
20027   { (exit 1); exit 1; }; }
20028elif test $pkg_failed = untried; then
20029	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20030is in your PATH or set the PKG_CONFIG environment variable to the full
20031path to pkg-config.
20032
20033Alternatively, you may set the environment variables RESOURCEEXT_CFLAGS
20034and RESOURCEEXT_LIBS to avoid the need to call pkg-config.
20035See the pkg-config man page for more details.
20036
20037To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20038See \`config.log' for more details." >&5
20039echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20040is in your PATH or set the PKG_CONFIG environment variable to the full
20041path to pkg-config.
20042
20043Alternatively, you may set the environment variables RESOURCEEXT_CFLAGS
20044and RESOURCEEXT_LIBS to avoid the need to call pkg-config.
20045See the pkg-config man page for more details.
20046
20047To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20048See \`config.log' for more details." >&2;}
20049   { (exit 1); exit 1; }; }
20050else
20051	RESOURCEEXT_CFLAGS=$pkg_cv_RESOURCEEXT_CFLAGS
20052	RESOURCEEXT_LIBS=$pkg_cv_RESOURCEEXT_LIBS
20053        { echo "$as_me:$LINENO: result: yes" >&5
20054echo "${ECHO_T}yes" >&6; }
20055	:
20056fi
20057
20058
20059
20060
20061if test "x$GCC" = "xyes"; then
20062	GCC_WARNINGS="-Wall -Wpointer-arith -Wstrict-prototypes \
20063	-Wmissing-prototypes -Wmissing-declarations \
20064	-Wnested-externs -fno-strict-aliasing"
20065	CFLAGS="$GCC_WARNINGS $CFLAGS"
20066fi
20067
20068
20069# Check whether --enable-malloc0returnsnull was given.
20070if test "${enable_malloc0returnsnull+set}" = set; then
20071  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
20072else
20073  MALLOC_ZERO_RETURNS_NULL=auto
20074fi
20075
20076
20077{ echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
20078echo $ECHO_N "checking whether malloc(0) returns NULL... $ECHO_C" >&6; }
20079if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
20080	if test "$cross_compiling" = yes; then
20081  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20082See \`config.log' for more details." >&5
20083echo "$as_me: error: cannot run test program while cross compiling
20084See \`config.log' for more details." >&2;}
20085   { (exit 1); exit 1; }; }
20086else
20087  cat >conftest.$ac_ext <<_ACEOF
20088
20089char *malloc();
20090char *realloc();
20091char *calloc();
20092main() {
20093    char *m0, *r0, *c0, *p;
20094    m0 = malloc(0);
20095    p = malloc(10);
20096    r0 = realloc(p,0);
20097    c0 = calloc(0);
20098    exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
20099}
20100_ACEOF
20101rm -f 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>&5
20109  ac_status=$?
20110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20112  { (case "(($ac_try" in
20113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20114  *) ac_try_echo=$ac_try;;
20115esac
20116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20117  (eval "$ac_try") 2>&5
20118  ac_status=$?
20119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120  (exit $ac_status); }; }; then
20121  MALLOC_ZERO_RETURNS_NULL=yes
20122else
20123  echo "$as_me: program exited with status $ac_status" >&5
20124echo "$as_me: failed program was:" >&5
20125sed 's/^/| /' conftest.$ac_ext >&5
20126
20127( exit $ac_status )
20128MALLOC_ZERO_RETURNS_NULL=no
20129fi
20130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20131fi
20132
20133
20134fi
20135{ echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
20136echo "${ECHO_T}$MALLOC_ZERO_RETURNS_NULL" >&6; }
20137
20138if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
20139	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
20140	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
20141	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
20142else
20143	MALLOC_ZERO_CFLAGS=""
20144	XMALLOC_ZERO_CFLAGS=""
20145	XTMALLOC_ZERO_CFLAGS=""
20146fi
20147
20148
20149
20150
20151
20152
20153
20154
20155if test x$APP_MAN_SUFFIX = x    ; then
20156    APP_MAN_SUFFIX=1
20157fi
20158if test x$APP_MAN_DIR = x    ; then
20159    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20160fi
20161
20162if test x$LIB_MAN_SUFFIX = x    ; then
20163    LIB_MAN_SUFFIX=3
20164fi
20165if test x$LIB_MAN_DIR = x    ; then
20166    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20167fi
20168
20169if test x$FILE_MAN_SUFFIX = x    ; then
20170    case $host_os in
20171	solaris*)	FILE_MAN_SUFFIX=4  ;;
20172	*)		FILE_MAN_SUFFIX=5  ;;
20173    esac
20174fi
20175if test x$FILE_MAN_DIR = x    ; then
20176    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20177fi
20178
20179if test x$MISC_MAN_SUFFIX = x    ; then
20180    case $host_os in
20181	solaris*)	MISC_MAN_SUFFIX=5  ;;
20182	*)		MISC_MAN_SUFFIX=7  ;;
20183    esac
20184fi
20185if test x$MISC_MAN_DIR = x    ; then
20186    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20187fi
20188
20189if test x$DRIVER_MAN_SUFFIX = x    ; then
20190    case $host_os in
20191	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
20192	*)		DRIVER_MAN_SUFFIX=4  ;;
20193    esac
20194fi
20195if test x$DRIVER_MAN_DIR = x    ; then
20196    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20197fi
20198
20199if test x$ADMIN_MAN_SUFFIX = x    ; then
20200    case $host_os in
20201	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
20202	*)		ADMIN_MAN_SUFFIX=8  ;;
20203    esac
20204fi
20205if test x$ADMIN_MAN_DIR = x    ; then
20206    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20207fi
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225# Check whether --with-release-version was given.
20226if test "${with_release_version+set}" = set; then
20227  withval=$with_release_version; RELEASE_VERSION="$withval"
20228else
20229  RELEASE_VERSION=""
20230fi
20231
20232	if test "x$RELEASE_VERSION" != "x"; then
20233		PACKAGE="$PACKAGE-$RELEASE_VERSION"
20234		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20235		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20236echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20237	fi
20238
20239cat >>confdefs.h <<_ACEOF
20240#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\).*/\1/p'`
20241_ACEOF
20242
20243	PVM=`echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\)\.\([^\.]\+\).*/\2/p'`
20244	if test "x$PVM" = "x"; then
20245		PVM="0"
20246	fi
20247
20248cat >>confdefs.h <<_ACEOF
20249#define PACKAGE_VERSION_MINOR $PVM
20250_ACEOF
20251
20252	PVP=`echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\)\.\([^\.]\+\)\.\([^\.]\+\).*/\3/p'`
20253	if test "x$PVP" = "x"; then
20254		PVP="0"
20255	fi
20256
20257cat >>confdefs.h <<_ACEOF
20258#define PACKAGE_VERSION_PATCHLEVEL $PVP
20259_ACEOF
20260
20261
20262
20263ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xres.pc"
20264
20265cat >confcache <<\_ACEOF
20266# This file is a shell script that caches the results of configure
20267# tests run on this system so they can be shared between configure
20268# scripts and configure runs, see configure's option --config-cache.
20269# It is not useful on other systems.  If it contains results you don't
20270# want to keep, you may remove or edit it.
20271#
20272# config.status only pays attention to the cache file if you give it
20273# the --recheck option to rerun configure.
20274#
20275# `ac_cv_env_foo' variables (set or unset) will be overridden when
20276# loading this file, other *unset* `ac_cv_foo' will be assigned the
20277# following values.
20278
20279_ACEOF
20280
20281# The following way of writing the cache mishandles newlines in values,
20282# but we know of no workaround that is simple, portable, and efficient.
20283# So, we kill variables containing newlines.
20284# Ultrix sh set writes to stderr and can't be redirected directly,
20285# and sets the high bit in the cache file unless we assign to the vars.
20286(
20287  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20288    eval ac_val=\$$ac_var
20289    case $ac_val in #(
20290    *${as_nl}*)
20291      case $ac_var in #(
20292      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20293echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20294      esac
20295      case $ac_var in #(
20296      _ | IFS | as_nl) ;; #(
20297      *) $as_unset $ac_var ;;
20298      esac ;;
20299    esac
20300  done
20301
20302  (set) 2>&1 |
20303    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20304    *${as_nl}ac_space=\ *)
20305      # `set' does not quote correctly, so add quotes (double-quote
20306      # substitution turns \\\\ into \\, and sed turns \\ into \).
20307      sed -n \
20308	"s/'/'\\\\''/g;
20309	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20310      ;; #(
20311    *)
20312      # `set' quotes correctly as required by POSIX, so do not add quotes.
20313      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20314      ;;
20315    esac |
20316    sort
20317) |
20318  sed '
20319     /^ac_cv_env_/b end
20320     t clear
20321     :clear
20322     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20323     t end
20324     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20325     :end' >>confcache
20326if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20327  if test -w "$cache_file"; then
20328    test "x$cache_file" != "x/dev/null" &&
20329      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20330echo "$as_me: updating cache $cache_file" >&6;}
20331    cat confcache >$cache_file
20332  else
20333    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20334echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20335  fi
20336fi
20337rm -f confcache
20338
20339test "x$prefix" = xNONE && prefix=$ac_default_prefix
20340# Let make expand exec_prefix.
20341test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20342
20343DEFS=-DHAVE_CONFIG_H
20344
20345ac_libobjs=
20346ac_ltlibobjs=
20347for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20348  # 1. Remove the extension, and $U if already installed.
20349  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20350  ac_i=`echo "$ac_i" | sed "$ac_script"`
20351  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20352  #    will be set to the directory where LIBOBJS objects are built.
20353  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20354  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20355done
20356LIBOBJS=$ac_libobjs
20357
20358LTLIBOBJS=$ac_ltlibobjs
20359
20360
20361if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20362  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20363Usually this means the macro was only invoked conditionally." >&5
20364echo "$as_me: error: conditional \"AMDEP\" was never defined.
20365Usually this means the macro was only invoked conditionally." >&2;}
20366   { (exit 1); exit 1; }; }
20367fi
20368if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20369  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20370Usually this means the macro was only invoked conditionally." >&5
20371echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20372Usually this means the macro was only invoked conditionally." >&2;}
20373   { (exit 1); exit 1; }; }
20374fi
20375if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20376  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20377Usually this means the macro was only invoked conditionally." >&5
20378echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20379Usually this means the macro was only invoked conditionally." >&2;}
20380   { (exit 1); exit 1; }; }
20381fi
20382
20383: ${CONFIG_STATUS=./config.status}
20384ac_clean_files_save=$ac_clean_files
20385ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20386{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20387echo "$as_me: creating $CONFIG_STATUS" >&6;}
20388cat >$CONFIG_STATUS <<_ACEOF
20389#! $SHELL
20390# Generated by $as_me.
20391# Run this file to recreate the current configuration.
20392# Compiler output produced by configure, useful for debugging
20393# configure, is in config.log if it exists.
20394
20395debug=false
20396ac_cs_recheck=false
20397ac_cs_silent=false
20398SHELL=\${CONFIG_SHELL-$SHELL}
20399_ACEOF
20400
20401cat >>$CONFIG_STATUS <<\_ACEOF
20402## --------------------- ##
20403## M4sh Initialization.  ##
20404## --------------------- ##
20405
20406# Be Bourne compatible
20407if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20408  emulate sh
20409  NULLCMD=:
20410  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20411  # is contrary to our usage.  Disable this feature.
20412  alias -g '${1+"$@"}'='"$@"'
20413  setopt NO_GLOB_SUBST
20414else
20415  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20416fi
20417BIN_SH=xpg4; export BIN_SH # for Tru64
20418DUALCASE=1; export DUALCASE # for MKS sh
20419
20420
20421# PATH needs CR
20422# Avoid depending upon Character Ranges.
20423as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20424as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20425as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20426as_cr_digits='0123456789'
20427as_cr_alnum=$as_cr_Letters$as_cr_digits
20428
20429# The user is always right.
20430if test "${PATH_SEPARATOR+set}" != set; then
20431  echo "#! /bin/sh" >conf$$.sh
20432  echo  "exit 0"   >>conf$$.sh
20433  chmod +x conf$$.sh
20434  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20435    PATH_SEPARATOR=';'
20436  else
20437    PATH_SEPARATOR=:
20438  fi
20439  rm -f conf$$.sh
20440fi
20441
20442# Support unset when possible.
20443if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20444  as_unset=unset
20445else
20446  as_unset=false
20447fi
20448
20449
20450# IFS
20451# We need space, tab and new line, in precisely that order.  Quoting is
20452# there to prevent editors from complaining about space-tab.
20453# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20454# splitting by setting IFS to empty value.)
20455as_nl='
20456'
20457IFS=" ""	$as_nl"
20458
20459# Find who we are.  Look in the path if we contain no directory separator.
20460case $0 in
20461  *[\\/]* ) as_myself=$0 ;;
20462  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20463for as_dir in $PATH
20464do
20465  IFS=$as_save_IFS
20466  test -z "$as_dir" && as_dir=.
20467  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20468done
20469IFS=$as_save_IFS
20470
20471     ;;
20472esac
20473# We did not find ourselves, most probably we were run as `sh COMMAND'
20474# in which case we are not to be found in the path.
20475if test "x$as_myself" = x; then
20476  as_myself=$0
20477fi
20478if test ! -f "$as_myself"; then
20479  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20480  { (exit 1); exit 1; }
20481fi
20482
20483# Work around bugs in pre-3.0 UWIN ksh.
20484for as_var in ENV MAIL MAILPATH
20485do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20486done
20487PS1='$ '
20488PS2='> '
20489PS4='+ '
20490
20491# NLS nuisances.
20492for as_var in \
20493  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20494  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20495  LC_TELEPHONE LC_TIME
20496do
20497  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20498    eval $as_var=C; export $as_var
20499  else
20500    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20501  fi
20502done
20503
20504# Required to use basename.
20505if expr a : '\(a\)' >/dev/null 2>&1 &&
20506   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20507  as_expr=expr
20508else
20509  as_expr=false
20510fi
20511
20512if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20513  as_basename=basename
20514else
20515  as_basename=false
20516fi
20517
20518
20519# Name of the executable.
20520as_me=`$as_basename -- "$0" ||
20521$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20522	 X"$0" : 'X\(//\)$' \| \
20523	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20524echo X/"$0" |
20525    sed '/^.*\/\([^/][^/]*\)\/*$/{
20526	    s//\1/
20527	    q
20528	  }
20529	  /^X\/\(\/\/\)$/{
20530	    s//\1/
20531	    q
20532	  }
20533	  /^X\/\(\/\).*/{
20534	    s//\1/
20535	    q
20536	  }
20537	  s/.*/./; q'`
20538
20539# CDPATH.
20540$as_unset CDPATH
20541
20542
20543
20544  as_lineno_1=$LINENO
20545  as_lineno_2=$LINENO
20546  test "x$as_lineno_1" != "x$as_lineno_2" &&
20547  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20548
20549  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20550  # uniformly replaced by the line number.  The first 'sed' inserts a
20551  # line-number line after each line using $LINENO; the second 'sed'
20552  # does the real work.  The second script uses 'N' to pair each
20553  # line-number line with the line containing $LINENO, and appends
20554  # trailing '-' during substitution so that $LINENO is not a special
20555  # case at line end.
20556  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20557  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20558  # E. McMahon (1931-1989) for sed's syntax.  :-)
20559  sed -n '
20560    p
20561    /[$]LINENO/=
20562  ' <$as_myself |
20563    sed '
20564      s/[$]LINENO.*/&-/
20565      t lineno
20566      b
20567      :lineno
20568      N
20569      :loop
20570      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20571      t loop
20572      s/-\n.*//
20573    ' >$as_me.lineno &&
20574  chmod +x "$as_me.lineno" ||
20575    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20576   { (exit 1); exit 1; }; }
20577
20578  # Don't try to exec as it changes $[0], causing all sort of problems
20579  # (the dirname of $[0] is not the place where we might find the
20580  # original and so on.  Autoconf is especially sensitive to this).
20581  . "./$as_me.lineno"
20582  # Exit status is that of the last command.
20583  exit
20584}
20585
20586
20587if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20588  as_dirname=dirname
20589else
20590  as_dirname=false
20591fi
20592
20593ECHO_C= ECHO_N= ECHO_T=
20594case `echo -n x` in
20595-n*)
20596  case `echo 'x\c'` in
20597  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20598  *)   ECHO_C='\c';;
20599  esac;;
20600*)
20601  ECHO_N='-n';;
20602esac
20603
20604if expr a : '\(a\)' >/dev/null 2>&1 &&
20605   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20606  as_expr=expr
20607else
20608  as_expr=false
20609fi
20610
20611rm -f conf$$ conf$$.exe conf$$.file
20612if test -d conf$$.dir; then
20613  rm -f conf$$.dir/conf$$.file
20614else
20615  rm -f conf$$.dir
20616  mkdir conf$$.dir
20617fi
20618echo >conf$$.file
20619if ln -s conf$$.file conf$$ 2>/dev/null; then
20620  as_ln_s='ln -s'
20621  # ... but there are two gotchas:
20622  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20623  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20624  # In both cases, we have to default to `cp -p'.
20625  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20626    as_ln_s='cp -p'
20627elif ln conf$$.file conf$$ 2>/dev/null; then
20628  as_ln_s=ln
20629else
20630  as_ln_s='cp -p'
20631fi
20632rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20633rmdir conf$$.dir 2>/dev/null
20634
20635if mkdir -p . 2>/dev/null; then
20636  as_mkdir_p=:
20637else
20638  test -d ./-p && rmdir ./-p
20639  as_mkdir_p=false
20640fi
20641
20642# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
20643# systems may use methods other than mode bits to determine executability.
20644cat >conf$$.file <<_ASEOF
20645#! /bin/sh
20646exit 0
20647_ASEOF
20648chmod +x conf$$.file
20649if test -x conf$$.file >/dev/null 2>&1; then
20650  as_executable_p="test -x"
20651else
20652  as_executable_p=:
20653fi
20654rm -f conf$$.file
20655
20656# Sed expression to map a string onto a valid CPP name.
20657as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20658
20659# Sed expression to map a string onto a valid variable name.
20660as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20661
20662
20663exec 6>&1
20664
20665# Save the log message, to keep $[0] and so on meaningful, and to
20666# report actual input values of CONFIG_FILES etc. instead of their
20667# values after options handling.
20668ac_log="
20669This file was extended by libXres $as_me 1.0.3, which was
20670generated by GNU Autoconf 2.60.  Invocation command line was
20671
20672  CONFIG_FILES    = $CONFIG_FILES
20673  CONFIG_HEADERS  = $CONFIG_HEADERS
20674  CONFIG_LINKS    = $CONFIG_LINKS
20675  CONFIG_COMMANDS = $CONFIG_COMMANDS
20676  $ $0 $@
20677
20678on `(hostname || uname -n) 2>/dev/null | sed 1q`
20679"
20680
20681_ACEOF
20682
20683cat >>$CONFIG_STATUS <<_ACEOF
20684# Files that config.status was made for.
20685config_files="$ac_config_files"
20686config_headers="$ac_config_headers"
20687config_commands="$ac_config_commands"
20688
20689_ACEOF
20690
20691cat >>$CONFIG_STATUS <<\_ACEOF
20692ac_cs_usage="\
20693\`$as_me' instantiates files from templates according to the
20694current configuration.
20695
20696Usage: $0 [OPTIONS] [FILE]...
20697
20698  -h, --help       print this help, then exit
20699  -V, --version    print version number, then exit
20700  -q, --quiet      do not print progress messages
20701  -d, --debug      don't remove temporary files
20702      --recheck    update $as_me by reconfiguring in the same conditions
20703  --file=FILE[:TEMPLATE]
20704		   instantiate the configuration file FILE
20705  --header=FILE[:TEMPLATE]
20706		   instantiate the configuration header FILE
20707
20708Configuration files:
20709$config_files
20710
20711Configuration headers:
20712$config_headers
20713
20714Configuration commands:
20715$config_commands
20716
20717Report bugs to <bug-autoconf@gnu.org>."
20718
20719_ACEOF
20720cat >>$CONFIG_STATUS <<_ACEOF
20721ac_cs_version="\\
20722libXres config.status 1.0.3
20723configured by $0, generated by GNU Autoconf 2.60,
20724  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20725
20726Copyright (C) 2006 Free Software Foundation, Inc.
20727This config.status script is free software; the Free Software Foundation
20728gives unlimited permission to copy, distribute and modify it."
20729
20730ac_pwd='$ac_pwd'
20731srcdir='$srcdir'
20732INSTALL='$INSTALL'
20733_ACEOF
20734
20735cat >>$CONFIG_STATUS <<\_ACEOF
20736# If no file are specified by the user, then we need to provide default
20737# value.  By we need to know if files were specified by the user.
20738ac_need_defaults=:
20739while test $# != 0
20740do
20741  case $1 in
20742  --*=*)
20743    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20744    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20745    ac_shift=:
20746    ;;
20747  *)
20748    ac_option=$1
20749    ac_optarg=$2
20750    ac_shift=shift
20751    ;;
20752  esac
20753
20754  case $ac_option in
20755  # Handling of the options.
20756  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20757    ac_cs_recheck=: ;;
20758  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20759    echo "$ac_cs_version"; exit ;;
20760  --debug | --debu | --deb | --de | --d | -d )
20761    debug=: ;;
20762  --file | --fil | --fi | --f )
20763    $ac_shift
20764    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20765    ac_need_defaults=false;;
20766  --header | --heade | --head | --hea )
20767    $ac_shift
20768    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20769    ac_need_defaults=false;;
20770  --he | --h)
20771    # Conflict between --help and --header
20772    { echo "$as_me: error: ambiguous option: $1
20773Try \`$0 --help' for more information." >&2
20774   { (exit 1); exit 1; }; };;
20775  --help | --hel | -h )
20776    echo "$ac_cs_usage"; exit ;;
20777  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20778  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20779    ac_cs_silent=: ;;
20780
20781  # This is an error.
20782  -*) { echo "$as_me: error: unrecognized option: $1
20783Try \`$0 --help' for more information." >&2
20784   { (exit 1); exit 1; }; } ;;
20785
20786  *) ac_config_targets="$ac_config_targets $1"
20787     ac_need_defaults=false ;;
20788
20789  esac
20790  shift
20791done
20792
20793ac_configure_extra_args=
20794
20795if $ac_cs_silent; then
20796  exec 6>/dev/null
20797  ac_configure_extra_args="$ac_configure_extra_args --silent"
20798fi
20799
20800_ACEOF
20801cat >>$CONFIG_STATUS <<_ACEOF
20802if \$ac_cs_recheck; then
20803  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20804  CONFIG_SHELL=$SHELL
20805  export CONFIG_SHELL
20806  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20807fi
20808
20809_ACEOF
20810cat >>$CONFIG_STATUS <<\_ACEOF
20811exec 5>>config.log
20812{
20813  echo
20814  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20815## Running $as_me. ##
20816_ASBOX
20817  echo "$ac_log"
20818} >&5
20819
20820_ACEOF
20821cat >>$CONFIG_STATUS <<_ACEOF
20822#
20823# INIT-COMMANDS
20824#
20825AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20826
20827_ACEOF
20828
20829cat >>$CONFIG_STATUS <<\_ACEOF
20830
20831# Handling of arguments.
20832for ac_config_target in $ac_config_targets
20833do
20834  case $ac_config_target in
20835    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20836    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20837    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20838    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20839    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20840    "xres.pc") CONFIG_FILES="$CONFIG_FILES xres.pc" ;;
20841
20842  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20843echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20844   { (exit 1); exit 1; }; };;
20845  esac
20846done
20847
20848
20849# If the user did not use the arguments to specify the items to instantiate,
20850# then the envvar interface is used.  Set only those that are not.
20851# We use the long form for the default assignment because of an extremely
20852# bizarre bug on SunOS 4.1.3.
20853if $ac_need_defaults; then
20854  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20855  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20856  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20857fi
20858
20859# Have a temporary directory for convenience.  Make it in the build tree
20860# simply because there is no reason against having it here, and in addition,
20861# creating and moving files from /tmp can sometimes cause problems.
20862# Hook for its removal unless debugging.
20863# Note that there is a small window in which the directory will not be cleaned:
20864# after its creation but before its name has been assigned to `$tmp'.
20865$debug ||
20866{
20867  tmp=
20868  trap 'exit_status=$?
20869  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20870' 0
20871  trap '{ (exit 1); exit 1; }' 1 2 13 15
20872}
20873# Create a (secure) tmp directory for tmp files.
20874
20875{
20876  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20877  test -n "$tmp" && test -d "$tmp"
20878}  ||
20879{
20880  tmp=./conf$$-$RANDOM
20881  (umask 077 && mkdir "$tmp")
20882} ||
20883{
20884   echo "$me: cannot create a temporary directory in ." >&2
20885   { (exit 1); exit 1; }
20886}
20887
20888#
20889# Set up the sed scripts for CONFIG_FILES section.
20890#
20891
20892# No need to generate the scripts if there are no CONFIG_FILES.
20893# This happens for instance when ./config.status config.h
20894if test -n "$CONFIG_FILES"; then
20895
20896_ACEOF
20897
20898
20899
20900ac_delim='%!_!# '
20901for ac_last_try in false false false false false :; do
20902  cat >conf$$subs.sed <<_ACEOF
20903SHELL!$SHELL$ac_delim
20904PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20905PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20906PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20907PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20908PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20909PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20910exec_prefix!$exec_prefix$ac_delim
20911prefix!$prefix$ac_delim
20912program_transform_name!$program_transform_name$ac_delim
20913bindir!$bindir$ac_delim
20914sbindir!$sbindir$ac_delim
20915libexecdir!$libexecdir$ac_delim
20916datarootdir!$datarootdir$ac_delim
20917datadir!$datadir$ac_delim
20918sysconfdir!$sysconfdir$ac_delim
20919sharedstatedir!$sharedstatedir$ac_delim
20920localstatedir!$localstatedir$ac_delim
20921includedir!$includedir$ac_delim
20922oldincludedir!$oldincludedir$ac_delim
20923docdir!$docdir$ac_delim
20924infodir!$infodir$ac_delim
20925htmldir!$htmldir$ac_delim
20926dvidir!$dvidir$ac_delim
20927pdfdir!$pdfdir$ac_delim
20928psdir!$psdir$ac_delim
20929libdir!$libdir$ac_delim
20930localedir!$localedir$ac_delim
20931mandir!$mandir$ac_delim
20932DEFS!$DEFS$ac_delim
20933ECHO_C!$ECHO_C$ac_delim
20934ECHO_N!$ECHO_N$ac_delim
20935ECHO_T!$ECHO_T$ac_delim
20936LIBS!$LIBS$ac_delim
20937build_alias!$build_alias$ac_delim
20938host_alias!$host_alias$ac_delim
20939target_alias!$target_alias$ac_delim
20940INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20941INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20942INSTALL_DATA!$INSTALL_DATA$ac_delim
20943CYGPATH_W!$CYGPATH_W$ac_delim
20944PACKAGE!$PACKAGE$ac_delim
20945VERSION!$VERSION$ac_delim
20946ACLOCAL!$ACLOCAL$ac_delim
20947AUTOCONF!$AUTOCONF$ac_delim
20948AUTOMAKE!$AUTOMAKE$ac_delim
20949AUTOHEADER!$AUTOHEADER$ac_delim
20950MAKEINFO!$MAKEINFO$ac_delim
20951install_sh!$install_sh$ac_delim
20952STRIP!$STRIP$ac_delim
20953INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20954mkdir_p!$mkdir_p$ac_delim
20955AWK!$AWK$ac_delim
20956SET_MAKE!$SET_MAKE$ac_delim
20957am__leading_dot!$am__leading_dot$ac_delim
20958AMTAR!$AMTAR$ac_delim
20959am__tar!$am__tar$ac_delim
20960am__untar!$am__untar$ac_delim
20961AMSHOWCMDSAT!$AMSHOWCMDSAT$ac_delim
20962AMDEPSHOWCMDSAT!$AMDEPSHOWCMDSAT$ac_delim
20963AMPRETTYECHO!$AMPRETTYECHO$ac_delim
20964AMCMDECHO!$AMCMDECHO$ac_delim
20965LT_QUIET!$LT_QUIET$ac_delim
20966CC!$CC$ac_delim
20967CFLAGS!$CFLAGS$ac_delim
20968LDFLAGS!$LDFLAGS$ac_delim
20969CPPFLAGS!$CPPFLAGS$ac_delim
20970ac_ct_CC!$ac_ct_CC$ac_delim
20971EXEEXT!$EXEEXT$ac_delim
20972OBJEXT!$OBJEXT$ac_delim
20973DEPDIR!$DEPDIR$ac_delim
20974am__include!$am__include$ac_delim
20975am__quote!$am__quote$ac_delim
20976AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20977AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20978AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20979CCDEPMODE!$CCDEPMODE$ac_delim
20980am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20981am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20982build!$build$ac_delim
20983build_cpu!$build_cpu$ac_delim
20984build_vendor!$build_vendor$ac_delim
20985build_os!$build_os$ac_delim
20986host!$host$ac_delim
20987host_cpu!$host_cpu$ac_delim
20988host_vendor!$host_vendor$ac_delim
20989host_os!$host_os$ac_delim
20990GREP!$GREP$ac_delim
20991EGREP!$EGREP$ac_delim
20992LN_S!$LN_S$ac_delim
20993ECHO!$ECHO$ac_delim
20994AR!$AR$ac_delim
20995RANLIB!$RANLIB$ac_delim
20996CPP!$CPP$ac_delim
20997CXX!$CXX$ac_delim
20998CXXFLAGS!$CXXFLAGS$ac_delim
20999ac_ct_CXX!$ac_ct_CXX$ac_delim
21000_ACEOF
21001
21002  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21003    break
21004  elif $ac_last_try; then
21005    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21006echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21007   { (exit 1); exit 1; }; }
21008  else
21009    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21010  fi
21011done
21012
21013ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21014if test -n "$ac_eof"; then
21015  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21016  ac_eof=`expr $ac_eof + 1`
21017fi
21018
21019cat >>$CONFIG_STATUS <<_ACEOF
21020cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21021/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21022_ACEOF
21023sed '
21024s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21025s/^/s,@/; s/!/@,|#_!!_#|/
21026:n
21027t n
21028s/'"$ac_delim"'$/,g/; t
21029s/$/\\/; p
21030N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21031' >>$CONFIG_STATUS <conf$$subs.sed
21032rm -f conf$$subs.sed
21033cat >>$CONFIG_STATUS <<_ACEOF
21034CEOF$ac_eof
21035_ACEOF
21036
21037
21038ac_delim='%!_!# '
21039for ac_last_try in false false false false false :; do
21040  cat >conf$$subs.sed <<_ACEOF
21041CXXDEPMODE!$CXXDEPMODE$ac_delim
21042am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21043am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21044CXXCPP!$CXXCPP$ac_delim
21045F77!$F77$ac_delim
21046FFLAGS!$FFLAGS$ac_delim
21047ac_ct_F77!$ac_ct_F77$ac_delim
21048LIBTOOL!$LIBTOOL$ac_delim
21049PKG_CONFIG!$PKG_CONFIG$ac_delim
21050XRES_CFLAGS!$XRES_CFLAGS$ac_delim
21051XRES_LIBS!$XRES_LIBS$ac_delim
21052RESOURCEEXT_CFLAGS!$RESOURCEEXT_CFLAGS$ac_delim
21053RESOURCEEXT_LIBS!$RESOURCEEXT_LIBS$ac_delim
21054MALLOC_ZERO_CFLAGS!$MALLOC_ZERO_CFLAGS$ac_delim
21055XMALLOC_ZERO_CFLAGS!$XMALLOC_ZERO_CFLAGS$ac_delim
21056XTMALLOC_ZERO_CFLAGS!$XTMALLOC_ZERO_CFLAGS$ac_delim
21057APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
21058LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
21059FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
21060MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
21061DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
21062ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
21063APP_MAN_DIR!$APP_MAN_DIR$ac_delim
21064LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
21065FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
21066MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
21067DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
21068ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
21069LIBOBJS!$LIBOBJS$ac_delim
21070LTLIBOBJS!$LTLIBOBJS$ac_delim
21071_ACEOF
21072
21073  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
21074    break
21075  elif $ac_last_try; then
21076    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21077echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21078   { (exit 1); exit 1; }; }
21079  else
21080    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21081  fi
21082done
21083
21084ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21085if test -n "$ac_eof"; then
21086  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21087  ac_eof=`expr $ac_eof + 1`
21088fi
21089
21090cat >>$CONFIG_STATUS <<_ACEOF
21091cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21092/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21093_ACEOF
21094sed '
21095s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21096s/^/s,@/; s/!/@,|#_!!_#|/
21097:n
21098t n
21099s/'"$ac_delim"'$/,g/; t
21100s/$/\\/; p
21101N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21102' >>$CONFIG_STATUS <conf$$subs.sed
21103rm -f conf$$subs.sed
21104cat >>$CONFIG_STATUS <<_ACEOF
21105:end
21106s/|#_!!_#|//g
21107CEOF$ac_eof
21108_ACEOF
21109
21110
21111# VPATH may cause trouble with some makes, so we remove $(srcdir),
21112# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21113# trailing colons and then remove the whole line if VPATH becomes empty
21114# (actually we leave an empty line to preserve line numbers).
21115if test "x$srcdir" = x.; then
21116  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21117s/:*\$(srcdir):*/:/
21118s/:*\${srcdir}:*/:/
21119s/:*@srcdir@:*/:/
21120s/^\([^=]*=[	 ]*\):*/\1/
21121s/:*$//
21122s/^[^=]*=[	 ]*$//
21123}'
21124fi
21125
21126cat >>$CONFIG_STATUS <<\_ACEOF
21127fi # test -n "$CONFIG_FILES"
21128
21129
21130for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21131do
21132  case $ac_tag in
21133  :[FHLC]) ac_mode=$ac_tag; continue;;
21134  esac
21135  case $ac_mode$ac_tag in
21136  :[FHL]*:*);;
21137  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21138echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21139   { (exit 1); exit 1; }; };;
21140  :[FH]-) ac_tag=-:-;;
21141  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21142  esac
21143  ac_save_IFS=$IFS
21144  IFS=:
21145  set x $ac_tag
21146  IFS=$ac_save_IFS
21147  shift
21148  ac_file=$1
21149  shift
21150
21151  case $ac_mode in
21152  :L) ac_source=$1;;
21153  :[FH])
21154    ac_file_inputs=
21155    for ac_f
21156    do
21157      case $ac_f in
21158      -) ac_f="$tmp/stdin";;
21159      *) # Look for the file first in the build tree, then in the source tree
21160	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21161	 # because $ac_f cannot contain `:'.
21162	 test -f "$ac_f" ||
21163	   case $ac_f in
21164	   [\\/$]*) false;;
21165	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21166	   esac ||
21167	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21168echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21169   { (exit 1); exit 1; }; };;
21170      esac
21171      ac_file_inputs="$ac_file_inputs $ac_f"
21172    done
21173
21174    # Let's still pretend it is `configure' which instantiates (i.e., don't
21175    # use $as_me), people would be surprised to read:
21176    #    /* config.h.  Generated by config.status.  */
21177    configure_input="Generated from "`IFS=:
21178	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21179    if test x"$ac_file" != x-; then
21180      configure_input="$ac_file.  $configure_input"
21181      { echo "$as_me:$LINENO: creating $ac_file" >&5
21182echo "$as_me: creating $ac_file" >&6;}
21183    fi
21184
21185    case $ac_tag in
21186    *:-:* | *:-) cat >"$tmp/stdin";;
21187    esac
21188    ;;
21189  esac
21190
21191  ac_dir=`$as_dirname -- "$ac_file" ||
21192$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21193	 X"$ac_file" : 'X\(//\)[^/]' \| \
21194	 X"$ac_file" : 'X\(//\)$' \| \
21195	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21196echo X"$ac_file" |
21197    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21198	    s//\1/
21199	    q
21200	  }
21201	  /^X\(\/\/\)[^/].*/{
21202	    s//\1/
21203	    q
21204	  }
21205	  /^X\(\/\/\)$/{
21206	    s//\1/
21207	    q
21208	  }
21209	  /^X\(\/\).*/{
21210	    s//\1/
21211	    q
21212	  }
21213	  s/.*/./; q'`
21214  { as_dir="$ac_dir"
21215  case $as_dir in #(
21216  -*) as_dir=./$as_dir;;
21217  esac
21218  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21219    as_dirs=
21220    while :; do
21221      case $as_dir in #(
21222      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21223      *) as_qdir=$as_dir;;
21224      esac
21225      as_dirs="'$as_qdir' $as_dirs"
21226      as_dir=`$as_dirname -- "$as_dir" ||
21227$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21228	 X"$as_dir" : 'X\(//\)[^/]' \| \
21229	 X"$as_dir" : 'X\(//\)$' \| \
21230	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21231echo X"$as_dir" |
21232    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21233	    s//\1/
21234	    q
21235	  }
21236	  /^X\(\/\/\)[^/].*/{
21237	    s//\1/
21238	    q
21239	  }
21240	  /^X\(\/\/\)$/{
21241	    s//\1/
21242	    q
21243	  }
21244	  /^X\(\/\).*/{
21245	    s//\1/
21246	    q
21247	  }
21248	  s/.*/./; q'`
21249      test -d "$as_dir" && break
21250    done
21251    test -z "$as_dirs" || eval "mkdir $as_dirs"
21252  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21253echo "$as_me: error: cannot create directory $as_dir" >&2;}
21254   { (exit 1); exit 1; }; }; }
21255  ac_builddir=.
21256
21257case "$ac_dir" in
21258.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21259*)
21260  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21261  # A ".." for each directory in $ac_dir_suffix.
21262  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21263  case $ac_top_builddir_sub in
21264  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21265  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21266  esac ;;
21267esac
21268ac_abs_top_builddir=$ac_pwd
21269ac_abs_builddir=$ac_pwd$ac_dir_suffix
21270# for backward compatibility:
21271ac_top_builddir=$ac_top_build_prefix
21272
21273case $srcdir in
21274  .)  # We are building in place.
21275    ac_srcdir=.
21276    ac_top_srcdir=$ac_top_builddir_sub
21277    ac_abs_top_srcdir=$ac_pwd ;;
21278  [\\/]* | ?:[\\/]* )  # Absolute name.
21279    ac_srcdir=$srcdir$ac_dir_suffix;
21280    ac_top_srcdir=$srcdir
21281    ac_abs_top_srcdir=$srcdir ;;
21282  *) # Relative name.
21283    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21284    ac_top_srcdir=$ac_top_build_prefix$srcdir
21285    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21286esac
21287ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21288
21289
21290  case $ac_mode in
21291  :F)
21292  #
21293  # CONFIG_FILE
21294  #
21295
21296  case $INSTALL in
21297  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21298  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21299  esac
21300_ACEOF
21301
21302cat >>$CONFIG_STATUS <<\_ACEOF
21303# If the template does not know about datarootdir, expand it.
21304# FIXME: This hack should be removed a few years after 2.60.
21305ac_datarootdir_hack=; ac_datarootdir_seen=
21306
21307case `sed -n '/datarootdir/ {
21308  p
21309  q
21310}
21311/@datadir@/p
21312/@docdir@/p
21313/@infodir@/p
21314/@localedir@/p
21315/@mandir@/p
21316' $ac_file_inputs` in
21317*datarootdir*) ac_datarootdir_seen=yes;;
21318*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21319  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21320echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21321_ACEOF
21322cat >>$CONFIG_STATUS <<_ACEOF
21323  ac_datarootdir_hack='
21324  s&@datadir@&$datadir&g
21325  s&@docdir@&$docdir&g
21326  s&@infodir@&$infodir&g
21327  s&@localedir@&$localedir&g
21328  s&@mandir@&$mandir&g
21329    s&\\\${datarootdir}&$datarootdir&g' ;;
21330esac
21331_ACEOF
21332
21333# Neutralize VPATH when `$srcdir' = `.'.
21334# Shell code in configure.ac might set extrasub.
21335# FIXME: do we really want to maintain this feature?
21336cat >>$CONFIG_STATUS <<_ACEOF
21337  sed "$ac_vpsub
21338$extrasub
21339_ACEOF
21340cat >>$CONFIG_STATUS <<\_ACEOF
21341:t
21342/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21343s&@configure_input@&$configure_input&;t t
21344s&@top_builddir@&$ac_top_builddir_sub&;t t
21345s&@srcdir@&$ac_srcdir&;t t
21346s&@abs_srcdir@&$ac_abs_srcdir&;t t
21347s&@top_srcdir@&$ac_top_srcdir&;t t
21348s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21349s&@builddir@&$ac_builddir&;t t
21350s&@abs_builddir@&$ac_abs_builddir&;t t
21351s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21352s&@INSTALL@&$ac_INSTALL&;t t
21353$ac_datarootdir_hack
21354" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21355
21356test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21357  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21358  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21359  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21360which seems to be undefined.  Please make sure it is defined." >&5
21361echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21362which seems to be undefined.  Please make sure it is defined." >&2;}
21363
21364  rm -f "$tmp/stdin"
21365  case $ac_file in
21366  -) cat "$tmp/out"; rm -f "$tmp/out";;
21367  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21368  esac
21369 ;;
21370  :H)
21371  #
21372  # CONFIG_HEADER
21373  #
21374_ACEOF
21375
21376# Transform confdefs.h into a sed script `conftest.defines', that
21377# substitutes the proper values into config.h.in to produce config.h.
21378rm -f conftest.defines conftest.tail
21379# First, append a space to every undef/define line, to ease matching.
21380echo 's/$/ /' >conftest.defines
21381# Then, protect against being on the right side of a sed subst, or in
21382# an unquoted here document, in config.status.  If some macros were
21383# called several times there might be several #defines for the same
21384# symbol, which is useless.  But do not sort them, since the last
21385# AC_DEFINE must be honored.
21386ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21387# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21388# NAME is the cpp macro being defined, VALUE is the value it is being given.
21389# PARAMS is the parameter list in the macro definition--in most cases, it's
21390# just an empty string.
21391ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
21392ac_dB='\\)[	 (].*,\\1define\\2'
21393ac_dC=' '
21394ac_dD=' ,'
21395
21396uniq confdefs.h |
21397  sed -n '
21398	t rset
21399	:rset
21400	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
21401	t ok
21402	d
21403	:ok
21404	s/[\\&,]/\\&/g
21405	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21406	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21407  ' >>conftest.defines
21408
21409# Remove the space that was appended to ease matching.
21410# Then replace #undef with comments.  This is necessary, for
21411# example, in the case of _POSIX_SOURCE, which is predefined and required
21412# on some systems where configure will not decide to define it.
21413# (The regexp can be short, since the line contains either #define or #undef.)
21414echo 's/ $//
21415s,^[	 #]*u.*,/* & */,' >>conftest.defines
21416
21417# Break up conftest.defines:
21418ac_max_sed_lines=50
21419
21420# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21421# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21422# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21423# et cetera.
21424ac_in='$ac_file_inputs'
21425ac_out='"$tmp/out1"'
21426ac_nxt='"$tmp/out2"'
21427
21428while :
21429do
21430  # Write a here document:
21431    cat >>$CONFIG_STATUS <<_ACEOF
21432    # First, check the format of the line:
21433    cat >"\$tmp/defines.sed" <<\\CEOF
21434/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
21435/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
21436b
21437:def
21438_ACEOF
21439  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21440  echo 'CEOF
21441    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21442  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21443  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21444  grep . conftest.tail >/dev/null || break
21445  rm -f conftest.defines
21446  mv conftest.tail conftest.defines
21447done
21448rm -f conftest.defines conftest.tail
21449
21450echo "ac_result=$ac_in" >>$CONFIG_STATUS
21451cat >>$CONFIG_STATUS <<\_ACEOF
21452  if test x"$ac_file" != x-; then
21453    echo "/* $configure_input  */" >"$tmp/config.h"
21454    cat "$ac_result" >>"$tmp/config.h"
21455    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21456      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21457echo "$as_me: $ac_file is unchanged" >&6;}
21458    else
21459      rm -f $ac_file
21460      mv "$tmp/config.h" $ac_file
21461    fi
21462  else
21463    echo "/* $configure_input  */"
21464    cat "$ac_result"
21465  fi
21466  rm -f "$tmp/out12"
21467# Compute $ac_file's index in $config_headers.
21468_am_stamp_count=1
21469for _am_header in $config_headers :; do
21470  case $_am_header in
21471    $ac_file | $ac_file:* )
21472      break ;;
21473    * )
21474      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21475  esac
21476done
21477echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21478$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21479	 X$ac_file : 'X\(//\)[^/]' \| \
21480	 X$ac_file : 'X\(//\)$' \| \
21481	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21482echo X$ac_file |
21483    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21484	    s//\1/
21485	    q
21486	  }
21487	  /^X\(\/\/\)[^/].*/{
21488	    s//\1/
21489	    q
21490	  }
21491	  /^X\(\/\/\)$/{
21492	    s//\1/
21493	    q
21494	  }
21495	  /^X\(\/\).*/{
21496	    s//\1/
21497	    q
21498	  }
21499	  s/.*/./; q'`/stamp-h$_am_stamp_count
21500 ;;
21501
21502  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21503echo "$as_me: executing $ac_file commands" >&6;}
21504 ;;
21505  esac
21506
21507
21508  case $ac_file$ac_mode in
21509    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21510  # Strip MF so we end up with the name of the file.
21511  mf=`echo "$mf" | sed -e 's/:.*$//'`
21512  # Check whether this is an Automake generated Makefile or not.
21513  # We used to match only the files named `Makefile.in', but
21514  # some people rename them; so instead we look at the file content.
21515  # Grep'ing the first line is not enough: some people post-process
21516  # each Makefile.in and add a new line on top of each file to say so.
21517  # So let's grep whole file.
21518  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21519    dirpart=`$as_dirname -- "$mf" ||
21520$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21521	 X"$mf" : 'X\(//\)[^/]' \| \
21522	 X"$mf" : 'X\(//\)$' \| \
21523	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21524echo X"$mf" |
21525    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21526	    s//\1/
21527	    q
21528	  }
21529	  /^X\(\/\/\)[^/].*/{
21530	    s//\1/
21531	    q
21532	  }
21533	  /^X\(\/\/\)$/{
21534	    s//\1/
21535	    q
21536	  }
21537	  /^X\(\/\).*/{
21538	    s//\1/
21539	    q
21540	  }
21541	  s/.*/./; q'`
21542  else
21543    continue
21544  fi
21545  # Extract the definition of DEPDIR, am__include, and am__quote
21546  # from the Makefile without running `make'.
21547  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21548  test -z "$DEPDIR" && continue
21549  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21550  test -z "am__include" && continue
21551  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21552  # When using ansi2knr, U may be empty or an underscore; expand it
21553  U=`sed -n 's/^U = //p' < "$mf"`
21554  # Find all dependency output files, they are included files with
21555  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21556  # simplest approach to changing $(DEPDIR) to its actual value in the
21557  # expansion.
21558  for file in `sed -n "
21559    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21560       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21561    # Make sure the directory exists.
21562    test -f "$dirpart/$file" && continue
21563    fdir=`$as_dirname -- "$file" ||
21564$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21565	 X"$file" : 'X\(//\)[^/]' \| \
21566	 X"$file" : 'X\(//\)$' \| \
21567	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21568echo X"$file" |
21569    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21570	    s//\1/
21571	    q
21572	  }
21573	  /^X\(\/\/\)[^/].*/{
21574	    s//\1/
21575	    q
21576	  }
21577	  /^X\(\/\/\)$/{
21578	    s//\1/
21579	    q
21580	  }
21581	  /^X\(\/\).*/{
21582	    s//\1/
21583	    q
21584	  }
21585	  s/.*/./; q'`
21586    { as_dir=$dirpart/$fdir
21587  case $as_dir in #(
21588  -*) as_dir=./$as_dir;;
21589  esac
21590  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21591    as_dirs=
21592    while :; do
21593      case $as_dir in #(
21594      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21595      *) as_qdir=$as_dir;;
21596      esac
21597      as_dirs="'$as_qdir' $as_dirs"
21598      as_dir=`$as_dirname -- "$as_dir" ||
21599$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21600	 X"$as_dir" : 'X\(//\)[^/]' \| \
21601	 X"$as_dir" : 'X\(//\)$' \| \
21602	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21603echo X"$as_dir" |
21604    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21605	    s//\1/
21606	    q
21607	  }
21608	  /^X\(\/\/\)[^/].*/{
21609	    s//\1/
21610	    q
21611	  }
21612	  /^X\(\/\/\)$/{
21613	    s//\1/
21614	    q
21615	  }
21616	  /^X\(\/\).*/{
21617	    s//\1/
21618	    q
21619	  }
21620	  s/.*/./; q'`
21621      test -d "$as_dir" && break
21622    done
21623    test -z "$as_dirs" || eval "mkdir $as_dirs"
21624  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21625echo "$as_me: error: cannot create directory $as_dir" >&2;}
21626   { (exit 1); exit 1; }; }; }
21627    # echo "creating $dirpart/$file"
21628    echo '# dummy' > "$dirpart/$file"
21629  done
21630done
21631 ;;
21632
21633  esac
21634done # for ac_tag
21635
21636
21637{ (exit 0); exit 0; }
21638_ACEOF
21639chmod +x $CONFIG_STATUS
21640ac_clean_files=$ac_clean_files_save
21641
21642
21643# configure is writing to config.log, and then calls config.status.
21644# config.status does its own redirection, appending to config.log.
21645# Unfortunately, on DOS this fails, as config.log is still kept open
21646# by configure, so config.status won't be able to write to it; its
21647# output is simply discarded.  So we exec the FD to /dev/null,
21648# effectively closing config.log, so it can be properly (re)opened and
21649# appended to by config.status.  When coming back to configure, we
21650# need to make the FD available again.
21651if test "$no_create" != yes; then
21652  ac_cs_success=:
21653  ac_config_status_args=
21654  test "$silent" = yes &&
21655    ac_config_status_args="$ac_config_status_args --quiet"
21656  exec 5>/dev/null
21657  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21658  exec 5>>config.log
21659  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21660  # would make configure fail if this is the last instruction.
21661  $ac_cs_success || { (exit 1); exit 1; }
21662fi
21663
21664
21665