1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.60 for libsexy 0.1.11.
4#
5# Report bugs to <chipx86@chipx86.com>.
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# Copyright 2005-2006 Christian Hammond
13## --------------------- ##
14## M4sh Initialization.  ##
15## --------------------- ##
16
17# Be Bourne compatible
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19  emulate sh
20  NULLCMD=:
21  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22  # is contrary to our usage.  Disable this feature.
23  alias -g '${1+"$@"}'='"$@"'
24  setopt NO_GLOB_SUBST
25else
26  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27fi
28BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42  echo "#! /bin/sh" >conf$$.sh
43  echo  "exit 0"   >>conf$$.sh
44  chmod +x conf$$.sh
45  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46    PATH_SEPARATOR=';'
47  else
48    PATH_SEPARATOR=:
49  fi
50  rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55  as_unset=unset
56else
57  as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order.  Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" ""	$as_nl"
69
70# Find who we are.  Look in the path if we contain no directory separator.
71case $0 in
72  *[\\/]* ) as_myself=$0 ;;
73  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76  IFS=$as_save_IFS
77  test -z "$as_dir" && as_dir=.
78  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82     ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87  as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91  { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106  LC_TELEPHONE LC_TIME
107do
108  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109    eval $as_var=C; export $as_var
110  else
111    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112  fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117   test "X`expr 00001 : '.*\(...\)'`" = X001; then
118  as_expr=expr
119else
120  as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124  as_basename=basename
125else
126  as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133	 X"$0" : 'X\(//\)$' \| \
134	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136    sed '/^.*\/\([^/][^/]*\)\/*$/{
137	    s//\1/
138	    q
139	  }
140	  /^X\/\(\/\/\)$/{
141	    s//\1/
142	    q
143	  }
144	  /^X\/\(\/\).*/{
145	    s//\1/
146	    q
147	  }
148	  s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155  if (eval ":") 2>/dev/null; then
156  as_have_required=yes
157else
158  as_have_required=no
159fi
160
161  if test $as_have_required = yes && 	 (eval ":
162(as_func_return () {
163  (exit \$1)
164}
165as_func_success () {
166  as_func_return 0
167}
168as_func_failure () {
169  as_func_return 1
170}
171as_func_ret_success () {
172  return 0
173}
174as_func_ret_failure () {
175  return 1
176}
177
178exitcode=0
179if as_func_success; then
180  :
181else
182  exitcode=1
183  echo as_func_success failed.
184fi
185
186if as_func_failure; then
187  exitcode=1
188  echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192  :
193else
194  exitcode=1
195  echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199  exitcode=1
200  echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204  :
205else
206  exitcode=1
207  echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213  as_lineno_1=\$LINENO
214  as_lineno_2=\$LINENO
215  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218  :
219else
220  as_candidate_shells=
221    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  case $as_dir in
227	 /*)
228	   for as_base in sh bash ksh sh5; do
229	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230	   done;;
231       esac
232done
233IFS=$as_save_IFS
234
235
236      for as_shell in $as_candidate_shells $SHELL; do
237	 # Try only shells that exist, to save several forks.
238	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239		{ ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242  emulate sh
243  NULLCMD=:
244  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245  # is contrary to our usage.  Disable this feature.
246  alias -g '${1+"$@"}'='"$@"'
247  setopt NO_GLOB_SUBST
248else
249  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257  CONFIG_SHELL=$as_shell
258	       as_have_required=yes
259	       if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276  (exit $1)
277}
278as_func_success () {
279  as_func_return 0
280}
281as_func_failure () {
282  as_func_return 1
283}
284as_func_ret_success () {
285  return 0
286}
287as_func_ret_failure () {
288  return 1
289}
290
291exitcode=0
292if as_func_success; then
293  :
294else
295  exitcode=1
296  echo as_func_success failed.
297fi
298
299if as_func_failure; then
300  exitcode=1
301  echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305  :
306else
307  exitcode=1
308  echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312  exitcode=1
313  echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317  :
318else
319  exitcode=1
320  echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
326  as_lineno_1=$LINENO
327  as_lineno_2=$LINENO
328  test "x$as_lineno_1" != "x$as_lineno_2" &&
329  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333  break
334fi
335
336fi
337
338      done
339
340      if test "x$CONFIG_SHELL" != x; then
341  for as_var in BASH_ENV ENV
342        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343        done
344        export CONFIG_SHELL
345        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349    if test $as_have_required = no; then
350  echo This script requires a shell more modern than all the
351      echo shells that I found on your system.  Please install a
352      echo modern shell, or manually run the script under such a
353      echo shell if you do have one.
354      { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365  (exit \$1)
366}
367as_func_success () {
368  as_func_return 0
369}
370as_func_failure () {
371  as_func_return 1
372}
373as_func_ret_success () {
374  return 0
375}
376as_func_ret_failure () {
377  return 1
378}
379
380exitcode=0
381if as_func_success; then
382  :
383else
384  exitcode=1
385  echo as_func_success failed.
386fi
387
388if as_func_failure; then
389  exitcode=1
390  echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394  :
395else
396  exitcode=1
397  echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401  exitcode=1
402  echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406  :
407else
408  exitcode=1
409  echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413  echo No shell found that supports shell functions.
414  echo Please tell autoconf@gnu.org about your system,
415  echo including any error possibly output before this
416  echo message
417}
418
419
420
421  as_lineno_1=$LINENO
422  as_lineno_2=$LINENO
423  test "x$as_lineno_1" != "x$as_lineno_2" &&
424  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427  # uniformly replaced by the line number.  The first 'sed' inserts a
428  # line-number line after each line using $LINENO; the second 'sed'
429  # does the real work.  The second script uses 'N' to pair each
430  # line-number line with the line containing $LINENO, and appends
431  # trailing '-' during substitution so that $LINENO is not a special
432  # case at line end.
433  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434  # scripts with optimization help from Paolo Bonzini.  Blame Lee
435  # E. McMahon (1931-1989) for sed's syntax.  :-)
436  sed -n '
437    p
438    /[$]LINENO/=
439  ' <$as_myself |
440    sed '
441      s/[$]LINENO.*/&-/
442      t lineno
443      b
444      :lineno
445      N
446      :loop
447      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448      t loop
449      s/-\n.*//
450    ' >$as_me.lineno &&
451  chmod +x "$as_me.lineno" ||
452    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453   { (exit 1); exit 1; }; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473  case `echo 'x\c'` in
474  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
475  *)   ECHO_C='\c';;
476  esac;;
477*)
478  ECHO_N='-n';;
479esac
480
481if expr a : '\(a\)' >/dev/null 2>&1 &&
482   test "X`expr 00001 : '.*\(...\)'`" = X001; then
483  as_expr=expr
484else
485  as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
489if test -d conf$$.dir; then
490  rm -f conf$$.dir/conf$$.file
491else
492  rm -f conf$$.dir
493  mkdir conf$$.dir
494fi
495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
497  as_ln_s='ln -s'
498  # ... but there are two gotchas:
499  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501  # In both cases, we have to default to `cp -p'.
502  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503    as_ln_s='cp -p'
504elif ln conf$$.file conf$$ 2>/dev/null; then
505  as_ln_s=ln
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p=:
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527  as_executable_p="test -x"
528else
529  as_executable_p=:
530fi
531rm -f conf$$.file
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547  # Remove one level of quotation (which was required for Make).
548  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549  ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554  # Discard the --no-reexec flag, and continue.
555  shift
556elif test "X$1" = X--fallback-echo; then
557  # Avoid inline document here, it may be left over
558  :
559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
560  # Yippee, $echo works!
561  :
562else
563  # Restart under the correct shell.
564  exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568  # used as fallback echo
569  shift
570  cat <<EOF
571$*
572EOF
573  exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
585    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586       echo_test_string=`eval $cmd` &&
587       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588    then
589      break
590    fi
591  done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596   test "X$echo_testing_string" = "X$echo_test_string"; then
597  :
598else
599  # The Solaris, AIX, and Digital Unix default echo programs unquote
600  # backslashes.  This makes it impossible to quote backslashes using
601  #   echo "$something" | sed 's/\\/\\\\/g'
602  #
603  # So, first we look for a working echo in the user's PATH.
604
605  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
606  for dir in $PATH /usr/ucb; do
607    IFS="$lt_save_ifs"
608    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611       test "X$echo_testing_string" = "X$echo_test_string"; then
612      echo="$dir/echo"
613      break
614    fi
615  done
616  IFS="$lt_save_ifs"
617
618  if test "X$echo" = Xecho; then
619    # We didn't find a better echo, so look for alternatives.
620    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622       test "X$echo_testing_string" = "X$echo_test_string"; then
623      # This shell has a builtin print -r that does the trick.
624      echo='print -r'
625    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626	 test "X$CONFIG_SHELL" != X/bin/ksh; then
627      # If we have ksh, try running configure again with it.
628      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629      export ORIGINAL_CONFIG_SHELL
630      CONFIG_SHELL=/bin/ksh
631      export CONFIG_SHELL
632      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633    else
634      # Try using printf.
635      echo='printf %s\n'
636      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638	 test "X$echo_testing_string" = "X$echo_test_string"; then
639	# Cool, printf works
640	:
641      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642	   test "X$echo_testing_string" = 'X\t' &&
643	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644	   test "X$echo_testing_string" = "X$echo_test_string"; then
645	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646	export CONFIG_SHELL
647	SHELL="$CONFIG_SHELL"
648	export SHELL
649	echo="$CONFIG_SHELL $0 --fallback-echo"
650      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651	   test "X$echo_testing_string" = 'X\t' &&
652	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653	   test "X$echo_testing_string" = "X$echo_test_string"; then
654	echo="$CONFIG_SHELL $0 --fallback-echo"
655      else
656	# maybe with a smaller string...
657	prev=:
658
659	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661	  then
662	    break
663	  fi
664	  prev="$cmd"
665	done
666
667	if test "$prev" != 'sed 50q "$0"'; then
668	  echo_test_string=`eval $prev`
669	  export echo_test_string
670	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671	else
672	  # Oops.  We lost completely, so just stick with echo.
673	  echo=echo
674	fi
675      fi
676    fi
677  fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
690
691tagnames=${tagnames+${tagnames},}CXX
692
693tagnames=${tagnames+${tagnames},}F77
694
695exec 7<&0 </dev/null 6>&1
696
697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
706ac_clean_files=
707ac_config_libobj_dir=.
708LIBOBJS=
709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
715# Identity of this package.
716PACKAGE_NAME='libsexy'
717PACKAGE_TARNAME='libsexy'
718PACKAGE_VERSION='0.1.11'
719PACKAGE_STRING='libsexy 0.1.11'
720PACKAGE_BUGREPORT='chipx86@chipx86.com'
721
722ac_unique_file="config.h.in"
723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
726#if HAVE_SYS_TYPES_H
727# include <sys/types.h>
728#endif
729#if HAVE_SYS_STAT_H
730# include <sys/stat.h>
731#endif
732#if STDC_HEADERS
733# include <stdlib.h>
734# include <stddef.h>
735#else
736# if HAVE_STDLIB_H
737#  include <stdlib.h>
738# endif
739#endif
740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
742#  include <memory.h>
743# endif
744# include <string.h>
745#endif
746#if HAVE_STRINGS_H
747# include <strings.h>
748#endif
749#if HAVE_INTTYPES_H
750# include <inttypes.h>
751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
754#endif
755#if HAVE_UNISTD_H
756# include <unistd.h>
757#endif"
758
759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LT_RELEASE
797LT_CURRENT
798LT_REVISION
799LT_AGE
800INSTALL_PROGRAM
801INSTALL_SCRIPT
802INSTALL_DATA
803CYGPATH_W
804PACKAGE
805VERSION
806ACLOCAL
807AUTOCONF
808AUTOMAKE
809AUTOHEADER
810MAKEINFO
811install_sh
812STRIP
813INSTALL_STRIP_PROGRAM
814mkdir_p
815AWK
816SET_MAKE
817am__leading_dot
818AMTAR
819am__tar
820am__untar
821CC
822CFLAGS
823LDFLAGS
824CPPFLAGS
825ac_ct_CC
826EXEEXT
827OBJEXT
828DEPDIR
829am__include
830am__quote
831AMDEP_TRUE
832AMDEP_FALSE
833AMDEPBACKSLASH
834CCDEPMODE
835am__fastdepCC_TRUE
836am__fastdepCC_FALSE
837CPP
838LN_S
839GREP
840EGREP
841build
842build_cpu
843build_vendor
844build_os
845host
846host_cpu
847host_vendor
848host_os
849ECHO
850AR
851RANLIB
852CXX
853CXXFLAGS
854ac_ct_CXX
855CXXDEPMODE
856am__fastdepCXX_TRUE
857am__fastdepCXX_FALSE
858CXXCPP
859F77
860FFLAGS
861ac_ct_F77
862LIBTOOL
863PKG_CONFIG
864PACKAGE_CFLAGS
865PACKAGE_LIBS
866GLIB_GENMARSHAL
867NO_UNDEFINED
868PERL
869REBUILD
870HTML_DIR
871ENABLE_GTK_DOC_TRUE
872ENABLE_GTK_DOC_FALSE
873GTK_DOC_USE_LIBTOOL_TRUE
874GTK_DOC_USE_LIBTOOL_FALSE
875LIBOBJS
876LTLIBOBJS'
877ac_subst_files=''
878      ac_precious_vars='build_alias
879host_alias
880target_alias
881CC
882CFLAGS
883LDFLAGS
884CPPFLAGS
885CPP
886CXX
887CXXFLAGS
888CCC
889CXXCPP
890F77
891FFLAGS
892PKG_CONFIG
893PACKAGE_CFLAGS
894PACKAGE_LIBS'
895
896
897# Initialize some variables set by options.
898ac_init_help=
899ac_init_version=false
900# The variables have the same names as the options, with
901# dashes changed to underlines.
902cache_file=/dev/null
903exec_prefix=NONE
904no_create=
905no_recursion=
906prefix=NONE
907program_prefix=NONE
908program_suffix=NONE
909program_transform_name=s,x,x,
910silent=
911site=
912srcdir=
913verbose=
914x_includes=NONE
915x_libraries=NONE
916
917# Installation directory options.
918# These are left unexpanded so users can "make install exec_prefix=/foo"
919# and all the variables that are supposed to be based on exec_prefix
920# by default will actually change.
921# Use braces instead of parens because sh, perl, etc. also accept them.
922# (The list follows the same order as the GNU Coding Standards.)
923bindir='${exec_prefix}/bin'
924sbindir='${exec_prefix}/sbin'
925libexecdir='${exec_prefix}/libexec'
926datarootdir='${prefix}/share'
927datadir='${datarootdir}'
928sysconfdir='${prefix}/etc'
929sharedstatedir='${prefix}/com'
930localstatedir='${prefix}/var'
931includedir='${prefix}/include'
932oldincludedir='/usr/include'
933docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934infodir='${datarootdir}/info'
935htmldir='${docdir}'
936dvidir='${docdir}'
937pdfdir='${docdir}'
938psdir='${docdir}'
939libdir='${exec_prefix}/lib'
940localedir='${datarootdir}/locale'
941mandir='${datarootdir}/man'
942
943ac_prev=
944ac_dashdash=
945for ac_option
946do
947  # If the previous option needs an argument, assign it.
948  if test -n "$ac_prev"; then
949    eval $ac_prev=\$ac_option
950    ac_prev=
951    continue
952  fi
953
954  case $ac_option in
955  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956  *)	ac_optarg=yes ;;
957  esac
958
959  # Accept the important Cygnus configure options, so we can diagnose typos.
960
961  case $ac_dashdash$ac_option in
962  --)
963    ac_dashdash=yes ;;
964
965  -bindir | --bindir | --bindi | --bind | --bin | --bi)
966    ac_prev=bindir ;;
967  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968    bindir=$ac_optarg ;;
969
970  -build | --build | --buil | --bui | --bu)
971    ac_prev=build_alias ;;
972  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973    build_alias=$ac_optarg ;;
974
975  -cache-file | --cache-file | --cache-fil | --cache-fi \
976  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977    ac_prev=cache_file ;;
978  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980    cache_file=$ac_optarg ;;
981
982  --config-cache | -C)
983    cache_file=config.cache ;;
984
985  -datadir | --datadir | --datadi | --datad)
986    ac_prev=datadir ;;
987  -datadir=* | --datadir=* | --datadi=* | --datad=*)
988    datadir=$ac_optarg ;;
989
990  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991  | --dataroo | --dataro | --datar)
992    ac_prev=datarootdir ;;
993  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995    datarootdir=$ac_optarg ;;
996
997  -disable-* | --disable-*)
998    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999    # Reject names that are not valid shell variable names.
1000    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1001      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002   { (exit 1); exit 1; }; }
1003    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1004    eval enable_$ac_feature=no ;;
1005
1006  -docdir | --docdir | --docdi | --doc | --do)
1007    ac_prev=docdir ;;
1008  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009    docdir=$ac_optarg ;;
1010
1011  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012    ac_prev=dvidir ;;
1013  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014    dvidir=$ac_optarg ;;
1015
1016  -enable-* | --enable-*)
1017    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018    # Reject names that are not valid shell variable names.
1019    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1020      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021   { (exit 1); exit 1; }; }
1022    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1023    eval enable_$ac_feature=\$ac_optarg ;;
1024
1025  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027  | --exec | --exe | --ex)
1028    ac_prev=exec_prefix ;;
1029  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031  | --exec=* | --exe=* | --ex=*)
1032    exec_prefix=$ac_optarg ;;
1033
1034  -gas | --gas | --ga | --g)
1035    # Obsolete; use --with-gas.
1036    with_gas=yes ;;
1037
1038  -help | --help | --hel | --he | -h)
1039    ac_init_help=long ;;
1040  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041    ac_init_help=recursive ;;
1042  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043    ac_init_help=short ;;
1044
1045  -host | --host | --hos | --ho)
1046    ac_prev=host_alias ;;
1047  -host=* | --host=* | --hos=* | --ho=*)
1048    host_alias=$ac_optarg ;;
1049
1050  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051    ac_prev=htmldir ;;
1052  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053  | --ht=*)
1054    htmldir=$ac_optarg ;;
1055
1056  -includedir | --includedir | --includedi | --included | --include \
1057  | --includ | --inclu | --incl | --inc)
1058    ac_prev=includedir ;;
1059  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060  | --includ=* | --inclu=* | --incl=* | --inc=*)
1061    includedir=$ac_optarg ;;
1062
1063  -infodir | --infodir | --infodi | --infod | --info | --inf)
1064    ac_prev=infodir ;;
1065  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066    infodir=$ac_optarg ;;
1067
1068  -libdir | --libdir | --libdi | --libd)
1069    ac_prev=libdir ;;
1070  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071    libdir=$ac_optarg ;;
1072
1073  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074  | --libexe | --libex | --libe)
1075    ac_prev=libexecdir ;;
1076  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077  | --libexe=* | --libex=* | --libe=*)
1078    libexecdir=$ac_optarg ;;
1079
1080  -localedir | --localedir | --localedi | --localed | --locale)
1081    ac_prev=localedir ;;
1082  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083    localedir=$ac_optarg ;;
1084
1085  -localstatedir | --localstatedir | --localstatedi | --localstated \
1086  | --localstate | --localstat | --localsta | --localst | --locals)
1087    ac_prev=localstatedir ;;
1088  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090    localstatedir=$ac_optarg ;;
1091
1092  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093    ac_prev=mandir ;;
1094  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095    mandir=$ac_optarg ;;
1096
1097  -nfp | --nfp | --nf)
1098    # Obsolete; use --without-fp.
1099    with_fp=no ;;
1100
1101  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102  | --no-cr | --no-c | -n)
1103    no_create=yes ;;
1104
1105  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107    no_recursion=yes ;;
1108
1109  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111  | --oldin | --oldi | --old | --ol | --o)
1112    ac_prev=oldincludedir ;;
1113  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116    oldincludedir=$ac_optarg ;;
1117
1118  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119    ac_prev=prefix ;;
1120  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121    prefix=$ac_optarg ;;
1122
1123  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124  | --program-pre | --program-pr | --program-p)
1125    ac_prev=program_prefix ;;
1126  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128    program_prefix=$ac_optarg ;;
1129
1130  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131  | --program-suf | --program-su | --program-s)
1132    ac_prev=program_suffix ;;
1133  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135    program_suffix=$ac_optarg ;;
1136
1137  -program-transform-name | --program-transform-name \
1138  | --program-transform-nam | --program-transform-na \
1139  | --program-transform-n | --program-transform- \
1140  | --program-transform | --program-transfor \
1141  | --program-transfo | --program-transf \
1142  | --program-trans | --program-tran \
1143  | --progr-tra | --program-tr | --program-t)
1144    ac_prev=program_transform_name ;;
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    program_transform_name=$ac_optarg ;;
1153
1154  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155    ac_prev=pdfdir ;;
1156  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157    pdfdir=$ac_optarg ;;
1158
1159  -psdir | --psdir | --psdi | --psd | --ps)
1160    ac_prev=psdir ;;
1161  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162    psdir=$ac_optarg ;;
1163
1164  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165  | -silent | --silent | --silen | --sile | --sil)
1166    silent=yes ;;
1167
1168  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169    ac_prev=sbindir ;;
1170  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171  | --sbi=* | --sb=*)
1172    sbindir=$ac_optarg ;;
1173
1174  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176  | --sharedst | --shareds | --shared | --share | --shar \
1177  | --sha | --sh)
1178    ac_prev=sharedstatedir ;;
1179  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182  | --sha=* | --sh=*)
1183    sharedstatedir=$ac_optarg ;;
1184
1185  -site | --site | --sit)
1186    ac_prev=site ;;
1187  -site=* | --site=* | --sit=*)
1188    site=$ac_optarg ;;
1189
1190  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191    ac_prev=srcdir ;;
1192  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193    srcdir=$ac_optarg ;;
1194
1195  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196  | --syscon | --sysco | --sysc | --sys | --sy)
1197    ac_prev=sysconfdir ;;
1198  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200    sysconfdir=$ac_optarg ;;
1201
1202  -target | --target | --targe | --targ | --tar | --ta | --t)
1203    ac_prev=target_alias ;;
1204  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205    target_alias=$ac_optarg ;;
1206
1207  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208    verbose=yes ;;
1209
1210  -version | --version | --versio | --versi | --vers | -V)
1211    ac_init_version=: ;;
1212
1213  -with-* | --with-*)
1214    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215    # Reject names that are not valid shell variable names.
1216    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1217      { echo "$as_me: error: invalid package name: $ac_package" >&2
1218   { (exit 1); exit 1; }; }
1219    ac_package=`echo $ac_package| sed 's/-/_/g'`
1220    eval with_$ac_package=\$ac_optarg ;;
1221
1222  -without-* | --without-*)
1223    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224    # Reject names that are not valid shell variable names.
1225    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1226      { echo "$as_me: error: invalid package name: $ac_package" >&2
1227   { (exit 1); exit 1; }; }
1228    ac_package=`echo $ac_package | sed 's/-/_/g'`
1229    eval with_$ac_package=no ;;
1230
1231  --x)
1232    # Obsolete; use --with-x.
1233    with_x=yes ;;
1234
1235  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236  | --x-incl | --x-inc | --x-in | --x-i)
1237    ac_prev=x_includes ;;
1238  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240    x_includes=$ac_optarg ;;
1241
1242  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244    ac_prev=x_libraries ;;
1245  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247    x_libraries=$ac_optarg ;;
1248
1249  -*) { echo "$as_me: error: unrecognized option: $ac_option
1250Try \`$0 --help' for more information." >&2
1251   { (exit 1); exit 1; }; }
1252    ;;
1253
1254  *=*)
1255    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256    # Reject names that are not valid shell variable names.
1257    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259   { (exit 1); exit 1; }; }
1260    eval $ac_envvar=\$ac_optarg
1261    export $ac_envvar ;;
1262
1263  *)
1264    # FIXME: should be removed in autoconf 3.0.
1265    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269    ;;
1270
1271  esac
1272done
1273
1274if test -n "$ac_prev"; then
1275  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276  { echo "$as_me: error: missing argument to $ac_option" >&2
1277   { (exit 1); exit 1; }; }
1278fi
1279
1280# Be sure to have absolute directory names.
1281for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282		datadir sysconfdir sharedstatedir localstatedir includedir \
1283		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284		libdir localedir mandir
1285do
1286  eval ac_val=\$$ac_var
1287  case $ac_val in
1288    [\\/$]* | ?:[\\/]* )  continue;;
1289    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290  esac
1291  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292   { (exit 1); exit 1; }; }
1293done
1294
1295# There might be people who depend on the old broken behavior: `$host'
1296# used to hold the argument of --host etc.
1297# FIXME: To remove some day.
1298build=$build_alias
1299host=$host_alias
1300target=$target_alias
1301
1302# FIXME: To remove some day.
1303if test "x$host_alias" != x; then
1304  if test "x$build_alias" = x; then
1305    cross_compiling=maybe
1306    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307    If a cross compiler is detected then cross compile mode will be used." >&2
1308  elif test "x$build_alias" != "x$host_alias"; then
1309    cross_compiling=yes
1310  fi
1311fi
1312
1313ac_tool_prefix=
1314test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316test "$silent" = yes && exec 6>/dev/null
1317
1318
1319ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320ac_ls_di=`ls -di .` &&
1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322  { echo "$as_me: error: Working directory cannot be determined" >&2
1323   { (exit 1); exit 1; }; }
1324test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325  { echo "$as_me: error: pwd does not report name of working directory" >&2
1326   { (exit 1); exit 1; }; }
1327
1328
1329# Find the source files, if location was not specified.
1330if test -z "$srcdir"; then
1331  ac_srcdir_defaulted=yes
1332  # Try the directory containing this script, then the parent directory.
1333  ac_confdir=`$as_dirname -- "$0" ||
1334$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335	 X"$0" : 'X\(//\)[^/]' \| \
1336	 X"$0" : 'X\(//\)$' \| \
1337	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1338echo X"$0" |
1339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340	    s//\1/
1341	    q
1342	  }
1343	  /^X\(\/\/\)[^/].*/{
1344	    s//\1/
1345	    q
1346	  }
1347	  /^X\(\/\/\)$/{
1348	    s//\1/
1349	    q
1350	  }
1351	  /^X\(\/\).*/{
1352	    s//\1/
1353	    q
1354	  }
1355	  s/.*/./; q'`
1356  srcdir=$ac_confdir
1357  if test ! -r "$srcdir/$ac_unique_file"; then
1358    srcdir=..
1359  fi
1360else
1361  ac_srcdir_defaulted=no
1362fi
1363if test ! -r "$srcdir/$ac_unique_file"; then
1364  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366   { (exit 1); exit 1; }; }
1367fi
1368ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369ac_abs_confdir=`(
1370	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1371   { (exit 1); exit 1; }; }
1372	pwd)`
1373# When building in place, set srcdir=.
1374if test "$ac_abs_confdir" = "$ac_pwd"; then
1375  srcdir=.
1376fi
1377# Remove unnecessary trailing slashes from srcdir.
1378# Double slashes in file names in object file debugging info
1379# mess up M-x gdb in Emacs.
1380case $srcdir in
1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382esac
1383for ac_var in $ac_precious_vars; do
1384  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385  eval ac_env_${ac_var}_value=\$${ac_var}
1386  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388done
1389
1390#
1391# Report the --help message.
1392#
1393if test "$ac_init_help" = "long"; then
1394  # Omit some internal or obsolete options to make the list less imposing.
1395  # This message is too long to be a string in the A/UX 3.1 sh.
1396  cat <<_ACEOF
1397\`configure' configures libsexy 0.1.11 to adapt to many kinds of systems.
1398
1399Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402VAR=VALUE.  See below for descriptions of some of the useful variables.
1403
1404Defaults for the options are specified in brackets.
1405
1406Configuration:
1407  -h, --help              display this help and exit
1408      --help=short        display options specific to this package
1409      --help=recursive    display the short help of all the included packages
1410  -V, --version           display version information and exit
1411  -q, --quiet, --silent   do not print \`checking...' messages
1412      --cache-file=FILE   cache test results in FILE [disabled]
1413  -C, --config-cache      alias for \`--cache-file=config.cache'
1414  -n, --no-create         do not create output files
1415      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1416
1417Installation directories:
1418  --prefix=PREFIX         install architecture-independent files in PREFIX
1419			  [$ac_default_prefix]
1420  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1421			  [PREFIX]
1422
1423By default, \`make install' will install all the files in
1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1425an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426for instance \`--prefix=\$HOME'.
1427
1428For better control, use the options below.
1429
1430Fine tuning of the installation directories:
1431  --bindir=DIR           user executables [EPREFIX/bin]
1432  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1433  --libexecdir=DIR       program executables [EPREFIX/libexec]
1434  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1435  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1436  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1437  --libdir=DIR           object code libraries [EPREFIX/lib]
1438  --includedir=DIR       C header files [PREFIX/include]
1439  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1440  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1441  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1442  --infodir=DIR          info documentation [DATAROOTDIR/info]
1443  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1444  --mandir=DIR           man documentation [DATAROOTDIR/man]
1445  --docdir=DIR           documentation root [DATAROOTDIR/doc/libsexy]
1446  --htmldir=DIR          html documentation [DOCDIR]
1447  --dvidir=DIR           dvi documentation [DOCDIR]
1448  --pdfdir=DIR           pdf documentation [DOCDIR]
1449  --psdir=DIR            ps documentation [DOCDIR]
1450_ACEOF
1451
1452  cat <<\_ACEOF
1453
1454Program names:
1455  --program-prefix=PREFIX            prepend PREFIX to installed program names
1456  --program-suffix=SUFFIX            append SUFFIX to installed program names
1457  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1458
1459System types:
1460  --build=BUILD     configure for building on BUILD [guessed]
1461  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1462_ACEOF
1463fi
1464
1465if test -n "$ac_init_help"; then
1466  case $ac_init_help in
1467     short | recursive ) echo "Configuration of libsexy 0.1.11:";;
1468   esac
1469  cat <<\_ACEOF
1470
1471Optional Features:
1472  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1473  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1474  --disable-dependency-tracking  speeds up one-time build
1475  --enable-dependency-tracking   do not reject slow dependency extractors
1476  --enable-shared[=PKGS]  build shared libraries [default=yes]
1477  --enable-static[=PKGS]  build static libraries [default=yes]
1478  --enable-fast-install[=PKGS]
1479                          optimize for fast installation [default=yes]
1480  --disable-libtool-lock  avoid locking (might break parallel builds)
1481  --enable-gtk-doc        use gtk-doc to build documentation default=no
1482
1483Optional Packages:
1484  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1485  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1486  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1487  --with-pic              try to use only PIC/non-PIC objects [default=use
1488                          both]
1489  --with-tags[=TAGS]      include additional configurations [automatic]
1490  --with-html-dir=PATH    path to installed docs
1491
1492Some influential environment variables:
1493  CC          C compiler command
1494  CFLAGS      C compiler flags
1495  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1496              nonstandard directory <lib dir>
1497  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498              you have headers in a nonstandard directory <include dir>
1499  CPP         C preprocessor
1500  CXX         C++ compiler command
1501  CXXFLAGS    C++ compiler flags
1502  CXXCPP      C++ preprocessor
1503  F77         Fortran 77 compiler command
1504  FFLAGS      Fortran 77 compiler flags
1505  PKG_CONFIG  path to pkg-config utility
1506  PACKAGE_CFLAGS
1507              C compiler flags for PACKAGE, overriding pkg-config
1508  PACKAGE_LIBS
1509              linker flags for PACKAGE, overriding pkg-config
1510
1511Use these variables to override the choices made by `configure' or to help
1512it to find libraries and programs with nonstandard names/locations.
1513
1514Report bugs to <chipx86@chipx86.com>.
1515_ACEOF
1516ac_status=$?
1517fi
1518
1519if test "$ac_init_help" = "recursive"; then
1520  # If there are subdirs, report their specific --help.
1521  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522    test -d "$ac_dir" || continue
1523    ac_builddir=.
1524
1525case "$ac_dir" in
1526.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527*)
1528  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1529  # A ".." for each directory in $ac_dir_suffix.
1530  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1531  case $ac_top_builddir_sub in
1532  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534  esac ;;
1535esac
1536ac_abs_top_builddir=$ac_pwd
1537ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538# for backward compatibility:
1539ac_top_builddir=$ac_top_build_prefix
1540
1541case $srcdir in
1542  .)  # We are building in place.
1543    ac_srcdir=.
1544    ac_top_srcdir=$ac_top_builddir_sub
1545    ac_abs_top_srcdir=$ac_pwd ;;
1546  [\\/]* | ?:[\\/]* )  # Absolute name.
1547    ac_srcdir=$srcdir$ac_dir_suffix;
1548    ac_top_srcdir=$srcdir
1549    ac_abs_top_srcdir=$srcdir ;;
1550  *) # Relative name.
1551    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552    ac_top_srcdir=$ac_top_build_prefix$srcdir
1553    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554esac
1555ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557    cd "$ac_dir" || { ac_status=$?; continue; }
1558    # Check for guested configure.
1559    if test -f "$ac_srcdir/configure.gnu"; then
1560      echo &&
1561      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562    elif test -f "$ac_srcdir/configure"; then
1563      echo &&
1564      $SHELL "$ac_srcdir/configure" --help=recursive
1565    else
1566      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567    fi || ac_status=$?
1568    cd "$ac_pwd" || { ac_status=$?; break; }
1569  done
1570fi
1571
1572test -n "$ac_init_help" && exit $ac_status
1573if $ac_init_version; then
1574  cat <<\_ACEOF
1575libsexy configure 0.1.11
1576generated by GNU Autoconf 2.60
1577
1578Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15792002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1580This configure script is free software; the Free Software Foundation
1581gives unlimited permission to copy, distribute and modify it.
1582
1583Copyright 2005-2006 Christian Hammond
1584_ACEOF
1585  exit
1586fi
1587cat >config.log <<_ACEOF
1588This file contains any messages produced by compilers while
1589running configure, to aid debugging if configure makes a mistake.
1590
1591It was created by libsexy $as_me 0.1.11, which was
1592generated by GNU Autoconf 2.60.  Invocation command line was
1593
1594  $ $0 $@
1595
1596_ACEOF
1597exec 5>>config.log
1598{
1599cat <<_ASUNAME
1600## --------- ##
1601## Platform. ##
1602## --------- ##
1603
1604hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1605uname -m = `(uname -m) 2>/dev/null || echo unknown`
1606uname -r = `(uname -r) 2>/dev/null || echo unknown`
1607uname -s = `(uname -s) 2>/dev/null || echo unknown`
1608uname -v = `(uname -v) 2>/dev/null || echo unknown`
1609
1610/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1611/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1612
1613/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1614/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1615/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1616/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1617/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1618/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1619/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1620
1621_ASUNAME
1622
1623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624for as_dir in $PATH
1625do
1626  IFS=$as_save_IFS
1627  test -z "$as_dir" && as_dir=.
1628  echo "PATH: $as_dir"
1629done
1630IFS=$as_save_IFS
1631
1632} >&5
1633
1634cat >&5 <<_ACEOF
1635
1636
1637## ----------- ##
1638## Core tests. ##
1639## ----------- ##
1640
1641_ACEOF
1642
1643
1644# Keep a trace of the command line.
1645# Strip out --no-create and --no-recursion so they do not pile up.
1646# Strip out --silent because we don't want to record it for future runs.
1647# Also quote any args containing shell meta-characters.
1648# Make two passes to allow for proper duplicate-argument suppression.
1649ac_configure_args=
1650ac_configure_args0=
1651ac_configure_args1=
1652ac_must_keep_next=false
1653for ac_pass in 1 2
1654do
1655  for ac_arg
1656  do
1657    case $ac_arg in
1658    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1659    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1660    | -silent | --silent | --silen | --sile | --sil)
1661      continue ;;
1662    *\'*)
1663      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1664    esac
1665    case $ac_pass in
1666    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1667    2)
1668      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1669      if test $ac_must_keep_next = true; then
1670	ac_must_keep_next=false # Got value, back to normal.
1671      else
1672	case $ac_arg in
1673	  *=* | --config-cache | -C | -disable-* | --disable-* \
1674	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1675	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1676	  | -with-* | --with-* | -without-* | --without-* | --x)
1677	    case "$ac_configure_args0 " in
1678	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1679	    esac
1680	    ;;
1681	  -* ) ac_must_keep_next=true ;;
1682	esac
1683      fi
1684      ac_configure_args="$ac_configure_args '$ac_arg'"
1685      ;;
1686    esac
1687  done
1688done
1689$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1690$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1691
1692# When interrupted or exit'd, cleanup temporary files, and complete
1693# config.log.  We remove comments because anyway the quotes in there
1694# would cause problems or look ugly.
1695# WARNING: Use '\'' to represent an apostrophe within the trap.
1696# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1697trap 'exit_status=$?
1698  # Save into config.log some information that might help in debugging.
1699  {
1700    echo
1701
1702    cat <<\_ASBOX
1703## ---------------- ##
1704## Cache variables. ##
1705## ---------------- ##
1706_ASBOX
1707    echo
1708    # The following way of writing the cache mishandles newlines in values,
1709(
1710  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1711    eval ac_val=\$$ac_var
1712    case $ac_val in #(
1713    *${as_nl}*)
1714      case $ac_var in #(
1715      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1716echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1717      esac
1718      case $ac_var in #(
1719      _ | IFS | as_nl) ;; #(
1720      *) $as_unset $ac_var ;;
1721      esac ;;
1722    esac
1723  done
1724  (set) 2>&1 |
1725    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1726    *${as_nl}ac_space=\ *)
1727      sed -n \
1728	"s/'\''/'\''\\\\'\'''\''/g;
1729	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1730      ;; #(
1731    *)
1732      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1733      ;;
1734    esac |
1735    sort
1736)
1737    echo
1738
1739    cat <<\_ASBOX
1740## ----------------- ##
1741## Output variables. ##
1742## ----------------- ##
1743_ASBOX
1744    echo
1745    for ac_var in $ac_subst_vars
1746    do
1747      eval ac_val=\$$ac_var
1748      case $ac_val in
1749      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750      esac
1751      echo "$ac_var='\''$ac_val'\''"
1752    done | sort
1753    echo
1754
1755    if test -n "$ac_subst_files"; then
1756      cat <<\_ASBOX
1757## ------------------- ##
1758## File substitutions. ##
1759## ------------------- ##
1760_ASBOX
1761      echo
1762      for ac_var in $ac_subst_files
1763      do
1764	eval ac_val=\$$ac_var
1765	case $ac_val in
1766	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1767	esac
1768	echo "$ac_var='\''$ac_val'\''"
1769      done | sort
1770      echo
1771    fi
1772
1773    if test -s confdefs.h; then
1774      cat <<\_ASBOX
1775## ----------- ##
1776## confdefs.h. ##
1777## ----------- ##
1778_ASBOX
1779      echo
1780      cat confdefs.h
1781      echo
1782    fi
1783    test "$ac_signal" != 0 &&
1784      echo "$as_me: caught signal $ac_signal"
1785    echo "$as_me: exit $exit_status"
1786  } >&5
1787  rm -f core *.core core.conftest.* &&
1788    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1789    exit $exit_status
1790' 0
1791for ac_signal in 1 2 13 15; do
1792  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1793done
1794ac_signal=0
1795
1796# confdefs.h avoids OS command line length limits that DEFS can exceed.
1797rm -f -r conftest* confdefs.h
1798
1799# Predefined preprocessor variables.
1800
1801cat >>confdefs.h <<_ACEOF
1802#define PACKAGE_NAME "$PACKAGE_NAME"
1803_ACEOF
1804
1805
1806cat >>confdefs.h <<_ACEOF
1807#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1808_ACEOF
1809
1810
1811cat >>confdefs.h <<_ACEOF
1812#define PACKAGE_VERSION "$PACKAGE_VERSION"
1813_ACEOF
1814
1815
1816cat >>confdefs.h <<_ACEOF
1817#define PACKAGE_STRING "$PACKAGE_STRING"
1818_ACEOF
1819
1820
1821cat >>confdefs.h <<_ACEOF
1822#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1823_ACEOF
1824
1825
1826# Let the site file select an alternate cache file if it wants to.
1827# Prefer explicitly selected file to automatically selected ones.
1828if test -n "$CONFIG_SITE"; then
1829  set x "$CONFIG_SITE"
1830elif test "x$prefix" != xNONE; then
1831  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1832else
1833  set x "$ac_default_prefix/share/config.site" \
1834	"$ac_default_prefix/etc/config.site"
1835fi
1836shift
1837for ac_site_file
1838do
1839  if test -r "$ac_site_file"; then
1840    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1841echo "$as_me: loading site script $ac_site_file" >&6;}
1842    sed 's/^/| /' "$ac_site_file" >&5
1843    . "$ac_site_file"
1844  fi
1845done
1846
1847if test -r "$cache_file"; then
1848  # Some versions of bash will fail to source /dev/null (special
1849  # files actually), so we avoid doing that.
1850  if test -f "$cache_file"; then
1851    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1852echo "$as_me: loading cache $cache_file" >&6;}
1853    case $cache_file in
1854      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1855      *)                      . "./$cache_file";;
1856    esac
1857  fi
1858else
1859  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1860echo "$as_me: creating cache $cache_file" >&6;}
1861  >$cache_file
1862fi
1863
1864# Check that the precious variables saved in the cache have kept the same
1865# value.
1866ac_cache_corrupted=false
1867for ac_var in $ac_precious_vars; do
1868  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1869  eval ac_new_set=\$ac_env_${ac_var}_set
1870  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1871  eval ac_new_val=\$ac_env_${ac_var}_value
1872  case $ac_old_set,$ac_new_set in
1873    set,)
1874      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1875echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1876      ac_cache_corrupted=: ;;
1877    ,set)
1878      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1879echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1880      ac_cache_corrupted=: ;;
1881    ,);;
1882    *)
1883      if test "x$ac_old_val" != "x$ac_new_val"; then
1884	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1885echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1886	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1887echo "$as_me:   former value:  $ac_old_val" >&2;}
1888	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1889echo "$as_me:   current value: $ac_new_val" >&2;}
1890	ac_cache_corrupted=:
1891      fi;;
1892  esac
1893  # Pass precious variables to config.status.
1894  if test "$ac_new_set" = set; then
1895    case $ac_new_val in
1896    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1897    *) ac_arg=$ac_var=$ac_new_val ;;
1898    esac
1899    case " $ac_configure_args " in
1900      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1901      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1902    esac
1903  fi
1904done
1905if $ac_cache_corrupted; then
1906  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1907echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1908  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1909echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1910   { (exit 1); exit 1; }; }
1911fi
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937ac_ext=c
1938ac_cpp='$CPP $CPPFLAGS'
1939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1941ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942
1943
1944
1945
1946
1947
1948
1949LIBSEXY_MAJOR_VERSION=0
1950LIBSEXY_MINOR_VERSION=1
1951LIBSEXY_MICRO_VERSION=11
1952LIBSEXY_DEVEL_VERSION=0
1953
1954LIBSEXY_VERSION=$LIBSEXY_MAJOR_VERSION.$LIBSEXY_MINOR_VERSION.$LIBSEXY_MICRO_VERSION
1955
1956if test "x$LIBSEXY_DEVEL_VERSION" != "x0"; then
1957	LIBSEXY_VERSION=$LIBSEXY_VERSION.$LIBSEXY_DEVEL_VERSION
1958fi
1959
1960
1961cat >>confdefs.h <<_ACEOF
1962#define LIBSEXY_MAJOR_VERSION $LIBSEXY_MAJOR_VERSION
1963_ACEOF
1964
1965
1966cat >>confdefs.h <<_ACEOF
1967#define LIBSEXY_MINOR_VERSION $LIBSEXY_MINOR_VERSION
1968_ACEOF
1969
1970
1971cat >>confdefs.h <<_ACEOF
1972#define LIBSEXY_MICRO_VERSION $LIBSEXY_MICRO_VERSION
1973_ACEOF
1974
1975
1976cat >>confdefs.h <<_ACEOF
1977#define LIBSEXY_VERSION "$LIBSEXY_VERSION"
1978_ACEOF
1979
1980
1981LT_CURRENT=2
1982LT_REVISION=4
1983LT_AGE=0
1984
1985LT_RELEASE=$LIBSEXY_MAJOR_VERSION.$LIBSEXY_MINOR_VERSION.$LIBSEXY_MICRO_VERSION
1986
1987
1988
1989
1990
1991
1992VERSION=$LIBSEXY_VERSION
1993PACKAGE=libsexy
1994
1995am__api_version="1.9"
1996ac_aux_dir=
1997for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1998  if test -f "$ac_dir/install-sh"; then
1999    ac_aux_dir=$ac_dir
2000    ac_install_sh="$ac_aux_dir/install-sh -c"
2001    break
2002  elif test -f "$ac_dir/install.sh"; then
2003    ac_aux_dir=$ac_dir
2004    ac_install_sh="$ac_aux_dir/install.sh -c"
2005    break
2006  elif test -f "$ac_dir/shtool"; then
2007    ac_aux_dir=$ac_dir
2008    ac_install_sh="$ac_aux_dir/shtool install -c"
2009    break
2010  fi
2011done
2012if test -z "$ac_aux_dir"; then
2013  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2014echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2015   { (exit 1); exit 1; }; }
2016fi
2017
2018# These three variables are undocumented and unsupported,
2019# and are intended to be withdrawn in a future Autoconf release.
2020# They can cause serious problems if a builder's source tree is in a directory
2021# whose full name contains unusual characters.
2022ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2023ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2024ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2025
2026
2027# Find a good install program.  We prefer a C program (faster),
2028# so one script is as good as another.  But avoid the broken or
2029# incompatible versions:
2030# SysV /etc/install, /usr/sbin/install
2031# SunOS /usr/etc/install
2032# IRIX /sbin/install
2033# AIX /bin/install
2034# AmigaOS /C/install, which installs bootblocks on floppy discs
2035# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2036# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2037# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2038# OS/2's system install, which has a completely different semantic
2039# ./install, which can be erroneously created by make from ./install.sh.
2040{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2041echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2042if test -z "$INSTALL"; then
2043if test "${ac_cv_path_install+set}" = set; then
2044  echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
2046  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047for as_dir in $PATH
2048do
2049  IFS=$as_save_IFS
2050  test -z "$as_dir" && as_dir=.
2051  # Account for people who put trailing slashes in PATH elements.
2052case $as_dir/ in
2053  ./ | .// | /cC/* | \
2054  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2055  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2056  /usr/ucb/* ) ;;
2057  *)
2058    # OSF1 and SCO ODT 3.0 have their own names for install.
2059    # Don't use installbsd from OSF since it installs stuff as root
2060    # by default.
2061    for ac_prog in ginstall scoinst install; do
2062      for ac_exec_ext in '' $ac_executable_extensions; do
2063	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2064	  if test $ac_prog = install &&
2065	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2066	    # AIX install.  It has an incompatible calling convention.
2067	    :
2068	  elif test $ac_prog = install &&
2069	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2070	    # program-specific install script used by HP pwplus--don't use.
2071	    :
2072	  else
2073	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2074	    break 3
2075	  fi
2076	fi
2077      done
2078    done
2079    ;;
2080esac
2081done
2082IFS=$as_save_IFS
2083
2084
2085fi
2086  if test "${ac_cv_path_install+set}" = set; then
2087    INSTALL=$ac_cv_path_install
2088  else
2089    # As a last resort, use the slow shell script.  Don't cache a
2090    # value for INSTALL within a source directory, because that will
2091    # break other packages using the cache if that directory is
2092    # removed, or if the value is a relative name.
2093    INSTALL=$ac_install_sh
2094  fi
2095fi
2096{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2097echo "${ECHO_T}$INSTALL" >&6; }
2098
2099# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2100# It thinks the first close brace ends the variable substitution.
2101test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2102
2103test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2104
2105test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2106
2107{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2108echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2109# Just in case
2110sleep 1
2111echo timestamp > conftest.file
2112# Do `set' in a subshell so we don't clobber the current shell's
2113# arguments.  Must try -L first in case configure is actually a
2114# symlink; some systems play weird games with the mod time of symlinks
2115# (eg FreeBSD returns the mod time of the symlink's containing
2116# directory).
2117if (
2118   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2119   if test "$*" = "X"; then
2120      # -L didn't work.
2121      set X `ls -t $srcdir/configure conftest.file`
2122   fi
2123   rm -f conftest.file
2124   if test "$*" != "X $srcdir/configure conftest.file" \
2125      && test "$*" != "X conftest.file $srcdir/configure"; then
2126
2127      # If neither matched, then we have a broken ls.  This can happen
2128      # if, for instance, CONFIG_SHELL is bash and it inherits a
2129      # broken ls alias from the environment.  This has actually
2130      # happened.  Such a system could not be considered "sane".
2131      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2132alias in your environment" >&5
2133echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2134alias in your environment" >&2;}
2135   { (exit 1); exit 1; }; }
2136   fi
2137
2138   test "$2" = conftest.file
2139   )
2140then
2141   # Ok.
2142   :
2143else
2144   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2145Check your system clock" >&5
2146echo "$as_me: error: newly created file is older than distributed files!
2147Check your system clock" >&2;}
2148   { (exit 1); exit 1; }; }
2149fi
2150{ echo "$as_me:$LINENO: result: yes" >&5
2151echo "${ECHO_T}yes" >&6; }
2152test "$program_prefix" != NONE &&
2153  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2154# Use a double $ so make ignores it.
2155test "$program_suffix" != NONE &&
2156  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2157# Double any \ or $.  echo might interpret backslashes.
2158# By default was `s,x,x', remove it if useless.
2159cat <<\_ACEOF >conftest.sed
2160s/[\\$]/&&/g;s/;s,x,x,$//
2161_ACEOF
2162program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2163rm -f conftest.sed
2164
2165# expand $ac_aux_dir to an absolute path
2166am_aux_dir=`cd $ac_aux_dir && pwd`
2167
2168test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2169# Use eval to expand $SHELL
2170if eval "$MISSING --run true"; then
2171  am_missing_run="$MISSING --run "
2172else
2173  am_missing_run=
2174  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2175echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2176fi
2177
2178if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2179  # We used to keeping the `.' as first argument, in order to
2180  # allow $(mkdir_p) to be used without argument.  As in
2181  #   $(mkdir_p) $(somedir)
2182  # where $(somedir) is conditionally defined.  However this is wrong
2183  # for two reasons:
2184  #  1. if the package is installed by a user who cannot write `.'
2185  #     make install will fail,
2186  #  2. the above comment should most certainly read
2187  #     $(mkdir_p) $(DESTDIR)$(somedir)
2188  #     so it does not work when $(somedir) is undefined and
2189  #     $(DESTDIR) is not.
2190  #  To support the latter case, we have to write
2191  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2192  #  so the `.' trick is pointless.
2193  mkdir_p='mkdir -p --'
2194else
2195  # On NextStep and OpenStep, the `mkdir' command does not
2196  # recognize any option.  It will interpret all options as
2197  # directories to create, and then abort because `.' already
2198  # exists.
2199  for d in ./-p ./--version;
2200  do
2201    test -d $d && rmdir $d
2202  done
2203  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2204  if test -f "$ac_aux_dir/mkinstalldirs"; then
2205    mkdir_p='$(mkinstalldirs)'
2206  else
2207    mkdir_p='$(install_sh) -d'
2208  fi
2209fi
2210
2211for ac_prog in gawk mawk nawk awk
2212do
2213  # Extract the first word of "$ac_prog", so it can be a program name with args.
2214set dummy $ac_prog; ac_word=$2
2215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2217if test "${ac_cv_prog_AWK+set}" = set; then
2218  echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220  if test -n "$AWK"; then
2221  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2222else
2223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224for as_dir in $PATH
2225do
2226  IFS=$as_save_IFS
2227  test -z "$as_dir" && as_dir=.
2228  for ac_exec_ext in '' $ac_executable_extensions; do
2229  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2230    ac_cv_prog_AWK="$ac_prog"
2231    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232    break 2
2233  fi
2234done
2235done
2236IFS=$as_save_IFS
2237
2238fi
2239fi
2240AWK=$ac_cv_prog_AWK
2241if test -n "$AWK"; then
2242  { echo "$as_me:$LINENO: result: $AWK" >&5
2243echo "${ECHO_T}$AWK" >&6; }
2244else
2245  { echo "$as_me:$LINENO: result: no" >&5
2246echo "${ECHO_T}no" >&6; }
2247fi
2248
2249
2250  test -n "$AWK" && break
2251done
2252
2253{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2254echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2255set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2256if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2257  echo $ECHO_N "(cached) $ECHO_C" >&6
2258else
2259  cat >conftest.make <<\_ACEOF
2260SHELL = /bin/sh
2261all:
2262	@echo '@@@%%%=$(MAKE)=@@@%%%'
2263_ACEOF
2264# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2265case `${MAKE-make} -f conftest.make 2>/dev/null` in
2266  *@@@%%%=?*=@@@%%%*)
2267    eval ac_cv_prog_make_${ac_make}_set=yes;;
2268  *)
2269    eval ac_cv_prog_make_${ac_make}_set=no;;
2270esac
2271rm -f conftest.make
2272fi
2273if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2274  { echo "$as_me:$LINENO: result: yes" >&5
2275echo "${ECHO_T}yes" >&6; }
2276  SET_MAKE=
2277else
2278  { echo "$as_me:$LINENO: result: no" >&5
2279echo "${ECHO_T}no" >&6; }
2280  SET_MAKE="MAKE=${MAKE-make}"
2281fi
2282
2283rm -rf .tst 2>/dev/null
2284mkdir .tst 2>/dev/null
2285if test -d .tst; then
2286  am__leading_dot=.
2287else
2288  am__leading_dot=_
2289fi
2290rmdir .tst 2>/dev/null
2291
2292# test to see if srcdir already configured
2293if test "`cd $srcdir && pwd`" != "`pwd`" &&
2294   test -f $srcdir/config.status; then
2295  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2296echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2297   { (exit 1); exit 1; }; }
2298fi
2299
2300# test whether we have cygpath
2301if test -z "$CYGPATH_W"; then
2302  if (cygpath --version) >/dev/null 2>/dev/null; then
2303    CYGPATH_W='cygpath -w'
2304  else
2305    CYGPATH_W=echo
2306  fi
2307fi
2308
2309
2310# Define the identity of the package.
2311 PACKAGE=$PACKAGE
2312 VERSION=$VERSION
2313
2314
2315cat >>confdefs.h <<_ACEOF
2316#define PACKAGE "$PACKAGE"
2317_ACEOF
2318
2319
2320cat >>confdefs.h <<_ACEOF
2321#define VERSION "$VERSION"
2322_ACEOF
2323
2324# Some tools Automake needs.
2325
2326ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2327
2328
2329AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2330
2331
2332AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2333
2334
2335AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2336
2337
2338MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2339
2340install_sh=${install_sh-"$am_aux_dir/install-sh"}
2341
2342# Installed binaries are usually stripped using `strip' when the user
2343# run `make install-strip'.  However `strip' might not be the right
2344# tool to use in cross-compilation environments, therefore Automake
2345# will honor the `STRIP' environment variable to overrule this program.
2346if test "$cross_compiling" != no; then
2347  if test -n "$ac_tool_prefix"; then
2348  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2349set dummy ${ac_tool_prefix}strip; ac_word=$2
2350{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2352if test "${ac_cv_prog_STRIP+set}" = set; then
2353  echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355  if test -n "$STRIP"; then
2356  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2357else
2358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359for as_dir in $PATH
2360do
2361  IFS=$as_save_IFS
2362  test -z "$as_dir" && as_dir=.
2363  for ac_exec_ext in '' $ac_executable_extensions; do
2364  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2365    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2366    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367    break 2
2368  fi
2369done
2370done
2371IFS=$as_save_IFS
2372
2373fi
2374fi
2375STRIP=$ac_cv_prog_STRIP
2376if test -n "$STRIP"; then
2377  { echo "$as_me:$LINENO: result: $STRIP" >&5
2378echo "${ECHO_T}$STRIP" >&6; }
2379else
2380  { echo "$as_me:$LINENO: result: no" >&5
2381echo "${ECHO_T}no" >&6; }
2382fi
2383
2384
2385fi
2386if test -z "$ac_cv_prog_STRIP"; then
2387  ac_ct_STRIP=$STRIP
2388  # Extract the first word of "strip", so it can be a program name with args.
2389set dummy strip; ac_word=$2
2390{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2392if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2393  echo $ECHO_N "(cached) $ECHO_C" >&6
2394else
2395  if test -n "$ac_ct_STRIP"; then
2396  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2397else
2398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399for as_dir in $PATH
2400do
2401  IFS=$as_save_IFS
2402  test -z "$as_dir" && as_dir=.
2403  for ac_exec_ext in '' $ac_executable_extensions; do
2404  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2405    ac_cv_prog_ac_ct_STRIP="strip"
2406    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2407    break 2
2408  fi
2409done
2410done
2411IFS=$as_save_IFS
2412
2413fi
2414fi
2415ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2416if test -n "$ac_ct_STRIP"; then
2417  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2418echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2419else
2420  { echo "$as_me:$LINENO: result: no" >&5
2421echo "${ECHO_T}no" >&6; }
2422fi
2423
2424  if test "x$ac_ct_STRIP" = x; then
2425    STRIP=":"
2426  else
2427    case $cross_compiling:$ac_tool_warned in
2428yes:)
2429{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2430whose name does not start with the host triplet.  If you think this
2431configuration is useful to you, please write to autoconf@gnu.org." >&5
2432echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2433whose name does not start with the host triplet.  If you think this
2434configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2435ac_tool_warned=yes ;;
2436esac
2437    STRIP=$ac_ct_STRIP
2438  fi
2439else
2440  STRIP="$ac_cv_prog_STRIP"
2441fi
2442
2443fi
2444INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2445
2446# We need awk for the "check" target.  The system "awk" is bad on
2447# some platforms.
2448# Always define AMTAR for backward compatibility.
2449
2450AMTAR=${AMTAR-"${am_missing_run}tar"}
2451
2452am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2453
2454
2455
2456
2457
2458
2459ac_config_headers="$ac_config_headers config.h"
2460
2461
2462ac_ext=c
2463ac_cpp='$CPP $CPPFLAGS'
2464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466ac_compiler_gnu=$ac_cv_c_compiler_gnu
2467if test -n "$ac_tool_prefix"; then
2468  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2469set dummy ${ac_tool_prefix}gcc; ac_word=$2
2470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2472if test "${ac_cv_prog_CC+set}" = set; then
2473  echo $ECHO_N "(cached) $ECHO_C" >&6
2474else
2475  if test -n "$CC"; then
2476  ac_cv_prog_CC="$CC" # Let the user override the test.
2477else
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479for as_dir in $PATH
2480do
2481  IFS=$as_save_IFS
2482  test -z "$as_dir" && as_dir=.
2483  for ac_exec_ext in '' $ac_executable_extensions; do
2484  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2485    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2486    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487    break 2
2488  fi
2489done
2490done
2491IFS=$as_save_IFS
2492
2493fi
2494fi
2495CC=$ac_cv_prog_CC
2496if test -n "$CC"; then
2497  { echo "$as_me:$LINENO: result: $CC" >&5
2498echo "${ECHO_T}$CC" >&6; }
2499else
2500  { echo "$as_me:$LINENO: result: no" >&5
2501echo "${ECHO_T}no" >&6; }
2502fi
2503
2504
2505fi
2506if test -z "$ac_cv_prog_CC"; then
2507  ac_ct_CC=$CC
2508  # Extract the first word of "gcc", so it can be a program name with args.
2509set dummy gcc; ac_word=$2
2510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2512if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2513  echo $ECHO_N "(cached) $ECHO_C" >&6
2514else
2515  if test -n "$ac_ct_CC"; then
2516  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2517else
2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519for as_dir in $PATH
2520do
2521  IFS=$as_save_IFS
2522  test -z "$as_dir" && as_dir=.
2523  for ac_exec_ext in '' $ac_executable_extensions; do
2524  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2525    ac_cv_prog_ac_ct_CC="gcc"
2526    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527    break 2
2528  fi
2529done
2530done
2531IFS=$as_save_IFS
2532
2533fi
2534fi
2535ac_ct_CC=$ac_cv_prog_ac_ct_CC
2536if test -n "$ac_ct_CC"; then
2537  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2538echo "${ECHO_T}$ac_ct_CC" >&6; }
2539else
2540  { echo "$as_me:$LINENO: result: no" >&5
2541echo "${ECHO_T}no" >&6; }
2542fi
2543
2544  if test "x$ac_ct_CC" = x; then
2545    CC=""
2546  else
2547    case $cross_compiling:$ac_tool_warned in
2548yes:)
2549{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2550whose name does not start with the host triplet.  If you think this
2551configuration is useful to you, please write to autoconf@gnu.org." >&5
2552echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2553whose name does not start with the host triplet.  If you think this
2554configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2555ac_tool_warned=yes ;;
2556esac
2557    CC=$ac_ct_CC
2558  fi
2559else
2560  CC="$ac_cv_prog_CC"
2561fi
2562
2563if test -z "$CC"; then
2564          if test -n "$ac_tool_prefix"; then
2565    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2566set dummy ${ac_tool_prefix}cc; ac_word=$2
2567{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2569if test "${ac_cv_prog_CC+set}" = set; then
2570  echo $ECHO_N "(cached) $ECHO_C" >&6
2571else
2572  if test -n "$CC"; then
2573  ac_cv_prog_CC="$CC" # Let the user override the test.
2574else
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578  IFS=$as_save_IFS
2579  test -z "$as_dir" && as_dir=.
2580  for ac_exec_ext in '' $ac_executable_extensions; do
2581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2582    ac_cv_prog_CC="${ac_tool_prefix}cc"
2583    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584    break 2
2585  fi
2586done
2587done
2588IFS=$as_save_IFS
2589
2590fi
2591fi
2592CC=$ac_cv_prog_CC
2593if test -n "$CC"; then
2594  { echo "$as_me:$LINENO: result: $CC" >&5
2595echo "${ECHO_T}$CC" >&6; }
2596else
2597  { echo "$as_me:$LINENO: result: no" >&5
2598echo "${ECHO_T}no" >&6; }
2599fi
2600
2601
2602  fi
2603fi
2604if test -z "$CC"; then
2605  # Extract the first word of "cc", so it can be a program name with args.
2606set dummy cc; ac_word=$2
2607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609if test "${ac_cv_prog_CC+set}" = set; then
2610  echo $ECHO_N "(cached) $ECHO_C" >&6
2611else
2612  if test -n "$CC"; then
2613  ac_cv_prog_CC="$CC" # Let the user override the test.
2614else
2615  ac_prog_rejected=no
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619  IFS=$as_save_IFS
2620  test -z "$as_dir" && as_dir=.
2621  for ac_exec_ext in '' $ac_executable_extensions; do
2622  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2623    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2624       ac_prog_rejected=yes
2625       continue
2626     fi
2627    ac_cv_prog_CC="cc"
2628    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629    break 2
2630  fi
2631done
2632done
2633IFS=$as_save_IFS
2634
2635if test $ac_prog_rejected = yes; then
2636  # We found a bogon in the path, so make sure we never use it.
2637  set dummy $ac_cv_prog_CC
2638  shift
2639  if test $# != 0; then
2640    # We chose a different compiler from the bogus one.
2641    # However, it has the same basename, so the bogon will be chosen
2642    # first if we set CC to just the basename; use the full file name.
2643    shift
2644    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2645  fi
2646fi
2647fi
2648fi
2649CC=$ac_cv_prog_CC
2650if test -n "$CC"; then
2651  { echo "$as_me:$LINENO: result: $CC" >&5
2652echo "${ECHO_T}$CC" >&6; }
2653else
2654  { echo "$as_me:$LINENO: result: no" >&5
2655echo "${ECHO_T}no" >&6; }
2656fi
2657
2658
2659fi
2660if test -z "$CC"; then
2661  if test -n "$ac_tool_prefix"; then
2662  for ac_prog in cl.exe
2663  do
2664    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2665set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2666{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2668if test "${ac_cv_prog_CC+set}" = set; then
2669  echo $ECHO_N "(cached) $ECHO_C" >&6
2670else
2671  if test -n "$CC"; then
2672  ac_cv_prog_CC="$CC" # Let the user override the test.
2673else
2674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675for as_dir in $PATH
2676do
2677  IFS=$as_save_IFS
2678  test -z "$as_dir" && as_dir=.
2679  for ac_exec_ext in '' $ac_executable_extensions; do
2680  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2681    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2682    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2683    break 2
2684  fi
2685done
2686done
2687IFS=$as_save_IFS
2688
2689fi
2690fi
2691CC=$ac_cv_prog_CC
2692if test -n "$CC"; then
2693  { echo "$as_me:$LINENO: result: $CC" >&5
2694echo "${ECHO_T}$CC" >&6; }
2695else
2696  { echo "$as_me:$LINENO: result: no" >&5
2697echo "${ECHO_T}no" >&6; }
2698fi
2699
2700
2701    test -n "$CC" && break
2702  done
2703fi
2704if test -z "$CC"; then
2705  ac_ct_CC=$CC
2706  for ac_prog in cl.exe
2707do
2708  # Extract the first word of "$ac_prog", so it can be a program name with args.
2709set dummy $ac_prog; ac_word=$2
2710{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2712if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2713  echo $ECHO_N "(cached) $ECHO_C" >&6
2714else
2715  if test -n "$ac_ct_CC"; then
2716  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2717else
2718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH
2720do
2721  IFS=$as_save_IFS
2722  test -z "$as_dir" && as_dir=.
2723  for ac_exec_ext in '' $ac_executable_extensions; do
2724  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2725    ac_cv_prog_ac_ct_CC="$ac_prog"
2726    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2727    break 2
2728  fi
2729done
2730done
2731IFS=$as_save_IFS
2732
2733fi
2734fi
2735ac_ct_CC=$ac_cv_prog_ac_ct_CC
2736if test -n "$ac_ct_CC"; then
2737  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2738echo "${ECHO_T}$ac_ct_CC" >&6; }
2739else
2740  { echo "$as_me:$LINENO: result: no" >&5
2741echo "${ECHO_T}no" >&6; }
2742fi
2743
2744
2745  test -n "$ac_ct_CC" && break
2746done
2747
2748  if test "x$ac_ct_CC" = x; then
2749    CC=""
2750  else
2751    case $cross_compiling:$ac_tool_warned in
2752yes:)
2753{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2754whose name does not start with the host triplet.  If you think this
2755configuration is useful to you, please write to autoconf@gnu.org." >&5
2756echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2757whose name does not start with the host triplet.  If you think this
2758configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2759ac_tool_warned=yes ;;
2760esac
2761    CC=$ac_ct_CC
2762  fi
2763fi
2764
2765fi
2766
2767
2768test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2769See \`config.log' for more details." >&5
2770echo "$as_me: error: no acceptable C compiler found in \$PATH
2771See \`config.log' for more details." >&2;}
2772   { (exit 1); exit 1; }; }
2773
2774# Provide some information about the compiler.
2775echo "$as_me:$LINENO: checking for C compiler version" >&5
2776ac_compiler=`set X $ac_compile; echo $2`
2777{ (ac_try="$ac_compiler --version >&5"
2778case "(($ac_try" in
2779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780  *) ac_try_echo=$ac_try;;
2781esac
2782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783  (eval "$ac_compiler --version >&5") 2>&5
2784  ac_status=$?
2785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786  (exit $ac_status); }
2787{ (ac_try="$ac_compiler -v >&5"
2788case "(($ac_try" in
2789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790  *) ac_try_echo=$ac_try;;
2791esac
2792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793  (eval "$ac_compiler -v >&5") 2>&5
2794  ac_status=$?
2795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796  (exit $ac_status); }
2797{ (ac_try="$ac_compiler -V >&5"
2798case "(($ac_try" in
2799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800  *) ac_try_echo=$ac_try;;
2801esac
2802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803  (eval "$ac_compiler -V >&5") 2>&5
2804  ac_status=$?
2805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806  (exit $ac_status); }
2807
2808cat >conftest.$ac_ext <<_ACEOF
2809/* confdefs.h.  */
2810_ACEOF
2811cat confdefs.h >>conftest.$ac_ext
2812cat >>conftest.$ac_ext <<_ACEOF
2813/* end confdefs.h.  */
2814
2815int
2816main ()
2817{
2818
2819  ;
2820  return 0;
2821}
2822_ACEOF
2823ac_clean_files_save=$ac_clean_files
2824ac_clean_files="$ac_clean_files a.out a.exe b.out"
2825# Try to create an executable without -o first, disregard a.out.
2826# It will help us diagnose broken compilers, and finding out an intuition
2827# of exeext.
2828{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2829echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2830ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2831#
2832# List of possible output files, starting from the most likely.
2833# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2834# only as a last resort.  b.out is created by i960 compilers.
2835ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2836#
2837# The IRIX 6 linker writes into existing files which may not be
2838# executable, retaining their permissions.  Remove them first so a
2839# subsequent execution test works.
2840ac_rmfiles=
2841for ac_file in $ac_files
2842do
2843  case $ac_file in
2844    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2845    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2846  esac
2847done
2848rm -f $ac_rmfiles
2849
2850if { (ac_try="$ac_link_default"
2851case "(($ac_try" in
2852  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853  *) ac_try_echo=$ac_try;;
2854esac
2855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856  (eval "$ac_link_default") 2>&5
2857  ac_status=$?
2858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859  (exit $ac_status); }; then
2860  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2861# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2862# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2863# so that the user can short-circuit this test for compilers unknown to
2864# Autoconf.
2865for ac_file in $ac_files
2866do
2867  test -f "$ac_file" || continue
2868  case $ac_file in
2869    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2870	;;
2871    [ab].out )
2872	# We found the default executable, but exeext='' is most
2873	# certainly right.
2874	break;;
2875    *.* )
2876        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2877	then :; else
2878	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2879	fi
2880	# We set ac_cv_exeext here because the later test for it is not
2881	# safe: cross compilers may not add the suffix if given an `-o'
2882	# argument, so we may need to know it at that point already.
2883	# Even if this section looks crufty: it has the advantage of
2884	# actually working.
2885	break;;
2886    * )
2887	break;;
2888  esac
2889done
2890test "$ac_cv_exeext" = no && ac_cv_exeext=
2891
2892else
2893  echo "$as_me: failed program was:" >&5
2894sed 's/^/| /' conftest.$ac_ext >&5
2895
2896{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2897See \`config.log' for more details." >&5
2898echo "$as_me: error: C compiler cannot create executables
2899See \`config.log' for more details." >&2;}
2900   { (exit 77); exit 77; }; }
2901fi
2902
2903ac_exeext=$ac_cv_exeext
2904{ echo "$as_me:$LINENO: result: $ac_file" >&5
2905echo "${ECHO_T}$ac_file" >&6; }
2906
2907# Check that the compiler produces executables we can run.  If not, either
2908# the compiler is broken, or we cross compile.
2909{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2910echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2911# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2912# If not cross compiling, check that we can run a simple program.
2913if test "$cross_compiling" != yes; then
2914  if { ac_try='./$ac_file'
2915  { (case "(($ac_try" in
2916  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917  *) ac_try_echo=$ac_try;;
2918esac
2919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2920  (eval "$ac_try") 2>&5
2921  ac_status=$?
2922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923  (exit $ac_status); }; }; then
2924    cross_compiling=no
2925  else
2926    if test "$cross_compiling" = maybe; then
2927	cross_compiling=yes
2928    else
2929	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2930If you meant to cross compile, use \`--host'.
2931See \`config.log' for more details." >&5
2932echo "$as_me: error: cannot run C compiled programs.
2933If you meant to cross compile, use \`--host'.
2934See \`config.log' for more details." >&2;}
2935   { (exit 1); exit 1; }; }
2936    fi
2937  fi
2938fi
2939{ echo "$as_me:$LINENO: result: yes" >&5
2940echo "${ECHO_T}yes" >&6; }
2941
2942rm -f a.out a.exe conftest$ac_cv_exeext b.out
2943ac_clean_files=$ac_clean_files_save
2944# Check that the compiler produces executables we can run.  If not, either
2945# the compiler is broken, or we cross compile.
2946{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2947echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2948{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2949echo "${ECHO_T}$cross_compiling" >&6; }
2950
2951{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2952echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2953if { (ac_try="$ac_link"
2954case "(($ac_try" in
2955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956  *) ac_try_echo=$ac_try;;
2957esac
2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959  (eval "$ac_link") 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); }; then
2963  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2964# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2965# work properly (i.e., refer to `conftest.exe'), while it won't with
2966# `rm'.
2967for ac_file in conftest.exe conftest conftest.*; do
2968  test -f "$ac_file" || continue
2969  case $ac_file in
2970    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2971    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2972	  break;;
2973    * ) break;;
2974  esac
2975done
2976else
2977  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2978See \`config.log' for more details." >&5
2979echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2980See \`config.log' for more details." >&2;}
2981   { (exit 1); exit 1; }; }
2982fi
2983
2984rm -f conftest$ac_cv_exeext
2985{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2986echo "${ECHO_T}$ac_cv_exeext" >&6; }
2987
2988rm -f conftest.$ac_ext
2989EXEEXT=$ac_cv_exeext
2990ac_exeext=$EXEEXT
2991{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2992echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2993if test "${ac_cv_objext+set}" = set; then
2994  echo $ECHO_N "(cached) $ECHO_C" >&6
2995else
2996  cat >conftest.$ac_ext <<_ACEOF
2997/* confdefs.h.  */
2998_ACEOF
2999cat confdefs.h >>conftest.$ac_ext
3000cat >>conftest.$ac_ext <<_ACEOF
3001/* end confdefs.h.  */
3002
3003int
3004main ()
3005{
3006
3007  ;
3008  return 0;
3009}
3010_ACEOF
3011rm -f conftest.o conftest.obj
3012if { (ac_try="$ac_compile"
3013case "(($ac_try" in
3014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015  *) ac_try_echo=$ac_try;;
3016esac
3017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018  (eval "$ac_compile") 2>&5
3019  ac_status=$?
3020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021  (exit $ac_status); }; then
3022  for ac_file in conftest.o conftest.obj conftest.*; do
3023  test -f "$ac_file" || continue;
3024  case $ac_file in
3025    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3026    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3027       break;;
3028  esac
3029done
3030else
3031  echo "$as_me: failed program was:" >&5
3032sed 's/^/| /' conftest.$ac_ext >&5
3033
3034{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3035See \`config.log' for more details." >&5
3036echo "$as_me: error: cannot compute suffix of object files: cannot compile
3037See \`config.log' for more details." >&2;}
3038   { (exit 1); exit 1; }; }
3039fi
3040
3041rm -f conftest.$ac_cv_objext conftest.$ac_ext
3042fi
3043{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3044echo "${ECHO_T}$ac_cv_objext" >&6; }
3045OBJEXT=$ac_cv_objext
3046ac_objext=$OBJEXT
3047{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3048echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3049if test "${ac_cv_c_compiler_gnu+set}" = set; then
3050  echo $ECHO_N "(cached) $ECHO_C" >&6
3051else
3052  cat >conftest.$ac_ext <<_ACEOF
3053/* confdefs.h.  */
3054_ACEOF
3055cat confdefs.h >>conftest.$ac_ext
3056cat >>conftest.$ac_ext <<_ACEOF
3057/* end confdefs.h.  */
3058
3059int
3060main ()
3061{
3062#ifndef __GNUC__
3063       choke me
3064#endif
3065
3066  ;
3067  return 0;
3068}
3069_ACEOF
3070rm -f conftest.$ac_objext
3071if { (ac_try="$ac_compile"
3072case "(($ac_try" in
3073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074  *) ac_try_echo=$ac_try;;
3075esac
3076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077  (eval "$ac_compile") 2>conftest.er1
3078  ac_status=$?
3079  grep -v '^ *+' conftest.er1 >conftest.err
3080  rm -f conftest.er1
3081  cat conftest.err >&5
3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083  (exit $ac_status); } &&
3084	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3085  { (case "(($ac_try" in
3086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087  *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090  (eval "$ac_try") 2>&5
3091  ac_status=$?
3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); }; } &&
3094	 { ac_try='test -s conftest.$ac_objext'
3095  { (case "(($ac_try" in
3096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097  *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100  (eval "$ac_try") 2>&5
3101  ac_status=$?
3102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103  (exit $ac_status); }; }; then
3104  ac_compiler_gnu=yes
3105else
3106  echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109	ac_compiler_gnu=no
3110fi
3111
3112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3113ac_cv_c_compiler_gnu=$ac_compiler_gnu
3114
3115fi
3116{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3117echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3118GCC=`test $ac_compiler_gnu = yes && echo yes`
3119ac_test_CFLAGS=${CFLAGS+set}
3120ac_save_CFLAGS=$CFLAGS
3121{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3122echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3123if test "${ac_cv_prog_cc_g+set}" = set; then
3124  echo $ECHO_N "(cached) $ECHO_C" >&6
3125else
3126  ac_save_c_werror_flag=$ac_c_werror_flag
3127   ac_c_werror_flag=yes
3128   ac_cv_prog_cc_g=no
3129   CFLAGS="-g"
3130   cat >conftest.$ac_ext <<_ACEOF
3131/* confdefs.h.  */
3132_ACEOF
3133cat confdefs.h >>conftest.$ac_ext
3134cat >>conftest.$ac_ext <<_ACEOF
3135/* end confdefs.h.  */
3136
3137int
3138main ()
3139{
3140
3141  ;
3142  return 0;
3143}
3144_ACEOF
3145rm -f conftest.$ac_objext
3146if { (ac_try="$ac_compile"
3147case "(($ac_try" in
3148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149  *) ac_try_echo=$ac_try;;
3150esac
3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152  (eval "$ac_compile") 2>conftest.er1
3153  ac_status=$?
3154  grep -v '^ *+' conftest.er1 >conftest.err
3155  rm -f conftest.er1
3156  cat conftest.err >&5
3157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158  (exit $ac_status); } &&
3159	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3160  { (case "(($ac_try" in
3161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162  *) ac_try_echo=$ac_try;;
3163esac
3164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165  (eval "$ac_try") 2>&5
3166  ac_status=$?
3167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168  (exit $ac_status); }; } &&
3169	 { ac_try='test -s conftest.$ac_objext'
3170  { (case "(($ac_try" in
3171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172  *) ac_try_echo=$ac_try;;
3173esac
3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175  (eval "$ac_try") 2>&5
3176  ac_status=$?
3177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178  (exit $ac_status); }; }; then
3179  ac_cv_prog_cc_g=yes
3180else
3181  echo "$as_me: failed program was:" >&5
3182sed 's/^/| /' conftest.$ac_ext >&5
3183
3184	CFLAGS=""
3185      cat >conftest.$ac_ext <<_ACEOF
3186/* confdefs.h.  */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h.  */
3191
3192int
3193main ()
3194{
3195
3196  ;
3197  return 0;
3198}
3199_ACEOF
3200rm -f conftest.$ac_objext
3201if { (ac_try="$ac_compile"
3202case "(($ac_try" in
3203  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204  *) ac_try_echo=$ac_try;;
3205esac
3206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207  (eval "$ac_compile") 2>conftest.er1
3208  ac_status=$?
3209  grep -v '^ *+' conftest.er1 >conftest.err
3210  rm -f conftest.er1
3211  cat conftest.err >&5
3212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213  (exit $ac_status); } &&
3214	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3215  { (case "(($ac_try" in
3216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217  *) ac_try_echo=$ac_try;;
3218esac
3219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220  (eval "$ac_try") 2>&5
3221  ac_status=$?
3222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223  (exit $ac_status); }; } &&
3224	 { ac_try='test -s conftest.$ac_objext'
3225  { (case "(($ac_try" in
3226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227  *) ac_try_echo=$ac_try;;
3228esac
3229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230  (eval "$ac_try") 2>&5
3231  ac_status=$?
3232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233  (exit $ac_status); }; }; then
3234  :
3235else
3236  echo "$as_me: failed program was:" >&5
3237sed 's/^/| /' conftest.$ac_ext >&5
3238
3239	ac_c_werror_flag=$ac_save_c_werror_flag
3240	 CFLAGS="-g"
3241	 cat >conftest.$ac_ext <<_ACEOF
3242/* confdefs.h.  */
3243_ACEOF
3244cat confdefs.h >>conftest.$ac_ext
3245cat >>conftest.$ac_ext <<_ACEOF
3246/* end confdefs.h.  */
3247
3248int
3249main ()
3250{
3251
3252  ;
3253  return 0;
3254}
3255_ACEOF
3256rm -f conftest.$ac_objext
3257if { (ac_try="$ac_compile"
3258case "(($ac_try" in
3259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260  *) ac_try_echo=$ac_try;;
3261esac
3262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263  (eval "$ac_compile") 2>conftest.er1
3264  ac_status=$?
3265  grep -v '^ *+' conftest.er1 >conftest.err
3266  rm -f conftest.er1
3267  cat conftest.err >&5
3268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269  (exit $ac_status); } &&
3270	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3271  { (case "(($ac_try" in
3272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273  *) ac_try_echo=$ac_try;;
3274esac
3275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276  (eval "$ac_try") 2>&5
3277  ac_status=$?
3278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279  (exit $ac_status); }; } &&
3280	 { ac_try='test -s conftest.$ac_objext'
3281  { (case "(($ac_try" in
3282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283  *) ac_try_echo=$ac_try;;
3284esac
3285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3286  (eval "$ac_try") 2>&5
3287  ac_status=$?
3288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289  (exit $ac_status); }; }; then
3290  ac_cv_prog_cc_g=yes
3291else
3292  echo "$as_me: failed program was:" >&5
3293sed 's/^/| /' conftest.$ac_ext >&5
3294
3295
3296fi
3297
3298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299fi
3300
3301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302fi
3303
3304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3305   ac_c_werror_flag=$ac_save_c_werror_flag
3306fi
3307{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3308echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3309if test "$ac_test_CFLAGS" = set; then
3310  CFLAGS=$ac_save_CFLAGS
3311elif test $ac_cv_prog_cc_g = yes; then
3312  if test "$GCC" = yes; then
3313    CFLAGS="-g -O2"
3314  else
3315    CFLAGS="-g"
3316  fi
3317else
3318  if test "$GCC" = yes; then
3319    CFLAGS="-O2"
3320  else
3321    CFLAGS=
3322  fi
3323fi
3324{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3325echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3326if test "${ac_cv_prog_cc_c89+set}" = set; then
3327  echo $ECHO_N "(cached) $ECHO_C" >&6
3328else
3329  ac_cv_prog_cc_c89=no
3330ac_save_CC=$CC
3331cat >conftest.$ac_ext <<_ACEOF
3332/* confdefs.h.  */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
3336/* end confdefs.h.  */
3337#include <stdarg.h>
3338#include <stdio.h>
3339#include <sys/types.h>
3340#include <sys/stat.h>
3341/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3342struct buf { int x; };
3343FILE * (*rcsopen) (struct buf *, struct stat *, int);
3344static char *e (p, i)
3345     char **p;
3346     int i;
3347{
3348  return p[i];
3349}
3350static char *f (char * (*g) (char **, int), char **p, ...)
3351{
3352  char *s;
3353  va_list v;
3354  va_start (v,p);
3355  s = g (p, va_arg (v,int));
3356  va_end (v);
3357  return s;
3358}
3359
3360/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3361   function prototypes and stuff, but not '\xHH' hex character constants.
3362   These don't provoke an error unfortunately, instead are silently treated
3363   as 'x'.  The following induces an error, until -std is added to get
3364   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3365   array size at least.  It's necessary to write '\x00'==0 to get something
3366   that's true only with -std.  */
3367int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3368
3369/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3370   inside strings and character constants.  */
3371#define FOO(x) 'x'
3372int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3373
3374int test (int i, double x);
3375struct s1 {int (*f) (int a);};
3376struct s2 {int (*f) (double a);};
3377int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3378int argc;
3379char **argv;
3380int
3381main ()
3382{
3383return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3384  ;
3385  return 0;
3386}
3387_ACEOF
3388for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3389	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3390do
3391  CC="$ac_save_CC $ac_arg"
3392  rm -f conftest.$ac_objext
3393if { (ac_try="$ac_compile"
3394case "(($ac_try" in
3395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396  *) ac_try_echo=$ac_try;;
3397esac
3398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399  (eval "$ac_compile") 2>conftest.er1
3400  ac_status=$?
3401  grep -v '^ *+' conftest.er1 >conftest.err
3402  rm -f conftest.er1
3403  cat conftest.err >&5
3404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405  (exit $ac_status); } &&
3406	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3407  { (case "(($ac_try" in
3408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409  *) ac_try_echo=$ac_try;;
3410esac
3411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412  (eval "$ac_try") 2>&5
3413  ac_status=$?
3414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415  (exit $ac_status); }; } &&
3416	 { ac_try='test -s conftest.$ac_objext'
3417  { (case "(($ac_try" in
3418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419  *) ac_try_echo=$ac_try;;
3420esac
3421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3422  (eval "$ac_try") 2>&5
3423  ac_status=$?
3424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425  (exit $ac_status); }; }; then
3426  ac_cv_prog_cc_c89=$ac_arg
3427else
3428  echo "$as_me: failed program was:" >&5
3429sed 's/^/| /' conftest.$ac_ext >&5
3430
3431
3432fi
3433
3434rm -f core conftest.err conftest.$ac_objext
3435  test "x$ac_cv_prog_cc_c89" != "xno" && break
3436done
3437rm -f conftest.$ac_ext
3438CC=$ac_save_CC
3439
3440fi
3441# AC_CACHE_VAL
3442case "x$ac_cv_prog_cc_c89" in
3443  x)
3444    { echo "$as_me:$LINENO: result: none needed" >&5
3445echo "${ECHO_T}none needed" >&6; } ;;
3446  xno)
3447    { echo "$as_me:$LINENO: result: unsupported" >&5
3448echo "${ECHO_T}unsupported" >&6; } ;;
3449  *)
3450    CC="$CC $ac_cv_prog_cc_c89"
3451    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3452echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3453esac
3454
3455
3456ac_ext=c
3457ac_cpp='$CPP $CPPFLAGS'
3458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461DEPDIR="${am__leading_dot}deps"
3462
3463ac_config_commands="$ac_config_commands depfiles"
3464
3465
3466am_make=${MAKE-make}
3467cat > confinc << 'END'
3468am__doit:
3469	@echo done
3470.PHONY: am__doit
3471END
3472# If we don't find an include directive, just comment out the code.
3473{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3474echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3475am__include="#"
3476am__quote=
3477_am_result=none
3478# First try GNU make style include.
3479echo "include confinc" > confmf
3480# We grep out `Entering directory' and `Leaving directory'
3481# messages which can occur if `w' ends up in MAKEFLAGS.
3482# In particular we don't look at `^make:' because GNU make might
3483# be invoked under some other name (usually "gmake"), in which
3484# case it prints its new name instead of `make'.
3485if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3486   am__include=include
3487   am__quote=
3488   _am_result=GNU
3489fi
3490# Now try BSD make style include.
3491if test "$am__include" = "#"; then
3492   echo '.include "confinc"' > confmf
3493   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3494      am__include=.include
3495      am__quote="\""
3496      _am_result=BSD
3497   fi
3498fi
3499
3500
3501{ echo "$as_me:$LINENO: result: $_am_result" >&5
3502echo "${ECHO_T}$_am_result" >&6; }
3503rm -f confinc confmf
3504
3505# Check whether --enable-dependency-tracking was given.
3506if test "${enable_dependency_tracking+set}" = set; then
3507  enableval=$enable_dependency_tracking;
3508fi
3509
3510if test "x$enable_dependency_tracking" != xno; then
3511  am_depcomp="$ac_aux_dir/depcomp"
3512  AMDEPBACKSLASH='\'
3513fi
3514
3515
3516if test "x$enable_dependency_tracking" != xno; then
3517  AMDEP_TRUE=
3518  AMDEP_FALSE='#'
3519else
3520  AMDEP_TRUE='#'
3521  AMDEP_FALSE=
3522fi
3523
3524
3525
3526
3527depcc="$CC"   am_compiler_list=
3528
3529{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3530echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3531if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3532  echo $ECHO_N "(cached) $ECHO_C" >&6
3533else
3534  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3535  # We make a subdir and do the tests there.  Otherwise we can end up
3536  # making bogus files that we don't know about and never remove.  For
3537  # instance it was reported that on HP-UX the gcc test will end up
3538  # making a dummy file named `D' -- because `-MD' means `put the output
3539  # in D'.
3540  mkdir conftest.dir
3541  # Copy depcomp to subdir because otherwise we won't find it if we're
3542  # using a relative directory.
3543  cp "$am_depcomp" conftest.dir
3544  cd conftest.dir
3545  # We will build objects and dependencies in a subdirectory because
3546  # it helps to detect inapplicable dependency modes.  For instance
3547  # both Tru64's cc and ICC support -MD to output dependencies as a
3548  # side effect of compilation, but ICC will put the dependencies in
3549  # the current directory while Tru64 will put them in the object
3550  # directory.
3551  mkdir sub
3552
3553  am_cv_CC_dependencies_compiler_type=none
3554  if test "$am_compiler_list" = ""; then
3555     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3556  fi
3557  for depmode in $am_compiler_list; do
3558    # Setup a source with many dependencies, because some compilers
3559    # like to wrap large dependency lists on column 80 (with \), and
3560    # we should not choose a depcomp mode which is confused by this.
3561    #
3562    # We need to recreate these files for each test, as the compiler may
3563    # overwrite some of them when testing with obscure command lines.
3564    # This happens at least with the AIX C compiler.
3565    : > sub/conftest.c
3566    for i in 1 2 3 4 5 6; do
3567      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3568      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3569      # Solaris 8's {/usr,}/bin/sh.
3570      touch sub/conftst$i.h
3571    done
3572    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3573
3574    case $depmode in
3575    nosideeffect)
3576      # after this tag, mechanisms are not by side-effect, so they'll
3577      # only be used when explicitly requested
3578      if test "x$enable_dependency_tracking" = xyes; then
3579	continue
3580      else
3581	break
3582      fi
3583      ;;
3584    none) break ;;
3585    esac
3586    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3587    # mode.  It turns out that the SunPro C++ compiler does not properly
3588    # handle `-M -o', and we need to detect this.
3589    if depmode=$depmode \
3590       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3591       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3592       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3593         >/dev/null 2>conftest.err &&
3594       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3595       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3596       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3597      # icc doesn't choke on unknown options, it will just issue warnings
3598      # or remarks (even with -Werror).  So we grep stderr for any message
3599      # that says an option was ignored or not supported.
3600      # When given -MP, icc 7.0 and 7.1 complain thusly:
3601      #   icc: Command line warning: ignoring option '-M'; no argument required
3602      # The diagnosis changed in icc 8.0:
3603      #   icc: Command line remark: option '-MP' not supported
3604      if (grep 'ignoring option' conftest.err ||
3605          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3606        am_cv_CC_dependencies_compiler_type=$depmode
3607        break
3608      fi
3609    fi
3610  done
3611
3612  cd ..
3613  rm -rf conftest.dir
3614else
3615  am_cv_CC_dependencies_compiler_type=none
3616fi
3617
3618fi
3619{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3620echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3621CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3622
3623
3624
3625if
3626  test "x$enable_dependency_tracking" != xno \
3627  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3628  am__fastdepCC_TRUE=
3629  am__fastdepCC_FALSE='#'
3630else
3631  am__fastdepCC_TRUE='#'
3632  am__fastdepCC_FALSE=
3633fi
3634
3635
3636#AC_ARG_PROGRAM
3637ac_ext=c
3638ac_cpp='$CPP $CPPFLAGS'
3639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3643echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3644# On Suns, sometimes $CPP names a directory.
3645if test -n "$CPP" && test -d "$CPP"; then
3646  CPP=
3647fi
3648if test -z "$CPP"; then
3649  if test "${ac_cv_prog_CPP+set}" = set; then
3650  echo $ECHO_N "(cached) $ECHO_C" >&6
3651else
3652      # Double quotes because CPP needs to be expanded
3653    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3654    do
3655      ac_preproc_ok=false
3656for ac_c_preproc_warn_flag in '' yes
3657do
3658  # Use a header file that comes with gcc, so configuring glibc
3659  # with a fresh cross-compiler works.
3660  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3661  # <limits.h> exists even on freestanding compilers.
3662  # On the NeXT, cc -E runs the code through the compiler's parser,
3663  # not just through cpp. "Syntax error" is here to catch this case.
3664  cat >conftest.$ac_ext <<_ACEOF
3665/* confdefs.h.  */
3666_ACEOF
3667cat confdefs.h >>conftest.$ac_ext
3668cat >>conftest.$ac_ext <<_ACEOF
3669/* end confdefs.h.  */
3670#ifdef __STDC__
3671# include <limits.h>
3672#else
3673# include <assert.h>
3674#endif
3675		     Syntax error
3676_ACEOF
3677if { (ac_try="$ac_cpp conftest.$ac_ext"
3678case "(($ac_try" in
3679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680  *) ac_try_echo=$ac_try;;
3681esac
3682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3684  ac_status=$?
3685  grep -v '^ *+' conftest.er1 >conftest.err
3686  rm -f conftest.er1
3687  cat conftest.err >&5
3688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689  (exit $ac_status); } >/dev/null; then
3690  if test -s conftest.err; then
3691    ac_cpp_err=$ac_c_preproc_warn_flag
3692    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3693  else
3694    ac_cpp_err=
3695  fi
3696else
3697  ac_cpp_err=yes
3698fi
3699if test -z "$ac_cpp_err"; then
3700  :
3701else
3702  echo "$as_me: failed program was:" >&5
3703sed 's/^/| /' conftest.$ac_ext >&5
3704
3705  # Broken: fails on valid input.
3706continue
3707fi
3708
3709rm -f conftest.err conftest.$ac_ext
3710
3711  # OK, works on sane cases.  Now check whether nonexistent headers
3712  # can be detected and how.
3713  cat >conftest.$ac_ext <<_ACEOF
3714/* confdefs.h.  */
3715_ACEOF
3716cat confdefs.h >>conftest.$ac_ext
3717cat >>conftest.$ac_ext <<_ACEOF
3718/* end confdefs.h.  */
3719#include <ac_nonexistent.h>
3720_ACEOF
3721if { (ac_try="$ac_cpp conftest.$ac_ext"
3722case "(($ac_try" in
3723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724  *) ac_try_echo=$ac_try;;
3725esac
3726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3728  ac_status=$?
3729  grep -v '^ *+' conftest.er1 >conftest.err
3730  rm -f conftest.er1
3731  cat conftest.err >&5
3732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733  (exit $ac_status); } >/dev/null; then
3734  if test -s conftest.err; then
3735    ac_cpp_err=$ac_c_preproc_warn_flag
3736    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3737  else
3738    ac_cpp_err=
3739  fi
3740else
3741  ac_cpp_err=yes
3742fi
3743if test -z "$ac_cpp_err"; then
3744  # Broken: success on invalid input.
3745continue
3746else
3747  echo "$as_me: failed program was:" >&5
3748sed 's/^/| /' conftest.$ac_ext >&5
3749
3750  # Passes both tests.
3751ac_preproc_ok=:
3752break
3753fi
3754
3755rm -f conftest.err conftest.$ac_ext
3756
3757done
3758# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3759rm -f conftest.err conftest.$ac_ext
3760if $ac_preproc_ok; then
3761  break
3762fi
3763
3764    done
3765    ac_cv_prog_CPP=$CPP
3766
3767fi
3768  CPP=$ac_cv_prog_CPP
3769else
3770  ac_cv_prog_CPP=$CPP
3771fi
3772{ echo "$as_me:$LINENO: result: $CPP" >&5
3773echo "${ECHO_T}$CPP" >&6; }
3774ac_preproc_ok=false
3775for ac_c_preproc_warn_flag in '' yes
3776do
3777  # Use a header file that comes with gcc, so configuring glibc
3778  # with a fresh cross-compiler works.
3779  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3780  # <limits.h> exists even on freestanding compilers.
3781  # On the NeXT, cc -E runs the code through the compiler's parser,
3782  # not just through cpp. "Syntax error" is here to catch this case.
3783  cat >conftest.$ac_ext <<_ACEOF
3784/* confdefs.h.  */
3785_ACEOF
3786cat confdefs.h >>conftest.$ac_ext
3787cat >>conftest.$ac_ext <<_ACEOF
3788/* end confdefs.h.  */
3789#ifdef __STDC__
3790# include <limits.h>
3791#else
3792# include <assert.h>
3793#endif
3794		     Syntax error
3795_ACEOF
3796if { (ac_try="$ac_cpp conftest.$ac_ext"
3797case "(($ac_try" in
3798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799  *) ac_try_echo=$ac_try;;
3800esac
3801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3802  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3803  ac_status=$?
3804  grep -v '^ *+' conftest.er1 >conftest.err
3805  rm -f conftest.er1
3806  cat conftest.err >&5
3807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808  (exit $ac_status); } >/dev/null; then
3809  if test -s conftest.err; then
3810    ac_cpp_err=$ac_c_preproc_warn_flag
3811    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3812  else
3813    ac_cpp_err=
3814  fi
3815else
3816  ac_cpp_err=yes
3817fi
3818if test -z "$ac_cpp_err"; then
3819  :
3820else
3821  echo "$as_me: failed program was:" >&5
3822sed 's/^/| /' conftest.$ac_ext >&5
3823
3824  # Broken: fails on valid input.
3825continue
3826fi
3827
3828rm -f conftest.err conftest.$ac_ext
3829
3830  # OK, works on sane cases.  Now check whether nonexistent headers
3831  # can be detected and how.
3832  cat >conftest.$ac_ext <<_ACEOF
3833/* confdefs.h.  */
3834_ACEOF
3835cat confdefs.h >>conftest.$ac_ext
3836cat >>conftest.$ac_ext <<_ACEOF
3837/* end confdefs.h.  */
3838#include <ac_nonexistent.h>
3839_ACEOF
3840if { (ac_try="$ac_cpp conftest.$ac_ext"
3841case "(($ac_try" in
3842  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843  *) ac_try_echo=$ac_try;;
3844esac
3845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3847  ac_status=$?
3848  grep -v '^ *+' conftest.er1 >conftest.err
3849  rm -f conftest.er1
3850  cat conftest.err >&5
3851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852  (exit $ac_status); } >/dev/null; then
3853  if test -s conftest.err; then
3854    ac_cpp_err=$ac_c_preproc_warn_flag
3855    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3856  else
3857    ac_cpp_err=
3858  fi
3859else
3860  ac_cpp_err=yes
3861fi
3862if test -z "$ac_cpp_err"; then
3863  # Broken: success on invalid input.
3864continue
3865else
3866  echo "$as_me: failed program was:" >&5
3867sed 's/^/| /' conftest.$ac_ext >&5
3868
3869  # Passes both tests.
3870ac_preproc_ok=:
3871break
3872fi
3873
3874rm -f conftest.err conftest.$ac_ext
3875
3876done
3877# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3878rm -f conftest.err conftest.$ac_ext
3879if $ac_preproc_ok; then
3880  :
3881else
3882  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3883See \`config.log' for more details." >&5
3884echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3885See \`config.log' for more details." >&2;}
3886   { (exit 1); exit 1; }; }
3887fi
3888
3889ac_ext=c
3890ac_cpp='$CPP $CPPFLAGS'
3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
3895{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3896echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3897set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3898if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3899  echo $ECHO_N "(cached) $ECHO_C" >&6
3900else
3901  cat >conftest.make <<\_ACEOF
3902SHELL = /bin/sh
3903all:
3904	@echo '@@@%%%=$(MAKE)=@@@%%%'
3905_ACEOF
3906# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3907case `${MAKE-make} -f conftest.make 2>/dev/null` in
3908  *@@@%%%=?*=@@@%%%*)
3909    eval ac_cv_prog_make_${ac_make}_set=yes;;
3910  *)
3911    eval ac_cv_prog_make_${ac_make}_set=no;;
3912esac
3913rm -f conftest.make
3914fi
3915if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3916  { echo "$as_me:$LINENO: result: yes" >&5
3917echo "${ECHO_T}yes" >&6; }
3918  SET_MAKE=
3919else
3920  { echo "$as_me:$LINENO: result: no" >&5
3921echo "${ECHO_T}no" >&6; }
3922  SET_MAKE="MAKE=${MAKE-make}"
3923fi
3924
3925{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3926echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3927LN_S=$as_ln_s
3928if test "$LN_S" = "ln -s"; then
3929  { echo "$as_me:$LINENO: result: yes" >&5
3930echo "${ECHO_T}yes" >&6; }
3931else
3932  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3933echo "${ECHO_T}no, using $LN_S" >&6; }
3934fi
3935
3936# Find a good install program.  We prefer a C program (faster),
3937# so one script is as good as another.  But avoid the broken or
3938# incompatible versions:
3939# SysV /etc/install, /usr/sbin/install
3940# SunOS /usr/etc/install
3941# IRIX /sbin/install
3942# AIX /bin/install
3943# AmigaOS /C/install, which installs bootblocks on floppy discs
3944# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3945# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3946# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3947# OS/2's system install, which has a completely different semantic
3948# ./install, which can be erroneously created by make from ./install.sh.
3949{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3950echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3951if test -z "$INSTALL"; then
3952if test "${ac_cv_path_install+set}" = set; then
3953  echo $ECHO_N "(cached) $ECHO_C" >&6
3954else
3955  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956for as_dir in $PATH
3957do
3958  IFS=$as_save_IFS
3959  test -z "$as_dir" && as_dir=.
3960  # Account for people who put trailing slashes in PATH elements.
3961case $as_dir/ in
3962  ./ | .// | /cC/* | \
3963  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3964  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3965  /usr/ucb/* ) ;;
3966  *)
3967    # OSF1 and SCO ODT 3.0 have their own names for install.
3968    # Don't use installbsd from OSF since it installs stuff as root
3969    # by default.
3970    for ac_prog in ginstall scoinst install; do
3971      for ac_exec_ext in '' $ac_executable_extensions; do
3972	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
3973	  if test $ac_prog = install &&
3974	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3975	    # AIX install.  It has an incompatible calling convention.
3976	    :
3977	  elif test $ac_prog = install &&
3978	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3979	    # program-specific install script used by HP pwplus--don't use.
3980	    :
3981	  else
3982	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3983	    break 3
3984	  fi
3985	fi
3986      done
3987    done
3988    ;;
3989esac
3990done
3991IFS=$as_save_IFS
3992
3993
3994fi
3995  if test "${ac_cv_path_install+set}" = set; then
3996    INSTALL=$ac_cv_path_install
3997  else
3998    # As a last resort, use the slow shell script.  Don't cache a
3999    # value for INSTALL within a source directory, because that will
4000    # break other packages using the cache if that directory is
4001    # removed, or if the value is a relative name.
4002    INSTALL=$ac_install_sh
4003  fi
4004fi
4005{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4006echo "${ECHO_T}$INSTALL" >&6; }
4007
4008# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4009# It thinks the first close brace ends the variable substitution.
4010test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4011
4012test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4013
4014test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4015
4016
4017
4018{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4019echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4020if test "${ac_cv_c_const+set}" = set; then
4021  echo $ECHO_N "(cached) $ECHO_C" >&6
4022else
4023  cat >conftest.$ac_ext <<_ACEOF
4024/* confdefs.h.  */
4025_ACEOF
4026cat confdefs.h >>conftest.$ac_ext
4027cat >>conftest.$ac_ext <<_ACEOF
4028/* end confdefs.h.  */
4029
4030int
4031main ()
4032{
4033/* FIXME: Include the comments suggested by Paul. */
4034#ifndef __cplusplus
4035  /* Ultrix mips cc rejects this.  */
4036  typedef int charset[2];
4037  const charset x;
4038  /* SunOS 4.1.1 cc rejects this.  */
4039  char const *const *ccp;
4040  char **p;
4041  /* NEC SVR4.0.2 mips cc rejects this.  */
4042  struct point {int x, y;};
4043  static struct point const zero = {0,0};
4044  /* AIX XL C 1.02.0.0 rejects this.
4045     It does not let you subtract one const X* pointer from another in
4046     an arm of an if-expression whose if-part is not a constant
4047     expression */
4048  const char *g = "string";
4049  ccp = &g + (g ? g-g : 0);
4050  /* HPUX 7.0 cc rejects these. */
4051  ++ccp;
4052  p = (char**) ccp;
4053  ccp = (char const *const *) p;
4054  { /* SCO 3.2v4 cc rejects this.  */
4055    char *t;
4056    char const *s = 0 ? (char *) 0 : (char const *) 0;
4057
4058    *t++ = 0;
4059    if (s) return 0;
4060  }
4061  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4062    int x[] = {25, 17};
4063    const int *foo = &x[0];
4064    ++foo;
4065  }
4066  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4067    typedef const int *iptr;
4068    iptr p = 0;
4069    ++p;
4070  }
4071  { /* AIX XL C 1.02.0.0 rejects this saying
4072       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4073    struct s { int j; const int *ap[3]; };
4074    struct s *b; b->j = 5;
4075  }
4076  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4077    const int foo = 10;
4078    if (!foo) return 0;
4079  }
4080  return !x[0] && !zero.x;
4081#endif
4082
4083  ;
4084  return 0;
4085}
4086_ACEOF
4087rm -f conftest.$ac_objext
4088if { (ac_try="$ac_compile"
4089case "(($ac_try" in
4090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091  *) ac_try_echo=$ac_try;;
4092esac
4093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4094  (eval "$ac_compile") 2>conftest.er1
4095  ac_status=$?
4096  grep -v '^ *+' conftest.er1 >conftest.err
4097  rm -f conftest.er1
4098  cat conftest.err >&5
4099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100  (exit $ac_status); } &&
4101	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4102  { (case "(($ac_try" in
4103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104  *) ac_try_echo=$ac_try;;
4105esac
4106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107  (eval "$ac_try") 2>&5
4108  ac_status=$?
4109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110  (exit $ac_status); }; } &&
4111	 { ac_try='test -s conftest.$ac_objext'
4112  { (case "(($ac_try" in
4113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114  *) ac_try_echo=$ac_try;;
4115esac
4116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117  (eval "$ac_try") 2>&5
4118  ac_status=$?
4119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120  (exit $ac_status); }; }; then
4121  ac_cv_c_const=yes
4122else
4123  echo "$as_me: failed program was:" >&5
4124sed 's/^/| /' conftest.$ac_ext >&5
4125
4126	ac_cv_c_const=no
4127fi
4128
4129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130fi
4131{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4132echo "${ECHO_T}$ac_cv_c_const" >&6; }
4133if test $ac_cv_c_const = no; then
4134
4135cat >>confdefs.h <<\_ACEOF
4136#define const
4137_ACEOF
4138
4139fi
4140
4141
4142{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4143echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4144if test "${ac_cv_path_GREP+set}" = set; then
4145  echo $ECHO_N "(cached) $ECHO_C" >&6
4146else
4147  # Extract the first word of "grep ggrep" to use in msg output
4148if test -z "$GREP"; then
4149set dummy grep ggrep; ac_prog_name=$2
4150if test "${ac_cv_path_GREP+set}" = set; then
4151  echo $ECHO_N "(cached) $ECHO_C" >&6
4152else
4153  ac_path_GREP_found=false
4154# Loop through the user's path and test for each of PROGNAME-LIST
4155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4157do
4158  IFS=$as_save_IFS
4159  test -z "$as_dir" && as_dir=.
4160  for ac_prog in grep ggrep; do
4161  for ac_exec_ext in '' $ac_executable_extensions; do
4162    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4163    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4164    # Check for GNU ac_path_GREP and select it if it is found.
4165  # Check for GNU $ac_path_GREP
4166case `"$ac_path_GREP" --version 2>&1` in
4167*GNU*)
4168  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4169*)
4170  ac_count=0
4171  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4172  while :
4173  do
4174    cat "conftest.in" "conftest.in" >"conftest.tmp"
4175    mv "conftest.tmp" "conftest.in"
4176    cp "conftest.in" "conftest.nl"
4177    echo 'GREP' >> "conftest.nl"
4178    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4179    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4180    ac_count=`expr $ac_count + 1`
4181    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4182      # Best one so far, save it but keep looking for a better one
4183      ac_cv_path_GREP="$ac_path_GREP"
4184      ac_path_GREP_max=$ac_count
4185    fi
4186    # 10*(2^10) chars as input seems more than enough
4187    test $ac_count -gt 10 && break
4188  done
4189  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4190esac
4191
4192
4193    $ac_path_GREP_found && break 3
4194  done
4195done
4196
4197done
4198IFS=$as_save_IFS
4199
4200
4201fi
4202
4203GREP="$ac_cv_path_GREP"
4204if test -z "$GREP"; then
4205  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4206echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4207   { (exit 1); exit 1; }; }
4208fi
4209
4210else
4211  ac_cv_path_GREP=$GREP
4212fi
4213
4214
4215fi
4216{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4217echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4218 GREP="$ac_cv_path_GREP"
4219
4220
4221{ echo "$as_me:$LINENO: checking for egrep" >&5
4222echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4223if test "${ac_cv_path_EGREP+set}" = set; then
4224  echo $ECHO_N "(cached) $ECHO_C" >&6
4225else
4226  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4227   then ac_cv_path_EGREP="$GREP -E"
4228   else
4229     # Extract the first word of "egrep" to use in msg output
4230if test -z "$EGREP"; then
4231set dummy egrep; ac_prog_name=$2
4232if test "${ac_cv_path_EGREP+set}" = set; then
4233  echo $ECHO_N "(cached) $ECHO_C" >&6
4234else
4235  ac_path_EGREP_found=false
4236# Loop through the user's path and test for each of PROGNAME-LIST
4237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4239do
4240  IFS=$as_save_IFS
4241  test -z "$as_dir" && as_dir=.
4242  for ac_prog in egrep; do
4243  for ac_exec_ext in '' $ac_executable_extensions; do
4244    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4245    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4246    # Check for GNU ac_path_EGREP and select it if it is found.
4247  # Check for GNU $ac_path_EGREP
4248case `"$ac_path_EGREP" --version 2>&1` in
4249*GNU*)
4250  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4251*)
4252  ac_count=0
4253  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4254  while :
4255  do
4256    cat "conftest.in" "conftest.in" >"conftest.tmp"
4257    mv "conftest.tmp" "conftest.in"
4258    cp "conftest.in" "conftest.nl"
4259    echo 'EGREP' >> "conftest.nl"
4260    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4261    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4262    ac_count=`expr $ac_count + 1`
4263    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4264      # Best one so far, save it but keep looking for a better one
4265      ac_cv_path_EGREP="$ac_path_EGREP"
4266      ac_path_EGREP_max=$ac_count
4267    fi
4268    # 10*(2^10) chars as input seems more than enough
4269    test $ac_count -gt 10 && break
4270  done
4271  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4272esac
4273
4274
4275    $ac_path_EGREP_found && break 3
4276  done
4277done
4278
4279done
4280IFS=$as_save_IFS
4281
4282
4283fi
4284
4285EGREP="$ac_cv_path_EGREP"
4286if test -z "$EGREP"; then
4287  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4288echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4289   { (exit 1); exit 1; }; }
4290fi
4291
4292else
4293  ac_cv_path_EGREP=$EGREP
4294fi
4295
4296
4297   fi
4298fi
4299{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4300echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4301 EGREP="$ac_cv_path_EGREP"
4302
4303
4304{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4305echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4306if test "${ac_cv_header_stdc+set}" = set; then
4307  echo $ECHO_N "(cached) $ECHO_C" >&6
4308else
4309  cat >conftest.$ac_ext <<_ACEOF
4310/* confdefs.h.  */
4311_ACEOF
4312cat confdefs.h >>conftest.$ac_ext
4313cat >>conftest.$ac_ext <<_ACEOF
4314/* end confdefs.h.  */
4315#include <stdlib.h>
4316#include <stdarg.h>
4317#include <string.h>
4318#include <float.h>
4319
4320int
4321main ()
4322{
4323
4324  ;
4325  return 0;
4326}
4327_ACEOF
4328rm -f conftest.$ac_objext
4329if { (ac_try="$ac_compile"
4330case "(($ac_try" in
4331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332  *) ac_try_echo=$ac_try;;
4333esac
4334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335  (eval "$ac_compile") 2>conftest.er1
4336  ac_status=$?
4337  grep -v '^ *+' conftest.er1 >conftest.err
4338  rm -f conftest.er1
4339  cat conftest.err >&5
4340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341  (exit $ac_status); } &&
4342	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4343  { (case "(($ac_try" in
4344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345  *) ac_try_echo=$ac_try;;
4346esac
4347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348  (eval "$ac_try") 2>&5
4349  ac_status=$?
4350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351  (exit $ac_status); }; } &&
4352	 { ac_try='test -s conftest.$ac_objext'
4353  { (case "(($ac_try" in
4354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355  *) ac_try_echo=$ac_try;;
4356esac
4357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358  (eval "$ac_try") 2>&5
4359  ac_status=$?
4360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361  (exit $ac_status); }; }; then
4362  ac_cv_header_stdc=yes
4363else
4364  echo "$as_me: failed program was:" >&5
4365sed 's/^/| /' conftest.$ac_ext >&5
4366
4367	ac_cv_header_stdc=no
4368fi
4369
4370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4371
4372if test $ac_cv_header_stdc = yes; then
4373  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4374  cat >conftest.$ac_ext <<_ACEOF
4375/* confdefs.h.  */
4376_ACEOF
4377cat confdefs.h >>conftest.$ac_ext
4378cat >>conftest.$ac_ext <<_ACEOF
4379/* end confdefs.h.  */
4380#include <string.h>
4381
4382_ACEOF
4383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4384  $EGREP "memchr" >/dev/null 2>&1; then
4385  :
4386else
4387  ac_cv_header_stdc=no
4388fi
4389rm -f conftest*
4390
4391fi
4392
4393if test $ac_cv_header_stdc = yes; then
4394  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4395  cat >conftest.$ac_ext <<_ACEOF
4396/* confdefs.h.  */
4397_ACEOF
4398cat confdefs.h >>conftest.$ac_ext
4399cat >>conftest.$ac_ext <<_ACEOF
4400/* end confdefs.h.  */
4401#include <stdlib.h>
4402
4403_ACEOF
4404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4405  $EGREP "free" >/dev/null 2>&1; then
4406  :
4407else
4408  ac_cv_header_stdc=no
4409fi
4410rm -f conftest*
4411
4412fi
4413
4414if test $ac_cv_header_stdc = yes; then
4415  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4416  if test "$cross_compiling" = yes; then
4417  :
4418else
4419  cat >conftest.$ac_ext <<_ACEOF
4420/* confdefs.h.  */
4421_ACEOF
4422cat confdefs.h >>conftest.$ac_ext
4423cat >>conftest.$ac_ext <<_ACEOF
4424/* end confdefs.h.  */
4425#include <ctype.h>
4426#include <stdlib.h>
4427#if ((' ' & 0x0FF) == 0x020)
4428# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4429# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4430#else
4431# define ISLOWER(c) \
4432		   (('a' <= (c) && (c) <= 'i') \
4433		     || ('j' <= (c) && (c) <= 'r') \
4434		     || ('s' <= (c) && (c) <= 'z'))
4435# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4436#endif
4437
4438#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4439int
4440main ()
4441{
4442  int i;
4443  for (i = 0; i < 256; i++)
4444    if (XOR (islower (i), ISLOWER (i))
4445	|| toupper (i) != TOUPPER (i))
4446      return 2;
4447  return 0;
4448}
4449_ACEOF
4450rm -f conftest$ac_exeext
4451if { (ac_try="$ac_link"
4452case "(($ac_try" in
4453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454  *) ac_try_echo=$ac_try;;
4455esac
4456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457  (eval "$ac_link") 2>&5
4458  ac_status=$?
4459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4461  { (case "(($ac_try" in
4462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463  *) ac_try_echo=$ac_try;;
4464esac
4465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466  (eval "$ac_try") 2>&5
4467  ac_status=$?
4468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469  (exit $ac_status); }; }; then
4470  :
4471else
4472  echo "$as_me: program exited with status $ac_status" >&5
4473echo "$as_me: failed program was:" >&5
4474sed 's/^/| /' conftest.$ac_ext >&5
4475
4476( exit $ac_status )
4477ac_cv_header_stdc=no
4478fi
4479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4480fi
4481
4482
4483fi
4484fi
4485{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4486echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4487if test $ac_cv_header_stdc = yes; then
4488
4489cat >>confdefs.h <<\_ACEOF
4490#define STDC_HEADERS 1
4491_ACEOF
4492
4493fi
4494
4495# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4506		  inttypes.h stdint.h unistd.h
4507do
4508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4509{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4512  echo $ECHO_N "(cached) $ECHO_C" >&6
4513else
4514  cat >conftest.$ac_ext <<_ACEOF
4515/* confdefs.h.  */
4516_ACEOF
4517cat confdefs.h >>conftest.$ac_ext
4518cat >>conftest.$ac_ext <<_ACEOF
4519/* end confdefs.h.  */
4520$ac_includes_default
4521
4522#include <$ac_header>
4523_ACEOF
4524rm -f conftest.$ac_objext
4525if { (ac_try="$ac_compile"
4526case "(($ac_try" in
4527  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528  *) ac_try_echo=$ac_try;;
4529esac
4530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531  (eval "$ac_compile") 2>conftest.er1
4532  ac_status=$?
4533  grep -v '^ *+' conftest.er1 >conftest.err
4534  rm -f conftest.er1
4535  cat conftest.err >&5
4536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537  (exit $ac_status); } &&
4538	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4539  { (case "(($ac_try" in
4540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541  *) ac_try_echo=$ac_try;;
4542esac
4543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544  (eval "$ac_try") 2>&5
4545  ac_status=$?
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); }; } &&
4548	 { ac_try='test -s conftest.$ac_objext'
4549  { (case "(($ac_try" in
4550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551  *) ac_try_echo=$ac_try;;
4552esac
4553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554  (eval "$ac_try") 2>&5
4555  ac_status=$?
4556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557  (exit $ac_status); }; }; then
4558  eval "$as_ac_Header=yes"
4559else
4560  echo "$as_me: failed program was:" >&5
4561sed 's/^/| /' conftest.$ac_ext >&5
4562
4563	eval "$as_ac_Header=no"
4564fi
4565
4566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567fi
4568ac_res=`eval echo '${'$as_ac_Header'}'`
4569	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4570echo "${ECHO_T}$ac_res" >&6; }
4571if test `eval echo '${'$as_ac_Header'}'` = yes; then
4572  cat >>confdefs.h <<_ACEOF
4573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4574_ACEOF
4575
4576fi
4577
4578done
4579
4580
4581{ echo "$as_me:$LINENO: checking for size_t" >&5
4582echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4583if test "${ac_cv_type_size_t+set}" = set; then
4584  echo $ECHO_N "(cached) $ECHO_C" >&6
4585else
4586  cat >conftest.$ac_ext <<_ACEOF
4587/* confdefs.h.  */
4588_ACEOF
4589cat confdefs.h >>conftest.$ac_ext
4590cat >>conftest.$ac_ext <<_ACEOF
4591/* end confdefs.h.  */
4592$ac_includes_default
4593typedef size_t ac__type_new_;
4594int
4595main ()
4596{
4597if ((ac__type_new_ *) 0)
4598  return 0;
4599if (sizeof (ac__type_new_))
4600  return 0;
4601  ;
4602  return 0;
4603}
4604_ACEOF
4605rm -f conftest.$ac_objext
4606if { (ac_try="$ac_compile"
4607case "(($ac_try" in
4608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609  *) ac_try_echo=$ac_try;;
4610esac
4611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612  (eval "$ac_compile") 2>conftest.er1
4613  ac_status=$?
4614  grep -v '^ *+' conftest.er1 >conftest.err
4615  rm -f conftest.er1
4616  cat conftest.err >&5
4617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618  (exit $ac_status); } &&
4619	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4620  { (case "(($ac_try" in
4621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622  *) ac_try_echo=$ac_try;;
4623esac
4624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4625  (eval "$ac_try") 2>&5
4626  ac_status=$?
4627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628  (exit $ac_status); }; } &&
4629	 { ac_try='test -s conftest.$ac_objext'
4630  { (case "(($ac_try" in
4631  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632  *) ac_try_echo=$ac_try;;
4633esac
4634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635  (eval "$ac_try") 2>&5
4636  ac_status=$?
4637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638  (exit $ac_status); }; }; then
4639  ac_cv_type_size_t=yes
4640else
4641  echo "$as_me: failed program was:" >&5
4642sed 's/^/| /' conftest.$ac_ext >&5
4643
4644	ac_cv_type_size_t=no
4645fi
4646
4647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648fi
4649{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4650echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4651if test $ac_cv_type_size_t = yes; then
4652  :
4653else
4654
4655cat >>confdefs.h <<_ACEOF
4656#define size_t unsigned int
4657_ACEOF
4658
4659fi
4660
4661
4662
4663# Check whether --enable-shared was given.
4664if test "${enable_shared+set}" = set; then
4665  enableval=$enable_shared; p=${PACKAGE-default}
4666    case $enableval in
4667    yes) enable_shared=yes ;;
4668    no) enable_shared=no ;;
4669    *)
4670      enable_shared=no
4671      # Look at the argument we got.  We use all the common list separators.
4672      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4673      for pkg in $enableval; do
4674	IFS="$lt_save_ifs"
4675	if test "X$pkg" = "X$p"; then
4676	  enable_shared=yes
4677	fi
4678      done
4679      IFS="$lt_save_ifs"
4680      ;;
4681    esac
4682else
4683  enable_shared=yes
4684fi
4685
4686
4687# Check whether --enable-static was given.
4688if test "${enable_static+set}" = set; then
4689  enableval=$enable_static; p=${PACKAGE-default}
4690    case $enableval in
4691    yes) enable_static=yes ;;
4692    no) enable_static=no ;;
4693    *)
4694     enable_static=no
4695      # Look at the argument we got.  We use all the common list separators.
4696      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4697      for pkg in $enableval; do
4698	IFS="$lt_save_ifs"
4699	if test "X$pkg" = "X$p"; then
4700	  enable_static=yes
4701	fi
4702      done
4703      IFS="$lt_save_ifs"
4704      ;;
4705    esac
4706else
4707  enable_static=yes
4708fi
4709
4710
4711# Check whether --enable-fast-install was given.
4712if test "${enable_fast_install+set}" = set; then
4713  enableval=$enable_fast_install; p=${PACKAGE-default}
4714    case $enableval in
4715    yes) enable_fast_install=yes ;;
4716    no) enable_fast_install=no ;;
4717    *)
4718      enable_fast_install=no
4719      # Look at the argument we got.  We use all the common list separators.
4720      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4721      for pkg in $enableval; do
4722	IFS="$lt_save_ifs"
4723	if test "X$pkg" = "X$p"; then
4724	  enable_fast_install=yes
4725	fi
4726      done
4727      IFS="$lt_save_ifs"
4728      ;;
4729    esac
4730else
4731  enable_fast_install=yes
4732fi
4733
4734
4735# Make sure we can run config.sub.
4736$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4737  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4738echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4739   { (exit 1); exit 1; }; }
4740
4741{ echo "$as_me:$LINENO: checking build system type" >&5
4742echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4743if test "${ac_cv_build+set}" = set; then
4744  echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746  ac_build_alias=$build_alias
4747test "x$ac_build_alias" = x &&
4748  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4749test "x$ac_build_alias" = x &&
4750  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4751echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4752   { (exit 1); exit 1; }; }
4753ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4754  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4755echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4756   { (exit 1); exit 1; }; }
4757
4758fi
4759{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4760echo "${ECHO_T}$ac_cv_build" >&6; }
4761case $ac_cv_build in
4762*-*-*) ;;
4763*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4764echo "$as_me: error: invalid value of canonical build" >&2;}
4765   { (exit 1); exit 1; }; };;
4766esac
4767build=$ac_cv_build
4768ac_save_IFS=$IFS; IFS='-'
4769set x $ac_cv_build
4770shift
4771build_cpu=$1
4772build_vendor=$2
4773shift; shift
4774# Remember, the first character of IFS is used to create $*,
4775# except with old shells:
4776build_os=$*
4777IFS=$ac_save_IFS
4778case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4779
4780
4781{ echo "$as_me:$LINENO: checking host system type" >&5
4782echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4783if test "${ac_cv_host+set}" = set; then
4784  echo $ECHO_N "(cached) $ECHO_C" >&6
4785else
4786  if test "x$host_alias" = x; then
4787  ac_cv_host=$ac_cv_build
4788else
4789  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4790    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4791echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4792   { (exit 1); exit 1; }; }
4793fi
4794
4795fi
4796{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4797echo "${ECHO_T}$ac_cv_host" >&6; }
4798case $ac_cv_host in
4799*-*-*) ;;
4800*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4801echo "$as_me: error: invalid value of canonical host" >&2;}
4802   { (exit 1); exit 1; }; };;
4803esac
4804host=$ac_cv_host
4805ac_save_IFS=$IFS; IFS='-'
4806set x $ac_cv_host
4807shift
4808host_cpu=$1
4809host_vendor=$2
4810shift; shift
4811# Remember, the first character of IFS is used to create $*,
4812# except with old shells:
4813host_os=$*
4814IFS=$ac_save_IFS
4815case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4816
4817
4818{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4819echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4820if test "${lt_cv_path_SED+set}" = set; then
4821  echo $ECHO_N "(cached) $ECHO_C" >&6
4822else
4823  # Loop through the user's path and test for sed and gsed.
4824# Then use that list of sed's as ones to test for truncation.
4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828  IFS=$as_save_IFS
4829  test -z "$as_dir" && as_dir=.
4830  for lt_ac_prog in sed gsed; do
4831    for ac_exec_ext in '' $ac_executable_extensions; do
4832      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4833        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4834      fi
4835    done
4836  done
4837done
4838lt_ac_max=0
4839lt_ac_count=0
4840# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4841# along with /bin/sed that truncates output.
4842for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4843  test ! -f $lt_ac_sed && continue
4844  cat /dev/null > conftest.in
4845  lt_ac_count=0
4846  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4847  # Check for GNU sed and select it if it is found.
4848  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4849    lt_cv_path_SED=$lt_ac_sed
4850    break
4851  fi
4852  while true; do
4853    cat conftest.in conftest.in >conftest.tmp
4854    mv conftest.tmp conftest.in
4855    cp conftest.in conftest.nl
4856    echo >>conftest.nl
4857    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4858    cmp -s conftest.out conftest.nl || break
4859    # 10000 chars as input seems more than enough
4860    test $lt_ac_count -gt 10 && break
4861    lt_ac_count=`expr $lt_ac_count + 1`
4862    if test $lt_ac_count -gt $lt_ac_max; then
4863      lt_ac_max=$lt_ac_count
4864      lt_cv_path_SED=$lt_ac_sed
4865    fi
4866  done
4867done
4868
4869fi
4870
4871SED=$lt_cv_path_SED
4872{ echo "$as_me:$LINENO: result: $SED" >&5
4873echo "${ECHO_T}$SED" >&6; }
4874
4875
4876# Check whether --with-gnu-ld was given.
4877if test "${with_gnu_ld+set}" = set; then
4878  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4879else
4880  with_gnu_ld=no
4881fi
4882
4883ac_prog=ld
4884if test "$GCC" = yes; then
4885  # Check if gcc -print-prog-name=ld gives a path.
4886  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4887echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4888  case $host in
4889  *-*-mingw*)
4890    # gcc leaves a trailing carriage return which upsets mingw
4891    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4892  *)
4893    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4894  esac
4895  case $ac_prog in
4896    # Accept absolute paths.
4897    [\\/]* | ?:[\\/]*)
4898      re_direlt='/[^/][^/]*/\.\./'
4899      # Canonicalize the pathname of ld
4900      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4901      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4902	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4903      done
4904      test -z "$LD" && LD="$ac_prog"
4905      ;;
4906  "")
4907    # If it fails, then pretend we aren't using GCC.
4908    ac_prog=ld
4909    ;;
4910  *)
4911    # If it is relative, then search for the first ld in PATH.
4912    with_gnu_ld=unknown
4913    ;;
4914  esac
4915elif test "$with_gnu_ld" = yes; then
4916  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4917echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4918else
4919  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4920echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4921fi
4922if test "${lt_cv_path_LD+set}" = set; then
4923  echo $ECHO_N "(cached) $ECHO_C" >&6
4924else
4925  if test -z "$LD"; then
4926  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4927  for ac_dir in $PATH; do
4928    IFS="$lt_save_ifs"
4929    test -z "$ac_dir" && ac_dir=.
4930    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4931      lt_cv_path_LD="$ac_dir/$ac_prog"
4932      # Check to see if the program is GNU ld.  I'd rather use --version,
4933      # but apparently some variants of GNU ld only accept -v.
4934      # Break only if it was the GNU/non-GNU ld that we prefer.
4935      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4936      *GNU* | *'with BFD'*)
4937	test "$with_gnu_ld" != no && break
4938	;;
4939      *)
4940	test "$with_gnu_ld" != yes && break
4941	;;
4942      esac
4943    fi
4944  done
4945  IFS="$lt_save_ifs"
4946else
4947  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4948fi
4949fi
4950
4951LD="$lt_cv_path_LD"
4952if test -n "$LD"; then
4953  { echo "$as_me:$LINENO: result: $LD" >&5
4954echo "${ECHO_T}$LD" >&6; }
4955else
4956  { echo "$as_me:$LINENO: result: no" >&5
4957echo "${ECHO_T}no" >&6; }
4958fi
4959test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4960echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4961   { (exit 1); exit 1; }; }
4962{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4963echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4964if test "${lt_cv_prog_gnu_ld+set}" = set; then
4965  echo $ECHO_N "(cached) $ECHO_C" >&6
4966else
4967  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4968case `$LD -v 2>&1 </dev/null` in
4969*GNU* | *'with BFD'*)
4970  lt_cv_prog_gnu_ld=yes
4971  ;;
4972*)
4973  lt_cv_prog_gnu_ld=no
4974  ;;
4975esac
4976fi
4977{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4978echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4979with_gnu_ld=$lt_cv_prog_gnu_ld
4980
4981
4982{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4983echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4984if test "${lt_cv_ld_reload_flag+set}" = set; then
4985  echo $ECHO_N "(cached) $ECHO_C" >&6
4986else
4987  lt_cv_ld_reload_flag='-r'
4988fi
4989{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4990echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4991reload_flag=$lt_cv_ld_reload_flag
4992case $reload_flag in
4993"" | " "*) ;;
4994*) reload_flag=" $reload_flag" ;;
4995esac
4996reload_cmds='$LD$reload_flag -o $output$reload_objs'
4997case $host_os in
4998  darwin*)
4999    if test "$GCC" = yes; then
5000      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5001    else
5002      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5003    fi
5004    ;;
5005esac
5006
5007{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5008echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5009if test "${lt_cv_path_NM+set}" = set; then
5010  echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012  if test -n "$NM"; then
5013  # Let the user override the test.
5014  lt_cv_path_NM="$NM"
5015else
5016  lt_nm_to_check="${ac_tool_prefix}nm"
5017  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5018    lt_nm_to_check="$lt_nm_to_check nm"
5019  fi
5020  for lt_tmp_nm in $lt_nm_to_check; do
5021    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5022    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5023      IFS="$lt_save_ifs"
5024      test -z "$ac_dir" && ac_dir=.
5025      tmp_nm="$ac_dir/$lt_tmp_nm"
5026      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5027	# Check to see if the nm accepts a BSD-compat flag.
5028	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5029	#   nm: unknown option "B" ignored
5030	# Tru64's nm complains that /dev/null is an invalid object file
5031	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5032	*/dev/null* | *'Invalid file or object type'*)
5033	  lt_cv_path_NM="$tmp_nm -B"
5034	  break
5035	  ;;
5036	*)
5037	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5038	  */dev/null*)
5039	    lt_cv_path_NM="$tmp_nm -p"
5040	    break
5041	    ;;
5042	  *)
5043	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5044	    continue # so that we can try to find one that supports BSD flags
5045	    ;;
5046	  esac
5047	  ;;
5048	esac
5049      fi
5050    done
5051    IFS="$lt_save_ifs"
5052  done
5053  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5054fi
5055fi
5056{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5057echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5058NM="$lt_cv_path_NM"
5059
5060{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5061echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5062if test "${lt_cv_deplibs_check_method+set}" = set; then
5063  echo $ECHO_N "(cached) $ECHO_C" >&6
5064else
5065  lt_cv_file_magic_cmd='$MAGIC_CMD'
5066lt_cv_file_magic_test_file=
5067lt_cv_deplibs_check_method='unknown'
5068# Need to set the preceding variable on all platforms that support
5069# interlibrary dependencies.
5070# 'none' -- dependencies not supported.
5071# `unknown' -- same as none, but documents that we really don't know.
5072# 'pass_all' -- all dependencies passed with no checks.
5073# 'test_compile' -- check by making test program.
5074# 'file_magic [[regex]]' -- check by looking for files in library path
5075# which responds to the $file_magic_cmd with a given extended regex.
5076# If you have `file' or equivalent on your system and you're not sure
5077# whether `pass_all' will *always* work, you probably want this one.
5078
5079case $host_os in
5080aix4* | aix5*)
5081  lt_cv_deplibs_check_method=pass_all
5082  ;;
5083
5084beos*)
5085  lt_cv_deplibs_check_method=pass_all
5086  ;;
5087
5088bsdi[45]*)
5089  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5090  lt_cv_file_magic_cmd='/usr/bin/file -L'
5091  lt_cv_file_magic_test_file=/shlib/libc.so
5092  ;;
5093
5094cygwin*)
5095  # func_win32_libid is a shell function defined in ltmain.sh
5096  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5097  lt_cv_file_magic_cmd='func_win32_libid'
5098  ;;
5099
5100mingw* | pw32*)
5101  # Base MSYS/MinGW do not provide the 'file' command needed by
5102  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5103  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5104  lt_cv_file_magic_cmd='$OBJDUMP -f'
5105  ;;
5106
5107darwin* | rhapsody*)
5108  lt_cv_deplibs_check_method=pass_all
5109  ;;
5110
5111freebsd* | dragonfly*)
5112  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5113    case $host_cpu in
5114    i*86 )
5115      # Not sure whether the presence of OpenBSD here was a mistake.
5116      # Let's accept both of them until this is cleared up.
5117      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5118      lt_cv_file_magic_cmd=/usr/bin/file
5119      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5120      ;;
5121    esac
5122  else
5123    lt_cv_deplibs_check_method=pass_all
5124  fi
5125  ;;
5126
5127gnu*)
5128  lt_cv_deplibs_check_method=pass_all
5129  ;;
5130
5131hpux10.20* | hpux11*)
5132  lt_cv_file_magic_cmd=/usr/bin/file
5133  case $host_cpu in
5134  ia64*)
5135    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5136    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5137    ;;
5138  hppa*64*)
5139    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]'
5140    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5141    ;;
5142  *)
5143    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5144    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5145    ;;
5146  esac
5147  ;;
5148
5149interix3*)
5150  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5151  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5152  ;;
5153
5154irix5* | irix6* | nonstopux*)
5155  case $LD in
5156  *-32|*"-32 ") libmagic=32-bit;;
5157  *-n32|*"-n32 ") libmagic=N32;;
5158  *-64|*"-64 ") libmagic=64-bit;;
5159  *) libmagic=never-match;;
5160  esac
5161  lt_cv_deplibs_check_method=pass_all
5162  ;;
5163
5164# This must be Linux ELF.
5165linux* | k*bsd*-gnu)
5166  lt_cv_deplibs_check_method=pass_all
5167  ;;
5168
5169netbsd* | netbsdelf*-gnu)
5170  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5171    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5172  else
5173    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5174  fi
5175  ;;
5176
5177newos6*)
5178  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5179  lt_cv_file_magic_cmd=/usr/bin/file
5180  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5181  ;;
5182
5183nto-qnx*)
5184  lt_cv_deplibs_check_method=unknown
5185  ;;
5186
5187openbsd*)
5188  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5189    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5190  else
5191    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5192  fi
5193  ;;
5194
5195osf3* | osf4* | osf5*)
5196  lt_cv_deplibs_check_method=pass_all
5197  ;;
5198
5199solaris*)
5200  lt_cv_deplibs_check_method=pass_all
5201  ;;
5202
5203sysv4 | sysv4.3*)
5204  case $host_vendor in
5205  motorola)
5206    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]'
5207    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5208    ;;
5209  ncr)
5210    lt_cv_deplibs_check_method=pass_all
5211    ;;
5212  sequent)
5213    lt_cv_file_magic_cmd='/bin/file'
5214    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5215    ;;
5216  sni)
5217    lt_cv_file_magic_cmd='/bin/file'
5218    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5219    lt_cv_file_magic_test_file=/lib/libc.so
5220    ;;
5221  siemens)
5222    lt_cv_deplibs_check_method=pass_all
5223    ;;
5224  pc)
5225    lt_cv_deplibs_check_method=pass_all
5226    ;;
5227  esac
5228  ;;
5229
5230sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5231  lt_cv_deplibs_check_method=pass_all
5232  ;;
5233esac
5234
5235fi
5236{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5237echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5238file_magic_cmd=$lt_cv_file_magic_cmd
5239deplibs_check_method=$lt_cv_deplibs_check_method
5240test -z "$deplibs_check_method" && deplibs_check_method=unknown
5241
5242
5243
5244# If no C compiler was specified, use CC.
5245LTCC=${LTCC-"$CC"}
5246
5247# If no C compiler flags were specified, use CFLAGS.
5248LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5249
5250# Allow CC to be a program name with arguments.
5251compiler=$CC
5252
5253# Check whether --enable-libtool-lock was given.
5254if test "${enable_libtool_lock+set}" = set; then
5255  enableval=$enable_libtool_lock;
5256fi
5257
5258test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5259
5260# Some flags need to be propagated to the compiler or linker for good
5261# libtool support.
5262case $host in
5263ia64-*-hpux*)
5264  # Find out which ABI we are using.
5265  echo 'int i;' > conftest.$ac_ext
5266  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267  (eval $ac_compile) 2>&5
5268  ac_status=$?
5269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270  (exit $ac_status); }; then
5271    case `/usr/bin/file conftest.$ac_objext` in
5272    *ELF-32*)
5273      HPUX_IA64_MODE="32"
5274      ;;
5275    *ELF-64*)
5276      HPUX_IA64_MODE="64"
5277      ;;
5278    esac
5279  fi
5280  rm -rf conftest*
5281  ;;
5282*-*-irix6*)
5283  # Find out which ABI we are using.
5284  echo '#line 5284 "configure"' > conftest.$ac_ext
5285  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5286  (eval $ac_compile) 2>&5
5287  ac_status=$?
5288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289  (exit $ac_status); }; then
5290   if test "$lt_cv_prog_gnu_ld" = yes; then
5291    case `/usr/bin/file conftest.$ac_objext` in
5292    *32-bit*)
5293      LD="${LD-ld} -melf32bsmip"
5294      ;;
5295    *N32*)
5296      LD="${LD-ld} -melf32bmipn32"
5297      ;;
5298    *64-bit*)
5299      LD="${LD-ld} -melf64bmip"
5300      ;;
5301    esac
5302   else
5303    case `/usr/bin/file conftest.$ac_objext` in
5304    *32-bit*)
5305      LD="${LD-ld} -32"
5306      ;;
5307    *N32*)
5308      LD="${LD-ld} -n32"
5309      ;;
5310    *64-bit*)
5311      LD="${LD-ld} -64"
5312      ;;
5313    esac
5314   fi
5315  fi
5316  rm -rf conftest*
5317  ;;
5318
5319x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5320  # Find out which ABI we are using.
5321  echo 'int i;' > conftest.$ac_ext
5322  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5323  (eval $ac_compile) 2>&5
5324  ac_status=$?
5325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326  (exit $ac_status); }; then
5327    case `/usr/bin/file conftest.o` in
5328    *32-bit*)
5329      case $host in
5330        x86_64-*linux*)
5331          LD="${LD-ld} -m elf_i386"
5332          ;;
5333        ppc64-*linux*|powerpc64-*linux*)
5334          LD="${LD-ld} -m elf32ppclinux"
5335          ;;
5336        s390x-*linux*)
5337          LD="${LD-ld} -m elf_s390"
5338          ;;
5339        sparc64-*linux*)
5340          LD="${LD-ld} -m elf32_sparc"
5341          ;;
5342      esac
5343      ;;
5344    *64-bit*)
5345      case $host in
5346        x86_64-*linux*)
5347          LD="${LD-ld} -m elf_x86_64"
5348          ;;
5349        ppc*-*linux*|powerpc*-*linux*)
5350          LD="${LD-ld} -m elf64ppc"
5351          ;;
5352        s390*-*linux*)
5353          LD="${LD-ld} -m elf64_s390"
5354          ;;
5355        sparc*-*linux*)
5356          LD="${LD-ld} -m elf64_sparc"
5357          ;;
5358      esac
5359      ;;
5360    esac
5361  fi
5362  rm -rf conftest*
5363  ;;
5364
5365*-*-sco3.2v5*)
5366  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5367  SAVE_CFLAGS="$CFLAGS"
5368  CFLAGS="$CFLAGS -belf"
5369  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5370echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5371if test "${lt_cv_cc_needs_belf+set}" = set; then
5372  echo $ECHO_N "(cached) $ECHO_C" >&6
5373else
5374  ac_ext=c
5375ac_cpp='$CPP $CPPFLAGS'
5376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378ac_compiler_gnu=$ac_cv_c_compiler_gnu
5379
5380     cat >conftest.$ac_ext <<_ACEOF
5381/* confdefs.h.  */
5382_ACEOF
5383cat confdefs.h >>conftest.$ac_ext
5384cat >>conftest.$ac_ext <<_ACEOF
5385/* end confdefs.h.  */
5386
5387int
5388main ()
5389{
5390
5391  ;
5392  return 0;
5393}
5394_ACEOF
5395rm -f conftest.$ac_objext conftest$ac_exeext
5396if { (ac_try="$ac_link"
5397case "(($ac_try" in
5398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399  *) ac_try_echo=$ac_try;;
5400esac
5401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402  (eval "$ac_link") 2>conftest.er1
5403  ac_status=$?
5404  grep -v '^ *+' conftest.er1 >conftest.err
5405  rm -f conftest.er1
5406  cat conftest.err >&5
5407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408  (exit $ac_status); } &&
5409	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5410  { (case "(($ac_try" in
5411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412  *) ac_try_echo=$ac_try;;
5413esac
5414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415  (eval "$ac_try") 2>&5
5416  ac_status=$?
5417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418  (exit $ac_status); }; } &&
5419	 { ac_try='test -s conftest$ac_exeext'
5420  { (case "(($ac_try" in
5421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422  *) ac_try_echo=$ac_try;;
5423esac
5424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5425  (eval "$ac_try") 2>&5
5426  ac_status=$?
5427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428  (exit $ac_status); }; }; then
5429  lt_cv_cc_needs_belf=yes
5430else
5431  echo "$as_me: failed program was:" >&5
5432sed 's/^/| /' conftest.$ac_ext >&5
5433
5434	lt_cv_cc_needs_belf=no
5435fi
5436
5437rm -f core conftest.err conftest.$ac_objext \
5438      conftest$ac_exeext conftest.$ac_ext
5439     ac_ext=c
5440ac_cpp='$CPP $CPPFLAGS'
5441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5443ac_compiler_gnu=$ac_cv_c_compiler_gnu
5444
5445fi
5446{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5447echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5448  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5449    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5450    CFLAGS="$SAVE_CFLAGS"
5451  fi
5452  ;;
5453sparc*-*solaris*)
5454  # Find out which ABI we are using.
5455  echo 'int i;' > conftest.$ac_ext
5456  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5457  (eval $ac_compile) 2>&5
5458  ac_status=$?
5459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460  (exit $ac_status); }; then
5461    case `/usr/bin/file conftest.o` in
5462    *64-bit*)
5463      case $lt_cv_prog_gnu_ld in
5464      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5465      *)    LD="${LD-ld} -64" ;;
5466      esac
5467      ;;
5468    esac
5469  fi
5470  rm -rf conftest*
5471  ;;
5472
5473
5474esac
5475
5476need_locks="$enable_libtool_lock"
5477
5478
5479
5480for ac_header in dlfcn.h
5481do
5482as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5483if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5484  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5487  echo $ECHO_N "(cached) $ECHO_C" >&6
5488fi
5489ac_res=`eval echo '${'$as_ac_Header'}'`
5490	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5491echo "${ECHO_T}$ac_res" >&6; }
5492else
5493  # Is the header compilable?
5494{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5495echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5496cat >conftest.$ac_ext <<_ACEOF
5497/* confdefs.h.  */
5498_ACEOF
5499cat confdefs.h >>conftest.$ac_ext
5500cat >>conftest.$ac_ext <<_ACEOF
5501/* end confdefs.h.  */
5502$ac_includes_default
5503#include <$ac_header>
5504_ACEOF
5505rm -f conftest.$ac_objext
5506if { (ac_try="$ac_compile"
5507case "(($ac_try" in
5508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509  *) ac_try_echo=$ac_try;;
5510esac
5511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512  (eval "$ac_compile") 2>conftest.er1
5513  ac_status=$?
5514  grep -v '^ *+' conftest.er1 >conftest.err
5515  rm -f conftest.er1
5516  cat conftest.err >&5
5517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518  (exit $ac_status); } &&
5519	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5520  { (case "(($ac_try" in
5521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522  *) ac_try_echo=$ac_try;;
5523esac
5524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525  (eval "$ac_try") 2>&5
5526  ac_status=$?
5527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528  (exit $ac_status); }; } &&
5529	 { ac_try='test -s conftest.$ac_objext'
5530  { (case "(($ac_try" in
5531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532  *) ac_try_echo=$ac_try;;
5533esac
5534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535  (eval "$ac_try") 2>&5
5536  ac_status=$?
5537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538  (exit $ac_status); }; }; then
5539  ac_header_compiler=yes
5540else
5541  echo "$as_me: failed program was:" >&5
5542sed 's/^/| /' conftest.$ac_ext >&5
5543
5544	ac_header_compiler=no
5545fi
5546
5547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5549echo "${ECHO_T}$ac_header_compiler" >&6; }
5550
5551# Is the header present?
5552{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5553echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5554cat >conftest.$ac_ext <<_ACEOF
5555/* confdefs.h.  */
5556_ACEOF
5557cat confdefs.h >>conftest.$ac_ext
5558cat >>conftest.$ac_ext <<_ACEOF
5559/* end confdefs.h.  */
5560#include <$ac_header>
5561_ACEOF
5562if { (ac_try="$ac_cpp conftest.$ac_ext"
5563case "(($ac_try" in
5564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565  *) ac_try_echo=$ac_try;;
5566esac
5567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5569  ac_status=$?
5570  grep -v '^ *+' conftest.er1 >conftest.err
5571  rm -f conftest.er1
5572  cat conftest.err >&5
5573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574  (exit $ac_status); } >/dev/null; then
5575  if test -s conftest.err; then
5576    ac_cpp_err=$ac_c_preproc_warn_flag
5577    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5578  else
5579    ac_cpp_err=
5580  fi
5581else
5582  ac_cpp_err=yes
5583fi
5584if test -z "$ac_cpp_err"; then
5585  ac_header_preproc=yes
5586else
5587  echo "$as_me: failed program was:" >&5
5588sed 's/^/| /' conftest.$ac_ext >&5
5589
5590  ac_header_preproc=no
5591fi
5592
5593rm -f conftest.err conftest.$ac_ext
5594{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5595echo "${ECHO_T}$ac_header_preproc" >&6; }
5596
5597# So?  What about this header?
5598case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5599  yes:no: )
5600    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5601echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5602    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5603echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5604    ac_header_preproc=yes
5605    ;;
5606  no:yes:* )
5607    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5608echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5609    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5610echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5611    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5612echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5613    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5614echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5615    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5616echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5617    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5618echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5619    ( cat <<\_ASBOX
5620## ---------------------------------- ##
5621## Report this to chipx86@chipx86.com ##
5622## ---------------------------------- ##
5623_ASBOX
5624     ) | sed "s/^/$as_me: WARNING:     /" >&2
5625    ;;
5626esac
5627{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5630  echo $ECHO_N "(cached) $ECHO_C" >&6
5631else
5632  eval "$as_ac_Header=\$ac_header_preproc"
5633fi
5634ac_res=`eval echo '${'$as_ac_Header'}'`
5635	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5636echo "${ECHO_T}$ac_res" >&6; }
5637
5638fi
5639if test `eval echo '${'$as_ac_Header'}'` = yes; then
5640  cat >>confdefs.h <<_ACEOF
5641#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5642_ACEOF
5643
5644fi
5645
5646done
5647
5648ac_ext=cpp
5649ac_cpp='$CXXCPP $CPPFLAGS'
5650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5653if test -z "$CXX"; then
5654  if test -n "$CCC"; then
5655    CXX=$CCC
5656  else
5657    if test -n "$ac_tool_prefix"; then
5658  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5659  do
5660    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5661set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5664if test "${ac_cv_prog_CXX+set}" = set; then
5665  echo $ECHO_N "(cached) $ECHO_C" >&6
5666else
5667  if test -n "$CXX"; then
5668  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5669else
5670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671for as_dir in $PATH
5672do
5673  IFS=$as_save_IFS
5674  test -z "$as_dir" && as_dir=.
5675  for ac_exec_ext in '' $ac_executable_extensions; do
5676  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5677    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5678    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5679    break 2
5680  fi
5681done
5682done
5683IFS=$as_save_IFS
5684
5685fi
5686fi
5687CXX=$ac_cv_prog_CXX
5688if test -n "$CXX"; then
5689  { echo "$as_me:$LINENO: result: $CXX" >&5
5690echo "${ECHO_T}$CXX" >&6; }
5691else
5692  { echo "$as_me:$LINENO: result: no" >&5
5693echo "${ECHO_T}no" >&6; }
5694fi
5695
5696
5697    test -n "$CXX" && break
5698  done
5699fi
5700if test -z "$CXX"; then
5701  ac_ct_CXX=$CXX
5702  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5703do
5704  # Extract the first word of "$ac_prog", so it can be a program name with args.
5705set dummy $ac_prog; ac_word=$2
5706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5708if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5709  echo $ECHO_N "(cached) $ECHO_C" >&6
5710else
5711  if test -n "$ac_ct_CXX"; then
5712  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5713else
5714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715for as_dir in $PATH
5716do
5717  IFS=$as_save_IFS
5718  test -z "$as_dir" && as_dir=.
5719  for ac_exec_ext in '' $ac_executable_extensions; do
5720  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5721    ac_cv_prog_ac_ct_CXX="$ac_prog"
5722    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723    break 2
5724  fi
5725done
5726done
5727IFS=$as_save_IFS
5728
5729fi
5730fi
5731ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5732if test -n "$ac_ct_CXX"; then
5733  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5734echo "${ECHO_T}$ac_ct_CXX" >&6; }
5735else
5736  { echo "$as_me:$LINENO: result: no" >&5
5737echo "${ECHO_T}no" >&6; }
5738fi
5739
5740
5741  test -n "$ac_ct_CXX" && break
5742done
5743
5744  if test "x$ac_ct_CXX" = x; then
5745    CXX="g++"
5746  else
5747    case $cross_compiling:$ac_tool_warned in
5748yes:)
5749{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5750whose name does not start with the host triplet.  If you think this
5751configuration is useful to you, please write to autoconf@gnu.org." >&5
5752echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5753whose name does not start with the host triplet.  If you think this
5754configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5755ac_tool_warned=yes ;;
5756esac
5757    CXX=$ac_ct_CXX
5758  fi
5759fi
5760
5761  fi
5762fi
5763# Provide some information about the compiler.
5764echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5765ac_compiler=`set X $ac_compile; echo $2`
5766{ (ac_try="$ac_compiler --version >&5"
5767case "(($ac_try" in
5768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769  *) ac_try_echo=$ac_try;;
5770esac
5771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772  (eval "$ac_compiler --version >&5") 2>&5
5773  ac_status=$?
5774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775  (exit $ac_status); }
5776{ (ac_try="$ac_compiler -v >&5"
5777case "(($ac_try" in
5778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779  *) ac_try_echo=$ac_try;;
5780esac
5781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782  (eval "$ac_compiler -v >&5") 2>&5
5783  ac_status=$?
5784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785  (exit $ac_status); }
5786{ (ac_try="$ac_compiler -V >&5"
5787case "(($ac_try" in
5788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789  *) ac_try_echo=$ac_try;;
5790esac
5791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792  (eval "$ac_compiler -V >&5") 2>&5
5793  ac_status=$?
5794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795  (exit $ac_status); }
5796
5797{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5798echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5799if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5800  echo $ECHO_N "(cached) $ECHO_C" >&6
5801else
5802  cat >conftest.$ac_ext <<_ACEOF
5803/* confdefs.h.  */
5804_ACEOF
5805cat confdefs.h >>conftest.$ac_ext
5806cat >>conftest.$ac_ext <<_ACEOF
5807/* end confdefs.h.  */
5808
5809int
5810main ()
5811{
5812#ifndef __GNUC__
5813       choke me
5814#endif
5815
5816  ;
5817  return 0;
5818}
5819_ACEOF
5820rm -f conftest.$ac_objext
5821if { (ac_try="$ac_compile"
5822case "(($ac_try" in
5823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824  *) ac_try_echo=$ac_try;;
5825esac
5826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827  (eval "$ac_compile") 2>conftest.er1
5828  ac_status=$?
5829  grep -v '^ *+' conftest.er1 >conftest.err
5830  rm -f conftest.er1
5831  cat conftest.err >&5
5832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833  (exit $ac_status); } &&
5834	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5835  { (case "(($ac_try" in
5836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837  *) ac_try_echo=$ac_try;;
5838esac
5839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840  (eval "$ac_try") 2>&5
5841  ac_status=$?
5842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843  (exit $ac_status); }; } &&
5844	 { ac_try='test -s conftest.$ac_objext'
5845  { (case "(($ac_try" in
5846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5847  *) ac_try_echo=$ac_try;;
5848esac
5849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850  (eval "$ac_try") 2>&5
5851  ac_status=$?
5852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853  (exit $ac_status); }; }; then
5854  ac_compiler_gnu=yes
5855else
5856  echo "$as_me: failed program was:" >&5
5857sed 's/^/| /' conftest.$ac_ext >&5
5858
5859	ac_compiler_gnu=no
5860fi
5861
5862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5864
5865fi
5866{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5867echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5868GXX=`test $ac_compiler_gnu = yes && echo yes`
5869ac_test_CXXFLAGS=${CXXFLAGS+set}
5870ac_save_CXXFLAGS=$CXXFLAGS
5871{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5872echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5873if test "${ac_cv_prog_cxx_g+set}" = set; then
5874  echo $ECHO_N "(cached) $ECHO_C" >&6
5875else
5876  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5877   ac_cxx_werror_flag=yes
5878   ac_cv_prog_cxx_g=no
5879   CXXFLAGS="-g"
5880   cat >conftest.$ac_ext <<_ACEOF
5881/* confdefs.h.  */
5882_ACEOF
5883cat confdefs.h >>conftest.$ac_ext
5884cat >>conftest.$ac_ext <<_ACEOF
5885/* end confdefs.h.  */
5886
5887int
5888main ()
5889{
5890
5891  ;
5892  return 0;
5893}
5894_ACEOF
5895rm -f conftest.$ac_objext
5896if { (ac_try="$ac_compile"
5897case "(($ac_try" in
5898  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899  *) ac_try_echo=$ac_try;;
5900esac
5901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902  (eval "$ac_compile") 2>conftest.er1
5903  ac_status=$?
5904  grep -v '^ *+' conftest.er1 >conftest.err
5905  rm -f conftest.er1
5906  cat conftest.err >&5
5907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908  (exit $ac_status); } &&
5909	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5910  { (case "(($ac_try" in
5911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912  *) ac_try_echo=$ac_try;;
5913esac
5914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915  (eval "$ac_try") 2>&5
5916  ac_status=$?
5917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918  (exit $ac_status); }; } &&
5919	 { ac_try='test -s conftest.$ac_objext'
5920  { (case "(($ac_try" in
5921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922  *) ac_try_echo=$ac_try;;
5923esac
5924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925  (eval "$ac_try") 2>&5
5926  ac_status=$?
5927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928  (exit $ac_status); }; }; then
5929  ac_cv_prog_cxx_g=yes
5930else
5931  echo "$as_me: failed program was:" >&5
5932sed 's/^/| /' conftest.$ac_ext >&5
5933
5934	CXXFLAGS=""
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
5942int
5943main ()
5944{
5945
5946  ;
5947  return 0;
5948}
5949_ACEOF
5950rm -f conftest.$ac_objext
5951if { (ac_try="$ac_compile"
5952case "(($ac_try" in
5953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954  *) ac_try_echo=$ac_try;;
5955esac
5956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957  (eval "$ac_compile") 2>conftest.er1
5958  ac_status=$?
5959  grep -v '^ *+' conftest.er1 >conftest.err
5960  rm -f conftest.er1
5961  cat conftest.err >&5
5962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963  (exit $ac_status); } &&
5964	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5965  { (case "(($ac_try" in
5966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967  *) ac_try_echo=$ac_try;;
5968esac
5969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970  (eval "$ac_try") 2>&5
5971  ac_status=$?
5972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973  (exit $ac_status); }; } &&
5974	 { ac_try='test -s conftest.$ac_objext'
5975  { (case "(($ac_try" in
5976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977  *) ac_try_echo=$ac_try;;
5978esac
5979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980  (eval "$ac_try") 2>&5
5981  ac_status=$?
5982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983  (exit $ac_status); }; }; then
5984  :
5985else
5986  echo "$as_me: failed program was:" >&5
5987sed 's/^/| /' conftest.$ac_ext >&5
5988
5989	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5990	 CXXFLAGS="-g"
5991	 cat >conftest.$ac_ext <<_ACEOF
5992/* confdefs.h.  */
5993_ACEOF
5994cat confdefs.h >>conftest.$ac_ext
5995cat >>conftest.$ac_ext <<_ACEOF
5996/* end confdefs.h.  */
5997
5998int
5999main ()
6000{
6001
6002  ;
6003  return 0;
6004}
6005_ACEOF
6006rm -f conftest.$ac_objext
6007if { (ac_try="$ac_compile"
6008case "(($ac_try" in
6009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010  *) ac_try_echo=$ac_try;;
6011esac
6012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013  (eval "$ac_compile") 2>conftest.er1
6014  ac_status=$?
6015  grep -v '^ *+' conftest.er1 >conftest.err
6016  rm -f conftest.er1
6017  cat conftest.err >&5
6018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019  (exit $ac_status); } &&
6020	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6021  { (case "(($ac_try" in
6022  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023  *) ac_try_echo=$ac_try;;
6024esac
6025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026  (eval "$ac_try") 2>&5
6027  ac_status=$?
6028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029  (exit $ac_status); }; } &&
6030	 { ac_try='test -s conftest.$ac_objext'
6031  { (case "(($ac_try" in
6032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033  *) ac_try_echo=$ac_try;;
6034esac
6035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036  (eval "$ac_try") 2>&5
6037  ac_status=$?
6038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039  (exit $ac_status); }; }; then
6040  ac_cv_prog_cxx_g=yes
6041else
6042  echo "$as_me: failed program was:" >&5
6043sed 's/^/| /' conftest.$ac_ext >&5
6044
6045
6046fi
6047
6048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049fi
6050
6051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052fi
6053
6054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6056fi
6057{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6058echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6059if test "$ac_test_CXXFLAGS" = set; then
6060  CXXFLAGS=$ac_save_CXXFLAGS
6061elif test $ac_cv_prog_cxx_g = yes; then
6062  if test "$GXX" = yes; then
6063    CXXFLAGS="-g -O2"
6064  else
6065    CXXFLAGS="-g"
6066  fi
6067else
6068  if test "$GXX" = yes; then
6069    CXXFLAGS="-O2"
6070  else
6071    CXXFLAGS=
6072  fi
6073fi
6074ac_ext=cpp
6075ac_cpp='$CXXCPP $CPPFLAGS'
6076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6079
6080depcc="$CXX"  am_compiler_list=
6081
6082{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6083echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6084if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6085  echo $ECHO_N "(cached) $ECHO_C" >&6
6086else
6087  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6088  # We make a subdir and do the tests there.  Otherwise we can end up
6089  # making bogus files that we don't know about and never remove.  For
6090  # instance it was reported that on HP-UX the gcc test will end up
6091  # making a dummy file named `D' -- because `-MD' means `put the output
6092  # in D'.
6093  mkdir conftest.dir
6094  # Copy depcomp to subdir because otherwise we won't find it if we're
6095  # using a relative directory.
6096  cp "$am_depcomp" conftest.dir
6097  cd conftest.dir
6098  # We will build objects and dependencies in a subdirectory because
6099  # it helps to detect inapplicable dependency modes.  For instance
6100  # both Tru64's cc and ICC support -MD to output dependencies as a
6101  # side effect of compilation, but ICC will put the dependencies in
6102  # the current directory while Tru64 will put them in the object
6103  # directory.
6104  mkdir sub
6105
6106  am_cv_CXX_dependencies_compiler_type=none
6107  if test "$am_compiler_list" = ""; then
6108     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6109  fi
6110  for depmode in $am_compiler_list; do
6111    # Setup a source with many dependencies, because some compilers
6112    # like to wrap large dependency lists on column 80 (with \), and
6113    # we should not choose a depcomp mode which is confused by this.
6114    #
6115    # We need to recreate these files for each test, as the compiler may
6116    # overwrite some of them when testing with obscure command lines.
6117    # This happens at least with the AIX C compiler.
6118    : > sub/conftest.c
6119    for i in 1 2 3 4 5 6; do
6120      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6121      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6122      # Solaris 8's {/usr,}/bin/sh.
6123      touch sub/conftst$i.h
6124    done
6125    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6126
6127    case $depmode in
6128    nosideeffect)
6129      # after this tag, mechanisms are not by side-effect, so they'll
6130      # only be used when explicitly requested
6131      if test "x$enable_dependency_tracking" = xyes; then
6132	continue
6133      else
6134	break
6135      fi
6136      ;;
6137    none) break ;;
6138    esac
6139    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6140    # mode.  It turns out that the SunPro C++ compiler does not properly
6141    # handle `-M -o', and we need to detect this.
6142    if depmode=$depmode \
6143       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6144       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6145       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6146         >/dev/null 2>conftest.err &&
6147       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6148       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6149       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6150      # icc doesn't choke on unknown options, it will just issue warnings
6151      # or remarks (even with -Werror).  So we grep stderr for any message
6152      # that says an option was ignored or not supported.
6153      # When given -MP, icc 7.0 and 7.1 complain thusly:
6154      #   icc: Command line warning: ignoring option '-M'; no argument required
6155      # The diagnosis changed in icc 8.0:
6156      #   icc: Command line remark: option '-MP' not supported
6157      if (grep 'ignoring option' conftest.err ||
6158          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6159        am_cv_CXX_dependencies_compiler_type=$depmode
6160        break
6161      fi
6162    fi
6163  done
6164
6165  cd ..
6166  rm -rf conftest.dir
6167else
6168  am_cv_CXX_dependencies_compiler_type=none
6169fi
6170
6171fi
6172{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6173echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6174CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6175
6176
6177
6178if
6179  test "x$enable_dependency_tracking" != xno \
6180  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6181  am__fastdepCXX_TRUE=
6182  am__fastdepCXX_FALSE='#'
6183else
6184  am__fastdepCXX_TRUE='#'
6185  am__fastdepCXX_FALSE=
6186fi
6187
6188
6189
6190
6191if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6192    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6193    (test "X$CXX" != "Xg++"))) ; then
6194  ac_ext=cpp
6195ac_cpp='$CXXCPP $CPPFLAGS'
6196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6199{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6200echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6201if test -z "$CXXCPP"; then
6202  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6203  echo $ECHO_N "(cached) $ECHO_C" >&6
6204else
6205      # Double quotes because CXXCPP needs to be expanded
6206    for CXXCPP in "$CXX -E" "/lib/cpp"
6207    do
6208      ac_preproc_ok=false
6209for ac_cxx_preproc_warn_flag in '' yes
6210do
6211  # Use a header file that comes with gcc, so configuring glibc
6212  # with a fresh cross-compiler works.
6213  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6214  # <limits.h> exists even on freestanding compilers.
6215  # On the NeXT, cc -E runs the code through the compiler's parser,
6216  # not just through cpp. "Syntax error" is here to catch this case.
6217  cat >conftest.$ac_ext <<_ACEOF
6218/* confdefs.h.  */
6219_ACEOF
6220cat confdefs.h >>conftest.$ac_ext
6221cat >>conftest.$ac_ext <<_ACEOF
6222/* end confdefs.h.  */
6223#ifdef __STDC__
6224# include <limits.h>
6225#else
6226# include <assert.h>
6227#endif
6228		     Syntax error
6229_ACEOF
6230if { (ac_try="$ac_cpp conftest.$ac_ext"
6231case "(($ac_try" in
6232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6233  *) ac_try_echo=$ac_try;;
6234esac
6235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6236  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6237  ac_status=$?
6238  grep -v '^ *+' conftest.er1 >conftest.err
6239  rm -f conftest.er1
6240  cat conftest.err >&5
6241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242  (exit $ac_status); } >/dev/null; then
6243  if test -s conftest.err; then
6244    ac_cpp_err=$ac_cxx_preproc_warn_flag
6245    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6246  else
6247    ac_cpp_err=
6248  fi
6249else
6250  ac_cpp_err=yes
6251fi
6252if test -z "$ac_cpp_err"; then
6253  :
6254else
6255  echo "$as_me: failed program was:" >&5
6256sed 's/^/| /' conftest.$ac_ext >&5
6257
6258  # Broken: fails on valid input.
6259continue
6260fi
6261
6262rm -f conftest.err conftest.$ac_ext
6263
6264  # OK, works on sane cases.  Now check whether nonexistent headers
6265  # can be detected and how.
6266  cat >conftest.$ac_ext <<_ACEOF
6267/* confdefs.h.  */
6268_ACEOF
6269cat confdefs.h >>conftest.$ac_ext
6270cat >>conftest.$ac_ext <<_ACEOF
6271/* end confdefs.h.  */
6272#include <ac_nonexistent.h>
6273_ACEOF
6274if { (ac_try="$ac_cpp conftest.$ac_ext"
6275case "(($ac_try" in
6276  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277  *) ac_try_echo=$ac_try;;
6278esac
6279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6280  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6281  ac_status=$?
6282  grep -v '^ *+' conftest.er1 >conftest.err
6283  rm -f conftest.er1
6284  cat conftest.err >&5
6285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286  (exit $ac_status); } >/dev/null; then
6287  if test -s conftest.err; then
6288    ac_cpp_err=$ac_cxx_preproc_warn_flag
6289    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6290  else
6291    ac_cpp_err=
6292  fi
6293else
6294  ac_cpp_err=yes
6295fi
6296if test -z "$ac_cpp_err"; then
6297  # Broken: success on invalid input.
6298continue
6299else
6300  echo "$as_me: failed program was:" >&5
6301sed 's/^/| /' conftest.$ac_ext >&5
6302
6303  # Passes both tests.
6304ac_preproc_ok=:
6305break
6306fi
6307
6308rm -f conftest.err conftest.$ac_ext
6309
6310done
6311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6312rm -f conftest.err conftest.$ac_ext
6313if $ac_preproc_ok; then
6314  break
6315fi
6316
6317    done
6318    ac_cv_prog_CXXCPP=$CXXCPP
6319
6320fi
6321  CXXCPP=$ac_cv_prog_CXXCPP
6322else
6323  ac_cv_prog_CXXCPP=$CXXCPP
6324fi
6325{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6326echo "${ECHO_T}$CXXCPP" >&6; }
6327ac_preproc_ok=false
6328for ac_cxx_preproc_warn_flag in '' yes
6329do
6330  # Use a header file that comes with gcc, so configuring glibc
6331  # with a fresh cross-compiler works.
6332  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6333  # <limits.h> exists even on freestanding compilers.
6334  # On the NeXT, cc -E runs the code through the compiler's parser,
6335  # not just through cpp. "Syntax error" is here to catch this case.
6336  cat >conftest.$ac_ext <<_ACEOF
6337/* confdefs.h.  */
6338_ACEOF
6339cat confdefs.h >>conftest.$ac_ext
6340cat >>conftest.$ac_ext <<_ACEOF
6341/* end confdefs.h.  */
6342#ifdef __STDC__
6343# include <limits.h>
6344#else
6345# include <assert.h>
6346#endif
6347		     Syntax error
6348_ACEOF
6349if { (ac_try="$ac_cpp conftest.$ac_ext"
6350case "(($ac_try" in
6351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352  *) ac_try_echo=$ac_try;;
6353esac
6354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6356  ac_status=$?
6357  grep -v '^ *+' conftest.er1 >conftest.err
6358  rm -f conftest.er1
6359  cat conftest.err >&5
6360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361  (exit $ac_status); } >/dev/null; then
6362  if test -s conftest.err; then
6363    ac_cpp_err=$ac_cxx_preproc_warn_flag
6364    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6365  else
6366    ac_cpp_err=
6367  fi
6368else
6369  ac_cpp_err=yes
6370fi
6371if test -z "$ac_cpp_err"; then
6372  :
6373else
6374  echo "$as_me: failed program was:" >&5
6375sed 's/^/| /' conftest.$ac_ext >&5
6376
6377  # Broken: fails on valid input.
6378continue
6379fi
6380
6381rm -f conftest.err conftest.$ac_ext
6382
6383  # OK, works on sane cases.  Now check whether nonexistent headers
6384  # can be detected and how.
6385  cat >conftest.$ac_ext <<_ACEOF
6386/* confdefs.h.  */
6387_ACEOF
6388cat confdefs.h >>conftest.$ac_ext
6389cat >>conftest.$ac_ext <<_ACEOF
6390/* end confdefs.h.  */
6391#include <ac_nonexistent.h>
6392_ACEOF
6393if { (ac_try="$ac_cpp conftest.$ac_ext"
6394case "(($ac_try" in
6395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396  *) ac_try_echo=$ac_try;;
6397esac
6398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6400  ac_status=$?
6401  grep -v '^ *+' conftest.er1 >conftest.err
6402  rm -f conftest.er1
6403  cat conftest.err >&5
6404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405  (exit $ac_status); } >/dev/null; then
6406  if test -s conftest.err; then
6407    ac_cpp_err=$ac_cxx_preproc_warn_flag
6408    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6409  else
6410    ac_cpp_err=
6411  fi
6412else
6413  ac_cpp_err=yes
6414fi
6415if test -z "$ac_cpp_err"; then
6416  # Broken: success on invalid input.
6417continue
6418else
6419  echo "$as_me: failed program was:" >&5
6420sed 's/^/| /' conftest.$ac_ext >&5
6421
6422  # Passes both tests.
6423ac_preproc_ok=:
6424break
6425fi
6426
6427rm -f conftest.err conftest.$ac_ext
6428
6429done
6430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6431rm -f conftest.err conftest.$ac_ext
6432if $ac_preproc_ok; then
6433  :
6434else
6435  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6436See \`config.log' for more details." >&5
6437echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6438See \`config.log' for more details." >&2;}
6439   { (exit 1); exit 1; }; }
6440fi
6441
6442ac_ext=cpp
6443ac_cpp='$CXXCPP $CPPFLAGS'
6444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6447
6448fi
6449
6450
6451ac_ext=f
6452ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6453ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6454ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6455if test -n "$ac_tool_prefix"; then
6456  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
6457  do
6458    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6459set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6462if test "${ac_cv_prog_F77+set}" = set; then
6463  echo $ECHO_N "(cached) $ECHO_C" >&6
6464else
6465  if test -n "$F77"; then
6466  ac_cv_prog_F77="$F77" # Let the user override the test.
6467else
6468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469for as_dir in $PATH
6470do
6471  IFS=$as_save_IFS
6472  test -z "$as_dir" && as_dir=.
6473  for ac_exec_ext in '' $ac_executable_extensions; do
6474  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6475    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6476    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477    break 2
6478  fi
6479done
6480done
6481IFS=$as_save_IFS
6482
6483fi
6484fi
6485F77=$ac_cv_prog_F77
6486if test -n "$F77"; then
6487  { echo "$as_me:$LINENO: result: $F77" >&5
6488echo "${ECHO_T}$F77" >&6; }
6489else
6490  { echo "$as_me:$LINENO: result: no" >&5
6491echo "${ECHO_T}no" >&6; }
6492fi
6493
6494
6495    test -n "$F77" && break
6496  done
6497fi
6498if test -z "$F77"; then
6499  ac_ct_F77=$F77
6500  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
6501do
6502  # Extract the first word of "$ac_prog", so it can be a program name with args.
6503set dummy $ac_prog; ac_word=$2
6504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6506if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6507  echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509  if test -n "$ac_ct_F77"; then
6510  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6511else
6512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513for as_dir in $PATH
6514do
6515  IFS=$as_save_IFS
6516  test -z "$as_dir" && as_dir=.
6517  for ac_exec_ext in '' $ac_executable_extensions; do
6518  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6519    ac_cv_prog_ac_ct_F77="$ac_prog"
6520    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521    break 2
6522  fi
6523done
6524done
6525IFS=$as_save_IFS
6526
6527fi
6528fi
6529ac_ct_F77=$ac_cv_prog_ac_ct_F77
6530if test -n "$ac_ct_F77"; then
6531  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6532echo "${ECHO_T}$ac_ct_F77" >&6; }
6533else
6534  { echo "$as_me:$LINENO: result: no" >&5
6535echo "${ECHO_T}no" >&6; }
6536fi
6537
6538
6539  test -n "$ac_ct_F77" && break
6540done
6541
6542  if test "x$ac_ct_F77" = x; then
6543    F77=""
6544  else
6545    case $cross_compiling:$ac_tool_warned in
6546yes:)
6547{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6548whose name does not start with the host triplet.  If you think this
6549configuration is useful to you, please write to autoconf@gnu.org." >&5
6550echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6551whose name does not start with the host triplet.  If you think this
6552configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6553ac_tool_warned=yes ;;
6554esac
6555    F77=$ac_ct_F77
6556  fi
6557fi
6558
6559
6560# Provide some information about the compiler.
6561echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6562ac_compiler=`set X $ac_compile; echo $2`
6563{ (ac_try="$ac_compiler --version >&5"
6564case "(($ac_try" in
6565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566  *) ac_try_echo=$ac_try;;
6567esac
6568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569  (eval "$ac_compiler --version >&5") 2>&5
6570  ac_status=$?
6571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572  (exit $ac_status); }
6573{ (ac_try="$ac_compiler -v >&5"
6574case "(($ac_try" in
6575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576  *) ac_try_echo=$ac_try;;
6577esac
6578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579  (eval "$ac_compiler -v >&5") 2>&5
6580  ac_status=$?
6581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582  (exit $ac_status); }
6583{ (ac_try="$ac_compiler -V >&5"
6584case "(($ac_try" in
6585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586  *) ac_try_echo=$ac_try;;
6587esac
6588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6589  (eval "$ac_compiler -V >&5") 2>&5
6590  ac_status=$?
6591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592  (exit $ac_status); }
6593rm -f a.out
6594
6595# If we don't use `.F' as extension, the preprocessor is not run on the
6596# input file.  (Note that this only needs to work for GNU compilers.)
6597ac_save_ext=$ac_ext
6598ac_ext=F
6599{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6600echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6601if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6602  echo $ECHO_N "(cached) $ECHO_C" >&6
6603else
6604  cat >conftest.$ac_ext <<_ACEOF
6605      program main
6606#ifndef __GNUC__
6607       choke me
6608#endif
6609
6610      end
6611_ACEOF
6612rm -f conftest.$ac_objext
6613if { (ac_try="$ac_compile"
6614case "(($ac_try" in
6615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616  *) ac_try_echo=$ac_try;;
6617esac
6618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619  (eval "$ac_compile") 2>conftest.er1
6620  ac_status=$?
6621  grep -v '^ *+' conftest.er1 >conftest.err
6622  rm -f conftest.er1
6623  cat conftest.err >&5
6624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625  (exit $ac_status); } &&
6626	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6627  { (case "(($ac_try" in
6628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6629  *) ac_try_echo=$ac_try;;
6630esac
6631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6632  (eval "$ac_try") 2>&5
6633  ac_status=$?
6634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635  (exit $ac_status); }; } &&
6636	 { ac_try='test -s conftest.$ac_objext'
6637  { (case "(($ac_try" in
6638  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639  *) ac_try_echo=$ac_try;;
6640esac
6641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642  (eval "$ac_try") 2>&5
6643  ac_status=$?
6644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645  (exit $ac_status); }; }; then
6646  ac_compiler_gnu=yes
6647else
6648  echo "$as_me: failed program was:" >&5
6649sed 's/^/| /' conftest.$ac_ext >&5
6650
6651	ac_compiler_gnu=no
6652fi
6653
6654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6655ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6656
6657fi
6658{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6659echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6660ac_ext=$ac_save_ext
6661ac_test_FFLAGS=${FFLAGS+set}
6662ac_save_FFLAGS=$FFLAGS
6663FFLAGS=
6664{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6665echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6666if test "${ac_cv_prog_f77_g+set}" = set; then
6667  echo $ECHO_N "(cached) $ECHO_C" >&6
6668else
6669  FFLAGS=-g
6670cat >conftest.$ac_ext <<_ACEOF
6671      program main
6672
6673      end
6674_ACEOF
6675rm -f conftest.$ac_objext
6676if { (ac_try="$ac_compile"
6677case "(($ac_try" in
6678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6679  *) ac_try_echo=$ac_try;;
6680esac
6681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6682  (eval "$ac_compile") 2>conftest.er1
6683  ac_status=$?
6684  grep -v '^ *+' conftest.er1 >conftest.err
6685  rm -f conftest.er1
6686  cat conftest.err >&5
6687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688  (exit $ac_status); } &&
6689	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6690  { (case "(($ac_try" in
6691  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692  *) ac_try_echo=$ac_try;;
6693esac
6694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695  (eval "$ac_try") 2>&5
6696  ac_status=$?
6697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698  (exit $ac_status); }; } &&
6699	 { ac_try='test -s conftest.$ac_objext'
6700  { (case "(($ac_try" in
6701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702  *) ac_try_echo=$ac_try;;
6703esac
6704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6705  (eval "$ac_try") 2>&5
6706  ac_status=$?
6707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708  (exit $ac_status); }; }; then
6709  ac_cv_prog_f77_g=yes
6710else
6711  echo "$as_me: failed program was:" >&5
6712sed 's/^/| /' conftest.$ac_ext >&5
6713
6714	ac_cv_prog_f77_g=no
6715fi
6716
6717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718
6719fi
6720{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6721echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6722if test "$ac_test_FFLAGS" = set; then
6723  FFLAGS=$ac_save_FFLAGS
6724elif test $ac_cv_prog_f77_g = yes; then
6725  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6726    FFLAGS="-g -O2"
6727  else
6728    FFLAGS="-g"
6729  fi
6730else
6731  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6732    FFLAGS="-O2"
6733  else
6734    FFLAGS=
6735  fi
6736fi
6737
6738G77=`test $ac_compiler_gnu = yes && echo yes`
6739ac_ext=c
6740ac_cpp='$CPP $CPPFLAGS'
6741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6743ac_compiler_gnu=$ac_cv_c_compiler_gnu
6744
6745
6746
6747# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6748
6749# find the maximum length of command line arguments
6750{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6751echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6752if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6753  echo $ECHO_N "(cached) $ECHO_C" >&6
6754else
6755    i=0
6756  teststring="ABCD"
6757
6758  case $build_os in
6759  msdosdjgpp*)
6760    # On DJGPP, this test can blow up pretty badly due to problems in libc
6761    # (any single argument exceeding 2000 bytes causes a buffer overrun
6762    # during glob expansion).  Even if it were fixed, the result of this
6763    # check would be larger than it should be.
6764    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6765    ;;
6766
6767  gnu*)
6768    # Under GNU Hurd, this test is not required because there is
6769    # no limit to the length of command line arguments.
6770    # Libtool will interpret -1 as no limit whatsoever
6771    lt_cv_sys_max_cmd_len=-1;
6772    ;;
6773
6774  cygwin* | mingw*)
6775    # On Win9x/ME, this test blows up -- it succeeds, but takes
6776    # about 5 minutes as the teststring grows exponentially.
6777    # Worse, since 9x/ME are not pre-emptively multitasking,
6778    # you end up with a "frozen" computer, even though with patience
6779    # the test eventually succeeds (with a max line length of 256k).
6780    # Instead, let's just punt: use the minimum linelength reported by
6781    # all of the supported platforms: 8192 (on NT/2K/XP).
6782    lt_cv_sys_max_cmd_len=8192;
6783    ;;
6784
6785  amigaos*)
6786    # On AmigaOS with pdksh, this test takes hours, literally.
6787    # So we just punt and use a minimum line length of 8192.
6788    lt_cv_sys_max_cmd_len=8192;
6789    ;;
6790
6791  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6792    # This has been around since 386BSD, at least.  Likely further.
6793    if test -x /sbin/sysctl; then
6794      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6795    elif test -x /usr/sbin/sysctl; then
6796      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6797    else
6798      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6799    fi
6800    # And add a safety zone
6801    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6802    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6803    ;;
6804
6805  interix*)
6806    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6807    lt_cv_sys_max_cmd_len=196608
6808    ;;
6809
6810  osf*)
6811    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6812    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6813    # nice to cause kernel panics so lets avoid the loop below.
6814    # First set a reasonable default.
6815    lt_cv_sys_max_cmd_len=16384
6816    #
6817    if test -x /sbin/sysconfig; then
6818      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6819        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6820      esac
6821    fi
6822    ;;
6823  sco3.2v5*)
6824    lt_cv_sys_max_cmd_len=102400
6825    ;;
6826  sysv5* | sco5v6* | sysv4.2uw2*)
6827    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6828    if test -n "$kargmax"; then
6829      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6830    else
6831      lt_cv_sys_max_cmd_len=32768
6832    fi
6833    ;;
6834  *)
6835    # If test is not a shell built-in, we'll probably end up computing a
6836    # maximum length that is only half of the actual maximum length, but
6837    # we can't tell.
6838    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6839    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6840	       = "XX$teststring") >/dev/null 2>&1 &&
6841	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6842	    lt_cv_sys_max_cmd_len=$new_result &&
6843	    test $i != 17 # 1/2 MB should be enough
6844    do
6845      i=`expr $i + 1`
6846      teststring=$teststring$teststring
6847    done
6848    teststring=
6849    # Add a significant safety factor because C++ compilers can tack on massive
6850    # amounts of additional arguments before passing them to the linker.
6851    # It appears as though 1/2 is a usable value.
6852    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6853    ;;
6854  esac
6855
6856fi
6857
6858if test -n $lt_cv_sys_max_cmd_len ; then
6859  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6860echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6861else
6862  { echo "$as_me:$LINENO: result: none" >&5
6863echo "${ECHO_T}none" >&6; }
6864fi
6865
6866
6867
6868
6869# Check for command to grab the raw symbol name followed by C symbol from nm.
6870{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6871echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6872if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6873  echo $ECHO_N "(cached) $ECHO_C" >&6
6874else
6875
6876# These are sane defaults that work on at least a few old systems.
6877# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6878
6879# Character class describing NM global symbol codes.
6880symcode='[BCDEGRST]'
6881
6882# Regexp to match symbols that can be accessed directly from C.
6883sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6884
6885# Transform an extracted symbol line into a proper C declaration
6886lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6887
6888# Transform an extracted symbol line into symbol name and symbol address
6889lt_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'"
6890
6891# Define system-specific variables.
6892case $host_os in
6893aix*)
6894  symcode='[BCDT]'
6895  ;;
6896cygwin* | mingw* | pw32*)
6897  symcode='[ABCDGISTW]'
6898  ;;
6899hpux*) # Its linker distinguishes data from code symbols
6900  if test "$host_cpu" = ia64; then
6901    symcode='[ABCDEGRST]'
6902  fi
6903  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6904  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'"
6905  ;;
6906linux* | k*bsd*-gnu)
6907  if test "$host_cpu" = ia64; then
6908    symcode='[ABCDGIRSTW]'
6909    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6910    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'"
6911  fi
6912  ;;
6913irix* | nonstopux*)
6914  symcode='[BCDEGRST]'
6915  ;;
6916osf*)
6917  symcode='[BCDEGQRST]'
6918  ;;
6919solaris*)
6920  symcode='[BDRT]'
6921  ;;
6922sco3.2v5*)
6923  symcode='[DT]'
6924  ;;
6925sysv4.2uw2*)
6926  symcode='[DT]'
6927  ;;
6928sysv5* | sco5v6* | unixware* | OpenUNIX*)
6929  symcode='[ABDT]'
6930  ;;
6931sysv4)
6932  symcode='[DFNSTU]'
6933  ;;
6934esac
6935
6936# Handle CRLF in mingw tool chain
6937opt_cr=
6938case $build_os in
6939mingw*)
6940  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6941  ;;
6942esac
6943
6944# If we're using GNU nm, then use its standard symbol codes.
6945case `$NM -V 2>&1` in
6946*GNU* | *'with BFD'*)
6947  symcode='[ABCDGIRSTW]' ;;
6948esac
6949
6950# Try without a prefix undercore, then with it.
6951for ac_symprfx in "" "_"; do
6952
6953  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6954  symxfrm="\\1 $ac_symprfx\\2 \\2"
6955
6956  # Write the raw and C identifiers.
6957  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6958
6959  # Check to see that the pipe works correctly.
6960  pipe_works=no
6961
6962  rm -f conftest*
6963  cat > conftest.$ac_ext <<EOF
6964#ifdef __cplusplus
6965extern "C" {
6966#endif
6967char nm_test_var;
6968void nm_test_func(){}
6969#ifdef __cplusplus
6970}
6971#endif
6972int main(){nm_test_var='a';nm_test_func();return(0);}
6973EOF
6974
6975  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6976  (eval $ac_compile) 2>&5
6977  ac_status=$?
6978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979  (exit $ac_status); }; then
6980    # Now try to grab the symbols.
6981    nlist=conftest.nm
6982    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6983  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6984  ac_status=$?
6985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986  (exit $ac_status); } && test -s "$nlist"; then
6987      # Try sorting and uniquifying the output.
6988      if sort "$nlist" | uniq > "$nlist"T; then
6989	mv -f "$nlist"T "$nlist"
6990      else
6991	rm -f "$nlist"T
6992      fi
6993
6994      # Make sure that we snagged all the symbols we need.
6995      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6996	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6997	  cat <<EOF > conftest.$ac_ext
6998#ifdef __cplusplus
6999extern "C" {
7000#endif
7001
7002EOF
7003	  # Now generate the symbol file.
7004	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7005
7006	  cat <<EOF >> conftest.$ac_ext
7007#if defined (__STDC__) && __STDC__
7008# define lt_ptr_t void *
7009#else
7010# define lt_ptr_t char *
7011# define const
7012#endif
7013
7014/* The mapping between symbol names and symbols. */
7015const struct {
7016  const char *name;
7017  lt_ptr_t address;
7018}
7019lt_preloaded_symbols[] =
7020{
7021EOF
7022	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7023	  cat <<\EOF >> conftest.$ac_ext
7024  {0, (lt_ptr_t) 0}
7025};
7026
7027#ifdef __cplusplus
7028}
7029#endif
7030EOF
7031	  # Now try linking the two files.
7032	  mv conftest.$ac_objext conftstm.$ac_objext
7033	  lt_save_LIBS="$LIBS"
7034	  lt_save_CFLAGS="$CFLAGS"
7035	  LIBS="conftstm.$ac_objext"
7036	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7037	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7038  (eval $ac_link) 2>&5
7039  ac_status=$?
7040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7042	    pipe_works=yes
7043	  fi
7044	  LIBS="$lt_save_LIBS"
7045	  CFLAGS="$lt_save_CFLAGS"
7046	else
7047	  echo "cannot find nm_test_func in $nlist" >&5
7048	fi
7049      else
7050	echo "cannot find nm_test_var in $nlist" >&5
7051      fi
7052    else
7053      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7054    fi
7055  else
7056    echo "$progname: failed program was:" >&5
7057    cat conftest.$ac_ext >&5
7058  fi
7059  rm -f conftest* conftst*
7060
7061  # Do not use the global_symbol_pipe unless it works.
7062  if test "$pipe_works" = yes; then
7063    break
7064  else
7065    lt_cv_sys_global_symbol_pipe=
7066  fi
7067done
7068
7069fi
7070
7071if test -z "$lt_cv_sys_global_symbol_pipe"; then
7072  lt_cv_sys_global_symbol_to_cdecl=
7073fi
7074if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7075  { echo "$as_me:$LINENO: result: failed" >&5
7076echo "${ECHO_T}failed" >&6; }
7077else
7078  { echo "$as_me:$LINENO: result: ok" >&5
7079echo "${ECHO_T}ok" >&6; }
7080fi
7081
7082{ echo "$as_me:$LINENO: checking for objdir" >&5
7083echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7084if test "${lt_cv_objdir+set}" = set; then
7085  echo $ECHO_N "(cached) $ECHO_C" >&6
7086else
7087  rm -f .libs 2>/dev/null
7088mkdir .libs 2>/dev/null
7089if test -d .libs; then
7090  lt_cv_objdir=.libs
7091else
7092  # MS-DOS does not allow filenames that begin with a dot.
7093  lt_cv_objdir=_libs
7094fi
7095rmdir .libs 2>/dev/null
7096fi
7097{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7098echo "${ECHO_T}$lt_cv_objdir" >&6; }
7099objdir=$lt_cv_objdir
7100
7101
7102
7103
7104
7105case $host_os in
7106aix3*)
7107  # AIX sometimes has problems with the GCC collect2 program.  For some
7108  # reason, if we set the COLLECT_NAMES environment variable, the problems
7109  # vanish in a puff of smoke.
7110  if test "X${COLLECT_NAMES+set}" != Xset; then
7111    COLLECT_NAMES=
7112    export COLLECT_NAMES
7113  fi
7114  ;;
7115esac
7116
7117# Sed substitution that helps us do robust quoting.  It backslashifies
7118# metacharacters that are still active within double-quoted strings.
7119Xsed='sed -e 1s/^X//'
7120sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7121
7122# Same as above, but do not quote variable references.
7123double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7124
7125# Sed substitution to delay expansion of an escaped shell variable in a
7126# double_quote_subst'ed string.
7127delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7128
7129# Sed substitution to avoid accidental globbing in evaled expressions
7130no_glob_subst='s/\*/\\\*/g'
7131
7132# Constants:
7133rm="rm -f"
7134
7135# Global variables:
7136default_ofile=libtool
7137can_build_shared=yes
7138
7139# All known linkers require a `.a' archive for static linking (except MSVC,
7140# which needs '.lib').
7141libext=a
7142ltmain="$ac_aux_dir/ltmain.sh"
7143ofile="$default_ofile"
7144with_gnu_ld="$lt_cv_prog_gnu_ld"
7145
7146if test -n "$ac_tool_prefix"; then
7147  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7148set dummy ${ac_tool_prefix}ar; ac_word=$2
7149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7151if test "${ac_cv_prog_AR+set}" = set; then
7152  echo $ECHO_N "(cached) $ECHO_C" >&6
7153else
7154  if test -n "$AR"; then
7155  ac_cv_prog_AR="$AR" # Let the user override the test.
7156else
7157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158for as_dir in $PATH
7159do
7160  IFS=$as_save_IFS
7161  test -z "$as_dir" && as_dir=.
7162  for ac_exec_ext in '' $ac_executable_extensions; do
7163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7164    ac_cv_prog_AR="${ac_tool_prefix}ar"
7165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166    break 2
7167  fi
7168done
7169done
7170IFS=$as_save_IFS
7171
7172fi
7173fi
7174AR=$ac_cv_prog_AR
7175if test -n "$AR"; then
7176  { echo "$as_me:$LINENO: result: $AR" >&5
7177echo "${ECHO_T}$AR" >&6; }
7178else
7179  { echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6; }
7181fi
7182
7183
7184fi
7185if test -z "$ac_cv_prog_AR"; then
7186  ac_ct_AR=$AR
7187  # Extract the first word of "ar", so it can be a program name with args.
7188set dummy ar; ac_word=$2
7189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7191if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7192  echo $ECHO_N "(cached) $ECHO_C" >&6
7193else
7194  if test -n "$ac_ct_AR"; then
7195  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7196else
7197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198for as_dir in $PATH
7199do
7200  IFS=$as_save_IFS
7201  test -z "$as_dir" && as_dir=.
7202  for ac_exec_ext in '' $ac_executable_extensions; do
7203  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7204    ac_cv_prog_ac_ct_AR="ar"
7205    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206    break 2
7207  fi
7208done
7209done
7210IFS=$as_save_IFS
7211
7212fi
7213fi
7214ac_ct_AR=$ac_cv_prog_ac_ct_AR
7215if test -n "$ac_ct_AR"; then
7216  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7217echo "${ECHO_T}$ac_ct_AR" >&6; }
7218else
7219  { echo "$as_me:$LINENO: result: no" >&5
7220echo "${ECHO_T}no" >&6; }
7221fi
7222
7223  if test "x$ac_ct_AR" = x; then
7224    AR="false"
7225  else
7226    case $cross_compiling:$ac_tool_warned in
7227yes:)
7228{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7229whose name does not start with the host triplet.  If you think this
7230configuration is useful to you, please write to autoconf@gnu.org." >&5
7231echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7232whose name does not start with the host triplet.  If you think this
7233configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7234ac_tool_warned=yes ;;
7235esac
7236    AR=$ac_ct_AR
7237  fi
7238else
7239  AR="$ac_cv_prog_AR"
7240fi
7241
7242if test -n "$ac_tool_prefix"; then
7243  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7244set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7245{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7247if test "${ac_cv_prog_RANLIB+set}" = set; then
7248  echo $ECHO_N "(cached) $ECHO_C" >&6
7249else
7250  if test -n "$RANLIB"; then
7251  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7252else
7253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254for as_dir in $PATH
7255do
7256  IFS=$as_save_IFS
7257  test -z "$as_dir" && as_dir=.
7258  for ac_exec_ext in '' $ac_executable_extensions; do
7259  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7260    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7261    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262    break 2
7263  fi
7264done
7265done
7266IFS=$as_save_IFS
7267
7268fi
7269fi
7270RANLIB=$ac_cv_prog_RANLIB
7271if test -n "$RANLIB"; then
7272  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7273echo "${ECHO_T}$RANLIB" >&6; }
7274else
7275  { echo "$as_me:$LINENO: result: no" >&5
7276echo "${ECHO_T}no" >&6; }
7277fi
7278
7279
7280fi
7281if test -z "$ac_cv_prog_RANLIB"; then
7282  ac_ct_RANLIB=$RANLIB
7283  # Extract the first word of "ranlib", so it can be a program name with args.
7284set dummy ranlib; ac_word=$2
7285{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7287if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7288  echo $ECHO_N "(cached) $ECHO_C" >&6
7289else
7290  if test -n "$ac_ct_RANLIB"; then
7291  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7292else
7293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294for as_dir in $PATH
7295do
7296  IFS=$as_save_IFS
7297  test -z "$as_dir" && as_dir=.
7298  for ac_exec_ext in '' $ac_executable_extensions; do
7299  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7300    ac_cv_prog_ac_ct_RANLIB="ranlib"
7301    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302    break 2
7303  fi
7304done
7305done
7306IFS=$as_save_IFS
7307
7308fi
7309fi
7310ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7311if test -n "$ac_ct_RANLIB"; then
7312  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7313echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7314else
7315  { echo "$as_me:$LINENO: result: no" >&5
7316echo "${ECHO_T}no" >&6; }
7317fi
7318
7319  if test "x$ac_ct_RANLIB" = x; then
7320    RANLIB=":"
7321  else
7322    case $cross_compiling:$ac_tool_warned in
7323yes:)
7324{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7325whose name does not start with the host triplet.  If you think this
7326configuration is useful to you, please write to autoconf@gnu.org." >&5
7327echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7328whose name does not start with the host triplet.  If you think this
7329configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7330ac_tool_warned=yes ;;
7331esac
7332    RANLIB=$ac_ct_RANLIB
7333  fi
7334else
7335  RANLIB="$ac_cv_prog_RANLIB"
7336fi
7337
7338if test -n "$ac_tool_prefix"; then
7339  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7340set dummy ${ac_tool_prefix}strip; ac_word=$2
7341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7343if test "${ac_cv_prog_STRIP+set}" = set; then
7344  echo $ECHO_N "(cached) $ECHO_C" >&6
7345else
7346  if test -n "$STRIP"; then
7347  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7348else
7349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350for as_dir in $PATH
7351do
7352  IFS=$as_save_IFS
7353  test -z "$as_dir" && as_dir=.
7354  for ac_exec_ext in '' $ac_executable_extensions; do
7355  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7356    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7358    break 2
7359  fi
7360done
7361done
7362IFS=$as_save_IFS
7363
7364fi
7365fi
7366STRIP=$ac_cv_prog_STRIP
7367if test -n "$STRIP"; then
7368  { echo "$as_me:$LINENO: result: $STRIP" >&5
7369echo "${ECHO_T}$STRIP" >&6; }
7370else
7371  { echo "$as_me:$LINENO: result: no" >&5
7372echo "${ECHO_T}no" >&6; }
7373fi
7374
7375
7376fi
7377if test -z "$ac_cv_prog_STRIP"; then
7378  ac_ct_STRIP=$STRIP
7379  # Extract the first word of "strip", so it can be a program name with args.
7380set dummy strip; ac_word=$2
7381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7384  echo $ECHO_N "(cached) $ECHO_C" >&6
7385else
7386  if test -n "$ac_ct_STRIP"; then
7387  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7388else
7389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392  IFS=$as_save_IFS
7393  test -z "$as_dir" && as_dir=.
7394  for ac_exec_ext in '' $ac_executable_extensions; do
7395  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7396    ac_cv_prog_ac_ct_STRIP="strip"
7397    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398    break 2
7399  fi
7400done
7401done
7402IFS=$as_save_IFS
7403
7404fi
7405fi
7406ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7407if test -n "$ac_ct_STRIP"; then
7408  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7409echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7410else
7411  { echo "$as_me:$LINENO: result: no" >&5
7412echo "${ECHO_T}no" >&6; }
7413fi
7414
7415  if test "x$ac_ct_STRIP" = x; then
7416    STRIP=":"
7417  else
7418    case $cross_compiling:$ac_tool_warned in
7419yes:)
7420{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7421whose name does not start with the host triplet.  If you think this
7422configuration is useful to you, please write to autoconf@gnu.org." >&5
7423echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7424whose name does not start with the host triplet.  If you think this
7425configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7426ac_tool_warned=yes ;;
7427esac
7428    STRIP=$ac_ct_STRIP
7429  fi
7430else
7431  STRIP="$ac_cv_prog_STRIP"
7432fi
7433
7434
7435old_CC="$CC"
7436old_CFLAGS="$CFLAGS"
7437
7438# Set sane defaults for various variables
7439test -z "$AR" && AR=ar
7440test -z "$AR_FLAGS" && AR_FLAGS=cru
7441test -z "$AS" && AS=as
7442test -z "$CC" && CC=cc
7443test -z "$LTCC" && LTCC=$CC
7444test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7445test -z "$DLLTOOL" && DLLTOOL=dlltool
7446test -z "$LD" && LD=ld
7447test -z "$LN_S" && LN_S="ln -s"
7448test -z "$MAGIC_CMD" && MAGIC_CMD=file
7449test -z "$NM" && NM=nm
7450test -z "$SED" && SED=sed
7451test -z "$OBJDUMP" && OBJDUMP=objdump
7452test -z "$RANLIB" && RANLIB=:
7453test -z "$STRIP" && STRIP=:
7454test -z "$ac_objext" && ac_objext=o
7455
7456# Determine commands to create old-style static archives.
7457old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7458old_postinstall_cmds='chmod 644 $oldlib'
7459old_postuninstall_cmds=
7460
7461if test -n "$RANLIB"; then
7462  case $host_os in
7463  openbsd*)
7464    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7465    ;;
7466  *)
7467    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7468    ;;
7469  esac
7470  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7471fi
7472
7473for cc_temp in $compiler""; do
7474  case $cc_temp in
7475    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7476    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7477    \-*) ;;
7478    *) break;;
7479  esac
7480done
7481cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7482
7483
7484# Only perform the check for file, if the check method requires it
7485case $deplibs_check_method in
7486file_magic*)
7487  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7488    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7489echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7490if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7491  echo $ECHO_N "(cached) $ECHO_C" >&6
7492else
7493  case $MAGIC_CMD in
7494[\\/*] |  ?:[\\/]*)
7495  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7496  ;;
7497*)
7498  lt_save_MAGIC_CMD="$MAGIC_CMD"
7499  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7500  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7501  for ac_dir in $ac_dummy; do
7502    IFS="$lt_save_ifs"
7503    test -z "$ac_dir" && ac_dir=.
7504    if test -f $ac_dir/${ac_tool_prefix}file; then
7505      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7506      if test -n "$file_magic_test_file"; then
7507	case $deplibs_check_method in
7508	"file_magic "*)
7509	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7510	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7511	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7512	    $EGREP "$file_magic_regex" > /dev/null; then
7513	    :
7514	  else
7515	    cat <<EOF 1>&2
7516
7517*** Warning: the command libtool uses to detect shared libraries,
7518*** $file_magic_cmd, produces output that libtool cannot recognize.
7519*** The result is that libtool may fail to recognize shared libraries
7520*** as such.  This will affect the creation of libtool libraries that
7521*** depend on shared libraries, but programs linked with such libtool
7522*** libraries will work regardless of this problem.  Nevertheless, you
7523*** may want to report the problem to your system manager and/or to
7524*** bug-libtool@gnu.org
7525
7526EOF
7527	  fi ;;
7528	esac
7529      fi
7530      break
7531    fi
7532  done
7533  IFS="$lt_save_ifs"
7534  MAGIC_CMD="$lt_save_MAGIC_CMD"
7535  ;;
7536esac
7537fi
7538
7539MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7540if test -n "$MAGIC_CMD"; then
7541  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7542echo "${ECHO_T}$MAGIC_CMD" >&6; }
7543else
7544  { echo "$as_me:$LINENO: result: no" >&5
7545echo "${ECHO_T}no" >&6; }
7546fi
7547
7548if test -z "$lt_cv_path_MAGIC_CMD"; then
7549  if test -n "$ac_tool_prefix"; then
7550    { echo "$as_me:$LINENO: checking for file" >&5
7551echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7552if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7553  echo $ECHO_N "(cached) $ECHO_C" >&6
7554else
7555  case $MAGIC_CMD in
7556[\\/*] |  ?:[\\/]*)
7557  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7558  ;;
7559*)
7560  lt_save_MAGIC_CMD="$MAGIC_CMD"
7561  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7562  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7563  for ac_dir in $ac_dummy; do
7564    IFS="$lt_save_ifs"
7565    test -z "$ac_dir" && ac_dir=.
7566    if test -f $ac_dir/file; then
7567      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7568      if test -n "$file_magic_test_file"; then
7569	case $deplibs_check_method in
7570	"file_magic "*)
7571	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7572	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7573	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7574	    $EGREP "$file_magic_regex" > /dev/null; then
7575	    :
7576	  else
7577	    cat <<EOF 1>&2
7578
7579*** Warning: the command libtool uses to detect shared libraries,
7580*** $file_magic_cmd, produces output that libtool cannot recognize.
7581*** The result is that libtool may fail to recognize shared libraries
7582*** as such.  This will affect the creation of libtool libraries that
7583*** depend on shared libraries, but programs linked with such libtool
7584*** libraries will work regardless of this problem.  Nevertheless, you
7585*** may want to report the problem to your system manager and/or to
7586*** bug-libtool@gnu.org
7587
7588EOF
7589	  fi ;;
7590	esac
7591      fi
7592      break
7593    fi
7594  done
7595  IFS="$lt_save_ifs"
7596  MAGIC_CMD="$lt_save_MAGIC_CMD"
7597  ;;
7598esac
7599fi
7600
7601MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7602if test -n "$MAGIC_CMD"; then
7603  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7604echo "${ECHO_T}$MAGIC_CMD" >&6; }
7605else
7606  { echo "$as_me:$LINENO: result: no" >&5
7607echo "${ECHO_T}no" >&6; }
7608fi
7609
7610  else
7611    MAGIC_CMD=:
7612  fi
7613fi
7614
7615  fi
7616  ;;
7617esac
7618
7619enable_dlopen=no
7620enable_win32_dll=no
7621
7622# Check whether --enable-libtool-lock was given.
7623if test "${enable_libtool_lock+set}" = set; then
7624  enableval=$enable_libtool_lock;
7625fi
7626
7627test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7628
7629
7630# Check whether --with-pic was given.
7631if test "${with_pic+set}" = set; then
7632  withval=$with_pic; pic_mode="$withval"
7633else
7634  pic_mode=default
7635fi
7636
7637test -z "$pic_mode" && pic_mode=default
7638
7639# Use C for the default configuration in the libtool script
7640tagname=
7641lt_save_CC="$CC"
7642ac_ext=c
7643ac_cpp='$CPP $CPPFLAGS'
7644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647
7648
7649# Source file extension for C test sources.
7650ac_ext=c
7651
7652# Object file extension for compiled C test sources.
7653objext=o
7654objext=$objext
7655
7656# Code to be used in simple compile tests
7657lt_simple_compile_test_code="int some_variable = 0;\n"
7658
7659# Code to be used in simple link tests
7660lt_simple_link_test_code='int main(){return(0);}\n'
7661
7662
7663# If no C compiler was specified, use CC.
7664LTCC=${LTCC-"$CC"}
7665
7666# If no C compiler flags were specified, use CFLAGS.
7667LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7668
7669# Allow CC to be a program name with arguments.
7670compiler=$CC
7671
7672
7673# save warnings/boilerplate of simple test code
7674ac_outfile=conftest.$ac_objext
7675printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7676eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7677_lt_compiler_boilerplate=`cat conftest.err`
7678$rm conftest*
7679
7680ac_outfile=conftest.$ac_objext
7681printf "$lt_simple_link_test_code" >conftest.$ac_ext
7682eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7683_lt_linker_boilerplate=`cat conftest.err`
7684$rm conftest*
7685
7686
7687
7688lt_prog_compiler_no_builtin_flag=
7689
7690if test "$GCC" = yes; then
7691  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7692
7693
7694{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7695echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7696if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7697  echo $ECHO_N "(cached) $ECHO_C" >&6
7698else
7699  lt_cv_prog_compiler_rtti_exceptions=no
7700  ac_outfile=conftest.$ac_objext
7701   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7702   lt_compiler_flag="-fno-rtti -fno-exceptions"
7703   # Insert the option either (1) after the last *FLAGS variable, or
7704   # (2) before a word containing "conftest.", or (3) at the end.
7705   # Note that $ac_compile itself does not contain backslashes and begins
7706   # with a dollar sign (not a hyphen), so the echo should work correctly.
7707   # The option is referenced via a variable to avoid confusing sed.
7708   lt_compile=`echo "$ac_compile" | $SED \
7709   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7710   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7711   -e 's:$: $lt_compiler_flag:'`
7712   (eval echo "\"\$as_me:7712: $lt_compile\"" >&5)
7713   (eval "$lt_compile" 2>conftest.err)
7714   ac_status=$?
7715   cat conftest.err >&5
7716   echo "$as_me:7716: \$? = $ac_status" >&5
7717   if (exit $ac_status) && test -s "$ac_outfile"; then
7718     # The compiler can only warn and ignore the option if not recognized
7719     # So say no if there are warnings other than the usual output.
7720     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7721     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7722     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7723       lt_cv_prog_compiler_rtti_exceptions=yes
7724     fi
7725   fi
7726   $rm conftest*
7727
7728fi
7729{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7730echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7731
7732if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7733    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7734else
7735    :
7736fi
7737
7738fi
7739
7740lt_prog_compiler_wl=
7741lt_prog_compiler_pic=
7742lt_prog_compiler_static=
7743
7744{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7745echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7746
7747  if test "$GCC" = yes; then
7748    lt_prog_compiler_wl='-Wl,'
7749    lt_prog_compiler_static='-static'
7750
7751    case $host_os in
7752      aix*)
7753      # All AIX code is PIC.
7754      if test "$host_cpu" = ia64; then
7755	# AIX 5 now supports IA64 processor
7756	lt_prog_compiler_static='-Bstatic'
7757      fi
7758      ;;
7759
7760    amigaos*)
7761      # FIXME: we need at least 68020 code to build shared libraries, but
7762      # adding the `-m68020' flag to GCC prevents building anything better,
7763      # like `-m68040'.
7764      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7765      ;;
7766
7767    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7768      # PIC is the default for these OSes.
7769      ;;
7770
7771    mingw* | pw32* | os2*)
7772      # This hack is so that the source file can tell whether it is being
7773      # built for inclusion in a dll (and should export symbols for example).
7774      lt_prog_compiler_pic='-DDLL_EXPORT'
7775      ;;
7776
7777    darwin* | rhapsody*)
7778      # PIC is the default on this platform
7779      # Common symbols not allowed in MH_DYLIB files
7780      lt_prog_compiler_pic='-fno-common'
7781      ;;
7782
7783    interix3*)
7784      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7785      # Instead, we relocate shared libraries at runtime.
7786      ;;
7787
7788    msdosdjgpp*)
7789      # Just because we use GCC doesn't mean we suddenly get shared libraries
7790      # on systems that don't support them.
7791      lt_prog_compiler_can_build_shared=no
7792      enable_shared=no
7793      ;;
7794
7795    sysv4*MP*)
7796      if test -d /usr/nec; then
7797	lt_prog_compiler_pic=-Kconform_pic
7798      fi
7799      ;;
7800
7801    hpux*)
7802      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7803      # not for PA HP-UX.
7804      case $host_cpu in
7805      hppa*64*|ia64*)
7806	# +Z the default
7807	;;
7808      *)
7809	lt_prog_compiler_pic='-fPIC'
7810	;;
7811      esac
7812      ;;
7813
7814    *)
7815      lt_prog_compiler_pic='-fPIC'
7816      ;;
7817    esac
7818  else
7819    # PORTME Check for flag to pass linker flags through the system compiler.
7820    case $host_os in
7821    aix*)
7822      lt_prog_compiler_wl='-Wl,'
7823      if test "$host_cpu" = ia64; then
7824	# AIX 5 now supports IA64 processor
7825	lt_prog_compiler_static='-Bstatic'
7826      else
7827	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7828      fi
7829      ;;
7830      darwin*)
7831        # PIC is the default on this platform
7832        # Common symbols not allowed in MH_DYLIB files
7833       case $cc_basename in
7834         xlc*)
7835         lt_prog_compiler_pic='-qnocommon'
7836         lt_prog_compiler_wl='-Wl,'
7837         ;;
7838       esac
7839       ;;
7840
7841    mingw* | pw32* | os2*)
7842      # This hack is so that the source file can tell whether it is being
7843      # built for inclusion in a dll (and should export symbols for example).
7844      lt_prog_compiler_pic='-DDLL_EXPORT'
7845      ;;
7846
7847    hpux9* | hpux10* | hpux11*)
7848      lt_prog_compiler_wl='-Wl,'
7849      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7850      # not for PA HP-UX.
7851      case $host_cpu in
7852      hppa*64*|ia64*)
7853	# +Z the default
7854	;;
7855      *)
7856	lt_prog_compiler_pic='+Z'
7857	;;
7858      esac
7859      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7860      lt_prog_compiler_static='${wl}-a ${wl}archive'
7861      ;;
7862
7863    irix5* | irix6* | nonstopux*)
7864      lt_prog_compiler_wl='-Wl,'
7865      # PIC (with -KPIC) is the default.
7866      lt_prog_compiler_static='-non_shared'
7867      ;;
7868
7869    newsos6)
7870      lt_prog_compiler_pic='-KPIC'
7871      lt_prog_compiler_static='-Bstatic'
7872      ;;
7873
7874    linux* | k*bsd*-gnu)
7875      case $cc_basename in
7876      icc* | ecc*)
7877	lt_prog_compiler_wl='-Wl,'
7878	lt_prog_compiler_pic='-KPIC'
7879	lt_prog_compiler_static='-static'
7880        ;;
7881      pgcc* | pgf77* | pgf90* | pgf95*)
7882        # Portland Group compilers (*not* the Pentium gcc compiler,
7883	# which looks to be a dead project)
7884	lt_prog_compiler_wl='-Wl,'
7885	lt_prog_compiler_pic='-fpic'
7886	lt_prog_compiler_static='-Bstatic'
7887        ;;
7888      ccc*)
7889        lt_prog_compiler_wl='-Wl,'
7890        # All Alpha code is PIC.
7891        lt_prog_compiler_static='-non_shared'
7892        ;;
7893      esac
7894      ;;
7895
7896    osf3* | osf4* | osf5*)
7897      lt_prog_compiler_wl='-Wl,'
7898      # All OSF/1 code is PIC.
7899      lt_prog_compiler_static='-non_shared'
7900      ;;
7901
7902    solaris*)
7903      lt_prog_compiler_pic='-KPIC'
7904      lt_prog_compiler_static='-Bstatic'
7905      case $cc_basename in
7906      f77* | f90* | f95*)
7907	lt_prog_compiler_wl='-Qoption ld ';;
7908      *)
7909	lt_prog_compiler_wl='-Wl,';;
7910      esac
7911      ;;
7912
7913    sunos4*)
7914      lt_prog_compiler_wl='-Qoption ld '
7915      lt_prog_compiler_pic='-PIC'
7916      lt_prog_compiler_static='-Bstatic'
7917      ;;
7918
7919    sysv4 | sysv4.2uw2* | sysv4.3*)
7920      lt_prog_compiler_wl='-Wl,'
7921      lt_prog_compiler_pic='-KPIC'
7922      lt_prog_compiler_static='-Bstatic'
7923      ;;
7924
7925    sysv4*MP*)
7926      if test -d /usr/nec ;then
7927	lt_prog_compiler_pic='-Kconform_pic'
7928	lt_prog_compiler_static='-Bstatic'
7929      fi
7930      ;;
7931
7932    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7933      lt_prog_compiler_wl='-Wl,'
7934      lt_prog_compiler_pic='-KPIC'
7935      lt_prog_compiler_static='-Bstatic'
7936      ;;
7937
7938    unicos*)
7939      lt_prog_compiler_wl='-Wl,'
7940      lt_prog_compiler_can_build_shared=no
7941      ;;
7942
7943    uts4*)
7944      lt_prog_compiler_pic='-pic'
7945      lt_prog_compiler_static='-Bstatic'
7946      ;;
7947
7948    *)
7949      lt_prog_compiler_can_build_shared=no
7950      ;;
7951    esac
7952  fi
7953
7954{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7955echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7956
7957#
7958# Check to make sure the PIC flag actually works.
7959#
7960if test -n "$lt_prog_compiler_pic"; then
7961
7962{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7963echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7964if test "${lt_prog_compiler_pic_works+set}" = set; then
7965  echo $ECHO_N "(cached) $ECHO_C" >&6
7966else
7967  lt_prog_compiler_pic_works=no
7968  ac_outfile=conftest.$ac_objext
7969   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7970   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7971   # Insert the option either (1) after the last *FLAGS variable, or
7972   # (2) before a word containing "conftest.", or (3) at the end.
7973   # Note that $ac_compile itself does not contain backslashes and begins
7974   # with a dollar sign (not a hyphen), so the echo should work correctly.
7975   # The option is referenced via a variable to avoid confusing sed.
7976   lt_compile=`echo "$ac_compile" | $SED \
7977   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7978   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7979   -e 's:$: $lt_compiler_flag:'`
7980   (eval echo "\"\$as_me:7980: $lt_compile\"" >&5)
7981   (eval "$lt_compile" 2>conftest.err)
7982   ac_status=$?
7983   cat conftest.err >&5
7984   echo "$as_me:7984: \$? = $ac_status" >&5
7985   if (exit $ac_status) && test -s "$ac_outfile"; then
7986     # The compiler can only warn and ignore the option if not recognized
7987     # So say no if there are warnings other than the usual output.
7988     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7989     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7990     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7991       lt_prog_compiler_pic_works=yes
7992     fi
7993   fi
7994   $rm conftest*
7995
7996fi
7997{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7998echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7999
8000if test x"$lt_prog_compiler_pic_works" = xyes; then
8001    case $lt_prog_compiler_pic in
8002     "" | " "*) ;;
8003     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8004     esac
8005else
8006    lt_prog_compiler_pic=
8007     lt_prog_compiler_can_build_shared=no
8008fi
8009
8010fi
8011case $host_os in
8012  # For platforms which do not support PIC, -DPIC is meaningless:
8013  *djgpp*)
8014    lt_prog_compiler_pic=
8015    ;;
8016  *)
8017    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8018    ;;
8019esac
8020
8021#
8022# Check to make sure the static flag actually works.
8023#
8024wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8025{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8026echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8027if test "${lt_prog_compiler_static_works+set}" = set; then
8028  echo $ECHO_N "(cached) $ECHO_C" >&6
8029else
8030  lt_prog_compiler_static_works=no
8031   save_LDFLAGS="$LDFLAGS"
8032   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8033   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8034   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8035     # The linker can only warn and ignore the option if not recognized
8036     # So say no if there are warnings
8037     if test -s conftest.err; then
8038       # Append any errors to the config.log.
8039       cat conftest.err 1>&5
8040       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8041       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8042       if diff conftest.exp conftest.er2 >/dev/null; then
8043         lt_prog_compiler_static_works=yes
8044       fi
8045     else
8046       lt_prog_compiler_static_works=yes
8047     fi
8048   fi
8049   $rm conftest*
8050   LDFLAGS="$save_LDFLAGS"
8051
8052fi
8053{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8054echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8055
8056if test x"$lt_prog_compiler_static_works" = xyes; then
8057    :
8058else
8059    lt_prog_compiler_static=
8060fi
8061
8062
8063{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8064echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8065if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8066  echo $ECHO_N "(cached) $ECHO_C" >&6
8067else
8068  lt_cv_prog_compiler_c_o=no
8069   $rm -r conftest 2>/dev/null
8070   mkdir conftest
8071   cd conftest
8072   mkdir out
8073   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8074
8075   lt_compiler_flag="-o out/conftest2.$ac_objext"
8076   # Insert the option either (1) after the last *FLAGS variable, or
8077   # (2) before a word containing "conftest.", or (3) at the end.
8078   # Note that $ac_compile itself does not contain backslashes and begins
8079   # with a dollar sign (not a hyphen), so the echo should work correctly.
8080   lt_compile=`echo "$ac_compile" | $SED \
8081   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8082   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8083   -e 's:$: $lt_compiler_flag:'`
8084   (eval echo "\"\$as_me:8084: $lt_compile\"" >&5)
8085   (eval "$lt_compile" 2>out/conftest.err)
8086   ac_status=$?
8087   cat out/conftest.err >&5
8088   echo "$as_me:8088: \$? = $ac_status" >&5
8089   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8090   then
8091     # The compiler can only warn and ignore the option if not recognized
8092     # So say no if there are warnings
8093     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8094     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8095     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8096       lt_cv_prog_compiler_c_o=yes
8097     fi
8098   fi
8099   chmod u+w . 2>&5
8100   $rm conftest*
8101   # SGI C++ compiler will create directory out/ii_files/ for
8102   # template instantiation
8103   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8104   $rm out/* && rmdir out
8105   cd ..
8106   rmdir conftest
8107   $rm conftest*
8108
8109fi
8110{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8111echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8112
8113
8114hard_links="nottested"
8115if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8116  # do not overwrite the value of need_locks provided by the user
8117  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8118echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8119  hard_links=yes
8120  $rm conftest*
8121  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8122  touch conftest.a
8123  ln conftest.a conftest.b 2>&5 || hard_links=no
8124  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8125  { echo "$as_me:$LINENO: result: $hard_links" >&5
8126echo "${ECHO_T}$hard_links" >&6; }
8127  if test "$hard_links" = no; then
8128    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8129echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8130    need_locks=warn
8131  fi
8132else
8133  need_locks=no
8134fi
8135
8136{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8137echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8138
8139  runpath_var=
8140  allow_undefined_flag=
8141  enable_shared_with_static_runtimes=no
8142  archive_cmds=
8143  archive_expsym_cmds=
8144  old_archive_From_new_cmds=
8145  old_archive_from_expsyms_cmds=
8146  export_dynamic_flag_spec=
8147  whole_archive_flag_spec=
8148  thread_safe_flag_spec=
8149  hardcode_libdir_flag_spec=
8150  hardcode_libdir_flag_spec_ld=
8151  hardcode_libdir_separator=
8152  hardcode_direct=no
8153  hardcode_minus_L=no
8154  hardcode_shlibpath_var=unsupported
8155  link_all_deplibs=unknown
8156  hardcode_automatic=no
8157  module_cmds=
8158  module_expsym_cmds=
8159  always_export_symbols=no
8160  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8161  # include_expsyms should be a list of space-separated symbols to be *always*
8162  # included in the symbol list
8163  include_expsyms=
8164  # exclude_expsyms can be an extended regexp of symbols to exclude
8165  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8166  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8167  # as well as any symbol that contains `d'.
8168  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8169  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8170  # platforms (ab)use it in PIC code, but their linkers get confused if
8171  # the symbol is explicitly referenced.  Since portable code cannot
8172  # rely on this symbol name, it's probably fine to never include it in
8173  # preloaded symbol tables.
8174  extract_expsyms_cmds=
8175  # Just being paranoid about ensuring that cc_basename is set.
8176  for cc_temp in $compiler""; do
8177  case $cc_temp in
8178    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8179    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8180    \-*) ;;
8181    *) break;;
8182  esac
8183done
8184cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8185
8186  case $host_os in
8187  cygwin* | mingw* | pw32*)
8188    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8189    # When not using gcc, we currently assume that we are using
8190    # Microsoft Visual C++.
8191    if test "$GCC" != yes; then
8192      with_gnu_ld=no
8193    fi
8194    ;;
8195  interix*)
8196    # we just hope/assume this is gcc and not c89 (= MSVC++)
8197    with_gnu_ld=yes
8198    ;;
8199  openbsd*)
8200    with_gnu_ld=no
8201    ;;
8202  esac
8203
8204  ld_shlibs=yes
8205  if test "$with_gnu_ld" = yes; then
8206    # If archive_cmds runs LD, not CC, wlarc should be empty
8207    wlarc='${wl}'
8208
8209    # Set some defaults for GNU ld with shared library support. These
8210    # are reset later if shared libraries are not supported. Putting them
8211    # here allows them to be overridden if necessary.
8212    runpath_var=LD_RUN_PATH
8213    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8214    export_dynamic_flag_spec='${wl}--export-dynamic'
8215    # ancient GNU ld didn't support --whole-archive et. al.
8216    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8217	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8218      else
8219  	whole_archive_flag_spec=
8220    fi
8221    supports_anon_versioning=no
8222    case `$LD -v 2>/dev/null` in
8223      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8224      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8225      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8226      *\ 2.11.*) ;; # other 2.11 versions
8227      *) supports_anon_versioning=yes ;;
8228    esac
8229
8230    # See if GNU ld supports shared libraries.
8231    case $host_os in
8232    aix3* | aix4* | aix5*)
8233      # On AIX/PPC, the GNU linker is very broken
8234      if test "$host_cpu" != ia64; then
8235	ld_shlibs=no
8236	cat <<EOF 1>&2
8237
8238*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8239*** to be unable to reliably create shared libraries on AIX.
8240*** Therefore, libtool is disabling shared libraries support.  If you
8241*** really care for shared libraries, you may want to modify your PATH
8242*** so that a non-GNU linker is found, and then restart.
8243
8244EOF
8245      fi
8246      ;;
8247
8248    amigaos*)
8249      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)'
8250      hardcode_libdir_flag_spec='-L$libdir'
8251      hardcode_minus_L=yes
8252
8253      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8254      # that the semantics of dynamic libraries on AmigaOS, at least up
8255      # to version 4, is to share data among multiple programs linked
8256      # with the same dynamic library.  Since this doesn't match the
8257      # behavior of shared libraries on other platforms, we can't use
8258      # them.
8259      ld_shlibs=no
8260      ;;
8261
8262    beos*)
8263      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8264	allow_undefined_flag=unsupported
8265	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8266	# support --undefined.  This deserves some investigation.  FIXME
8267	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8268      else
8269	ld_shlibs=no
8270      fi
8271      ;;
8272
8273    cygwin* | mingw* | pw32*)
8274      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8275      # as there is no search path for DLLs.
8276      hardcode_libdir_flag_spec='-L$libdir'
8277      allow_undefined_flag=unsupported
8278      always_export_symbols=no
8279      enable_shared_with_static_runtimes=yes
8280      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8281
8282      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8283        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8284	# If the export-symbols file already is a .def file (1st line
8285	# is EXPORTS), use it as is; otherwise, prepend...
8286	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8287	  cp $export_symbols $output_objdir/$soname.def;
8288	else
8289	  echo EXPORTS > $output_objdir/$soname.def;
8290	  cat $export_symbols >> $output_objdir/$soname.def;
8291	fi~
8292	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8293      else
8294	ld_shlibs=no
8295      fi
8296      ;;
8297
8298    interix3*)
8299      hardcode_direct=no
8300      hardcode_shlibpath_var=no
8301      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8302      export_dynamic_flag_spec='${wl}-E'
8303      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8304      # Instead, shared libraries are loaded at an image base (0x10000000 by
8305      # default) and relocated if they conflict, which is a slow very memory
8306      # consuming and fragmenting process.  To avoid this, we pick a random,
8307      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8308      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8309      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8310      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'
8311      ;;
8312
8313    linux* | k*bsd*-gnu)
8314      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8315	tmp_addflag=
8316	case $cc_basename,$host_cpu in
8317	pgcc*)				# Portland Group C compiler
8318	  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'
8319	  tmp_addflag=' $pic_flag'
8320	  ;;
8321	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8322	  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'
8323	  tmp_addflag=' $pic_flag -Mnomain' ;;
8324	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8325	  tmp_addflag=' -i_dynamic' ;;
8326	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8327	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8328	ifc* | ifort*)			# Intel Fortran compiler
8329	  tmp_addflag=' -nofor_main' ;;
8330	esac
8331	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8332
8333	if test $supports_anon_versioning = yes; then
8334	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8335  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8336  $echo "local: *; };" >> $output_objdir/$libname.ver~
8337	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8338	fi
8339	link_all_deplibs=no
8340      else
8341	ld_shlibs=no
8342      fi
8343      ;;
8344
8345    netbsd* | netbsdelf*-gnu)
8346      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8347	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8348	wlarc=
8349      else
8350	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8351	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8352      fi
8353      ;;
8354
8355    solaris*)
8356      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8357	ld_shlibs=no
8358	cat <<EOF 1>&2
8359
8360*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8361*** create shared libraries on Solaris systems.  Therefore, libtool
8362*** is disabling shared libraries support.  We urge you to upgrade GNU
8363*** binutils to release 2.9.1 or newer.  Another option is to modify
8364*** your PATH or compiler configuration so that the native linker is
8365*** used, and then restart.
8366
8367EOF
8368      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8369	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8370	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8371      else
8372	ld_shlibs=no
8373      fi
8374      ;;
8375
8376    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8377      case `$LD -v 2>&1` in
8378        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8379	ld_shlibs=no
8380	cat <<_LT_EOF 1>&2
8381
8382*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8383*** reliably create shared libraries on SCO systems.  Therefore, libtool
8384*** is disabling shared libraries support.  We urge you to upgrade GNU
8385*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8386*** your PATH or compiler configuration so that the native linker is
8387*** used, and then restart.
8388
8389_LT_EOF
8390	;;
8391	*)
8392	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8393	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8394	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8395	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8396	  else
8397	    ld_shlibs=no
8398	  fi
8399	;;
8400      esac
8401      ;;
8402
8403    sunos4*)
8404      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8405      wlarc=
8406      hardcode_direct=yes
8407      hardcode_shlibpath_var=no
8408      ;;
8409
8410    *)
8411      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8412	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8413	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8414      else
8415	ld_shlibs=no
8416      fi
8417      ;;
8418    esac
8419
8420    if test "$ld_shlibs" = no; then
8421      runpath_var=
8422      hardcode_libdir_flag_spec=
8423      export_dynamic_flag_spec=
8424      whole_archive_flag_spec=
8425    fi
8426  else
8427    # PORTME fill in a description of your system's linker (not GNU ld)
8428    case $host_os in
8429    aix3*)
8430      allow_undefined_flag=unsupported
8431      always_export_symbols=yes
8432      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'
8433      # Note: this linker hardcodes the directories in LIBPATH if there
8434      # are no directories specified by -L.
8435      hardcode_minus_L=yes
8436      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8437	# Neither direct hardcoding nor static linking is supported with a
8438	# broken collect2.
8439	hardcode_direct=unsupported
8440      fi
8441      ;;
8442
8443    aix4* | aix5*)
8444      if test "$host_cpu" = ia64; then
8445	# On IA64, the linker does run time linking by default, so we don't
8446	# have to do anything special.
8447	aix_use_runtimelinking=no
8448	exp_sym_flag='-Bexport'
8449	no_entry_flag=""
8450      else
8451	# If we're using GNU nm, then we don't want the "-C" option.
8452	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8453	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8454	  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'
8455	else
8456	  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'
8457	fi
8458	aix_use_runtimelinking=no
8459
8460	# Test if we are trying to use run time linking or normal
8461	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8462	# need to do runtime linking.
8463	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8464	  for ld_flag in $LDFLAGS; do
8465  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8466  	    aix_use_runtimelinking=yes
8467  	    break
8468  	  fi
8469	  done
8470	  ;;
8471	esac
8472
8473	exp_sym_flag='-bexport'
8474	no_entry_flag='-bnoentry'
8475      fi
8476
8477      # When large executables or shared objects are built, AIX ld can
8478      # have problems creating the table of contents.  If linking a library
8479      # or program results in "error TOC overflow" add -mminimal-toc to
8480      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8481      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8482
8483      archive_cmds=''
8484      hardcode_direct=yes
8485      hardcode_libdir_separator=':'
8486      link_all_deplibs=yes
8487
8488      if test "$GCC" = yes; then
8489	case $host_os in aix4.[012]|aix4.[012].*)
8490	# We only want to do this on AIX 4.2 and lower, the check
8491	# below for broken collect2 doesn't work under 4.3+
8492	  collect2name=`${CC} -print-prog-name=collect2`
8493	  if test -f "$collect2name" && \
8494  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8495	  then
8496  	  # We have reworked collect2
8497  	  hardcode_direct=yes
8498	  else
8499  	  # We have old collect2
8500  	  hardcode_direct=unsupported
8501  	  # It fails to find uninstalled libraries when the uninstalled
8502  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8503  	  # to unsupported forces relinking
8504  	  hardcode_minus_L=yes
8505  	  hardcode_libdir_flag_spec='-L$libdir'
8506  	  hardcode_libdir_separator=
8507	  fi
8508	  ;;
8509	esac
8510	shared_flag='-shared'
8511	if test "$aix_use_runtimelinking" = yes; then
8512	  shared_flag="$shared_flag "'${wl}-G'
8513	fi
8514      else
8515	# not using gcc
8516	if test "$host_cpu" = ia64; then
8517  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8518  	# chokes on -Wl,-G. The following line is correct:
8519	  shared_flag='-G'
8520	else
8521	  if test "$aix_use_runtimelinking" = yes; then
8522	    shared_flag='${wl}-G'
8523	  else
8524	    shared_flag='${wl}-bM:SRE'
8525	  fi
8526	fi
8527      fi
8528
8529      # It seems that -bexpall does not export symbols beginning with
8530      # underscore (_), so it is better to generate a list of symbols to export.
8531      always_export_symbols=yes
8532      if test "$aix_use_runtimelinking" = yes; then
8533	# Warning - without using the other runtime loading flags (-brtl),
8534	# -berok will link without error, but may produce a broken library.
8535	allow_undefined_flag='-berok'
8536       # Determine the default libpath from the value encoded in an empty executable.
8537       cat >conftest.$ac_ext <<_ACEOF
8538/* confdefs.h.  */
8539_ACEOF
8540cat confdefs.h >>conftest.$ac_ext
8541cat >>conftest.$ac_ext <<_ACEOF
8542/* end confdefs.h.  */
8543
8544int
8545main ()
8546{
8547
8548  ;
8549  return 0;
8550}
8551_ACEOF
8552rm -f conftest.$ac_objext conftest$ac_exeext
8553if { (ac_try="$ac_link"
8554case "(($ac_try" in
8555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556  *) ac_try_echo=$ac_try;;
8557esac
8558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559  (eval "$ac_link") 2>conftest.er1
8560  ac_status=$?
8561  grep -v '^ *+' conftest.er1 >conftest.err
8562  rm -f conftest.er1
8563  cat conftest.err >&5
8564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565  (exit $ac_status); } &&
8566	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8567  { (case "(($ac_try" in
8568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569  *) ac_try_echo=$ac_try;;
8570esac
8571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8572  (eval "$ac_try") 2>&5
8573  ac_status=$?
8574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575  (exit $ac_status); }; } &&
8576	 { ac_try='test -s conftest$ac_exeext'
8577  { (case "(($ac_try" in
8578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579  *) ac_try_echo=$ac_try;;
8580esac
8581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582  (eval "$ac_try") 2>&5
8583  ac_status=$?
8584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585  (exit $ac_status); }; }; then
8586
8587aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8588}'`
8589# Check for a 64-bit object if we didn't find anything.
8590if 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; }
8591}'`; fi
8592else
8593  echo "$as_me: failed program was:" >&5
8594sed 's/^/| /' conftest.$ac_ext >&5
8595
8596
8597fi
8598
8599rm -f core conftest.err conftest.$ac_objext \
8600      conftest$ac_exeext conftest.$ac_ext
8601if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8602
8603       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8604	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"
8605       else
8606	if test "$host_cpu" = ia64; then
8607	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8608	  allow_undefined_flag="-z nodefs"
8609	  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"
8610	else
8611	 # Determine the default libpath from the value encoded in an empty executable.
8612	 cat >conftest.$ac_ext <<_ACEOF
8613/* confdefs.h.  */
8614_ACEOF
8615cat confdefs.h >>conftest.$ac_ext
8616cat >>conftest.$ac_ext <<_ACEOF
8617/* end confdefs.h.  */
8618
8619int
8620main ()
8621{
8622
8623  ;
8624  return 0;
8625}
8626_ACEOF
8627rm -f conftest.$ac_objext conftest$ac_exeext
8628if { (ac_try="$ac_link"
8629case "(($ac_try" in
8630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631  *) ac_try_echo=$ac_try;;
8632esac
8633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634  (eval "$ac_link") 2>conftest.er1
8635  ac_status=$?
8636  grep -v '^ *+' conftest.er1 >conftest.err
8637  rm -f conftest.er1
8638  cat conftest.err >&5
8639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640  (exit $ac_status); } &&
8641	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8642  { (case "(($ac_try" in
8643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644  *) ac_try_echo=$ac_try;;
8645esac
8646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647  (eval "$ac_try") 2>&5
8648  ac_status=$?
8649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650  (exit $ac_status); }; } &&
8651	 { ac_try='test -s conftest$ac_exeext'
8652  { (case "(($ac_try" in
8653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654  *) ac_try_echo=$ac_try;;
8655esac
8656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657  (eval "$ac_try") 2>&5
8658  ac_status=$?
8659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660  (exit $ac_status); }; }; then
8661
8662aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8663}'`
8664# Check for a 64-bit object if we didn't find anything.
8665if 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; }
8666}'`; fi
8667else
8668  echo "$as_me: failed program was:" >&5
8669sed 's/^/| /' conftest.$ac_ext >&5
8670
8671
8672fi
8673
8674rm -f core conftest.err conftest.$ac_objext \
8675      conftest$ac_exeext conftest.$ac_ext
8676if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8677
8678	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8679	  # Warning - without using the other run time loading flags,
8680	  # -berok will link without error, but may produce a broken library.
8681	  no_undefined_flag=' ${wl}-bernotok'
8682	  allow_undefined_flag=' ${wl}-berok'
8683	  # Exported symbols can be pulled into shared objects from archives
8684	  whole_archive_flag_spec='$convenience'
8685	  archive_cmds_need_lc=yes
8686	  # This is similar to how AIX traditionally builds its shared libraries.
8687	  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'
8688	fi
8689      fi
8690      ;;
8691
8692    amigaos*)
8693      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)'
8694      hardcode_libdir_flag_spec='-L$libdir'
8695      hardcode_minus_L=yes
8696      # see comment about different semantics on the GNU ld section
8697      ld_shlibs=no
8698      ;;
8699
8700    bsdi[45]*)
8701      export_dynamic_flag_spec=-rdynamic
8702      ;;
8703
8704    cygwin* | mingw* | pw32*)
8705      # When not using gcc, we currently assume that we are using
8706      # Microsoft Visual C++.
8707      # hardcode_libdir_flag_spec is actually meaningless, as there is
8708      # no search path for DLLs.
8709      hardcode_libdir_flag_spec=' '
8710      allow_undefined_flag=unsupported
8711      # Tell ltmain to make .lib files, not .a files.
8712      libext=lib
8713      # Tell ltmain to make .dll files, not .so files.
8714      shrext_cmds=".dll"
8715      # FIXME: Setting linknames here is a bad hack.
8716      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8717      # The linker will automatically build a .lib file if we build a DLL.
8718      old_archive_From_new_cmds='true'
8719      # FIXME: Should let the user specify the lib program.
8720      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8721      fix_srcfile_path='`cygpath -w "$srcfile"`'
8722      enable_shared_with_static_runtimes=yes
8723      ;;
8724
8725    darwin* | rhapsody*)
8726      case $host_os in
8727        rhapsody* | darwin1.[012])
8728         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8729         ;;
8730       *) # Darwin 1.3 on
8731         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8732           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8733         else
8734           case ${MACOSX_DEPLOYMENT_TARGET} in
8735             10.[012])
8736               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8737               ;;
8738             10.*)
8739               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8740               ;;
8741           esac
8742         fi
8743         ;;
8744      esac
8745      archive_cmds_need_lc=no
8746      hardcode_direct=no
8747      hardcode_automatic=yes
8748      hardcode_shlibpath_var=unsupported
8749      whole_archive_flag_spec=''
8750      link_all_deplibs=yes
8751    if test "$GCC" = yes ; then
8752    	output_verbose_link_cmd='echo'
8753        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8754      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8755      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8756      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}'
8757      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}'
8758    else
8759      case $cc_basename in
8760        xlc*)
8761         output_verbose_link_cmd='echo'
8762         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8763         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8764          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8765         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}'
8766          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}'
8767          ;;
8768       *)
8769         ld_shlibs=no
8770          ;;
8771      esac
8772    fi
8773      ;;
8774
8775    dgux*)
8776      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8777      hardcode_libdir_flag_spec='-L$libdir'
8778      hardcode_shlibpath_var=no
8779      ;;
8780
8781    freebsd1*)
8782      ld_shlibs=no
8783      ;;
8784
8785    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8786    # support.  Future versions do this automatically, but an explicit c++rt0.o
8787    # does not break anything, and helps significantly (at the cost of a little
8788    # extra space).
8789    freebsd2.2*)
8790      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8791      hardcode_libdir_flag_spec='-R$libdir'
8792      hardcode_direct=yes
8793      hardcode_shlibpath_var=no
8794      ;;
8795
8796    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8797    freebsd2*)
8798      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8799      hardcode_direct=yes
8800      hardcode_minus_L=yes
8801      hardcode_shlibpath_var=no
8802      ;;
8803
8804    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8805    freebsd* | dragonfly*)
8806      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8807      hardcode_libdir_flag_spec='-R$libdir'
8808      hardcode_direct=yes
8809      hardcode_shlibpath_var=no
8810      ;;
8811
8812    hpux9*)
8813      if test "$GCC" = yes; then
8814	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'
8815      else
8816	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'
8817      fi
8818      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8819      hardcode_libdir_separator=:
8820      hardcode_direct=yes
8821
8822      # hardcode_minus_L: Not really in the search PATH,
8823      # but as the default location of the library.
8824      hardcode_minus_L=yes
8825      export_dynamic_flag_spec='${wl}-E'
8826      ;;
8827
8828    hpux10*)
8829      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8830	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8831      else
8832	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8833      fi
8834      if test "$with_gnu_ld" = no; then
8835	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8836	hardcode_libdir_separator=:
8837
8838	hardcode_direct=yes
8839	export_dynamic_flag_spec='${wl}-E'
8840
8841	# hardcode_minus_L: Not really in the search PATH,
8842	# but as the default location of the library.
8843	hardcode_minus_L=yes
8844      fi
8845      ;;
8846
8847    hpux11*)
8848      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8849	case $host_cpu in
8850	hppa*64*)
8851	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8852	  ;;
8853	ia64*)
8854	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8855	  ;;
8856	*)
8857	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8858	  ;;
8859	esac
8860      else
8861	case $host_cpu in
8862	hppa*64*)
8863	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8864	  ;;
8865	ia64*)
8866	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8867	  ;;
8868	*)
8869	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8870	  ;;
8871	esac
8872      fi
8873      if test "$with_gnu_ld" = no; then
8874	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8875	hardcode_libdir_separator=:
8876
8877	case $host_cpu in
8878	hppa*64*|ia64*)
8879	  hardcode_libdir_flag_spec_ld='+b $libdir'
8880	  hardcode_direct=no
8881	  hardcode_shlibpath_var=no
8882	  ;;
8883	*)
8884	  hardcode_direct=yes
8885	  export_dynamic_flag_spec='${wl}-E'
8886
8887	  # hardcode_minus_L: Not really in the search PATH,
8888	  # but as the default location of the library.
8889	  hardcode_minus_L=yes
8890	  ;;
8891	esac
8892      fi
8893      ;;
8894
8895    irix5* | irix6* | nonstopux*)
8896      if test "$GCC" = yes; then
8897	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'
8898      else
8899	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'
8900	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8901      fi
8902      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8903      hardcode_libdir_separator=:
8904      link_all_deplibs=yes
8905      ;;
8906
8907    netbsd* | netbsdelf*-gnu)
8908      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8909	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8910      else
8911	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8912      fi
8913      hardcode_libdir_flag_spec='-R$libdir'
8914      hardcode_direct=yes
8915      hardcode_shlibpath_var=no
8916      ;;
8917
8918    newsos6)
8919      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8920      hardcode_direct=yes
8921      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8922      hardcode_libdir_separator=:
8923      hardcode_shlibpath_var=no
8924      ;;
8925
8926    openbsd*)
8927      hardcode_direct=yes
8928      hardcode_shlibpath_var=no
8929      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8930	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8931	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8932	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8933	export_dynamic_flag_spec='${wl}-E'
8934      else
8935       case $host_os in
8936	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8937	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8938	   hardcode_libdir_flag_spec='-R$libdir'
8939	   ;;
8940	 *)
8941	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8942	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8943	   ;;
8944       esac
8945      fi
8946      ;;
8947
8948    os2*)
8949      hardcode_libdir_flag_spec='-L$libdir'
8950      hardcode_minus_L=yes
8951      allow_undefined_flag=unsupported
8952      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'
8953      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8954      ;;
8955
8956    osf3*)
8957      if test "$GCC" = yes; then
8958	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8959	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'
8960      else
8961	allow_undefined_flag=' -expect_unresolved \*'
8962	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'
8963      fi
8964      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8965      hardcode_libdir_separator=:
8966      ;;
8967
8968    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8969      if test "$GCC" = yes; then
8970	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8971	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'
8972	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8973      else
8974	allow_undefined_flag=' -expect_unresolved \*'
8975	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'
8976	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8977	$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'
8978
8979	# Both c and cxx compiler support -rpath directly
8980	hardcode_libdir_flag_spec='-rpath $libdir'
8981      fi
8982      hardcode_libdir_separator=:
8983      ;;
8984
8985    solaris*)
8986      no_undefined_flag=' -z text'
8987      if test "$GCC" = yes; then
8988	wlarc='${wl}'
8989	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8990	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8991	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8992      else
8993	wlarc=''
8994	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8995	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8996  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8997      fi
8998      hardcode_libdir_flag_spec='-R$libdir'
8999      hardcode_shlibpath_var=no
9000      case $host_os in
9001      solaris2.[0-5] | solaris2.[0-5].*) ;;
9002      *)
9003 	# The compiler driver will combine linker options so we
9004 	# cannot just pass the convience library names through
9005 	# without $wl, iff we do not link with $LD.
9006 	# Luckily, gcc supports the same syntax we need for Sun Studio.
9007 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9008 	case $wlarc in
9009 	'')
9010 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9011 	*)
9012 	  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' ;;
9013 	esac ;;
9014      esac
9015      link_all_deplibs=yes
9016      ;;
9017
9018    sunos4*)
9019      if test "x$host_vendor" = xsequent; then
9020	# Use $CC to link under sequent, because it throws in some extra .o
9021	# files that make .init and .fini sections work.
9022	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9023      else
9024	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9025      fi
9026      hardcode_libdir_flag_spec='-L$libdir'
9027      hardcode_direct=yes
9028      hardcode_minus_L=yes
9029      hardcode_shlibpath_var=no
9030      ;;
9031
9032    sysv4)
9033      case $host_vendor in
9034	sni)
9035	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9036	  hardcode_direct=yes # is this really true???
9037	;;
9038	siemens)
9039	  ## LD is ld it makes a PLAMLIB
9040	  ## CC just makes a GrossModule.
9041	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9042	  reload_cmds='$CC -r -o $output$reload_objs'
9043	  hardcode_direct=no
9044        ;;
9045	motorola)
9046	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9047	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9048	;;
9049      esac
9050      runpath_var='LD_RUN_PATH'
9051      hardcode_shlibpath_var=no
9052      ;;
9053
9054    sysv4.3*)
9055      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9056      hardcode_shlibpath_var=no
9057      export_dynamic_flag_spec='-Bexport'
9058      ;;
9059
9060    sysv4*MP*)
9061      if test -d /usr/nec; then
9062	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9063	hardcode_shlibpath_var=no
9064	runpath_var=LD_RUN_PATH
9065	hardcode_runpath_var=yes
9066	ld_shlibs=yes
9067      fi
9068      ;;
9069
9070    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9071      no_undefined_flag='${wl}-z,text'
9072      archive_cmds_need_lc=no
9073      hardcode_shlibpath_var=no
9074      runpath_var='LD_RUN_PATH'
9075
9076      if test "$GCC" = yes; then
9077	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9078	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9079      else
9080	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9081	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9082      fi
9083      ;;
9084
9085    sysv5* | sco3.2v5* | sco5v6*)
9086      # Note: We can NOT use -z defs as we might desire, because we do not
9087      # link with -lc, and that would cause any symbols used from libc to
9088      # always be unresolved, which means just about no library would
9089      # ever link correctly.  If we're not using GNU ld we use -z text
9090      # though, which does catch some bad symbols but isn't as heavy-handed
9091      # as -z defs.
9092      no_undefined_flag='${wl}-z,text'
9093      allow_undefined_flag='${wl}-z,nodefs'
9094      archive_cmds_need_lc=no
9095      hardcode_shlibpath_var=no
9096      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9097      hardcode_libdir_separator=':'
9098      link_all_deplibs=yes
9099      export_dynamic_flag_spec='${wl}-Bexport'
9100      runpath_var='LD_RUN_PATH'
9101
9102      if test "$GCC" = yes; then
9103	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9104	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9105      else
9106	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9107	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9108      fi
9109      ;;
9110
9111    uts4*)
9112      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9113      hardcode_libdir_flag_spec='-L$libdir'
9114      hardcode_shlibpath_var=no
9115      ;;
9116
9117    *)
9118      ld_shlibs=no
9119      ;;
9120    esac
9121  fi
9122
9123{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9124echo "${ECHO_T}$ld_shlibs" >&6; }
9125test "$ld_shlibs" = no && can_build_shared=no
9126
9127#
9128# Do we need to explicitly link libc?
9129#
9130case "x$archive_cmds_need_lc" in
9131x|xyes)
9132  # Assume -lc should be added
9133  archive_cmds_need_lc=yes
9134
9135  if test "$enable_shared" = yes && test "$GCC" = yes; then
9136    case $archive_cmds in
9137    *'~'*)
9138      # FIXME: we may have to deal with multi-command sequences.
9139      ;;
9140    '$CC '*)
9141      # Test whether the compiler implicitly links with -lc since on some
9142      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9143      # to ld, don't add -lc before -lgcc.
9144      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9145echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9146      $rm conftest*
9147      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9148
9149      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9150  (eval $ac_compile) 2>&5
9151  ac_status=$?
9152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153  (exit $ac_status); } 2>conftest.err; then
9154        soname=conftest
9155        lib=conftest
9156        libobjs=conftest.$ac_objext
9157        deplibs=
9158        wl=$lt_prog_compiler_wl
9159	pic_flag=$lt_prog_compiler_pic
9160        compiler_flags=-v
9161        linker_flags=-v
9162        verstring=
9163        output_objdir=.
9164        libname=conftest
9165        lt_save_allow_undefined_flag=$allow_undefined_flag
9166        allow_undefined_flag=
9167        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9168  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9169  ac_status=$?
9170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171  (exit $ac_status); }
9172        then
9173	  archive_cmds_need_lc=no
9174        else
9175	  archive_cmds_need_lc=yes
9176        fi
9177        allow_undefined_flag=$lt_save_allow_undefined_flag
9178      else
9179        cat conftest.err 1>&5
9180      fi
9181      $rm conftest*
9182      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9183echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9184      ;;
9185    esac
9186  fi
9187  ;;
9188esac
9189
9190{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9191echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9192library_names_spec=
9193libname_spec='lib$name'
9194soname_spec=
9195shrext_cmds=".so"
9196postinstall_cmds=
9197postuninstall_cmds=
9198finish_cmds=
9199finish_eval=
9200shlibpath_var=
9201shlibpath_overrides_runpath=unknown
9202version_type=none
9203dynamic_linker="$host_os ld.so"
9204sys_lib_dlsearch_path_spec="/lib /usr/lib"
9205if test "$GCC" = yes; then
9206  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9207  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9208    # if the path contains ";" then we assume it to be the separator
9209    # otherwise default to the standard path separator (i.e. ":") - it is
9210    # assumed that no part of a normal pathname contains ";" but that should
9211    # okay in the real world where ";" in dirpaths is itself problematic.
9212    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9213  else
9214    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9215  fi
9216else
9217  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9218fi
9219need_lib_prefix=unknown
9220hardcode_into_libs=no
9221
9222# when you set need_version to no, make sure it does not cause -set_version
9223# flags to be left without arguments
9224need_version=unknown
9225
9226case $host_os in
9227aix3*)
9228  version_type=linux
9229  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9230  shlibpath_var=LIBPATH
9231
9232  # AIX 3 has no versioning support, so we append a major version to the name.
9233  soname_spec='${libname}${release}${shared_ext}$major'
9234  ;;
9235
9236aix4* | aix5*)
9237  version_type=linux
9238  need_lib_prefix=no
9239  need_version=no
9240  hardcode_into_libs=yes
9241  if test "$host_cpu" = ia64; then
9242    # AIX 5 supports IA64
9243    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9244    shlibpath_var=LD_LIBRARY_PATH
9245  else
9246    # With GCC up to 2.95.x, collect2 would create an import file
9247    # for dependence libraries.  The import file would start with
9248    # the line `#! .'.  This would cause the generated library to
9249    # depend on `.', always an invalid library.  This was fixed in
9250    # development snapshots of GCC prior to 3.0.
9251    case $host_os in
9252      aix4 | aix4.[01] | aix4.[01].*)
9253      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9254	   echo ' yes '
9255	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9256	:
9257      else
9258	can_build_shared=no
9259      fi
9260      ;;
9261    esac
9262    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9263    # soname into executable. Probably we can add versioning support to
9264    # collect2, so additional links can be useful in future.
9265    if test "$aix_use_runtimelinking" = yes; then
9266      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9267      # instead of lib<name>.a to let people know that these are not
9268      # typical AIX shared libraries.
9269      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270    else
9271      # We preserve .a as extension for shared libraries through AIX4.2
9272      # and later when we are not doing run time linking.
9273      library_names_spec='${libname}${release}.a $libname.a'
9274      soname_spec='${libname}${release}${shared_ext}$major'
9275    fi
9276    shlibpath_var=LIBPATH
9277  fi
9278  ;;
9279
9280amigaos*)
9281  library_names_spec='$libname.ixlibrary $libname.a'
9282  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9283  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'
9284  ;;
9285
9286beos*)
9287  library_names_spec='${libname}${shared_ext}'
9288  dynamic_linker="$host_os ld.so"
9289  shlibpath_var=LIBRARY_PATH
9290  ;;
9291
9292bsdi[45]*)
9293  version_type=linux
9294  need_version=no
9295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296  soname_spec='${libname}${release}${shared_ext}$major'
9297  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9298  shlibpath_var=LD_LIBRARY_PATH
9299  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9300  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9301  # the default ld.so.conf also contains /usr/contrib/lib and
9302  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9303  # libtool to hard-code these into programs
9304  ;;
9305
9306cygwin* | mingw* | pw32*)
9307  version_type=windows
9308  shrext_cmds=".dll"
9309  need_version=no
9310  need_lib_prefix=no
9311
9312  case $GCC,$host_os in
9313  yes,cygwin* | yes,mingw* | yes,pw32*)
9314    library_names_spec='$libname.dll.a'
9315    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9316    postinstall_cmds='base_file=`basename \${file}`~
9317      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9318      dldir=$destdir/`dirname \$dlpath`~
9319      test -d \$dldir || mkdir -p \$dldir~
9320      $install_prog $dir/$dlname \$dldir/$dlname~
9321      chmod a+x \$dldir/$dlname'
9322    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9323      dlpath=$dir/\$dldll~
9324       $rm \$dlpath'
9325    shlibpath_overrides_runpath=yes
9326
9327    case $host_os in
9328    cygwin*)
9329      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9330      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9331      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9332      ;;
9333    mingw*)
9334      # MinGW DLLs use traditional 'lib' prefix
9335      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9336      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9337      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9338        # It is most probably a Windows format PATH printed by
9339        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9340        # path with ; separators, and with drive letters. We can handle the
9341        # drive letters (cygwin fileutils understands them), so leave them,
9342        # especially as we might pass files found there to a mingw objdump,
9343        # which wouldn't understand a cygwinified path. Ahh.
9344        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9345      else
9346        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9347      fi
9348      ;;
9349    pw32*)
9350      # pw32 DLLs use 'pw' prefix rather than 'lib'
9351      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9352      ;;
9353    esac
9354    ;;
9355
9356  *)
9357    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9358    ;;
9359  esac
9360  dynamic_linker='Win32 ld.exe'
9361  # FIXME: first we should search . and the directory the executable is in
9362  shlibpath_var=PATH
9363  ;;
9364
9365darwin* | rhapsody*)
9366  dynamic_linker="$host_os dyld"
9367  version_type=darwin
9368  need_lib_prefix=no
9369  need_version=no
9370  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9371  soname_spec='${libname}${release}${major}$shared_ext'
9372  shlibpath_overrides_runpath=yes
9373  shlibpath_var=DYLD_LIBRARY_PATH
9374  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9375  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9376  if test "$GCC" = yes; then
9377    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"`
9378  else
9379    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9380  fi
9381  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9382  ;;
9383
9384dgux*)
9385  version_type=linux
9386  need_lib_prefix=no
9387  need_version=no
9388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9389  soname_spec='${libname}${release}${shared_ext}$major'
9390  shlibpath_var=LD_LIBRARY_PATH
9391  ;;
9392
9393freebsd1*)
9394  dynamic_linker=no
9395  ;;
9396
9397freebsd* | dragonfly*)
9398  # DragonFly does not have aout.  When/if they implement a new
9399  # versioning mechanism, adjust this.
9400  if test -x /usr/bin/objformat; then
9401    objformat=`/usr/bin/objformat`
9402  else
9403    case $host_os in
9404    freebsd[123]*) objformat=aout ;;
9405    *) objformat=elf ;;
9406    esac
9407  fi
9408  version_type=freebsd-$objformat
9409  case $version_type in
9410    freebsd-elf*)
9411      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9412      need_version=no
9413      need_lib_prefix=no
9414      ;;
9415    freebsd-*)
9416      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9417      need_version=yes
9418      ;;
9419  esac
9420  shlibpath_var=LD_LIBRARY_PATH
9421  case $host_os in
9422  freebsd2*)
9423    shlibpath_overrides_runpath=yes
9424    ;;
9425  freebsd3.[01]* | freebsdelf3.[01]*)
9426    shlibpath_overrides_runpath=yes
9427    hardcode_into_libs=yes
9428    ;;
9429  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9430  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9431    shlibpath_overrides_runpath=no
9432    hardcode_into_libs=yes
9433    ;;
9434  freebsd*) # from 4.6 on
9435    shlibpath_overrides_runpath=yes
9436    hardcode_into_libs=yes
9437    ;;
9438  esac
9439  ;;
9440
9441gnu*)
9442  version_type=linux
9443  need_lib_prefix=no
9444  need_version=no
9445  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9446  soname_spec='${libname}${release}${shared_ext}$major'
9447  shlibpath_var=LD_LIBRARY_PATH
9448  hardcode_into_libs=yes
9449  ;;
9450
9451hpux9* | hpux10* | hpux11*)
9452  # Give a soname corresponding to the major version so that dld.sl refuses to
9453  # link against other versions.
9454  version_type=sunos
9455  need_lib_prefix=no
9456  need_version=no
9457  case $host_cpu in
9458  ia64*)
9459    shrext_cmds='.so'
9460    hardcode_into_libs=yes
9461    dynamic_linker="$host_os dld.so"
9462    shlibpath_var=LD_LIBRARY_PATH
9463    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9464    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465    soname_spec='${libname}${release}${shared_ext}$major'
9466    if test "X$HPUX_IA64_MODE" = X32; then
9467      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9468    else
9469      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9470    fi
9471    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9472    ;;
9473   hppa*64*)
9474     shrext_cmds='.sl'
9475     hardcode_into_libs=yes
9476     dynamic_linker="$host_os dld.sl"
9477     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9478     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9479     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9480     soname_spec='${libname}${release}${shared_ext}$major'
9481     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9482     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9483     ;;
9484   *)
9485    shrext_cmds='.sl'
9486    dynamic_linker="$host_os dld.sl"
9487    shlibpath_var=SHLIB_PATH
9488    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9489    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9490    soname_spec='${libname}${release}${shared_ext}$major'
9491    ;;
9492  esac
9493  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9494  postinstall_cmds='chmod 555 $lib'
9495  ;;
9496
9497interix3*)
9498  version_type=linux
9499  need_lib_prefix=no
9500  need_version=no
9501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9502  soname_spec='${libname}${release}${shared_ext}$major'
9503  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9504  shlibpath_var=LD_LIBRARY_PATH
9505  shlibpath_overrides_runpath=no
9506  hardcode_into_libs=yes
9507  ;;
9508
9509irix5* | irix6* | nonstopux*)
9510  case $host_os in
9511    nonstopux*) version_type=nonstopux ;;
9512    *)
9513	if test "$lt_cv_prog_gnu_ld" = yes; then
9514		version_type=linux
9515	else
9516		version_type=irix
9517	fi ;;
9518  esac
9519  need_lib_prefix=no
9520  need_version=no
9521  soname_spec='${libname}${release}${shared_ext}$major'
9522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9523  case $host_os in
9524  irix5* | nonstopux*)
9525    libsuff= shlibsuff=
9526    ;;
9527  *)
9528    case $LD in # libtool.m4 will add one of these switches to LD
9529    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9530      libsuff= shlibsuff= libmagic=32-bit;;
9531    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9532      libsuff=32 shlibsuff=N32 libmagic=N32;;
9533    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9534      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9535    *) libsuff= shlibsuff= libmagic=never-match;;
9536    esac
9537    ;;
9538  esac
9539  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9540  shlibpath_overrides_runpath=no
9541  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9542  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9543  hardcode_into_libs=yes
9544  ;;
9545
9546# No shared lib support for Linux oldld, aout, or coff.
9547linux*oldld* | linux*aout* | linux*coff*)
9548  dynamic_linker=no
9549  ;;
9550
9551# This must be Linux ELF.
9552linux* | k*bsd*-gnu)
9553  version_type=linux
9554  need_lib_prefix=no
9555  need_version=no
9556  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9557  soname_spec='${libname}${release}${shared_ext}$major'
9558  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9559  shlibpath_var=LD_LIBRARY_PATH
9560  shlibpath_overrides_runpath=no
9561  # This implies no fast_install, which is unacceptable.
9562  # Some rework will be needed to allow for fast_install
9563  # before this can be enabled.
9564  hardcode_into_libs=yes
9565
9566  # Append ld.so.conf contents to the search path
9567  if test -f /etc/ld.so.conf; then
9568    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' ' '`
9569    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9570  fi
9571
9572  # We used to test for /lib/ld.so.1 and disable shared libraries on
9573  # powerpc, because MkLinux only supported shared libraries with the
9574  # GNU dynamic linker.  Since this was broken with cross compilers,
9575  # most powerpc-linux boxes support dynamic linking these days and
9576  # people can always --disable-shared, the test was removed, and we
9577  # assume the GNU/Linux dynamic linker is in use.
9578  dynamic_linker='GNU/Linux ld.so'
9579  ;;
9580
9581netbsdelf*-gnu)
9582  version_type=linux
9583  need_lib_prefix=no
9584  need_version=no
9585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9586  soname_spec='${libname}${release}${shared_ext}$major'
9587  shlibpath_var=LD_LIBRARY_PATH
9588  shlibpath_overrides_runpath=no
9589  hardcode_into_libs=yes
9590  dynamic_linker='NetBSD ld.elf_so'
9591  ;;
9592
9593netbsd*)
9594  version_type=sunos
9595  need_lib_prefix=no
9596  need_version=no
9597  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9598    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9599    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9600    dynamic_linker='NetBSD (a.out) ld.so'
9601  else
9602    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9603    soname_spec='${libname}${release}${shared_ext}$major'
9604    dynamic_linker='NetBSD ld.elf_so'
9605  fi
9606  shlibpath_var=LD_LIBRARY_PATH
9607  shlibpath_overrides_runpath=yes
9608  hardcode_into_libs=yes
9609  ;;
9610
9611newsos6)
9612  version_type=linux
9613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614  shlibpath_var=LD_LIBRARY_PATH
9615  shlibpath_overrides_runpath=yes
9616  ;;
9617
9618nto-qnx*)
9619  version_type=linux
9620  need_lib_prefix=no
9621  need_version=no
9622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9623  soname_spec='${libname}${release}${shared_ext}$major'
9624  shlibpath_var=LD_LIBRARY_PATH
9625  shlibpath_overrides_runpath=yes
9626  ;;
9627
9628openbsd*)
9629  version_type=sunos
9630  sys_lib_dlsearch_path_spec="/usr/lib"
9631  need_lib_prefix=no
9632  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9633  case $host_os in
9634    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9635    *)                         need_version=no  ;;
9636  esac
9637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9638  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9639  shlibpath_var=LD_LIBRARY_PATH
9640  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9641    case $host_os in
9642      openbsd2.[89] | openbsd2.[89].*)
9643	shlibpath_overrides_runpath=no
9644	;;
9645      *)
9646	shlibpath_overrides_runpath=yes
9647	;;
9648      esac
9649  else
9650    shlibpath_overrides_runpath=yes
9651  fi
9652  ;;
9653
9654os2*)
9655  libname_spec='$name'
9656  shrext_cmds=".dll"
9657  need_lib_prefix=no
9658  library_names_spec='$libname${shared_ext} $libname.a'
9659  dynamic_linker='OS/2 ld.exe'
9660  shlibpath_var=LIBPATH
9661  ;;
9662
9663osf3* | osf4* | osf5*)
9664  version_type=osf
9665  need_lib_prefix=no
9666  need_version=no
9667  soname_spec='${libname}${release}${shared_ext}$major'
9668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669  shlibpath_var=LD_LIBRARY_PATH
9670  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9671  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9672  ;;
9673
9674solaris*)
9675  version_type=linux
9676  need_lib_prefix=no
9677  need_version=no
9678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679  soname_spec='${libname}${release}${shared_ext}$major'
9680  shlibpath_var=LD_LIBRARY_PATH
9681  shlibpath_overrides_runpath=yes
9682  hardcode_into_libs=yes
9683  # ldd complains unless libraries are executable
9684  postinstall_cmds='chmod +x $lib'
9685  ;;
9686
9687sunos4*)
9688  version_type=sunos
9689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9690  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9691  shlibpath_var=LD_LIBRARY_PATH
9692  shlibpath_overrides_runpath=yes
9693  if test "$with_gnu_ld" = yes; then
9694    need_lib_prefix=no
9695  fi
9696  need_version=yes
9697  ;;
9698
9699sysv4 | sysv4.3*)
9700  version_type=linux
9701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9702  soname_spec='${libname}${release}${shared_ext}$major'
9703  shlibpath_var=LD_LIBRARY_PATH
9704  case $host_vendor in
9705    sni)
9706      shlibpath_overrides_runpath=no
9707      need_lib_prefix=no
9708      export_dynamic_flag_spec='${wl}-Blargedynsym'
9709      runpath_var=LD_RUN_PATH
9710      ;;
9711    siemens)
9712      need_lib_prefix=no
9713      ;;
9714    motorola)
9715      need_lib_prefix=no
9716      need_version=no
9717      shlibpath_overrides_runpath=no
9718      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9719      ;;
9720  esac
9721  ;;
9722
9723sysv4*MP*)
9724  if test -d /usr/nec ;then
9725    version_type=linux
9726    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9727    soname_spec='$libname${shared_ext}.$major'
9728    shlibpath_var=LD_LIBRARY_PATH
9729  fi
9730  ;;
9731
9732sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9733  version_type=freebsd-elf
9734  need_lib_prefix=no
9735  need_version=no
9736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9737  soname_spec='${libname}${release}${shared_ext}$major'
9738  shlibpath_var=LD_LIBRARY_PATH
9739  hardcode_into_libs=yes
9740  if test "$with_gnu_ld" = yes; then
9741    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9742    shlibpath_overrides_runpath=no
9743  else
9744    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9745    shlibpath_overrides_runpath=yes
9746    case $host_os in
9747      sco3.2v5*)
9748        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9749	;;
9750    esac
9751  fi
9752  sys_lib_dlsearch_path_spec='/usr/lib'
9753  ;;
9754
9755uts4*)
9756  version_type=linux
9757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9758  soname_spec='${libname}${release}${shared_ext}$major'
9759  shlibpath_var=LD_LIBRARY_PATH
9760  ;;
9761
9762*)
9763  dynamic_linker=no
9764  ;;
9765esac
9766{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9767echo "${ECHO_T}$dynamic_linker" >&6; }
9768test "$dynamic_linker" = no && can_build_shared=no
9769
9770variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9771if test "$GCC" = yes; then
9772  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9773fi
9774
9775{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9776echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9777hardcode_action=
9778if test -n "$hardcode_libdir_flag_spec" || \
9779   test -n "$runpath_var" || \
9780   test "X$hardcode_automatic" = "Xyes" ; then
9781
9782  # We can hardcode non-existant directories.
9783  if test "$hardcode_direct" != no &&
9784     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9785     # have to relink, otherwise we might link with an installed library
9786     # when we should be linking with a yet-to-be-installed one
9787     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9788     test "$hardcode_minus_L" != no; then
9789    # Linking always hardcodes the temporary library directory.
9790    hardcode_action=relink
9791  else
9792    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9793    hardcode_action=immediate
9794  fi
9795else
9796  # We cannot hardcode anything, or else we can only hardcode existing
9797  # directories.
9798  hardcode_action=unsupported
9799fi
9800{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9801echo "${ECHO_T}$hardcode_action" >&6; }
9802
9803if test "$hardcode_action" = relink; then
9804  # Fast installation is not supported
9805  enable_fast_install=no
9806elif test "$shlibpath_overrides_runpath" = yes ||
9807     test "$enable_shared" = no; then
9808  # Fast installation is not necessary
9809  enable_fast_install=needless
9810fi
9811
9812striplib=
9813old_striplib=
9814{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9815echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9816if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9817  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9818  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9819  { echo "$as_me:$LINENO: result: yes" >&5
9820echo "${ECHO_T}yes" >&6; }
9821else
9822# FIXME - insert some real tests, host_os isn't really good enough
9823  case $host_os in
9824   darwin*)
9825       if test -n "$STRIP" ; then
9826         striplib="$STRIP -x"
9827         { echo "$as_me:$LINENO: result: yes" >&5
9828echo "${ECHO_T}yes" >&6; }
9829       else
9830  { echo "$as_me:$LINENO: result: no" >&5
9831echo "${ECHO_T}no" >&6; }
9832fi
9833       ;;
9834   *)
9835  { echo "$as_me:$LINENO: result: no" >&5
9836echo "${ECHO_T}no" >&6; }
9837    ;;
9838  esac
9839fi
9840
9841if test "x$enable_dlopen" != xyes; then
9842  enable_dlopen=unknown
9843  enable_dlopen_self=unknown
9844  enable_dlopen_self_static=unknown
9845else
9846  lt_cv_dlopen=no
9847  lt_cv_dlopen_libs=
9848
9849  case $host_os in
9850  beos*)
9851    lt_cv_dlopen="load_add_on"
9852    lt_cv_dlopen_libs=
9853    lt_cv_dlopen_self=yes
9854    ;;
9855
9856  mingw* | pw32*)
9857    lt_cv_dlopen="LoadLibrary"
9858    lt_cv_dlopen_libs=
9859   ;;
9860
9861  cygwin*)
9862    lt_cv_dlopen="dlopen"
9863    lt_cv_dlopen_libs=
9864   ;;
9865
9866  darwin*)
9867  # if libdl is installed we need to link against it
9868    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9869echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9870if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9871  echo $ECHO_N "(cached) $ECHO_C" >&6
9872else
9873  ac_check_lib_save_LIBS=$LIBS
9874LIBS="-ldl  $LIBS"
9875cat >conftest.$ac_ext <<_ACEOF
9876/* confdefs.h.  */
9877_ACEOF
9878cat confdefs.h >>conftest.$ac_ext
9879cat >>conftest.$ac_ext <<_ACEOF
9880/* end confdefs.h.  */
9881
9882/* Override any GCC internal prototype to avoid an error.
9883   Use char because int might match the return type of a GCC
9884   builtin and then its argument prototype would still apply.  */
9885#ifdef __cplusplus
9886extern "C"
9887#endif
9888char dlopen ();
9889int
9890main ()
9891{
9892return dlopen ();
9893  ;
9894  return 0;
9895}
9896_ACEOF
9897rm -f conftest.$ac_objext conftest$ac_exeext
9898if { (ac_try="$ac_link"
9899case "(($ac_try" in
9900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901  *) ac_try_echo=$ac_try;;
9902esac
9903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904  (eval "$ac_link") 2>conftest.er1
9905  ac_status=$?
9906  grep -v '^ *+' conftest.er1 >conftest.err
9907  rm -f conftest.er1
9908  cat conftest.err >&5
9909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910  (exit $ac_status); } &&
9911	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9912  { (case "(($ac_try" in
9913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9914  *) ac_try_echo=$ac_try;;
9915esac
9916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917  (eval "$ac_try") 2>&5
9918  ac_status=$?
9919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920  (exit $ac_status); }; } &&
9921	 { ac_try='test -s conftest$ac_exeext'
9922  { (case "(($ac_try" in
9923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924  *) ac_try_echo=$ac_try;;
9925esac
9926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927  (eval "$ac_try") 2>&5
9928  ac_status=$?
9929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930  (exit $ac_status); }; }; then
9931  ac_cv_lib_dl_dlopen=yes
9932else
9933  echo "$as_me: failed program was:" >&5
9934sed 's/^/| /' conftest.$ac_ext >&5
9935
9936	ac_cv_lib_dl_dlopen=no
9937fi
9938
9939rm -f core conftest.err conftest.$ac_objext \
9940      conftest$ac_exeext conftest.$ac_ext
9941LIBS=$ac_check_lib_save_LIBS
9942fi
9943{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9944echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9945if test $ac_cv_lib_dl_dlopen = yes; then
9946  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9947else
9948
9949    lt_cv_dlopen="dyld"
9950    lt_cv_dlopen_libs=
9951    lt_cv_dlopen_self=yes
9952
9953fi
9954
9955   ;;
9956
9957  *)
9958    { echo "$as_me:$LINENO: checking for shl_load" >&5
9959echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9960if test "${ac_cv_func_shl_load+set}" = set; then
9961  echo $ECHO_N "(cached) $ECHO_C" >&6
9962else
9963  cat >conftest.$ac_ext <<_ACEOF
9964/* confdefs.h.  */
9965_ACEOF
9966cat confdefs.h >>conftest.$ac_ext
9967cat >>conftest.$ac_ext <<_ACEOF
9968/* end confdefs.h.  */
9969/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9970   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9971#define shl_load innocuous_shl_load
9972
9973/* System header to define __stub macros and hopefully few prototypes,
9974    which can conflict with char shl_load (); below.
9975    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9976    <limits.h> exists even on freestanding compilers.  */
9977
9978#ifdef __STDC__
9979# include <limits.h>
9980#else
9981# include <assert.h>
9982#endif
9983
9984#undef shl_load
9985
9986/* Override any GCC internal prototype to avoid an error.
9987   Use char because int might match the return type of a GCC
9988   builtin and then its argument prototype would still apply.  */
9989#ifdef __cplusplus
9990extern "C"
9991#endif
9992char shl_load ();
9993/* The GNU C library defines this for functions which it implements
9994    to always fail with ENOSYS.  Some functions are actually named
9995    something starting with __ and the normal name is an alias.  */
9996#if defined __stub_shl_load || defined __stub___shl_load
9997choke me
9998#endif
9999
10000int
10001main ()
10002{
10003return shl_load ();
10004  ;
10005  return 0;
10006}
10007_ACEOF
10008rm -f conftest.$ac_objext conftest$ac_exeext
10009if { (ac_try="$ac_link"
10010case "(($ac_try" in
10011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012  *) ac_try_echo=$ac_try;;
10013esac
10014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10015  (eval "$ac_link") 2>conftest.er1
10016  ac_status=$?
10017  grep -v '^ *+' conftest.er1 >conftest.err
10018  rm -f conftest.er1
10019  cat conftest.err >&5
10020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021  (exit $ac_status); } &&
10022	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10023  { (case "(($ac_try" in
10024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025  *) ac_try_echo=$ac_try;;
10026esac
10027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028  (eval "$ac_try") 2>&5
10029  ac_status=$?
10030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031  (exit $ac_status); }; } &&
10032	 { ac_try='test -s conftest$ac_exeext'
10033  { (case "(($ac_try" in
10034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035  *) ac_try_echo=$ac_try;;
10036esac
10037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038  (eval "$ac_try") 2>&5
10039  ac_status=$?
10040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041  (exit $ac_status); }; }; then
10042  ac_cv_func_shl_load=yes
10043else
10044  echo "$as_me: failed program was:" >&5
10045sed 's/^/| /' conftest.$ac_ext >&5
10046
10047	ac_cv_func_shl_load=no
10048fi
10049
10050rm -f core conftest.err conftest.$ac_objext \
10051      conftest$ac_exeext conftest.$ac_ext
10052fi
10053{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10054echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10055if test $ac_cv_func_shl_load = yes; then
10056  lt_cv_dlopen="shl_load"
10057else
10058  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10059echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10060if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10061  echo $ECHO_N "(cached) $ECHO_C" >&6
10062else
10063  ac_check_lib_save_LIBS=$LIBS
10064LIBS="-ldld  $LIBS"
10065cat >conftest.$ac_ext <<_ACEOF
10066/* confdefs.h.  */
10067_ACEOF
10068cat confdefs.h >>conftest.$ac_ext
10069cat >>conftest.$ac_ext <<_ACEOF
10070/* end confdefs.h.  */
10071
10072/* Override any GCC internal prototype to avoid an error.
10073   Use char because int might match the return type of a GCC
10074   builtin and then its argument prototype would still apply.  */
10075#ifdef __cplusplus
10076extern "C"
10077#endif
10078char shl_load ();
10079int
10080main ()
10081{
10082return shl_load ();
10083  ;
10084  return 0;
10085}
10086_ACEOF
10087rm -f conftest.$ac_objext conftest$ac_exeext
10088if { (ac_try="$ac_link"
10089case "(($ac_try" in
10090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091  *) ac_try_echo=$ac_try;;
10092esac
10093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094  (eval "$ac_link") 2>conftest.er1
10095  ac_status=$?
10096  grep -v '^ *+' conftest.er1 >conftest.err
10097  rm -f conftest.er1
10098  cat conftest.err >&5
10099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100  (exit $ac_status); } &&
10101	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10102  { (case "(($ac_try" in
10103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104  *) ac_try_echo=$ac_try;;
10105esac
10106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107  (eval "$ac_try") 2>&5
10108  ac_status=$?
10109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110  (exit $ac_status); }; } &&
10111	 { ac_try='test -s conftest$ac_exeext'
10112  { (case "(($ac_try" in
10113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114  *) ac_try_echo=$ac_try;;
10115esac
10116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117  (eval "$ac_try") 2>&5
10118  ac_status=$?
10119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120  (exit $ac_status); }; }; then
10121  ac_cv_lib_dld_shl_load=yes
10122else
10123  echo "$as_me: failed program was:" >&5
10124sed 's/^/| /' conftest.$ac_ext >&5
10125
10126	ac_cv_lib_dld_shl_load=no
10127fi
10128
10129rm -f core conftest.err conftest.$ac_objext \
10130      conftest$ac_exeext conftest.$ac_ext
10131LIBS=$ac_check_lib_save_LIBS
10132fi
10133{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10134echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10135if test $ac_cv_lib_dld_shl_load = yes; then
10136  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10137else
10138  { echo "$as_me:$LINENO: checking for dlopen" >&5
10139echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10140if test "${ac_cv_func_dlopen+set}" = set; then
10141  echo $ECHO_N "(cached) $ECHO_C" >&6
10142else
10143  cat >conftest.$ac_ext <<_ACEOF
10144/* confdefs.h.  */
10145_ACEOF
10146cat confdefs.h >>conftest.$ac_ext
10147cat >>conftest.$ac_ext <<_ACEOF
10148/* end confdefs.h.  */
10149/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10150   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10151#define dlopen innocuous_dlopen
10152
10153/* System header to define __stub macros and hopefully few prototypes,
10154    which can conflict with char dlopen (); below.
10155    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10156    <limits.h> exists even on freestanding compilers.  */
10157
10158#ifdef __STDC__
10159# include <limits.h>
10160#else
10161# include <assert.h>
10162#endif
10163
10164#undef dlopen
10165
10166/* Override any GCC internal prototype to avoid an error.
10167   Use char because int might match the return type of a GCC
10168   builtin and then its argument prototype would still apply.  */
10169#ifdef __cplusplus
10170extern "C"
10171#endif
10172char dlopen ();
10173/* The GNU C library defines this for functions which it implements
10174    to always fail with ENOSYS.  Some functions are actually named
10175    something starting with __ and the normal name is an alias.  */
10176#if defined __stub_dlopen || defined __stub___dlopen
10177choke me
10178#endif
10179
10180int
10181main ()
10182{
10183return dlopen ();
10184  ;
10185  return 0;
10186}
10187_ACEOF
10188rm -f conftest.$ac_objext conftest$ac_exeext
10189if { (ac_try="$ac_link"
10190case "(($ac_try" in
10191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192  *) ac_try_echo=$ac_try;;
10193esac
10194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195  (eval "$ac_link") 2>conftest.er1
10196  ac_status=$?
10197  grep -v '^ *+' conftest.er1 >conftest.err
10198  rm -f conftest.er1
10199  cat conftest.err >&5
10200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201  (exit $ac_status); } &&
10202	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10203  { (case "(($ac_try" in
10204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205  *) ac_try_echo=$ac_try;;
10206esac
10207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208  (eval "$ac_try") 2>&5
10209  ac_status=$?
10210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211  (exit $ac_status); }; } &&
10212	 { ac_try='test -s conftest$ac_exeext'
10213  { (case "(($ac_try" in
10214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215  *) ac_try_echo=$ac_try;;
10216esac
10217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218  (eval "$ac_try") 2>&5
10219  ac_status=$?
10220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221  (exit $ac_status); }; }; then
10222  ac_cv_func_dlopen=yes
10223else
10224  echo "$as_me: failed program was:" >&5
10225sed 's/^/| /' conftest.$ac_ext >&5
10226
10227	ac_cv_func_dlopen=no
10228fi
10229
10230rm -f core conftest.err conftest.$ac_objext \
10231      conftest$ac_exeext conftest.$ac_ext
10232fi
10233{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10234echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10235if test $ac_cv_func_dlopen = yes; then
10236  lt_cv_dlopen="dlopen"
10237else
10238  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10239echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10240if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10241  echo $ECHO_N "(cached) $ECHO_C" >&6
10242else
10243  ac_check_lib_save_LIBS=$LIBS
10244LIBS="-ldl  $LIBS"
10245cat >conftest.$ac_ext <<_ACEOF
10246/* confdefs.h.  */
10247_ACEOF
10248cat confdefs.h >>conftest.$ac_ext
10249cat >>conftest.$ac_ext <<_ACEOF
10250/* end confdefs.h.  */
10251
10252/* Override any GCC internal prototype to avoid an error.
10253   Use char because int might match the return type of a GCC
10254   builtin and then its argument prototype would still apply.  */
10255#ifdef __cplusplus
10256extern "C"
10257#endif
10258char dlopen ();
10259int
10260main ()
10261{
10262return dlopen ();
10263  ;
10264  return 0;
10265}
10266_ACEOF
10267rm -f conftest.$ac_objext conftest$ac_exeext
10268if { (ac_try="$ac_link"
10269case "(($ac_try" in
10270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271  *) ac_try_echo=$ac_try;;
10272esac
10273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10274  (eval "$ac_link") 2>conftest.er1
10275  ac_status=$?
10276  grep -v '^ *+' conftest.er1 >conftest.err
10277  rm -f conftest.er1
10278  cat conftest.err >&5
10279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280  (exit $ac_status); } &&
10281	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10282  { (case "(($ac_try" in
10283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284  *) ac_try_echo=$ac_try;;
10285esac
10286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287  (eval "$ac_try") 2>&5
10288  ac_status=$?
10289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290  (exit $ac_status); }; } &&
10291	 { ac_try='test -s conftest$ac_exeext'
10292  { (case "(($ac_try" in
10293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294  *) ac_try_echo=$ac_try;;
10295esac
10296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297  (eval "$ac_try") 2>&5
10298  ac_status=$?
10299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300  (exit $ac_status); }; }; then
10301  ac_cv_lib_dl_dlopen=yes
10302else
10303  echo "$as_me: failed program was:" >&5
10304sed 's/^/| /' conftest.$ac_ext >&5
10305
10306	ac_cv_lib_dl_dlopen=no
10307fi
10308
10309rm -f core conftest.err conftest.$ac_objext \
10310      conftest$ac_exeext conftest.$ac_ext
10311LIBS=$ac_check_lib_save_LIBS
10312fi
10313{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10314echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10315if test $ac_cv_lib_dl_dlopen = yes; then
10316  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10317else
10318  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10319echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10320if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10321  echo $ECHO_N "(cached) $ECHO_C" >&6
10322else
10323  ac_check_lib_save_LIBS=$LIBS
10324LIBS="-lsvld  $LIBS"
10325cat >conftest.$ac_ext <<_ACEOF
10326/* confdefs.h.  */
10327_ACEOF
10328cat confdefs.h >>conftest.$ac_ext
10329cat >>conftest.$ac_ext <<_ACEOF
10330/* end confdefs.h.  */
10331
10332/* Override any GCC internal prototype to avoid an error.
10333   Use char because int might match the return type of a GCC
10334   builtin and then its argument prototype would still apply.  */
10335#ifdef __cplusplus
10336extern "C"
10337#endif
10338char dlopen ();
10339int
10340main ()
10341{
10342return dlopen ();
10343  ;
10344  return 0;
10345}
10346_ACEOF
10347rm -f conftest.$ac_objext conftest$ac_exeext
10348if { (ac_try="$ac_link"
10349case "(($ac_try" in
10350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351  *) ac_try_echo=$ac_try;;
10352esac
10353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354  (eval "$ac_link") 2>conftest.er1
10355  ac_status=$?
10356  grep -v '^ *+' conftest.er1 >conftest.err
10357  rm -f conftest.er1
10358  cat conftest.err >&5
10359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360  (exit $ac_status); } &&
10361	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10362  { (case "(($ac_try" in
10363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364  *) ac_try_echo=$ac_try;;
10365esac
10366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10367  (eval "$ac_try") 2>&5
10368  ac_status=$?
10369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370  (exit $ac_status); }; } &&
10371	 { ac_try='test -s conftest$ac_exeext'
10372  { (case "(($ac_try" in
10373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374  *) ac_try_echo=$ac_try;;
10375esac
10376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10377  (eval "$ac_try") 2>&5
10378  ac_status=$?
10379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380  (exit $ac_status); }; }; then
10381  ac_cv_lib_svld_dlopen=yes
10382else
10383  echo "$as_me: failed program was:" >&5
10384sed 's/^/| /' conftest.$ac_ext >&5
10385
10386	ac_cv_lib_svld_dlopen=no
10387fi
10388
10389rm -f core conftest.err conftest.$ac_objext \
10390      conftest$ac_exeext conftest.$ac_ext
10391LIBS=$ac_check_lib_save_LIBS
10392fi
10393{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10394echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10395if test $ac_cv_lib_svld_dlopen = yes; then
10396  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10397else
10398  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10399echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10400if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10401  echo $ECHO_N "(cached) $ECHO_C" >&6
10402else
10403  ac_check_lib_save_LIBS=$LIBS
10404LIBS="-ldld  $LIBS"
10405cat >conftest.$ac_ext <<_ACEOF
10406/* confdefs.h.  */
10407_ACEOF
10408cat confdefs.h >>conftest.$ac_ext
10409cat >>conftest.$ac_ext <<_ACEOF
10410/* end confdefs.h.  */
10411
10412/* Override any GCC internal prototype to avoid an error.
10413   Use char because int might match the return type of a GCC
10414   builtin and then its argument prototype would still apply.  */
10415#ifdef __cplusplus
10416extern "C"
10417#endif
10418char dld_link ();
10419int
10420main ()
10421{
10422return dld_link ();
10423  ;
10424  return 0;
10425}
10426_ACEOF
10427rm -f conftest.$ac_objext conftest$ac_exeext
10428if { (ac_try="$ac_link"
10429case "(($ac_try" in
10430  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10431  *) ac_try_echo=$ac_try;;
10432esac
10433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10434  (eval "$ac_link") 2>conftest.er1
10435  ac_status=$?
10436  grep -v '^ *+' conftest.er1 >conftest.err
10437  rm -f conftest.er1
10438  cat conftest.err >&5
10439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440  (exit $ac_status); } &&
10441	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10442  { (case "(($ac_try" in
10443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444  *) ac_try_echo=$ac_try;;
10445esac
10446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10447  (eval "$ac_try") 2>&5
10448  ac_status=$?
10449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450  (exit $ac_status); }; } &&
10451	 { ac_try='test -s conftest$ac_exeext'
10452  { (case "(($ac_try" in
10453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454  *) ac_try_echo=$ac_try;;
10455esac
10456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457  (eval "$ac_try") 2>&5
10458  ac_status=$?
10459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460  (exit $ac_status); }; }; then
10461  ac_cv_lib_dld_dld_link=yes
10462else
10463  echo "$as_me: failed program was:" >&5
10464sed 's/^/| /' conftest.$ac_ext >&5
10465
10466	ac_cv_lib_dld_dld_link=no
10467fi
10468
10469rm -f core conftest.err conftest.$ac_objext \
10470      conftest$ac_exeext conftest.$ac_ext
10471LIBS=$ac_check_lib_save_LIBS
10472fi
10473{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10474echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10475if test $ac_cv_lib_dld_dld_link = yes; then
10476  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10477fi
10478
10479
10480fi
10481
10482
10483fi
10484
10485
10486fi
10487
10488
10489fi
10490
10491
10492fi
10493
10494    ;;
10495  esac
10496
10497  if test "x$lt_cv_dlopen" != xno; then
10498    enable_dlopen=yes
10499  else
10500    enable_dlopen=no
10501  fi
10502
10503  case $lt_cv_dlopen in
10504  dlopen)
10505    save_CPPFLAGS="$CPPFLAGS"
10506    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10507
10508    save_LDFLAGS="$LDFLAGS"
10509    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10510
10511    save_LIBS="$LIBS"
10512    LIBS="$lt_cv_dlopen_libs $LIBS"
10513
10514    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10515echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10516if test "${lt_cv_dlopen_self+set}" = set; then
10517  echo $ECHO_N "(cached) $ECHO_C" >&6
10518else
10519  	  if test "$cross_compiling" = yes; then :
10520  lt_cv_dlopen_self=cross
10521else
10522  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10523  lt_status=$lt_dlunknown
10524  cat > conftest.$ac_ext <<EOF
10525#line 10525 "configure"
10526#include "confdefs.h"
10527
10528#if HAVE_DLFCN_H
10529#include <dlfcn.h>
10530#endif
10531
10532#include <stdio.h>
10533
10534#ifdef RTLD_GLOBAL
10535#  define LT_DLGLOBAL		RTLD_GLOBAL
10536#else
10537#  ifdef DL_GLOBAL
10538#    define LT_DLGLOBAL		DL_GLOBAL
10539#  else
10540#    define LT_DLGLOBAL		0
10541#  endif
10542#endif
10543
10544/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10545   find out it does not work in some platform. */
10546#ifndef LT_DLLAZY_OR_NOW
10547#  ifdef RTLD_LAZY
10548#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10549#  else
10550#    ifdef DL_LAZY
10551#      define LT_DLLAZY_OR_NOW		DL_LAZY
10552#    else
10553#      ifdef RTLD_NOW
10554#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10555#      else
10556#        ifdef DL_NOW
10557#          define LT_DLLAZY_OR_NOW	DL_NOW
10558#        else
10559#          define LT_DLLAZY_OR_NOW	0
10560#        endif
10561#      endif
10562#    endif
10563#  endif
10564#endif
10565
10566#ifdef __cplusplus
10567extern "C" void exit (int);
10568#endif
10569
10570void fnord() { int i=42;}
10571int main ()
10572{
10573  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10574  int status = $lt_dlunknown;
10575
10576  if (self)
10577    {
10578      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10579      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10580      /* dlclose (self); */
10581    }
10582  else
10583    puts (dlerror ());
10584
10585    exit (status);
10586}
10587EOF
10588  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10589  (eval $ac_link) 2>&5
10590  ac_status=$?
10591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10593    (./conftest; exit; ) >&5 2>/dev/null
10594    lt_status=$?
10595    case x$lt_status in
10596      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10597      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10598      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10599    esac
10600  else :
10601    # compilation failed
10602    lt_cv_dlopen_self=no
10603  fi
10604fi
10605rm -fr conftest*
10606
10607
10608fi
10609{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10610echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10611
10612    if test "x$lt_cv_dlopen_self" = xyes; then
10613      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10614      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10615echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10616if test "${lt_cv_dlopen_self_static+set}" = set; then
10617  echo $ECHO_N "(cached) $ECHO_C" >&6
10618else
10619  	  if test "$cross_compiling" = yes; then :
10620  lt_cv_dlopen_self_static=cross
10621else
10622  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10623  lt_status=$lt_dlunknown
10624  cat > conftest.$ac_ext <<EOF
10625#line 10625 "configure"
10626#include "confdefs.h"
10627
10628#if HAVE_DLFCN_H
10629#include <dlfcn.h>
10630#endif
10631
10632#include <stdio.h>
10633
10634#ifdef RTLD_GLOBAL
10635#  define LT_DLGLOBAL		RTLD_GLOBAL
10636#else
10637#  ifdef DL_GLOBAL
10638#    define LT_DLGLOBAL		DL_GLOBAL
10639#  else
10640#    define LT_DLGLOBAL		0
10641#  endif
10642#endif
10643
10644/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10645   find out it does not work in some platform. */
10646#ifndef LT_DLLAZY_OR_NOW
10647#  ifdef RTLD_LAZY
10648#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10649#  else
10650#    ifdef DL_LAZY
10651#      define LT_DLLAZY_OR_NOW		DL_LAZY
10652#    else
10653#      ifdef RTLD_NOW
10654#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10655#      else
10656#        ifdef DL_NOW
10657#          define LT_DLLAZY_OR_NOW	DL_NOW
10658#        else
10659#          define LT_DLLAZY_OR_NOW	0
10660#        endif
10661#      endif
10662#    endif
10663#  endif
10664#endif
10665
10666#ifdef __cplusplus
10667extern "C" void exit (int);
10668#endif
10669
10670void fnord() { int i=42;}
10671int main ()
10672{
10673  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10674  int status = $lt_dlunknown;
10675
10676  if (self)
10677    {
10678      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10679      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10680      /* dlclose (self); */
10681    }
10682  else
10683    puts (dlerror ());
10684
10685    exit (status);
10686}
10687EOF
10688  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10689  (eval $ac_link) 2>&5
10690  ac_status=$?
10691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10693    (./conftest; exit; ) >&5 2>/dev/null
10694    lt_status=$?
10695    case x$lt_status in
10696      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10697      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10698      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10699    esac
10700  else :
10701    # compilation failed
10702    lt_cv_dlopen_self_static=no
10703  fi
10704fi
10705rm -fr conftest*
10706
10707
10708fi
10709{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10710echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10711    fi
10712
10713    CPPFLAGS="$save_CPPFLAGS"
10714    LDFLAGS="$save_LDFLAGS"
10715    LIBS="$save_LIBS"
10716    ;;
10717  esac
10718
10719  case $lt_cv_dlopen_self in
10720  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10721  *) enable_dlopen_self=unknown ;;
10722  esac
10723
10724  case $lt_cv_dlopen_self_static in
10725  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10726  *) enable_dlopen_self_static=unknown ;;
10727  esac
10728fi
10729
10730
10731# Report which library types will actually be built
10732{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10733echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10734{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10735echo "${ECHO_T}$can_build_shared" >&6; }
10736
10737{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10738echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10739test "$can_build_shared" = "no" && enable_shared=no
10740
10741# On AIX, shared libraries and static libraries use the same namespace, and
10742# are all built from PIC.
10743case $host_os in
10744aix3*)
10745  test "$enable_shared" = yes && enable_static=no
10746  if test -n "$RANLIB"; then
10747    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10748    postinstall_cmds='$RANLIB $lib'
10749  fi
10750  ;;
10751
10752aix4* | aix5*)
10753  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10754    test "$enable_shared" = yes && enable_static=no
10755  fi
10756    ;;
10757esac
10758{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10759echo "${ECHO_T}$enable_shared" >&6; }
10760
10761{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10762echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10763# Make sure either enable_shared or enable_static is yes.
10764test "$enable_shared" = yes || enable_static=yes
10765{ echo "$as_me:$LINENO: result: $enable_static" >&5
10766echo "${ECHO_T}$enable_static" >&6; }
10767
10768# The else clause should only fire when bootstrapping the
10769# libtool distribution, otherwise you forgot to ship ltmain.sh
10770# with your package, and you will get complaints that there are
10771# no rules to generate ltmain.sh.
10772if test -f "$ltmain"; then
10773  # See if we are running on zsh, and set the options which allow our commands through
10774  # without removal of \ escapes.
10775  if test -n "${ZSH_VERSION+set}" ; then
10776    setopt NO_GLOB_SUBST
10777  fi
10778  # Now quote all the things that may contain metacharacters while being
10779  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10780  # variables and quote the copies for generation of the libtool script.
10781  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10782    SED SHELL STRIP \
10783    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10784    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10785    deplibs_check_method reload_flag reload_cmds need_locks \
10786    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10787    lt_cv_sys_global_symbol_to_c_name_address \
10788    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10789    old_postinstall_cmds old_postuninstall_cmds \
10790    compiler \
10791    CC \
10792    LD \
10793    lt_prog_compiler_wl \
10794    lt_prog_compiler_pic \
10795    lt_prog_compiler_static \
10796    lt_prog_compiler_no_builtin_flag \
10797    export_dynamic_flag_spec \
10798    thread_safe_flag_spec \
10799    whole_archive_flag_spec \
10800    enable_shared_with_static_runtimes \
10801    old_archive_cmds \
10802    old_archive_from_new_cmds \
10803    predep_objects \
10804    postdep_objects \
10805    predeps \
10806    postdeps \
10807    compiler_lib_search_path \
10808    archive_cmds \
10809    archive_expsym_cmds \
10810    postinstall_cmds \
10811    postuninstall_cmds \
10812    old_archive_from_expsyms_cmds \
10813    allow_undefined_flag \
10814    no_undefined_flag \
10815    export_symbols_cmds \
10816    hardcode_libdir_flag_spec \
10817    hardcode_libdir_flag_spec_ld \
10818    hardcode_libdir_separator \
10819    hardcode_automatic \
10820    module_cmds \
10821    module_expsym_cmds \
10822    lt_cv_prog_compiler_c_o \
10823    exclude_expsyms \
10824    include_expsyms; do
10825
10826    case $var in
10827    old_archive_cmds | \
10828    old_archive_from_new_cmds | \
10829    archive_cmds | \
10830    archive_expsym_cmds | \
10831    module_cmds | \
10832    module_expsym_cmds | \
10833    old_archive_from_expsyms_cmds | \
10834    export_symbols_cmds | \
10835    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10836    postinstall_cmds | postuninstall_cmds | \
10837    old_postinstall_cmds | old_postuninstall_cmds | \
10838    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10839      # Double-quote double-evaled strings.
10840      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10841      ;;
10842    *)
10843      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10844      ;;
10845    esac
10846  done
10847
10848  case $lt_echo in
10849  *'\$0 --fallback-echo"')
10850    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10851    ;;
10852  esac
10853
10854cfgfile="${ofile}T"
10855  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10856  $rm -f "$cfgfile"
10857  { echo "$as_me:$LINENO: creating $ofile" >&5
10858echo "$as_me: creating $ofile" >&6;}
10859
10860  cat <<__EOF__ >> "$cfgfile"
10861#! $SHELL
10862
10863# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10864# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10865# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10866#
10867# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10868# Free Software Foundation, Inc.
10869#
10870# This file is part of GNU Libtool:
10871# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10872#
10873# This program is free software; you can redistribute it and/or modify
10874# it under the terms of the GNU General Public License as published by
10875# the Free Software Foundation; either version 2 of the License, or
10876# (at your option) any later version.
10877#
10878# This program is distributed in the hope that it will be useful, but
10879# WITHOUT ANY WARRANTY; without even the implied warranty of
10880# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10881# General Public License for more details.
10882#
10883# You should have received a copy of the GNU General Public License
10884# along with this program; if not, write to the Free Software
10885# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10886#
10887# As a special exception to the GNU General Public License, if you
10888# distribute this file as part of a program that contains a
10889# configuration script generated by Autoconf, you may include it under
10890# the same distribution terms that you use for the rest of that program.
10891
10892# A sed program that does not truncate output.
10893SED=$lt_SED
10894
10895# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10896Xsed="$SED -e 1s/^X//"
10897
10898# The HP-UX ksh and POSIX shell print the target directory to stdout
10899# if CDPATH is set.
10900(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10901
10902# The names of the tagged configurations supported by this script.
10903available_tags=
10904
10905# ### BEGIN LIBTOOL CONFIG
10906
10907# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10908
10909# Shell to use when invoking shell scripts.
10910SHELL=$lt_SHELL
10911
10912# Whether or not to build shared libraries.
10913build_libtool_libs=$enable_shared
10914
10915# Whether or not to build static libraries.
10916build_old_libs=$enable_static
10917
10918# Whether or not to add -lc for building shared libraries.
10919build_libtool_need_lc=$archive_cmds_need_lc
10920
10921# Whether or not to disallow shared libs when runtime libs are static
10922allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10923
10924# Whether or not to optimize for fast installation.
10925fast_install=$enable_fast_install
10926
10927# The host system.
10928host_alias=$host_alias
10929host=$host
10930host_os=$host_os
10931
10932# The build system.
10933build_alias=$build_alias
10934build=$build
10935build_os=$build_os
10936
10937# An echo program that does not interpret backslashes.
10938echo=$lt_echo
10939
10940# The archiver.
10941AR=$lt_AR
10942AR_FLAGS=$lt_AR_FLAGS
10943
10944# A C compiler.
10945LTCC=$lt_LTCC
10946
10947# LTCC compiler flags.
10948LTCFLAGS=$lt_LTCFLAGS
10949
10950# A language-specific compiler.
10951CC=$lt_compiler
10952
10953# Is the compiler the GNU C compiler?
10954with_gcc=$GCC
10955
10956# An ERE matcher.
10957EGREP=$lt_EGREP
10958
10959# The linker used to build libraries.
10960LD=$lt_LD
10961
10962# Whether we need hard or soft links.
10963LN_S=$lt_LN_S
10964
10965# A BSD-compatible nm program.
10966NM=$lt_NM
10967
10968# A symbol stripping program
10969STRIP=$lt_STRIP
10970
10971# Used to examine libraries when file_magic_cmd begins "file"
10972MAGIC_CMD=$MAGIC_CMD
10973
10974# Used on cygwin: DLL creation program.
10975DLLTOOL="$DLLTOOL"
10976
10977# Used on cygwin: object dumper.
10978OBJDUMP="$OBJDUMP"
10979
10980# Used on cygwin: assembler.
10981AS="$AS"
10982
10983# The name of the directory that contains temporary libtool files.
10984objdir=$objdir
10985
10986# How to create reloadable object files.
10987reload_flag=$lt_reload_flag
10988reload_cmds=$lt_reload_cmds
10989
10990# How to pass a linker flag through the compiler.
10991wl=$lt_lt_prog_compiler_wl
10992
10993# Object file suffix (normally "o").
10994objext="$ac_objext"
10995
10996# Old archive suffix (normally "a").
10997libext="$libext"
10998
10999# Shared library suffix (normally ".so").
11000shrext_cmds='$shrext_cmds'
11001
11002# Executable file suffix (normally "").
11003exeext="$exeext"
11004
11005# Additional compiler flags for building library objects.
11006pic_flag=$lt_lt_prog_compiler_pic
11007pic_mode=$pic_mode
11008
11009# What is the maximum length of a command?
11010max_cmd_len=$lt_cv_sys_max_cmd_len
11011
11012# Does compiler simultaneously support -c and -o options?
11013compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11014
11015# Must we lock files when doing compilation?
11016need_locks=$lt_need_locks
11017
11018# Do we need the lib prefix for modules?
11019need_lib_prefix=$need_lib_prefix
11020
11021# Do we need a version for libraries?
11022need_version=$need_version
11023
11024# Whether dlopen is supported.
11025dlopen_support=$enable_dlopen
11026
11027# Whether dlopen of programs is supported.
11028dlopen_self=$enable_dlopen_self
11029
11030# Whether dlopen of statically linked programs is supported.
11031dlopen_self_static=$enable_dlopen_self_static
11032
11033# Compiler flag to prevent dynamic linking.
11034link_static_flag=$lt_lt_prog_compiler_static
11035
11036# Compiler flag to turn off builtin functions.
11037no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11038
11039# Compiler flag to allow reflexive dlopens.
11040export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11041
11042# Compiler flag to generate shared objects directly from archives.
11043whole_archive_flag_spec=$lt_whole_archive_flag_spec
11044
11045# Compiler flag to generate thread-safe objects.
11046thread_safe_flag_spec=$lt_thread_safe_flag_spec
11047
11048# Library versioning type.
11049version_type=$version_type
11050
11051# Format of library name prefix.
11052libname_spec=$lt_libname_spec
11053
11054# List of archive names.  First name is the real one, the rest are links.
11055# The last name is the one that the linker finds with -lNAME.
11056library_names_spec=$lt_library_names_spec
11057
11058# The coded name of the library, if different from the real name.
11059soname_spec=$lt_soname_spec
11060
11061# Commands used to build and install an old-style archive.
11062RANLIB=$lt_RANLIB
11063old_archive_cmds=$lt_old_archive_cmds
11064old_postinstall_cmds=$lt_old_postinstall_cmds
11065old_postuninstall_cmds=$lt_old_postuninstall_cmds
11066
11067# Create an old-style archive from a shared archive.
11068old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11069
11070# Create a temporary old-style archive to link instead of a shared archive.
11071old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11072
11073# Commands used to build and install a shared archive.
11074archive_cmds=$lt_archive_cmds
11075archive_expsym_cmds=$lt_archive_expsym_cmds
11076postinstall_cmds=$lt_postinstall_cmds
11077postuninstall_cmds=$lt_postuninstall_cmds
11078
11079# Commands used to build a loadable module (assumed same as above if empty)
11080module_cmds=$lt_module_cmds
11081module_expsym_cmds=$lt_module_expsym_cmds
11082
11083# Commands to strip libraries.
11084old_striplib=$lt_old_striplib
11085striplib=$lt_striplib
11086
11087# Dependencies to place before the objects being linked to create a
11088# shared library.
11089predep_objects=$lt_predep_objects
11090
11091# Dependencies to place after the objects being linked to create a
11092# shared library.
11093postdep_objects=$lt_postdep_objects
11094
11095# Dependencies to place before the objects being linked to create a
11096# shared library.
11097predeps=$lt_predeps
11098
11099# Dependencies to place after the objects being linked to create a
11100# shared library.
11101postdeps=$lt_postdeps
11102
11103# The library search path used internally by the compiler when linking
11104# a shared library.
11105compiler_lib_search_path=$lt_compiler_lib_search_path
11106
11107# Method to check whether dependent libraries are shared objects.
11108deplibs_check_method=$lt_deplibs_check_method
11109
11110# Command to use when deplibs_check_method == file_magic.
11111file_magic_cmd=$lt_file_magic_cmd
11112
11113# Flag that allows shared libraries with undefined symbols to be built.
11114allow_undefined_flag=$lt_allow_undefined_flag
11115
11116# Flag that forces no undefined symbols.
11117no_undefined_flag=$lt_no_undefined_flag
11118
11119# Commands used to finish a libtool library installation in a directory.
11120finish_cmds=$lt_finish_cmds
11121
11122# Same as above, but a single script fragment to be evaled but not shown.
11123finish_eval=$lt_finish_eval
11124
11125# Take the output of nm and produce a listing of raw symbols and C names.
11126global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11127
11128# Transform the output of nm in a proper C declaration
11129global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11130
11131# Transform the output of nm in a C name address pair
11132global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11133
11134# This is the shared library runtime path variable.
11135runpath_var=$runpath_var
11136
11137# This is the shared library path variable.
11138shlibpath_var=$shlibpath_var
11139
11140# Is shlibpath searched before the hard-coded library search path?
11141shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11142
11143# How to hardcode a shared library path into an executable.
11144hardcode_action=$hardcode_action
11145
11146# Whether we should hardcode library paths into libraries.
11147hardcode_into_libs=$hardcode_into_libs
11148
11149# Flag to hardcode \$libdir into a binary during linking.
11150# This must work even if \$libdir does not exist.
11151hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11152
11153# If ld is used when linking, flag to hardcode \$libdir into
11154# a binary during linking. This must work even if \$libdir does
11155# not exist.
11156hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11157
11158# Whether we need a single -rpath flag with a separated argument.
11159hardcode_libdir_separator=$lt_hardcode_libdir_separator
11160
11161# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11162# resulting binary.
11163hardcode_direct=$hardcode_direct
11164
11165# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11166# resulting binary.
11167hardcode_minus_L=$hardcode_minus_L
11168
11169# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11170# the resulting binary.
11171hardcode_shlibpath_var=$hardcode_shlibpath_var
11172
11173# Set to yes if building a shared library automatically hardcodes DIR into the library
11174# and all subsequent libraries and executables linked against it.
11175hardcode_automatic=$hardcode_automatic
11176
11177# Variables whose values should be saved in libtool wrapper scripts and
11178# restored at relink time.
11179variables_saved_for_relink="$variables_saved_for_relink"
11180
11181# Whether libtool must link a program against all its dependency libraries.
11182link_all_deplibs=$link_all_deplibs
11183
11184# Compile-time system search path for libraries
11185sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11186
11187# Run-time system search path for libraries
11188sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11189
11190# Fix the shell variable \$srcfile for the compiler.
11191fix_srcfile_path="$fix_srcfile_path"
11192
11193# Set to yes if exported symbols are required.
11194always_export_symbols=$always_export_symbols
11195
11196# The commands to list exported symbols.
11197export_symbols_cmds=$lt_export_symbols_cmds
11198
11199# The commands to extract the exported symbol list from a shared archive.
11200extract_expsyms_cmds=$lt_extract_expsyms_cmds
11201
11202# Symbols that should not be listed in the preloaded symbols.
11203exclude_expsyms=$lt_exclude_expsyms
11204
11205# Symbols that must always be exported.
11206include_expsyms=$lt_include_expsyms
11207
11208# ### END LIBTOOL CONFIG
11209
11210__EOF__
11211
11212
11213  case $host_os in
11214  aix3*)
11215    cat <<\EOF >> "$cfgfile"
11216
11217# AIX sometimes has problems with the GCC collect2 program.  For some
11218# reason, if we set the COLLECT_NAMES environment variable, the problems
11219# vanish in a puff of smoke.
11220if test "X${COLLECT_NAMES+set}" != Xset; then
11221  COLLECT_NAMES=
11222  export COLLECT_NAMES
11223fi
11224EOF
11225    ;;
11226  esac
11227
11228  # We use sed instead of cat because bash on DJGPP gets confused if
11229  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11230  # text mode, it properly converts lines to CR/LF.  This bash problem
11231  # is reportedly fixed, but why not run on old versions too?
11232  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11233
11234  mv -f "$cfgfile" "$ofile" || \
11235    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11236  chmod +x "$ofile"
11237
11238else
11239  # If there is no Makefile yet, we rely on a make rule to execute
11240  # `config.status --recheck' to rerun these tests and create the
11241  # libtool script then.
11242  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11243  if test -f "$ltmain_in"; then
11244    test -f Makefile && make "$ltmain"
11245  fi
11246fi
11247
11248
11249ac_ext=c
11250ac_cpp='$CPP $CPPFLAGS'
11251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11253ac_compiler_gnu=$ac_cv_c_compiler_gnu
11254
11255CC="$lt_save_CC"
11256
11257
11258# Check whether --with-tags was given.
11259if test "${with_tags+set}" = set; then
11260  withval=$with_tags; tagnames="$withval"
11261fi
11262
11263
11264if test -f "$ltmain" && test -n "$tagnames"; then
11265  if test ! -f "${ofile}"; then
11266    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11267echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11268  fi
11269
11270  if test -z "$LTCC"; then
11271    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11272    if test -z "$LTCC"; then
11273      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11274echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11275    else
11276      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11277echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11278    fi
11279  fi
11280  if test -z "$LTCFLAGS"; then
11281    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11282  fi
11283
11284  # Extract list of available tagged configurations in $ofile.
11285  # Note that this assumes the entire list is on one line.
11286  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11287
11288  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11289  for tagname in $tagnames; do
11290    IFS="$lt_save_ifs"
11291    # Check whether tagname contains only valid characters
11292    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11293    "") ;;
11294    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11295echo "$as_me: error: invalid tag name: $tagname" >&2;}
11296   { (exit 1); exit 1; }; }
11297	;;
11298    esac
11299
11300    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11301    then
11302      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11303echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11304   { (exit 1); exit 1; }; }
11305    fi
11306
11307    # Update the list of available tags.
11308    if test -n "$tagname"; then
11309      echo appending configuration tag \"$tagname\" to $ofile
11310
11311      case $tagname in
11312      CXX)
11313	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11314	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11315	    (test "X$CXX" != "Xg++"))) ; then
11316	  ac_ext=cpp
11317ac_cpp='$CXXCPP $CPPFLAGS'
11318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11321
11322
11323
11324
11325archive_cmds_need_lc_CXX=no
11326allow_undefined_flag_CXX=
11327always_export_symbols_CXX=no
11328archive_expsym_cmds_CXX=
11329export_dynamic_flag_spec_CXX=
11330hardcode_direct_CXX=no
11331hardcode_libdir_flag_spec_CXX=
11332hardcode_libdir_flag_spec_ld_CXX=
11333hardcode_libdir_separator_CXX=
11334hardcode_minus_L_CXX=no
11335hardcode_shlibpath_var_CXX=unsupported
11336hardcode_automatic_CXX=no
11337module_cmds_CXX=
11338module_expsym_cmds_CXX=
11339link_all_deplibs_CXX=unknown
11340old_archive_cmds_CXX=$old_archive_cmds
11341no_undefined_flag_CXX=
11342whole_archive_flag_spec_CXX=
11343enable_shared_with_static_runtimes_CXX=no
11344
11345# Dependencies to place before and after the object being linked:
11346predep_objects_CXX=
11347postdep_objects_CXX=
11348predeps_CXX=
11349postdeps_CXX=
11350compiler_lib_search_path_CXX=
11351
11352# Source file extension for C++ test sources.
11353ac_ext=cpp
11354
11355# Object file extension for compiled C++ test sources.
11356objext=o
11357objext_CXX=$objext
11358
11359# Code to be used in simple compile tests
11360lt_simple_compile_test_code="int some_variable = 0;\n"
11361
11362# Code to be used in simple link tests
11363lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11364
11365# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11366
11367# If no C compiler was specified, use CC.
11368LTCC=${LTCC-"$CC"}
11369
11370# If no C compiler flags were specified, use CFLAGS.
11371LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11372
11373# Allow CC to be a program name with arguments.
11374compiler=$CC
11375
11376
11377# save warnings/boilerplate of simple test code
11378ac_outfile=conftest.$ac_objext
11379printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11380eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11381_lt_compiler_boilerplate=`cat conftest.err`
11382$rm conftest*
11383
11384ac_outfile=conftest.$ac_objext
11385printf "$lt_simple_link_test_code" >conftest.$ac_ext
11386eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11387_lt_linker_boilerplate=`cat conftest.err`
11388$rm conftest*
11389
11390
11391# Allow CC to be a program name with arguments.
11392lt_save_CC=$CC
11393lt_save_LD=$LD
11394lt_save_GCC=$GCC
11395GCC=$GXX
11396lt_save_with_gnu_ld=$with_gnu_ld
11397lt_save_path_LD=$lt_cv_path_LD
11398if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11399  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11400else
11401  $as_unset lt_cv_prog_gnu_ld
11402fi
11403if test -n "${lt_cv_path_LDCXX+set}"; then
11404  lt_cv_path_LD=$lt_cv_path_LDCXX
11405else
11406  $as_unset lt_cv_path_LD
11407fi
11408test -z "${LDCXX+set}" || LD=$LDCXX
11409CC=${CXX-"c++"}
11410compiler=$CC
11411compiler_CXX=$CC
11412for cc_temp in $compiler""; do
11413  case $cc_temp in
11414    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11415    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11416    \-*) ;;
11417    *) break;;
11418  esac
11419done
11420cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11421
11422
11423# We don't want -fno-exception wen compiling C++ code, so set the
11424# no_builtin_flag separately
11425if test "$GXX" = yes; then
11426  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11427else
11428  lt_prog_compiler_no_builtin_flag_CXX=
11429fi
11430
11431if test "$GXX" = yes; then
11432  # Set up default GNU C++ configuration
11433
11434
11435# Check whether --with-gnu-ld was given.
11436if test "${with_gnu_ld+set}" = set; then
11437  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11438else
11439  with_gnu_ld=no
11440fi
11441
11442ac_prog=ld
11443if test "$GCC" = yes; then
11444  # Check if gcc -print-prog-name=ld gives a path.
11445  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11446echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11447  case $host in
11448  *-*-mingw*)
11449    # gcc leaves a trailing carriage return which upsets mingw
11450    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11451  *)
11452    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11453  esac
11454  case $ac_prog in
11455    # Accept absolute paths.
11456    [\\/]* | ?:[\\/]*)
11457      re_direlt='/[^/][^/]*/\.\./'
11458      # Canonicalize the pathname of ld
11459      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11460      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11461	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11462      done
11463      test -z "$LD" && LD="$ac_prog"
11464      ;;
11465  "")
11466    # If it fails, then pretend we aren't using GCC.
11467    ac_prog=ld
11468    ;;
11469  *)
11470    # If it is relative, then search for the first ld in PATH.
11471    with_gnu_ld=unknown
11472    ;;
11473  esac
11474elif test "$with_gnu_ld" = yes; then
11475  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11476echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11477else
11478  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11479echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11480fi
11481if test "${lt_cv_path_LD+set}" = set; then
11482  echo $ECHO_N "(cached) $ECHO_C" >&6
11483else
11484  if test -z "$LD"; then
11485  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11486  for ac_dir in $PATH; do
11487    IFS="$lt_save_ifs"
11488    test -z "$ac_dir" && ac_dir=.
11489    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11490      lt_cv_path_LD="$ac_dir/$ac_prog"
11491      # Check to see if the program is GNU ld.  I'd rather use --version,
11492      # but apparently some variants of GNU ld only accept -v.
11493      # Break only if it was the GNU/non-GNU ld that we prefer.
11494      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11495      *GNU* | *'with BFD'*)
11496	test "$with_gnu_ld" != no && break
11497	;;
11498      *)
11499	test "$with_gnu_ld" != yes && break
11500	;;
11501      esac
11502    fi
11503  done
11504  IFS="$lt_save_ifs"
11505else
11506  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11507fi
11508fi
11509
11510LD="$lt_cv_path_LD"
11511if test -n "$LD"; then
11512  { echo "$as_me:$LINENO: result: $LD" >&5
11513echo "${ECHO_T}$LD" >&6; }
11514else
11515  { echo "$as_me:$LINENO: result: no" >&5
11516echo "${ECHO_T}no" >&6; }
11517fi
11518test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11519echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11520   { (exit 1); exit 1; }; }
11521{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11522echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11523if test "${lt_cv_prog_gnu_ld+set}" = set; then
11524  echo $ECHO_N "(cached) $ECHO_C" >&6
11525else
11526  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11527case `$LD -v 2>&1 </dev/null` in
11528*GNU* | *'with BFD'*)
11529  lt_cv_prog_gnu_ld=yes
11530  ;;
11531*)
11532  lt_cv_prog_gnu_ld=no
11533  ;;
11534esac
11535fi
11536{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11537echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11538with_gnu_ld=$lt_cv_prog_gnu_ld
11539
11540
11541
11542  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11543  # archiving commands below assume that GNU ld is being used.
11544  if test "$with_gnu_ld" = yes; then
11545    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11546    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'
11547
11548    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11549    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11550
11551    # If archive_cmds runs LD, not CC, wlarc should be empty
11552    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11553    #     investigate it a little bit more. (MM)
11554    wlarc='${wl}'
11555
11556    # ancient GNU ld didn't support --whole-archive et. al.
11557    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11558	grep 'no-whole-archive' > /dev/null; then
11559      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11560    else
11561      whole_archive_flag_spec_CXX=
11562    fi
11563  else
11564    with_gnu_ld=no
11565    wlarc=
11566
11567    # A generic and very simple default shared library creation
11568    # command for GNU C++ for the case where it uses the native
11569    # linker, instead of GNU ld.  If possible, this setting should
11570    # overridden to take advantage of the native linker features on
11571    # the platform it is being used on.
11572    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11573  fi
11574
11575  # Commands to make compiler produce verbose output that lists
11576  # what "hidden" libraries, object files and flags are used when
11577  # linking a shared library.
11578  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11579
11580else
11581  GXX=no
11582  with_gnu_ld=no
11583  wlarc=
11584fi
11585
11586# PORTME: fill in a description of your system's C++ link characteristics
11587{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11588echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11589ld_shlibs_CXX=yes
11590case $host_os in
11591  aix3*)
11592    # FIXME: insert proper C++ library support
11593    ld_shlibs_CXX=no
11594    ;;
11595  aix4* | aix5*)
11596    if test "$host_cpu" = ia64; then
11597      # On IA64, the linker does run time linking by default, so we don't
11598      # have to do anything special.
11599      aix_use_runtimelinking=no
11600      exp_sym_flag='-Bexport'
11601      no_entry_flag=""
11602    else
11603      aix_use_runtimelinking=no
11604
11605      # Test if we are trying to use run time linking or normal
11606      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11607      # need to do runtime linking.
11608      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11609	for ld_flag in $LDFLAGS; do
11610	  case $ld_flag in
11611	  *-brtl*)
11612	    aix_use_runtimelinking=yes
11613	    break
11614	    ;;
11615	  esac
11616	done
11617	;;
11618      esac
11619
11620      exp_sym_flag='-bexport'
11621      no_entry_flag='-bnoentry'
11622    fi
11623
11624    # When large executables or shared objects are built, AIX ld can
11625    # have problems creating the table of contents.  If linking a library
11626    # or program results in "error TOC overflow" add -mminimal-toc to
11627    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11628    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11629
11630    archive_cmds_CXX=''
11631    hardcode_direct_CXX=yes
11632    hardcode_libdir_separator_CXX=':'
11633    link_all_deplibs_CXX=yes
11634
11635    if test "$GXX" = yes; then
11636      case $host_os in aix4.[012]|aix4.[012].*)
11637      # We only want to do this on AIX 4.2 and lower, the check
11638      # below for broken collect2 doesn't work under 4.3+
11639	collect2name=`${CC} -print-prog-name=collect2`
11640	if test -f "$collect2name" && \
11641	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11642	then
11643	  # We have reworked collect2
11644	  hardcode_direct_CXX=yes
11645	else
11646	  # We have old collect2
11647	  hardcode_direct_CXX=unsupported
11648	  # It fails to find uninstalled libraries when the uninstalled
11649	  # path is not listed in the libpath.  Setting hardcode_minus_L
11650	  # to unsupported forces relinking
11651	  hardcode_minus_L_CXX=yes
11652	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11653	  hardcode_libdir_separator_CXX=
11654	fi
11655	;;
11656      esac
11657      shared_flag='-shared'
11658      if test "$aix_use_runtimelinking" = yes; then
11659	shared_flag="$shared_flag "'${wl}-G'
11660      fi
11661    else
11662      # not using gcc
11663      if test "$host_cpu" = ia64; then
11664	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11665	# chokes on -Wl,-G. The following line is correct:
11666	shared_flag='-G'
11667      else
11668	if test "$aix_use_runtimelinking" = yes; then
11669	  shared_flag='${wl}-G'
11670	else
11671	  shared_flag='${wl}-bM:SRE'
11672	fi
11673      fi
11674    fi
11675
11676    # It seems that -bexpall does not export symbols beginning with
11677    # underscore (_), so it is better to generate a list of symbols to export.
11678    always_export_symbols_CXX=yes
11679    if test "$aix_use_runtimelinking" = yes; then
11680      # Warning - without using the other runtime loading flags (-brtl),
11681      # -berok will link without error, but may produce a broken library.
11682      allow_undefined_flag_CXX='-berok'
11683      # Determine the default libpath from the value encoded in an empty executable.
11684      cat >conftest.$ac_ext <<_ACEOF
11685/* confdefs.h.  */
11686_ACEOF
11687cat confdefs.h >>conftest.$ac_ext
11688cat >>conftest.$ac_ext <<_ACEOF
11689/* end confdefs.h.  */
11690
11691int
11692main ()
11693{
11694
11695  ;
11696  return 0;
11697}
11698_ACEOF
11699rm -f conftest.$ac_objext conftest$ac_exeext
11700if { (ac_try="$ac_link"
11701case "(($ac_try" in
11702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703  *) ac_try_echo=$ac_try;;
11704esac
11705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706  (eval "$ac_link") 2>conftest.er1
11707  ac_status=$?
11708  grep -v '^ *+' conftest.er1 >conftest.err
11709  rm -f conftest.er1
11710  cat conftest.err >&5
11711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712  (exit $ac_status); } &&
11713	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11714  { (case "(($ac_try" in
11715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716  *) ac_try_echo=$ac_try;;
11717esac
11718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719  (eval "$ac_try") 2>&5
11720  ac_status=$?
11721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722  (exit $ac_status); }; } &&
11723	 { ac_try='test -s conftest$ac_exeext'
11724  { (case "(($ac_try" in
11725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726  *) ac_try_echo=$ac_try;;
11727esac
11728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729  (eval "$ac_try") 2>&5
11730  ac_status=$?
11731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732  (exit $ac_status); }; }; then
11733
11734aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11735}'`
11736# Check for a 64-bit object if we didn't find anything.
11737if 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; }
11738}'`; fi
11739else
11740  echo "$as_me: failed program was:" >&5
11741sed 's/^/| /' conftest.$ac_ext >&5
11742
11743
11744fi
11745
11746rm -f core conftest.err conftest.$ac_objext \
11747      conftest$ac_exeext conftest.$ac_ext
11748if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11749
11750      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11751
11752      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"
11753     else
11754      if test "$host_cpu" = ia64; then
11755	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11756	allow_undefined_flag_CXX="-z nodefs"
11757	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"
11758      else
11759	# Determine the default libpath from the value encoded in an empty executable.
11760	cat >conftest.$ac_ext <<_ACEOF
11761/* confdefs.h.  */
11762_ACEOF
11763cat confdefs.h >>conftest.$ac_ext
11764cat >>conftest.$ac_ext <<_ACEOF
11765/* end confdefs.h.  */
11766
11767int
11768main ()
11769{
11770
11771  ;
11772  return 0;
11773}
11774_ACEOF
11775rm -f conftest.$ac_objext conftest$ac_exeext
11776if { (ac_try="$ac_link"
11777case "(($ac_try" in
11778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779  *) ac_try_echo=$ac_try;;
11780esac
11781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782  (eval "$ac_link") 2>conftest.er1
11783  ac_status=$?
11784  grep -v '^ *+' conftest.er1 >conftest.err
11785  rm -f conftest.er1
11786  cat conftest.err >&5
11787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788  (exit $ac_status); } &&
11789	 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11790  { (case "(($ac_try" in
11791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792  *) ac_try_echo=$ac_try;;
11793esac
11794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795  (eval "$ac_try") 2>&5
11796  ac_status=$?
11797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798  (exit $ac_status); }; } &&
11799	 { ac_try='test -s conftest$ac_exeext'
11800  { (case "(($ac_try" in
11801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802  *) ac_try_echo=$ac_try;;
11803esac
11804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805  (eval "$ac_try") 2>&5
11806  ac_status=$?
11807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808  (exit $ac_status); }; }; then
11809
11810aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11811}'`
11812# Check for a 64-bit object if we didn't find anything.
11813if 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; }
11814}'`; fi
11815else
11816  echo "$as_me: failed program was:" >&5
11817sed 's/^/| /' conftest.$ac_ext >&5
11818
11819
11820fi
11821
11822rm -f core conftest.err conftest.$ac_objext \
11823      conftest$ac_exeext conftest.$ac_ext
11824if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11825
11826	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11827	# Warning - without using the other run time loading flags,
11828	# -berok will link without error, but may produce a broken library.
11829	no_undefined_flag_CXX=' ${wl}-bernotok'
11830	allow_undefined_flag_CXX=' ${wl}-berok'
11831	# Exported symbols can be pulled into shared objects from archives
11832	whole_archive_flag_spec_CXX='$convenience'
11833	archive_cmds_need_lc_CXX=yes
11834	# This is similar to how AIX traditionally builds its shared libraries.
11835	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'
11836      fi
11837    fi
11838    ;;
11839
11840  beos*)
11841    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11842      allow_undefined_flag_CXX=unsupported
11843      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11844      # support --undefined.  This deserves some investigation.  FIXME
11845      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11846    else
11847      ld_shlibs_CXX=no
11848    fi
11849    ;;
11850
11851  chorus*)
11852    case $cc_basename in
11853      *)
11854	# FIXME: insert proper C++ library support
11855	ld_shlibs_CXX=no
11856	;;
11857    esac
11858    ;;
11859
11860  cygwin* | mingw* | pw32*)
11861    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11862    # as there is no search path for DLLs.
11863    hardcode_libdir_flag_spec_CXX='-L$libdir'
11864    allow_undefined_flag_CXX=unsupported
11865    always_export_symbols_CXX=no
11866    enable_shared_with_static_runtimes_CXX=yes
11867
11868    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11869      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'
11870      # If the export-symbols file already is a .def file (1st line
11871      # is EXPORTS), use it as is; otherwise, prepend...
11872      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11873	cp $export_symbols $output_objdir/$soname.def;
11874      else
11875	echo EXPORTS > $output_objdir/$soname.def;
11876	cat $export_symbols >> $output_objdir/$soname.def;
11877      fi~
11878      $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'
11879    else
11880      ld_shlibs_CXX=no
11881    fi
11882  ;;
11883      darwin* | rhapsody*)
11884        case $host_os in
11885        rhapsody* | darwin1.[012])
11886         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11887         ;;
11888       *) # Darwin 1.3 on
11889         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11890           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11891         else
11892           case ${MACOSX_DEPLOYMENT_TARGET} in
11893             10.[012])
11894               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11895               ;;
11896             10.*)
11897               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11898               ;;
11899           esac
11900         fi
11901         ;;
11902        esac
11903      archive_cmds_need_lc_CXX=no
11904      hardcode_direct_CXX=no
11905      hardcode_automatic_CXX=yes
11906      hardcode_shlibpath_var_CXX=unsupported
11907      whole_archive_flag_spec_CXX=''
11908      link_all_deplibs_CXX=yes
11909
11910    if test "$GXX" = yes ; then
11911      lt_int_apple_cc_single_mod=no
11912      output_verbose_link_cmd='echo'
11913      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11914       lt_int_apple_cc_single_mod=yes
11915      fi
11916      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11917       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11918      else
11919          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'
11920        fi
11921        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11922        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11923          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11924            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}'
11925          else
11926            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}'
11927          fi
11928            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}'
11929      else
11930      case $cc_basename in
11931        xlc*)
11932         output_verbose_link_cmd='echo'
11933          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'
11934          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11935          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11936          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}'
11937          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}'
11938          ;;
11939       *)
11940         ld_shlibs_CXX=no
11941          ;;
11942      esac
11943      fi
11944        ;;
11945
11946  dgux*)
11947    case $cc_basename in
11948      ec++*)
11949	# FIXME: insert proper C++ library support
11950	ld_shlibs_CXX=no
11951	;;
11952      ghcx*)
11953	# Green Hills C++ Compiler
11954	# FIXME: insert proper C++ library support
11955	ld_shlibs_CXX=no
11956	;;
11957      *)
11958	# FIXME: insert proper C++ library support
11959	ld_shlibs_CXX=no
11960	;;
11961    esac
11962    ;;
11963  freebsd[12]*)
11964    # C++ shared libraries reported to be fairly broken before switch to ELF
11965    ld_shlibs_CXX=no
11966    ;;
11967  freebsd-elf*)
11968    archive_cmds_need_lc_CXX=no
11969    ;;
11970  freebsd* | dragonfly*)
11971    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11972    # conventions
11973    ld_shlibs_CXX=yes
11974    ;;
11975  gnu*)
11976    ;;
11977  hpux9*)
11978    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11979    hardcode_libdir_separator_CXX=:
11980    export_dynamic_flag_spec_CXX='${wl}-E'
11981    hardcode_direct_CXX=yes
11982    hardcode_minus_L_CXX=yes # Not in the search PATH,
11983				# but as the default
11984				# location of the library.
11985
11986    case $cc_basename in
11987    CC*)
11988      # FIXME: insert proper C++ library support
11989      ld_shlibs_CXX=no
11990      ;;
11991    aCC*)
11992      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'
11993      # Commands to make compiler produce verbose output that lists
11994      # what "hidden" libraries, object files and flags are used when
11995      # linking a shared library.
11996      #
11997      # There doesn't appear to be a way to prevent this compiler from
11998      # explicitly linking system object files so we need to strip them
11999      # from the output so that they don't get included in the library
12000      # dependencies.
12001      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'
12002      ;;
12003    *)
12004      if test "$GXX" = yes; then
12005        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'
12006      else
12007        # FIXME: insert proper C++ library support
12008        ld_shlibs_CXX=no
12009      fi
12010      ;;
12011    esac
12012    ;;
12013  hpux10*|hpux11*)
12014    if test $with_gnu_ld = no; then
12015      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12016      hardcode_libdir_separator_CXX=:
12017
12018      case $host_cpu in
12019      hppa*64*|ia64*)
12020	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12021        ;;
12022      *)
12023	export_dynamic_flag_spec_CXX='${wl}-E'
12024        ;;
12025      esac
12026    fi
12027    case $host_cpu in
12028    hppa*64*|ia64*)
12029      hardcode_direct_CXX=no
12030      hardcode_shlibpath_var_CXX=no
12031      ;;
12032    *)
12033      hardcode_direct_CXX=yes
12034      hardcode_minus_L_CXX=yes # Not in the search PATH,
12035					      # but as the default
12036					      # location of the library.
12037      ;;
12038    esac
12039
12040    case $cc_basename in
12041      CC*)
12042	# FIXME: insert proper C++ library support
12043	ld_shlibs_CXX=no
12044	;;
12045      aCC*)
12046	case $host_cpu in
12047	hppa*64*)
12048	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12049	  ;;
12050	ia64*)
12051	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12052	  ;;
12053	*)
12054	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12055	  ;;
12056	esac
12057	# Commands to make compiler produce verbose output that lists
12058	# what "hidden" libraries, object files and flags are used when
12059	# linking a shared library.
12060	#
12061	# There doesn't appear to be a way to prevent this compiler from
12062	# explicitly linking system object files so we need to strip them
12063	# from the output so that they don't get included in the library
12064	# dependencies.
12065	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'
12066	;;
12067      *)
12068	if test "$GXX" = yes; then
12069	  if test $with_gnu_ld = no; then
12070	    case $host_cpu in
12071	    hppa*64*)
12072	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12073	      ;;
12074	    ia64*)
12075	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12076	      ;;
12077	    *)
12078	      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'
12079	      ;;
12080	    esac
12081	  fi
12082	else
12083	  # FIXME: insert proper C++ library support
12084	  ld_shlibs_CXX=no
12085	fi
12086	;;
12087    esac
12088    ;;
12089  interix3*)
12090    hardcode_direct_CXX=no
12091    hardcode_shlibpath_var_CXX=no
12092    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12093    export_dynamic_flag_spec_CXX='${wl}-E'
12094    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12095    # Instead, shared libraries are loaded at an image base (0x10000000 by
12096    # default) and relocated if they conflict, which is a slow very memory
12097    # consuming and fragmenting process.  To avoid this, we pick a random,
12098    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12099    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12100    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'
12101    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'
12102    ;;
12103  irix5* | irix6*)
12104    case $cc_basename in
12105      CC*)
12106	# SGI C++
12107	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'
12108
12109	# Archives containing C++ object files must be created using
12110	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12111	# necessary to make sure instantiated templates are included
12112	# in the archive.
12113	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12114	;;
12115      *)
12116	if test "$GXX" = yes; then
12117	  if test "$with_gnu_ld" = no; then
12118	    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'
12119	  else
12120	    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'
12121	  fi
12122	fi
12123	link_all_deplibs_CXX=yes
12124	;;
12125    esac
12126    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12127    hardcode_libdir_separator_CXX=:
12128    ;;
12129  linux* | k*bsd*-gnu)
12130    case $cc_basename in
12131      KCC*)
12132	# Kuck and Associates, Inc. (KAI) C++ Compiler
12133
12134	# KCC will only create a shared library if the output file
12135	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12136	# to its proper name (with version) after linking.
12137	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'
12138	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'
12139	# Commands to make compiler produce verbose output that lists
12140	# what "hidden" libraries, object files and flags are used when
12141	# linking a shared library.
12142	#
12143	# There doesn't appear to be a way to prevent this compiler from
12144	# explicitly linking system object files so we need to strip them
12145	# from the output so that they don't get included in the library
12146	# dependencies.
12147	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'
12148
12149	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12150	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12151
12152	# Archives containing C++ object files must be created using
12153	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12154	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12155	;;
12156      icpc*)
12157	# Intel C++
12158	with_gnu_ld=yes
12159	# version 8.0 and above of icpc choke on multiply defined symbols
12160	# if we add $predep_objects and $postdep_objects, however 7.1 and
12161	# earlier do not add the objects themselves.
12162	case `$CC -V 2>&1` in
12163	*"Version 7."*)
12164  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12165  	  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'
12166	  ;;
12167	*)  # Version 8.0 or newer
12168	  tmp_idyn=
12169	  case $host_cpu in
12170	    ia64*) tmp_idyn=' -i_dynamic';;
12171	  esac
12172  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12173	  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'
12174	  ;;
12175	esac
12176	archive_cmds_need_lc_CXX=no
12177	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12178	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12179	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12180	;;
12181      pgCC*)
12182        # Portland Group C++ compiler
12183	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12184  	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'
12185
12186	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12187	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12188	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'
12189        ;;
12190      cxx*)
12191	# Compaq C++
12192	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12193	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'
12194
12195	runpath_var=LD_RUN_PATH
12196	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12197	hardcode_libdir_separator_CXX=:
12198
12199	# Commands to make compiler produce verbose output that lists
12200	# what "hidden" libraries, object files and flags are used when
12201	# linking a shared library.
12202	#
12203	# There doesn't appear to be a way to prevent this compiler from
12204	# explicitly linking system object files so we need to strip them
12205	# from the output so that they don't get included in the library
12206	# dependencies.
12207	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'
12208	;;
12209    esac
12210    ;;
12211  lynxos*)
12212    # FIXME: insert proper C++ library support
12213    ld_shlibs_CXX=no
12214    ;;
12215  m88k*)
12216    # FIXME: insert proper C++ library support
12217    ld_shlibs_CXX=no
12218    ;;
12219  mvs*)
12220    case $cc_basename in
12221      cxx*)
12222	# FIXME: insert proper C++ library support
12223	ld_shlibs_CXX=no
12224	;;
12225      *)
12226	# FIXME: insert proper C++ library support
12227	ld_shlibs_CXX=no
12228	;;
12229    esac
12230    ;;
12231  netbsd* | netbsdelf*-gnu)
12232    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12233      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12234      wlarc=
12235      hardcode_libdir_flag_spec_CXX='-R$libdir'
12236      hardcode_direct_CXX=yes
12237      hardcode_shlibpath_var_CXX=no
12238    fi
12239    # Workaround some broken pre-1.5 toolchains
12240    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12241    ;;
12242  openbsd2*)
12243    # C++ shared libraries are fairly broken
12244    ld_shlibs_CXX=no
12245    ;;
12246  openbsd*)
12247    hardcode_direct_CXX=yes
12248    hardcode_shlibpath_var_CXX=no
12249    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12250    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12251    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12252      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12253      export_dynamic_flag_spec_CXX='${wl}-E'
12254      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12255    fi
12256    output_verbose_link_cmd='echo'
12257    ;;
12258  osf3*)
12259    case $cc_basename in
12260      KCC*)
12261	# Kuck and Associates, Inc. (KAI) C++ Compiler
12262
12263	# KCC will only create a shared library if the output file
12264	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12265	# to its proper name (with version) after linking.
12266	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'
12267
12268	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12269	hardcode_libdir_separator_CXX=:
12270
12271	# Archives containing C++ object files must be created using
12272	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12273	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12274
12275	;;
12276      RCC*)
12277	# Rational C++ 2.4.1
12278	# FIXME: insert proper C++ library support
12279	ld_shlibs_CXX=no
12280	;;
12281      cxx*)
12282	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12283	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'
12284
12285	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12286	hardcode_libdir_separator_CXX=:
12287
12288	# Commands to make compiler produce verbose output that lists
12289	# what "hidden" libraries, object files and flags are used when
12290	# linking a shared library.
12291	#
12292	# There doesn't appear to be a way to prevent this compiler from
12293	# explicitly linking system object files so we need to strip them
12294	# from the output so that they don't get included in the library
12295	# dependencies.
12296	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'
12297	;;
12298      *)
12299	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12300	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12301	  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'
12302
12303	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12304	  hardcode_libdir_separator_CXX=:
12305
12306	  # Commands to make compiler produce verbose output that lists
12307	  # what "hidden" libraries, object files and flags are used when
12308	  # linking a shared library.
12309	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12310
12311	else
12312	  # FIXME: insert proper C++ library support
12313	  ld_shlibs_CXX=no
12314	fi
12315	;;
12316    esac
12317    ;;
12318  osf4* | osf5*)
12319    case $cc_basename in
12320      KCC*)
12321	# Kuck and Associates, Inc. (KAI) C++ Compiler
12322
12323	# KCC will only create a shared library if the output file
12324	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12325	# to its proper name (with version) after linking.
12326	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'
12327
12328	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12329	hardcode_libdir_separator_CXX=:
12330
12331	# Archives containing C++ object files must be created using
12332	# the KAI C++ compiler.
12333	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12334	;;
12335      RCC*)
12336	# Rational C++ 2.4.1
12337	# FIXME: insert proper C++ library support
12338	ld_shlibs_CXX=no
12339	;;
12340      cxx*)
12341	allow_undefined_flag_CXX=' -expect_unresolved \*'
12342	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'
12343	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12344	  echo "-hidden">> $lib.exp~
12345	  $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~
12346	  $rm $lib.exp'
12347
12348	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12349	hardcode_libdir_separator_CXX=:
12350
12351	# Commands to make compiler produce verbose output that lists
12352	# what "hidden" libraries, object files and flags are used when
12353	# linking a shared library.
12354	#
12355	# There doesn't appear to be a way to prevent this compiler from
12356	# explicitly linking system object files so we need to strip them
12357	# from the output so that they don't get included in the library
12358	# dependencies.
12359	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'
12360	;;
12361      *)
12362	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12363	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12364	 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'
12365
12366	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12367	  hardcode_libdir_separator_CXX=:
12368
12369	  # Commands to make compiler produce verbose output that lists
12370	  # what "hidden" libraries, object files and flags are used when
12371	  # linking a shared library.
12372	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12373
12374	else
12375	  # FIXME: insert proper C++ library support
12376	  ld_shlibs_CXX=no
12377	fi
12378	;;
12379    esac
12380    ;;
12381  psos*)
12382    # FIXME: insert proper C++ library support
12383    ld_shlibs_CXX=no
12384    ;;
12385  sunos4*)
12386    case $cc_basename in
12387      CC*)
12388	# Sun C++ 4.x
12389	# FIXME: insert proper C++ library support
12390	ld_shlibs_CXX=no
12391	;;
12392      lcc*)
12393	# Lucid
12394	# FIXME: insert proper C++ library support
12395	ld_shlibs_CXX=no
12396	;;
12397      *)
12398	# FIXME: insert proper C++ library support
12399	ld_shlibs_CXX=no
12400	;;
12401    esac
12402    ;;
12403  solaris*)
12404    case $cc_basename in
12405      CC*)
12406	# Sun C++ 4.2, 5.x and Centerline C++
12407        archive_cmds_need_lc_CXX=yes
12408	no_undefined_flag_CXX=' -zdefs'
12409	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12410	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12411	$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'
12412
12413	hardcode_libdir_flag_spec_CXX='-R$libdir'
12414	hardcode_shlibpath_var_CXX=no
12415	case $host_os in
12416	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12417	  *)
12418	    # The C++ compiler is used as linker so we must use $wl
12419	    # flag to pass the commands to the underlying system
12420	    # linker. We must also pass each convience library through
12421	    # to the system linker between allextract/defaultextract.
12422	    # The C++ compiler will combine linker options so we
12423	    # cannot just pass the convience library names through
12424	    # without $wl.
12425	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12426	    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'
12427	    ;;
12428	esac
12429	link_all_deplibs_CXX=yes
12430
12431	output_verbose_link_cmd='echo'
12432
12433	# Archives containing C++ object files must be created using
12434	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12435	# necessary to make sure instantiated templates are included
12436	# in the archive.
12437	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12438	;;
12439      gcx*)
12440	# Green Hills C++ Compiler
12441	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12442
12443	# The C++ compiler must be used to create the archive.
12444	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12445	;;
12446      *)
12447	# GNU C++ compiler with Solaris linker
12448	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12449	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12450	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12451	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12452	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12453		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12454
12455	    # Commands to make compiler produce verbose output that lists
12456	    # what "hidden" libraries, object files and flags are used when
12457	    # linking a shared library.
12458	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12459	  else
12460	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12461	    # platform.
12462	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12463	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12464		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12465
12466	    # Commands to make compiler produce verbose output that lists
12467	    # what "hidden" libraries, object files and flags are used when
12468	    # linking a shared library.
12469	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12470	  fi
12471
12472	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12473	fi
12474	;;
12475    esac
12476    ;;
12477  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12478    no_undefined_flag_CXX='${wl}-z,text'
12479    archive_cmds_need_lc_CXX=no
12480    hardcode_shlibpath_var_CXX=no
12481    runpath_var='LD_RUN_PATH'
12482
12483    case $cc_basename in
12484      CC*)
12485	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12486	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12487	;;
12488      *)
12489	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12490	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12491	;;
12492    esac
12493    ;;
12494  sysv5* | sco3.2v5* | sco5v6*)
12495    # Note: We can NOT use -z defs as we might desire, because we do not
12496    # link with -lc, and that would cause any symbols used from libc to
12497    # always be unresolved, which means just about no library would
12498    # ever link correctly.  If we're not using GNU ld we use -z text
12499    # though, which does catch some bad symbols but isn't as heavy-handed
12500    # as -z defs.
12501    # For security reasons, it is highly recommended that you always
12502    # use absolute paths for naming shared libraries, and exclude the
12503    # DT_RUNPATH tag from executables and libraries.  But doing so
12504    # requires that you compile everything twice, which is a pain.
12505    # So that behaviour is only enabled if SCOABSPATH is set to a
12506    # non-empty value in the environment.  Most likely only useful for
12507    # creating official distributions of packages.
12508    # This is a hack until libtool officially supports absolute path
12509    # names for shared libraries.
12510    no_undefined_flag_CXX='${wl}-z,text'
12511    allow_undefined_flag_CXX='${wl}-z,nodefs'
12512    archive_cmds_need_lc_CXX=no
12513    hardcode_shlibpath_var_CXX=no
12514    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12515    hardcode_libdir_separator_CXX=':'
12516    link_all_deplibs_CXX=yes
12517    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12518    runpath_var='LD_RUN_PATH'
12519
12520    case $cc_basename in
12521      CC*)
12522	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12523	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12524	;;
12525      *)
12526	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12527	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12528	;;
12529    esac
12530    ;;
12531  tandem*)
12532    case $cc_basename in
12533      NCC*)
12534	# NonStop-UX NCC 3.20
12535	# FIXME: insert proper C++ library support
12536	ld_shlibs_CXX=no
12537	;;
12538      *)
12539	# FIXME: insert proper C++ library support
12540	ld_shlibs_CXX=no
12541	;;
12542    esac
12543    ;;
12544  vxworks*)
12545    # FIXME: insert proper C++ library support
12546    ld_shlibs_CXX=no
12547    ;;
12548  *)
12549    # FIXME: insert proper C++ library support
12550    ld_shlibs_CXX=no
12551    ;;
12552esac
12553{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12554echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12555test "$ld_shlibs_CXX" = no && can_build_shared=no
12556
12557GCC_CXX="$GXX"
12558LD_CXX="$LD"
12559
12560
12561cat > conftest.$ac_ext <<EOF
12562class Foo
12563{
12564public:
12565  Foo (void) { a = 0; }
12566private:
12567  int a;
12568};
12569EOF
12570
12571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12572  (eval $ac_compile) 2>&5
12573  ac_status=$?
12574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575  (exit $ac_status); }; then
12576  # Parse the compiler output and extract the necessary
12577  # objects, libraries and library flags.
12578
12579  # Sentinel used to keep track of whether or not we are before
12580  # the conftest object file.
12581  pre_test_object_deps_done=no
12582
12583  # The `*' in the case matches for architectures that use `case' in
12584  # $output_verbose_cmd can trigger glob expansion during the loop
12585  # eval without this substitution.
12586  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12587
12588  for p in `eval $output_verbose_link_cmd`; do
12589    case $p in
12590
12591    -L* | -R* | -l*)
12592       # Some compilers place space between "-{L,R}" and the path.
12593       # Remove the space.
12594       if test $p = "-L" \
12595	  || test $p = "-R"; then
12596	 prev=$p
12597	 continue
12598       else
12599	 prev=
12600       fi
12601
12602       if test "$pre_test_object_deps_done" = no; then
12603	 case $p in
12604	 -L* | -R*)
12605	   # Internal compiler library paths should come after those
12606	   # provided the user.  The postdeps already come after the
12607	   # user supplied libs so there is no need to process them.
12608	   if test -z "$compiler_lib_search_path_CXX"; then
12609	     compiler_lib_search_path_CXX="${prev}${p}"
12610	   else
12611	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12612	   fi
12613	   ;;
12614	 # The "-l" case would never come before the object being
12615	 # linked, so don't bother handling this case.
12616	 esac
12617       else
12618	 if test -z "$postdeps_CXX"; then
12619	   postdeps_CXX="${prev}${p}"
12620	 else
12621	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12622	 fi
12623       fi
12624       ;;
12625
12626    *.$objext)
12627       # This assumes that the test object file only shows up
12628       # once in the compiler output.
12629       if test "$p" = "conftest.$objext"; then
12630	 pre_test_object_deps_done=yes
12631	 continue
12632       fi
12633
12634       if test "$pre_test_object_deps_done" = no; then
12635	 if test -z "$predep_objects_CXX"; then
12636	   predep_objects_CXX="$p"
12637	 else
12638	   predep_objects_CXX="$predep_objects_CXX $p"
12639	 fi
12640       else
12641	 if test -z "$postdep_objects_CXX"; then
12642	   postdep_objects_CXX="$p"
12643	 else
12644	   postdep_objects_CXX="$postdep_objects_CXX $p"
12645	 fi
12646       fi
12647       ;;
12648
12649    *) ;; # Ignore the rest.
12650
12651    esac
12652  done
12653
12654  # Clean up.
12655  rm -f a.out a.exe
12656else
12657  echo "libtool.m4: error: problem compiling CXX test program"
12658fi
12659
12660$rm -f confest.$objext
12661
12662# PORTME: override above test on systems where it is broken
12663case $host_os in
12664interix3*)
12665  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12666  # hack all around it, let's just trust "g++" to DTRT.
12667  predep_objects_CXX=
12668  postdep_objects_CXX=
12669  postdeps_CXX=
12670  ;;
12671
12672solaris*)
12673  case $cc_basename in
12674  CC*)
12675    # Adding this requires a known-good setup of shared libraries for
12676    # Sun compiler versions before 5.6, else PIC objects from an old
12677    # archive will be linked into the output, leading to subtle bugs.
12678    postdeps_CXX='-lCstd -lCrun'
12679    ;;
12680  esac
12681  ;;
12682esac
12683
12684
12685case " $postdeps_CXX " in
12686*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12687esac
12688
12689lt_prog_compiler_wl_CXX=
12690lt_prog_compiler_pic_CXX=
12691lt_prog_compiler_static_CXX=
12692
12693{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12694echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12695
12696  # C++ specific cases for pic, static, wl, etc.
12697  if test "$GXX" = yes; then
12698    lt_prog_compiler_wl_CXX='-Wl,'
12699    lt_prog_compiler_static_CXX='-static'
12700
12701    case $host_os in
12702    aix*)
12703      # All AIX code is PIC.
12704      if test "$host_cpu" = ia64; then
12705	# AIX 5 now supports IA64 processor
12706	lt_prog_compiler_static_CXX='-Bstatic'
12707      fi
12708      ;;
12709    amigaos*)
12710      # FIXME: we need at least 68020 code to build shared libraries, but
12711      # adding the `-m68020' flag to GCC prevents building anything better,
12712      # like `-m68040'.
12713      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12714      ;;
12715    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12716      # PIC is the default for these OSes.
12717      ;;
12718    mingw* | os2* | pw32*)
12719      # This hack is so that the source file can tell whether it is being
12720      # built for inclusion in a dll (and should export symbols for example).
12721      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12722      ;;
12723    darwin* | rhapsody*)
12724      # PIC is the default on this platform
12725      # Common symbols not allowed in MH_DYLIB files
12726      lt_prog_compiler_pic_CXX='-fno-common'
12727      ;;
12728    *djgpp*)
12729      # DJGPP does not support shared libraries at all
12730      lt_prog_compiler_pic_CXX=
12731      ;;
12732    interix3*)
12733      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12734      # Instead, we relocate shared libraries at runtime.
12735      ;;
12736    sysv4*MP*)
12737      if test -d /usr/nec; then
12738	lt_prog_compiler_pic_CXX=-Kconform_pic
12739      fi
12740      ;;
12741    hpux*)
12742      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12743      # not for PA HP-UX.
12744      case $host_cpu in
12745      hppa*64*|ia64*)
12746	;;
12747      *)
12748	lt_prog_compiler_pic_CXX='-fPIC'
12749	;;
12750      esac
12751      ;;
12752    *)
12753      lt_prog_compiler_pic_CXX='-fPIC'
12754      ;;
12755    esac
12756  else
12757    case $host_os in
12758      aix4* | aix5*)
12759	# All AIX code is PIC.
12760	if test "$host_cpu" = ia64; then
12761	  # AIX 5 now supports IA64 processor
12762	  lt_prog_compiler_static_CXX='-Bstatic'
12763	else
12764	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12765	fi
12766	;;
12767      chorus*)
12768	case $cc_basename in
12769	cxch68*)
12770	  # Green Hills C++ Compiler
12771	  # _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"
12772	  ;;
12773	esac
12774	;;
12775       darwin*)
12776         # PIC is the default on this platform
12777         # Common symbols not allowed in MH_DYLIB files
12778         case $cc_basename in
12779           xlc*)
12780           lt_prog_compiler_pic_CXX='-qnocommon'
12781           lt_prog_compiler_wl_CXX='-Wl,'
12782           ;;
12783         esac
12784       ;;
12785      dgux*)
12786	case $cc_basename in
12787	  ec++*)
12788	    lt_prog_compiler_pic_CXX='-KPIC'
12789	    ;;
12790	  ghcx*)
12791	    # Green Hills C++ Compiler
12792	    lt_prog_compiler_pic_CXX='-pic'
12793	    ;;
12794	  *)
12795	    ;;
12796	esac
12797	;;
12798      freebsd* | dragonfly*)
12799	# FreeBSD uses GNU C++
12800	;;
12801      hpux9* | hpux10* | hpux11*)
12802	case $cc_basename in
12803	  CC*)
12804	    lt_prog_compiler_wl_CXX='-Wl,'
12805	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12806	    if test "$host_cpu" != ia64; then
12807	      lt_prog_compiler_pic_CXX='+Z'
12808	    fi
12809	    ;;
12810	  aCC*)
12811	    lt_prog_compiler_wl_CXX='-Wl,'
12812	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12813	    case $host_cpu in
12814	    hppa*64*|ia64*)
12815	      # +Z the default
12816	      ;;
12817	    *)
12818	      lt_prog_compiler_pic_CXX='+Z'
12819	      ;;
12820	    esac
12821	    ;;
12822	  *)
12823	    ;;
12824	esac
12825	;;
12826      interix*)
12827	# This is c89, which is MS Visual C++ (no shared libs)
12828	# Anyone wants to do a port?
12829	;;
12830      irix5* | irix6* | nonstopux*)
12831	case $cc_basename in
12832	  CC*)
12833	    lt_prog_compiler_wl_CXX='-Wl,'
12834	    lt_prog_compiler_static_CXX='-non_shared'
12835	    # CC pic flag -KPIC is the default.
12836	    ;;
12837	  *)
12838	    ;;
12839	esac
12840	;;
12841      linux* | k*bsd*-gnu)
12842	case $cc_basename in
12843	  KCC*)
12844	    # KAI C++ Compiler
12845	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12846	    lt_prog_compiler_pic_CXX='-fPIC'
12847	    ;;
12848	  icpc* | ecpc*)
12849	    # Intel C++
12850	    lt_prog_compiler_wl_CXX='-Wl,'
12851	    lt_prog_compiler_pic_CXX='-KPIC'
12852	    lt_prog_compiler_static_CXX='-static'
12853	    ;;
12854	  pgCC*)
12855	    # Portland Group C++ compiler.
12856	    lt_prog_compiler_wl_CXX='-Wl,'
12857	    lt_prog_compiler_pic_CXX='-fpic'
12858	    lt_prog_compiler_static_CXX='-Bstatic'
12859	    ;;
12860	  cxx*)
12861	    # Compaq C++
12862	    # Make sure the PIC flag is empty.  It appears that all Alpha
12863	    # Linux and Compaq Tru64 Unix objects are PIC.
12864	    lt_prog_compiler_pic_CXX=
12865	    lt_prog_compiler_static_CXX='-non_shared'
12866	    ;;
12867	  *)
12868	    ;;
12869	esac
12870	;;
12871      lynxos*)
12872	;;
12873      m88k*)
12874	;;
12875      mvs*)
12876	case $cc_basename in
12877	  cxx*)
12878	    lt_prog_compiler_pic_CXX='-W c,exportall'
12879	    ;;
12880	  *)
12881	    ;;
12882	esac
12883	;;
12884      netbsd* | netbsdelf*-gnu)
12885	;;
12886      osf3* | osf4* | osf5*)
12887	case $cc_basename in
12888	  KCC*)
12889	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12890	    ;;
12891	  RCC*)
12892	    # Rational C++ 2.4.1
12893	    lt_prog_compiler_pic_CXX='-pic'
12894	    ;;
12895	  cxx*)
12896	    # Digital/Compaq C++
12897	    lt_prog_compiler_wl_CXX='-Wl,'
12898	    # Make sure the PIC flag is empty.  It appears that all Alpha
12899	    # Linux and Compaq Tru64 Unix objects are PIC.
12900	    lt_prog_compiler_pic_CXX=
12901	    lt_prog_compiler_static_CXX='-non_shared'
12902	    ;;
12903	  *)
12904	    ;;
12905	esac
12906	;;
12907      psos*)
12908	;;
12909      solaris*)
12910	case $cc_basename in
12911	  CC*)
12912	    # Sun C++ 4.2, 5.x and Centerline C++
12913	    lt_prog_compiler_pic_CXX='-KPIC'
12914	    lt_prog_compiler_static_CXX='-Bstatic'
12915	    lt_prog_compiler_wl_CXX='-Qoption ld '
12916	    ;;
12917	  gcx*)
12918	    # Green Hills C++ Compiler
12919	    lt_prog_compiler_pic_CXX='-PIC'
12920	    ;;
12921	  *)
12922	    ;;
12923	esac
12924	;;
12925      sunos4*)
12926	case $cc_basename in
12927	  CC*)
12928	    # Sun C++ 4.x
12929	    lt_prog_compiler_pic_CXX='-pic'
12930	    lt_prog_compiler_static_CXX='-Bstatic'
12931	    ;;
12932	  lcc*)
12933	    # Lucid
12934	    lt_prog_compiler_pic_CXX='-pic'
12935	    ;;
12936	  *)
12937	    ;;
12938	esac
12939	;;
12940      tandem*)
12941	case $cc_basename in
12942	  NCC*)
12943	    # NonStop-UX NCC 3.20
12944	    lt_prog_compiler_pic_CXX='-KPIC'
12945	    ;;
12946	  *)
12947	    ;;
12948	esac
12949	;;
12950      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12951	case $cc_basename in
12952	  CC*)
12953	    lt_prog_compiler_wl_CXX='-Wl,'
12954	    lt_prog_compiler_pic_CXX='-KPIC'
12955	    lt_prog_compiler_static_CXX='-Bstatic'
12956	    ;;
12957	esac
12958	;;
12959      vxworks*)
12960	;;
12961      *)
12962	lt_prog_compiler_can_build_shared_CXX=no
12963	;;
12964    esac
12965  fi
12966
12967{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12968echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12969
12970#
12971# Check to make sure the PIC flag actually works.
12972#
12973if test -n "$lt_prog_compiler_pic_CXX"; then
12974
12975{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12976echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12977if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12978  echo $ECHO_N "(cached) $ECHO_C" >&6
12979else
12980  lt_prog_compiler_pic_works_CXX=no
12981  ac_outfile=conftest.$ac_objext
12982   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12983   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12984   # Insert the option either (1) after the last *FLAGS variable, or
12985   # (2) before a word containing "conftest.", or (3) at the end.
12986   # Note that $ac_compile itself does not contain backslashes and begins
12987   # with a dollar sign (not a hyphen), so the echo should work correctly.
12988   # The option is referenced via a variable to avoid confusing sed.
12989   lt_compile=`echo "$ac_compile" | $SED \
12990   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12991   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12992   -e 's:$: $lt_compiler_flag:'`
12993   (eval echo "\"\$as_me:12993: $lt_compile\"" >&5)
12994   (eval "$lt_compile" 2>conftest.err)
12995   ac_status=$?
12996   cat conftest.err >&5
12997   echo "$as_me:12997: \$? = $ac_status" >&5
12998   if (exit $ac_status) && test -s "$ac_outfile"; then
12999     # The compiler can only warn and ignore the option if not recognized
13000     # So say no if there are warnings other than the usual output.
13001     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13002     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13003     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13004       lt_prog_compiler_pic_works_CXX=yes
13005     fi
13006   fi
13007   $rm conftest*
13008
13009fi
13010{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13011echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13012
13013if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13014    case $lt_prog_compiler_pic_CXX in
13015     "" | " "*) ;;
13016     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13017     esac
13018else
13019    lt_prog_compiler_pic_CXX=
13020     lt_prog_compiler_can_build_shared_CXX=no
13021fi
13022
13023fi
13024case $host_os in
13025  # For platforms which do not support PIC, -DPIC is meaningless:
13026  *djgpp*)
13027    lt_prog_compiler_pic_CXX=
13028    ;;
13029  *)
13030    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13031    ;;
13032esac
13033
13034#
13035# Check to make sure the static flag actually works.
13036#
13037wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13038{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13039echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13040if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13041  echo $ECHO_N "(cached) $ECHO_C" >&6
13042else
13043  lt_prog_compiler_static_works_CXX=no
13044   save_LDFLAGS="$LDFLAGS"
13045   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13046   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13047   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13048     # The linker can only warn and ignore the option if not recognized
13049     # So say no if there are warnings
13050     if test -s conftest.err; then
13051       # Append any errors to the config.log.
13052       cat conftest.err 1>&5
13053       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13054       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13055       if diff conftest.exp conftest.er2 >/dev/null; then
13056         lt_prog_compiler_static_works_CXX=yes
13057       fi
13058     else
13059       lt_prog_compiler_static_works_CXX=yes
13060     fi
13061   fi
13062   $rm conftest*
13063   LDFLAGS="$save_LDFLAGS"
13064
13065fi
13066{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13067echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13068
13069if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13070    :
13071else
13072    lt_prog_compiler_static_CXX=
13073fi
13074
13075
13076{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13077echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13078if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13079  echo $ECHO_N "(cached) $ECHO_C" >&6
13080else
13081  lt_cv_prog_compiler_c_o_CXX=no
13082   $rm -r conftest 2>/dev/null
13083   mkdir conftest
13084   cd conftest
13085   mkdir out
13086   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13087
13088   lt_compiler_flag="-o out/conftest2.$ac_objext"
13089   # Insert the option either (1) after the last *FLAGS variable, or
13090   # (2) before a word containing "conftest.", or (3) at the end.
13091   # Note that $ac_compile itself does not contain backslashes and begins
13092   # with a dollar sign (not a hyphen), so the echo should work correctly.
13093   lt_compile=`echo "$ac_compile" | $SED \
13094   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13095   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13096   -e 's:$: $lt_compiler_flag:'`
13097   (eval echo "\"\$as_me:13097: $lt_compile\"" >&5)
13098   (eval "$lt_compile" 2>out/conftest.err)
13099   ac_status=$?
13100   cat out/conftest.err >&5
13101   echo "$as_me:13101: \$? = $ac_status" >&5
13102   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13103   then
13104     # The compiler can only warn and ignore the option if not recognized
13105     # So say no if there are warnings
13106     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13107     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13108     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13109       lt_cv_prog_compiler_c_o_CXX=yes
13110     fi
13111   fi
13112   chmod u+w . 2>&5
13113   $rm conftest*
13114   # SGI C++ compiler will create directory out/ii_files/ for
13115   # template instantiation
13116   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13117   $rm out/* && rmdir out
13118   cd ..
13119   rmdir conftest
13120   $rm conftest*
13121
13122fi
13123{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13124echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13125
13126
13127hard_links="nottested"
13128if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13129  # do not overwrite the value of need_locks provided by the user
13130  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13131echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13132  hard_links=yes
13133  $rm conftest*
13134  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13135  touch conftest.a
13136  ln conftest.a conftest.b 2>&5 || hard_links=no
13137  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13138  { echo "$as_me:$LINENO: result: $hard_links" >&5
13139echo "${ECHO_T}$hard_links" >&6; }
13140  if test "$hard_links" = no; then
13141    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13142echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13143    need_locks=warn
13144  fi
13145else
13146  need_locks=no
13147fi
13148
13149{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13150echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13151
13152  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13153  case $host_os in
13154  aix4* | aix5*)
13155    # If we're using GNU nm, then we don't want the "-C" option.
13156    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13157    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13158      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'
13159    else
13160      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'
13161    fi
13162    ;;
13163  pw32*)
13164    export_symbols_cmds_CXX="$ltdll_cmds"
13165  ;;
13166  cygwin* | mingw*)
13167    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'
13168  ;;
13169  linux* | k*bsd*-gnu)
13170    link_all_deplibs_CXX=no
13171  ;;
13172  *)
13173    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13174  ;;
13175  esac
13176
13177{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13178echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13179test "$ld_shlibs_CXX" = no && can_build_shared=no
13180
13181#
13182# Do we need to explicitly link libc?
13183#
13184case "x$archive_cmds_need_lc_CXX" in
13185x|xyes)
13186  # Assume -lc should be added
13187  archive_cmds_need_lc_CXX=yes
13188
13189  if test "$enable_shared" = yes && test "$GCC" = yes; then
13190    case $archive_cmds_CXX in
13191    *'~'*)
13192      # FIXME: we may have to deal with multi-command sequences.
13193      ;;
13194    '$CC '*)
13195      # Test whether the compiler implicitly links with -lc since on some
13196      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13197      # to ld, don't add -lc before -lgcc.
13198      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13199echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13200      $rm conftest*
13201      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13202
13203      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13204  (eval $ac_compile) 2>&5
13205  ac_status=$?
13206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207  (exit $ac_status); } 2>conftest.err; then
13208        soname=conftest
13209        lib=conftest
13210        libobjs=conftest.$ac_objext
13211        deplibs=
13212        wl=$lt_prog_compiler_wl_CXX
13213	pic_flag=$lt_prog_compiler_pic_CXX
13214        compiler_flags=-v
13215        linker_flags=-v
13216        verstring=
13217        output_objdir=.
13218        libname=conftest
13219        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13220        allow_undefined_flag_CXX=
13221        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13222  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13223  ac_status=$?
13224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225  (exit $ac_status); }
13226        then
13227	  archive_cmds_need_lc_CXX=no
13228        else
13229	  archive_cmds_need_lc_CXX=yes
13230        fi
13231        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13232      else
13233        cat conftest.err 1>&5
13234      fi
13235      $rm conftest*
13236      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13237echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13238      ;;
13239    esac
13240  fi
13241  ;;
13242esac
13243
13244{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13245echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13246library_names_spec=
13247libname_spec='lib$name'
13248soname_spec=
13249shrext_cmds=".so"
13250postinstall_cmds=
13251postuninstall_cmds=
13252finish_cmds=
13253finish_eval=
13254shlibpath_var=
13255shlibpath_overrides_runpath=unknown
13256version_type=none
13257dynamic_linker="$host_os ld.so"
13258sys_lib_dlsearch_path_spec="/lib /usr/lib"
13259if test "$GCC" = yes; then
13260  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13261  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13262    # if the path contains ";" then we assume it to be the separator
13263    # otherwise default to the standard path separator (i.e. ":") - it is
13264    # assumed that no part of a normal pathname contains ";" but that should
13265    # okay in the real world where ";" in dirpaths is itself problematic.
13266    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13267  else
13268    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13269  fi
13270else
13271  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13272fi
13273need_lib_prefix=unknown
13274hardcode_into_libs=no
13275
13276# when you set need_version to no, make sure it does not cause -set_version
13277# flags to be left without arguments
13278need_version=unknown
13279
13280case $host_os in
13281aix3*)
13282  version_type=linux
13283  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13284  shlibpath_var=LIBPATH
13285
13286  # AIX 3 has no versioning support, so we append a major version to the name.
13287  soname_spec='${libname}${release}${shared_ext}$major'
13288  ;;
13289
13290aix4* | aix5*)
13291  version_type=linux
13292  need_lib_prefix=no
13293  need_version=no
13294  hardcode_into_libs=yes
13295  if test "$host_cpu" = ia64; then
13296    # AIX 5 supports IA64
13297    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13298    shlibpath_var=LD_LIBRARY_PATH
13299  else
13300    # With GCC up to 2.95.x, collect2 would create an import file
13301    # for dependence libraries.  The import file would start with
13302    # the line `#! .'.  This would cause the generated library to
13303    # depend on `.', always an invalid library.  This was fixed in
13304    # development snapshots of GCC prior to 3.0.
13305    case $host_os in
13306      aix4 | aix4.[01] | aix4.[01].*)
13307      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13308	   echo ' yes '
13309	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13310	:
13311      else
13312	can_build_shared=no
13313      fi
13314      ;;
13315    esac
13316    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13317    # soname into executable. Probably we can add versioning support to
13318    # collect2, so additional links can be useful in future.
13319    if test "$aix_use_runtimelinking" = yes; then
13320      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13321      # instead of lib<name>.a to let people know that these are not
13322      # typical AIX shared libraries.
13323      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13324    else
13325      # We preserve .a as extension for shared libraries through AIX4.2
13326      # and later when we are not doing run time linking.
13327      library_names_spec='${libname}${release}.a $libname.a'
13328      soname_spec='${libname}${release}${shared_ext}$major'
13329    fi
13330    shlibpath_var=LIBPATH
13331  fi
13332  ;;
13333
13334amigaos*)
13335  library_names_spec='$libname.ixlibrary $libname.a'
13336  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13337  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'
13338  ;;
13339
13340beos*)
13341  library_names_spec='${libname}${shared_ext}'
13342  dynamic_linker="$host_os ld.so"
13343  shlibpath_var=LIBRARY_PATH
13344  ;;
13345
13346bsdi[45]*)
13347  version_type=linux
13348  need_version=no
13349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13350  soname_spec='${libname}${release}${shared_ext}$major'
13351  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13352  shlibpath_var=LD_LIBRARY_PATH
13353  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13354  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13355  # the default ld.so.conf also contains /usr/contrib/lib and
13356  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13357  # libtool to hard-code these into programs
13358  ;;
13359
13360cygwin* | mingw* | pw32*)
13361  version_type=windows
13362  shrext_cmds=".dll"
13363  need_version=no
13364  need_lib_prefix=no
13365
13366  case $GCC,$host_os in
13367  yes,cygwin* | yes,mingw* | yes,pw32*)
13368    library_names_spec='$libname.dll.a'
13369    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13370    postinstall_cmds='base_file=`basename \${file}`~
13371      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13372      dldir=$destdir/`dirname \$dlpath`~
13373      test -d \$dldir || mkdir -p \$dldir~
13374      $install_prog $dir/$dlname \$dldir/$dlname~
13375      chmod a+x \$dldir/$dlname'
13376    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13377      dlpath=$dir/\$dldll~
13378       $rm \$dlpath'
13379    shlibpath_overrides_runpath=yes
13380
13381    case $host_os in
13382    cygwin*)
13383      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13384      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13385      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13386      ;;
13387    mingw*)
13388      # MinGW DLLs use traditional 'lib' prefix
13389      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13390      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13391      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13392        # It is most probably a Windows format PATH printed by
13393        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13394        # path with ; separators, and with drive letters. We can handle the
13395        # drive letters (cygwin fileutils understands them), so leave them,
13396        # especially as we might pass files found there to a mingw objdump,
13397        # which wouldn't understand a cygwinified path. Ahh.
13398        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13399      else
13400        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13401      fi
13402      ;;
13403    pw32*)
13404      # pw32 DLLs use 'pw' prefix rather than 'lib'
13405      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13406      ;;
13407    esac
13408    ;;
13409
13410  *)
13411    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13412    ;;
13413  esac
13414  dynamic_linker='Win32 ld.exe'
13415  # FIXME: first we should search . and the directory the executable is in
13416  shlibpath_var=PATH
13417  ;;
13418
13419darwin* | rhapsody*)
13420  dynamic_linker="$host_os dyld"
13421  version_type=darwin
13422  need_lib_prefix=no
13423  need_version=no
13424  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13425  soname_spec='${libname}${release}${major}$shared_ext'
13426  shlibpath_overrides_runpath=yes
13427  shlibpath_var=DYLD_LIBRARY_PATH
13428  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13429  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13430  if test "$GCC" = yes; then
13431    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"`
13432  else
13433    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13434  fi
13435  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13436  ;;
13437
13438dgux*)
13439  version_type=linux
13440  need_lib_prefix=no
13441  need_version=no
13442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13443  soname_spec='${libname}${release}${shared_ext}$major'
13444  shlibpath_var=LD_LIBRARY_PATH
13445  ;;
13446
13447freebsd1*)
13448  dynamic_linker=no
13449  ;;
13450
13451freebsd* | dragonfly*)
13452  # DragonFly does not have aout.  When/if they implement a new
13453  # versioning mechanism, adjust this.
13454  if test -x /usr/bin/objformat; then
13455    objformat=`/usr/bin/objformat`
13456  else
13457    case $host_os in
13458    freebsd[123]*) objformat=aout ;;
13459    *) objformat=elf ;;
13460    esac
13461  fi
13462  version_type=freebsd-$objformat
13463  case $version_type in
13464    freebsd-elf*)
13465      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13466      need_version=no
13467      need_lib_prefix=no
13468      ;;
13469    freebsd-*)
13470      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13471      need_version=yes
13472      ;;
13473  esac
13474  shlibpath_var=LD_LIBRARY_PATH
13475  case $host_os in
13476  freebsd2*)
13477    shlibpath_overrides_runpath=yes
13478    ;;
13479  freebsd3.[01]* | freebsdelf3.[01]*)
13480    shlibpath_overrides_runpath=yes
13481    hardcode_into_libs=yes
13482    ;;
13483  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13484  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13485    shlibpath_overrides_runpath=no
13486    hardcode_into_libs=yes
13487    ;;
13488  freebsd*) # from 4.6 on
13489    shlibpath_overrides_runpath=yes
13490    hardcode_into_libs=yes
13491    ;;
13492  esac
13493  ;;
13494
13495gnu*)
13496  version_type=linux
13497  need_lib_prefix=no
13498  need_version=no
13499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13500  soname_spec='${libname}${release}${shared_ext}$major'
13501  shlibpath_var=LD_LIBRARY_PATH
13502  hardcode_into_libs=yes
13503  ;;
13504
13505hpux9* | hpux10* | hpux11*)
13506  # Give a soname corresponding to the major version so that dld.sl refuses to
13507  # link against other versions.
13508  version_type=sunos
13509  need_lib_prefix=no
13510  need_version=no
13511  case $host_cpu in
13512  ia64*)
13513    shrext_cmds='.so'
13514    hardcode_into_libs=yes
13515    dynamic_linker="$host_os dld.so"
13516    shlibpath_var=LD_LIBRARY_PATH
13517    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13518    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13519    soname_spec='${libname}${release}${shared_ext}$major'
13520    if test "X$HPUX_IA64_MODE" = X32; then
13521      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13522    else
13523      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13524    fi
13525    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13526    ;;
13527   hppa*64*)
13528     shrext_cmds='.sl'
13529     hardcode_into_libs=yes
13530     dynamic_linker="$host_os dld.sl"
13531     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13532     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13533     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13534     soname_spec='${libname}${release}${shared_ext}$major'
13535     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13536     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13537     ;;
13538   *)
13539    shrext_cmds='.sl'
13540    dynamic_linker="$host_os dld.sl"
13541    shlibpath_var=SHLIB_PATH
13542    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13543    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13544    soname_spec='${libname}${release}${shared_ext}$major'
13545    ;;
13546  esac
13547  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13548  postinstall_cmds='chmod 555 $lib'
13549  ;;
13550
13551interix3*)
13552  version_type=linux
13553  need_lib_prefix=no
13554  need_version=no
13555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13556  soname_spec='${libname}${release}${shared_ext}$major'
13557  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13558  shlibpath_var=LD_LIBRARY_PATH
13559  shlibpath_overrides_runpath=no
13560  hardcode_into_libs=yes
13561  ;;
13562
13563irix5* | irix6* | nonstopux*)
13564  case $host_os in
13565    nonstopux*) version_type=nonstopux ;;
13566    *)
13567	if test "$lt_cv_prog_gnu_ld" = yes; then
13568		version_type=linux
13569	else
13570		version_type=irix
13571	fi ;;
13572  esac
13573  need_lib_prefix=no
13574  need_version=no
13575  soname_spec='${libname}${release}${shared_ext}$major'
13576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13577  case $host_os in
13578  irix5* | nonstopux*)
13579    libsuff= shlibsuff=
13580    ;;
13581  *)
13582    case $LD in # libtool.m4 will add one of these switches to LD
13583    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13584      libsuff= shlibsuff= libmagic=32-bit;;
13585    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13586      libsuff=32 shlibsuff=N32 libmagic=N32;;
13587    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13588      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13589    *) libsuff= shlibsuff= libmagic=never-match;;
13590    esac
13591    ;;
13592  esac
13593  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13594  shlibpath_overrides_runpath=no
13595  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13596  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13597  hardcode_into_libs=yes
13598  ;;
13599
13600# No shared lib support for Linux oldld, aout, or coff.
13601linux*oldld* | linux*aout* | linux*coff*)
13602  dynamic_linker=no
13603  ;;
13604
13605# This must be Linux ELF.
13606linux* | k*bsd*-gnu)
13607  version_type=linux
13608  need_lib_prefix=no
13609  need_version=no
13610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13611  soname_spec='${libname}${release}${shared_ext}$major'
13612  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13613  shlibpath_var=LD_LIBRARY_PATH
13614  shlibpath_overrides_runpath=no
13615  # This implies no fast_install, which is unacceptable.
13616  # Some rework will be needed to allow for fast_install
13617  # before this can be enabled.
13618  hardcode_into_libs=yes
13619
13620  # Append ld.so.conf contents to the search path
13621  if test -f /etc/ld.so.conf; then
13622    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' ' '`
13623    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13624  fi
13625
13626  # We used to test for /lib/ld.so.1 and disable shared libraries on
13627  # powerpc, because MkLinux only supported shared libraries with the
13628  # GNU dynamic linker.  Since this was broken with cross compilers,
13629  # most powerpc-linux boxes support dynamic linking these days and
13630  # people can always --disable-shared, the test was removed, and we
13631  # assume the GNU/Linux dynamic linker is in use.
13632  dynamic_linker='GNU/Linux ld.so'
13633  ;;
13634
13635netbsdelf*-gnu)
13636  version_type=linux
13637  need_lib_prefix=no
13638  need_version=no
13639  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13640  soname_spec='${libname}${release}${shared_ext}$major'
13641  shlibpath_var=LD_LIBRARY_PATH
13642  shlibpath_overrides_runpath=no
13643  hardcode_into_libs=yes
13644  dynamic_linker='NetBSD ld.elf_so'
13645  ;;
13646
13647netbsd*)
13648  version_type=sunos
13649  need_lib_prefix=no
13650  need_version=no
13651  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13652    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13653    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13654    dynamic_linker='NetBSD (a.out) ld.so'
13655  else
13656    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13657    soname_spec='${libname}${release}${shared_ext}$major'
13658    dynamic_linker='NetBSD ld.elf_so'
13659  fi
13660  shlibpath_var=LD_LIBRARY_PATH
13661  shlibpath_overrides_runpath=yes
13662  hardcode_into_libs=yes
13663  ;;
13664
13665newsos6)
13666  version_type=linux
13667  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13668  shlibpath_var=LD_LIBRARY_PATH
13669  shlibpath_overrides_runpath=yes
13670  ;;
13671
13672nto-qnx*)
13673  version_type=linux
13674  need_lib_prefix=no
13675  need_version=no
13676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13677  soname_spec='${libname}${release}${shared_ext}$major'
13678  shlibpath_var=LD_LIBRARY_PATH
13679  shlibpath_overrides_runpath=yes
13680  ;;
13681
13682openbsd*)
13683  version_type=sunos
13684  sys_lib_dlsearch_path_spec="/usr/lib"
13685  need_lib_prefix=no
13686  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13687  case $host_os in
13688    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13689    *)                         need_version=no  ;;
13690  esac
13691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13692  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13693  shlibpath_var=LD_LIBRARY_PATH
13694  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13695    case $host_os in
13696      openbsd2.[89] | openbsd2.[89].*)
13697	shlibpath_overrides_runpath=no
13698	;;
13699      *)
13700	shlibpath_overrides_runpath=yes
13701	;;
13702      esac
13703  else
13704    shlibpath_overrides_runpath=yes
13705  fi
13706  ;;
13707
13708os2*)
13709  libname_spec='$name'
13710  shrext_cmds=".dll"
13711  need_lib_prefix=no
13712  library_names_spec='$libname${shared_ext} $libname.a'
13713  dynamic_linker='OS/2 ld.exe'
13714  shlibpath_var=LIBPATH
13715  ;;
13716
13717osf3* | osf4* | osf5*)
13718  version_type=osf
13719  need_lib_prefix=no
13720  need_version=no
13721  soname_spec='${libname}${release}${shared_ext}$major'
13722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13723  shlibpath_var=LD_LIBRARY_PATH
13724  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13725  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13726  ;;
13727
13728solaris*)
13729  version_type=linux
13730  need_lib_prefix=no
13731  need_version=no
13732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13733  soname_spec='${libname}${release}${shared_ext}$major'
13734  shlibpath_var=LD_LIBRARY_PATH
13735  shlibpath_overrides_runpath=yes
13736  hardcode_into_libs=yes
13737  # ldd complains unless libraries are executable
13738  postinstall_cmds='chmod +x $lib'
13739  ;;
13740
13741sunos4*)
13742  version_type=sunos
13743  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13744  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13745  shlibpath_var=LD_LIBRARY_PATH
13746  shlibpath_overrides_runpath=yes
13747  if test "$with_gnu_ld" = yes; then
13748    need_lib_prefix=no
13749  fi
13750  need_version=yes
13751  ;;
13752
13753sysv4 | sysv4.3*)
13754  version_type=linux
13755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13756  soname_spec='${libname}${release}${shared_ext}$major'
13757  shlibpath_var=LD_LIBRARY_PATH
13758  case $host_vendor in
13759    sni)
13760      shlibpath_overrides_runpath=no
13761      need_lib_prefix=no
13762      export_dynamic_flag_spec='${wl}-Blargedynsym'
13763      runpath_var=LD_RUN_PATH
13764      ;;
13765    siemens)
13766      need_lib_prefix=no
13767      ;;
13768    motorola)
13769      need_lib_prefix=no
13770      need_version=no
13771      shlibpath_overrides_runpath=no
13772      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13773      ;;
13774  esac
13775  ;;
13776
13777sysv4*MP*)
13778  if test -d /usr/nec ;then
13779    version_type=linux
13780    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13781    soname_spec='$libname${shared_ext}.$major'
13782    shlibpath_var=LD_LIBRARY_PATH
13783  fi
13784  ;;
13785
13786sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13787  version_type=freebsd-elf
13788  need_lib_prefix=no
13789  need_version=no
13790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13791  soname_spec='${libname}${release}${shared_ext}$major'
13792  shlibpath_var=LD_LIBRARY_PATH
13793  hardcode_into_libs=yes
13794  if test "$with_gnu_ld" = yes; then
13795    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13796    shlibpath_overrides_runpath=no
13797  else
13798    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13799    shlibpath_overrides_runpath=yes
13800    case $host_os in
13801      sco3.2v5*)
13802        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13803	;;
13804    esac
13805  fi
13806  sys_lib_dlsearch_path_spec='/usr/lib'
13807  ;;
13808
13809uts4*)
13810  version_type=linux
13811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13812  soname_spec='${libname}${release}${shared_ext}$major'
13813  shlibpath_var=LD_LIBRARY_PATH
13814  ;;
13815
13816*)
13817  dynamic_linker=no
13818  ;;
13819esac
13820{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13821echo "${ECHO_T}$dynamic_linker" >&6; }
13822test "$dynamic_linker" = no && can_build_shared=no
13823
13824variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13825if test "$GCC" = yes; then
13826  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13827fi
13828
13829{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13830echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13831hardcode_action_CXX=
13832if test -n "$hardcode_libdir_flag_spec_CXX" || \
13833   test -n "$runpath_var_CXX" || \
13834   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13835
13836  # We can hardcode non-existant directories.
13837  if test "$hardcode_direct_CXX" != no &&
13838     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13839     # have to relink, otherwise we might link with an installed library
13840     # when we should be linking with a yet-to-be-installed one
13841     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13842     test "$hardcode_minus_L_CXX" != no; then
13843    # Linking always hardcodes the temporary library directory.
13844    hardcode_action_CXX=relink
13845  else
13846    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13847    hardcode_action_CXX=immediate
13848  fi
13849else
13850  # We cannot hardcode anything, or else we can only hardcode existing
13851  # directories.
13852  hardcode_action_CXX=unsupported
13853fi
13854{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13855echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13856
13857if test "$hardcode_action_CXX" = relink; then
13858  # Fast installation is not supported
13859  enable_fast_install=no
13860elif test "$shlibpath_overrides_runpath" = yes ||
13861     test "$enable_shared" = no; then
13862  # Fast installation is not necessary
13863  enable_fast_install=needless
13864fi
13865
13866
13867# The else clause should only fire when bootstrapping the
13868# libtool distribution, otherwise you forgot to ship ltmain.sh
13869# with your package, and you will get complaints that there are
13870# no rules to generate ltmain.sh.
13871if test -f "$ltmain"; then
13872  # See if we are running on zsh, and set the options which allow our commands through
13873  # without removal of \ escapes.
13874  if test -n "${ZSH_VERSION+set}" ; then
13875    setopt NO_GLOB_SUBST
13876  fi
13877  # Now quote all the things that may contain metacharacters while being
13878  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13879  # variables and quote the copies for generation of the libtool script.
13880  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13881    SED SHELL STRIP \
13882    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13883    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13884    deplibs_check_method reload_flag reload_cmds need_locks \
13885    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13886    lt_cv_sys_global_symbol_to_c_name_address \
13887    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13888    old_postinstall_cmds old_postuninstall_cmds \
13889    compiler_CXX \
13890    CC_CXX \
13891    LD_CXX \
13892    lt_prog_compiler_wl_CXX \
13893    lt_prog_compiler_pic_CXX \
13894    lt_prog_compiler_static_CXX \
13895    lt_prog_compiler_no_builtin_flag_CXX \
13896    export_dynamic_flag_spec_CXX \
13897    thread_safe_flag_spec_CXX \
13898    whole_archive_flag_spec_CXX \
13899    enable_shared_with_static_runtimes_CXX \
13900    old_archive_cmds_CXX \
13901    old_archive_from_new_cmds_CXX \
13902    predep_objects_CXX \
13903    postdep_objects_CXX \
13904    predeps_CXX \
13905    postdeps_CXX \
13906    compiler_lib_search_path_CXX \
13907    archive_cmds_CXX \
13908    archive_expsym_cmds_CXX \
13909    postinstall_cmds_CXX \
13910    postuninstall_cmds_CXX \
13911    old_archive_from_expsyms_cmds_CXX \
13912    allow_undefined_flag_CXX \
13913    no_undefined_flag_CXX \
13914    export_symbols_cmds_CXX \
13915    hardcode_libdir_flag_spec_CXX \
13916    hardcode_libdir_flag_spec_ld_CXX \
13917    hardcode_libdir_separator_CXX \
13918    hardcode_automatic_CXX \
13919    module_cmds_CXX \
13920    module_expsym_cmds_CXX \
13921    lt_cv_prog_compiler_c_o_CXX \
13922    exclude_expsyms_CXX \
13923    include_expsyms_CXX; do
13924
13925    case $var in
13926    old_archive_cmds_CXX | \
13927    old_archive_from_new_cmds_CXX | \
13928    archive_cmds_CXX | \
13929    archive_expsym_cmds_CXX | \
13930    module_cmds_CXX | \
13931    module_expsym_cmds_CXX | \
13932    old_archive_from_expsyms_cmds_CXX | \
13933    export_symbols_cmds_CXX | \
13934    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13935    postinstall_cmds | postuninstall_cmds | \
13936    old_postinstall_cmds | old_postuninstall_cmds | \
13937    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13938      # Double-quote double-evaled strings.
13939      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13940      ;;
13941    *)
13942      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13943      ;;
13944    esac
13945  done
13946
13947  case $lt_echo in
13948  *'\$0 --fallback-echo"')
13949    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13950    ;;
13951  esac
13952
13953cfgfile="$ofile"
13954
13955  cat <<__EOF__ >> "$cfgfile"
13956# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13957
13958# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13959
13960# Shell to use when invoking shell scripts.
13961SHELL=$lt_SHELL
13962
13963# Whether or not to build shared libraries.
13964build_libtool_libs=$enable_shared
13965
13966# Whether or not to build static libraries.
13967build_old_libs=$enable_static
13968
13969# Whether or not to add -lc for building shared libraries.
13970build_libtool_need_lc=$archive_cmds_need_lc_CXX
13971
13972# Whether or not to disallow shared libs when runtime libs are static
13973allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13974
13975# Whether or not to optimize for fast installation.
13976fast_install=$enable_fast_install
13977
13978# The host system.
13979host_alias=$host_alias
13980host=$host
13981host_os=$host_os
13982
13983# The build system.
13984build_alias=$build_alias
13985build=$build
13986build_os=$build_os
13987
13988# An echo program that does not interpret backslashes.
13989echo=$lt_echo
13990
13991# The archiver.
13992AR=$lt_AR
13993AR_FLAGS=$lt_AR_FLAGS
13994
13995# A C compiler.
13996LTCC=$lt_LTCC
13997
13998# LTCC compiler flags.
13999LTCFLAGS=$lt_LTCFLAGS
14000
14001# A language-specific compiler.
14002CC=$lt_compiler_CXX
14003
14004# Is the compiler the GNU C compiler?
14005with_gcc=$GCC_CXX
14006
14007# An ERE matcher.
14008EGREP=$lt_EGREP
14009
14010# The linker used to build libraries.
14011LD=$lt_LD_CXX
14012
14013# Whether we need hard or soft links.
14014LN_S=$lt_LN_S
14015
14016# A BSD-compatible nm program.
14017NM=$lt_NM
14018
14019# A symbol stripping program
14020STRIP=$lt_STRIP
14021
14022# Used to examine libraries when file_magic_cmd begins "file"
14023MAGIC_CMD=$MAGIC_CMD
14024
14025# Used on cygwin: DLL creation program.
14026DLLTOOL="$DLLTOOL"
14027
14028# Used on cygwin: object dumper.
14029OBJDUMP="$OBJDUMP"
14030
14031# Used on cygwin: assembler.
14032AS="$AS"
14033
14034# The name of the directory that contains temporary libtool files.
14035objdir=$objdir
14036
14037# How to create reloadable object files.
14038reload_flag=$lt_reload_flag
14039reload_cmds=$lt_reload_cmds
14040
14041# How to pass a linker flag through the compiler.
14042wl=$lt_lt_prog_compiler_wl_CXX
14043
14044# Object file suffix (normally "o").
14045objext="$ac_objext"
14046
14047# Old archive suffix (normally "a").
14048libext="$libext"
14049
14050# Shared library suffix (normally ".so").
14051shrext_cmds='$shrext_cmds'
14052
14053# Executable file suffix (normally "").
14054exeext="$exeext"
14055
14056# Additional compiler flags for building library objects.
14057pic_flag=$lt_lt_prog_compiler_pic_CXX
14058pic_mode=$pic_mode
14059
14060# What is the maximum length of a command?
14061max_cmd_len=$lt_cv_sys_max_cmd_len
14062
14063# Does compiler simultaneously support -c and -o options?
14064compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14065
14066# Must we lock files when doing compilation?
14067need_locks=$lt_need_locks
14068
14069# Do we need the lib prefix for modules?
14070need_lib_prefix=$need_lib_prefix
14071
14072# Do we need a version for libraries?
14073need_version=$need_version
14074
14075# Whether dlopen is supported.
14076dlopen_support=$enable_dlopen
14077
14078# Whether dlopen of programs is supported.
14079dlopen_self=$enable_dlopen_self
14080
14081# Whether dlopen of statically linked programs is supported.
14082dlopen_self_static=$enable_dlopen_self_static
14083
14084# Compiler flag to prevent dynamic linking.
14085link_static_flag=$lt_lt_prog_compiler_static_CXX
14086
14087# Compiler flag to turn off builtin functions.
14088no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14089
14090# Compiler flag to allow reflexive dlopens.
14091export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14092
14093# Compiler flag to generate shared objects directly from archives.
14094whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14095
14096# Compiler flag to generate thread-safe objects.
14097thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14098
14099# Library versioning type.
14100version_type=$version_type
14101
14102# Format of library name prefix.
14103libname_spec=$lt_libname_spec
14104
14105# List of archive names.  First name is the real one, the rest are links.
14106# The last name is the one that the linker finds with -lNAME.
14107library_names_spec=$lt_library_names_spec
14108
14109# The coded name of the library, if different from the real name.
14110soname_spec=$lt_soname_spec
14111
14112# Commands used to build and install an old-style archive.
14113RANLIB=$lt_RANLIB
14114old_archive_cmds=$lt_old_archive_cmds_CXX
14115old_postinstall_cmds=$lt_old_postinstall_cmds
14116old_postuninstall_cmds=$lt_old_postuninstall_cmds
14117
14118# Create an old-style archive from a shared archive.
14119old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14120
14121# Create a temporary old-style archive to link instead of a shared archive.
14122old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14123
14124# Commands used to build and install a shared archive.
14125archive_cmds=$lt_archive_cmds_CXX
14126archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14127postinstall_cmds=$lt_postinstall_cmds
14128postuninstall_cmds=$lt_postuninstall_cmds
14129
14130# Commands used to build a loadable module (assumed same as above if empty)
14131module_cmds=$lt_module_cmds_CXX
14132module_expsym_cmds=$lt_module_expsym_cmds_CXX
14133
14134# Commands to strip libraries.
14135old_striplib=$lt_old_striplib
14136striplib=$lt_striplib
14137
14138# Dependencies to place before the objects being linked to create a
14139# shared library.
14140predep_objects=$lt_predep_objects_CXX
14141
14142# Dependencies to place after the objects being linked to create a
14143# shared library.
14144postdep_objects=$lt_postdep_objects_CXX
14145
14146# Dependencies to place before the objects being linked to create a
14147# shared library.
14148predeps=$lt_predeps_CXX
14149
14150# Dependencies to place after the objects being linked to create a
14151# shared library.
14152postdeps=$lt_postdeps_CXX
14153
14154# The library search path used internally by the compiler when linking
14155# a shared library.
14156compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14157
14158# Method to check whether dependent libraries are shared objects.
14159deplibs_check_method=$lt_deplibs_check_method
14160
14161# Command to use when deplibs_check_method == file_magic.
14162file_magic_cmd=$lt_file_magic_cmd
14163
14164# Flag that allows shared libraries with undefined symbols to be built.
14165allow_undefined_flag=$lt_allow_undefined_flag_CXX
14166
14167# Flag that forces no undefined symbols.
14168no_undefined_flag=$lt_no_undefined_flag_CXX
14169
14170# Commands used to finish a libtool library installation in a directory.
14171finish_cmds=$lt_finish_cmds
14172
14173# Same as above, but a single script fragment to be evaled but not shown.
14174finish_eval=$lt_finish_eval
14175
14176# Take the output of nm and produce a listing of raw symbols and C names.
14177global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14178
14179# Transform the output of nm in a proper C declaration
14180global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14181
14182# Transform the output of nm in a C name address pair
14183global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14184
14185# This is the shared library runtime path variable.
14186runpath_var=$runpath_var
14187
14188# This is the shared library path variable.
14189shlibpath_var=$shlibpath_var
14190
14191# Is shlibpath searched before the hard-coded library search path?
14192shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14193
14194# How to hardcode a shared library path into an executable.
14195hardcode_action=$hardcode_action_CXX
14196
14197# Whether we should hardcode library paths into libraries.
14198hardcode_into_libs=$hardcode_into_libs
14199
14200# Flag to hardcode \$libdir into a binary during linking.
14201# This must work even if \$libdir does not exist.
14202hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14203
14204# If ld is used when linking, flag to hardcode \$libdir into
14205# a binary during linking. This must work even if \$libdir does
14206# not exist.
14207hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14208
14209# Whether we need a single -rpath flag with a separated argument.
14210hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14211
14212# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14213# resulting binary.
14214hardcode_direct=$hardcode_direct_CXX
14215
14216# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14217# resulting binary.
14218hardcode_minus_L=$hardcode_minus_L_CXX
14219
14220# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14221# the resulting binary.
14222hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14223
14224# Set to yes if building a shared library automatically hardcodes DIR into the library
14225# and all subsequent libraries and executables linked against it.
14226hardcode_automatic=$hardcode_automatic_CXX
14227
14228# Variables whose values should be saved in libtool wrapper scripts and
14229# restored at relink time.
14230variables_saved_for_relink="$variables_saved_for_relink"
14231
14232# Whether libtool must link a program against all its dependency libraries.
14233link_all_deplibs=$link_all_deplibs_CXX
14234
14235# Compile-time system search path for libraries
14236sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14237
14238# Run-time system search path for libraries
14239sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14240
14241# Fix the shell variable \$srcfile for the compiler.
14242fix_srcfile_path="$fix_srcfile_path_CXX"
14243
14244# Set to yes if exported symbols are required.
14245always_export_symbols=$always_export_symbols_CXX
14246
14247# The commands to list exported symbols.
14248export_symbols_cmds=$lt_export_symbols_cmds_CXX
14249
14250# The commands to extract the exported symbol list from a shared archive.
14251extract_expsyms_cmds=$lt_extract_expsyms_cmds
14252
14253# Symbols that should not be listed in the preloaded symbols.
14254exclude_expsyms=$lt_exclude_expsyms_CXX
14255
14256# Symbols that must always be exported.
14257include_expsyms=$lt_include_expsyms_CXX
14258
14259# ### END LIBTOOL TAG CONFIG: $tagname
14260
14261__EOF__
14262
14263
14264else
14265  # If there is no Makefile yet, we rely on a make rule to execute
14266  # `config.status --recheck' to rerun these tests and create the
14267  # libtool script then.
14268  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14269  if test -f "$ltmain_in"; then
14270    test -f Makefile && make "$ltmain"
14271  fi
14272fi
14273
14274
14275ac_ext=c
14276ac_cpp='$CPP $CPPFLAGS'
14277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14279ac_compiler_gnu=$ac_cv_c_compiler_gnu
14280
14281CC=$lt_save_CC
14282LDCXX=$LD
14283LD=$lt_save_LD
14284GCC=$lt_save_GCC
14285with_gnu_ldcxx=$with_gnu_ld
14286with_gnu_ld=$lt_save_with_gnu_ld
14287lt_cv_path_LDCXX=$lt_cv_path_LD
14288lt_cv_path_LD=$lt_save_path_LD
14289lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14290lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14291
14292	else
14293	  tagname=""
14294	fi
14295	;;
14296
14297      F77)
14298	if test -n "$F77" && test "X$F77" != "Xno"; then
14299
14300ac_ext=f
14301ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14302ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14303ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14304
14305
14306archive_cmds_need_lc_F77=no
14307allow_undefined_flag_F77=
14308always_export_symbols_F77=no
14309archive_expsym_cmds_F77=
14310export_dynamic_flag_spec_F77=
14311hardcode_direct_F77=no
14312hardcode_libdir_flag_spec_F77=
14313hardcode_libdir_flag_spec_ld_F77=
14314hardcode_libdir_separator_F77=
14315hardcode_minus_L_F77=no
14316hardcode_automatic_F77=no
14317module_cmds_F77=
14318module_expsym_cmds_F77=
14319link_all_deplibs_F77=unknown
14320old_archive_cmds_F77=$old_archive_cmds
14321no_undefined_flag_F77=
14322whole_archive_flag_spec_F77=
14323enable_shared_with_static_runtimes_F77=no
14324
14325# Source file extension for f77 test sources.
14326ac_ext=f
14327
14328# Object file extension for compiled f77 test sources.
14329objext=o
14330objext_F77=$objext
14331
14332# Code to be used in simple compile tests
14333lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14334
14335# Code to be used in simple link tests
14336lt_simple_link_test_code="      program t\n      end\n"
14337
14338# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14339
14340# If no C compiler was specified, use CC.
14341LTCC=${LTCC-"$CC"}
14342
14343# If no C compiler flags were specified, use CFLAGS.
14344LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14345
14346# Allow CC to be a program name with arguments.
14347compiler=$CC
14348
14349
14350# save warnings/boilerplate of simple test code
14351ac_outfile=conftest.$ac_objext
14352printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14353eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14354_lt_compiler_boilerplate=`cat conftest.err`
14355$rm conftest*
14356
14357ac_outfile=conftest.$ac_objext
14358printf "$lt_simple_link_test_code" >conftest.$ac_ext
14359eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14360_lt_linker_boilerplate=`cat conftest.err`
14361$rm conftest*
14362
14363
14364# Allow CC to be a program name with arguments.
14365lt_save_CC="$CC"
14366CC=${F77-"f77"}
14367compiler=$CC
14368compiler_F77=$CC
14369for cc_temp in $compiler""; do
14370  case $cc_temp in
14371    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14372    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14373    \-*) ;;
14374    *) break;;
14375  esac
14376done
14377cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14378
14379
14380{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14381echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14382{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14383echo "${ECHO_T}$can_build_shared" >&6; }
14384
14385{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14386echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14387test "$can_build_shared" = "no" && enable_shared=no
14388
14389# On AIX, shared libraries and static libraries use the same namespace, and
14390# are all built from PIC.
14391case $host_os in
14392aix3*)
14393  test "$enable_shared" = yes && enable_static=no
14394  if test -n "$RANLIB"; then
14395    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14396    postinstall_cmds='$RANLIB $lib'
14397  fi
14398  ;;
14399aix4* | aix5*)
14400  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14401    test "$enable_shared" = yes && enable_static=no
14402  fi
14403  ;;
14404esac
14405{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14406echo "${ECHO_T}$enable_shared" >&6; }
14407
14408{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14409echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14410# Make sure either enable_shared or enable_static is yes.
14411test "$enable_shared" = yes || enable_static=yes
14412{ echo "$as_me:$LINENO: result: $enable_static" >&5
14413echo "${ECHO_T}$enable_static" >&6; }
14414
14415GCC_F77="$G77"
14416LD_F77="$LD"
14417
14418lt_prog_compiler_wl_F77=
14419lt_prog_compiler_pic_F77=
14420lt_prog_compiler_static_F77=
14421
14422{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14423echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14424
14425  if test "$GCC" = yes; then
14426    lt_prog_compiler_wl_F77='-Wl,'
14427    lt_prog_compiler_static_F77='-static'
14428
14429    case $host_os in
14430      aix*)
14431      # All AIX code is PIC.
14432      if test "$host_cpu" = ia64; then
14433	# AIX 5 now supports IA64 processor
14434	lt_prog_compiler_static_F77='-Bstatic'
14435      fi
14436      ;;
14437
14438    amigaos*)
14439      # FIXME: we need at least 68020 code to build shared libraries, but
14440      # adding the `-m68020' flag to GCC prevents building anything better,
14441      # like `-m68040'.
14442      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14443      ;;
14444
14445    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14446      # PIC is the default for these OSes.
14447      ;;
14448
14449    mingw* | pw32* | os2*)
14450      # This hack is so that the source file can tell whether it is being
14451      # built for inclusion in a dll (and should export symbols for example).
14452      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14453      ;;
14454
14455    darwin* | rhapsody*)
14456      # PIC is the default on this platform
14457      # Common symbols not allowed in MH_DYLIB files
14458      lt_prog_compiler_pic_F77='-fno-common'
14459      ;;
14460
14461    interix3*)
14462      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14463      # Instead, we relocate shared libraries at runtime.
14464      ;;
14465
14466    msdosdjgpp*)
14467      # Just because we use GCC doesn't mean we suddenly get shared libraries
14468      # on systems that don't support them.
14469      lt_prog_compiler_can_build_shared_F77=no
14470      enable_shared=no
14471      ;;
14472
14473    sysv4*MP*)
14474      if test -d /usr/nec; then
14475	lt_prog_compiler_pic_F77=-Kconform_pic
14476      fi
14477      ;;
14478
14479    hpux*)
14480      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14481      # not for PA HP-UX.
14482      case $host_cpu in
14483      hppa*64*|ia64*)
14484	# +Z the default
14485	;;
14486      *)
14487	lt_prog_compiler_pic_F77='-fPIC'
14488	;;
14489      esac
14490      ;;
14491
14492    *)
14493      lt_prog_compiler_pic_F77='-fPIC'
14494      ;;
14495    esac
14496  else
14497    # PORTME Check for flag to pass linker flags through the system compiler.
14498    case $host_os in
14499    aix*)
14500      lt_prog_compiler_wl_F77='-Wl,'
14501      if test "$host_cpu" = ia64; then
14502	# AIX 5 now supports IA64 processor
14503	lt_prog_compiler_static_F77='-Bstatic'
14504      else
14505	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14506      fi
14507      ;;
14508      darwin*)
14509        # PIC is the default on this platform
14510        # Common symbols not allowed in MH_DYLIB files
14511       case $cc_basename in
14512         xlc*)
14513         lt_prog_compiler_pic_F77='-qnocommon'
14514         lt_prog_compiler_wl_F77='-Wl,'
14515         ;;
14516       esac
14517       ;;
14518
14519    mingw* | pw32* | os2*)
14520      # This hack is so that the source file can tell whether it is being
14521      # built for inclusion in a dll (and should export symbols for example).
14522      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14523      ;;
14524
14525    hpux9* | hpux10* | hpux11*)
14526      lt_prog_compiler_wl_F77='-Wl,'
14527      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14528      # not for PA HP-UX.
14529      case $host_cpu in
14530      hppa*64*|ia64*)
14531	# +Z the default
14532	;;
14533      *)
14534	lt_prog_compiler_pic_F77='+Z'
14535	;;
14536      esac
14537      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14538      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14539      ;;
14540
14541    irix5* | irix6* | nonstopux*)
14542      lt_prog_compiler_wl_F77='-Wl,'
14543      # PIC (with -KPIC) is the default.
14544      lt_prog_compiler_static_F77='-non_shared'
14545      ;;
14546
14547    newsos6)
14548      lt_prog_compiler_pic_F77='-KPIC'
14549      lt_prog_compiler_static_F77='-Bstatic'
14550      ;;
14551
14552    linux* | k*bsd*-gnu)
14553      case $cc_basename in
14554      icc* | ecc*)
14555	lt_prog_compiler_wl_F77='-Wl,'
14556	lt_prog_compiler_pic_F77='-KPIC'
14557	lt_prog_compiler_static_F77='-static'
14558        ;;
14559      pgcc* | pgf77* | pgf90* | pgf95*)
14560        # Portland Group compilers (*not* the Pentium gcc compiler,
14561	# which looks to be a dead project)
14562	lt_prog_compiler_wl_F77='-Wl,'
14563	lt_prog_compiler_pic_F77='-fpic'
14564	lt_prog_compiler_static_F77='-Bstatic'
14565        ;;
14566      ccc*)
14567        lt_prog_compiler_wl_F77='-Wl,'
14568        # All Alpha code is PIC.
14569        lt_prog_compiler_static_F77='-non_shared'
14570        ;;
14571      esac
14572      ;;
14573
14574    osf3* | osf4* | osf5*)
14575      lt_prog_compiler_wl_F77='-Wl,'
14576      # All OSF/1 code is PIC.
14577      lt_prog_compiler_static_F77='-non_shared'
14578      ;;
14579
14580    solaris*)
14581      lt_prog_compiler_pic_F77='-KPIC'
14582      lt_prog_compiler_static_F77='-Bstatic'
14583      case $cc_basename in
14584      f77* | f90* | f95*)
14585	lt_prog_compiler_wl_F77='-Qoption ld ';;
14586      *)
14587	lt_prog_compiler_wl_F77='-Wl,';;
14588      esac
14589      ;;
14590
14591    sunos4*)
14592      lt_prog_compiler_wl_F77='-Qoption ld '
14593      lt_prog_compiler_pic_F77='-PIC'
14594      lt_prog_compiler_static_F77='-Bstatic'
14595      ;;
14596
14597    sysv4 | sysv4.2uw2* | sysv4.3*)
14598      lt_prog_compiler_wl_F77='-Wl,'
14599      lt_prog_compiler_pic_F77='-KPIC'
14600      lt_prog_compiler_static_F77='-Bstatic'
14601      ;;
14602
14603    sysv4*MP*)
14604      if test -d /usr/nec ;then
14605	lt_prog_compiler_pic_F77='-Kconform_pic'
14606	lt_prog_compiler_static_F77='-Bstatic'
14607      fi
14608      ;;
14609
14610    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14611      lt_prog_compiler_wl_F77='-Wl,'
14612      lt_prog_compiler_pic_F77='-KPIC'
14613      lt_prog_compiler_static_F77='-Bstatic'
14614      ;;
14615
14616    unicos*)
14617      lt_prog_compiler_wl_F77='-Wl,'
14618      lt_prog_compiler_can_build_shared_F77=no
14619      ;;
14620
14621    uts4*)
14622      lt_prog_compiler_pic_F77='-pic'
14623      lt_prog_compiler_static_F77='-Bstatic'
14624      ;;
14625
14626    *)
14627      lt_prog_compiler_can_build_shared_F77=no
14628      ;;
14629    esac
14630  fi
14631
14632{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14633echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14634
14635#
14636# Check to make sure the PIC flag actually works.
14637#
14638if test -n "$lt_prog_compiler_pic_F77"; then
14639
14640{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14641echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14642if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14643  echo $ECHO_N "(cached) $ECHO_C" >&6
14644else
14645  lt_prog_compiler_pic_works_F77=no
14646  ac_outfile=conftest.$ac_objext
14647   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14648   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14649   # Insert the option either (1) after the last *FLAGS variable, or
14650   # (2) before a word containing "conftest.", or (3) at the end.
14651   # Note that $ac_compile itself does not contain backslashes and begins
14652   # with a dollar sign (not a hyphen), so the echo should work correctly.
14653   # The option is referenced via a variable to avoid confusing sed.
14654   lt_compile=`echo "$ac_compile" | $SED \
14655   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14656   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14657   -e 's:$: $lt_compiler_flag:'`
14658   (eval echo "\"\$as_me:14658: $lt_compile\"" >&5)
14659   (eval "$lt_compile" 2>conftest.err)
14660   ac_status=$?
14661   cat conftest.err >&5
14662   echo "$as_me:14662: \$? = $ac_status" >&5
14663   if (exit $ac_status) && test -s "$ac_outfile"; then
14664     # The compiler can only warn and ignore the option if not recognized
14665     # So say no if there are warnings other than the usual output.
14666     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14667     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14668     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14669       lt_prog_compiler_pic_works_F77=yes
14670     fi
14671   fi
14672   $rm conftest*
14673
14674fi
14675{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14676echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14677
14678if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14679    case $lt_prog_compiler_pic_F77 in
14680     "" | " "*) ;;
14681     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14682     esac
14683else
14684    lt_prog_compiler_pic_F77=
14685     lt_prog_compiler_can_build_shared_F77=no
14686fi
14687
14688fi
14689case $host_os in
14690  # For platforms which do not support PIC, -DPIC is meaningless:
14691  *djgpp*)
14692    lt_prog_compiler_pic_F77=
14693    ;;
14694  *)
14695    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14696    ;;
14697esac
14698
14699#
14700# Check to make sure the static flag actually works.
14701#
14702wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14703{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14704echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14705if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14706  echo $ECHO_N "(cached) $ECHO_C" >&6
14707else
14708  lt_prog_compiler_static_works_F77=no
14709   save_LDFLAGS="$LDFLAGS"
14710   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14711   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14712   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14713     # The linker can only warn and ignore the option if not recognized
14714     # So say no if there are warnings
14715     if test -s conftest.err; then
14716       # Append any errors to the config.log.
14717       cat conftest.err 1>&5
14718       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14719       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14720       if diff conftest.exp conftest.er2 >/dev/null; then
14721         lt_prog_compiler_static_works_F77=yes
14722       fi
14723     else
14724       lt_prog_compiler_static_works_F77=yes
14725     fi
14726   fi
14727   $rm conftest*
14728   LDFLAGS="$save_LDFLAGS"
14729
14730fi
14731{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14732echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14733
14734if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14735    :
14736else
14737    lt_prog_compiler_static_F77=
14738fi
14739
14740
14741{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14742echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14743if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14744  echo $ECHO_N "(cached) $ECHO_C" >&6
14745else
14746  lt_cv_prog_compiler_c_o_F77=no
14747   $rm -r conftest 2>/dev/null
14748   mkdir conftest
14749   cd conftest
14750   mkdir out
14751   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14752
14753   lt_compiler_flag="-o out/conftest2.$ac_objext"
14754   # Insert the option either (1) after the last *FLAGS variable, or
14755   # (2) before a word containing "conftest.", or (3) at the end.
14756   # Note that $ac_compile itself does not contain backslashes and begins
14757   # with a dollar sign (not a hyphen), so the echo should work correctly.
14758   lt_compile=`echo "$ac_compile" | $SED \
14759   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14760   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14761   -e 's:$: $lt_compiler_flag:'`
14762   (eval echo "\"\$as_me:14762: $lt_compile\"" >&5)
14763   (eval "$lt_compile" 2>out/conftest.err)
14764   ac_status=$?
14765   cat out/conftest.err >&5
14766   echo "$as_me:14766: \$? = $ac_status" >&5
14767   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14768   then
14769     # The compiler can only warn and ignore the option if not recognized
14770     # So say no if there are warnings
14771     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14772     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14773     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14774       lt_cv_prog_compiler_c_o_F77=yes
14775     fi
14776   fi
14777   chmod u+w . 2>&5
14778   $rm conftest*
14779   # SGI C++ compiler will create directory out/ii_files/ for
14780   # template instantiation
14781   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14782   $rm out/* && rmdir out
14783   cd ..
14784   rmdir conftest
14785   $rm conftest*
14786
14787fi
14788{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14789echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14790
14791
14792hard_links="nottested"
14793if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14794  # do not overwrite the value of need_locks provided by the user
14795  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14796echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14797  hard_links=yes
14798  $rm conftest*
14799  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14800  touch conftest.a
14801  ln conftest.a conftest.b 2>&5 || hard_links=no
14802  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14803  { echo "$as_me:$LINENO: result: $hard_links" >&5
14804echo "${ECHO_T}$hard_links" >&6; }
14805  if test "$hard_links" = no; then
14806    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14807echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14808    need_locks=warn
14809  fi
14810else
14811  need_locks=no
14812fi
14813
14814{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14815echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14816
14817  runpath_var=
14818  allow_undefined_flag_F77=
14819  enable_shared_with_static_runtimes_F77=no
14820  archive_cmds_F77=
14821  archive_expsym_cmds_F77=
14822  old_archive_From_new_cmds_F77=
14823  old_archive_from_expsyms_cmds_F77=
14824  export_dynamic_flag_spec_F77=
14825  whole_archive_flag_spec_F77=
14826  thread_safe_flag_spec_F77=
14827  hardcode_libdir_flag_spec_F77=
14828  hardcode_libdir_flag_spec_ld_F77=
14829  hardcode_libdir_separator_F77=
14830  hardcode_direct_F77=no
14831  hardcode_minus_L_F77=no
14832  hardcode_shlibpath_var_F77=unsupported
14833  link_all_deplibs_F77=unknown
14834  hardcode_automatic_F77=no
14835  module_cmds_F77=
14836  module_expsym_cmds_F77=
14837  always_export_symbols_F77=no
14838  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14839  # include_expsyms should be a list of space-separated symbols to be *always*
14840  # included in the symbol list
14841  include_expsyms_F77=
14842  # exclude_expsyms can be an extended regexp of symbols to exclude
14843  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14844  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14845  # as well as any symbol that contains `d'.
14846  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14847  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14848  # platforms (ab)use it in PIC code, but their linkers get confused if
14849  # the symbol is explicitly referenced.  Since portable code cannot
14850  # rely on this symbol name, it's probably fine to never include it in
14851  # preloaded symbol tables.
14852  extract_expsyms_cmds=
14853  # Just being paranoid about ensuring that cc_basename is set.
14854  for cc_temp in $compiler""; do
14855  case $cc_temp in
14856    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14857    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14858    \-*) ;;
14859    *) break;;
14860  esac
14861done
14862cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14863
14864  case $host_os in
14865  cygwin* | mingw* | pw32*)
14866    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14867    # When not using gcc, we currently assume that we are using
14868    # Microsoft Visual C++.
14869    if test "$GCC" != yes; then
14870      with_gnu_ld=no
14871    fi
14872    ;;
14873  interix*)
14874    # we just hope/assume this is gcc and not c89 (= MSVC++)
14875    with_gnu_ld=yes
14876    ;;
14877  openbsd*)
14878    with_gnu_ld=no
14879    ;;
14880  esac
14881
14882  ld_shlibs_F77=yes
14883  if test "$with_gnu_ld" = yes; then
14884    # If archive_cmds runs LD, not CC, wlarc should be empty
14885    wlarc='${wl}'
14886
14887    # Set some defaults for GNU ld with shared library support. These
14888    # are reset later if shared libraries are not supported. Putting them
14889    # here allows them to be overridden if necessary.
14890    runpath_var=LD_RUN_PATH
14891    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14892    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14893    # ancient GNU ld didn't support --whole-archive et. al.
14894    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14895	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14896      else
14897  	whole_archive_flag_spec_F77=
14898    fi
14899    supports_anon_versioning=no
14900    case `$LD -v 2>/dev/null` in
14901      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14902      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14903      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14904      *\ 2.11.*) ;; # other 2.11 versions
14905      *) supports_anon_versioning=yes ;;
14906    esac
14907
14908    # See if GNU ld supports shared libraries.
14909    case $host_os in
14910    aix3* | aix4* | aix5*)
14911      # On AIX/PPC, the GNU linker is very broken
14912      if test "$host_cpu" != ia64; then
14913	ld_shlibs_F77=no
14914	cat <<EOF 1>&2
14915
14916*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14917*** to be unable to reliably create shared libraries on AIX.
14918*** Therefore, libtool is disabling shared libraries support.  If you
14919*** really care for shared libraries, you may want to modify your PATH
14920*** so that a non-GNU linker is found, and then restart.
14921
14922EOF
14923      fi
14924      ;;
14925
14926    amigaos*)
14927      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)'
14928      hardcode_libdir_flag_spec_F77='-L$libdir'
14929      hardcode_minus_L_F77=yes
14930
14931      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14932      # that the semantics of dynamic libraries on AmigaOS, at least up
14933      # to version 4, is to share data among multiple programs linked
14934      # with the same dynamic library.  Since this doesn't match the
14935      # behavior of shared libraries on other platforms, we can't use
14936      # them.
14937      ld_shlibs_F77=no
14938      ;;
14939
14940    beos*)
14941      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14942	allow_undefined_flag_F77=unsupported
14943	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14944	# support --undefined.  This deserves some investigation.  FIXME
14945	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14946      else
14947	ld_shlibs_F77=no
14948      fi
14949      ;;
14950
14951    cygwin* | mingw* | pw32*)
14952      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14953      # as there is no search path for DLLs.
14954      hardcode_libdir_flag_spec_F77='-L$libdir'
14955      allow_undefined_flag_F77=unsupported
14956      always_export_symbols_F77=no
14957      enable_shared_with_static_runtimes_F77=yes
14958      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14959
14960      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14961        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14962	# If the export-symbols file already is a .def file (1st line
14963	# is EXPORTS), use it as is; otherwise, prepend...
14964	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14965	  cp $export_symbols $output_objdir/$soname.def;
14966	else
14967	  echo EXPORTS > $output_objdir/$soname.def;
14968	  cat $export_symbols >> $output_objdir/$soname.def;
14969	fi~
14970	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14971      else
14972	ld_shlibs_F77=no
14973      fi
14974      ;;
14975
14976    interix3*)
14977      hardcode_direct_F77=no
14978      hardcode_shlibpath_var_F77=no
14979      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14980      export_dynamic_flag_spec_F77='${wl}-E'
14981      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14982      # Instead, shared libraries are loaded at an image base (0x10000000 by
14983      # default) and relocated if they conflict, which is a slow very memory
14984      # consuming and fragmenting process.  To avoid this, we pick a random,
14985      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14986      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14987      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'
14988      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'
14989      ;;
14990
14991    linux* | k*bsd*-gnu)
14992      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14993	tmp_addflag=
14994	case $cc_basename,$host_cpu in
14995	pgcc*)				# Portland Group C compiler
14996	  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'
14997	  tmp_addflag=' $pic_flag'
14998	  ;;
14999	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15000	  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'
15001	  tmp_addflag=' $pic_flag -Mnomain' ;;
15002	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15003	  tmp_addflag=' -i_dynamic' ;;
15004	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15005	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15006	ifc* | ifort*)			# Intel Fortran compiler
15007	  tmp_addflag=' -nofor_main' ;;
15008	esac
15009	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15010
15011	if test $supports_anon_versioning = yes; then
15012	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15013  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15014  $echo "local: *; };" >> $output_objdir/$libname.ver~
15015	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15016	fi
15017	link_all_deplibs_F77=no
15018      else
15019	ld_shlibs_F77=no
15020      fi
15021      ;;
15022
15023    netbsd* | netbsdelf*-gnu)
15024      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15025	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15026	wlarc=
15027      else
15028	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15029	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15030      fi
15031      ;;
15032
15033    solaris*)
15034      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15035	ld_shlibs_F77=no
15036	cat <<EOF 1>&2
15037
15038*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15039*** create shared libraries on Solaris systems.  Therefore, libtool
15040*** is disabling shared libraries support.  We urge you to upgrade GNU
15041*** binutils to release 2.9.1 or newer.  Another option is to modify
15042*** your PATH or compiler configuration so that the native linker is
15043*** used, and then restart.
15044
15045EOF
15046      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15047	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15048	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15049      else
15050	ld_shlibs_F77=no
15051      fi
15052      ;;
15053
15054    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15055      case `$LD -v 2>&1` in
15056        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15057	ld_shlibs_F77=no
15058	cat <<_LT_EOF 1>&2
15059
15060*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15061*** reliably create shared libraries on SCO systems.  Therefore, libtool
15062*** is disabling shared libraries support.  We urge you to upgrade GNU
15063*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15064*** your PATH or compiler configuration so that the native linker is
15065*** used, and then restart.
15066
15067_LT_EOF
15068	;;
15069	*)
15070	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15071	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15072	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15073	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15074	  else
15075	    ld_shlibs_F77=no
15076	  fi
15077	;;
15078      esac
15079      ;;
15080
15081    sunos4*)
15082      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15083      wlarc=
15084      hardcode_direct_F77=yes
15085      hardcode_shlibpath_var_F77=no
15086      ;;
15087
15088    *)
15089      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15090	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15091	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15092      else
15093	ld_shlibs_F77=no
15094      fi
15095      ;;
15096    esac
15097
15098    if test "$ld_shlibs_F77" = no; then
15099      runpath_var=
15100      hardcode_libdir_flag_spec_F77=
15101      export_dynamic_flag_spec_F77=
15102      whole_archive_flag_spec_F77=
15103    fi
15104  else
15105    # PORTME fill in a description of your system's linker (not GNU ld)
15106    case $host_os in
15107    aix3*)
15108      allow_undefined_flag_F77=unsupported
15109      always_export_symbols_F77=yes
15110      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'
15111      # Note: this linker hardcodes the directories in LIBPATH if there
15112      # are no directories specified by -L.
15113      hardcode_minus_L_F77=yes
15114      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15115	# Neither direct hardcoding nor static linking is supported with a
15116	# broken collect2.
15117	hardcode_direct_F77=unsupported
15118      fi
15119      ;;
15120
15121    aix4* | aix5*)
15122      if test "$host_cpu" = ia64; then
15123	# On IA64, the linker does run time linking by default, so we don't
15124	# have to do anything special.
15125	aix_use_runtimelinking=no
15126	exp_sym_flag='-Bexport'
15127	no_entry_flag=""
15128      else
15129	# If we're using GNU nm, then we don't want the "-C" option.
15130	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15131	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15132	  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'
15133	else
15134	  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'
15135	fi
15136	aix_use_runtimelinking=no
15137
15138	# Test if we are trying to use run time linking or normal
15139	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15140	# need to do runtime linking.
15141	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15142	  for ld_flag in $LDFLAGS; do
15143  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15144  	    aix_use_runtimelinking=yes
15145  	    break
15146  	  fi
15147	  done
15148	  ;;
15149	esac
15150
15151	exp_sym_flag='-bexport'
15152	no_entry_flag='-bnoentry'
15153      fi
15154
15155      # When large executables or shared objects are built, AIX ld can
15156      # have problems creating the table of contents.  If linking a library
15157      # or program results in "error TOC overflow" add -mminimal-toc to
15158      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15159      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15160
15161      archive_cmds_F77=''
15162      hardcode_direct_F77=yes
15163      hardcode_libdir_separator_F77=':'
15164      link_all_deplibs_F77=yes
15165
15166      if test "$GCC" = yes; then
15167	case $host_os in aix4.[012]|aix4.[012].*)
15168	# We only want to do this on AIX 4.2 and lower, the check
15169	# below for broken collect2 doesn't work under 4.3+
15170	  collect2name=`${CC} -print-prog-name=collect2`
15171	  if test -f "$collect2name" && \
15172  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15173	  then
15174  	  # We have reworked collect2
15175  	  hardcode_direct_F77=yes
15176	  else
15177  	  # We have old collect2
15178  	  hardcode_direct_F77=unsupported
15179  	  # It fails to find uninstalled libraries when the uninstalled
15180  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15181  	  # to unsupported forces relinking
15182  	  hardcode_minus_L_F77=yes
15183  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15184  	  hardcode_libdir_separator_F77=
15185	  fi
15186	  ;;
15187	esac
15188	shared_flag='-shared'
15189	if test "$aix_use_runtimelinking" = yes; then
15190	  shared_flag="$shared_flag "'${wl}-G'
15191	fi
15192      else
15193	# not using gcc
15194	if test "$host_cpu" = ia64; then
15195  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15196  	# chokes on -Wl,-G. The following line is correct:
15197	  shared_flag='-G'
15198	else
15199	  if test "$aix_use_runtimelinking" = yes; then
15200	    shared_flag='${wl}-G'
15201	  else
15202	    shared_flag='${wl}-bM:SRE'
15203	  fi
15204	fi
15205      fi
15206
15207      # It seems that -bexpall does not export symbols beginning with
15208      # underscore (_), so it is better to generate a list of symbols to export.
15209      always_export_symbols_F77=yes
15210      if test "$aix_use_runtimelinking" = yes; then
15211	# Warning - without using the other runtime loading flags (-brtl),
15212	# -berok will link without error, but may produce a broken library.
15213	allow_undefined_flag_F77='-berok'
15214       # Determine the default libpath from the value encoded in an empty executable.
15215       cat >conftest.$ac_ext <<_ACEOF
15216      program main
15217
15218      end
15219_ACEOF
15220rm -f conftest.$ac_objext conftest$ac_exeext
15221if { (ac_try="$ac_link"
15222case "(($ac_try" in
15223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224  *) ac_try_echo=$ac_try;;
15225esac
15226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227  (eval "$ac_link") 2>conftest.er1
15228  ac_status=$?
15229  grep -v '^ *+' conftest.er1 >conftest.err
15230  rm -f conftest.er1
15231  cat conftest.err >&5
15232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233  (exit $ac_status); } &&
15234	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15235  { (case "(($ac_try" in
15236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237  *) ac_try_echo=$ac_try;;
15238esac
15239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240  (eval "$ac_try") 2>&5
15241  ac_status=$?
15242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243  (exit $ac_status); }; } &&
15244	 { ac_try='test -s conftest$ac_exeext'
15245  { (case "(($ac_try" in
15246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247  *) ac_try_echo=$ac_try;;
15248esac
15249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250  (eval "$ac_try") 2>&5
15251  ac_status=$?
15252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253  (exit $ac_status); }; }; then
15254
15255aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15256}'`
15257# Check for a 64-bit object if we didn't find anything.
15258if 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; }
15259}'`; fi
15260else
15261  echo "$as_me: failed program was:" >&5
15262sed 's/^/| /' conftest.$ac_ext >&5
15263
15264
15265fi
15266
15267rm -f core conftest.err conftest.$ac_objext \
15268      conftest$ac_exeext conftest.$ac_ext
15269if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15270
15271       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15272	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"
15273       else
15274	if test "$host_cpu" = ia64; then
15275	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15276	  allow_undefined_flag_F77="-z nodefs"
15277	  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"
15278	else
15279	 # Determine the default libpath from the value encoded in an empty executable.
15280	 cat >conftest.$ac_ext <<_ACEOF
15281      program main
15282
15283      end
15284_ACEOF
15285rm -f conftest.$ac_objext conftest$ac_exeext
15286if { (ac_try="$ac_link"
15287case "(($ac_try" in
15288  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289  *) ac_try_echo=$ac_try;;
15290esac
15291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15292  (eval "$ac_link") 2>conftest.er1
15293  ac_status=$?
15294  grep -v '^ *+' conftest.er1 >conftest.err
15295  rm -f conftest.er1
15296  cat conftest.err >&5
15297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298  (exit $ac_status); } &&
15299	 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15300  { (case "(($ac_try" in
15301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302  *) ac_try_echo=$ac_try;;
15303esac
15304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305  (eval "$ac_try") 2>&5
15306  ac_status=$?
15307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308  (exit $ac_status); }; } &&
15309	 { ac_try='test -s conftest$ac_exeext'
15310  { (case "(($ac_try" in
15311  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312  *) ac_try_echo=$ac_try;;
15313esac
15314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315  (eval "$ac_try") 2>&5
15316  ac_status=$?
15317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318  (exit $ac_status); }; }; then
15319
15320aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15321}'`
15322# Check for a 64-bit object if we didn't find anything.
15323if 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; }
15324}'`; fi
15325else
15326  echo "$as_me: failed program was:" >&5
15327sed 's/^/| /' conftest.$ac_ext >&5
15328
15329
15330fi
15331
15332rm -f core conftest.err conftest.$ac_objext \
15333      conftest$ac_exeext conftest.$ac_ext
15334if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15335
15336	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15337	  # Warning - without using the other run time loading flags,
15338	  # -berok will link without error, but may produce a broken library.
15339	  no_undefined_flag_F77=' ${wl}-bernotok'
15340	  allow_undefined_flag_F77=' ${wl}-berok'
15341	  # Exported symbols can be pulled into shared objects from archives
15342	  whole_archive_flag_spec_F77='$convenience'
15343	  archive_cmds_need_lc_F77=yes
15344	  # This is similar to how AIX traditionally builds its shared libraries.
15345	  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'
15346	fi
15347      fi
15348      ;;
15349
15350    amigaos*)
15351      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)'
15352      hardcode_libdir_flag_spec_F77='-L$libdir'
15353      hardcode_minus_L_F77=yes
15354      # see comment about different semantics on the GNU ld section
15355      ld_shlibs_F77=no
15356      ;;
15357
15358    bsdi[45]*)
15359      export_dynamic_flag_spec_F77=-rdynamic
15360      ;;
15361
15362    cygwin* | mingw* | pw32*)
15363      # When not using gcc, we currently assume that we are using
15364      # Microsoft Visual C++.
15365      # hardcode_libdir_flag_spec is actually meaningless, as there is
15366      # no search path for DLLs.
15367      hardcode_libdir_flag_spec_F77=' '
15368      allow_undefined_flag_F77=unsupported
15369      # Tell ltmain to make .lib files, not .a files.
15370      libext=lib
15371      # Tell ltmain to make .dll files, not .so files.
15372      shrext_cmds=".dll"
15373      # FIXME: Setting linknames here is a bad hack.
15374      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15375      # The linker will automatically build a .lib file if we build a DLL.
15376      old_archive_From_new_cmds_F77='true'
15377      # FIXME: Should let the user specify the lib program.
15378      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15379      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15380      enable_shared_with_static_runtimes_F77=yes
15381      ;;
15382
15383    darwin* | rhapsody*)
15384      case $host_os in
15385        rhapsody* | darwin1.[012])
15386         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15387         ;;
15388       *) # Darwin 1.3 on
15389         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15390           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15391         else
15392           case ${MACOSX_DEPLOYMENT_TARGET} in
15393             10.[012])
15394               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15395               ;;
15396             10.*)
15397               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15398               ;;
15399           esac
15400         fi
15401         ;;
15402      esac
15403      archive_cmds_need_lc_F77=no
15404      hardcode_direct_F77=no
15405      hardcode_automatic_F77=yes
15406      hardcode_shlibpath_var_F77=unsupported
15407      whole_archive_flag_spec_F77=''
15408      link_all_deplibs_F77=yes
15409    if test "$GCC" = yes ; then
15410    	output_verbose_link_cmd='echo'
15411        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15412      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15413      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15414      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}'
15415      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}'
15416    else
15417      case $cc_basename in
15418        xlc*)
15419         output_verbose_link_cmd='echo'
15420         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15421         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15422          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15423         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}'
15424          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}'
15425          ;;
15426       *)
15427         ld_shlibs_F77=no
15428          ;;
15429      esac
15430    fi
15431      ;;
15432
15433    dgux*)
15434      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15435      hardcode_libdir_flag_spec_F77='-L$libdir'
15436      hardcode_shlibpath_var_F77=no
15437      ;;
15438
15439    freebsd1*)
15440      ld_shlibs_F77=no
15441      ;;
15442
15443    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15444    # support.  Future versions do this automatically, but an explicit c++rt0.o
15445    # does not break anything, and helps significantly (at the cost of a little
15446    # extra space).
15447    freebsd2.2*)
15448      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15449      hardcode_libdir_flag_spec_F77='-R$libdir'
15450      hardcode_direct_F77=yes
15451      hardcode_shlibpath_var_F77=no
15452      ;;
15453
15454    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15455    freebsd2*)
15456      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15457      hardcode_direct_F77=yes
15458      hardcode_minus_L_F77=yes
15459      hardcode_shlibpath_var_F77=no
15460      ;;
15461
15462    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15463    freebsd* | dragonfly*)
15464      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15465      hardcode_libdir_flag_spec_F77='-R$libdir'
15466      hardcode_direct_F77=yes
15467      hardcode_shlibpath_var_F77=no
15468      ;;
15469
15470    hpux9*)
15471      if test "$GCC" = yes; then
15472	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'
15473      else
15474	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'
15475      fi
15476      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15477      hardcode_libdir_separator_F77=:
15478      hardcode_direct_F77=yes
15479
15480      # hardcode_minus_L: Not really in the search PATH,
15481      # but as the default location of the library.
15482      hardcode_minus_L_F77=yes
15483      export_dynamic_flag_spec_F77='${wl}-E'
15484      ;;
15485
15486    hpux10*)
15487      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15488	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15489      else
15490	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15491      fi
15492      if test "$with_gnu_ld" = no; then
15493	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15494	hardcode_libdir_separator_F77=:
15495
15496	hardcode_direct_F77=yes
15497	export_dynamic_flag_spec_F77='${wl}-E'
15498
15499	# hardcode_minus_L: Not really in the search PATH,
15500	# but as the default location of the library.
15501	hardcode_minus_L_F77=yes
15502      fi
15503      ;;
15504
15505    hpux11*)
15506      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15507	case $host_cpu in
15508	hppa*64*)
15509	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15510	  ;;
15511	ia64*)
15512	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15513	  ;;
15514	*)
15515	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15516	  ;;
15517	esac
15518      else
15519	case $host_cpu in
15520	hppa*64*)
15521	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15522	  ;;
15523	ia64*)
15524	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15525	  ;;
15526	*)
15527	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15528	  ;;
15529	esac
15530      fi
15531      if test "$with_gnu_ld" = no; then
15532	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15533	hardcode_libdir_separator_F77=:
15534
15535	case $host_cpu in
15536	hppa*64*|ia64*)
15537	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15538	  hardcode_direct_F77=no
15539	  hardcode_shlibpath_var_F77=no
15540	  ;;
15541	*)
15542	  hardcode_direct_F77=yes
15543	  export_dynamic_flag_spec_F77='${wl}-E'
15544
15545	  # hardcode_minus_L: Not really in the search PATH,
15546	  # but as the default location of the library.
15547	  hardcode_minus_L_F77=yes
15548	  ;;
15549	esac
15550      fi
15551      ;;
15552
15553    irix5* | irix6* | nonstopux*)
15554      if test "$GCC" = yes; then
15555	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'
15556      else
15557	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'
15558	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15559      fi
15560      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15561      hardcode_libdir_separator_F77=:
15562      link_all_deplibs_F77=yes
15563      ;;
15564
15565    netbsd* | netbsdelf*-gnu)
15566      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15567	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15568      else
15569	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15570      fi
15571      hardcode_libdir_flag_spec_F77='-R$libdir'
15572      hardcode_direct_F77=yes
15573      hardcode_shlibpath_var_F77=no
15574      ;;
15575
15576    newsos6)
15577      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15578      hardcode_direct_F77=yes
15579      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15580      hardcode_libdir_separator_F77=:
15581      hardcode_shlibpath_var_F77=no
15582      ;;
15583
15584    openbsd*)
15585      hardcode_direct_F77=yes
15586      hardcode_shlibpath_var_F77=no
15587      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15588	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15589	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15590	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15591	export_dynamic_flag_spec_F77='${wl}-E'
15592      else
15593       case $host_os in
15594	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15595	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15596	   hardcode_libdir_flag_spec_F77='-R$libdir'
15597	   ;;
15598	 *)
15599	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15600	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15601	   ;;
15602       esac
15603      fi
15604      ;;
15605
15606    os2*)
15607      hardcode_libdir_flag_spec_F77='-L$libdir'
15608      hardcode_minus_L_F77=yes
15609      allow_undefined_flag_F77=unsupported
15610      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'
15611      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15612      ;;
15613
15614    osf3*)
15615      if test "$GCC" = yes; then
15616	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15617	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'
15618      else
15619	allow_undefined_flag_F77=' -expect_unresolved \*'
15620	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'
15621      fi
15622      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15623      hardcode_libdir_separator_F77=:
15624      ;;
15625
15626    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15627      if test "$GCC" = yes; then
15628	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15629	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'
15630	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15631      else
15632	allow_undefined_flag_F77=' -expect_unresolved \*'
15633	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'
15634	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~
15635	$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'
15636
15637	# Both c and cxx compiler support -rpath directly
15638	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15639      fi
15640      hardcode_libdir_separator_F77=:
15641      ;;
15642
15643    solaris*)
15644      no_undefined_flag_F77=' -z text'
15645      if test "$GCC" = yes; then
15646	wlarc='${wl}'
15647	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15648	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15649	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15650      else
15651	wlarc=''
15652	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15653	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15654  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15655      fi
15656      hardcode_libdir_flag_spec_F77='-R$libdir'
15657      hardcode_shlibpath_var_F77=no
15658      case $host_os in
15659      solaris2.[0-5] | solaris2.[0-5].*) ;;
15660      *)
15661 	# The compiler driver will combine linker options so we
15662 	# cannot just pass the convience library names through
15663 	# without $wl, iff we do not link with $LD.
15664 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15665 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15666 	case $wlarc in
15667 	'')
15668 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15669 	*)
15670 	  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' ;;
15671 	esac ;;
15672      esac
15673      link_all_deplibs_F77=yes
15674      ;;
15675
15676    sunos4*)
15677      if test "x$host_vendor" = xsequent; then
15678	# Use $CC to link under sequent, because it throws in some extra .o
15679	# files that make .init and .fini sections work.
15680	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15681      else
15682	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15683      fi
15684      hardcode_libdir_flag_spec_F77='-L$libdir'
15685      hardcode_direct_F77=yes
15686      hardcode_minus_L_F77=yes
15687      hardcode_shlibpath_var_F77=no
15688      ;;
15689
15690    sysv4)
15691      case $host_vendor in
15692	sni)
15693	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15694	  hardcode_direct_F77=yes # is this really true???
15695	;;
15696	siemens)
15697	  ## LD is ld it makes a PLAMLIB
15698	  ## CC just makes a GrossModule.
15699	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15700	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15701	  hardcode_direct_F77=no
15702        ;;
15703	motorola)
15704	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15705	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15706	;;
15707      esac
15708      runpath_var='LD_RUN_PATH'
15709      hardcode_shlibpath_var_F77=no
15710      ;;
15711
15712    sysv4.3*)
15713      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15714      hardcode_shlibpath_var_F77=no
15715      export_dynamic_flag_spec_F77='-Bexport'
15716      ;;
15717
15718    sysv4*MP*)
15719      if test -d /usr/nec; then
15720	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15721	hardcode_shlibpath_var_F77=no
15722	runpath_var=LD_RUN_PATH
15723	hardcode_runpath_var=yes
15724	ld_shlibs_F77=yes
15725      fi
15726      ;;
15727
15728    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15729      no_undefined_flag_F77='${wl}-z,text'
15730      archive_cmds_need_lc_F77=no
15731      hardcode_shlibpath_var_F77=no
15732      runpath_var='LD_RUN_PATH'
15733
15734      if test "$GCC" = yes; then
15735	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15736	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15737      else
15738	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15739	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15740      fi
15741      ;;
15742
15743    sysv5* | sco3.2v5* | sco5v6*)
15744      # Note: We can NOT use -z defs as we might desire, because we do not
15745      # link with -lc, and that would cause any symbols used from libc to
15746      # always be unresolved, which means just about no library would
15747      # ever link correctly.  If we're not using GNU ld we use -z text
15748      # though, which does catch some bad symbols but isn't as heavy-handed
15749      # as -z defs.
15750      no_undefined_flag_F77='${wl}-z,text'
15751      allow_undefined_flag_F77='${wl}-z,nodefs'
15752      archive_cmds_need_lc_F77=no
15753      hardcode_shlibpath_var_F77=no
15754      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15755      hardcode_libdir_separator_F77=':'
15756      link_all_deplibs_F77=yes
15757      export_dynamic_flag_spec_F77='${wl}-Bexport'
15758      runpath_var='LD_RUN_PATH'
15759
15760      if test "$GCC" = yes; then
15761	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15762	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15763      else
15764	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15765	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15766      fi
15767      ;;
15768
15769    uts4*)
15770      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15771      hardcode_libdir_flag_spec_F77='-L$libdir'
15772      hardcode_shlibpath_var_F77=no
15773      ;;
15774
15775    *)
15776      ld_shlibs_F77=no
15777      ;;
15778    esac
15779  fi
15780
15781{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15782echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15783test "$ld_shlibs_F77" = no && can_build_shared=no
15784
15785#
15786# Do we need to explicitly link libc?
15787#
15788case "x$archive_cmds_need_lc_F77" in
15789x|xyes)
15790  # Assume -lc should be added
15791  archive_cmds_need_lc_F77=yes
15792
15793  if test "$enable_shared" = yes && test "$GCC" = yes; then
15794    case $archive_cmds_F77 in
15795    *'~'*)
15796      # FIXME: we may have to deal with multi-command sequences.
15797      ;;
15798    '$CC '*)
15799      # Test whether the compiler implicitly links with -lc since on some
15800      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15801      # to ld, don't add -lc before -lgcc.
15802      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15803echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15804      $rm conftest*
15805      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15806
15807      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15808  (eval $ac_compile) 2>&5
15809  ac_status=$?
15810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811  (exit $ac_status); } 2>conftest.err; then
15812        soname=conftest
15813        lib=conftest
15814        libobjs=conftest.$ac_objext
15815        deplibs=
15816        wl=$lt_prog_compiler_wl_F77
15817	pic_flag=$lt_prog_compiler_pic_F77
15818        compiler_flags=-v
15819        linker_flags=-v
15820        verstring=
15821        output_objdir=.
15822        libname=conftest
15823        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15824        allow_undefined_flag_F77=
15825        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15826  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15827  ac_status=$?
15828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829  (exit $ac_status); }
15830        then
15831	  archive_cmds_need_lc_F77=no
15832        else
15833	  archive_cmds_need_lc_F77=yes
15834        fi
15835        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15836      else
15837        cat conftest.err 1>&5
15838      fi
15839      $rm conftest*
15840      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15841echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15842      ;;
15843    esac
15844  fi
15845  ;;
15846esac
15847
15848{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15849echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15850library_names_spec=
15851libname_spec='lib$name'
15852soname_spec=
15853shrext_cmds=".so"
15854postinstall_cmds=
15855postuninstall_cmds=
15856finish_cmds=
15857finish_eval=
15858shlibpath_var=
15859shlibpath_overrides_runpath=unknown
15860version_type=none
15861dynamic_linker="$host_os ld.so"
15862sys_lib_dlsearch_path_spec="/lib /usr/lib"
15863if test "$GCC" = yes; then
15864  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15865  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15866    # if the path contains ";" then we assume it to be the separator
15867    # otherwise default to the standard path separator (i.e. ":") - it is
15868    # assumed that no part of a normal pathname contains ";" but that should
15869    # okay in the real world where ";" in dirpaths is itself problematic.
15870    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15871  else
15872    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15873  fi
15874else
15875  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15876fi
15877need_lib_prefix=unknown
15878hardcode_into_libs=no
15879
15880# when you set need_version to no, make sure it does not cause -set_version
15881# flags to be left without arguments
15882need_version=unknown
15883
15884case $host_os in
15885aix3*)
15886  version_type=linux
15887  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15888  shlibpath_var=LIBPATH
15889
15890  # AIX 3 has no versioning support, so we append a major version to the name.
15891  soname_spec='${libname}${release}${shared_ext}$major'
15892  ;;
15893
15894aix4* | aix5*)
15895  version_type=linux
15896  need_lib_prefix=no
15897  need_version=no
15898  hardcode_into_libs=yes
15899  if test "$host_cpu" = ia64; then
15900    # AIX 5 supports IA64
15901    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15902    shlibpath_var=LD_LIBRARY_PATH
15903  else
15904    # With GCC up to 2.95.x, collect2 would create an import file
15905    # for dependence libraries.  The import file would start with
15906    # the line `#! .'.  This would cause the generated library to
15907    # depend on `.', always an invalid library.  This was fixed in
15908    # development snapshots of GCC prior to 3.0.
15909    case $host_os in
15910      aix4 | aix4.[01] | aix4.[01].*)
15911      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15912	   echo ' yes '
15913	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15914	:
15915      else
15916	can_build_shared=no
15917      fi
15918      ;;
15919    esac
15920    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15921    # soname into executable. Probably we can add versioning support to
15922    # collect2, so additional links can be useful in future.
15923    if test "$aix_use_runtimelinking" = yes; then
15924      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15925      # instead of lib<name>.a to let people know that these are not
15926      # typical AIX shared libraries.
15927      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15928    else
15929      # We preserve .a as extension for shared libraries through AIX4.2
15930      # and later when we are not doing run time linking.
15931      library_names_spec='${libname}${release}.a $libname.a'
15932      soname_spec='${libname}${release}${shared_ext}$major'
15933    fi
15934    shlibpath_var=LIBPATH
15935  fi
15936  ;;
15937
15938amigaos*)
15939  library_names_spec='$libname.ixlibrary $libname.a'
15940  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15941  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'
15942  ;;
15943
15944beos*)
15945  library_names_spec='${libname}${shared_ext}'
15946  dynamic_linker="$host_os ld.so"
15947  shlibpath_var=LIBRARY_PATH
15948  ;;
15949
15950bsdi[45]*)
15951  version_type=linux
15952  need_version=no
15953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15954  soname_spec='${libname}${release}${shared_ext}$major'
15955  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15956  shlibpath_var=LD_LIBRARY_PATH
15957  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15958  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15959  # the default ld.so.conf also contains /usr/contrib/lib and
15960  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15961  # libtool to hard-code these into programs
15962  ;;
15963
15964cygwin* | mingw* | pw32*)
15965  version_type=windows
15966  shrext_cmds=".dll"
15967  need_version=no
15968  need_lib_prefix=no
15969
15970  case $GCC,$host_os in
15971  yes,cygwin* | yes,mingw* | yes,pw32*)
15972    library_names_spec='$libname.dll.a'
15973    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15974    postinstall_cmds='base_file=`basename \${file}`~
15975      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15976      dldir=$destdir/`dirname \$dlpath`~
15977      test -d \$dldir || mkdir -p \$dldir~
15978      $install_prog $dir/$dlname \$dldir/$dlname~
15979      chmod a+x \$dldir/$dlname'
15980    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15981      dlpath=$dir/\$dldll~
15982       $rm \$dlpath'
15983    shlibpath_overrides_runpath=yes
15984
15985    case $host_os in
15986    cygwin*)
15987      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15988      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15989      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15990      ;;
15991    mingw*)
15992      # MinGW DLLs use traditional 'lib' prefix
15993      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15994      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15995      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15996        # It is most probably a Windows format PATH printed by
15997        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15998        # path with ; separators, and with drive letters. We can handle the
15999        # drive letters (cygwin fileutils understands them), so leave them,
16000        # especially as we might pass files found there to a mingw objdump,
16001        # which wouldn't understand a cygwinified path. Ahh.
16002        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16003      else
16004        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16005      fi
16006      ;;
16007    pw32*)
16008      # pw32 DLLs use 'pw' prefix rather than 'lib'
16009      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16010      ;;
16011    esac
16012    ;;
16013
16014  *)
16015    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16016    ;;
16017  esac
16018  dynamic_linker='Win32 ld.exe'
16019  # FIXME: first we should search . and the directory the executable is in
16020  shlibpath_var=PATH
16021  ;;
16022
16023darwin* | rhapsody*)
16024  dynamic_linker="$host_os dyld"
16025  version_type=darwin
16026  need_lib_prefix=no
16027  need_version=no
16028  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16029  soname_spec='${libname}${release}${major}$shared_ext'
16030  shlibpath_overrides_runpath=yes
16031  shlibpath_var=DYLD_LIBRARY_PATH
16032  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16033  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16034  if test "$GCC" = yes; then
16035    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"`
16036  else
16037    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16038  fi
16039  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16040  ;;
16041
16042dgux*)
16043  version_type=linux
16044  need_lib_prefix=no
16045  need_version=no
16046  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16047  soname_spec='${libname}${release}${shared_ext}$major'
16048  shlibpath_var=LD_LIBRARY_PATH
16049  ;;
16050
16051freebsd1*)
16052  dynamic_linker=no
16053  ;;
16054
16055freebsd* | dragonfly*)
16056  # DragonFly does not have aout.  When/if they implement a new
16057  # versioning mechanism, adjust this.
16058  if test -x /usr/bin/objformat; then
16059    objformat=`/usr/bin/objformat`
16060  else
16061    case $host_os in
16062    freebsd[123]*) objformat=aout ;;
16063    *) objformat=elf ;;
16064    esac
16065  fi
16066  version_type=freebsd-$objformat
16067  case $version_type in
16068    freebsd-elf*)
16069      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16070      need_version=no
16071      need_lib_prefix=no
16072      ;;
16073    freebsd-*)
16074      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16075      need_version=yes
16076      ;;
16077  esac
16078  shlibpath_var=LD_LIBRARY_PATH
16079  case $host_os in
16080  freebsd2*)
16081    shlibpath_overrides_runpath=yes
16082    ;;
16083  freebsd3.[01]* | freebsdelf3.[01]*)
16084    shlibpath_overrides_runpath=yes
16085    hardcode_into_libs=yes
16086    ;;
16087  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16088  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16089    shlibpath_overrides_runpath=no
16090    hardcode_into_libs=yes
16091    ;;
16092  freebsd*) # from 4.6 on
16093    shlibpath_overrides_runpath=yes
16094    hardcode_into_libs=yes
16095    ;;
16096  esac
16097  ;;
16098
16099gnu*)
16100  version_type=linux
16101  need_lib_prefix=no
16102  need_version=no
16103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16104  soname_spec='${libname}${release}${shared_ext}$major'
16105  shlibpath_var=LD_LIBRARY_PATH
16106  hardcode_into_libs=yes
16107  ;;
16108
16109hpux9* | hpux10* | hpux11*)
16110  # Give a soname corresponding to the major version so that dld.sl refuses to
16111  # link against other versions.
16112  version_type=sunos
16113  need_lib_prefix=no
16114  need_version=no
16115  case $host_cpu in
16116  ia64*)
16117    shrext_cmds='.so'
16118    hardcode_into_libs=yes
16119    dynamic_linker="$host_os dld.so"
16120    shlibpath_var=LD_LIBRARY_PATH
16121    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16122    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16123    soname_spec='${libname}${release}${shared_ext}$major'
16124    if test "X$HPUX_IA64_MODE" = X32; then
16125      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16126    else
16127      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16128    fi
16129    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16130    ;;
16131   hppa*64*)
16132     shrext_cmds='.sl'
16133     hardcode_into_libs=yes
16134     dynamic_linker="$host_os dld.sl"
16135     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16136     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16137     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16138     soname_spec='${libname}${release}${shared_ext}$major'
16139     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16140     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16141     ;;
16142   *)
16143    shrext_cmds='.sl'
16144    dynamic_linker="$host_os dld.sl"
16145    shlibpath_var=SHLIB_PATH
16146    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16147    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16148    soname_spec='${libname}${release}${shared_ext}$major'
16149    ;;
16150  esac
16151  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16152  postinstall_cmds='chmod 555 $lib'
16153  ;;
16154
16155interix3*)
16156  version_type=linux
16157  need_lib_prefix=no
16158  need_version=no
16159  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16160  soname_spec='${libname}${release}${shared_ext}$major'
16161  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16162  shlibpath_var=LD_LIBRARY_PATH
16163  shlibpath_overrides_runpath=no
16164  hardcode_into_libs=yes
16165  ;;
16166
16167irix5* | irix6* | nonstopux*)
16168  case $host_os in
16169    nonstopux*) version_type=nonstopux ;;
16170    *)
16171	if test "$lt_cv_prog_gnu_ld" = yes; then
16172		version_type=linux
16173	else
16174		version_type=irix
16175	fi ;;
16176  esac
16177  need_lib_prefix=no
16178  need_version=no
16179  soname_spec='${libname}${release}${shared_ext}$major'
16180  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16181  case $host_os in
16182  irix5* | nonstopux*)
16183    libsuff= shlibsuff=
16184    ;;
16185  *)
16186    case $LD in # libtool.m4 will add one of these switches to LD
16187    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16188      libsuff= shlibsuff= libmagic=32-bit;;
16189    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16190      libsuff=32 shlibsuff=N32 libmagic=N32;;
16191    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16192      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16193    *) libsuff= shlibsuff= libmagic=never-match;;
16194    esac
16195    ;;
16196  esac
16197  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16198  shlibpath_overrides_runpath=no
16199  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16200  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16201  hardcode_into_libs=yes
16202  ;;
16203
16204# No shared lib support for Linux oldld, aout, or coff.
16205linux*oldld* | linux*aout* | linux*coff*)
16206  dynamic_linker=no
16207  ;;
16208
16209# This must be Linux ELF.
16210linux* | k*bsd*-gnu)
16211  version_type=linux
16212  need_lib_prefix=no
16213  need_version=no
16214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16215  soname_spec='${libname}${release}${shared_ext}$major'
16216  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16217  shlibpath_var=LD_LIBRARY_PATH
16218  shlibpath_overrides_runpath=no
16219  # This implies no fast_install, which is unacceptable.
16220  # Some rework will be needed to allow for fast_install
16221  # before this can be enabled.
16222  hardcode_into_libs=yes
16223
16224  # Append ld.so.conf contents to the search path
16225  if test -f /etc/ld.so.conf; then
16226    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' ' '`
16227    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16228  fi
16229
16230  # We used to test for /lib/ld.so.1 and disable shared libraries on
16231  # powerpc, because MkLinux only supported shared libraries with the
16232  # GNU dynamic linker.  Since this was broken with cross compilers,
16233  # most powerpc-linux boxes support dynamic linking these days and
16234  # people can always --disable-shared, the test was removed, and we
16235  # assume the GNU/Linux dynamic linker is in use.
16236  dynamic_linker='GNU/Linux ld.so'
16237  ;;
16238
16239netbsdelf*-gnu)
16240  version_type=linux
16241  need_lib_prefix=no
16242  need_version=no
16243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16244  soname_spec='${libname}${release}${shared_ext}$major'
16245  shlibpath_var=LD_LIBRARY_PATH
16246  shlibpath_overrides_runpath=no
16247  hardcode_into_libs=yes
16248  dynamic_linker='NetBSD ld.elf_so'
16249  ;;
16250
16251netbsd*)
16252  version_type=sunos
16253  need_lib_prefix=no
16254  need_version=no
16255  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16256    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16257    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16258    dynamic_linker='NetBSD (a.out) ld.so'
16259  else
16260    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16261    soname_spec='${libname}${release}${shared_ext}$major'
16262    dynamic_linker='NetBSD ld.elf_so'
16263  fi
16264  shlibpath_var=LD_LIBRARY_PATH
16265  shlibpath_overrides_runpath=yes
16266  hardcode_into_libs=yes
16267  ;;
16268
16269newsos6)
16270  version_type=linux
16271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16272  shlibpath_var=LD_LIBRARY_PATH
16273  shlibpath_overrides_runpath=yes
16274  ;;
16275
16276nto-qnx*)
16277  version_type=linux
16278  need_lib_prefix=no
16279  need_version=no
16280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281  soname_spec='${libname}${release}${shared_ext}$major'
16282  shlibpath_var=LD_LIBRARY_PATH
16283  shlibpath_overrides_runpath=yes
16284  ;;
16285
16286openbsd*)
16287  version_type=sunos
16288  sys_lib_dlsearch_path_spec="/usr/lib"
16289  need_lib_prefix=no
16290  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16291  case $host_os in
16292    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16293    *)                         need_version=no  ;;
16294  esac
16295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16296  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16297  shlibpath_var=LD_LIBRARY_PATH
16298  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16299    case $host_os in
16300      openbsd2.[89] | openbsd2.[89].*)
16301	shlibpath_overrides_runpath=no
16302	;;
16303      *)
16304	shlibpath_overrides_runpath=yes
16305	;;
16306      esac
16307  else
16308    shlibpath_overrides_runpath=yes
16309  fi
16310  ;;
16311
16312os2*)
16313  libname_spec='$name'
16314  shrext_cmds=".dll"
16315  need_lib_prefix=no
16316  library_names_spec='$libname${shared_ext} $libname.a'
16317  dynamic_linker='OS/2 ld.exe'
16318  shlibpath_var=LIBPATH
16319  ;;
16320
16321osf3* | osf4* | osf5*)
16322  version_type=osf
16323  need_lib_prefix=no
16324  need_version=no
16325  soname_spec='${libname}${release}${shared_ext}$major'
16326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16327  shlibpath_var=LD_LIBRARY_PATH
16328  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16329  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16330  ;;
16331
16332solaris*)
16333  version_type=linux
16334  need_lib_prefix=no
16335  need_version=no
16336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16337  soname_spec='${libname}${release}${shared_ext}$major'
16338  shlibpath_var=LD_LIBRARY_PATH
16339  shlibpath_overrides_runpath=yes
16340  hardcode_into_libs=yes
16341  # ldd complains unless libraries are executable
16342  postinstall_cmds='chmod +x $lib'
16343  ;;
16344
16345sunos4*)
16346  version_type=sunos
16347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16348  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16349  shlibpath_var=LD_LIBRARY_PATH
16350  shlibpath_overrides_runpath=yes
16351  if test "$with_gnu_ld" = yes; then
16352    need_lib_prefix=no
16353  fi
16354  need_version=yes
16355  ;;
16356
16357sysv4 | sysv4.3*)
16358  version_type=linux
16359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16360  soname_spec='${libname}${release}${shared_ext}$major'
16361  shlibpath_var=LD_LIBRARY_PATH
16362  case $host_vendor in
16363    sni)
16364      shlibpath_overrides_runpath=no
16365      need_lib_prefix=no
16366      export_dynamic_flag_spec='${wl}-Blargedynsym'
16367      runpath_var=LD_RUN_PATH
16368      ;;
16369    siemens)
16370      need_lib_prefix=no
16371      ;;
16372    motorola)
16373      need_lib_prefix=no
16374      need_version=no
16375      shlibpath_overrides_runpath=no
16376      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16377      ;;
16378  esac
16379  ;;
16380
16381sysv4*MP*)
16382  if test -d /usr/nec ;then
16383    version_type=linux
16384    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16385    soname_spec='$libname${shared_ext}.$major'
16386    shlibpath_var=LD_LIBRARY_PATH
16387  fi
16388  ;;
16389
16390sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16391  version_type=freebsd-elf
16392  need_lib_prefix=no
16393  need_version=no
16394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16395  soname_spec='${libname}${release}${shared_ext}$major'
16396  shlibpath_var=LD_LIBRARY_PATH
16397  hardcode_into_libs=yes
16398  if test "$with_gnu_ld" = yes; then
16399    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16400    shlibpath_overrides_runpath=no
16401  else
16402    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16403    shlibpath_overrides_runpath=yes
16404    case $host_os in
16405      sco3.2v5*)
16406        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16407	;;
16408    esac
16409  fi
16410  sys_lib_dlsearch_path_spec='/usr/lib'
16411  ;;
16412
16413uts4*)
16414  version_type=linux
16415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416  soname_spec='${libname}${release}${shared_ext}$major'
16417  shlibpath_var=LD_LIBRARY_PATH
16418  ;;
16419
16420*)
16421  dynamic_linker=no
16422  ;;
16423esac
16424{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16425echo "${ECHO_T}$dynamic_linker" >&6; }
16426test "$dynamic_linker" = no && can_build_shared=no
16427
16428variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16429if test "$GCC" = yes; then
16430  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16431fi
16432
16433{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16434echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16435hardcode_action_F77=
16436if test -n "$hardcode_libdir_flag_spec_F77" || \
16437   test -n "$runpath_var_F77" || \
16438   test "X$hardcode_automatic_F77" = "Xyes" ; then
16439
16440  # We can hardcode non-existant directories.
16441  if test "$hardcode_direct_F77" != no &&
16442     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16443     # have to relink, otherwise we might link with an installed library
16444     # when we should be linking with a yet-to-be-installed one
16445     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16446     test "$hardcode_minus_L_F77" != no; then
16447    # Linking always hardcodes the temporary library directory.
16448    hardcode_action_F77=relink
16449  else
16450    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16451    hardcode_action_F77=immediate
16452  fi
16453else
16454  # We cannot hardcode anything, or else we can only hardcode existing
16455  # directories.
16456  hardcode_action_F77=unsupported
16457fi
16458{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16459echo "${ECHO_T}$hardcode_action_F77" >&6; }
16460
16461if test "$hardcode_action_F77" = relink; then
16462  # Fast installation is not supported
16463  enable_fast_install=no
16464elif test "$shlibpath_overrides_runpath" = yes ||
16465     test "$enable_shared" = no; then
16466  # Fast installation is not necessary
16467  enable_fast_install=needless
16468fi
16469
16470
16471# The else clause should only fire when bootstrapping the
16472# libtool distribution, otherwise you forgot to ship ltmain.sh
16473# with your package, and you will get complaints that there are
16474# no rules to generate ltmain.sh.
16475if test -f "$ltmain"; then
16476  # See if we are running on zsh, and set the options which allow our commands through
16477  # without removal of \ escapes.
16478  if test -n "${ZSH_VERSION+set}" ; then
16479    setopt NO_GLOB_SUBST
16480  fi
16481  # Now quote all the things that may contain metacharacters while being
16482  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16483  # variables and quote the copies for generation of the libtool script.
16484  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16485    SED SHELL STRIP \
16486    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16487    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16488    deplibs_check_method reload_flag reload_cmds need_locks \
16489    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16490    lt_cv_sys_global_symbol_to_c_name_address \
16491    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16492    old_postinstall_cmds old_postuninstall_cmds \
16493    compiler_F77 \
16494    CC_F77 \
16495    LD_F77 \
16496    lt_prog_compiler_wl_F77 \
16497    lt_prog_compiler_pic_F77 \
16498    lt_prog_compiler_static_F77 \
16499    lt_prog_compiler_no_builtin_flag_F77 \
16500    export_dynamic_flag_spec_F77 \
16501    thread_safe_flag_spec_F77 \
16502    whole_archive_flag_spec_F77 \
16503    enable_shared_with_static_runtimes_F77 \
16504    old_archive_cmds_F77 \
16505    old_archive_from_new_cmds_F77 \
16506    predep_objects_F77 \
16507    postdep_objects_F77 \
16508    predeps_F77 \
16509    postdeps_F77 \
16510    compiler_lib_search_path_F77 \
16511    archive_cmds_F77 \
16512    archive_expsym_cmds_F77 \
16513    postinstall_cmds_F77 \
16514    postuninstall_cmds_F77 \
16515    old_archive_from_expsyms_cmds_F77 \
16516    allow_undefined_flag_F77 \
16517    no_undefined_flag_F77 \
16518    export_symbols_cmds_F77 \
16519    hardcode_libdir_flag_spec_F77 \
16520    hardcode_libdir_flag_spec_ld_F77 \
16521    hardcode_libdir_separator_F77 \
16522    hardcode_automatic_F77 \
16523    module_cmds_F77 \
16524    module_expsym_cmds_F77 \
16525    lt_cv_prog_compiler_c_o_F77 \
16526    exclude_expsyms_F77 \
16527    include_expsyms_F77; do
16528
16529    case $var in
16530    old_archive_cmds_F77 | \
16531    old_archive_from_new_cmds_F77 | \
16532    archive_cmds_F77 | \
16533    archive_expsym_cmds_F77 | \
16534    module_cmds_F77 | \
16535    module_expsym_cmds_F77 | \
16536    old_archive_from_expsyms_cmds_F77 | \
16537    export_symbols_cmds_F77 | \
16538    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16539    postinstall_cmds | postuninstall_cmds | \
16540    old_postinstall_cmds | old_postuninstall_cmds | \
16541    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16542      # Double-quote double-evaled strings.
16543      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16544      ;;
16545    *)
16546      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16547      ;;
16548    esac
16549  done
16550
16551  case $lt_echo in
16552  *'\$0 --fallback-echo"')
16553    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16554    ;;
16555  esac
16556
16557cfgfile="$ofile"
16558
16559  cat <<__EOF__ >> "$cfgfile"
16560# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16561
16562# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16563
16564# Shell to use when invoking shell scripts.
16565SHELL=$lt_SHELL
16566
16567# Whether or not to build shared libraries.
16568build_libtool_libs=$enable_shared
16569
16570# Whether or not to build static libraries.
16571build_old_libs=$enable_static
16572
16573# Whether or not to add -lc for building shared libraries.
16574build_libtool_need_lc=$archive_cmds_need_lc_F77
16575
16576# Whether or not to disallow shared libs when runtime libs are static
16577allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16578
16579# Whether or not to optimize for fast installation.
16580fast_install=$enable_fast_install
16581
16582# The host system.
16583host_alias=$host_alias
16584host=$host
16585host_os=$host_os
16586
16587# The build system.
16588build_alias=$build_alias
16589build=$build
16590build_os=$build_os
16591
16592# An echo program that does not interpret backslashes.
16593echo=$lt_echo
16594
16595# The archiver.
16596AR=$lt_AR
16597AR_FLAGS=$lt_AR_FLAGS
16598
16599# A C compiler.
16600LTCC=$lt_LTCC
16601
16602# LTCC compiler flags.
16603LTCFLAGS=$lt_LTCFLAGS
16604
16605# A language-specific compiler.
16606CC=$lt_compiler_F77
16607
16608# Is the compiler the GNU C compiler?
16609with_gcc=$GCC_F77
16610
16611# An ERE matcher.
16612EGREP=$lt_EGREP
16613
16614# The linker used to build libraries.
16615LD=$lt_LD_F77
16616
16617# Whether we need hard or soft links.
16618LN_S=$lt_LN_S
16619
16620# A BSD-compatible nm program.
16621NM=$lt_NM
16622
16623# A symbol stripping program
16624STRIP=$lt_STRIP
16625
16626# Used to examine libraries when file_magic_cmd begins "file"
16627MAGIC_CMD=$MAGIC_CMD
16628
16629# Used on cygwin: DLL creation program.
16630DLLTOOL="$DLLTOOL"
16631
16632# Used on cygwin: object dumper.
16633OBJDUMP="$OBJDUMP"
16634
16635# Used on cygwin: assembler.
16636AS="$AS"
16637
16638# The name of the directory that contains temporary libtool files.
16639objdir=$objdir
16640
16641# How to create reloadable object files.
16642reload_flag=$lt_reload_flag
16643reload_cmds=$lt_reload_cmds
16644
16645# How to pass a linker flag through the compiler.
16646wl=$lt_lt_prog_compiler_wl_F77
16647
16648# Object file suffix (normally "o").
16649objext="$ac_objext"
16650
16651# Old archive suffix (normally "a").
16652libext="$libext"
16653
16654# Shared library suffix (normally ".so").
16655shrext_cmds='$shrext_cmds'
16656
16657# Executable file suffix (normally "").
16658exeext="$exeext"
16659
16660# Additional compiler flags for building library objects.
16661pic_flag=$lt_lt_prog_compiler_pic_F77
16662pic_mode=$pic_mode
16663
16664# What is the maximum length of a command?
16665max_cmd_len=$lt_cv_sys_max_cmd_len
16666
16667# Does compiler simultaneously support -c and -o options?
16668compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16669
16670# Must we lock files when doing compilation?
16671need_locks=$lt_need_locks
16672
16673# Do we need the lib prefix for modules?
16674need_lib_prefix=$need_lib_prefix
16675
16676# Do we need a version for libraries?
16677need_version=$need_version
16678
16679# Whether dlopen is supported.
16680dlopen_support=$enable_dlopen
16681
16682# Whether dlopen of programs is supported.
16683dlopen_self=$enable_dlopen_self
16684
16685# Whether dlopen of statically linked programs is supported.
16686dlopen_self_static=$enable_dlopen_self_static
16687
16688# Compiler flag to prevent dynamic linking.
16689link_static_flag=$lt_lt_prog_compiler_static_F77
16690
16691# Compiler flag to turn off builtin functions.
16692no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16693
16694# Compiler flag to allow reflexive dlopens.
16695export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16696
16697# Compiler flag to generate shared objects directly from archives.
16698whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16699
16700# Compiler flag to generate thread-safe objects.
16701thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16702
16703# Library versioning type.
16704version_type=$version_type
16705
16706# Format of library name prefix.
16707libname_spec=$lt_libname_spec
16708
16709# List of archive names.  First name is the real one, the rest are links.
16710# The last name is the one that the linker finds with -lNAME.
16711library_names_spec=$lt_library_names_spec
16712
16713# The coded name of the library, if different from the real name.
16714soname_spec=$lt_soname_spec
16715
16716# Commands used to build and install an old-style archive.
16717RANLIB=$lt_RANLIB
16718old_archive_cmds=$lt_old_archive_cmds_F77
16719old_postinstall_cmds=$lt_old_postinstall_cmds
16720old_postuninstall_cmds=$lt_old_postuninstall_cmds
16721
16722# Create an old-style archive from a shared archive.
16723old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16724
16725# Create a temporary old-style archive to link instead of a shared archive.
16726old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16727
16728# Commands used to build and install a shared archive.
16729archive_cmds=$lt_archive_cmds_F77
16730archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16731postinstall_cmds=$lt_postinstall_cmds
16732postuninstall_cmds=$lt_postuninstall_cmds
16733
16734# Commands used to build a loadable module (assumed same as above if empty)
16735module_cmds=$lt_module_cmds_F77
16736module_expsym_cmds=$lt_module_expsym_cmds_F77
16737
16738# Commands to strip libraries.
16739old_striplib=$lt_old_striplib
16740striplib=$lt_striplib
16741
16742# Dependencies to place before the objects being linked to create a
16743# shared library.
16744predep_objects=$lt_predep_objects_F77
16745
16746# Dependencies to place after the objects being linked to create a
16747# shared library.
16748postdep_objects=$lt_postdep_objects_F77
16749
16750# Dependencies to place before the objects being linked to create a
16751# shared library.
16752predeps=$lt_predeps_F77
16753
16754# Dependencies to place after the objects being linked to create a
16755# shared library.
16756postdeps=$lt_postdeps_F77
16757
16758# The library search path used internally by the compiler when linking
16759# a shared library.
16760compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16761
16762# Method to check whether dependent libraries are shared objects.
16763deplibs_check_method=$lt_deplibs_check_method
16764
16765# Command to use when deplibs_check_method == file_magic.
16766file_magic_cmd=$lt_file_magic_cmd
16767
16768# Flag that allows shared libraries with undefined symbols to be built.
16769allow_undefined_flag=$lt_allow_undefined_flag_F77
16770
16771# Flag that forces no undefined symbols.
16772no_undefined_flag=$lt_no_undefined_flag_F77
16773
16774# Commands used to finish a libtool library installation in a directory.
16775finish_cmds=$lt_finish_cmds
16776
16777# Same as above, but a single script fragment to be evaled but not shown.
16778finish_eval=$lt_finish_eval
16779
16780# Take the output of nm and produce a listing of raw symbols and C names.
16781global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16782
16783# Transform the output of nm in a proper C declaration
16784global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16785
16786# Transform the output of nm in a C name address pair
16787global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16788
16789# This is the shared library runtime path variable.
16790runpath_var=$runpath_var
16791
16792# This is the shared library path variable.
16793shlibpath_var=$shlibpath_var
16794
16795# Is shlibpath searched before the hard-coded library search path?
16796shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16797
16798# How to hardcode a shared library path into an executable.
16799hardcode_action=$hardcode_action_F77
16800
16801# Whether we should hardcode library paths into libraries.
16802hardcode_into_libs=$hardcode_into_libs
16803
16804# Flag to hardcode \$libdir into a binary during linking.
16805# This must work even if \$libdir does not exist.
16806hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16807
16808# If ld is used when linking, flag to hardcode \$libdir into
16809# a binary during linking. This must work even if \$libdir does
16810# not exist.
16811hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16812
16813# Whether we need a single -rpath flag with a separated argument.
16814hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16815
16816# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16817# resulting binary.
16818hardcode_direct=$hardcode_direct_F77
16819
16820# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16821# resulting binary.
16822hardcode_minus_L=$hardcode_minus_L_F77
16823
16824# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16825# the resulting binary.
16826hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16827
16828# Set to yes if building a shared library automatically hardcodes DIR into the library
16829# and all subsequent libraries and executables linked against it.
16830hardcode_automatic=$hardcode_automatic_F77
16831
16832# Variables whose values should be saved in libtool wrapper scripts and
16833# restored at relink time.
16834variables_saved_for_relink="$variables_saved_for_relink"
16835
16836# Whether libtool must link a program against all its dependency libraries.
16837link_all_deplibs=$link_all_deplibs_F77
16838
16839# Compile-time system search path for libraries
16840sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16841
16842# Run-time system search path for libraries
16843sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16844
16845# Fix the shell variable \$srcfile for the compiler.
16846fix_srcfile_path="$fix_srcfile_path_F77"
16847
16848# Set to yes if exported symbols are required.
16849always_export_symbols=$always_export_symbols_F77
16850
16851# The commands to list exported symbols.
16852export_symbols_cmds=$lt_export_symbols_cmds_F77
16853
16854# The commands to extract the exported symbol list from a shared archive.
16855extract_expsyms_cmds=$lt_extract_expsyms_cmds
16856
16857# Symbols that should not be listed in the preloaded symbols.
16858exclude_expsyms=$lt_exclude_expsyms_F77
16859
16860# Symbols that must always be exported.
16861include_expsyms=$lt_include_expsyms_F77
16862
16863# ### END LIBTOOL TAG CONFIG: $tagname
16864
16865__EOF__
16866
16867
16868else
16869  # If there is no Makefile yet, we rely on a make rule to execute
16870  # `config.status --recheck' to rerun these tests and create the
16871  # libtool script then.
16872  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16873  if test -f "$ltmain_in"; then
16874    test -f Makefile && make "$ltmain"
16875  fi
16876fi
16877
16878
16879ac_ext=c
16880ac_cpp='$CPP $CPPFLAGS'
16881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16883ac_compiler_gnu=$ac_cv_c_compiler_gnu
16884
16885CC="$lt_save_CC"
16886
16887	else
16888	  tagname=""
16889	fi
16890	;;
16891
16892      GCJ)
16893	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16894
16895
16896# Source file extension for Java test sources.
16897ac_ext=java
16898
16899# Object file extension for compiled Java test sources.
16900objext=o
16901objext_GCJ=$objext
16902
16903# Code to be used in simple compile tests
16904lt_simple_compile_test_code="class foo {}\n"
16905
16906# Code to be used in simple link tests
16907lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16908
16909# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16910
16911# If no C compiler was specified, use CC.
16912LTCC=${LTCC-"$CC"}
16913
16914# If no C compiler flags were specified, use CFLAGS.
16915LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16916
16917# Allow CC to be a program name with arguments.
16918compiler=$CC
16919
16920
16921# save warnings/boilerplate of simple test code
16922ac_outfile=conftest.$ac_objext
16923printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16924eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16925_lt_compiler_boilerplate=`cat conftest.err`
16926$rm conftest*
16927
16928ac_outfile=conftest.$ac_objext
16929printf "$lt_simple_link_test_code" >conftest.$ac_ext
16930eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16931_lt_linker_boilerplate=`cat conftest.err`
16932$rm conftest*
16933
16934
16935# Allow CC to be a program name with arguments.
16936lt_save_CC="$CC"
16937CC=${GCJ-"gcj"}
16938compiler=$CC
16939compiler_GCJ=$CC
16940for cc_temp in $compiler""; do
16941  case $cc_temp in
16942    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16943    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16944    \-*) ;;
16945    *) break;;
16946  esac
16947done
16948cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16949
16950
16951# GCJ did not exist at the time GCC didn't implicitly link libc in.
16952archive_cmds_need_lc_GCJ=no
16953
16954old_archive_cmds_GCJ=$old_archive_cmds
16955
16956
16957lt_prog_compiler_no_builtin_flag_GCJ=
16958
16959if test "$GCC" = yes; then
16960  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16961
16962
16963{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16964echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16965if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16966  echo $ECHO_N "(cached) $ECHO_C" >&6
16967else
16968  lt_cv_prog_compiler_rtti_exceptions=no
16969  ac_outfile=conftest.$ac_objext
16970   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16971   lt_compiler_flag="-fno-rtti -fno-exceptions"
16972   # Insert the option either (1) after the last *FLAGS variable, or
16973   # (2) before a word containing "conftest.", or (3) at the end.
16974   # Note that $ac_compile itself does not contain backslashes and begins
16975   # with a dollar sign (not a hyphen), so the echo should work correctly.
16976   # The option is referenced via a variable to avoid confusing sed.
16977   lt_compile=`echo "$ac_compile" | $SED \
16978   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16979   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16980   -e 's:$: $lt_compiler_flag:'`
16981   (eval echo "\"\$as_me:16981: $lt_compile\"" >&5)
16982   (eval "$lt_compile" 2>conftest.err)
16983   ac_status=$?
16984   cat conftest.err >&5
16985   echo "$as_me:16985: \$? = $ac_status" >&5
16986   if (exit $ac_status) && test -s "$ac_outfile"; then
16987     # The compiler can only warn and ignore the option if not recognized
16988     # So say no if there are warnings other than the usual output.
16989     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16990     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16991     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16992       lt_cv_prog_compiler_rtti_exceptions=yes
16993     fi
16994   fi
16995   $rm conftest*
16996
16997fi
16998{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16999echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17000
17001if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17002    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17003else
17004    :
17005fi
17006
17007fi
17008
17009lt_prog_compiler_wl_GCJ=
17010lt_prog_compiler_pic_GCJ=
17011lt_prog_compiler_static_GCJ=
17012
17013{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17014echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17015
17016  if test "$GCC" = yes; then
17017    lt_prog_compiler_wl_GCJ='-Wl,'
17018    lt_prog_compiler_static_GCJ='-static'
17019
17020    case $host_os in
17021      aix*)
17022      # All AIX code is PIC.
17023      if test "$host_cpu" = ia64; then
17024	# AIX 5 now supports IA64 processor
17025	lt_prog_compiler_static_GCJ='-Bstatic'
17026      fi
17027      ;;
17028
17029    amigaos*)
17030      # FIXME: we need at least 68020 code to build shared libraries, but
17031      # adding the `-m68020' flag to GCC prevents building anything better,
17032      # like `-m68040'.
17033      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17034      ;;
17035
17036    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17037      # PIC is the default for these OSes.
17038      ;;
17039
17040    mingw* | pw32* | os2*)
17041      # This hack is so that the source file can tell whether it is being
17042      # built for inclusion in a dll (and should export symbols for example).
17043      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17044      ;;
17045
17046    darwin* | rhapsody*)
17047      # PIC is the default on this platform
17048      # Common symbols not allowed in MH_DYLIB files
17049      lt_prog_compiler_pic_GCJ='-fno-common'
17050      ;;
17051
17052    interix3*)
17053      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17054      # Instead, we relocate shared libraries at runtime.
17055      ;;
17056
17057    msdosdjgpp*)
17058      # Just because we use GCC doesn't mean we suddenly get shared libraries
17059      # on systems that don't support them.
17060      lt_prog_compiler_can_build_shared_GCJ=no
17061      enable_shared=no
17062      ;;
17063
17064    sysv4*MP*)
17065      if test -d /usr/nec; then
17066	lt_prog_compiler_pic_GCJ=-Kconform_pic
17067      fi
17068      ;;
17069
17070    hpux*)
17071      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17072      # not for PA HP-UX.
17073      case $host_cpu in
17074      hppa*64*|ia64*)
17075	# +Z the default
17076	;;
17077      *)
17078	lt_prog_compiler_pic_GCJ='-fPIC'
17079	;;
17080      esac
17081      ;;
17082
17083    *)
17084      lt_prog_compiler_pic_GCJ='-fPIC'
17085      ;;
17086    esac
17087  else
17088    # PORTME Check for flag to pass linker flags through the system compiler.
17089    case $host_os in
17090    aix*)
17091      lt_prog_compiler_wl_GCJ='-Wl,'
17092      if test "$host_cpu" = ia64; then
17093	# AIX 5 now supports IA64 processor
17094	lt_prog_compiler_static_GCJ='-Bstatic'
17095      else
17096	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17097      fi
17098      ;;
17099      darwin*)
17100        # PIC is the default on this platform
17101        # Common symbols not allowed in MH_DYLIB files
17102       case $cc_basename in
17103         xlc*)
17104         lt_prog_compiler_pic_GCJ='-qnocommon'
17105         lt_prog_compiler_wl_GCJ='-Wl,'
17106         ;;
17107       esac
17108       ;;
17109
17110    mingw* | pw32* | os2*)
17111      # This hack is so that the source file can tell whether it is being
17112      # built for inclusion in a dll (and should export symbols for example).
17113      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17114      ;;
17115
17116    hpux9* | hpux10* | hpux11*)
17117      lt_prog_compiler_wl_GCJ='-Wl,'
17118      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17119      # not for PA HP-UX.
17120      case $host_cpu in
17121      hppa*64*|ia64*)
17122	# +Z the default
17123	;;
17124      *)
17125	lt_prog_compiler_pic_GCJ='+Z'
17126	;;
17127      esac
17128      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17129      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17130      ;;
17131
17132    irix5* | irix6* | nonstopux*)
17133      lt_prog_compiler_wl_GCJ='-Wl,'
17134      # PIC (with -KPIC) is the default.
17135      lt_prog_compiler_static_GCJ='-non_shared'
17136      ;;
17137
17138    newsos6)
17139      lt_prog_compiler_pic_GCJ='-KPIC'
17140      lt_prog_compiler_static_GCJ='-Bstatic'
17141      ;;
17142
17143    linux* | k*bsd*-gnu)
17144      case $cc_basename in
17145      icc* | ecc*)
17146	lt_prog_compiler_wl_GCJ='-Wl,'
17147	lt_prog_compiler_pic_GCJ='-KPIC'
17148	lt_prog_compiler_static_GCJ='-static'
17149        ;;
17150      pgcc* | pgf77* | pgf90* | pgf95*)
17151        # Portland Group compilers (*not* the Pentium gcc compiler,
17152	# which looks to be a dead project)
17153	lt_prog_compiler_wl_GCJ='-Wl,'
17154	lt_prog_compiler_pic_GCJ='-fpic'
17155	lt_prog_compiler_static_GCJ='-Bstatic'
17156        ;;
17157      ccc*)
17158        lt_prog_compiler_wl_GCJ='-Wl,'
17159        # All Alpha code is PIC.
17160        lt_prog_compiler_static_GCJ='-non_shared'
17161        ;;
17162      esac
17163      ;;
17164
17165    osf3* | osf4* | osf5*)
17166      lt_prog_compiler_wl_GCJ='-Wl,'
17167      # All OSF/1 code is PIC.
17168      lt_prog_compiler_static_GCJ='-non_shared'
17169      ;;
17170
17171    solaris*)
17172      lt_prog_compiler_pic_GCJ='-KPIC'
17173      lt_prog_compiler_static_GCJ='-Bstatic'
17174      case $cc_basename in
17175      f77* | f90* | f95*)
17176	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17177      *)
17178	lt_prog_compiler_wl_GCJ='-Wl,';;
17179      esac
17180      ;;
17181
17182    sunos4*)
17183      lt_prog_compiler_wl_GCJ='-Qoption ld '
17184      lt_prog_compiler_pic_GCJ='-PIC'
17185      lt_prog_compiler_static_GCJ='-Bstatic'
17186      ;;
17187
17188    sysv4 | sysv4.2uw2* | sysv4.3*)
17189      lt_prog_compiler_wl_GCJ='-Wl,'
17190      lt_prog_compiler_pic_GCJ='-KPIC'
17191      lt_prog_compiler_static_GCJ='-Bstatic'
17192      ;;
17193
17194    sysv4*MP*)
17195      if test -d /usr/nec ;then
17196	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17197	lt_prog_compiler_static_GCJ='-Bstatic'
17198      fi
17199      ;;
17200
17201    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17202      lt_prog_compiler_wl_GCJ='-Wl,'
17203      lt_prog_compiler_pic_GCJ='-KPIC'
17204      lt_prog_compiler_static_GCJ='-Bstatic'
17205      ;;
17206
17207    unicos*)
17208      lt_prog_compiler_wl_GCJ='-Wl,'
17209      lt_prog_compiler_can_build_shared_GCJ=no
17210      ;;
17211
17212    uts4*)
17213      lt_prog_compiler_pic_GCJ='-pic'
17214      lt_prog_compiler_static_GCJ='-Bstatic'
17215      ;;
17216
17217    *)
17218      lt_prog_compiler_can_build_shared_GCJ=no
17219      ;;
17220    esac
17221  fi
17222
17223{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17224echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17225
17226#
17227# Check to make sure the PIC flag actually works.
17228#
17229if test -n "$lt_prog_compiler_pic_GCJ"; then
17230
17231{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17232echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17233if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17234  echo $ECHO_N "(cached) $ECHO_C" >&6
17235else
17236  lt_prog_compiler_pic_works_GCJ=no
17237  ac_outfile=conftest.$ac_objext
17238   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17239   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17240   # Insert the option either (1) after the last *FLAGS variable, or
17241   # (2) before a word containing "conftest.", or (3) at the end.
17242   # Note that $ac_compile itself does not contain backslashes and begins
17243   # with a dollar sign (not a hyphen), so the echo should work correctly.
17244   # The option is referenced via a variable to avoid confusing sed.
17245   lt_compile=`echo "$ac_compile" | $SED \
17246   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17247   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17248   -e 's:$: $lt_compiler_flag:'`
17249   (eval echo "\"\$as_me:17249: $lt_compile\"" >&5)
17250   (eval "$lt_compile" 2>conftest.err)
17251   ac_status=$?
17252   cat conftest.err >&5
17253   echo "$as_me:17253: \$? = $ac_status" >&5
17254   if (exit $ac_status) && test -s "$ac_outfile"; then
17255     # The compiler can only warn and ignore the option if not recognized
17256     # So say no if there are warnings other than the usual output.
17257     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17258     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17259     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17260       lt_prog_compiler_pic_works_GCJ=yes
17261     fi
17262   fi
17263   $rm conftest*
17264
17265fi
17266{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17267echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17268
17269if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17270    case $lt_prog_compiler_pic_GCJ in
17271     "" | " "*) ;;
17272     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17273     esac
17274else
17275    lt_prog_compiler_pic_GCJ=
17276     lt_prog_compiler_can_build_shared_GCJ=no
17277fi
17278
17279fi
17280case $host_os in
17281  # For platforms which do not support PIC, -DPIC is meaningless:
17282  *djgpp*)
17283    lt_prog_compiler_pic_GCJ=
17284    ;;
17285  *)
17286    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17287    ;;
17288esac
17289
17290#
17291# Check to make sure the static flag actually works.
17292#
17293wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17294{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17295echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17296if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17297  echo $ECHO_N "(cached) $ECHO_C" >&6
17298else
17299  lt_prog_compiler_static_works_GCJ=no
17300   save_LDFLAGS="$LDFLAGS"
17301   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17302   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17303   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17304     # The linker can only warn and ignore the option if not recognized
17305     # So say no if there are warnings
17306     if test -s conftest.err; then
17307       # Append any errors to the config.log.
17308       cat conftest.err 1>&5
17309       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17310       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17311       if diff conftest.exp conftest.er2 >/dev/null; then
17312         lt_prog_compiler_static_works_GCJ=yes
17313       fi
17314     else
17315       lt_prog_compiler_static_works_GCJ=yes
17316     fi
17317   fi
17318   $rm conftest*
17319   LDFLAGS="$save_LDFLAGS"
17320
17321fi
17322{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17323echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17324
17325if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17326    :
17327else
17328    lt_prog_compiler_static_GCJ=
17329fi
17330
17331
17332{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17333echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17334if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17335  echo $ECHO_N "(cached) $ECHO_C" >&6
17336else
17337  lt_cv_prog_compiler_c_o_GCJ=no
17338   $rm -r conftest 2>/dev/null
17339   mkdir conftest
17340   cd conftest
17341   mkdir out
17342   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17343
17344   lt_compiler_flag="-o out/conftest2.$ac_objext"
17345   # Insert the option either (1) after the last *FLAGS variable, or
17346   # (2) before a word containing "conftest.", or (3) at the end.
17347   # Note that $ac_compile itself does not contain backslashes and begins
17348   # with a dollar sign (not a hyphen), so the echo should work correctly.
17349   lt_compile=`echo "$ac_compile" | $SED \
17350   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17351   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17352   -e 's:$: $lt_compiler_flag:'`
17353   (eval echo "\"\$as_me:17353: $lt_compile\"" >&5)
17354   (eval "$lt_compile" 2>out/conftest.err)
17355   ac_status=$?
17356   cat out/conftest.err >&5
17357   echo "$as_me:17357: \$? = $ac_status" >&5
17358   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17359   then
17360     # The compiler can only warn and ignore the option if not recognized
17361     # So say no if there are warnings
17362     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17363     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17364     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17365       lt_cv_prog_compiler_c_o_GCJ=yes
17366     fi
17367   fi
17368   chmod u+w . 2>&5
17369   $rm conftest*
17370   # SGI C++ compiler will create directory out/ii_files/ for
17371   # template instantiation
17372   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17373   $rm out/* && rmdir out
17374   cd ..
17375   rmdir conftest
17376   $rm conftest*
17377
17378fi
17379{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17380echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17381
17382
17383hard_links="nottested"
17384if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17385  # do not overwrite the value of need_locks provided by the user
17386  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17387echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17388  hard_links=yes
17389  $rm conftest*
17390  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17391  touch conftest.a
17392  ln conftest.a conftest.b 2>&5 || hard_links=no
17393  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17394  { echo "$as_me:$LINENO: result: $hard_links" >&5
17395echo "${ECHO_T}$hard_links" >&6; }
17396  if test "$hard_links" = no; then
17397    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17398echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17399    need_locks=warn
17400  fi
17401else
17402  need_locks=no
17403fi
17404
17405{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17406echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17407
17408  runpath_var=
17409  allow_undefined_flag_GCJ=
17410  enable_shared_with_static_runtimes_GCJ=no
17411  archive_cmds_GCJ=
17412  archive_expsym_cmds_GCJ=
17413  old_archive_From_new_cmds_GCJ=
17414  old_archive_from_expsyms_cmds_GCJ=
17415  export_dynamic_flag_spec_GCJ=
17416  whole_archive_flag_spec_GCJ=
17417  thread_safe_flag_spec_GCJ=
17418  hardcode_libdir_flag_spec_GCJ=
17419  hardcode_libdir_flag_spec_ld_GCJ=
17420  hardcode_libdir_separator_GCJ=
17421  hardcode_direct_GCJ=no
17422  hardcode_minus_L_GCJ=no
17423  hardcode_shlibpath_var_GCJ=unsupported
17424  link_all_deplibs_GCJ=unknown
17425  hardcode_automatic_GCJ=no
17426  module_cmds_GCJ=
17427  module_expsym_cmds_GCJ=
17428  always_export_symbols_GCJ=no
17429  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17430  # include_expsyms should be a list of space-separated symbols to be *always*
17431  # included in the symbol list
17432  include_expsyms_GCJ=
17433  # exclude_expsyms can be an extended regexp of symbols to exclude
17434  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17435  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17436  # as well as any symbol that contains `d'.
17437  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17438  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17439  # platforms (ab)use it in PIC code, but their linkers get confused if
17440  # the symbol is explicitly referenced.  Since portable code cannot
17441  # rely on this symbol name, it's probably fine to never include it in
17442  # preloaded symbol tables.
17443  extract_expsyms_cmds=
17444  # Just being paranoid about ensuring that cc_basename is set.
17445  for cc_temp in $compiler""; do
17446  case $cc_temp in
17447    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17448    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17449    \-*) ;;
17450    *) break;;
17451  esac
17452done
17453cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17454
17455  case $host_os in
17456  cygwin* | mingw* | pw32*)
17457    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17458    # When not using gcc, we currently assume that we are using
17459    # Microsoft Visual C++.
17460    if test "$GCC" != yes; then
17461      with_gnu_ld=no
17462    fi
17463    ;;
17464  interix*)
17465    # we just hope/assume this is gcc and not c89 (= MSVC++)
17466    with_gnu_ld=yes
17467    ;;
17468  openbsd*)
17469    with_gnu_ld=no
17470    ;;
17471  esac
17472
17473  ld_shlibs_GCJ=yes
17474  if test "$with_gnu_ld" = yes; then
17475    # If archive_cmds runs LD, not CC, wlarc should be empty
17476    wlarc='${wl}'
17477
17478    # Set some defaults for GNU ld with shared library support. These
17479    # are reset later if shared libraries are not supported. Putting them
17480    # here allows them to be overridden if necessary.
17481    runpath_var=LD_RUN_PATH
17482    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17483    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17484    # ancient GNU ld didn't support --whole-archive et. al.
17485    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17486	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17487      else
17488  	whole_archive_flag_spec_GCJ=
17489    fi
17490    supports_anon_versioning=no
17491    case `$LD -v 2>/dev/null` in
17492      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17493      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17494      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17495      *\ 2.11.*) ;; # other 2.11 versions
17496      *) supports_anon_versioning=yes ;;
17497    esac
17498
17499    # See if GNU ld supports shared libraries.
17500    case $host_os in
17501    aix3* | aix4* | aix5*)
17502      # On AIX/PPC, the GNU linker is very broken
17503      if test "$host_cpu" != ia64; then
17504	ld_shlibs_GCJ=no
17505	cat <<EOF 1>&2
17506
17507*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17508*** to be unable to reliably create shared libraries on AIX.
17509*** Therefore, libtool is disabling shared libraries support.  If you
17510*** really care for shared libraries, you may want to modify your PATH
17511*** so that a non-GNU linker is found, and then restart.
17512
17513EOF
17514      fi
17515      ;;
17516
17517    amigaos*)
17518      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)'
17519      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17520      hardcode_minus_L_GCJ=yes
17521
17522      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17523      # that the semantics of dynamic libraries on AmigaOS, at least up
17524      # to version 4, is to share data among multiple programs linked
17525      # with the same dynamic library.  Since this doesn't match the
17526      # behavior of shared libraries on other platforms, we can't use
17527      # them.
17528      ld_shlibs_GCJ=no
17529      ;;
17530
17531    beos*)
17532      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17533	allow_undefined_flag_GCJ=unsupported
17534	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17535	# support --undefined.  This deserves some investigation.  FIXME
17536	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17537      else
17538	ld_shlibs_GCJ=no
17539      fi
17540      ;;
17541
17542    cygwin* | mingw* | pw32*)
17543      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17544      # as there is no search path for DLLs.
17545      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17546      allow_undefined_flag_GCJ=unsupported
17547      always_export_symbols_GCJ=no
17548      enable_shared_with_static_runtimes_GCJ=yes
17549      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17550
17551      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17552        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17553	# If the export-symbols file already is a .def file (1st line
17554	# is EXPORTS), use it as is; otherwise, prepend...
17555	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17556	  cp $export_symbols $output_objdir/$soname.def;
17557	else
17558	  echo EXPORTS > $output_objdir/$soname.def;
17559	  cat $export_symbols >> $output_objdir/$soname.def;
17560	fi~
17561	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17562      else
17563	ld_shlibs_GCJ=no
17564      fi
17565      ;;
17566
17567    interix3*)
17568      hardcode_direct_GCJ=no
17569      hardcode_shlibpath_var_GCJ=no
17570      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17571      export_dynamic_flag_spec_GCJ='${wl}-E'
17572      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17573      # Instead, shared libraries are loaded at an image base (0x10000000 by
17574      # default) and relocated if they conflict, which is a slow very memory
17575      # consuming and fragmenting process.  To avoid this, we pick a random,
17576      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17577      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17578      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'
17579      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'
17580      ;;
17581
17582    linux* | k*bsd*-gnu)
17583      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17584	tmp_addflag=
17585	case $cc_basename,$host_cpu in
17586	pgcc*)				# Portland Group C compiler
17587	  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'
17588	  tmp_addflag=' $pic_flag'
17589	  ;;
17590	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17591	  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'
17592	  tmp_addflag=' $pic_flag -Mnomain' ;;
17593	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17594	  tmp_addflag=' -i_dynamic' ;;
17595	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17596	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17597	ifc* | ifort*)			# Intel Fortran compiler
17598	  tmp_addflag=' -nofor_main' ;;
17599	esac
17600	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17601
17602	if test $supports_anon_versioning = yes; then
17603	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17604  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17605  $echo "local: *; };" >> $output_objdir/$libname.ver~
17606	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17607	fi
17608	link_all_deplibs_GCJ=no
17609      else
17610	ld_shlibs_GCJ=no
17611      fi
17612      ;;
17613
17614    netbsd* | netbsdelf*-gnu)
17615      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17616	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17617	wlarc=
17618      else
17619	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17620	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17621      fi
17622      ;;
17623
17624    solaris*)
17625      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17626	ld_shlibs_GCJ=no
17627	cat <<EOF 1>&2
17628
17629*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17630*** create shared libraries on Solaris systems.  Therefore, libtool
17631*** is disabling shared libraries support.  We urge you to upgrade GNU
17632*** binutils to release 2.9.1 or newer.  Another option is to modify
17633*** your PATH or compiler configuration so that the native linker is
17634*** used, and then restart.
17635
17636EOF
17637      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17638	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17639	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17640      else
17641	ld_shlibs_GCJ=no
17642      fi
17643      ;;
17644
17645    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17646      case `$LD -v 2>&1` in
17647        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17648	ld_shlibs_GCJ=no
17649	cat <<_LT_EOF 1>&2
17650
17651*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17652*** reliably create shared libraries on SCO systems.  Therefore, libtool
17653*** is disabling shared libraries support.  We urge you to upgrade GNU
17654*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17655*** your PATH or compiler configuration so that the native linker is
17656*** used, and then restart.
17657
17658_LT_EOF
17659	;;
17660	*)
17661	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17662	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17663	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17664	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17665	  else
17666	    ld_shlibs_GCJ=no
17667	  fi
17668	;;
17669      esac
17670      ;;
17671
17672    sunos4*)
17673      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17674      wlarc=
17675      hardcode_direct_GCJ=yes
17676      hardcode_shlibpath_var_GCJ=no
17677      ;;
17678
17679    *)
17680      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17681	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17682	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17683      else
17684	ld_shlibs_GCJ=no
17685      fi
17686      ;;
17687    esac
17688
17689    if test "$ld_shlibs_GCJ" = no; then
17690      runpath_var=
17691      hardcode_libdir_flag_spec_GCJ=
17692      export_dynamic_flag_spec_GCJ=
17693      whole_archive_flag_spec_GCJ=
17694    fi
17695  else
17696    # PORTME fill in a description of your system's linker (not GNU ld)
17697    case $host_os in
17698    aix3*)
17699      allow_undefined_flag_GCJ=unsupported
17700      always_export_symbols_GCJ=yes
17701      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'
17702      # Note: this linker hardcodes the directories in LIBPATH if there
17703      # are no directories specified by -L.
17704      hardcode_minus_L_GCJ=yes
17705      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17706	# Neither direct hardcoding nor static linking is supported with a
17707	# broken collect2.
17708	hardcode_direct_GCJ=unsupported
17709      fi
17710      ;;
17711
17712    aix4* | aix5*)
17713      if test "$host_cpu" = ia64; then
17714	# On IA64, the linker does run time linking by default, so we don't
17715	# have to do anything special.
17716	aix_use_runtimelinking=no
17717	exp_sym_flag='-Bexport'
17718	no_entry_flag=""
17719      else
17720	# If we're using GNU nm, then we don't want the "-C" option.
17721	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17722	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17723	  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'
17724	else
17725	  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'
17726	fi
17727	aix_use_runtimelinking=no
17728
17729	# Test if we are trying to use run time linking or normal
17730	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17731	# need to do runtime linking.
17732	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17733	  for ld_flag in $LDFLAGS; do
17734  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17735  	    aix_use_runtimelinking=yes
17736  	    break
17737  	  fi
17738	  done
17739	  ;;
17740	esac
17741
17742	exp_sym_flag='-bexport'
17743	no_entry_flag='-bnoentry'
17744      fi
17745
17746      # When large executables or shared objects are built, AIX ld can
17747      # have problems creating the table of contents.  If linking a library
17748      # or program results in "error TOC overflow" add -mminimal-toc to
17749      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17750      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17751
17752      archive_cmds_GCJ=''
17753      hardcode_direct_GCJ=yes
17754      hardcode_libdir_separator_GCJ=':'
17755      link_all_deplibs_GCJ=yes
17756
17757      if test "$GCC" = yes; then
17758	case $host_os in aix4.[012]|aix4.[012].*)
17759	# We only want to do this on AIX 4.2 and lower, the check
17760	# below for broken collect2 doesn't work under 4.3+
17761	  collect2name=`${CC} -print-prog-name=collect2`
17762	  if test -f "$collect2name" && \
17763  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17764	  then
17765  	  # We have reworked collect2
17766  	  hardcode_direct_GCJ=yes
17767	  else
17768  	  # We have old collect2
17769  	  hardcode_direct_GCJ=unsupported
17770  	  # It fails to find uninstalled libraries when the uninstalled
17771  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17772  	  # to unsupported forces relinking
17773  	  hardcode_minus_L_GCJ=yes
17774  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17775  	  hardcode_libdir_separator_GCJ=
17776	  fi
17777	  ;;
17778	esac
17779	shared_flag='-shared'
17780	if test "$aix_use_runtimelinking" = yes; then
17781	  shared_flag="$shared_flag "'${wl}-G'
17782	fi
17783      else
17784	# not using gcc
17785	if test "$host_cpu" = ia64; then
17786  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17787  	# chokes on -Wl,-G. The following line is correct:
17788	  shared_flag='-G'
17789	else
17790	  if test "$aix_use_runtimelinking" = yes; then
17791	    shared_flag='${wl}-G'
17792	  else
17793	    shared_flag='${wl}-bM:SRE'
17794	  fi
17795	fi
17796      fi
17797
17798      # It seems that -bexpall does not export symbols beginning with
17799      # underscore (_), so it is better to generate a list of symbols to export.
17800      always_export_symbols_GCJ=yes
17801      if test "$aix_use_runtimelinking" = yes; then
17802	# Warning - without using the other runtime loading flags (-brtl),
17803	# -berok will link without error, but may produce a broken library.
17804	allow_undefined_flag_GCJ='-berok'
17805       # Determine the default libpath from the value encoded in an empty executable.
17806       cat >conftest.$ac_ext <<_ACEOF
17807/* confdefs.h.  */
17808_ACEOF
17809cat confdefs.h >>conftest.$ac_ext
17810cat >>conftest.$ac_ext <<_ACEOF
17811/* end confdefs.h.  */
17812
17813int
17814main ()
17815{
17816
17817  ;
17818  return 0;
17819}
17820_ACEOF
17821rm -f conftest.$ac_objext conftest$ac_exeext
17822if { (ac_try="$ac_link"
17823case "(($ac_try" in
17824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825  *) ac_try_echo=$ac_try;;
17826esac
17827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828  (eval "$ac_link") 2>conftest.er1
17829  ac_status=$?
17830  grep -v '^ *+' conftest.er1 >conftest.err
17831  rm -f conftest.er1
17832  cat conftest.err >&5
17833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834  (exit $ac_status); } &&
17835	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17836  { (case "(($ac_try" in
17837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838  *) ac_try_echo=$ac_try;;
17839esac
17840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841  (eval "$ac_try") 2>&5
17842  ac_status=$?
17843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844  (exit $ac_status); }; } &&
17845	 { ac_try='test -s conftest$ac_exeext'
17846  { (case "(($ac_try" in
17847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17848  *) ac_try_echo=$ac_try;;
17849esac
17850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17851  (eval "$ac_try") 2>&5
17852  ac_status=$?
17853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854  (exit $ac_status); }; }; then
17855
17856aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17857}'`
17858# Check for a 64-bit object if we didn't find anything.
17859if 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; }
17860}'`; fi
17861else
17862  echo "$as_me: failed program was:" >&5
17863sed 's/^/| /' conftest.$ac_ext >&5
17864
17865
17866fi
17867
17868rm -f core conftest.err conftest.$ac_objext \
17869      conftest$ac_exeext conftest.$ac_ext
17870if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17871
17872       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17873	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"
17874       else
17875	if test "$host_cpu" = ia64; then
17876	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17877	  allow_undefined_flag_GCJ="-z nodefs"
17878	  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"
17879	else
17880	 # Determine the default libpath from the value encoded in an empty executable.
17881	 cat >conftest.$ac_ext <<_ACEOF
17882/* confdefs.h.  */
17883_ACEOF
17884cat confdefs.h >>conftest.$ac_ext
17885cat >>conftest.$ac_ext <<_ACEOF
17886/* end confdefs.h.  */
17887
17888int
17889main ()
17890{
17891
17892  ;
17893  return 0;
17894}
17895_ACEOF
17896rm -f conftest.$ac_objext conftest$ac_exeext
17897if { (ac_try="$ac_link"
17898case "(($ac_try" in
17899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900  *) ac_try_echo=$ac_try;;
17901esac
17902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17903  (eval "$ac_link") 2>conftest.er1
17904  ac_status=$?
17905  grep -v '^ *+' conftest.er1 >conftest.err
17906  rm -f conftest.er1
17907  cat conftest.err >&5
17908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909  (exit $ac_status); } &&
17910	 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17911  { (case "(($ac_try" in
17912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17913  *) ac_try_echo=$ac_try;;
17914esac
17915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17916  (eval "$ac_try") 2>&5
17917  ac_status=$?
17918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919  (exit $ac_status); }; } &&
17920	 { ac_try='test -s conftest$ac_exeext'
17921  { (case "(($ac_try" in
17922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923  *) ac_try_echo=$ac_try;;
17924esac
17925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926  (eval "$ac_try") 2>&5
17927  ac_status=$?
17928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929  (exit $ac_status); }; }; then
17930
17931aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17932}'`
17933# Check for a 64-bit object if we didn't find anything.
17934if 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; }
17935}'`; fi
17936else
17937  echo "$as_me: failed program was:" >&5
17938sed 's/^/| /' conftest.$ac_ext >&5
17939
17940
17941fi
17942
17943rm -f core conftest.err conftest.$ac_objext \
17944      conftest$ac_exeext conftest.$ac_ext
17945if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17946
17947	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17948	  # Warning - without using the other run time loading flags,
17949	  # -berok will link without error, but may produce a broken library.
17950	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17951	  allow_undefined_flag_GCJ=' ${wl}-berok'
17952	  # Exported symbols can be pulled into shared objects from archives
17953	  whole_archive_flag_spec_GCJ='$convenience'
17954	  archive_cmds_need_lc_GCJ=yes
17955	  # This is similar to how AIX traditionally builds its shared libraries.
17956	  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'
17957	fi
17958      fi
17959      ;;
17960
17961    amigaos*)
17962      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)'
17963      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17964      hardcode_minus_L_GCJ=yes
17965      # see comment about different semantics on the GNU ld section
17966      ld_shlibs_GCJ=no
17967      ;;
17968
17969    bsdi[45]*)
17970      export_dynamic_flag_spec_GCJ=-rdynamic
17971      ;;
17972
17973    cygwin* | mingw* | pw32*)
17974      # When not using gcc, we currently assume that we are using
17975      # Microsoft Visual C++.
17976      # hardcode_libdir_flag_spec is actually meaningless, as there is
17977      # no search path for DLLs.
17978      hardcode_libdir_flag_spec_GCJ=' '
17979      allow_undefined_flag_GCJ=unsupported
17980      # Tell ltmain to make .lib files, not .a files.
17981      libext=lib
17982      # Tell ltmain to make .dll files, not .so files.
17983      shrext_cmds=".dll"
17984      # FIXME: Setting linknames here is a bad hack.
17985      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17986      # The linker will automatically build a .lib file if we build a DLL.
17987      old_archive_From_new_cmds_GCJ='true'
17988      # FIXME: Should let the user specify the lib program.
17989      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17990      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17991      enable_shared_with_static_runtimes_GCJ=yes
17992      ;;
17993
17994    darwin* | rhapsody*)
17995      case $host_os in
17996        rhapsody* | darwin1.[012])
17997         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17998         ;;
17999       *) # Darwin 1.3 on
18000         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18001           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18002         else
18003           case ${MACOSX_DEPLOYMENT_TARGET} in
18004             10.[012])
18005               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18006               ;;
18007             10.*)
18008               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18009               ;;
18010           esac
18011         fi
18012         ;;
18013      esac
18014      archive_cmds_need_lc_GCJ=no
18015      hardcode_direct_GCJ=no
18016      hardcode_automatic_GCJ=yes
18017      hardcode_shlibpath_var_GCJ=unsupported
18018      whole_archive_flag_spec_GCJ=''
18019      link_all_deplibs_GCJ=yes
18020    if test "$GCC" = yes ; then
18021    	output_verbose_link_cmd='echo'
18022        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18023      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18024      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18025      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}'
18026      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}'
18027    else
18028      case $cc_basename in
18029        xlc*)
18030         output_verbose_link_cmd='echo'
18031         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18032         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18033          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18034         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}'
18035          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}'
18036          ;;
18037       *)
18038         ld_shlibs_GCJ=no
18039          ;;
18040      esac
18041    fi
18042      ;;
18043
18044    dgux*)
18045      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18046      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18047      hardcode_shlibpath_var_GCJ=no
18048      ;;
18049
18050    freebsd1*)
18051      ld_shlibs_GCJ=no
18052      ;;
18053
18054    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18055    # support.  Future versions do this automatically, but an explicit c++rt0.o
18056    # does not break anything, and helps significantly (at the cost of a little
18057    # extra space).
18058    freebsd2.2*)
18059      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18060      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18061      hardcode_direct_GCJ=yes
18062      hardcode_shlibpath_var_GCJ=no
18063      ;;
18064
18065    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18066    freebsd2*)
18067      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18068      hardcode_direct_GCJ=yes
18069      hardcode_minus_L_GCJ=yes
18070      hardcode_shlibpath_var_GCJ=no
18071      ;;
18072
18073    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18074    freebsd* | dragonfly*)
18075      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18076      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18077      hardcode_direct_GCJ=yes
18078      hardcode_shlibpath_var_GCJ=no
18079      ;;
18080
18081    hpux9*)
18082      if test "$GCC" = yes; then
18083	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'
18084      else
18085	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'
18086      fi
18087      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18088      hardcode_libdir_separator_GCJ=:
18089      hardcode_direct_GCJ=yes
18090
18091      # hardcode_minus_L: Not really in the search PATH,
18092      # but as the default location of the library.
18093      hardcode_minus_L_GCJ=yes
18094      export_dynamic_flag_spec_GCJ='${wl}-E'
18095      ;;
18096
18097    hpux10*)
18098      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18099	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18100      else
18101	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18102      fi
18103      if test "$with_gnu_ld" = no; then
18104	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18105	hardcode_libdir_separator_GCJ=:
18106
18107	hardcode_direct_GCJ=yes
18108	export_dynamic_flag_spec_GCJ='${wl}-E'
18109
18110	# hardcode_minus_L: Not really in the search PATH,
18111	# but as the default location of the library.
18112	hardcode_minus_L_GCJ=yes
18113      fi
18114      ;;
18115
18116    hpux11*)
18117      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18118	case $host_cpu in
18119	hppa*64*)
18120	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18121	  ;;
18122	ia64*)
18123	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18124	  ;;
18125	*)
18126	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18127	  ;;
18128	esac
18129      else
18130	case $host_cpu in
18131	hppa*64*)
18132	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18133	  ;;
18134	ia64*)
18135	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18136	  ;;
18137	*)
18138	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18139	  ;;
18140	esac
18141      fi
18142      if test "$with_gnu_ld" = no; then
18143	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18144	hardcode_libdir_separator_GCJ=:
18145
18146	case $host_cpu in
18147	hppa*64*|ia64*)
18148	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18149	  hardcode_direct_GCJ=no
18150	  hardcode_shlibpath_var_GCJ=no
18151	  ;;
18152	*)
18153	  hardcode_direct_GCJ=yes
18154	  export_dynamic_flag_spec_GCJ='${wl}-E'
18155
18156	  # hardcode_minus_L: Not really in the search PATH,
18157	  # but as the default location of the library.
18158	  hardcode_minus_L_GCJ=yes
18159	  ;;
18160	esac
18161      fi
18162      ;;
18163
18164    irix5* | irix6* | nonstopux*)
18165      if test "$GCC" = yes; then
18166	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'
18167      else
18168	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'
18169	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18170      fi
18171      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18172      hardcode_libdir_separator_GCJ=:
18173      link_all_deplibs_GCJ=yes
18174      ;;
18175
18176    netbsd* | netbsdelf*-gnu)
18177      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18178	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18179      else
18180	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18181      fi
18182      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18183      hardcode_direct_GCJ=yes
18184      hardcode_shlibpath_var_GCJ=no
18185      ;;
18186
18187    newsos6)
18188      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18189      hardcode_direct_GCJ=yes
18190      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18191      hardcode_libdir_separator_GCJ=:
18192      hardcode_shlibpath_var_GCJ=no
18193      ;;
18194
18195    openbsd*)
18196      hardcode_direct_GCJ=yes
18197      hardcode_shlibpath_var_GCJ=no
18198      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18199	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18200	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18201	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18202	export_dynamic_flag_spec_GCJ='${wl}-E'
18203      else
18204       case $host_os in
18205	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18206	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18207	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18208	   ;;
18209	 *)
18210	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18211	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18212	   ;;
18213       esac
18214      fi
18215      ;;
18216
18217    os2*)
18218      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18219      hardcode_minus_L_GCJ=yes
18220      allow_undefined_flag_GCJ=unsupported
18221      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'
18222      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18223      ;;
18224
18225    osf3*)
18226      if test "$GCC" = yes; then
18227	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18228	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'
18229      else
18230	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18231	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'
18232      fi
18233      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18234      hardcode_libdir_separator_GCJ=:
18235      ;;
18236
18237    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18238      if test "$GCC" = yes; then
18239	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18240	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'
18241	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18242      else
18243	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18244	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'
18245	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~
18246	$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'
18247
18248	# Both c and cxx compiler support -rpath directly
18249	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18250      fi
18251      hardcode_libdir_separator_GCJ=:
18252      ;;
18253
18254    solaris*)
18255      no_undefined_flag_GCJ=' -z text'
18256      if test "$GCC" = yes; then
18257	wlarc='${wl}'
18258	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18259	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18260	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18261      else
18262	wlarc=''
18263	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18264	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18265  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18266      fi
18267      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18268      hardcode_shlibpath_var_GCJ=no
18269      case $host_os in
18270      solaris2.[0-5] | solaris2.[0-5].*) ;;
18271      *)
18272 	# The compiler driver will combine linker options so we
18273 	# cannot just pass the convience library names through
18274 	# without $wl, iff we do not link with $LD.
18275 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18276 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18277 	case $wlarc in
18278 	'')
18279 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18280 	*)
18281 	  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' ;;
18282 	esac ;;
18283      esac
18284      link_all_deplibs_GCJ=yes
18285      ;;
18286
18287    sunos4*)
18288      if test "x$host_vendor" = xsequent; then
18289	# Use $CC to link under sequent, because it throws in some extra .o
18290	# files that make .init and .fini sections work.
18291	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18292      else
18293	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18294      fi
18295      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18296      hardcode_direct_GCJ=yes
18297      hardcode_minus_L_GCJ=yes
18298      hardcode_shlibpath_var_GCJ=no
18299      ;;
18300
18301    sysv4)
18302      case $host_vendor in
18303	sni)
18304	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18305	  hardcode_direct_GCJ=yes # is this really true???
18306	;;
18307	siemens)
18308	  ## LD is ld it makes a PLAMLIB
18309	  ## CC just makes a GrossModule.
18310	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18311	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18312	  hardcode_direct_GCJ=no
18313        ;;
18314	motorola)
18315	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18316	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18317	;;
18318      esac
18319      runpath_var='LD_RUN_PATH'
18320      hardcode_shlibpath_var_GCJ=no
18321      ;;
18322
18323    sysv4.3*)
18324      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18325      hardcode_shlibpath_var_GCJ=no
18326      export_dynamic_flag_spec_GCJ='-Bexport'
18327      ;;
18328
18329    sysv4*MP*)
18330      if test -d /usr/nec; then
18331	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18332	hardcode_shlibpath_var_GCJ=no
18333	runpath_var=LD_RUN_PATH
18334	hardcode_runpath_var=yes
18335	ld_shlibs_GCJ=yes
18336      fi
18337      ;;
18338
18339    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18340      no_undefined_flag_GCJ='${wl}-z,text'
18341      archive_cmds_need_lc_GCJ=no
18342      hardcode_shlibpath_var_GCJ=no
18343      runpath_var='LD_RUN_PATH'
18344
18345      if test "$GCC" = yes; then
18346	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18347	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18348      else
18349	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18350	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18351      fi
18352      ;;
18353
18354    sysv5* | sco3.2v5* | sco5v6*)
18355      # Note: We can NOT use -z defs as we might desire, because we do not
18356      # link with -lc, and that would cause any symbols used from libc to
18357      # always be unresolved, which means just about no library would
18358      # ever link correctly.  If we're not using GNU ld we use -z text
18359      # though, which does catch some bad symbols but isn't as heavy-handed
18360      # as -z defs.
18361      no_undefined_flag_GCJ='${wl}-z,text'
18362      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18363      archive_cmds_need_lc_GCJ=no
18364      hardcode_shlibpath_var_GCJ=no
18365      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18366      hardcode_libdir_separator_GCJ=':'
18367      link_all_deplibs_GCJ=yes
18368      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18369      runpath_var='LD_RUN_PATH'
18370
18371      if test "$GCC" = yes; then
18372	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18373	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18374      else
18375	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18376	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18377      fi
18378      ;;
18379
18380    uts4*)
18381      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18382      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18383      hardcode_shlibpath_var_GCJ=no
18384      ;;
18385
18386    *)
18387      ld_shlibs_GCJ=no
18388      ;;
18389    esac
18390  fi
18391
18392{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18393echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18394test "$ld_shlibs_GCJ" = no && can_build_shared=no
18395
18396#
18397# Do we need to explicitly link libc?
18398#
18399case "x$archive_cmds_need_lc_GCJ" in
18400x|xyes)
18401  # Assume -lc should be added
18402  archive_cmds_need_lc_GCJ=yes
18403
18404  if test "$enable_shared" = yes && test "$GCC" = yes; then
18405    case $archive_cmds_GCJ in
18406    *'~'*)
18407      # FIXME: we may have to deal with multi-command sequences.
18408      ;;
18409    '$CC '*)
18410      # Test whether the compiler implicitly links with -lc since on some
18411      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18412      # to ld, don't add -lc before -lgcc.
18413      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18414echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18415      $rm conftest*
18416      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18417
18418      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18419  (eval $ac_compile) 2>&5
18420  ac_status=$?
18421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422  (exit $ac_status); } 2>conftest.err; then
18423        soname=conftest
18424        lib=conftest
18425        libobjs=conftest.$ac_objext
18426        deplibs=
18427        wl=$lt_prog_compiler_wl_GCJ
18428	pic_flag=$lt_prog_compiler_pic_GCJ
18429        compiler_flags=-v
18430        linker_flags=-v
18431        verstring=
18432        output_objdir=.
18433        libname=conftest
18434        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18435        allow_undefined_flag_GCJ=
18436        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18437  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18438  ac_status=$?
18439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440  (exit $ac_status); }
18441        then
18442	  archive_cmds_need_lc_GCJ=no
18443        else
18444	  archive_cmds_need_lc_GCJ=yes
18445        fi
18446        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18447      else
18448        cat conftest.err 1>&5
18449      fi
18450      $rm conftest*
18451      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18452echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18453      ;;
18454    esac
18455  fi
18456  ;;
18457esac
18458
18459{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18460echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18461library_names_spec=
18462libname_spec='lib$name'
18463soname_spec=
18464shrext_cmds=".so"
18465postinstall_cmds=
18466postuninstall_cmds=
18467finish_cmds=
18468finish_eval=
18469shlibpath_var=
18470shlibpath_overrides_runpath=unknown
18471version_type=none
18472dynamic_linker="$host_os ld.so"
18473sys_lib_dlsearch_path_spec="/lib /usr/lib"
18474if test "$GCC" = yes; then
18475  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18476  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18477    # if the path contains ";" then we assume it to be the separator
18478    # otherwise default to the standard path separator (i.e. ":") - it is
18479    # assumed that no part of a normal pathname contains ";" but that should
18480    # okay in the real world where ";" in dirpaths is itself problematic.
18481    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18482  else
18483    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18484  fi
18485else
18486  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18487fi
18488need_lib_prefix=unknown
18489hardcode_into_libs=no
18490
18491# when you set need_version to no, make sure it does not cause -set_version
18492# flags to be left without arguments
18493need_version=unknown
18494
18495case $host_os in
18496aix3*)
18497  version_type=linux
18498  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18499  shlibpath_var=LIBPATH
18500
18501  # AIX 3 has no versioning support, so we append a major version to the name.
18502  soname_spec='${libname}${release}${shared_ext}$major'
18503  ;;
18504
18505aix4* | aix5*)
18506  version_type=linux
18507  need_lib_prefix=no
18508  need_version=no
18509  hardcode_into_libs=yes
18510  if test "$host_cpu" = ia64; then
18511    # AIX 5 supports IA64
18512    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18513    shlibpath_var=LD_LIBRARY_PATH
18514  else
18515    # With GCC up to 2.95.x, collect2 would create an import file
18516    # for dependence libraries.  The import file would start with
18517    # the line `#! .'.  This would cause the generated library to
18518    # depend on `.', always an invalid library.  This was fixed in
18519    # development snapshots of GCC prior to 3.0.
18520    case $host_os in
18521      aix4 | aix4.[01] | aix4.[01].*)
18522      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18523	   echo ' yes '
18524	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18525	:
18526      else
18527	can_build_shared=no
18528      fi
18529      ;;
18530    esac
18531    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18532    # soname into executable. Probably we can add versioning support to
18533    # collect2, so additional links can be useful in future.
18534    if test "$aix_use_runtimelinking" = yes; then
18535      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18536      # instead of lib<name>.a to let people know that these are not
18537      # typical AIX shared libraries.
18538      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18539    else
18540      # We preserve .a as extension for shared libraries through AIX4.2
18541      # and later when we are not doing run time linking.
18542      library_names_spec='${libname}${release}.a $libname.a'
18543      soname_spec='${libname}${release}${shared_ext}$major'
18544    fi
18545    shlibpath_var=LIBPATH
18546  fi
18547  ;;
18548
18549amigaos*)
18550  library_names_spec='$libname.ixlibrary $libname.a'
18551  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18552  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'
18553  ;;
18554
18555beos*)
18556  library_names_spec='${libname}${shared_ext}'
18557  dynamic_linker="$host_os ld.so"
18558  shlibpath_var=LIBRARY_PATH
18559  ;;
18560
18561bsdi[45]*)
18562  version_type=linux
18563  need_version=no
18564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18565  soname_spec='${libname}${release}${shared_ext}$major'
18566  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18567  shlibpath_var=LD_LIBRARY_PATH
18568  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18569  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18570  # the default ld.so.conf also contains /usr/contrib/lib and
18571  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18572  # libtool to hard-code these into programs
18573  ;;
18574
18575cygwin* | mingw* | pw32*)
18576  version_type=windows
18577  shrext_cmds=".dll"
18578  need_version=no
18579  need_lib_prefix=no
18580
18581  case $GCC,$host_os in
18582  yes,cygwin* | yes,mingw* | yes,pw32*)
18583    library_names_spec='$libname.dll.a'
18584    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18585    postinstall_cmds='base_file=`basename \${file}`~
18586      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18587      dldir=$destdir/`dirname \$dlpath`~
18588      test -d \$dldir || mkdir -p \$dldir~
18589      $install_prog $dir/$dlname \$dldir/$dlname~
18590      chmod a+x \$dldir/$dlname'
18591    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18592      dlpath=$dir/\$dldll~
18593       $rm \$dlpath'
18594    shlibpath_overrides_runpath=yes
18595
18596    case $host_os in
18597    cygwin*)
18598      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18599      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18600      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18601      ;;
18602    mingw*)
18603      # MinGW DLLs use traditional 'lib' prefix
18604      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18605      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18606      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18607        # It is most probably a Windows format PATH printed by
18608        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18609        # path with ; separators, and with drive letters. We can handle the
18610        # drive letters (cygwin fileutils understands them), so leave them,
18611        # especially as we might pass files found there to a mingw objdump,
18612        # which wouldn't understand a cygwinified path. Ahh.
18613        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18614      else
18615        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18616      fi
18617      ;;
18618    pw32*)
18619      # pw32 DLLs use 'pw' prefix rather than 'lib'
18620      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18621      ;;
18622    esac
18623    ;;
18624
18625  *)
18626    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18627    ;;
18628  esac
18629  dynamic_linker='Win32 ld.exe'
18630  # FIXME: first we should search . and the directory the executable is in
18631  shlibpath_var=PATH
18632  ;;
18633
18634darwin* | rhapsody*)
18635  dynamic_linker="$host_os dyld"
18636  version_type=darwin
18637  need_lib_prefix=no
18638  need_version=no
18639  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18640  soname_spec='${libname}${release}${major}$shared_ext'
18641  shlibpath_overrides_runpath=yes
18642  shlibpath_var=DYLD_LIBRARY_PATH
18643  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18644  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18645  if test "$GCC" = yes; then
18646    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"`
18647  else
18648    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18649  fi
18650  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18651  ;;
18652
18653dgux*)
18654  version_type=linux
18655  need_lib_prefix=no
18656  need_version=no
18657  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18658  soname_spec='${libname}${release}${shared_ext}$major'
18659  shlibpath_var=LD_LIBRARY_PATH
18660  ;;
18661
18662freebsd1*)
18663  dynamic_linker=no
18664  ;;
18665
18666freebsd* | dragonfly*)
18667  # DragonFly does not have aout.  When/if they implement a new
18668  # versioning mechanism, adjust this.
18669  if test -x /usr/bin/objformat; then
18670    objformat=`/usr/bin/objformat`
18671  else
18672    case $host_os in
18673    freebsd[123]*) objformat=aout ;;
18674    *) objformat=elf ;;
18675    esac
18676  fi
18677  version_type=freebsd-$objformat
18678  case $version_type in
18679    freebsd-elf*)
18680      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18681      need_version=no
18682      need_lib_prefix=no
18683      ;;
18684    freebsd-*)
18685      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18686      need_version=yes
18687      ;;
18688  esac
18689  shlibpath_var=LD_LIBRARY_PATH
18690  case $host_os in
18691  freebsd2*)
18692    shlibpath_overrides_runpath=yes
18693    ;;
18694  freebsd3.[01]* | freebsdelf3.[01]*)
18695    shlibpath_overrides_runpath=yes
18696    hardcode_into_libs=yes
18697    ;;
18698  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18699  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18700    shlibpath_overrides_runpath=no
18701    hardcode_into_libs=yes
18702    ;;
18703  freebsd*) # from 4.6 on
18704    shlibpath_overrides_runpath=yes
18705    hardcode_into_libs=yes
18706    ;;
18707  esac
18708  ;;
18709
18710gnu*)
18711  version_type=linux
18712  need_lib_prefix=no
18713  need_version=no
18714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18715  soname_spec='${libname}${release}${shared_ext}$major'
18716  shlibpath_var=LD_LIBRARY_PATH
18717  hardcode_into_libs=yes
18718  ;;
18719
18720hpux9* | hpux10* | hpux11*)
18721  # Give a soname corresponding to the major version so that dld.sl refuses to
18722  # link against other versions.
18723  version_type=sunos
18724  need_lib_prefix=no
18725  need_version=no
18726  case $host_cpu in
18727  ia64*)
18728    shrext_cmds='.so'
18729    hardcode_into_libs=yes
18730    dynamic_linker="$host_os dld.so"
18731    shlibpath_var=LD_LIBRARY_PATH
18732    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18733    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18734    soname_spec='${libname}${release}${shared_ext}$major'
18735    if test "X$HPUX_IA64_MODE" = X32; then
18736      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18737    else
18738      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18739    fi
18740    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18741    ;;
18742   hppa*64*)
18743     shrext_cmds='.sl'
18744     hardcode_into_libs=yes
18745     dynamic_linker="$host_os dld.sl"
18746     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18747     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18749     soname_spec='${libname}${release}${shared_ext}$major'
18750     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18751     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18752     ;;
18753   *)
18754    shrext_cmds='.sl'
18755    dynamic_linker="$host_os dld.sl"
18756    shlibpath_var=SHLIB_PATH
18757    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18758    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18759    soname_spec='${libname}${release}${shared_ext}$major'
18760    ;;
18761  esac
18762  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18763  postinstall_cmds='chmod 555 $lib'
18764  ;;
18765
18766interix3*)
18767  version_type=linux
18768  need_lib_prefix=no
18769  need_version=no
18770  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18771  soname_spec='${libname}${release}${shared_ext}$major'
18772  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18773  shlibpath_var=LD_LIBRARY_PATH
18774  shlibpath_overrides_runpath=no
18775  hardcode_into_libs=yes
18776  ;;
18777
18778irix5* | irix6* | nonstopux*)
18779  case $host_os in
18780    nonstopux*) version_type=nonstopux ;;
18781    *)
18782	if test "$lt_cv_prog_gnu_ld" = yes; then
18783		version_type=linux
18784	else
18785		version_type=irix
18786	fi ;;
18787  esac
18788  need_lib_prefix=no
18789  need_version=no
18790  soname_spec='${libname}${release}${shared_ext}$major'
18791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18792  case $host_os in
18793  irix5* | nonstopux*)
18794    libsuff= shlibsuff=
18795    ;;
18796  *)
18797    case $LD in # libtool.m4 will add one of these switches to LD
18798    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18799      libsuff= shlibsuff= libmagic=32-bit;;
18800    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18801      libsuff=32 shlibsuff=N32 libmagic=N32;;
18802    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18803      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18804    *) libsuff= shlibsuff= libmagic=never-match;;
18805    esac
18806    ;;
18807  esac
18808  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18809  shlibpath_overrides_runpath=no
18810  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18811  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18812  hardcode_into_libs=yes
18813  ;;
18814
18815# No shared lib support for Linux oldld, aout, or coff.
18816linux*oldld* | linux*aout* | linux*coff*)
18817  dynamic_linker=no
18818  ;;
18819
18820# This must be Linux ELF.
18821linux* | k*bsd*-gnu)
18822  version_type=linux
18823  need_lib_prefix=no
18824  need_version=no
18825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18826  soname_spec='${libname}${release}${shared_ext}$major'
18827  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18828  shlibpath_var=LD_LIBRARY_PATH
18829  shlibpath_overrides_runpath=no
18830  # This implies no fast_install, which is unacceptable.
18831  # Some rework will be needed to allow for fast_install
18832  # before this can be enabled.
18833  hardcode_into_libs=yes
18834
18835  # Append ld.so.conf contents to the search path
18836  if test -f /etc/ld.so.conf; then
18837    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' ' '`
18838    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18839  fi
18840
18841  # We used to test for /lib/ld.so.1 and disable shared libraries on
18842  # powerpc, because MkLinux only supported shared libraries with the
18843  # GNU dynamic linker.  Since this was broken with cross compilers,
18844  # most powerpc-linux boxes support dynamic linking these days and
18845  # people can always --disable-shared, the test was removed, and we
18846  # assume the GNU/Linux dynamic linker is in use.
18847  dynamic_linker='GNU/Linux ld.so'
18848  ;;
18849
18850netbsdelf*-gnu)
18851  version_type=linux
18852  need_lib_prefix=no
18853  need_version=no
18854  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18855  soname_spec='${libname}${release}${shared_ext}$major'
18856  shlibpath_var=LD_LIBRARY_PATH
18857  shlibpath_overrides_runpath=no
18858  hardcode_into_libs=yes
18859  dynamic_linker='NetBSD ld.elf_so'
18860  ;;
18861
18862netbsd*)
18863  version_type=sunos
18864  need_lib_prefix=no
18865  need_version=no
18866  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18867    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18868    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18869    dynamic_linker='NetBSD (a.out) ld.so'
18870  else
18871    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18872    soname_spec='${libname}${release}${shared_ext}$major'
18873    dynamic_linker='NetBSD ld.elf_so'
18874  fi
18875  shlibpath_var=LD_LIBRARY_PATH
18876  shlibpath_overrides_runpath=yes
18877  hardcode_into_libs=yes
18878  ;;
18879
18880newsos6)
18881  version_type=linux
18882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18883  shlibpath_var=LD_LIBRARY_PATH
18884  shlibpath_overrides_runpath=yes
18885  ;;
18886
18887nto-qnx*)
18888  version_type=linux
18889  need_lib_prefix=no
18890  need_version=no
18891  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18892  soname_spec='${libname}${release}${shared_ext}$major'
18893  shlibpath_var=LD_LIBRARY_PATH
18894  shlibpath_overrides_runpath=yes
18895  ;;
18896
18897openbsd*)
18898  version_type=sunos
18899  sys_lib_dlsearch_path_spec="/usr/lib"
18900  need_lib_prefix=no
18901  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18902  case $host_os in
18903    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18904    *)                         need_version=no  ;;
18905  esac
18906  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18907  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18908  shlibpath_var=LD_LIBRARY_PATH
18909  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18910    case $host_os in
18911      openbsd2.[89] | openbsd2.[89].*)
18912	shlibpath_overrides_runpath=no
18913	;;
18914      *)
18915	shlibpath_overrides_runpath=yes
18916	;;
18917      esac
18918  else
18919    shlibpath_overrides_runpath=yes
18920  fi
18921  ;;
18922
18923os2*)
18924  libname_spec='$name'
18925  shrext_cmds=".dll"
18926  need_lib_prefix=no
18927  library_names_spec='$libname${shared_ext} $libname.a'
18928  dynamic_linker='OS/2 ld.exe'
18929  shlibpath_var=LIBPATH
18930  ;;
18931
18932osf3* | osf4* | osf5*)
18933  version_type=osf
18934  need_lib_prefix=no
18935  need_version=no
18936  soname_spec='${libname}${release}${shared_ext}$major'
18937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18938  shlibpath_var=LD_LIBRARY_PATH
18939  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18940  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18941  ;;
18942
18943solaris*)
18944  version_type=linux
18945  need_lib_prefix=no
18946  need_version=no
18947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18948  soname_spec='${libname}${release}${shared_ext}$major'
18949  shlibpath_var=LD_LIBRARY_PATH
18950  shlibpath_overrides_runpath=yes
18951  hardcode_into_libs=yes
18952  # ldd complains unless libraries are executable
18953  postinstall_cmds='chmod +x $lib'
18954  ;;
18955
18956sunos4*)
18957  version_type=sunos
18958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18959  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18960  shlibpath_var=LD_LIBRARY_PATH
18961  shlibpath_overrides_runpath=yes
18962  if test "$with_gnu_ld" = yes; then
18963    need_lib_prefix=no
18964  fi
18965  need_version=yes
18966  ;;
18967
18968sysv4 | sysv4.3*)
18969  version_type=linux
18970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18971  soname_spec='${libname}${release}${shared_ext}$major'
18972  shlibpath_var=LD_LIBRARY_PATH
18973  case $host_vendor in
18974    sni)
18975      shlibpath_overrides_runpath=no
18976      need_lib_prefix=no
18977      export_dynamic_flag_spec='${wl}-Blargedynsym'
18978      runpath_var=LD_RUN_PATH
18979      ;;
18980    siemens)
18981      need_lib_prefix=no
18982      ;;
18983    motorola)
18984      need_lib_prefix=no
18985      need_version=no
18986      shlibpath_overrides_runpath=no
18987      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18988      ;;
18989  esac
18990  ;;
18991
18992sysv4*MP*)
18993  if test -d /usr/nec ;then
18994    version_type=linux
18995    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18996    soname_spec='$libname${shared_ext}.$major'
18997    shlibpath_var=LD_LIBRARY_PATH
18998  fi
18999  ;;
19000
19001sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19002  version_type=freebsd-elf
19003  need_lib_prefix=no
19004  need_version=no
19005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19006  soname_spec='${libname}${release}${shared_ext}$major'
19007  shlibpath_var=LD_LIBRARY_PATH
19008  hardcode_into_libs=yes
19009  if test "$with_gnu_ld" = yes; then
19010    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19011    shlibpath_overrides_runpath=no
19012  else
19013    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19014    shlibpath_overrides_runpath=yes
19015    case $host_os in
19016      sco3.2v5*)
19017        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19018	;;
19019    esac
19020  fi
19021  sys_lib_dlsearch_path_spec='/usr/lib'
19022  ;;
19023
19024uts4*)
19025  version_type=linux
19026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19027  soname_spec='${libname}${release}${shared_ext}$major'
19028  shlibpath_var=LD_LIBRARY_PATH
19029  ;;
19030
19031*)
19032  dynamic_linker=no
19033  ;;
19034esac
19035{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19036echo "${ECHO_T}$dynamic_linker" >&6; }
19037test "$dynamic_linker" = no && can_build_shared=no
19038
19039variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19040if test "$GCC" = yes; then
19041  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19042fi
19043
19044{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19045echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19046hardcode_action_GCJ=
19047if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19048   test -n "$runpath_var_GCJ" || \
19049   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19050
19051  # We can hardcode non-existant directories.
19052  if test "$hardcode_direct_GCJ" != no &&
19053     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19054     # have to relink, otherwise we might link with an installed library
19055     # when we should be linking with a yet-to-be-installed one
19056     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19057     test "$hardcode_minus_L_GCJ" != no; then
19058    # Linking always hardcodes the temporary library directory.
19059    hardcode_action_GCJ=relink
19060  else
19061    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19062    hardcode_action_GCJ=immediate
19063  fi
19064else
19065  # We cannot hardcode anything, or else we can only hardcode existing
19066  # directories.
19067  hardcode_action_GCJ=unsupported
19068fi
19069{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19070echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19071
19072if test "$hardcode_action_GCJ" = relink; then
19073  # Fast installation is not supported
19074  enable_fast_install=no
19075elif test "$shlibpath_overrides_runpath" = yes ||
19076     test "$enable_shared" = no; then
19077  # Fast installation is not necessary
19078  enable_fast_install=needless
19079fi
19080
19081
19082# The else clause should only fire when bootstrapping the
19083# libtool distribution, otherwise you forgot to ship ltmain.sh
19084# with your package, and you will get complaints that there are
19085# no rules to generate ltmain.sh.
19086if test -f "$ltmain"; then
19087  # See if we are running on zsh, and set the options which allow our commands through
19088  # without removal of \ escapes.
19089  if test -n "${ZSH_VERSION+set}" ; then
19090    setopt NO_GLOB_SUBST
19091  fi
19092  # Now quote all the things that may contain metacharacters while being
19093  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19094  # variables and quote the copies for generation of the libtool script.
19095  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19096    SED SHELL STRIP \
19097    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19098    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19099    deplibs_check_method reload_flag reload_cmds need_locks \
19100    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19101    lt_cv_sys_global_symbol_to_c_name_address \
19102    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19103    old_postinstall_cmds old_postuninstall_cmds \
19104    compiler_GCJ \
19105    CC_GCJ \
19106    LD_GCJ \
19107    lt_prog_compiler_wl_GCJ \
19108    lt_prog_compiler_pic_GCJ \
19109    lt_prog_compiler_static_GCJ \
19110    lt_prog_compiler_no_builtin_flag_GCJ \
19111    export_dynamic_flag_spec_GCJ \
19112    thread_safe_flag_spec_GCJ \
19113    whole_archive_flag_spec_GCJ \
19114    enable_shared_with_static_runtimes_GCJ \
19115    old_archive_cmds_GCJ \
19116    old_archive_from_new_cmds_GCJ \
19117    predep_objects_GCJ \
19118    postdep_objects_GCJ \
19119    predeps_GCJ \
19120    postdeps_GCJ \
19121    compiler_lib_search_path_GCJ \
19122    archive_cmds_GCJ \
19123    archive_expsym_cmds_GCJ \
19124    postinstall_cmds_GCJ \
19125    postuninstall_cmds_GCJ \
19126    old_archive_from_expsyms_cmds_GCJ \
19127    allow_undefined_flag_GCJ \
19128    no_undefined_flag_GCJ \
19129    export_symbols_cmds_GCJ \
19130    hardcode_libdir_flag_spec_GCJ \
19131    hardcode_libdir_flag_spec_ld_GCJ \
19132    hardcode_libdir_separator_GCJ \
19133    hardcode_automatic_GCJ \
19134    module_cmds_GCJ \
19135    module_expsym_cmds_GCJ \
19136    lt_cv_prog_compiler_c_o_GCJ \
19137    exclude_expsyms_GCJ \
19138    include_expsyms_GCJ; do
19139
19140    case $var in
19141    old_archive_cmds_GCJ | \
19142    old_archive_from_new_cmds_GCJ | \
19143    archive_cmds_GCJ | \
19144    archive_expsym_cmds_GCJ | \
19145    module_cmds_GCJ | \
19146    module_expsym_cmds_GCJ | \
19147    old_archive_from_expsyms_cmds_GCJ | \
19148    export_symbols_cmds_GCJ | \
19149    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19150    postinstall_cmds | postuninstall_cmds | \
19151    old_postinstall_cmds | old_postuninstall_cmds | \
19152    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19153      # Double-quote double-evaled strings.
19154      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19155      ;;
19156    *)
19157      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19158      ;;
19159    esac
19160  done
19161
19162  case $lt_echo in
19163  *'\$0 --fallback-echo"')
19164    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19165    ;;
19166  esac
19167
19168cfgfile="$ofile"
19169
19170  cat <<__EOF__ >> "$cfgfile"
19171# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19172
19173# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19174
19175# Shell to use when invoking shell scripts.
19176SHELL=$lt_SHELL
19177
19178# Whether or not to build shared libraries.
19179build_libtool_libs=$enable_shared
19180
19181# Whether or not to build static libraries.
19182build_old_libs=$enable_static
19183
19184# Whether or not to add -lc for building shared libraries.
19185build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19186
19187# Whether or not to disallow shared libs when runtime libs are static
19188allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19189
19190# Whether or not to optimize for fast installation.
19191fast_install=$enable_fast_install
19192
19193# The host system.
19194host_alias=$host_alias
19195host=$host
19196host_os=$host_os
19197
19198# The build system.
19199build_alias=$build_alias
19200build=$build
19201build_os=$build_os
19202
19203# An echo program that does not interpret backslashes.
19204echo=$lt_echo
19205
19206# The archiver.
19207AR=$lt_AR
19208AR_FLAGS=$lt_AR_FLAGS
19209
19210# A C compiler.
19211LTCC=$lt_LTCC
19212
19213# LTCC compiler flags.
19214LTCFLAGS=$lt_LTCFLAGS
19215
19216# A language-specific compiler.
19217CC=$lt_compiler_GCJ
19218
19219# Is the compiler the GNU C compiler?
19220with_gcc=$GCC_GCJ
19221
19222# An ERE matcher.
19223EGREP=$lt_EGREP
19224
19225# The linker used to build libraries.
19226LD=$lt_LD_GCJ
19227
19228# Whether we need hard or soft links.
19229LN_S=$lt_LN_S
19230
19231# A BSD-compatible nm program.
19232NM=$lt_NM
19233
19234# A symbol stripping program
19235STRIP=$lt_STRIP
19236
19237# Used to examine libraries when file_magic_cmd begins "file"
19238MAGIC_CMD=$MAGIC_CMD
19239
19240# Used on cygwin: DLL creation program.
19241DLLTOOL="$DLLTOOL"
19242
19243# Used on cygwin: object dumper.
19244OBJDUMP="$OBJDUMP"
19245
19246# Used on cygwin: assembler.
19247AS="$AS"
19248
19249# The name of the directory that contains temporary libtool files.
19250objdir=$objdir
19251
19252# How to create reloadable object files.
19253reload_flag=$lt_reload_flag
19254reload_cmds=$lt_reload_cmds
19255
19256# How to pass a linker flag through the compiler.
19257wl=$lt_lt_prog_compiler_wl_GCJ
19258
19259# Object file suffix (normally "o").
19260objext="$ac_objext"
19261
19262# Old archive suffix (normally "a").
19263libext="$libext"
19264
19265# Shared library suffix (normally ".so").
19266shrext_cmds='$shrext_cmds'
19267
19268# Executable file suffix (normally "").
19269exeext="$exeext"
19270
19271# Additional compiler flags for building library objects.
19272pic_flag=$lt_lt_prog_compiler_pic_GCJ
19273pic_mode=$pic_mode
19274
19275# What is the maximum length of a command?
19276max_cmd_len=$lt_cv_sys_max_cmd_len
19277
19278# Does compiler simultaneously support -c and -o options?
19279compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19280
19281# Must we lock files when doing compilation?
19282need_locks=$lt_need_locks
19283
19284# Do we need the lib prefix for modules?
19285need_lib_prefix=$need_lib_prefix
19286
19287# Do we need a version for libraries?
19288need_version=$need_version
19289
19290# Whether dlopen is supported.
19291dlopen_support=$enable_dlopen
19292
19293# Whether dlopen of programs is supported.
19294dlopen_self=$enable_dlopen_self
19295
19296# Whether dlopen of statically linked programs is supported.
19297dlopen_self_static=$enable_dlopen_self_static
19298
19299# Compiler flag to prevent dynamic linking.
19300link_static_flag=$lt_lt_prog_compiler_static_GCJ
19301
19302# Compiler flag to turn off builtin functions.
19303no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19304
19305# Compiler flag to allow reflexive dlopens.
19306export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19307
19308# Compiler flag to generate shared objects directly from archives.
19309whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19310
19311# Compiler flag to generate thread-safe objects.
19312thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19313
19314# Library versioning type.
19315version_type=$version_type
19316
19317# Format of library name prefix.
19318libname_spec=$lt_libname_spec
19319
19320# List of archive names.  First name is the real one, the rest are links.
19321# The last name is the one that the linker finds with -lNAME.
19322library_names_spec=$lt_library_names_spec
19323
19324# The coded name of the library, if different from the real name.
19325soname_spec=$lt_soname_spec
19326
19327# Commands used to build and install an old-style archive.
19328RANLIB=$lt_RANLIB
19329old_archive_cmds=$lt_old_archive_cmds_GCJ
19330old_postinstall_cmds=$lt_old_postinstall_cmds
19331old_postuninstall_cmds=$lt_old_postuninstall_cmds
19332
19333# Create an old-style archive from a shared archive.
19334old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19335
19336# Create a temporary old-style archive to link instead of a shared archive.
19337old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19338
19339# Commands used to build and install a shared archive.
19340archive_cmds=$lt_archive_cmds_GCJ
19341archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19342postinstall_cmds=$lt_postinstall_cmds
19343postuninstall_cmds=$lt_postuninstall_cmds
19344
19345# Commands used to build a loadable module (assumed same as above if empty)
19346module_cmds=$lt_module_cmds_GCJ
19347module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19348
19349# Commands to strip libraries.
19350old_striplib=$lt_old_striplib
19351striplib=$lt_striplib
19352
19353# Dependencies to place before the objects being linked to create a
19354# shared library.
19355predep_objects=$lt_predep_objects_GCJ
19356
19357# Dependencies to place after the objects being linked to create a
19358# shared library.
19359postdep_objects=$lt_postdep_objects_GCJ
19360
19361# Dependencies to place before the objects being linked to create a
19362# shared library.
19363predeps=$lt_predeps_GCJ
19364
19365# Dependencies to place after the objects being linked to create a
19366# shared library.
19367postdeps=$lt_postdeps_GCJ
19368
19369# The library search path used internally by the compiler when linking
19370# a shared library.
19371compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19372
19373# Method to check whether dependent libraries are shared objects.
19374deplibs_check_method=$lt_deplibs_check_method
19375
19376# Command to use when deplibs_check_method == file_magic.
19377file_magic_cmd=$lt_file_magic_cmd
19378
19379# Flag that allows shared libraries with undefined symbols to be built.
19380allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19381
19382# Flag that forces no undefined symbols.
19383no_undefined_flag=$lt_no_undefined_flag_GCJ
19384
19385# Commands used to finish a libtool library installation in a directory.
19386finish_cmds=$lt_finish_cmds
19387
19388# Same as above, but a single script fragment to be evaled but not shown.
19389finish_eval=$lt_finish_eval
19390
19391# Take the output of nm and produce a listing of raw symbols and C names.
19392global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19393
19394# Transform the output of nm in a proper C declaration
19395global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19396
19397# Transform the output of nm in a C name address pair
19398global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19399
19400# This is the shared library runtime path variable.
19401runpath_var=$runpath_var
19402
19403# This is the shared library path variable.
19404shlibpath_var=$shlibpath_var
19405
19406# Is shlibpath searched before the hard-coded library search path?
19407shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19408
19409# How to hardcode a shared library path into an executable.
19410hardcode_action=$hardcode_action_GCJ
19411
19412# Whether we should hardcode library paths into libraries.
19413hardcode_into_libs=$hardcode_into_libs
19414
19415# Flag to hardcode \$libdir into a binary during linking.
19416# This must work even if \$libdir does not exist.
19417hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19418
19419# If ld is used when linking, flag to hardcode \$libdir into
19420# a binary during linking. This must work even if \$libdir does
19421# not exist.
19422hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19423
19424# Whether we need a single -rpath flag with a separated argument.
19425hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19426
19427# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19428# resulting binary.
19429hardcode_direct=$hardcode_direct_GCJ
19430
19431# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19432# resulting binary.
19433hardcode_minus_L=$hardcode_minus_L_GCJ
19434
19435# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19436# the resulting binary.
19437hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19438
19439# Set to yes if building a shared library automatically hardcodes DIR into the library
19440# and all subsequent libraries and executables linked against it.
19441hardcode_automatic=$hardcode_automatic_GCJ
19442
19443# Variables whose values should be saved in libtool wrapper scripts and
19444# restored at relink time.
19445variables_saved_for_relink="$variables_saved_for_relink"
19446
19447# Whether libtool must link a program against all its dependency libraries.
19448link_all_deplibs=$link_all_deplibs_GCJ
19449
19450# Compile-time system search path for libraries
19451sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19452
19453# Run-time system search path for libraries
19454sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19455
19456# Fix the shell variable \$srcfile for the compiler.
19457fix_srcfile_path="$fix_srcfile_path_GCJ"
19458
19459# Set to yes if exported symbols are required.
19460always_export_symbols=$always_export_symbols_GCJ
19461
19462# The commands to list exported symbols.
19463export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19464
19465# The commands to extract the exported symbol list from a shared archive.
19466extract_expsyms_cmds=$lt_extract_expsyms_cmds
19467
19468# Symbols that should not be listed in the preloaded symbols.
19469exclude_expsyms=$lt_exclude_expsyms_GCJ
19470
19471# Symbols that must always be exported.
19472include_expsyms=$lt_include_expsyms_GCJ
19473
19474# ### END LIBTOOL TAG CONFIG: $tagname
19475
19476__EOF__
19477
19478
19479else
19480  # If there is no Makefile yet, we rely on a make rule to execute
19481  # `config.status --recheck' to rerun these tests and create the
19482  # libtool script then.
19483  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19484  if test -f "$ltmain_in"; then
19485    test -f Makefile && make "$ltmain"
19486  fi
19487fi
19488
19489
19490ac_ext=c
19491ac_cpp='$CPP $CPPFLAGS'
19492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19494ac_compiler_gnu=$ac_cv_c_compiler_gnu
19495
19496CC="$lt_save_CC"
19497
19498	else
19499	  tagname=""
19500	fi
19501	;;
19502
19503      RC)
19504
19505
19506# Source file extension for RC test sources.
19507ac_ext=rc
19508
19509# Object file extension for compiled RC test sources.
19510objext=o
19511objext_RC=$objext
19512
19513# Code to be used in simple compile tests
19514lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19515
19516# Code to be used in simple link tests
19517lt_simple_link_test_code="$lt_simple_compile_test_code"
19518
19519# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19520
19521# If no C compiler was specified, use CC.
19522LTCC=${LTCC-"$CC"}
19523
19524# If no C compiler flags were specified, use CFLAGS.
19525LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19526
19527# Allow CC to be a program name with arguments.
19528compiler=$CC
19529
19530
19531# save warnings/boilerplate of simple test code
19532ac_outfile=conftest.$ac_objext
19533printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19534eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19535_lt_compiler_boilerplate=`cat conftest.err`
19536$rm conftest*
19537
19538ac_outfile=conftest.$ac_objext
19539printf "$lt_simple_link_test_code" >conftest.$ac_ext
19540eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19541_lt_linker_boilerplate=`cat conftest.err`
19542$rm conftest*
19543
19544
19545# Allow CC to be a program name with arguments.
19546lt_save_CC="$CC"
19547CC=${RC-"windres"}
19548compiler=$CC
19549compiler_RC=$CC
19550for cc_temp in $compiler""; do
19551  case $cc_temp in
19552    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19553    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19554    \-*) ;;
19555    *) break;;
19556  esac
19557done
19558cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19559
19560lt_cv_prog_compiler_c_o_RC=yes
19561
19562# The else clause should only fire when bootstrapping the
19563# libtool distribution, otherwise you forgot to ship ltmain.sh
19564# with your package, and you will get complaints that there are
19565# no rules to generate ltmain.sh.
19566if test -f "$ltmain"; then
19567  # See if we are running on zsh, and set the options which allow our commands through
19568  # without removal of \ escapes.
19569  if test -n "${ZSH_VERSION+set}" ; then
19570    setopt NO_GLOB_SUBST
19571  fi
19572  # Now quote all the things that may contain metacharacters while being
19573  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19574  # variables and quote the copies for generation of the libtool script.
19575  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19576    SED SHELL STRIP \
19577    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19578    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19579    deplibs_check_method reload_flag reload_cmds need_locks \
19580    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19581    lt_cv_sys_global_symbol_to_c_name_address \
19582    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19583    old_postinstall_cmds old_postuninstall_cmds \
19584    compiler_RC \
19585    CC_RC \
19586    LD_RC \
19587    lt_prog_compiler_wl_RC \
19588    lt_prog_compiler_pic_RC \
19589    lt_prog_compiler_static_RC \
19590    lt_prog_compiler_no_builtin_flag_RC \
19591    export_dynamic_flag_spec_RC \
19592    thread_safe_flag_spec_RC \
19593    whole_archive_flag_spec_RC \
19594    enable_shared_with_static_runtimes_RC \
19595    old_archive_cmds_RC \
19596    old_archive_from_new_cmds_RC \
19597    predep_objects_RC \
19598    postdep_objects_RC \
19599    predeps_RC \
19600    postdeps_RC \
19601    compiler_lib_search_path_RC \
19602    archive_cmds_RC \
19603    archive_expsym_cmds_RC \
19604    postinstall_cmds_RC \
19605    postuninstall_cmds_RC \
19606    old_archive_from_expsyms_cmds_RC \
19607    allow_undefined_flag_RC \
19608    no_undefined_flag_RC \
19609    export_symbols_cmds_RC \
19610    hardcode_libdir_flag_spec_RC \
19611    hardcode_libdir_flag_spec_ld_RC \
19612    hardcode_libdir_separator_RC \
19613    hardcode_automatic_RC \
19614    module_cmds_RC \
19615    module_expsym_cmds_RC \
19616    lt_cv_prog_compiler_c_o_RC \
19617    exclude_expsyms_RC \
19618    include_expsyms_RC; do
19619
19620    case $var in
19621    old_archive_cmds_RC | \
19622    old_archive_from_new_cmds_RC | \
19623    archive_cmds_RC | \
19624    archive_expsym_cmds_RC | \
19625    module_cmds_RC | \
19626    module_expsym_cmds_RC | \
19627    old_archive_from_expsyms_cmds_RC | \
19628    export_symbols_cmds_RC | \
19629    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19630    postinstall_cmds | postuninstall_cmds | \
19631    old_postinstall_cmds | old_postuninstall_cmds | \
19632    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19633      # Double-quote double-evaled strings.
19634      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19635      ;;
19636    *)
19637      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19638      ;;
19639    esac
19640  done
19641
19642  case $lt_echo in
19643  *'\$0 --fallback-echo"')
19644    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19645    ;;
19646  esac
19647
19648cfgfile="$ofile"
19649
19650  cat <<__EOF__ >> "$cfgfile"
19651# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19652
19653# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19654
19655# Shell to use when invoking shell scripts.
19656SHELL=$lt_SHELL
19657
19658# Whether or not to build shared libraries.
19659build_libtool_libs=$enable_shared
19660
19661# Whether or not to build static libraries.
19662build_old_libs=$enable_static
19663
19664# Whether or not to add -lc for building shared libraries.
19665build_libtool_need_lc=$archive_cmds_need_lc_RC
19666
19667# Whether or not to disallow shared libs when runtime libs are static
19668allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19669
19670# Whether or not to optimize for fast installation.
19671fast_install=$enable_fast_install
19672
19673# The host system.
19674host_alias=$host_alias
19675host=$host
19676host_os=$host_os
19677
19678# The build system.
19679build_alias=$build_alias
19680build=$build
19681build_os=$build_os
19682
19683# An echo program that does not interpret backslashes.
19684echo=$lt_echo
19685
19686# The archiver.
19687AR=$lt_AR
19688AR_FLAGS=$lt_AR_FLAGS
19689
19690# A C compiler.
19691LTCC=$lt_LTCC
19692
19693# LTCC compiler flags.
19694LTCFLAGS=$lt_LTCFLAGS
19695
19696# A language-specific compiler.
19697CC=$lt_compiler_RC
19698
19699# Is the compiler the GNU C compiler?
19700with_gcc=$GCC_RC
19701
19702# An ERE matcher.
19703EGREP=$lt_EGREP
19704
19705# The linker used to build libraries.
19706LD=$lt_LD_RC
19707
19708# Whether we need hard or soft links.
19709LN_S=$lt_LN_S
19710
19711# A BSD-compatible nm program.
19712NM=$lt_NM
19713
19714# A symbol stripping program
19715STRIP=$lt_STRIP
19716
19717# Used to examine libraries when file_magic_cmd begins "file"
19718MAGIC_CMD=$MAGIC_CMD
19719
19720# Used on cygwin: DLL creation program.
19721DLLTOOL="$DLLTOOL"
19722
19723# Used on cygwin: object dumper.
19724OBJDUMP="$OBJDUMP"
19725
19726# Used on cygwin: assembler.
19727AS="$AS"
19728
19729# The name of the directory that contains temporary libtool files.
19730objdir=$objdir
19731
19732# How to create reloadable object files.
19733reload_flag=$lt_reload_flag
19734reload_cmds=$lt_reload_cmds
19735
19736# How to pass a linker flag through the compiler.
19737wl=$lt_lt_prog_compiler_wl_RC
19738
19739# Object file suffix (normally "o").
19740objext="$ac_objext"
19741
19742# Old archive suffix (normally "a").
19743libext="$libext"
19744
19745# Shared library suffix (normally ".so").
19746shrext_cmds='$shrext_cmds'
19747
19748# Executable file suffix (normally "").
19749exeext="$exeext"
19750
19751# Additional compiler flags for building library objects.
19752pic_flag=$lt_lt_prog_compiler_pic_RC
19753pic_mode=$pic_mode
19754
19755# What is the maximum length of a command?
19756max_cmd_len=$lt_cv_sys_max_cmd_len
19757
19758# Does compiler simultaneously support -c and -o options?
19759compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19760
19761# Must we lock files when doing compilation?
19762need_locks=$lt_need_locks
19763
19764# Do we need the lib prefix for modules?
19765need_lib_prefix=$need_lib_prefix
19766
19767# Do we need a version for libraries?
19768need_version=$need_version
19769
19770# Whether dlopen is supported.
19771dlopen_support=$enable_dlopen
19772
19773# Whether dlopen of programs is supported.
19774dlopen_self=$enable_dlopen_self
19775
19776# Whether dlopen of statically linked programs is supported.
19777dlopen_self_static=$enable_dlopen_self_static
19778
19779# Compiler flag to prevent dynamic linking.
19780link_static_flag=$lt_lt_prog_compiler_static_RC
19781
19782# Compiler flag to turn off builtin functions.
19783no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19784
19785# Compiler flag to allow reflexive dlopens.
19786export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19787
19788# Compiler flag to generate shared objects directly from archives.
19789whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19790
19791# Compiler flag to generate thread-safe objects.
19792thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19793
19794# Library versioning type.
19795version_type=$version_type
19796
19797# Format of library name prefix.
19798libname_spec=$lt_libname_spec
19799
19800# List of archive names.  First name is the real one, the rest are links.
19801# The last name is the one that the linker finds with -lNAME.
19802library_names_spec=$lt_library_names_spec
19803
19804# The coded name of the library, if different from the real name.
19805soname_spec=$lt_soname_spec
19806
19807# Commands used to build and install an old-style archive.
19808RANLIB=$lt_RANLIB
19809old_archive_cmds=$lt_old_archive_cmds_RC
19810old_postinstall_cmds=$lt_old_postinstall_cmds
19811old_postuninstall_cmds=$lt_old_postuninstall_cmds
19812
19813# Create an old-style archive from a shared archive.
19814old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19815
19816# Create a temporary old-style archive to link instead of a shared archive.
19817old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19818
19819# Commands used to build and install a shared archive.
19820archive_cmds=$lt_archive_cmds_RC
19821archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19822postinstall_cmds=$lt_postinstall_cmds
19823postuninstall_cmds=$lt_postuninstall_cmds
19824
19825# Commands used to build a loadable module (assumed same as above if empty)
19826module_cmds=$lt_module_cmds_RC
19827module_expsym_cmds=$lt_module_expsym_cmds_RC
19828
19829# Commands to strip libraries.
19830old_striplib=$lt_old_striplib
19831striplib=$lt_striplib
19832
19833# Dependencies to place before the objects being linked to create a
19834# shared library.
19835predep_objects=$lt_predep_objects_RC
19836
19837# Dependencies to place after the objects being linked to create a
19838# shared library.
19839postdep_objects=$lt_postdep_objects_RC
19840
19841# Dependencies to place before the objects being linked to create a
19842# shared library.
19843predeps=$lt_predeps_RC
19844
19845# Dependencies to place after the objects being linked to create a
19846# shared library.
19847postdeps=$lt_postdeps_RC
19848
19849# The library search path used internally by the compiler when linking
19850# a shared library.
19851compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19852
19853# Method to check whether dependent libraries are shared objects.
19854deplibs_check_method=$lt_deplibs_check_method
19855
19856# Command to use when deplibs_check_method == file_magic.
19857file_magic_cmd=$lt_file_magic_cmd
19858
19859# Flag that allows shared libraries with undefined symbols to be built.
19860allow_undefined_flag=$lt_allow_undefined_flag_RC
19861
19862# Flag that forces no undefined symbols.
19863no_undefined_flag=$lt_no_undefined_flag_RC
19864
19865# Commands used to finish a libtool library installation in a directory.
19866finish_cmds=$lt_finish_cmds
19867
19868# Same as above, but a single script fragment to be evaled but not shown.
19869finish_eval=$lt_finish_eval
19870
19871# Take the output of nm and produce a listing of raw symbols and C names.
19872global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19873
19874# Transform the output of nm in a proper C declaration
19875global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19876
19877# Transform the output of nm in a C name address pair
19878global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19879
19880# This is the shared library runtime path variable.
19881runpath_var=$runpath_var
19882
19883# This is the shared library path variable.
19884shlibpath_var=$shlibpath_var
19885
19886# Is shlibpath searched before the hard-coded library search path?
19887shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19888
19889# How to hardcode a shared library path into an executable.
19890hardcode_action=$hardcode_action_RC
19891
19892# Whether we should hardcode library paths into libraries.
19893hardcode_into_libs=$hardcode_into_libs
19894
19895# Flag to hardcode \$libdir into a binary during linking.
19896# This must work even if \$libdir does not exist.
19897hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19898
19899# If ld is used when linking, flag to hardcode \$libdir into
19900# a binary during linking. This must work even if \$libdir does
19901# not exist.
19902hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19903
19904# Whether we need a single -rpath flag with a separated argument.
19905hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19906
19907# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19908# resulting binary.
19909hardcode_direct=$hardcode_direct_RC
19910
19911# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19912# resulting binary.
19913hardcode_minus_L=$hardcode_minus_L_RC
19914
19915# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19916# the resulting binary.
19917hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19918
19919# Set to yes if building a shared library automatically hardcodes DIR into the library
19920# and all subsequent libraries and executables linked against it.
19921hardcode_automatic=$hardcode_automatic_RC
19922
19923# Variables whose values should be saved in libtool wrapper scripts and
19924# restored at relink time.
19925variables_saved_for_relink="$variables_saved_for_relink"
19926
19927# Whether libtool must link a program against all its dependency libraries.
19928link_all_deplibs=$link_all_deplibs_RC
19929
19930# Compile-time system search path for libraries
19931sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19932
19933# Run-time system search path for libraries
19934sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19935
19936# Fix the shell variable \$srcfile for the compiler.
19937fix_srcfile_path="$fix_srcfile_path_RC"
19938
19939# Set to yes if exported symbols are required.
19940always_export_symbols=$always_export_symbols_RC
19941
19942# The commands to list exported symbols.
19943export_symbols_cmds=$lt_export_symbols_cmds_RC
19944
19945# The commands to extract the exported symbol list from a shared archive.
19946extract_expsyms_cmds=$lt_extract_expsyms_cmds
19947
19948# Symbols that should not be listed in the preloaded symbols.
19949exclude_expsyms=$lt_exclude_expsyms_RC
19950
19951# Symbols that must always be exported.
19952include_expsyms=$lt_include_expsyms_RC
19953
19954# ### END LIBTOOL TAG CONFIG: $tagname
19955
19956__EOF__
19957
19958
19959else
19960  # If there is no Makefile yet, we rely on a make rule to execute
19961  # `config.status --recheck' to rerun these tests and create the
19962  # libtool script then.
19963  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19964  if test -f "$ltmain_in"; then
19965    test -f Makefile && make "$ltmain"
19966  fi
19967fi
19968
19969
19970ac_ext=c
19971ac_cpp='$CPP $CPPFLAGS'
19972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19974ac_compiler_gnu=$ac_cv_c_compiler_gnu
19975
19976CC="$lt_save_CC"
19977
19978	;;
19979
19980      *)
19981	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19982echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19983   { (exit 1); exit 1; }; }
19984	;;
19985      esac
19986
19987      # Append the new tag name to the list of available tags.
19988      if test -n "$tagname" ; then
19989      available_tags="$available_tags $tagname"
19990    fi
19991    fi
19992  done
19993  IFS="$lt_save_ifs"
19994
19995  # Now substitute the updated list of available tags.
19996  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19997    mv "${ofile}T" "$ofile"
19998    chmod +x "$ofile"
19999  else
20000    rm -f "${ofile}T"
20001    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20002echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20003   { (exit 1); exit 1; }; }
20004  fi
20005fi
20006
20007
20008
20009# This can be used to rebuild libtool when needed
20010LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20011
20012# Always use our own libtool.
20013LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20014
20015# Prevent multiple expansion
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037pkg_modules="pango >= 1.4.0, glib-2.0 >= 2.4.0, gmodule-2.0, gtk+-2.0 >= 2.4.0, libxml-2.0"
20038
20039
20040if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20041	if test -n "$ac_tool_prefix"; then
20042  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20043set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20046if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20047  echo $ECHO_N "(cached) $ECHO_C" >&6
20048else
20049  case $PKG_CONFIG in
20050  [\\/]* | ?:[\\/]*)
20051  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20052  ;;
20053  *)
20054  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20055for as_dir in $PATH
20056do
20057  IFS=$as_save_IFS
20058  test -z "$as_dir" && as_dir=.
20059  for ac_exec_ext in '' $ac_executable_extensions; do
20060  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20061    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20063    break 2
20064  fi
20065done
20066done
20067IFS=$as_save_IFS
20068
20069  ;;
20070esac
20071fi
20072PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20073if test -n "$PKG_CONFIG"; then
20074  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20075echo "${ECHO_T}$PKG_CONFIG" >&6; }
20076else
20077  { echo "$as_me:$LINENO: result: no" >&5
20078echo "${ECHO_T}no" >&6; }
20079fi
20080
20081
20082fi
20083if test -z "$ac_cv_path_PKG_CONFIG"; then
20084  ac_pt_PKG_CONFIG=$PKG_CONFIG
20085  # Extract the first word of "pkg-config", so it can be a program name with args.
20086set dummy pkg-config; ac_word=$2
20087{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20089if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20090  echo $ECHO_N "(cached) $ECHO_C" >&6
20091else
20092  case $ac_pt_PKG_CONFIG in
20093  [\\/]* | ?:[\\/]*)
20094  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20095  ;;
20096  *)
20097  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20098for as_dir in $PATH
20099do
20100  IFS=$as_save_IFS
20101  test -z "$as_dir" && as_dir=.
20102  for ac_exec_ext in '' $ac_executable_extensions; do
20103  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20104    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20106    break 2
20107  fi
20108done
20109done
20110IFS=$as_save_IFS
20111
20112  ;;
20113esac
20114fi
20115ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20116if test -n "$ac_pt_PKG_CONFIG"; then
20117  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20118echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20119else
20120  { echo "$as_me:$LINENO: result: no" >&5
20121echo "${ECHO_T}no" >&6; }
20122fi
20123
20124  if test "x$ac_pt_PKG_CONFIG" = x; then
20125    PKG_CONFIG=""
20126  else
20127    case $cross_compiling:$ac_tool_warned in
20128yes:)
20129{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20130whose name does not start with the host triplet.  If you think this
20131configuration is useful to you, please write to autoconf@gnu.org." >&5
20132echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20133whose name does not start with the host triplet.  If you think this
20134configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20135ac_tool_warned=yes ;;
20136esac
20137    PKG_CONFIG=$ac_pt_PKG_CONFIG
20138  fi
20139else
20140  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20141fi
20142
20143fi
20144if test -n "$PKG_CONFIG"; then
20145	_pkg_min_version=0.9.0
20146	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20147echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20148	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20149		{ echo "$as_me:$LINENO: result: yes" >&5
20150echo "${ECHO_T}yes" >&6; }
20151	else
20152		{ echo "$as_me:$LINENO: result: no" >&5
20153echo "${ECHO_T}no" >&6; }
20154		PKG_CONFIG=""
20155	fi
20156
20157fi
20158
20159pkg_failed=no
20160{ echo "$as_me:$LINENO: checking for PACKAGE" >&5
20161echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
20162
20163if test -n "$PKG_CONFIG"; then
20164    if test -n "$PACKAGE_CFLAGS"; then
20165        pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
20166    else
20167        if test -n "$PKG_CONFIG" && \
20168    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
20169  ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
20170  ac_status=$?
20171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172  (exit $ac_status); }; then
20173  pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null`
20174else
20175  pkg_failed=yes
20176fi
20177    fi
20178else
20179	pkg_failed=untried
20180fi
20181if test -n "$PKG_CONFIG"; then
20182    if test -n "$PACKAGE_LIBS"; then
20183        pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
20184    else
20185        if test -n "$PKG_CONFIG" && \
20186    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
20187  ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
20188  ac_status=$?
20189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190  (exit $ac_status); }; then
20191  pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null`
20192else
20193  pkg_failed=yes
20194fi
20195    fi
20196else
20197	pkg_failed=untried
20198fi
20199
20200
20201
20202if test $pkg_failed = yes; then
20203
20204if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20205        _pkg_short_errors_supported=yes
20206else
20207        _pkg_short_errors_supported=no
20208fi
20209        if test $_pkg_short_errors_supported = yes; then
20210	        PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_modules"`
20211        else
20212	        PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"`
20213        fi
20214	# Put the nasty error message in config.log where it belongs
20215	echo "$PACKAGE_PKG_ERRORS" >&5
20216
20217	{ { echo "$as_me:$LINENO: error: Package requirements ($pkg_modules) were not met:
20218
20219$PACKAGE_PKG_ERRORS
20220
20221Consider adjusting the PKG_CONFIG_PATH environment variable if you
20222installed software in a non-standard prefix.
20223
20224Alternatively, you may set the environment variables PACKAGE_CFLAGS
20225and PACKAGE_LIBS to avoid the need to call pkg-config.
20226See the pkg-config man page for more details.
20227" >&5
20228echo "$as_me: error: Package requirements ($pkg_modules) were not met:
20229
20230$PACKAGE_PKG_ERRORS
20231
20232Consider adjusting the PKG_CONFIG_PATH environment variable if you
20233installed software in a non-standard prefix.
20234
20235Alternatively, you may set the environment variables PACKAGE_CFLAGS
20236and PACKAGE_LIBS to avoid the need to call pkg-config.
20237See the pkg-config man page for more details.
20238" >&2;}
20239   { (exit 1); exit 1; }; }
20240elif test $pkg_failed = untried; then
20241	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20242is in your PATH or set the PKG_CONFIG environment variable to the full
20243path to pkg-config.
20244
20245Alternatively, you may set the environment variables PACKAGE_CFLAGS
20246and PACKAGE_LIBS to avoid the need to call pkg-config.
20247See the pkg-config man page for more details.
20248
20249To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20250See \`config.log' for more details." >&5
20251echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20252is in your PATH or set the PKG_CONFIG environment variable to the full
20253path to pkg-config.
20254
20255Alternatively, you may set the environment variables PACKAGE_CFLAGS
20256and PACKAGE_LIBS to avoid the need to call pkg-config.
20257See the pkg-config man page for more details.
20258
20259To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20260See \`config.log' for more details." >&2;}
20261   { (exit 1); exit 1; }; }
20262else
20263	PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
20264	PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
20265        { echo "$as_me:$LINENO: result: yes" >&5
20266echo "${ECHO_T}yes" >&6; }
20267	:
20268fi
20269
20270
20271
20272GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
20273
20274
20275
20276cat >>confdefs.h <<_ACEOF
20277#define DBUS_API_SUBJECT_TO_CHANGE
20278_ACEOF
20279
20280
20281if test "x$GCC" = "xyes"; then
20282	CFLAGS="$CFLAGS -Wall"
20283fi
20284
20285
20286
20287NO_UNDEFINED=""
20288case "$host" in
20289*-*-mingw*)
20290	NO_UNDEFINED="-no-undefined";;
20291esac
20292
20293
20294# define a MAINT-like variable REBUILD which is set if Perl
20295# is found, so autogenerated sources can be rebuilt
20296
20297for ac_prog in perl5 perl
20298do
20299  # Extract the first word of "$ac_prog", so it can be a program name with args.
20300set dummy $ac_prog; ac_word=$2
20301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20303if test "${ac_cv_prog_PERL+set}" = set; then
20304  echo $ECHO_N "(cached) $ECHO_C" >&6
20305else
20306  if test -n "$PERL"; then
20307  ac_cv_prog_PERL="$PERL" # Let the user override the test.
20308else
20309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20310for as_dir in $PATH
20311do
20312  IFS=$as_save_IFS
20313  test -z "$as_dir" && as_dir=.
20314  for ac_exec_ext in '' $ac_executable_extensions; do
20315  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20316    ac_cv_prog_PERL="$ac_prog"
20317    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20318    break 2
20319  fi
20320done
20321done
20322IFS=$as_save_IFS
20323
20324fi
20325fi
20326PERL=$ac_cv_prog_PERL
20327if test -n "$PERL"; then
20328  { echo "$as_me:$LINENO: result: $PERL" >&5
20329echo "${ECHO_T}$PERL" >&6; }
20330else
20331  { echo "$as_me:$LINENO: result: no" >&5
20332echo "${ECHO_T}no" >&6; }
20333fi
20334
20335
20336  test -n "$PERL" && break
20337done
20338
20339
20340REBUILD=\#
20341if test "x$enable_rebuilds" = "xyes" && \
20342	test -n "$PERL" && \
20343		$PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 ; then
20344	REBUILD=
20345fi
20346
20347
20348
20349
20350
20351# Check whether --with-html-dir was given.
20352if test "${with_html_dir+set}" = set; then
20353  withval=$with_html_dir;
20354else
20355  with_html_dir='${datadir}/gtk-doc/html'
20356fi
20357
20358  HTML_DIR="$with_html_dir"
20359
20360
20361    # Check whether --enable-gtk-doc was given.
20362if test "${enable_gtk_doc+set}" = set; then
20363  enableval=$enable_gtk_doc;
20364else
20365  enable_gtk_doc=no
20366fi
20367
20368
20369  have_gtk_doc=no
20370  if test x$enable_gtk_doc = xyes; then
20371    if test -z "$PKG_CONFIG"; then
20372      # Extract the first word of "pkg-config", so it can be a program name with args.
20373set dummy pkg-config; ac_word=$2
20374{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20376if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20377  echo $ECHO_N "(cached) $ECHO_C" >&6
20378else
20379  case $PKG_CONFIG in
20380  [\\/]* | ?:[\\/]*)
20381  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20382  ;;
20383  *)
20384  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20385for as_dir in $PATH
20386do
20387  IFS=$as_save_IFS
20388  test -z "$as_dir" && as_dir=.
20389  for ac_exec_ext in '' $ac_executable_extensions; do
20390  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20391    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20392    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20393    break 2
20394  fi
20395done
20396done
20397IFS=$as_save_IFS
20398
20399  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20400  ;;
20401esac
20402fi
20403PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20404if test -n "$PKG_CONFIG"; then
20405  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20406echo "${ECHO_T}$PKG_CONFIG" >&6; }
20407else
20408  { echo "$as_me:$LINENO: result: no" >&5
20409echo "${ECHO_T}no" >&6; }
20410fi
20411
20412
20413    fi
20414    if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
20415      have_gtk_doc=yes
20416    fi
20417
20418  gtk_doc_min_version=1.4
20419    if test "$have_gtk_doc" = yes; then
20420      { echo "$as_me:$LINENO: checking gtk-doc version >= $gtk_doc_min_version" >&5
20421echo $ECHO_N "checking gtk-doc version >= $gtk_doc_min_version... $ECHO_C" >&6; }
20422      if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
20423        { echo "$as_me:$LINENO: result: yes" >&5
20424echo "${ECHO_T}yes" >&6; }
20425      else
20426        { echo "$as_me:$LINENO: result: no" >&5
20427echo "${ECHO_T}no" >&6; }
20428        have_gtk_doc=no
20429      fi
20430    fi
20431
20432    if test "$have_gtk_doc" != yes; then
20433      enable_gtk_doc=no
20434    fi
20435  fi
20436
20437
20438
20439if test x$enable_gtk_doc = xyes; then
20440  ENABLE_GTK_DOC_TRUE=
20441  ENABLE_GTK_DOC_FALSE='#'
20442else
20443  ENABLE_GTK_DOC_TRUE='#'
20444  ENABLE_GTK_DOC_FALSE=
20445fi
20446
20447
20448
20449if test -n "$LIBTOOL"; then
20450  GTK_DOC_USE_LIBTOOL_TRUE=
20451  GTK_DOC_USE_LIBTOOL_FALSE='#'
20452else
20453  GTK_DOC_USE_LIBTOOL_TRUE='#'
20454  GTK_DOC_USE_LIBTOOL_FALSE=
20455fi
20456
20457
20458
20459{ echo "$as_me:$LINENO: checking for iso-codes package" >&5
20460echo $ECHO_N "checking for iso-codes package... $ECHO_C" >&6; }
20461have_iso_codes=no
20462if $PKG_CONFIG --exists iso-codes; then
20463	if $PKG_CONFIG iso-codes --atleast-version=0.49; then
20464		have_iso_codes=yes
20465		{ echo "$as_me:$LINENO: result: $have_iso_codes" >&5
20466echo "${ECHO_T}$have_iso_codes" >&6; }
20467	else
20468		{ echo "$as_me:$LINENO: WARNING: iso-codes detected, but version 0.49 or later is required due to licensing" >&5
20469echo "$as_me: WARNING: iso-codes detected, but version 0.49 or later is required due to licensing" >&2;}
20470	fi
20471else
20472	{ echo "$as_me:$LINENO: result: $have_iso_codes" >&5
20473echo "${ECHO_T}$have_iso_codes" >&6; }
20474fi
20475
20476if test "x$have_iso_codes" = "xyes"; then
20477	{ echo "$as_me:$LINENO: checking whether iso-codes has iso-639 and iso-3166 domains" >&5
20478echo $ECHO_N "checking whether iso-codes has iso-639 and iso-3166 domains... $ECHO_C" >&6; }
20479	if $PKG_CONFIG --variable=domains iso-codes | grep -q 639 && \
20480		$PKG_CONFIG --variable=domains iso-codes | grep -q 3166 ; then
20481		result=yes
20482	else
20483		result=no
20484		have_iso_codes=no
20485	fi
20486	{ echo "$as_me:$LINENO: result: $result" >&5
20487echo "${ECHO_T}$result" >&6; }
20488fi
20489
20490if test "x$have_iso_codes" = "xyes"; then
20491
20492cat >>confdefs.h <<_ACEOF
20493#define ISO_CODES_PREFIX "`$PKG_CONFIG --variable=prefix iso-codes`"
20494_ACEOF
20495
20496
20497cat >>confdefs.h <<\_ACEOF
20498#define HAVE_ISO_CODES 1
20499_ACEOF
20500
20501fi
20502
20503ac_config_files="$ac_config_files libsexy.pc Makefile libsexy/Makefile tests/Makefile docs/Makefile docs/reference/Makefile"
20504
20505
20506cat >confcache <<\_ACEOF
20507# This file is a shell script that caches the results of configure
20508# tests run on this system so they can be shared between configure
20509# scripts and configure runs, see configure's option --config-cache.
20510# It is not useful on other systems.  If it contains results you don't
20511# want to keep, you may remove or edit it.
20512#
20513# config.status only pays attention to the cache file if you give it
20514# the --recheck option to rerun configure.
20515#
20516# `ac_cv_env_foo' variables (set or unset) will be overridden when
20517# loading this file, other *unset* `ac_cv_foo' will be assigned the
20518# following values.
20519
20520_ACEOF
20521
20522# The following way of writing the cache mishandles newlines in values,
20523# but we know of no workaround that is simple, portable, and efficient.
20524# So, we kill variables containing newlines.
20525# Ultrix sh set writes to stderr and can't be redirected directly,
20526# and sets the high bit in the cache file unless we assign to the vars.
20527(
20528  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20529    eval ac_val=\$$ac_var
20530    case $ac_val in #(
20531    *${as_nl}*)
20532      case $ac_var in #(
20533      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20534echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20535      esac
20536      case $ac_var in #(
20537      _ | IFS | as_nl) ;; #(
20538      *) $as_unset $ac_var ;;
20539      esac ;;
20540    esac
20541  done
20542
20543  (set) 2>&1 |
20544    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20545    *${as_nl}ac_space=\ *)
20546      # `set' does not quote correctly, so add quotes (double-quote
20547      # substitution turns \\\\ into \\, and sed turns \\ into \).
20548      sed -n \
20549	"s/'/'\\\\''/g;
20550	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20551      ;; #(
20552    *)
20553      # `set' quotes correctly as required by POSIX, so do not add quotes.
20554      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20555      ;;
20556    esac |
20557    sort
20558) |
20559  sed '
20560     /^ac_cv_env_/b end
20561     t clear
20562     :clear
20563     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20564     t end
20565     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20566     :end' >>confcache
20567if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20568  if test -w "$cache_file"; then
20569    test "x$cache_file" != "x/dev/null" &&
20570      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20571echo "$as_me: updating cache $cache_file" >&6;}
20572    cat confcache >$cache_file
20573  else
20574    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20575echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20576  fi
20577fi
20578rm -f confcache
20579
20580test "x$prefix" = xNONE && prefix=$ac_default_prefix
20581# Let make expand exec_prefix.
20582test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20583
20584DEFS=-DHAVE_CONFIG_H
20585
20586ac_libobjs=
20587ac_ltlibobjs=
20588for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20589  # 1. Remove the extension, and $U if already installed.
20590  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20591  ac_i=`echo "$ac_i" | sed "$ac_script"`
20592  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20593  #    will be set to the directory where LIBOBJS objects are built.
20594  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20595  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20596done
20597LIBOBJS=$ac_libobjs
20598
20599LTLIBOBJS=$ac_ltlibobjs
20600
20601
20602if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20603  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20604Usually this means the macro was only invoked conditionally." >&5
20605echo "$as_me: error: conditional \"AMDEP\" was never defined.
20606Usually this means the macro was only invoked conditionally." >&2;}
20607   { (exit 1); exit 1; }; }
20608fi
20609if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20610  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20611Usually this means the macro was only invoked conditionally." >&5
20612echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20613Usually this means the macro was only invoked conditionally." >&2;}
20614   { (exit 1); exit 1; }; }
20615fi
20616if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20617  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20618Usually this means the macro was only invoked conditionally." >&5
20619echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20620Usually this means the macro was only invoked conditionally." >&2;}
20621   { (exit 1); exit 1; }; }
20622fi
20623if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
20624  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
20625Usually this means the macro was only invoked conditionally." >&5
20626echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
20627Usually this means the macro was only invoked conditionally." >&2;}
20628   { (exit 1); exit 1; }; }
20629fi
20630if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
20631  { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
20632Usually this means the macro was only invoked conditionally." >&5
20633echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
20634Usually this means the macro was only invoked conditionally." >&2;}
20635   { (exit 1); exit 1; }; }
20636fi
20637
20638: ${CONFIG_STATUS=./config.status}
20639ac_clean_files_save=$ac_clean_files
20640ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20641{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20642echo "$as_me: creating $CONFIG_STATUS" >&6;}
20643cat >$CONFIG_STATUS <<_ACEOF
20644#! $SHELL
20645# Generated by $as_me.
20646# Run this file to recreate the current configuration.
20647# Compiler output produced by configure, useful for debugging
20648# configure, is in config.log if it exists.
20649
20650debug=false
20651ac_cs_recheck=false
20652ac_cs_silent=false
20653SHELL=\${CONFIG_SHELL-$SHELL}
20654_ACEOF
20655
20656cat >>$CONFIG_STATUS <<\_ACEOF
20657## --------------------- ##
20658## M4sh Initialization.  ##
20659## --------------------- ##
20660
20661# Be Bourne compatible
20662if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20663  emulate sh
20664  NULLCMD=:
20665  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20666  # is contrary to our usage.  Disable this feature.
20667  alias -g '${1+"$@"}'='"$@"'
20668  setopt NO_GLOB_SUBST
20669else
20670  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20671fi
20672BIN_SH=xpg4; export BIN_SH # for Tru64
20673DUALCASE=1; export DUALCASE # for MKS sh
20674
20675
20676# PATH needs CR
20677# Avoid depending upon Character Ranges.
20678as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20679as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20680as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20681as_cr_digits='0123456789'
20682as_cr_alnum=$as_cr_Letters$as_cr_digits
20683
20684# The user is always right.
20685if test "${PATH_SEPARATOR+set}" != set; then
20686  echo "#! /bin/sh" >conf$$.sh
20687  echo  "exit 0"   >>conf$$.sh
20688  chmod +x conf$$.sh
20689  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20690    PATH_SEPARATOR=';'
20691  else
20692    PATH_SEPARATOR=:
20693  fi
20694  rm -f conf$$.sh
20695fi
20696
20697# Support unset when possible.
20698if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20699  as_unset=unset
20700else
20701  as_unset=false
20702fi
20703
20704
20705# IFS
20706# We need space, tab and new line, in precisely that order.  Quoting is
20707# there to prevent editors from complaining about space-tab.
20708# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20709# splitting by setting IFS to empty value.)
20710as_nl='
20711'
20712IFS=" ""	$as_nl"
20713
20714# Find who we are.  Look in the path if we contain no directory separator.
20715case $0 in
20716  *[\\/]* ) as_myself=$0 ;;
20717  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20718for as_dir in $PATH
20719do
20720  IFS=$as_save_IFS
20721  test -z "$as_dir" && as_dir=.
20722  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20723done
20724IFS=$as_save_IFS
20725
20726     ;;
20727esac
20728# We did not find ourselves, most probably we were run as `sh COMMAND'
20729# in which case we are not to be found in the path.
20730if test "x$as_myself" = x; then
20731  as_myself=$0
20732fi
20733if test ! -f "$as_myself"; then
20734  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20735  { (exit 1); exit 1; }
20736fi
20737
20738# Work around bugs in pre-3.0 UWIN ksh.
20739for as_var in ENV MAIL MAILPATH
20740do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20741done
20742PS1='$ '
20743PS2='> '
20744PS4='+ '
20745
20746# NLS nuisances.
20747for as_var in \
20748  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20749  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20750  LC_TELEPHONE LC_TIME
20751do
20752  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20753    eval $as_var=C; export $as_var
20754  else
20755    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20756  fi
20757done
20758
20759# Required to use basename.
20760if expr a : '\(a\)' >/dev/null 2>&1 &&
20761   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20762  as_expr=expr
20763else
20764  as_expr=false
20765fi
20766
20767if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20768  as_basename=basename
20769else
20770  as_basename=false
20771fi
20772
20773
20774# Name of the executable.
20775as_me=`$as_basename -- "$0" ||
20776$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20777	 X"$0" : 'X\(//\)$' \| \
20778	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20779echo X/"$0" |
20780    sed '/^.*\/\([^/][^/]*\)\/*$/{
20781	    s//\1/
20782	    q
20783	  }
20784	  /^X\/\(\/\/\)$/{
20785	    s//\1/
20786	    q
20787	  }
20788	  /^X\/\(\/\).*/{
20789	    s//\1/
20790	    q
20791	  }
20792	  s/.*/./; q'`
20793
20794# CDPATH.
20795$as_unset CDPATH
20796
20797
20798
20799  as_lineno_1=$LINENO
20800  as_lineno_2=$LINENO
20801  test "x$as_lineno_1" != "x$as_lineno_2" &&
20802  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20803
20804  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20805  # uniformly replaced by the line number.  The first 'sed' inserts a
20806  # line-number line after each line using $LINENO; the second 'sed'
20807  # does the real work.  The second script uses 'N' to pair each
20808  # line-number line with the line containing $LINENO, and appends
20809  # trailing '-' during substitution so that $LINENO is not a special
20810  # case at line end.
20811  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20812  # scripts with optimization help from Paolo Bonzini.  Blame Lee
20813  # E. McMahon (1931-1989) for sed's syntax.  :-)
20814  sed -n '
20815    p
20816    /[$]LINENO/=
20817  ' <$as_myself |
20818    sed '
20819      s/[$]LINENO.*/&-/
20820      t lineno
20821      b
20822      :lineno
20823      N
20824      :loop
20825      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20826      t loop
20827      s/-\n.*//
20828    ' >$as_me.lineno &&
20829  chmod +x "$as_me.lineno" ||
20830    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20831   { (exit 1); exit 1; }; }
20832
20833  # Don't try to exec as it changes $[0], causing all sort of problems
20834  # (the dirname of $[0] is not the place where we might find the
20835  # original and so on.  Autoconf is especially sensitive to this).
20836  . "./$as_me.lineno"
20837  # Exit status is that of the last command.
20838  exit
20839}
20840
20841
20842if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20843  as_dirname=dirname
20844else
20845  as_dirname=false
20846fi
20847
20848ECHO_C= ECHO_N= ECHO_T=
20849case `echo -n x` in
20850-n*)
20851  case `echo 'x\c'` in
20852  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20853  *)   ECHO_C='\c';;
20854  esac;;
20855*)
20856  ECHO_N='-n';;
20857esac
20858
20859if expr a : '\(a\)' >/dev/null 2>&1 &&
20860   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20861  as_expr=expr
20862else
20863  as_expr=false
20864fi
20865
20866rm -f conf$$ conf$$.exe conf$$.file
20867if test -d conf$$.dir; then
20868  rm -f conf$$.dir/conf$$.file
20869else
20870  rm -f conf$$.dir
20871  mkdir conf$$.dir
20872fi
20873echo >conf$$.file
20874if ln -s conf$$.file conf$$ 2>/dev/null; then
20875  as_ln_s='ln -s'
20876  # ... but there are two gotchas:
20877  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20878  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20879  # In both cases, we have to default to `cp -p'.
20880  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20881    as_ln_s='cp -p'
20882elif ln conf$$.file conf$$ 2>/dev/null; then
20883  as_ln_s=ln
20884else
20885  as_ln_s='cp -p'
20886fi
20887rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20888rmdir conf$$.dir 2>/dev/null
20889
20890if mkdir -p . 2>/dev/null; then
20891  as_mkdir_p=:
20892else
20893  test -d ./-p && rmdir ./-p
20894  as_mkdir_p=false
20895fi
20896
20897# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
20898# systems may use methods other than mode bits to determine executability.
20899cat >conf$$.file <<_ASEOF
20900#! /bin/sh
20901exit 0
20902_ASEOF
20903chmod +x conf$$.file
20904if test -x conf$$.file >/dev/null 2>&1; then
20905  as_executable_p="test -x"
20906else
20907  as_executable_p=:
20908fi
20909rm -f conf$$.file
20910
20911# Sed expression to map a string onto a valid CPP name.
20912as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20913
20914# Sed expression to map a string onto a valid variable name.
20915as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20916
20917
20918exec 6>&1
20919
20920# Save the log message, to keep $[0] and so on meaningful, and to
20921# report actual input values of CONFIG_FILES etc. instead of their
20922# values after options handling.
20923ac_log="
20924This file was extended by libsexy $as_me 0.1.11, which was
20925generated by GNU Autoconf 2.60.  Invocation command line was
20926
20927  CONFIG_FILES    = $CONFIG_FILES
20928  CONFIG_HEADERS  = $CONFIG_HEADERS
20929  CONFIG_LINKS    = $CONFIG_LINKS
20930  CONFIG_COMMANDS = $CONFIG_COMMANDS
20931  $ $0 $@
20932
20933on `(hostname || uname -n) 2>/dev/null | sed 1q`
20934"
20935
20936_ACEOF
20937
20938cat >>$CONFIG_STATUS <<_ACEOF
20939# Files that config.status was made for.
20940config_files="$ac_config_files"
20941config_headers="$ac_config_headers"
20942config_commands="$ac_config_commands"
20943
20944_ACEOF
20945
20946cat >>$CONFIG_STATUS <<\_ACEOF
20947ac_cs_usage="\
20948\`$as_me' instantiates files from templates according to the
20949current configuration.
20950
20951Usage: $0 [OPTIONS] [FILE]...
20952
20953  -h, --help       print this help, then exit
20954  -V, --version    print version number, then exit
20955  -q, --quiet      do not print progress messages
20956  -d, --debug      don't remove temporary files
20957      --recheck    update $as_me by reconfiguring in the same conditions
20958  --file=FILE[:TEMPLATE]
20959		   instantiate the configuration file FILE
20960  --header=FILE[:TEMPLATE]
20961		   instantiate the configuration header FILE
20962
20963Configuration files:
20964$config_files
20965
20966Configuration headers:
20967$config_headers
20968
20969Configuration commands:
20970$config_commands
20971
20972Report bugs to <bug-autoconf@gnu.org>."
20973
20974_ACEOF
20975cat >>$CONFIG_STATUS <<_ACEOF
20976ac_cs_version="\\
20977libsexy config.status 0.1.11
20978configured by $0, generated by GNU Autoconf 2.60,
20979  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20980
20981Copyright (C) 2006 Free Software Foundation, Inc.
20982This config.status script is free software; the Free Software Foundation
20983gives unlimited permission to copy, distribute and modify it."
20984
20985ac_pwd='$ac_pwd'
20986srcdir='$srcdir'
20987INSTALL='$INSTALL'
20988_ACEOF
20989
20990cat >>$CONFIG_STATUS <<\_ACEOF
20991# If no file are specified by the user, then we need to provide default
20992# value.  By we need to know if files were specified by the user.
20993ac_need_defaults=:
20994while test $# != 0
20995do
20996  case $1 in
20997  --*=*)
20998    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20999    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21000    ac_shift=:
21001    ;;
21002  *)
21003    ac_option=$1
21004    ac_optarg=$2
21005    ac_shift=shift
21006    ;;
21007  esac
21008
21009  case $ac_option in
21010  # Handling of the options.
21011  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21012    ac_cs_recheck=: ;;
21013  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21014    echo "$ac_cs_version"; exit ;;
21015  --debug | --debu | --deb | --de | --d | -d )
21016    debug=: ;;
21017  --file | --fil | --fi | --f )
21018    $ac_shift
21019    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21020    ac_need_defaults=false;;
21021  --header | --heade | --head | --hea )
21022    $ac_shift
21023    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21024    ac_need_defaults=false;;
21025  --he | --h)
21026    # Conflict between --help and --header
21027    { echo "$as_me: error: ambiguous option: $1
21028Try \`$0 --help' for more information." >&2
21029   { (exit 1); exit 1; }; };;
21030  --help | --hel | -h )
21031    echo "$ac_cs_usage"; exit ;;
21032  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21033  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21034    ac_cs_silent=: ;;
21035
21036  # This is an error.
21037  -*) { echo "$as_me: error: unrecognized option: $1
21038Try \`$0 --help' for more information." >&2
21039   { (exit 1); exit 1; }; } ;;
21040
21041  *) ac_config_targets="$ac_config_targets $1"
21042     ac_need_defaults=false ;;
21043
21044  esac
21045  shift
21046done
21047
21048ac_configure_extra_args=
21049
21050if $ac_cs_silent; then
21051  exec 6>/dev/null
21052  ac_configure_extra_args="$ac_configure_extra_args --silent"
21053fi
21054
21055_ACEOF
21056cat >>$CONFIG_STATUS <<_ACEOF
21057if \$ac_cs_recheck; then
21058  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21059  CONFIG_SHELL=$SHELL
21060  export CONFIG_SHELL
21061  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21062fi
21063
21064_ACEOF
21065cat >>$CONFIG_STATUS <<\_ACEOF
21066exec 5>>config.log
21067{
21068  echo
21069  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21070## Running $as_me. ##
21071_ASBOX
21072  echo "$ac_log"
21073} >&5
21074
21075_ACEOF
21076cat >>$CONFIG_STATUS <<_ACEOF
21077#
21078# INIT-COMMANDS
21079#
21080AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21081
21082_ACEOF
21083
21084cat >>$CONFIG_STATUS <<\_ACEOF
21085
21086# Handling of arguments.
21087for ac_config_target in $ac_config_targets
21088do
21089  case $ac_config_target in
21090    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21091    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21092    "libsexy.pc") CONFIG_FILES="$CONFIG_FILES libsexy.pc" ;;
21093    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21094    "libsexy/Makefile") CONFIG_FILES="$CONFIG_FILES libsexy/Makefile" ;;
21095    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21096    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
21097    "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
21098
21099  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21100echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21101   { (exit 1); exit 1; }; };;
21102  esac
21103done
21104
21105
21106# If the user did not use the arguments to specify the items to instantiate,
21107# then the envvar interface is used.  Set only those that are not.
21108# We use the long form for the default assignment because of an extremely
21109# bizarre bug on SunOS 4.1.3.
21110if $ac_need_defaults; then
21111  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21112  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21113  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21114fi
21115
21116# Have a temporary directory for convenience.  Make it in the build tree
21117# simply because there is no reason against having it here, and in addition,
21118# creating and moving files from /tmp can sometimes cause problems.
21119# Hook for its removal unless debugging.
21120# Note that there is a small window in which the directory will not be cleaned:
21121# after its creation but before its name has been assigned to `$tmp'.
21122$debug ||
21123{
21124  tmp=
21125  trap 'exit_status=$?
21126  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21127' 0
21128  trap '{ (exit 1); exit 1; }' 1 2 13 15
21129}
21130# Create a (secure) tmp directory for tmp files.
21131
21132{
21133  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21134  test -n "$tmp" && test -d "$tmp"
21135}  ||
21136{
21137  tmp=./conf$$-$RANDOM
21138  (umask 077 && mkdir "$tmp")
21139} ||
21140{
21141   echo "$me: cannot create a temporary directory in ." >&2
21142   { (exit 1); exit 1; }
21143}
21144
21145#
21146# Set up the sed scripts for CONFIG_FILES section.
21147#
21148
21149# No need to generate the scripts if there are no CONFIG_FILES.
21150# This happens for instance when ./config.status config.h
21151if test -n "$CONFIG_FILES"; then
21152
21153_ACEOF
21154
21155
21156
21157ac_delim='%!_!# '
21158for ac_last_try in false false false false false :; do
21159  cat >conf$$subs.sed <<_ACEOF
21160SHELL!$SHELL$ac_delim
21161PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21162PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21163PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21164PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21165PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21166PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21167exec_prefix!$exec_prefix$ac_delim
21168prefix!$prefix$ac_delim
21169program_transform_name!$program_transform_name$ac_delim
21170bindir!$bindir$ac_delim
21171sbindir!$sbindir$ac_delim
21172libexecdir!$libexecdir$ac_delim
21173datarootdir!$datarootdir$ac_delim
21174datadir!$datadir$ac_delim
21175sysconfdir!$sysconfdir$ac_delim
21176sharedstatedir!$sharedstatedir$ac_delim
21177localstatedir!$localstatedir$ac_delim
21178includedir!$includedir$ac_delim
21179oldincludedir!$oldincludedir$ac_delim
21180docdir!$docdir$ac_delim
21181infodir!$infodir$ac_delim
21182htmldir!$htmldir$ac_delim
21183dvidir!$dvidir$ac_delim
21184pdfdir!$pdfdir$ac_delim
21185psdir!$psdir$ac_delim
21186libdir!$libdir$ac_delim
21187localedir!$localedir$ac_delim
21188mandir!$mandir$ac_delim
21189DEFS!$DEFS$ac_delim
21190ECHO_C!$ECHO_C$ac_delim
21191ECHO_N!$ECHO_N$ac_delim
21192ECHO_T!$ECHO_T$ac_delim
21193LIBS!$LIBS$ac_delim
21194build_alias!$build_alias$ac_delim
21195host_alias!$host_alias$ac_delim
21196target_alias!$target_alias$ac_delim
21197LT_RELEASE!$LT_RELEASE$ac_delim
21198LT_CURRENT!$LT_CURRENT$ac_delim
21199LT_REVISION!$LT_REVISION$ac_delim
21200LT_AGE!$LT_AGE$ac_delim
21201INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21202INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21203INSTALL_DATA!$INSTALL_DATA$ac_delim
21204CYGPATH_W!$CYGPATH_W$ac_delim
21205PACKAGE!$PACKAGE$ac_delim
21206VERSION!$VERSION$ac_delim
21207ACLOCAL!$ACLOCAL$ac_delim
21208AUTOCONF!$AUTOCONF$ac_delim
21209AUTOMAKE!$AUTOMAKE$ac_delim
21210AUTOHEADER!$AUTOHEADER$ac_delim
21211MAKEINFO!$MAKEINFO$ac_delim
21212install_sh!$install_sh$ac_delim
21213STRIP!$STRIP$ac_delim
21214INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21215mkdir_p!$mkdir_p$ac_delim
21216AWK!$AWK$ac_delim
21217SET_MAKE!$SET_MAKE$ac_delim
21218am__leading_dot!$am__leading_dot$ac_delim
21219AMTAR!$AMTAR$ac_delim
21220am__tar!$am__tar$ac_delim
21221am__untar!$am__untar$ac_delim
21222CC!$CC$ac_delim
21223CFLAGS!$CFLAGS$ac_delim
21224LDFLAGS!$LDFLAGS$ac_delim
21225CPPFLAGS!$CPPFLAGS$ac_delim
21226ac_ct_CC!$ac_ct_CC$ac_delim
21227EXEEXT!$EXEEXT$ac_delim
21228OBJEXT!$OBJEXT$ac_delim
21229DEPDIR!$DEPDIR$ac_delim
21230am__include!$am__include$ac_delim
21231am__quote!$am__quote$ac_delim
21232AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21233AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21234AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21235CCDEPMODE!$CCDEPMODE$ac_delim
21236am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21237am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21238CPP!$CPP$ac_delim
21239LN_S!$LN_S$ac_delim
21240GREP!$GREP$ac_delim
21241EGREP!$EGREP$ac_delim
21242build!$build$ac_delim
21243build_cpu!$build_cpu$ac_delim
21244build_vendor!$build_vendor$ac_delim
21245build_os!$build_os$ac_delim
21246host!$host$ac_delim
21247host_cpu!$host_cpu$ac_delim
21248host_vendor!$host_vendor$ac_delim
21249host_os!$host_os$ac_delim
21250ECHO!$ECHO$ac_delim
21251AR!$AR$ac_delim
21252RANLIB!$RANLIB$ac_delim
21253CXX!$CXX$ac_delim
21254CXXFLAGS!$CXXFLAGS$ac_delim
21255ac_ct_CXX!$ac_ct_CXX$ac_delim
21256CXXDEPMODE!$CXXDEPMODE$ac_delim
21257_ACEOF
21258
21259  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21260    break
21261  elif $ac_last_try; then
21262    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21263echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21264   { (exit 1); exit 1; }; }
21265  else
21266    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21267  fi
21268done
21269
21270ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21271if test -n "$ac_eof"; then
21272  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21273  ac_eof=`expr $ac_eof + 1`
21274fi
21275
21276cat >>$CONFIG_STATUS <<_ACEOF
21277cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21278/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21279_ACEOF
21280sed '
21281s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21282s/^/s,@/; s/!/@,|#_!!_#|/
21283:n
21284t n
21285s/'"$ac_delim"'$/,g/; t
21286s/$/\\/; p
21287N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21288' >>$CONFIG_STATUS <conf$$subs.sed
21289rm -f conf$$subs.sed
21290cat >>$CONFIG_STATUS <<_ACEOF
21291CEOF$ac_eof
21292_ACEOF
21293
21294
21295ac_delim='%!_!# '
21296for ac_last_try in false false false false false :; do
21297  cat >conf$$subs.sed <<_ACEOF
21298am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21299am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21300CXXCPP!$CXXCPP$ac_delim
21301F77!$F77$ac_delim
21302FFLAGS!$FFLAGS$ac_delim
21303ac_ct_F77!$ac_ct_F77$ac_delim
21304LIBTOOL!$LIBTOOL$ac_delim
21305PKG_CONFIG!$PKG_CONFIG$ac_delim
21306PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
21307PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
21308GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
21309NO_UNDEFINED!$NO_UNDEFINED$ac_delim
21310PERL!$PERL$ac_delim
21311REBUILD!$REBUILD$ac_delim
21312HTML_DIR!$HTML_DIR$ac_delim
21313ENABLE_GTK_DOC_TRUE!$ENABLE_GTK_DOC_TRUE$ac_delim
21314ENABLE_GTK_DOC_FALSE!$ENABLE_GTK_DOC_FALSE$ac_delim
21315GTK_DOC_USE_LIBTOOL_TRUE!$GTK_DOC_USE_LIBTOOL_TRUE$ac_delim
21316GTK_DOC_USE_LIBTOOL_FALSE!$GTK_DOC_USE_LIBTOOL_FALSE$ac_delim
21317LIBOBJS!$LIBOBJS$ac_delim
21318LTLIBOBJS!$LTLIBOBJS$ac_delim
21319_ACEOF
21320
21321  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
21322    break
21323  elif $ac_last_try; then
21324    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21325echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21326   { (exit 1); exit 1; }; }
21327  else
21328    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21329  fi
21330done
21331
21332ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21333if test -n "$ac_eof"; then
21334  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21335  ac_eof=`expr $ac_eof + 1`
21336fi
21337
21338cat >>$CONFIG_STATUS <<_ACEOF
21339cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21340/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21341_ACEOF
21342sed '
21343s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21344s/^/s,@/; s/!/@,|#_!!_#|/
21345:n
21346t n
21347s/'"$ac_delim"'$/,g/; t
21348s/$/\\/; p
21349N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21350' >>$CONFIG_STATUS <conf$$subs.sed
21351rm -f conf$$subs.sed
21352cat >>$CONFIG_STATUS <<_ACEOF
21353:end
21354s/|#_!!_#|//g
21355CEOF$ac_eof
21356_ACEOF
21357
21358
21359# VPATH may cause trouble with some makes, so we remove $(srcdir),
21360# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21361# trailing colons and then remove the whole line if VPATH becomes empty
21362# (actually we leave an empty line to preserve line numbers).
21363if test "x$srcdir" = x.; then
21364  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21365s/:*\$(srcdir):*/:/
21366s/:*\${srcdir}:*/:/
21367s/:*@srcdir@:*/:/
21368s/^\([^=]*=[	 ]*\):*/\1/
21369s/:*$//
21370s/^[^=]*=[	 ]*$//
21371}'
21372fi
21373
21374cat >>$CONFIG_STATUS <<\_ACEOF
21375fi # test -n "$CONFIG_FILES"
21376
21377
21378for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21379do
21380  case $ac_tag in
21381  :[FHLC]) ac_mode=$ac_tag; continue;;
21382  esac
21383  case $ac_mode$ac_tag in
21384  :[FHL]*:*);;
21385  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21386echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21387   { (exit 1); exit 1; }; };;
21388  :[FH]-) ac_tag=-:-;;
21389  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21390  esac
21391  ac_save_IFS=$IFS
21392  IFS=:
21393  set x $ac_tag
21394  IFS=$ac_save_IFS
21395  shift
21396  ac_file=$1
21397  shift
21398
21399  case $ac_mode in
21400  :L) ac_source=$1;;
21401  :[FH])
21402    ac_file_inputs=
21403    for ac_f
21404    do
21405      case $ac_f in
21406      -) ac_f="$tmp/stdin";;
21407      *) # Look for the file first in the build tree, then in the source tree
21408	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21409	 # because $ac_f cannot contain `:'.
21410	 test -f "$ac_f" ||
21411	   case $ac_f in
21412	   [\\/$]*) false;;
21413	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21414	   esac ||
21415	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21416echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21417   { (exit 1); exit 1; }; };;
21418      esac
21419      ac_file_inputs="$ac_file_inputs $ac_f"
21420    done
21421
21422    # Let's still pretend it is `configure' which instantiates (i.e., don't
21423    # use $as_me), people would be surprised to read:
21424    #    /* config.h.  Generated by config.status.  */
21425    configure_input="Generated from "`IFS=:
21426	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21427    if test x"$ac_file" != x-; then
21428      configure_input="$ac_file.  $configure_input"
21429      { echo "$as_me:$LINENO: creating $ac_file" >&5
21430echo "$as_me: creating $ac_file" >&6;}
21431    fi
21432
21433    case $ac_tag in
21434    *:-:* | *:-) cat >"$tmp/stdin";;
21435    esac
21436    ;;
21437  esac
21438
21439  ac_dir=`$as_dirname -- "$ac_file" ||
21440$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21441	 X"$ac_file" : 'X\(//\)[^/]' \| \
21442	 X"$ac_file" : 'X\(//\)$' \| \
21443	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21444echo X"$ac_file" |
21445    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21446	    s//\1/
21447	    q
21448	  }
21449	  /^X\(\/\/\)[^/].*/{
21450	    s//\1/
21451	    q
21452	  }
21453	  /^X\(\/\/\)$/{
21454	    s//\1/
21455	    q
21456	  }
21457	  /^X\(\/\).*/{
21458	    s//\1/
21459	    q
21460	  }
21461	  s/.*/./; q'`
21462  { as_dir="$ac_dir"
21463  case $as_dir in #(
21464  -*) as_dir=./$as_dir;;
21465  esac
21466  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21467    as_dirs=
21468    while :; do
21469      case $as_dir in #(
21470      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21471      *) as_qdir=$as_dir;;
21472      esac
21473      as_dirs="'$as_qdir' $as_dirs"
21474      as_dir=`$as_dirname -- "$as_dir" ||
21475$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21476	 X"$as_dir" : 'X\(//\)[^/]' \| \
21477	 X"$as_dir" : 'X\(//\)$' \| \
21478	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21479echo X"$as_dir" |
21480    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21481	    s//\1/
21482	    q
21483	  }
21484	  /^X\(\/\/\)[^/].*/{
21485	    s//\1/
21486	    q
21487	  }
21488	  /^X\(\/\/\)$/{
21489	    s//\1/
21490	    q
21491	  }
21492	  /^X\(\/\).*/{
21493	    s//\1/
21494	    q
21495	  }
21496	  s/.*/./; q'`
21497      test -d "$as_dir" && break
21498    done
21499    test -z "$as_dirs" || eval "mkdir $as_dirs"
21500  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21501echo "$as_me: error: cannot create directory $as_dir" >&2;}
21502   { (exit 1); exit 1; }; }; }
21503  ac_builddir=.
21504
21505case "$ac_dir" in
21506.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21507*)
21508  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21509  # A ".." for each directory in $ac_dir_suffix.
21510  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21511  case $ac_top_builddir_sub in
21512  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21513  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21514  esac ;;
21515esac
21516ac_abs_top_builddir=$ac_pwd
21517ac_abs_builddir=$ac_pwd$ac_dir_suffix
21518# for backward compatibility:
21519ac_top_builddir=$ac_top_build_prefix
21520
21521case $srcdir in
21522  .)  # We are building in place.
21523    ac_srcdir=.
21524    ac_top_srcdir=$ac_top_builddir_sub
21525    ac_abs_top_srcdir=$ac_pwd ;;
21526  [\\/]* | ?:[\\/]* )  # Absolute name.
21527    ac_srcdir=$srcdir$ac_dir_suffix;
21528    ac_top_srcdir=$srcdir
21529    ac_abs_top_srcdir=$srcdir ;;
21530  *) # Relative name.
21531    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21532    ac_top_srcdir=$ac_top_build_prefix$srcdir
21533    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21534esac
21535ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21536
21537
21538  case $ac_mode in
21539  :F)
21540  #
21541  # CONFIG_FILE
21542  #
21543
21544  case $INSTALL in
21545  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21546  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21547  esac
21548_ACEOF
21549
21550cat >>$CONFIG_STATUS <<\_ACEOF
21551# If the template does not know about datarootdir, expand it.
21552# FIXME: This hack should be removed a few years after 2.60.
21553ac_datarootdir_hack=; ac_datarootdir_seen=
21554
21555case `sed -n '/datarootdir/ {
21556  p
21557  q
21558}
21559/@datadir@/p
21560/@docdir@/p
21561/@infodir@/p
21562/@localedir@/p
21563/@mandir@/p
21564' $ac_file_inputs` in
21565*datarootdir*) ac_datarootdir_seen=yes;;
21566*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21567  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21568echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21569_ACEOF
21570cat >>$CONFIG_STATUS <<_ACEOF
21571  ac_datarootdir_hack='
21572  s&@datadir@&$datadir&g
21573  s&@docdir@&$docdir&g
21574  s&@infodir@&$infodir&g
21575  s&@localedir@&$localedir&g
21576  s&@mandir@&$mandir&g
21577    s&\\\${datarootdir}&$datarootdir&g' ;;
21578esac
21579_ACEOF
21580
21581# Neutralize VPATH when `$srcdir' = `.'.
21582# Shell code in configure.ac might set extrasub.
21583# FIXME: do we really want to maintain this feature?
21584cat >>$CONFIG_STATUS <<_ACEOF
21585  sed "$ac_vpsub
21586$extrasub
21587_ACEOF
21588cat >>$CONFIG_STATUS <<\_ACEOF
21589:t
21590/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21591s&@configure_input@&$configure_input&;t t
21592s&@top_builddir@&$ac_top_builddir_sub&;t t
21593s&@srcdir@&$ac_srcdir&;t t
21594s&@abs_srcdir@&$ac_abs_srcdir&;t t
21595s&@top_srcdir@&$ac_top_srcdir&;t t
21596s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21597s&@builddir@&$ac_builddir&;t t
21598s&@abs_builddir@&$ac_abs_builddir&;t t
21599s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21600s&@INSTALL@&$ac_INSTALL&;t t
21601$ac_datarootdir_hack
21602" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21603
21604test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21605  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21606  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21607  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21608which seems to be undefined.  Please make sure it is defined." >&5
21609echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21610which seems to be undefined.  Please make sure it is defined." >&2;}
21611
21612  rm -f "$tmp/stdin"
21613  case $ac_file in
21614  -) cat "$tmp/out"; rm -f "$tmp/out";;
21615  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21616  esac
21617 ;;
21618  :H)
21619  #
21620  # CONFIG_HEADER
21621  #
21622_ACEOF
21623
21624# Transform confdefs.h into a sed script `conftest.defines', that
21625# substitutes the proper values into config.h.in to produce config.h.
21626rm -f conftest.defines conftest.tail
21627# First, append a space to every undef/define line, to ease matching.
21628echo 's/$/ /' >conftest.defines
21629# Then, protect against being on the right side of a sed subst, or in
21630# an unquoted here document, in config.status.  If some macros were
21631# called several times there might be several #defines for the same
21632# symbol, which is useless.  But do not sort them, since the last
21633# AC_DEFINE must be honored.
21634ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21635# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21636# NAME is the cpp macro being defined, VALUE is the value it is being given.
21637# PARAMS is the parameter list in the macro definition--in most cases, it's
21638# just an empty string.
21639ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
21640ac_dB='\\)[	 (].*,\\1define\\2'
21641ac_dC=' '
21642ac_dD=' ,'
21643
21644uniq confdefs.h |
21645  sed -n '
21646	t rset
21647	:rset
21648	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
21649	t ok
21650	d
21651	:ok
21652	s/[\\&,]/\\&/g
21653	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21654	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21655  ' >>conftest.defines
21656
21657# Remove the space that was appended to ease matching.
21658# Then replace #undef with comments.  This is necessary, for
21659# example, in the case of _POSIX_SOURCE, which is predefined and required
21660# on some systems where configure will not decide to define it.
21661# (The regexp can be short, since the line contains either #define or #undef.)
21662echo 's/ $//
21663s,^[	 #]*u.*,/* & */,' >>conftest.defines
21664
21665# Break up conftest.defines:
21666ac_max_sed_lines=50
21667
21668# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21669# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21670# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21671# et cetera.
21672ac_in='$ac_file_inputs'
21673ac_out='"$tmp/out1"'
21674ac_nxt='"$tmp/out2"'
21675
21676while :
21677do
21678  # Write a here document:
21679    cat >>$CONFIG_STATUS <<_ACEOF
21680    # First, check the format of the line:
21681    cat >"\$tmp/defines.sed" <<\\CEOF
21682/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
21683/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
21684b
21685:def
21686_ACEOF
21687  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21688  echo 'CEOF
21689    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21690  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21691  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21692  grep . conftest.tail >/dev/null || break
21693  rm -f conftest.defines
21694  mv conftest.tail conftest.defines
21695done
21696rm -f conftest.defines conftest.tail
21697
21698echo "ac_result=$ac_in" >>$CONFIG_STATUS
21699cat >>$CONFIG_STATUS <<\_ACEOF
21700  if test x"$ac_file" != x-; then
21701    echo "/* $configure_input  */" >"$tmp/config.h"
21702    cat "$ac_result" >>"$tmp/config.h"
21703    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21704      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21705echo "$as_me: $ac_file is unchanged" >&6;}
21706    else
21707      rm -f $ac_file
21708      mv "$tmp/config.h" $ac_file
21709    fi
21710  else
21711    echo "/* $configure_input  */"
21712    cat "$ac_result"
21713  fi
21714  rm -f "$tmp/out12"
21715# Compute $ac_file's index in $config_headers.
21716_am_stamp_count=1
21717for _am_header in $config_headers :; do
21718  case $_am_header in
21719    $ac_file | $ac_file:* )
21720      break ;;
21721    * )
21722      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21723  esac
21724done
21725echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
21726$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21727	 X$ac_file : 'X\(//\)[^/]' \| \
21728	 X$ac_file : 'X\(//\)$' \| \
21729	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
21730echo X$ac_file |
21731    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21732	    s//\1/
21733	    q
21734	  }
21735	  /^X\(\/\/\)[^/].*/{
21736	    s//\1/
21737	    q
21738	  }
21739	  /^X\(\/\/\)$/{
21740	    s//\1/
21741	    q
21742	  }
21743	  /^X\(\/\).*/{
21744	    s//\1/
21745	    q
21746	  }
21747	  s/.*/./; q'`/stamp-h$_am_stamp_count
21748 ;;
21749
21750  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21751echo "$as_me: executing $ac_file commands" >&6;}
21752 ;;
21753  esac
21754
21755
21756  case $ac_file$ac_mode in
21757    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21758  # Strip MF so we end up with the name of the file.
21759  mf=`echo "$mf" | sed -e 's/:.*$//'`
21760  # Check whether this is an Automake generated Makefile or not.
21761  # We used to match only the files named `Makefile.in', but
21762  # some people rename them; so instead we look at the file content.
21763  # Grep'ing the first line is not enough: some people post-process
21764  # each Makefile.in and add a new line on top of each file to say so.
21765  # So let's grep whole file.
21766  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21767    dirpart=`$as_dirname -- "$mf" ||
21768$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21769	 X"$mf" : 'X\(//\)[^/]' \| \
21770	 X"$mf" : 'X\(//\)$' \| \
21771	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21772echo X"$mf" |
21773    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21774	    s//\1/
21775	    q
21776	  }
21777	  /^X\(\/\/\)[^/].*/{
21778	    s//\1/
21779	    q
21780	  }
21781	  /^X\(\/\/\)$/{
21782	    s//\1/
21783	    q
21784	  }
21785	  /^X\(\/\).*/{
21786	    s//\1/
21787	    q
21788	  }
21789	  s/.*/./; q'`
21790  else
21791    continue
21792  fi
21793  # Extract the definition of DEPDIR, am__include, and am__quote
21794  # from the Makefile without running `make'.
21795  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21796  test -z "$DEPDIR" && continue
21797  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21798  test -z "am__include" && continue
21799  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21800  # When using ansi2knr, U may be empty or an underscore; expand it
21801  U=`sed -n 's/^U = //p' < "$mf"`
21802  # Find all dependency output files, they are included files with
21803  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21804  # simplest approach to changing $(DEPDIR) to its actual value in the
21805  # expansion.
21806  for file in `sed -n "
21807    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21808       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21809    # Make sure the directory exists.
21810    test -f "$dirpart/$file" && continue
21811    fdir=`$as_dirname -- "$file" ||
21812$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21813	 X"$file" : 'X\(//\)[^/]' \| \
21814	 X"$file" : 'X\(//\)$' \| \
21815	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21816echo X"$file" |
21817    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21818	    s//\1/
21819	    q
21820	  }
21821	  /^X\(\/\/\)[^/].*/{
21822	    s//\1/
21823	    q
21824	  }
21825	  /^X\(\/\/\)$/{
21826	    s//\1/
21827	    q
21828	  }
21829	  /^X\(\/\).*/{
21830	    s//\1/
21831	    q
21832	  }
21833	  s/.*/./; q'`
21834    { as_dir=$dirpart/$fdir
21835  case $as_dir in #(
21836  -*) as_dir=./$as_dir;;
21837  esac
21838  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21839    as_dirs=
21840    while :; do
21841      case $as_dir in #(
21842      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21843      *) as_qdir=$as_dir;;
21844      esac
21845      as_dirs="'$as_qdir' $as_dirs"
21846      as_dir=`$as_dirname -- "$as_dir" ||
21847$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21848	 X"$as_dir" : 'X\(//\)[^/]' \| \
21849	 X"$as_dir" : 'X\(//\)$' \| \
21850	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21851echo X"$as_dir" |
21852    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21853	    s//\1/
21854	    q
21855	  }
21856	  /^X\(\/\/\)[^/].*/{
21857	    s//\1/
21858	    q
21859	  }
21860	  /^X\(\/\/\)$/{
21861	    s//\1/
21862	    q
21863	  }
21864	  /^X\(\/\).*/{
21865	    s//\1/
21866	    q
21867	  }
21868	  s/.*/./; q'`
21869      test -d "$as_dir" && break
21870    done
21871    test -z "$as_dirs" || eval "mkdir $as_dirs"
21872  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21873echo "$as_me: error: cannot create directory $as_dir" >&2;}
21874   { (exit 1); exit 1; }; }; }
21875    # echo "creating $dirpart/$file"
21876    echo '# dummy' > "$dirpart/$file"
21877  done
21878done
21879 ;;
21880
21881  esac
21882done # for ac_tag
21883
21884
21885{ (exit 0); exit 0; }
21886_ACEOF
21887chmod +x $CONFIG_STATUS
21888ac_clean_files=$ac_clean_files_save
21889
21890
21891# configure is writing to config.log, and then calls config.status.
21892# config.status does its own redirection, appending to config.log.
21893# Unfortunately, on DOS this fails, as config.log is still kept open
21894# by configure, so config.status won't be able to write to it; its
21895# output is simply discarded.  So we exec the FD to /dev/null,
21896# effectively closing config.log, so it can be properly (re)opened and
21897# appended to by config.status.  When coming back to configure, we
21898# need to make the FD available again.
21899if test "$no_create" != yes; then
21900  ac_cs_success=:
21901  ac_config_status_args=
21902  test "$silent" = yes &&
21903    ac_config_status_args="$ac_config_status_args --quiet"
21904  exec 5>/dev/null
21905  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21906  exec 5>>config.log
21907  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21908  # would make configure fail if this is the last instruction.
21909  $ac_cs_success || { (exit 1); exit 1; }
21910fi
21911
21912
21913echo
21914echo $PACKAGE v$VERSION
21915
21916echo
21917echo "Now type make to compile"
21918echo "Then su to root and type: make install"
21919echo
21920